@angular-wave/angular.ts 0.8.4 → 0.9.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/dist/angular-ts.esm.js +15 -10
- package/dist/angular-ts.umd.js +15 -10
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/layouts/shortcodes/version.html +1 -1
- package/docs/static/typedoc/assets/style.css +2 -9
- package/package.json +1 -1
- package/src/core/parse/interpreter.js +11 -6
- package/src/core/parse/parse.spec.js +6 -8
- package/src/core/scope/scope.js +2 -2
- package/src/core/scope/scope.spec.js +4 -4
- package/src/router/directives/view-directive.spec.js +10 -9
package/dist/angular-ts.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.
|
|
1
|
+
/* Version: 0.9.0 - September 12, 2025 22:41:28 */
|
|
2
2
|
const VALID_CLASS = "ng-valid";
|
|
3
3
|
const INVALID_CLASS = "ng-invalid";
|
|
4
4
|
const PRISTINE_CLASS = "ng-pristine";
|
|
@@ -15453,7 +15453,11 @@ class ASTInterpreter {
|
|
|
15453
15453
|
? (scope, locals, assign) => {
|
|
15454
15454
|
const values = [];
|
|
15455
15455
|
for (let i = 0; i < args.length; ++i) {
|
|
15456
|
-
const res = args[i](
|
|
15456
|
+
const res = args[i](
|
|
15457
|
+
scope && scope.$target ? scope.$target : scope,
|
|
15458
|
+
locals,
|
|
15459
|
+
assign,
|
|
15460
|
+
);
|
|
15457
15461
|
values.push(res);
|
|
15458
15462
|
}
|
|
15459
15463
|
const value = () => {
|
|
@@ -15541,7 +15545,7 @@ class ASTInterpreter {
|
|
|
15541
15545
|
return context ? { value } : value;
|
|
15542
15546
|
};
|
|
15543
15547
|
case ASTType.ThisExpression:
|
|
15544
|
-
return (scope) => (context ? { value: scope } : scope);
|
|
15548
|
+
return (scope) => (context ? { value: scope } : scope.$proxy);
|
|
15545
15549
|
case ASTType.LocalsExpression:
|
|
15546
15550
|
// @ts-ignore
|
|
15547
15551
|
return (scope, locals) => (context ? { value: locals } : locals);
|
|
@@ -15817,9 +15821,9 @@ class ASTInterpreter {
|
|
|
15817
15821
|
*/
|
|
15818
15822
|
"ternary?:"(test, alternate, consequent, context) {
|
|
15819
15823
|
return (scope, locals, assign) => {
|
|
15820
|
-
const arg = test(scope
|
|
15821
|
-
? alternate(scope
|
|
15822
|
-
: consequent(scope
|
|
15824
|
+
const arg = test(scope, locals, assign)
|
|
15825
|
+
? alternate(scope, locals, assign)
|
|
15826
|
+
: consequent(scope, locals, assign);
|
|
15823
15827
|
return context ? { value: arg } : arg;
|
|
15824
15828
|
};
|
|
15825
15829
|
}
|
|
@@ -15844,7 +15848,8 @@ class ASTInterpreter {
|
|
|
15844
15848
|
*/
|
|
15845
15849
|
identifier(name, context, create) {
|
|
15846
15850
|
return (scope, locals) => {
|
|
15847
|
-
const base =
|
|
15851
|
+
const base =
|
|
15852
|
+
locals && name in locals ? locals : ((scope && scope.$proxy) ?? scope);
|
|
15848
15853
|
if (create && create !== 1 && base && base[name] == null) {
|
|
15849
15854
|
base[name] = {};
|
|
15850
15855
|
}
|
|
@@ -20860,8 +20865,8 @@ class Scope {
|
|
|
20860
20865
|
keySet.push(prop.value.name);
|
|
20861
20866
|
listener.property.push(key);
|
|
20862
20867
|
} else {
|
|
20863
|
-
|
|
20864
|
-
|
|
20868
|
+
const target = get.decoratedNode.body[0].expression.toWatch[0];
|
|
20869
|
+
key = target.property ? target.property.name : target.name;
|
|
20865
20870
|
listener.property.push(key);
|
|
20866
20871
|
}
|
|
20867
20872
|
}
|
|
@@ -35820,7 +35825,7 @@ class Angular {
|
|
|
35820
35825
|
/**
|
|
35821
35826
|
* @type {string} `version` from `package.json`
|
|
35822
35827
|
*/
|
|
35823
|
-
this.version = "0.
|
|
35828
|
+
this.version = "0.9.0"; //inserted via rollup plugin
|
|
35824
35829
|
|
|
35825
35830
|
/** @type {!Array<string|any>} */
|
|
35826
35831
|
this.bootsrappedModules = [];
|
package/dist/angular-ts.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.
|
|
1
|
+
/* Version: 0.9.0 - September 12, 2025 22:41:26 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -15459,7 +15459,11 @@
|
|
|
15459
15459
|
? (scope, locals, assign) => {
|
|
15460
15460
|
const values = [];
|
|
15461
15461
|
for (let i = 0; i < args.length; ++i) {
|
|
15462
|
-
const res = args[i](
|
|
15462
|
+
const res = args[i](
|
|
15463
|
+
scope && scope.$target ? scope.$target : scope,
|
|
15464
|
+
locals,
|
|
15465
|
+
assign,
|
|
15466
|
+
);
|
|
15463
15467
|
values.push(res);
|
|
15464
15468
|
}
|
|
15465
15469
|
const value = () => {
|
|
@@ -15547,7 +15551,7 @@
|
|
|
15547
15551
|
return context ? { value } : value;
|
|
15548
15552
|
};
|
|
15549
15553
|
case ASTType.ThisExpression:
|
|
15550
|
-
return (scope) => (context ? { value: scope } : scope);
|
|
15554
|
+
return (scope) => (context ? { value: scope } : scope.$proxy);
|
|
15551
15555
|
case ASTType.LocalsExpression:
|
|
15552
15556
|
// @ts-ignore
|
|
15553
15557
|
return (scope, locals) => (context ? { value: locals } : locals);
|
|
@@ -15823,9 +15827,9 @@
|
|
|
15823
15827
|
*/
|
|
15824
15828
|
"ternary?:"(test, alternate, consequent, context) {
|
|
15825
15829
|
return (scope, locals, assign) => {
|
|
15826
|
-
const arg = test(scope
|
|
15827
|
-
? alternate(scope
|
|
15828
|
-
: consequent(scope
|
|
15830
|
+
const arg = test(scope, locals, assign)
|
|
15831
|
+
? alternate(scope, locals, assign)
|
|
15832
|
+
: consequent(scope, locals, assign);
|
|
15829
15833
|
return context ? { value: arg } : arg;
|
|
15830
15834
|
};
|
|
15831
15835
|
}
|
|
@@ -15850,7 +15854,8 @@
|
|
|
15850
15854
|
*/
|
|
15851
15855
|
identifier(name, context, create) {
|
|
15852
15856
|
return (scope, locals) => {
|
|
15853
|
-
const base =
|
|
15857
|
+
const base =
|
|
15858
|
+
locals && name in locals ? locals : ((scope && scope.$proxy) ?? scope);
|
|
15854
15859
|
if (create && create !== 1 && base && base[name] == null) {
|
|
15855
15860
|
base[name] = {};
|
|
15856
15861
|
}
|
|
@@ -20866,8 +20871,8 @@
|
|
|
20866
20871
|
keySet.push(prop.value.name);
|
|
20867
20872
|
listener.property.push(key);
|
|
20868
20873
|
} else {
|
|
20869
|
-
|
|
20870
|
-
|
|
20874
|
+
const target = get.decoratedNode.body[0].expression.toWatch[0];
|
|
20875
|
+
key = target.property ? target.property.name : target.name;
|
|
20871
20876
|
listener.property.push(key);
|
|
20872
20877
|
}
|
|
20873
20878
|
}
|
|
@@ -35826,7 +35831,7 @@
|
|
|
35826
35831
|
/**
|
|
35827
35832
|
* @type {string} `version` from `package.json`
|
|
35828
35833
|
*/
|
|
35829
|
-
this.version = "0.
|
|
35834
|
+
this.version = "0.9.0"; //inserted via rollup plugin
|
|
35830
35835
|
|
|
35831
35836
|
/** @type {!Array<string|any>} */
|
|
35832
35837
|
this.bootsrappedModules = [];
|