iptdevs-design-system 3.1.155 → 3.1.157
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-five/cod-form-step-five.component.mjs +4 -4
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +4 -4
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +17 -17
- package/fesm2015/iptdevs-design-system.mjs +22 -22
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +22 -22
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3301,29 +3301,29 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3301
3301
|
this.getParameters();
|
|
3302
3302
|
if (changes['initialData']) {
|
|
3303
3303
|
if (this.initialData != null) {
|
|
3304
|
-
if (this.initialData.
|
|
3305
|
-
this.
|
|
3304
|
+
if (this.initialData.student != null) {
|
|
3305
|
+
this.setDataFromPreviusCod();
|
|
3306
3306
|
}
|
|
3307
3307
|
else {
|
|
3308
|
-
this.
|
|
3308
|
+
this.setDataFromUserHistory();
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
setDataFromUserHistory() {
|
|
3314
|
-
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.
|
|
3315
|
-
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.
|
|
3316
|
-
this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.
|
|
3317
|
-
this.codFormStepTwo.controls['student_id_card'].setValue(this.initialData.
|
|
3318
|
-
this.codFormStepTwo.controls['country'].setValue(this.initialData.
|
|
3319
|
-
this.codFormStepTwo.controls['state'].setValue(this.initialData.
|
|
3320
|
-
this.codFormStepTwo.controls['city'].setValue(this.initialData.
|
|
3321
|
-
this.codFormStepTwo.controls['gender'].setValue(this.initialData.
|
|
3322
|
-
this.codFormStepTwo.controls['nickname'].setValue(this.initialData.
|
|
3323
|
-
this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.
|
|
3324
|
-
this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.
|
|
3325
|
-
this.codFormStepTwo.controls['birthdate'].setValue(this.initialData.
|
|
3326
|
-
this.codFormStepTwo.controls['student_email'].setValue(this.initialData.
|
|
3314
|
+
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
|
|
3315
|
+
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
|
|
3316
|
+
this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.id_card_type);
|
|
3317
|
+
this.codFormStepTwo.controls['student_id_card'].setValue(this.initialData.id_card);
|
|
3318
|
+
this.codFormStepTwo.controls['country'].setValue(this.initialData.city[0].country);
|
|
3319
|
+
this.codFormStepTwo.controls['state'].setValue(this.initialData.city[0].state);
|
|
3320
|
+
this.codFormStepTwo.controls['city'].setValue(this.initialData.city[0].code);
|
|
3321
|
+
this.codFormStepTwo.controls['gender'].setValue(this.initialData.gender);
|
|
3322
|
+
this.codFormStepTwo.controls['nickname'].setValue(this.initialData.nick_name);
|
|
3323
|
+
this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.phone_indicative);
|
|
3324
|
+
this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.phone_number);
|
|
3325
|
+
this.codFormStepTwo.controls['birthdate'].setValue(this.initialData.birthdate);
|
|
3326
|
+
this.codFormStepTwo.controls['student_email'].setValue(this.initialData.email);
|
|
3327
3327
|
}
|
|
3328
3328
|
setDataFromPreviusCod() {
|
|
3329
3329
|
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
|
|
@@ -3602,11 +3602,11 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3602
3602
|
if (this.initialData != null) {
|
|
3603
3603
|
if (this.initialData.parent != null) {
|
|
3604
3604
|
this.selectNeedAtendant(1);
|
|
3605
|
-
if (this.initialData.
|
|
3606
|
-
this.
|
|
3605
|
+
if (this.initialData.student != null) {
|
|
3606
|
+
this.setValueStepThree();
|
|
3607
3607
|
}
|
|
3608
3608
|
else {
|
|
3609
|
-
this.
|
|
3609
|
+
this.setDataFromUserHistory();
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
else {
|
|
@@ -4316,11 +4316,11 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4316
4316
|
this.sendFormMsg = 'Crear COD'; // Roles comerciales
|
|
4317
4317
|
if (changes['initialData']) {
|
|
4318
4318
|
if (this.initialData != null) {
|
|
4319
|
-
if (this.initialData.
|
|
4320
|
-
this.
|
|
4319
|
+
if (this.initialData.student != null) {
|
|
4320
|
+
this.setDataFromPreviusCod();
|
|
4321
4321
|
}
|
|
4322
4322
|
else {
|
|
4323
|
-
this.
|
|
4323
|
+
this.setDataFromUserHistory();
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|