iptdevs-design-system 2.7.141 → 2.7.143

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.
@@ -2985,9 +2985,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
2985
2985
  if (this.initialData != null) {
2986
2986
  this.setDataFromPreviusCod();
2987
2987
  }
2988
- else {
2989
- console.log('No hay data cargada para el Paso 2');
2990
- }
2991
2988
  }
2992
2989
  }
2993
2990
  setDataFromPreviusCod() {
@@ -3270,13 +3267,9 @@ class CodFormStepThreeComponent extends CodFormSteps {
3270
3267
  this.setValueStepThree();
3271
3268
  }
3272
3269
  else {
3273
- console.log('No tiene acudiente');
3274
3270
  //this.cleanComponent();
3275
3271
  }
3276
3272
  }
3277
- else {
3278
- console.log('No hay data cargada para el Paso 3');
3279
- }
3280
3273
  }
3281
3274
  }
3282
3275
  validateErrors() {
@@ -3448,8 +3441,6 @@ class CalculateQuotesService {
3448
3441
  let isEndMonth = false;
3449
3442
  dateJs.setMilliseconds(dateJs.getMilliseconds() + (1000 * 3600 * 24));
3450
3443
  isEndMonth = this.monthsDays[dateJs.getMonth()] === dateJs.getDate();
3451
- console.log('---- end of month ---');
3452
- console.log(isEndMonth);
3453
3444
  if (dateJs.getDay() === 0) {
3454
3445
  Swal.fire({
3455
3446
  title: 'Fecha inválida',
@@ -3496,8 +3487,6 @@ class CalculateQuotesService {
3496
3487
  plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
3497
3488
  }
3498
3489
  response.push(plusMonthDate);
3499
- console.log('date for ' + day + ' - ' + originDate.getMonth());
3500
- console.log(response);
3501
3490
  return response;
3502
3491
  }
3503
3492
  getStringDate(originDate) {
@@ -3648,7 +3637,6 @@ class CodFormStepFourComponent extends CodFormSteps {
3648
3637
  };
3649
3638
  this.commercialService.getCodPricesByAgreementTypePayment(request).subscribe((response) => {
3650
3639
  this.codPrices = response.data;
3651
- console.log(this.codPrices);
3652
3640
  });
3653
3641
  }
3654
3642
  initForm() {
@@ -3755,7 +3743,6 @@ class CodFormStepFourComponent extends CodFormSteps {
3755
3743
  }
3756
3744
  // Eventos del select
3757
3745
  selectPaymentMethod(paymentMethod) {
3758
- console.log(paymentMethod);
3759
3746
  if (paymentMethod !== '') {
3760
3747
  this.codFormStepFour.controls['payment_method'].setValue(paymentMethod);
3761
3748
  this.getCodPricesByAgreement();
@@ -3765,7 +3752,6 @@ class CodFormStepFourComponent extends CodFormSteps {
3765
3752
  }
3766
3753
  }
3767
3754
  selectQuotas(quotas) {
3768
- console.log(quotas);
3769
3755
  if (quotas !== 'Número de cuotas') {
3770
3756
  const codPrice = this.codPrices.filter(codPrice => codPrice.code === Number(quotas));
3771
3757
  this.codFormStepFour.controls['quota_times'].setValue(codPrice[0].code);
@@ -3822,10 +3808,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
3822
3808
  if (this.initialData != null) {
3823
3809
  this.setDataFromPreviusCod();
3824
3810
  }
3825
- else {
3826
- console.log('No hay data cargada para el Paso 5');
3827
- //this.cleanComponent();
3828
- }
3829
3811
  }
3830
3812
  }
3831
3813
  getParameters() {
@@ -3957,6 +3939,7 @@ class CodFormComponent {
3957
3939
  this.localStorageCOD = localStorageCOD;
3958
3940
  this.codFormControls = codFormControls;
3959
3941
  this.commercialService = commercialService;
3942
+ this.okCreatedCOD = new EventEmitter();
3960
3943
  this.allowedRoles = [
3961
3944
  30, 31, 32, 40, 41, 42,
3962
3945
  ];
@@ -3977,18 +3960,12 @@ class CodFormComponent {
3977
3960
  this.formTitle = 'Formulario para creación del COD';
3978
3961
  }
3979
3962
  }
3980
- if (changes['dataFromPreviusCodData']) {
3981
- if (this.dataFromPreviusCodData !== null) {
3982
- // Hay data como parametro y se debe pintar.
3983
- }
3984
- }
3985
3963
  }
3986
3964
  allowedRole() {
3987
3965
  return this.allowedRoles.includes(this.userRole);
3988
3966
  }
3989
3967
  getCodbyCode() {
3990
3968
  // TODO: Traer COD por código y pintarlo
3991
- console.log(this.dataFromPreviusCodData);
3992
3969
  }
3993
3970
  saveFinancingData(data) {
3994
3971
  if (data) {
@@ -4062,17 +4039,14 @@ class CodFormComponent {
4062
4039
  this.subscription.unsubscribe();
4063
4040
  }
4064
4041
  updateCOD(totalData) {
4065
- console.log('actualizando COD...');
4042
+ // console.log('actualizando COD...');
4066
4043
  }
4067
4044
  createCOD(totalData) {
4068
- console.log(totalData);
4069
4045
  this.isLoading = true;
4070
4046
  this.loaderMessage = 'Creando COD, espere un momento';
4071
4047
  let request = this.getCreateCOD(totalData);
4072
- console.log(request);
4073
4048
  this.commercialService.createCOD(request).subscribe({
4074
4049
  next: (response) => {
4075
- console.log(response);
4076
4050
  if (response.message.code === 1) {
4077
4051
  this.isLoading = false;
4078
4052
  this.loaderMessage = '';
@@ -4082,10 +4056,10 @@ class CodFormComponent {
4082
4056
  icon: 'success'
4083
4057
  });
4084
4058
  this.localStorageCOD.clearData();
4059
+ this.okCreatedCOD.emit(true);
4085
4060
  }
4086
4061
  },
4087
4062
  error: (err) => {
4088
- console.log(err);
4089
4063
  this.isLoading = false;
4090
4064
  this.loaderMessage = '';
4091
4065
  Swal.fire({
@@ -4153,7 +4127,6 @@ class CodFormComponent {
4153
4127
  state: data.filter(data => data.control === 'state')[0].value,
4154
4128
  academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
4155
4129
  };
4156
- console.log(request);
4157
4130
  return request;
4158
4131
  }
4159
4132
  changeStep(step) {
@@ -4161,7 +4134,7 @@ class CodFormComponent {
4161
4134
  }
4162
4135
  }
4163
4136
  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 });
4164
- CodFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormComponent, selector: "ipt-cod-form", inputs: { dataFromPreviusCodData: "dataFromPreviusCodData", isNewCod: "isNewCod" }, 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 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)\" 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\" 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\" 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)\" 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)\" class=\"p-1\"></app-cod-form-step-five>\n </p-tabPanel>\n </p-tabView>\n\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>", 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", outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepTwoComponent, selector: "app-cod-form-step-two", inputs: ["initialData"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepThreeComponent, selector: "app-cod-form-step-three", inputs: ["initialData"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepFourComponent, selector: "app-cod-form-step-four", outputs: ["changeStepEvent", "financingData"] }, { kind: "component", type: CodFormStepFiveComponent, selector: "app-cod-form-step-five", inputs: ["userRole", "initialData"], outputs: ["changeStepEvent", "action"] }] });
4137
+ CodFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormComponent, selector: "ipt-cod-form", inputs: { dataFromPreviusCodData: "dataFromPreviusCodData", isNewCod: "isNewCod" }, 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 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)\" 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\" 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\" 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)\" 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)\" class=\"p-1\"></app-cod-form-step-five>\n </p-tabPanel>\n </p-tabView>\n\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>", 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", outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepTwoComponent, selector: "app-cod-form-step-two", inputs: ["initialData"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepThreeComponent, selector: "app-cod-form-step-three", inputs: ["initialData"], outputs: ["changeStepEvent"] }, { kind: "component", type: CodFormStepFourComponent, selector: "app-cod-form-step-four", outputs: ["changeStepEvent", "financingData"] }, { kind: "component", type: CodFormStepFiveComponent, selector: "app-cod-form-step-five", inputs: ["userRole", "initialData"], outputs: ["changeStepEvent", "action"] }] });
4165
4138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormComponent, decorators: [{
4166
4139
  type: Component,
4167
4140
  args: [{ selector: 'ipt-cod-form', 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 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)\" 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\" 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\" 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)\" 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)\" class=\"p-1\"></app-cod-form-step-five>\n </p-tabPanel>\n </p-tabView>\n\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>" }]
@@ -4169,6 +4142,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
4169
4142
  type: Input
4170
4143
  }], isNewCod: [{
4171
4144
  type: Input
4145
+ }], okCreatedCOD: [{
4146
+ type: Output
4172
4147
  }] } });
4173
4148
 
4174
4149
  class CodModule {