iptdevs-design-system 3.1.947 → 3.1.949

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.
@@ -4803,8 +4803,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
4803
4803
  this.initForm();
4804
4804
  this.startLocalStorageWork();
4805
4805
  this.validateErrors();
4806
- this.trackStudentIdCardChanges();
4807
4806
  this.getParameters();
4807
+ this.trackStudentIdCardChanges();
4808
4808
  if (changes['initialData']) {
4809
4809
  if (this.initialData != null) {
4810
4810
  if (this.initialData.student != null) {
@@ -4945,8 +4945,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
4945
4945
  }
4946
4946
  getParameters() {
4947
4947
  // this.idTypes =this.parametersAll?.TypeIdCardByCountryCol;
4948
- this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
4949
- console.log('Initial idTypes:', this.idTypes); // Depuración
4948
+ // this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
4949
+ // console.log('Initial idTypes:', this.idTypes); // Depuración
4950
4950
  this.indicatives = this.parametersAll?.indicatives;
4951
4951
  this.countries = this.parametersAll?.country;
4952
4952
  this.stratums = this.parametersAll?.stratum;
@@ -5072,10 +5072,14 @@ class CodFormStepTwoComponent extends CodFormSteps {
5072
5072
  }
5073
5073
  trackStudentIdCardChanges() {
5074
5074
  console.log('trackStudentIdCardChanges called'); // Depuración
5075
- this.codFormStepTwo.controls['student_id_card'].valueChanges.subscribe(value => {
5076
- console.log('student_id_card value:', value); // Depuración
5077
- this.updateIdTypes(value);
5075
+ const control = this.codFormStepTwo.get('student_id_card');
5076
+ control?.valueChanges.subscribe((change) => {
5077
+ this.updateIdTypes(change);
5078
5078
  });
5079
+ // this.codFormStepTwo.controls['student_id_card'].valueChanges.subscribe(value => {
5080
+ // console.log('student_id_card value:', value); // Depuración
5081
+ // this.updateIdTypes(value);
5082
+ // });
5079
5083
  }
5080
5084
  updateIdTypes(value) {
5081
5085
  console.log('updateIdTypes called with value:', value); // Depuración