@angular-wave/angular.ts 0.0.41 → 0.0.42

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 (72) hide show
  1. package/README.md +27 -0
  2. package/dist/angular-ts.esm.js +2 -2
  3. package/dist/angular-ts.umd.js +2 -2
  4. package/package.json +1 -1
  5. package/src/core/compile/compile.js +1 -1
  6. package/src/core/compile/compile.md +2 -5
  7. package/src/core/exception-handler.js +6 -6
  8. package/src/core/interpolate/interpolate.js +1 -1
  9. package/src/core/location/location.spec.js +0 -4
  10. package/src/core/q/q.js +1 -1
  11. package/src/core/scope/scope.js +1 -1
  12. package/src/core/task-tracker-factory.js +2 -2
  13. package/src/core/timeout/timeout.js +1 -1
  14. package/src/core/url-utils/url-utils.js +0 -2
  15. package/src/directive/bind/bind.js +2 -2
  16. package/src/directive/change/change.js +1 -1
  17. package/src/directive/cloak/cloak.js +1 -1
  18. package/src/directive/events/events.js +1 -1
  19. package/src/directive/form/form.js +2 -2
  20. package/src/directive/init/init.js +1 -1
  21. package/src/directive/list/list.js +1 -1
  22. package/src/directive/model/model.js +1 -1
  23. package/src/directive/model-options/model-options.js +56 -421
  24. package/src/directive/model-options/model-options.md +407 -0
  25. package/src/directive/model-options/model-options.spec.js +1 -1
  26. package/src/directive/non-bindable/non-bindable.js +1 -2
  27. package/src/directive/style/style.js +1 -1
  28. package/src/directive/switch/switch.js +2 -2
  29. package/src/directive/transclude/transclude.js +2 -2
  30. package/src/index.js +0 -461
  31. package/src/loader.js +1 -1
  32. package/src/public.js +1 -1
  33. package/src/router/template-factory.js +2 -2
  34. package/src/router/view-scroll.js +1 -1
  35. package/src/services/browser.js +1 -1
  36. package/src/services/document.js +2 -2
  37. package/src/services/log.js +1 -1
  38. package/src/services/template-request.js +1 -1
  39. package/src/shared/jqlite/jqlite.js +52 -44
  40. package/src/shared/jqlite/jqlite.spec.js +0 -1
  41. package/src/shared/utils.js +1 -1
  42. package/src/types.js +447 -9
  43. package/tsconfig.json +1 -1
  44. package/types/animations/shared.d.ts +1 -1
  45. package/types/core/exception-handler.d.ts +5 -7
  46. package/types/core/interpolate/interpolate.d.ts +1 -1
  47. package/types/core/q/q.d.ts +1 -1
  48. package/types/core/task-tracker-factory.d.ts +5 -5
  49. package/types/core/timeout/timeout.d.ts +2 -2
  50. package/types/directive/bind/bind.d.ts +4 -4
  51. package/types/directive/change/change.d.ts +2 -2
  52. package/types/directive/cloak/cloak.d.ts +2 -2
  53. package/types/directive/init/init.d.ts +2 -2
  54. package/types/directive/list/list.d.ts +2 -2
  55. package/types/directive/model/model.d.ts +13 -7
  56. package/types/directive/model-options/model-options.d.ts +49 -0
  57. package/types/directive/non-bindable/non-bindable.d.ts +2 -3
  58. package/types/directive/style/style.d.ts +2 -2
  59. package/types/directive/switch/switch.d.ts +4 -4
  60. package/types/index.d.ts +1 -702
  61. package/types/public.d.ts +2 -2
  62. package/types/router/template-factory.d.ts +4 -4
  63. package/types/services/browser.d.ts +3 -3
  64. package/types/services/document.d.ts +4 -6
  65. package/types/services/log.d.ts +2 -2
  66. package/types/services/template-request.d.ts +1 -1
  67. package/types/shared/jqlite/jqlite.d.ts +10 -2
  68. package/types/shared/utils.d.ts +2 -2
  69. package/types/types.d.ts +437 -33
  70. package/types-back/index.d.ts +1 -27
  71. package/types-back/jqlite.d.ts +0 -81
  72. package/types-back/global.d.ts +0 -11
