visorus-erp-core 10.1.0 → 11.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.
Files changed (145) hide show
  1. package/bundles/visorus-erp-core.umd.js +4907 -5319
  2. package/bundles/visorus-erp-core.umd.js.map +1 -1
  3. package/bundles/visorus-erp-core.umd.min.js +1 -1
  4. package/bundles/visorus-erp-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.module.js +4 -3
  6. package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +2 -2
  7. package/esm2015/lib/components/acreedor/services/acreedor.service.js +11 -25
  8. package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +13 -11
  9. package/esm2015/lib/components/agente/models/Agente.js +1 -1
  10. package/esm2015/lib/components/agente/services/agente.service.js +17 -25
  11. package/esm2015/lib/components/almacen/models/Almacen.js +1 -1
  12. package/esm2015/lib/components/almacen/services/almacen.service.js +13 -26
  13. package/esm2015/lib/components/banco/models/Banco.js +1 -1
  14. package/esm2015/lib/components/banco/services/banco.service.js +10 -25
  15. package/esm2015/lib/components/caja/session-create/session-create.component.js +2 -2
  16. package/esm2015/lib/components/caja/sessionCaja.service.js +11 -25
  17. package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -1
  18. package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +10 -25
  19. package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -1
  20. package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +10 -25
  21. package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +10 -25
  22. package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -1
  23. package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +10 -25
  24. package/esm2015/lib/components/cliente/models/Cliente.js +1 -1
  25. package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -1
  26. package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -1
  27. package/esm2015/lib/components/cliente/select/select-cliente.component.js +2 -2
  28. package/esm2015/lib/components/cliente/services/cliente.service.js +11 -26
  29. package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +12 -26
  30. package/esm2015/lib/components/cliente/services/clienteFlete.service.js +12 -26
  31. package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -1
  32. package/esm2015/lib/components/contacto/services/datoContacto.service.js +10 -25
  33. package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -1
  34. package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +10 -25
  35. package/esm2015/lib/components/departamento/models/Departamento.js +1 -1
  36. package/esm2015/lib/components/departamento/services/departamento.service.js +10 -25
  37. package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -1
  38. package/esm2015/lib/components/empresa/models/Empresa.js +1 -1
  39. package/esm2015/lib/components/empresa/services/empresa.service.js +13 -26
  40. package/esm2015/lib/components/error404/error404.component.js +2 -2
  41. package/esm2015/lib/components/flete/models/Flete.js +1 -1
  42. package/esm2015/lib/components/flete/services/flete.service.js +11 -25
  43. package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -1
  44. package/esm2015/lib/components/formaPago/services/FormaPago.service.js +10 -25
  45. package/esm2015/lib/components/loading/loading.component.js +3 -3
  46. package/esm2015/lib/components/loading/loading.service.js +2 -2
  47. package/esm2015/lib/components/loading-screen/loading-screen.component.js +3 -3
  48. package/esm2015/lib/components/loading-screen/loading-screen.service.js +2 -2
  49. package/esm2015/lib/components/login-modal/login-modal.component.js +3 -3
  50. package/esm2015/lib/components/login-modal/login-modal.service.js +2 -2
  51. package/esm2015/lib/components/moneda/models/Moneda.js +1 -1
  52. package/esm2015/lib/components/moneda/services/moneda.service.js +11 -25
  53. package/esm2015/lib/components/pdfModal/pdf-modal.component.js +2 -2
  54. package/esm2015/lib/components/pdfModal/pdf-modal.service.js +2 -2
  55. package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -1
  56. package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -1
  57. package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -1
  58. package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -1
  59. package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +13 -12
  60. package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -1
  61. package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -1
  62. package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -1
  63. package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +2 -2
  64. package/esm2015/lib/components/proveedor/services/proveedor.service.js +11 -25
  65. package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +12 -26
  66. package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +11 -22
  67. package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +2 -2
  68. package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +12 -26
  69. package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +3 -3
  70. package/esm2015/lib/components/selecciona-articulo/stock.service.js +13 -15
  71. package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -1
  72. package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +13 -24
  73. package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -1
  74. package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +10 -25
  75. package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -1
  76. package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +10 -25
  77. package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +2 -2
  78. package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +4 -4
  79. package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -1
  80. package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -1
  81. package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +12 -26
  82. package/esm2015/lib/globalPrimeNg.js +1 -1
  83. package/esm2015/lib/httpInterceptor/httpInterceptor.js +2 -2
  84. package/esm2015/lib/importComponents.js +1 -1
  85. package/esm2015/lib/importComponetsConta.js +1 -1
  86. package/esm2015/lib/models/PersonaMoral.js +1 -1
  87. package/esm2015/lib/models/Usuario.js +1 -1
  88. package/esm2015/lib/models/auth.js +1 -1
  89. package/esm2015/lib/services/auth.service.js +2 -2
  90. package/esm2015/lib/services/authenticated.service.js +2 -2
  91. package/esm2015/lib/services/canActivateGuard.service.ts.js +2 -2
  92. package/esm2015/lib/services/catalogo-adicional.service.js +11 -25
  93. package/esm2015/lib/services/controlAcceso.service.js +2 -2
  94. package/esm2015/lib/services/crud.service.js +46 -0
  95. package/esm2015/lib/services/file.service.js +2 -2
  96. package/esm2015/lib/services/global.service.js +2 -13
  97. package/esm2015/lib/services/init.service.js +2 -2
  98. package/esm2015/lib/services/message.service.js +2 -2
  99. package/esm2015/lib/services/paginate.service.js +2 -2
  100. package/esm2015/lib/services/personaMoral.service.js +10 -25
  101. package/esm2015/lib/services/versionCheck.service.js +2 -2
  102. package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -1
  103. package/esm2015/public_api.js +3 -3
  104. package/esm2015/visorus-erp-core.js +1 -1
  105. package/fesm2015/visorus-erp-core.js +311 -772
  106. package/fesm2015/visorus-erp-core.js.map +1 -1
  107. package/lib/app.module.d.ts +1 -0
  108. package/lib/components/acreedor/services/acreedor.service.d.ts +5 -12
  109. package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +6 -6
  110. package/lib/components/agente/services/agente.service.d.ts +8 -14
  111. package/lib/components/almacen/services/almacen.service.d.ts +6 -13
  112. package/lib/components/banco/services/banco.service.d.ts +4 -12
  113. package/lib/components/caja/sessionCaja.service.d.ts +5 -11
  114. package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +4 -12
  115. package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +4 -12
  116. package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +4 -11
  117. package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +4 -12
  118. package/lib/components/cliente/services/cliente.service.d.ts +5 -13
  119. package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +6 -13
  120. package/lib/components/cliente/services/clienteFlete.service.d.ts +6 -12
  121. package/lib/components/contacto/services/datoContacto.service.d.ts +4 -11
  122. package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +4 -11
  123. package/lib/components/departamento/services/departamento.service.d.ts +4 -11
  124. package/lib/components/empresa/services/empresa.service.d.ts +6 -12
  125. package/lib/components/flete/services/flete.service.d.ts +5 -11
  126. package/lib/components/formaPago/services/FormaPago.service.d.ts +4 -12
  127. package/lib/components/moneda/services/moneda.service.d.ts +5 -11
  128. package/lib/components/persona-fisica/services/personaFisica.service.d.ts +7 -8
  129. package/lib/components/proveedor/services/proveedor.service.d.ts +5 -11
  130. package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +6 -12
  131. package/lib/components/proveedor/services/proveedorFlete.service.d.ts +6 -11
  132. package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +6 -12
  133. package/lib/components/selecciona-articulo/stock.service.d.ts +5 -7
  134. package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +7 -12
  135. package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +4 -11
  136. package/lib/components/ubicacion/services/ubicacion.service.d.ts +4 -11
  137. package/lib/contabilidad/servicios/cuentacontable.service.d.ts +6 -12
  138. package/lib/services/catalogo-adicional.service.d.ts +5 -11
  139. package/lib/services/crud.service.d.ts +20 -0
  140. package/lib/services/global.service.d.ts +2 -4
  141. package/lib/services/personaMoral.service.d.ts +4 -11
  142. package/package.json +2 -2
  143. package/public_api.d.ts +2 -2
  144. package/esm2015/lib/services/api.service.js +0 -69
  145. package/lib/services/api.service.d.ts +0 -38
@@ -1,6 +1,6 @@
1
- import { HttpHeaders, HttpClient, HttpParams, HTTP_INTERCEPTORS } from '@angular/common/http';
2
- import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵstaticViewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
3
- import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, FormsModule } from '@angular/forms';
1
+ import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
2
+ import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
3
+ import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_z, FormsModule } from '@angular/forms';
4
4
  import { InputText, InputTextModule } from 'primeng/inputtext';
5
5
  import { TreeTable, TreeTableToggler, TreeTableModule } from 'primeng/treetable';
6
6
  import { PrimeTemplate, Footer, ConfirmationService } from 'primeng/api';
@@ -95,110 +95,69 @@ class GlobalService {
95
95
  return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
96
96
  }
97
97
  }
98
- /** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(ɵɵinject(HttpClient)); };
99
- /** @nocollapse */ GlobalService.ɵprov = ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
100
- /*@__PURE__*/ (function () { ɵsetClassMetadata(GlobalService, [{
101
- type: Injectable,
102
- args: [{
103
- providedIn: 'root'
104
- }]
105
- }], function () { return [{ type: HttpClient }]; }, null); })();
106
98
 
