monkey-style-guide-v2 0.0.50 → 0.0.52
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.
|
@@ -5685,6 +5685,9 @@ class MonkeyInputPhoneComponent {
|
|
|
5685
5685
|
phoneAllowed: example?.nationalNumber
|
|
5686
5686
|
});
|
|
5687
5687
|
}
|
|
5688
|
+
else {
|
|
5689
|
+
this.ngControl?.control?.setErrors(null);
|
|
5690
|
+
}
|
|
5688
5691
|
}
|
|
5689
5692
|
formatValue(value, changedCountry = false) {
|
|
5690
5693
|
if (!value) {
|
|
@@ -5706,6 +5709,8 @@ class MonkeyInputPhoneComponent {
|
|
|
5706
5709
|
return;
|
|
5707
5710
|
}
|
|
5708
5711
|
const nationalPart = value.replace(this.selectedCallingCode, '').replace(/[^\d+]/g, '');
|
|
5712
|
+
console.log(nationalPart);
|
|
5713
|
+
console.log(countryCode);
|
|
5709
5714
|
const formatter = new AsYouType(countryCode);
|
|
5710
5715
|
this.phoneFormatted = formatter.input(nationalPart);
|
|
5711
5716
|
this.performValue(nationalPart);
|