visorus-erp-core 13.0.0 → 14.0.0
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/app.module.mjs +12 -14
- package/esm2020/lib/components/acreedor/select/select-acreedor.component.mjs +8 -8
- package/esm2020/lib/components/caja/session-create/session-create.component.mjs +14 -14
- package/esm2020/lib/components/cliente/select/select-cliente.component.mjs +7 -7
- package/esm2020/lib/components/loading/loading.component.mjs +1 -1
- package/esm2020/lib/components/login-modal/login-modal.component.mjs +5 -5
- package/esm2020/lib/components/pdfModal/pdf-modal.component.mjs +3 -3
- package/esm2020/lib/components/proveedor/select/select-proveedor.component.mjs +8 -8
- package/esm2020/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +7 -7
- package/esm2020/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +12 -12
- package/esm2020/lib/contabilidad/componentes/cclista/cclista.component.mjs +10 -10
- package/esm2020/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +4 -4
- package/fesm2015/visorus-erp-core.mjs +68 -70
- package/fesm2015/visorus-erp-core.mjs.map +1 -1
- package/fesm2020/visorus-erp-core.mjs +68 -70
- package/fesm2020/visorus-erp-core.mjs.map +1 -1
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +1 -1
- package/lib/components/caja/session-create/session-create.component.d.ts +1 -1
- package/lib/components/cliente/select/select-cliente.component.d.ts +1 -1
- package/lib/components/error404/error404.component.d.ts +1 -1
- package/lib/components/loading/loading.component.d.ts +1 -1
- package/lib/components/loading-screen/loading-screen.component.d.ts +1 -1
- package/lib/components/login-modal/login-modal.component.d.ts +1 -1
- package/lib/components/pdfModal/pdf-modal.component.d.ts +1 -1
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +1 -1
- package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +1 -1
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +1 -1
- package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +1 -1
- package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +1 -1
- package/package.json +3 -3
- /package/{visorus-erp-core.d.ts → index.d.ts} +0 -0
|
@@ -2,32 +2,32 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
|
|
5
|
-
import * as
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i6 from 'primeng/inputtext';
|
|
8
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
9
|
-
import * as i4 from 'primeng/treetable';
|
|
10
|
-
import { TreeTableModule } from 'primeng/treetable';
|
|
11
|
-
import * as i4$1 from 'primeng/api';
|
|
12
|
-
import { ConfirmationService } from 'primeng/api';
|
|
13
|
-
import * as i8 from '@angular/common';
|
|
5
|
+
import * as i4 from '@angular/common';
|
|
14
6
|
import { CommonModule } from '@angular/common';
|
|
15
|
-
import * as
|
|
7
|
+
import * as i3 from 'primeng/api';
|
|
8
|
+
import { ConfirmationService } from 'primeng/api';
|
|
9
|
+
import * as i4$1 from 'primeng/treetable';
|
|
10
|
+
import { TreeTableModule } from 'primeng/treetable';
|
|
11
|
+
import * as i6 from 'primeng/button';
|
|
16
12
|
import { ButtonModule } from 'primeng/button';
|
|
17
|
-
import * as
|
|
13
|
+
import * as i7 from 'primeng/inputtext';
|
|
14
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
15
|
+
import * as i10 from '@angular/forms';
|
|
16
|
+
import { FormsModule } from '@angular/forms';
|
|
17
|
+
import * as i11 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
19
|
import { Subject, throwError, of } from 'rxjs';
|
|
20
20
|
import { catchError, tap } from 'rxjs/internal/operators';
|
|
21
21
|
import * as i1$1 from 'ngx-toastr';
|
|
22
22
|
import { ToastrModule } from 'ngx-toastr';
|
|
23
|
-
import * as i3 from '@ngx-translate/core';
|
|
23
|
+
import * as i3$1 from '@ngx-translate/core';
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
25
|
import { debounceTime } from 'rxjs/operators';
|
|
26
|
-
import * as i3$
|
|
26
|
+
import * as i3$2 from '@angular/platform-browser';
|
|
27
27
|
import { __awaiter } from 'tslib';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i6$1 from 'primeng/table';
|
|
29
29
|
import { TableModule } from 'primeng/table';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i9 from 'primeng/paginator';
|
|
31
31
|
import { PaginatorModule } from 'primeng/paginator';
|
|
32
32
|
import * as i23 from 'primeng/dropdown';
|
|
33
33
|
import { DropdownModule } from 'primeng/dropdown';
|
|
@@ -78,7 +78,7 @@ import { SplitButtonModule } from 'primeng/splitbutton';
|
|
|
78
78
|
import * as i36 from 'primeng/toolbar';
|
|
79
79
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
80
80
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
81
|
-
import * as i3$
|
|
81
|
+
import * as i3$3 from '@angular/router';
|
|
82
82
|
|
|
83
83
|
class GlobalService {
|
|
84
84
|
constructor(http) {
|
|
@@ -221,7 +221,7 @@ function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) {
|
|
|
221
221
|
if (rf & 1) {
|
|
222
222
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
223
223
|
i0.ɵɵelementStart(0, "button", 16);
|
|
224
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.selectCuentaContable(rowData_r3); });
|
|
224
|
+
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.selectCuentaContable(rowData_r3)); });
|
|
225
225
|
i0.ɵɵelementEnd();
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -229,7 +229,7 @@ function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) {
|
|
|
229
229
|
if (rf & 1) {
|
|
230
230
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
231
231
|
i0.ɵɵelementStart(0, "button", 16);
|
|
232
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.selectCuentaContable(rowData_r3); });
|
|
232
|
+
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.selectCuentaContable(rowData_r3)); });
|
|
233
233
|
i0.ɵɵelementEnd();
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -450,11 +450,11 @@ class CclistaComponent {
|
|
|
450
450
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$7));
|
|
451
451
|
i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
|
|
452
452
|
}
|
|
453
|
-
},
|
|
453
|
+
}, dependencies: [i4.NgIf, i3.PrimeTemplate, i4$1.TreeTable, i4$1.TreeTableToggler, i6.ButtonDirective, i7.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel] });
|
|
454
454
|
(function () {
|
|
455
455
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
456
456
|
type: Component,
|
|
457
|
-
args: [{ selector: 'lib-cclista', template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>"
|
|
457
|
+
args: [{ selector: 'lib-cclista', template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>" }]
|
|
458
458
|
}], function () { return [{ type: CuentaContableService }]; }, { isShared: [{
|
|
459
459
|
type: Input
|
|
460
460
|
}], typeAccount: [{
|
|
@@ -513,11 +513,11 @@ class CcseleccionDialogComponent {
|
|
|
513
513
|
i0.ɵɵadvance(1);
|
|
514
514
|
i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
|
|
515
515
|
}
|
|
516
|
-
},
|
|
516
|
+
}, dependencies: [i4.NgStyle, i11.Dialog, CclistaComponent] });
|
|
517
517
|
(function () {
|
|
518
518
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
519
519
|
type: Component,
|
|
520
|
-
args: [{ selector: 'lib-ccseleccion-dialog', template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>"
|
|
520
|
+
args: [{ selector: 'lib-ccseleccion-dialog', template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>" }]
|
|
521
521
|
}], function () { return []; }, { dialog: [{
|
|
522
522
|
type: ViewChild,
|
|
523
523
|
args: ["dialog", { static: true }]
|
|
@@ -759,7 +759,7 @@ class LoadingComponent {
|
|
|
759
759
|
i0.ɵɵadvance(2);
|
|
760
760
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
761
761
|
}
|
|
762
|
-
},
|
|
762
|
+
}, dependencies: [i3$1.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
|
|
763
763
|
(function () {
|
|
764
764
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
765
765
|
type: Component,
|
|
@@ -892,7 +892,7 @@ class FileService {
|
|
|
892
892
|
this.blobToDowload(this.base64ToBlob(base64, type), type, name);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
/** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3.TranslateService)); };
|
|
895
|
+
/** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3$1.TranslateService)); };
|
|
896
896
|
/** @nocollapse */ FileService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
|
|
897
897
|
(function () {
|
|
898
898
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileService, [{
|
|
@@ -900,7 +900,7 @@ class FileService {
|
|
|
900
900
|
args: [{
|
|
901
901
|
providedIn: 'root'
|
|
902
902
|
}]
|
|
903
|
-
}], function () { return [{ type: i1$1.ToastrService }, { type: i3.TranslateService }]; }, null);
|
|
903
|
+
}], function () { return [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }]; }, null);
|
|
904
904
|
})();
|
|
905
905
|
|
|
906
906
|
function PdfModalComponent_div_1_Template(rf, ctx) {
|
|
@@ -981,7 +981,7 @@ class PdfModalComponent {
|
|
|
981
981
|
// iframe.contentWindow.print();
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
/** @nocollapse */ PdfModalComponent.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$
|
|
984
|
+
/** @nocollapse */ PdfModalComponent.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$2.DomSanitizer)); };
|
|
985
985
|
/** @nocollapse */ PdfModalComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle", "visibleChange"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) {
|
|
986
986
|
if (rf & 1) {
|
|
987
987
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
@@ -995,12 +995,12 @@ class PdfModalComponent {
|
|
|
995
995
|
i0.ɵɵadvance(1);
|
|
996
996
|
i0.ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
997
997
|
}
|
|
998
|
-
},
|
|
998
|
+
}, dependencies: [i4.NgIf, i11.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
|
|
999
999
|
(function () {
|
|
1000
1000
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
1001
1001
|
type: Component,
|
|
1002
1002
|
args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
|
|
1003
|
-
}], function () { return [{ type: PdfModalService }, { type: FileService }, { type: i3$
|
|
1003
|
+
}], function () { return [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }]; }, null);
|
|
1004
1004
|
})();
|
|
1005
1005
|
|
|
1006
1006
|
class Usuario {
|
|
@@ -1224,14 +1224,14 @@ function LoginModalComponent_div_6_Template(rf, ctx) {
|
|
|
1224
1224
|
if (rf & 1) {
|
|
1225
1225
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1226
1226
|
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "form", 9, 10);
|
|
1227
|
-
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.entrar(_r2); });
|
|
1227
|
+
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(3); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.entrar(_r2)); });
|
|
1228
1228
|
i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 11);
|
|
1229
1229
|
i0.ɵɵelementStart(5, "div", 12)(6, "label", 13);
|
|
1230
1230
|
i0.ɵɵtext(7);
|
|
1231
1231
|
i0.ɵɵpipe(8, "translate");
|
|
1232
1232
|
i0.ɵɵelementEnd();
|
|
1233
1233
|
i0.ɵɵelementStart(9, "input", 14, 15);
|
|
1234
|
-
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.user.username = $event; });
|
|
1234
|
+
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.user.username = $event); });
|
|
1235
1235
|
i0.ɵɵpipe(11, "translate");
|
|
1236
1236
|
i0.ɵɵelementEnd()();
|
|
1237
1237
|
i0.ɵɵelementStart(12, "div", 12)(13, "label", 16);
|
|
@@ -1239,7 +1239,7 @@ function LoginModalComponent_div_6_Template(rf, ctx) {
|
|
|
1239
1239
|
i0.ɵɵpipe(15, "translate");
|
|
1240
1240
|
i0.ɵɵelementEnd();
|
|
1241
1241
|
i0.ɵɵelementStart(16, "input", 17);
|
|
1242
|
-
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.user.password = $event; });
|
|
1242
|
+
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.user.password = $event); });
|
|
1243
1243
|
i0.ɵɵpipe(17, "translate");
|
|
1244
1244
|
i0.ɵɵelementEnd()();
|
|
1245
1245
|
i0.ɵɵelementStart(18, "button", 18);
|
|
@@ -1360,7 +1360,7 @@ class LoginModalComponent {
|
|
|
1360
1360
|
i0.ɵɵadvance(1);
|
|
1361
1361
|
i0.ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1362
1362
|
}
|
|
1363
|
-
},
|
|
1363
|
+
}, dependencies: [i4.NgForOf, i4.NgIf, i10.ɵNgNoValidate, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgControlStatusGroup, i10.RequiredValidator, i10.NgModel, i10.NgForm, i3$1.TranslateDirective, i3$1.TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
|
|
1364
1364
|
(function () {
|
|
1365
1365
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1366
1366
|
type: Component,
|
|
@@ -1404,19 +1404,19 @@ function SessionCreateComponent_div_2_Template(rf, ctx) {
|
|
|
1404
1404
|
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1405
1405
|
i0.ɵɵelementEnd();
|
|
1406
1406
|
i0.ɵɵelementStart(4, "input", 8);
|
|
1407
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
|
|
1407
|
+
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.caja.nombre = $event); });
|
|
1408
1408
|
i0.ɵɵelementEnd()();
|
|
1409
1409
|
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1410
1410
|
i0.ɵɵtext(7, "Saldo: ");
|
|
1411
1411
|
i0.ɵɵelementEnd();
|
|
1412
1412
|
i0.ɵɵelementStart(8, "input", 11);
|
|
1413
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.session.monto = $event; });
|
|
1413
|
+
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.session.monto = $event); });
|
|
1414
1414
|
i0.ɵɵelementEnd()();
|
|
1415
1415
|
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1416
1416
|
i0.ɵɵtext(11, "Numero Z:");
|
|
1417
1417
|
i0.ɵɵelementEnd();
|
|
1418
1418
|
i0.ɵɵelementStart(12, "input", 13);
|
|
1419
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.session.z = $event; });
|
|
1419
|
+
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.session.z = $event); });
|
|
1420
1420
|
i0.ɵɵelementEnd()()();
|
|
1421
1421
|
}
|
|
1422
1422
|
if (rf & 2) {
|
|
@@ -1433,7 +1433,7 @@ function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) {
|
|
|
1433
1433
|
if (rf & 1) {
|
|
1434
1434
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
1435
1435
|
i0.ɵɵelementStart(0, "button", 17);
|
|
1436
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.save(); });
|
|
1436
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.save()); });
|
|
1437
1437
|
i0.ɵɵelementEnd();
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
@@ -1441,7 +1441,7 @@ function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) {
|
|
|
1441
1441
|
if (rf & 1) {
|
|
1442
1442
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
1443
1443
|
i0.ɵɵelementStart(0, "button", 18);
|
|
1444
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.edit(); });
|
|
1444
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r11.edit()); });
|
|
1445
1445
|
i0.ɵɵelementEnd();
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
@@ -1451,7 +1451,7 @@ function SessionCreateComponent_ng_template_5_Template(rf, ctx) {
|
|
|
1451
1451
|
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
|
|
1452
1452
|
i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
1453
1453
|
i0.ɵɵelementStart(2, "button", 16);
|
|
1454
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.closeModal(); });
|
|
1454
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.closeModal()); });
|
|
1455
1455
|
i0.ɵɵelementEnd();
|
|
1456
1456
|
}
|
|
1457
1457
|
if (rf & 2) {
|
|
@@ -1554,11 +1554,11 @@ class SessionCreateComponent {
|
|
|
1554
1554
|
i0.ɵɵadvance(2);
|
|
1555
1555
|
i0.ɵɵproperty("ngIf", ctx.caja);
|
|
1556
1556
|
}
|
|
1557
|
-
},
|
|
1557
|
+
}, dependencies: [i4.NgIf, i3.PrimeTemplate, i6.ButtonDirective, i7.InputText, i10.DefaultValueAccessor, i10.NumberValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog] });
|
|
1558
1558
|
(function () {
|
|
1559
1559
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1560
1560
|
type: Component,
|
|
1561
|
-
args: [{ selector: 'session-create', template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>"
|
|
1561
|
+
args: [{ selector: 'session-create', template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>" }]
|
|
1562
1562
|
}], function () { return [{ type: SessionCajaService }]; }, { showCreateSession: [{
|
|
1563
1563
|
type: Input
|
|
1564
1564
|
}], caja: [{
|
|
@@ -1638,7 +1638,7 @@ class PaginateService {
|
|
|
1638
1638
|
return ordenar;
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
/** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3.TranslateService)); };
|
|
1641
|
+
/** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3$1.TranslateService)); };
|
|
1642
1642
|
/** @nocollapse */ PaginateService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
|
|
1643
1643
|
(function () {
|
|
1644
1644
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginateService, [{
|
|
@@ -1646,7 +1646,7 @@ class PaginateService {
|
|
|
1646
1646
|
args: [{
|
|
1647
1647
|
providedIn: "root"
|
|
1648
1648
|
}]
|
|
1649
|
-
}], function () { return [{ type: i3.TranslateService }]; }, null);
|
|
1649
|
+
}], function () { return [{ type: i3$1.TranslateService }]; }, null);
|
|
1650
1650
|
})();
|
|
1651
1651
|
|
|
1652
1652
|
function SelectClienteComponent_ng_template_7_Template(rf, ctx) {
|
|
@@ -1853,7 +1853,7 @@ class SelectClienteComponent {
|
|
|
1853
1853
|
i0.ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
|
|
1854
1854
|
i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
|
|
1855
1855
|
}
|
|
1856
|
-
},
|
|
1856
|
+
}, dependencies: [i4.NgIf, i3.PrimeTemplate, i6$1.Table, i6$1.SelectableRow, i6.ButtonDirective, i7.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog, i3$1.TranslatePipe], encapsulation: 2 });
|
|
1857
1857
|
(function () {
|
|
1858
1858
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
|
|
1859
1859
|
type: Component,
|
|
@@ -2008,7 +2008,7 @@ class SelectProveedorComponent {
|
|
|
2008
2008
|
this.visible = false;
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
/** @nocollapse */ SelectProveedorComponent.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
|
|
2011
|
+
/** @nocollapse */ SelectProveedorComponent.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); };
|
|
2012
2012
|
/** @nocollapse */ SelectProveedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 16, consts: [[3, "header", "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "change"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "valueChange", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"]], template: function SelectProveedorComponent_Template(rf, ctx) {
|
|
2013
2013
|
if (rf & 1) {
|
|
2014
2014
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
@@ -2041,12 +2041,12 @@ class SelectProveedorComponent {
|
|
|
2041
2041
|
i0.ɵɵadvance(3);
|
|
2042
2042
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(15, _c0$3));
|
|
2043
2043
|
}
|
|
2044
|
-
},
|
|
2044
|
+
}, dependencies: [i3.PrimeTemplate, i6$1.Table, i6.ButtonDirective, i7.InputText, i9.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog, i3$1.TranslatePipe], encapsulation: 2 });
|
|
2045
2045
|
(function () {
|
|
2046
2046
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
|
|
2047
2047
|
type: Component,
|
|
2048
2048
|
args: [{ selector: 'select-proveedor', template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
2049
|
-
}], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
2049
|
+
}], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }]; }, { visible: [{
|
|
2050
2050
|
type: Input
|
|
2051
2051
|
}], proveedorSeleccionado: [{
|
|
2052
2052
|
type: Input
|
|
@@ -2265,11 +2265,11 @@ class SeleccionArticuloInformacionComponent {
|
|
|
2265
2265
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(19, _c1$1));
|
|
2266
2266
|
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, dependencies: [i4.NgForOf, i3.Footer, i3.PrimeTemplate, i6$1.Table, i6$1.ResizableColumn, i6.ButtonDirective, i11.Dialog] });
|
|
2269
2269
|
(function () {
|
|
2270
2270
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
2271
2271
|
type: Component,
|
|
2272
|
-
args: [{ selector: 'lib-seleccion-articulo-informacion', template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n [responsive]=\"true\" \n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <p-footer>\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </p-footer>\n</p-dialog>"
|
|
2272
|
+
args: [{ selector: 'lib-seleccion-articulo-informacion', template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n [responsive]=\"true\" \n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <p-footer>\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </p-footer>\n</p-dialog>" }]
|
|
2273
2273
|
}], function () { return [{ type: ArticuloInformacionService }]; }, { showModal: [{
|
|
2274
2274
|
type: Input
|
|
2275
2275
|
}], articulo: [{
|
|
@@ -2586,7 +2586,7 @@ function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) {
|
|
|
2586
2586
|
i0.ɵɵtext(12);
|
|
2587
2587
|
i0.ɵɵelementEnd();
|
|
2588
2588
|
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2589
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const restoredCtx = i0.ɵɵrestoreView(_r42); const rowData_r16 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.onShowInformacion(rowData_r16); });
|
|
2589
|
+
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const restoredCtx = i0.ɵɵrestoreView(_r42); const rowData_r16 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.onShowInformacion(rowData_r16)); });
|
|
2590
2590
|
i0.ɵɵelementEnd()();
|
|
2591
2591
|
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
|
|
2592
2592
|
i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
|
|
@@ -2642,7 +2642,7 @@ function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Templ
|
|
|
2642
2642
|
if (rf & 1) {
|
|
2643
2643
|
const _r44 = i0.ɵɵgetCurrentView();
|
|
2644
2644
|
i0.ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
|
|
2645
|
-
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.onEventInformacion($event); });
|
|
2645
|
+
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r43.onEventInformacion($event)); });
|
|
2646
2646
|
i0.ɵɵelementEnd();
|
|
2647
2647
|
}
|
|
2648
2648
|
if (rf & 2) {
|
|
@@ -2805,7 +2805,7 @@ class SeleccionaArticuloComponent {
|
|
|
2805
2805
|
i0.ɵɵadvance(1);
|
|
2806
2806
|
i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2807
2807
|
}
|
|
2808
|
-
},
|
|
2808
|
+
}, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i6$1.Table, i6$1.SelectableRow, i6.ButtonDirective, i7.InputText, i9.Paginator, i10.NgSelectOption, i10.ɵNgSelectMultipleOption, i10.DefaultValueAccessor, i10.SelectControlValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog, i3$1.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i3$1.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
|
|
2809
2809
|
(function () {
|
|
2810
2810
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2811
2811
|
type: Component,
|
|
@@ -3004,7 +3004,7 @@ class SelectAcreedorComponent {
|
|
|
3004
3004
|
this.visible = false;
|
|
3005
3005
|
}
|
|
3006
3006
|
}
|
|
3007
|
-
/** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
|
|
3007
|
+
/** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); };
|
|
3008
3008
|
/** @nocollapse */ SelectAcreedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) {
|
|
3009
3009
|
if (rf & 1) {
|
|
3010
3010
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
@@ -3036,12 +3036,12 @@ class SelectAcreedorComponent {
|
|
|
3036
3036
|
i0.ɵɵadvance(4);
|
|
3037
3037
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
|
|
3038
3038
|
}
|
|
3039
|
-
},
|
|
3039
|
+
}, dependencies: [i4.NgIf, i3.PrimeTemplate, i6$1.Table, i6$1.SelectableRow, i6.ButtonDirective, i7.InputText, i9.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog, i4.DatePipe, i3$1.TranslatePipe], encapsulation: 2 });
|
|
3040
3040
|
(function () {
|
|
3041
3041
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
3042
3042
|
type: Component,
|
|
3043
3043
|
args: [{ selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n [responsive]=\"true\">\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
3044
|
-
}], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
3044
|
+
}], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }]; }, { visible: [{
|
|
3045
3045
|
type: Input
|
|
3046
3046
|
}], acreedorSeleccionado: [{
|
|
3047
3047
|
type: Input
|
|
@@ -3110,19 +3110,17 @@ class CoreLibModule {
|
|
|
3110
3110
|
/** @nocollapse */ CoreLibModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [
|
|
3111
3111
|
primeNgServices,
|
|
3112
3112
|
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
3113
|
-
], imports: [
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
})
|
|
3125
|
-
]] });
|
|
3113
|
+
], imports: [CommonModule,
|
|
3114
|
+
primeNg,
|
|
3115
|
+
FormsModule,
|
|
3116
|
+
ToastrModule.forRoot(),
|
|
3117
|
+
TranslateModule.forRoot({
|
|
3118
|
+
loader: {
|
|
3119
|
+
provide: TranslateLoader,
|
|
3120
|
+
useFactory: HttpLoaderFactory,
|
|
3121
|
+
deps: [HttpClient]
|
|
3122
|
+
}
|
|
3123
|
+
})] });
|
|
3126
3124
|
(function () {
|
|
3127
3125
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoreLibModule, [{
|
|
3128
3126
|
type: NgModule,
|
|
@@ -3154,7 +3152,7 @@ class CoreLibModule {
|
|
|
3154
3152
|
}]
|
|
3155
3153
|
}], null, null);
|
|
3156
3154
|
})();
|
|
3157
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule,
|
|
3155
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i6$1.TableModule, i4$1.TreeTableModule, i20.CalendarModule, i6$1.TableModule, i6.ButtonModule, i7.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i9.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i11.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, FormsModule, i1$1.ToastrModule, i3$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
|
|
3158
3156
|
|
|
3159
3157
|
class ControlAccesoService {
|
|
3160
3158
|
constructor(authService) {
|
|
@@ -3438,7 +3436,7 @@ class Authenticated {
|
|
|
3438
3436
|
window.location.href = host;
|
|
3439
3437
|
}
|
|
3440
3438
|
}
|
|
3441
|
-
/** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$
|
|
3439
|
+
/** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$3.Router)); };
|
|
3442
3440
|
/** @nocollapse */ Authenticated.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
|
|
3443
3441
|
(function () {
|
|
3444
3442
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Authenticated, [{
|
|
@@ -3446,7 +3444,7 @@ class Authenticated {
|
|
|
3446
3444
|
args: [{
|
|
3447
3445
|
providedIn: 'root'
|
|
3448
3446
|
}]
|
|
3449
|
-
}], function () { return [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$
|
|
3447
|
+
}], function () { return [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }]; }, null);
|
|
3450
3448
|
})();
|
|
3451
3449
|
|
|
3452
3450
|
class VersionCheckService {
|