iptdevs-design-system 3.1.950 → 3.1.951
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.
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +21 -5
- package/fesm2015/iptdevs-design-system.mjs +25 -8
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +20 -4
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4801,6 +4801,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4801
4801
|
this.controls = new CodFormControls().controls[1];
|
|
4802
4802
|
}
|
|
4803
4803
|
ngOnChanges(changes) {
|
|
4804
|
+
console.log('ngOnChanges called, parametersAll:', this.parametersAll, 'initialData:', this.initialData);
|
|
4804
4805
|
this.initForm();
|
|
4805
4806
|
this.startLocalStorageWork();
|
|
4806
4807
|
this.validateErrors();
|
|
@@ -4818,6 +4819,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4818
4819
|
}
|
|
4819
4820
|
}
|
|
4820
4821
|
setDataFromUserHistory() {
|
|
4822
|
+
console.log('setDataFromUserHistory called, id_card:', this.initialData?.id_card);
|
|
4821
4823
|
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
|
|
4822
4824
|
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
|
|
4823
4825
|
this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.id_card_type);
|
|
@@ -4833,9 +4835,13 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4833
4835
|
this.codFormStepTwo.controls['student_email'].setValue(this.initialData.email);
|
|
4834
4836
|
this.codFormStepTwo.controls['password'].setValue(this.initialData.id_card);
|
|
4835
4837
|
this.codFormStepTwo.controls['re_password'].setValue(this.initialData.id_card);
|
|
4836
|
-
this.
|
|
4838
|
+
this.codFormStepTwo.patchValue({
|
|
4839
|
+
student_id_card: this.initialData.student.id_card
|
|
4840
|
+
});
|
|
4841
|
+
this.updateIdTypes(this.initialData?.id_card || '');
|
|
4837
4842
|
}
|
|
4838
4843
|
setDataFromPreviusCod() {
|
|
4844
|
+
console.log('setDataFromPreviusCod called, id_card:', this.initialData?.student?.id_card); // Depuración
|
|
4839
4845
|
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
|
|
4840
4846
|
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.student.last_name);
|
|
4841
4847
|
this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.student.id_card_type);
|
|
@@ -4856,7 +4862,10 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4856
4862
|
this.codFormStepTwo.controls['student_email'].setValue(this.initialData.student.email);
|
|
4857
4863
|
this.codFormStepTwo.controls['password'].setValue(this.initialData.student.id_card);
|
|
4858
4864
|
this.codFormStepTwo.controls['re_password'].setValue(this.initialData.student.id_card);
|
|
4859
|
-
this.
|
|
4865
|
+
this.codFormStepTwo.patchValue({
|
|
4866
|
+
student_id_card: this.initialData.student.id_card
|
|
4867
|
+
});
|
|
4868
|
+
this.updateIdTypes(this.initialData?.student?.id_card || '');
|
|
4860
4869
|
}
|
|
4861
4870
|
cleanComponent() {
|
|
4862
4871
|
this.resetLocalStorage(this.controls);
|
|
@@ -4943,7 +4952,14 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4943
4952
|
});
|
|
4944
4953
|
}
|
|
4945
4954
|
getParameters() {
|
|
4946
|
-
|
|
4955
|
+
if (this.parametersAll?.TypeIdCardByCountryCol) {
|
|
4956
|
+
this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
|
|
4957
|
+
console.log('Initial idTypes:', this.idTypes); // Depuración
|
|
4958
|
+
}
|
|
4959
|
+
else {
|
|
4960
|
+
this.idTypes = [];
|
|
4961
|
+
console.log('TypeIdCardByCountryCol is undefined'); // Depuración
|
|
4962
|
+
}
|
|
4947
4963
|
console.log('Initial idTypes:', this.idTypes); // Depuración
|
|
4948
4964
|
this.indicatives = this.parametersAll?.indicatives;
|
|
4949
4965
|
this.countries = this.parametersAll?.country;
|
|
@@ -5083,7 +5099,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5083
5099
|
}
|
|
5084
5100
|
else {
|
|
5085
5101
|
console.log('No letters, restoring idTypes'); // Depuración
|
|
5086
|
-
this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
|
|
5102
|
+
this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
|
|
5087
5103
|
}
|
|
5088
5104
|
console.log('Current idTypes:', this.idTypes); // Depuración
|
|
5089
5105
|
}
|