iptdevs-design-system 3.1.952 → 3.1.954

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.
@@ -4800,7 +4800,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4800
4800
  this.controls = new CodFormControls().controls[1];
4801
4801
  }
4802
4802
  ngOnChanges(changes) {
4803
- console.log('ngOnChanges called, parametersAll:', this.parametersAll, 'initialData:', this.initialData);
4804
4803
  this.initForm();
4805
4804
  this.startLocalStorageWork();
4806
4805
  this.validateErrors();
@@ -4818,7 +4817,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4818
4817
  }
4819
4818
  }
4820
4819
  setDataFromUserHistory() {
4821
- console.log('setDataFromUserHistory called, id_card:', this.initialData?.id_card);
4822
4820
  this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
4823
4821
  this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
4824
4822
  this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.id_card_type);
@@ -4837,7 +4835,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4837
4835
  this.updateIdTypes(this.initialData?.id_card || '');
4838
4836
  }
4839
4837
  setDataFromPreviusCod() {
4840
- console.log('setDataFromPreviusCod called, id_card:', this.initialData?.student?.id_card); // Depuración
4841
4838
  this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
4842
4839
  this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.student.last_name);
4843
4840
  this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.student.id_card_type);
@@ -4864,7 +4861,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4864
4861
  this.resetLocalStorage(this.controls);
4865
4862
  this.codFormStepTwo.reset();
4866
4863
  this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
4867
- console.log('idTypes after clean:', this.idTypes);
4868
4864
  }
4869
4865
  validateErrors() {
4870
4866
  this.codFormStepTwo.valueChanges.subscribe(changes => {
@@ -4946,11 +4942,9 @@ class CodFormStepTwoComponent extends CodFormSteps {
4946
4942
  getParameters() {
4947
4943
  if (this.parametersAll?.TypeIdCardByCountryCol) {
4948
4944
  this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
4949
- console.log('Initial idTypes:', this.idTypes);
4950
4945
  }
4951
4946
  else {
4952
4947
  this.idTypes = [];
4953
- console.log('TypeIdCardByCountryCol is undefined');
4954
4948
  }
4955
4949
  this.indicatives = this.parametersAll?.indicatives;
4956
4950
  this.countries = this.parametersAll?.country;
@@ -5074,29 +5068,19 @@ class CodFormStepTwoComponent extends CodFormSteps {
5074
5068
  }
5075
5069
  }
5076
5070
  trackStudentIdCardChanges() {
5077
- console.log('trackStudentIdCardChanges called');
5078
5071
  const controlOne = this.codFormStepTwo.get('student_id_card');
5079
- console.log('control 1', controlOne);
5080
5072
  this.updateIdTypes(controlOne?.value || '');
5081
- const controlTwo = localStorage.getItem('COD FORM - step2(student_id_card)');
5082
- console.log('control 2', controlTwo);
5083
- this.updateIdTypes(controlTwo || '');
5084
5073
  }
5085
5074
  updateIdTypes(value) {
5086
- console.log('updateIdTypes called with value:', value);
5087
5075
  if (this.parametersAll?.TypeIdCardByCountryCol) {
5088
5076
  if (value && /[a-zA-Z]/.test(value)) {
5089
- console.log('Contains letters, filtering idTypes');
5090
- this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 7].includes(index));
5077
+ this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 3, 5, 7, 8].includes(index));
5091
5078
  }
5092
5079
  else {
5093
- console.log('No letters, restoring idTypes');
5094
5080
  this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
5095
5081
  }
5096
- console.log('Current idTypes:', this.idTypes);
5097
5082
  }
5098
5083
  else {
5099
- console.log('TypeIdCardByCountryCol is undefined');
5100
5084
  this.idTypes = [];
5101
5085
  }
5102
5086
  }