107
- // projects/erp-core/src/lib/services/api.service.ts
108
- class ApiService {
109
- constructor(http,
110
- // Inyectamos GlobalService para usar sus métodos de ayuda (construir URL y cabeceras)
111
- global) {
112
- this.http = http;
113
- this.global = global;
114
- }
115
- /**
116
- * Realiza una petición GET genérica y autenticada usando HttpParams.
117
- * @param endpoint El endpoint del API (ej. '/FormaDePago')
118
- * @param queryParams Un objeto clave-valor para los parámetros de la URL.
119
- */
120
- get(endpoint, queryParams) {
121
- // 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
122
- const params = new HttpParams({ fromObject: queryParams });
123
- // 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
124
- const options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
125
- });
126
- const url = this.global.getUrl(endpoint);
127
- return this.http.get(url, options);
128
- }
129
- /**
130
- * Realiza una petición POST genérica y autenticada.
131
- * @param endpoint El endpoint del API
132
- * @param body El cuerpo de la petición
133
- */
134
- post(endpoint, body) {
135
- const url = this.global.getUrl(endpoint);
136
- const options = this.global.buildAuth();
137
- return this.http.post(url, body, options);
138
- }
139
- /**
140
- * Realiza una petición PUT genérica y autenticada.
141
- * @param endpoint El endpoint del API
142
- * @param id El ID del recurso a actualizar
143
- * @param body El cuerpo de la petición
144
- */
145
- put(endpoint, id, body) {
146
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
147
- const options = this.global.buildAuth();
148
- return this.http.put(url, body, options);
149
- }
150
- /**
151
- * Realiza una petición DELETE genérica y autenticada.
152
- * @param endpoint El endpoint del API
153
- * @param id El ID del recurso a eliminar
154
- */
155
- delete(endpoint, id) {
156
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
157
- const options = this.global.buildAuth();
158
- return this.http.delete(url, options);
99
+ class CrudService extends GlobalService {
100
+ constructor(httpCliente, url) {
101
+ super(httpCliente);
102
+ this.httpCliente = httpCliente;
103
+ this.url = url;
104
+ this.urlComponente = this.url;
159
105
  }
160
- }
161
- /** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(ɵɵinject(HttpClient), ɵɵinject(GlobalService)); };
162
- /** @nocollapse */ ApiService.ɵprov = ɵɵdefineInjectable({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' });
163
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ApiService, [{
164
- type: Injectable,
165
- args: [{
166
- providedIn: 'root'
167
- }]
168
- }], function () { return [{ type: HttpClient }, { type: GlobalService }]; }, null); })();
169
-
170
- class CuentaContableService {
171
- constructor(api) {
172
- this.api = api;
173
- this.endpoint = 'cuentaContable';
106
+ //Functions for ResourcesCrud [{ param: "max", value: 10}]
107
+ serializeParams(params) {
108
+ let serializeString = '';
109
+ params.map((e, index) => {
110
+ if (e.value !== undefined)
111
+ serializeString += ((index == 0) ? '?' : '&') + e.param + '=' + e.value;
112
+ });
113
+ return serializeString;
174
114
  }
175
- getAll(params) {
176
- return this.api.get(this.endpoint, params);
115
+ getHttp() {
116
+ return this.httpCliente;
177
117
  }
178
- obtieneCuentasContablesRecursivo() {
179
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
118
+ geturl() {
119
+ return this.getUrl(this.urlComponente);
120
+ }
121
+ getBaseUrl() {
122
+ return this.getUrl('');
123
+ }
124
+ getByUrl(url, params) {
125
+ return this.httpCliente.get(this.getUrl(url) + this.serializeParams(params), this.buildAuth());
126
+ }
127
+ getAll(params) {
128
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + (params ? (this.serializeParams(params)) : ('')), this.buildAuth());
180
129
  }
181
130
  get(id) {
182
- return this.api.get(`${this.endpoint}/${id}`);
131
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
183
132
  }
184
133
  save(obj) {
185
- return this.api.post(this.endpoint, obj);
134
+ return this.httpCliente.post(this.getUrl(this.urlComponente), obj, this.buildAuth());
186
135
  }
187
136
  update(obj) {
188
- return this.api.put(this.endpoint, obj.id, obj);
137
+ return this.httpCliente.put(this.getUrl(this.urlComponente) + '/' + obj.id, obj, this.buildAuth());
189
138
  }
190
139
  delete(id) {
191
- return this.api.delete(this.endpoint, id);
140
+ return this.httpCliente.delete(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
141
+ }
142
+ }
143
+
144
+ class CuentaContableService extends CrudService {
145
+ constructor(httpClient) {
146
+ super(httpClient, 'cuentaContable');
147
+ this.httpClient = httpClient;
148
+ }
149
+ obtieneCuentasContablesRecursivo() {
150
+ return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
192
151
  }
193
152
  }
194
- /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(ApiService)); };
153
+ /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(HttpClient)); };
195
154
  /** @nocollapse */ CuentaContableService.ɵprov = ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
196
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CuentaContableService, [{
155
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CuentaContableService, [{
197
156
  type: Injectable,
198
157
  args: [{
199
158
  providedIn: 'root'
200
159
  }]
201
- }], function () { return [{ type: ApiService }]; }, null); })();
160
+ }], function () { return [{ type: HttpClient }]; }, null); })();
202
161
 
203
162
  function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
204
163
  ɵɵelementStart(0, "tr");
@@ -449,7 +408,7 @@ class CclistaComponent {
449
408
  ɵɵstyleMap(ɵɵpureFunction0(7, _c0));
450
409
  ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
451
410
  } }, directives: [DefaultValueAccessor, InputText, NgControlStatus, NgModel, TreeTable, PrimeTemplate, TreeTableToggler, NgIf, ButtonDirective], styles: [""] });
452
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CclistaComponent, [{
411
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CclistaComponent, [{
453
412
  type: Component,
454
413
  args: [{
455
414
  selector: 'lib-cclista',
@@ -490,9 +449,9 @@ class CcseleccionDialogComponent {
490
449
  }
491
450
  /** @nocollapse */ CcseleccionDialogComponent.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); };
492
451
  /** @nocollapse */ CcseleccionDialogComponent.ɵcmp = ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
493
- ɵɵstaticViewQuery(_c0$1, true);
452
+ ɵɵviewQuery(_c0$1, 3);
494
453
  } if (rf & 2) {
495
- var _t;
454
+ let _t;
496
455
  ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.dialog = _t.first);
497
456
  } }, 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) {
498
457
  ɵɵelementStart(0, "p-dialog", 0);
@@ -511,7 +470,7 @@ class CcseleccionDialogComponent {
511
470
  ɵɵadvance(1);
512
471
  ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
513
472
  } }, directives: [Dialog, NgStyle, CclistaComponent], styles: [""] });