package/src/index.js CHANGED
@@ -1,467 +1,6 @@
1
1
  import { Angular, angularInit } from "./loader";
2
2
  import { publishExternalAPI } from "./public";
3
3
 
4
- /**
5
- * @typedef {Object} angular.BootstrapConfig
6
- * @description Configuration option for AngularTS bootstrap process.
7
- * @property {boolean} debugInfoEnabled - Indicates whether debug information should be enabled. Setting this to `false` can improve performance but will disable some debugging features.
8
- * @property {boolean} [strictDi] - Disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. Defaults to `false`.
9
- */
10
-
11
- /**
12
- * @typedef {Function|Array<string|Function>} angular.Injectable
13
- * @description Represents a type that can be injected, either as a function or an array of strings/functions.
14
- * @template T
15
- */
16
-
17
- /**
18
- * @typedef {Object} angular.ComponentOptions
19
- * @description Component definition object (a simplified directive definition object)
20
- * @property {string | angular.angular.Injectable<angular.ControllerConstructor>> | undefined} [controller]
21
- * Controller constructor function or name of a registered controller.
22
- * Use array form for dependencies (necessary with strictDi).
23
- * @property {string | undefined} [controllerAs]
24
- * Identifier name for the controller published to its scope (default: '$ctrl').
25
- * @property {string | angular.angular.Injectable<(...args: any[]) => string> | undefined} [template]
26
- * HTML template string or function returning an HTML template.
27
- * If a function, injects $element and $attrs.
28
- * Use array form for dependencies (necessary with strictDi).
29
- * @property {string | angular.angular.Injectable<(...args: any[]) => string> | undefined} [templateUrl]
30
- * Path or function returning a path to an HTML template.
31
- * If a function, injects $element and $attrs.
32
- * Use array form for dependencies (necessary with strictDi).
33
- * @property {{ [boundProperty: string]: string } | undefined} [bindings]
34
- * DOM attribute bindings to component properties.
35
- * Component properties are bound to the controller, not the scope.
36
- * @property {boolean | { [slot: string]: string } | undefined} [transclude]
37
- * Whether transclusion is enabled. Disabled by default.
38
- * @property {{ [controller: string]: string } | undefined} [require]
39
- * Requires controllers of other directives, binding them to this component's controller.
40
- * Keys specify property names under which required controllers (object values) are bound.
41
- * Required controllers available before $onInit method execution.
42
- */
43
-
44
- /**
45
- * @typedef {Function} angular.ControllerConstructor
46
- * @description Controller constructor type for AngularJS. Note: Instead of classes, plain functions are often used as controller constructors, especially in examples.
47
- * @param {...any} args Arguments passed to the controller constructor.
48
- * @returns {void | angular.Controller} Returns nothing or an instance of IController.
49
- */
50
-
51
- /**
52
- * @typedef {Object} angular.OnChangesObject
53
- * @description Object representing changes in one-way bound properties.
54
- * Keys are the names of the bound properties that have changed, and values are instances of IChangesObject.
55
- * @property {angular.ChangesObject<any>} property - Represents a changed property.
56
- */
57
-
58
- /**
59
- * @typedef {Object} angular.ChangesObject
60
- * @description Object representing changes in a property.
61
- * @property {*} currentValue - Current value of the property.
62
- * @property {*} previousValue - Previous value of the property.
63
- * @property {function(): boolean} isFirstChange - Function to check if it's the first change of the property.
64
- */
65
-
66
- /**
67
- * @typedef {Object} angular.Controller
68
- * @description Interface representing the lifecycle hooks for AngularJS directive controllers.
69
- * @see {@link https://docs.angularjs.org/api/ng/service/$compile#life-cycle-hooks}
70
- * @see {@link https://docs.angularjs.org/guide/component}
71
- *
72
- * @property {function(): void} [$onInit]
73
- * Called on each controller after all the controllers on an element have been constructed and had their bindings
74
- * initialized (and before the pre & post linking functions for the directives on this element). This is a good
75
- * place to put initialization code for your controller.
76
- *
77
- * @property {function(): void} [$doCheck]
78
- * Called on each turn of the digest cycle. Provides an opportunity to detect and act on changes.
79
- * Any actions that you wish to take in response to the changes that you detect must be invoked from this hook;
80
- * implementing this has no effect on when `$onChanges` is called. For example, this hook could be useful if you wish
81
- * to perform a deep equality check, or to check a `Date` object, changes to which would not be detected by Angular's
82
- * change detector and thus not trigger `$onChanges`. This hook is invoked with no arguments; if detecting changes,
83
- * you must store the previous value(s) for comparison to the current values.
84
- *
85
- * @property {function(angular.OnChangesObject): void} [$onChanges]
86
- * Called whenever one-way bindings are updated. The onChangesObj is a hash whose keys are the names of the bound
87
- * properties that have changed, and the values are an {@link IChangesObject} object of the form
88
- * { currentValue, previousValue, isFirstChange() }. Use this hook to trigger updates within a component such as
89
- * cloning the bound value to prevent accidental mutation of the outer value.
90
- *
91
- * @property {function(): void} [$onDestroy]
92
- * Called on a controller when its containing scope is destroyed. Use this hook for releasing external resources,
93
- * watches and event handlers.
94
- *
95
- * @property {function(): void} [$postLink]
96
- * Called after this controller's element and its children have been linked. Similar to the post-link function this
97
- * hook can be used to set up DOM event handlers and do direct DOM manipulation. Note that child elements that contain
98
- * templateUrl directives will not have been compiled and linked since they are waiting for their template to load
99
- * asynchronously and their own compilation and linking has been suspended until that occurs. This hook can be considered
100
- * analogous to the ngAfterViewInit and ngAfterContentInit hooks in Angular 2. Since the compilation process is rather
101
- * different in Angular 1 there is no direct mapping and care should be taken when upgrading.
102
- *
103
- * @property {*} [s: string]
104
- * IController implementations frequently do not implement any of its methods.
105
- * A string indexer indicates to TypeScript not to issue a weak type error in this case.
106
- */
107
-
108
- /**
109
- * @typedef {Object.<string, any>} angular.Attributes
110
- *
111
- * @property {(name: string) => string} $normalize
112
- * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, camelCase form.
113
- * Also there is special case for Moz prefix starting with upper case letter.
114
- *
115
- * @property {(newClasses: string, oldClasses: string) => void} $updateClass
116
- * Adds and removes the appropriate CSS class values to the element based on the difference between
117
- * the new and old CSS class values (specified as newClasses and oldClasses).
118
- *
119
- * @property {(key: string, value: any) => void} $set
120
- * Set DOM element attribute value.
121
- *
122
- * @property {<T>(name: string, fn: (value?: T) => any) => Function} $observe
123
- * Observes an interpolated attribute.
124
- * The observer function will be invoked once during the next $digest
125
- * following compilation. The observer is then invoked whenever the
126
- * interpolated value changes.
127
- *
128
- * @property {Object.<string, string>} $attr
129
- * A map of DOM element attribute names to the normalized name. This is needed
130
- * to do reverse lookup from normalized name back to actual name.
131
- * @see http://docs.angularjs.org/api/ng/type/$compile.directive.Attributes
132
- */
133
-
134
- /**
135
- * @typedef {import('./core/scope/scope').Scope} TScope
136
- */
137
-
138
- /**
139
- * @typedef {import('./shared/jqlite/jqlite').JQLite} TElement
140
- */
141
-
142
- /**
143
- * @typedef {angular.Attributes} TAttributes
144
- */
145
-
146
- /**
147
- * @typedef {angular.DirectiveController} TController
148
- */
149
-
150
- /**
151
- * @typedef {angular.Controller | angular.Controller[] | { [key: string]: angular.Controller }} angular.DirectiveController
152
- * @description Represents a directive controller, which can be:
153
- * - A single instance of {@link angular.Controller}
154
- * - An array of {@link angular.Controller}
155
- * - An object where keys are string identifiers and values are {@link angular.Controller}
156
- */
157
-
158
- /**
159
- * @template [S=import('./core/scope/scope').Scope]
160
- * @template {TScope} S - The type of the directive's scope.
161
- *
162
- * @template [T=import('./shared/jqlite/jqlite').JQLite]
163
- * @template {TElement} T - The type of the directive's element.
164
- *
165
- * @template [A=angular.Attributes]
166
- * @template {TAttributes} A - The type of the directive's attributes.
167
- *
168
- * @template [C=angular.Controller]
169
- * @template {TController} C - The type of the directive's controller.
170
- */
171
-
172
- /**
173
- * Compile function for an AngularJS directive.
174
- *
175
- * @template TScope
176
- * @template TElement
177
- * @template TAttributes
178
- * @template TController
179
- * @callback angular.DirectiveCompileFn
180
- * @param {TElement} templateElement - The template element.
181
- * @param {TAttributes} templateAttributes - The template attributes.
182
- * @param {angular.TranscludeFunction} transclude - @deprecated The transclude function. Note: The transclude function that is passed to the compile function is deprecated,
183
- * as it e.g. does not know about the right outer scope. Please use the transclude function
184
- * that is passed to the link function instead.
185
- * @returns {void | angular.DirectiveLinkFn<S, T, A, C> | angular.DirectivePrePost<S, T, A, C>} Returns void, angular.DirectiveLinkFn, or angular.DirectivePrePost.
186
- */
187
-
188
- /**
189
- * Link function for an AngularJS directive.
190
- *
191
- * @template TScope
192
- * @template TElement
193
- * @template TAttributes
194
- * @template TController
195
- * @callback angular.DirectiveLinkFn
196
- * @param {TScope} scope
197
- * @param {TElement} instanceElement
198
- * @param {TAttributes} instanceAttributes
199
- * @param {TController} [controller]
200
- * @param {angular.TranscludeFunction} [transclude]
201
- * @returns {void}
202
- */
203
-
204
- /**
205
- * @callback angular.CloneAttachFunction
206
- * @param {JQLite} [clonedElement]
207
- * @param {Scope} [scope] // Let's hint but not force cloneAttachFn's signature
208
- * @returns {any}
209
- */
210
-
211
- /**
212
- * This corresponds to $transclude passed to controllers and to the transclude function passed to link functions.
213
- * https://docs.angularjs.org/api/ng/service/$compile#-controller-
214
- * http://teropa.info/blog/2015/06/09/transclusion.html
215
- *
216
- * @typedef {Object} angular.TranscludeFunction
217
- * @property {function(TScope, angular.CloneAttachFunction, JQLite=, string=): JQLite} transcludeWithScope
218
- * @property {function(angular.CloneAttachFunction=, JQLite=, string=): JQLite} transcludeWithoutScope
219
- * @property {function(string): boolean} isSlotFilled - Returns true if the specified slot contains content (i.e., one or more DOM nodes)
220
- */
221
-
222
- /**
223
- * @typedef {function(TScope, angular.CloneAttachFunction, JQLite=, string=): JQLite} transcludeWithScope
224
- */
225
-
226
- /**
227
- * @typedef {function(angular.CloneAttachFunction=, JQLite=, string=): JQLite} transcludeWithoutScope
228
- */
229
-
230
- /**
231
- * Represents the pre and post linking functions of a directive.
232
- *
233
- * @template TScope The type of scope associated with the directive.
234
- * @template TElement The type of element that the directive matches.
235
- * @template TAttributes The type of attributes of the directive.
236
- * @template TController The type of controller associated with the directive.
237
- *
238
- * @typedef {Object} angular.DirectivePrePost
239
- * @property {angular.DirectiveLinkFn<S, T, A, C> | undefined} [pre]
240
- * The pre-linking function of the directive.
241
- * @property {angular.DirectiveLinkFn<S, T, A, C> | undefined} [post]
242
- * The post-linking function of the directive.
243
- */
244
-
245
- /**
246
- * Directive definition object.
247
- *
248
- * @template TScope - The type of the directive's scope.
249
- * @template TElement - The type of the directive's element.
250
- * @template TAttributes - The type of the directive's attributes.
251
- * @template TController - The type of the directive's controller.
252
- *
253
- * @typedef {Object} angular.Directive
254
- * @property {angular.DirectiveCompileFn<S, T, A, C> | undefined} [compile]
255
- * Compile function for the directive.
256
- * @property {string | angular.Injectable<angular.ControllerConstructor> | undefined} [controller]
257
- * Controller constructor or name.
258
- * @property {string | undefined} [controllerAs]
259
- * Controller alias.
260
- * @property {boolean | { [boundProperty: string]: string } | undefined} [bindToController]
261
- * Bindings to controller.
262
- * @property {angular.DirectiveLinkFn<S, T, A, C> | angular.DirectivePrePost<S, T, A, C> | undefined} [link]
263
- * Link function.
264
- * @property {boolean | undefined} [multiElement]
265
- * Multi-element directive flag.
266
- * @property {number | undefined} [priority]
267
- * Directive priority.
268
- * @property {boolean | undefined} [replace]
269
- * Deprecated: Replace flag.
270
- * @property {string | string[] | { [controller: string]: string } | undefined} [require]
271
- * Required controllers.
272
- * @property {string | undefined} [restrict]
273
- * Restriction mode.
274
- * @property {boolean | { [boundProperty: string]: string } | undefined} [scope]
275
- * Scope options.
276
- * @property {string | ((tElement: TElement, tAttrs: TAttributes) => string) | undefined} [template]
277
- * HTML template.
278
- * @property {string | undefined} [templateNamespace]
279
- * Template namespace.
280
- * @property {string | ((tElement: TElement, tAttrs: TAttributes) => string) | undefined} [templateUrl]
281
- * HTML template URL.
282
- * @property {boolean | "element" | { [slot: string]: string } | undefined} [transclude]
283
- * Transclusion options.
284
- */
285
-
286
- /**
287
- * Factory function for creating directives.
288
- *
289
- * @template TScope - The type of the directive's scope.
290
- * @template TElement - The type of the directive's element.
291
- * @template TAttributes - The type of the directive's attributes.
292
- * @template TController - The type of the directive's controller.
293
- *
294
- * @typedef {(...args: any[]) => angular.Directive<S, T, A, C> | angular.DirectiveLinkFn<S, T, A, C>} angular.DirectiveFactory
295
- */
296
-
297
- /**
298
- * @typedef {Function} angular.FilterFunction
299
- * @property {boolean|undefined} [$stateful] By default, filters are only run once the input value changes. By marking the filter as `$stateful`, the filter will be run on every `$digest` to update the output. **This is strongly discouraged.** See https://docs.angularjs.org/guide/filter#stateful-filters
300
- */
301
-
302
- /**
303
- * @typedef {Function} angular.FilterFactory
304
- * @returns {angular.FilterFunction}
305
- */
306
-
307
- /**
308
- * Interface for a service provider class.
309
- * @typedef {Object} angular.ServiceProviderClass
310
- * @property {Function} constructor - The constructor for the service provider.
311
- * @param {...any} args - The arguments for the constructor.
312
- * @returns {angular.ServiceProvider}
313
- */
314
-
315
- /**
316
- * Interface for a service provider factory function.
317
- * @typedef {Function} angular.ServiceProviderFactory
318
- * @param {...any} args - The arguments for the factory function.
319
- * @returns {angular.ServiceProvider}
320
- */
321
-
322
- /**
323
- * Interface for a service provider.
324
- * @typedef {Object} angular.ServiceProvider
325
- * @property {*} $get - The $get property that represents a service instance or a factory function.
326
- */
327
-
328
- /** @type {angular.ServiceProvider} */
329
- export const ServiceProvider = {
330
- $get: undefined,
331
- };
332
-
333
- /**
334
- * @typedef {Object} angular.Module
335
- * @description AngularJS module interface for registering components, services, providers, etc.
336
- * @property {function(string, angular.ComponentOptions): angular.Module} component
337
- * Use this method to register a component.
338
- * @property {function({ [componentName: string]: angular.ComponentOptions }): angular.Module} component
339
- * Use this method to register multiple components.
340
- * @property {function(Function): angular.Module} config
341
- * Use this method to register work which needs to be performed on module loading.
342
- * @property {function(any[]): angular.Module} config
343
- * Use this method to register work which needs to be performed on module loading.
344
- * @property {function<T>(string, T): angular.Module} constant
345
- * Register a constant service with the $injector.
346
- * @property {function(Object): angular.Module} constant
347
- * Register multiple constant services.
348
- * @property {function(string, angular.Injectable<angular.ControllerConstructor>): angular.Module} controller
349
- * Register a controller with the $controller service.
350
- * @property {function({ [name: string]: angular.Injectable<angular.ControllerConstructor>> }): angular.Module} controller
351
- * Register multiple controllers.
352
- * @property {function<S, T, A, C>(string, angular.Injectable<angular.DirectiveFactory<S, T, A, C>>): angular.Module} directive
353
- * Register a directive with the compiler.
354
- * @property {function<S, T, A, C>(Object.<string, angular.Injectable<angular.DirectiveFactory<S, T, A, C>>>): angular.Module} directive
355
- * Register multiple directives.
356
- * @property {function(string, angular.Injectable<Function>): angular.Module} factory
357
- * Register a service factory with the $injector.
358
- * @property {function(Object.<string, angular.Injectable<Function>>): angular.Module} factory
359
- * Register multiple service factories.
360
- * @property {function(string, angular.Injectable<angular.FilterFactory>): angular.Module} filter
361
- * Register a filter service.
362
- * @property {function(Object.<string, angular.Injectable<angular.FilterFactory>>): angular.Module} filter
363
- * Register multiple filter services.
364
- * @property {function(string, angular.ServiceProviderFactory): angular.Module} provider
365
- * Register a provider service factory.
366
- * @property {function(string, angular.ServiceProviderClass): angular.Module} provider
367
- * Register a provider service constructor.
368
- * @property {function(string, any[]): angular.Module} provider
369
- * Register a provider service with inline annotated constructor.
370
- * @property {function(angular.Injectable<Function>): angular.Module} run
371
- * Register code to be run during module loading.
372
- * @property {function(string, angular.Injectable<Function>): angular.Module} service
373
- * Register a service constructor.
374
- * @property {function(Object.<string, angular.Injectable<Function>>): angular.Module} service
375
- * Register multiple service constructors.
376
- * @property {function<T>(string, T): angular.Module} value
377
- * Register a value service with the $injector.
378
- * @property {function(Object): angular.Module} value
379
- * Register multiple value services.
380
- * @property {function(string, angular.Injectable<Function>): angular.Module} decorator
381
- * Register a service decorator with the $injector.
382
- * @property {string} name
383
- * The name of the AngularJS module.
384
- * @property {string[]} requires
385
- * Array of module names that this module depends on.
386
- */
387
-
388
- /**
389
- * @typedef {Object} angular.FormController
390
- * @property {boolean} $pristine - True if the form has not been modified.
391
- * @property {boolean} $dirty - True if the form has been modified.
392
- * @property {boolean} $valid - True if the form is valid.
393
- * @property {boolean} $invalid - True if the form is invalid.
394
- * @property {boolean} $submitted - True if the form has been submitted.
395
- * @property {Object.<string, Array.<angular.NgModelController|angular.FormController>>} $error - An object containing arrays of controls with validation errors keyed by validation error keys.
396
- * @property {string|undefined} [$name] - The name of the form.
397
- * @property {Object.<string, Array.<angular.NgModelController|angular.FormController>>|undefined} [$pending] - An object containing arrays of controls that are pending validation, keyed by validation error keys.
398
- * @property {function(angular.NgModelController|angular.FormController): void} $addControl - Adds a control to the form.
399
- * @property {function(): ReadonlyArray.<angular.NgModelController|angular.FormController>} $getControls - Returns an array of all controls in the form.
400
- * @property {function(angular.NgModelController|angular.FormController): void} $removeControl - Removes a control from the form.
401
- * @property {function(string, boolean, angular.NgModelController|angular.FormController): void} $setValidity - Sets the validity of a control in the form.
402
- * @property {function(): void} $setDirty - Marks the form as dirty.
403
- * @property {function(): void} $setPristine - Marks the form as pristine.
404
- * @property {function(): void} $commitViewValue - Commits the view value of all controls in the form.
405
- * @property {function(): void} $rollbackViewValue - Rolls back the view value of all controls in the form.
406
- * @property {function(): void} $setSubmitted - Marks the form as submitted.
407
- * @property {function(): void} $setUntouched - Marks the form controls as untouched.
408
- * @property {function(string): any} [name] - An indexer for additional properties.
409
- */
410
-
411
- /**
412
- * @typedef {Object} angular.NgModelController
413
- * @property {function(): void} $render - Renders the view value.
414
- * @property {function(string, boolean): void} $setValidity - Sets the validity state.
415
- * @property {function(any, string=): void} $setViewValue - Sets the view value.
416
- * @property {function(): void} $setPristine - Marks the control as pristine.
417
- * @property {function(): void} $setDirty - Marks the control as dirty.
418
- * @property {function(): void} $validate - Validates the control.
419
- * @property {function(): void} $setTouched - Marks the control as touched.
420
- * @property {function(): void} $setUntouched - Marks the control as untouched.
421
- * @property {function(): void} $rollbackViewValue - Rolls back the view value.
422
- * @property {function(): void} $commitViewValue - Commits the view value.
423
- * @property {function(): void} $processModelValue - Processes the model value.
424
- * @property {function(any): boolean} $isEmpty - Checks if the value is empty.
425
- * @property {function(angular.NgModelOptions): void} $overrideModelOptions - Overrides model options.
426
- * @property {*} $viewValue - The current view value.
427
- * @property {*} $modelValue - The current model value.
428
- * @property {Array.<function(any, any): boolean>} $parsers - Array of parsers.
429
- * @property {Array.<function(any): any>} $formatters - Array of formatters.
430
- * @property {Array.<function(): any>} $viewChangeListeners - Array of view change listeners.
431
- * @property {Object.<string, boolean>} $error - Validation errors.
432
- * @property {string|undefined} [$name] - The name of the control.
433
- * @property {boolean} $touched - True if the control has been touched.
434
- * @property {boolean} $untouched - True if the control has not been touched.
435
- * @property {Object.<string, function(any, any): boolean>} $validators - Synchronous validators.
436
- * @property {Object.<string, function(any, any): angular.Promise<any>>} $asyncValidators - Asynchronous validators.
437
- * @property {Object.<string, boolean>|undefined} [$pending] - Pending validation.
438
- * @property {boolean} $pristine - True if the control is pristine.
439
- * @property {boolean} $dirty - True if the control is dirty.
440
- * @property {boolean} $valid - True if the control is valid.
441
- * @property {boolean} $invalid - True if the control is invalid.
442
- */
443
-
444
- /**
445
- * @typedef {Object} angular.NgModelOptions
446
- * @property {string|undefined} [updateOn] - The event to update on.
447
- * @property {number|Object.<string, number>|undefined} [debounce] - The debounce delay.
448
- * @property {boolean|undefined} [allowInvalid] - Allows invalid models.
449
- * @property {boolean|undefined} [getterSetter] - Indicates if getter/setter syntax is allowed.
450
- * @property {string|undefined} [timezone] - The timezone.
451
- * @property {string|undefined} [timeSecondsFormat] - The format for seconds in time and datetime-local inputs.
452
- * @property {boolean|undefined} [timeStripZeroSeconds] - Indicates if zero seconds should be stripped.
453
- */
454
-
455
- /**
456
- * @typedef {Object.<string, function(any, any): boolean>} IModelValidators
457
- * @property {function(any, any): boolean} [index] - Validator function for each index.
458
- */
459
-
460
- /**
461
- * @typedef {Object.<string, function(any, any): IPromise<any>>} IAsyncModelValidators
462
- * @property {function(any, any): IPromise<any>} [index] - Async validator function for each index.
463
- */
464
-
465
4
  /**
466
5
  * @type {Angular}
467
6
  */
