@angular-wave/angular.ts 0.14.3 → 0.15.1

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 (100) hide show
  1. package/@types/angular.d.ts +27 -25
  2. package/@types/animations/animate-cache.d.ts +46 -2
  3. package/@types/animations/animate-children-directive.d.ts +4 -4
  4. package/@types/animations/animate-js.d.ts +1 -10
  5. package/@types/animations/animate.d.ts +6 -1
  6. package/@types/animations/interface.d.ts +15 -0
  7. package/@types/animations/runner/animate-runner.d.ts +73 -52
  8. package/@types/animations/shared.d.ts +0 -16
  9. package/@types/core/compile/attributes.d.ts +40 -10
  10. package/@types/core/compile/compile.d.ts +1 -1
  11. package/@types/core/compile/inteface.d.ts +5 -1
  12. package/@types/core/controller/controller.d.ts +1 -1
  13. package/@types/core/di/inteface.d.ts +11 -0
  14. package/@types/core/interpolate/interface.d.ts +1 -0
  15. package/@types/core/parse/ast/ast-node.d.ts +2 -0
  16. package/@types/core/parse/interface.d.ts +1 -1
  17. package/@types/core/parse/interpreter.d.ts +5 -3
  18. package/@types/core/parse/parse.d.ts +4 -1
  19. package/@types/core/scope/interface.d.ts +26 -0
  20. package/@types/core/scope/scope.d.ts +13 -13
  21. package/@types/directive/attrs/attrs.d.ts +2 -5
  22. package/@types/directive/bind/bind.d.ts +5 -7
  23. package/@types/directive/class/class.d.ts +3 -3
  24. package/@types/directive/controller/controller.d.ts +2 -2
  25. package/@types/directive/form/form.d.ts +16 -13
  26. package/@types/directive/include/include.d.ts +4 -4
  27. package/@types/directive/init/init.d.ts +2 -2
  28. package/@types/directive/input/input.d.ts +16 -0
  29. package/@types/directive/listener/listener.d.ts +4 -0
  30. package/@types/directive/messages/messages.d.ts +9 -8
  31. package/@types/directive/model/interface.d.ts +18 -0
  32. package/@types/directive/model/model.d.ts +25 -23
  33. package/@types/directive/non-bindable/non-bindable.d.ts +2 -2
  34. package/@types/directive/ref/ref.d.ts +5 -8
  35. package/@types/directive/repeat/repeat.d.ts +2 -4
  36. package/@types/directive/script/script.d.ts +2 -2
  37. package/@types/directive/select/select.d.ts +9 -10
  38. package/@types/directive/setter/setter.d.ts +2 -2
  39. package/@types/directive/show-hide/show-hide.d.ts +2 -4
  40. package/@types/directive/switch/switch.d.ts +4 -4
  41. package/@types/directive/validators/validators.d.ts +2 -2
  42. package/@types/injection-tokens.d.ts +3 -2
  43. package/@types/interface.d.ts +72 -23
  44. package/@types/namespace.d.ts +50 -6
  45. package/@types/router/directives/state-directives.d.ts +26 -24
  46. package/@types/router/directives/view-directive.d.ts +27 -131
  47. package/@types/router/glob/glob.d.ts +2 -6
  48. package/@types/router/router.d.ts +6 -4
  49. package/@types/router/scroll/interface.d.ts +3 -0
  50. package/@types/router/scroll/view-scroll.d.ts +8 -0
  51. package/@types/router/state/interface.d.ts +30 -126
  52. package/@types/router/state/state-builder.d.ts +14 -7
  53. package/@types/router/state/state-matcher.d.ts +11 -3
  54. package/@types/router/state/state-object.d.ts +5 -7
  55. package/@types/router/state/state-queue-manager.d.ts +14 -8
  56. package/@types/router/state/state-registry.d.ts +26 -12
  57. package/@types/router/state/state-service.d.ts +24 -12
  58. package/@types/router/template-factory.d.ts +2 -2
  59. package/@types/router/transition/hook-registry.d.ts +15 -5
  60. package/@types/router/transition/interface.d.ts +9 -9
  61. package/@types/router/transition/transition-hook.d.ts +11 -0
  62. package/@types/router/transition/transition-service.d.ts +12 -5
  63. package/@types/router/transition/transition.d.ts +20 -14
  64. package/@types/router/url/url-rule.d.ts +12 -9
  65. package/@types/router/url/url-rules.d.ts +3 -84
  66. package/@types/router/url/url-service.d.ts +23 -18
  67. package/@types/router/view/view.d.ts +4 -4
  68. package/@types/services/anchor-scroll/anchor-scroll.d.ts +2 -17
  69. package/@types/services/anchor-scroll/interface.d.ts +15 -0
  70. package/@types/services/cookie/cookie.d.ts +7 -13
  71. package/@types/services/exception/interface.d.ts +3 -3
  72. package/@types/services/http/http.d.ts +6 -31
  73. package/@types/services/http/interface.d.ts +22 -0
  74. package/@types/services/location/location.d.ts +14 -13
  75. package/@types/services/log/log.d.ts +7 -3
  76. package/@types/services/pubsub/pubsub.d.ts +18 -13
  77. package/@types/services/rest/rest.d.ts +7 -5
  78. package/@types/services/sce/interface.d.ts +25 -0
  79. package/@types/services/sce/sce.d.ts +9 -1
  80. package/@types/services/sse/interface.d.ts +8 -1
  81. package/@types/services/sse/sse.d.ts +10 -18
  82. package/@types/services/storage/storage.d.ts +6 -6
  83. package/@types/services/stream/interface.d.ts +1 -1
  84. package/@types/services/stream/stream.d.ts +98 -0
  85. package/@types/shared/common.d.ts +2 -2
  86. package/@types/shared/dom.d.ts +21 -42
  87. package/@types/shared/hof.d.ts +27 -37
  88. package/@types/shared/noderef.d.ts +3 -3
  89. package/@types/shared/strings.d.ts +31 -10
  90. package/@types/shared/utils.d.ts +207 -101
  91. package/@types/shared/validate.d.ts +20 -0
  92. package/dist/angular-ts.esm.js +2461 -2298
  93. package/dist/angular-ts.umd.js +2461 -2298
  94. package/dist/angular-ts.umd.min.js +1 -1
  95. package/dist/angular-ts.umd.min.js.gz +0 -0
  96. package/dist/angular-ts.umd.min.js.map +1 -1
  97. package/package.json +1 -1
  98. package/@types/router/state-filters.d.ts +0 -39
  99. package/@types/router/view-scroll.d.ts +0 -12
  100. package/@types/shared/cache.d.ts +0 -7
