@wavemaker/app-ng-runtime 11.5.0-next.141086 → 11.5.0-next.141088
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.
- app-ng-runtime/build-task/bundles/index.umd.js +1 -1
- app-ng-runtime/build-task/esm2020/data/form/form-field/form-field.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2015/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +36 -17
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +34 -16
- app-ng-runtime/components/base/esm2020/widgets/common/base/partial-container.directive.mjs +4 -3
- app-ng-runtime/components/base/fesm2015/index.mjs +36 -17
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +36 -17
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +1 -0
- app-ng-runtime/components/input/default/bundles/index.umd.js +11 -0
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +12 -1
- app-ng-runtime/components/input/default/fesm2015/index.mjs +11 -0
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +11 -0
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +7 -2
- app-ng-runtime/core/esm2020/utils/dom.mjs +6 -1
- app-ng-runtime/core/esm2020/utils/expression-parser.mjs +2 -3
- app-ng-runtime/core/fesm2015/index.mjs +8 -3
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +7 -3
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attribute, ImplicitReceiver, LiteralPrimitive, LiteralArray, LiteralMap,
|
|
1
|
+
import { Attribute, ImplicitReceiver, PropertyRead, LiteralPrimitive, LiteralArray, LiteralMap, PropertyWrite, KeyedRead, PrefixNot, Binary, Conditional, Call, Chain, BindingPipe, Parser, Lexer } from '@angular/compiler';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
|
@@ -1443,6 +1443,11 @@ const addClass = (node, nv, sync) => {
|
|
|
1443
1443
|
});
|
|
1444
1444
|
};
|
|
1445
1445
|
const switchClass = (node, toAdd = '', toRemove = '', sync) => {
|
|
1446
|
+
// After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
|
|
1447
|
+
const isNgUntouchedValid = node.classList.contains('ng-untouched') && node.classList.contains('ng-valid');
|
|
1448
|
+
if (isNgUntouchedValid && toAdd.includes('ng-untouched') && toAdd.includes('ng-invalid')) {
|
|
1449
|
+
toAdd = toAdd.replace('ng-invalid', '');
|
|
1450
|
+
}
|
|
1446
1451
|
removeClass(node, toRemove, sync);
|
|
1447
1452
|
addClass(node, toAdd, sync);
|
|
1448
1453
|
};
|
|
@@ -1756,8 +1761,7 @@ class ASTCompiler {
|
|
|
1756
1761
|
}
|
|
1757
1762
|
const fn = this.build(ast.receiver, stmts);
|
|
1758
1763
|
const v = this.createVar();
|
|
1759
|
-
const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
|
|
1760
|
-
const exp = stmts[stmts.length - 1];
|
|
1764
|
+
const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ast.receiver?.receiver instanceof ImplicitReceiver);
|
|
1761
1765
|
const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
|
|
1762
1766
|
stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
|
|
1763
1767
|
return v;
|