iptdevs-design-system 3.1.946 → 3.1.947
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 +7 -1
- package/fesm2015/iptdevs-design-system.mjs +14 -7
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -0
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|