@wavemaker/app-ng-runtime 11.5.0-next.24731 → 11.5.0-next.24733
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
|
@@ -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
|
};
|