visorus-erp-core 1.0.8 → 10.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/bundles/visorus-erp-core.umd.js +3074 -4437
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +1 -15
- package/bundles/visorus-erp-core.umd.min.js.map +1 -1
- package/esm2015/lib/app.module.js +70 -13
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +175 -82
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +8 -24
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +8 -28
- package/esm2015/lib/components/agente/models/Agente.js +1 -37
- package/esm2015/lib/components/agente/services/agente.service.js +8 -38
- package/esm2015/lib/components/almacen/models/Almacen.js +1 -37
- package/esm2015/lib/components/almacen/services/almacen.service.js +8 -28
- package/esm2015/lib/components/banco/models/Banco.js +1 -25
- package/esm2015/lib/components/banco/services/banco.service.js +8 -17
- package/esm2015/lib/components/caja/session-create/session-create.component.js +120 -73
- package/esm2015/lib/components/caja/sessionCaja.service.js +8 -24
- package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -19
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +8 -17
- package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -19
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +8 -17
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +8 -17
- package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -47
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +8 -17
- package/esm2015/lib/components/cliente/models/Cliente.js +1 -79
- package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -21
- package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -20
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +171 -84
- package/esm2015/lib/components/cliente/services/cliente.service.js +8 -21
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +8 -29
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +8 -29
- package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -17
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +8 -17
- package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -37
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +8 -17
- package/esm2015/lib/components/departamento/models/Departamento.js +1 -19
- package/esm2015/lib/components/departamento/services/departamento.service.js +8 -17
- package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -61
- package/esm2015/lib/components/empresa/models/Empresa.js +1 -21
- package/esm2015/lib/components/empresa/services/empresa.service.js +8 -27
- package/esm2015/lib/components/error404/error404.component.js +28 -16
- package/esm2015/lib/components/flete/models/Flete.js +1 -15
- package/esm2015/lib/components/flete/services/flete.service.js +8 -24
- package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -21
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +8 -17
- package/esm2015/lib/components/loading/loading.component.js +48 -43
- package/esm2015/lib/components/loading/loading.service.js +10 -27
- package/esm2015/lib/components/loading-screen/loading-screen.component.js +33 -75
- package/esm2015/lib/components/loading-screen/loading-screen.service.js +8 -32
- package/esm2015/lib/components/login-modal/login-modal.component.js +131 -80
- package/esm2015/lib/components/login-modal/login-modal.service.js +10 -20
- package/esm2015/lib/components/moneda/models/Moneda.js +1 -27
- package/esm2015/lib/components/moneda/services/moneda.service.js +8 -24
- package/esm2015/lib/components/pdfModal/pdf-modal.component.js +46 -70
- package/esm2015/lib/components/pdfModal/pdf-modal.service.js +12 -32
- package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -17
- package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -15
- package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -29
- package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -17
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +8 -30
- package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -39
- package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -21
- package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -20
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +106 -82
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +8 -24
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +8 -29
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +8 -29
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +114 -77
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +8 -29
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +433 -137
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +13 -49
- package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -55
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +8 -31
- package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -15
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +8 -17
- package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -35
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +8 -17
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +118 -104
- package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +47 -58
- package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -42
- package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -18
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +8 -27
- package/esm2015/lib/globalPrimeNg.js +4 -11
- package/esm2015/lib/httpInterceptor/httpInterceptor.js +13 -64
- package/esm2015/lib/importComponents.js +1 -9
- package/esm2015/lib/importComponetsConta.js +1 -6
- package/esm2015/lib/models/PersonaMoral.js +1 -21
- package/esm2015/lib/models/Usuario.js +1 -19
- package/esm2015/lib/models/auth.js +1 -13
- package/esm2015/lib/services/auth.service.js +23 -148
- package/esm2015/lib/services/authenticated.service.js +11 -61
- package/esm2015/lib/services/canActivateGuard.service.ts.js +8 -35
- package/esm2015/lib/services/catalogo-adicional.service.js +8 -24
- package/esm2015/lib/services/controlAcceso.service.js +14 -51
- package/esm2015/lib/services/crud.service.js +3 -71
- package/esm2015/lib/services/file.service.js +16 -83
- package/esm2015/lib/services/global.service.js +3 -65
- package/esm2015/lib/services/init.service.js +18 -70
- package/esm2015/lib/services/message.service.js +8 -40
- package/esm2015/lib/services/paginate.service.js +12 -58
- package/esm2015/lib/services/personaMoral.service.js +8 -17
- package/esm2015/lib/services/versionCheck.service.js +13 -64
- package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -14
- package/esm2015/public_api.js +93 -97
- package/esm2015/visorus-erp-core.js +2 -12
- package/fesm2015/visorus-erp-core.js +1951 -3598
- package/fesm2015/visorus-erp-core.js.map +1 -1
- package/lib/app.module.d.ts +50 -0
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +3 -0
- package/lib/components/acreedor/services/acreedor.service.d.ts +3 -0
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +3 -0
- package/lib/components/agente/services/agente.service.d.ts +3 -0
- package/lib/components/almacen/services/almacen.service.d.ts +3 -0
- package/lib/components/banco/services/banco.service.d.ts +3 -0
- package/lib/components/caja/session-create/session-create.component.d.ts +3 -0
- package/lib/components/caja/sessionCaja.service.d.ts +3 -0
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +3 -0
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +3 -0
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +3 -0
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +3 -0
- package/lib/components/cliente/select/select-cliente.component.d.ts +3 -0
- package/lib/components/cliente/services/cliente.service.d.ts +3 -0
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +3 -0
- package/lib/components/cliente/services/clienteFlete.service.d.ts +3 -0
- package/lib/components/contacto/services/datoContacto.service.d.ts +3 -0
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +3 -0
- package/lib/components/departamento/services/departamento.service.d.ts +3 -0
- package/lib/components/empresa/services/empresa.service.d.ts +3 -0
- package/lib/components/error404/error404.component.d.ts +3 -0
- package/lib/components/flete/services/flete.service.d.ts +3 -0
- package/lib/components/formaPago/services/FormaPago.service.d.ts +3 -0
- package/lib/components/loading/loading.component.d.ts +3 -0
- package/lib/components/loading/loading.service.d.ts +3 -0
- package/lib/components/loading-screen/loading-screen.component.d.ts +3 -0
- package/lib/components/loading-screen/loading-screen.service.d.ts +5 -1
- package/lib/components/login-modal/login-modal.component.d.ts +3 -0
- package/lib/components/login-modal/login-modal.service.d.ts +3 -0
- package/lib/components/moneda/services/moneda.service.d.ts +3 -0
- package/lib/components/pdfModal/pdf-modal.component.d.ts +4 -1
- package/lib/components/pdfModal/pdf-modal.service.d.ts +3 -0
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +3 -0
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +3 -0
- package/lib/components/proveedor/services/proveedor.service.d.ts +3 -0
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +3 -0
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +3 -0
- package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +4 -1
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +3 -0
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +4 -0
- package/lib/components/selecciona-articulo/stock.service.d.ts +3 -0
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +3 -0
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +3 -0
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +3 -0
- package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +3 -0
- package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +3 -0
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +3 -0
- package/lib/globalPrimeNg.d.ts +2 -2
- package/lib/httpInterceptor/httpInterceptor.d.ts +3 -0
- package/lib/importComponents.d.ts +2 -2
- package/lib/services/auth.service.d.ts +3 -0
- package/lib/services/authenticated.service.d.ts +3 -0
- package/lib/services/canActivateGuard.service.ts.d.ts +3 -0
- package/lib/services/catalogo-adicional.service.d.ts +3 -0
- package/lib/services/controlAcceso.service.d.ts +3 -0
- package/lib/services/file.service.d.ts +3 -0
- package/lib/services/init.service.d.ts +3 -0
- package/lib/services/message.service.d.ts +3 -0
- package/lib/services/paginate.service.d.ts +3 -0
- package/lib/services/personaMoral.service.d.ts +3 -0
- package/lib/services/versionCheck.service.d.ts +3 -0
- package/package.json +15 -12
- package/visorus-erp-core.d.ts +1 -6
- package/esm5/lib/app.module.js +0 -60
- package/esm5/lib/components/acreedor/select/select-acreedor.component.js +0 -139
- package/esm5/lib/components/acreedor/services/acreedor.service.js +0 -38
- package/esm5/lib/components/acreedor/services/acreedorCuentaContable.js +0 -49
- package/esm5/lib/components/agente/models/Agente.js +0 -46
- package/esm5/lib/components/agente/services/agente.service.js +0 -75
- package/esm5/lib/components/almacen/models/Almacen.js +0 -43
- package/esm5/lib/components/almacen/services/almacen.service.js +0 -49
- package/esm5/lib/components/banco/models/Banco.js +0 -33
- package/esm5/lib/components/banco/services/banco.service.js +0 -29
- package/esm5/lib/components/caja/session-create/session-create.component.js +0 -181
- package/esm5/lib/components/caja/sessionCaja.service.js +0 -38
- package/esm5/lib/components/catalogoTipo/models/CatalogoTipo.js +0 -25
- package/esm5/lib/components/catalogoTipo/services/catalogoTipo.service.js +0 -29
- package/esm5/lib/components/clasificadorTipo/models/ClasificadorTipo.js +0 -25
- package/esm5/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +0 -29
- package/esm5/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +0 -29
- package/esm5/lib/components/claveMovimiento/models/ClaveMovimiento.js +0 -53
- package/esm5/lib/components/claveMovimiento/services/claveMovimiento.service.js +0 -29
- package/esm5/lib/components/cliente/models/Cliente.js +0 -92
- package/esm5/lib/components/cliente/models/ClienteCuentaBanco.js +0 -30
- package/esm5/lib/components/cliente/models/ClienteFlete.js +0 -30
- package/esm5/lib/components/cliente/select/select-cliente.component.js +0 -157
- package/esm5/lib/components/cliente/services/cliente.service.js +0 -40
- package/esm5/lib/components/cliente/services/clienteCuentaBanco.service.js +0 -51
- package/esm5/lib/components/cliente/services/clienteFlete.service.js +0 -51
- package/esm5/lib/components/contacto/models/DatoContacto.js +0 -25
- package/esm5/lib/components/contacto/services/datoContacto.service.js +0 -29
- package/esm5/lib/components/dato-direccion/models/DatoDireccion.js +0 -43
- package/esm5/lib/components/dato-direccion/services/datoDireccion.service.js +0 -29
- package/esm5/lib/components/departamento/models/Departamento.js +0 -25
- package/esm5/lib/components/departamento/services/departamento.service.js +0 -29
- package/esm5/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +0 -69
- package/esm5/lib/components/empresa/models/Empresa.js +0 -33
- package/esm5/lib/components/empresa/services/empresa.service.js +0 -48
- package/esm5/lib/components/error404/error404.component.js +0 -29
- package/esm5/lib/components/flete/models/Flete.js +0 -21
- package/esm5/lib/components/flete/services/flete.service.js +0 -38
- package/esm5/lib/components/formaPago/models/FormaPago.js +0 -27
- package/esm5/lib/components/formaPago/services/FormaPago.service.js +0 -29
- package/esm5/lib/components/loading/loading.component.js +0 -61
- package/esm5/lib/components/loading/loading.service.js +0 -59
- package/esm5/lib/components/loading-screen/loading-screen.component.js +0 -104
- package/esm5/lib/components/loading-screen/loading-screen.service.js +0 -67
- package/esm5/lib/components/login-modal/login-modal.component.js +0 -137
- package/esm5/lib/components/login-modal/login-modal.service.js +0 -36
- package/esm5/lib/components/moneda/models/Moneda.js +0 -33
- package/esm5/lib/components/moneda/services/moneda.service.js +0 -38
- package/esm5/lib/components/pdfModal/pdf-modal.component.js +0 -107
- package/esm5/lib/components/pdfModal/pdf-modal.service.js +0 -59
- package/esm5/lib/components/persona-fisica/models/EstadoCivil.js +0 -23
- package/esm5/lib/components/persona-fisica/models/Genero.js +0 -21
- package/esm5/lib/components/persona-fisica/models/Persona.js +0 -37
- package/esm5/lib/components/persona-fisica/models/PersonaFisica.js +0 -27
- package/esm5/lib/components/persona-fisica/services/personaFisica.service.js +0 -56
- package/esm5/lib/components/proveedor/models/Proveedor.js +0 -52
- package/esm5/lib/components/proveedor/models/ProveedorCuentaBanco.js +0 -30
- package/esm5/lib/components/proveedor/models/ProveedorFlete.js +0 -30
- package/esm5/lib/components/proveedor/select/select-proveedor.component.js +0 -139
- package/esm5/lib/components/proveedor/services/proveedor.service.js +0 -38
- package/esm5/lib/components/proveedor/services/proveedorCuentaBanco.service.js +0 -51
- package/esm5/lib/components/proveedor/services/proveedorFlete.service.js +0 -51
- package/esm5/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +0 -137
- package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +0 -51
- package/esm5/lib/components/selecciona-articulo/selecciona-articulo.component.js +0 -264
- package/esm5/lib/components/selecciona-articulo/stock.service.js +0 -75
- package/esm5/lib/components/serieDocumento/models/SerieDocumento.js +0 -61
- package/esm5/lib/components/serieDocumento/services/serieDocumento.service.js +0 -58
- package/esm5/lib/components/tipo-contacto/models/TipoContacto.js +0 -22
- package/esm5/lib/components/tipo-contacto/services/tipoContacto.service.js +0 -29
- package/esm5/lib/components/ubicacion/models/Ubicacion.js +0 -41
- package/esm5/lib/components/ubicacion/services/ubicacion.service.js +0 -29
- package/esm5/lib/contabilidad/componentes/cclista/cclista.component.js +0 -333
- package/esm5/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +0 -94
- package/esm5/lib/contabilidad/modelos/cuentaContable.model.js +0 -49
- package/esm5/lib/contabilidad/modelos/normaInfoFinanciera.model.js +0 -25
- package/esm5/lib/contabilidad/servicios/cuentacontable.service.js +0 -47
- package/esm5/lib/globalPrimeNg.js +0 -73
- package/esm5/lib/httpInterceptor/httpInterceptor.js +0 -154
- package/esm5/lib/importComponents.js +0 -32
- package/esm5/lib/importComponetsConta.js +0 -12
- package/esm5/lib/models/PersonaMoral.js +0 -31
- package/esm5/lib/models/Usuario.js +0 -25
- package/esm5/lib/models/auth.js +0 -19
- package/esm5/lib/services/auth.service.js +0 -378
- package/esm5/lib/services/authenticated.service.js +0 -133
- package/esm5/lib/services/canActivateGuard.service.ts.js +0 -59
- package/esm5/lib/services/catalogo-adicional.service.js +0 -38
- package/esm5/lib/services/controlAcceso.service.js +0 -92
- package/esm5/lib/services/crud.service.js +0 -156
- package/esm5/lib/services/file.service.js +0 -157
- package/esm5/lib/services/global.service.js +0 -155
- package/esm5/lib/services/init.service.js +0 -108
- package/esm5/lib/services/message.service.js +0 -125
- package/esm5/lib/services/paginate.service.js +0 -115
- package/esm5/lib/services/personaMoral.service.js +0 -29
- package/esm5/lib/services/versionCheck.service.js +0 -117
- package/esm5/lib/utils/tipo_catalogo.ts.js +0 -22
- package/esm5/public_api.js +0 -100
- package/esm5/visorus-erp-core.js +0 -15
- package/fesm5/visorus-erp-core.js +0 -6108
- package/fesm5/visorus-erp-core.js.map +0 -1
- package/visorus-erp-core.metadata.json +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CuentaContableModel } from './../../modelos/cuentaContable.model';
|
|
2
2
|
import { CuentaContableService } from './../../servicios/cuentacontable.service';
|
|
3
3
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CclistaComponent implements OnInit {
|
|
5
6
|
private _cuentaContableService;
|
|
6
7
|
isShared: boolean;
|
|
@@ -20,4 +21,6 @@ export declare class CclistaComponent implements OnInit {
|
|
|
20
21
|
filterAccounts(evt: any): void;
|
|
21
22
|
resetAccount(): any[];
|
|
22
23
|
browseAccount(accounts: any): any[];
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDef<CclistaComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<CclistaComponent, "lib-cclista", never, { "isShared": "isShared"; "typeAccount": "typeAccount"; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never>;
|
|
23
26
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CuentaContableModel } from './../../modelos/cuentaContable.model';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CcseleccionDialogComponent implements OnInit {
|
|
4
5
|
dialog: any;
|
|
5
6
|
tipoCuenta: number;
|
|
@@ -18,4 +19,6 @@ export declare class CcseleccionDialogComponent implements OnInit {
|
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
getAccount(account: any): void;
|
|
20
21
|
hiddenDialog(evt: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDef<CcseleccionDialogComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<CcseleccionDialogComponent, "lib-ccseleccion-dialog", never, { "tipoCuenta": "tipoCuenta"; "displayShowCuentas": "displayShowCuentas"; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never>;
|
|
21
24
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
2
|
import { CrudService } from './../../services/crud.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CuentaContableService extends CrudService {
|
|
4
5
|
private httpClient;
|
|
5
6
|
constructor(httpClient: HttpClient);
|
|
6
7
|
obtieneCuentasContablesRecursivo(): import("rxjs").Observable<Object>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDef<CuentaContableService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDef<CuentaContableService>;
|
|
7
10
|
}
|
package/lib/globalPrimeNg.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const primeNg: (typeof CardModule)[];
|
|
1
|
+
import { ButtonModule } from 'primeng/button';
|
|
3
2
|
import { ConfirmationService } from 'primeng/api';
|
|
3
|
+
export declare const primeNg: (typeof ButtonModule)[];
|
|
4
4
|
export declare const primeNgServices: (typeof ConfirmationService)[];
|
|
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { ToastrService } from 'ngx-toastr';
|
|
4
4
|
import { LoginModalService } from '../components/login-modal/login-modal.service';
|
|
5
5
|
import { LoadingScreenService } from '../components/loading-screen/loading-screen.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class httpInterceptor implements HttpInterceptor {
|
|
7
8
|
private loginModalService;
|
|
8
9
|
private toastrService;
|
|
@@ -11,4 +12,6 @@ export declare class httpInterceptor implements HttpInterceptor {
|
|
|
11
12
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
12
13
|
private handleError;
|
|
13
14
|
readError(respuesta: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDef<httpInterceptor, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDef<httpInterceptor>;
|
|
14
17
|
}
|
|
@@ -7,7 +7,7 @@ import { SelectClienteComponent } from './components/cliente/select/select-clien
|
|
|
7
7
|
import { SelectProveedorComponent } from './components/proveedor/select/select-proveedor.component';
|
|
8
8
|
import { SeleccionaArticuloComponent } from './components/selecciona-articulo/selecciona-articulo.component';
|
|
9
9
|
import { SelectAcreedorComponent } from './components/acreedor/select/select-acreedor.component';
|
|
10
|
-
export declare const components: (typeof LoadingComponent | typeof LoadingScreenComponent | typeof
|
|
11
|
-
export declare const exportComponents: (typeof LoadingComponent | typeof LoadingScreenComponent | typeof
|
|
10
|
+
export declare const components: (typeof LoadingComponent | typeof LoadingScreenComponent | typeof PdfModalComponent | typeof LoginModalComponent | typeof SessionCreateComponent | typeof SelectClienteComponent | typeof SelectProveedorComponent | typeof SeleccionaArticuloComponent | typeof SelectAcreedorComponent)[];
|
|
11
|
+
export declare const exportComponents: (typeof LoadingComponent | typeof LoadingScreenComponent | typeof PdfModalComponent | typeof LoginModalComponent | typeof SessionCreateComponent | typeof SelectClienteComponent | typeof SelectProveedorComponent | typeof SeleccionaArticuloComponent | typeof SelectAcreedorComponent)[];
|
|
12
12
|
export declare const exportServices: any[];
|
|
13
13
|
export declare const exportModels: any[];
|
|
@@ -3,6 +3,7 @@ import { HttpClient } from "@angular/common/http";
|
|
|
3
3
|
import { Usuario } from '../models/Usuario';
|
|
4
4
|
import { Auth } from '../models/auth';
|
|
5
5
|
import { LoadingService } from '../components/loading/loading.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AuthService {
|
|
7
8
|
private httpClient;
|
|
8
9
|
private loadingService;
|
|
@@ -26,4 +27,6 @@ export declare class AuthService {
|
|
|
26
27
|
setModulo(modulo: any): import("rxjs").Observable<Object>;
|
|
27
28
|
quitarModulo(): import("rxjs").Observable<Object>;
|
|
28
29
|
getDetalsUser(): import("rxjs").Observable<Object>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDef<AuthService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDef<AuthService>;
|
|
29
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuthService } from './auth.service';
|
|
2
2
|
import { ControlAccesoService } from './controlAcceso.service';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class Authenticated {
|
|
5
6
|
private authService;
|
|
6
7
|
private controlAccesoService;
|
|
@@ -8,4 +9,6 @@ export declare class Authenticated {
|
|
|
8
9
|
constructor(authService: AuthService, controlAccesoService: ControlAccesoService, router: Router);
|
|
9
10
|
load(modulo?: any): boolean;
|
|
10
11
|
regresaAlprincipal(url: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDef<Authenticated, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDef<Authenticated>;
|
|
11
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CanActivate } from '@angular/router';
|
|
2
2
|
import { ControlAccesoService } from './controlAcceso.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CanActivateGuard implements CanActivate {
|
|
4
5
|
private controlAccesoService;
|
|
5
6
|
rol: string;
|
|
@@ -7,4 +8,6 @@ export declare class CanActivateGuard implements CanActivate {
|
|
|
7
8
|
constructor(controlAccesoService: ControlAccesoService);
|
|
8
9
|
canActivate(): boolean;
|
|
9
10
|
permisos(rol: any): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDef<CanActivateGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDef<CanActivateGuard>;
|
|
10
13
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CrudService } from './crud.service';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CatalogoAdicionalService extends CrudService {
|
|
4
5
|
private httpClient;
|
|
5
6
|
constructor(httpClient: HttpClient);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDef<CatalogoAdicionalService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDef<CatalogoAdicionalService>;
|
|
6
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { AuthService } from './auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ControlAccesoService {
|
|
4
5
|
private authService;
|
|
5
6
|
constructor(authService: AuthService);
|
|
@@ -8,4 +9,6 @@ export declare class ControlAccesoService {
|
|
|
8
9
|
changeDetalleUsuario: EventEmitter<any>;
|
|
9
10
|
set(detallesUsuarios: any): void;
|
|
10
11
|
canActivete(rols: String[]): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDef<ControlAccesoService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDef<ControlAccesoService>;
|
|
11
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ToastrService } from "ngx-toastr";
|
|
2
2
|
import { TranslateService } from "@ngx-translate/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class FileService {
|
|
4
5
|
private _toastrService;
|
|
5
6
|
private translate;
|
|
@@ -8,4 +9,6 @@ export declare class FileService {
|
|
|
8
9
|
base64ToBlob(base64: any, type: any): Blob;
|
|
9
10
|
blobToDowload(blob: any, type: any, name: any): void;
|
|
10
11
|
base64ToFileDowload(base64: any, type: any, name: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDef<FileService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDef<FileService>;
|
|
11
14
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { AuthService } from './auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class InitService {
|
|
4
5
|
private http;
|
|
5
6
|
private authService;
|
|
6
7
|
constructor(http: HttpClient, authService: AuthService);
|
|
7
8
|
initConfig(): void;
|
|
8
9
|
cargaConfig(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDef<InitService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDef<InitService>;
|
|
9
12
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ToastrService } from 'ngx-toastr';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class MessageService {
|
|
3
4
|
private toastr;
|
|
4
5
|
constructor(toastr: ToastrService);
|
|
5
6
|
deployMessage(tipo: string, titulo: string, msg: string): void;
|
|
6
7
|
success(msg: string): any[];
|
|
7
8
|
error(error: any): any[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDef<MessageService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDef<MessageService>;
|
|
8
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TranslateService } from "@ngx-translate/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class PaginateService {
|
|
3
4
|
private translate;
|
|
4
5
|
constructor(translate: TranslateService);
|
|
@@ -14,4 +15,6 @@ export declare class PaginateService {
|
|
|
14
15
|
value: any;
|
|
15
16
|
}[];
|
|
16
17
|
getOrden(arg: any, lang?: string): any[];
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDef<PaginateService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDef<PaginateService>;
|
|
17
20
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CrudService } from "./crud.service";
|
|
2
2
|
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PersonaMoralService extends CrudService {
|
|
4
5
|
constructor(http: HttpClient);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDef<PersonaMoralService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDef<PersonaMoralService>;
|
|
5
8
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class VersionCheckService {
|
|
3
4
|
private http;
|
|
4
5
|
private currentHash;
|
|
@@ -8,4 +9,6 @@ export declare class VersionCheckService {
|
|
|
8
9
|
initVersionCheck(): void;
|
|
9
10
|
private checkVersion;
|
|
10
11
|
private hasHashChanged;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDef<VersionCheckService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDef<VersionCheckService>;
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visorus-erp-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "~
|
|
6
|
-
"@angular/core": "~
|
|
7
|
-
"@angular/
|
|
8
|
-
"
|
|
9
|
-
"
|
|
5
|
+
"@angular/common": "~10.2.5",
|
|
6
|
+
"@angular/core": "~10.2.5",
|
|
7
|
+
"@angular/forms": "~10.2.5",
|
|
8
|
+
"@angular/cdk": "~10.2.7",
|
|
9
|
+
"primeng": "~10.0.3",
|
|
10
|
+
"primeflex": "^4.0.0",
|
|
11
|
+
"primeicons": "^4.0.0",
|
|
12
|
+
"rxjs": "~6.6.7"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"tslib": "^2.0.0"
|
|
10
16
|
},
|
|
11
17
|
"main": "bundles/visorus-erp-core.umd.js",
|
|
12
|
-
"module": "
|
|
18
|
+
"module": "fesm2015/visorus-erp-core.js",
|
|
13
19
|
"es2015": "fesm2015/visorus-erp-core.js",
|
|
14
|
-
"esm5": "esm5/visorus-erp-core.js",
|
|
15
20
|
"esm2015": "esm2015/visorus-erp-core.js",
|
|
16
|
-
"fesm5": "fesm5/visorus-erp-core.js",
|
|
17
21
|
"fesm2015": "fesm2015/visorus-erp-core.js",
|
|
18
22
|
"typings": "visorus-erp-core.d.ts",
|
|
19
|
-
"metadata": "visorus-erp-core.metadata.json",
|
|
20
23
|
"sideEffects": false,
|
|
21
|
-
"
|
|
22
|
-
"
|
|
24
|
+
"scripts": {
|
|
25
|
+
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
|
|
23
26
|
}
|
|
24
27
|
}
|
package/visorus-erp-core.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="visorus-erp-core" />
|
|
4
5
|
export * from './public_api';
|
|
5
|
-
export { SeleccionArticuloInformacionComponent as ɵd } from './lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component';
|
|
6
|
-
export { ArticuloInformacionService as ɵe } from './lib/components/seleccion-articulo-informacion/services/articulo-informacion.service';
|
|
7
|
-
export { CuentaContableService as ɵc } from './lib/contabilidad/servicios/cuentacontable.service';
|
|
8
|
-
export { primeNg as ɵf, primeNgServices as ɵg } from './lib/globalPrimeNg';
|
|
9
|
-
export { components as ɵa } from './lib/importComponents';
|
|
10
|
-
export { contaComponents as ɵb } from './lib/importComponetsConta';
|
package/esm5/lib/app.module.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { contaComponents } from './importComponetsConta';
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
8
|
-
//interceptor
|
|
9
|
-
import { httpInterceptor } from './httpInterceptor/httpInterceptor';
|
|
10
|
-
//components
|
|
11
|
-
import { Error404Component } from './components/error404/error404.component';
|
|
12
|
-
import { components } from './importComponents';
|
|
13
|
-
//modules proyect
|
|
14
|
-
import { primeNg, primeNgServices } from './globalPrimeNg';
|
|
15
|
-
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
16
|
-
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
17
|
-
import { ToastrModule } from 'ngx-toastr';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
import { SeleccionArticuloInformacionComponent } from './components/seleccion-articulo-informacion/seleccion-articulo-informacion.component';
|
|
20
|
-
/**
|
|
21
|
-
* @param {?} http
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
export function HttpLoaderFactory(http) {
|
|
25
|
-
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
26
|
-
}
|
|
27
|
-
var CoreLibModule = /** @class */ (function () {
|
|
28
|
-
function CoreLibModule() {
|
|
29
|
-
}
|
|
30
|
-
CoreLibModule.decorators = [
|
|
31
|
-
{ type: NgModule, args: [{
|
|
32
|
-
declarations: [
|
|
33
|
-
Error404Component,
|
|
34
|
-
components,
|
|
35
|
-
contaComponents,
|
|
36
|
-
SeleccionArticuloInformacionComponent
|
|
37
|
-
],
|
|
38
|
-
imports: [
|
|
39
|
-
CommonModule,
|
|
40
|
-
primeNg,
|
|
41
|
-
ToastrModule.forRoot(),
|
|
42
|
-
TranslateModule.forRoot({
|
|
43
|
-
loader: {
|
|
44
|
-
provide: TranslateLoader,
|
|
45
|
-
useFactory: HttpLoaderFactory,
|
|
46
|
-
deps: [HttpClient]
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
],
|
|
50
|
-
providers: [
|
|
51
|
-
primeNgServices,
|
|
52
|
-
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
53
|
-
],
|
|
54
|
-
exports: [components, contaComponents]
|
|
55
|
-
},] }
|
|
56
|
-
];
|
|
57
|
-
return CoreLibModule;
|
|
58
|
-
}());
|
|
59
|
-
export { CoreLibModule };
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvYXBwLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR3pELE9B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jQwNENvbXBvbmVudCxcbiAgICBjb21wb25lbnRzLFxuICAgIGNvbnRhQ29tcG9uZW50cyxcbiAgICBTZWxlY2Npb25BcnRpY3Vsb0luZm9ybWFjaW9uQ29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgcHJpbWVOZyxcbiAgICBUb2FzdHJNb2R1bGUuZm9yUm9vdCgpLFxuICAgIFRyYW5zbGF0ZU1vZHVsZS5mb3JSb290KHtcbiAgICAgIGxvYWRlcjoge1xuICAgICAgICBwcm92aWRlOiBUcmFuc2xhdGVMb2FkZXIsXG4gICAgICAgIHVzZUZhY3Rvcnk6IEh0dHBMb2FkZXJGYWN0b3J5LFxuICAgICAgICBkZXBzOiBbSHR0cENsaWVudF1cbiAgICAgIH1cbiAgIH0pIFxuICBdLFxuICBwcm92aWRlcnM6IFsgICAgXG4gICAgICAgICAgcHJpbWVOZ1NlcnZpY2VzLFxuICAgICAgICAgIHsgcHJvdmlkZTogSFRUUF9JTlRFUkNFUFRPUlMsIHVzZUNsYXNzOiBodHRwSW50ZXJjZXB0b3IsIG11bHRpOiB0cnVlIH1cbiAgICAgICAgICBdLFxuICBleHBvcnRzOiBbIGNvbXBvbmVudHMsIGNvbnRhQ29tcG9uZW50cyBdXG59KVxuZXhwb3J0IGNsYXNzIENvcmVMaWJNb2R1bGUge1xuICBcbiB9XG4iXX0=
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, Input, Output, EventEmitter } from "@angular/core";
|
|
6
|
-
import { AcreedorService } from "../services/acreedor.service";
|
|
7
|
-
import { Proveedor } from '../../proveedor/models/Proveedor';
|
|
8
|
-
import { PaginateService } from '../../../services/paginate.service';
|
|
9
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
10
|
-
var SelectAcreedorComponent = /** @class */ (function () {
|
|
11
|
-
function SelectAcreedorComponent(acreedorService, paginanateService, translate) {
|
|
12
|
-
this.acreedorService = acreedorService;
|
|
13
|
-
this.paginanateService = paginanateService;
|
|
14
|
-
this.translate = translate;
|
|
15
|
-
this.params = [];
|
|
16
|
-
this.ordenar = [];
|
|
17
|
-
this.visible = false;
|
|
18
|
-
this.acreedorSeleccionado = new Proveedor();
|
|
19
|
-
this.select = new EventEmitter();
|
|
20
|
-
this.translate.get('es');
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
SelectAcreedorComponent.prototype.ngOnInit = /**
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
function () {
|
|
29
|
-
this.page = this.paginanateService.getPage();
|
|
30
|
-
/** @type {?} */
|
|
31
|
-
var arg = [];
|
|
32
|
-
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
33
|
-
this.acreedores = [];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @return {?}
|
|
37
|
-
*/
|
|
38
|
-
SelectAcreedorComponent.prototype.cargarDatosAcreedores = /**
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
function () {
|
|
42
|
-
var _this = this;
|
|
43
|
-
this.params = this.paginanateService.getParams(this.page);
|
|
44
|
-
this.params.push({ param: 'estatus', value: true });
|
|
45
|
-
this.acreedorService.getAll(this.params).subscribe((/**
|
|
46
|
-
* @param {?} data
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
function (data) {
|
|
50
|
-
_this.acreedores = (/** @type {?} */ (data.data));
|
|
51
|
-
}));
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @param {?} e
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
SelectAcreedorComponent.prototype.pagina = /**
|
|
58
|
-
* @param {?} e
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
function (e) {
|
|
62
|
-
this.page.rows = e.rows;
|
|
63
|
-
this.page.offset = e.first;
|
|
64
|
-
this.cargarDatosAcreedores;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @return {?}
|
|
68
|
-
*/
|
|
69
|
-
SelectAcreedorComponent.prototype.cerrarModal = /**
|
|
70
|
-
* @return {?}
|
|
71
|
-
*/
|
|
72
|
-
function () {
|
|
73
|
-
this.select.emit(null);
|
|
74
|
-
this.visible = false;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* @param {?} e
|
|
78
|
-
* @return {?}
|
|
79
|
-
*/
|
|
80
|
-
SelectAcreedorComponent.prototype.seleccionarAcreedor = /**
|
|
81
|
-
* @param {?} e
|
|
82
|
-
* @return {?}
|
|
83
|
-
*/
|
|
84
|
-
function (e) {
|
|
85
|
-
this.select.emit(e.data);
|
|
86
|
-
this.visible = false;
|
|
87
|
-
};
|
|
88
|
-
SelectAcreedorComponent.decorators = [
|
|
89
|
-
{ type: Component, args: [{
|
|
90
|
-
template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"row\">\n <div class=\"col-3\">\n <div class=\"input-group mt-3\">\n <input type=\"text\" class=\"form-control\" placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\"> <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary\" type=\"button\" (click)=\"cargarDatosAcreedores()\">\n <i class=\"fa fa-search\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <hr>\n <div class=\"row\">\n <div class=\"col-md-12\">\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> <tr [pSelectableRow]=\"acreedor\"> <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> </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 </div>\n <div class=\"col-md-12\">\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n </div>\n </div>\n</p-dialog>",
|
|
91
|
-
selector: 'select-acreedor'
|
|
92
|
-
}] }
|
|
93
|
-
];
|
|
94
|
-
/** @nocollapse */
|
|
95
|
-
SelectAcreedorComponent.ctorParameters = function () { return [
|
|
96
|
-
{ type: AcreedorService },
|
|
97
|
-
{ type: PaginateService },
|
|
98
|
-
{ type: TranslateService }
|
|
99
|
-
]; };
|
|
100
|
-
SelectAcreedorComponent.propDecorators = {
|
|
101
|
-
visible: [{ type: Input }],
|
|
102
|
-
acreedorSeleccionado: [{ type: Input }],
|
|
103
|
-
select: [{ type: Output }]
|
|
104
|
-
};
|
|
105
|
-
return SelectAcreedorComponent;
|
|
106
|
-
}());
|
|
107
|
-
export { SelectAcreedorComponent };
|
|
108
|
-
if (false) {
|
|
109
|
-
/** @type {?} */
|
|
110
|
-
SelectAcreedorComponent.prototype.acreedores;
|
|
111
|
-
/** @type {?} */
|
|
112
|
-
SelectAcreedorComponent.prototype.page;
|
|
113
|
-
/** @type {?} */
|
|
114
|
-
SelectAcreedorComponent.prototype.params;
|
|
115
|
-
/** @type {?} */
|
|
116
|
-
SelectAcreedorComponent.prototype.ordenar;
|
|
117
|
-
/** @type {?} */
|
|
118
|
-
SelectAcreedorComponent.prototype.visible;
|
|
119
|
-
/** @type {?} */
|
|
120
|
-
SelectAcreedorComponent.prototype.acreedorSeleccionado;
|
|
121
|
-
/** @type {?} */
|
|
122
|
-
SelectAcreedorComponent.prototype.select;
|
|
123
|
-
/**
|
|
124
|
-
* @type {?}
|
|
125
|
-
* @private
|
|
126
|
-
*/
|
|
127
|
-
SelectAcreedorComponent.prototype.acreedorService;
|
|
128
|
-
/**
|
|
129
|
-
* @type {?}
|
|
130
|
-
* @private
|
|
131
|
-
*/
|
|
132
|
-
SelectAcreedorComponent.prototype.paginanateService;
|
|
133
|
-
/**
|
|
134
|
-
* @type {?}
|
|
135
|
-
* @private
|
|
136
|
-
*/
|
|
137
|
-
SelectAcreedorComponent.prototype.translate;
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9hY3JlZWRvci9zZWxlY3Qvc2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQU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mVzKCl7XG4gICAgICAgIHRoaXMucGFyYW1zID0gdGhpcy5wYWdpbmFuYXRlU2VydmljZS5nZXRQYXJhbXModGhpcy5wYWdlKTtcbiAgICAgICAgdGhpcy5wYXJhbXMucHVzaCh7cGFyYW06ICdlc3RhdHVzJywgdmFsdWU6IHRydWV9KTtcbiAgICAgICAgdGhpcy5hY3JlZWRvclNlcnZpY2UuZ2V0QWxsKHRoaXMucGFyYW1zKS5zdWJzY3JpYmUoXG4gICAgICAgICAgICAoZGF0YSA6IGFueSk9PntcbiAgICAgICAgICAgICAgICB0aGlzLmFjcmVlZG9yZXMgPSA8UHJvdmVlZG9yW10+ZGF0YS5kYXRhO1xuICAgICAgICAgICAgfVxuICAgICAgICApO1xuICAgIH1cbiAgICBcbiAgICBwYWdpbmEoZSkge1xuICAgICAgICB0aGlzLnBhZ2Uucm93cyA9IGUucm93cztcbiAgICAgICAgdGhpcy5wYWdlLm9mZnNldCA9IGUuZmlyc3Q7XG4gICAgICAgIHRoaXMuY2FyZ2FyRGF0b3NBY3JlZWRvcmVzO1xuICAgIH1cblxuICAgIGNlcnJhck1vZGFsKCl7XG4gICAgICAgIHRoaXMuc2VsZWN0LmVtaXQobnVsbCk7XG4gICAgICAgIHRoaXMudmlzaWJsZT1mYWxzZTtcbiAgICB9XG5cbiAgICBzZWxlY2Npb25hckFjcmVlZG9yKGUpe1xuICAgICAgICAgdGhpcy5zZWxlY3QuZW1pdChlLmRhdGEpO1xuICAgICAgICAgdGhpcy52aXNpYmxlPWZhbHNlO1xuICAgIH1cbiAgICBcbn0iXX0=
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from "@angular/core";
|
|
7
|
-
import { HttpClient } from "@angular/common/http";
|
|
8
|
-
import { CrudService } from '../../../services/crud.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular/common/http";
|
|
11
|
-
var AcreedorService = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(AcreedorService, _super);
|
|
13
|
-
function AcreedorService(httpClient) {
|
|
14
|
-
var _this = _super.call(this, httpClient, 'acreedor') || this;
|
|
15
|
-
_this.httpClient = httpClient;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
AcreedorService.decorators = [
|
|
19
|
-
{ type: Injectable, args: [{
|
|
20
|
-
providedIn: 'root'
|
|
21
|
-
},] }
|
|
22
|
-
];
|
|
23
|
-
/** @nocollapse */
|
|
24
|
-
AcreedorService.ctorParameters = function () { return [
|
|
25
|
-
{ type: HttpClient }
|
|
26
|
-
]; };
|
|
27
|
-
/** @nocollapse */ AcreedorService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function AcreedorService_Factory() { return new AcreedorService(i0.ɵɵinject(i1.HttpClient)); }, token: AcreedorService, providedIn: "root" });
|
|
28
|
-
return AcreedorService;
|
|
29
|
-
}(CrudService));
|
|
30
|
-
export { AcreedorService };
|
|
31
|
-
if (false) {
|
|
32
|
-
/**
|
|
33
|
-
* @type {?}
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
AcreedorService.prototype.httpClient;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNyZWVkb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9hY3JlZWRvci9zZXJ2aWNlcy9hY3JlZWRvci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFN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sickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from "@angular/core";
|
|
7
|
-
import { HttpClient } from "@angular/common/http";
|
|
8
|
-
import { CrudService } from '../../../services/crud.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular/common/http";
|
|
11
|
-
var AcreedorCuentaContableService = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(AcreedorCuentaContableService, _super);
|
|
13
|
-
function AcreedorCuentaContableService(httpClient) {
|
|
14
|
-
var _this = _super.call(this, httpClient, 'acreedorCuentaContable') || this;
|
|
15
|
-
_this.httpClient = httpClient;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @return {?}
|
|
20
|
-
*/
|
|
21
|
-
AcreedorCuentaContableService.prototype.cuentasContables = /**
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
function () {
|
|
25
|
-
/** @type {?} */
|
|
26
|
-
var uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
|
|
27
|
-
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
28
|
-
};
|
|
29
|
-
AcreedorCuentaContableService.decorators = [
|
|
30
|
-
{ type: Injectable, args: [{
|
|
31
|
-
providedIn: 'root'
|
|
32
|
-
},] }
|
|
33
|
-
];
|
|
34
|
-
/** @nocollapse */
|
|
35
|
-
AcreedorCuentaContableService.ctorParameters = function () { return [
|
|
36
|
-
{ type: HttpClient }
|
|
37
|
-
]; };
|
|
38
|
-
/** @nocollapse */ AcreedorCuentaContableService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function AcreedorCuentaContableService_Factory() { return new AcreedorCuentaContableService(i0.ɵɵinject(i1.HttpClient)); }, token: AcreedorCuentaContableService, providedIn: "root" });
|
|
39
|
-
return AcreedorCuentaContableService;
|
|
40
|
-
}(CrudService));
|
|
41
|
-
export { AcreedorCuentaContableService };
|
|
42
|
-
if (false) {
|
|
43
|
-
/**
|
|
44
|
-
* @type {?}
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
AcreedorCuentaContableService.prototype.httpClient;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNyZWVkb3JDdWVudGFDb250YWJsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9hY3JlZWRvci9zZXJ2aWNlcy9hY3JlZWRvckN1ZW50YUNvbnRhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdDQUFnQyxDQUFDOzs7QUFFN0Q7SUFFc0QseURBQVc7SUFDNUQsdUNBQW9CLFVBQXVCO1FBQTNDLFlBQ0ksa0JBQU0sVUFBVSxFQUFFLHdCQUF3QixDQUFDLFNBQzlDO1FBRm1CLGdCQUFVLEdBQVYsVUFBVSxDQUFhOztJQUUzQyxDQUFDOzs7O0lBRUYsd0RBQWdCOzs7SUFBaEI7O1lBQ1MsR0FBRyxHQUFHLG1EQUFtRDtRQUNoRSxPQUFRLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDLENBQUM7SUFDcEUsQ0FBQzs7Z0JBVkosVUFBVSxTQUFDO29CQUNSL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