iptdevs-design-system 3.1.285 → 3.1.288

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.
@@ -4577,7 +4577,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
4577
4577
  this.codFormStepFive.markAllAsTouched();
4578
4578
  if (this.codFormStepFive.invalid || this.termsCheckboxStatus === false)
4579
4579
  return;
4580
- console.log(this.isEditCod);
4581
4580
  if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
4582
4581
  this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
4583
4582
  this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
@@ -4751,7 +4750,6 @@ class CodFormComponent {
4751
4750
  }
4752
4751
  const totalData = [];
4753
4752
  this.subscription = this.codFormControls.getControlValues().subscribe((controls) => {
4754
- console.log(controls);
4755
4753
  for (let i = 1; i <= this.formSteps; i++) {
4756
4754
  let controlsByStep = controls[i - 1];
4757
4755
  controlsByStep.forEach(control => {
@@ -4803,16 +4801,12 @@ class CodFormComponent {
4803
4801
  this.subscription.unsubscribe();
4804
4802
  }
4805
4803
  updateCOD(totalData) {
4806
- console.log('actualizando COD...');
4807
- console.log("updateCOD");
4808
- console.log(totalData);
4809
4804
  if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
4810
4805
  return;
4811
4806
  }
4812
4807
  this.isLoading = true;
4813
4808
  this.loaderMessage = 'Editando COD, espere un momento';
4814
4809
  let request = this.getUpdateCOD(totalData);
4815
- console.log(request);
4816
4810
  this.commercialService.updateCOD(request).subscribe({
4817
4811
  next: (response) => {
4818
4812
  if (response.message.code === 1) {
@@ -4859,14 +4853,6 @@ class CodFormComponent {
4859
4853
  this.codCreationSubscription = null;
4860
4854
  }
4861
4855
  });
4862
- // this.commercialService.EditCod(request).subscribe({
4863
- // next: (response: any) => {
4864
- // this.isLoading = false;
4865
- // this.loaderMessage = '';
4866
- // },
4867
- // error: (err: any) => {
4868
- // }
4869
- // });
4870
4856
  }
4871
4857
  createCOD(totalData) {
4872
4858
  if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
@@ -5038,7 +5024,7 @@ class CodFormComponent {
5038
5024
  country: data.filter(data => data.control === 'country')[0].value,
5039
5025
  state: data.filter(data => data.control === 'state')[0].value,
5040
5026
  academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
5041
- code_refers: data.filter(data => data.control === 'code_refers')[0].value,
5027
+ code_refers: this.parseNumber(data.filter(data => data.control === 'code_refers')[0].value),
5042
5028
  code_cod: data.filter(data => data.control === 'code_cod')[0].value,
5043
5029
  };
5044
5030
  return request;
@@ -5046,6 +5032,10 @@ class CodFormComponent {
5046
5032
  changeStep(step) {
5047
5033
  this.currentStep = step;
5048
5034
  }
5035
+ parseNumber(value) {
5036
+ const parsedValue = parseFloat(value);
5037
+ return isNaN(parsedValue) ? null : parsedValue;
5038
+ }
5049
5039
  }
5050
5040
  CodFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormComponent, deps: [{ token: BaseService }, { token: LocalStorageCODService }, { token: CodFormControls }, { token: CommercialService }], target: i0.ɵɵFactoryTarget.Component });
5051
5041
  CodFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormComponent, selector: "ipt-cod-form", inputs: { dataFromPreviusCodData: "dataFromPreviusCodData", courseSelect: "courseSelect", isNewCod: "isNewCod", editCod: "editCod" }, outputs: { okCreatedCOD: "okCreatedCOD" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"allowedRole() ; else Unauthorized\" class=\"container flex flex-column bg-white border-round-2xl p-3 container animate__animated animate__fadeInUp\">\n\n <span *ngIf=\"editCod\" class=\"bg-yellow-500 p-2 border-round mb-2 w-auto text-lg font-semibold\" style=\"color: white;\">{{ formTitle }}</span>\n <span *ngIf=\"!editCod\" class=\"bg-primary p-2 border-round mb-2 w-auto text-lg font-semibold\">{{ formTitle }}</span>\n\n <p-tabView [activeIndex]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" [scrollable]=\"true\">\n <p-tabPanel leftIcon=\"pi pi-star\" header=\"1. Planes y convenios\">\n <app-cod-form-step-one (changeStepEvent)=\"changeStep($event)\" [initialData]=\"courseSelect\" [dataPreviusCodData]=\"dataFromPreviusCodData\" [isEditCod]=\"editCod\" class=\"p-1\"></app-cod-form-step-one>\n </p-tabPanel>\n <p-tabPanel leftIcon=\"pi pi-id-card\" header=\"2. Datos del estudiante\">\n <app-cod-form-step-two (changeStepEvent)=\"changeStep($event)\" [initialData]=\"dataFromPreviusCodData\" [isEditCod]=\"editCod\" class=\"p-1\"></app-cod-form-step-two>\n </p-tabPanel>\n <p-tabPanel leftIcon=\"pi pi-user-edit\" header=\"3. Datos del acudiente\">\n <app-cod-form-step-three (changeStepEvent)=\"changeStep($event)\" [initialData]=\"dataFromPreviusCodData\" [isEditCod]=\"editCod\" class=\"p-1\"></app-cod-form-step-three>\n </p-tabPanel>\n <p-tabPanel leftIcon=\"pi pi-money-bill\" header=\"4. Valores\">\n <app-cod-form-step-four (changeStepEvent)=\"changeStep($event)\" (financingData)=\"saveFinancingData($event)\" [initialData]=\"dataFromPreviusCodData\" [isEditCod]=\"editCod\" class=\"p-1\"></app-cod-form-step-four>\n </p-tabPanel>\n <p-tabPanel leftIcon=\"pi pi-eye\" header=\"5. Observaciones\">\n <app-cod-form-step-five (changeStepEvent)=\"changeStep($event)\" [userRole]=\"userRole\" [initialData]=\"dataFromPreviusCodData\" (action)=\"getFormAction($event)\" [isEditCod]=\"editCod\" class=\"p-1\"></app-cod-form-step-five>\n </p-tabPanel>\n </p-tabView>\n\n</div>\n\n<ng-template #Unauthorized>\n <span class=\"flex justify-content-center font-bold p-2 bg-yellow-200 border-round-lg w-full\">\n No tienes los permisos para acceder a esta funcionalidad, comun\u00EDcate con el desarrollador.\n </span>\n</ng-template>\n\n\n<ipt-loader *ngIf=\"isLoading\" [isDialog]=\"true\" [message]=\"loaderMessage\"></ipt-loader>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$2.TabView, selector: "p-tabView", inputs: ["orientation", "style", "styleClass", "controlClose", "scrollable", "activeIndex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { kind: "component", type: i6$2.TabPanel, selector: "p-tabPanel", inputs: ["closable", "headerStyle", "headerStyleClass", "cache", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "selected", "disabled", "header", "leftIcon", "rightIcon"] }, { kind: "component", type: LoaderComponent, selector: "ipt-loader", inputs: ["message", "isDialog"] }, { kind: "component", type: CodFormStepOneComponent, selector: "app-cod-form-step-one", inputs: ["initialData", "dataPreviusCodData", "isEditCod"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepTwoComponent, selector: "app-cod-form-step-two", inputs: ["initialData", "isEditCod"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepThreeComponent, selector: "app-cod-form-step-three", inputs: ["initialData", "isEditCod"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepFourComponent, selector: "app-cod-form-step-four", inputs: ["isEditCod", "initialData"], outputs: ["changeStepEvent", "financingData"] }, { kind: "component", type: CodFormStepFiveComponent, selector: "app-cod-form-step-five", inputs: ["userRole", "initialData", "isEditCod"], outputs: ["changeStepEvent", "action"] }] });