iptdevs-design-system 2.7.107 → 2.7.109
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 +3 -3
- package/esm2020/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.mjs +17 -29
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +11 -2
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +3 -3
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +3 -9
- package/fesm2015/iptdevs-design-system.mjs +32 -41
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +32 -41
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.d.ts +4 -3
- package/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2960,14 +2960,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2960
2960
|
// Controls del formulario
|
|
2961
2961
|
this.controls = new CodFormControls().controls[1];
|
|
2962
2962
|
}
|
|
2963
|
-
// ngOnInit(): void {
|
|
2964
|
-
// this.initForm();
|
|
2965
|
-
// this.startLocalStorageWork();
|
|
2966
|
-
// this.validateErrors()
|
|
2967
|
-
// if (this.initialData) this.setDataFromPreviusCod();
|
|
2968
|
-
// this.getParameters();
|
|
2969
|
-
// this.selectCountry(this.localStorageCOD.getCodFormData(2, 'country'));
|
|
2970
|
-
// }
|
|
2971
2963
|
ngOnChanges(changes) {
|
|
2972
2964
|
this.initForm();
|
|
2973
2965
|
this.startLocalStorageWork();
|
|
@@ -2978,6 +2970,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2978
2970
|
this.setDataFromPreviusCod();
|
|
2979
2971
|
}
|
|
2980
2972
|
else {
|
|
2973
|
+
this.cleanComponent();
|
|
2981
2974
|
console.log('No hay data cargada para el Paso 2');
|
|
2982
2975
|
}
|
|
2983
2976
|
}
|
|
@@ -3003,6 +2996,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3003
2996
|
this.codFormStepTwo.controls['student_email'].setValue(this.initialData.student.email);
|
|
3004
2997
|
}
|
|
3005
2998
|
cleanComponent() {
|
|
2999
|
+
this.resetLocalStorage(this.controls);
|
|
3006
3000
|
this.codFormStepTwo.reset();
|
|
3007
3001
|
}
|
|
3008
3002
|
validateErrors() {
|
|
@@ -3388,8 +3382,7 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3388
3382
|
}
|
|
3389
3383
|
// Eventos de los select
|
|
3390
3384
|
selectNeedAtendant(needAtendant) {
|
|
3391
|
-
|
|
3392
|
-
if (needAtendant !== 'Requiere acudiente') {
|
|
3385
|
+
if (needAtendant == 1) {
|
|
3393
3386
|
this.codFormStepThree.controls['needAtendant'].setValue(needAtendant);
|
|
3394
3387
|
}
|
|
3395
3388
|
else {
|
|
@@ -3414,6 +3407,7 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3414
3407
|
}
|
|
3415
3408
|
}
|
|
3416
3409
|
cleanComponent() {
|
|
3410
|
+
this.resetLocalStorage(this.controls);
|
|
3417
3411
|
this.codFormStepThree.reset();
|
|
3418
3412
|
}
|
|
3419
3413
|
}
|
|
@@ -3519,6 +3513,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3519
3513
|
this.controls = new CodFormControls().controls[3];
|
|
3520
3514
|
}
|
|
3521
3515
|
ngOnInit() {
|
|
3516
|
+
this.cleanComponent();
|
|
3522
3517
|
this.initForm();
|
|
3523
3518
|
this.startLocalStorageWork();
|
|
3524
3519
|
this.validateErrors();
|
|
@@ -3562,6 +3557,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3562
3557
|
if (response.data) {
|
|
3563
3558
|
const codPrices = response.data;
|
|
3564
3559
|
this.codPrices = codPrices;
|
|
3560
|
+
console.log(this.codPrices);
|
|
3565
3561
|
if (this.codFormStepFour.controls['payment_method'].value === '2') {
|
|
3566
3562
|
const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
|
|
3567
3563
|
this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
|
|
@@ -3657,7 +3653,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3657
3653
|
const total_price = this.codFormStepFour.controls['total_price'].value;
|
|
3658
3654
|
if ((total_price === 'null') || this.codFormStepFour.invalid) {
|
|
3659
3655
|
Swal.fire({
|
|
3660
|
-
title: 'Error',
|
|
3656
|
+
title: 'Error table',
|
|
3661
3657
|
text: 'Debes ingresar el monto total de la matrícula y la cuota inicial',
|
|
3662
3658
|
icon: 'error'
|
|
3663
3659
|
});
|
|
@@ -3705,6 +3701,9 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3705
3701
|
console.log(quotas);
|
|
3706
3702
|
if (quotas !== 'Número de cuotas') {
|
|
3707
3703
|
const codPrice = this.codPrices.filter(codPrice => codPrice.code === Number(quotas));
|
|
3704
|
+
console.log(codPrice[0].code);
|
|
3705
|
+
console.log(codPrice[0].enrollment);
|
|
3706
|
+
console.log(codPrice[0].financed_price);
|
|
3708
3707
|
this.codFormStepFour.controls['quota_times'].setValue(codPrice[0].code);
|
|
3709
3708
|
this.codFormStepFour.controls['total_price'].setValue(codPrice[0].enrollment);
|
|
3710
3709
|
this.codFormStepFour.controls['program_price'].setValue(codPrice[0].financed_price);
|
|
@@ -3715,6 +3714,10 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3715
3714
|
this.codFormStepFour.controls['program_price'].setValue(null);
|
|
3716
3715
|
}
|
|
3717
3716
|
}
|
|
3717
|
+
cleanComponent() {
|
|
3718
|
+
this.resetLocalStorage(this.controls);
|
|
3719
|
+
this.codFormStepFour.reset();
|
|
3720
|
+
}
|
|
3718
3721
|
}
|
|
3719
3722
|
CodFormStepFourComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepFourComponent, deps: [{ token: i1$1.FormBuilder }, { token: CalculateQuotesService }, { token: CommunicatorService }, { token: ParameterService }, { token: CodFormControls }, { token: CommercialService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3720
3723
|
CodFormStepFourComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepFourComponent, selector: "app-cod-form-step-four", outputs: { changeStepEvent: "changeStepEvent", financingData: "financingData" }, usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"isSemestral\" class=\"m-1 p-2 border-round-lg bg-blue-500 text-white\">\n <strong>Nota: </strong>\n El tipo de curso seleccionado fue semestral, por lo tanto el estudiante debe pagar matr\u00EDcula y primera cuota (M&M)\n</div>\n\n<form autocomplete=\"off\" [formGroup]=\"codFormStepFour\" class=\"grid mt-2\">\n\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codFormStepFour.controls['payment_method'].value\"\n [control]=\"codFormStepFour.controls['payment_method']\"\n (eventSelect)=\"selectPaymentMethod($event)\"\n [data]=\"paymentMethods\"\n [defaultText]=\"'M\u00E9todo de pago'\"\n ></ipt-select>\n <ipt-select *ngIf=\"isFinanced();\"\n [initialValue]=\"codFormStepFour.controls['quota_times'].value\"\n [control]=\"codFormStepFour.controls['quota_times']\"\n (eventSelect)=\"selectQuotas($event)\"\n [defaultText]=\"'N\u00FAmero de cuotas'\"\n [data]=\"codPrices\"\n [selectCode]=\"codFormStepFour.controls['quota_times'].value === null? 'N\u00FAmero de cuotas': codFormStepFour.controls['quota_times'].value\"\n ></ipt-select>\n </div>\n\n <div *ngIf=\"isFinanced();\" class=\"col-12\">\n <ipt-input *ngIf=\"isFinanced();\"\n [inputType]=\"'text'\"\n [placeHolder]=\"'Monto total de la matr\u00EDcula'\"\n [control]=\"codFormStepFour.controls['total_price']\"\n [withPipe]=\"true\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\">\n <ipt-input\n [withPipe]=\"true\"\n [inputType]=\"'text'\"\n [control]=\"codFormStepFour.controls['program_price']\"\n [placeHolder]=\"'Valor total del programa'\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\">\n <ipt-input\n onfocus=\"(this.type='date')\"\n [inputType]=\"'date'\"\n [control]=\"codFormStepFour.controls['payment_date']\"\n [placeHolder]=\"'Fecha de pago'\"\n ></ipt-input>\n </div>\n\n <!-- Tabla de financiaci\u00F3n -->\n <div class=\"col-12\" *ngIf=\"isFinancing\">\n <p-table\n [value]=\"dataFinancing\"\n [tableStyle]=\"{'min-width': '100%'}\"\n [rowHover]=\"true\"\n >\n <ng-template pTemplate=\"caption\">\n <div class=\"flex align-items-center\">\n C\u00E1lculo de cuotas\n <button pButton class=\"p-button-sm ml-auto\" label=\"Nuevo c\u00E1lculo\" (click)=\"calculateNewQuotes()\" lab icon=\"pi pi-replay\"></button>\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\">\n <tr>\n <th>#</th>\n <th>Valor</th>\n <th>Fecha</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-data>\n <tr>\n <td>{{ data[0] }}</td>\n <td>{{ data[1] }}</td>\n <td>{{ data[2] }}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n <!-- ---------------------- -->\n\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"codFormStepFour.invalid && codFormStepFour.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <div class=\"flex ml-auto gap-2\">\n <button *ngIf=\"codFormStepFour.controls['payment_method'].value === '1'\" [disabled]=\"isFinancing || codFormStepFour.controls['payment_method'].value !== '1'\"type=\"submit\" class=\"ml-auto p-button-sm p-button-secondary\" (click)=\"showTable()\" pButton label=\"Calcular cuotas\" icon=\"pi pi-sliders-h\"></button>\n <button [disabled]=\"!isFinancing && codFormStepFour.controls['payment_method'].value === '1'\" type=\"submit\" class=\"ml-auto p-button-sm\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i11.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
@@ -3739,11 +3742,10 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3739
3742
|
// Controls del formulario
|
|
3740
3743
|
this.controls = new CodFormControls().controls[4];
|
|
3741
3744
|
}
|
|
3742
|
-
|
|
3743
|
-
console.log(this.initialData);
|
|
3745
|
+
ngOnChanges(changes) {
|
|
3744
3746
|
this.initForm();
|
|
3745
|
-
this.getParameters();
|
|
3746
3747
|
this.startLocalStorageWork();
|
|
3748
|
+
this.getParameters();
|
|
3747
3749
|
this.codFormStepFive.controls['terms'].valueChanges.subscribe(changes => {
|
|
3748
3750
|
this.termsCheckboxStatus = changes;
|
|
3749
3751
|
if (!this.termsCheckboxStatus)
|
|
@@ -3753,32 +3755,16 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3753
3755
|
this.sendFormMsg = 'Editar COD'; // Roles Administrativos
|
|
3754
3756
|
if (this.userRole === 40 || this.userRole === 41 || this.userRole === 42)
|
|
3755
3757
|
this.sendFormMsg = 'Crear COD'; // Roles comerciales
|
|
3756
|
-
if (
|
|
3757
|
-
this.
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3758
|
+
if (changes['initialData']) {
|
|
3759
|
+
if (this.initialData != null) {
|
|
3760
|
+
this.setDataFromPreviusCod();
|
|
3761
|
+
}
|
|
3762
|
+
else {
|
|
3763
|
+
console.log('No hay data cargada para el Paso 5');
|
|
3764
|
+
this.cleanComponent();
|
|
3765
|
+
}
|
|
3761
3766
|
}
|
|
3762
3767
|
}
|
|
3763
|
-
// ngOnChanges(changes: SimpleChanges): void {
|
|
3764
|
-
// console.log(this.initialData);
|
|
3765
|
-
// this.initForm();
|
|
3766
|
-
// this.startLocalStorageWork();
|
|
3767
|
-
// this.getParameters();
|
|
3768
|
-
// this.codFormStepFive.controls['terms'].valueChanges.subscribe(changes => {
|
|
3769
|
-
// this.termsCheckboxStatus = changes;
|
|
3770
|
-
// if (!this.termsCheckboxStatus) this.errorMessage = 'Debe marcar la casilla de términos y condiciones.'
|
|
3771
|
-
// })
|
|
3772
|
-
// if (this.userRole === 30 || this.userRole === 31 || this.userRole === 32) this.sendFormMsg = 'Editar COD'; // Roles Administrativos
|
|
3773
|
-
// if (this.userRole === 40 || this.userRole === 41 || this.userRole === 42) this.sendFormMsg = 'Crear COD'; // Roles comerciales
|
|
3774
|
-
// if (changes['initialData']) {
|
|
3775
|
-
// if (this.initialData != null) {
|
|
3776
|
-
// this.setDataFromPreviusCod();
|
|
3777
|
-
// } else {
|
|
3778
|
-
// console.log('No hay data cargada para el Paso 5');
|
|
3779
|
-
// }
|
|
3780
|
-
// }
|
|
3781
|
-
// }
|
|
3782
3768
|
getParameters() {
|
|
3783
3769
|
this.parameterService.getMarketingReasons().subscribe((response) => {
|
|
3784
3770
|
this.marketingReasons = response.data;
|
|
@@ -3856,6 +3842,7 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3856
3842
|
}
|
|
3857
3843
|
cleanStorage() {
|
|
3858
3844
|
sessionStorage.clear();
|
|
3845
|
+
this.startLocalStorageWork();
|
|
3859
3846
|
}
|
|
3860
3847
|
// Eventos del select
|
|
3861
3848
|
selectMarketingReasons(marketingReasons) {
|
|
@@ -3881,9 +3868,13 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
3881
3868
|
this.codFormStepFive.controls['health_regimen'].setValue(this.initialData.aditional_information.health_regimen);
|
|
3882
3869
|
this.codFormStepFive.controls['observation'].setValue(this.initialData.aditional_information.observation);
|
|
3883
3870
|
}
|
|
3871
|
+
cleanComponent() {
|
|
3872
|
+
this.resetLocalStorage(this.controls);
|
|
3873
|
+
this.codFormStepFive.reset();
|
|
3874
|
+
}
|
|
3884
3875
|
}
|
|
3885
3876
|
CodFormStepFiveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepFiveComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3886
|
-
CodFormStepFiveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepFiveComponent, selector: "app-cod-form-step-five", inputs: { userRole: "userRole", initialData: "initialData" }, outputs: { changeStepEvent: "changeStepEvent", action: "action" }, usesInheritance: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepFive\" class=\"grid\">\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['marketing_reasons']\"\n [initialValue]=\"codFormStepFive.controls['marketing_reasons'].value\"\n (eventSelect)=\"selectMarketingReasons($event)\"\n [data]=\"marketingReasons\"\n [defaultText]=\"'\u00BFC\u00F3mo se enter\u00F3 del programa?'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Discapacidad'\"\n [control]=\"codFormStepFive.controls['disability']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['study_reasons']\"\n [initialValue]=\"codFormStepFive.controls['study_reasons'].value\"\n (eventSelect)=\"selectStudyReasons($event)\"\n [data]=\"studyReasons\"\n [defaultText]=\"'Motivo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'R\u00E9gimen de salud'\"\n [control]=\"codFormStepFive.controls['health_regimen']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 mt-4\">\n <span class=\"p-float-label\">\n <textarea\n id=\"float-input\"\n rows=\"4\"\n cols=\"30\"\n pInputTextarea\n formControlName=\"observation\"\n ></textarea>\n <label for=\"float-input\">Observaciones</label>\n </span>\n <div class=\"flex flex-wrap justify-content-between gap-2\">\n <div *ngFor=\"let option of multiculturalities; index as i\" class=\"field-checkbox mt-4 flex align-items-center\">\n <mat-checkbox [formControlName]=\"'multiculturalism' + '_' + (i+1)\" class=\"example-margin\"></mat-checkbox>\n <label [for]=\"option.code\">{{ option.name }}</label>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 p-4 font-bold\">\n <p>\n * El estudiante o titular se comprometen a cancelar las cuotas establecidas en este contrato, los\n primeros 5 (cinco) d\u00EDas del mes. En caso de querer retirarse, deber\u00E1 informar por escrito 30\n (treinta) d\u00EDas antes y cancelar lo correspondiente hasta la fecha definida de retiro, para poder\n obtener su paz y salvo.\n </p>\n <br><br>\n <div class=\"flex gap-2\">\n <mat-checkbox formControlName=\"terms\" class=\"example-margin\"></mat-checkbox>\n <!-- <p-checkbox [formControl]=\"getCheckboxControl()\"></p-checkbox> -->\n <!-- <ipt-checkbox [control]=\"codFormStepFive.controls['terms']\" [checkboxOption]=\"termsCheckboxStatus\"></ipt-checkbox> -->\n <p>\n DECLARO HABER LE\u00CDDO Y ACEPTO LOS T\u00C9RMINOS Y CONDICIONES DE LAS POL\u00CDTICAS ESTABLECIDAS EN LA\n INSTITUCI\u00D3N.\n </p>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepFive.invalid && codFormStepFive.touched) || (!termsCheckboxStatus && codFormStepFive.touched)\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-success p-button-sm\" (click)=\"sendForm()\" pButton [label]=\"sendFormMsg\" icon=\"pi pi-check\"></button>\n <button class=\"ml-auto p-button-danger p-button-sm\" (click)=\"cleanStorage()\" pButton label=\"Clean Storage\" icon=\"pi pi-check\"></button>\n</div>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { kind: "component", type: i6$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i8$1.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }] });
|
|
3877
|
+
CodFormStepFiveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepFiveComponent, selector: "app-cod-form-step-five", inputs: { userRole: "userRole", initialData: "initialData" }, outputs: { changeStepEvent: "changeStepEvent", action: "action" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepFive\" class=\"grid\">\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['marketing_reasons']\"\n [initialValue]=\"codFormStepFive.controls['marketing_reasons'].value\"\n (eventSelect)=\"selectMarketingReasons($event)\"\n [data]=\"marketingReasons\"\n [defaultText]=\"'\u00BFC\u00F3mo se enter\u00F3 del programa?'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Discapacidad'\"\n [control]=\"codFormStepFive.controls['disability']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['study_reasons']\"\n [initialValue]=\"codFormStepFive.controls['study_reasons'].value\"\n (eventSelect)=\"selectStudyReasons($event)\"\n [data]=\"studyReasons\"\n [defaultText]=\"'Motivo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'R\u00E9gimen de salud'\"\n [control]=\"codFormStepFive.controls['health_regimen']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 mt-4\">\n <span class=\"p-float-label\">\n <textarea\n id=\"float-input\"\n rows=\"4\"\n cols=\"30\"\n pInputTextarea\n formControlName=\"observation\"\n ></textarea>\n <label for=\"float-input\">Observaciones</label>\n </span>\n <div class=\"flex flex-wrap justify-content-between gap-2\">\n <div *ngFor=\"let option of multiculturalities; index as i\" class=\"field-checkbox mt-4 flex align-items-center\">\n <mat-checkbox [formControlName]=\"'multiculturalism' + '_' + (i+1)\" class=\"example-margin\"></mat-checkbox>\n <label [for]=\"option.code\">{{ option.name }}</label>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 p-4 font-bold\">\n <p>\n * El estudiante o titular se comprometen a cancelar las cuotas establecidas en este contrato, los\n primeros 5 (cinco) d\u00EDas del mes. En caso de querer retirarse, deber\u00E1 informar por escrito 30\n (treinta) d\u00EDas antes y cancelar lo correspondiente hasta la fecha definida de retiro, para poder\n obtener su paz y salvo.\n </p>\n <br><br>\n <div class=\"flex gap-2\">\n <mat-checkbox formControlName=\"terms\" class=\"example-margin\"></mat-checkbox>\n <!-- <p-checkbox [formControl]=\"getCheckboxControl()\"></p-checkbox> -->\n <!-- <ipt-checkbox [control]=\"codFormStepFive.controls['terms']\" [checkboxOption]=\"termsCheckboxStatus\"></ipt-checkbox> -->\n <p>\n DECLARO HABER LE\u00CDDO Y ACEPTO LOS T\u00C9RMINOS Y CONDICIONES DE LAS POL\u00CDTICAS ESTABLECIDAS EN LA\n INSTITUCI\u00D3N.\n </p>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepFive.invalid && codFormStepFive.touched) || (!termsCheckboxStatus && codFormStepFive.touched)\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-success p-button-sm\" (click)=\"sendForm()\" pButton [label]=\"sendFormMsg\" icon=\"pi pi-check\"></button>\n <button class=\"ml-auto p-button-danger p-button-sm\" (click)=\"cleanStorage()\" pButton label=\"Clean Storage\" icon=\"pi pi-check\"></button>\n</div>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { kind: "component", type: i6$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i8$1.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }] });
|
|
3887
3878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepFiveComponent, decorators: [{
|
|
3888
3879
|
type: Component,
|
|
3889
3880
|
args: [{ selector: 'app-cod-form-step-five', template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepFive\" class=\"grid\">\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['marketing_reasons']\"\n [initialValue]=\"codFormStepFive.controls['marketing_reasons'].value\"\n (eventSelect)=\"selectMarketingReasons($event)\"\n [data]=\"marketingReasons\"\n [defaultText]=\"'\u00BFC\u00F3mo se enter\u00F3 del programa?'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Discapacidad'\"\n [control]=\"codFormStepFive.controls['disability']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-select\n [control]=\"codFormStepFive.controls['study_reasons']\"\n [initialValue]=\"codFormStepFive.controls['study_reasons'].value\"\n (eventSelect)=\"selectStudyReasons($event)\"\n [data]=\"studyReasons\"\n [defaultText]=\"'Motivo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'R\u00E9gimen de salud'\"\n [control]=\"codFormStepFive.controls['health_regimen']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 mt-4\">\n <span class=\"p-float-label\">\n <textarea\n id=\"float-input\"\n rows=\"4\"\n cols=\"30\"\n pInputTextarea\n formControlName=\"observation\"\n ></textarea>\n <label for=\"float-input\">Observaciones</label>\n </span>\n <div class=\"flex flex-wrap justify-content-between gap-2\">\n <div *ngFor=\"let option of multiculturalities; index as i\" class=\"field-checkbox mt-4 flex align-items-center\">\n <mat-checkbox [formControlName]=\"'multiculturalism' + '_' + (i+1)\" class=\"example-margin\"></mat-checkbox>\n <label [for]=\"option.code\">{{ option.name }}</label>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 p-4 font-bold\">\n <p>\n * El estudiante o titular se comprometen a cancelar las cuotas establecidas en este contrato, los\n primeros 5 (cinco) d\u00EDas del mes. En caso de querer retirarse, deber\u00E1 informar por escrito 30\n (treinta) d\u00EDas antes y cancelar lo correspondiente hasta la fecha definida de retiro, para poder\n obtener su paz y salvo.\n </p>\n <br><br>\n <div class=\"flex gap-2\">\n <mat-checkbox formControlName=\"terms\" class=\"example-margin\"></mat-checkbox>\n <!-- <p-checkbox [formControl]=\"getCheckboxControl()\"></p-checkbox> -->\n <!-- <ipt-checkbox [control]=\"codFormStepFive.controls['terms']\" [checkboxOption]=\"termsCheckboxStatus\"></ipt-checkbox> -->\n <p>\n DECLARO HABER LE\u00CDDO Y ACEPTO LOS T\u00C9RMINOS Y CONDICIONES DE LAS POL\u00CDTICAS ESTABLECIDAS EN LA\n INSTITUCI\u00D3N.\n </p>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepFive.invalid && codFormStepFive.touched) || (!termsCheckboxStatus && codFormStepFive.touched)\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-success p-button-sm\" (click)=\"sendForm()\" pButton [label]=\"sendFormMsg\" icon=\"pi pi-check\"></button>\n <button class=\"ml-auto p-button-danger p-button-sm\" (click)=\"cleanStorage()\" pButton label=\"Clean Storage\" icon=\"pi pi-check\"></button>\n</div>\n\n" }]
|
|
@@ -3989,7 +3980,7 @@ class CodFormComponent {
|
|
|
3989
3980
|
const element = totalData[i];
|
|
3990
3981
|
if (!element.value && element.isRequired) {
|
|
3991
3982
|
Swal.fire({
|
|
3992
|
-
title: 'Error',
|
|
3983
|
+
title: 'Error Form Action Validate Error',
|
|
3993
3984
|
text: `Revisar el campo: "${element.description}"`,
|
|
3994
3985
|
icon: 'error'
|
|
3995
3986
|
});
|
|
@@ -4031,7 +4022,7 @@ class CodFormComponent {
|
|
|
4031
4022
|
this.isLoading = false;
|
|
4032
4023
|
this.loaderMessage = '';
|
|
4033
4024
|
Swal.fire({
|
|
4034
|
-
title: 'Error',
|
|
4025
|
+
title: 'Error Create COD',
|
|
4035
4026
|
text: err.error.text,
|
|
4036
4027
|
icon: 'error'
|
|
4037
4028
|
});
|