iptdevs-design-system 3.1.3102 → 3.1.3103
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-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +4 -13
- package/fesm2015/iptdevs-design-system.mjs +3 -12
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +3 -12
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6127,14 +6127,11 @@ class CodSelfFormStepOneComponent {
|
|
|
6127
6127
|
student_last_name: ['', [Validators.required]],
|
|
6128
6128
|
student_id_card_type: ['', [Validators.required], []],
|
|
6129
6129
|
student_id_card: [{ value: '', disabled: true }, [Validators.required, Validators.minLength(5), Validators.maxLength(20)]],
|
|
6130
|
-
// student_email: ['', [Validators.required, Validators.email]],
|
|
6131
6130
|
gender: ['', [Validators.required]],
|
|
6132
|
-
// age: ['', [Validators.required]],
|
|
6133
6131
|
birthdate: ['', [Validators.required], []],
|
|
6134
6132
|
country: ['', [Validators.required], []],
|
|
6135
6133
|
state: ['', [Validators.required], []],
|
|
6136
6134
|
city: ['', [Validators.required], []],
|
|
6137
|
-
// student_address: ['', [Validators.required], []],
|
|
6138
6135
|
});
|
|
6139
6136
|
}
|
|
6140
6137
|
getParameters() {
|
|
@@ -6147,12 +6144,6 @@ class CodSelfFormStepOneComponent {
|
|
|
6147
6144
|
this.parameterService.getCountries().subscribe((response) => {
|
|
6148
6145
|
this.countries = response.data;
|
|
6149
6146
|
});
|
|
6150
|
-
// this.parameterService.getStratums().subscribe((response) => {
|
|
6151
|
-
// this.stratums = response.data;
|
|
6152
|
-
// });
|
|
6153
|
-
// this.parameterService.getCivilStatus().subscribe((response) => {
|
|
6154
|
-
// this.civilStatus = response.data;
|
|
6155
|
-
// });
|
|
6156
6147
|
this.parameterService.getAllCities().subscribe((response) => {
|
|
6157
6148
|
this.cities = response.data;
|
|
6158
6149
|
});
|
|
@@ -6174,9 +6165,9 @@ class CodSelfFormStepOneComponent {
|
|
|
6174
6165
|
this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user.last_name ? this.user.last_name : null);
|
|
6175
6166
|
this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user.id_card_type ? this.user.id_card_type : null);
|
|
6176
6167
|
this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user.id_card ? this.user.id_card : null);
|
|
6177
|
-
this.codSelfFormStepOne.controls['country'].setValue(this.user.city[0]?.country ? this.user.city[0]?.country : null);
|
|
6178
|
-
this.codSelfFormStepOne.controls['state'].setValue(this.user.city[0]?.state ? this.user.city[0]?.state : null);
|
|
6179
|
-
this.codSelfFormStepOne.controls['city'].setValue(this.user.city[0]?.code ? this.user.city[0]?.code : null);
|
|
6168
|
+
this.codSelfFormStepOne.controls['country'].setValue(this.user.city[0]?.country != (1 || null) ? this.user.city[0]?.country : null);
|
|
6169
|
+
this.codSelfFormStepOne.controls['state'].setValue(this.user.city[0]?.state != (1 || null) ? this.user.city[0]?.state : null);
|
|
6170
|
+
this.codSelfFormStepOne.controls['city'].setValue(this.user.city[0]?.code != (1 || null) ? this.user.city[0]?.code : null);
|
|
6180
6171
|
this.codSelfFormStepOne.controls['gender'].setValue(this.user.gender ? this.user.gender : null);
|
|
6181
6172
|
this.codSelfFormStepOne.controls['birthdate'].setValue(this.user.birthdate ? this.user.birthdate : null);
|
|
6182
6173
|
}
|