visorus-erp-core 12.0.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/acreedor/select/select-acreedor.component.mjs +205 -0
- package/esm2020/lib/components/caja/session-create/session-create.component.mjs +177 -0
- package/esm2020/lib/components/cliente/select/select-cliente.component.mjs +215 -0
- package/esm2020/lib/components/error404/error404.component.mjs +21 -0
- package/esm2020/lib/components/loading/loading.component.mjs +48 -0
- package/{esm2015/lib/components/loading-screen/loading-screen.component.js → esm2020/lib/components/loading-screen/loading-screen.component.mjs} +5 -19
- package/esm2020/lib/components/login-modal/login-modal.component.mjs +152 -0
- package/{esm2015/lib/components/pdfModal/pdf-modal.component.js → esm2020/lib/components/pdfModal/pdf-modal.component.mjs} +2 -6
- package/esm2020/lib/components/proveedor/select/select-proveedor.component.mjs +138 -0
- package/esm2020/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +143 -0
- package/esm2020/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +493 -0
- package/esm2020/lib/contabilidad/componentes/cclista/cclista.component.mjs +262 -0
- package/{esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js → esm2020/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs} +4 -11
- package/fesm2015/visorus-erp-core.mjs +4066 -0
- package/fesm2015/visorus-erp-core.mjs.map +1 -0
- package/{fesm2015/visorus-erp-core.js → fesm2020/visorus-erp-core.mjs} +115 -303
- package/fesm2020/visorus-erp-core.mjs.map +1 -0
- package/package.json +25 -12
- package/bundles/visorus-erp-core.umd.js +0 -5077
- package/bundles/visorus-erp-core.umd.js.map +0 -1
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +0 -217
- package/esm2015/lib/components/caja/session-create/session-create.component.js +0 -194
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +0 -227
- package/esm2015/lib/components/error404/error404.component.js +0 -35
- package/esm2015/lib/components/loading/loading.component.js +0 -66
- package/esm2015/lib/components/login-modal/login-modal.component.js +0 -180
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +0 -148
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +0 -154
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +0 -522
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +0 -274
- package/fesm2015/visorus-erp-core.js.map +0 -1
- /package/{esm2015/lib/app.module.js → esm2020/lib/app.module.mjs} +0 -0
- /package/{esm2015/lib/components/acreedor/services/acreedor.service.js → esm2020/lib/components/acreedor/services/acreedor.service.mjs} +0 -0
- /package/{esm2015/lib/components/acreedor/services/acreedorCuentaContable.js → esm2020/lib/components/acreedor/services/acreedorCuentaContable.mjs} +0 -0
- /package/{esm2015/lib/components/agente/models/Agente.js → esm2020/lib/components/agente/models/Agente.mjs} +0 -0
- /package/{esm2015/lib/components/agente/services/agente.service.js → esm2020/lib/components/agente/services/agente.service.mjs} +0 -0
- /package/{esm2015/lib/components/almacen/models/Almacen.js → esm2020/lib/components/almacen/models/Almacen.mjs} +0 -0
- /package/{esm2015/lib/components/almacen/services/almacen.service.js → esm2020/lib/components/almacen/services/almacen.service.mjs} +0 -0
- /package/{esm2015/lib/components/banco/models/Banco.js → esm2020/lib/components/banco/models/Banco.mjs} +0 -0
- /package/{esm2015/lib/components/banco/services/banco.service.js → esm2020/lib/components/banco/services/banco.service.mjs} +0 -0
- /package/{esm2015/lib/components/caja/sessionCaja.service.js → esm2020/lib/components/caja/sessionCaja.service.mjs} +0 -0
- /package/{esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js → esm2020/lib/components/catalogoTipo/models/CatalogoTipo.mjs} +0 -0
- /package/{esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js → esm2020/lib/components/catalogoTipo/services/catalogoTipo.service.mjs} +0 -0
- /package/{esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js → esm2020/lib/components/clasificadorTipo/models/ClasificadorTipo.mjs} +0 -0
- /package/{esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js → esm2020/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs} +0 -0
- /package/{esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js → esm2020/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs} +0 -0
- /package/{esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js → esm2020/lib/components/claveMovimiento/models/ClaveMovimiento.mjs} +0 -0
- /package/{esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js → esm2020/lib/components/claveMovimiento/services/claveMovimiento.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/Cliente.js → esm2020/lib/components/cliente/models/Cliente.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/ClienteCuentaBanco.js → esm2020/lib/components/cliente/models/ClienteCuentaBanco.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/ClienteFlete.js → esm2020/lib/components/cliente/models/ClienteFlete.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/cliente.service.js → esm2020/lib/components/cliente/services/cliente.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js → esm2020/lib/components/cliente/services/clienteCuentaBanco.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/clienteFlete.service.js → esm2020/lib/components/cliente/services/clienteFlete.service.mjs} +0 -0
- /package/{esm2015/lib/components/contacto/models/DatoContacto.js → esm2020/lib/components/contacto/models/DatoContacto.mjs} +0 -0
- /package/{esm2015/lib/components/contacto/services/datoContacto.service.js → esm2020/lib/components/contacto/services/datoContacto.service.mjs} +0 -0
- /package/{esm2015/lib/components/dato-direccion/models/DatoDireccion.js → esm2020/lib/components/dato-direccion/models/DatoDireccion.mjs} +0 -0
- /package/{esm2015/lib/components/dato-direccion/services/datoDireccion.service.js → esm2020/lib/components/dato-direccion/services/datoDireccion.service.mjs} +0 -0
- /package/{esm2015/lib/components/departamento/models/Departamento.js → esm2020/lib/components/departamento/models/Departamento.mjs} +0 -0
- /package/{esm2015/lib/components/departamento/services/departamento.service.js → esm2020/lib/components/departamento/services/departamento.service.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js → esm2020/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/models/Empresa.js → esm2020/lib/components/empresa/models/Empresa.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/services/empresa.service.js → esm2020/lib/components/empresa/services/empresa.service.mjs} +0 -0
- /package/{esm2015/lib/components/flete/models/Flete.js → esm2020/lib/components/flete/models/Flete.mjs} +0 -0
- /package/{esm2015/lib/components/flete/services/flete.service.js → esm2020/lib/components/flete/services/flete.service.mjs} +0 -0
- /package/{esm2015/lib/components/formaPago/models/FormaPago.js → esm2020/lib/components/formaPago/models/FormaPago.mjs} +0 -0
- /package/{esm2015/lib/components/formaPago/services/FormaPago.service.js → esm2020/lib/components/formaPago/services/FormaPago.service.mjs} +0 -0
- /package/{esm2015/lib/components/loading/loading.service.js → esm2020/lib/components/loading/loading.service.mjs} +0 -0
- /package/{esm2015/lib/components/loading-screen/loading-screen.service.js → esm2020/lib/components/loading-screen/loading-screen.service.mjs} +0 -0
- /package/{esm2015/lib/components/login-modal/login-modal.service.js → esm2020/lib/components/login-modal/login-modal.service.mjs} +0 -0
- /package/{esm2015/lib/components/moneda/models/Moneda.js → esm2020/lib/components/moneda/models/Moneda.mjs} +0 -0
- /package/{esm2015/lib/components/moneda/services/moneda.service.js → esm2020/lib/components/moneda/services/moneda.service.mjs} +0 -0
- /package/{esm2015/lib/components/pdfModal/pdf-modal.service.js → esm2020/lib/components/pdfModal/pdf-modal.service.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/EstadoCivil.js → esm2020/lib/components/persona-fisica/models/EstadoCivil.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/Genero.js → esm2020/lib/components/persona-fisica/models/Genero.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/Persona.js → esm2020/lib/components/persona-fisica/models/Persona.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/PersonaFisica.js → esm2020/lib/components/persona-fisica/models/PersonaFisica.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/services/personaFisica.service.js → esm2020/lib/components/persona-fisica/services/personaFisica.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/Proveedor.js → esm2020/lib/components/proveedor/models/Proveedor.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js → esm2020/lib/components/proveedor/models/ProveedorCuentaBanco.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/ProveedorFlete.js → esm2020/lib/components/proveedor/models/ProveedorFlete.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedor.service.js → esm2020/lib/components/proveedor/services/proveedor.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js → esm2020/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedorFlete.service.js → esm2020/lib/components/proveedor/services/proveedorFlete.service.mjs} +0 -0
- /package/{esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js → esm2020/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs} +0 -0
- /package/{esm2015/lib/components/selecciona-articulo/stock.service.js → esm2020/lib/components/selecciona-articulo/stock.service.mjs} +0 -0
- /package/{esm2015/lib/components/serieDocumento/models/SerieDocumento.js → esm2020/lib/components/serieDocumento/models/SerieDocumento.mjs} +0 -0
- /package/{esm2015/lib/components/serieDocumento/services/serieDocumento.service.js → esm2020/lib/components/serieDocumento/services/serieDocumento.service.mjs} +0 -0
- /package/{esm2015/lib/components/tipo-contacto/models/TipoContacto.js → esm2020/lib/components/tipo-contacto/models/TipoContacto.mjs} +0 -0
- /package/{esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js → esm2020/lib/components/tipo-contacto/services/tipoContacto.service.mjs} +0 -0
- /package/{esm2015/lib/components/ubicacion/models/Ubicacion.js → esm2020/lib/components/ubicacion/models/Ubicacion.mjs} +0 -0
- /package/{esm2015/lib/components/ubicacion/services/ubicacion.service.js → esm2020/lib/components/ubicacion/services/ubicacion.service.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/modelos/cuentaContable.model.js → esm2020/lib/contabilidad/modelos/cuentaContable.model.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js → esm2020/lib/contabilidad/modelos/normaInfoFinanciera.model.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/servicios/cuentacontable.service.js → esm2020/lib/contabilidad/servicios/cuentacontable.service.mjs} +0 -0
- /package/{esm2015/lib/globalPrimeNg.js → esm2020/lib/globalPrimeNg.mjs} +0 -0
- /package/{esm2015/lib/httpInterceptor/httpInterceptor.js → esm2020/lib/httpInterceptor/httpInterceptor.mjs} +0 -0
- /package/{esm2015/lib/importComponents.js → esm2020/lib/importComponents.mjs} +0 -0
- /package/{esm2015/lib/importComponetsConta.js → esm2020/lib/importComponetsConta.mjs} +0 -0
- /package/{esm2015/lib/models/PersonaMoral.js → esm2020/lib/models/PersonaMoral.mjs} +0 -0
- /package/{esm2015/lib/models/Usuario.js → esm2020/lib/models/Usuario.mjs} +0 -0
- /package/{esm2015/lib/models/auth.js → esm2020/lib/models/auth.mjs} +0 -0
- /package/{esm2015/lib/services/auth.service.js → esm2020/lib/services/auth.service.mjs} +0 -0
- /package/{esm2015/lib/services/authenticated.service.js → esm2020/lib/services/authenticated.service.mjs} +0 -0
- /package/{esm2015/lib/services/canActivateGuard.service.ts.js → esm2020/lib/services/canActivateGuard.service.ts.mjs} +0 -0
- /package/{esm2015/lib/services/catalogo-adicional.service.js → esm2020/lib/services/catalogo-adicional.service.mjs} +0 -0
- /package/{esm2015/lib/services/controlAcceso.service.js → esm2020/lib/services/controlAcceso.service.mjs} +0 -0
- /package/{esm2015/lib/services/crud.service.js → esm2020/lib/services/crud.service.mjs} +0 -0
- /package/{esm2015/lib/services/file.service.js → esm2020/lib/services/file.service.mjs} +0 -0
- /package/{esm2015/lib/services/global.service.js → esm2020/lib/services/global.service.mjs} +0 -0
- /package/{esm2015/lib/services/init.service.js → esm2020/lib/services/init.service.mjs} +0 -0
- /package/{esm2015/lib/services/message.service.js → esm2020/lib/services/message.service.mjs} +0 -0
- /package/{esm2015/lib/services/paginate.service.js → esm2020/lib/services/paginate.service.mjs} +0 -0
- /package/{esm2015/lib/services/personaMoral.service.js → esm2020/lib/services/personaMoral.service.mjs} +0 -0
- /package/{esm2015/lib/services/versionCheck.service.js → esm2020/lib/services/versionCheck.service.mjs} +0 -0
- /package/{esm2015/lib/utils/tipo_catalogo.ts.js → esm2020/lib/utils/tipo_catalogo.ts.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- /package/{esm2015/visorus-erp-core.js → esm2020/visorus-erp-core.mjs} +0 -0
|
@@ -24,7 +24,6 @@ import * as i3 from '@ngx-translate/core';
|
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
25
|
import { debounceTime } from 'rxjs/operators';
|
|
26
26
|
import * as i3$1 from '@angular/platform-browser';
|
|
27
|
-
import { __awaiter } from 'tslib';
|
|
28
27
|
import * as i8$1 from 'primeng/table';
|
|
29
28
|
import { TableModule } from 'primeng/table';
|
|
30
29
|
import * as i10 from 'primeng/paginator';
|
|
@@ -197,8 +196,7 @@ class CuentaContableService extends CrudService {
|
|
|
197
196
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
198
197
|
|
|
199
198
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
-
i0.ɵɵelementStart(0, "tr");
|
|
201
|
-
i0.ɵɵelementStart(1, "th", 5);
|
|
199
|
+
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
202
200
|
i0.ɵɵtext(2, "Cuenta contable");
|
|
203
201
|
i0.ɵɵelementEnd();
|
|
204
202
|
i0.ɵɵelementStart(3, "th", 5);
|
|
@@ -212,8 +210,7 @@ function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
212
210
|
i0.ɵɵelementEnd();
|
|
213
211
|
i0.ɵɵelementStart(9, "th", 8);
|
|
214
212
|
i0.ɵɵtext(10, "Acciones");
|
|
215
|
-
i0.ɵɵelementEnd();
|
|
216
|
-
i0.ɵɵelementEnd();
|
|
213
|
+
i0.ɵɵelementEnd()();
|
|
217
214
|
} }
|
|
218
215
|
function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
219
216
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -228,8 +225,7 @@ function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1
|
|
|
228
225
|
i0.ɵɵelementEnd();
|
|
229
226
|
} }
|
|
230
227
|
function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
-
i0.ɵɵelementStart(0, "tr");
|
|
232
|
-
i0.ɵɵelementStart(1, "td", 9);
|
|
228
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 9);
|
|
233
229
|
i0.ɵɵelement(2, "p-treeTableToggler", 10);
|
|
234
230
|
i0.ɵɵtext(3);
|
|
235
231
|
i0.ɵɵelementEnd();
|
|
@@ -242,13 +238,10 @@ function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
242
238
|
i0.ɵɵelementStart(8, "td", 12);
|
|
243
239
|
i0.ɵɵtext(9);
|
|
244
240
|
i0.ɵɵelementEnd();
|
|
245
|
-
i0.ɵɵelementStart(10, "td", 13);
|
|
246
|
-
i0.ɵɵelementStart(11, "div", 14);
|
|
241
|
+
i0.ɵɵelementStart(10, "td", 13)(11, "div", 14);
|
|
247
242
|
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15);
|
|
248
243
|
i0.ɵɵtemplate(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
249
|
-
i0.ɵɵelementEnd();
|
|
250
|
-
i0.ɵɵelementEnd();
|
|
251
|
-
i0.ɵɵelementEnd();
|
|
244
|
+
i0.ɵɵelementEnd()()();
|
|
252
245
|
} if (rf & 2) {
|
|
253
246
|
const rowNode_r2 = ctx.$implicit;
|
|
254
247
|
const rowData_r3 = ctx.rowData;
|
|
@@ -433,12 +426,10 @@ class CclistaComponent {
|
|
|
433
426
|
i0.ɵɵelementStart(0, "input", 0);
|
|
434
427
|
i0.ɵɵlistener("ngModelChange", function CclistaComponent_Template_input_ngModelChange_0_listener($event) { return ctx.query = $event; })("keyup", function CclistaComponent_Template_input_keyup_0_listener($event) { return ctx.filterAccounts($event); });
|
|
435
428
|
i0.ɵɵelementEnd();
|
|
436
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
437
|
-
i0.ɵɵelementStart(2, "p-treeTable", 2);
|
|
429
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "p-treeTable", 2);
|
|
438
430
|
i0.ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3);
|
|
439
431
|
i0.ɵɵtemplate(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
|
|
440
|
-
i0.ɵɵelementEnd();
|
|
441
|
-
i0.ɵɵelementEnd();
|
|
432
|
+
i0.ɵɵelementEnd()();
|
|
442
433
|
} if (rf & 2) {
|
|
443
434
|
i0.ɵɵproperty("ngModel", ctx.query);
|
|
444
435
|
i0.ɵɵadvance(2);
|
|
@@ -447,11 +438,7 @@ class CclistaComponent {
|
|
|
447
438
|
} }, directives: [i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i4.TreeTable, i4$1.PrimeTemplate, i4.TreeTableToggler, i8.NgIf, i7.ButtonDirective], styles: [""] });
|
|
448
439
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
449
440
|
type: Component,
|
|
450
|
-
args: [{
|
|
451
|
-
selector: 'lib-cclista',
|
|
452
|
-
templateUrl: './cclista.component.html',
|
|
453
|
-
styleUrls: ['./cclista.component.css']
|
|
454
|
-
}]
|
|
441
|
+
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>", styles: [""] }]
|
|
455
442
|
}], function () { return [{ type: CuentaContableService }]; }, { isShared: [{
|
|
456
443
|
type: Input
|
|
457
444
|
}], typeAccount: [{
|
|
@@ -493,12 +480,9 @@ class CcseleccionDialogComponent {
|
|
|
493
480
|
} }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable", "visibleChange", "onHide"], [1, "padding10", 3, "ngStyle"], [3, "isShared", "typeAccount", "evSelectedAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
494
481
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
495
482
|
i0.ɵɵlistener("visibleChange", function CcseleccionDialogComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.displayShowCuentas = $event; })("onHide", function CcseleccionDialogComponent_Template_p_dialog_onHide_0_listener($event) { return ctx.hiddenDialog($event); });
|
|
496
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
497
|
-
i0.ɵɵelementStart(2, "lib-cclista", 2);
|
|
483
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "lib-cclista", 2);
|
|
498
484
|
i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
|
|
499
|
-
i0.ɵɵelementEnd();
|
|
500
|
-
i0.ɵɵelementEnd();
|
|
501
|
-
i0.ɵɵelementEnd();
|
|
485
|
+
i0.ɵɵelementEnd()()();
|
|
502
486
|
} if (rf & 2) {
|
|
503
487
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$3, ctx.size + "px"));
|
|
504
488
|
i0.ɵɵproperty("visible", ctx.displayShowCuentas)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
@@ -509,11 +493,7 @@ class CcseleccionDialogComponent {
|
|
|
509
493
|
} }, directives: [i4$2.Dialog, i8.NgStyle, CclistaComponent], styles: [""] });
|
|
510
494
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
511
495
|
type: Component,
|
|
512
|
-
args: [{
|
|
513
|
-
selector: 'lib-ccseleccion-dialog',
|
|
514
|
-
templateUrl: './ccseleccion-dialog.component.html',
|
|
515
|
-
styleUrls: ['./ccseleccion-dialog.component.css']
|
|
516
|
-
}]
|
|
496
|
+
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>", styles: [""] }]
|
|
517
497
|
}], function () { return []; }, { dialog: [{
|
|
518
498
|
type: ViewChild,
|
|
519
499
|
args: ["dialog", { static: true }]
|
|
@@ -664,30 +644,16 @@ class Error404Component {
|
|
|
664
644
|
}
|
|
665
645
|
/** @nocollapse */ Error404Component.ɵfac = function Error404Component_Factory(t) { return new (t || Error404Component)(); };
|
|
666
646
|
/** @nocollapse */ Error404Component.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: Error404Component, selectors: [["app-error404"]], decls: 9, vars: 0, consts: [[1, "col-md-12", "sec_sof"], [1, "row"], [1, "col", "col-center"], [1, "center"], [1, "error"], [1, "col-12"]], template: function Error404Component_Template(rf, ctx) { if (rf & 1) {
|
|
667
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
668
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
669
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
670
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
671
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
647
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
672
648
|
i0.ɵɵtext(5, " Error 404 ");
|
|
673
649
|
i0.ɵɵelementEnd();
|
|
674
|
-
i0.ɵɵelementStart(6, "div", 5);
|
|
675
|
-
i0.ɵɵelementStart(7, "p");
|
|
650
|
+
i0.ɵɵelementStart(6, "div", 5)(7, "p");
|
|
676
651
|
i0.ɵɵtext(8, "La pagina solicitada no fue encontrada");
|
|
677
|
-
i0.ɵɵelementEnd();
|
|
678
|
-
i0.ɵɵelementEnd();
|
|
679
|
-
i0.ɵɵelementEnd();
|
|
680
|
-
i0.ɵɵelementEnd();
|
|
681
|
-
i0.ɵɵelementEnd();
|
|
682
|
-
i0.ɵɵelementEnd();
|
|
652
|
+
i0.ɵɵelementEnd()()()()()();
|
|
683
653
|
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
|
|
684
654
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
|
|
685
655
|
type: Component,
|
|
686
|
-
args: [{
|
|
687
|
-
selector: 'app-error404',
|
|
688
|
-
templateUrl: './error404.component.html',
|
|
689
|
-
styleUrls: ['./error404.component.css']
|
|
690
|
-
}]
|
|
656
|
+
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"] }]
|
|
691
657
|
}], function () { return []; }, null); })();
|
|
692
658
|
|
|
693
659
|
class LoadingService {
|
|
@@ -739,42 +705,24 @@ class LoadingComponent {
|
|
|
739
705
|
}
|
|
740
706
|
/** @nocollapse */ LoadingComponent.ɵfac = function LoadingComponent_Factory(t) { return new (t || LoadingComponent)(i0.ɵɵdirectiveInject(LoadingService)); };
|
|
741
707
|
/** @nocollapse */ LoadingComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingComponent, selectors: [["loading"]], inputs: { logo_loading: "logo_loading" }, decls: 14, vars: 4, consts: [["id", "modal_loading", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalScrollableTitle", "data-backdrop", "static", "data-keyboard", "false", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-scrollable"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], [1, "col-lg-4", "col-md-4", "col-sm-10"], [1, "loader"], [1, "box"], [1, "code"], ["width", "200px", 3, "src"], [1, "txt"]], template: function LoadingComponent_Template(rf, ctx) { if (rf & 1) {
|
|
742
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
743
|
-
i0.ɵɵ
|
|
744
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
745
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
746
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
747
|
-
i0.ɵɵelementStart(5, "div", 5);
|
|
748
|
-
i0.ɵɵelementStart(6, "div", 6);
|
|
749
|
-
i0.ɵɵelement(7, "span", 7);
|
|
750
|
-
i0.ɵɵelement(8, "span", 7);
|
|
708
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6);
|
|
709
|
+
i0.ɵɵelement(7, "span", 7)(8, "span", 7);
|
|
751
710
|
i0.ɵɵelementStart(9, "div", 8);
|
|
752
711
|
i0.ɵɵelement(10, "img", 9);
|
|
753
712
|
i0.ɵɵelementEnd();
|
|
754
713
|
i0.ɵɵelementStart(11, "span", 10);
|
|
755
714
|
i0.ɵɵtext(12);
|
|
756
715
|
i0.ɵɵpipe(13, "translate");
|
|
757
|
-
i0.ɵɵelementEnd();
|
|
758
|
-
i0.ɵɵelementEnd();
|
|
759
|
-
i0.ɵɵelementEnd();
|
|
760
|
-
i0.ɵɵelementEnd();
|
|
761
|
-
i0.ɵɵelementEnd();
|
|
762
|
-
i0.ɵɵelementEnd();
|
|
763
|
-
i0.ɵɵelementEnd();
|
|
764
|
-
i0.ɵɵelementEnd();
|
|
716
|
+
i0.ɵɵelementEnd()()()()()()()();
|
|
765
717
|
} if (rf & 2) {
|
|
766
718
|
i0.ɵɵadvance(10);
|
|
767
719
|
i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
|
|
768
720
|
i0.ɵɵadvance(2);
|
|
769
721
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
770
|
-
} }, pipes: [i3.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
|
|
722
|
+
} }, pipes: [i3.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
|
|
771
723
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
772
724
|
type: Component,
|
|
773
|
-
args: [{
|
|
774
|
-
selector: 'loading',
|
|
775
|
-
templateUrl: './loading.component.html',
|
|
776
|
-
styleUrls: ['./loading.component.css']
|
|
777
|
-
}]
|
|
725
|
+
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"] }]
|
|
778
726
|
}], function () { return [{ type: LoadingService }]; }, { logo_loading: [{
|
|
779
727
|
type: Input
|
|
780
728
|
}] }); })();
|
|
@@ -805,27 +753,13 @@ class LoadingScreenComponent {
|
|
|
805
753
|
}
|
|
806
754
|
/** @nocollapse */ LoadingScreenComponent.ɵfac = function LoadingScreenComponent_Factory(t) { return new (t || LoadingScreenComponent)(i0.ɵɵdirectiveInject(LoadingScreenService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
807
755
|
/** @nocollapse */ LoadingScreenComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingScreenComponent, selectors: [["app-loading-screen"]], inputs: { logo_loading: "logo_loading" }, decls: 10, vars: 0, consts: [[1, "loading-screen-wrapper"], [1, "loading-screen-icon"], [1, "blobs"], [1, "blob-center"], [1, "blob"]], template: function LoadingScreenComponent_Template(rf, ctx) { if (rf & 1) {
|
|
808
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
809
|
-
i0.ɵɵ
|
|
810
|
-
i0.ɵɵ
|
|
811
|
-
i0.ɵɵelement(3, "div", 3);
|
|
812
|
-
i0.ɵɵelement(4, "div", 4);
|
|
813
|
-
i0.ɵɵelement(5, "div", 4);
|
|
814
|
-
i0.ɵɵelement(6, "div", 4);
|
|
815
|
-
i0.ɵɵelement(7, "div", 4);
|
|
816
|
-
i0.ɵɵelement(8, "div", 4);
|
|
817
|
-
i0.ɵɵelement(9, "div", 4);
|
|
818
|
-
i0.ɵɵelementEnd();
|
|
819
|
-
i0.ɵɵelementEnd();
|
|
820
|
-
i0.ɵɵelementEnd();
|
|
756
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
757
|
+
i0.ɵɵelement(3, "div", 3)(4, "div", 4)(5, "div", 4)(6, "div", 4)(7, "div", 4)(8, "div", 4)(9, "div", 4);
|
|
758
|
+
i0.ɵɵelementEnd()()();
|
|
821
759
|
} }, 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: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: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 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%)}}"] });
|
|
822
760
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenComponent, [{
|
|
823
761
|
type: Component,
|
|
824
|
-
args: [{
|
|
825
|
-
selector: 'app-loading-screen',
|
|
826
|
-
templateUrl: './loading-screen.component.html',
|
|
827
|
-
styleUrls: ['./loading-screen.component.scss']
|
|
828
|
-
}]
|
|
762
|
+
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"] }]
|
|
829
763
|
}], function () { return [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }]; }, { logo_loading: [{
|
|
830
764
|
type: Input
|
|
831
765
|
}] }); })();
|
|
@@ -1008,11 +942,7 @@ class PdfModalComponent {
|
|
|
1008
942
|
} }, directives: [i4$2.Dialog, i8.NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
|
|
1009
943
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
1010
944
|
type: Component,
|
|
1011
|
-
args: [{
|
|
1012
|
-
selector: 'pdf-modal',
|
|
1013
|
-
templateUrl: './pdf-modal.component.html',
|
|
1014
|
-
styleUrls: ['./pdf-modal.component.css']
|
|
1015
|
-
}]
|
|
945
|
+
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"] }]
|
|
1016
946
|
}], function () { return [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }]; }, null); })();
|
|
1017
947
|
|
|
1018
948
|
class Usuario {
|
|
@@ -1229,37 +1159,28 @@ function LoginModalComponent_div_6_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1229
1159
|
} }
|
|
1230
1160
|
function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1231
1161
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1232
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
1233
|
-
i0.ɵɵelementStart(1, "div", 8);
|
|
1234
|
-
i0.ɵɵelementStart(2, "form", 9, 10);
|
|
1162
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "form", 9, 10);
|
|
1235
1163
|
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.entrar(_r2); });
|
|
1236
1164
|
i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 11);
|
|
1237
|
-
i0.ɵɵelementStart(5, "div", 12);
|
|
1238
|
-
i0.ɵɵelementStart(6, "label", 13);
|
|
1165
|
+
i0.ɵɵelementStart(5, "div", 12)(6, "label", 13);
|
|
1239
1166
|
i0.ɵɵtext(7);
|
|
1240
1167
|
i0.ɵɵpipe(8, "translate");
|
|
1241
1168
|
i0.ɵɵelementEnd();
|
|
1242
1169
|
i0.ɵɵelementStart(9, "input", 14, 15);
|
|
1243
1170
|
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.user.username = $event; });
|
|
1244
1171
|
i0.ɵɵpipe(11, "translate");
|
|
1245
|
-
i0.ɵɵelementEnd();
|
|
1246
|
-
i0.ɵɵ
|
|
1247
|
-
i0.ɵɵelementStart(12, "div", 12);
|
|
1248
|
-
i0.ɵɵelementStart(13, "label", 16);
|
|
1172
|
+
i0.ɵɵelementEnd()();
|
|
1173
|
+
i0.ɵɵelementStart(12, "div", 12)(13, "label", 16);
|
|
1249
1174
|
i0.ɵɵtext(14);
|
|
1250
1175
|
i0.ɵɵpipe(15, "translate");
|
|
1251
1176
|
i0.ɵɵelementEnd();
|
|
1252
1177
|
i0.ɵɵelementStart(16, "input", 17);
|
|
1253
1178
|
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.user.password = $event; });
|
|
1254
1179
|
i0.ɵɵpipe(17, "translate");
|
|
1255
|
-
i0.ɵɵelementEnd();
|
|
1256
|
-
i0.ɵɵelementEnd();
|
|
1180
|
+
i0.ɵɵelementEnd()();
|
|
1257
1181
|
i0.ɵɵelementStart(18, "button", 18);
|
|
1258
1182
|
i0.ɵɵtext(19, "entrar");
|
|
1259
|
-
i0.ɵɵelementEnd();
|
|
1260
|
-
i0.ɵɵelementEnd();
|
|
1261
|
-
i0.ɵɵelementEnd();
|
|
1262
|
-
i0.ɵɵelementEnd();
|
|
1183
|
+
i0.ɵɵelementEnd()()()();
|
|
1263
1184
|
} if (rf & 2) {
|
|
1264
1185
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1265
1186
|
i0.ɵɵadvance(4);
|
|
@@ -1276,24 +1197,16 @@ function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
1276
1197
|
i0.ɵɵproperty("ngModel", ctx_r0.user.password);
|
|
1277
1198
|
} }
|
|
1278
1199
|
function LoginModalComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1279
|
-
i0.ɵɵelementStart(0, "div", 22);
|
|
1280
|
-
i0.ɵɵelementStart(1, "div", 23);
|
|
1281
|
-
i0.ɵɵelementStart(2, "div", 24);
|
|
1282
|
-
i0.ɵɵelementStart(3, "h5");
|
|
1200
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "h5");
|
|
1283
1201
|
i0.ɵɵtext(4);
|
|
1284
|
-
i0.ɵɵelementEnd();
|
|
1285
|
-
i0.ɵɵelementEnd();
|
|
1286
|
-
i0.ɵɵelementEnd();
|
|
1287
|
-
i0.ɵɵelementEnd();
|
|
1202
|
+
i0.ɵɵelementEnd()()()();
|
|
1288
1203
|
} if (rf & 2) {
|
|
1289
1204
|
const empresa_r10 = ctx.$implicit;
|
|
1290
1205
|
i0.ɵɵadvance(4);
|
|
1291
1206
|
i0.ɵɵtextInterpolate1(" ", empresa_r10.nombre, " ");
|
|
1292
1207
|
} }
|
|
1293
1208
|
function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
1294
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
1295
|
-
i0.ɵɵelementStart(1, "div", 20);
|
|
1296
|
-
i0.ɵɵelementStart(2, "h4");
|
|
1209
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 20)(2, "h4");
|
|
1297
1210
|
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1298
1211
|
i0.ɵɵelementEnd();
|
|
1299
1212
|
i0.ɵɵelement(4, "hr");
|
|
@@ -1361,19 +1274,12 @@ class LoginModalComponent {
|
|
|
1361
1274
|
}
|
|
1362
1275
|
/** @nocollapse */ LoginModalComponent.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); };
|
|
1363
1276
|
/** @nocollapse */ LoginModalComponent.ɵ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"], ["datoForm", "ngForm"], ["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, "placeholder", "ngModel", "ngModelChange"], ["username", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["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) {
|
|
1364
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1365
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
1366
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
1367
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
1368
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
1277
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
1369
1278
|
i0.ɵɵelement(5, "img", 5);
|
|
1370
1279
|
i0.ɵɵelementEnd();
|
|
1371
1280
|
i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 6);
|
|
1372
1281
|
i0.ɵɵtemplate(7, LoginModalComponent_div_7_Template, 6, 1, "div", 6);
|
|
1373
|
-
i0.ɵɵelementEnd();
|
|
1374
|
-
i0.ɵɵelementEnd();
|
|
1375
|
-
i0.ɵɵelementEnd();
|
|
1376
|
-
i0.ɵɵelementEnd();
|
|
1282
|
+
i0.ɵɵelementEnd()()()();
|
|
1377
1283
|
} if (rf & 2) {
|
|
1378
1284
|
i0.ɵɵadvance(6);
|
|
1379
1285
|
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
@@ -1382,11 +1288,7 @@ class LoginModalComponent {
|
|
|
1382
1288
|
} }, directives: [i8.NgIf, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm, i5.DefaultValueAccessor, i5.RequiredValidator, i5.NgControlStatus, i5.NgModel, i3.TranslateDirective, i8.NgForOf], pipes: [i3.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}"] });
|
|
1383
1289
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1384
1290
|
type: Component,
|
|
1385
|
-
args: [{
|
|
1386
|
-
selector: 'app-login-modal',
|
|
1387
|
-
templateUrl: './login-modal.component.html',
|
|
1388
|
-
styleUrls: ['./login-modal.component.css']
|
|
1389
|
-
}]
|
|
1291
|
+
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"] }]
|
|
1390
1292
|
}], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
|
|
1391
1293
|
|
|
1392
1294
|
class SessionCajaService extends CrudService {
|
|
@@ -1415,32 +1317,24 @@ function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1415
1317
|
} }
|
|
1416
1318
|
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1417
1319
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1418
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
1419
|
-
i0.ɵɵelementStart(1, "div", 6);
|
|
1420
|
-
i0.ɵɵelementStart(2, "label", 7);
|
|
1320
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
1421
1321
|
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1422
1322
|
i0.ɵɵelementEnd();
|
|
1423
1323
|
i0.ɵɵelementStart(4, "input", 8);
|
|
1424
1324
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
|
|
1425
|
-
i0.ɵɵelementEnd();
|
|
1426
|
-
i0.ɵɵ
|
|
1427
|
-
i0.ɵɵelementStart(5, "div", 9);
|
|
1428
|
-
i0.ɵɵelementStart(6, "label", 10);
|
|
1325
|
+
i0.ɵɵelementEnd()();
|
|
1326
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1429
1327
|
i0.ɵɵtext(7, "Saldo: ");
|
|
1430
1328
|
i0.ɵɵelementEnd();
|
|
1431
1329
|
i0.ɵɵelementStart(8, "input", 11);
|
|
1432
1330
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.session.monto = $event; });
|
|
1433
|
-
i0.ɵɵelementEnd();
|
|
1434
|
-
i0.ɵɵ
|
|
1435
|
-
i0.ɵɵelementStart(9, "div", 9);
|
|
1436
|
-
i0.ɵɵelementStart(10, "label", 12);
|
|
1331
|
+
i0.ɵɵelementEnd()();
|
|
1332
|
+
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1437
1333
|
i0.ɵɵtext(11, "Numero Z:");
|
|
1438
1334
|
i0.ɵɵelementEnd();
|
|
1439
1335
|
i0.ɵɵelementStart(12, "input", 13);
|
|
1440
1336
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.session.z = $event; });
|
|
1441
|
-
i0.ɵɵelementEnd();
|
|
1442
|
-
i0.ɵɵelementEnd();
|
|
1443
|
-
i0.ɵɵelementEnd();
|
|
1337
|
+
i0.ɵɵelementEnd()()();
|
|
1444
1338
|
} if (rf & 2) {
|
|
1445
1339
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
1446
1340
|
i0.ɵɵadvance(4);
|
|
@@ -1523,30 +1417,26 @@ class SessionCreateComponent {
|
|
|
1523
1417
|
this.editMode = false;
|
|
1524
1418
|
this.status.emit({ status: false });
|
|
1525
1419
|
}
|
|
1526
|
-
save() {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1420
|
+
async save() {
|
|
1421
|
+
this.resp = await this.sessionCajaService.save(this.session).toPromise() || null;
|
|
1422
|
+
if (this.resp) {
|
|
1423
|
+
this.session = {};
|
|
1424
|
+
this.editMode = false;
|
|
1425
|
+
this.status.emit({ status: false, save: this.resp.data });
|
|
1426
|
+
this.success.emit(true);
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
this.success.emit(false);
|
|
1430
|
+
}
|
|
1539
1431
|
}
|
|
1540
|
-
edit() {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1432
|
+
async edit() {
|
|
1433
|
+
console.log("EDIT", this.session);
|
|
1434
|
+
this.resp = await this.sessionCajaService.update(this.session).toPromise() || null;
|
|
1435
|
+
if (this.resp) {
|
|
1436
|
+
this.session = {};
|
|
1437
|
+
this.editMode = false;
|
|
1438
|
+
this.status.emit({ status: false, update: this.resp.data });
|
|
1439
|
+
}
|
|
1550
1440
|
}
|
|
1551
1441
|
}
|
|
1552
1442
|
/** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(SessionCajaService)); };
|
|
@@ -1568,11 +1458,7 @@ class SessionCreateComponent {
|
|
|
1568
1458
|
} }, directives: [i4$2.Dialog, i4$1.PrimeTemplate, i8.NgIf, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NumberValueAccessor, i7.ButtonDirective], styles: [""] });
|
|
1569
1459
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1570
1460
|
type: Component,
|
|
1571
|
-
args: [{
|
|
1572
|
-
selector: 'session-create',
|
|
1573
|
-
templateUrl: './session-create.component.html',
|
|
1574
|
-
styleUrls: ['./session-create.component.css']
|
|
1575
|
-
}]
|
|
1461
|
+
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>", styles: [""] }]
|
|
1576
1462
|
}], function () { return [{ type: SessionCajaService }]; }, { showCreateSession: [{
|
|
1577
1463
|
type: Input
|
|
1578
1464
|
}], caja: [{
|
|
@@ -1698,8 +1584,7 @@ class PaginateService {
|
|
|
1698
1584
|
}], function () { return [{ type: i3.TranslateService }]; }, null); })();
|
|
1699
1585
|
|
|
1700
1586
|
function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1701
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1702
|
-
i0.ɵɵelementStart(1, "th");
|
|
1587
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
1703
1588
|
i0.ɵɵtext(2);
|
|
1704
1589
|
i0.ɵɵpipe(3, "translate");
|
|
1705
1590
|
i0.ɵɵelementEnd();
|
|
@@ -1722,8 +1607,7 @@ function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1722
1607
|
i0.ɵɵelementStart(16, "th");
|
|
1723
1608
|
i0.ɵɵtext(17);
|
|
1724
1609
|
i0.ɵɵpipe(18, "translate");
|
|
1725
|
-
i0.ɵɵelementEnd();
|
|
1726
|
-
i0.ɵɵelementEnd();
|
|
1610
|
+
i0.ɵɵelementEnd()();
|
|
1727
1611
|
} if (rf & 2) {
|
|
1728
1612
|
i0.ɵɵadvance(2);
|
|
1729
1613
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "clave"));
|
|
@@ -1757,8 +1641,7 @@ function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf
|
|
|
1757
1641
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
|
|
1758
1642
|
} }
|
|
1759
1643
|
function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1760
|
-
i0.ɵɵelementStart(0, "tr", 8);
|
|
1761
|
-
i0.ɵɵelementStart(1, "td");
|
|
1644
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td");
|
|
1762
1645
|
i0.ɵɵtext(2);
|
|
1763
1646
|
i0.ɵɵelementEnd();
|
|
1764
1647
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -1776,8 +1659,7 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1776
1659
|
i0.ɵɵelementEnd();
|
|
1777
1660
|
i0.ɵɵelementStart(12, "td");
|
|
1778
1661
|
i0.ɵɵtext(13);
|
|
1779
|
-
i0.ɵɵelementEnd();
|
|
1780
|
-
i0.ɵɵelementEnd();
|
|
1662
|
+
i0.ɵɵelementEnd()();
|
|
1781
1663
|
} if (rf & 2) {
|
|
1782
1664
|
const cliente_r3 = ctx.$implicit;
|
|
1783
1665
|
i0.ɵɵproperty("pSelectableRow", cliente_r3);
|
|
@@ -1797,12 +1679,10 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1797
1679
|
i0.ɵɵtextInterpolate(cliente_r3.diasPago);
|
|
1798
1680
|
} }
|
|
1799
1681
|
function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
1800
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1801
|
-
i0.ɵɵelementStart(1, "td", 10);
|
|
1682
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 10);
|
|
1802
1683
|
i0.ɵɵtext(2);
|
|
1803
1684
|
i0.ɵɵpipe(3, "translate");
|
|
1804
|
-
i0.ɵɵelementEnd();
|
|
1805
|
-
i0.ɵɵelementEnd();
|
|
1685
|
+
i0.ɵɵelementEnd()();
|
|
1806
1686
|
} if (rf & 2) {
|
|
1807
1687
|
i0.ɵɵadvance(2);
|
|
1808
1688
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "general.noRegistros"));
|
|
@@ -1867,22 +1747,19 @@ class SelectClienteComponent {
|
|
|
1867
1747
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
1868
1748
|
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(); });
|
|
1869
1749
|
i0.ɵɵpipe(1, "translate");
|
|
1870
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
1871
|
-
i0.ɵɵelementStart(3, "input", 2);
|
|
1750
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
1872
1751
|
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(); });
|
|
1873
1752
|
i0.ɵɵpipe(4, "translate");
|
|
1874
1753
|
i0.ɵɵelementEnd();
|
|
1875
1754
|
i0.ɵɵelementStart(5, "button", 3);
|
|
1876
1755
|
i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
|
|
1877
|
-
i0.ɵɵelementEnd();
|
|
1878
|
-
i0.ɵɵelementEnd();
|
|
1756
|
+
i0.ɵɵelementEnd()();
|
|
1879
1757
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
1880
1758
|
i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); })("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.clienteSeleccionado = $event; })("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
|
|
1881
1759
|
i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5);
|
|
1882
1760
|
i0.ɵɵtemplate(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6);
|
|
1883
1761
|
i0.ɵɵtemplate(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
|
|
1884
|
-
i0.ɵɵelementEnd();
|
|
1885
|
-
i0.ɵɵelementEnd();
|
|
1762
|
+
i0.ɵɵelementEnd()();
|
|
1886
1763
|
} if (rf & 2) {
|
|
1887
1764
|
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 13, "Seleccionar cliente "));
|
|
1888
1765
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
@@ -1895,10 +1772,7 @@ class SelectClienteComponent {
|
|
|
1895
1772
|
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i8$1.SelectableRow, i8.NgIf], pipes: [i3.TranslatePipe], encapsulation: 2 });
|
|
1896
1773
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
|
|
1897
1774
|
type: Component,
|
|
1898
|
-
args: [{
|
|
1899
|
-
selector: 'select-cliente',
|
|
1900
|
-
templateUrl: './select-cliente.component.html'
|
|
1901
|
-
}]
|
|
1775
|
+
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>" }]
|
|
1902
1776
|
}], function () { return [{ type: ClienteService }, { type: PaginateService }]; }, { clienteSeleccionado: [{
|
|
1903
1777
|
type: Input
|
|
1904
1778
|
}], selectMode: [{
|
|
@@ -1938,8 +1812,7 @@ class ProveedorService extends CrudService {
|
|
|
1938
1812
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
1939
1813
|
|
|
1940
1814
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1941
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1942
|
-
i0.ɵɵelementStart(1, "th");
|
|
1815
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
1943
1816
|
i0.ɵɵtext(2);
|
|
1944
1817
|
i0.ɵɵpipe(3, "translate");
|
|
1945
1818
|
i0.ɵɵelementEnd();
|
|
@@ -1950,8 +1823,7 @@ function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1)
|
|
|
1950
1823
|
i0.ɵɵelementStart(7, "th");
|
|
1951
1824
|
i0.ɵɵtext(8);
|
|
1952
1825
|
i0.ɵɵpipe(9, "translate");
|
|
1953
|
-
i0.ɵɵelementEnd();
|
|
1954
|
-
i0.ɵɵelementEnd();
|
|
1826
|
+
i0.ɵɵelementEnd()();
|
|
1955
1827
|
} if (rf & 2) {
|
|
1956
1828
|
i0.ɵɵadvance(2);
|
|
1957
1829
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "clave"));
|
|
@@ -1961,8 +1833,7 @@ function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1)
|
|
|
1961
1833
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, "rfc"));
|
|
1962
1834
|
} }
|
|
1963
1835
|
function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1964
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1965
|
-
i0.ɵɵelementStart(1, "td");
|
|
1836
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
1966
1837
|
i0.ɵɵtext(2);
|
|
1967
1838
|
i0.ɵɵelementEnd();
|
|
1968
1839
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -1970,8 +1841,7 @@ function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1)
|
|
|
1970
1841
|
i0.ɵɵelementEnd();
|
|
1971
1842
|
i0.ɵɵelementStart(5, "td");
|
|
1972
1843
|
i0.ɵɵtext(6);
|
|
1973
|
-
i0.ɵɵelementEnd();
|
|
1974
|
-
i0.ɵɵelementEnd();
|
|
1844
|
+
i0.ɵɵelementEnd()();
|
|
1975
1845
|
} if (rf & 2) {
|
|
1976
1846
|
const proveedor_r2 = ctx.rowData;
|
|
1977
1847
|
i0.ɵɵadvance(2);
|
|
@@ -2026,15 +1896,13 @@ class SelectProveedorComponent {
|
|
|
2026
1896
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2027
1897
|
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(); });
|
|
2028
1898
|
i0.ɵɵpipe(1, "translate");
|
|
2029
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
2030
|
-
i0.ɵɵelementStart(3, "input", 2);
|
|
1899
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
2031
1900
|
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(); });
|
|
2032
1901
|
i0.ɵɵpipe(4, "translate");
|
|
2033
1902
|
i0.ɵɵelementEnd();
|
|
2034
1903
|
i0.ɵɵelementStart(5, "button", 3);
|
|
2035
1904
|
i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
|
|
2036
|
-
i0.ɵɵelementEnd();
|
|
2037
|
-
i0.ɵɵelementEnd();
|
|
1905
|
+
i0.ɵɵelementEnd()();
|
|
2038
1906
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
2039
1907
|
i0.ɵɵlistener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { return ctx.proveedores = $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.proveedorSeleccionado = $event; })("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
|
|
2040
1908
|
i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5);
|
|
@@ -2042,8 +1910,7 @@ class SelectProveedorComponent {
|
|
|
2042
1910
|
i0.ɵɵelementEnd();
|
|
2043
1911
|
i0.ɵɵelementStart(9, "p-paginator", 7);
|
|
2044
1912
|
i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
2045
|
-
i0.ɵɵelementEnd();
|
|
2046
|
-
i0.ɵɵelementEnd();
|
|
1913
|
+
i0.ɵɵelementEnd()();
|
|
2047
1914
|
} if (rf & 2) {
|
|
2048
1915
|
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 11, "ArticuloProveedor.proveedores"));
|
|
2049
1916
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
@@ -2057,10 +1924,7 @@ class SelectProveedorComponent {
|
|
|
2057
1924
|
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i10.Paginator], pipes: [i3.TranslatePipe], encapsulation: 2 });
|
|
2058
1925
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
|
|
2059
1926
|
type: Component,
|
|
2060
|
-
args: [{
|
|
2061
|
-
templateUrl: 'select-proveedor.component.html',
|
|
2062
|
-
selector: 'select-proveedor'
|
|
2063
|
-
}]
|
|
1927
|
+
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>" }]
|
|
2064
1928
|
}], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
2065
1929
|
type: Input
|
|
2066
1930
|
}], proveedorSeleccionado: [{
|
|
@@ -2167,8 +2031,7 @@ function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) {
|
|
|
2167
2031
|
i0.ɵɵproperty("ngForOf", columns_r6);
|
|
2168
2032
|
} }
|
|
2169
2033
|
function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
2170
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2171
|
-
i0.ɵɵelementStart(1, "td");
|
|
2034
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
2172
2035
|
i0.ɵɵtext(2);
|
|
2173
2036
|
i0.ɵɵelementEnd();
|
|
2174
2037
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -2182,8 +2045,7 @@ function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) {
|
|
|
2182
2045
|
i0.ɵɵelementEnd();
|
|
2183
2046
|
i0.ɵɵelementStart(9, "td");
|
|
2184
2047
|
i0.ɵɵtext(10);
|
|
2185
|
-
i0.ɵɵelementEnd();
|
|
2186
|
-
i0.ɵɵelementEnd();
|
|
2048
|
+
i0.ɵɵelementEnd()();
|
|
2187
2049
|
} if (rf & 2) {
|
|
2188
2050
|
const rowData_r9 = ctx.$implicit;
|
|
2189
2051
|
i0.ɵɵadvance(2);
|
|
@@ -2248,28 +2110,19 @@ class SeleccionArticuloInformacionComponent {
|
|
|
2248
2110
|
i0.ɵɵtemplate(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
|
|
2249
2111
|
i0.ɵɵtemplate(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
|
|
2250
2112
|
i0.ɵɵelementEnd();
|
|
2251
|
-
i0.ɵɵelementStart(5, "p-footer");
|
|
2252
|
-
i0.ɵɵelementStart(6, "div", 5);
|
|
2253
|
-
i0.ɵɵelementStart(7, "button", 6);
|
|
2113
|
+
i0.ɵɵelementStart(5, "p-footer")(6, "div", 5)(7, "button", 6);
|
|
2254
2114
|
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_Template_button_click_7_listener() { return ctx.hiddenDialog(); });
|
|
2255
|
-
i0.ɵɵelementEnd();
|
|
2256
|
-
i0.ɵɵelementEnd();
|
|
2257
|
-
i0.ɵɵelementEnd();
|
|
2258
|
-
i0.ɵɵelementEnd();
|
|
2115
|
+
i0.ɵɵelementEnd()()()();
|
|
2259
2116
|
} if (rf & 2) {
|
|
2260
2117
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(17, _c0$2, ctx.size + "px"));
|
|
2261
2118
|
i0.ɵɵproperty("header", ctx.titulo)("visible", ctx.showModal)("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
|
|
2262
2119
|
i0.ɵɵadvance(1);
|
|
2263
2120
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(19, _c1$1));
|
|
2264
2121
|
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
|
|
2265
|
-
} }, directives: [i4$2.Dialog, i8$1.Table, i4$1.PrimeTemplate, i4$1.Footer, i7.ButtonDirective
|
|
2122
|
+
} }, directives: [i4$2.Dialog, i8$1.Table, i4$1.PrimeTemplate, i8.NgForOf, i8$1.ResizableColumn, i4$1.Footer, i7.ButtonDirective], styles: [""] });
|
|
2266
2123
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
2267
2124
|
type: Component,
|
|
2268
|
-
args: [{
|
|
2269
|
-
selector: 'lib-seleccion-articulo-informacion',
|
|
2270
|
-
templateUrl: './seleccion-articulo-informacion.component.html',
|
|
2271
|
-
styleUrls: ['./seleccion-articulo-informacion.component.css']
|
|
2272
|
-
}]
|
|
2125
|
+
args: [{ selector: 'lib-seleccion-articulo-informacion', template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n [responsive]=\"true\" \n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <p-footer>\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </p-footer>\n</p-dialog>", styles: [""] }]
|
|
2273
2126
|
}], function () { return [{ type: ArticuloInformacionService }]; }, { showModal: [{
|
|
2274
2127
|
type: Input
|
|
2275
2128
|
}], articulo: [{
|
|
@@ -2338,8 +2191,7 @@ function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if
|
|
|
2338
2191
|
i0.ɵɵtextInterpolate(item_r15.descripcion);
|
|
2339
2192
|
} }
|
|
2340
2193
|
function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
2341
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2342
|
-
i0.ɵɵelementStart(1, "th", 23);
|
|
2194
|
+
i0.ɵɵelementStart(0, "tr")(1, "th", 23);
|
|
2343
2195
|
i0.ɵɵtext(2, "C\u00F3digo Ubicacion");
|
|
2344
2196
|
i0.ɵɵelementEnd();
|
|
2345
2197
|
i0.ɵɵelementStart(3, "th", 24);
|
|
@@ -2482,19 +2334,13 @@ function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if
|
|
|
2482
2334
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio));
|
|
2483
2335
|
} }
|
|
2484
2336
|
function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
2485
|
-
i0.ɵɵelementStart(0, "div", 45);
|
|
2486
|
-
i0.ɵɵelementStart(1, "div", 46);
|
|
2487
|
-
i0.ɵɵelementStart(2, "label", 47);
|
|
2337
|
+
i0.ɵɵelementStart(0, "div", 45)(1, "div", 46)(2, "label", 47);
|
|
2488
2338
|
i0.ɵɵtext(3);
|
|
2489
|
-
i0.ɵɵelementEnd();
|
|
2490
|
-
i0.ɵɵ
|
|
2491
|
-
i0.ɵɵelementStart(4, "div", 46);
|
|
2492
|
-
i0.ɵɵelementStart(5, "label", 47);
|
|
2339
|
+
i0.ɵɵelementEnd()();
|
|
2340
|
+
i0.ɵɵelementStart(4, "div", 46)(5, "label", 47);
|
|
2493
2341
|
i0.ɵɵtext(6);
|
|
2494
2342
|
i0.ɵɵpipe(7, "number");
|
|
2495
|
-
i0.ɵɵelementEnd();
|
|
2496
|
-
i0.ɵɵelementEnd();
|
|
2497
|
-
i0.ɵɵelementEnd();
|
|
2343
|
+
i0.ɵɵelementEnd()()();
|
|
2498
2344
|
} if (rf & 2) {
|
|
2499
2345
|
const item_r39 = ctx.$implicit;
|
|
2500
2346
|
i0.ɵɵadvance(3);
|
|
@@ -2530,11 +2376,9 @@ function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf &
|
|
|
2530
2376
|
i0.ɵɵelementStart(11, "td", 40);
|
|
2531
2377
|
i0.ɵɵtext(12);
|
|
2532
2378
|
i0.ɵɵelementEnd();
|
|
2533
|
-
i0.ɵɵelementStart(13, "td", 36);
|
|
2534
|
-
i0.ɵɵelementStart(14, "button", 41);
|
|
2379
|
+
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2535
2380
|
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const restoredCtx = i0.ɵɵrestoreView(_r42); const rowData_r16 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.onShowInformacion(rowData_r16); });
|
|
2536
|
-
i0.ɵɵelementEnd();
|
|
2537
|
-
i0.ɵɵelementEnd();
|
|
2381
|
+
i0.ɵɵelementEnd()();
|
|
2538
2382
|
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
|
|
2539
2383
|
i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
|
|
2540
2384
|
i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34);
|
|
@@ -2690,11 +2534,7 @@ class SeleccionaArticuloComponent {
|
|
|
2690
2534
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2691
2535
|
i0.ɵɵlistener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showArticulos = $event; })("onShow", function SeleccionaArticuloComponent_Template_p_dialog_onShow_0_listener() { return ctx.obtenerExistenciaArticulosShow(); })("onHide", function SeleccionaArticuloComponent_Template_p_dialog_onHide_0_listener() { ctx.busquedaArticulos = { tipoBusqueda: "" }; return ctx.emitirShowArticulos(); });
|
|
2692
2536
|
i0.ɵɵpipe(1, "translate");
|
|
2693
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
2694
|
-
i0.ɵɵelementStart(3, "div", 2);
|
|
2695
|
-
i0.ɵɵelementStart(4, "div", 3);
|
|
2696
|
-
i0.ɵɵelementStart(5, "div", 4);
|
|
2697
|
-
i0.ɵɵelementStart(6, "select", 5);
|
|
2537
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "div", 4)(6, "select", 5);
|
|
2698
2538
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_6_listener($event) { return ctx.busquedaArticulos.tipoBusqueda = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_6_listener() { return ctx.obtenerExistenciaArticulosVal(); });
|
|
2699
2539
|
i0.ɵɵelementStart(7, "option", 6);
|
|
2700
2540
|
i0.ɵɵtext(8, "Codigo");
|
|
@@ -2707,31 +2547,20 @@ class SeleccionaArticuloComponent {
|
|
|
2707
2547
|
i0.ɵɵelementEnd();
|
|
2708
2548
|
i0.ɵɵelementStart(13, "option", 9);
|
|
2709
2549
|
i0.ɵɵtext(14, "Igual a");
|
|
2710
|
-
i0.ɵɵelementEnd();
|
|
2711
|
-
i0.ɵɵelementEnd();
|
|
2712
|
-
i0.ɵɵelementEnd();
|
|
2550
|
+
i0.ɵɵelementEnd()()();
|
|
2713
2551
|
i0.ɵɵelementStart(15, "input", 10);
|
|
2714
2552
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { return ctx.busquedaArticulos.key = $event; })("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { return ctx.obtenerExistenciaArticulosKey($event); });
|
|
2715
2553
|
i0.ɵɵelementEnd();
|
|
2716
2554
|
i0.ɵɵelementStart(16, "button", 11);
|
|
2717
2555
|
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { return ctx.obtenerExistenciaArticulos(); });
|
|
2718
|
-
i0.ɵɵelementEnd();
|
|
2719
|
-
i0.ɵɵ
|
|
2720
|
-
i0.ɵɵelementEnd();
|
|
2721
|
-
i0.ɵɵelementStart(17, "div", 2);
|
|
2722
|
-
i0.ɵɵelementStart(18, "div", 3);
|
|
2723
|
-
i0.ɵɵelementStart(19, "div", 12);
|
|
2724
|
-
i0.ɵɵelementStart(20, "label", 13);
|
|
2556
|
+
i0.ɵɵelementEnd()()();
|
|
2557
|
+
i0.ɵɵelementStart(17, "div", 2)(18, "div", 3)(19, "div", 12)(20, "label", 13);
|
|
2725
2558
|
i0.ɵɵtext(21, "Almacen:");
|
|
2726
|
-
i0.ɵɵelementEnd();
|
|
2727
|
-
i0.ɵɵelementEnd();
|
|
2559
|
+
i0.ɵɵelementEnd()();
|
|
2728
2560
|
i0.ɵɵelementStart(22, "select", 14);
|
|
2729
2561
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { return ctx.movimiento.almacen = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { return ctx.obtenerExistenciaArticulosVal(); });
|
|
2730
2562
|
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 15);
|
|
2731
|
-
i0.ɵɵelementEnd();
|
|
2732
|
-
i0.ɵɵelementEnd();
|
|
2733
|
-
i0.ɵɵelementEnd();
|
|
2734
|
-
i0.ɵɵelementEnd();
|
|
2563
|
+
i0.ɵɵelementEnd()()()();
|
|
2735
2564
|
i0.ɵɵelementStart(24, "p-table", 16, 17);
|
|
2736
2565
|
i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { return ctx.filaSeleccionada($event); });
|
|
2737
2566
|
i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18);
|
|
@@ -2739,8 +2568,7 @@ class SeleccionaArticuloComponent {
|
|
|
2739
2568
|
i0.ɵɵelementEnd();
|
|
2740
2569
|
i0.ɵɵelementStart(28, "p-paginator", 20);
|
|
2741
2570
|
i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { return ctx.pagina($event); });
|
|
2742
|
-
i0.ɵɵelementEnd();
|
|
2743
|
-
i0.ɵɵelementEnd();
|
|
2571
|
+
i0.ɵɵelementEnd()();
|
|
2744
2572
|
i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
|
|
2745
2573
|
} if (rf & 2) {
|
|
2746
2574
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(22, _c0$1, ctx.size + "px"));
|
|
@@ -2760,14 +2588,10 @@ class SeleccionaArticuloComponent {
|
|
|
2760
2588
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(24, _c1));
|
|
2761
2589
|
i0.ɵɵadvance(1);
|
|
2762
2590
|
i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2763
|
-
} }, directives: [i4$2.Dialog, i5.SelectControlValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i7.ButtonDirective, i8.NgForOf, i8$1.Table, i4$1.PrimeTemplate,
|
|
2591
|
+
} }, directives: [i4$2.Dialog, i5.SelectControlValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i7.ButtonDirective, i8.NgForOf, i8$1.Table, i4$1.PrimeTemplate, i3.TranslateDirective, i8.NgIf, i8$1.SelectableRow, i10.Paginator, SeleccionArticuloInformacionComponent], pipes: [i3.TranslatePipe, i8.CurrencyPipe, i8.DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
|
|
2764
2592
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2765
2593
|
type: Component,
|
|
2766
|
-
args: [{
|
|
2767
|
-
selector: 'app-selecciona-articulo',
|
|
2768
|
-
templateUrl: './selecciona-articulo.component.html',
|
|
2769
|
-
styleUrls: ['./selecciona-articulo.component.css']
|
|
2770
|
-
}]
|
|
2594
|
+
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\" [responsive]=\"true\"\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"] }]
|
|
2771
2595
|
}], function () { return [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }]; }, { configuracion: [{
|
|
2772
2596
|
type: Input
|
|
2773
2597
|
}], showArticulos: [{
|
|
@@ -2798,8 +2622,7 @@ class AcreedorService extends CrudService {
|
|
|
2798
2622
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
2799
2623
|
|
|
2800
2624
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2801
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2802
|
-
i0.ɵɵelementStart(1, "th");
|
|
2625
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
2803
2626
|
i0.ɵɵtext(2);
|
|
2804
2627
|
i0.ɵɵpipe(3, "translate");
|
|
2805
2628
|
i0.ɵɵelementEnd();
|
|
@@ -2822,8 +2645,7 @@ function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
2822
2645
|
i0.ɵɵelementStart(16, "th");
|
|
2823
2646
|
i0.ɵɵtext(17);
|
|
2824
2647
|
i0.ɵɵpipe(18, "translate");
|
|
2825
|
-
i0.ɵɵelementEnd();
|
|
2826
|
-
i0.ɵɵelementEnd();
|
|
2648
|
+
i0.ɵɵelementEnd()();
|
|
2827
2649
|
} if (rf & 2) {
|
|
2828
2650
|
i0.ɵɵadvance(2);
|
|
2829
2651
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
|
|
@@ -2857,8 +2679,7 @@ function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf
|
|
|
2857
2679
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
|
|
2858
2680
|
} }
|
|
2859
2681
|
function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
2860
|
-
i0.ɵɵelementStart(0, "tr", 9);
|
|
2861
|
-
i0.ɵɵelementStart(1, "td");
|
|
2682
|
+
i0.ɵɵelementStart(0, "tr", 9)(1, "td");
|
|
2862
2683
|
i0.ɵɵtext(2);
|
|
2863
2684
|
i0.ɵɵelementEnd();
|
|
2864
2685
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -2877,8 +2698,7 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2877
2698
|
i0.ɵɵelementStart(12, "td");
|
|
2878
2699
|
i0.ɵɵtext(13);
|
|
2879
2700
|
i0.ɵɵpipe(14, "date");
|
|
2880
|
-
i0.ɵɵelementEnd();
|
|
2881
|
-
i0.ɵɵelementEnd();
|
|
2701
|
+
i0.ɵɵelementEnd()();
|
|
2882
2702
|
} if (rf & 2) {
|
|
2883
2703
|
const acreedor_r3 = ctx.$implicit;
|
|
2884
2704
|
i0.ɵɵproperty("pSelectableRow", acreedor_r3);
|
|
@@ -2898,12 +2718,10 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2898
2718
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
|
|
2899
2719
|
} }
|
|
2900
2720
|
function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
2901
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2902
|
-
i0.ɵɵelementStart(1, "td");
|
|
2721
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
2903
2722
|
i0.ɵɵtext(2);
|
|
2904
2723
|
i0.ɵɵpipe(3, "translate");
|
|
2905
|
-
i0.ɵɵelementEnd();
|
|
2906
|
-
i0.ɵɵelementEnd();
|
|
2724
|
+
i0.ɵɵelementEnd()();
|
|
2907
2725
|
} if (rf & 2) {
|
|
2908
2726
|
i0.ɵɵadvance(1);
|
|
2909
2727
|
i0.ɵɵattribute("colspan", 6);
|
|
@@ -2954,15 +2772,13 @@ class SelectAcreedorComponent {
|
|
|
2954
2772
|
/** @nocollapse */ SelectAcreedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2955
2773
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2956
2774
|
i0.ɵɵlistener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2957
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
2958
|
-
i0.ɵɵelementStart(2, "input", 2);
|
|
2775
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
|
|
2959
2776
|
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(); });
|
|
2960
2777
|
i0.ɵɵpipe(3, "translate");
|
|
2961
2778
|
i0.ɵɵelementEnd();
|
|
2962
2779
|
i0.ɵɵelementStart(4, "button", 3);
|
|
2963
2780
|
i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2964
|
-
i0.ɵɵelementEnd();
|
|
2965
|
-
i0.ɵɵelementEnd();
|
|
2781
|
+
i0.ɵɵelementEnd()();
|
|
2966
2782
|
i0.ɵɵelementStart(5, "p-table", 4);
|
|
2967
2783
|
i0.ɵɵlistener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { return ctx.acreedorSeleccionado = $event; })("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
|
|
2968
2784
|
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
|
|
@@ -2971,8 +2787,7 @@ class SelectAcreedorComponent {
|
|
|
2971
2787
|
i0.ɵɵelementEnd();
|
|
2972
2788
|
i0.ɵɵelementStart(9, "p-paginator", 8);
|
|
2973
2789
|
i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
2974
|
-
i0.ɵɵelementEnd();
|
|
2975
|
-
i0.ɵɵelementEnd();
|
|
2790
|
+
i0.ɵɵelementEnd()();
|
|
2976
2791
|
} if (rf & 2) {
|
|
2977
2792
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
2978
2793
|
i0.ɵɵadvance(2);
|
|
@@ -2982,13 +2797,10 @@ class SelectAcreedorComponent {
|
|
|
2982
2797
|
i0.ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
|
|
2983
2798
|
i0.ɵɵadvance(4);
|
|
2984
2799
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
|
|
2985
|
-
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate,
|
|
2800
|
+
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i8$1.SelectableRow, i8.NgIf, i10.Paginator], pipes: [i3.TranslatePipe, i8.DatePipe], encapsulation: 2 });
|
|
2986
2801
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
2987
2802
|
type: Component,
|
|
2988
|
-
args: [{
|
|
2989
|
-
templateUrl: 'select-acreedor.component.html',
|
|
2990
|
-
selector: 'select-acreedor'
|
|
2991
|
-
}]
|
|
2803
|
+
args: [{ selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n [responsive]=\"true\">\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
2992
2804
|
}], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
2993
2805
|
type: Input
|
|
2994
2806
|
}], acreedorSeleccionado: [{
|
|
@@ -3932,4 +3744,4 @@ class NormaInformacionFinancieraModel {
|
|
|
3932
3744
|
*/
|
|
3933
3745
|
|
|
3934
3746
|
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
3935
|
-
//# sourceMappingURL=visorus-erp-core.
|
|
3747
|
+
//# sourceMappingURL=visorus-erp-core.mjs.map
|