iptdevs-design-system 3.1.270 → 3.1.272
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 +7 -7
- package/esm2020/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.mjs +3 -3
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +2 -2
- package/fesm2015/iptdevs-design-system.mjs +11 -9
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +9 -9
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3175,9 +3175,10 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3175
3175
|
this.codFormStepOne.controls['course_modality'].disable();
|
|
3176
3176
|
}
|
|
3177
3177
|
processData(data) {
|
|
3178
|
+
var _a, _b;
|
|
3178
3179
|
const { codFormStepOne } = this;
|
|
3179
|
-
this.getAgreementByPlan(data.course_type.academic_plan.code);
|
|
3180
|
-
this.getCourseType(data.course_type.academic_plan.code);
|
|
3180
|
+
this.getAgreementByPlan((_a = data.course_type) === null || _a === void 0 ? void 0 : _a.academic_plan.code);
|
|
3181
|
+
this.getCourseType((_b = data.course_type) === null || _b === void 0 ? void 0 : _b.academic_plan.code);
|
|
3181
3182
|
codFormStepOne.controls['english_level'].setValue(data.english_level.code);
|
|
3182
3183
|
codFormStepOne.controls['agreement_by_category'].setValue(data.agreement.code);
|
|
3183
3184
|
codFormStepOne.controls['course_type'].setValue(data.course_type.code);
|
|
@@ -3508,7 +3509,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3508
3509
|
grade: ['', [Validators.required]],
|
|
3509
3510
|
civil_status: ['', [Validators.required]],
|
|
3510
3511
|
student_phone_indicative: ['', [Validators.required], []],
|
|
3511
|
-
student_phone_number: ['', [Validators.required, Validators.minLength(
|
|
3512
|
+
student_phone_number: ['', [Validators.required, Validators.minLength(8), Validators.maxLength(15)]],
|
|
3512
3513
|
password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
|
|
3513
3514
|
re_password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
|
|
3514
3515
|
});
|
|
@@ -4605,12 +4606,13 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4605
4606
|
}
|
|
4606
4607
|
}
|
|
4607
4608
|
setDataFromPreviusCod() {
|
|
4608
|
-
|
|
4609
|
-
this.codFormStepFive.controls['
|
|
4610
|
-
this.codFormStepFive.controls['
|
|
4611
|
-
this.codFormStepFive.controls['
|
|
4612
|
-
this.codFormStepFive.controls['
|
|
4613
|
-
this.codFormStepFive.controls['
|
|
4609
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4610
|
+
this.codFormStepFive.controls['marketing_reasons'].setValue((_a = this.initialData.aditional_information) === null || _a === void 0 ? void 0 : _a.marketing_reasons);
|
|
4611
|
+
this.codFormStepFive.controls['study_reasons'].setValue((_b = this.initialData.aditional_information) === null || _b === void 0 ? void 0 : _b.study_reasons);
|
|
4612
|
+
this.codFormStepFive.controls['disability'].setValue((_c = this.initialData.aditional_information) === null || _c === void 0 ? void 0 : _c.disability);
|
|
4613
|
+
this.codFormStepFive.controls['health_regimen'].setValue((_d = this.initialData.aditional_information) === null || _d === void 0 ? void 0 : _d.health_regimen);
|
|
4614
|
+
this.codFormStepFive.controls['observation'].setValue((_e = this.initialData.aditional_information) === null || _e === void 0 ? void 0 : _e.observation);
|
|
4615
|
+
this.codFormStepFive.controls['code_refers'].setValue((_f = this.initialData.aditional_information) === null || _f === void 0 ? void 0 : _f.code_refers);
|
|
4614
4616
|
this.codFormStepFive.controls['code_cod'].setValue(this.initialData.code);
|
|
4615
4617
|
}
|
|
4616
4618
|
setDataFromUserHistory() {
|