@wavemaker/app-ng-runtime 11.5.0-next.24730 → 11.5.0-next.24732
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/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/components/input/epoch/bundles/index.umd.js +1 -7
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +2 -8
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +1 -7
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +1 -7
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +5 -0
- app-ng-runtime/core/esm2020/utils/dom.mjs +6 -1
- app-ng-runtime/core/fesm2015/index.mjs +5 -0
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +5 -0
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -2148,6 +2148,17 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2148
2148
|
return;
|
|
2149
2149
|
}
|
|
2150
2150
|
if (key === 'class' || key === 'tabindex') {
|
|
2151
|
+
if (key === 'class') {
|
|
2152
|
+
// After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
|
|
2153
|
+
const isNgUntouchedValid = this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid');
|
|
2154
|
+
if (isNgUntouchedValid && nv.includes('ng-untouched') && nv.includes('ng-invalid')) {
|
|
2155
|
+
setTimeout(() => {
|
|
2156
|
+
if (this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid') && this.selectEl.nativeElement.classList.contains('ng-invalid')) {
|
|
2157
|
+
this.selectEl.nativeElement.classList.remove('ng-invalid');
|
|
2158
|
+
}
|
|
2159
|
+
});
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2151
2162
|
return;
|
|
2152
2163
|
}
|
|
2153
2164
|
else if (key === 'readonly') {
|