@ascentgl/ads-ui 20.0.9 → 20.0.10

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.
@@ -7573,6 +7573,16 @@ class AdsInternationalPhoneFieldComponent extends AbstractInputComponent {
7573
7573
  /** @ignore */
7574
7574
  ngOnInit() {
7575
7575
  this.valueControl.addValidators(this.validateMask);
7576
+ this.valueControl.statusChanges.subscribe((status) => {
7577
+ if (status === 'DISABLED') {
7578
+ this.dropdownControl.disable({ emitEvent: false });
7579
+ this.inputControl.disable({ emitEvent: false });
7580
+ }
7581
+ else {
7582
+ this.dropdownControl.enable({ emitEvent: false });
7583
+ this.inputControl.enable({ emitEvent: false });
7584
+ }
7585
+ });
7576
7586
  const value = this.valueControl.value;
7577
7587
  if (value && !value.startsWith('+') && /^\d+$/.test(value)) {
7578
7588
  this.valueControl.setValue(`+${value}`);