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.
- package/esm2020/lib/cod/cod-form/cod-form.component.mjs +6 -15
- package/esm2020/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.mjs +1 -2
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +1 -1
- package/fesm2015/iptdevs-design-system.mjs +5 -15
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +5 -15
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/cod-form/cod-form.component.d.ts +1 -0
- package/lib/core/models/cod/cod-rq.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4585,7 +4585,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4585
4585
|
this.codFormStepFive.markAllAsTouched();
|
|
4586
4586
|
if (this.codFormStepFive.invalid || this.termsCheckboxStatus === false)
|
|
4587
4587
|
return;
|
|
4588
|
-
console.log(this.isEditCod);
|
|
4589
4588
|
if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
|
|
4590
4589
|
this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
|
|
4591
4590
|
this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
|
|
@@ -4760,7 +4759,6 @@ class CodFormComponent {
|
|
|
4760
4759
|
}
|
|
4761
4760
|
const totalData = [];
|
|
4762
4761
|
this.subscription = this.codFormControls.getControlValues().subscribe((controls) => {
|
|
4763
|
-
console.log(controls);
|
|
4764
4762
|
for (let i = 1; i <= this.formSteps; i++) {
|
|
4765
4763
|
let controlsByStep = controls[i - 1];
|
|
4766
4764
|
controlsByStep.forEach(control => {
|
|
@@ -4812,16 +4810,12 @@ class CodFormComponent {
|
|
|
4812
4810
|
this.subscription.unsubscribe();
|
|
4813
4811
|
}
|
|
4814
4812
|
updateCOD(totalData) {
|
|
4815
|
-
console.log('actualizando COD...');
|
|
4816
|
-
console.log("updateCOD");
|
|
4817
|
-
console.log(totalData);
|
|
4818
4813
|
if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
|
|
4819
4814
|
return;
|
|
4820
4815
|
}
|
|
4821
4816
|
this.isLoading = true;
|
|
4822
4817
|
this.loaderMessage = 'Editando COD, espere un momento';
|
|
4823
4818
|
let request = this.getUpdateCOD(totalData);
|
|
4824
|
-
console.log(request);
|
|
4825
4819
|
this.commercialService.updateCOD(request).subscribe({
|
|
4826
4820
|
next: (response) => {
|
|
4827
4821
|
if (response.message.code === 1) {
|
|
@@ -4868,14 +4862,6 @@ class CodFormComponent {
|
|
|
4868
4862
|
this.codCreationSubscription = null;
|
|
4869
4863
|
}
|
|
4870
4864
|
});
|
|
4871
|
-
// this.commercialService.EditCod(request).subscribe({
|
|
4872
|
-
// next: (response: any) => {
|
|
4873
|
-
// this.isLoading = false;
|
|
4874
|
-
// this.loaderMessage = '';
|
|
4875
|
-
// },
|
|
4876
|
-
// error: (err: any) => {
|
|
4877
|
-
// }
|
|
4878
|
-
// });
|
|
4879
4865
|
}
|
|
4880
4866
|
createCOD(totalData) {
|
|
4881
4867
|
if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
|
|
@@ -5047,7 +5033,7 @@ class CodFormComponent {
|
|
|
5047
5033
|
country: data.filter(data => data.control === 'country')[0].value,
|
|
5048
5034
|
state: data.filter(data => data.control === 'state')[0].value,
|
|
5049
5035
|
academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
|
|
5050
|
-
code_refers: data.filter(data => data.control === 'code_refers')[0].value,
|
|
5036
|
+
code_refers: this.parseNumber(data.filter(data => data.control === 'code_refers')[0].value),
|
|
5051
5037
|
code_cod: data.filter(data => data.control === 'code_cod')[0].value,
|
|
5052
5038
|
};
|
|
5053
5039
|
return request;
|
|
@@ -5055,6 +5041,10 @@ class CodFormComponent {
|
|
|
5055
5041
|
changeStep(step) {
|
|
5056
5042
|
this.currentStep = step;
|
|
5057
5043
|
}
|
|
5044
|
+
parseNumber(value) {
|
|
5045
|
+
const parsedValue = parseFloat(value);
|
|
5046
|
+
return isNaN(parsedValue) ? null : parsedValue;
|
|
5047
|
+
}
|
|
5058
5048
|
}
|
|
5059
5049
|
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 });
|
|
5060
5050
|
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"] }] });
|