iptdevs-design-system 3.1.371 → 3.1.373
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 -28
- package/fesm2015/iptdevs-design-system.mjs +27 -32
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +21 -27
- 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,19 +3197,9 @@ 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
|
-
|
|
3201
|
-
}
|
|
3202
|
-
else {
|
|
3203
|
-
console.log("llegue aqui por alguna razon del la condicion");
|
|
3204
|
-
this.codFormStepOne.controls['academic_plan'].setValue(null);
|
|
3205
|
-
this.codFormStepOne.controls['course_type'].setValue(null);
|
|
3206
|
-
this.codFormStepOne.controls['agreement_by_category'].setValue(null);
|
|
3207
|
-
this.codFormStepOne.controls['english_level'].setValue(null);
|
|
3208
|
-
this.codFormStepOne.controls['availible_courses'].setValue(null);
|
|
3209
|
-
this.codFormStepOne.controls['course_modality'].setValue(null);
|
|
3210
|
-
// this.cdRef.detectChanges();
|
|
3200
|
+
this.cdRef.detectChanges();
|
|
3211
3201
|
}
|
|
3212
|
-
if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && this.isEditCod && this.isRenovation === false) {
|
|
3202
|
+
else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && this.isEditCod && this.isRenovation === false) {
|
|
3213
3203
|
this.processData(this.dataPreviusCodData);
|
|
3214
3204
|
if (this.isEditCod && !this.dataPreviusCodData.edit_course_payment) {
|
|
3215
3205
|
this.isDisabledSel = true;
|
|
@@ -3217,19 +3207,20 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3217
3207
|
else {
|
|
3218
3208
|
this.isDisabledSel = false;
|
|
3219
3209
|
}
|
|
3220
|
-
if (this.isDisabledSel) {
|
|
3221
|
-
|
|
3222
|
-
}
|
|
3210
|
+
// if (this.isDisabledSel) {
|
|
3211
|
+
// this.disableFormControls();
|
|
3212
|
+
// }
|
|
3223
3213
|
// Forzar detección de cambios
|
|
3224
3214
|
this.cdRef.detectChanges();
|
|
3225
3215
|
}
|
|
3226
3216
|
else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && !this.isEditCod && this.courseSelectRenovation && this.isRenovation === true) {
|
|
3227
3217
|
this.setDataCodRenovationSelect();
|
|
3228
3218
|
this.isDisabledSel = true;
|
|
3229
|
-
this.disableFormControls();
|
|
3219
|
+
// this.disableFormControls();
|
|
3230
3220
|
this.cdRef.detectChanges();
|
|
3231
3221
|
}
|
|
3232
3222
|
else {
|
|
3223
|
+
console.log("llegue aqui por alguna razon del la condicion 2");
|
|
3233
3224
|
this.codFormStepOne.controls['academic_plan'].setValue(null);
|
|
3234
3225
|
this.codFormStepOne.controls['course_type'].setValue(null);
|
|
3235
3226
|
this.codFormStepOne.controls['agreement_by_category'].setValue(null);
|
|
@@ -3239,24 +3230,24 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3239
3230
|
// this.cdRef.detectChanges();
|
|
3240
3231
|
}
|
|
3241
3232
|
}
|
|
3242
|
-
disableFormControls() {
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
}
|
|
3233
|
+
// private disableFormControls() {
|
|
3234
|
+
// this.codFormStepOne.controls['academic_plan'].disable();
|
|
3235
|
+
// this.codFormStepOne.controls['course_type'].disable();
|
|
3236
|
+
// this.codFormStepOne.controls['agreement_by_category'].disable();
|
|
3237
|
+
// this.codFormStepOne.controls['english_level'].disable();
|
|
3238
|
+
// this.codFormStepOne.controls['availible_courses'].disable();
|
|
3239
|
+
// this.codFormStepOne.controls['course_modality'].disable();
|
|
3240
|
+
// }
|
|
3250
3241
|
processData(data) {
|
|
3251
3242
|
console.log("llegue aqui en processData");
|
|
3252
3243
|
const { codFormStepOne } = this;
|
|
3253
|
-
this.getAgreementByPlan(data.course_type?.academic_plan.code);
|
|
3254
|
-
this.getCourseType(data.course_type?.academic_plan.code);
|
|
3244
|
+
// this.getAgreementByPlan(data.course_type?.academic_plan.code);
|
|
3245
|
+
// this.getCourseType(data.course_type?.academic_plan.code);
|
|
3255
3246
|
codFormStepOne.controls['english_level'].setValue(data.english_level?.code);
|
|
3256
3247
|
codFormStepOne.controls['agreement_by_category'].setValue(data.agreement?.code);
|
|
3257
3248
|
codFormStepOne.controls['course_type'].setValue(data.course_type?.code);
|
|
3258
3249
|
codFormStepOne.controls['academic_plan'].setValue(data.course_type?.academic_plan.code);
|
|
3259
|
-
this.getAvailibleCourses();
|
|
3250
|
+
// this.getAvailibleCourses();
|
|
3260
3251
|
if (this.isEditCod) {
|
|
3261
3252
|
console.log("llegue aqui setDataFromEditCodHistory");
|
|
3262
3253
|
this.setDataFromEditCodHistory();
|
|
@@ -3278,12 +3269,15 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3278
3269
|
this.getAvailibleCourses();
|
|
3279
3270
|
}
|
|
3280
3271
|
setDataFromEditCodHistory() {
|
|
3272
|
+
this.getAgreementByPlan(this.dataPreviusCodData.course_type?.academic_plan.code);
|
|
3273
|
+
this.getCourseType(this.dataPreviusCodData.course_type?.academic_plan.code);
|
|
3281
3274
|
this.codFormStepOne.controls['academic_plan'].setValue(this.dataPreviusCodData.course_type.academic_plan.code ? this.dataPreviusCodData.course_type.academic_plan.code : null);
|
|
3282
3275
|
this.codFormStepOne.controls['course_type'].setValue(this.dataPreviusCodData.course_type.code ? this.dataPreviusCodData.course_type.code : null);
|
|
3283
3276
|
this.codFormStepOne.controls['agreement_by_category'].setValue(this.dataPreviusCodData.agreement.code ? this.dataPreviusCodData.agreement.code : null);
|
|
3284
3277
|
this.codFormStepOne.controls['english_level'].setValue(this.dataPreviusCodData.english_level.code ? this.dataPreviusCodData.english_level.code : null);
|
|
3285
3278
|
this.codFormStepOne.controls['availible_courses'].setValue(this.dataPreviusCodData.course.code ? this.dataPreviusCodData.course.code : null);
|
|
3286
3279
|
this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course.course_modality ? this.dataPreviusCodData.course.course_modality : null);
|
|
3280
|
+
this.getAvailibleCourses();
|
|
3287
3281
|
}
|
|
3288
3282
|
setDataCodRenovationSelect() {
|
|
3289
3283
|
this.getAgreementByPlan(this.courseSelectRenovation.course_type?.academic_plan.code);
|