@angular-wave/angular.ts 0.15.1 → 0.16.0

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 (66) hide show
  1. package/@types/angular.d.ts +3 -0
  2. package/@types/animations/interface.d.ts +4 -0
  3. package/@types/animations/runner/animate-runner.d.ts +2 -1
  4. package/@types/animations/shared.d.ts +100 -44
  5. package/@types/core/compile/attributes.d.ts +34 -18
  6. package/@types/core/compile/compile.d.ts +4 -5
  7. package/@types/core/controller/interface.d.ts +1 -1
  8. package/@types/core/di/di.d.ts +0 -10
  9. package/@types/core/di/interface.d.ts +28 -0
  10. package/@types/core/di/internal-injector.d.ts +28 -19
  11. package/@types/core/di/ng-module/ng-module.d.ts +35 -4
  12. package/@types/core/interpolate/interpolate.d.ts +1 -1
  13. package/@types/core/parse/ast/ast.d.ts +6 -12
  14. package/@types/core/parse/ast-type.d.ts +1 -1
  15. package/@types/core/parse/interface.d.ts +8 -40
  16. package/@types/core/parse/interpreter.d.ts +4 -3
  17. package/@types/core/parse/lexer/lexer.d.ts +2 -30
  18. package/@types/core/parse/parse.d.ts +1 -34
  19. package/@types/core/parse/parser/parser.d.ts +2 -13
  20. package/@types/core/sanitize/sanitize-uri.d.ts +2 -2
  21. package/@types/core/scope/interface.d.ts +1 -0
  22. package/@types/core/scope/scope.d.ts +25 -28
  23. package/@types/directive/form/form.d.ts +8 -40
  24. package/@types/directive/input/input.d.ts +8 -40
  25. package/@types/directive/model/model.d.ts +34 -30
  26. package/@types/directive/model-options/model-options.d.ts +1 -2
  27. package/@types/directive/show-hide/show-hide.d.ts +2 -1
  28. package/@types/directive/validators/validators.d.ts +5 -7
  29. package/@types/filters/order-by.d.ts +2 -1
  30. package/@types/interface.d.ts +3 -2
  31. package/@types/namespace.d.ts +25 -3
  32. package/@types/router/state/state-object.d.ts +2 -2
  33. package/@types/router/state/state-service.d.ts +1 -0
  34. package/@types/router/template-factory.d.ts +4 -5
  35. package/@types/router/transition/reject-factory.d.ts +32 -9
  36. package/@types/router/transition/transition-event-type.d.ts +2 -2
  37. package/@types/router/transition/transition-hook.d.ts +5 -2
  38. package/@types/router/transition/transition-service.d.ts +2 -2
  39. package/@types/router/transition/transition.d.ts +2 -2
  40. package/@types/router/view/view.d.ts +4 -4
  41. package/@types/services/http/http.d.ts +1 -1
  42. package/@types/services/http/interface.d.ts +0 -7
  43. package/@types/services/pubsub/pubsub.d.ts +2 -2
  44. package/@types/services/sce/interface.d.ts +8 -0
  45. package/@types/services/sce/sce.d.ts +10 -7
  46. package/@types/services/sse/interface.d.ts +5 -20
  47. package/@types/services/storage/storage.d.ts +2 -2
  48. package/@types/services/stream/interface.d.ts +1 -0
  49. package/@types/services/stream/stream.d.ts +1 -1
  50. package/@types/services/template-request/interface.d.ts +2 -9
  51. package/@types/services/template-request/template-request.d.ts +6 -40
  52. package/@types/services/websocket/interface.d.ts +16 -0
  53. package/@types/services/websocket/websocket.d.ts +20 -0
  54. package/@types/shared/common.d.ts +48 -27
  55. package/@types/shared/constants.d.ts +2 -8
  56. package/@types/shared/dom.d.ts +33 -19
  57. package/@types/shared/utils.d.ts +8 -18
  58. package/README.md +15 -7
  59. package/dist/angular-ts.esm.js +4336 -4850
  60. package/dist/angular-ts.umd.js +4336 -4850
  61. package/dist/angular-ts.umd.min.js +1 -1
  62. package/dist/angular-ts.umd.min.js.gz +0 -0
  63. package/dist/angular-ts.umd.min.js.map +1 -1
  64. package/package.json +1 -1
  65. package/@types/core/di/inteface.d.ts +0 -11
  66. /package/@types/core/compile/{inteface.d.ts → interface.d.ts} +0 -0
