@angular-wave/angular.ts 0.0.54 → 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.
@@ -69,10 +69,6 @@ export function isArrayLike(obj) {
69
69
  }
70
70
 
71
71
  /**
72
- * @module angular
73
- * @function isUndefined
74
- *
75
- * @description
76
72
  * Determines if a reference is undefined.
77
73
  *
78
74
  * @param {*} value Reference to check.
@@ -83,10 +79,6 @@ export function isUndefined(value) {
83
79
  }
84
80
 
85
81
  /**
86
- * @module angular
87
- * @function isDefined
88
- *
89
- * @description
90
82
  * Determines if a reference is defined.
91
83
  *
92
84
  * @param {*} value Reference to check.
@@ -97,10 +89,6 @@ export function isDefined(value) {
97
89
  }
98
90
 
99
91
  /**
100
- * @module angular
101
- * @function isObject
102
- *
103
- * @description
104
92
  * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
105
93
  * considered to be objects. Note that JavaScript arrays are objects.
106
94
  *
@@ -113,7 +101,7 @@ export function isObject(value) {
113
101
  }
114
102
 
115
103
  /**
116
- * Determine if a value is an object with a null prototype
104
+ * Determines if a value is an object with a null prototype
117
105
  *
118
106
  * @returns {boolean} True if `value` is an `Object` with a null prototype
119
107
  */
@@ -124,10 +112,6 @@ export function isBlankObject(value) {
124
112
  }
125
113
 
126
114
  /**
127
- * @module angular
128
- * @function isString
129
- *
130
- * @description
131
115
  * Determines if a reference is a `String`.
132
116
  *
133
117
  * @param {*} value Reference to check.
@@ -138,10 +122,6 @@ export function isString(value) {
138
122
  }
139
123
 
140
124
  /**
141
- * @module angular
142
- * @function isNumber
143
- *
144
- * @description
145
125
  * Determines if a reference is a `Number`.
146
126
  *
147
127
  * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
@@ -172,7 +152,6 @@ export function isDate(value) {
172
152
  }
173
153
 
174
154
  /**
175
- * @description
176
155
  * Determines if a reference is an `Error`.
177
156
  * Loosely based on https://www.npmjs.com/package/iserror
178
157
  *
@@ -194,12 +173,6 @@ export function isError(value) {
194
173
  }
195
174
 
196
175
  /**
197
- * @module angular
198
- * @function isFunction
199
-
200
- * @function
201
- *
202
- * @description
203
176
  * Determines if a reference is a `Function`.
204
177
  *
205
178
  * @param {*} value Reference to check.
@@ -318,10 +291,6 @@ export function snakeCase(name, separator) {
318
291
  }
319
292
 
320
293
  /**
321
- * @module angular
322
- * @function forEach
323
- *
324
- * @description
325
294
  * Invokes the `iterator` function once for each item in `obj` collection, which can be either an
326
295
  * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
327
296
  * is the value of an object property or an array element, `key` is the object property key or
@@ -455,12 +424,6 @@ export function baseExtend(dst, objs, deep) {
455
424
  }
456
425
 
457
426
  /**
458
- * @module angular
459
- * @function extend
460
-
461
- * @function
462
- *
463
- * @description
464
427
  * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
465
428
  * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
466
429
  * by passing an empty object as the target: `let object = angular.extend({}, object1, object2)`.
@@ -477,12 +440,6 @@ export function extend(dst, ...src) {
477
440
  }
478
441
 
479
442
  /**
480
- * @module angular
481
- * @function merge
482
-
483
- * @function
484
- *
485
- * @description
486
443
  * Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
487
444
  * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
488
445
  * by passing an empty object as the target: `let object = angular.merge({}, object1, object2)`.
@@ -540,29 +497,6 @@ export function inherit(parent, extra) {
540
497
  }
541
498
 
542
499
  /**
543
- * @module angular
544
- * @function identity
545
-
546
- * @function
547
- *
548
- * @description
549
- * A function that returns its first argument. This function is useful when writing code in the
550
- * functional style.
551
- *
552
- ```js
553
- function transformer(transformationFn, value) {
554
- return (transformationFn || angular.identity)(value);
555
- };
556
-
557
- // E.g.
558
- function getResult(fn, input) {
559
- return (fn || angular.identity)(input);
560
- };
561
-
562
- getResult(function(n) { return n * 2; }, 21); // returns 42
563
- getResult(null, 21); // returns 21
564
- getResult(undefined, 21); // returns 21
565
- ```
566
500
  *
567
501
  * @param {*} value to be returned.
568
502
  * @returns {*} the value passed in.
@@ -645,12 +579,6 @@ export function simpleCompare(a, b) {
645
579
  }
646
580
 
647
581
  /**
648
- * @module angular
649
- * @function equals
650
-
651
- * @function
652
- *
653
- * @description
654
582
  * Determines if two objects or two values are equivalent. Supports value types, regular
655
583
  * expressions, arrays and objects.
656
584
  *
@@ -883,12 +811,6 @@ export function sliceArgs(args, startIndex) {
883
811
  }
884
812
 
885
813
  /**
886
- * @module angular
887
- * @function bind
888
-
889
- * @function
890
- *
891
- * @description
892
814
  * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
893
815
  * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
894
816
  * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
@@ -938,10 +860,6 @@ function toJsonReplacer(key, value) {
938
860
  }
939
861
 
940
862
  /**
941
- * @module angular
942
- * @function toJson
943
- *
944
- * @description
945
863
  * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
946
864
  * stripped since AngularJS uses this notation internally.
947
865
  *
@@ -980,10 +898,6 @@ export function toJson(obj, pretty) {
980
898
  }
981
899
 
982
900
  /**
983
- * @module angular
984
- * @function fromJson
985
- *
986
- * @description
987
901
  * Deserializes a JSON string.
988
902
  *
989
903
  * @param {string} json JSON string to deserialize.
@@ -1199,8 +1113,6 @@ export function assertArgFn(arg, name, acceptArrayAnnotation) {
1199
1113
  export const minErrConfig = {};
1200
1114
 
1201
1115
  /**
1202
- * @description
1203
- *
1204
1116
  * This object provides a utility for producing rich Error messages within
1205
1117
  * AngularJS. It can be called as follows:
1206
1118
  *
@@ -1,10 +1,43 @@
1
1
  export function animateCache(): {
2
- cacheKey(node: any, method: any, addClass: any, removeClass: any): string;
3
- containsCachedAnimationWithoutDuration(key: any): boolean;
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(node: HTMLElement, method: string, addClass?: string, removeClass?: string): string;
11
+ /**
12
+ * Checks if a cached animation without a duration exists.
13
+ * @param {string} key - The cache key to check.
14
+ * @returns {boolean} - True if an invalid animation is cached, false otherwise.
15
+ */
16
+ containsCachedAnimationWithoutDuration(key: string): boolean;
17
+ /**
18
+ * Clears the cache.
19
+ * @returns {void}
20
+ */
4
21
  flush(): void;
