monkey-style-guide-v2 0.0.54 → 0.0.56

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.
@@ -5697,18 +5697,24 @@ class MonkeyInputPhoneComponent {
5697
5697
  this.validateValue();
5698
5698
  return;
5699
5699
  }
5700
+ console.log('--1');
5700
5701
  const detectedCallingCode = this.getCountryFromPhoneNumber(value, changedCountry);
5702
+ console.log('--2');
5701
5703
  const isCountryChanged = changedCountry || detectedCallingCode !== this.selectedCallingCode;
5704
+ console.log('--3');
5702
5705
  if (isCountryChanged && detectedCallingCode) {
5703
5706
  this.selectedCallingCode = detectedCallingCode;
5704
5707
  }
5708
+ console.log('--4');
5705
5709
  const countryCode = this.getCountryByCallingCode(this.selectedCallingCode);
5710
+ console.log('--5');
5706
5711
  if (!countryCode) {
5707
5712
  this.phoneFormatted = value;
5708
5713
  this.phoneValid = false;
5709
5714
  this.validateValue();
5710
5715
  return;
5711
5716
  }
5717
+ console.log('--6');
5712
5718
  const nationalPart = value.replace(this.selectedCallingCode, '').replace(/[^\d+]/g, '');
5713
5719
  console.log(nationalPart);
5714
5720
  console.log(countryCode);
@@ -5749,8 +5755,8 @@ class MonkeyInputPhoneComponent {
5749
5755
  this.value = value;
5750
5756
  }
5751
5757
  onInputChange(event) {
5752
- console.log(event);
5753
5758
  const { value } = event.target;
5759
+ console.log('=======', value);
5754
5760
  this.formatValue(value);
5755
5761
  }
5756
5762
  onCountryChange() {