@@ -5,36 +5,21 @@ import type { Scope } from "../scope/scope.js";
5
5
  */
6
6
  export interface CompiledExpressionProps {
7
7
  /** Indicates if the expression is a literal. */
8
- literal: boolean;
8
+ _literal: boolean;
9
9
  /** Indicates if the expression is constant. */
10
10
  constant: boolean;
11
11
  /** Optional flag for pure expressions. */
12
- isPure?: boolean;
13
- /** Indicates if the expression should be evaluated only once. */
14
- oneTime: boolean;
12
+ _isPure?: boolean;
15
13
  /** AST node decorated with metadata. */
16
- decoratedNode: DecoratedASTNode;
17
- /**
18
- * Optional custom watch delegate function for the expression.
19
- * @param scope - The current scope.
20
- * @param listener - A listener function.
21
- * @param equalityCheck - Whether to use deep equality.
22
- * @param expression - The compiled expression or string.
23
- */
24
- $$watchDelegate?: (
25
- scope: Scope,
26
- listener: Function,
27
- equalityCheck: boolean,
28
- expression: CompiledExpression | string | ((scope: Scope) => any),
29
- ) => any;
14
+ _decoratedNode: DecoratedASTNode;
30
15
  /** Expression inputs; may be an array or a function. */
31
- inputs: any[] | Function;
16
+ _inputs?: any[] | Function;
32
17
  /**
33
18
  * Optional assign function for two-way binding.
34
19
  * Assigns a value to a context.
35
20
  * If value is not provided, may return the getter.
36
21
  */
37
- assign?: (context: any, value: any) => any;
22
+ _assign?: (context: any, value: any) => any;
38
23
  }
39
24
  /**
40
25
  * Expression function with context and optional locals/assign.
@@ -50,30 +35,13 @@ export type CompiledExpressionFunction = (
50
35
  */
51
36
  export type CompiledExpression = CompiledExpressionFunction &
52
37
  CompiledExpressionProps;
53
- /**
54
- * Map used for expressions that watch specific object keys.
55
- */
56
- export interface CompiledExpressionHandlerMap {
57
- /** Indicates if the expression is a literal. */
58
- literal: boolean;
59
- /** Indicates if the expression is constant. */
60
- constant: boolean;
61
- /** Optional flag for pure expressions. */
62
- isPure?: boolean;
63
- /** Indicates if the expression should be evaluated only once. */
64
- oneTime: boolean;
65
- /** A map of property keys to observe. */
66
- keyMap: Map<string, Function>;
67
- }
68
38
  /**
69
39
  * Parses a string or expression function into a compiled expression.
70
- * @param expression - The input expression (string or function).
40
+ * @param expression - The input expression to evaluate.
71
41
  * @param interceptorFn - Optional value transformer.
72
- * @param expensiveChecks - Whether to enable expensive change detection.
73
42
  * @returns A compiled expression.
74
43
  */
75
44
  export type ParseService = (
76
- expression?: CompiledExpression | string | ((scope: Scope) => any),
77
- interceptorFn?: (value: any, scope: Scope, locals: any) => any,
78
- expensiveChecks?: boolean,
45
+ expression: string,
46
+ interceptorFn?: (value: any) => any,
79
47
  ) => CompiledExpression;
