iptdevs-design-system 3.1.571 → 3.1.572
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/steps/cod-form-step-four/cod-form-step-four.component.mjs +1 -1
- package/esm2020/lib/cod-self-managed/cod-form-self-managed/cod-self-managed.component.mjs +1 -1
- package/esm2020/lib/cod-self-managed/cod-self-managed.module.mjs +8 -4
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-three/cod-self-form-step-three.component.mjs +151 -7
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-two/cod-self-form-step-two.component.mjs +4 -4
- package/fesm2015/iptdevs-design-system.mjs +147 -12
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +146 -12
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod-self-managed/cod-self-managed.module.d.ts +2 -1
- package/lib/cod-self-managed/steps/cod-form-step-three/cod-self-form-step-three.component.d.ts +30 -2
- package/package.json +1 -1
|
@@ -7064,9 +7064,9 @@ class CodSelfFormStepTwoComponent extends CodSelfManagedSteps {
|
|
|
7064
7064
|
}
|
|
7065
7065
|
searchAvalaibleCourse() {
|
|
7066
7066
|
this.isLoading = true;
|
|
7067
|
-
const age =
|
|
7068
|
-
const grade =
|
|
7069
|
-
const agreement =
|
|
7067
|
+
const age = Number(this.localStorageCOD.getCodFormData(1, 'age'));
|
|
7068
|
+
const grade = Number(this.localStorageCOD.getCodFormData(1, 'grade'));
|
|
7069
|
+
const agreement = Number(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
7070
7070
|
const userCode = this.baseService.getUserCode();
|
|
7071
7071
|
console.log(this.scorePlacementTest);
|
|
7072
7072
|
console.log(this.codPrevious);
|
|
@@ -7171,9 +7171,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
7171
7171
|
}] } });
|
|
7172
7172
|
|
|
7173
7173
|
class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
|
|
7174
|
-
constructor() {
|
|
7174
|
+
constructor(messageService, commercialService, baseService, calculateQuotesService) {
|
|
7175
7175
|
super();
|
|
7176
|
+
this.messageService = messageService;
|
|
7177
|
+
this.commercialService = commercialService;
|
|
7178
|
+
this.baseService = baseService;
|
|
7179
|
+
this.calculateQuotesService = calculateQuotesService;
|
|
7176
7180
|
this.completed = new EventEmitter();
|
|
7181
|
+
this.financingData = new EventEmitter();
|
|
7182
|
+
this.messageInfo = "";
|
|
7183
|
+
this.visible = false;
|
|
7184
|
+
this.paymentMethods = [
|
|
7185
|
+
{ code: '1', name: 'Financiado' },
|
|
7186
|
+
{ code: '2', name: 'Contado' },
|
|
7187
|
+
];
|
|
7188
|
+
this.feeResponse = false;
|
|
7189
|
+
this.thereArePlans = false;
|
|
7190
|
+
this.isFinancing = false;
|
|
7191
|
+
this.isCalculateQuotesButtonClicked = false;
|
|
7192
|
+
this.dataFinancing = [];
|
|
7193
|
+
}
|
|
7194
|
+
onReject() {
|
|
7195
|
+
this.messageService.clear('confirm');
|
|
7196
|
+
this.visible = false;
|
|
7197
|
+
}
|
|
7198
|
+
showConfirm() {
|
|
7199
|
+
if (!this.visible) {
|
|
7200
|
+
this.messageService.add({ key: 'confirm', sticky: true, severity: 'success', summary: 'Can you send me the report?', life: 10000 });
|
|
7201
|
+
this.visible = true;
|
|
7202
|
+
}
|
|
7203
|
+
}
|
|
7204
|
+
selectPaymentMethod(paymentMethod) {
|
|
7205
|
+
this.feeResponse = true;
|
|
7206
|
+
this.thereArePlans = false;
|
|
7207
|
+
if (paymentMethod !== '') {
|
|
7208
|
+
const request = {
|
|
7209
|
+
token: this.baseService.getUserToken(),
|
|
7210
|
+
course_type: Number(this.localStorageCOD.getCodFormData(2, 'course_type')),
|
|
7211
|
+
agreement: Number(this.localStorageCOD.getCodFormData(2, 'agreement_by_category')),
|
|
7212
|
+
course_modality: Number(this.localStorageCOD.getCodFormData(2, 'course_modality')),
|
|
7213
|
+
payment_method: parseInt(paymentMethod)
|
|
7214
|
+
};
|
|
7215
|
+
this.commercialService.ObtainCodPrices(request).subscribe((response) => {
|
|
7216
|
+
if (response.data != null) {
|
|
7217
|
+
this.dataPrices = response.data;
|
|
7218
|
+
this.feeResponse = false;
|
|
7219
|
+
this.thereArePlans = true;
|
|
7220
|
+
}
|
|
7221
|
+
else {
|
|
7222
|
+
this.thereArePlans = false;
|
|
7223
|
+
this.feeResponse = false;
|
|
7224
|
+
Swal.fire({
|
|
7225
|
+
position: 'center',
|
|
7226
|
+
icon: 'warning',
|
|
7227
|
+
title: '<p style="font-family: Poppins"">Oops.. no hay planes de pagos, \n en el curso elegido.</p>',
|
|
7228
|
+
showConfirmButton: false,
|
|
7229
|
+
timer: 3000,
|
|
7230
|
+
});
|
|
7231
|
+
this.clearInputPayment();
|
|
7232
|
+
}
|
|
7233
|
+
});
|
|
7234
|
+
this.codSelfFormStepThree.controls['payment_method'].setValue(paymentMethod);
|
|
7235
|
+
// this.getCodPricesByAgreement();
|
|
7236
|
+
}
|
|
7237
|
+
else {
|
|
7238
|
+
this.codSelfFormStepThree.controls['payment_method'].setValue(null);
|
|
7239
|
+
}
|
|
7240
|
+
}
|
|
7241
|
+
clearInputPayment() {
|
|
7242
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(null);
|
|
7243
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(null);
|
|
7244
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(null);
|
|
7177
7245
|
}
|
|
7178
7246
|
back() {
|
|
7179
7247
|
// Movernos al paso anterior
|
|
@@ -7185,13 +7253,77 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
|
|
|
7185
7253
|
// Movernos al paso 3
|
|
7186
7254
|
this.completed.emit(3);
|
|
7187
7255
|
}
|
|
7256
|
+
showTable() {
|
|
7257
|
+
this.isCalculateQuotesButtonClicked = true;
|
|
7258
|
+
const total_price = this.codSelfFormStepThree.controls['total_price'].value;
|
|
7259
|
+
if ((total_price === 'null') || this.codSelfFormStepThree.invalid) {
|
|
7260
|
+
Swal.fire({
|
|
7261
|
+
title: 'Error table',
|
|
7262
|
+
text: 'Debes ingresar el monto total de la matrícula y la cuota inicial',
|
|
7263
|
+
icon: 'error'
|
|
7264
|
+
});
|
|
7265
|
+
return;
|
|
7266
|
+
}
|
|
7267
|
+
// Calcular cuotas
|
|
7268
|
+
this.dataFinancing = [];
|
|
7269
|
+
// const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codSelfFormStepThree.controls['quota_times'].value))[0].quota_price;
|
|
7270
|
+
// let params: CalculateQuotesParams = {
|
|
7271
|
+
// date: new Date(this.codSelfFormStepThree.controls['payment_date'].value),
|
|
7272
|
+
// quotaValues,
|
|
7273
|
+
// quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codSelfFormStepThree.controls['quota_times'].value))[0].fee_number,
|
|
7274
|
+
// totalPrice: this.codSelfFormStepThree.controls['total_price'].value,
|
|
7275
|
+
// }
|
|
7276
|
+
let params = {
|
|
7277
|
+
date: new Date(this.codSelfFormStepThree.controls['payment_date'].value),
|
|
7278
|
+
quotaValues: Number(this.codSelfFormStepThree.controls['quota_price'].value),
|
|
7279
|
+
quotaTimes: Number(this.codSelfFormStepThree.controls['fee_number'].value),
|
|
7280
|
+
totalPrice: this.codSelfFormStepThree.controls['total_price'].value,
|
|
7281
|
+
};
|
|
7282
|
+
this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
|
|
7283
|
+
this.isFinancing = true;
|
|
7284
|
+
this.financingData.emit(this.dataFinancing);
|
|
7285
|
+
}
|
|
7286
|
+
calculateNewQuotes() {
|
|
7287
|
+
this.isCalculateQuotesButtonClicked = false;
|
|
7288
|
+
this.isFinancing = false;
|
|
7289
|
+
this.financingData.emit(null);
|
|
7290
|
+
}
|
|
7291
|
+
selectLevels(dataPayment) {
|
|
7292
|
+
var _a, _b;
|
|
7293
|
+
if (((_a = this.codSelfFormStepThree.get('payment_method')) === null || _a === void 0 ? void 0 : _a.value) == 1) {
|
|
7294
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(dataPayment.code);
|
|
7295
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(dataPayment.enrollment);
|
|
7296
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(dataPayment.financed_price);
|
|
7297
|
+
this.codSelfFormStepThree.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
7298
|
+
this.codSelfFormStepThree.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
7299
|
+
this.codSelfFormStepThree.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
7300
|
+
this.updateValueAndValidity();
|
|
7301
|
+
}
|
|
7302
|
+
else if (((_b = this.codSelfFormStepThree.get('payment_method')) === null || _b === void 0 ? void 0 : _b.value) == 2) {
|
|
7303
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(dataPayment.code);
|
|
7304
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(dataPayment.enrollment);
|
|
7305
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(dataPayment.normal_price);
|
|
7306
|
+
this.codSelfFormStepThree.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
7307
|
+
this.codSelfFormStepThree.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
7308
|
+
this.codSelfFormStepThree.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
7309
|
+
this.updateValueAndValidity();
|
|
7310
|
+
}
|
|
7311
|
+
}
|
|
7312
|
+
updateValueAndValidity() {
|
|
7313
|
+
this.codSelfFormStepThree.controls['program_price'].updateValueAndValidity();
|
|
7314
|
+
this.codSelfFormStepThree.controls['payment_date'].updateValueAndValidity();
|
|
7315
|
+
this.codSelfFormStepThree.controls['quota_times'].updateValueAndValidity();
|
|
7316
|
+
this.codSelfFormStepThree.controls['total_price'].updateValueAndValidity();
|
|
7317
|
+
}
|
|
7188
7318
|
}
|
|
7189
|
-
CodSelfFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7190
|
-
CodSelfFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", outputs: { completed: "completed" }, usesInheritance: true, ngImport: i0, template: "<span>
|
|
7319
|
+
CodSelfFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, deps: [{ token: i3$1.MessageService }, { token: CommercialService }, { token: BaseService }, { token: CalculateQuotesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7320
|
+
CodSelfFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", outputs: { completed: "completed", financingData: "financingData" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-main\">\n <div class=\"container-form\">\n <h2>Pagos</h2>\n <p-toast position=\"top-center\" key=\"confirm\" (onClose)=\"onReject()\" [baseZIndex]=\"10\">\n <ng-template let-message pTemplate=\"message\">\n <div class=\"flex flex-column align-items-start\" style=\"flex: 1\">\n <div class=\"flex align-items-center gap-2\">\n <img src=\"https://qa.iptdev.com.co/assets/logos/reading.png\" style=\"width: 65px;\" shape=\"circle\" />\n <span class=\"font-bold text-900\">Jacob</span>\n </div>\n <div class=\"font-medium text-lg my-3 text-900\">{{ messageInfo }}</div>\n </div>\n </ng-template>\n </p-toast>\n <i class=\"pi pi-exclamation-circle cursor-pointer w-auto mb-4\" (click)=\"showConfirm()\" pTooltip=\"Mas info.\" tooltipPosition=\"bottom\"></i>\n\n <form autocomplete=\"off\" [formGroup]=\"codSelfFormStepThree\" class=\"grid mt-2\">\n\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codSelfFormStepThree.controls['payment_method'].value\"\n [control]=\"codSelfFormStepThree.controls['payment_method']\"\n (eventSelect)=\"selectPaymentMethod($event)\"\n [data]=\"paymentMethods\"\n [defaultText]=\"'M\u00E9todo de pago'\"\n ></ipt-select>\n <ipt-loader *ngIf=\"feeResponse\"></ipt-loader>\n\n <div class=\"col-12\" *ngIf=\"thereArePlans\">\n <p-table\n [value]=\"dataPrices\"\n [tableStyle]=\"{'min-width': '100%'}\"\n [rowHover]=\"true\"\n >\n <ng-template pTemplate=\"caption\">\n <div class=\"flex align-items-center\">\n Seleccion de niveles a cancelar.\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\">\n <tr>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Cancelar</th>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Cuotas</th>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Admin</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-data>\n <tr>\n <td>{{ data.paid_level }} Nivel(es)</td>\n <td>{{ data.fee_number }}</td>\n <td class=\"pt-2 pb-2\">\n <button\n pButton\n pRipple\n icon=\"pi pi-money-bill\"\n class=\"p-button-sm p-button-rounded\"\n (click)=\"selectLevels(data)\"\n\n ></button>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n\n </div>\n\n <div class=\"col-12\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Monto total de la matr\u00EDcula'\"\n [control]=\"codSelfFormStepThree.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]=\"codSelfFormStepThree.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]=\"codSelfFormStepThree.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 </div>\n\n\n<div class=\"flex justify-content-between mt-3 align-items-center gap-3\">\n <!-- <span *ngIf=\"codSelfFormStepOne.invalid && codSelfFormStepOne.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\n pButton\n icon=\"pi pi-arrow-left\"\n type=\"submit\"\n (click)=\"back()\"\n ></button>\n\n <button\n pButton\n icon=\"pi pi-arrow-right\"\n (click)=\"sendForm()\"\n ></button>\n</div>\n</div>\n", styles: [""], dependencies: [{ 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", "disabledSel"], outputs: ["dateSelected"] }, { kind: "component", type: LoaderComponent, selector: "ipt-loader", inputs: ["message", "isDialog"] }, { 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: "directive", type: i7$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i7$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i9.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "directive", type: i3$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i13.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"] }] });
|
|
7191
7321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, decorators: [{
|
|
7192
7322
|
type: Component,
|
|
7193
|
-
args: [{ selector: 'app-cod-self-form-step-three', template: "<span>
|
|
7194
|
-
}], ctorParameters: function () { return []; }, propDecorators: { completed: [{
|
|
7323
|
+
args: [{ selector: 'app-cod-self-form-step-three', template: "<div class=\"container-main\">\n <div class=\"container-form\">\n <h2>Pagos</h2>\n <p-toast position=\"top-center\" key=\"confirm\" (onClose)=\"onReject()\" [baseZIndex]=\"10\">\n <ng-template let-message pTemplate=\"message\">\n <div class=\"flex flex-column align-items-start\" style=\"flex: 1\">\n <div class=\"flex align-items-center gap-2\">\n <img src=\"https://qa.iptdev.com.co/assets/logos/reading.png\" style=\"width: 65px;\" shape=\"circle\" />\n <span class=\"font-bold text-900\">Jacob</span>\n </div>\n <div class=\"font-medium text-lg my-3 text-900\">{{ messageInfo }}</div>\n </div>\n </ng-template>\n </p-toast>\n <i class=\"pi pi-exclamation-circle cursor-pointer w-auto mb-4\" (click)=\"showConfirm()\" pTooltip=\"Mas info.\" tooltipPosition=\"bottom\"></i>\n\n <form autocomplete=\"off\" [formGroup]=\"codSelfFormStepThree\" class=\"grid mt-2\">\n\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codSelfFormStepThree.controls['payment_method'].value\"\n [control]=\"codSelfFormStepThree.controls['payment_method']\"\n (eventSelect)=\"selectPaymentMethod($event)\"\n [data]=\"paymentMethods\"\n [defaultText]=\"'M\u00E9todo de pago'\"\n ></ipt-select>\n <ipt-loader *ngIf=\"feeResponse\"></ipt-loader>\n\n <div class=\"col-12\" *ngIf=\"thereArePlans\">\n <p-table\n [value]=\"dataPrices\"\n [tableStyle]=\"{'min-width': '100%'}\"\n [rowHover]=\"true\"\n >\n <ng-template pTemplate=\"caption\">\n <div class=\"flex align-items-center\">\n Seleccion de niveles a cancelar.\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\">\n <tr>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Cancelar</th>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Cuotas</th>\n <th class=\"bg-blue-200 text-center font-medium pt-2 pb-2\">Admin</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-data>\n <tr>\n <td>{{ data.paid_level }} Nivel(es)</td>\n <td>{{ data.fee_number }}</td>\n <td class=\"pt-2 pb-2\">\n <button\n pButton\n pRipple\n icon=\"pi pi-money-bill\"\n class=\"p-button-sm p-button-rounded\"\n (click)=\"selectLevels(data)\"\n\n ></button>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n\n </div>\n\n <div class=\"col-12\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Monto total de la matr\u00EDcula'\"\n [control]=\"codSelfFormStepThree.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]=\"codSelfFormStepThree.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]=\"codSelfFormStepThree.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 </div>\n\n\n<div class=\"flex justify-content-between mt-3 align-items-center gap-3\">\n <!-- <span *ngIf=\"codSelfFormStepOne.invalid && codSelfFormStepOne.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\n pButton\n icon=\"pi pi-arrow-left\"\n type=\"submit\"\n (click)=\"back()\"\n ></button>\n\n <button\n pButton\n icon=\"pi pi-arrow-right\"\n (click)=\"sendForm()\"\n ></button>\n</div>\n</div>\n" }]
|
|
7324
|
+
}], ctorParameters: function () { return [{ type: i3$1.MessageService }, { type: CommercialService }, { type: BaseService }, { type: CalculateQuotesService }]; }, propDecorators: { completed: [{
|
|
7325
|
+
type: Output
|
|
7326
|
+
}], financingData: [{
|
|
7195
7327
|
type: Output
|
|
7196
7328
|
}] } });
|
|
7197
7329
|
|
|
@@ -7255,7 +7387,7 @@ class CodSelfManagedComponent {
|
|
|
7255
7387
|
}
|
|
7256
7388
|
}
|
|
7257
7389
|
CodSelfManagedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfManagedComponent, deps: [{ token: BaseService }, { token: CommercialService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7258
|
-
CodSelfManagedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfManagedComponent, selector: "ipt-cod-self-managed", inputs: { user: "user", scorePlacementTest: "scorePlacementTest", codPrevious: "codPrevious" }, ngImport: i0, template: "<p-steps [model]=\"items\" [(activeIndex)]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" ></p-steps>\n\n<p-tabView [activeIndex]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\">\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-one (completed)=\"changeStep($event)\" [userStudent]=\"user\"></app-cod-self-form-step-one>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-two (completed)=\"changeStep($event)\" [codPrevious]=\"codPrevious\" [scorePlacementTest]=\"scorePlacementTest\"></app-cod-self-form-step-two>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-three (completed)=\"changeStep($event)\"></app-cod-self-form-step-three>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-four (completed)=\"changeStep($event)\"></app-cod-self-form-step-four>\n </p-tabPanel>\n</p-tabView>\n", styles: [":host ::ng-deep .p-tabview-nav{display:none!important}\n"], dependencies: [{ kind: "component", type: i3$2.Steps, selector: "p-steps", inputs: ["activeIndex", "model", "readonly", "style", "styleClass"], outputs: ["activeIndexChange"] }, { 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: CodSelfFormStepOneComponent, selector: "app-cod-self-form-step-one", inputs: ["userStudent"], outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepTwoComponent, selector: "app-cod-self-form-step-two", inputs: ["scorePlacementTest", "codPrevious"], outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepFourComponent, selector: "app-cod-self-form-step-four", outputs: ["completed"] }] });
|
|
7390
|
+
CodSelfManagedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfManagedComponent, selector: "ipt-cod-self-managed", inputs: { user: "user", scorePlacementTest: "scorePlacementTest", codPrevious: "codPrevious" }, ngImport: i0, template: "<p-steps [model]=\"items\" [(activeIndex)]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" ></p-steps>\n\n<p-tabView [activeIndex]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\">\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-one (completed)=\"changeStep($event)\" [userStudent]=\"user\"></app-cod-self-form-step-one>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-two (completed)=\"changeStep($event)\" [codPrevious]=\"codPrevious\" [scorePlacementTest]=\"scorePlacementTest\"></app-cod-self-form-step-two>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-three (completed)=\"changeStep($event)\"></app-cod-self-form-step-three>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-four (completed)=\"changeStep($event)\"></app-cod-self-form-step-four>\n </p-tabPanel>\n</p-tabView>\n", styles: [":host ::ng-deep .p-tabview-nav{display:none!important}\n"], dependencies: [{ kind: "component", type: i3$2.Steps, selector: "p-steps", inputs: ["activeIndex", "model", "readonly", "style", "styleClass"], outputs: ["activeIndexChange"] }, { 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: CodSelfFormStepOneComponent, selector: "app-cod-self-form-step-one", inputs: ["userStudent"], outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepTwoComponent, selector: "app-cod-self-form-step-two", inputs: ["scorePlacementTest", "codPrevious"], outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", outputs: ["completed", "financingData"] }, { kind: "component", type: CodSelfFormStepFourComponent, selector: "app-cod-self-form-step-four", outputs: ["completed"] }] });
|
|
7259
7391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfManagedComponent, decorators: [{
|
|
7260
7392
|
type: Component,
|
|
7261
7393
|
args: [{ selector: 'ipt-cod-self-managed', template: "<p-steps [model]=\"items\" [(activeIndex)]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" ></p-steps>\n\n<p-tabView [activeIndex]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\">\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-one (completed)=\"changeStep($event)\" [userStudent]=\"user\"></app-cod-self-form-step-one>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-two (completed)=\"changeStep($event)\" [codPrevious]=\"codPrevious\" [scorePlacementTest]=\"scorePlacementTest\"></app-cod-self-form-step-two>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-three (completed)=\"changeStep($event)\"></app-cod-self-form-step-three>\n </p-tabPanel>\n <p-tabPanel [disabled]=\"true\">\n <app-cod-self-form-step-four (completed)=\"changeStep($event)\"></app-cod-self-form-step-four>\n </p-tabPanel>\n</p-tabView>\n", styles: [":host ::ng-deep .p-tabview-nav{display:none!important}\n"] }]
|
|
@@ -7287,7 +7419,8 @@ codSelfManagedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
|
|
|
7287
7419
|
AccordionModule,
|
|
7288
7420
|
CheckboxModule,
|
|
7289
7421
|
RadioButtonModule,
|
|
7290
|
-
TooltipModule
|
|
7422
|
+
TooltipModule,
|
|
7423
|
+
TableModule], exports: [CodSelfManagedComponent,
|
|
7291
7424
|
CodSelfFormStepOneComponent,
|
|
7292
7425
|
CodSelfFormStepTwoComponent,
|
|
7293
7426
|
CodSelfFormStepThreeComponent,
|
|
@@ -7305,7 +7438,8 @@ codSelfManagedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
7305
7438
|
AccordionModule,
|
|
7306
7439
|
CheckboxModule,
|
|
7307
7440
|
RadioButtonModule,
|
|
7308
|
-
TooltipModule
|
|
7441
|
+
TooltipModule,
|
|
7442
|
+
TableModule] });
|
|
7309
7443
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: codSelfManagedModule, decorators: [{
|
|
7310
7444
|
type: NgModule,
|
|
7311
7445
|
args: [{
|
|
@@ -7323,7 +7457,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
7323
7457
|
AccordionModule,
|
|
7324
7458
|
CheckboxModule,
|
|
7325
7459
|
RadioButtonModule,
|
|
7326
|
-
TooltipModule
|
|
7460
|
+
TooltipModule,
|
|
7461
|
+
TableModule
|
|
7327
7462
|
],
|
|
7328
7463
|
declarations: [
|
|
7329
7464
|
CodSelfManagedComponent,
|