@@ -1,5 +1,5 @@
1
- export function nextId(): number;
2
1
  /**
2
+ * @private
3
3
  * Creates a deep proxy for the target object, intercepting property changes
4
4
  * and recursively applying proxies to nested objects.
5
5
  *
@@ -16,12 +16,8 @@ export function createScope(target?: any, context?: Scope): Scope;
16
16
  * @returns {boolean}
17
17
  */
18
18
  export function isNonScope(target: any): boolean;
19
- /**
20
- * Decorator for excluding objects from scope observability
21
- */
22
- export const NONSCOPE: "$nonscope";
23
- export const $postUpdateQueue: any[];
24
- export let rootScope: any;
19
+ /** @ignore @type {Function[]}*/
20
+ export const $postUpdateQueue: Function[];
25
21
  export class RootScopeProvider {
26
22
  rootScope: Scope;
27
23
  $get: (
@@ -53,7 +49,7 @@ export class Scope {
53
49
  $$listeners: Map<string, Function[]>;
54
50
  /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
55
51
  foreignListeners: Map<string, Array<import("./interface.ts").Listener>>;
56
- /** @type {Set<ProxyConstructor>} */
52
+ /** @type {Set<Proxy<ng.Scope>>} */
57
53
  foreignProxies: Set<ProxyConstructor>;
58
54
  /** @type {WeakMap<Object, Array<string>>} */
59
55
  objectListeners: WeakMap<any, Array<string>>;
@@ -65,8 +61,8 @@ export class Scope {
65
61
  fn: Function;
66
62
  }
67
63
  >;
68
- /** Current proxy being operated on */
69
- $proxy: any;
64
+ /** @type {Proxy<Scope>} Current proxy being operated on */
65
+ $proxy: ProxyConstructor;
70
66
  /** @type {Scope} The actual proxy */
71
67
  $handler: Scope;
72
68
  /** @type {*} Current target being called on */
@@ -100,7 +96,7 @@ export class Scope {
100
96
  * @param {Object} target - The target object.
101
97
  * @param {string} property - The name of the property being set.
102
98
  * @param {*} value - The new value being assigned to the property.
103
- * @param {Proxy} proxy - The proxy intercepting property access
99
+ * @param {Proxy<Scope>} proxy - The proxy intercepting property access
104
100
  * @returns {boolean} - Returns true to indicate success of the operation.
105
101
  */
106
102
  set(
@@ -116,7 +112,7 @@ export class Scope {
116
112
  *
117
113
  * @param {Object} target - The target object.
118
114
  * @param {string|number|symbol} property - The name of the property being accessed.
119
- * @param {Proxy} proxy - The proxy object being invoked
115
+ * @param {Proxy<Scope>} proxy - The proxy object being invoked
120
116
  * @returns {*} - The value of the property or a method if accessing `watch` or `sync`.
121
117
  */
122
118
  get(
@@ -182,6 +178,10 @@ export class Scope {
182
178
  * @returns {Scope|undefined}
183
179
  */
184
180
  $getById(id: string | number): Scope | undefined;
185
- $searchByName(name: any): any;
181
+ /**
182
+ * @param {string} name
183
+ * @returns {ng.Scope|undefined}
184
+ */
185
+ $searchByName(name: string): ng.Scope | undefined;
186
186
  #private;
187
187
  }
@@ -1,8 +1,5 @@
1
1
  export const REGEX_STRING_REGEXP: RegExp;
2
2
  /**
3
- * @type {Record<string, import("../../interface.ts").DirectiveFactory>}
3
+ * @type {Record<string, ng.DirectiveFactory>}
4
4
  */
5
- export const ngAttributeAliasDirectives: Record<
6
- string,
7
- import("../../interface.ts").DirectiveFactory
8
- >;
5
+ export const ngAttributeAliasDirectives: Record<string, ng.DirectiveFactory>;
@@ -3,16 +3,14 @@
3
3
  */
4
4
  export function ngBindDirective(): ng.Directive;
5
5
  /**
6
- * @returns {import('../../interface.ts').Directive}
6
+ * @returns {ng.Directive}
7
7
  */
8
- export function ngBindTemplateDirective(): import("../../interface.ts").Directive;
8
+ export function ngBindTemplateDirective(): ng.Directive;
9
9
  /**
10
- * @param {import('../../core/parse/interface.ts').ParseService} $parse
11
- * @returns {import('../../interface.ts').Directive}
10
+ * @param {ng.ParseService} $parse
11
+ * @returns {ng.Directive}
12
12
  */
13
- export function ngBindHtmlDirective(
14
- $parse: import("../../core/parse/interface.ts").ParseService,
15
- ): import("../../interface.ts").Directive;
13
+ export function ngBindHtmlDirective($parse: ng.ParseService): ng.Directive;
16
14
  export namespace ngBindHtmlDirective {
17
15
  let $inject: string[];
18
16
  }
@@ -1,3 +1,3 @@
1
- export const ngClassDirective: ng.DirectiveFactory;
2
- export const ngClassOddDirective: ng.DirectiveFactory;
3
- export const ngClassEvenDirective: ng.DirectiveFactory;
1
+ export const ngClassDirective: import("../../interface.ts").DirectiveFactory;
2
+ export const ngClassOddDirective: import("../../interface.ts").DirectiveFactory;
3
+ export const ngClassEvenDirective: import("../../interface.ts").DirectiveFactory;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @returns {import("../../interface.ts").Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngControllerDirective(): import("../../interface.ts").Directive;
4
+ export function ngControllerDirective(): ng.Directive;
@@ -4,26 +4,26 @@ export function setupValidity(instance: any): void;
4
4
  * $nonscope: boolean,
5
5
  * $addControl: Function,
6
6
  * $getControls: () => any[],
7
- * $$renameControl: Function,
7
+ * _renameControl: Function,
8
8
  * $removeControl: Function,
9
9
  * $setValidity: Function | ((key: any, isValid: boolean, control: any) => any),
10
10
  * $setDirty: Function,
11
11
  * $setPristine: Function,
12
12
  * $setSubmitted: Function,
13
- * $$setSubmitted: Function
13
+ * _setSubmitted: Function
14
14
  * }}
15
15
  */
16
16
  export const nullFormCtrl: {
17
17
  $nonscope: boolean;
18
18
  $addControl: Function;
19
19
  $getControls: () => any[];
20
- $$renameControl: Function;
20
+ _renameControl: Function;
21
21
  $removeControl: Function;
22
22
  $setValidity: Function | ((key: any, isValid: boolean, control: any) => any);
23
23
  $setDirty: Function;
24
24
  $setPristine: Function;
25
25
  $setSubmitted: Function;
26
- $$setSubmitted: Function;
26
+ _setSubmitted: Function;
27
27
  };
28
28
  export const PENDING_CLASS: "ng-pending";
29
29
  /**
@@ -78,17 +78,17 @@ export class FormController {
78
78
  * @param {ng.Attributes} $attrs
79
79
  * @param {ng.Scope} $scope
80
80
  * @param {ng.AnimateService} $animate
81
- * @param {*} $interpolate
81
+ * @param {ng.InterpolateService} $interpolate
82
82
  */
83
83
  constructor(
84
84
  $element: Element,
85
85
  $attrs: ng.Attributes,
86
86
  $scope: ng.Scope,
87
87
  $animate: ng.AnimateService,
88
- $interpolate: any,
88
+ $interpolate: ng.InterpolateService,
89
89
  );
90
- $$controls: any[];
91
- $name: any;
90
+ _controls: any[];
91
+ $name: string;
92
92
  /**
93
93
  * @property {boolean} $dirty True if user has already interacted with the form.
94
94
  */
@@ -103,11 +103,12 @@ export class FormController {
103
103
  /** @type {FormController|Object} */
104
104
  $$parentForm: FormController | any;
105
105
  $$element: Element;
106
- $$animate: import("../../interface.ts").AnimateService;
106
+ $$animate: import("../../animations/interface.ts").AnimateService;
107
107
  $error: {};
108
108
  $$success: {};
109
109
  $pending: any;
110
110
  $$classCache: {};
111
+ $target: {};
111
112
  /**
112
113
  * Rollback all form controls pending updates to the `$modelValue`.
113
114
  *
@@ -154,9 +155,10 @@ export class FormController {
154
155
  * Likewise, adding a control to, or removing a control from the form is not reflected
155
156
  * in the shallow copy. That means you should get a fresh copy from `$getControls()` every time
156
157
  * you need access to the controls.
158
+ * @returns {ReadonlyArray<FormController>}
157
159
  */
158
- $getControls(): any;
159
- $$renameControl(control: any, newName: any): void;
160
+ $getControls(): ReadonlyArray<FormController>;
161
+ _renameControl(control: any, newName: any): void;
160
162
  /**
161
163
  * Deregister a control from the form.
162
164
  *
@@ -166,8 +168,9 @@ export class FormController {
166
168
  * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
167
169
  * different from case to case. For example, removing the only `$dirty` control from a form may or
168
170
  * may not mean that the form is still `$dirty`.
171
+ * @param {FormController } control
169
172
  */
170
- $removeControl(control: any): void;
173
+ $removeControl(control: FormController): void;
171
174
  /**
172
175
  * Sets the form to a dirty state.
173
176
  *
@@ -203,7 +206,7 @@ export class FormController {
203
206
  * parent forms of the form.
204
207
  */
205
208
  $setSubmitted(): void;
206
- $$setSubmitted(): void;
209
+ _setSubmitted(): void;
207
210
  set(object: any, property: any, controller: any): void;
208
211
  unset(object: any, property: any, controller: any): void;
209
212
  /**
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  *
3
3
  * @param {ng.TemplateRequestService} $templateRequest
4
- * @param {import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
4
+ * @param {ng.AnchorScrollService} $anchorScroll
5
5
  * @param {ng.AnimateService} $animate
6
6
  * @param {ng.ExceptionHandlerService} $exceptionHandler
7
7
  * @returns {ng.Directive}
8
8
  */
9
9
  export function ngIncludeDirective(
10
10
  $templateRequest: ng.TemplateRequestService,
11
- $anchorScroll: import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction,
11
+ $anchorScroll: ng.AnchorScrollService,
12
12
  $animate: ng.AnimateService,
13
13
  $exceptionHandler: ng.ExceptionHandlerService,
14
14
  ): ng.Directive;
@@ -17,11 +17,11 @@ export namespace ngIncludeDirective {
17
17
  }
18
18
  /**
19
19
  * @param {ng.CompileService} $compile
20
- * @returns {import("../../interface.ts").Directive}
20
+ * @returns {ng.Directive}
21
21
  */
22
22
  export function ngIncludeFillContentDirective(
23
23
  $compile: ng.CompileService,
24
- ): import("../../interface.ts").Directive;
24
+ ): ng.Directive;
25
25
  export namespace ngIncludeFillContentDirective {
26
26
  let $inject_1: string[];
27
27
  export { $inject_1 as $inject };
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngInitDirective(): import("../../interface.ts").Directive;
4
+ export function ngInitDirective(): ng.Directive;
@@ -64,6 +64,22 @@ export function hiddenInputBrowserCacheDirective(): ng.Directive;
64
64
  * @returns {ng.Directive}
65
65
  */
66
66
  export function ngValueDirective(): ng.Directive;
67
+ /**
68
+ * @param {Date} date
69
+ * @param {any} timezone
70
+ * @param {undefined} [reverse]
71
+ */
72
+ export function convertTimezoneToLocal(
73
+ date: Date,
74
+ timezone: any,
75
+ reverse?: undefined,
76
+ ): Date;
77
+ /**
78
+ * @param {any} timezone
79
+ * @param {number} [fallback]
80
+ * @returns {number}
81
+ */
82
+ export function timezoneToOffset(timezone: any, fallback?: number): number;
67
83
  export const ISO_DATE_REGEXP: RegExp;
68
84
  export const URL_REGEXP: RegExp;
69
85
  export const EMAIL_REGEXP: RegExp;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @returns {ng.Directive}
3
+ */
4
+ export function ngListenerDirective(): ng.Directive;
@@ -8,14 +8,15 @@ export function ngMessagesDirective(
8
8
  export namespace ngMessagesDirective {
9
9
  let $inject: string[];
10
10
  }
11
+ /**
12
+ * @param {ng.TemplateRequestService} $templateRequest
13
+ * @param {ng.CompileService} $compile
14
+ * @returns {ng.Directive}
15
+ */
11
16
  export function ngMessagesIncludeDirective(
12
- $templateRequest: any,
13
- $compile: any,
14
- ): {
15
- restrict: string;
16
- require: string;
17
- link($scope: any, element: any, attrs: any): void;
18
- };
17
+ $templateRequest: ng.TemplateRequestService,
18
+ $compile: ng.CompileService,
19
+ ): ng.Directive;
19
20
  export namespace ngMessagesIncludeDirective {
20
21
  let $inject_1: string[];
21
22
  export { $inject_1 as $inject };
@@ -39,7 +40,7 @@ declare class NgMessageCtrl {
39
40
  $element: Element;
40
41
  $scope: ng.Scope;
41
42
  $attrs: ng.Attributes;
42
- $animate: import("../../interface.ts").AnimateService;
43
+ $animate: import("../../animations/interface.ts").AnimateService;
43
44
  latestKey: number;
44
45
  nextAttachId: number;
45
46
  messages: {};
@@ -0,0 +1,18 @@
1
+ export interface ModelValidators {
2
+ /**
3
+ * viewValue is any because it can be an object that is called in the view like $viewValue.name:$viewValue.subName
4
+ */
5
+ [index: string]: (modelValue: any, viewValue: any) => boolean;
6
+ }
7
+ export interface AsyncModelValidators {
8
+ [index: string]: (modelValue: any, viewValue: any) => Promise<any>;
9
+ }
10
+ export interface ModelParser {
11
+ (value: any): any;
12
+ }
13
+ export interface ModelFormatter {
14
+ (value: any): any;
15
+ }
16
+ export interface ModelViewChangeListener {
17
+ (): void;
18
+ }
@@ -55,7 +55,7 @@ export class NgModelController {
55
55
  * @param {Element} $element
56
56
  * @param {ng.ParseService} $parse
57
57
  * @param {ng.AnimateService} $animate
58
- * @param {*} $interpolate
58
+ * @param {ng.InterpolateService} $interpolate
59
59
  */
60
60
  constructor(
61
61
  $scope: ng.Scope,
@@ -64,7 +64,7 @@ export class NgModelController {
64
64
  $element: Element,
65
65
  $parse: ng.ParseService,
66
66
  $animate: ng.AnimateService,
67
- $interpolate: any,
67
+ $interpolate: ng.InterpolateService,
68
68
  );
69
69
  /** @type {any} The actual value from the control's view */
70
70
  $viewValue: any;
@@ -72,16 +72,16 @@ export class NgModelController {
72
72
  $modelValue: any;
73
73
  /** @type {any} */
74
74
  $$rawModelValue: any;
75
- /** @type {any} */
76
- $validators: any;
77
- /** @type {any} */
78
- $asyncValidators: any;
79
- /** @type {Array<any>} */
80
- $parsers: Array<any>;
81
- /** @type {Array<any>} */
82
- $formatters: Array<any>;
83
- /** @type {Array<any>} */
84
- $viewChangeListeners: Array<any>;
75
+ /** @type {import("./interface.ts").ModelValidators} */
76
+ $validators: import("./interface.ts").ModelValidators;
77
+ /** @type {import("./interface.ts").AsyncModelValidators} */
78
+ $asyncValidators: import("./interface.ts").AsyncModelValidators;
79
+ /** @type {Array<import("./interface.ts").ModelParser>} */
80
+ $parsers: Array<import("./interface.ts").ModelParser>;
81
+ /** @type {Array<import("./interface.ts").ModelFormatter>} */
82
+ $formatters: Array<import("./interface.ts").ModelFormatter>;
83
+ /** @type {Array<import("./interface.ts").ModelViewChangeListener>} */
84
+ $viewChangeListeners: Array<import("./interface.ts").ModelViewChangeListener>;
85
85
  /** @type {boolean} */
86
86
  $untouched: boolean;
87
87
  /** @type {boolean} */
@@ -97,12 +97,12 @@ export class NgModelController {
97
97
  $error: {};
98
98
  $$success: {};
99
99
  $pending: any;
100
- $name: any;
100
+ $name: string;
101
101
  $$parentForm: {
102
102
  $nonscope: boolean;
103
103
  $addControl: Function;
104
104
  $getControls: () => any[];
105
- $$renameControl: Function;
105
+ _renameControl: Function;
106
106
  $removeControl: Function;
107
107
  $setValidity:
108
108
  | Function
@@ -110,7 +110,7 @@ export class NgModelController {
110
110
  $setDirty: Function;
111
111
  $setPristine: Function;
112
112
  $setSubmitted: Function;
113
- $$setSubmitted: Function;
113
+ _setSubmitted: Function;
114
114
  };
115
115
  $options: {
116
116
  $$options: import("../model-options/model-options.js").ModelOptionsConfig;
@@ -125,16 +125,16 @@ export class NgModelController {
125
125
  };
126
126
  $$updateEvents: string;
127
127
  $$updateEventHandler(ev: any): void;
128
- $$parsedNgModel: import("../../core/parse/interface.ts").CompiledExpression;
129
- $$parsedNgModelAssign: (context: any, value: any) => any;
128
+ _parsedNgModel: import("../../core/parse/interface.ts").CompiledExpression;
129
+ _parsedNgModelAssign: (context: any, value: any) => any;
130
130
  /**
131
131
  * @type {import("../../core/parse/interface.ts").CompiledExpression |
132
132
  * (function(ng.Scope): any)}
133
133
  */
134
- $$ngModelGet:
134
+ _ngModelGet:
135
135
  | import("../../core/parse/interface.ts").CompiledExpression
136
136
  | ((arg0: ng.Scope) => any);
137
- $$ngModelSet: (context: any, value: any) => any;
137
+ _ngModelSet: (context: any, value: any) => any;
138
138
  $$pendingDebounce: number;
139
139
  $$parserValid: boolean;
140
140
  /** @type {string} */
@@ -145,9 +145,9 @@ export class NgModelController {
145
145
  $$scope: ng.Scope;
146
146
  $$attr: ng.Attributes;
147
147
  $$element: Element;
148
- $$animate: import("../../interface.ts").AnimateService;
148
+ $$animate: import("../../animations/interface.ts").AnimateService;
149
149
  $$parse: import("../../core/parse/interface.ts").ParseService;
150
- $$exceptionHandler: import("../../interface.ts").ExceptionHandler;
150
+ $$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
151
151
  $$hasNativeValidators: boolean;
152
152
  $$classCache: {};
153
153
  $$eventRemovers: Set<any>;
@@ -398,10 +398,12 @@ export class NgModelController {
398
398
  * **Note:** it is not possible to override the `getterSetter` option.
399
399
  * </div>
400
400
  *
401
- * @param {Object} options a hash of settings to override the previous options
401
+ * @param {import("../../interface.ts").NgModelOptions} options a hash of settings to override the previous options
402
402
  *
403
403
  */
404
- $overrideModelOptions(options: any): void;
404
+ $overrideModelOptions(
405
+ options: import("../../interface.ts").NgModelOptions,
406
+ ): void;
405
407
  /**
406
408
  * Runs the model -> view pipeline on the current
407
409
  * {@link ngModel.NgModelController#$modelValue $modelValue}.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngNonBindableDirective(): import("../../interface.ts").Directive;
4
+ export function ngNonBindableDirective(): ng.Directive;
@@ -1,11 +1,8 @@
1
- export function ngRefDirective($parse: any): {
2
- priority: number;
3
- restrict: string;
4
- compile(
5
- tElement: any,
6
- tAttrs: any,
7
- ): (scope: any, element: any, attrs: any) => void;
8
- };
1
+ /**
2
+ * @param {ng.ParseService} $parse
3
+ * @return {ng.Directive}
4
+ */
5
+ export function ngRefDirective($parse: ng.ParseService): ng.Directive;
9
6
  export namespace ngRefDirective {
10
7
  let $inject: string[];
11
8
  }
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * TODO // Add type for animate service
3
3
  * @param {*} $animate
4
- * @returns {import("../../interface.ts").Directive}
4
+ * @returns {ng.Directive}
5
5
  */
6
- export function ngRepeatDirective(
7
- $animate: any,
8
- ): import("../../interface.ts").Directive;
6
+ export function ngRepeatDirective($animate: any): ng.Directive;
9
7
  export namespace ngRepeatDirective {
10
8
  let $inject: string[];
11
9
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @param {ng.TemplateCacheService} $templateCache
3
- * @returns {import('../../interface.ts').Directive}
3
+ * @returns {ng.Directive}
4
4
  */
5
5
  export function scriptDirective(
6
6
  $templateCache: ng.TemplateCacheService,
7
- ): import("../../interface.ts").Directive;
7
+ ): ng.Directive;
8
8
  export namespace scriptDirective {
9
9
  let $inject: string[];
10
10
  }
@@ -1,15 +1,14 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function selectDirective(): import("../../interface.ts").Directive;
5
- export function optionDirective($interpolate: any): {
6
- restrict: string;
7
- priority: number;
8
- compile(
9
- element: any,
10
- attr: any,
11
- ): (scope: any, elemParam: any, attrParam: any) => void;
12
- };
4
+ export function selectDirective(): ng.Directive;
5
+ /**
6
+ * @param {ng.InterpolateService} $interpolate
7
+ * @returns {ng.Directive}
8
+ */
9
+ export function optionDirective(
10
+ $interpolate: ng.InterpolateService,
11
+ ): ng.Directive;
13
12
  export namespace optionDirective {
14
13
  let $inject: string[];
15
14
  }
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @param {ng.ParseService} $parse
3
3
  * @param {ng.LogService} $log
4
- * @returns {import('interface.ts').Directive}
4
+ * @returns {ng.Directive}
5
5
  */
6
6
  export function ngSetterDirective(
7
7
  $parse: ng.ParseService,
8
8
  $log: ng.LogService,
9
- ): any;
9
+ ): ng.Directive;
10
10
  export namespace ngSetterDirective {
11
11
  let $inject: string[];
12
12
  }
@@ -7,11 +7,9 @@ export namespace ngShowDirective {
7
7
  let $inject: string[];
8
8
  }
9
9
  /**
10
- * @returns {import('../../interface.ts').Directive}
10
+ * @returns {ng.Directive}
11
11
  */
12
- export function ngHideDirective(
13
- $animate: any,
14
- ): import("../../interface.ts").Directive;
12
+ export function ngHideDirective($animate: any): ng.Directive;
15
13
  export namespace ngHideDirective {
16
14
  let $inject_1: string[];
17
15
  export { $inject_1 as $inject };
@@ -7,10 +7,10 @@ export namespace ngSwitchDirective {
7
7
  let $inject: string[];
8
8
  }
9
9
  /**
10
- * @returns {import('../../interface.ts').Directive}
10
+ * @returns {ng.Directive}
11
11
  */
12
- export function ngSwitchWhenDirective(): import("../../interface.ts").Directive;
12
+ export function ngSwitchWhenDirective(): ng.Directive;
13
13
  /**
14
- * @returns {import('../../interface.ts').Directive}
14
+ * @returns {ng.Directive}
15
15
  */
16
- export function ngSwitchDefaultDirective(): import("../../interface.ts").Directive;
16
+ export function ngSwitchDefaultDirective(): ng.Directive;
@@ -25,7 +25,7 @@ export const requiredDirective: (
25
25
  | string
26
26
  | ((
27
27
  $parse: import("../../core/parse/interface.ts").ParseService,
28
- ) => import("../../interface.ts").Directive)
28
+ ) => ng.Directive)
29
29
  )[];
30
30
  /**
31
31
  * @param {String|RegExp} ngPattern AngularTS expression that must evaluate to a `RegExp` or a `String`
@@ -70,7 +70,7 @@ export const patternDirective: (
70
70
  | string
71
71
  | ((
72
72
  $parse: import("../../core/parse/interface.ts").ParseService,
73
- ) => import("../../interface.ts").Directive)
73
+ ) => ng.Directive)
74
74
  )[];
75
75
  /**
76
76
  * @param {string} ngMaxlength AngularTS expression that must evaluate to a `Number` or `String`
@@ -11,13 +11,14 @@ export function provider(services: string[]): string[];
11
11
  * ```js
12
12
  *
13
13
  * myDirective.$inject = [
14
- * angular.$injectTokens.$animate,
15
- * angular.$injectTokens.$templateRequest,
14
+ * angular.$t.$animate,
15
+ * angular.$t.$templateRequest,
16
16
  * ];
17
17
  *
18
18
  * function myDirective($animate, $templateRequest) { ... }
19
19
  *
20
20
  * ```
21
+ * @private
21
22
  * @type Readonly<Record<string, string>>
22
23
  */
23
24
  export const $injectTokens: Readonly<Record<string, string>>;