package/src/loader.js CHANGED
@@ -34,7 +34,7 @@ export const VERSION = "[VI]{version}[/VI]";
34
34
 
35
35
  const ngMinErr = minErr("ng");
36
36
 
37
- /** @type {Object.<string, import('./index.js').angular.Module>} */
37
+ /** @type {Object.<string, import('./index.js').Module>} */
38
38
  const moduleCache = {};
39
39
 
40
40
  /**
package/src/public.js CHANGED
@@ -107,7 +107,7 @@ import { VERSION } from "./loader";
107
107
 
108
108
  /**
109
109
  * Initializes `ng`, `animate`, `message`, `aria` and `router` modules.
110
- * @returns {import('./index').angular.Module} `ng`module
110
+ * @returns {import('./index').Module} `ng`module
111
111
  */
112
112
  export function publishExternalAPI() {
113
113
  const module = setupModuleLoader(window);
@@ -139,7 +139,7 @@ export class TemplateFactory {
139
139
  /**
140
140
  * Creates a template by invoking an injectable provider function.
141
141
  *
142
- * @param {angular.IInjectable} provider Function to invoke via `locals`
142
+ * @param {import('../types').Injectable<any>} provider Function to invoke via `locals`
143
143
  * @param {Function} injectFn a function used to invoke the template provider
144
144
  * @param {angular.ResolveContext} context
145
145
  * @return {string|Promise.<string>} The template html as a string, or a promise
@@ -154,7 +154,7 @@ export class TemplateFactory {
154
154
  /**
155
155
  * Creates a component's template by invoking an injectable provider function.
156
156
  *
157
- * @param {angular.IInjectable} provider Function to invoke via `locals`
157
+ * @param {import('../types').Injectable<any>} provider Function to invoke via `locals`
158
158
  * @param {Function} injectFn a function used to invoke the template provider
159
159
  * @return {string} The template html as a string: "<component-name input1='::$resolve.foo'></component-name>".
160
160
  */
@@ -11,7 +11,7 @@ export function $ViewScrollProvider() {
11
11
  return $anchorScroll;
12
12
  }
13
13
  /**
14
- * @param {JQLite} $element
14
+ * @param {import('../shared/jqlite/jqlite').JQLite} $element
15
15
  */
16
16
  return function ($element) {
17
17
  return $timeout(
@@ -291,7 +291,7 @@ export function Browser(taskTracker) {
291
291
  }
292
292
 
293
293
  /**
294
- * @typedef {import('../index').angular.ServiceProvider} angular.BrowserProvider
294
+ * @typedef {import('../types').ServiceProvider} angular.BrowserProvider
295
295
  * @description
296
296
  * This object has two goals:
297
297
  *
@@ -1,7 +1,7 @@
1
1
  import { JQLite } from "../shared/jqlite/jqlite";
2
2
 
3
3
  /**
4
- * @typedef {import('../index').angular.ServiceProvider} angular.DocumentProvider
4
+ * @typedef {import('../types').ServiceProvider} DocumentProvider
5
5
  * @description
6
6
  * A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
7
7
  *
@@ -25,7 +25,7 @@ import { JQLite } from "../shared/jqlite/jqlite";
25
25
 
26
26
  /**
27
27
  * @constructor
28
- * @this {angular.DocumentProvider}
28
+ * @this {DocumentProvider}
29
29
  */
30
30
  export function $DocumentProvider() {
31
31
  this.$get = () => JQLite(window.document);
@@ -31,7 +31,7 @@ export let LogService = {
31
31
  };
32
32
 
33
33
  /**
34
- * @typedef {import('../index').ServiceProvider} angular.LogProvider
34
+ * @typedef {import('../types').ServiceProvider} angular.LogProvider
35
35
  * @property {function(): boolean} debugEnabled - Function to get the current debug state.
36
36
  * @property {function(boolean): angular.LogProvider} debugEnabled - Function to enable or disable debug.
37
37
  */
@@ -74,7 +74,7 @@ export function TemplateRequestProvider() {
74
74
  "$sce",
75
75
  /**
76
76
  *
77
- * @param {import('../core/exception-handler').angular.ErrorHandler} $exceptionHandler
77
+ * @param {import('../core/exception-handler').ErrorHandler} $exceptionHandler
78
78
  * @param {*} $templateCache
79
79
  * @param {*} $http
80
80
  * @param {*} $q