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