@angular-wave/angular.ts 0.0.53 → 0.0.55

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.
Files changed (52) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/angular.spec.js +0 -8
  5. package/src/animations/animate-cache.js +48 -23
  6. package/src/animations/animate-children-directive.js +5 -0
  7. package/src/animations/animate-css-driver.js +28 -27
  8. package/src/animations/animate-css.html +40 -0
  9. package/src/animations/animate-css.js +14 -20
  10. package/src/animations/animate-queue.js +2 -4
  11. package/src/animations/animate.md +933 -0
  12. package/src/animations/animation.js +3 -3
  13. package/src/animations/module.js +0 -754
  14. package/src/animations/shared.js +5 -0
  15. package/src/binding.spec.js +0 -2
  16. package/src/core/animate/animate-runner.js +1 -1
  17. package/src/core/animate/animate.spec.js +0 -1
  18. package/src/core/compile/compile.spec.js +3 -5
  19. package/src/core/location/location.spec.js +7 -7
  20. package/src/core/url-utils/url-utils.spec.js +1 -3
  21. package/src/directive/options/options.js +2 -3
  22. package/src/directive/repeat/repeat.spec.js +1 -1
  23. package/src/exts/messages/messages.js +1 -2
  24. package/src/loader.js +0 -1
  25. package/src/public.js +0 -7
  26. package/src/router/params/param-type.js +0 -1
  27. package/src/router/params/param-types.js +1 -1
  28. package/src/router/params/param.js +6 -3
  29. package/src/router/resolve/resolve-context.js +0 -1
  30. package/src/router/state/state.spec.js +0 -3
  31. package/src/router/transition/transition-event-type.js +0 -1
  32. package/src/router/transition/transition.js +0 -1
  33. package/src/router/url/url-matcher.js +0 -2
  34. package/src/services/cookie-reader.js +2 -6
  35. package/src/services/http-backend/http-backend.js +0 -1
  36. package/src/shared/common.js +1 -12
  37. package/src/shared/hof.js +0 -1
  38. package/src/shared/utils.js +1 -89
  39. package/types/animations/animate-cache.d.ts +38 -5
  40. package/types/animations/animate-children-directive.d.ts +5 -3
  41. package/types/animations/animate-css-driver.d.ts +1 -1
  42. package/types/animations/animate-queue.d.ts +1 -1
  43. package/types/animations/module.d.ts +0 -749
  44. package/types/animations/shared.d.ts +6 -1
  45. package/types/core/animate/animate-runner.d.ts +1 -2
  46. package/types/directive/options/options.d.ts +1 -1
  47. package/types/services/cookie-reader.d.ts +1 -6
  48. package/types/services/http-backend/http-backend.d.ts +0 -1
  49. package/types/shared/common.d.ts +0 -1
  50. package/types/shared/utils.d.ts +1 -89
  51. package/src/services/document.js +0 -67
  52. package/types/services/document.d.ts +0 -41
@@ -22,7 +22,12 @@ export function resolveElementClasses(existing: any, toAdd: any, toRemove: any):
22
22
  addClass: string;
23
23
  removeClass: string;
24
24
  };
25
- export function getDomNode(element: any): any;
25
+ /**
26
+ *
27
+ * @param {JQLite|Element} element
28
+ * @returns {Element}
29
+ */
30
+ export function getDomNode(element: JQLite | Element): Element;
26
31
  export function applyGeneratedPreparationClasses(element: any, event: any, options: any): void;
27
32
  export function clearGeneratedClasses(element: any, options: any): void;
28
33
  export function blockKeyframeAnimations(node: any, applyBlock: any): string[];
@@ -6,7 +6,7 @@ export function AnimateRunnerFactoryProvider(): void;
6
6
  export class AnimateRunnerFactoryProvider {
7
7
  $get: (string | ((q: any, animateAsyncRun: any, timeout: any) => typeof AnimateRunner))[];
8
8
  }
