iptdevs-design-system 3.2.191 → 3.2.193

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.
@@ -5325,7 +5325,7 @@ class CodFormStepOneComponent extends CodFormSteps {
5325
5325
  processData(data) {
5326
5326
  var _a, _b, _c, _d, _e, _f;
5327
5327
  const { codFormStepOne } = this;
5328
- this.getAgreementByPlan((_a = data.course_type) === null || _a === void 0 ? void 0 : _a.academic_plan.code);
5328
+ this.getAgreementByPlan((_a = data.course_type) === null || _a === void 0 ? void 0 : _a.academic_plan.code, data.campus);
5329
5329
  this.getCourseType((_b = data.course_type) === null || _b === void 0 ? void 0 : _b.academic_plan.code);
5330
5330
  codFormStepOne.controls['english_level'].setValue((_c = data.english_level) === null || _c === void 0 ? void 0 : _c.code);
5331
5331
  codFormStepOne.controls['agreement_by_category'].setValue((_d = data.agreement) === null || _d === void 0 ? void 0 : _d.code);
@@ -5359,15 +5359,16 @@ class CodFormStepOneComponent extends CodFormSteps {
5359
5359
  }
5360
5360
  setDataCodRenovationSelect() {
5361
5361
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
5362
- this.getAgreementByPlan((_a = this.courseSelectRenovation.course_type) === null || _a === void 0 ? void 0 : _a.academic_plan.code);
5363
- this.getCourseType((_b = this.courseSelectRenovation.course_type) === null || _b === void 0 ? void 0 : _b.academic_plan.code);
5364
- this.codFormStepOne.controls['academic_plan'].setValue(((_c = this.courseSelectRenovation.course_type) === null || _c === void 0 ? void 0 : _c.academic_plan.code) ? (_d = this.courseSelectRenovation.course_type) === null || _d === void 0 ? void 0 : _d.academic_plan.code : null);
5365
- this.codFormStepOne.controls['course_type'].setValue(((_e = this.courseSelectRenovation.course_type) === null || _e === void 0 ? void 0 : _e.code) ? (_f = this.courseSelectRenovation.course_type) === null || _f === void 0 ? void 0 : _f.code : null);
5366
- this.codFormStepOne.controls['agreement_by_category'].setValue(((_g = this.courseSelectRenovation.agreement) === null || _g === void 0 ? void 0 : _g.code) ? (_h = this.courseSelectRenovation.agreement) === null || _h === void 0 ? void 0 : _h.code : null);
5367
- this.codFormStepOne.controls['english_level'].setValue(((_j = this.courseSelectRenovation.english_level) === null || _j === void 0 ? void 0 : _j.code) ? (_k = this.courseSelectRenovation.english_level) === null || _k === void 0 ? void 0 : _k.code : null);
5368
- this.codFormStepOne.controls['availible_courses'].setValue(((_l = this.courseSelectRenovation) === null || _l === void 0 ? void 0 : _l.code) ? (_m = this.courseSelectRenovation) === null || _m === void 0 ? void 0 : _m.code : null);
5369
- this.codFormStepOne.controls['course_modality'].setValue(((_o = this.courseSelectRenovation.course_modality) === null || _o === void 0 ? void 0 : _o.code) ? (_p = this.courseSelectRenovation.course_modality) === null || _p === void 0 ? void 0 : _p.code : null);
5370
- this.codFormStepOne.controls['campus'].setValue(((_q = this.dataPreviusCodData.student) === null || _q === void 0 ? void 0 : _q.campus_enterprise) ? (_r = this.dataPreviusCodData.student) === null || _r === void 0 ? void 0 : _r.campus_enterprise : null);
5362
+ const campus = ((_a = this.dataPreviusCodData.student) === null || _a === void 0 ? void 0 : _a.campus_enterprise) ? (_b = this.dataPreviusCodData.student) === null || _b === void 0 ? void 0 : _b.campus_enterprise : null;
5363
+ this.getAgreementByPlan((_c = this.courseSelectRenovation.course_type) === null || _c === void 0 ? void 0 : _c.academic_plan.code, campus);
5364
+ this.getCourseType((_d = this.courseSelectRenovation.course_type) === null || _d === void 0 ? void 0 : _d.academic_plan.code);
5365
+ this.codFormStepOne.controls['academic_plan'].setValue(((_e = this.courseSelectRenovation.course_type) === null || _e === void 0 ? void 0 : _e.academic_plan.code) ? (_f = this.courseSelectRenovation.course_type) === null || _f === void 0 ? void 0 : _f.academic_plan.code : null);
5366
+ this.codFormStepOne.controls['course_type'].setValue(((_g = this.courseSelectRenovation.course_type) === null || _g === void 0 ? void 0 : _g.code) ? (_h = this.courseSelectRenovation.course_type) === null || _h === void 0 ? void 0 : _h.code : null);
5367
+ this.codFormStepOne.controls['agreement_by_category'].setValue(((_j = this.courseSelectRenovation.agreement) === null || _j === void 0 ? void 0 : _j.code) ? (_k = this.courseSelectRenovation.agreement) === null || _k === void 0 ? void 0 : _k.code : null);
5368
+ this.codFormStepOne.controls['english_level'].setValue(((_l = this.courseSelectRenovation.english_level) === null || _l === void 0 ? void 0 : _l.code) ? (_m = this.courseSelectRenovation.english_level) === null || _m === void 0 ? void 0 : _m.code : null);
5369
+ this.codFormStepOne.controls['availible_courses'].setValue(((_o = this.courseSelectRenovation) === null || _o === void 0 ? void 0 : _o.code) ? (_p = this.courseSelectRenovation) === null || _p === void 0 ? void 0 : _p.code : null);
5370
+ this.codFormStepOne.controls['course_modality'].setValue(((_q = this.courseSelectRenovation.course_modality) === null || _q === void 0 ? void 0 : _q.code) ? (_r = this.courseSelectRenovation.course_modality) === null || _r === void 0 ? void 0 : _r.code : null);
5371
+ this.codFormStepOne.controls['campus'].setValue(campus);
5371
5372
  this.getAvailibleCourses();
5372
5373
  }
5373
5374
  startLocalStorageWork() {
@@ -5431,7 +5432,7 @@ class CodFormStepOneComponent extends CodFormSteps {
5431
5432
  // this.codFormStepOne.controls['school_name'].setValue(null);
5432
5433
  // this.codFormStepOne.controls['course_type'].setValue(null);
5433
5434
  this.getCourseType(parseInt(academic_plan));
5434
- this.getAgreementByPlan(parseInt(academic_plan));
5435
+ //this.getAgreementByPlan(parseInt(academic_plan));
5435
5436
  }
5436
5437
  else {
5437
5438
  this.codFormStepOne.controls['academic_plan'].setValue(null);
@@ -5440,13 +5441,15 @@ class CodFormStepOneComponent extends CodFormSteps {
5440
5441
  }
5441
5442
  }
5442
5443
  selectCampus(campus) {
5444
+ const campusCode = parseInt(campus);
5443
5445
  this.codFormStepOne.controls['course_modality'].setValue(null);
5444
5446
  this.codFormStepOne.controls['availible_courses'].setValue(null);
5445
5447
  this.codFormStepOne.controls['course_type'].setValue(null);
5446
- this.codFormStepOne.controls['campus'].setValue(parseInt(campus));
5448
+ this.codFormStepOne.controls['campus'].setValue(campusCode);
5447
5449
  let academic_plan = this.codFormStepOne.controls['academic_plan'].value;
5448
5450
  this.getCourseType(parseInt(academic_plan));
5449
5451
  this.getAvailibleCourses();
5452
+ this.getAgreementByPlan(parseInt(academic_plan), campusCode);
5450
5453
  }
5451
5454
  getCourseType(plan) {
5452
5455
  var _a;
@@ -5461,12 +5464,12 @@ class CodFormStepOneComponent extends CodFormSteps {
5461
5464
  this.course_type = [];
5462
5465
  }
5463
5466
  }
5464
- getAgreementByPlan(plan) {
5467
+ getAgreementByPlan(plan, campus) {
5465
5468
  var _a;
5466
5469
  const planNumber = typeof plan === 'string' ? parseInt(plan) : plan;
5467
5470
  if (this.parametersAll && ((_a = this.parametersAll) === null || _a === void 0 ? void 0 : _a.agreement)) {
5468
5471
  this.agreements = this.parametersAll.agreement.filter((agreement) => {
5469
- return agreement.category === planNumber;
5472
+ return agreement.category === planNumber && agreement.campus == campus;
5470
5473
  });
5471
5474
  }
5472
5475
  else {
@@ -5652,10 +5655,10 @@ class CodFormStepOneComponent extends CodFormSteps {
5652
5655
  }
5653
5656
  }
5654
5657
  CodFormStepOneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepOneComponent, deps: [{ token: i1$1.FormBuilder }, { token: CopiesService }, { token: BaseService }, { token: CourseService }, { token: CommunicatorService }, { token: ParameterService }, { token: StorageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5655
- CodFormStepOneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepOneComponent, selector: "app-cod-form-step-one", inputs: { initialData: "initialData", dataPreviusCodData: "dataPreviusCodData", isEditCod: "isEditCod", courseSelectRenovation: "courseSelectRenovation", isRenovation: "isRenovation", parametersAll: "parametersAll", campus: "campus" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"codFormStepOne\" class=\"grid\">\n <div class=\"col\">\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['academic_plan'].value\"\n [selectCode]=\"codFormStepOne.controls['academic_plan'].value === null? 'Plan': codFormStepOne.controls['academic_plan'].value\"\n [defaultText]=\"'Plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAcademicPlan($event)\"\n [data]=\"plans\"\n [control]=\"codFormStepOne.controls['academic_plan']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['campus'].value\"\n [selectCode]=\"codFormStepOne.controls['campus'].value === null? 'Campus': codFormStepOne.controls['campus'].value\"\n [defaultText]=\"'Campus'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCampus($event)\"\n [data]=\"campusList\"\n [control]=\"codFormStepOne.controls['campus']\"\n [disabledSel]=\"!canSelectCampus() || isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['course_type'].value\"\n [selectCode]=\"codFormStepOne.controls['course_type'].value === null? 'Tipo de plan': codFormStepOne.controls['course_type'].value\"\n [defaultText]=\"'Tipo de plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCoursesTypesByPlan($event)\"\n [data]=\"course_type\"\n [control]=\"codFormStepOne.controls['course_type']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col\">\n\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['agreement_by_category'].value\"\n [selectCode]=\"codFormStepOne.controls['agreement_by_category'].value === null? 'Convenio por categoria': codFormStepOne.controls['agreement_by_category'].value\"\n [defaultText]=\"'Convenio por categoria'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAgreementByCategory($event)\"\n [data]=\"agreements\"\n [control]=\"codFormStepOne.controls['agreement_by_category']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['english_level'].value\"\n [selectCode]=\"codFormStepOne.controls['english_level'].value === null? 'Nivel de ingl\u00E9s': codFormStepOne.controls['english_level'].value\"\n [defaultText]=\"'Nivel de ingl\u00E9s'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectLevel($event)\"\n [data]=\"levels\"\n [control]=\"codFormStepOne.controls['english_level']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['availible_courses'].value\"\n [selectCode]=\"codFormStepOne.controls['availible_courses'].value === null? 'Grupos disponibles': codFormStepOne.controls['availible_courses'].value\"\n [defaultText]=\"'Grupos disponibles'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAvailibleCourses($event)\"\n [data]=\"availibleCourses\"\n [control]=\"codFormStepOne.controls['availible_courses']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col-12\">\n\n\n <ipt-loader *ngIf=\"isLoading\" class=\"w-1\">\n </ipt-loader>\n </div>\n <span *ngIf=\"!hasAvailableCourse\" class=\"mt-1 pl-2 text-red-500\">Todav\u00EDa no hay cursos con estas caracter\u00EDsticas.</span>\n</form>\n\n<div class=\"flex mt-2 align-items-center gap-3\">\n <span *ngIf=\"codFormStepOne.invalid && codFormStepOne.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">Faltan campos por llenar.</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoaderComponent, selector: "ipt-loader", inputs: ["message", "isDialog"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "label", "control"], outputs: ["eventSelect"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
5658
+ CodFormStepOneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepOneComponent, selector: "app-cod-form-step-one", inputs: { initialData: "initialData", dataPreviusCodData: "dataPreviusCodData", isEditCod: "isEditCod", courseSelectRenovation: "courseSelectRenovation", isRenovation: "isRenovation", parametersAll: "parametersAll", campus: "campus" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"codFormStepOne\" class=\"grid\">\n <div class=\"col\">\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['academic_plan'].value\"\n [selectCode]=\"codFormStepOne.controls['academic_plan'].value === null? 'Plan': codFormStepOne.controls['academic_plan'].value\"\n [defaultText]=\"'Plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAcademicPlan($event)\"\n [data]=\"plans\"\n [control]=\"codFormStepOne.controls['academic_plan']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['campus'].value+''\"\n [selectCode]=\"codFormStepOne.controls['campus'].value === null? 'Campus': codFormStepOne.controls['campus'].value\"\n [defaultText]=\"'Campus'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCampus($event)\"\n [data]=\"campusList\"\n [control]=\"codFormStepOne.controls['campus']\"\n [disabledSel]=\"!canSelectCampus() || isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['course_type'].value\"\n [selectCode]=\"codFormStepOne.controls['course_type'].value === null? 'Tipo de plan': codFormStepOne.controls['course_type'].value\"\n [defaultText]=\"'Tipo de plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCoursesTypesByPlan($event)\"\n [data]=\"course_type\"\n [control]=\"codFormStepOne.controls['course_type']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col\">\n\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['agreement_by_category'].value\"\n [selectCode]=\"codFormStepOne.controls['agreement_by_category'].value === null? 'Convenio por categoria': codFormStepOne.controls['agreement_by_category'].value\"\n [defaultText]=\"'Convenio por categoria'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAgreementByCategory($event)\"\n [data]=\"agreements\"\n [control]=\"codFormStepOne.controls['agreement_by_category']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['english_level'].value\"\n [selectCode]=\"codFormStepOne.controls['english_level'].value === null? 'Nivel de ingl\u00E9s': codFormStepOne.controls['english_level'].value\"\n [defaultText]=\"'Nivel de ingl\u00E9s'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectLevel($event)\"\n [data]=\"levels\"\n [control]=\"codFormStepOne.controls['english_level']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['availible_courses'].value\"\n [selectCode]=\"codFormStepOne.controls['availible_courses'].value === null? 'Grupos disponibles': codFormStepOne.controls['availible_courses'].value\"\n [defaultText]=\"'Grupos disponibles'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAvailibleCourses($event)\"\n [data]=\"availibleCourses\"\n [control]=\"codFormStepOne.controls['availible_courses']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col-12\">\n\n\n <ipt-loader *ngIf=\"isLoading\" class=\"w-1\">\n </ipt-loader>\n </div>\n <span *ngIf=\"!hasAvailableCourse\" class=\"mt-1 pl-2 text-red-500\">Todav\u00EDa no hay cursos con estas caracter\u00EDsticas.</span>\n</form>\n\n<div class=\"flex mt-2 align-items-center gap-3\">\n <span *ngIf=\"codFormStepOne.invalid && codFormStepOne.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">Faltan campos por llenar.</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoaderComponent, selector: "ipt-loader", inputs: ["message", "isDialog"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "label", "control"], outputs: ["eventSelect"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
5656
5659
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepOneComponent, decorators: [{
5657
5660
  type: Component,
5658
- args: [{ selector: 'app-cod-form-step-one', template: "<form [formGroup]=\"codFormStepOne\" class=\"grid\">\n <div class=\"col\">\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['academic_plan'].value\"\n [selectCode]=\"codFormStepOne.controls['academic_plan'].value === null? 'Plan': codFormStepOne.controls['academic_plan'].value\"\n [defaultText]=\"'Plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAcademicPlan($event)\"\n [data]=\"plans\"\n [control]=\"codFormStepOne.controls['academic_plan']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['campus'].value\"\n [selectCode]=\"codFormStepOne.controls['campus'].value === null? 'Campus': codFormStepOne.controls['campus'].value\"\n [defaultText]=\"'Campus'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCampus($event)\"\n [data]=\"campusList\"\n [control]=\"codFormStepOne.controls['campus']\"\n [disabledSel]=\"!canSelectCampus() || isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['course_type'].value\"\n [selectCode]=\"codFormStepOne.controls['course_type'].value === null? 'Tipo de plan': codFormStepOne.controls['course_type'].value\"\n [defaultText]=\"'Tipo de plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCoursesTypesByPlan($event)\"\n [data]=\"course_type\"\n [control]=\"codFormStepOne.controls['course_type']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col\">\n\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['agreement_by_category'].value\"\n [selectCode]=\"codFormStepOne.controls['agreement_by_category'].value === null? 'Convenio por categoria': codFormStepOne.controls['agreement_by_category'].value\"\n [defaultText]=\"'Convenio por categoria'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAgreementByCategory($event)\"\n [data]=\"agreements\"\n [control]=\"codFormStepOne.controls['agreement_by_category']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['english_level'].value\"\n [selectCode]=\"codFormStepOne.controls['english_level'].value === null? 'Nivel de ingl\u00E9s': codFormStepOne.controls['english_level'].value\"\n [defaultText]=\"'Nivel de ingl\u00E9s'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectLevel($event)\"\n [data]=\"levels\"\n [control]=\"codFormStepOne.controls['english_level']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['availible_courses'].value\"\n [selectCode]=\"codFormStepOne.controls['availible_courses'].value === null? 'Grupos disponibles': codFormStepOne.controls['availible_courses'].value\"\n [defaultText]=\"'Grupos disponibles'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAvailibleCourses($event)\"\n [data]=\"availibleCourses\"\n [control]=\"codFormStepOne.controls['availible_courses']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col-12\">\n\n\n <ipt-loader *ngIf=\"isLoading\" class=\"w-1\">\n </ipt-loader>\n </div>\n <span *ngIf=\"!hasAvailableCourse\" class=\"mt-1 pl-2 text-red-500\">Todav\u00EDa no hay cursos con estas caracter\u00EDsticas.</span>\n</form>\n\n<div class=\"flex mt-2 align-items-center gap-3\">\n <span *ngIf=\"codFormStepOne.invalid && codFormStepOne.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">Faltan campos por llenar.</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"] }]
5661
+ args: [{ selector: 'app-cod-form-step-one', template: "<form [formGroup]=\"codFormStepOne\" class=\"grid\">\n <div class=\"col\">\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['academic_plan'].value\"\n [selectCode]=\"codFormStepOne.controls['academic_plan'].value === null? 'Plan': codFormStepOne.controls['academic_plan'].value\"\n [defaultText]=\"'Plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAcademicPlan($event)\"\n [data]=\"plans\"\n [control]=\"codFormStepOne.controls['academic_plan']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['campus'].value+''\"\n [selectCode]=\"codFormStepOne.controls['campus'].value === null? 'Campus': codFormStepOne.controls['campus'].value\"\n [defaultText]=\"'Campus'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCampus($event)\"\n [data]=\"campusList\"\n [control]=\"codFormStepOne.controls['campus']\"\n [disabledSel]=\"!canSelectCampus() || isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['course_type'].value\"\n [selectCode]=\"codFormStepOne.controls['course_type'].value === null? 'Tipo de plan': codFormStepOne.controls['course_type'].value\"\n [defaultText]=\"'Tipo de plan'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectCoursesTypesByPlan($event)\"\n [data]=\"course_type\"\n [control]=\"codFormStepOne.controls['course_type']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col\">\n\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['agreement_by_category'].value\"\n [selectCode]=\"codFormStepOne.controls['agreement_by_category'].value === null? 'Convenio por categoria': codFormStepOne.controls['agreement_by_category'].value\"\n [defaultText]=\"'Convenio por categoria'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAgreementByCategory($event)\"\n [data]=\"agreements\"\n [control]=\"codFormStepOne.controls['agreement_by_category']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['english_level'].value\"\n [selectCode]=\"codFormStepOne.controls['english_level'].value === null? 'Nivel de ingl\u00E9s': codFormStepOne.controls['english_level'].value\"\n [defaultText]=\"'Nivel de ingl\u00E9s'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectLevel($event)\"\n [data]=\"levels\"\n [control]=\"codFormStepOne.controls['english_level']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepOne.controls['availible_courses'].value\"\n [selectCode]=\"codFormStepOne.controls['availible_courses'].value === null? 'Grupos disponibles': codFormStepOne.controls['availible_courses'].value\"\n [defaultText]=\"'Grupos disponibles'\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectAvailibleCourses($event)\"\n [data]=\"availibleCourses\"\n [control]=\"codFormStepOne.controls['availible_courses']\"\n [disabledSel]=\"isDisabledSel\"\n ></ipt-select>\n </div>\n <div class=\"col-12\">\n\n\n <ipt-loader *ngIf=\"isLoading\" class=\"w-1\">\n </ipt-loader>\n </div>\n <span *ngIf=\"!hasAvailableCourse\" class=\"mt-1 pl-2 text-red-500\">Todav\u00EDa no hay cursos con estas caracter\u00EDsticas.</span>\n</form>\n\n<div class=\"flex mt-2 align-items-center gap-3\">\n <span *ngIf=\"codFormStepOne.invalid && codFormStepOne.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">Faltan campos por llenar.</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"] }]
5659
5662
  }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: CopiesService }, { type: BaseService }, { type: CourseService }, { type: CommunicatorService }, { type: ParameterService }, { type: StorageService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { initialData: [{
5660
5663
  type: Input
5661
5664
  }], dataPreviusCodData: [{
@@ -8456,6 +8459,11 @@ class BudgetService extends IPTGeneralService {
8456
8459
  this.generateRequestParams(param);
8457
8460
  return this.http.post(serviceUrl, this.httpOptions);
8458
8461
  }
8462
+ obtainCampusCoursesByAdvisor(param) {
8463
+ let serviceUrl = this.SERVICE_URL + 'obtain/amount/campus/courses/by/advisor';
8464
+ this.generateRequestParams(param);
8465
+ return this.http.post(serviceUrl, this.httpOptions);
8466
+ }
8459
8467
  getCoursesNotAssignedByCampus(param) {
8460
8468
  let serviceUrl = this.SERVICE_URL + 'get/courses/not/assigned/by/campus';
8461
8469
  this.generateRequestParams(param);