iptdevs-design-system 3.1.328 → 3.1.330
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 +15 -2
- package/esm2020/lib/core/services/academic-service/academic.service.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs +20 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +19 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.d.ts +1 -0
- package/lib/core/services/academic-service/academic.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3182,14 +3182,16 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3182
3182
|
this.isDisabledSel = false;
|
|
3183
3183
|
}
|
|
3184
3184
|
if (this.isDisabledSel) {
|
|
3185
|
+
console.log('entreaqui1', this.dataPreviusCodData);
|
|
3185
3186
|
this.disableFormControls();
|
|
3186
3187
|
}
|
|
3187
3188
|
// Forzar detección de cambios
|
|
3188
3189
|
this.cdRef.detectChanges();
|
|
3189
3190
|
}
|
|
3190
3191
|
else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && !this.isEditCod && this.dataPreviusCodData.cod_renovation && this.courseSelectRenovation) {
|
|
3191
|
-
console.log('llegue
|
|
3192
|
+
console.log('llegue aqui2');
|
|
3192
3193
|
console.log(this.courseSelectRenovation);
|
|
3194
|
+
this.setDataCodRenovationSelect();
|
|
3193
3195
|
}
|
|
3194
3196
|
}
|
|
3195
3197
|
disableFormControls() {
|
|
@@ -3235,6 +3237,17 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3235
3237
|
this.codFormStepOne.controls['availible_courses'].setValue(this.dataPreviusCodData.course.code);
|
|
3236
3238
|
this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course.course_modality);
|
|
3237
3239
|
}
|
|
3240
|
+
setDataCodRenovationSelect() {
|
|
3241
|
+
this.getAgreementByPlan(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3242
|
+
this.getCourseType(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3243
|
+
this.codFormStepOne.controls['academic_plan'].setValue(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3244
|
+
this.codFormStepOne.controls['course_type'].setValue(this.courseSelectRenovation.course_type?.code);
|
|
3245
|
+
this.codFormStepOne.controls['agreement_by_category'].setValue(this.courseSelectRenovation.agreement?.code);
|
|
3246
|
+
this.codFormStepOne.controls['english_level'].setValue(this.courseSelectRenovation.english_level?.code);
|
|
3247
|
+
this.codFormStepOne.controls['availible_courses'].setValue(this.courseSelectRenovation?.code);
|
|
3248
|
+
this.codFormStepOne.controls['course_modality'].setValue(this.courseSelectRenovation.course_modality?.code);
|
|
3249
|
+
this.getAvailibleCourses();
|
|
3250
|
+
}
|
|
3238
3251
|
startLocalStorageWork() {
|
|
3239
3252
|
this.controls.forEach(control => {
|
|
3240
3253
|
let localStorageValue = this.readAndWriteLS(1, control.name);
|
|
@@ -5783,6 +5796,11 @@ class AcademicService extends IPTGeneralService {
|
|
|
5783
5796
|
this.generateRequestParams(params);
|
|
5784
5797
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
5785
5798
|
}
|
|
5799
|
+
obtainCoursesTheoryByDifferentParameters(params) {
|
|
5800
|
+
let serviceUrl = this.SERVICE_URL + 'obtain/courses/theory/by/different/parameters';
|
|
5801
|
+
this.generateRequestParams(params);
|
|
5802
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
5803
|
+
}
|
|
5786
5804
|
}
|
|
5787
5805
|
AcademicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: AcademicService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5788
5806
|
AcademicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: AcademicService, providedIn: 'root' });
|