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.
- package/esm2020/lib/cod/cod-form/cod-form.component.mjs +8 -15
- package/esm2020/lib/cod/logic/calculate-quotes.service.mjs +1 -5
- package/esm2020/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.mjs +1 -5
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +1 -4
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +1 -5
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +1 -4
- package/fesm2015/iptdevs-design-system.mjs +6 -31
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -31
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/cod-form/cod-form.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2988,9 +2988,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2988
2988
|
if (this.initialData != null) {
|
|
2989
2989
|
this.setDataFromPreviusCod();
|
|
2990
2990
|
}
|
|
2991
|
-
else {
|
|
2992
|
-
console.log('No hay data cargada para el Paso 2');
|
|
2993
|
-
}
|
|
2994
2991
|
}
|
|
2995
2992
|
}
|
|
2996
2993
|
setDataFromPreviusCod() {
|
|
@@ -3273,13 +3270,9 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3273
3270
|
this.setValueStepThree();
|
|
3274
3271
|
}
|
|
3275
3272
|
else {
|
|
3276
|
-
console.log('No tiene acudiente');
|
|
3277
3273
|
//this.cleanComponent();
|
|
3278
3274
|
}
|
|
3279
3275
|
}
|
|
3280
|
-
else {
|
|
3281
|
-
console.log('No hay data cargada para el Paso 3');
|
|
3282
|
-
}
|
|
3283
3276
|
}
|
|
3284
3277
|
}
|
|
3285
3278
|
validateErrors() {
|
|
@@ -3451,8 +3444,6 @@ class CalculateQuotesService {
|
|
|
3451
3444
|
let isEndMonth = false;
|
|
3452
3445
|
dateJs.setMilliseconds(dateJs.getMilliseconds() + (1000 * 3600 * 24));
|
|
3453
3446
|
isEndMonth = this.monthsDays[dateJs.getMonth()] === dateJs.getDate();
|
|
3454
|
-
console.log('---- end of month ---');
|
|
3455
|
-
console.log(isEndMonth);
|
|
3456
3447
|
if (dateJs.getDay() === 0) {
|
|
3457
3448
|
Swal.fire({
|
|
3458
3449
|
title: 'Fecha inválida',
|
|
@@ -3499,8 +3490,6 @@ class CalculateQuotesService {
|
|
|
3499
3490
|
plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
|
|
3500
3491
|
}
|
|
3501
3492
|
response.push(plusMonthDate);
|
|
3502
|
-
console.log('date for ' + day + ' - ' + originDate.getMonth());
|
|
3503
|
-
console.log(response);
|
|
3504
3493
|
return response;
|
|
3505
3494
|
}
|
|
3506
3495
|
getStringDate(originDate) {
|
|
@@ -3651,7 +3640,6 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3651
3640
|
};
|
|
3652
3641
|
this.commercialService.getCodPricesByAgreementTypePayment(request).subscribe((response) => {
|
|
3653
3642
|
this.codPrices = response.data;
|
|
3654
|
-
console.log(this.codPrices);
|
|
3655
3643
|
});
|
|
3656
3644
|
}
|
|
3657
3645
|
initForm() {
|
|
@@ -3758,7 +3746,6 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3758
3746
|
}
|
|
3759
3747
|
// Eventos del select
|
|
3760
3748
|
selectPaymentMethod(paymentMethod) {
|
|
3761
|
-
console.log(paymentMethod);
|
|
3762
3749
|
if (paymentMethod !== '') {
|
|
3763
3750
|
this.codFormStepFour.controls['payment_method'].setValue(paymentMethod);
|
|
3764
3751
|
this.getCodPricesByAgreement();
|
|
@@ -3768,7 +3755,6 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3768
3755
|
}
|
|
3769
3756
|
}
|
|
3770
3757
|
selectQuotas(quotas) {
|
|
3771
|
-
console.log(quotas);
|
|
3772
3758
|
if (quotas !== 'Número de cuotas') {
|
|
3773
3759
|
const codPrice = this.codPrices.filter(codPrice => codPrice.code === Number(quotas));
|
|
3774
3760
|
this.codFormStepFour.controls['quota_times'].setValue(codPrice[0].code);
|
|
@@ -3825,10 +3811,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3825
3811
|
if (this.initialData != null) {
|
|
3826
3812
|
this.setDataFromPreviusCod();
|
|
3827
3813
|
}
|
|
3828
|
-
else {
|
|
3829
|
-
console.log('No hay data cargada para el Paso 5');
|
|
3830
|
-
//this.cleanComponent();
|
|
3831
|
-
}
|
|
3832
3814
|
}
|
|
3833
3815
|
}
|
|
3834
3816
|
getParameters() {
|
|
@@ -3960,6 +3942,7 @@ class CodFormComponent {
|
|
|
3960
3942
|
this.localStorageCOD = localStorageCOD;
|
|
3961
3943
|
this.codFormControls = codFormControls;
|
|
3962
3944
|
this.commercialService = commercialService;
|
|
3945
|
+
this.okCreatedCOD = new EventEmitter();
|
|
3963
3946
|
this.allowedRoles = [
|
|
3964
3947
|
30, 31, 32, 40, 41, 42,
|
|
3965
3948
|
];
|
|
@@ -3980,18 +3963,12 @@ class CodFormComponent {
|
|
|
3980
3963
|
this.formTitle = 'Formulario para creación del COD';
|
|
3981
3964
|
}
|
|
3982
3965
|
}
|
|
3983
|
-
if (changes['dataFromPreviusCodData']) {
|
|
3984
|
-
if (this.dataFromPreviusCodData !== null) {
|
|
3985
|
-
// Hay data como parametro y se debe pintar.
|
|
3986
|
-
}
|
|
3987
|
-
}
|
|
3988
3966
|
}
|
|
3989
3967
|
allowedRole() {
|
|
3990
3968
|
return this.allowedRoles.includes(this.userRole);
|
|
3991
3969
|
}
|
|
3992
3970
|
getCodbyCode() {
|
|
3993
3971
|
// TODO: Traer COD por código y pintarlo
|
|
3994
|
-
console.log(this.dataFromPreviusCodData);
|
|
3995
3972
|
}
|
|
3996
3973
|
saveFinancingData(data) {
|
|
3997
3974
|
if (data) {
|
|
@@ -4065,17 +4042,14 @@ class CodFormComponent {
|
|
|
4065
4042
|
this.subscription.unsubscribe();
|
|
4066
4043
|
}
|
|
4067
4044
|
updateCOD(totalData) {
|
|
4068
|
-
console.log('actualizando COD...');
|
|
4045
|
+
// console.log('actualizando COD...');
|
|
4069
4046
|
}
|
|
4070
4047
|
createCOD(totalData) {
|
|
4071
|
-
console.log(totalData);
|
|
4072
4048
|
this.isLoading = true;
|
|
4073
4049
|
this.loaderMessage = 'Creando COD, espere un momento';
|
|
4074
4050
|
let request = this.getCreateCOD(totalData);
|
|
4075
|
-
console.log(request);
|
|
4076
4051
|
this.commercialService.createCOD(request).subscribe({
|
|
4077
4052
|
next: (response) => {
|
|
4078
|
-
console.log(response);
|
|
4079
4053
|
if (response.message.code === 1) {
|
|
4080
4054
|
this.isLoading = false;
|
|
4081
4055
|
this.loaderMessage = '';
|
|
@@ -4085,10 +4059,10 @@ class CodFormComponent {
|
|
|
4085
4059
|
icon: 'success'
|
|
4086
4060
|
});
|
|
4087
4061
|
this.localStorageCOD.clearData();
|
|
4062
|
+
this.okCreatedCOD.emit(true);
|
|
4088
4063
|
}
|
|
4089
4064
|
},
|
|
4090
4065
|
error: (err) => {
|
|
4091
|
-
console.log(err);
|
|
4092
4066
|
this.isLoading = false;
|
|
4093
4067
|
this.loaderMessage = '';
|
|
4094
4068
|
Swal.fire({
|
|
@@ -4156,7 +4130,6 @@ class CodFormComponent {
|
|
|
4156
4130
|
state: data.filter(data => data.control === 'state')[0].value,
|
|
4157
4131
|
academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
|
|
4158
4132
|
};
|
|
4159
|
-
console.log(request);
|
|
4160
4133
|
return request;
|
|
4161
4134
|
}
|
|
4162
4135
|
changeStep(step) {
|
|
@@ -4164,7 +4137,7 @@ class CodFormComponent {
|
|
|
4164
4137
|
}
|
|
4165
4138
|
}
|
|
4166
4139
|
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 });
|
|
4167
|
-
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"] }] });
|
|
4140
|
+
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"] }] });
|
|
4168
4141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormComponent, decorators: [{
|
|
4169
4142
|
type: Component,
|
|
4170
4143
|
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>" }]
|
|
@@ -4172,6 +4145,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
4172
4145
|
type: Input
|
|
4173
4146
|
}], isNewCod: [{
|
|
4174
4147
|
type: Input
|
|
4148
|
+
}], okCreatedCOD: [{
|
|
4149
|
+
type: Output
|
|
4175
4150
|
}] } });
|
|
4176
4151
|
|
|
4177
4152
|
class CodModule {
|