iptdevs-design-system 2.7.112 → 2.7.114
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 +11 -5
- package/esm2020/lib/cod/logic/local-storage-cod.service.mjs +22 -11
- package/esm2020/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.mjs +2 -2
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +2 -2
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +1 -2
- package/fesm2015/iptdevs-design-system.mjs +33 -17
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +33 -17
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/cod-form/cod-form.component.d.ts +2 -1
- package/lib/cod/logic/local-storage-cod.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2226,28 +2226,39 @@ class LocalStorageCODService {
|
|
|
2226
2226
|
constructor() { }
|
|
2227
2227
|
getCodFormData(step, control) {
|
|
2228
2228
|
if (step === 1)
|
|
2229
|
-
return
|
|
2229
|
+
return localStorage.getItem(`COD FORM - step1(${control})`);
|
|
2230
2230
|
if (step === 2)
|
|
2231
|
-
return
|
|
2231
|
+
return localStorage.getItem(`COD FORM - step2(${control})`);
|
|
2232
2232
|
if (step === 3)
|
|
2233
|
-
return
|
|
2233
|
+
return localStorage.getItem(`COD FORM - step3(${control})`);
|
|
2234
2234
|
if (step === 4)
|
|
2235
|
-
return
|
|
2235
|
+
return localStorage.getItem(`COD FORM - step4(${control})`);
|
|
2236
2236
|
if (step === 5)
|
|
2237
|
-
return
|
|
2237
|
+
return localStorage.getItem(`COD FORM - step5(${control})`);
|
|
2238
2238
|
return null;
|
|
2239
2239
|
}
|
|
2240
2240
|
setCodFormData(step, control, value) {
|
|
2241
2241
|
if (step === 1)
|
|
2242
|
-
|
|
2242
|
+
localStorage.setItem(`COD FORM - step1(${control})`, value);
|
|
2243
2243
|
if (step === 2)
|
|
2244
|
-
|
|
2244
|
+
localStorage.setItem(`COD FORM - step2(${control})`, value);
|
|
2245
2245
|
if (step === 3)
|
|
2246
|
-
|
|
2246
|
+
localStorage.setItem(`COD FORM - step3(${control})`, value);
|
|
2247
2247
|
if (step === 4)
|
|
2248
|
-
|
|
2248
|
+
localStorage.setItem(`COD FORM - step4(${control})`, value);
|
|
2249
2249
|
if (step === 5)
|
|
2250
|
-
|
|
2250
|
+
localStorage.setItem(`COD FORM - step5(${control})`, value);
|
|
2251
|
+
}
|
|
2252
|
+
clearData() {
|
|
2253
|
+
let keySessionUser = '606a7d4e73650b75ebb06972e77d6cc4';
|
|
2254
|
+
let sessionUser = localStorage.getItem(keySessionUser);
|
|
2255
|
+
localStorage.clear();
|
|
2256
|
+
if (sessionUser !== null) {
|
|
2257
|
+
localStorage.setItem(keySessionUser, sessionUser);
|
|
2258
|
+
}
|
|
2259
|
+
else {
|
|
2260
|
+
console.log('raro que no haya sesion');
|
|
2261
|
+
}
|
|
2251
2262
|
}
|
|
2252
2263
|
}
|
|
2253
2264
|
LocalStorageCODService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: LocalStorageCODService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2967,7 +2978,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2967
2978
|
this.setDataFromPreviusCod();
|
|
2968
2979
|
}
|
|
2969
2980
|
else {
|
|
2970
|
-
this.cleanComponent();
|
|
2971
2981
|
console.log('No hay data cargada para el Paso 2');
|
|
2972
2982
|
}
|
|
2973
2983
|
}
|
|
@@ -3253,7 +3263,7 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3253
3263
|
}
|
|
3254
3264
|
else {
|
|
3255
3265
|
console.log('No tiene acudiente');
|
|
3256
|
-
this.cleanComponent();
|
|
3266
|
+
//this.cleanComponent();
|
|
3257
3267
|
}
|
|
3258
3268
|
}
|
|
3259
3269
|
else {
|
|
@@ -3757,7 +3767,7 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3757
3767
|
}
|
|
3758
3768
|
else {
|
|
3759
3769
|
console.log('No hay data cargada para el Paso 5');
|
|
3760
|
-
this.cleanComponent();
|
|
3770
|
+
//this.cleanComponent();
|
|
3761
3771
|
}
|
|
3762
3772
|
}
|
|
3763
3773
|
}
|
|
@@ -3901,16 +3911,20 @@ class CodFormComponent {
|
|
|
3901
3911
|
this.userRole = this.baseService.getUserRole();
|
|
3902
3912
|
}
|
|
3903
3913
|
ngOnChanges(changes) {
|
|
3904
|
-
if (changes['
|
|
3905
|
-
if (this.
|
|
3914
|
+
if (changes['isNewCod']) {
|
|
3915
|
+
if (this.isNewCod) {
|
|
3906
3916
|
this.formTitle = 'Formulario para verificar información del COD';
|
|
3907
|
-
console.log(this.dataFromPreviusCodData);
|
|
3908
3917
|
this.getCodbyCode();
|
|
3909
3918
|
}
|
|
3910
3919
|
else {
|
|
3911
3920
|
this.formTitle = 'Formulario para creación del COD';
|
|
3912
3921
|
}
|
|
3913
3922
|
}
|
|
3923
|
+
if (changes['dataFromPreviusCodData']) {
|
|
3924
|
+
if (this.dataFromPreviusCodData !== null) {
|
|
3925
|
+
// Hay data como parametro y se debe pintar.
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3914
3928
|
}
|
|
3915
3929
|
allowedRole() {
|
|
3916
3930
|
return this.allowedRoles.includes(this.userRole);
|
|
@@ -4093,12 +4107,14 @@ class CodFormComponent {
|
|
|
4093
4107
|
}
|
|
4094
4108
|
}
|
|
4095
4109
|
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 });
|
|
4096
|
-
CodFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormComponent, selector: "ipt-cod-form", inputs: { dataFromPreviusCodData: "dataFromPreviusCodData" }, 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$3.TabView, selector: "p-tabView", inputs: ["orientation", "style", "styleClass", "controlClose", "scrollable", "activeIndex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { kind: "component", type: i6$3.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"] }] });
|
|
4110
|
+
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$3.TabView, selector: "p-tabView", inputs: ["orientation", "style", "styleClass", "controlClose", "scrollable", "activeIndex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { kind: "component", type: i6$3.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"] }] });
|
|
4097
4111
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormComponent, decorators: [{
|
|
4098
4112
|
type: Component,
|
|
4099
4113
|
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>" }]
|
|
4100
4114
|
}], ctorParameters: function () { return [{ type: BaseService }, { type: LocalStorageCODService }, { type: CodFormControls }, { type: CommercialService }]; }, propDecorators: { dataFromPreviusCodData: [{
|
|
4101
4115
|
type: Input
|
|
4116
|
+
}], isNewCod: [{
|
|
4117
|
+
type: Input
|
|
4102
4118
|
}] } });
|
|
4103
4119
|
|
|
4104
4120
|
class CodModule {
|