9
- declare class AnimateRunner {
9
+ export class AnimateRunner {
10
10
  static chain(chain: any, callback: any): void;
11
11
  static all(runners: any, callback: any): void;
12
12
  constructor(host: any);
@@ -29,4 +29,3 @@ declare class AnimateRunner {
29
29
  complete(response: any): void;
30
30
  _resolve(response: any): void;
31
31
  }
32
- export {};
@@ -1,4 +1,4 @@
1
- export const ngOptionsDirective: (string | (($compile: any, $document: any, $parse: any) => {
1
+ export const ngOptionsDirective: (string | (($compile: any, $parse: any) => {
2
2
  restrict: string;
3
3
  terminal: boolean;
4
4
  require: string[];
@@ -1,16 +1,11 @@
1
1
  /**
2
- * @name $$cookieReader
3
- * @requires $document
4
2
  *
5
3
  * @description
6
4
  * This is a private service for reading cookies used by $http and ngCookies
7
5
  *
8
6
  * @return {Object} a key/value map of the current cookies
9
7
  */
10
- export function $$CookieReader($document: any): any;
11
- export namespace $$CookieReader {
12
- let $inject: string[];
13
- }
8
+ export function $$CookieReader(): any;
14
9
  export function CookieReaderProvider(): void;
15
10
  export class CookieReaderProvider {
16
11
  $get: typeof $$CookieReader;
@@ -27,7 +27,6 @@ export class $xhrFactoryProvider {
27
27
  /**
28
28
  * @ngdoc service
29
29
  * @name $httpBackend
30
- * @requires $document
31
30
  * @requires $xhrFactory
32
31
  *
33
32
  *
@@ -167,7 +167,6 @@ export function tail(arr: any): any;
167
167
  * shallow copy from src to dest
168
168
  */
169
169
  export function copy(src: any, dest: any): any;
170
- export const root: typeof globalThis;
171
170
  export const fromJson: any;
172
171
  export const toJson: any;
173
172
  /** Naive forEach implementation works with Objects or Arrays */
@@ -30,10 +30,6 @@ export function uppercase(string: string): string;
30
30
  */
31
31
  export function isArrayLike(obj: any): boolean;
32
32
  /**
33
- * @module angular
34
- * @function isUndefined
35
- *
36
- * @description
37
33
  * Determines if a reference is undefined.
38
34
  *
39
35
  * @param {*} value Reference to check.
@@ -41,10 +37,6 @@ export function isArrayLike(obj: any): boolean;
41
37
  */
42
38
  export function isUndefined(value: any): boolean;
43
39
  /**
44
- * @module angular
45
- * @function isDefined
46
- *
47
- * @description
48
40
  * Determines if a reference is defined.
49
41
  *
50
42
  * @param {*} value Reference to check.
@@ -52,10 +44,6 @@ export function isUndefined(value: any): boolean;
52
44
  */
53
45
  export function isDefined(value: any): boolean;
54
46
  /**
55
- * @module angular
56
- * @function isObject
57
- *
58
- * @description
59
47
  * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
60
48
  * considered to be objects. Note that JavaScript arrays are objects.
61
49
  *
@@ -64,16 +52,12 @@ export function isDefined(value: any): boolean;
64
52
  */
65
53
  export function isObject(value: any): boolean;
66
54
  /**
67
- * Determine if a value is an object with a null prototype
55
+ * Determines if a value is an object with a null prototype
68
56
  *
69
57
  * @returns {boolean} True if `value` is an `Object` with a null prototype
70
58
  */
71
59
  export function isBlankObject(value: any): boolean;
72
60
  /**
73
- * @module angular
74
- * @function isString
75
- *
76
- * @description
77
61
  * Determines if a reference is a `String`.
78
62
  *
79
63
  * @param {*} value Reference to check.
@@ -81,10 +65,6 @@ export function isBlankObject(value: any): boolean;
81
65
  */
82
66
  export function isString(value: any): boolean;
83
67
  /**
84
- * @module angular
85
- * @function isNumber
86
- *
87
- * @description
88
68
  * Determines if a reference is a `Number`.
89
69
  *
90
70
  * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
@@ -109,7 +89,6 @@ export function isNumber(value: any): boolean;
109
89
  */
110
90
  export function isDate(value: any): boolean;
111
91
  /**
112
- * @description
113
92
  * Determines if a reference is an `Error`.
114
93
  * Loosely based on https://www.npmjs.com/package/iserror
115
94
  *
@@ -118,12 +97,6 @@ export function isDate(value: any): boolean;
118
97
  */
119
98
  export function isError(value: any): boolean;
120
99
  /**
121
- * @module angular
122
- * @function isFunction
123
-
124
- * @function
125
- *
126
- * @description
127
100
  * Determines if a reference is a `Function`.
128
101
  *
129
102
  * @param {*} value Reference to check.
@@ -193,10 +166,6 @@ export function isArrayBuffer(obj: any): boolean;
193
166
  export function trim(value: any): string | any;
194
167
  export function snakeCase(name: any, separator: any): any;
195
168
  /**
196
- * @module angular
197
- * @function forEach
198
- *
199
- * @description
200
169
  * Invokes the `iterator` function once for each item in `obj` collection, which can be either an
201
170
  * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
202
171
  * is the value of an object property or an array element, `key` is the object property key or
@@ -240,12 +209,6 @@ export function reverseParams(iteratorFn: (arg0: string, arg1: any) => any): (ar
240
209
  export function setHashKey(obj: any, h: any): void;
241
210
  export function baseExtend(dst: any, objs: any, deep: any): any;
242
211
  /**
243
- * @module angular
244
- * @function extend
245
-
246
- * @function
247
- *
248
- * @description
249
212
  * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
250
213
  * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
251
214
  * by passing an empty object as the target: `let object = angular.extend({}, object1, object2)`.
@@ -259,12 +222,6 @@ export function baseExtend(dst: any, objs: any, deep: any): any;
259
222
  */
260
223
  export function extend(dst: any, ...src: any[]): any;
261
224
  /**
262
- * @module angular
263
- * @function merge
264
-
265
- * @function
266
- *
267
- * @description
268
225
  * Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
269
226
  * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
270
227
  * by passing an empty object as the target: `let object = angular.merge({}, object1, object2)`.
@@ -310,29 +267,6 @@ export function isNumberNaN(num: any): boolean;
310
267
  */
311
268
  export function inherit(parent: any, extra: any): any;
312
269
  /**
313
- * @module angular
314
- * @function identity
315
-
316
- * @function
317
- *
318
- * @description
319
- * A function that returns its first argument. This function is useful when writing code in the
320
- * functional style.
321
- *
322
- ```js
323
- function transformer(transformationFn, value) {
324
- return (transformationFn || angular.identity)(value);
325
- };
326
-
327
- // E.g.
328
- function getResult(fn, input) {
329
- return (fn || angular.identity)(input);
330
- };
331
-
332
- getResult(function(n) { return n * 2; }, 21); // returns 42
333
- getResult(null, 21); // returns 21
334
- getResult(undefined, 21); // returns 21
335
- ```
336
270
  *
337
271
  * @param {*} value to be returned.
338
272
  * @returns {*} the value passed in.
@@ -378,12 +312,6 @@ export function includes(array: any, obj: any): boolean;
378
312
  export function arrayRemove<T>(array: Array<T>, value: T): number;
379
313
  export function simpleCompare(a: any, b: any): boolean;
380
314
  /**
381
- * @module angular
382
- * @function equals
383
-
384
- * @function
385
- *
386
- * @description
387
315
  * Determines if two objects or two values are equivalent. Supports value types, regular
388
316
  * expressions, arrays and objects.
389
317
  *
@@ -465,12 +393,6 @@ export function isValidObjectMaxDepth(maxDepth: number): boolean;
465
393
  export function concat(array1: any, array2: any, index: any): any;
466
394
  export function sliceArgs(args: any, startIndex: any): any;
467
395
  /**
468
- * @module angular
469
- * @function bind
470
-
471
- * @function
472
- *
473
- * @description
474
396
  * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
475
397
  * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
476
398
  * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
@@ -482,10 +404,6 @@ export function sliceArgs(args: any, startIndex: any): any;
482
404
  */
483
405
  export function bind(context: any, fn: any, ...args: any[]): Function;
484
406
  /**
485
- * @module angular
486
- * @function toJson
487
- *
488
- * @description
489
407
  * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
490
408
  * stripped since AngularJS uses this notation internally.
491
409
  *
@@ -517,10 +435,6 @@ export function bind(context: any, fn: any, ...args: any[]): Function;
517
435
  */
518
436
  export function toJson(obj: any | any[] | Date | string | number | boolean, pretty?: boolean | number): string | undefined;
519
437
  /**
520
- * @module angular
521
- * @function fromJson
522
- *
523
- * @description
524
438
  * Deserializes a JSON string.
525
439
  *
526
440
  * @param {string} json JSON string to deserialize.
@@ -583,8 +497,6 @@ export function shallowCopy(src: any, dst: any): any;
583
497
  export function assertArg(arg: any, name: any, reason: any): any;
584
498
  export function assertArgFn(arg: any, name: any, acceptArrayAnnotation: any): any;
585
499
  /**
586
- * @description
587
- *
588
500
  * This object provides a utility for producing rich Error messages within
589
501
  * AngularJS. It can be called as follows:
590
502
  *
@@ -1,67 +0,0 @@
1
- import { JQLite } from "../shared/jqlite/jqlite";
2
-
3
- /**
4
- * @typedef {import('../types').ServiceProvider} DocumentProvider
5
- * @description
6
- * A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
7
- *
8
- * @example
9
- <example module="documentExample" name="document">
10
- <file name="index.html">
11
- <div ng-controller="ExampleController">
12
- <p>$document title: <b ng-bind="title"></b></p>
13
- <p>window.document title: <b ng-bind="windowTitle"></b></p>
14
- </div>
15
- </file>
16
- <file name="script.js">
17
- angular.module('documentExample', [])
18
- .controller('ExampleController', ['$scope', '$document', function($scope, $document) {
19
- $scope.title = $document[0].title;
20
- $scope.windowTitle = angular.element(window.document)[0].title;
21
- }]);
22
- </file>
23
- </example>
24
- */
25
-
26
- /**
27
- * @constructor
28
- * @this {DocumentProvider}
29
- */
30
- export function $DocumentProvider() {
31
- this.$get = () => JQLite(window.document);
32
- }
33
-
34
- /**
35
- * @private
36
- *
37
- * Listens for document visibility change and makes the current status accessible.
38
- */
39
- export function $$IsDocumentHiddenProvider() {
40
- this.$get = [
41
- "$document",
42
- "$rootScope",
43
- /**
44
- * @param {import("../shared/jqlite/jqlite").JQLite} $document
45
- * @param {import("../core/scope/scope").Scope} $rootScope
46
- * @returns
47
- */
48
- function ($document, $rootScope) {
49
- const doc = /** @type {typeof window.document} */ ($document[0]);
50
- let hidden = doc && doc.hidden;
51
-
52
- $document.on("visibilitychange", changeListener);
53
-
54
- $rootScope.$on("$destroy", () => {
55
- $document.off("visibilitychange", changeListener);
56
- });
57
-
58
- function changeListener() {
59
- hidden = doc.hidden;
60
- }
61
-
62
- return function () {
63
- return hidden;
64
- };
65
- },
66
- ];
67
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * @typedef {import('../types').ServiceProvider} DocumentProvider
3
- * @description
4
- * A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
5
- *
6
- * @example
7
- <example module="documentExample" name="document">
8
- <file name="index.html">
9
- <div ng-controller="ExampleController">
10
- <p>$document title: <b ng-bind="title"></b></p>
11
- <p>window.document title: <b ng-bind="windowTitle"></b></p>
12
- </div>
13
- </file>
14
- <file name="script.js">
15
- angular.module('documentExample', [])
16
- .controller('ExampleController', ['$scope', '$document', function($scope, $document) {
17
- $scope.title = $document[0].title;
18
- $scope.windowTitle = angular.element(window.document)[0].title;
19
- }]);
20
- </file>
21
- </example>
22
- */
23
- /**
24
- * @constructor
25
- * @this {DocumentProvider}
26
- */
27
- export function $DocumentProvider(this: import("../types").ServiceProvider): void;
28
- export class $DocumentProvider {
29
- $get: () => JQLite;
30
- }
31
- /**
32
- * @private
33
- *
34
- * Listens for document visibility change and makes the current status accessible.
35
- */
36
- export function $$IsDocumentHiddenProvider(): void;
37
- export class $$IsDocumentHiddenProvider {
38
- $get: (string | (($document: import("../shared/jqlite/jqlite").JQLite, $rootScope: import("../core/scope/scope").Scope) => () => boolean))[];
39
- }
40
- export type DocumentProvider = import("../types").ServiceProvider;
41
- import { JQLite } from "../shared/jqlite/jqlite";