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
|
@@ -7053,9 +7053,9 @@ class CodSelfFormStepTwoComponent extends CodSelfManagedSteps {
|
|
|
7053
7053
|
}
|
|
7054
7054
|
searchAvalaibleCourse() {
|
|
7055
7055
|
this.isLoading = true;
|
|
7056
|
-
const age =
|
|
7057
|
-
const grade =
|
|
7058
|
-
const agreement =
|
|
7056
|
+
const age = Number(this.localStorageCOD.getCodFormData(1, 'age'));
|
|
7057
|
+
const grade = Number(this.localStorageCOD.getCodFormData(1, 'grade'));
|
|
7058
|
+
const agreement = Number(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
7059
7059
|
const userCode = this.baseService.getUserCode();
|
|
7060
7060
|
console.log(this.scorePlacementTest);
|
|
7061
7061
|
console.log(this.codPrevious);
|
|
@@ -7159,9 +7159,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
7159
7159
|
}] } });
|
|
7160
7160
|
|
|
7161
7161
|
class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
|
|
7162
|
-
constructor() {
|
|
7162
|
+
constructor(messageService, commercialService, baseService, calculateQuotesService) {
|
|
7163
7163
|
super();
|
|
7164
|
+
this.messageService = messageService;
|
|
7165
|
+
this.commercialService = commercialService;
|
|
7166
|
+
this.baseService = baseService;
|
|
7167
|
+
this.calculateQuotesService = calculateQuotesService;
|
|
7164
7168
|
this.completed = new EventEmitter();
|
|
7169
|
+
this.financingData = new EventEmitter();
|
|
7170
|
+
this.messageInfo = "";
|
|
7171
|
+
this.visible = false;
|
|
7172
|
+
this.paymentMethods = [
|
|
7173
|
+
{ code: '1', name: 'Financiado' },
|
|
7174
|
+
{ code: '2', name: 'Contado' },
|
|
7175
|
+
];
|
|
7176
|
+
this.feeResponse = false;
|
|
7177
|
+
this.thereArePlans = false;
|
|
7178
|
+
this.isFinancing = false;
|
|
7179
|
+
this.isCalculateQuotesButtonClicked = false;
|
|
7180
|
+
this.dataFinancing = [];
|
|
7181
|
+
}
|
|
7182
|
+
onReject() {
|
|
7183
|
+
this.messageService.clear('confirm');
|
|
7184
|
+
this.visible = false;
|
|
7185
|
+
}
|
|
7186
|
+
showConfirm() {
|
|
7187
|
+
if (!this.visible) {
|
|
7188
|
+
this.messageService.add({ key: 'confirm', sticky: true, severity: 'success', summary: 'Can you send me the report?', life: 10000 });
|
|
7189
|
+
this.visible = true;
|
|
7190
|
+
}
|
|
7191
|
+
}
|
|
7192
|
+
selectPaymentMethod(paymentMethod) {
|
|
7193
|
+
this.feeResponse = true;
|
|
7194
|
+
this.thereArePlans = false;
|
|
7195
|
+
if (paymentMethod !== '') {
|
|
7196
|
+
const request = {
|
|
7197
|
+
token: this.baseService.getUserToken(),
|
|
7198
|
+
course_type: Number(this.localStorageCOD.getCodFormData(2, 'course_type')),
|
|
7199
|
+
agreement: Number(this.localStorageCOD.getCodFormData(2, 'agreement_by_category')),
|
|
7200
|
+
course_modality: Number(this.localStorageCOD.getCodFormData(2, 'course_modality')),
|
|
7201
|
+
payment_method: parseInt(paymentMethod)
|
|
7202
|
+
};
|
|
7203
|
+
this.commercialService.ObtainCodPrices(request).subscribe((response) => {
|
|
7204
|
+
if (response.data != null) {
|
|
7205
|
+
this.dataPrices = response.data;
|
|
7206
|
+
this.feeResponse = false;
|
|
7207
|
+
this.thereArePlans = true;
|
|
7208
|
+
}
|
|
7209
|
+
else {
|
|
7210
|
+
this.thereArePlans = false;
|
|
7211
|
+
this.feeResponse = false;
|
|
7212
|
+
Swal.fire({
|
|
7213
|
+
position: 'center',
|
|
7214
|
+
icon: 'warning',
|
|
7215
|
+
title: '<p style="font-family: Poppins"">Oops.. no hay planes de pagos, \n en el curso elegido.</p>',
|
|
7216
|
+
showConfirmButton: false,
|
|
7217
|
+
timer: 3000,
|
|
7218
|
+
});
|
|
7219
|
+
this.clearInputPayment();
|
|
7220
|
+
}
|
|
7221
|
+
});
|
|
7222
|
+
this.codSelfFormStepThree.controls['payment_method'].setValue(paymentMethod);
|
|
7223
|
+
// this.getCodPricesByAgreement();
|
|
7224
|
+
}
|
|
7225
|
+
else {
|
|
7226
|
+
this.codSelfFormStepThree.controls['payment_method'].setValue(null);
|
|
7227
|
+
}
|
|
7228
|
+
}
|
|
7229
|
+
clearInputPayment() {
|
|
7230
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(null);
|
|
7231
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(null);
|
|
7232
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(null);
|
|
7165
7233
|
}
|
|
7166
7234
|
back() {
|
|
7167
7235
|
// Movernos al paso anterior
|
|
@@ -7173,13 +7241,76 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
|
|
|
7173
7241
|
// Movernos al paso 3
|
|
7174
7242
|
this.completed.emit(3);
|
|
7175
7243
|
}
|
|
7244
|
+
showTable() {
|
|
7245
|
+
this.isCalculateQuotesButtonClicked = true;
|
|
7246
|
+
const total_price = this.codSelfFormStepThree.controls['total_price'].value;
|
|
7247
|
+
if ((total_price === 'null') || this.codSelfFormStepThree.invalid) {
|
|
7248
|
+
Swal.fire({
|
|
7249
|
+
title: 'Error table',
|
|
7250
|
+
text: 'Debes ingresar el monto total de la matrícula y la cuota inicial',
|
|
7251
|
+
icon: 'error'
|
|
7252
|
+
});
|
|
7253
|
+
return;
|
|
7254
|
+
}
|
|
7255
|
+
// Calcular cuotas
|
|
7256
|
+
this.dataFinancing = [];
|
|
7257
|
+
// const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codSelfFormStepThree.controls['quota_times'].value))[0].quota_price;
|
|
7258
|
+
// let params: CalculateQuotesParams = {
|
|
7259
|
+
// date: new Date(this.codSelfFormStepThree.controls['payment_date'].value),
|
|
7260
|
+
// quotaValues,
|
|
7261
|
+
// quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codSelfFormStepThree.controls['quota_times'].value))[0].fee_number,
|
|
7262
|
+
// totalPrice: this.codSelfFormStepThree.controls['total_price'].value,
|
|
7263
|
+
// }
|
|
7264
|
+
let params = {
|
|
7265
|
+
date: new Date(this.codSelfFormStepThree.controls['payment_date'].value),
|
|
7266
|
+
quotaValues: Number(this.codSelfFormStepThree.controls['quota_price'].value),
|
|
7267
|
+
quotaTimes: Number(this.codSelfFormStepThree.controls['fee_number'].value),
|
|
7268
|
+
totalPrice: this.codSelfFormStepThree.controls['total_price'].value,
|
|
7269
|
+
};
|
|
7270
|
+
this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
|
|
7271
|
+
this.isFinancing = true;
|
|
7272
|
+
this.financingData.emit(this.dataFinancing);
|
|
7273
|
+
}
|
|
7274
|
+
calculateNewQuotes() {
|
|
7275
|
+
this.isCalculateQuotesButtonClicked = false;
|
|
7276
|
+
this.isFinancing = false;
|
|
7277
|
+
this.financingData.emit(null);
|
|
7278
|
+
}
|
|
7279
|
+
selectLevels(dataPayment) {
|
|
7280
|
+
if (this.codSelfFormStepThree.get('payment_method')?.value == 1) {
|
|
7281
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(dataPayment.code);
|
|
7282
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(dataPayment.enrollment);
|
|
7283
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(dataPayment.financed_price);
|
|
7284
|
+
this.codSelfFormStepThree.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
7285
|
+
this.codSelfFormStepThree.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
7286
|
+
this.codSelfFormStepThree.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
7287
|
+
this.updateValueAndValidity();
|
|
7288
|
+
}
|
|
7289
|
+
else if (this.codSelfFormStepThree.get('payment_method')?.value == 2) {
|
|
7290
|
+
this.codSelfFormStepThree.controls['quota_times'].setValue(dataPayment.code);
|
|
7291
|
+
this.codSelfFormStepThree.controls['total_price'].setValue(dataPayment.enrollment);
|
|
7292
|
+
this.codSelfFormStepThree.controls['program_price'].setValue(dataPayment.normal_price);
|
|
7293
|
+
this.codSelfFormStepThree.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
7294
|
+
this.codSelfFormStepThree.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
7295
|
+
this.codSelfFormStepThree.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
7296
|
+
this.updateValueAndValidity();
|
|
7297
|
+
}
|
|
7298
|
+
}
|
|
7299
|
+
updateValueAndValidity() {
|
|
7300
|
+
this.codSelfFormStepThree.controls['program_price'].updateValueAndValidity();
|
|
7301
|
+
this.codSelfFormStepThree.controls['payment_date'].updateValueAndValidity();
|
|
7302
|
+
this.codSelfFormStepThree.controls['quota_times'].updateValueAndValidity();
|
|
7303
|
+
this.codSelfFormStepThree.controls['total_price'].updateValueAndValidity();
|
|
7304
|
+
}
|
|
7176
7305
|
}
|
|
7177
|
-
CodSelfFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7178
|
-
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>
|
|
7306
|
+
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 });
|
|
7307
|
+
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"] }] });
|
|
7179
7308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, decorators: [{
|
|
7180
7309
|
type: Component,
|
|
7181
|
-
args: [{ selector: 'app-cod-self-form-step-three', template: "<span>
|
|
7182
|
-
}], ctorParameters: function () { return []; }, propDecorators: { completed: [{
|
|
7310
|
+
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" }]
|
|
7311
|
+
}], ctorParameters: function () { return [{ type: i3$1.MessageService }, { type: CommercialService }, { type: BaseService }, { type: CalculateQuotesService }]; }, propDecorators: { completed: [{
|
|
7312
|
+
type: Output
|
|
7313
|
+
}], financingData: [{
|
|
7183
7314
|
type: Output
|
|
7184
7315
|
}] } });
|
|
7185
7316
|
|
|
@@ -7243,7 +7374,7 @@ class CodSelfManagedComponent {
|
|
|
7243
7374
|
}
|
|
7244
7375
|
}
|
|
7245
7376
|
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 });
|
|
7246
|
-
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"] }] });
|
|
7377
|
+
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"] }] });
|
|
7247
7378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfManagedComponent, decorators: [{
|
|
7248
7379
|
type: Component,
|
|
7249
7380
|
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"] }]
|
|
@@ -7275,7 +7406,8 @@ codSelfManagedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
|
|
|
7275
7406
|
AccordionModule,
|
|
7276
7407
|
CheckboxModule,
|
|
7277
7408
|
RadioButtonModule,
|
|
7278
|
-
TooltipModule
|
|
7409
|
+
TooltipModule,
|
|
7410
|
+
TableModule], exports: [CodSelfManagedComponent,
|
|
7279
7411
|
CodSelfFormStepOneComponent,
|
|
7280
7412
|
CodSelfFormStepTwoComponent,
|
|
7281
7413
|
CodSelfFormStepThreeComponent,
|
|
@@ -7293,7 +7425,8 @@ codSelfManagedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
7293
7425
|
AccordionModule,
|
|
7294
7426
|
CheckboxModule,
|
|
7295
7427
|
RadioButtonModule,
|
|
7296
|
-
TooltipModule
|
|
7428
|
+
TooltipModule,
|
|
7429
|
+
TableModule] });
|
|
7297
7430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: codSelfManagedModule, decorators: [{
|
|
7298
7431
|
type: NgModule,
|
|
7299
7432
|
args: [{
|
|
@@ -7311,7 +7444,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
7311
7444
|
AccordionModule,
|
|
7312
7445
|
CheckboxModule,
|
|
7313
7446
|
RadioButtonModule,
|
|
7314
|
-
TooltipModule
|
|
7447
|
+
TooltipModule,
|
|
7448
|
+
TableModule
|
|
7315
7449
|
],
|
|
7316
7450
|
declarations: [
|
|
7317
7451
|
CodSelfManagedComponent,
|