514
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CcseleccionDialogComponent, [{
473
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CcseleccionDialogComponent, [{
515
474
  type: Component,
516
475
  args: [{
517
476
  selector: 'lib-ccseleccion-dialog',
@@ -544,7 +503,7 @@ class LoginModalService {
544
503
  }
545
504
  /** @nocollapse */ LoginModalService.ɵfac = function LoginModalService_Factory(t) { return new (t || LoginModalService)(); };
546
505
  /** @nocollapse */ LoginModalService.ɵprov = ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' });
547
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalService, [{
506
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalService, [{
548
507
  type: Injectable,
549
508
  args: [{
550
509
  providedIn: 'root'
@@ -574,7 +533,7 @@ class LoadingScreenService {
574
533
  }
575
534
  /** @nocollapse */ LoadingScreenService.ɵfac = function LoadingScreenService_Factory(t) { return new (t || LoadingScreenService)(); };
576
535
  /** @nocollapse */ LoadingScreenService.ɵprov = ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' });
577
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenService, [{
536
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenService, [{
578
537
  type: Injectable,
579
538
  args: [{
580
539
  providedIn: 'root'
@@ -657,7 +616,7 @@ class httpInterceptor {
657
616
  }
658
617
  /** @nocollapse */ httpInterceptor.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(ɵɵinject(LoginModalService), ɵɵinject(ToastrService), ɵɵinject(LoadingScreenService)); };
659
618
  /** @nocollapse */ httpInterceptor.ɵprov = ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac });
660
- /*@__PURE__*/ (function () { ɵsetClassMetadata(httpInterceptor, [{
619
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(httpInterceptor, [{
661
620
  type: Injectable
662
621
  }], function () { return [{ type: LoginModalService }, { type: ToastrService }, { type: LoadingScreenService }]; }, null); })();
663
622
 
@@ -685,7 +644,7 @@ class Error404Component {
685
644
  ɵɵelementEnd();
686
645
  ɵɵelementEnd();
687
646
  } }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
688
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Error404Component, [{
647
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Error404Component, [{
689
648
  type: Component,
690
649
  args: [{
691
650
  selector: 'app-error404',
@@ -713,7 +672,7 @@ class LoadingService {
713
672
  }
714
673
  /** @nocollapse */ LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
715
674
  /** @nocollapse */ LoadingService.ɵprov = ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
716
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingService, [{
675
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingService, [{
717
676
  type: Injectable,
718
677
  args: [{
719
678
  providedIn: 'root'
@@ -771,8 +730,8 @@ class LoadingComponent {
771
730
  ɵɵpropertyInterpolate("src", ctx.logo_loading, ɵɵsanitizeUrl);
772
731
  ɵɵadvance(2);
773
732
  ɵɵtextInterpolate1("", ɵɵpipeBind1(13, 2, "cargando"), "...");
774
- } }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{height:170px;position:relative;width:130px}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{bottom:30px;content:\"\";height:0;left:15px;position:absolute;transform:scale(0);transition:all .2s ease;width:0;z-index:1}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{bottom:-30px;color:#fff;font-family:Abel,sans-serif;font-size:12px;left:-7%;letter-spacing:2px;position:absolute;text-align:center;width:120%}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{-webkit-animation-duration:.8s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:spaceboots;-webkit-animation-timing-function:linear;-webkit-transform-origin:50% 50%;bottom:-3px;position:absolute;z-index:99}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{color:#fff;display:block;height:140px;left:28px;overflow:hidden;position:absolute;width:100%;z-index:2}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;left:0;opacity:0;position:absolute;text-rendering:auto;top:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{animation:a 1.1s linear infinite;content:\"\\f13b\";font-size:20px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{animation:b 1.3s linear infinite;content:\"\\f13c\"}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{animation:c .9s linear infinite;content:\"\\f121\";font-size:25px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{animation:d .7s linear infinite;content:\"\\f19a \"}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{opacity:0;transform:translate(30px) rotate(30deg)}to{opacity:1;transform:translate(30px,150px) rotate(-50deg)}}@keyframes b{0%{opacity:0;transform:translate(50px) rotate(-40deg)}to{opacity:1;transform:translate(40px,150px) rotate(80deg)}}@keyframes c{0%{opacity:0;transform:translate(70px) rotate(10deg)}to{opacity:1;transform:translate(60px,150px) rotate(70deg)}}@keyframes d{0%{opacity:0;transform:translate(30px) rotate(-50deg)}to{opacity:1;transform:translate(45px,150px) rotate(30deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,0)!important;border:0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
775
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingComponent, [{
733
+ } }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{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%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{display:inline-block;font:normal normal normal 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%]:first-child:before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child: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%]:after, .loader.amit[_ngcontent-%COMP%]:before{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:0!important;background-color:hsla(0,0%,100%,0)!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
734
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingComponent, [{
776
735
  type: Component,
777
736
  args: [{
778
737
  selector: 'loading',
@@ -822,8 +781,8 @@ class LoadingScreenComponent {
822
781
  ɵɵelementEnd();
823
782
  ɵɵelementEnd();
824
783
  ɵɵelementEnd();
825
- } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.384);display:block;height:100%;position:fixed;width:100%;z-index:100000}.loading-screen-icon[_ngcontent-%COMP%]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{border-radius:70px;filter:url(#goo);height:300px;overflow:hidden;position:relative;transform-style:preserve-3d;width:300px}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158;transform-origin:left top;transform-style:preserve-3d}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{background:#475158;border-radius:50%;height:30px;left:50%;position:absolute;top:50%;transform:scale(.9) translate(-50%,-50%);width:30px}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;opacity:0;transform-origin:center top}.blob[_ngcontent-%COMP%]:first-child{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%)}}"] });
826
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenComponent, [{
784
+ } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:rgba(0,0,0,.384);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;transform-origin:left top;animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform:scale(.9) translate(-50%,-50%);border-radius:50%}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;transform-origin:center top;opacity:0}.blob[_ngcontent-%COMP%]:first-child{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%)}}"] });
785
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenComponent, [{
827
786
  type: Component,
828
787
  args: [{
829
788
  selector: 'app-loading-screen',
@@ -850,7 +809,7 @@ class PdfModalService {
850
809
  }
851
810
  /** @nocollapse */ PdfModalService.ɵfac = function PdfModalService_Factory(t) { return new (t || PdfModalService)(); };
852
811
  /** @nocollapse */ PdfModalService.ɵprov = ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' });
853
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalService, [{
812
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalService, [{
854
813
  type: Injectable,
855
814
  args: [{
856
815
  providedIn: 'root'
@@ -916,7 +875,7 @@ class FileService {
916
875
  }
917
876
  /** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(ɵɵinject(ToastrService), ɵɵinject(TranslateService)); };
918
877
  /** @nocollapse */ FileService.ɵprov = ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
919
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FileService, [{
878
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FileService, [{
920
879
  type: Injectable,
921
880
  args: [{
922
881
  providedIn: 'root'
@@ -1010,7 +969,7 @@ class PdfModalComponent {
1010
969
  ɵɵadvance(1);
1011
970
  ɵɵproperty("ngIf", ctx.pdfBase64);
1012
971
  } }, directives: [Dialog, NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
1013
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalComponent, [{
972
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalComponent, [{
1014
973
  type: Component,
1015
974
  args: [{
1016
975
  selector: 'pdf-modal',
@@ -1211,7 +1170,7 @@ class AuthService {
1211
1170
  }
1212
1171
  /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(ɵɵinject(HttpClient)); };
1213
1172
  /** @nocollapse */ AuthService.ɵprov = ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
1214
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AuthService, [{
1173
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AuthService, [{
1215
1174
  type: Injectable,
1216
1175
  args: [{
1217
1176
  providedIn: 'root'
@@ -1383,8 +1342,8 @@ class LoginModalComponent {
1383
1342
  ɵɵproperty("ngIf", ctx.empresas.length == 0);
1384
1343
  ɵɵadvance(1);
1385
1344
  ɵɵproperty("ngIf", ctx.empresas.length);
1386
- } }, directives: [NgIf, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1387
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalComponent, [{
1345
+ } }, directives: [NgIf, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1346
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalComponent, [{
1388
1347
  type: Component,
1389
1348
  args: [{
1390
1349
  selector: 'app-login-modal',
@@ -1393,35 +1352,20 @@ class LoginModalComponent {
1393
1352
  }]
1394
1353
  }], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
1395
1354
 
1396
- class SessionCajaService {
1397
- constructor(api) {
1398
- this.api = api;
1399
- this.endpoint = 'sessionCaja';
1400
- }
1401
- getAll(params) {
1402
- return this.api.get(this.endpoint, params);
1403
- }
1404
- get(id) {
1405
- return this.api.get(`${this.endpoint}/${id}`);
1406
- }
1407
- save(obj) {
1408
- return this.api.post(this.endpoint, obj);
1409
- }
1410
- update(obj) {
1411
- return this.api.put(this.endpoint, obj.id, obj);
1412
- }
1413
- delete(id) {
1414
- return this.api.delete(this.endpoint, id);
1355
+ class SessionCajaService extends CrudService {
1356
+ constructor(httpClient) {
1357
+ super(httpClient, 'sessionCaja');
1358
+ this.httpClient = httpClient;
1415
1359
  }
1416
1360
  }
1417
- /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(ApiService)); };
1361
+ /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(HttpClient)); };
1418
1362
  /** @nocollapse */ SessionCajaService.ɵprov = ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
1419
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCajaService, [{
1363
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCajaService, [{
1420
1364
  type: Injectable,
1421
1365
  args: [{
1422
1366
  providedIn: 'root'
1423
1367
  }]
1424
- }], function () { return [{ type: ApiService }]; }, null); })();
1368
+ }], function () { return [{ type: HttpClient }]; }, null); })();
1425
1369
 
1426
1370
  function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1427
1371
  ɵɵelementStart(0, "a", 4);
@@ -1585,7 +1529,7 @@ class SessionCreateComponent {
1585
1529
  ɵɵadvance(2);
1586
1530
  ɵɵproperty("ngIf", ctx.caja);
1587
1531
  } }, directives: [Dialog, PrimeTemplate, NgIf, DefaultValueAccessor, InputText, NgControlStatus, NgModel, NumberValueAccessor, ButtonDirective], styles: [""] });
1588
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCreateComponent, [{
1532
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCreateComponent, [{
1589
1533
  type: Component,
1590
1534
  args: [{
1591
1535
  selector: 'session-create',
@@ -1645,38 +1589,22 @@ class Cliente {
1645
1589
  }
1646
1590
  }
1647
1591
 
1648
- class ClienteService {
1649
- constructor(api) {
1650
- this.api = api;
1651
- this.endpoint = 'cliente';
1652
- }
1653
- getAll(params) {
1654
- return this.api.get(this.endpoint, params);
1655
- }
1656
- get(id) {
1657
- return this.api.get(`${this.endpoint}/${id}`);
1658
- }
1659
- save(obj) {
1660
- return this.api.post(this.endpoint, obj);
1661
- }
1662
- update(obj) {
1663
- return this.api.put(this.endpoint, obj.id, obj);
1664
- }
1665
- delete(id) {
1666
- return this.api.delete(this.endpoint, id);
1592
+ class ClienteService extends CrudService {
1593
+ constructor(httpCliente) {
1594
+ super(httpCliente, '/cliente');
1667
1595
  }
1668
1596
  validar_archivos_bss(id) {
1669
- return this.api.get(`${this.endpoint}/validarClienteBss/${id}`);
1597
+ return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
1670
1598
  }
1671
1599
  }
1672
- /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(ApiService)); };
1600
+ /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(HttpClient)); };
1673
1601
  /** @nocollapse */ ClienteService.ɵprov = ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
1674
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteService, [{
1602
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteService, [{
1675
1603
  type: Injectable,
1676
1604
  args: [{
1677
1605
  providedIn: 'root'
1678
1606
  }]
1679
- }], function () { return [{ type: ApiService }]; }, null); })();
1607
+ }], function () { return [{ type: HttpClient }]; }, null); })();
1680
1608
 
1681
1609
  class PaginateService {
1682
1610
  constructor(translate) {
@@ -1725,7 +1653,7 @@ class PaginateService {
1725
1653
  }
1726
1654
  /** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(ɵɵinject(TranslateService)); };
1727
1655
  /** @nocollapse */ PaginateService.ɵprov = ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
1728
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PaginateService, [{
1656
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PaginateService, [{
1729
1657
  type: Injectable,
1730
1658
  args: [{
1731
1659
  providedIn: "root"
@@ -1928,7 +1856,7 @@ class SelectClienteComponent {
1928
1856
  ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1929
1857
  ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
1930
1858
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, SelectableRow, NgIf], pipes: [TranslatePipe], encapsulation: 2 });
1931
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectClienteComponent, [{
1859
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectClienteComponent, [{
1932
1860
  type: Component,
1933
1861
  args: [{
1934
1862
  selector: 'select-cliente',
@@ -1957,35 +1885,20 @@ class Proveedor {
1957
1885
  }
1958
1886
  }
1959
1887
 
1960
- class ProveedorService {
1961
- constructor(api) {
1962
- this.api = api;
1963
- this.endpoint = 'proveedor';
1964
- }
1965
- getAll(params) {
1966
- return this.api.get(this.endpoint, params);
1967
- }
1968
- get(id) {
1969
- return this.api.get(`${this.endpoint}/${id}`);
1970
- }
1971
- save(obj) {
1972
- return this.api.post(this.endpoint, obj);
1973
- }
1974
- update(obj) {
1975
- return this.api.put(this.endpoint, obj.id, obj);
1976
- }
1977
- delete(id) {
1978
- return this.api.delete(this.endpoint, id);
1888
+ class ProveedorService extends CrudService {
1889
+ constructor(httpClient) {
1890
+ super(httpClient, '/proveedor');
1891
+ this.httpClient = httpClient;
1979
1892
  }
1980
1893
  }
1981
- /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(ApiService)); };
1894
+ /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(HttpClient)); };
1982
1895
  /** @nocollapse */ ProveedorService.ɵprov = ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
1983
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorService, [{
1896
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorService, [{
1984
1897
  type: Injectable,
1985
1898
  args: [{
1986
1899
  providedIn: 'root'
1987
1900
  }]
1988
- }], function () { return [{ type: ApiService }]; }, null); })();
1901
+ }], function () { return [{ type: HttpClient }]; }, null); })();
1989
1902
 
1990
1903
  function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1991
1904
  ɵɵelementStart(0, "tr");
@@ -2105,7 +2018,7 @@ class SelectProveedorComponent {
2105
2018
  ɵɵadvance(3);
2106
2019
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(15, _c0$4));
2107
2020
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator], pipes: [TranslatePipe], encapsulation: 2 });
2108
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectProveedorComponent, [{
2021
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectProveedorComponent, [{
2109
2022
  type: Component,
2110
2023
  args: [{
2111
2024
  templateUrl: 'select-proveedor.component.html',
@@ -2119,51 +2032,34 @@ class SelectProveedorComponent {
2119
2032
  type: Output
2120
2033
  }] }); })();
2121
2034
 
2122
- class AlmacenService {
2123
- constructor(api) {
2124
- this.api = api;
2125
- this.endpoint = 'almacen';
2126
- }
2127
- getAll(params) {
2128
- return this.api.get(this.endpoint, params);
2035
+ class AlmacenService extends CrudService {
2036
+ constructor(httpClient) {
2037
+ super(httpClient, '/almacen');
2038
+ this.httpClient = httpClient;
2129
2039
  }
2130
2040
  obtenerAlmacenEmpresa() {
2131
- return this.api.get(`${this.endpoint}/obtenerAlmacenEmpresa`);
2132
- }
2133
- get(id) {
2134
- return this.api.get(`${this.endpoint}/${id}`);
2135
- }
2136
- save(obj) {
2137
- return this.api.post(this.endpoint, obj);
2138
- }
2139
- update(obj) {
2140
- return this.api.put(this.endpoint, obj.id, obj);
2141
- }
2142
- delete(id) {
2143
- return this.api.delete(this.endpoint, id);
2041
+ let url = this.geturl() + '/obtenerAlmacenEmpresa';
2042
+ return this.getHttp().get(url, this.buildAuth());
2144
2043
  }
2145
2044
  }
2146
- /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(ApiService)); };
2045
+ /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(HttpClient)); };
2147
2046
  /** @nocollapse */ AlmacenService.ɵprov = ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
2148
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AlmacenService, [{
2047
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AlmacenService, [{
2149
2048
  type: Injectable,
2150
2049
  args: [{
2151
2050
  providedIn: 'root'
2152
2051
  }]
2153
- }], function () { return [{ type: ApiService }]; }, null); })();
2052
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2154
2053
 
2155
- class StockService {
2156
- constructor(api) {
2157
- this.api = api;
2158
- this.endpoint = 'stock';
2159
- }
2160
- getAll(params) {
2161
- return this.api.get(this.endpoint, params);
2054
+ class StockService extends CrudService {
2055
+ constructor(httpClient) {
2056
+ super(httpClient, 'stock');
2057
+ this.httpClient = httpClient;
2162
2058
  }
2163
2059
  obtenerExistenciasArticulosDescripcion(parametros, params) {
2164
- const url = `${this.endpoint}/obtenerExistenciasArticulos`;
2060
+ const url = this.getBaseUrl() + '/stock/obtenerExistenciasArticulos';
2165
2061
  let promesa = new Promise((resolve, reject) => {
2166
- this.api.post(url, parametros).subscribe((data) => {
2062
+ this.httpClient.post(url + this.serializeParams(params), parametros, this.buildAuth()).subscribe((data) => {
2167
2063
  resolve(data);
2168
2064
  }, (err) => {
2169
2065
  reject(err);
@@ -2172,48 +2068,33 @@ class StockService {
2172
2068
  return promesa;
2173
2069
  }
2174
2070
  }
2175
- /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(ApiService)); };
2071
+ /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(HttpClient)); };
2176
2072
  /** @nocollapse */ StockService.ɵprov = ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
2177
- /*@__PURE__*/ (function () { ɵsetClassMetadata(StockService, [{
2073
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(StockService, [{
2178
2074
  type: Injectable,
2179
2075
  args: [{
2180
2076
  providedIn: 'root'
2181
2077
  }]
2182
- }], function () { return [{ type: ApiService }]; }, null); })();
2078
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2183
2079
 
2184
- class ArticuloInformacionService {
2185
- constructor(api) {
2186
- this.api = api;
2187
- this.endpoint = 'articulo';
2188
- }
2189
- getAll(params) {
2190
- return this.api.get(this.endpoint, params);
2080
+ class ArticuloInformacionService extends CrudService {
2081
+ constructor(httpClient) {
2082
+ super(httpClient, 'articulo');
2083
+ this.httpClient = httpClient;
2191
2084
  }
2192
2085
  obtenerExistencias(articulo) {
2193
2086
  let uRL = "/existenciasArticulo/" + articulo;
2194
- return this.api.get(`${this.endpoint}${uRL}`);
2195
- }
2196
- get(id) {
2197
- return this.api.get(`${this.endpoint}/${id}`);
2198
- }
2199
- save(obj) {
2200
- return this.api.post(this.endpoint, obj);
2201
- }
2202
- update(obj) {
2203
- return this.api.put(this.endpoint, obj.id, obj);
2204
- }
2205
- delete(id) {
2206
- return this.api.delete(this.endpoint, id);
2087
+ return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
2207
2088
  }
2208
2089
  }
2209
- /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(ApiService)); };
2090
+ /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(HttpClient)); };
2210
2091
  /** @nocollapse */ ArticuloInformacionService.ɵprov = ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
2211
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ArticuloInformacionService, [{
2092
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ArticuloInformacionService, [{
2212
2093
  type: Injectable,
2213
2094
  args: [{
2214
2095
  providedIn: 'root'
2215
2096
  }]
2216
- }], function () { return [{ type: ApiService }]; }, null); })();
2097
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2217
2098
 
2218
2099
  function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
2219
2100
  ɵɵelement(0, "col");
@@ -2345,7 +2226,7 @@ class SeleccionArticuloInformacionComponent {
2345
2226
  ɵɵstyleMap(ɵɵpureFunction0(19, _c1$2));
2346
2227
  ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
2347
2228
  } }, directives: [Dialog, Table, PrimeTemplate, Footer, ButtonDirective, NgForOf, ResizableColumn], styles: [""] });
2348
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2229
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2349
2230
  type: Component,
2350
2231
  args: [{
2351
2232
  selector: 'lib-seleccion-articulo-informacion',
@@ -2842,8 +2723,8 @@ class SeleccionaArticuloComponent {
2842
2723
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(24, _c1$3));
2843
2724
  ɵɵadvance(1);
2844
2725
  ɵɵproperty("ngIf", ctx.showModalInformacion);
2845
- } }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_x, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2846
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2726
+ } }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_z, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2727
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2847
2728
  type: Component,
2848
2729
  args: [{
2849
2730
  selector: 'app-selecciona-articulo',
@@ -2864,35 +2745,20 @@ class SeleccionaArticuloComponent {
2864
2745
  type: Output
2865
2746
  }] }); })();
2866
2747
 
2867
- class AcreedorService {
2868
- constructor(api) {
2869
- this.api = api;
2870
- this.endpoint = 'acreedor';
2871
- }
2872
- getAll(params) {
2873
- return this.api.get(this.endpoint, params);
2874
- }
2875
- get(id) {
2876
- return this.api.get(`${this.endpoint}/${id}`);
2877
- }
2878
- save(obj) {
2879
- return this.api.post(this.endpoint, obj);
2880
- }
2881
- update(obj) {
2882
- return this.api.put(this.endpoint, obj.id, obj);
2883
- }
2884
- delete(id) {
2885
- return this.api.delete(this.endpoint, id);
2748
+ class AcreedorService extends CrudService {
2749
+ constructor(httpClient) {
2750
+ super(httpClient, 'acreedor');
2751
+ this.httpClient = httpClient;
2886
2752
  }
2887
2753
  }
2888
- /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(ApiService)); };
2754
+ /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(HttpClient)); };
2889
2755
  /** @nocollapse */ AcreedorService.ɵprov = ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
2890
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorService, [{
2756
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorService, [{
2891
2757
  type: Injectable,
2892
2758
  args: [{
2893
2759
  providedIn: 'root'
2894
2760
  }]
2895
- }], function () { return [{ type: ApiService }]; }, null); })();
2761
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2896
2762
 
2897
2763
  function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
2898
2764
  ɵɵelementStart(0, "tr");
@@ -3080,7 +2946,7 @@ class SelectAcreedorComponent {
3080
2946
  ɵɵadvance(4);
3081
2947
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(13, _c0$7));
3082
2948
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator, SelectableRow, NgIf], pipes: [TranslatePipe, DatePipe], encapsulation: 2 });
3083
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectAcreedorComponent, [{
2949
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectAcreedorComponent, [{
3084
2950
  type: Component,
3085
2951
  args: [{
3086
2952
  templateUrl: 'select-acreedor.component.html',
@@ -3149,8 +3015,9 @@ function HttpLoaderFactory(http) {
3149
3015
  }
3150
3016
  class CoreLibModule {
3151
3017
  }
3018
+ /** @nocollapse */ CoreLibModule.ɵfac = function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); };
3152
3019
  /** @nocollapse */ CoreLibModule.ɵmod = ɵɵdefineNgModule({ type: CoreLibModule });
3153
- /** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ factory: function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); }, providers: [
3020
+ /** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ providers: [
3154
3021
  primeNgServices,
3155
3022
  { provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
3156
3023
  ], imports: [[
@@ -3167,7 +3034,7 @@ class CoreLibModule {
3167
3034
  })
3168
3035
  ]] });
3169
3036
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, CardModule, TooltipModule, OverlayPanelModule, RadioButtonModule, CheckboxModule, AutoCompleteModule, TableModule, TreeTableModule, CalendarModule, TableModule, ButtonModule, InputTextModule, DropdownModule, InputMaskModule, MessagesModule, MessageModule, PaginatorModule, ConfirmDialogModule, ProgressBarModule, TriStateCheckboxModule, KeyFilterModule, InputSwitchModule, DialogModule, TabViewModule, PanelModule, ToolbarModule, SplitButtonModule, FieldsetModule, TreeModule, TabMenuModule, MenubarModule, FormsModule, ToastrModule, TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
3170
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CoreLibModule, [{
3037
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CoreLibModule, [{
3171
3038
  type: NgModule,
3172
3039
  args: [{
3173
3040
  declarations: [
@@ -3225,7 +3092,7 @@ class ControlAccesoService {
3225
3092
  }
3226
3093
  /** @nocollapse */ ControlAccesoService.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(ɵɵinject(AuthService)); };
3227
3094
  /** @nocollapse */ ControlAccesoService.ɵprov = ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' });
3228
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ControlAccesoService, [{
3095
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ControlAccesoService, [{
3229
3096
  type: Injectable,
3230
3097
  args: [{
3231
3098
  providedIn: 'root'
@@ -3274,7 +3141,7 @@ class InitService {
3274
3141
  }
3275
3142
  /** @nocollapse */ InitService.ɵfac = function InitService_Factory(t) { return new (t || InitService)(ɵɵinject(HttpClient), ɵɵinject(AuthService)); };
3276
3143
  /** @nocollapse */ InitService.ɵprov = ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' });
3277
- /*@__PURE__*/ (function () { ɵsetClassMetadata(InitService, [{
3144
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(InitService, [{
3278
3145
  type: Injectable,
3279
3146
  args: [{
3280
3147
  providedIn: 'root'
@@ -3349,42 +3216,26 @@ class MessageService {
3349
3216
  }
3350
3217
  /** @nocollapse */ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(ɵɵinject(ToastrService)); };
3351
3218
  /** @nocollapse */ MessageService.ɵprov = ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
3352
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MessageService, [{
3219
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MessageService, [{
3353
3220
  type: Injectable,
3354
3221
  args: [{
3355
3222
  providedIn: 'root'
3356
3223
  }]
3357
3224
  }], function () { return [{ type: ToastrService }]; }, null); })();
3358
3225
 
3359
- class PersonaMoralService {
3360
- constructor(api) {
3361
- this.api = api;
3362
- this.endpoint = 'personaMoral';
3363
- }
3364
- getAll(params) {
3365
- return this.api.get(this.endpoint, params);
3366
- }
3367
- get(id) {
3368
- return this.api.get(`${this.endpoint}/${id}`);
3369
- }
3370
- save(obj) {
3371
- return this.api.post(this.endpoint, obj);
3372
- }
3373
- update(obj) {
3374
- return this.api.put(this.endpoint, obj.id, obj);
3375
- }
3376
- delete(id) {
3377
- return this.api.delete(this.endpoint, id);
3226
+ class PersonaMoralService extends CrudService {
3227
+ constructor(http) {
3228
+ super(http, '/personaMoral');
3378
3229
  }
3379
3230
  }
3380
- /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(ApiService)); };
3231
+ /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(HttpClient)); };
3381
3232
  /** @nocollapse */ PersonaMoralService.ɵprov = ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
3382
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaMoralService, [{
3233
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaMoralService, [{
3383
3234
  type: Injectable,
3384
3235
  args: [{
3385
3236
  providedIn: 'root'
3386
3237
  }]
3387
- }], function () { return [{ type: ApiService }]; }, null); })();
3238
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3388
3239
 
3389
3240
  class CanActivateGuard {
3390
3241
  constructor(controlAccesoService) {
@@ -3401,42 +3252,27 @@ class CanActivateGuard {
3401
3252
  }
3402
3253
  /** @nocollapse */ CanActivateGuard.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(ɵɵinject(ControlAccesoService)); };
3403
3254
  /** @nocollapse */ CanActivateGuard.ɵprov = ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' });
3404
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CanActivateGuard, [{
3255
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CanActivateGuard, [{
3405
3256
  type: Injectable,
3406
3257
  args: [{
3407
3258
  providedIn: 'root'
3408
3259
  }]
3409
3260
  }], function () { return [{ type: ControlAccesoService }]; }, null); })();
3410
3261
 
3411
- class CatalogoAdicionalService {
3412
- constructor(api) {
3413
- this.api = api;
3414
- this.endpoint = 'catalogoAdicional';
3415
- }
3416
- getAll(params) {
3417
- return this.api.get(this.endpoint, params);
3418
- }
3419
- get(id) {
3420
- return this.api.get(`${this.endpoint}/${id}`);
3421
- }
3422
- save(obj) {
3423
- return this.api.post(this.endpoint, obj);
3424
- }
3425
- update(obj) {
3426
- return this.api.put(this.endpoint, obj.id, obj);
3427
- }
3428
- delete(id) {
3429
- return this.api.delete(this.endpoint, id);
3262
+ class CatalogoAdicionalService extends CrudService {
3263
+ constructor(httpClient) {
3264
+ super(httpClient, 'catalogoAdicional');
3265
+ this.httpClient = httpClient;
3430
3266
  }
3431
3267
  }
3432
- /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(ApiService)); };
3268
+ /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(HttpClient)); };
3433
3269
  /** @nocollapse */ CatalogoAdicionalService.ɵprov = ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
3434
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoAdicionalService, [{
3270
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoAdicionalService, [{
3435
3271
  type: Injectable,
3436
3272
  args: [{
3437
3273
  providedIn: 'root'
3438
3274
  }]
3439
- }], function () { return [{ type: ApiService }]; }, null); })();
3275
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3440
3276
 
3441
3277
  class Authenticated {
3442
3278
  constructor(authService, controlAccesoService, router) {
@@ -3500,7 +3336,7 @@ class Authenticated {
3500
3336
  }
3501
3337
  /** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(ɵɵinject(AuthService), ɵɵinject(ControlAccesoService), ɵɵinject(Router)); };
3502
3338
  /** @nocollapse */ Authenticated.ɵprov = ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
3503
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Authenticated, [{
3339
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Authenticated, [{
3504
3340
  type: Injectable,
3505
3341
  args: [{
3506
3342
  providedIn: 'root'
@@ -3548,48 +3384,39 @@ class VersionCheckService {
3548
3384
  }
3549
3385
  /** @nocollapse */ VersionCheckService.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(ɵɵinject(HttpClient)); };
3550
3386
  /** @nocollapse */ VersionCheckService.ɵprov = ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' });
3551
- /*@__PURE__*/ (function () { ɵsetClassMetadata(VersionCheckService, [{
3387
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(VersionCheckService, [{
3552
3388
  type: Injectable,
3553
3389
  args: [{
3554
3390
  providedIn: 'root'
3555
3391
  }]
3556
3392
  }], function () { return [{ type: HttpClient }]; }, null); })();
3557
3393
 
3558
- class AgenteService {
3559
- constructor(api) {
3560
- this.api = api;
3561
- this.endpoint = 'agente';
3394
+ class AgenteService extends CrudService {
3395
+ constructor(httpClient) {
3396
+ super(httpClient, 'agente');
3397
+ this.httpClient = httpClient;
3562
3398
  }
3563
3399
  saveUsuarioAgente(usuario) {
3564
- return this.api.post(`${this.endpoint}/usuario`, usuario);
3400
+ let url = this.getUrl('agente') + '/usuario';
3401
+ return this.getHttp().post(url, usuario, this.buildAuth());
3565
3402
  }
3566
3403
  getUsuarioAgente(id) {
3567
- return this.api.get(`${this.endpoint}/usuario/${id}`);
3404
+ let url = this.getUrl('agente') + '/usuario/' + id;
3405
+ return this.getHttp().get(url, this.buildAuth());
3568
3406
  }
3569
3407
  obtenerAgenteEmpresa() {
3570
- return this.api.get(`${this.endpoint}/obtenerAgenteEmpresa`);
3571
- }
3572
- get(id) {
3573
- return this.api.get(`${this.endpoint}/${id}`);
3574
- }
3575
- save(obj) {
3576
- return this.api.post(this.endpoint, obj);
3577
- }
3578
- update(obj) {
3579
- return this.api.put(this.endpoint, obj.id, obj);
3580
- }
3581
- delete(id) {
3582
- return this.api.delete(this.endpoint, id);
3408
+ let url = this.geturl() + '/obtenerAgenteEmpresa';
3409
+ return this.getHttp().get(url, this.buildAuth());
3583
3410
  }
3584
3411
  }
3585
- /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(ApiService)); };
3412
+ /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(HttpClient)); };
3586
3413
  /** @nocollapse */ AgenteService.ɵprov = ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
3587
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AgenteService, [{
3414
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AgenteService, [{
3588
3415
  type: Injectable,
3589
3416
  args: [{
3590
3417
  providedIn: 'root'
3591
3418
  }]
3592
- }], function () { return [{ type: ApiService }]; }, null); })();
3419
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3593
3420
 
3594
3421
  class Almacen {
3595
3422
  constructor() { }
@@ -3606,133 +3433,69 @@ class Banco {
3606
3433
  }
3607
3434
  }
3608
3435
 
3609
- class BancoService {
3610
- constructor(api) {
3611
- this.api = api;
3612
- this.endpoint = 'banco';
3613
- }
3614
- getAll(params) {
3615
- return this.api.get(this.endpoint, params);
3616
- }
3617
- get(id) {
3618
- return this.api.get(`${this.endpoint}/${id}`);
3619
- }
3620
- save(obj) {
3621
- return this.api.post(this.endpoint, obj);
3622
- }
3623
- update(obj) {
3624
- return this.api.put(this.endpoint, obj.id, obj);
3625
- }
3626
- delete(id) {
3627
- return this.api.delete(this.endpoint, id);
3436
+ class BancoService extends CrudService {
3437
+ constructor(http) {
3438
+ super(http, '/banco');
3628
3439
  }
3629
3440
  }
3630
- /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(ApiService)); };
3441
+ /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(HttpClient)); };
3631
3442
  /** @nocollapse */ BancoService.ɵprov = ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
3632
- /*@__PURE__*/ (function () { ɵsetClassMetadata(BancoService, [{
3443
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(BancoService, [{
3633
3444
  type: Injectable,
3634
3445
  args: [{
3635
3446
  providedIn: 'root'
3636
3447
  }]
3637
- }], function () { return [{ type: ApiService }]; }, null); })();
3448
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3638
3449
 
3639
3450
  class CatalogoTipo {
3640
3451
  constructor() { }
3641
3452
  }
3642
3453
 
3643
- class CatalogoTipoService {
3644
- constructor(api) {
3645
- this.api = api;
3646
- this.endpoint = 'catalogoTipo';
3647
- }
3648
- getAll(params) {
3649
- return this.api.get(this.endpoint, params);
3650
- }
3651
- get(id) {
3652
- return this.api.get(`${this.endpoint}/${id}`);
3653
- }
3654
- save(obj) {
3655
- return this.api.post(this.endpoint, obj);
3656
- }
3657
- update(obj) {
3658
- return this.api.put(this.endpoint, obj.id, obj);
3659
- }
3660
- delete(id) {
3661
- return this.api.delete(this.endpoint, id);
3454
+ class CatalogoTipoService extends CrudService {
3455
+ constructor(htt) {
3456
+ super(htt, '/catalogoTipo');
3662
3457
  }
3663
3458
  }
3664
- /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(ApiService)); };
3459
+ /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(HttpClient)); };
3665
3460
  /** @nocollapse */ CatalogoTipoService.ɵprov = ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
3666
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoTipoService, [{
3461
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoTipoService, [{
3667
3462
  type: Injectable,
3668
3463
  args: [{
3669
3464
  providedIn: 'root'
3670
3465
  }]
3671
- }], function () { return [{ type: ApiService }]; }, null); })();
3466
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3672
3467
 
3673
- class ClasificadorTipoService {
3674
- constructor(api) {
3675
- this.api = api;
3676
- this.endpoint = 'clasificadorTipo';
3677
- }
3678
- getAll(params) {
3679
- return this.api.get(this.endpoint, params);
3680
- }
3681
- get(id) {
3682
- return this.api.get(`${this.endpoint}/${id}`);
3683
- }
3684
- save(obj) {
3685
- return this.api.post(this.endpoint, obj);
3686
- }
3687
- update(obj) {
3688
- return this.api.put(this.endpoint, obj.id, obj);
3689
- }
3690
- delete(id) {
3691
- return this.api.delete(this.endpoint, id);
3468
+ class ClasificadorTipoService extends CrudService {
3469
+ constructor(http) {
3470
+ super(http, '/clasificadorTipo');
3692
3471
  }
3693
3472
  }
3694
- /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(ApiService)); };
3473
+ /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(HttpClient)); };
3695
3474
  /** @nocollapse */ ClasificadorTipoService.ɵprov = ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
3696
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClasificadorTipoService, [{
3475
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClasificadorTipoService, [{
3697
3476
  type: Injectable,
3698
3477
  args: [{
3699
3478
  providedIn: 'root'
3700
3479
  }]
3701
- }], function () { return [{ type: ApiService }]; }, null); })();
3480
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3702
3481
 
3703
3482
  class ClaveMovimiento {
3704
3483
  constructor() { }
3705
3484
  }
3706
3485
 
3707
- class ClaveMovimientoService {
3708
- constructor(api) {
3709
- this.api = api;
3710
- this.endpoint = 'claveMovimiento';
3711
- }
3712
- getAll(params) {
3713
- return this.api.get(this.endpoint, params);
3714
- }
3715
- get(id) {
3716
- return this.api.get(`${this.endpoint}/${id}`);
3717
- }
3718
- save(obj) {
3719
- return this.api.post(this.endpoint, obj);
3720
- }
3721
- update(obj) {
3722
- return this.api.put(this.endpoint, obj.id, obj);
3723
- }
3724
- delete(id) {
3725
- return this.api.delete(this.endpoint, id);
3486
+ class ClaveMovimientoService extends CrudService {
3487
+ constructor(http) {
3488
+ super(http, 'claveMovimiento');
3726
3489
  }
3727
3490
  }
3728
- /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(ApiService)); };
3491
+ /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(HttpClient)); };
3729
3492
  /** @nocollapse */ ClaveMovimientoService.ɵprov = ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
3730
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveMovimientoService, [{
3493
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveMovimientoService, [{
3731
3494
  type: Injectable,
3732
3495
  args: [{
3733
3496
  providedIn: 'root'
3734
3497
  }]
3735
- }], function () { return [{ type: ApiService }]; }, null); })();
3498
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3736
3499
 
3737
3500
  class ClienteCuentaBanco {
3738
3501
  constructor() {
@@ -3753,73 +3516,43 @@ class ClienteFlete {
3753
3516
  }
3754
3517
  }
3755
3518
 
3756
- class ClienteCuentaBancoService {
3757
- constructor(api) {
3758
- this.api = api;
3759
- this.endpoint = 'clienteCuentaBanco';
3519
+ class ClienteCuentaBancoService extends CrudService {
3520
+ constructor(httpClient) {
3521
+ super(httpClient, '/clienteCuentaBanco');
3522
+ this.httpClient = httpClient;
3760
3523
  }
3761
3524
  saveAll(params) {
3762
3525
  let p = { 'cuentas': params };
3763
- return this.api.post(this.endpoint, p);
3764
- }
3765
- get(id) {
3766
- return this.api.get(`${this.endpoint}/${id}`);
3767
- }
3768
- delete(id) {
3769
- return this.api.delete(this.endpoint, id);
3770
- }
3771
- getAll(params) {
3772
- return this.api.get(this.endpoint, params);
3773
- }
3774
- save(obj) {
3775
- return this.api.post(this.endpoint, obj);
3776
- }
3777
- update(obj) {
3778
- return this.api.put(this.endpoint, obj.id, obj);
3526
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
3779
3527
  }
3780
3528
  }
3781
- /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(ApiService)); };
3529
+ /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(HttpClient)); };
3782
3530
  /** @nocollapse */ ClienteCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
3783
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteCuentaBancoService, [{
3531
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteCuentaBancoService, [{
3784
3532
  type: Injectable,
3785
3533
  args: [{
3786
3534
  providedIn: 'root'
3787
3535
  }]
3788
- }], function () { return [{ type: ApiService }]; }, null); })();
3536
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3789
3537
 
3790
- class ClienteFleteService {
3791
- constructor(api) {
3792
- this.api = api;
3793
- this.endpoint = 'clienteFlete';
3538
+ class ClienteFleteService extends CrudService {
3539
+ constructor(httpClient) {
3540
+ super(httpClient, '/clienteFlete');
3541
+ this.httpClient = httpClient;
3794
3542
  }
3795
3543
  saveAll(p) {
3796
3544
  let params = { fletes: p };
3797
- return this.api.post(this.endpoint, params);
3798
- }
3799
- get(id) {
3800
- return this.api.get(`${this.endpoint}/${id}`);
3801
- }
3802
- delete(id) {
3803
- return this.api.delete(this.endpoint, id);
3804
- }
3805
- getAll(params) {
3806
- return this.api.get(this.endpoint, params);
3807
- }
3808
- save(obj) {
3809
- return this.api.post(this.endpoint, obj);
3810
- }
3811
- update(obj) {
3812
- return this.api.put(this.endpoint, obj.id, obj);
3545
+ return this.save(params);
3813
3546
  }
3814
3547
  }
3815
- /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(ApiService)); };
3548
+ /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(HttpClient)); };
3816
3549
  /** @nocollapse */ ClienteFleteService.ɵprov = ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
3817
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteFleteService, [{
3550
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteFleteService, [{
3818
3551
  type: Injectable,
3819
3552
  args: [{
3820
3553
  providedIn: 'root'
3821
3554
  }]
3822
- }], function () { return [{ type: ApiService }]; }, null); })();
3555
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3823
3556
 
3824
3557
  class TipoContacto {
3825
3558
  constructor() {
@@ -3833,100 +3566,52 @@ class DatoContacto {
3833
3566
  }
3834
3567
  }
3835
3568
 
3836
- class DatoContactoService {
3837
- constructor(api) {
3838
- this.api = api;
3839
- this.endpoint = 'contacto';
3840
- }
3841
- getAll(params) {
3842
- return this.api.get(this.endpoint, params);
3843
- }
3844
- get(id) {
3845
- return this.api.get(`${this.endpoint}/${id}`);
3846
- }
3847
- save(obj) {
3848
- return this.api.post(this.endpoint, obj);
3849
- }
3850
- update(obj) {
3851
- return this.api.put(this.endpoint, obj.id, obj);
3852
- }
3853
- delete(id) {
3854
- return this.api.delete(this.endpoint, id);
3569
+ class DatoContactoService extends CrudService {
3570
+ constructor(http) {
3571
+ super(http, '/contacto');
3855
3572
  }
3856
3573
  }
3857
- /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(ApiService)); };
3574
+ /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(HttpClient)); };
3858
3575
  /** @nocollapse */ DatoContactoService.ɵprov = ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
3859
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoContactoService, [{
3576
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoContactoService, [{
3860
3577
  type: Injectable,
3861
3578
  args: [{
3862
3579
  providedIn: 'root'
3863
3580
  }]
3864
- }], function () { return [{ type: ApiService }]; }, null); })();
3581
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3865
3582
 
3866
- class DatoDireccionService {
3867
- constructor(api) {
3868
- this.api = api;
3869
- this.endpoint = 'datoDireccion';
3870
- }
3871
- getAll(params) {
3872
- return this.api.get(this.endpoint, params);
3873
- }
3874
- get(id) {
3875
- return this.api.get(`${this.endpoint}/${id}`);
3876
- }
3877
- save(obj) {
3878
- return this.api.post(this.endpoint, obj);
3879
- }
3880
- update(obj) {
3881
- return this.api.put(this.endpoint, obj.id, obj);
3882
- }
3883
- delete(id) {
3884
- return this.api.delete(this.endpoint, id);
3583
+ class DatoDireccionService extends CrudService {
3584
+ constructor(http) {
3585
+ super(http, '/datoDireccion');
3885
3586
  }
3886
3587
  }
3887
- /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(ApiService)); };
3588
+ /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(HttpClient)); };
3888
3589
  /** @nocollapse */ DatoDireccionService.ɵprov = ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
3889
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoDireccionService, [{
3590
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoDireccionService, [{
3890
3591
  type: Injectable,
3891
3592
  args: [{
3892
3593
  providedIn: 'root'
3893
3594
  }]
3894
- }], function () { return [{ type: ApiService }]; }, null); })();
3595
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3895
3596
 
3896
3597
  class Departamento {
3897
3598
  constructor() {
3898
3599
  }
3899
3600
  }
3900
3601
 
3901
- class DepartamentoService {
3902
- constructor(api) {
3903
- this.api = api;
3904
- this.endpoint = 'departamento';
3905
- }
3906
- getAll(params) {
3907
- return this.api.get(this.endpoint, params);
3908
- }
3909
- get(id) {
3910
- return this.api.get(`${this.endpoint}/${id}`);
3911
- }
3912
- save(obj) {
3913
- return this.api.post(this.endpoint, obj);
3914
- }
3915
- update(obj) {
3916
- return this.api.put(this.endpoint, obj.id, obj);
3917
- }
3918
- delete(id) {
3919
- return this.api.delete(this.endpoint, id);
3602
+ class DepartamentoService extends CrudService {
3603
+ constructor(http) {
3604
+ super(http, '/departamento');
3920
3605
  }
3921
3606
  }
3922
- /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(ApiService)); };
3607
+ /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(HttpClient)); };
3923
3608
  /** @nocollapse */ DepartamentoService.ɵprov = ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
3924
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DepartamentoService, [{
3609
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DepartamentoService, [{
3925
3610
  type: Injectable,
3926
3611
  args: [{
3927
3612
  providedIn: 'root'
3928
3613
  }]
3929
- }], function () { return [{ type: ApiService }]; }, null); })();
3614
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3930
3615
 
3931
3616
  class FormaPago {
3932
3617
  constructor() { }
@@ -3946,132 +3631,72 @@ class ConfiguracionEmpresaAdministrativa {
3946
3631
  }
3947
3632
  }
3948
3633
 
3949
- class EmpresaService {
3950
- constructor(api) {
3951
- this.api = api;
3952
- this.endpoint = 'empresa';
3953
- }
3954
- getAll(params) {
3955
- return this.api.get(this.endpoint, params);
3634
+ class EmpresaService extends CrudService {
3635
+ constructor(httpClient) {
3636
+ super(httpClient, '/empresa');
3637
+ this.httpClient = httpClient;
3956
3638
  }
3957
3639
  get() {
3958
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario`);
3959
- }
3960
- getByEmpresa(id) {
3961
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario/${id}`);
3962
- }
3963
- save(obj) {
3964
- return this.api.post(this.endpoint, obj);
3965
- }
3966
- update(obj) {
3967
- return this.api.put(this.endpoint, obj.id, obj);
3968
- }
3969
- delete(id) {
3970
- return this.api.delete(this.endpoint, id);
3640
+ // return super.get(1);
3641
+ return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
3971
3642
  }
3972
3643
  }
3973
- /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(ApiService)); };
3644
+ /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(HttpClient)); };
3974
3645
  /** @nocollapse */ EmpresaService.ɵprov = ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
3975
- /*@__PURE__*/ (function () { ɵsetClassMetadata(EmpresaService, [{
3646
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(EmpresaService, [{
3976
3647
  type: Injectable,
3977
3648
  args: [{
3978
3649
  providedIn: 'root'
3979
3650
  }]
3980
- }], function () { return [{ type: ApiService }]; }, null); })();
3651
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3981
3652
 
3982
- class FleteService {
3983
- constructor(api) {
3984
- this.api = api;
3985
- this.endpoint = 'flete';
3986
- }
3987
- getAll(params) {
3988
- return this.api.get(this.endpoint, params);
3989
- }
3990
- get(id) {
3991
- return this.api.get(`${this.endpoint}/${id}`);
3992
- }
3993
- save(obj) {
3994
- return this.api.post(this.endpoint, obj);
3995
- }
3996
- update(obj) {
3997
- return this.api.put(this.endpoint, obj.id, obj);
3998
- }
3999
- delete(id) {
4000
- return this.api.delete(this.endpoint, id);
3653
+ class FleteService extends CrudService {
3654
+ constructor(httpClient) {
3655
+ super(httpClient, '/flete');
3656
+ this.httpClient = httpClient;
4001
3657
  }
4002
3658
  }
4003
- /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(ApiService)); };
3659
+ /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(HttpClient)); };
4004
3660
  /** @nocollapse */ FleteService.ɵprov = ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
4005
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FleteService, [{
3661
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FleteService, [{
4006
3662
  type: Injectable,
4007
3663
  args: [{
4008
3664
  providedIn: 'root'
4009
3665
  }]
4010
- }], function () { return [{ type: ApiService }]; }, null); })();
3666
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4011
3667
 
4012
- class FormaPagoService {
4013
- constructor(api) {
4014
- this.api = api;
4015
- this.endpoint = 'FormaDePago';
4016
- }
4017
- getAll(params) {
4018
- return this.api.get(this.endpoint, params);
4019
- }
4020
- get(id) {
4021
- return this.api.get(`${this.endpoint}/${id}`);
4022
- }
4023
- save(obj) {
4024
- return this.api.post(this.endpoint, obj);
4025
- }
4026
- update(obj) {
4027
- return this.api.put(this.endpoint, obj.id, obj);
4028
- }
4029
- delete(id) {
4030
- return this.api.delete(this.endpoint, id);
3668
+ class FormaPagoService extends CrudService {
3669
+ constructor(http) {
3670
+ super(http, '/FormaDePago');
4031
3671
  }
4032
3672
  }
4033
- /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(ApiService)); };
3673
+ /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(HttpClient)); };
4034
3674
  /** @nocollapse */ FormaPagoService.ɵprov = ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
4035
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FormaPagoService, [{
3675
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FormaPagoService, [{
4036
3676
  type: Injectable,
4037
3677
  args: [{
4038
3678
  providedIn: "root"
4039
3679
  }]
4040
- }], function () { return [{ type: ApiService }]; }, null); })();
3680
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4041
3681
 
4042
3682
  class Moneda {
4043
3683
  constructor() { }
4044
3684
  }
4045
3685
 
4046
- class MonedaService {
4047
- constructor(api) {
4048
- this.api = api;
4049
- this.endpoint = 'moneda';
4050
- }
4051
- getAll(params) {
4052
- return this.api.get(this.endpoint, params);
4053
- }
4054
- get(id) {
4055
- return this.api.get(`${this.endpoint}/${id}`);
4056
- }
4057
- save(obj) {
4058
- return this.api.post(this.endpoint, obj);
4059
- }
4060
- update(obj) {
4061
- return this.api.put(this.endpoint, obj.id, obj);
4062
- }
4063
- delete(id) {
4064
- return this.api.delete(this.endpoint, id);
3686
+ class MonedaService extends CrudService {
3687
+ constructor(httpClient) {
3688
+ super(httpClient, '/moneda');
3689
+ this.httpClient = httpClient;
4065
3690
  }
4066
3691
  }
4067
- /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(ApiService)); };
3692
+ /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(HttpClient)); };
4068
3693
  /** @nocollapse */ MonedaService.ɵprov = ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
4069
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MonedaService, [{
3694
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MonedaService, [{
4070
3695
  type: Injectable,
4071
3696
  args: [{
4072
3697
  providedIn: 'root'
4073
3698
  }]
4074
- }], function () { return [{ type: ApiService }]; }, null); })();
3699
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4075
3700
 
4076
3701
  class EstadoCivil {
4077
3702
  constructor() { }
@@ -4081,26 +3706,26 @@ class Genero {
4081
3706
  constructor() { }
4082
3707
  }
4083
3708
 
4084
- class PersonaFisicaService {
4085
- constructor(api) {
4086
- this.api = api;
4087
- this.endpoint = 'PersonaFisica';
3709
+ class PersonaFisicaService extends CrudService {
3710
+ constructor(httpClient) {
3711
+ super(httpClient, '/PersonaFisica');
3712
+ this.httpClient = httpClient;
4088
3713
  }
4089
3714
  getGeneros() {
4090
- return this.api.get(`${this.endpoint}/genero`);
3715
+ return this.httpClient.get(this.getBaseUrl() + '/genero', this.buildAuth());
4091
3716
  }
4092
3717
  getEstadoCivil() {
4093
- return this.api.get(`${this.endpoint}/estadoCivil`);
3718
+ return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
4094
3719
  }
4095
3720
  }
4096
- /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(ApiService)); };
3721
+ /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(HttpClient)); };
4097
3722
  /** @nocollapse */ PersonaFisicaService.ɵprov = ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
4098
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaFisicaService, [{
3723
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaFisicaService, [{
4099
3724
  type: Injectable,
4100
3725
  args: [{
4101
3726
  providedIn: "root"
4102
3727
  }]
4103
- }], function () { return [{ type: ApiService }]; }, null); })();
3728
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4104
3729
 
4105
3730
  class ProveedorCuentaBanco {
4106
3731
  constructor() {
@@ -4117,224 +3742,138 @@ class ProveedorFlete {
4117
3742
  }
4118
3743
  }
4119
3744
 
4120
- class ProveedorCuentaBancoService {
4121
- constructor(api) {
4122
- this.api = api;
4123
- this.endpoint = 'proveedorCuentaBanco';
4124
- }
4125
- getAll(params) {
4126
- return this.api.get(this.endpoint, params);
3745
+ class ProveedorCuentaBancoService extends CrudService {
3746
+ constructor(httpClient) {
3747
+ super(httpClient, '/proveedorCuentaBanco');
3748
+ this.httpClient = httpClient;
4127
3749
  }
4128
3750
  saveAll(params) {
4129
3751
  let p = { 'cuentas': params };
4130
- return this.api.post(this.endpoint, p);
4131
- }
4132
- get(id) {
4133
- return this.api.get(`${this.endpoint}/${id}`);
4134
- }
4135
- delete(id) {
4136
- return this.api.delete(this.endpoint, id);
4137
- }
4138
- update(obj) {
4139
- return this.api.put(this.endpoint, obj.id, obj);
4140
- }
4141
- save(obj) {
4142
- return this.api.post(this.endpoint, obj);
3752
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
4143
3753
  }
4144
3754
  }
4145
- /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(ApiService)); };
3755
+ /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(HttpClient)); };
4146
3756
  /** @nocollapse */ ProveedorCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
4147
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorCuentaBancoService, [{
3757
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorCuentaBancoService, [{
4148
3758
  type: Injectable,
4149
3759
  args: [{
4150
3760
  providedIn: 'root'
4151
3761
  }]
4152
- }], function () { return [{ type: ApiService }]; }, null); })();
3762
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4153
3763
 
4154
- class ProveedorFleteService {
4155
- constructor(api) {
4156
- this.api = api;
4157
- this.endpoint = 'proveedorFlete';
4158
- }
4159
- getAll(params) {
4160
- return this.api.get(this.endpoint, params);
3764
+ class ProveedorFleteService extends CrudService {
3765
+ constructor(httpClient) {
3766
+ super(httpClient, '/proveedorFlete');
3767
+ this.httpClient = httpClient;
4161
3768
  }
4162
3769
  saveAll(p) {
4163
3770
  let params = { fletes: p };
4164
3771
  return this.save(params);
4165
3772
  }
4166
- save(obj) {
4167
- return this.api.post(this.endpoint, obj);
4168
- }
4169
- update(obj) {
4170
- return this.api.put(this.endpoint, obj.id, obj);
4171
- }
4172
- delete(id) {
4173
- return this.api.delete(this.endpoint, id);
4174
- }
4175
3773
  }
4176
- /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(ApiService)); };
3774
+ /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(HttpClient)); };
4177
3775
  /** @nocollapse */ ProveedorFleteService.ɵprov = ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
4178
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorFleteService, [{
3776
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorFleteService, [{
4179
3777
  type: Injectable,
4180
3778
  args: [{
4181
3779
  providedIn: 'root'
4182
3780
  }]
4183
- }], function () { return [{ type: ApiService }]; }, null); })();
3781
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4184
3782
 
4185
- class ClaveAumentoDisminucionService {
4186
- constructor(api) {
4187
- this.api = api;
4188
- this.endpoint = 'claveAumentoDisminucion';
4189
- }
4190
- getAll(params) {
4191
- return this.api.get(this.endpoint, params);
4192
- }
4193
- get(id) {
4194
- return this.api.get(`${this.endpoint}/${id}`);
4195
- }
4196
- save(obj) {
4197
- return this.api.post(this.endpoint, obj);
4198
- }
4199
- update(obj) {
4200
- return this.api.put(this.endpoint, obj.id, obj);
4201
- }
4202
- delete(id) {
4203
- return this.api.delete(this.endpoint, id);
3783
+ class ClaveAumentoDisminucionService extends CrudService {
3784
+ constructor(http) {
3785
+ super(http, 'claveAumentoDisminucion');
4204
3786
  }
4205
3787
  }
4206
- /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(ApiService)); };
3788
+ /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(HttpClient)); };
4207
3789
  /** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
4208
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
3790
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
4209
3791
  type: Injectable,
4210
3792
  args: [{
4211
3793
  providedIn: 'root'
4212
3794
  }]
4213
- }], function () { return [{ type: ApiService }]; }, null); })();
3795
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4214
3796
 
4215
- class SerieDocumentoService {
4216
- constructor(api) {
4217
- this.api = api;
4218
- this.endpoint = 'serieDocumento';
3797
+ class SerieDocumentoService extends CrudService {
3798
+ constructor(httpClient) {
3799
+ super(httpClient, 'serieDocumento');
3800
+ this.httpClient = httpClient;
4219
3801
  }
4220
3802
  getTipos() {
4221
- return this.api.get(`${this.endpoint}/tipoSerie`);
3803
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/tipoSerie', this.buildAuth());
4222
3804
  }
4223
3805
  getReporte(params) {
4224
- return this.api.get(`${this.endpoint}/descargaFormatoReporte`, params);
4225
- }
4226
- get(id) {
4227
- return this.api.get(`${this.endpoint}/${id}`);
4228
- }
4229
- save(obj) {
4230
- return this.api.post(this.endpoint, obj);
4231
- }
4232
- update(obj) {
4233
- return this.api.put(this.endpoint, obj.id, obj);
4234
- }
4235
- delete(id) {
4236
- return this.api.delete(this.endpoint, id);
3806
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
4237
3807
  }
4238
3808
  }
4239
- /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(ApiService)); };
3809
+ /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(HttpClient)); };
4240
3810
  /** @nocollapse */ SerieDocumentoService.ɵprov = ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
4241
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SerieDocumentoService, [{
3811
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SerieDocumentoService, [{
4242
3812
  type: Injectable,
4243
3813
  args: [{
4244
3814
  providedIn: 'root'
4245
3815
  }]
4246
- }], function () { return [{ type: ApiService }]; }, null); })();
3816
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4247
3817
 
4248
3818
  class SerieDocumento {
4249
3819
  constructor() { }
4250
3820
  }
4251
3821
 
4252
- class TipoContactoService {
4253
- constructor(api) {
4254
- this.api = api;
4255
- this.endpoint = 'tipoContacto';
4256
- }
4257
- getAll(params) {
4258
- return this.api.get(this.endpoint, params);
4259
- }
4260
- get(id) {
4261
- return this.api.get(`${this.endpoint}/${id}`);
4262
- }
4263
- save(obj) {
4264
- return this.api.post(this.endpoint, obj);
4265
- }
4266
- update(obj) {
4267
- return this.api.put(this.endpoint, obj.id, obj);
4268
- }
4269
- delete(id) {
4270
- return this.api.delete(this.endpoint, id);
3822
+ class TipoContactoService extends CrudService {
3823
+ constructor(http) {
3824
+ super(http, '/tipoContacto');
4271
3825
  }
4272
3826
  }
4273
- /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(ApiService)); };
3827
+ /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(HttpClient)); };
4274
3828
  /** @nocollapse */ TipoContactoService.ɵprov = ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
4275
- /*@__PURE__*/ (function () { ɵsetClassMetadata(TipoContactoService, [{
3829
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(TipoContactoService, [{
4276
3830
  type: Injectable,
4277
3831
  args: [{
4278
3832
  providedIn: 'root'
4279
3833
  }]
4280
- }], function () { return [{ type: ApiService }]; }, null); })();
3834
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4281
3835
 
4282
3836
  class Ubicacion {
4283
3837
  constructor() { }
4284
3838
  }
4285
3839
 
4286
- class UbicacionService {
4287
- constructor(api) {
4288
- this.api = api;
4289
- this.endpoint = 'ubicacion';
4290
- }
4291
- getAll(params) {
4292
- return this.api.get(this.endpoint, params);
4293
- }
4294
- get(id) {
4295
- return this.api.get(`${this.endpoint}/${id}`);
4296
- }
4297
- save(obj) {
4298
- return this.api.post(this.endpoint, obj);
4299
- }
4300
- update(obj) {
4301
- return this.api.put(this.endpoint, obj.id, obj);
4302
- }
4303
- delete(id) {
4304
- return this.api.delete(this.endpoint, id);
3840
+ class UbicacionService extends CrudService {
3841
+ constructor(http) {
3842
+ super(http, 'ubicacion');
4305
3843
  }
4306
3844
  }
4307
- /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(ApiService)); };
3845
+ /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(HttpClient)); };
4308
3846
  /** @nocollapse */ UbicacionService.ɵprov = ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
4309
- /*@__PURE__*/ (function () { ɵsetClassMetadata(UbicacionService, [{
3847
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(UbicacionService, [{
4310
3848
  type: Injectable,
4311
3849
  args: [{
4312
3850
  providedIn: 'root'
4313
3851
  }]
4314
- }], function () { return [{ type: ApiService }]; }, null); })();
3852
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4315
3853
 
4316
3854
  class TipoCatalogo {
4317
3855
  }
4318
3856
  TipoCatalogo.ARTICULO = 2;
4319
3857
  TipoCatalogo.USO_CFDI = 11;
4320
3858
 
4321
- class AcreedorCuentaContableService {
4322
- constructor(api) {
4323
- this.api = api;
4324
- this.endpoint = 'acreedorCuentaContable';
3859
+ class AcreedorCuentaContableService extends CrudService {
3860
+ constructor(httpClient) {
3861
+ super(httpClient, 'acreedorCuentaContable');
3862
+ this.httpClient = httpClient;
4325
3863
  }
4326
3864
  cuentasContables() {
4327
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
3865
+ let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
3866
+ return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
4328
3867
  }
4329
3868
  }
4330
- /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(ApiService)); };
3869
+ /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(HttpClient)); };
4331
3870
  /** @nocollapse */ AcreedorCuentaContableService.ɵprov = ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
4332
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorCuentaContableService, [{
3871
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorCuentaContableService, [{
4333
3872
  type: Injectable,
4334
3873
  args: [{
4335
3874
  providedIn: 'root'
4336
3875
  }]
4337
- }], function () { return [{ type: ApiService }]; }, null); })();
3876
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4338
3877
 
4339
3878
  class CuentaContableModel {
4340
3879
  constructor() {
@@ -4355,5 +3894,5 @@ class NormaInformacionFinancieraModel {
4355
3894
  * Generated bundle index. Do not edit.
4356
3895
  */
4357
3896
 
4358
- export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, ApiService, 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, 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 };
3897
+ 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 };
4359
3898
  //# sourceMappingURL=visorus-erp-core.js.map