@angular-wave/angular.ts 0.0.46 → 0.0.48
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/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/angular.spec.js +1 -2
- package/src/animations/animate-css-driver.js +1 -1
- package/src/animations/animate-queue.js +3 -4
- package/src/animations/animation.js +1 -1
- package/src/animations/raf-scheduler.js +0 -1
- package/src/animations/shared.js +1 -1
- package/src/core/animate/animate.js +0 -1
- package/src/core/compile/compile.spec.js +1 -1
- package/src/core/filter/filter.js +2 -2
- package/src/core/location/location.js +1 -1
- package/src/core/location/location.spec.js +1 -1
- package/src/core/parser/ast-type.js +22 -0
- package/src/core/parser/ast.js +422 -0
- package/src/core/parser/compiler.js +561 -0
- package/src/core/parser/interpreter.js +422 -0
- package/src/core/parser/lexer.js +257 -0
- package/src/core/parser/parse.js +9 -1930
- package/src/core/parser/parse.spec.js +2 -2
- package/src/core/parser/parser.js +39 -0
- package/src/core/parser/shared.js +228 -0
- package/src/core/q/q.spec.js +0 -1
- package/src/core/sce/sce.js +3 -6
- package/src/core/scope/scope.js +19 -11
- package/src/core/task-tracker-factory.js +0 -1
- package/src/directive/attrs/attrs.js +4 -185
- package/src/directive/attrs/attrs.md +224 -0
- package/src/directive/class/class.js +0 -2
- package/src/directive/form/form.js +0 -3
- package/src/directive/include/include.js +1 -1
- package/src/directive/include/include.spec.js +0 -1
- package/src/directive/input/input.js +1 -2
- package/src/directive/model/model.js +1 -3
- package/src/directive/model/model.spec.js +0 -1
- package/src/directive/repeat/repeat.spec.js +0 -2
- package/src/exts/aria/aria.js +0 -1
- package/src/filters/filter.spec.js +0 -1
- package/src/injector.js +1 -1
- package/src/injector.spec.js +0 -5
- package/src/loader.js +0 -5
- package/src/services/cookie-reader.js +0 -1
- package/src/services/http/http.spec.js +0 -2
- package/src/shared/jqlite/jqlite.js +219 -140
- package/src/shared/utils.js +18 -7
- package/src/types.js +10 -0
- package/types/core/parser/ast-type.d.ts +20 -0
- package/types/core/parser/ast.d.ts +78 -0
- package/types/core/parser/compiler.d.ts +49 -0
- package/types/core/parser/interpreter.d.ts +57 -0
- package/types/core/parser/parse.d.ts +79 -0
- package/types/core/parser/parser.d.ts +22 -0
- package/types/core/parser/shared.d.ts +29 -0
- package/types/core/scope/scope.d.ts +9 -2
- package/types/directive/attrs/attrs.d.ts +0 -174
- package/types/shared/jqlite/jqlite.d.ts +33 -4
- package/types/shared/utils.d.ts +18 -5
- package/types/types.d.ts +1 -0
- package/types-back/index.d.ts +0 -12
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export function ASTInterpreter($filter: any): void;
|
|
2
|
+
export class ASTInterpreter {
|
|
3
|
+
constructor($filter: any);
|
|
4
|
+
$filter: any;
|
|
5
|
+
compile(ast: any): any;
|
|
6
|
+
recurse(ast: any, context: any, create: any): any;
|
|
7
|
+
"unary+": (argument: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
8
|
+
"unary-": (argument: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
9
|
+
"unary!": (argument: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
10
|
+
value: boolean;
|
|
11
|
+
};
|
|
12
|
+
"binary+": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
13
|
+
"binary-": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => number | {
|
|
14
|
+
value: number;
|
|
15
|
+
};
|
|
16
|
+
"binary*": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => number | {
|
|
17
|
+
value: number;
|
|
18
|
+
};
|
|
19
|
+
"binary/": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => number | {
|
|
20
|
+
value: number;
|
|
21
|
+
};
|
|
22
|
+
"binary%": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => number | {
|
|
23
|
+
value: number;
|
|
24
|
+
};
|
|
25
|
+
"binary===": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
26
|
+
value: boolean;
|
|
27
|
+
};
|
|
28
|
+
"binary!==": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
29
|
+
value: boolean;
|
|
30
|
+
};
|
|
31
|
+
"binary==": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
32
|
+
value: boolean;
|
|
33
|
+
};
|
|
34
|
+
"binary!=": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
35
|
+
value: boolean;
|
|
36
|
+
};
|
|
37
|
+
"binary<": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
38
|
+
value: boolean;
|
|
39
|
+
};
|
|
40
|
+
"binary>": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
41
|
+
value: boolean;
|
|
42
|
+
};
|
|
43
|
+
"binary<=": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
44
|
+
value: boolean;
|
|
45
|
+
};
|
|
46
|
+
"binary>=": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => boolean | {
|
|
47
|
+
value: boolean;
|
|
48
|
+
};
|
|
49
|
+
"binary&&": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
50
|
+
"binary||": (left: any, right: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
51
|
+
"ternary?:": (test: any, alternate: any, consequent: any, context: any) => (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
52
|
+
value(value: any, context: any): () => any;
|
|
53
|
+
identifier(name: any, context: any, create: any): (scope: any, locals: any) => any;
|
|
54
|
+
computedMember(left: any, right: any, context: any, create: any): (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
55
|
+
nonComputedMember(left: any, right: any, context: any, create: any): (scope: any, locals: any, assign: any, inputs: any) => any;
|
|
56
|
+
inputs(input: any, watchId: any): (scope: any, value: any, locals: any, inputs: any) => any;
|
|
57
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc provider
|
|
3
|
+
* @name $parseProvider
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}
|
|
8
|
+
* service.
|
|
9
|
+
*/
|
|
10
|
+
export function $ParseProvider(): void;
|
|
11
|
+
export class $ParseProvider {
|
|
12
|
+
/**
|
|
13
|
+
* @ngdoc method
|
|
14
|
+
* @name $parseProvider#addLiteral
|
|
15
|
+
* @description
|
|
16
|
+
*
|
|
17
|
+
* Configure $parse service to add literal values that will be present as literal at expressions.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} literalName Token for the literal value. The literal name value must be a valid literal name.
|
|
20
|
+
* @param {*} literalValue Value for this literal. All literal values must be primitives or `undefined`.
|
|
21
|
+
*
|
|
22
|
+
**/
|
|
23
|
+
addLiteral: (literalName: string, literalValue: any) => void;
|
|
24
|
+
/**
|
|
25
|
+
* @ngdoc method
|
|
26
|
+
* @name $parseProvider#setIdentifierFns
|
|
27
|
+
*
|
|
28
|
+
* @description
|
|
29
|
+
*
|
|
30
|
+
* Allows defining the set of characters that are allowed in AngularJS expressions. The function
|
|
31
|
+
* `identifierStart` will get called to know if a given character is a valid character to be the
|
|
32
|
+
* first character for an identifier. The function `identifierContinue` will get called to know if
|
|
33
|
+
* a given character is a valid character to be a follow-up identifier character. The functions
|
|
34
|
+
* `identifierStart` and `identifierContinue` will receive as arguments the single character to be
|
|
35
|
+
* identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
|
|
36
|
+
* mind that the `string` parameter can be two characters long depending on the character
|
|
37
|
+
* representation. It is expected for the function to return `true` or `false`, whether that
|
|
38
|
+
* character is allowed or not.
|
|
39
|
+
*
|
|
40
|
+
* Since this function will be called extensively, keep the implementation of these functions fast,
|
|
41
|
+
* as the performance of these functions have a direct impact on the expressions parsing speed.
|
|
42
|
+
*
|
|
43
|
+
* @param {function=} identifierStart The function that will decide whether the given character is
|
|
44
|
+
* a valid identifier start character.
|
|
45
|
+
* @param {function=} identifierContinue The function that will decide whether the given character is
|
|
46
|
+
* a valid identifier continue character.
|
|
47
|
+
*/
|
|
48
|
+
setIdentifierFns: (identifierStart?: Function | undefined, identifierContinue?: Function | undefined) => this;
|
|
49
|
+
$get: (string | (($filter: any) => {
|
|
50
|
+
(exp: any, interceptorFn: any): any;
|
|
51
|
+
$$getAst: (exp: any) => {
|
|
52
|
+
type: string;
|
|
53
|
+
body: {
|
|
54
|
+
type: string;
|
|
55
|
+
expression: any;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
}))[];
|
|
59
|
+
}
|
|
60
|
+
export function inputsWatchDelegate(scope: any, listener: any, objectEquality: any, parsedExpression: any): any;
|
|
61
|
+
export function oneTimeWatchDelegate(scope: any, listener: any, objectEquality: any, parsedExpression: any): any;
|
|
62
|
+
export function chainInterceptors(first: any, second: any): {
|
|
63
|
+
(value: any): any;
|
|
64
|
+
$stateful: any;
|
|
65
|
+
$$pure: any;
|
|
66
|
+
};
|
|
67
|
+
export function expressionInputDirtyCheck(newValue: any, oldValueOfValue: any, compareObjectIdentity: any): boolean;
|
|
68
|
+
export function isAllDefined(value: any): boolean;
|
|
69
|
+
export const $parseMinErr: (arg0: string, ...arg1: any[]) => Error;
|
|
70
|
+
export namespace literals {
|
|
71
|
+
let _true: boolean;
|
|
72
|
+
export { _true as true };
|
|
73
|
+
let _false: boolean;
|
|
74
|
+
export { _false as false };
|
|
75
|
+
let _null: any;
|
|
76
|
+
export { _null as null };
|
|
77
|
+
export let undefined: any;
|
|
78
|
+
}
|
|
79
|
+
export type ParseService = (arg0: string | ((arg0: import("../scope/scope").Scope) => any), arg1: ((arg0: any, arg1: Scope, arg2: any) => any) | undefined, arg2: boolean | undefined) => import("../../types").CompiledExpression;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @constructor
|
|
3
|
+
*/
|
|
4
|
+
export class Parser {
|
|
5
|
+
constructor(lexer: any, $filter: any, options: any);
|
|
6
|
+
ast: AST;
|
|
7
|
+
astCompiler: ASTInterpreter | ASTCompiler;
|
|
8
|
+
parse(text: any): any;
|
|
9
|
+
getAst(exp: any): {
|
|
10
|
+
ast: {
|
|
11
|
+
type: string;
|
|
12
|
+
body: {
|
|
13
|
+
type: string;
|
|
14
|
+
expression: any;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
oneTime: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
import { AST } from "./ast";
|
|
21
|
+
import { ASTInterpreter } from "./interpreter";
|
|
22
|
+
import { ASTCompiler } from "./compiler";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts parameter to strings property name for use as keys in an object.
|
|
3
|
+
* Any non-string object, including a number, is typecasted into a string via the toString method.
|
|
4
|
+
* {@link https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names}
|
|
5
|
+
*
|
|
6
|
+
* @param {!any} name
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export function getStringValue(name: any): string;
|
|
10
|
+
export function ifDefined(v: any, d: any): any;
|
|
11
|
+
export function plusFn(l: any, r: any): any;
|
|
12
|
+
export function isStateless($filter: any, filterName: any): boolean;
|
|
13
|
+
export function isPure(node: any, parentIsPure: any): any;
|
|
14
|
+
export function findConstantAndWatchExpressions(ast: any, $filter: any, parentIsPure: any): void;
|
|
15
|
+
export function getInputs(body: any): any;
|
|
16
|
+
export function isAssignable(ast: any): boolean;
|
|
17
|
+
export function assignableAST(ast: any): {
|
|
18
|
+
type: string;
|
|
19
|
+
left: any;
|
|
20
|
+
right: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
operator: string;
|
|
24
|
+
};
|
|
25
|
+
export function isLiteral(ast: any): boolean;
|
|
26
|
+
export function isConstant(ast: any): any;
|
|
27
|
+
export function getValueOf(value: any): any;
|
|
28
|
+
export const PURITY_ABSOLUTE: 1;
|
|
29
|
+
export const PURITY_RELATIVE: 2;
|
|
@@ -45,7 +45,10 @@ export const TTL: TTL;
|
|
|
45
45
|
/** @type {AsyncQueueTask[]} */
|
|
46
46
|
export const $$asyncQueue: AsyncQueueTask[];
|
|
47
47
|
export const $$postDigestQueue: any[];
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @type {Function[]}
|
|
50
|
+
*/
|
|
51
|
+
export const $$applyAsyncQueue: Function[];
|
|
49
52
|
/**
|
|
50
53
|
* Provider responsible for instantiating the initial scope, aka - root scope.
|
|
51
54
|
* Every application has a single root {@link ng.$rootScope.Scope scope}.
|
|
@@ -58,7 +61,7 @@ export const $$applyAsyncQueue: any[];
|
|
|
58
61
|
*
|
|
59
62
|
*/
|
|
60
63
|
export class $RootScopeProvider {
|
|
61
|
-
$get: (string | ((exceptionHandler:
|
|
64
|
+
$get: (string | ((exceptionHandler: import("../exception-handler").ErrorHandler, parse: angular.IParseService, browser: import("../../services/browser").Browser) => Scope))[];
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
67
|
* DESIGN NOTES
|
|
@@ -664,6 +667,10 @@ export class Scope {
|
|
|
664
667
|
* @private
|
|
665
668
|
*/
|
|
666
669
|
private $$postDigest;
|
|
670
|
+
/**
|
|
671
|
+
* @private
|
|
672
|
+
*/
|
|
673
|
+
private retry;
|
|
667
674
|
clearPhase(): void;
|
|
668
675
|
/**
|
|
669
676
|
* @param {number} count
|
|
@@ -1,176 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @ngdoc directive
|
|
3
|
-
* @name ngHref
|
|
4
|
-
* @restrict A
|
|
5
|
-
* @priority 99
|
|
6
|
-
*
|
|
7
|
-
* @description
|
|
8
|
-
* Using AngularJS markup like `{{hash}}` in an href attribute will
|
|
9
|
-
* make the link go to the wrong URL if the user clicks it before
|
|
10
|
-
* AngularJS has a chance to replace the `{{hash}}` markup with its
|
|
11
|
-
* value. Until AngularJS replaces the markup the link will be broken
|
|
12
|
-
* and will most likely return a 404 error. The `ngHref` directive
|
|
13
|
-
* solves this problem.
|
|
14
|
-
*
|
|
15
|
-
* The wrong way to write it:
|
|
16
|
-
* ```html
|
|
17
|
-
* <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* The correct way to write it:
|
|
21
|
-
* ```html
|
|
22
|
-
* <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @element A
|
|
26
|
-
* @param {template} ngHref any string which can contain `{{}}` markup.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
1
|
export const REGEX_STRING_REGEXP: RegExp;
|
|
30
|
-
/**
|
|
31
|
-
* @ngdoc directive
|
|
32
|
-
* @name ngSrc
|
|
33
|
-
* @restrict A
|
|
34
|
-
* @priority 99
|
|
35
|
-
*
|
|
36
|
-
* @description
|
|
37
|
-
* Using AngularJS markup like `{{hash}}` in a `src` attribute doesn't
|
|
38
|
-
* work right: The browser will fetch from the URL with the literal
|
|
39
|
-
* text `{{hash}}` until AngularJS replaces the expression inside
|
|
40
|
-
* `{{hash}}`. The `ngSrc` directive solves this problem.
|
|
41
|
-
*
|
|
42
|
-
* The buggy way to write it:
|
|
43
|
-
* ```html
|
|
44
|
-
* <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/>
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* The correct way to write it:
|
|
48
|
-
* ```html
|
|
49
|
-
* <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" />
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @element IMG
|
|
53
|
-
* @param {template} ngSrc any string which can contain `{{}}` markup.
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @ngdoc directive
|
|
57
|
-
* @name ngSrcset
|
|
58
|
-
* @restrict A
|
|
59
|
-
* @priority 99
|
|
60
|
-
*
|
|
61
|
-
* @description
|
|
62
|
-
* Using AngularJS markup like `{{hash}}` in a `srcset` attribute doesn't
|
|
63
|
-
* work right: The browser will fetch from the URL with the literal
|
|
64
|
-
* text `{{hash}}` until AngularJS replaces the expression inside
|
|
65
|
-
* `{{hash}}`. The `ngSrcset` directive solves this problem.
|
|
66
|
-
*
|
|
67
|
-
* The buggy way to write it:
|
|
68
|
-
* ```html
|
|
69
|
-
* <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/>
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* The correct way to write it:
|
|
73
|
-
* ```html
|
|
74
|
-
* <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @element IMG
|
|
78
|
-
* @param {template} ngSrcset any string which can contain `{{}}` markup.
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* @ngdoc directive
|
|
82
|
-
* @name ngDisabled
|
|
83
|
-
* @restrict A
|
|
84
|
-
* @priority 100
|
|
85
|
-
*
|
|
86
|
-
* @description
|
|
87
|
-
*
|
|
88
|
-
* This directive sets the `disabled` attribute on the element (typically a form control,
|
|
89
|
-
* e.g. `input`, `button`, `select` etc.) if the
|
|
90
|
-
* {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
|
|
91
|
-
*
|
|
92
|
-
* A special directive is necessary because we cannot use interpolation inside the `disabled`
|
|
93
|
-
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
|
|
94
|
-
*
|
|
95
|
-
* @param {string} ngDisabled If the {@link guide/expression expression} is truthy,
|
|
96
|
-
* then the `disabled` attribute will be set on the element
|
|
97
|
-
*/
|
|
98
|
-
/**
|
|
99
|
-
* @ngdoc directive
|
|
100
|
-
* @name ngChecked
|
|
101
|
-
* @restrict A
|
|
102
|
-
* @priority 100
|
|
103
|
-
*
|
|
104
|
-
* @description
|
|
105
|
-
* Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
|
|
106
|
-
*
|
|
107
|
-
* Note that this directive should not be used together with {@link ngModel `ngModel`},
|
|
108
|
-
* as this can lead to unexpected behavior.
|
|
109
|
-
*
|
|
110
|
-
* A special directive is necessary because we cannot use interpolation inside the `checked`
|
|
111
|
-
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
|
|
112
|
-
*
|
|
113
|
-
* @element INPUT
|
|
114
|
-
* @param {string} ngChecked If the {@link guide/expression expression} is truthy,
|
|
115
|
-
* then the `checked` attribute will be set on the element
|
|
116
|
-
*/
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @description
|
|
120
|
-
*
|
|
121
|
-
* Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.
|
|
122
|
-
* Note that `readonly` applies only to `input` elements with specific types. [See the input docs on
|
|
123
|
-
* MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.
|
|
124
|
-
*
|
|
125
|
-
* A special directive is necessary because we cannot use interpolation inside the `readonly`
|
|
126
|
-
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
|
|
127
|
-
* @element INPUT
|
|
128
|
-
* @param {string} ngReadonly If the {@link guide/expression expression} is truthy,
|
|
129
|
-
* then special attribute "readonly" will be set on the element
|
|
130
|
-
*/
|
|
131
|
-
/**
|
|
132
|
-
* @ngdoc directive
|
|
133
|
-
* @name ngSelected
|
|
134
|
-
* @restrict A
|
|
135
|
-
* @priority 100
|
|
136
|
-
*
|
|
137
|
-
* @description
|
|
138
|
-
*
|
|
139
|
-
* Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.
|
|
140
|
-
*
|
|
141
|
-
* A special directive is necessary because we cannot use interpolation inside the `selected`
|
|
142
|
-
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
|
|
143
|
-
*
|
|
144
|
-
* <div class="alert alert-warning">
|
|
145
|
-
* **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only
|
|
146
|
-
* sets the `selected` attribute on the element. If you are using `ngModel` on the select, you
|
|
147
|
-
* should not use `ngSelected` on the options, as `ngModel` will set the select value and
|
|
148
|
-
* selected options.
|
|
149
|
-
* </div>
|
|
150
|
-
* @element OPTION
|
|
151
|
-
* @param {string} ngSelected If the {@link guide/expression expression} is truthy,
|
|
152
|
-
* then special attribute "selected" will be set on the element
|
|
153
|
-
*/
|
|
154
|
-
/**
|
|
155
|
-
* @ngdoc directive
|
|
156
|
-
* @name ngOpen
|
|
157
|
-
* @restrict A
|
|
158
|
-
* @priority 100
|
|
159
|
-
*
|
|
160
|
-
* @description
|
|
161
|
-
*
|
|
162
|
-
* Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.
|
|
163
|
-
*
|
|
164
|
-
* A special directive is necessary because we cannot use interpolation inside the `open`
|
|
165
|
-
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
|
|
166
|
-
*
|
|
167
|
-
* ## A note about browser compatibility
|
|
168
|
-
*
|
|
169
|
-
* Internet Explorer and Edge do not support the `details` element, it is
|
|
170
|
-
* recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
|
|
171
|
-
*
|
|
172
|
-
* @element DETAILS
|
|
173
|
-
* @param {string} ngOpen If the {@link guide/expression expression} is truthy,
|
|
174
|
-
* then special attribute "open" will be set on the element
|
|
175
|
-
*/
|
|
176
2
|
export const ngAttributeAliasDirectives: {};
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
* JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
|
|
3
3
|
* and execution of chain functions.
|
|
4
4
|
*
|
|
5
|
-
* @param {string|Element|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
|
|
5
|
+
* @param {string|Element|Comment|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
|
|
6
6
|
* @returns {JQLite}
|
|
7
7
|
*/
|
|
8
|
-
export function JQLite(element: string | Element | Document | Window | JQLite | ArrayLike<Element> | (() => void)): JQLite;
|
|
8
|
+
export function JQLite(element: string | Element | Comment | Document | Window | JQLite | ArrayLike<Element> | (() => void)): JQLite;
|
|
9
9
|
export class JQLite {
|
|
10
10
|
/**
|
|
11
11
|
* JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
|
|
12
12
|
* and execution of chain functions.
|
|
13
13
|
*
|
|
14
|
-
* @param {string|Element|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
|
|
14
|
+
* @param {string|Element|Comment|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
|
|
15
15
|
* @returns {JQLite}
|
|
16
16
|
*/
|
|
17
|
-
constructor(element: string | Element | Document | Window | JQLite | ArrayLike<Element> | (() => void));
|
|
17
|
+
constructor(element: string | Element | Comment | Document | Window | JQLite | ArrayLike<Element> | (() => void));
|
|
18
18
|
/**
|
|
19
19
|
* Remove all child nodes of the set of matched elements from the DOM and clears CACHE data, associated with the node.
|
|
20
20
|
* @returns {JQLite} The current instance of JQLite.
|
|
@@ -101,6 +101,35 @@ export class JQLite {
|
|
|
101
101
|
* @returns {JQLite|any} - The retrieved data if acting as a getter. Otherwise, returns undefined.
|
|
102
102
|
*/
|
|
103
103
|
data(key: string | any, value?: any): JQLite | any;
|
|
104
|
+
replaceWith(arg1: any): void | JQLite;
|
|
105
|
+
children(): JQLite;
|
|
106
|
+
/**
|
|
107
|
+
* @param {string} node
|
|
108
|
+
* @returns {JQLite}
|
|
109
|
+
*/
|
|
110
|
+
append(node: string): JQLite;
|
|
111
|
+
/**
|
|
112
|
+
* @param {string} node
|
|
113
|
+
* @returns {JQLite}
|
|
114
|
+
*/
|
|
115
|
+
prepend(node: string): JQLite;
|
|
116
|
+
/**
|
|
117
|
+
* @param {string} newElement
|
|
118
|
+
* @returns {JQLite}
|
|
119
|
+
*/
|
|
120
|
+
after(newElement: string): JQLite;
|
|
121
|
+
/**
|
|
122
|
+
* @param {boolean} [keepData]
|
|
123
|
+
* @returns
|
|
124
|
+
*/
|
|
125
|
+
remove(keepData?: boolean): this;
|
|
126
|
+
detach(): this;
|
|
127
|
+
parent(): any;
|
|
128
|
+
find(selector: any): any;
|
|
129
|
+
/**
|
|
130
|
+
* TODO: REMOVE! This function being used ONLY in tests!
|
|
131
|
+
*/
|
|
132
|
+
triggerHandler(event: any, extraParameters: any): void | JQLite;
|
|
104
133
|
toString(): string;
|
|
105
134
|
eq(index: any): JQLite;
|
|
106
135
|
length: number;
|
package/types/shared/utils.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ export function forEach(obj: any | any[], iterator: Function, context?: any | un
|
|
|
228
228
|
export function forEachSorted(obj: any, iterator: any, context: any): string[];
|
|
229
229
|
/**
|
|
230
230
|
* when using forEach the params are value, key, but it is often useful to have key, value.
|
|
231
|
-
* @param {function(string, *)} iteratorFn
|
|
231
|
+
* @param {function(string, *):any} iteratorFn
|
|
232
232
|
* @returns {function(*, string)}
|
|
233
233
|
*/
|
|
234
234
|
export function reverseParams(iteratorFn: (arg0: string, arg1: any) => any): (arg0: any, arg1: string) => any;
|
|
@@ -257,7 +257,7 @@ export function baseExtend(dst: any, objs: any, deep: any): any;
|
|
|
257
257
|
* @param {...Object} src Source object(s).
|
|
258
258
|
* @returns {Object} Reference to `dst`.
|
|
259
259
|
*/
|
|
260
|
-
export function extend(dst: any, ...
|
|
260
|
+
export function extend(dst: any, ...src: any[]): any;
|
|
261
261
|
/**
|
|
262
262
|
* @module angular
|
|
263
263
|
* @function merge
|
|
@@ -293,8 +293,21 @@ export function extend(dst: any, ...args: any[]): any;
|
|
|
293
293
|
* @returns {Object} Reference to `dst`.
|
|
294
294
|
*/
|
|
295
295
|
export function merge(dst: any, ...src: any[]): any;
|
|
296
|
-
|
|
296
|
+
/**
|
|
297
|
+
* @param {string} str
|
|
298
|
+
* @returns {number}
|
|
299
|
+
*/
|
|
300
|
+
export function toInt(str: string): number;
|
|
301
|
+
/**
|
|
302
|
+
* @param {any} num
|
|
303
|
+
* @returns {boolean}
|
|
304
|
+
*/
|
|
297
305
|
export function isNumberNaN(num: any): boolean;
|
|
306
|
+
/**
|
|
307
|
+
* @param {Object} parent
|
|
308
|
+
* @param {Object} extra
|
|
309
|
+
* @returns {Object}
|
|
310
|
+
*/
|
|
298
311
|
export function inherit(parent: any, extra: any): any;
|
|
299
312
|
/**
|
|
300
313
|
* @module angular
|
|
@@ -349,10 +362,10 @@ export function isElement(node: any): boolean;
|
|
|
349
362
|
*
|
|
350
363
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
|
|
351
364
|
*
|
|
352
|
-
* @param {JQLite|Element} element
|
|
365
|
+
* @param {import('../shared/jqlite/jqlite').JQLite|Element} element
|
|
353
366
|
* @returns
|
|
354
367
|
*/
|
|
355
|
-
export function getNodeName(element: JQLite | Element): string;
|
|
368
|
+
export function getNodeName(element: import("../shared/jqlite/jqlite").JQLite | Element): string;
|
|
356
369
|
export function includes(array: any, obj: any): boolean;
|
|
357
370
|
/**
|
|
358
371
|
* Removes the first occurrence of a specified value from an array.
|
package/types/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type BootstrapConfig = any;
|
|
2
2
|
export type Injectable<T_1> = Function | Array<string | Function>;
|
|
3
|
+
export type CompiledExpression = (arg0: any, arg1: any | undefined) => any;
|
|
3
4
|
export type ComponentOptions = any;
|
|
4
5
|
export type ControllerConstructor = Function;
|
|
5
6
|
export type OnChangesObject = any;
|
package/types-back/index.d.ts
CHANGED
|
@@ -782,18 +782,6 @@ declare namespace angular {
|
|
|
782
782
|
): void;
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
interface ICompiledExpression {
|
|
786
|
-
(context: any, locals?: any): any;
|
|
787
|
-
|
|
788
|
-
literal: boolean;
|
|
789
|
-
constant: boolean;
|
|
790
|
-
|
|
791
|
-
// If value is not provided, undefined is gonna be used since the implementation
|
|
792
|
-
// does not check the parameter. Let's force a value for consistency. If consumer
|
|
793
|
-
// whants to undefine it, pass the undefined value explicitly.
|
|
794
|
-
assign(context: any, value: any): any;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
785
|
/**
|
|
798
786
|
* $location - $locationProvider - service in module ng
|
|
799
787
|
* see https://docs.angularjs.org/api/ng/service/$location
|