iptdevs-design-system 3.1.949 → 3.1.950
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 +8 -15
- package/fesm2015/iptdevs-design-system.mjs +14 -21
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +7 -14
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4795,6 +4795,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4795
4795
|
this.changeStepEvent = new EventEmitter();
|
|
4796
4796
|
this.errorMessage = 'Faltan campos por llenar.';
|
|
4797
4797
|
this.hasErrors = false;
|
|
4798
|
+
this.idTypes = [];
|
|
4798
4799
|
this.genders = [];
|
|
4799
4800
|
// Controls del formulario
|
|
4800
4801
|
this.controls = new CodFormControls().controls[1];
|
|
@@ -4932,9 +4933,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4932
4933
|
}
|
|
4933
4934
|
if (age < 3) {
|
|
4934
4935
|
this.errorMessage = 'Fecha de nacimiento no válida';
|
|
4935
|
-
this.codFormStepTwo.controls['birthdate'].setErrors({
|
|
4936
|
-
invalidAge: true
|
|
4937
|
-
});
|
|
4936
|
+
this.codFormStepTwo.controls['birthdate'].setErrors({ invalidAge: true });
|
|
4938
4937
|
}
|
|
4939
4938
|
else {
|
|
4940
4939
|
this.codFormStepTwo.controls['birthdate'].setErrors(null);
|
|
@@ -4944,18 +4943,15 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4944
4943
|
});
|
|
4945
4944
|
}
|
|
4946
4945
|
getParameters() {
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
// console.log('Initial idTypes:', this.idTypes); // Depuración
|
|
4946
|
+
this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
|
|
4947
|
+
console.log('Initial idTypes:', this.idTypes); // Depuración
|
|
4950
4948
|
this.indicatives = this.parametersAll?.indicatives;
|
|
4951
4949
|
this.countries = this.parametersAll?.country;
|
|
4952
4950
|
this.stratums = this.parametersAll?.stratum;
|
|
4953
4951
|
this.civilStatus = this.parametersAll?.civilStatus;
|
|
4954
4952
|
this.cities = this.parametersAll?.city;
|
|
4955
4953
|
this.states = this.parametersAll?.State;
|
|
4956
|
-
// this.genders =this.parametersAll?.gender;
|
|
4957
4954
|
if (this.parametersAll && this.parametersAll.gender) {
|
|
4958
|
-
// Transformar gender en un arreglo de { code, name }
|
|
4959
4955
|
this.genders = this.parametersAll.gender.map((gender) => ({
|
|
4960
4956
|
code: gender.code,
|
|
4961
4957
|
name: gender.name_spanish
|
|
@@ -5073,13 +5069,10 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5073
5069
|
trackStudentIdCardChanges() {
|
|
5074
5070
|
console.log('trackStudentIdCardChanges called'); // Depuración
|
|
5075
5071
|
const control = this.codFormStepTwo.get('student_id_card');
|
|
5076
|
-
control?.valueChanges.subscribe((
|
|
5077
|
-
|
|
5072
|
+
control?.valueChanges.subscribe((value) => {
|
|
5073
|
+
console.log('student_id_card value:', value); // Depuración
|
|
5074
|
+
this.updateIdTypes(value);
|
|
5078
5075
|
});
|
|
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
|
-
// });
|
|
5083
5076
|
}
|
|
5084
5077
|
updateIdTypes(value) {
|
|
5085
5078
|
console.log('updateIdTypes called with value:', value); // Depuración
|