@@ -7,10 +7,11 @@ export const PURITY_ABSOLUTE: 1;
7
7
  export const PURITY_RELATIVE: 2;
8
8
  export class ASTInterpreter {
9
9
  /**
10
- * @param {function(any):any} $filter
10
+ * @param {ng.FilterService} $filter
11
11
  */
12
- constructor($filter: (arg0: any) => any);
13
- _$filter: (arg0: any) => any;
12
+ constructor($filter: ng.FilterService);
13
+ /** @type {ng.FilterService} */
14
+ _$filter: ng.FilterService;
14
15
  /**
15
16
  * Compiles the AST into a function.
16
17
  * @param {import("./ast/ast.js").ASTNode} ast - The AST to compile.
@@ -1,28 +1,16 @@
1
- /**
2
- * @typedef {Object} LexerOptions
3
- * @property {(ch: string, codePoint: number) => boolean} [isIdentifierStart] - Custom function to determine if a character is a valid identifier start.
4
- * @property {(ch: string, codePoint: number) => boolean} [isIdentifierContinue] - Custom function to determine if a character is a valid identifier continuation.
5
- */
6
1
  /**
7
2
  * Represents a lexer that tokenizes input text. The Lexer takes the original expression string and returns an array of tokens parsed from that string.
8
3
  * For example, the string "a + b" would result in tokens for a, +, and b.
9
4
  */
10
5
  export class Lexer {
11
- /**
12
- * Creates an instance of Lexer.
13
- * @param {LexerOptions} options - Lexer options.
14
- */
15
- constructor(options: LexerOptions);
16
- /** @type {LexerOptions} */
17
- _options: LexerOptions;
6
+ _text: string;
7
+ _index: number;
18
8
  /**
19
9
  * Tokenizes the input text.
20
10
  * @param {string} text Input text to lex.
21
11
  * @returns {Array<Token>} Array of tokens.
22
12
  */
23
13
  _lex(text: string): Array<Token>;
24
- _text: string;
25
- _index: number;
26
14
  /** @type {Array<Token>} */
27
15
  _tokens: Array<Token>;
28
16
  /**
@@ -62,12 +50,6 @@ export class Lexer {
62
50
  * @returns {boolean} True if character is a valid identifier continuation, false otherwise.
63
51
  */
64
52
  _isIdentifierContinue(ch: string): boolean;
65
- /**
66
- * Converts a character to its Unicode code point.
67
- * @param {string} ch Character to convert.
68
- * @returns {number} Unicode code point.
69
- */
70
- _codePointAt(ch: string): number;
71
53
  /**
72
54
  * Peeks at the next multicharacter sequence in the text.
73
55
  * @returns {string} Next multicharacter sequence.
@@ -107,13 +89,3 @@ export class Lexer {
107
89
  _handleUnicodeEscape(): string;
108
90
  }
109
91
  export type Token = import("./token.ts").Token;
110
- export type LexerOptions = {
111
- /**
112
- * - Custom function to determine if a character is a valid identifier start.
113
- */
114
- isIdentifierStart?: (ch: string, codePoint: number) => boolean;
115
- /**
116
- * - Custom function to determine if a character is a valid identifier continuation.
117
- */
118
- isIdentifierContinue?: (ch: string, codePoint: number) => boolean;
119
- };
@@ -1,36 +1,3 @@
1
- export function constantWatchDelegate(
2
- scope: any,
3
- listener: any,
4
- objectEquality: any,
5
- parsedExpression: any,
6
- ): any;
7
1
  export class ParseProvider {
8
- /**
9
- * Allows defining the set of characters that are allowed in AngularTS expressions. The function
10
- * `identifierStart` will get called to know if a given character is a valid character to be the
11
- * first character for an identifier. The function `identifierContinue` will get called to know if
12
- * a given character is a valid character to be a follow-up identifier character. The functions
13
- * `identifierStart` and `identifierContinue` will receive as arguments the single character to be
14
- * identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
15
- * mind that the `string` parameter can be two characters long depending on the character
16
- * representation. It is expected for the function to return `true` or `false`, whether that
17
- * character is allowed or not.
18
- *
19
- * Since this function will be called extensively, keep the implementation of these functions fast,
20
- * as the performance of these functions have a direct impact on the expressions parsing speed.
21
- *
22
- * @param {function(any):boolean} [identifierStart] The function that will decide whether the given character is
23
- * a valid identifier start character.
24
- * @param {function(any):boolean} [identifierContinue] The function that will decide whether the given character is
25
- * a valid identifier continue character.
26
- * @returns {ParseProvider}
27
- */
28
- setIdentifierFns: (
29
- identifierStart?: (arg0: any) => boolean,
30
- identifierContinue?: (arg0: any) => boolean,
31
- ) => ParseProvider;
32
- $get: (
33
- | string
34
- | (($filter: (any: any) => any) => import("./interface.ts").ParseService)
35
- )[];
2
+ $get: (string | (($filter: ng.FilterService) => ng.ParseService))[];
36
3
  }
@@ -1,7 +1,3 @@
1
- /**
2
- * @typedef {Object} ParsedAST
3
- * @property {import("../ast/ast-node.d.ts").ASTNode} ast - AST representation of expression
4
- */
5
1
  /**
6
2
  * @constructor
7
3
  */
@@ -9,11 +5,11 @@ export class Parser {
9
5
  /**
10
6
  *
11
7
  * @param {import('../lexer/lexer.js').Lexer} lexer
12
- * @param {function(any):any} $filter
8
+ * @param {ng.FilterService} $filter
13
9
  */
14
10
  constructor(
15
11
  lexer: import("../lexer/lexer.js").Lexer,
16
- $filter: (arg0: any) => any,
12
+ $filter: ng.FilterService,
17
13
  );
18
14
  /** @type {AST} */
19
15
  _ast: AST;
@@ -24,13 +20,6 @@ export class Parser {
24
20
  * @returns {import("../interface.ts").CompiledExpression}
25
21
  */
26
22
  _parse(exp: string): import("../interface.ts").CompiledExpression;
27
- #private;
28
23
  }
29
- export type ParsedAST = {
30
- /**
31
- * - AST representation of expression
32
- */
33
- ast: import("../ast/ast-node.d.ts").ASTNode;
34
- };
35
24
  import { AST } from "../ast/ast.js";
36
25
  import { ASTInterpreter } from "../interpreter.js";
@@ -1,9 +1,9 @@
1
1
  /** @typedef {import('../../interface.ts').ServiceProvider} ServiceProvider */
2
2
  /**
3
3
  * Private service to sanitize uris for links and images. Used by $compile.
4
- * @implements {ServiceProvider}
4
+ * @extends {ServiceProvider}
5
5
  */
6
- export class SanitizeUriProvider implements ServiceProvider {
6
+ export class SanitizeUriProvider {
7
7
  /**
8
8
  * @private
9
9
  * @type {RegExp}
@@ -1,5 +1,6 @@
1
1
  import type { CompiledExpression } from "../parse/interface.ts";
2
2
  export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
3
+ export type NonScope = string[] | boolean | undefined;
3
4
  export interface Listener {
4
5
  originalTarget: any;
5
6
  listenerFn: ListenerFn;
@@ -3,29 +3,33 @@
3
3
  * Creates a deep proxy for the target object, intercepting property changes
4
4
  * and recursively applying proxies to nested objects.
5
5
  *
6
- * @param {Object} target - The object to be wrapped in a proxy.
6
+ * @param {Object & {$nonscope?: import("./interface.ts").NonScope} & Record<string, any>} target - The object to be wrapped in a proxy.
7
7
  * @param {Scope} [context] - The context for the handler, used to track listeners.
8
- * @returns {Scope} - A proxy that intercepts operations on the target object,
8
+ * @returns {Scope|Object} - A proxy that intercepts operations on the target object,
9
9
  * or the original value if the target is not an object.
10
10
  */
11
- export function createScope(target?: any, context?: Scope): Scope;
11
+ export function createScope(
12
+ target?: any & {
13
+ $nonscope?: import("./interface.ts").NonScope;
14
+ } & Record<string, any>,
15
+ context?: Scope,
16
+ ): Scope | any;
12
17
  /**
13
- * @ignore
14
18
  * Checks if a target should be excluded from scope observability
15
19
  * @param {any} target
16
20
  * @returns {boolean}
17
21
  */
18
22
  export function isNonScope(target: any): boolean;
19
- /** @ignore @type {Function[]}*/
23
+ /** @ignore @type {Function[]} */
20
24
  export const $postUpdateQueue: Function[];
21
25
  export class RootScopeProvider {
22
- rootScope: Scope;
26
+ rootScope: any;
23
27
  $get: (
24
28
  | string
25
29
  | ((
26
30
  exceptionHandler: ng.ExceptionHandlerService,
27
31
  parse: ng.ParseService,
28
- ) => Scope)
32
+ ) => any)
29
33
  )[];
30
34
  }
31
35
  /**
@@ -45,22 +49,14 @@ export class Scope {
45
49
  context: Scope;
46
50
  /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners */
47
51
  watchers: Map<string, Array<import("./interface.ts").Listener>>;
48
- /** @type {Map<String, Function[]>} Event listeners */
49
- $$listeners: Map<string, Function[]>;
50
- /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
51
- foreignListeners: Map<string, Array<import("./interface.ts").Listener>>;
52
- /** @type {Set<Proxy<ng.Scope>>} */
53
- foreignProxies: Set<ProxyConstructor>;
54
- /** @type {WeakMap<Object, Array<string>>} */
55
- objectListeners: WeakMap<any, Array<string>>;
56
- /** @type {Map<Function, {oldValue: any, fn: Function}>} */
57
- functionListeners: Map<
58
- Function,
59
- {
60
- oldValue: any;
61
- fn: Function;
62
- }
63
- >;
52
+ /** @private @type {Map<String, Function[]>} Event listeners */
53
+ private _listeners;
54
+ /** @private @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
55
+ private _foreignListeners;
56
+ /** @private @type {Set<Proxy<ng.Scope>>} */
57
+ private _foreignProxies;
58
+ /** @private @type {WeakMap<Object, Array<string>>} */
59
+ private _objectListeners;
64
60
  /** @type {Proxy<Scope>} Current proxy being operated on */
65
61
  $proxy: ProxyConstructor;
66
62
  /** @type {Scope} The actual proxy */
@@ -82,13 +78,14 @@ export class Scope {
82
78
  */
83
79
  $root: Scope;
84
80
  $parent: Scope;
85
- filters: any[];
86
- /** @type {boolean} */
87
- $$destroyed: boolean;
88
- scheduled: any[];
81
+ /** @ignore @type {boolean} */
82
+ _destroyed: boolean;
83
+ /** @private @type {import("./interface.ts").Listener[]} A list of scheduled Event listeners */
84
+ private _scheduled;
89
85
  $scopename: any;
90
86
  /** @private */
91
- private propertyMap;
87
+ /** @type {Record<any, any>} */
88
+ propertyMap: Record<any, any>;
92
89
  /**
93
90
  * Intercepts and handles property assignments on the target object. If a new value is
94
91
  * an object, it will be recursively proxied.
@@ -62,7 +62,7 @@ export const PENDING_CLASS: "ng-pending";
62
62
  * - `week`
63
63
  * - `month`
64
64
  *
65
- * @description
65
+ *
66
66
  * `FormController` keeps track of all its controls and nested forms as well as the state of them,
67
67
  * such as being valid/invalid or dirty/pristine.
68
68
  *
@@ -101,13 +101,13 @@ export class FormController {
101
101
  $invalid: boolean;
102
102
  $submitted: boolean;
103
103
  /** @type {FormController|Object} */
104
- $$parentForm: FormController | any;
105
- $$element: Element;
106
- $$animate: import("../../animations/interface.ts").AnimateService;
104
+ _parentForm: FormController | any;
105
+ _element: Element;
106
+ _animate: import("../../animations/interface.ts").AnimateService;
107
107
  $error: {};
108
- $$success: {};
108
+ _success: {};
109
109
  $pending: any;
110
- $$classCache: {};
110
+ _classCache: {};
111
111
  $target: {};
112
112
  /**
113
113
  * Rollback all form controls pending updates to the `$modelValue`.
@@ -237,41 +237,9 @@ export class FormController {
237
237
  }
238
238
  export const formDirective: (
239
239
  | string
240
- | (($parse: any) => {
241
- name: string;
242
- restrict: string;
243
- require: string[];
244
- controller: typeof FormController;
245
- compile: (
246
- formElement: any,
247
- attr: any,
248
- ) => {
249
- pre: (
250
- scope: any,
251
- formElementParam: any,
252
- attrParam: any,
253
- ctrls: any,
254
- ) => void;
255
- };
256
- })
240
+ | (($parse: ng.ParseService) => ng.Directive)
257
241
  )[];
258
242
  export const ngFormDirective: (
259
243
  | string
260
- | (($parse: any) => {
261
- name: string;
262
- restrict: string;
263
- require: string[];
264
- controller: typeof FormController;
265
- compile: (
266
- formElement: any,
267
- attr: any,
268
- ) => {
269
- pre: (
270
- scope: any,
271
- formElementParam: any,
272
- attrParam: any,
273
- ctrls: any,
274
- ) => void;
275
- };
276
- })
244
+ | (($parse: ng.ParseService) => ng.Directive)
277
245
  )[];
@@ -1,20 +1,9 @@
1
- export function weekParser(isoWeek: any, existingDate: any): any;
2
- export function createDateParser(
3
- regexp: any,
4
- mapping: any,
5
- ): (iso: any, previousDate: any) => any;
6
- export function createDateInputType(
7
- type: any,
8
- regexp: any,
9
- parseDate: any,
10
- ): (
11
- scope: any,
12
- element: any,
13
- attr: any,
14
- ctrl: any,
15
- $filter: any,
16
- $parse: any,
17
- ) => void;
1
+ /**
2
+ * @param {string} type
3
+ * @param {RegExp} regexp
4
+ * @returns {*}
5
+ */
6
+ export function createStringDateInputType(type: string, regexp: RegExp): any;
18
7
  export function badInputChecker(
19
8
  scope: any,
20
9
  element: any,
@@ -35,7 +24,6 @@ export function numberInputType(
35
24
  element: any,
36
25
  attr: any,
37
26
  ctrl: any,
38
- $filter: any,
39
27
  $parse: any,
40
28
  ): void;
41
29
  export function rangeInputType(
@@ -45,41 +33,21 @@ export function rangeInputType(
45
33
  ctrl: any,
46
34
  ): void;
47
35
  /**
48
- * @param {ng.FilterFactory} $filter
49
36
  * @param {ng.ParseService} $parse
50
37
  * @returns {ng.Directive}
51
38
  */
52
- export function inputDirective(
53
- $filter: ng.FilterFactory,
54
- $parse: ng.ParseService,
55
- ): ng.Directive;
39
+ export function inputDirective($parse: ng.ParseService): ng.Directive;
56
40
  export namespace inputDirective {
57
41
  let $inject: string[];
58
42
  }
59
43
  /**
60
44
  * @returns {ng.Directive}
61
45
  */
62
- export function hiddenInputBrowserCacheDirective(): ng.Directive;
46
+ export function hiddenInputDirective(): ng.Directive;
63
47
  /**
64
48
  * @returns {ng.Directive}
65
49
  */
66
50
  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;
83
51
  export const ISO_DATE_REGEXP: RegExp;
84
52
  export const URL_REGEXP: RegExp;
85
53
  export const EMAIL_REGEXP: RegExp;
@@ -71,7 +71,7 @@ export class NgModelController {
71
71
  /** @type {any} The value in the model that the control is bound to. */
72
72
  $modelValue: any;
73
73
  /** @type {any} */
74
- $$rawModelValue: any;
74
+ _rawModelValue: any;
75
75
  /** @type {import("./interface.ts").ModelValidators} */
76
76
  $validators: import("./interface.ts").ModelValidators;
77
77
  /** @type {import("./interface.ts").AsyncModelValidators} */
@@ -95,10 +95,10 @@ export class NgModelController {
95
95
  /** @type {boolean} */
96
96
  $invalid: boolean;
97
97
  $error: {};
98
- $$success: {};
98
+ _success: {};
99
99
  $pending: any;
100
100
  $name: string;
101
- $$parentForm: {
101
+ _parentForm: {
102
102
  $nonscope: boolean;
103
103
  $addControl: Function;
104
104
  $getControls: () => any[];
@@ -113,7 +113,7 @@ export class NgModelController {
113
113
  _setSubmitted: Function;
114
114
  };
115
115
  $options: {
116
- $$options: import("../model-options/model-options.js").ModelOptionsConfig;
116
+ _options: import("../model-options/model-options.js").ModelOptionsConfig;
117
117
  getOption(name: string):
118
118
  | string
119
119
  | boolean
@@ -123,8 +123,8 @@ export class NgModelController {
123
123
  };
124
124
  createChild(options: ModelOptionsConfig): /*elided*/ any;
125
125
  };
126
- $$updateEvents: string;
127
- $$updateEventHandler(ev: any): void;
126
+ _updateEvents: string;
127
+ _updateEventHandler(ev: any): void;
128
128
  _parsedNgModel: import("../../core/parse/interface.ts").CompiledExpression;
129
129
  _parsedNgModelAssign: (context: any, value: any) => any;
130
130
  /**
@@ -135,26 +135,26 @@ export class NgModelController {
135
135
  | import("../../core/parse/interface.ts").CompiledExpression
136
136
  | ((arg0: ng.Scope) => any);
137
137
  _ngModelSet: (context: any, value: any) => any;
138
- $$pendingDebounce: number;
139
- $$parserValid: boolean;
138
+ _pendingDebounce: number;
139
+ _parserValid: boolean;
140
140
  /** @type {string} */
141
- $$parserName: string;
141
+ _parserName: string;
142
142
  /** @type {number} */
143
- $$currentValidationRunId: number;
143
+ _currentValidationRunId: number;
144
144
  /** @type {ng.Scope} */
145
- $$scope: ng.Scope;
146
- $$attr: ng.Attributes;
147
- $$element: Element;
148
- $$animate: import("../../animations/interface.ts").AnimateService;
149
- $$parse: import("../../core/parse/interface.ts").ParseService;
150
- $$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
151
- $$hasNativeValidators: boolean;
152
- $$classCache: {};
153
- $$eventRemovers: Set<any>;
145
+ _scope: ng.Scope;
146
+ _attr: ng.Attributes;
147
+ _element: Element;
148
+ _animate: import("../../animations/interface.ts").AnimateService;
149
+ _parse: import("../../core/parse/interface.ts").ParseService;
150
+ _exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
151
+ _hasNativeValidators: boolean;
152
+ _classCache: {};
153
+ _eventRemovers: Set<any>;
154
154
  set(object: any, property: any): void;
155
155
  unset(object: any, property: any): void;
156
156
  $setValidity(validationErrorKey: any, state: any): void;
157
- $$initGetterSetters(): void;
157
+ _initGetterSetters(): void;
158
158
  /**
159
159
  * Called when the view needs to be updated. It is expected that the user of the ng-model
160
160
  * directive will implement this method.
@@ -187,7 +187,7 @@ export class NgModelController {
187
187
  * @returns {boolean} True if `value` is "empty".
188
188
  */
189
189
  $isEmpty(value: any): boolean;
190
- $$updateEmptyClasses(value: any): void;
190
+ _updateEmptyClasses(value: any): void;
191
191
  /**
192
192
  * Sets the control to its pristine state.
193
193
  *
@@ -316,7 +316,7 @@ export class NgModelController {
316
316
  * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.
317
317
  */
318
318
  $validate(): void;
319
- $$runValidators(modelValue: any, viewValue: any, doneCallback: any): void;
319
+ _runValidators(modelValue: any, viewValue: any, doneCallback: any): void;
320
320
  /**
321
321
  * Commit a pending update to the `$modelValue`.
322
322
  *
@@ -325,9 +325,9 @@ export class NgModelController {
325
325
  * usually handles calling this in response to input events.
326
326
  */
327
327
  $commitViewValue(): void;
328
- $$lastCommittedViewValue: any;
329
- $$parseAndValidate(): void;
330
- $$writeModelToScope(): void;
328
+ _lastCommittedViewValue: any;
329
+ _parseAndValidate(): void;
330
+ _writeModelToScope(): void;
331
331
  /**
332
332
  * Update the view value.
333
333
  *
@@ -376,7 +376,7 @@ export class NgModelController {
376
376
  * @param {string} [trigger] Event that triggered the update.
377
377
  */
378
378
  $setViewValue(value: any, trigger?: string): void;
379
- $$debounceViewValueCommit(trigger: any): void;
379
+ _debounceViewValueCommit(trigger: any): void;
380
380
  /**
381
381
  *
382
382
  * Override the current model options settings programmatically.
@@ -513,11 +513,15 @@ export class NgModelController {
513
513
  /**
514
514
  * This method is called internally to run the $formatters on the $modelValue
515
515
  */
516
- $$format(): any;
516
+ _format(): any;
517
517
  /**
518
+ * @ignore
518
519
  * This method is called internally when the bound scope value changes.
519
520
  */
520
- $$setModelValue(modelValue: any): void;
521
- $$removeAllEventListeners(): void;
522
- $$setUpdateOnEvents(): void;
521
+ _setModelValue(modelValue: any): void;
522
+ /**
523
+ * @ignore
524
+ */
525
+ _removeAllEventListeners(): void;
526
+ _setUpdateOnEvents(): void;
523
527
  }
@@ -27,7 +27,6 @@ export type ModelOptionsConfig = {
27
27
  updateOnDefault?: boolean;
28
28
  };
29
29
  /**
30
- * @description
31
30
  * A container for the options set by the {@link ngModelOptions} directive
32
31
  */
33
32
  declare class ModelOptions {
@@ -37,7 +36,7 @@ declare class ModelOptions {
37
36
  */
38
37
  constructor(options: ModelOptionsConfig);
39
38
  /** @type {ModelOptionsConfig} */
40
- $$options: ModelOptionsConfig;
39
+ _options: ModelOptionsConfig;
41
40
  /**
42
41
  * Returns the value of the given option
43
42
  * @param {string} name the name of the option to retrieve
@@ -7,9 +7,10 @@ export namespace ngShowDirective {
7
7
  let $inject: string[];
8
8
  }
9
9
  /**
10
+ * @param {ng.AnimateService} $animate
10
11
  * @returns {ng.Directive}
11
12
  */
12
- export function ngHideDirective($animate: any): ng.Directive;
13
+ export function ngHideDirective($animate: ng.AnimateService): ng.Directive;
13
14
  export namespace ngHideDirective {
14
15
  let $inject_1: string[];
15
16
  export { $inject_1 as $inject };