5
- count(key: any): any;
6
- get(key: any): any;
7
- put(key: any, value: any, isValid: any): void;
22
+ /**
23
+ * Gets the count of a specific cache entry.
24
+ * @param {string} key - The cache key to count.
25
+ * @returns {number} - The count of the cache entry.
26
+ */
27
+ count(key: string): number;
28
+ /**
29
+ * Retrieves a value associated with a specific cache key.
30
+ * @param {string} key - The cache key to retrieve.
31
+ * @returns {any} - The value associated with the cache key.
32
+ */
33
+ get(key: string): any;
34
+ /**
35
+ * Adds or updates a cache entry.
36
+ * @param {string} key - The cache key to add or update.
37
+ * @param {any} value - The value to store.
38
+ * @param {boolean} isValid - Whether the cache entry is valid.
39
+ */
40
+ put(key: string, value: any, isValid: boolean): void;
8
41
  };
9
42
  export function $$AnimateCacheProvider(): void;
10
43
  export class $$AnimateCacheProvider {
@@ -1,6 +1,8 @@
1
- export function $$AnimateChildrenDirective($interpolate: any): {
2
- link(scope: any, element: any, attrs: any): void;
3
- };
1
+ /**
2
+ * @param {*} $interpolate
3
+ * @returns {import("../types").Directive}
4
+ */
5
+ export function $$AnimateChildrenDirective($interpolate: any): import("../types").Directive;
4
6
  export namespace $$AnimateChildrenDirective {
5
7
  let $inject: string[];
6
8
  }
@@ -4,7 +4,7 @@ export class $$AnimateCssDriverProvider {
4
4
  /**
5
5
  * @returns {Function}
6
6
  */
7
- $get: (string | (($animateCss: any, $$AnimateRunner: any, $rootElement: any) => (animationDetails: any) => any))[];
7
+ $get: (string | (($animateCss: any, $$AnimateRunner: typeof import("../core/animate/animate-runner").AnimateRunner, $rootElement: any) => (animationDetails: any) => any))[];
8
8
  }
9
9
  export namespace $$AnimateCssDriverProvider {
10
10
  let $inject: string[];
@@ -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 {};
@@ -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
  *