visorus-erp-core 16.0.0 → 17.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/esm2022/lib/app.module.mjs +2 -2
- package/esm2022/lib/components/acreedor/select/select-acreedor.component.mjs +35 -32
- package/esm2022/lib/components/acreedor/services/acreedor.service.mjs +3 -3
- package/esm2022/lib/components/acreedor/services/acreedorCuentaContable.mjs +3 -3
- package/esm2022/lib/components/agente/services/agente.service.mjs +3 -3
- package/esm2022/lib/components/almacen/services/almacen.service.mjs +3 -3
- package/esm2022/lib/components/banco/services/banco.service.mjs +3 -3
- package/esm2022/lib/components/caja/session-create/session-create.component.mjs +34 -30
- package/esm2022/lib/components/caja/sessionCaja.service.mjs +3 -3
- package/esm2022/lib/components/catalogoTipo/services/catalogoTipo.service.mjs +3 -3
- package/esm2022/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs +3 -3
- package/esm2022/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs +3 -3
- package/esm2022/lib/components/claveMovimiento/services/claveMovimiento.service.mjs +3 -3
- package/esm2022/lib/components/cliente/select/select-cliente.component.mjs +33 -29
- package/esm2022/lib/components/cliente/services/cliente.service.mjs +3 -3
- package/esm2022/lib/components/cliente/services/clienteCuentaBanco.service.mjs +3 -3
- package/esm2022/lib/components/cliente/services/clienteFlete.service.mjs +3 -3
- package/esm2022/lib/components/contacto/services/datoContacto.service.mjs +3 -3
- package/esm2022/lib/components/dato-direccion/services/datoDireccion.service.mjs +3 -3
- package/esm2022/lib/components/departamento/services/departamento.service.mjs +3 -3
- package/esm2022/lib/components/empresa/services/empresa.service.mjs +3 -3
- package/esm2022/lib/components/error404/error404.component.mjs +4 -3
- package/esm2022/lib/components/flete/services/flete.service.mjs +3 -3
- package/esm2022/lib/components/formaPago/services/FormaPago.service.mjs +3 -3
- package/esm2022/lib/components/loading/loading.component.mjs +6 -5
- package/esm2022/lib/components/loading/loading.service.mjs +2 -2
- package/esm2022/lib/components/loading-screen/loading-screen.component.mjs +4 -3
- package/esm2022/lib/components/loading-screen/loading-screen.service.mjs +2 -2
- package/esm2022/lib/components/login-modal/login-modal.component.mjs +28 -28
- package/esm2022/lib/components/login-modal/login-modal.service.mjs +2 -2
- package/esm2022/lib/components/moneda/services/moneda.service.mjs +3 -3
- package/esm2022/lib/components/pdfModal/pdf-modal.component.mjs +12 -10
- package/esm2022/lib/components/pdfModal/pdf-modal.service.mjs +2 -2
- package/esm2022/lib/components/persona-fisica/services/personaFisica.service.mjs +3 -3
- package/esm2022/lib/components/proveedor/select/select-proveedor.component.mjs +24 -20
- package/esm2022/lib/components/proveedor/services/proveedor.service.mjs +3 -3
- package/esm2022/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs +3 -3
- package/esm2022/lib/components/proveedor/services/proveedorFlete.service.mjs +3 -3
- package/esm2022/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +34 -31
- package/esm2022/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs +3 -3
- package/esm2022/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +127 -134
- package/esm2022/lib/components/selecciona-articulo/stock.service.mjs +3 -3
- package/esm2022/lib/components/serieDocumento/services/serieDocumento.service.mjs +3 -3
- package/esm2022/lib/components/tipo-contacto/services/tipoContacto.service.mjs +3 -3
- package/esm2022/lib/components/ubicacion/services/ubicacion.service.mjs +3 -3
- package/esm2022/lib/contabilidad/componentes/cclista/cclista.component.mjs +27 -27
- package/esm2022/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +13 -10
- package/esm2022/lib/contabilidad/servicios/cuentacontable.service.mjs +3 -3
- package/esm2022/lib/httpInterceptor/httpInterceptor.mjs +3 -3
- package/esm2022/lib/services/auth.service.mjs +3 -3
- package/esm2022/lib/services/authenticated.service.mjs +3 -3
- package/esm2022/lib/services/canActivateGuard.service.ts.mjs +3 -3
- package/esm2022/lib/services/catalogo-adicional.service.mjs +3 -3
- package/esm2022/lib/services/controlAcceso.service.mjs +3 -3
- package/esm2022/lib/services/file.service.mjs +3 -3
- package/esm2022/lib/services/init.service.mjs +3 -3
- package/esm2022/lib/services/message.service.mjs +3 -3
- package/esm2022/lib/services/paginate.service.mjs +3 -3
- package/esm2022/lib/services/personaMoral.service.mjs +3 -3
- package/esm2022/lib/services/versionCheck.service.mjs +3 -3
- package/fesm2022/visorus-erp-core.mjs +459 -440
- package/fesm2022/visorus-erp-core.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component,
|
|
2
|
+
import { Injectable, EventEmitter, Component, Output, Input, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders,
|
|
4
|
+
import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
5
5
|
import * as i4 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i3 from 'primeng/api';
|
|
@@ -187,13 +187,14 @@ class CuentaContableService extends CrudService {
|
|
|
187
187
|
/** @nocollapse */ static { this.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
188
188
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' }); }
|
|
189
189
|
}
|
|
190
|
-
(
|
|
190
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CuentaContableService, [{
|
|
191
191
|
type: Injectable,
|
|
192
192
|
args: [{
|
|
193
193
|
providedIn: 'root'
|
|
194
194
|
}]
|
|
195
|
-
}],
|
|
195
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
196
196
|
|
|
197
|
+
const _c0$7 = () => ({ width: "100%" });
|
|
197
198
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
198
199
|
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
199
200
|
i0.ɵɵtext(2, "Cuenta contable");
|
|
@@ -212,15 +213,15 @@ function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
212
213
|
i0.ɵɵelementEnd()();
|
|
213
214
|
} }
|
|
214
215
|
function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
-
const
|
|
216
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
216
217
|
i0.ɵɵelementStart(0, "button", 16);
|
|
217
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
218
|
+
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
218
219
|
i0.ɵɵelementEnd();
|
|
219
220
|
} }
|
|
220
221
|
function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
-
const
|
|
222
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
222
223
|
i0.ɵɵelementStart(0, "button", 16);
|
|
223
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
224
|
+
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
224
225
|
i0.ɵɵelementEnd();
|
|
225
226
|
} }
|
|
226
227
|
function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -238,29 +239,27 @@ function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
238
239
|
i0.ɵɵtext(9);
|
|
239
240
|
i0.ɵɵelementEnd();
|
|
240
241
|
i0.ɵɵelementStart(10, "td", 13)(11, "div", 14);
|
|
241
|
-
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15);
|
|
242
|
-
i0.ɵɵtemplate(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
242
|
+
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15)(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
243
243
|
i0.ɵɵelementEnd()()();
|
|
244
244
|
} if (rf & 2) {
|
|
245
|
-
const
|
|
246
|
-
const
|
|
247
|
-
const
|
|
245
|
+
const rowNode_r5 = ctx.$implicit;
|
|
246
|
+
const rowData_r2 = ctx.rowData;
|
|
247
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
248
248
|
i0.ɵɵadvance(2);
|
|
249
|
-
i0.ɵɵproperty("rowNode",
|
|
250
|
-
i0.ɵɵadvance(
|
|
251
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
249
|
+
i0.ɵɵproperty("rowNode", rowNode_r5);
|
|
250
|
+
i0.ɵɵadvance();
|
|
251
|
+
i0.ɵɵtextInterpolate1(" ", rowData_r2.cuentaContable, " ");
|
|
252
252
|
i0.ɵɵadvance(2);
|
|
253
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
253
|
+
i0.ɵɵtextInterpolate1(" ", rowData_r2.descripcion, " ");
|
|
254
254
|
i0.ɵɵadvance(2);
|
|
255
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
255
|
+
i0.ɵɵtextInterpolate1(" ", rowData_r2.naturaleza, " ");
|
|
256
256
|
i0.ɵɵadvance(2);
|
|
257
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
257
|
+
i0.ɵɵtextInterpolate1(" ", rowData_r2.tipo, " ");
|
|
258
258
|
i0.ɵɵadvance(3);
|
|
259
|
-
i0.ɵɵproperty("ngIf",
|
|
260
|
-
i0.ɵɵadvance(
|
|
261
|
-
i0.ɵɵproperty("ngIf",
|
|
259
|
+
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 1 && rowData_r2.cuentaRegistro);
|
|
260
|
+
i0.ɵɵadvance();
|
|
261
|
+
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 2 && !rowData_r2.cuentaRegistro);
|
|
262
262
|
} }
|
|
263
|
-
const _c0$7 = function () { return { width: "100%" }; };
|
|
264
263
|
class CclistaComponent {
|
|
265
264
|
constructor(_cuentaContableService) {
|
|
266
265
|
this._cuentaContableService = _cuentaContableService;
|
|
@@ -420,35 +419,36 @@ class CclistaComponent {
|
|
|
420
419
|
}
|
|
421
420
|
}
|
|
422
421
|
/** @nocollapse */ static { this.ɵfac = function CclistaComponent_Factory(t) { return new (t || CclistaComponent)(i0.ɵɵdirectiveInject(CuentaContableService)); }; }
|
|
423
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CclistaComponent, selectors: [["lib-cclista"]], inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 5, vars: 8, consts: [["type", "text", "pInputText", "", "placeholder", "Cuenta o descripci\u00F3n", 2, "width", "100%", 3, "
|
|
422
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CclistaComponent, selectors: [["lib-cclista"]], inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 5, vars: 8, consts: [["type", "text", "pInputText", "", "placeholder", "Cuenta o descripci\u00F3n", 2, "width", "100%", 3, "ngModelChange", "keyup", "ngModel"], [2, "padding", "10px"], [3, "value", "scrollable", "scrollHeight", "resizableColumns"], ["pTemplate", "header"], ["pTemplate", "body", 2, "width", "100%"], [2, "width", "150px"], [2, "width", "90px"], [2, "width", "60px"], [2, "width", "200px"], [1, "ui-resizable-column", 2, "width", "150px"], [3, "rowNode"], [1, "ui-resizable-column", 2, "width", "90px"], [1, "ui-resizable-column", 2, "width", "60px"], [1, "ui-resizable-column", 2, "width", "200px"], [1, "button-row"], ["pButton", "", "type", "button", "icon", "pi pi-check", "class", "ui-button-raised ui-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "icon", "pi pi-check", 1, "ui-button-raised", "ui-button-success", 3, "click"]], template: function CclistaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
424
423
|
i0.ɵɵelementStart(0, "input", 0);
|
|
425
|
-
i0.ɵɵ
|
|
424
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CclistaComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.query, $event) || (ctx.query = $event); return $event; });
|
|
425
|
+
i0.ɵɵlistener("keyup", function CclistaComponent_Template_input_keyup_0_listener($event) { return ctx.filterAccounts($event); });
|
|
426
426
|
i0.ɵɵelementEnd();
|
|
427
427
|
i0.ɵɵelementStart(1, "div", 1)(2, "p-treeTable", 2);
|
|
428
|
-
i0.ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3);
|
|
429
|
-
i0.ɵɵtemplate(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
|
|
428
|
+
i0.ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3)(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
|
|
430
429
|
i0.ɵɵelementEnd()();
|
|
431
430
|
} if (rf & 2) {
|
|
432
|
-
i0.ɵɵ
|
|
431
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.query);
|
|
433
432
|
i0.ɵɵadvance(2);
|
|
434
433
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$7));
|
|
435
434
|
i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
|
|
436
435
|
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i19.TreeTable, i19.TreeTableToggler, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel] }); }
|
|
437
436
|
}
|
|
438
|
-
(
|
|
437
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
439
438
|
type: Component,
|
|
440
439
|
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>" }]
|
|
441
|
-
}],
|
|
440
|
+
}], () => [{ type: CuentaContableService }], { isShared: [{
|
|
442
441
|
type: Input
|
|
443
442
|
}], typeAccount: [{
|
|
444
443
|
type: Input
|
|
445
444
|
}], evSelectedAccount: [{
|
|
446
445
|
type: Output
|
|
447
446
|
}] }); })();
|
|
447
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
|
|
448
448
|
|
|
449
449
|
const _c0$6 = ["dialog"];
|
|
450
|
-
const _c1$3 =
|
|
451
|
-
const _c2 =
|
|
450
|
+
const _c1$3 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
451
|
+
const _c2 = a0 => ({ "height": a0 });
|
|
452
452
|
class CcseleccionDialogComponent {
|
|
453
453
|
constructor() {
|
|
454
454
|
this.cuentasContables = [];
|
|
@@ -475,25 +475,27 @@ class CcseleccionDialogComponent {
|
|
|
475
475
|
} if (rf & 2) {
|
|
476
476
|
let _t;
|
|
477
477
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
|
|
478
|
-
} }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "
|
|
478
|
+
} }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visibleChange", "onHide", "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable"], [1, "padding10", 3, "ngStyle"], [3, "evSelectedAccount", "isShared", "typeAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
479
479
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
480
|
-
i0.ɵɵ
|
|
480
|
+
i0.ɵɵtwoWayListener("visibleChange", function CcseleccionDialogComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.displayShowCuentas, $event) || (ctx.displayShowCuentas = $event); return $event; });
|
|
481
|
+
i0.ɵɵlistener("onHide", function CcseleccionDialogComponent_Template_p_dialog_onHide_0_listener($event) { return ctx.hiddenDialog($event); });
|
|
481
482
|
i0.ɵɵelementStart(1, "div", 1)(2, "lib-cclista", 2);
|
|
482
483
|
i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
|
|
483
484
|
i0.ɵɵelementEnd()()();
|
|
484
485
|
} if (rf & 2) {
|
|
485
486
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$3, ctx.size + "px"));
|
|
486
|
-
i0.ɵɵ
|
|
487
|
-
i0.ɵɵ
|
|
487
|
+
i0.ɵɵtwoWayProperty("visible", ctx.displayShowCuentas);
|
|
488
|
+
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
489
|
+
i0.ɵɵadvance();
|
|
488
490
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
|
|
489
|
-
i0.ɵɵadvance(
|
|
491
|
+
i0.ɵɵadvance();
|
|
490
492
|
i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
|
|
491
493
|
} }, dependencies: [i4.NgStyle, i33.Dialog, CclistaComponent] }); }
|
|
492
494
|
}
|
|
493
|
-
(
|
|
495
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
494
496
|
type: Component,
|
|
495
497
|
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>" }]
|
|
496
|
-
}],
|
|
498
|
+
}], () => [], { dialog: [{
|
|
497
499
|
type: ViewChild,
|
|
498
500
|
args: ["dialog", { static: true }]
|
|
499
501
|
}], tipoCuenta: [{
|
|
@@ -503,6 +505,7 @@ class CcseleccionDialogComponent {
|
|
|
503
505
|
}], evSelectedAccount: [{
|
|
504
506
|
type: Output
|
|
505
507
|
}] }); })();
|
|
508
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CcseleccionDialogComponent, { className: "CcseleccionDialogComponent" }); })();
|
|
506
509
|
|
|
507
510
|
const contaComponents = [
|
|
508
511
|
CclistaComponent,
|
|
@@ -519,7 +522,7 @@ class LoginModalService {
|
|
|
519
522
|
/** @nocollapse */ static { this.ɵfac = function LoginModalService_Factory(t) { return new (t || LoginModalService)(); }; }
|
|
520
523
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' }); }
|
|
521
524
|
}
|
|
522
|
-
(
|
|
525
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalService, [{
|
|
523
526
|
type: Injectable,
|
|
524
527
|
args: [{
|
|
525
528
|
providedIn: 'root'
|
|
@@ -549,7 +552,7 @@ class LoadingScreenService {
|
|
|
549
552
|
/** @nocollapse */ static { this.ɵfac = function LoadingScreenService_Factory(t) { return new (t || LoadingScreenService)(); }; }
|
|
550
553
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' }); }
|
|
551
554
|
}
|
|
552
|
-
(
|
|
555
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenService, [{
|
|
553
556
|
type: Injectable,
|
|
554
557
|
args: [{
|
|
555
558
|
providedIn: 'root'
|
|
@@ -632,9 +635,9 @@ class httpInterceptor {
|
|
|
632
635
|
/** @nocollapse */ static { this.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(i0.ɵɵinject(LoginModalService), i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(LoadingScreenService)); }; }
|
|
633
636
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac }); }
|
|
634
637
|
}
|
|
635
|
-
(
|
|
638
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(httpInterceptor, [{
|
|
636
639
|
type: Injectable
|
|
637
|
-
}],
|
|
640
|
+
}], () => [{ type: LoginModalService }, { type: i1$1.ToastrService }, { type: LoadingScreenService }], null); })();
|
|
638
641
|
|
|
639
642
|
class Error404Component {
|
|
640
643
|
constructor() { }
|
|
@@ -650,10 +653,11 @@ class Error404Component {
|
|
|
650
653
|
i0.ɵɵelementEnd()()()()()();
|
|
651
654
|
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] }); }
|
|
652
655
|
}
|
|
653
|
-
(
|
|
656
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
|
|
654
657
|
type: Component,
|
|
655
658
|
args: [{ selector: 'app-error404', template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }]
|
|
656
|
-
}],
|
|
659
|
+
}], () => [], null); })();
|
|
660
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Error404Component, { className: "Error404Component" }); })();
|
|
657
661
|
|
|
658
662
|
class LoadingService {
|
|
659
663
|
constructor() {
|
|
@@ -674,7 +678,7 @@ class LoadingService {
|
|
|
674
678
|
/** @nocollapse */ static { this.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); }; }
|
|
675
679
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' }); }
|
|
676
680
|
}
|
|
677
|
-
(
|
|
681
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingService, [{
|
|
678
682
|
type: Injectable,
|
|
679
683
|
args: [{
|
|
680
684
|
providedIn: 'root'
|
|
@@ -717,14 +721,15 @@ class LoadingComponent {
|
|
|
717
721
|
i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
|
|
718
722
|
i0.ɵɵadvance(2);
|
|
719
723
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
720
|
-
} }, 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:
|
|
724
|
+
} }, 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:_ngcontent-%COMP%_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:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.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}"] }); }
|
|
721
725
|
}
|
|
722
|
-
(
|
|
726
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
723
727
|
type: Component,
|
|
724
|
-
args: [{ selector: 'loading', template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{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 .code{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 .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box: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 .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit: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{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
725
|
-
}],
|
|
728
|
+
args: [{ selector: 'loading', template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{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 .code{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 .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box: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 .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit: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}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
729
|
+
}], () => [{ type: LoadingService }], { logo_loading: [{
|
|
726
730
|
type: Input
|
|
727
731
|
}] }); })();
|
|
732
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingComponent, { className: "LoadingComponent" }); })();
|
|
728
733
|
|
|
729
734
|
class LoadingScreenComponent {
|
|
730
735
|
constructor(loadingScreenService, _elmRef, _changeDetectorRef, loadingService) {
|
|
@@ -756,12 +761,13 @@ class LoadingScreenComponent {
|
|
|
756
761
|
i0.ɵɵelementEnd()()();
|
|
757
762
|
} }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:_ngcontent-%COMP%_blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob[_ngcontent-%COMP%]{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:_ngcontent-%COMP%_blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob[_ngcontent-%COMP%]:nth-child(1){animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes _ngcontent-%COMP%_blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes _ngcontent-%COMP%_blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] }); }
|
|
758
763
|
}
|
|
759
|
-
(
|
|
764
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenComponent, [{
|
|
760
765
|
type: Component,
|
|
761
766
|
args: [{ selector: 'app-loading-screen', template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }]
|
|
762
|
-
}],
|
|
767
|
+
}], () => [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }], { logo_loading: [{
|
|
763
768
|
type: Input
|
|
764
769
|
}] }); })();
|
|
770
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingScreenComponent, { className: "LoadingScreenComponent" }); })();
|
|
765
771
|
|
|
766
772
|
class PdfModalService {
|
|
767
773
|
constructor() {
|
|
@@ -779,7 +785,7 @@ class PdfModalService {
|
|
|
779
785
|
/** @nocollapse */ static { this.ɵfac = function PdfModalService_Factory(t) { return new (t || PdfModalService)(); }; }
|
|
780
786
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' }); }
|
|
781
787
|
}
|
|
782
|
-
(
|
|
788
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalService, [{
|
|
783
789
|
type: Injectable,
|
|
784
790
|
args: [{
|
|
785
791
|
providedIn: 'root'
|
|
@@ -845,24 +851,24 @@ class FileService {
|
|
|
845
851
|
/** @nocollapse */ static { this.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3$1.TranslateService)); }; }
|
|
846
852
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' }); }
|
|
847
853
|
}
|
|
848
|
-
(
|
|
854
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileService, [{
|
|
849
855
|
type: Injectable,
|
|
850
856
|
args: [{
|
|
851
857
|
providedIn: 'root'
|
|
852
858
|
}]
|
|
853
|
-
}],
|
|
859
|
+
}], () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }], null); })();
|
|
854
860
|
|
|
861
|
+
const _c0$5 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
862
|
+
const _c1$2 = () => ({ "overflow": "visible" });
|
|
855
863
|
function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
856
864
|
i0.ɵɵelementStart(0, "div", 2);
|
|
857
865
|
i0.ɵɵelement(1, "iframe", 3);
|
|
858
866
|
i0.ɵɵelementEnd();
|
|
859
867
|
} if (rf & 2) {
|
|
860
868
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
861
|
-
i0.ɵɵadvance(
|
|
869
|
+
i0.ɵɵadvance();
|
|
862
870
|
i0.ɵɵproperty("src", ctx_r0.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64," + ctx_r0.pdfBase64), i0.ɵɵsanitizeResourceUrl);
|
|
863
871
|
} }
|
|
864
|
-
const _c0$5 = function (a0) { return { "width": a0, "min-width": "200px" }; };
|
|
865
|
-
const _c1$2 = function () { return { "overflow": "visible" }; };
|
|
866
872
|
class PdfModalComponent {
|
|
867
873
|
constructor(_pdfModalService, fileService, domSanitizer) {
|
|
868
874
|
this._pdfModalService = _pdfModalService;
|
|
@@ -927,22 +933,24 @@ class PdfModalComponent {
|
|
|
927
933
|
// iframe.contentWindow.print();
|
|
928
934
|
}
|
|
929
935
|
/** @nocollapse */ static { this.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$2.DomSanitizer)); }; }
|
|
930
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle"
|
|
936
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visibleChange", "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
931
937
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
932
|
-
i0.ɵɵ
|
|
938
|
+
i0.ɵɵtwoWayListener("visibleChange", function PdfModalComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.display, $event) || (ctx.display = $event); return $event; });
|
|
933
939
|
i0.ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
|
|
934
940
|
i0.ɵɵelementEnd();
|
|
935
941
|
} if (rf & 2) {
|
|
936
942
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$5, ctx.size + "px"));
|
|
937
|
-
i0.ɵɵ
|
|
938
|
-
i0.ɵɵ
|
|
943
|
+
i0.ɵɵtwoWayProperty("visible", ctx.display);
|
|
944
|
+
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$2));
|
|
945
|
+
i0.ɵɵadvance();
|
|
939
946
|
i0.ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
940
947
|
} }, dependencies: [i4.NgIf, i33.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
|
|
941
948
|
}
|
|
942
|
-
(
|
|
949
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
943
950
|
type: Component,
|
|
944
951
|
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"] }]
|
|
945
|
-
}],
|
|
952
|
+
}], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }], null); })();
|
|
953
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PdfModalComponent, { className: "PdfModalComponent" }); })();
|
|
946
954
|
|
|
947
955
|
class Usuario {
|
|
948
956
|
}
|
|
@@ -1136,12 +1144,12 @@ class AuthService {
|
|
|
1136
1144
|
/** @nocollapse */ static { this.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1137
1145
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' }); }
|
|
1138
1146
|
}
|
|
1139
|
-
(
|
|
1147
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthService, [{
|
|
1140
1148
|
type: Injectable,
|
|
1141
1149
|
args: [{
|
|
1142
1150
|
providedIn: 'root'
|
|
1143
1151
|
}]
|
|
1144
|
-
}],
|
|
1152
|
+
}], () => [{ type: i1.HttpClient }], { login: [{
|
|
1145
1153
|
type: Output
|
|
1146
1154
|
}], seleccionEmpresa: [{
|
|
1147
1155
|
type: Output
|
|
@@ -1153,59 +1161,59 @@ function LoginModalComponent_div_6_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1153
1161
|
i0.ɵɵpipe(2, "translate");
|
|
1154
1162
|
i0.ɵɵelementEnd();
|
|
1155
1163
|
} if (rf & 2) {
|
|
1156
|
-
i0.ɵɵadvance(
|
|
1164
|
+
i0.ɵɵadvance();
|
|
1157
1165
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Usuario.errorLogin"));
|
|
1158
1166
|
} }
|
|
1159
1167
|
function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1160
|
-
const
|
|
1161
|
-
i0.ɵɵelementStart(0, "div",
|
|
1162
|
-
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(
|
|
1163
|
-
i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label",
|
|
1164
|
-
i0.ɵɵelementStart(5, "div",
|
|
1168
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1169
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "div", 10)(2, "form", 11, 0);
|
|
1170
|
+
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
|
|
1171
|
+
i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 12);
|
|
1172
|
+
i0.ɵɵelementStart(5, "div", 13)(6, "label", 14);
|
|
1165
1173
|
i0.ɵɵtext(7);
|
|
1166
1174
|
i0.ɵɵpipe(8, "translate");
|
|
1167
1175
|
i0.ɵɵelementEnd();
|
|
1168
|
-
i0.ɵɵelementStart(9, "input",
|
|
1169
|
-
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); });
|
|
1176
|
+
i0.ɵɵelementStart(9, "input", 15, 1);
|
|
1170
1177
|
i0.ɵɵpipe(11, "translate");
|
|
1178
|
+
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
|
|
1171
1179
|
i0.ɵɵelementEnd()();
|
|
1172
|
-
i0.ɵɵelementStart(12, "div",
|
|
1180
|
+
i0.ɵɵelementStart(12, "div", 13)(13, "label", 16);
|
|
1173
1181
|
i0.ɵɵtext(14);
|
|
1174
1182
|
i0.ɵɵpipe(15, "translate");
|
|
1175
1183
|
i0.ɵɵelementEnd();
|
|
1176
1184
|
i0.ɵɵelementStart(16, "input", 17);
|
|
1177
|
-
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); });
|
|
1178
1185
|
i0.ɵɵpipe(17, "translate");
|
|
1186
|
+
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
|
|
1179
1187
|
i0.ɵɵelementEnd()();
|
|
1180
1188
|
i0.ɵɵelementStart(18, "button", 18);
|
|
1181
1189
|
i0.ɵɵtext(19, "entrar");
|
|
1182
1190
|
i0.ɵɵelementEnd()()()();
|
|
1183
1191
|
} if (rf & 2) {
|
|
1184
|
-
const
|
|
1192
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1185
1193
|
i0.ɵɵadvance(4);
|
|
1186
|
-
i0.ɵɵproperty("ngIf",
|
|
1194
|
+
i0.ɵɵproperty("ngIf", ctx_r2.error);
|
|
1187
1195
|
i0.ɵɵadvance(3);
|
|
1188
1196
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 7, "Usuario.username"));
|
|
1189
1197
|
i0.ɵɵadvance(2);
|
|
1190
1198
|
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(11, 9, "Usuario.username"));
|
|
1191
|
-
i0.ɵɵ
|
|
1199
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.username);
|
|
1192
1200
|
i0.ɵɵadvance(5);
|
|
1193
1201
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 11, "Usuario.password"));
|
|
1194
1202
|
i0.ɵɵadvance(2);
|
|
1195
1203
|
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(17, 13, "Usuario.password"));
|
|
1196
|
-
i0.ɵɵ
|
|
1204
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.password);
|
|
1197
1205
|
} }
|
|
1198
1206
|
function LoginModalComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1199
1207
|
i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "h5");
|
|
1200
1208
|
i0.ɵɵtext(4);
|
|
1201
1209
|
i0.ɵɵelementEnd()()()();
|
|
1202
1210
|
} if (rf & 2) {
|
|
1203
|
-
const
|
|
1211
|
+
const empresa_r4 = ctx.$implicit;
|
|
1204
1212
|
i0.ɵɵadvance(4);
|
|
1205
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
1213
|
+
i0.ɵɵtextInterpolate1(" ", empresa_r4.nombre, " ");
|
|
1206
1214
|
} }
|
|
1207
1215
|
function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
1208
|
-
i0.ɵɵelementStart(0, "div",
|
|
1216
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "div", 20)(2, "h4");
|
|
1209
1217
|
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1210
1218
|
i0.ɵɵelementEnd();
|
|
1211
1219
|
i0.ɵɵelement(4, "hr");
|
|
@@ -1213,9 +1221,9 @@ function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1213
1221
|
i0.ɵɵtemplate(5, LoginModalComponent_div_7_div_5_Template, 5, 1, "div", 21);
|
|
1214
1222
|
i0.ɵɵelementEnd();
|
|
1215
1223
|
} if (rf & 2) {
|
|
1216
|
-
const
|
|
1224
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1217
1225
|
i0.ɵɵadvance(5);
|
|
1218
|
-
i0.ɵɵproperty("ngForOf",
|
|
1226
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.empresas);
|
|
1219
1227
|
} }
|
|
1220
1228
|
class LoginModalComponent {
|
|
1221
1229
|
constructor(loginModalService, authService) {
|
|
@@ -1271,24 +1279,24 @@ class LoginModalComponent {
|
|
|
1271
1279
|
});
|
|
1272
1280
|
}
|
|
1273
1281
|
/** @nocollapse */ static { this.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); }; }
|
|
1274
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["
|
|
1275
|
-
i0.ɵɵelementStart(0, "div",
|
|
1276
|
-
i0.ɵɵelement(5, "img",
|
|
1282
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["datoForm", "ngForm"], ["username", "ngModel"], ["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "name", "username", "required", "", 1, "form-control", 3, "ngModelChange", "placeholder", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "ngModelChange", "placeholder", "ngModel"], ["type", "submit", "translate", "", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1283
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "div", 4)(3, "div", 5)(4, "div", 6);
|
|
1284
|
+
i0.ɵɵelement(5, "img", 7);
|
|
1277
1285
|
i0.ɵɵelementEnd();
|
|
1278
|
-
i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 6);
|
|
1279
|
-
i0.ɵɵtemplate(7, LoginModalComponent_div_7_Template, 6, 1, "div", 6);
|
|
1286
|
+
i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 8)(7, LoginModalComponent_div_7_Template, 6, 1, "div", 8);
|
|
1280
1287
|
i0.ɵɵelementEnd()()()();
|
|
1281
1288
|
} if (rf & 2) {
|
|
1282
1289
|
i0.ɵɵadvance(6);
|
|
1283
1290
|
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
1284
|
-
i0.ɵɵadvance(
|
|
1291
|
+
i0.ɵɵadvance();
|
|
1285
1292
|
i0.ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1286
1293
|
} }, 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}"] }); }
|
|
1287
1294
|
}
|
|
1288
|
-
(
|
|
1295
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1289
1296
|
type: Component,
|
|
1290
1297
|
args: [{ selector: 'app-login-modal', template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1291
|
-
}],
|
|
1298
|
+
}], () => [{ type: LoginModalService }, { type: AuthService }], null); })();
|
|
1299
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoginModalComponent, { className: "LoginModalComponent" }); })();
|
|
1292
1300
|
|
|
1293
1301
|
class SessionCajaService extends CrudService {
|
|
1294
1302
|
constructor(httpClient) {
|
|
@@ -1298,77 +1306,79 @@ class SessionCajaService extends CrudService {
|
|
|
1298
1306
|
/** @nocollapse */ static { this.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1299
1307
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' }); }
|
|
1300
1308
|
}
|
|
1301
|
-
(
|
|
1309
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCajaService, [{
|
|
1302
1310
|
type: Injectable,
|
|
1303
1311
|
args: [{
|
|
1304
1312
|
providedIn: 'root'
|
|
1305
1313
|
}]
|
|
1306
|
-
}],
|
|
1314
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1307
1315
|
|
|
1316
|
+
const _c0$4 = () => ({ width: "750px" });
|
|
1308
1317
|
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
1309
1318
|
i0.ɵɵelementStart(0, "a", 4);
|
|
1310
1319
|
i0.ɵɵtext(1);
|
|
1311
1320
|
i0.ɵɵelementEnd();
|
|
1312
1321
|
} if (rf & 2) {
|
|
1313
1322
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1314
|
-
i0.ɵɵadvance(
|
|
1323
|
+
i0.ɵɵadvance();
|
|
1315
1324
|
i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
|
|
1316
1325
|
} }
|
|
1317
1326
|
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1318
|
-
const
|
|
1327
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
1319
1328
|
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
1320
1329
|
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1321
1330
|
i0.ɵɵelementEnd();
|
|
1322
1331
|
i0.ɵɵelementStart(4, "input", 8);
|
|
1323
|
-
i0.ɵɵ
|
|
1332
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.caja.nombre, $event) || (ctx_r0.caja.nombre = $event); return i0.ɵɵresetView($event); });
|
|
1324
1333
|
i0.ɵɵelementEnd()();
|
|
1325
1334
|
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1326
1335
|
i0.ɵɵtext(7, "Saldo: ");
|
|
1327
1336
|
i0.ɵɵelementEnd();
|
|
1328
1337
|
i0.ɵɵelementStart(8, "input", 11);
|
|
1329
|
-
i0.ɵɵ
|
|
1338
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.monto, $event) || (ctx_r0.session.monto = $event); return i0.ɵɵresetView($event); });
|
|
1330
1339
|
i0.ɵɵelementEnd()();
|
|
1331
1340
|
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1332
1341
|
i0.ɵɵtext(11, "Numero Z:");
|
|
1333
1342
|
i0.ɵɵelementEnd();
|
|
1334
1343
|
i0.ɵɵelementStart(12, "input", 13);
|
|
1335
|
-
i0.ɵɵ
|
|
1344
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.z, $event) || (ctx_r0.session.z = $event); return i0.ɵɵresetView($event); });
|
|
1336
1345
|
i0.ɵɵelementEnd()()();
|
|
1337
1346
|
} if (rf & 2) {
|
|
1338
|
-
const
|
|
1347
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1339
1348
|
i0.ɵɵadvance(4);
|
|
1340
|
-
i0.ɵɵ
|
|
1349
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.caja.nombre);
|
|
1350
|
+
i0.ɵɵproperty("disabled", true);
|
|
1341
1351
|
i0.ɵɵadvance(4);
|
|
1342
|
-
i0.ɵɵ
|
|
1352
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.monto);
|
|
1353
|
+
i0.ɵɵproperty("disabled", ctx_r0.editMode);
|
|
1343
1354
|
i0.ɵɵadvance(4);
|
|
1344
|
-
i0.ɵɵ
|
|
1355
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.z);
|
|
1356
|
+
i0.ɵɵproperty("disabled", true);
|
|
1345
1357
|
} }
|
|
1346
1358
|
function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1347
|
-
const
|
|
1359
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1348
1360
|
i0.ɵɵelementStart(0, "button", 17);
|
|
1349
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
1361
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.save()); });
|
|
1350
1362
|
i0.ɵɵelementEnd();
|
|
1351
1363
|
} }
|
|
1352
1364
|
function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1353
|
-
const
|
|
1365
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
1354
1366
|
i0.ɵɵelementStart(0, "button", 18);
|
|
1355
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
1367
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.edit()); });
|
|
1356
1368
|
i0.ɵɵelementEnd();
|
|
1357
1369
|
} }
|
|
1358
1370
|
function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
1359
|
-
const
|
|
1360
|
-
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
|
|
1361
|
-
i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
1371
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
1372
|
+
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14)(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
1362
1373
|
i0.ɵɵelementStart(2, "button", 16);
|
|
1363
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(
|
|
1374
|
+
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.closeModal()); });
|
|
1364
1375
|
i0.ɵɵelementEnd();
|
|
1365
1376
|
} if (rf & 2) {
|
|
1366
|
-
const
|
|
1367
|
-
i0.ɵɵproperty("ngIf", !
|
|
1368
|
-
i0.ɵɵadvance(
|
|
1369
|
-
i0.ɵɵproperty("ngIf",
|
|
1377
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1378
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.editMode && ctx_r0.caja);
|
|
1379
|
+
i0.ɵɵadvance();
|
|
1380
|
+
i0.ɵɵproperty("ngIf", ctx_r0.editMode && ctx_r0.caja);
|
|
1370
1381
|
} }
|
|
1371
|
-
const _c0$4 = function () { return { width: "750px" }; };
|
|
1372
1382
|
class SessionCreateComponent {
|
|
1373
1383
|
constructor(sessionCajaService) {
|
|
1374
1384
|
this.sessionCajaService = sessionCajaService;
|
|
@@ -1438,11 +1448,11 @@ class SessionCreateComponent {
|
|
|
1438
1448
|
}
|
|
1439
1449
|
}
|
|
1440
1450
|
/** @nocollapse */ static { this.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(SessionCajaService)); }; }
|
|
1441
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SessionCreateComponent, selectors: [["session-create"]], inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, decls: 6, vars: 9, consts: [[3, "
|
|
1451
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SessionCreateComponent, selectors: [["session-create"]], inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, decls: 6, vars: 9, consts: [[3, "visibleChange", "onHide", "onShow", "visible", "modal", "closeOnEscape", "closable", "blockScroll"], ["pTemplate", "header"], ["class", "grid grid-fluid", 4, "ngIf"], ["pTemplate", "footer"], [1, "text-primary"], [1, "grid", "grid-fluid"], [1, "p-field", "col-12"], ["for", "nombreCaja"], ["pInputText", "", "type", "text", "id", "nombreCaja", 3, "ngModelChange", "ngModel", "disabled"], [1, "p-field", "col-12", "md:col-6"], ["for", "saldoCaja"], ["pInputText", "", "type", "number", "id", "saldoCaja", 3, "ngModelChange", "ngModel", "disabled"], ["for", "numeroZ"], ["pInputText", "", "type", "number", "id", "numeroZ", 3, "ngModelChange", "ngModel", "disabled"], ["pButton", "", "type", "button", "label", "Guardar", "class", "p-button-sm", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cerrar session", "class", "p-button-sm p-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cancelar", 1, "p-button-sm", "p-button-danger", 3, "click"], ["pButton", "", "type", "button", "label", "Guardar", 1, "p-button-sm", 3, "click"], ["pButton", "", "type", "button", "label", "Cerrar session", 1, "p-button-sm", "p-button-success", 3, "click"]], template: function SessionCreateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1442
1452
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
1443
|
-
i0.ɵɵ
|
|
1444
|
-
i0.ɵɵ
|
|
1445
|
-
i0.ɵɵtemplate(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
|
|
1453
|
+
i0.ɵɵtwoWayListener("visibleChange", function SessionCreateComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.showCreateSession, $event) || (ctx.showCreateSession = $event); return $event; });
|
|
1454
|
+
i0.ɵɵlistener("onHide", function SessionCreateComponent_Template_p_dialog_onHide_0_listener() { return ctx.closeModal(); })("onShow", function SessionCreateComponent_Template_p_dialog_onShow_0_listener() { return ctx.setSession(); });
|
|
1455
|
+
i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_1_Template, 2, 1, "ng-template", 1)(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
|
|
1446
1456
|
i0.ɵɵelementStart(3, "div");
|
|
1447
1457
|
i0.ɵɵtext(4, " Este agente no esta asignado a una caja ");
|
|
1448
1458
|
i0.ɵɵelementEnd();
|
|
@@ -1450,15 +1460,16 @@ class SessionCreateComponent {
|
|
|
1450
1460
|
i0.ɵɵelementEnd();
|
|
1451
1461
|
} if (rf & 2) {
|
|
1452
1462
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$4));
|
|
1453
|
-
i0.ɵɵ
|
|
1463
|
+
i0.ɵɵtwoWayProperty("visible", ctx.showCreateSession);
|
|
1464
|
+
i0.ɵɵproperty("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
|
|
1454
1465
|
i0.ɵɵadvance(2);
|
|
1455
1466
|
i0.ɵɵproperty("ngIf", ctx.caja);
|
|
1456
1467
|
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NumberValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog] }); }
|
|
1457
1468
|
}
|
|
1458
|
-
(
|
|
1469
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1459
1470
|
type: Component,
|
|
1460
1471
|
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>" }]
|
|
1461
|
-
}],
|
|
1472
|
+
}], () => [{ type: SessionCajaService }], { showCreateSession: [{
|
|
1462
1473
|
type: Input
|
|
1463
1474
|
}], caja: [{
|
|
1464
1475
|
type: Input
|
|
@@ -1471,6 +1482,7 @@ class SessionCreateComponent {
|
|
|
1471
1482
|
}], success: [{
|
|
1472
1483
|
type: Output
|
|
1473
1484
|
}] }); })();
|
|
1485
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SessionCreateComponent, { className: "SessionCreateComponent" }); })();
|
|
1474
1486
|
|
|
1475
1487
|
class Persona {
|
|
1476
1488
|
constructor() {
|
|
@@ -1521,12 +1533,12 @@ class ClienteService extends CrudService {
|
|
|
1521
1533
|
/** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1522
1534
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
|
|
1523
1535
|
}
|
|
1524
|
-
(
|
|
1536
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
|
|
1525
1537
|
type: Injectable,
|
|
1526
1538
|
args: [{
|
|
1527
1539
|
providedIn: 'root'
|
|
1528
1540
|
}]
|
|
1529
|
-
}],
|
|
1541
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1530
1542
|
|
|
1531
1543
|
class PaginateService {
|
|
1532
1544
|
constructor(translate) {
|
|
@@ -1575,12 +1587,12 @@ class PaginateService {
|
|
|
1575
1587
|
/** @nocollapse */ static { this.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3$1.TranslateService)); }; }
|
|
1576
1588
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" }); }
|
|
1577
1589
|
}
|
|
1578
|
-
(
|
|
1590
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginateService, [{
|
|
1579
1591
|
type: Injectable,
|
|
1580
1592
|
args: [{
|
|
1581
1593
|
providedIn: "root"
|
|
1582
1594
|
}]
|
|
1583
|
-
}],
|
|
1595
|
+
}], () => [{ type: i3$1.TranslateService }], null); })();
|
|
1584
1596
|
|
|
1585
1597
|
function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1586
1598
|
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
@@ -1627,7 +1639,7 @@ function SelectClienteComponent_ng_template_8_span_6_Template(rf, ctx) { if (rf
|
|
|
1627
1639
|
i0.ɵɵpipe(2, "translate");
|
|
1628
1640
|
i0.ɵɵelementEnd();
|
|
1629
1641
|
} if (rf & 2) {
|
|
1630
|
-
i0.ɵɵadvance(
|
|
1642
|
+
i0.ɵɵadvance();
|
|
1631
1643
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
|
|
1632
1644
|
} }
|
|
1633
1645
|
function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1636,7 +1648,7 @@ function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf
|
|
|
1636
1648
|
i0.ɵɵpipe(2, "translate");
|
|
1637
1649
|
i0.ɵɵelementEnd();
|
|
1638
1650
|
} if (rf & 2) {
|
|
1639
|
-
i0.ɵɵadvance(
|
|
1651
|
+
i0.ɵɵadvance();
|
|
1640
1652
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
|
|
1641
1653
|
} }
|
|
1642
1654
|
function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1647,8 +1659,7 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1647
1659
|
i0.ɵɵtext(4);
|
|
1648
1660
|
i0.ɵɵelementEnd();
|
|
1649
1661
|
i0.ɵɵelementStart(5, "td");
|
|
1650
|
-
i0.ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9);
|
|
1651
|
-
i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
|
|
1662
|
+
i0.ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9)(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
|
|
1652
1663
|
i0.ɵɵelementEnd();
|
|
1653
1664
|
i0.ɵɵelementStart(8, "td");
|
|
1654
1665
|
i0.ɵɵtext(9);
|
|
@@ -1660,22 +1671,22 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1660
1671
|
i0.ɵɵtext(13);
|
|
1661
1672
|
i0.ɵɵelementEnd()();
|
|
1662
1673
|
} if (rf & 2) {
|
|
1663
|
-
const
|
|
1664
|
-
i0.ɵɵproperty("pSelectableRow",
|
|
1674
|
+
const cliente_r1 = ctx.$implicit;
|
|
1675
|
+
i0.ɵɵproperty("pSelectableRow", cliente_r1);
|
|
1665
1676
|
i0.ɵɵadvance(2);
|
|
1666
|
-
i0.ɵɵtextInterpolate(
|
|
1677
|
+
i0.ɵɵtextInterpolate(cliente_r1.codigo);
|
|
1667
1678
|
i0.ɵɵadvance(2);
|
|
1668
|
-
i0.ɵɵtextInterpolate(
|
|
1679
|
+
i0.ɵɵtextInterpolate(cliente_r1.descripcionRazonSocial);
|
|
1669
1680
|
i0.ɵɵadvance(2);
|
|
1670
|
-
i0.ɵɵproperty("ngIf",
|
|
1671
|
-
i0.ɵɵadvance(
|
|
1672
|
-
i0.ɵɵproperty("ngIf",
|
|
1681
|
+
i0.ɵɵproperty("ngIf", cliente_r1.personaFisica);
|
|
1682
|
+
i0.ɵɵadvance();
|
|
1683
|
+
i0.ɵɵproperty("ngIf", cliente_r1.personaMoral);
|
|
1673
1684
|
i0.ɵɵadvance(2);
|
|
1674
|
-
i0.ɵɵtextInterpolate(
|
|
1685
|
+
i0.ɵɵtextInterpolate(cliente_r1.limiteCredito);
|
|
1675
1686
|
i0.ɵɵadvance(2);
|
|
1676
|
-
i0.ɵɵtextInterpolate(
|
|
1687
|
+
i0.ɵɵtextInterpolate(cliente_r1.plazoCredito);
|
|
1677
1688
|
i0.ɵɵadvance(2);
|
|
1678
|
-
i0.ɵɵtextInterpolate(
|
|
1689
|
+
i0.ɵɵtextInterpolate(cliente_r1.diasPago);
|
|
1679
1690
|
} }
|
|
1680
1691
|
function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
1681
1692
|
i0.ɵɵelementStart(0, "tr")(1, "td", 10);
|
|
@@ -1741,38 +1752,42 @@ class SelectClienteComponent {
|
|
|
1741
1752
|
this.visible = false;
|
|
1742
1753
|
}
|
|
1743
1754
|
/** @nocollapse */ static { this.ɵfac = function SelectClienteComponent_Factory(t) { return new (t || SelectClienteComponent)(i0.ɵɵdirectiveInject(ClienteService), i0.ɵɵdirectiveInject(PaginateService)); }; }
|
|
1744
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars:
|
|
1755
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars: 18, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "scrollHeight", "350px", 3, "onLazyLoad", "selectionChange", "onRowSelect", "value", "lazy", "paginator", "rows", "totalRecords", "selection", "selectionMode", "scrollable", "loading"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "pSelectableRow"], [4, "ngIf"], ["colspan", "6"]], template: function SelectClienteComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1745
1756
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
1746
|
-
i0.ɵɵlistener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
|
|
1747
1757
|
i0.ɵɵpipe(1, "translate");
|
|
1758
|
+
i0.ɵɵtwoWayListener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
|
|
1759
|
+
i0.ɵɵlistener("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
|
|
1748
1760
|
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
1749
|
-
i0.ɵɵlistener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
|
|
1750
1761
|
i0.ɵɵpipe(4, "translate");
|
|
1762
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
|
|
1763
|
+
i0.ɵɵlistener("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
|
|
1751
1764
|
i0.ɵɵelementEnd();
|
|
1752
1765
|
i0.ɵɵelementStart(5, "button", 3);
|
|
1753
1766
|
i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
|
|
1754
1767
|
i0.ɵɵelementEnd()();
|
|
1755
1768
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
1756
|
-
i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); })
|
|
1757
|
-
i0.ɵɵ
|
|
1758
|
-
i0.ɵɵ
|
|
1759
|
-
i0.ɵɵtemplate(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
|
|
1769
|
+
i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); });
|
|
1770
|
+
i0.ɵɵtwoWayListener("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.clienteSeleccionado, $event) || (ctx.clienteSeleccionado = $event); return $event; });
|
|
1771
|
+
i0.ɵɵlistener("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
|
|
1772
|
+
i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5)(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6)(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
|
|
1760
1773
|
i0.ɵɵelementEnd()();
|
|
1761
1774
|
} if (rf & 2) {
|
|
1762
|
-
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1,
|
|
1763
|
-
i0.ɵɵ
|
|
1775
|
+
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 14, "Seleccionar cliente "));
|
|
1776
|
+
i0.ɵɵtwoWayProperty("visible", ctx.visible);
|
|
1764
1777
|
i0.ɵɵadvance(3);
|
|
1765
|
-
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4,
|
|
1766
|
-
i0.ɵɵ
|
|
1778
|
+
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 16, "buscar"), "...");
|
|
1779
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
|
|
1767
1780
|
i0.ɵɵadvance(3);
|
|
1768
1781
|
i0.ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
|
|
1769
|
-
i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)
|
|
1782
|
+
i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total);
|
|
1783
|
+
i0.ɵɵtwoWayProperty("selection", ctx.clienteSeleccionado);
|
|
1784
|
+
i0.ɵɵproperty("scrollable", true)("loading", ctx.loading);
|
|
1770
1785
|
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
|
|
1771
1786
|
}
|
|
1772
|
-
(
|
|
1787
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
|
|
1773
1788
|
type: Component,
|
|
1774
1789
|
args: [{ selector: 'select-cliente', template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>" }]
|
|
1775
|
-
}],
|
|
1790
|
+
}], () => [{ type: ClienteService }, { type: PaginateService }], { clienteSeleccionado: [{
|
|
1776
1791
|
type: Input
|
|
1777
1792
|
}], selectMode: [{
|
|
1778
1793
|
type: Input
|
|
@@ -1781,6 +1796,7 @@ class SelectClienteComponent {
|
|
|
1781
1796
|
}], select: [{
|
|
1782
1797
|
type: Output
|
|
1783
1798
|
}] }); })();
|
|
1799
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectClienteComponent, { className: "SelectClienteComponent" }); })();
|
|
1784
1800
|
|
|
1785
1801
|
class ClasificadorTipo {
|
|
1786
1802
|
constructor() { }
|
|
@@ -1803,13 +1819,14 @@ class ProveedorService extends CrudService {
|
|
|
1803
1819
|
/** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1804
1820
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
|
|
1805
1821
|
}
|
|
1806
|
-
(
|
|
1822
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
|
|
1807
1823
|
type: Injectable,
|
|
1808
1824
|
args: [{
|
|
1809
1825
|
providedIn: 'root'
|
|
1810
1826
|
}]
|
|
1811
|
-
}],
|
|
1827
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1812
1828
|
|
|
1829
|
+
const _c0$3 = () => [10, 25, 50, 100, 500];
|
|
1813
1830
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1814
1831
|
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
1815
1832
|
i0.ɵɵtext(2);
|
|
@@ -1842,15 +1859,14 @@ function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1)
|
|
|
1842
1859
|
i0.ɵɵtext(6);
|
|
1843
1860
|
i0.ɵɵelementEnd()();
|
|
1844
1861
|
} if (rf & 2) {
|
|
1845
|
-
const
|
|
1862
|
+
const proveedor_r1 = ctx.rowData;
|
|
1846
1863
|
i0.ɵɵadvance(2);
|
|
1847
|
-
i0.ɵɵtextInterpolate(
|
|
1864
|
+
i0.ɵɵtextInterpolate(proveedor_r1.codigo);
|
|
1848
1865
|
i0.ɵɵadvance(2);
|
|
1849
|
-
i0.ɵɵtextInterpolate(
|
|
1866
|
+
i0.ɵɵtextInterpolate(proveedor_r1.descripcionRazonSocial);
|
|
1850
1867
|
i0.ɵɵadvance(2);
|
|
1851
|
-
i0.ɵɵtextInterpolate(
|
|
1868
|
+
i0.ɵɵtextInterpolate(proveedor_r1.descripcionRfc);
|
|
1852
1869
|
} }
|
|
1853
|
-
const _c0$3 = function () { return [10, 25, 50, 100, 500]; };
|
|
1854
1870
|
class SelectProveedorComponent {
|
|
1855
1871
|
constructor(proveedorService, paginanateService, translate) {
|
|
1856
1872
|
this.proveedorService = proveedorService;
|
|
@@ -1890,47 +1906,51 @@ class SelectProveedorComponent {
|
|
|
1890
1906
|
this.visible = false;
|
|
1891
1907
|
}
|
|
1892
1908
|
/** @nocollapse */ static { this.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
|
|
1893
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars:
|
|
1909
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 17, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "change", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "valueChange", "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"]], template: function SelectProveedorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1894
1910
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
1895
|
-
i0.ɵɵlistener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
|
|
1896
1911
|
i0.ɵɵpipe(1, "translate");
|
|
1912
|
+
i0.ɵɵtwoWayListener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
|
|
1913
|
+
i0.ɵɵlistener("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
|
|
1897
1914
|
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
1898
|
-
i0.ɵɵlistener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
|
|
1899
1915
|
i0.ɵɵpipe(4, "translate");
|
|
1916
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
|
|
1917
|
+
i0.ɵɵlistener("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
|
|
1900
1918
|
i0.ɵɵelementEnd();
|
|
1901
1919
|
i0.ɵɵelementStart(5, "button", 3);
|
|
1902
1920
|
i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
|
|
1903
1921
|
i0.ɵɵelementEnd()();
|
|
1904
1922
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
1905
|
-
i0.ɵɵ
|
|
1906
|
-
i0.ɵɵ
|
|
1907
|
-
i0.ɵɵtemplate(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
|
|
1923
|
+
i0.ɵɵtwoWayListener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedores, $event) || (ctx.proveedores = $event); return $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedorSeleccionado, $event) || (ctx.proveedorSeleccionado = $event); return $event; });
|
|
1924
|
+
i0.ɵɵlistener("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
|
|
1925
|
+
i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5)(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
|
|
1908
1926
|
i0.ɵɵelementEnd();
|
|
1909
1927
|
i0.ɵɵelementStart(9, "p-paginator", 7);
|
|
1910
1928
|
i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
1911
1929
|
i0.ɵɵelementEnd()();
|
|
1912
1930
|
} if (rf & 2) {
|
|
1913
|
-
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1,
|
|
1914
|
-
i0.ɵɵ
|
|
1931
|
+
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 12, "ArticuloProveedor.proveedores"));
|
|
1932
|
+
i0.ɵɵtwoWayProperty("visible", ctx.visible);
|
|
1915
1933
|
i0.ɵɵadvance(3);
|
|
1916
|
-
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4,
|
|
1917
|
-
i0.ɵɵ
|
|
1934
|
+
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 14, "buscar"), "...");
|
|
1935
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
|
|
1918
1936
|
i0.ɵɵadvance(3);
|
|
1919
|
-
i0.ɵɵ
|
|
1937
|
+
i0.ɵɵtwoWayProperty("value", ctx.proveedores)("selection", ctx.proveedorSeleccionado);
|
|
1938
|
+
i0.ɵɵproperty("scrollable", true);
|
|
1920
1939
|
i0.ɵɵadvance(3);
|
|
1921
|
-
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(
|
|
1940
|
+
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(16, _c0$3));
|
|
1922
1941
|
} }, dependencies: [i3.PrimeTemplate, i18.Table, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
|
|
1923
1942
|
}
|
|
1924
|
-
(
|
|
1943
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
|
|
1925
1944
|
type: Component,
|
|
1926
1945
|
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>" }]
|
|
1927
|
-
}],
|
|
1946
|
+
}], () => [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
|
|
1928
1947
|
type: Input
|
|
1929
1948
|
}], proveedorSeleccionado: [{
|
|
1930
1949
|
type: Input
|
|
1931
1950
|
}], select: [{
|
|
1932
1951
|
type: Output
|
|
1933
1952
|
}] }); })();
|
|
1953
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectProveedorComponent, { className: "SelectProveedorComponent" }); })();
|
|
1934
1954
|
|
|
1935
1955
|
class AlmacenService extends CrudService {
|
|
1936
1956
|
constructor(httpClient) {
|
|
@@ -1944,12 +1964,12 @@ class AlmacenService extends CrudService {
|
|
|
1944
1964
|
/** @nocollapse */ static { this.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1945
1965
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' }); }
|
|
1946
1966
|
}
|
|
1947
|
-
(
|
|
1967
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlmacenService, [{
|
|
1948
1968
|
type: Injectable,
|
|
1949
1969
|
args: [{
|
|
1950
1970
|
providedIn: 'root'
|
|
1951
1971
|
}]
|
|
1952
|
-
}],
|
|
1972
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1953
1973
|
|
|
1954
1974
|
class StockService extends CrudService {
|
|
1955
1975
|
constructor(httpClient) {
|
|
@@ -1970,12 +1990,12 @@ class StockService extends CrudService {
|
|
|
1970
1990
|
/** @nocollapse */ static { this.ɵfac = function StockService_Factory(t) { return new (t || StockService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1971
1991
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' }); }
|
|
1972
1992
|
}
|
|
1973
|
-
(
|
|
1993
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StockService, [{
|
|
1974
1994
|
type: Injectable,
|
|
1975
1995
|
args: [{
|
|
1976
1996
|
providedIn: 'root'
|
|
1977
1997
|
}]
|
|
1978
|
-
}],
|
|
1998
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1979
1999
|
|
|
1980
2000
|
class ArticuloInformacionService extends CrudService {
|
|
1981
2001
|
constructor(httpClient) {
|
|
@@ -1989,45 +2009,47 @@ class ArticuloInformacionService extends CrudService {
|
|
|
1989
2009
|
/** @nocollapse */ static { this.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1990
2010
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' }); }
|
|
1991
2011
|
}
|
|
1992
|
-
(
|
|
2012
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArticuloInformacionService, [{
|
|
1993
2013
|
type: Injectable,
|
|
1994
2014
|
args: [{
|
|
1995
2015
|
providedIn: 'root'
|
|
1996
2016
|
}]
|
|
1997
|
-
}],
|
|
2017
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
1998
2018
|
|
|
2019
|
+
const _c0$2 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
2020
|
+
const _c1$1 = () => ({ width: "600px" });
|
|
1999
2021
|
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
2000
2022
|
i0.ɵɵelement(0, "col");
|
|
2001
2023
|
} if (rf & 2) {
|
|
2002
|
-
const
|
|
2003
|
-
i0.ɵɵstyleProp("width",
|
|
2024
|
+
const col_r1 = ctx.$implicit;
|
|
2025
|
+
i0.ɵɵstyleProp("width", col_r1.width);
|
|
2004
2026
|
} }
|
|
2005
2027
|
function SeleccionArticuloInformacionComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
2006
2028
|
i0.ɵɵelementStart(0, "colgroup");
|
|
2007
2029
|
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template, 1, 2, "col", 6);
|
|
2008
2030
|
i0.ɵɵelementEnd();
|
|
2009
2031
|
} if (rf & 2) {
|
|
2010
|
-
const
|
|
2011
|
-
i0.ɵɵadvance(
|
|
2012
|
-
i0.ɵɵproperty("ngForOf",
|
|
2032
|
+
const columns_r2 = ctx.$implicit;
|
|
2033
|
+
i0.ɵɵadvance();
|
|
2034
|
+
i0.ɵɵproperty("ngForOf", columns_r2);
|
|
2013
2035
|
} }
|
|
2014
2036
|
function SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
2015
2037
|
i0.ɵɵelementStart(0, "th", 8);
|
|
2016
2038
|
i0.ɵɵtext(1);
|
|
2017
2039
|
i0.ɵɵelementEnd();
|
|
2018
2040
|
} if (rf & 2) {
|
|
2019
|
-
const
|
|
2020
|
-
i0.ɵɵadvance(
|
|
2021
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2041
|
+
const col_r3 = ctx.$implicit;
|
|
2042
|
+
i0.ɵɵadvance();
|
|
2043
|
+
i0.ɵɵtextInterpolate1(" ", col_r3.header, " ");
|
|
2022
2044
|
} }
|
|
2023
2045
|
function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
2024
2046
|
i0.ɵɵelementStart(0, "tr");
|
|
2025
2047
|
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template, 2, 1, "th", 7);
|
|
2026
2048
|
i0.ɵɵelementEnd();
|
|
2027
2049
|
} if (rf & 2) {
|
|
2028
|
-
const
|
|
2029
|
-
i0.ɵɵadvance(
|
|
2030
|
-
i0.ɵɵproperty("ngForOf",
|
|
2050
|
+
const columns_r4 = ctx.$implicit;
|
|
2051
|
+
i0.ɵɵadvance();
|
|
2052
|
+
i0.ɵɵproperty("ngForOf", columns_r4);
|
|
2031
2053
|
} }
|
|
2032
2054
|
function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
2033
2055
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -2046,26 +2068,24 @@ function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) {
|
|
|
2046
2068
|
i0.ɵɵtext(10);
|
|
2047
2069
|
i0.ɵɵelementEnd()();
|
|
2048
2070
|
} if (rf & 2) {
|
|
2049
|
-
const
|
|
2071
|
+
const rowData_r5 = ctx.$implicit;
|
|
2050
2072
|
i0.ɵɵadvance(2);
|
|
2051
|
-
i0.ɵɵtextInterpolate(
|
|
2073
|
+
i0.ɵɵtextInterpolate(rowData_r5.almacenCodigo);
|
|
2052
2074
|
i0.ɵɵadvance(2);
|
|
2053
|
-
i0.ɵɵtextInterpolate(
|
|
2075
|
+
i0.ɵɵtextInterpolate(rowData_r5.almacenDescripcion);
|
|
2054
2076
|
i0.ɵɵadvance(2);
|
|
2055
|
-
i0.ɵɵtextInterpolate(
|
|
2077
|
+
i0.ɵɵtextInterpolate(rowData_r5.ubicacionCodigo);
|
|
2056
2078
|
i0.ɵɵadvance(2);
|
|
2057
|
-
i0.ɵɵtextInterpolate(
|
|
2079
|
+
i0.ɵɵtextInterpolate(rowData_r5.ubicacionDescripcion);
|
|
2058
2080
|
i0.ɵɵadvance(2);
|
|
2059
|
-
i0.ɵɵtextInterpolate(
|
|
2081
|
+
i0.ɵɵtextInterpolate(rowData_r5.existencia);
|
|
2060
2082
|
} }
|
|
2061
2083
|
function SeleccionArticuloInformacionComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
2062
|
-
const
|
|
2084
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
2063
2085
|
i0.ɵɵelementStart(0, "div", 9)(1, "button", 10);
|
|
2064
|
-
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_ng_template_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2086
|
+
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_ng_template_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.hiddenDialog()); });
|
|
2065
2087
|
i0.ɵɵelementEnd()();
|
|
2066
2088
|
} }
|
|
2067
|
-
const _c0$2 = function (a0) { return { "width": a0, "min-width": "200px" }; };
|
|
2068
|
-
const _c1$1 = function () { return { width: "600px" }; };
|
|
2069
2089
|
class SeleccionArticuloInformacionComponent {
|
|
2070
2090
|
constructor(articuloInformacionService) {
|
|
2071
2091
|
this.articuloInformacionService = articuloInformacionService;
|
|
@@ -2106,44 +2126,49 @@ class SeleccionArticuloInformacionComponent {
|
|
|
2106
2126
|
this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
|
|
2107
2127
|
}
|
|
2108
2128
|
/** @nocollapse */ static { this.ɵfac = function SeleccionArticuloInformacionComponent_Factory(t) { return new (t || SeleccionArticuloInformacionComponent)(i0.ɵɵdirectiveInject(ArticuloInformacionService)); }; }
|
|
2109
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionArticuloInformacionComponent, selectors: [["lib-seleccion-articulo-informacion"]], inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, decls: 6, vars: 19, consts: [[3, "
|
|
2129
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionArticuloInformacionComponent, selectors: [["lib-seleccion-articulo-informacion"]], inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, decls: 6, vars: 19, consts: [[3, "onShow", "visibleChange", "onHide", "resize", "header", "visible", "modal", "minY", "baseZIndex", "draggable", "blockScroll", "maximizable", "breakpoint"], ["responsiveLayout", "scroll", "scrollHeight", "350px", 3, "columns", "value", "scrollable"], ["pTemplate", "colgroup"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "footer"], [3, "width", 4, "ngFor", "ngForOf"], ["pResizableColumn", "", 4, "ngFor", "ngForOf"], ["pResizableColumn", ""], [1, "container-end"], ["pButton", "", "type", "button", "icon", "pi pi-replay", "label", "Cerrar", 1, "ui-button-raised", "ui-button-secondary", 3, "click"]], template: function SeleccionArticuloInformacionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2110
2130
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2111
|
-
i0.ɵɵlistener("onShow", function SeleccionArticuloInformacionComponent_Template_p_dialog_onShow_0_listener() { return ctx.OnShow(); })
|
|
2131
|
+
i0.ɵɵlistener("onShow", function SeleccionArticuloInformacionComponent_Template_p_dialog_onShow_0_listener() { return ctx.OnShow(); });
|
|
2132
|
+
i0.ɵɵtwoWayListener("visibleChange", function SeleccionArticuloInformacionComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.showModal, $event) || (ctx.showModal = $event); return $event; });
|
|
2133
|
+
i0.ɵɵlistener("onHide", function SeleccionArticuloInformacionComponent_Template_p_dialog_onHide_0_listener() { return ctx.hiddenDialog(); })("resize", function SeleccionArticuloInformacionComponent_Template_p_dialog_resize_0_listener($event) { return ctx.OnResize($event); }, false, i0.ɵɵresolveWindow);
|
|
2112
2134
|
i0.ɵɵelementStart(1, "p-table", 1);
|
|
2113
|
-
i0.ɵɵtemplate(2, SeleccionArticuloInformacionComponent_ng_template_2_Template, 2, 1, "ng-template", 2);
|
|
2114
|
-
i0.ɵɵtemplate(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
|
|
2115
|
-
i0.ɵɵtemplate(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
|
|
2135
|
+
i0.ɵɵtemplate(2, SeleccionArticuloInformacionComponent_ng_template_2_Template, 2, 1, "ng-template", 2)(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3)(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
|
|
2116
2136
|
i0.ɵɵelementEnd();
|
|
2117
2137
|
i0.ɵɵtemplate(5, SeleccionArticuloInformacionComponent_ng_template_5_Template, 2, 0, "ng-template", 5);
|
|
2118
2138
|
i0.ɵɵelementEnd();
|
|
2119
2139
|
} if (rf & 2) {
|
|
2120
2140
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(16, _c0$2, ctx.size + "px"));
|
|
2121
|
-
i0.ɵɵproperty("header", ctx.titulo)
|
|
2122
|
-
i0.ɵɵ
|
|
2141
|
+
i0.ɵɵproperty("header", ctx.titulo);
|
|
2142
|
+
i0.ɵɵtwoWayProperty("visible", ctx.showModal);
|
|
2143
|
+
i0.ɵɵproperty("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
|
|
2144
|
+
i0.ɵɵadvance();
|
|
2123
2145
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(18, _c1$1));
|
|
2124
2146
|
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true);
|
|
2125
2147
|
} }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i18.Table, i18.ResizableColumn, i21.ButtonDirective, i33.Dialog] }); }
|
|
2126
2148
|
}
|
|
2127
|
-
(
|
|
2149
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
2128
2150
|
type: Component,
|
|
2129
2151
|
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 responsiveLayout=\"scroll\"\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 <ng-template pTemplate=\"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 </ng-template>\n</p-dialog>" }]
|
|
2130
|
-
}],
|
|
2152
|
+
}], () => [{ type: ArticuloInformacionService }], { showModal: [{
|
|
2131
2153
|
type: Input
|
|
2132
2154
|
}], articulo: [{
|
|
2133
2155
|
type: Input
|
|
2134
2156
|
}], eventSelection: [{
|
|
2135
2157
|
type: Output
|
|
2136
2158
|
}] }); })();
|
|
2159
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionArticuloInformacionComponent, { className: "SeleccionArticuloInformacionComponent" }); })();
|
|
2137
2160
|
|
|
2161
|
+
const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
2162
|
+
const _c1 = () => [10, 25, 50, 100, 500];
|
|
2138
2163
|
function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
|
|
2139
2164
|
i0.ɵɵelementStart(0, "option", 22);
|
|
2140
2165
|
i0.ɵɵtext(1);
|
|
2141
2166
|
i0.ɵɵelementEnd();
|
|
2142
2167
|
} if (rf & 2) {
|
|
2143
|
-
const
|
|
2144
|
-
i0.ɵɵpropertyInterpolate("value",
|
|
2145
|
-
i0.ɵɵadvance(
|
|
2146
|
-
i0.ɵɵtextInterpolate(
|
|
2168
|
+
const almacen_r2 = ctx.$implicit;
|
|
2169
|
+
i0.ɵɵpropertyInterpolate("value", almacen_r2.id);
|
|
2170
|
+
i0.ɵɵadvance();
|
|
2171
|
+
i0.ɵɵtextInterpolate(almacen_r2.descripcion);
|
|
2147
2172
|
} }
|
|
2148
2173
|
function SeleccionaArticuloComponent_ng_template_26_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
2149
2174
|
i0.ɵɵelementStart(0, "th", 31);
|
|
@@ -2190,9 +2215,9 @@ function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if
|
|
|
2190
2215
|
i0.ɵɵtext(1);
|
|
2191
2216
|
i0.ɵɵelementEnd();
|
|
2192
2217
|
} if (rf & 2) {
|
|
2193
|
-
const
|
|
2194
|
-
i0.ɵɵadvance(
|
|
2195
|
-
i0.ɵɵtextInterpolate(
|
|
2218
|
+
const item_r3 = ctx.$implicit;
|
|
2219
|
+
i0.ɵɵadvance();
|
|
2220
|
+
i0.ɵɵtextInterpolate(item_r3.descripcion);
|
|
2196
2221
|
} }
|
|
2197
2222
|
function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
2198
2223
|
i0.ɵɵelementStart(0, "tr")(1, "th", 23);
|
|
@@ -2204,8 +2229,7 @@ function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf &
|
|
|
2204
2229
|
i0.ɵɵelementStart(5, "th", 25);
|
|
2205
2230
|
i0.ɵɵtext(6, "Unidad");
|
|
2206
2231
|
i0.ɵɵelementEnd();
|
|
2207
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26);
|
|
2208
|
-
i0.ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
|
|
2232
|
+
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26)(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
|
|
2209
2233
|
i0.ɵɵelementStart(9, "th", 23);
|
|
2210
2234
|
i0.ɵɵtext(10, "C\u00F3digo");
|
|
2211
2235
|
i0.ɵɵelementEnd();
|
|
@@ -2213,37 +2237,32 @@ function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf &
|
|
|
2213
2237
|
i0.ɵɵtext(12, "Descripcion");
|
|
2214
2238
|
i0.ɵɵelementEnd();
|
|
2215
2239
|
i0.ɵɵelement(13, "th", 25);
|
|
2216
|
-
i0.ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29);
|
|
2217
|
-
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29);
|
|
2218
|
-
i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29);
|
|
2219
|
-
i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29);
|
|
2220
|
-
i0.ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29);
|
|
2221
|
-
i0.ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
|
|
2240
|
+
i0.ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29)(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29)(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29)(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29)(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29)(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
|
|
2222
2241
|
i0.ɵɵelementStart(20, "th", 25);
|
|
2223
2242
|
i0.ɵɵtext(21, "Existencia por Unidad");
|
|
2224
2243
|
i0.ɵɵelementEnd();
|
|
2225
2244
|
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_26_th_22_Template, 2, 1, "th", 30);
|
|
2226
2245
|
i0.ɵɵelementEnd();
|
|
2227
2246
|
} if (rf & 2) {
|
|
2228
|
-
const
|
|
2247
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
2229
2248
|
i0.ɵɵadvance(7);
|
|
2230
|
-
i0.ɵɵproperty("ngIf",
|
|
2231
|
-
i0.ɵɵadvance(
|
|
2232
|
-
i0.ɵɵproperty("ngIf",
|
|
2249
|
+
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2250
|
+
i0.ɵɵadvance();
|
|
2251
|
+
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2233
2252
|
i0.ɵɵadvance(6);
|
|
2234
|
-
i0.ɵɵproperty("ngIf",
|
|
2235
|
-
i0.ɵɵadvance(
|
|
2236
|
-
i0.ɵɵproperty("ngIf",
|
|
2237
|
-
i0.ɵɵadvance(
|
|
2238
|
-
i0.ɵɵproperty("ngIf",
|
|
2239
|
-
i0.ɵɵadvance(
|
|
2240
|
-
i0.ɵɵproperty("ngIf",
|
|
2241
|
-
i0.ɵɵadvance(
|
|
2242
|
-
i0.ɵɵproperty("ngIf",
|
|
2243
|
-
i0.ɵɵadvance(
|
|
2244
|
-
i0.ɵɵproperty("ngIf",
|
|
2253
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2254
|
+
i0.ɵɵadvance();
|
|
2255
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2256
|
+
i0.ɵɵadvance();
|
|
2257
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2258
|
+
i0.ɵɵadvance();
|
|
2259
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2260
|
+
i0.ɵɵadvance();
|
|
2261
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2262
|
+
i0.ɵɵadvance();
|
|
2263
|
+
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
2245
2264
|
i0.ɵɵadvance(3);
|
|
2246
|
-
i0.ɵɵproperty("ngForOf",
|
|
2265
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.clasificadorList);
|
|
2247
2266
|
} }
|
|
2248
2267
|
function SeleccionaArticuloComponent_ng_template_27_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
2249
2268
|
i0.ɵɵelementStart(0, "td", 23);
|
|
@@ -2255,27 +2274,27 @@ function SeleccionaArticuloComponent_ng_template_27_td_2_Template(rf, ctx) { if
|
|
|
2255
2274
|
i0.ɵɵtext(1);
|
|
2256
2275
|
i0.ɵɵelementEnd();
|
|
2257
2276
|
} if (rf & 2) {
|
|
2258
|
-
const
|
|
2259
|
-
i0.ɵɵadvance(
|
|
2260
|
-
i0.ɵɵtextInterpolate(
|
|
2277
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2278
|
+
i0.ɵɵadvance();
|
|
2279
|
+
i0.ɵɵtextInterpolate(rowData_r6.ubicacionCodigo);
|
|
2261
2280
|
} }
|
|
2262
2281
|
function SeleccionaArticuloComponent_ng_template_27_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
2263
2282
|
i0.ɵɵelementStart(0, "td", 44);
|
|
2264
2283
|
i0.ɵɵtext(1);
|
|
2265
2284
|
i0.ɵɵelementEnd();
|
|
2266
2285
|
} if (rf & 2) {
|
|
2267
|
-
const
|
|
2268
|
-
i0.ɵɵadvance(
|
|
2269
|
-
i0.ɵɵtextInterpolate(
|
|
2286
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2287
|
+
i0.ɵɵadvance();
|
|
2288
|
+
i0.ɵɵtextInterpolate(rowData_r6.existenciaSecundaria);
|
|
2270
2289
|
} }
|
|
2271
2290
|
function SeleccionaArticuloComponent_ng_template_27_td_8_Template(rf, ctx) { if (rf & 1) {
|
|
2272
2291
|
i0.ɵɵelementStart(0, "td", 36);
|
|
2273
2292
|
i0.ɵɵtext(1);
|
|
2274
2293
|
i0.ɵɵelementEnd();
|
|
2275
2294
|
} if (rf & 2) {
|
|
2276
|
-
const
|
|
2277
|
-
i0.ɵɵadvance(
|
|
2278
|
-
i0.ɵɵtextInterpolate(
|
|
2295
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2296
|
+
i0.ɵɵadvance();
|
|
2297
|
+
i0.ɵɵtextInterpolate(rowData_r6.unidadSecundariaCodigo);
|
|
2279
2298
|
} }
|
|
2280
2299
|
function SeleccionaArticuloComponent_ng_template_27_td_15_Template(rf, ctx) { if (rf & 1) {
|
|
2281
2300
|
i0.ɵɵelementStart(0, "td", 39);
|
|
@@ -2283,9 +2302,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_15_Template(rf, ctx) { if
|
|
|
2283
2302
|
i0.ɵɵpipe(2, "currency");
|
|
2284
2303
|
i0.ɵɵelementEnd();
|
|
2285
2304
|
} if (rf & 2) {
|
|
2286
|
-
const
|
|
2287
|
-
i0.ɵɵadvance(
|
|
2288
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1,
|
|
2305
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2306
|
+
i0.ɵɵadvance();
|
|
2307
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, rowData_r6.precioConImpuestos), " ");
|
|
2289
2308
|
} }
|
|
2290
2309
|
function SeleccionaArticuloComponent_ng_template_27_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
2291
2310
|
i0.ɵɵelementStart(0, "td", 39);
|
|
@@ -2293,9 +2312,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_16_Template(rf, ctx) { if
|
|
|
2293
2312
|
i0.ɵɵpipe(2, "currency");
|
|
2294
2313
|
i0.ɵɵelementEnd();
|
|
2295
2314
|
} if (rf & 2) {
|
|
2296
|
-
const
|
|
2297
|
-
i0.ɵɵadvance(
|
|
2298
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
2315
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2316
|
+
i0.ɵɵadvance();
|
|
2317
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio2ConImpuestos));
|
|
2299
2318
|
} }
|
|
2300
2319
|
function SeleccionaArticuloComponent_ng_template_27_td_17_Template(rf, ctx) { if (rf & 1) {
|
|
2301
2320
|
i0.ɵɵelementStart(0, "td", 39);
|
|
@@ -2303,9 +2322,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_17_Template(rf, ctx) { if
|
|
|
2303
2322
|
i0.ɵɵpipe(2, "currency");
|
|
2304
2323
|
i0.ɵɵelementEnd();
|
|
2305
2324
|
} if (rf & 2) {
|
|
2306
|
-
const
|
|
2307
|
-
i0.ɵɵadvance(
|
|
2308
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
2325
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2326
|
+
i0.ɵɵadvance();
|
|
2327
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio3ConImpuestos));
|
|
2309
2328
|
} }
|
|
2310
2329
|
function SeleccionaArticuloComponent_ng_template_27_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
2311
2330
|
i0.ɵɵelementStart(0, "td", 39);
|
|
@@ -2313,9 +2332,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_18_Template(rf, ctx) { if
|
|
|
2313
2332
|
i0.ɵɵpipe(2, "currency");
|
|
2314
2333
|
i0.ɵɵelementEnd();
|
|
2315
2334
|
} if (rf & 2) {
|
|
2316
|
-
const
|
|
2317
|
-
i0.ɵɵadvance(
|
|
2318
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
2335
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2336
|
+
i0.ɵɵadvance();
|
|
2337
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio4ConImpuestos));
|
|
2319
2338
|
} }
|
|
2320
2339
|
function SeleccionaArticuloComponent_ng_template_27_td_19_Template(rf, ctx) { if (rf & 1) {
|
|
2321
2340
|
i0.ɵɵelementStart(0, "td", 39);
|
|
@@ -2323,9 +2342,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_19_Template(rf, ctx) { if
|
|
|
2323
2342
|
i0.ɵɵpipe(2, "currency");
|
|
2324
2343
|
i0.ɵɵelementEnd();
|
|
2325
2344
|
} if (rf & 2) {
|
|
2326
|
-
const
|
|
2327
|
-
i0.ɵɵadvance(
|
|
2328
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
2345
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2346
|
+
i0.ɵɵadvance();
|
|
2347
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio5ConImpuestos));
|
|
2329
2348
|
} }
|
|
2330
2349
|
function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if (rf & 1) {
|
|
2331
2350
|
i0.ɵɵelementStart(0, "td", 36);
|
|
@@ -2333,9 +2352,9 @@ function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if
|
|
|
2333
2352
|
i0.ɵɵpipe(2, "currency");
|
|
2334
2353
|
i0.ɵɵelementEnd();
|
|
2335
2354
|
} if (rf & 2) {
|
|
2336
|
-
const
|
|
2337
|
-
i0.ɵɵadvance(
|
|
2338
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
2355
|
+
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
2356
|
+
i0.ɵɵadvance();
|
|
2357
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio));
|
|
2339
2358
|
} }
|
|
2340
2359
|
function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
2341
2360
|
i0.ɵɵelementStart(0, "div", 45)(1, "div", 46)(2, "label", 47);
|
|
@@ -2346,34 +2365,32 @@ function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { i
|
|
|
2346
2365
|
i0.ɵɵpipe(7, "number");
|
|
2347
2366
|
i0.ɵɵelementEnd()()();
|
|
2348
2367
|
} if (rf & 2) {
|
|
2349
|
-
const
|
|
2368
|
+
const item_r7 = ctx.$implicit;
|
|
2350
2369
|
i0.ɵɵadvance(3);
|
|
2351
|
-
i0.ɵɵtextInterpolate(
|
|
2370
|
+
i0.ɵɵtextInterpolate(item_r7.unidad_codigo);
|
|
2352
2371
|
i0.ɵɵadvance(3);
|
|
2353
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2,
|
|
2372
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, item_r7.unidad_existencia, "1.2-2"));
|
|
2354
2373
|
} }
|
|
2355
2374
|
function SeleccionaArticuloComponent_ng_template_27_td_23_Template(rf, ctx) { if (rf & 1) {
|
|
2356
2375
|
i0.ɵɵelementStart(0, "td", 39);
|
|
2357
2376
|
i0.ɵɵtext(1);
|
|
2358
2377
|
i0.ɵɵelementEnd();
|
|
2359
2378
|
} if (rf & 2) {
|
|
2360
|
-
const
|
|
2361
|
-
i0.ɵɵadvance(
|
|
2362
|
-
i0.ɵɵtextInterpolate(
|
|
2379
|
+
const itemData_r8 = ctx.$implicit;
|
|
2380
|
+
i0.ɵɵadvance();
|
|
2381
|
+
i0.ɵɵtextInterpolate(itemData_r8.valor);
|
|
2363
2382
|
} }
|
|
2364
2383
|
function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
|
|
2365
|
-
const
|
|
2384
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
2366
2385
|
i0.ɵɵelementStart(0, "tr", 32);
|
|
2367
|
-
i0.ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33);
|
|
2368
|
-
i0.ɵɵtemplate(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
|
|
2386
|
+
i0.ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33)(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
|
|
2369
2387
|
i0.ɵɵelementStart(3, "td", 35);
|
|
2370
2388
|
i0.ɵɵtext(4);
|
|
2371
2389
|
i0.ɵɵelementEnd();
|
|
2372
2390
|
i0.ɵɵelementStart(5, "td", 36);
|
|
2373
2391
|
i0.ɵɵtext(6);
|
|
2374
2392
|
i0.ɵɵelementEnd();
|
|
2375
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37);
|
|
2376
|
-
i0.ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
|
|
2393
|
+
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37)(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
|
|
2377
2394
|
i0.ɵɵelementStart(9, "td", 39);
|
|
2378
2395
|
i0.ɵɵtext(10);
|
|
2379
2396
|
i0.ɵɵelementEnd();
|
|
@@ -2381,67 +2398,60 @@ function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf &
|
|
|
2381
2398
|
i0.ɵɵtext(12);
|
|
2382
2399
|
i0.ɵɵelementEnd();
|
|
2383
2400
|
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2384
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const
|
|
2401
|
+
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const rowData_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onShowInformacion(rowData_r6)); });
|
|
2385
2402
|
i0.ɵɵelementEnd()();
|
|
2386
|
-
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
|
|
2387
|
-
i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
|
|
2388
|
-
i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34);
|
|
2389
|
-
i0.ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34);
|
|
2390
|
-
i0.ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34);
|
|
2391
|
-
i0.ɵɵtemplate(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
|
|
2403
|
+
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34)(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34)(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34)(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34)(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34)(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
|
|
2392
2404
|
i0.ɵɵelementStart(21, "td", 36);
|
|
2393
2405
|
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_27_div_22_Template, 8, 5, "div", 42);
|
|
2394
2406
|
i0.ɵɵelementEnd();
|
|
2395
2407
|
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_ng_template_27_td_23_Template, 2, 1, "td", 43);
|
|
2396
2408
|
i0.ɵɵelementEnd();
|
|
2397
2409
|
} if (rf & 2) {
|
|
2398
|
-
const
|
|
2410
|
+
const rowData_r6 = ctx.$implicit;
|
|
2399
2411
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
2400
|
-
i0.ɵɵproperty("pSelectableRow",
|
|
2401
|
-
i0.ɵɵadvance(
|
|
2402
|
-
i0.ɵɵproperty("ngIf", !
|
|
2403
|
-
i0.ɵɵadvance(
|
|
2404
|
-
i0.ɵɵproperty("ngIf",
|
|
2412
|
+
i0.ɵɵproperty("pSelectableRow", rowData_r6);
|
|
2413
|
+
i0.ɵɵadvance();
|
|
2414
|
+
i0.ɵɵproperty("ngIf", !rowData_r6.ubicacionCodigo);
|
|
2415
|
+
i0.ɵɵadvance();
|
|
2416
|
+
i0.ɵɵproperty("ngIf", rowData_r6.ubicacionCodigo);
|
|
2405
2417
|
i0.ɵɵadvance(2);
|
|
2406
|
-
i0.ɵɵtextInterpolate(
|
|
2418
|
+
i0.ɵɵtextInterpolate(rowData_r6.existencia);
|
|
2407
2419
|
i0.ɵɵadvance(2);
|
|
2408
|
-
i0.ɵɵtextInterpolate(
|
|
2409
|
-
i0.ɵɵadvance(
|
|
2420
|
+
i0.ɵɵtextInterpolate(rowData_r6.unidadCodigo);
|
|
2421
|
+
i0.ɵɵadvance();
|
|
2410
2422
|
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2411
|
-
i0.ɵɵadvance(
|
|
2423
|
+
i0.ɵɵadvance();
|
|
2412
2424
|
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2413
2425
|
i0.ɵɵadvance(2);
|
|
2414
|
-
i0.ɵɵtextInterpolate(
|
|
2426
|
+
i0.ɵɵtextInterpolate(rowData_r6.articulo.codigo);
|
|
2415
2427
|
i0.ɵɵadvance(2);
|
|
2416
|
-
i0.ɵɵtextInterpolate(
|
|
2428
|
+
i0.ɵɵtextInterpolate(rowData_r6.articulo.descripcion);
|
|
2417
2429
|
i0.ɵɵadvance(3);
|
|
2418
2430
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2419
|
-
i0.ɵɵadvance(
|
|
2431
|
+
i0.ɵɵadvance();
|
|
2420
2432
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2421
|
-
i0.ɵɵadvance(
|
|
2433
|
+
i0.ɵɵadvance();
|
|
2422
2434
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2423
|
-
i0.ɵɵadvance(
|
|
2435
|
+
i0.ɵɵadvance();
|
|
2424
2436
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2425
|
-
i0.ɵɵadvance(
|
|
2437
|
+
i0.ɵɵadvance();
|
|
2426
2438
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2427
|
-
i0.ɵɵadvance(
|
|
2439
|
+
i0.ɵɵadvance();
|
|
2428
2440
|
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
2429
2441
|
i0.ɵɵadvance(2);
|
|
2430
|
-
i0.ɵɵproperty("ngForOf",
|
|
2431
|
-
i0.ɵɵadvance(
|
|
2432
|
-
i0.ɵɵproperty("ngForOf",
|
|
2442
|
+
i0.ɵɵproperty("ngForOf", rowData_r6.existenciaUnidades);
|
|
2443
|
+
i0.ɵɵadvance();
|
|
2444
|
+
i0.ɵɵproperty("ngForOf", rowData_r6.articuloClasificadorList);
|
|
2433
2445
|
} }
|
|
2434
2446
|
function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template(rf, ctx) { if (rf & 1) {
|
|
2435
|
-
const
|
|
2447
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
2436
2448
|
i0.ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
|
|
2437
|
-
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(
|
|
2449
|
+
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onEventInformacion($event)); });
|
|
2438
2450
|
i0.ɵɵelementEnd();
|
|
2439
2451
|
} if (rf & 2) {
|
|
2440
|
-
const
|
|
2441
|
-
i0.ɵɵproperty("showModal",
|
|
2452
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
2453
|
+
i0.ɵɵproperty("showModal", ctx_r3.showModalInformacion)("articulo", ctx_r3.articuloSelected);
|
|
2442
2454
|
} }
|
|
2443
|
-
const _c0$1 = function (a0) { return { "width": a0, "min-width": "200px" }; };
|
|
2444
|
-
const _c1 = function () { return [10, 25, 50, 100, 500]; };
|
|
2445
2455
|
class SeleccionaArticuloComponent {
|
|
2446
2456
|
constructor(_stockService, _paginateService, _almacenService) {
|
|
2447
2457
|
this._stockService = _stockService;
|
|
@@ -2533,70 +2543,75 @@ class SeleccionaArticuloComponent {
|
|
|
2533
2543
|
this.showModalInformacion = event.status;
|
|
2534
2544
|
}
|
|
2535
2545
|
/** @nocollapse */ static { this.ɵfac = function SeleccionaArticuloComponent_Factory(t) { return new (t || SeleccionaArticuloComponent)(i0.ɵɵdirectiveInject(StockService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(AlmacenService)); }; }
|
|
2536
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 24, consts: [[3, "
|
|
2537
|
-
i0.ɵɵ
|
|
2538
|
-
i0.ɵɵ
|
|
2546
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 24, consts: [["dt", ""], [3, "visibleChange", "onShow", "onHide", "header", "visible", "maximizable", "baseZIndex", "blockScroll", "minY"], [1, "grid", "grid-fluid"], [1, "col-12", "md:col-6", "lg:col-6"], [2, "display", "flex"], [2, "width", "115px"], ["pInputText", "", 3, "ngModelChange", "change", "ngModel"], ["value", "C"], ["value", "D"], ["value", "CD"], ["value", "CI"], ["type", "text", "pInputText", "", "id", "key", 2, "width", "200px", 3, "ngModelChange", "keypress", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], [2, "width", "100px"], ["for", "almacen"], ["pInputText", "", "disabled", "", "id", "almacen", 2, "width", "200px", 3, "ngModelChange", "change", "ngModel"], [3, "value", 4, "ngFor", "ngForOf"], ["scrollHeight", "400px", "responsiveLayout", "scroll", "selectionMode", "single", 3, "onRowSelect", "value", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "showModal", "articulo", "eventSelection", 4, "ngIf"], [3, "value"], ["translate", "", 2, "width", "80px"], ["translate", "", 2, "width", "70px"], ["translate", "", 2, "width", "40px"], ["style", "width: 50px", "translate", "", 4, "ngIf"], ["style", "width: 40px", "translate", "", 4, "ngIf"], ["translate", "", 2, "width", "120px"], ["style", "width: 80px", "translate", "", 4, "ngIf"], ["style", "width: 80px", "translate", "", 4, "ngFor", "ngForOf"], ["translate", "", 2, "width", "50px"], [3, "pSelectableRow"], ["style", "width: 80px;", "translate", "", 4, "ngIf"], ["style", "width: 80px;", 4, "ngIf"], [2, "width", "70px"], [2, "width", "40px"], ["style", "width: 50px;", 4, "ngIf"], ["style", "width: 40px;", 4, "ngIf"], [2, "width", "80px"], [2, "width", "120px"], ["pButton", "", "type", "button", "icon", "pi pi-eye", 1, "ui-button-raised", "ui-button-primary", 3, "click"], ["class", "row justify-content-between", 4, "ngFor", "ngForOf"], ["style", "width: 80px;", 4, "ngFor", "ngForOf"], [2, "width", "50px"], [1, "row", "justify-content-between"], [1, "col-lg-4"], ["for", ""], [3, "eventSelection", "showModal", "articulo"]], template: function SeleccionaArticuloComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2547
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2548
|
+
i0.ɵɵelementStart(0, "p-dialog", 1);
|
|
2539
2549
|
i0.ɵɵpipe(1, "translate");
|
|
2540
|
-
i0.ɵɵ
|
|
2541
|
-
i0.ɵɵlistener("
|
|
2542
|
-
i0.ɵɵelementStart(
|
|
2550
|
+
i0.ɵɵtwoWayListener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.showArticulos, $event) || (ctx.showArticulos = $event); return i0.ɵɵresetView($event); });
|
|
2551
|
+
i0.ɵɵlistener("onShow", function SeleccionaArticuloComponent_Template_p_dialog_onShow_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosShow()); })("onHide", function SeleccionaArticuloComponent_Template_p_dialog_onHide_0_listener() { i0.ɵɵrestoreView(_r1); ctx.busquedaArticulos = { tipoBusqueda: "" }; return i0.ɵɵresetView(ctx.emitirShowArticulos()); });
|
|
2552
|
+
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "select", 6);
|
|
2553
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.busquedaArticulos.tipoBusqueda, $event) || (ctx.busquedaArticulos.tipoBusqueda = $event); return i0.ɵɵresetView($event); });
|
|
2554
|
+
i0.ɵɵlistener("change", function SeleccionaArticuloComponent_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosVal()); });
|
|
2555
|
+
i0.ɵɵelementStart(7, "option", 7);
|
|
2543
2556
|
i0.ɵɵtext(8, "Codigo");
|
|
2544
2557
|
i0.ɵɵelementEnd();
|
|
2545
|
-
i0.ɵɵelementStart(9, "option",
|
|
2558
|
+
i0.ɵɵelementStart(9, "option", 8);
|
|
2546
2559
|
i0.ɵɵtext(10, "Descripcion");
|
|
2547
2560
|
i0.ɵɵelementEnd();
|
|
2548
|
-
i0.ɵɵelementStart(11, "option",
|
|
2561
|
+
i0.ɵɵelementStart(11, "option", 9);
|
|
2549
2562
|
i0.ɵɵtext(12, "Coincidencia");
|
|
2550
2563
|
i0.ɵɵelementEnd();
|
|
2551
|
-
i0.ɵɵelementStart(13, "option",
|
|
2564
|
+
i0.ɵɵelementStart(13, "option", 10);
|
|
2552
2565
|
i0.ɵɵtext(14, "Igual a");
|
|
2553
2566
|
i0.ɵɵelementEnd()()();
|
|
2554
|
-
i0.ɵɵelementStart(15, "input",
|
|
2555
|
-
i0.ɵɵ
|
|
2567
|
+
i0.ɵɵelementStart(15, "input", 11);
|
|
2568
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.busquedaArticulos.key, $event) || (ctx.busquedaArticulos.key = $event); return i0.ɵɵresetView($event); });
|
|
2569
|
+
i0.ɵɵlistener("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosKey($event)); });
|
|
2556
2570
|
i0.ɵɵelementEnd();
|
|
2557
|
-
i0.ɵɵelementStart(16, "button",
|
|
2558
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { return ctx.obtenerExistenciaArticulos(); });
|
|
2571
|
+
i0.ɵɵelementStart(16, "button", 12);
|
|
2572
|
+
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulos()); });
|
|
2559
2573
|
i0.ɵɵelementEnd()()();
|
|
2560
|
-
i0.ɵɵelementStart(17, "div",
|
|
2574
|
+
i0.ɵɵelementStart(17, "div", 3)(18, "div", 4)(19, "div", 13)(20, "label", 14);
|
|
2561
2575
|
i0.ɵɵtext(21, "Almacen:");
|
|
2562
2576
|
i0.ɵɵelementEnd()();
|
|
2563
|
-
i0.ɵɵelementStart(22, "select",
|
|
2564
|
-
i0.ɵɵ
|
|
2565
|
-
i0.ɵɵ
|
|
2577
|
+
i0.ɵɵelementStart(22, "select", 15);
|
|
2578
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.movimiento.almacen, $event) || (ctx.movimiento.almacen = $event); return i0.ɵɵresetView($event); });
|
|
2579
|
+
i0.ɵɵlistener("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosVal()); });
|
|
2580
|
+
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 16);
|
|
2566
2581
|
i0.ɵɵelementEnd()()()();
|
|
2567
|
-
i0.ɵɵelementStart(24, "p-table",
|
|
2568
|
-
i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { return ctx.filaSeleccionada($event); });
|
|
2569
|
-
i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18);
|
|
2570
|
-
i0.ɵɵtemplate(27, SeleccionaArticuloComponent_ng_template_27_Template, 24, 17, "ng-template", 19);
|
|
2582
|
+
i0.ɵɵelementStart(24, "p-table", 17, 0);
|
|
2583
|
+
i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.filaSeleccionada($event)); });
|
|
2584
|
+
i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18)(27, SeleccionaArticuloComponent_ng_template_27_Template, 24, 17, "ng-template", 19);
|
|
2571
2585
|
i0.ɵɵelementEnd();
|
|
2572
2586
|
i0.ɵɵelementStart(28, "p-paginator", 20);
|
|
2573
|
-
i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { return ctx.pagina($event); });
|
|
2587
|
+
i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pagina($event)); });
|
|
2574
2588
|
i0.ɵɵelementEnd()();
|
|
2575
2589
|
i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
|
|
2576
2590
|
} if (rf & 2) {
|
|
2577
2591
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0$1, ctx.size + "px"));
|
|
2578
2592
|
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 19, "Articulos"));
|
|
2579
|
-
i0.ɵɵ
|
|
2593
|
+
i0.ɵɵtwoWayProperty("visible", ctx.showArticulos);
|
|
2594
|
+
i0.ɵɵproperty("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
|
|
2580
2595
|
i0.ɵɵadvance(6);
|
|
2581
|
-
i0.ɵɵ
|
|
2596
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.busquedaArticulos.tipoBusqueda);
|
|
2582
2597
|
i0.ɵɵadvance(9);
|
|
2583
|
-
i0.ɵɵ
|
|
2598
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.busquedaArticulos.key);
|
|
2584
2599
|
i0.ɵɵadvance(7);
|
|
2585
|
-
i0.ɵɵ
|
|
2586
|
-
i0.ɵɵadvance(
|
|
2600
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.movimiento.almacen);
|
|
2601
|
+
i0.ɵɵadvance();
|
|
2587
2602
|
i0.ɵɵproperty("ngForOf", ctx.almacenList);
|
|
2588
|
-
i0.ɵɵadvance(
|
|
2603
|
+
i0.ɵɵadvance();
|
|
2589
2604
|
i0.ɵɵproperty("value", ctx.articulosList)("scrollable", true);
|
|
2590
2605
|
i0.ɵɵadvance(4);
|
|
2591
2606
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(23, _c1));
|
|
2592
|
-
i0.ɵɵadvance(
|
|
2607
|
+
i0.ɵɵadvance();
|
|
2593
2608
|
i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2594
2609
|
} }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.NgSelectOption, i10.ɵNgSelectMultipleOption, i10.DefaultValueAccessor, i10.SelectControlValueAccessor, i10.NgControlStatus, i10.NgModel, i33.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}"] }); }
|
|
2595
2610
|
}
|
|
2596
|
-
(
|
|
2611
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2597
2612
|
type: Component,
|
|
2598
2613
|
args: [{ selector: 'app-selecciona-articulo', template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"] }]
|
|
2599
|
-
}],
|
|
2614
|
+
}], () => [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }], { configuracion: [{
|
|
2600
2615
|
type: Input
|
|
2601
2616
|
}], showArticulos: [{
|
|
2602
2617
|
type: Input
|
|
@@ -2609,6 +2624,7 @@ class SeleccionaArticuloComponent {
|
|
|
2609
2624
|
}], emitShowArticulos: [{
|
|
2610
2625
|
type: Output
|
|
2611
2626
|
}] }); })();
|
|
2627
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionaArticuloComponent, { className: "SeleccionaArticuloComponent" }); })();
|
|
2612
2628
|
|
|
2613
2629
|
class AcreedorService extends CrudService {
|
|
2614
2630
|
constructor(httpClient) {
|
|
@@ -2618,13 +2634,14 @@ class AcreedorService extends CrudService {
|
|
|
2618
2634
|
/** @nocollapse */ static { this.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
2619
2635
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' }); }
|
|
2620
2636
|
}
|
|
2621
|
-
(
|
|
2637
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
|
|
2622
2638
|
type: Injectable,
|
|
2623
2639
|
args: [{
|
|
2624
2640
|
providedIn: 'root'
|
|
2625
2641
|
}]
|
|
2626
|
-
}],
|
|
2642
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2627
2643
|
|
|
2644
|
+
const _c0 = () => [10, 25, 50, 100, 500];
|
|
2628
2645
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2629
2646
|
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
2630
2647
|
i0.ɵɵtext(2);
|
|
@@ -2670,7 +2687,7 @@ function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf
|
|
|
2670
2687
|
i0.ɵɵpipe(2, "translate");
|
|
2671
2688
|
i0.ɵɵelementEnd();
|
|
2672
2689
|
} if (rf & 2) {
|
|
2673
|
-
i0.ɵɵadvance(
|
|
2690
|
+
i0.ɵɵadvance();
|
|
2674
2691
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
|
|
2675
2692
|
} }
|
|
2676
2693
|
function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -2679,7 +2696,7 @@ function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf
|
|
|
2679
2696
|
i0.ɵɵpipe(2, "translate");
|
|
2680
2697
|
i0.ɵɵelementEnd();
|
|
2681
2698
|
} if (rf & 2) {
|
|
2682
|
-
i0.ɵɵadvance(
|
|
2699
|
+
i0.ɵɵadvance();
|
|
2683
2700
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
|
|
2684
2701
|
} }
|
|
2685
2702
|
function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -2690,8 +2707,7 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2690
2707
|
i0.ɵɵtext(4);
|
|
2691
2708
|
i0.ɵɵelementEnd();
|
|
2692
2709
|
i0.ɵɵelementStart(5, "td");
|
|
2693
|
-
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10);
|
|
2694
|
-
i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
|
|
2710
|
+
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10)(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
|
|
2695
2711
|
i0.ɵɵelementEnd();
|
|
2696
2712
|
i0.ɵɵelementStart(8, "td");
|
|
2697
2713
|
i0.ɵɵtext(9);
|
|
@@ -2704,22 +2720,22 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2704
2720
|
i0.ɵɵpipe(14, "date");
|
|
2705
2721
|
i0.ɵɵelementEnd()();
|
|
2706
2722
|
} if (rf & 2) {
|
|
2707
|
-
const
|
|
2708
|
-
i0.ɵɵproperty("pSelectableRow",
|
|
2723
|
+
const acreedor_r1 = ctx.$implicit;
|
|
2724
|
+
i0.ɵɵproperty("pSelectableRow", acreedor_r1);
|
|
2709
2725
|
i0.ɵɵadvance(2);
|
|
2710
|
-
i0.ɵɵtextInterpolate(
|
|
2726
|
+
i0.ɵɵtextInterpolate(acreedor_r1.descripcionRazonSocial);
|
|
2711
2727
|
i0.ɵɵadvance(2);
|
|
2712
|
-
i0.ɵɵtextInterpolate(
|
|
2728
|
+
i0.ɵɵtextInterpolate(acreedor_r1.descripcionRfc);
|
|
2713
2729
|
i0.ɵɵadvance(2);
|
|
2714
|
-
i0.ɵɵproperty("ngIf",
|
|
2715
|
-
i0.ɵɵadvance(
|
|
2716
|
-
i0.ɵɵproperty("ngIf",
|
|
2730
|
+
i0.ɵɵproperty("ngIf", acreedor_r1.personaMoral);
|
|
2731
|
+
i0.ɵɵadvance();
|
|
2732
|
+
i0.ɵɵproperty("ngIf", acreedor_r1.personaFisica);
|
|
2717
2733
|
i0.ɵɵadvance(2);
|
|
2718
|
-
i0.ɵɵtextInterpolate(
|
|
2734
|
+
i0.ɵɵtextInterpolate(acreedor_r1.atrasoDiasEntrega);
|
|
2719
2735
|
i0.ɵɵadvance(2);
|
|
2720
|
-
i0.ɵɵtextInterpolate(
|
|
2736
|
+
i0.ɵɵtextInterpolate(acreedor_r1.limiteCredito);
|
|
2721
2737
|
i0.ɵɵadvance(2);
|
|
2722
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8,
|
|
2738
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r1.fechaUltimaCompra, "dd/MM/yyyy"));
|
|
2723
2739
|
} }
|
|
2724
2740
|
function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
2725
2741
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -2727,12 +2743,11 @@ function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
2727
2743
|
i0.ɵɵpipe(3, "translate");
|
|
2728
2744
|
i0.ɵɵelementEnd()();
|
|
2729
2745
|
} if (rf & 2) {
|
|
2730
|
-
i0.ɵɵadvance(
|
|
2746
|
+
i0.ɵɵadvance();
|
|
2731
2747
|
i0.ɵɵattribute("colspan", 6);
|
|
2732
|
-
i0.ɵɵadvance(
|
|
2748
|
+
i0.ɵɵadvance();
|
|
2733
2749
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
|
|
2734
2750
|
} }
|
|
2735
|
-
const _c0 = function () { return [10, 25, 50, 100, 500]; };
|
|
2736
2751
|
class SelectAcreedorComponent {
|
|
2737
2752
|
constructor(acreedorService, paginanateService, translate) {
|
|
2738
2753
|
this.acreedorService = acreedorService;
|
|
@@ -2772,46 +2787,50 @@ class SelectAcreedorComponent {
|
|
|
2772
2787
|
this.visible = false;
|
|
2773
2788
|
}
|
|
2774
2789
|
/** @nocollapse */ static { this.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
|
|
2775
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars:
|
|
2790
|
+
/** @nocollapse */ static { this.ɵ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, "visibleChange", "onHide", "onShow", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", "responsiveLayout", "scroll", 3, "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2776
2791
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2777
|
-
i0.ɵɵ
|
|
2792
|
+
i0.ɵɵtwoWayListener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
|
|
2793
|
+
i0.ɵɵlistener("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2778
2794
|
i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
|
|
2779
|
-
i0.ɵɵlistener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2780
2795
|
i0.ɵɵpipe(3, "translate");
|
|
2796
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
|
|
2797
|
+
i0.ɵɵlistener("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2781
2798
|
i0.ɵɵelementEnd();
|
|
2782
2799
|
i0.ɵɵelementStart(4, "button", 3);
|
|
2783
2800
|
i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2784
2801
|
i0.ɵɵelementEnd()();
|
|
2785
2802
|
i0.ɵɵelementStart(5, "p-table", 4);
|
|
2786
|
-
i0.ɵɵ
|
|
2787
|
-
i0.ɵɵ
|
|
2788
|
-
i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6);
|
|
2789
|
-
i0.ɵɵtemplate(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
|
|
2803
|
+
i0.ɵɵtwoWayListener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.acreedorSeleccionado, $event) || (ctx.acreedorSeleccionado = $event); return $event; });
|
|
2804
|
+
i0.ɵɵlistener("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
|
|
2805
|
+
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5)(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6)(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
|
|
2790
2806
|
i0.ɵɵelementEnd();
|
|
2791
2807
|
i0.ɵɵelementStart(9, "p-paginator", 8);
|
|
2792
2808
|
i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
2793
2809
|
i0.ɵɵelementEnd()();
|
|
2794
2810
|
} if (rf & 2) {
|
|
2795
|
-
i0.ɵɵ
|
|
2811
|
+
i0.ɵɵtwoWayProperty("visible", ctx.visible);
|
|
2796
2812
|
i0.ɵɵadvance(2);
|
|
2797
|
-
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3,
|
|
2798
|
-
i0.ɵɵ
|
|
2813
|
+
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
|
|
2814
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
|
|
2799
2815
|
i0.ɵɵadvance(3);
|
|
2800
|
-
i0.ɵɵproperty("value", ctx.acreedores)
|
|
2816
|
+
i0.ɵɵproperty("value", ctx.acreedores);
|
|
2817
|
+
i0.ɵɵtwoWayProperty("selection", ctx.acreedorSeleccionado);
|
|
2818
|
+
i0.ɵɵproperty("scrollable", true);
|
|
2801
2819
|
i0.ɵɵadvance(4);
|
|
2802
|
-
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(
|
|
2820
|
+
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
|
|
2803
2821
|
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i4.DatePipe, i3$1.TranslatePipe], encapsulation: 2 }); }
|
|
2804
2822
|
}
|
|
2805
|
-
(
|
|
2823
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
2806
2824
|
type: Component,
|
|
2807
2825
|
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 responsiveLayout=\"scroll\" \n >\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>" }]
|
|
2808
|
-
}],
|
|
2826
|
+
}], () => [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
|
|
2809
2827
|
type: Input
|
|
2810
2828
|
}], acreedorSeleccionado: [{
|
|
2811
2829
|
type: Input
|
|
2812
2830
|
}], select: [{
|
|
2813
2831
|
type: Output
|
|
2814
2832
|
}] }); })();
|
|
2833
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectAcreedorComponent, { className: "SelectAcreedorComponent" }); })();
|
|
2815
2834
|
|
|
2816
2835
|
const components = [
|
|
2817
2836
|
LoadingComponent,
|
|
@@ -2884,7 +2903,7 @@ class CoreLibModule {
|
|
|
2884
2903
|
}
|
|
2885
2904
|
}), i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); }
|
|
2886
2905
|
}
|
|
2887
|
-
(
|
|
2906
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoreLibModule, [{
|
|
2888
2907
|
type: NgModule,
|
|
2889
2908
|
args: [{
|
|
2890
2909
|
declarations: [
|
|
@@ -2943,12 +2962,12 @@ class ControlAccesoService {
|
|
|
2943
2962
|
/** @nocollapse */ static { this.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(i0.ɵɵinject(AuthService)); }; }
|
|
2944
2963
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' }); }
|
|
2945
2964
|
}
|
|
2946
|
-
(
|
|
2965
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ControlAccesoService, [{
|
|
2947
2966
|
type: Injectable,
|
|
2948
2967
|
args: [{
|
|
2949
2968
|
providedIn: 'root'
|
|
2950
2969
|
}]
|
|
2951
|
-
}],
|
|
2970
|
+
}], () => [{ type: AuthService }], { cambioAcciones: [{
|
|
2952
2971
|
type: Output
|
|
2953
2972
|
}], changeDetalleUsuario: [{
|
|
2954
2973
|
type: Output
|
|
@@ -2992,12 +3011,12 @@ class InitService {
|
|
|
2992
3011
|
/** @nocollapse */ static { this.ɵfac = function InitService_Factory(t) { return new (t || InitService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(AuthService)); }; }
|
|
2993
3012
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' }); }
|
|
2994
3013
|
}
|
|
2995
|
-
(
|
|
3014
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InitService, [{
|
|
2996
3015
|
type: Injectable,
|
|
2997
3016
|
args: [{
|
|
2998
3017
|
providedIn: 'root'
|
|
2999
3018
|
}]
|
|
3000
|
-
}],
|
|
3019
|
+
}], () => [{ type: i1.HttpClient }, { type: AuthService }], null); })();
|
|
3001
3020
|
|
|
3002
3021
|
class MessageService {
|
|
3003
3022
|
constructor(toastr) {
|
|
@@ -3067,12 +3086,12 @@ class MessageService {
|
|
|
3067
3086
|
/** @nocollapse */ static { this.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0.ɵɵinject(i1$1.ToastrService)); }; }
|
|
3068
3087
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' }); }
|
|
3069
3088
|
}
|
|
3070
|
-
(
|
|
3089
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MessageService, [{
|
|
3071
3090
|
type: Injectable,
|
|
3072
3091
|
args: [{
|
|
3073
3092
|
providedIn: 'root'
|
|
3074
3093
|
}]
|
|
3075
|
-
}],
|
|
3094
|
+
}], () => [{ type: i1$1.ToastrService }], null); })();
|
|
3076
3095
|
|
|
3077
3096
|
class PersonaMoralService extends CrudService {
|
|
3078
3097
|
constructor(http) {
|
|
@@ -3081,12 +3100,12 @@ class PersonaMoralService extends CrudService {
|
|
|
3081
3100
|
/** @nocollapse */ static { this.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3082
3101
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' }); }
|
|
3083
3102
|
}
|
|
3084
|
-
(
|
|
3103
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaMoralService, [{
|
|
3085
3104
|
type: Injectable,
|
|
3086
3105
|
args: [{
|
|
3087
3106
|
providedIn: 'root'
|
|
3088
3107
|
}]
|
|
3089
|
-
}],
|
|
3108
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3090
3109
|
|
|
3091
3110
|
class CanActivateGuard {
|
|
3092
3111
|
constructor(controlAccesoService) {
|
|
@@ -3103,12 +3122,12 @@ class CanActivateGuard {
|
|
|
3103
3122
|
/** @nocollapse */ static { this.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(i0.ɵɵinject(ControlAccesoService)); }; }
|
|
3104
3123
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' }); }
|
|
3105
3124
|
}
|
|
3106
|
-
(
|
|
3125
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CanActivateGuard, [{
|
|
3107
3126
|
type: Injectable,
|
|
3108
3127
|
args: [{
|
|
3109
3128
|
providedIn: 'root'
|
|
3110
3129
|
}]
|
|
3111
|
-
}],
|
|
3130
|
+
}], () => [{ type: ControlAccesoService }], null); })();
|
|
3112
3131
|
|
|
3113
3132
|
class CatalogoAdicionalService extends CrudService {
|
|
3114
3133
|
constructor(httpClient) {
|
|
@@ -3118,12 +3137,12 @@ class CatalogoAdicionalService extends CrudService {
|
|
|
3118
3137
|
/** @nocollapse */ static { this.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3119
3138
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' }); }
|
|
3120
3139
|
}
|
|
3121
|
-
(
|
|
3140
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoAdicionalService, [{
|
|
3122
3141
|
type: Injectable,
|
|
3123
3142
|
args: [{
|
|
3124
3143
|
providedIn: 'root'
|
|
3125
3144
|
}]
|
|
3126
|
-
}],
|
|
3145
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3127
3146
|
|
|
3128
3147
|
class Authenticated {
|
|
3129
3148
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -3187,12 +3206,12 @@ class Authenticated {
|
|
|
3187
3206
|
/** @nocollapse */ static { this.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$3.Router)); }; }
|
|
3188
3207
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' }); }
|
|
3189
3208
|
}
|
|
3190
|
-
(
|
|
3209
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Authenticated, [{
|
|
3191
3210
|
type: Injectable,
|
|
3192
3211
|
args: [{
|
|
3193
3212
|
providedIn: 'root'
|
|
3194
3213
|
}]
|
|
3195
|
-
}],
|
|
3214
|
+
}], () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }], null); })();
|
|
3196
3215
|
|
|
3197
3216
|
class VersionCheckService {
|
|
3198
3217
|
constructor(http) {
|
|
@@ -3235,12 +3254,12 @@ class VersionCheckService {
|
|
|
3235
3254
|
/** @nocollapse */ static { this.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3236
3255
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' }); }
|
|
3237
3256
|
}
|
|
3238
|
-
(
|
|
3257
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionCheckService, [{
|
|
3239
3258
|
type: Injectable,
|
|
3240
3259
|
args: [{
|
|
3241
3260
|
providedIn: 'root'
|
|
3242
3261
|
}]
|
|
3243
|
-
}],
|
|
3262
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3244
3263
|
|
|
3245
3264
|
class AgenteService extends CrudService {
|
|
3246
3265
|
constructor(httpClient) {
|
|
@@ -3262,12 +3281,12 @@ class AgenteService extends CrudService {
|
|
|
3262
3281
|
/** @nocollapse */ static { this.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3263
3282
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' }); }
|
|
3264
3283
|
}
|
|
3265
|
-
(
|
|
3284
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgenteService, [{
|
|
3266
3285
|
type: Injectable,
|
|
3267
3286
|
args: [{
|
|
3268
3287
|
providedIn: 'root'
|
|
3269
3288
|
}]
|
|
3270
|
-
}],
|
|
3289
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3271
3290
|
|
|
3272
3291
|
class Almacen {
|
|
3273
3292
|
constructor() { }
|
|
@@ -3291,12 +3310,12 @@ class BancoService extends CrudService {
|
|
|
3291
3310
|
/** @nocollapse */ static { this.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3292
3311
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' }); }
|
|
3293
3312
|
}
|
|
3294
|
-
(
|
|
3313
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BancoService, [{
|
|
3295
3314
|
type: Injectable,
|
|
3296
3315
|
args: [{
|
|
3297
3316
|
providedIn: 'root'
|
|
3298
3317
|
}]
|
|
3299
|
-
}],
|
|
3318
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3300
3319
|
|
|
3301
3320
|
class CatalogoTipo {
|
|
3302
3321
|
constructor() { }
|
|
@@ -3309,12 +3328,12 @@ class CatalogoTipoService extends CrudService {
|
|
|
3309
3328
|
/** @nocollapse */ static { this.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3310
3329
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' }); }
|
|
3311
3330
|
}
|
|
3312
|
-
(
|
|
3331
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoTipoService, [{
|
|
3313
3332
|
type: Injectable,
|
|
3314
3333
|
args: [{
|
|
3315
3334
|
providedIn: 'root'
|
|
3316
3335
|
}]
|
|
3317
|
-
}],
|
|
3336
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3318
3337
|
|
|
3319
3338
|
class ClasificadorTipoService extends CrudService {
|
|
3320
3339
|
constructor(http) {
|
|
@@ -3323,12 +3342,12 @@ class ClasificadorTipoService extends CrudService {
|
|
|
3323
3342
|
/** @nocollapse */ static { this.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3324
3343
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' }); }
|
|
3325
3344
|
}
|
|
3326
|
-
(
|
|
3345
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClasificadorTipoService, [{
|
|
3327
3346
|
type: Injectable,
|
|
3328
3347
|
args: [{
|
|
3329
3348
|
providedIn: 'root'
|
|
3330
3349
|
}]
|
|
3331
|
-
}],
|
|
3350
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3332
3351
|
|
|
3333
3352
|
class ClaveMovimiento {
|
|
3334
3353
|
constructor() { }
|
|
@@ -3341,12 +3360,12 @@ class ClaveMovimientoService extends CrudService {
|
|
|
3341
3360
|
/** @nocollapse */ static { this.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3342
3361
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' }); }
|
|
3343
3362
|
}
|
|
3344
|
-
(
|
|
3363
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
3345
3364
|
type: Injectable,
|
|
3346
3365
|
args: [{
|
|
3347
3366
|
providedIn: 'root'
|
|
3348
3367
|
}]
|
|
3349
|
-
}],
|
|
3368
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3350
3369
|
|
|
3351
3370
|
class ClienteCuentaBanco {
|
|
3352
3371
|
constructor() {
|
|
@@ -3379,12 +3398,12 @@ class ClienteCuentaBancoService extends CrudService {
|
|
|
3379
3398
|
/** @nocollapse */ static { this.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3380
3399
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' }); }
|
|
3381
3400
|
}
|
|
3382
|
-
(
|
|
3401
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteCuentaBancoService, [{
|
|
3383
3402
|
type: Injectable,
|
|
3384
3403
|
args: [{
|
|
3385
3404
|
providedIn: 'root'
|
|
3386
3405
|
}]
|
|
3387
|
-
}],
|
|
3406
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3388
3407
|
|
|
3389
3408
|
class ClienteFleteService extends CrudService {
|
|
3390
3409
|
constructor(httpClient) {
|
|
@@ -3398,12 +3417,12 @@ class ClienteFleteService extends CrudService {
|
|
|
3398
3417
|
/** @nocollapse */ static { this.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3399
3418
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' }); }
|
|
3400
3419
|
}
|
|
3401
|
-
(
|
|
3420
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteFleteService, [{
|
|
3402
3421
|
type: Injectable,
|
|
3403
3422
|
args: [{
|
|
3404
3423
|
providedIn: 'root'
|
|
3405
3424
|
}]
|
|
3406
|
-
}],
|
|
3425
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3407
3426
|
|
|
3408
3427
|
class TipoContacto {
|
|
3409
3428
|
constructor() {
|
|
@@ -3424,12 +3443,12 @@ class DatoContactoService extends CrudService {
|
|
|
3424
3443
|
/** @nocollapse */ static { this.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3425
3444
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' }); }
|
|
3426
3445
|
}
|
|
3427
|
-
(
|
|
3446
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatoContactoService, [{
|
|
3428
3447
|
type: Injectable,
|
|
3429
3448
|
args: [{
|
|
3430
3449
|
providedIn: 'root'
|
|
3431
3450
|
}]
|
|
3432
|
-
}],
|
|
3451
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3433
3452
|
|
|
3434
3453
|
class DatoDireccionService extends CrudService {
|
|
3435
3454
|
constructor(http) {
|
|
@@ -3438,12 +3457,12 @@ class DatoDireccionService extends CrudService {
|
|
|
3438
3457
|
/** @nocollapse */ static { this.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3439
3458
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' }); }
|
|
3440
3459
|
}
|
|
3441
|
-
(
|
|
3460
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatoDireccionService, [{
|
|
3442
3461
|
type: Injectable,
|
|
3443
3462
|
args: [{
|
|
3444
3463
|
providedIn: 'root'
|
|
3445
3464
|
}]
|
|
3446
|
-
}],
|
|
3465
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3447
3466
|
|
|
3448
3467
|
class Departamento {
|
|
3449
3468
|
constructor() {
|
|
@@ -3457,12 +3476,12 @@ class DepartamentoService extends CrudService {
|
|
|
3457
3476
|
/** @nocollapse */ static { this.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3458
3477
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' }); }
|
|
3459
3478
|
}
|
|
3460
|
-
(
|
|
3479
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DepartamentoService, [{
|
|
3461
3480
|
type: Injectable,
|
|
3462
3481
|
args: [{
|
|
3463
3482
|
providedIn: 'root'
|
|
3464
3483
|
}]
|
|
3465
|
-
}],
|
|
3484
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3466
3485
|
|
|
3467
3486
|
class FormaPago {
|
|
3468
3487
|
constructor() { }
|
|
@@ -3494,12 +3513,12 @@ class EmpresaService extends CrudService {
|
|
|
3494
3513
|
/** @nocollapse */ static { this.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3495
3514
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' }); }
|
|
3496
3515
|
}
|
|
3497
|
-
(
|
|
3516
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmpresaService, [{
|
|
3498
3517
|
type: Injectable,
|
|
3499
3518
|
args: [{
|
|
3500
3519
|
providedIn: 'root'
|
|
3501
3520
|
}]
|
|
3502
|
-
}],
|
|
3521
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3503
3522
|
|
|
3504
3523
|
class FleteService extends CrudService {
|
|
3505
3524
|
constructor(httpClient) {
|
|
@@ -3509,12 +3528,12 @@ class FleteService extends CrudService {
|
|
|
3509
3528
|
/** @nocollapse */ static { this.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3510
3529
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' }); }
|
|
3511
3530
|
}
|
|
3512
|
-
(
|
|
3531
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FleteService, [{
|
|
3513
3532
|
type: Injectable,
|
|
3514
3533
|
args: [{
|
|
3515
3534
|
providedIn: 'root'
|
|
3516
3535
|
}]
|
|
3517
|
-
}],
|
|
3536
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3518
3537
|
|
|
3519
3538
|
class FormaPagoService extends CrudService {
|
|
3520
3539
|
constructor(http) {
|
|
@@ -3523,12 +3542,12 @@ class FormaPagoService extends CrudService {
|
|
|
3523
3542
|
/** @nocollapse */ static { this.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3524
3543
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" }); }
|
|
3525
3544
|
}
|
|
3526
|
-
(
|
|
3545
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormaPagoService, [{
|
|
3527
3546
|
type: Injectable,
|
|
3528
3547
|
args: [{
|
|
3529
3548
|
providedIn: "root"
|
|
3530
3549
|
}]
|
|
3531
|
-
}],
|
|
3550
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3532
3551
|
|
|
3533
3552
|
class Moneda {
|
|
3534
3553
|
constructor() { }
|
|
@@ -3542,12 +3561,12 @@ class MonedaService extends CrudService {
|
|
|
3542
3561
|
/** @nocollapse */ static { this.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3543
3562
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' }); }
|
|
3544
3563
|
}
|
|
3545
|
-
(
|
|
3564
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MonedaService, [{
|
|
3546
3565
|
type: Injectable,
|
|
3547
3566
|
args: [{
|
|
3548
3567
|
providedIn: 'root'
|
|
3549
3568
|
}]
|
|
3550
|
-
}],
|
|
3569
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3551
3570
|
|
|
3552
3571
|
class EstadoCivil {
|
|
3553
3572
|
constructor() { }
|
|
@@ -3571,12 +3590,12 @@ class PersonaFisicaService extends CrudService {
|
|
|
3571
3590
|
/** @nocollapse */ static { this.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3572
3591
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" }); }
|
|
3573
3592
|
}
|
|
3574
|
-
(
|
|
3593
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaFisicaService, [{
|
|
3575
3594
|
type: Injectable,
|
|
3576
3595
|
args: [{
|
|
3577
3596
|
providedIn: "root"
|
|
3578
3597
|
}]
|
|
3579
|
-
}],
|
|
3598
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3580
3599
|
|
|
3581
3600
|
class ProveedorCuentaBanco {
|
|
3582
3601
|
constructor() {
|
|
@@ -3605,12 +3624,12 @@ class ProveedorCuentaBancoService extends CrudService {
|
|
|
3605
3624
|
/** @nocollapse */ static { this.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3606
3625
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' }); }
|
|
3607
3626
|
}
|
|
3608
|
-
(
|
|
3627
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorCuentaBancoService, [{
|
|
3609
3628
|
type: Injectable,
|
|
3610
3629
|
args: [{
|
|
3611
3630
|
providedIn: 'root'
|
|
3612
3631
|
}]
|
|
3613
|
-
}],
|
|
3632
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3614
3633
|
|
|
3615
3634
|
class ProveedorFleteService extends CrudService {
|
|
3616
3635
|
constructor(httpClient) {
|
|
@@ -3624,12 +3643,12 @@ class ProveedorFleteService extends CrudService {
|
|
|
3624
3643
|
/** @nocollapse */ static { this.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3625
3644
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' }); }
|
|
3626
3645
|
}
|
|
3627
|
-
(
|
|
3646
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorFleteService, [{
|
|
3628
3647
|
type: Injectable,
|
|
3629
3648
|
args: [{
|
|
3630
3649
|
providedIn: 'root'
|
|
3631
3650
|
}]
|
|
3632
|
-
}],
|
|
3651
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3633
3652
|
|
|
3634
3653
|
class ClaveAumentoDisminucionService extends CrudService {
|
|
3635
3654
|
constructor(http) {
|
|
@@ -3638,12 +3657,12 @@ class ClaveAumentoDisminucionService extends CrudService {
|
|
|
3638
3657
|
/** @nocollapse */ static { this.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3639
3658
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' }); }
|
|
3640
3659
|
}
|
|
3641
|
-
(
|
|
3660
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
|
|
3642
3661
|
type: Injectable,
|
|
3643
3662
|
args: [{
|
|
3644
3663
|
providedIn: 'root'
|
|
3645
3664
|
}]
|
|
3646
|
-
}],
|
|
3665
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3647
3666
|
|
|
3648
3667
|
class SerieDocumentoService extends CrudService {
|
|
3649
3668
|
constructor(httpClient) {
|
|
@@ -3659,12 +3678,12 @@ class SerieDocumentoService extends CrudService {
|
|
|
3659
3678
|
/** @nocollapse */ static { this.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3660
3679
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' }); }
|
|
3661
3680
|
}
|
|
3662
|
-
(
|
|
3681
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SerieDocumentoService, [{
|
|
3663
3682
|
type: Injectable,
|
|
3664
3683
|
args: [{
|
|
3665
3684
|
providedIn: 'root'
|
|
3666
3685
|
}]
|
|
3667
|
-
}],
|
|
3686
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3668
3687
|
|
|
3669
3688
|
class SerieDocumento {
|
|
3670
3689
|
constructor() { }
|
|
@@ -3677,12 +3696,12 @@ class TipoContactoService extends CrudService {
|
|
|
3677
3696
|
/** @nocollapse */ static { this.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3678
3697
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' }); }
|
|
3679
3698
|
}
|
|
3680
|
-
(
|
|
3699
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TipoContactoService, [{
|
|
3681
3700
|
type: Injectable,
|
|
3682
3701
|
args: [{
|
|
3683
3702
|
providedIn: 'root'
|
|
3684
3703
|
}]
|
|
3685
|
-
}],
|
|
3704
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3686
3705
|
|
|
3687
3706
|
class Ubicacion {
|
|
3688
3707
|
constructor() { }
|
|
@@ -3695,12 +3714,12 @@ class UbicacionService extends CrudService {
|
|
|
3695
3714
|
/** @nocollapse */ static { this.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3696
3715
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' }); }
|
|
3697
3716
|
}
|
|
3698
|
-
(
|
|
3717
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UbicacionService, [{
|
|
3699
3718
|
type: Injectable,
|
|
3700
3719
|
args: [{
|
|
3701
3720
|
providedIn: 'root'
|
|
3702
3721
|
}]
|
|
3703
|
-
}],
|
|
3722
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3704
3723
|
|
|
3705
3724
|
class TipoCatalogo {
|
|
3706
3725
|
static { this.ARTICULO = 2; }
|
|
@@ -3719,12 +3738,12 @@ class AcreedorCuentaContableService extends CrudService {
|
|
|
3719
3738
|
/** @nocollapse */ static { this.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3720
3739
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' }); }
|
|
3721
3740
|
}
|
|
3722
|
-
(
|
|
3741
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorCuentaContableService, [{
|
|
3723
3742
|
type: Injectable,
|
|
3724
3743
|
args: [{
|
|
3725
3744
|
providedIn: 'root'
|
|
3726
3745
|
}]
|
|
3727
|
-
}],
|
|
3746
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3728
3747
|
|
|
3729
3748
|
class CuentaContableModel {
|
|
3730
3749
|
constructor() {
|