@angular-wave/angular.ts 0.14.2 → 0.15.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.
- package/@types/angular.d.ts +28 -25
- package/@types/animations/animate-cache.d.ts +46 -2
- package/@types/animations/animate-children-directive.d.ts +4 -4
- package/@types/animations/animate-js.d.ts +1 -10
- package/@types/animations/animate.d.ts +6 -1
- package/@types/animations/interface.d.ts +17 -2
- package/@types/animations/queue/animate-queue.d.ts +0 -1
- package/@types/animations/raf-scheduler.d.ts +3 -3
- package/@types/animations/runner/animate-runner.d.ts +81 -57
- package/@types/animations/shared.d.ts +0 -16
- package/@types/core/compile/attributes.d.ts +13 -10
- package/@types/core/compile/compile.d.ts +2 -2
- package/@types/core/controller/controller.d.ts +1 -1
- package/@types/core/di/ng-module/ng-module.d.ts +8 -7
- package/@types/core/filter/filter.d.ts +1 -1
- package/@types/core/interpolate/interface.d.ts +1 -0
- package/@types/core/parse/ast/ast.d.ts +30 -39
- package/@types/core/parse/ast-type.d.ts +16 -16
- package/@types/core/parse/interface.d.ts +1 -1
- package/@types/core/parse/interpreter.d.ts +6 -29
- package/@types/core/parse/lexer/lexer.d.ts +19 -19
- package/@types/core/parse/parser/parser.d.ts +4 -9
- package/@types/core/scope/interface.d.ts +0 -6
- package/@types/core/scope/scope.d.ts +13 -13
- package/@types/directive/attrs/attrs.d.ts +2 -5
- package/@types/directive/class/class.d.ts +3 -3
- package/@types/directive/controller/controller.d.ts +2 -2
- package/@types/directive/form/form.d.ts +4 -4
- package/@types/directive/include/include.d.ts +4 -4
- package/@types/directive/messages/messages.d.ts +9 -8
- package/@types/directive/model/model.d.ts +5 -5
- package/@types/directive/ref/ref.d.ts +5 -8
- package/@types/directive/repeat/repeat.d.ts +2 -4
- package/@types/directive/script/script.d.ts +2 -2
- package/@types/directive/select/select.d.ts +7 -8
- package/@types/directive/validators/validators.d.ts +2 -2
- package/@types/injection-tokens.d.ts +3 -2
- package/@types/interface.d.ts +50 -22
- package/@types/namespace.d.ts +42 -6
- package/@types/router/common/trace.d.ts +5 -5
- package/@types/router/directives/state-directives.d.ts +26 -24
- package/@types/router/directives/view-directive.d.ts +27 -131
- package/@types/router/glob/glob.d.ts +2 -6
- package/@types/router/params/interface.d.ts +2 -2
- package/@types/router/params/param.d.ts +3 -3
- package/@types/router/router.d.ts +1 -1
- package/@types/router/scroll/interface.d.ts +3 -0
- package/@types/router/scroll/view-scroll.d.ts +8 -0
- package/@types/router/state/interface.d.ts +25 -126
- package/@types/router/state/state-builder.d.ts +4 -1
- package/@types/router/state/state-object.d.ts +2 -2
- package/@types/router/state/state-queue-manager.d.ts +4 -4
- package/@types/router/state/state-registry.d.ts +16 -11
- package/@types/router/state/state-service.d.ts +18 -12
- package/@types/router/template-factory.d.ts +2 -2
- package/@types/router/transition/interface.d.ts +9 -9
- package/@types/router/transition/reject-factory.d.ts +5 -5
- package/@types/router/transition/transition-hook.d.ts +22 -23
- package/@types/router/transition/transition-service.d.ts +12 -5
- package/@types/router/transition/transition.d.ts +17 -13
- package/@types/router/url/url-rule.d.ts +12 -9
- package/@types/router/url/url-service.d.ts +14 -10
- package/@types/router/view/view.d.ts +4 -4
- package/@types/services/anchor-scroll/anchor-scroll.d.ts +2 -17
- package/@types/services/anchor-scroll/interface.d.ts +15 -0
- package/@types/services/cookie/cookie.d.ts +6 -4
- package/@types/services/exception/interface.d.ts +3 -3
- package/@types/services/http/http.d.ts +8 -7
- package/@types/services/log/log.d.ts +7 -3
- package/@types/services/pubsub/pubsub.d.ts +18 -14
- package/@types/services/rest/rest.d.ts +12 -10
- package/@types/services/sce/sce.d.ts +9 -1
- package/@types/services/sse/sse.d.ts +1 -1
- package/@types/shared/node.d.ts +8 -0
- package/@types/shared/noderef.d.ts +11 -14
- package/@types/shared/strings.d.ts +18 -6
- package/@types/shared/utils.d.ts +111 -73
- package/@types/shared/validate.d.ts +49 -0
- package/dist/angular-ts.esm.js +2581 -2619
- package/dist/angular-ts.umd.js +2581 -2619
- package/dist/angular-ts.umd.min.js +2 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -0
- package/package.json +1 -1
- package/@types/router/view-scroll.d.ts +0 -12
|
@@ -7,8 +7,8 @@ export class AST {
|
|
|
7
7
|
*/
|
|
8
8
|
constructor(lexer: import("../lexer/lexer.js").Lexer);
|
|
9
9
|
/** @type {import('../lexer/lexer.js').Lexer} */
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
_lexer: import("../lexer/lexer.js").Lexer;
|
|
11
|
+
_selfReferential: {
|
|
12
12
|
this: {
|
|
13
13
|
type: number;
|
|
14
14
|
};
|
|
@@ -16,149 +16,140 @@ export class AST {
|
|
|
16
16
|
type: number;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
_index: number;
|
|
19
20
|
/**
|
|
20
21
|
* Parses the input text and generates an AST.
|
|
21
22
|
* @param {string} text - The input text to parse.
|
|
22
23
|
* @returns {ASTNode} The root node of the AST.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
_ast(text: string): ASTNode;
|
|
26
|
+
_text: string;
|
|
27
|
+
_tokens: import("../lexer/token.js").Token[];
|
|
27
28
|
/**
|
|
28
29
|
* Parses a program.
|
|
29
30
|
* @returns {ASTNode} The program node.
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
_program(): ASTNode;
|
|
32
33
|
/**
|
|
33
34
|
* Parses an expression statement.
|
|
34
35
|
* @returns {ASTNode} The expression statement node.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
_expressionStatement(): ASTNode;
|
|
37
38
|
/**
|
|
38
39
|
* Parses a filter chain.
|
|
39
40
|
* @returns {ASTNode} The filter chain node.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
_filterChain(): ASTNode;
|
|
42
43
|
/**
|
|
43
44
|
* Parses an assignment expression.
|
|
44
45
|
* @returns {ASTNode} The assignment expression node.
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
_assignment(): ASTNode;
|
|
47
48
|
/**
|
|
48
49
|
* Parses a ternary expression.
|
|
49
50
|
* @returns {ASTNode} The ternary expression node.
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
_ternary(): ASTNode;
|
|
52
53
|
/**
|
|
53
54
|
* Parses a logical OR expression.
|
|
54
55
|
* @returns {ASTNode} The logical OR expression node.
|
|
55
56
|
*/
|
|
56
|
-
|
|
57
|
+
_logicalOR(): ASTNode;
|
|
57
58
|
/**
|
|
58
59
|
* Parses a logical AND expression.
|
|
59
60
|
* @returns {ASTNode} The logical AND expression node.
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
|
+
_logicalAND(): ASTNode;
|
|
62
63
|
/**
|
|
63
64
|
* Parses an equality expression.
|
|
64
65
|
* @returns {ASTNode} The equality expression node.
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
_equality(): ASTNode;
|
|
67
68
|
/**
|
|
68
69
|
* Parses a relational expression.
|
|
69
70
|
* @returns {ASTNode} The relational expression node.
|
|
70
71
|
*/
|
|
71
|
-
|
|
72
|
+
_relational(): ASTNode;
|
|
72
73
|
/**
|
|
73
74
|
* Parses an additive expression.
|
|
74
75
|
* @returns {ASTNode} The additive expression node.
|
|
75
76
|
*/
|
|
76
|
-
|
|
77
|
+
_additive(): ASTNode;
|
|
77
78
|
/**
|
|
78
79
|
* Parses a multiplicative expression.
|
|
79
80
|
* @returns {ASTNode} The multiplicative expression node.
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
+
_multiplicative(): ASTNode;
|
|
82
83
|
/**
|
|
83
84
|
* Parses a unary expression.
|
|
84
85
|
* @returns {ASTNode} The unary expression node.
|
|
85
86
|
*/
|
|
86
|
-
|
|
87
|
+
_unary(): ASTNode;
|
|
87
88
|
/**
|
|
88
89
|
* Parses a primary expression.
|
|
89
90
|
* @returns {ASTNode} The primary expression node.
|
|
90
91
|
*/
|
|
91
|
-
|
|
92
|
+
_primary(): ASTNode;
|
|
92
93
|
/**
|
|
93
94
|
* Parses a filter.
|
|
94
95
|
* @param {ASTNode} baseExpression - The base expression to apply the filter to.
|
|
95
96
|
* @returns {ASTNode} The filter node.
|
|
96
97
|
*/
|
|
97
|
-
|
|
98
|
+
_filter(baseExpression: ASTNode): ASTNode;
|
|
98
99
|
/**
|
|
99
100
|
* Parses function arguments.
|
|
100
101
|
* @returns {ASTNode[]} The arguments array.
|
|
101
102
|
*/
|
|
102
|
-
|
|
103
|
+
_parseArguments(): ASTNode[];
|
|
103
104
|
/**
|
|
104
105
|
* Parses an identifier.
|
|
105
106
|
* @returns {ASTNode} The identifier node.
|
|
106
107
|
*/
|
|
107
|
-
|
|
108
|
+
_identifier(): ASTNode;
|
|
108
109
|
/**
|
|
109
110
|
* Parses a constant.
|
|
110
111
|
* @returns {ASTNode} The constant node.
|
|
111
112
|
*/
|
|
112
|
-
|
|
113
|
+
_constant(): ASTNode;
|
|
113
114
|
/**
|
|
114
115
|
* Parses an array declaration.
|
|
115
116
|
* @returns {ASTNode} The array declaration node.
|
|
116
117
|
*/
|
|
117
|
-
|
|
118
|
+
_arrayDeclaration(): ASTNode;
|
|
118
119
|
/**
|
|
119
120
|
* Parses an object.
|
|
120
121
|
* @returns {ASTNode} The object node.
|
|
121
122
|
*/
|
|
122
|
-
|
|
123
|
+
_object(): ASTNode;
|
|
123
124
|
/**
|
|
124
125
|
* Throws a syntax error.
|
|
125
126
|
* @param {string} msg - The error message.
|
|
126
127
|
* @param {import("../lexer/lexer.js").Token} [token] - The token that caused the error.
|
|
127
128
|
*/
|
|
128
|
-
|
|
129
|
+
_throwError(msg: string, token?: import("../lexer/lexer.js").Token): void;
|
|
129
130
|
/**
|
|
130
131
|
* Consumes a token if it matches the expected type.
|
|
131
132
|
* @param {string} [e1] - The expected token type.
|
|
132
133
|
* @returns {import("../lexer/lexer.js").Token} The consumed token.
|
|
133
134
|
*/
|
|
134
|
-
|
|
135
|
+
_consume(e1?: string): import("../lexer/lexer.js").Token;
|
|
135
136
|
/**
|
|
136
137
|
* Returns the next token without consuming it.
|
|
137
138
|
* @returns {import("../lexer/lexer.js").Token} The next token.
|
|
138
139
|
*/
|
|
139
|
-
|
|
140
|
+
_peekToken(): import("../lexer/lexer.js").Token;
|
|
140
141
|
/**
|
|
141
142
|
* Checks if the next token matches any of the expected types.
|
|
142
143
|
* @param {...string} [expected] - The expected token types.
|
|
143
144
|
* @returns {import('../lexer/lexer.js').Token|boolean} The next token if it matches, otherwise false.
|
|
144
145
|
*/
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Checks if the token at the specified index matches any of the expected types.
|
|
148
|
-
* @param {number} i - The index to check.
|
|
149
|
-
* @param {...string} [expected] - The expected token types.
|
|
150
|
-
* @returns {import("../lexer/lexer.js").Token|boolean} The token at the specified index if it matches, otherwise false.
|
|
151
|
-
*/
|
|
152
|
-
peekAhead(
|
|
153
|
-
i: number,
|
|
154
|
-
...expected: string[]
|
|
155
|
-
): import("../lexer/lexer.js").Token | boolean;
|
|
146
|
+
_peek(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
|
|
156
147
|
/**
|
|
157
148
|
* Consumes the next token if it matches any of the expected types.
|
|
158
149
|
* @param {...string} [expected] - The expected token types.
|
|
159
150
|
* @returns {import("../lexer/lexer.js").Token|boolean} The consumed token if it matches, otherwise false.
|
|
160
151
|
*/
|
|
161
|
-
|
|
152
|
+
_expect(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
|
|
162
153
|
}
|
|
163
154
|
export type ASTNode = import("./ast-node.ts").ASTNode;
|
|
164
155
|
export type Token = import("../lexer/token.js").Token;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export type ASTType = number;
|
|
2
2
|
export namespace ASTType {
|
|
3
|
-
let
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
12
|
-
let
|
|
13
|
-
let
|
|
14
|
-
let
|
|
15
|
-
let
|
|
16
|
-
let
|
|
17
|
-
let
|
|
18
|
-
let
|
|
3
|
+
let _Program: number;
|
|
4
|
+
let _ExpressionStatement: number;
|
|
5
|
+
let _AssignmentExpression: number;
|
|
6
|
+
let _ConditionalExpression: number;
|
|
7
|
+
let _LogicalExpression: number;
|
|
8
|
+
let _BinaryExpression: number;
|
|
9
|
+
let _UnaryExpression: number;
|
|
10
|
+
let _CallExpression: number;
|
|
11
|
+
let _MemberExpression: number;
|
|
12
|
+
let _Identifier: number;
|
|
13
|
+
let _Literal: number;
|
|
14
|
+
let _ArrayExpression: number;
|
|
15
|
+
let _Property: number;
|
|
16
|
+
let _ObjectExpression: number;
|
|
17
|
+
let _ThisExpression: number;
|
|
18
|
+
let _LocalsExpression: number;
|
|
19
19
|
let NGValueParameter: number;
|
|
20
20
|
}
|
|
@@ -10,25 +10,15 @@ export class ASTInterpreter {
|
|
|
10
10
|
* @param {function(any):any} $filter
|
|
11
11
|
*/
|
|
12
12
|
constructor($filter: (arg0: any) => any);
|
|
13
|
-
$filter: (arg0: any) => any;
|
|
13
|
+
_$filter: (arg0: any) => any;
|
|
14
14
|
/**
|
|
15
15
|
* Compiles the AST into a function.
|
|
16
|
-
* @param {import("./ast/ast").ASTNode} ast - The AST to compile.
|
|
16
|
+
* @param {import("./ast/ast.js").ASTNode} ast - The AST to compile.
|
|
17
17
|
* @returns {import("./interface.ts").CompiledExpression}
|
|
18
18
|
*/
|
|
19
|
-
compile(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @param {import("./ast/ast").ASTNode} ast - The AST node.
|
|
23
|
-
* @param {Object} [context] - The context.
|
|
24
|
-
* @param {boolean|1} [create] - The create flag.
|
|
25
|
-
* @returns {import("./interface.ts").CompiledExpressionFunction} The recursive function.
|
|
26
|
-
*/
|
|
27
|
-
recurse(
|
|
28
|
-
ast: any,
|
|
29
|
-
context?: any,
|
|
30
|
-
create?: boolean | 1,
|
|
31
|
-
): import("./interface.ts").CompiledExpressionFunction;
|
|
19
|
+
compile(
|
|
20
|
+
ast: import("./ast/ast.js").ASTNode,
|
|
21
|
+
): import("./interface.ts").CompiledExpression;
|
|
32
22
|
/**
|
|
33
23
|
* Unary plus operation.
|
|
34
24
|
* @param {function} argument - The argument function.
|
|
@@ -211,20 +201,6 @@ export class ASTInterpreter {
|
|
|
211
201
|
context?: any,
|
|
212
202
|
create?: boolean | 1,
|
|
213
203
|
): import("./interface.ts").CompiledExpressionFunction;
|
|
214
|
-
/**
|
|
215
|
-
* Returns the value of a computed member expression.
|
|
216
|
-
* @param {function} left - The left operand function.
|
|
217
|
-
* @param {function} right - The right operand function.
|
|
218
|
-
* @param {Object} [context] - The context.
|
|
219
|
-
* @param {boolean|1} [create] - Whether to create the member if it does not exist.
|
|
220
|
-
* @returns {function} The function returning the computed member value.
|
|
221
|
-
*/
|
|
222
|
-
computedMember(
|
|
223
|
-
left: Function,
|
|
224
|
-
right: Function,
|
|
225
|
-
context?: any,
|
|
226
|
-
create?: boolean | 1,
|
|
227
|
-
): Function;
|
|
228
204
|
/**
|
|
229
205
|
* Returns the value of a non-computed member expression.
|
|
230
206
|
* @param {function} left - The left operand function.
|
|
@@ -239,6 +215,7 @@ export class ASTInterpreter {
|
|
|
239
215
|
context?: any,
|
|
240
216
|
create?: boolean | 1,
|
|
241
217
|
): Function;
|
|
218
|
+
#private;
|
|
242
219
|
}
|
|
243
220
|
export type DecoratedASTNode = any & {
|
|
244
221
|
isPure: boolean | number;
|
|
@@ -14,71 +14,71 @@ export class Lexer {
|
|
|
14
14
|
*/
|
|
15
15
|
constructor(options: LexerOptions);
|
|
16
16
|
/** @type {LexerOptions} */
|
|
17
|
-
|
|
17
|
+
_options: LexerOptions;
|
|
18
18
|
/**
|
|
19
19
|
* Tokenizes the input text.
|
|
20
20
|
* @param {string} text Input text to lex.
|
|
21
21
|
* @returns {Array<Token>} Array of tokens.
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
_lex(text: string): Array<Token>;
|
|
24
|
+
_text: string;
|
|
25
|
+
_index: number;
|
|
26
26
|
/** @type {Array<Token>} */
|
|
27
|
-
|
|
27
|
+
_tokens: Array<Token>;
|
|
28
28
|
/**
|
|
29
29
|
* Checks if a character is contained in a set of characters.
|
|
30
30
|
* @param {string} ch Character to check.
|
|
31
31
|
* @param {string} chars Set of characters.
|
|
32
32
|
* @returns {boolean} True if character is in the set, false otherwise.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
_is(ch: string, chars: string): boolean;
|
|
35
35
|
/**
|
|
36
36
|
* Peeks at the next character in the text.
|
|
37
37
|
* @param {number} [i=1] Number of characters to peek.
|
|
38
38
|
* @returns {string|false} Next character or false if end of text.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
_peek(i?: number): string | false;
|
|
41
41
|
/**
|
|
42
42
|
* Checks if a character is a number.
|
|
43
43
|
* @param {string} ch Character to check.
|
|
44
44
|
* @returns {boolean} True if character is a number, false otherwise.
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
_isNumber(ch: string): boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Checks if a character is whitespace.
|
|
49
49
|
* @param {string} ch Character to check.
|
|
50
50
|
* @returns {boolean} True if character is whitespace, false otherwise.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
_isWhitespace(ch: string): boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Checks if a character is a valid identifier start.
|
|
55
55
|
* @param {string} ch Character to check.
|
|
56
56
|
* @returns {boolean} True if character is a valid identifier start, false otherwise.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
_isIdentifierStart(ch: string): boolean;
|
|
59
59
|
/**
|
|
60
60
|
* Checks if a character is a valid identifier continuation.
|
|
61
61
|
* @param {string} ch Character to check.
|
|
62
62
|
* @returns {boolean} True if character is a valid identifier continuation, false otherwise.
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
_isIdentifierContinue(ch: string): boolean;
|
|
65
65
|
/**
|
|
66
66
|
* Converts a character to its Unicode code point.
|
|
67
67
|
* @param {string} ch Character to convert.
|
|
68
68
|
* @returns {number} Unicode code point.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
_codePointAt(ch: string): number;
|
|
71
71
|
/**
|
|
72
72
|
* Peeks at the next multicharacter sequence in the text.
|
|
73
73
|
* @returns {string} Next multicharacter sequence.
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
_peekMultichar(): string;
|
|
76
76
|
/**
|
|
77
77
|
* Checks if a character is an exponent operator.
|
|
78
78
|
* @param {string} ch Character to check.
|
|
79
79
|
* @returns {boolean} True if character is an exponent operator, false otherwise.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
_isExpOperator(ch: string): boolean;
|
|
82
82
|
/**
|
|
83
83
|
* Throws a lexer error.
|
|
84
84
|
* @param {string} error Error message.
|
|
@@ -86,25 +86,25 @@ export class Lexer {
|
|
|
86
86
|
* @param {number} [end] End index.
|
|
87
87
|
* @throws {Error} Lexer error.
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
_throwError(error: string, start?: number, end?: number): void;
|
|
90
90
|
/**
|
|
91
91
|
* Reads and tokenizes a number from the text.
|
|
92
92
|
* @return {void}
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
_readNumber(): void;
|
|
95
95
|
/**
|
|
96
96
|
* Reads and tokenizes an identifier from the text.
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
_readIdent(): void;
|
|
99
99
|
/**
|
|
100
100
|
* Reads and tokenizes a string from the text.
|
|
101
101
|
* @param {string} quote Quote character used for the string.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
_readString(quote: string): void;
|
|
104
104
|
/**
|
|
105
105
|
* @returns {string}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
_handleUnicodeEscape(): string;
|
|
108
108
|
}
|
|
109
109
|
export type Token = import("./token.ts").Token;
|
|
110
110
|
export type LexerOptions = {
|
|
@@ -16,20 +16,15 @@ export class Parser {
|
|
|
16
16
|
$filter: (arg0: any) => any,
|
|
17
17
|
);
|
|
18
18
|
/** @type {AST} */
|
|
19
|
-
|
|
19
|
+
_ast: AST;
|
|
20
20
|
/** @type {ASTInterpreter} */
|
|
21
|
-
|
|
21
|
+
_astCompiler: ASTInterpreter;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
23
|
* @param {string} exp - Expression to be parsed
|
|
25
24
|
* @returns {import("../interface.ts").CompiledExpression}
|
|
26
25
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* @param {string} exp - Expression to be parsed
|
|
30
|
-
* @returns {ParsedAST}
|
|
31
|
-
*/
|
|
32
|
-
getAst(exp: string): ParsedAST;
|
|
26
|
+
_parse(exp: string): import("../interface.ts").CompiledExpression;
|
|
27
|
+
#private;
|
|
33
28
|
}
|
|
34
29
|
export type ParsedAST = {
|
|
35
30
|
/**
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import type { CompiledExpression } from "../parse/interface.ts";
|
|
2
|
-
import { Scope } from "./scope.js";
|
|
3
|
-
export interface AsyncQueueTask {
|
|
4
|
-
handler: Scope;
|
|
5
|
-
fn: (...args: any[]) => any;
|
|
6
|
-
locals: Record<string, any>;
|
|
7
|
-
}
|
|
8
2
|
export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
|
|
9
3
|
export interface Listener {
|
|
10
4
|
originalTarget: any;
|
|
@@ -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
|
-
|
|
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<
|
|
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:
|
|
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
|
-
|
|
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,
|
|
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>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const ngClassDirective:
|
|
2
|
-
export const ngClassOddDirective:
|
|
3
|
-
export const ngClassEvenDirective:
|
|
1
|
+
export const ngClassDirective: import("../../interface.ts").DirectiveFactory;
|
|
2
|
+
export const ngClassOddDirective: import("../../interface.ts").DirectiveFactory;
|
|
3
|
+
export const ngClassEvenDirective: import("../../interface.ts").DirectiveFactory;
|
|
@@ -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 {
|
|
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:
|
|
88
|
+
$interpolate: ng.InterpolateService,
|
|
89
89
|
);
|
|
90
90
|
$$controls: any[];
|
|
91
|
-
$name:
|
|
91
|
+
$name: string;
|
|
92
92
|
/**
|
|
93
93
|
* @property {boolean} $dirty True if user has already interacted with the form.
|
|
94
94
|
*/
|
|
@@ -103,7 +103,7 @@ 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;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
* @param {ng.TemplateRequestService} $templateRequest
|
|
4
|
-
* @param {
|
|
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:
|
|
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 {
|
|
20
|
+
* @returns {ng.Directive}
|
|
21
21
|
*/
|
|
22
22
|
export function ngIncludeFillContentDirective(
|
|
23
23
|
$compile: ng.CompileService,
|
|
24
|
-
):
|
|
24
|
+
): ng.Directive;
|
|
25
25
|
export namespace ngIncludeFillContentDirective {
|
|
26
26
|
let $inject_1: string[];
|
|
27
27
|
export { $inject_1 as $inject };
|
|
@@ -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:
|
|
13
|
-
$compile:
|
|
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: {};
|