iptdevs-design-system 3.1.370 → 3.1.372
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-one/cod-form-step-one.component.mjs +22 -17
- package/fesm2015/iptdevs-design-system.mjs +27 -21
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +21 -16
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -3197,9 +3197,10 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3197
3197
|
this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
3198
3198
|
if (changes['initialData'] && this.initialData != null && this.dataPreviusCodData === null && this.isEditCod === false && this.isRenovation === false) {
|
|
3199
3199
|
this.processData(this.initialData);
|
|
3200
|
-
|
|
3200
|
+
this.cdRef.detectChanges();
|
|
3201
3201
|
}
|
|
3202
3202
|
else {
|
|
3203
|
+
console.log("llegue aqui por alguna razon del la condicion");
|
|
3203
3204
|
this.codFormStepOne.controls['academic_plan'].setValue(null);
|
|
3204
3205
|
this.codFormStepOne.controls['course_type'].setValue(null);
|
|
3205
3206
|
this.codFormStepOne.controls['agreement_by_category'].setValue(null);
|
|
@@ -3216,19 +3217,20 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3216
3217
|
else {
|
|
3217
3218
|
this.isDisabledSel = false;
|
|
3218
3219
|
}
|
|
3219
|
-
if (this.isDisabledSel) {
|
|
3220
|
-
|
|
3221
|
-
}
|
|
3220
|
+
// if (this.isDisabledSel) {
|
|
3221
|
+
// this.disableFormControls();
|
|
3222
|
+
// }
|
|
3222
3223
|
// Forzar detección de cambios
|
|
3223
3224
|
this.cdRef.detectChanges();
|
|
3224
3225
|
}
|
|
3225
3226
|
else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && !this.isEditCod && this.courseSelectRenovation && this.isRenovation === true) {
|
|
3226
3227
|
this.setDataCodRenovationSelect();
|
|
3227
3228
|
this.isDisabledSel = true;
|
|
3228
|
-
this.disableFormControls();
|
|
3229
|
+
// this.disableFormControls();
|
|
3229
3230
|
this.cdRef.detectChanges();
|
|
3230
3231
|
}
|
|
3231
3232
|
else {
|
|
3233
|
+
console.log("llegue aqui por alguna razon del la condicion 2");
|
|
3232
3234
|
this.codFormStepOne.controls['academic_plan'].setValue(null);
|
|
3233
3235
|
this.codFormStepOne.controls['course_type'].setValue(null);
|
|
3234
3236
|
this.codFormStepOne.controls['agreement_by_category'].setValue(null);
|
|
@@ -3238,24 +3240,24 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3238
3240
|
// this.cdRef.detectChanges();
|
|
3239
3241
|
}
|
|
3240
3242
|
}
|
|
3241
|
-
disableFormControls() {
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
}
|
|
3243
|
+
// private disableFormControls() {
|
|
3244
|
+
// this.codFormStepOne.controls['academic_plan'].disable();
|
|
3245
|
+
// this.codFormStepOne.controls['course_type'].disable();
|
|
3246
|
+
// this.codFormStepOne.controls['agreement_by_category'].disable();
|
|
3247
|
+
// this.codFormStepOne.controls['english_level'].disable();
|
|
3248
|
+
// this.codFormStepOne.controls['availible_courses'].disable();
|
|
3249
|
+
// this.codFormStepOne.controls['course_modality'].disable();
|
|
3250
|
+
// }
|
|
3249
3251
|
processData(data) {
|
|
3250
3252
|
console.log("llegue aqui en processData");
|
|
3251
3253
|
const { codFormStepOne } = this;
|
|
3252
|
-
this.getAgreementByPlan(data.course_type?.academic_plan.code);
|
|
3253
|
-
this.getCourseType(data.course_type?.academic_plan.code);
|
|
3254
|
+
// this.getAgreementByPlan(data.course_type?.academic_plan.code);
|
|
3255
|
+
// this.getCourseType(data.course_type?.academic_plan.code);
|
|
3254
3256
|
codFormStepOne.controls['english_level'].setValue(data.english_level?.code);
|
|
3255
3257
|
codFormStepOne.controls['agreement_by_category'].setValue(data.agreement?.code);
|
|
3256
3258
|
codFormStepOne.controls['course_type'].setValue(data.course_type?.code);
|
|
3257
3259
|
codFormStepOne.controls['academic_plan'].setValue(data.course_type?.academic_plan.code);
|
|
3258
|
-
this.getAvailibleCourses();
|
|
3260
|
+
// this.getAvailibleCourses();
|
|
3259
3261
|
if (this.isEditCod) {
|
|
3260
3262
|
console.log("llegue aqui setDataFromEditCodHistory");
|
|
3261
3263
|
this.setDataFromEditCodHistory();
|
|
@@ -3277,12 +3279,15 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3277
3279
|
this.getAvailibleCourses();
|
|
3278
3280
|
}
|
|
3279
3281
|
setDataFromEditCodHistory() {
|
|
3282
|
+
this.getAgreementByPlan(this.dataPreviusCodData.course_type?.academic_plan.code);
|
|
3283
|
+
this.getCourseType(this.dataPreviusCodData.course_type?.academic_plan.code);
|
|
3280
3284
|
this.codFormStepOne.controls['academic_plan'].setValue(this.dataPreviusCodData.course_type.academic_plan.code ? this.dataPreviusCodData.course_type.academic_plan.code : null);
|
|
3281
3285
|
this.codFormStepOne.controls['course_type'].setValue(this.dataPreviusCodData.course_type.code ? this.dataPreviusCodData.course_type.code : null);
|
|
3282
3286
|
this.codFormStepOne.controls['agreement_by_category'].setValue(this.dataPreviusCodData.agreement.code ? this.dataPreviusCodData.agreement.code : null);
|
|
3283
3287
|
this.codFormStepOne.controls['english_level'].setValue(this.dataPreviusCodData.english_level.code ? this.dataPreviusCodData.english_level.code : null);
|
|
3284
3288
|
this.codFormStepOne.controls['availible_courses'].setValue(this.dataPreviusCodData.course.code ? this.dataPreviusCodData.course.code : null);
|
|
3285
3289
|
this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course.course_modality ? this.dataPreviusCodData.course.course_modality : null);
|
|
3290
|
+
this.getAvailibleCourses();
|
|
3286
3291
|
}
|
|
3287
3292
|
setDataCodRenovationSelect() {
|
|
3288
3293
|
this.getAgreementByPlan(this.courseSelectRenovation.course_type?.academic_plan.code);
|