@wavemaker/app-ng-runtime 11.5.0-next.141087 → 11.5.0-next.141089
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/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 +9 -3
- 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/esm2020/utils/utils.mjs +3 -2
- app-ng-runtime/core/fesm2015/index.mjs +10 -4
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +9 -4
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -2140,6 +2140,17 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2140
2140
|
return;
|
|
2141
2141
|
}
|
|
2142
2142
|
if (key === 'class' || key === 'tabindex') {
|
|
2143
|
+
if (key === 'class') {
|
|
2144
|
+
// After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
|
|
2145
|
+
const isNgUntouchedValid = this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid');
|
|
2146
|
+
if (isNgUntouchedValid && nv.includes('ng-untouched') && nv.includes('ng-invalid')) {
|
|
2147
|
+
setTimeout(() => {
|
|
2148
|
+
if (this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid') && this.selectEl.nativeElement.classList.contains('ng-invalid')) {
|
|
2149
|
+
this.selectEl.nativeElement.classList.remove('ng-invalid');
|
|
2150
|
+
}
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2143
2154
|
return;
|
|
2144
2155
|
}
|
|
2145
2156
|
else if (key === 'readonly') {
|