iptdevs-design-system 3.1.4375 → 3.1.4377
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/cod-form-self-managed/cod-self-managed.component.mjs +7 -1
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +13 -13
- package/esm2020/lib/core/models/user/user-rs.model.mjs +1 -1
- package/fesm2015/iptdevs-design-system.mjs +19 -13
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +18 -12
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod-self-managed/cod-form-self-managed/cod-self-managed.component.d.ts +2 -1
- package/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.d.ts +2 -1
- package/lib/core/models/user/user-rs.model.d.ts +25 -0
- package/package.json +1 -1
|
@@ -6409,18 +6409,18 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
|
|
|
6409
6409
|
});
|
|
6410
6410
|
}
|
|
6411
6411
|
setDataUsers() {
|
|
6412
|
-
this.codSelfFormStepOne.controls['student_name'].setValue(this.user
|
|
6413
|
-
this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user
|
|
6414
|
-
this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user
|
|
6415
|
-
this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user
|
|
6416
|
-
this.codSelfFormStepOne.controls['country'].setValue(this.user
|
|
6417
|
-
this.codSelfFormStepOne.controls['state'].setValue(this.user
|
|
6418
|
-
this.codSelfFormStepOne.controls['city'].setValue(this.user
|
|
6419
|
-
this.codSelfFormStepOne.controls['gender'].setValue(this.user
|
|
6420
|
-
this.codSelfFormStepOne.controls['birthdate'].setValue(this.user
|
|
6421
|
-
this.codSelfFormStepOne.controls['student_email'].setValue(this.user
|
|
6422
|
-
this.codSelfFormStepOne.controls['student_phone_indicative'].setValue(this.user
|
|
6423
|
-
this.codSelfFormStepOne.controls['student_phone_number'].setValue(this.user
|
|
6412
|
+
this.codSelfFormStepOne.controls['student_name'].setValue(this.user?.name);
|
|
6413
|
+
this.codSelfFormStepOne.controls['student_last_name'].setValue(this.user?.last_name);
|
|
6414
|
+
this.codSelfFormStepOne.controls['student_id_card_type'].setValue(this.user?.id_card_type);
|
|
6415
|
+
this.codSelfFormStepOne.controls['student_id_card'].setValue(this.user?.id_card);
|
|
6416
|
+
this.codSelfFormStepOne.controls['country'].setValue(this.user?.city[0]?.country != (1 || null) ? this.user?.city[0]?.country : null);
|
|
6417
|
+
this.codSelfFormStepOne.controls['state'].setValue(this.user?.city[0]?.state != (33 || null) ? this.user?.city[0]?.state : null);
|
|
6418
|
+
this.codSelfFormStepOne.controls['city'].setValue(this.user?.city[0]?.code != (1 || null) ? this.user?.city[0]?.code : null);
|
|
6419
|
+
this.codSelfFormStepOne.controls['gender'].setValue(this.user?.gender);
|
|
6420
|
+
this.codSelfFormStepOne.controls['birthdate'].setValue(this.user?.birthdate);
|
|
6421
|
+
this.codSelfFormStepOne.controls['student_email'].setValue(this.user?.email);
|
|
6422
|
+
this.codSelfFormStepOne.controls['student_phone_indicative'].setValue(this.user?.phone_indicative);
|
|
6423
|
+
this.codSelfFormStepOne.controls['student_phone_number'].setValue(this.user?.phone_number);
|
|
6424
6424
|
}
|
|
6425
6425
|
selectCountry(country) {
|
|
6426
6426
|
let iso = '';
|
|
@@ -6623,6 +6623,12 @@ class CodSelfManagedComponent {
|
|
|
6623
6623
|
}
|
|
6624
6624
|
ngOnChanges(changes) {
|
|
6625
6625
|
console.log(this.user);
|
|
6626
|
+
if (changes['user'] && this.user != null) {
|
|
6627
|
+
console.log(this.user);
|
|
6628
|
+
}
|
|
6629
|
+
else {
|
|
6630
|
+
console.log('user', this.user);
|
|
6631
|
+
}
|
|
6626
6632
|
}
|
|
6627
6633
|
onChangeStep(step) {
|
|
6628
6634
|
// console.log(step);
|