iptdevs-design-system 3.1.946 → 3.1.948

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) {
@@ -4832,6 +4832,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
4832
4832
  this.codFormStepTwo.controls['student_email'].setValue(this.initialData.email);
4833
4833
  this.codFormStepTwo.controls['password'].setValue(this.initialData.id_card);
4834
4834
  this.codFormStepTwo.controls['re_password'].setValue(this.initialData.id_card);
4835
+ this.updateIdTypes(this.initialData.id_card);
4835
4836
  }
4836
4837
  setDataFromPreviusCod() {
4837
4838
  this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
@@ -4854,10 +4855,13 @@ class CodFormStepTwoComponent extends CodFormSteps {
4854
4855
  this.codFormStepTwo.controls['student_email'].setValue(this.initialData.student.email);
4855
4856
  this.codFormStepTwo.controls['password'].setValue(this.initialData.student.id_card);
4856
4857
  this.codFormStepTwo.controls['re_password'].setValue(this.initialData.student.id_card);
4858
+ this.updateIdTypes(this.initialData.student.id_card);
4857
4859
  }
4858
4860
  cleanComponent() {
4859
4861
  this.resetLocalStorage(this.controls);
4860
4862
  this.codFormStepTwo.reset();
4863
+ this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])]; // Restaurar idTypes
4864
+ console.log('idTypes after clean:', this.idTypes); // Depuración
4861
4865
  }
4862
4866
  validateErrors() {
4863
4867
  this.codFormStepTwo.valueChanges.subscribe(changes => {
@@ -4941,6 +4945,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
4941
4945
  }
4942
4946
  getParameters() {
4943
4947
  // this.idTypes =this.parametersAll?.TypeIdCardByCountryCol;
4948
+ // this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
4949
+ // console.log('Initial idTypes:', this.idTypes); // Depuración
4944
4950
  this.indicatives = this.parametersAll?.indicatives;
4945
4951
  this.countries = this.parametersAll?.country;
4946
4952
  this.stratums = this.parametersAll?.stratum;