visorus-erp-core 17.3.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/visorus-erp-core.mjs +855 -1459
- package/fesm2022/visorus-erp-core.mjs.map +1 -1
- package/lib/app.module.d.ts +41 -39
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +26 -0
- package/lib/components/cliente/select/select-cliente.component.d.ts +27 -0
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +26 -0
- package/lib/globalPrimeNg.d.ts +2 -2
- package/lib/importComponents.d.ts +5 -2
- package/lib/services/auth.service.d.ts +0 -1
- package/package.json +12 -13
- package/public_api.d.ts +3 -0
- package/esm2022/lib/app.module.mjs +0 -110
- package/esm2022/lib/components/acreedor/services/acreedor.service.mjs +0 -20
- package/esm2022/lib/components/acreedor/services/acreedorCuentaContable.mjs +0 -24
- package/esm2022/lib/components/agente/models/Agente.mjs +0 -8
- package/esm2022/lib/components/agente/services/agente.service.mjs +0 -32
- package/esm2022/lib/components/almacen/models/Almacen.mjs +0 -4
- package/esm2022/lib/components/almacen/services/almacen.service.mjs +0 -24
- package/esm2022/lib/components/banco/models/Banco.mjs +0 -7
- package/esm2022/lib/components/banco/services/banco.service.mjs +0 -19
- package/esm2022/lib/components/caja/session-create/session-create.component.mjs +0 -181
- package/esm2022/lib/components/caja/sessionCaja.service.mjs +0 -20
- package/esm2022/lib/components/catalogoTipo/models/CatalogoTipo.mjs +0 -4
- package/esm2022/lib/components/catalogoTipo/services/catalogoTipo.service.mjs +0 -19
- package/esm2022/lib/components/clasificadorTipo/models/ClasificadorTipo.mjs +0 -4
- package/esm2022/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs +0 -19
- package/esm2022/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs +0 -19
- package/esm2022/lib/components/claveMovimiento/models/ClaveMovimiento.mjs +0 -4
- package/esm2022/lib/components/claveMovimiento/services/claveMovimiento.service.mjs +0 -19
- package/esm2022/lib/components/cliente/models/Cliente.mjs +0 -12
- package/esm2022/lib/components/cliente/models/ClienteCuentaBanco.mjs +0 -8
- package/esm2022/lib/components/cliente/models/ClienteFlete.mjs +0 -10
- package/esm2022/lib/components/cliente/services/cliente.service.mjs +0 -22
- package/esm2022/lib/components/cliente/services/clienteCuentaBanco.service.mjs +0 -24
- package/esm2022/lib/components/cliente/services/clienteFlete.service.mjs +0 -24
- package/esm2022/lib/components/contacto/models/DatoContacto.mjs +0 -7
- package/esm2022/lib/components/contacto/services/datoContacto.service.mjs +0 -19
- package/esm2022/lib/components/dato-direccion/models/DatoDireccion.mjs +0 -5
- package/esm2022/lib/components/dato-direccion/services/datoDireccion.service.mjs +0 -19
- package/esm2022/lib/components/departamento/models/Departamento.mjs +0 -5
- package/esm2022/lib/components/departamento/services/departamento.service.mjs +0 -19
- package/esm2022/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.mjs +0 -7
- package/esm2022/lib/components/empresa/models/Empresa.mjs +0 -11
- package/esm2022/lib/components/empresa/services/empresa.service.mjs +0 -24
- package/esm2022/lib/components/error404/error404.component.mjs +0 -22
- package/esm2022/lib/components/flete/models/Flete.mjs +0 -4
- package/esm2022/lib/components/flete/services/flete.service.mjs +0 -20
- package/esm2022/lib/components/formaPago/models/FormaPago.mjs +0 -4
- package/esm2022/lib/components/formaPago/services/FormaPago.service.mjs +0 -19
- package/esm2022/lib/components/loading/loading.component.mjs +0 -49
- package/esm2022/lib/components/loading/loading.service.mjs +0 -30
- package/esm2022/lib/components/loading-screen/loading-screen.component.mjs +0 -45
- package/esm2022/lib/components/loading-screen/loading-screen.service.mjs +0 -31
- package/esm2022/lib/components/login-modal/login-modal.component.mjs +0 -153
- package/esm2022/lib/components/login-modal/login-modal.service.mjs +0 -21
- package/esm2022/lib/components/moneda/models/Moneda.mjs +0 -4
- package/esm2022/lib/components/moneda/services/moneda.service.mjs +0 -20
- package/esm2022/lib/components/pdfModal/pdf-modal.component.mjs +0 -104
- package/esm2022/lib/components/pdfModal/pdf-modal.service.mjs +0 -29
- package/esm2022/lib/components/persona-fisica/models/EstadoCivil.mjs +0 -4
- package/esm2022/lib/components/persona-fisica/models/Genero.mjs +0 -4
- package/esm2022/lib/components/persona-fisica/models/Persona.mjs +0 -7
- package/esm2022/lib/components/persona-fisica/models/PersonaFisica.mjs +0 -9
- package/esm2022/lib/components/persona-fisica/services/personaFisica.service.mjs +0 -26
- package/esm2022/lib/components/proveedor/models/Proveedor.mjs +0 -12
- package/esm2022/lib/components/proveedor/models/ProveedorCuentaBanco.mjs +0 -8
- package/esm2022/lib/components/proveedor/models/ProveedorFlete.mjs +0 -10
- package/esm2022/lib/components/proveedor/services/proveedor.service.mjs +0 -20
- package/esm2022/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs +0 -24
- package/esm2022/lib/components/proveedor/services/proveedorFlete.service.mjs +0 -24
- package/esm2022/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +0 -151
- package/esm2022/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs +0 -24
- package/esm2022/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +0 -486
- package/esm2022/lib/components/selecciona-articulo/stock.service.mjs +0 -31
- package/esm2022/lib/components/serieDocumento/models/SerieDocumento.mjs +0 -4
- package/esm2022/lib/components/serieDocumento/services/serieDocumento.service.mjs +0 -26
- package/esm2022/lib/components/tipo-contacto/models/TipoContacto.mjs +0 -6
- package/esm2022/lib/components/tipo-contacto/services/tipoContacto.service.mjs +0 -19
- package/esm2022/lib/components/ubicacion/models/Ubicacion.mjs +0 -4
- package/esm2022/lib/components/ubicacion/services/ubicacion.service.mjs +0 -19
- package/esm2022/lib/contabilidad/componentes/cclista/cclista.component.mjs +0 -262
- package/esm2022/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +0 -66
- package/esm2022/lib/contabilidad/modelos/cuentaContable.model.mjs +0 -6
- package/esm2022/lib/contabilidad/modelos/normaInfoFinanciera.model.mjs +0 -5
- package/esm2022/lib/contabilidad/servicios/cuentacontable.service.mjs +0 -23
- package/esm2022/lib/globalPrimeNg.mjs +0 -66
- package/esm2022/lib/httpInterceptor/httpInterceptor.mjs +0 -90
- package/esm2022/lib/importComponents.mjs +0 -18
- package/esm2022/lib/importComponetsConta.mjs +0 -7
- package/esm2022/lib/models/PersonaMoral.mjs +0 -9
- package/esm2022/lib/models/Usuario.mjs +0 -3
- package/esm2022/lib/models/auth.mjs +0 -3
- package/esm2022/lib/services/auth.service.mjs +0 -224
- package/esm2022/lib/services/authenticated.service.mjs +0 -77
- package/esm2022/lib/services/canActivateGuard.service.ts.mjs +0 -26
- package/esm2022/lib/services/catalogo-adicional.service.mjs +0 -20
- package/esm2022/lib/services/controlAcceso.service.mjs +0 -43
- package/esm2022/lib/services/crud.service.mjs +0 -46
- package/esm2022/lib/services/file.service.mjs +0 -68
- package/esm2022/lib/services/global.service.mjs +0 -54
- package/esm2022/lib/services/init.service.mjs +0 -51
- package/esm2022/lib/services/message.service.mjs +0 -79
- package/esm2022/lib/services/paginate.service.mjs +0 -58
- package/esm2022/lib/services/personaMoral.service.mjs +0 -19
- package/esm2022/lib/services/versionCheck.service.mjs +0 -52
- package/esm2022/lib/utils/tipo_catalogo.ts.mjs +0 -5
- package/esm2022/public_api.mjs +0 -93
- package/esm2022/visorus-erp-core.mjs +0 -5
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
2
|
+
import { Injectable, EventEmitter, Output, Input, Component, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
5
5
|
import * as i4 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i3 from 'primeng/api';
|
|
8
8
|
import { ConfirmationService } from 'primeng/api';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i19 from 'primeng/treetable';
|
|
10
10
|
import { TreeTableModule } from 'primeng/treetable';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i21 from 'primeng/button';
|
|
12
12
|
import { ButtonModule } from 'primeng/button';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i22 from 'primeng/inputtext';
|
|
14
14
|
import { InputTextModule } from 'primeng/inputtext';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i11 from '@angular/forms';
|
|
16
16
|
import { FormsModule } from '@angular/forms';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i32 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
19
|
import { Subject, throwError, of } from 'rxjs';
|
|
20
20
|
import { catchError, tap, debounceTime } from 'rxjs/operators';
|
|
21
21
|
import * as i1$1 from 'ngx-toastr';
|
|
22
22
|
import { ToastrModule } from 'ngx-toastr';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i3$1 from '@ngx-translate/core';
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
|
-
import * as i3$
|
|
26
|
-
import * as
|
|
25
|
+
import * as i3$2 from '@angular/platform-browser';
|
|
26
|
+
import * as i18 from 'primeng/table';
|
|
27
27
|
import { TableModule } from 'primeng/table';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i27 from 'primeng/paginator';
|
|
29
29
|
import { PaginatorModule } from 'primeng/paginator';
|
|
30
|
-
import * as
|
|
31
|
-
import { DropdownModule } from 'primeng/dropdown';
|
|
32
|
-
import * as i21 from 'primeng/inputmask';
|
|
30
|
+
import * as i24 from 'primeng/inputmask';
|
|
33
31
|
import { InputMaskModule } from 'primeng/inputmask';
|
|
34
|
-
import * as
|
|
35
|
-
import { MessagesModule } from 'primeng/messages';
|
|
36
|
-
import * as i23 from 'primeng/message';
|
|
32
|
+
import * as i26 from 'primeng/message';
|
|
37
33
|
import { MessageModule } from 'primeng/message';
|
|
38
|
-
import * as
|
|
34
|
+
import * as i28 from 'primeng/confirmdialog';
|
|
39
35
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
40
|
-
import * as
|
|
36
|
+
import * as i29 from 'primeng/progressbar';
|
|
41
37
|
import { ProgressBarModule } from 'primeng/progressbar';
|
|
42
|
-
import * as
|
|
43
|
-
import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
|
|
44
|
-
import * as i28 from 'primeng/keyfilter';
|
|
38
|
+
import * as i30 from 'primeng/keyfilter';
|
|
45
39
|
import { KeyFilterModule } from 'primeng/keyfilter';
|
|
46
|
-
import * as
|
|
40
|
+
import * as i31 from 'primeng/inputswitch';
|
|
47
41
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
48
|
-
import * as
|
|
42
|
+
import * as i33 from 'primeng/tabview';
|
|
49
43
|
import { TabViewModule } from 'primeng/tabview';
|
|
50
|
-
import * as
|
|
44
|
+
import * as i20 from 'primeng/calendar';
|
|
51
45
|
import { CalendarModule } from 'primeng/calendar';
|
|
52
|
-
import * as
|
|
46
|
+
import * as i34 from 'primeng/panel';
|
|
53
47
|
import { PanelModule } from 'primeng/panel';
|
|
54
|
-
import * as
|
|
48
|
+
import * as i17 from 'primeng/autocomplete';
|
|
55
49
|
import { AutoCompleteModule } from 'primeng/autocomplete';
|
|
56
|
-
import * as
|
|
50
|
+
import * as i37 from 'primeng/fieldset';
|
|
57
51
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
58
|
-
import * as
|
|
52
|
+
import * as i16 from 'primeng/checkbox';
|
|
59
53
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
60
|
-
import * as
|
|
54
|
+
import * as i38 from 'primeng/tree';
|
|
61
55
|
import { TreeModule } from 'primeng/tree';
|
|
62
|
-
import * as
|
|
56
|
+
import * as i15 from 'primeng/radiobutton';
|
|
63
57
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
64
|
-
import * as
|
|
58
|
+
import * as i39 from 'primeng/tabmenu';
|
|
65
59
|
import { TabMenuModule } from 'primeng/tabmenu';
|
|
66
|
-
import * as
|
|
60
|
+
import * as i14 from 'primeng/overlaypanel';
|
|
67
61
|
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
|
68
|
-
import * as
|
|
62
|
+
import * as i13 from 'primeng/tooltip';
|
|
69
63
|
import { TooltipModule } from 'primeng/tooltip';
|
|
70
|
-
import * as
|
|
64
|
+
import * as i12 from 'primeng/card';
|
|
71
65
|
import { CardModule } from 'primeng/card';
|
|
72
|
-
import * as
|
|
66
|
+
import * as i40 from 'primeng/menubar';
|
|
73
67
|
import { MenubarModule } from 'primeng/menubar';
|
|
74
|
-
import * as
|
|
68
|
+
import * as i36 from 'primeng/splitbutton';
|
|
75
69
|
import { SplitButtonModule } from 'primeng/splitbutton';
|
|
76
|
-
import * as
|
|
70
|
+
import * as i35 from 'primeng/toolbar';
|
|
77
71
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
72
|
+
import * as i23 from 'primeng/dropdown';
|
|
73
|
+
import { DropdownModule } from 'primeng/dropdown';
|
|
74
|
+
import * as i25 from 'primeng/messages';
|
|
75
|
+
import { MessagesModule } from 'primeng/messages';
|
|
78
76
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
79
|
-
import
|
|
77
|
+
import Aura from '@primeuix/themes/aura';
|
|
78
|
+
import { providePrimeNG } from 'primeng/config';
|
|
79
|
+
import * as i3$3 from '@angular/router';
|
|
80
80
|
|
|
81
81
|
class GlobalService {
|
|
82
82
|
constructor(http) {
|
|
@@ -184,82 +184,16 @@ class CuentaContableService extends CrudService {
|
|
|
184
184
|
obtieneCuentasContablesRecursivo() {
|
|
185
185
|
return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
|
|
186
186
|
}
|
|
187
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
188
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
189
|
-
}
|
|
190
|
-
(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const _c0$6 = () => ({ width: "100%" });
|
|
198
|
-
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
-
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
200
|
-
i0.ɵɵtext(2, "Cuenta contable");
|
|
201
|
-
i0.ɵɵelementEnd();
|
|
202
|
-
i0.ɵɵelementStart(3, "th", 5);
|
|
203
|
-
i0.ɵɵtext(4, "Descripci\u00F3n");
|
|
204
|
-
i0.ɵɵelementEnd();
|
|
205
|
-
i0.ɵɵelementStart(5, "th", 6);
|
|
206
|
-
i0.ɵɵtext(6, "Naturaleza");
|
|
207
|
-
i0.ɵɵelementEnd();
|
|
208
|
-
i0.ɵɵelementStart(7, "th", 7);
|
|
209
|
-
i0.ɵɵtext(8, "Tipo");
|
|
210
|
-
i0.ɵɵelementEnd();
|
|
211
|
-
i0.ɵɵelementStart(9, "th", 8);
|
|
212
|
-
i0.ɵɵtext(10, "Acciones");
|
|
213
|
-
i0.ɵɵelementEnd()();
|
|
214
|
-
} }
|
|
215
|
-
function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
216
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
217
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
218
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
219
|
-
i0.ɵɵelementEnd();
|
|
220
|
-
} }
|
|
221
|
-
function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
222
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
223
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
224
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
225
|
-
i0.ɵɵelementEnd();
|
|
226
|
-
} }
|
|
227
|
-
function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
-
i0.ɵɵelementStart(0, "tr")(1, "td", 9);
|
|
229
|
-
i0.ɵɵelement(2, "p-treeTableToggler", 10);
|
|
230
|
-
i0.ɵɵtext(3);
|
|
231
|
-
i0.ɵɵelementEnd();
|
|
232
|
-
i0.ɵɵelementStart(4, "td", 9);
|
|
233
|
-
i0.ɵɵtext(5);
|
|
234
|
-
i0.ɵɵelementEnd();
|
|
235
|
-
i0.ɵɵelementStart(6, "td", 11);
|
|
236
|
-
i0.ɵɵtext(7);
|
|
237
|
-
i0.ɵɵelementEnd();
|
|
238
|
-
i0.ɵɵelementStart(8, "td", 12);
|
|
239
|
-
i0.ɵɵtext(9);
|
|
240
|
-
i0.ɵɵelementEnd();
|
|
241
|
-
i0.ɵɵelementStart(10, "td", 13)(11, "div", 14);
|
|
242
|
-
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15)(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
243
|
-
i0.ɵɵelementEnd()()();
|
|
244
|
-
} if (rf & 2) {
|
|
245
|
-
const rowNode_r5 = ctx.$implicit;
|
|
246
|
-
const rowData_r2 = ctx.rowData;
|
|
247
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
248
|
-
i0.ɵɵadvance(2);
|
|
249
|
-
i0.ɵɵproperty("rowNode", rowNode_r5);
|
|
250
|
-
i0.ɵɵadvance();
|
|
251
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.cuentaContable, " ");
|
|
252
|
-
i0.ɵɵadvance(2);
|
|
253
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.descripcion, " ");
|
|
254
|
-
i0.ɵɵadvance(2);
|
|
255
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.naturaleza, " ");
|
|
256
|
-
i0.ɵɵadvance(2);
|
|
257
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.tipo, " ");
|
|
258
|
-
i0.ɵɵadvance(3);
|
|
259
|
-
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 1 && rowData_r2.cuentaRegistro);
|
|
260
|
-
i0.ɵɵadvance();
|
|
261
|
-
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 2 && !rowData_r2.cuentaRegistro);
|
|
262
|
-
} }
|
|
187
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
188
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CuentaContableService, providedIn: 'root' }); }
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CuentaContableService, decorators: [{
|
|
191
|
+
type: Injectable,
|
|
192
|
+
args: [{
|
|
193
|
+
providedIn: 'root'
|
|
194
|
+
}]
|
|
195
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
196
|
+
|
|
263
197
|
class CclistaComponent {
|
|
264
198
|
constructor(_cuentaContableService) {
|
|
265
199
|
this._cuentaContableService = _cuentaContableService;
|
|
@@ -418,37 +352,20 @@ class CclistaComponent {
|
|
|
418
352
|
return listAccounts;
|
|
419
353
|
}
|
|
420
354
|
}
|
|
421
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
422
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i16.TreeTable, i16.TreeTableToggler, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgModel] }); }
|
|
436
|
-
}
|
|
437
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
438
|
-
type: Component,
|
|
439
|
-
args: [{ selector: 'lib-cclista', template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>" }]
|
|
440
|
-
}], () => [{ type: CuentaContableService }], { isShared: [{
|
|
441
|
-
type: Input
|
|
442
|
-
}], typeAccount: [{
|
|
443
|
-
type: Input
|
|
444
|
-
}], evSelectedAccount: [{
|
|
445
|
-
type: Output
|
|
446
|
-
}] }); })();
|
|
447
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
|
|
448
|
-
|
|
449
|
-
const _c0$5 = ["dialog"];
|
|
450
|
-
const _c1$4 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
451
|
-
const _c2 = a0 => ({ "height": a0 });
|
|
355
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CclistaComponent, deps: [{ token: CuentaContableService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
356
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: CclistaComponent, isStandalone: false, selector: "lib-cclista", inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, ngImport: i0, template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i19.TreeTable, selector: "p-treeTable, p-treetable, p-tree-table", inputs: ["columns", "style", "styleClass", "tableStyle", "tableStyleClass", "autoLayout", "lazy", "lazyLoadOnInit", "paginator", "rows", "first", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "customSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "compareSelectionBy", "rowHover", "loading", "loadingIcon", "showLoader", "scrollable", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "frozenColumns", "resizableColumns", "columnResizeMode", "reorderableColumns", "contextMenu", "rowTrackBy", "filters", "globalFilterFields", "filterDelay", "filterMode", "filterLocale", "paginatorLocale", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "value", "virtualRowHeight", "selectionKeys", "showGridlines"], outputs: ["selectionChange", "contextMenuSelectionChange", "onFilter", "onNodeExpand", "onNodeCollapse", "onPage", "onSort", "onLazyLoad", "sortFunction", "onColResize", "onColReorder", "onNodeSelect", "onNodeUnselect", "onContextMenuSelect", "onHeaderCheckboxToggle", "onEditInit", "onEditComplete", "onEditCancel", "selectionKeysChange"] }, { kind: "component", type: i19.TreeTableToggler, selector: "p-treeTableToggler, p-treetabletoggler, p-treetable-toggler", inputs: ["rowNode"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
357
|
+
}
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CclistaComponent, decorators: [{
|
|
359
|
+
type: Component,
|
|
360
|
+
args: [{ selector: 'lib-cclista', standalone: false, template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>" }]
|
|
361
|
+
}], ctorParameters: () => [{ type: CuentaContableService }], propDecorators: { isShared: [{
|
|
362
|
+
type: Input
|
|
363
|
+
}], typeAccount: [{
|
|
364
|
+
type: Input
|
|
365
|
+
}], evSelectedAccount: [{
|
|
366
|
+
type: Output
|
|
367
|
+
}] } });
|
|
368
|
+
|
|
452
369
|
class CcseleccionDialogComponent {
|
|
453
370
|
constructor() {
|
|
454
371
|
this.cuentasContables = [];
|
|
@@ -469,43 +386,22 @@ class CcseleccionDialogComponent {
|
|
|
469
386
|
hiddenDialog(evt) {
|
|
470
387
|
this.evSelectedAccount.emit(null);
|
|
471
388
|
}
|
|
472
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
473
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
489
|
-
i0.ɵɵadvance();
|
|
490
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
|
|
491
|
-
i0.ɵɵadvance();
|
|
492
|
-
i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
|
|
493
|
-
} }, dependencies: [i4.NgStyle, i30.Dialog, CclistaComponent] }); }
|
|
494
|
-
}
|
|
495
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
496
|
-
type: Component,
|
|
497
|
-
args: [{ selector: 'lib-ccseleccion-dialog', template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>" }]
|
|
498
|
-
}], () => [], { dialog: [{
|
|
499
|
-
type: ViewChild,
|
|
500
|
-
args: ["dialog", { static: true }]
|
|
501
|
-
}], tipoCuenta: [{
|
|
502
|
-
type: Input
|
|
503
|
-
}], displayShowCuentas: [{
|
|
504
|
-
type: Input
|
|
505
|
-
}], evSelectedAccount: [{
|
|
506
|
-
type: Output
|
|
507
|
-
}] }); })();
|
|
508
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CcseleccionDialogComponent, { className: "CcseleccionDialogComponent" }); })();
|
|
389
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CcseleccionDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
390
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: CcseleccionDialogComponent, isStandalone: false, selector: "lib-ccseleccion-dialog", inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }], ngImport: i0, template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: CclistaComponent, selector: "lib-cclista", inputs: ["isShared", "typeAccount"], outputs: ["evSelectedAccount"] }] }); }
|
|
391
|
+
}
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CcseleccionDialogComponent, decorators: [{
|
|
393
|
+
type: Component,
|
|
394
|
+
args: [{ selector: 'lib-ccseleccion-dialog', standalone: false, template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>" }]
|
|
395
|
+
}], ctorParameters: () => [], propDecorators: { dialog: [{
|
|
396
|
+
type: ViewChild,
|
|
397
|
+
args: ["dialog", { static: true }]
|
|
398
|
+
}], tipoCuenta: [{
|
|
399
|
+
type: Input
|
|
400
|
+
}], displayShowCuentas: [{
|
|
401
|
+
type: Input
|
|
402
|
+
}], evSelectedAccount: [{
|
|
403
|
+
type: Output
|
|
404
|
+
}] } });
|
|
509
405
|
|
|
510
406
|
const contaComponents = [
|
|
511
407
|
CclistaComponent,
|
|
@@ -519,17 +415,17 @@ class LoginModalService {
|
|
|
519
415
|
showModal() {
|
|
520
416
|
this.modal.emit(true);
|
|
521
417
|
}
|
|
522
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
523
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
418
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
419
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginModalService, providedIn: 'root' }); }
|
|
524
420
|
}
|
|
525
|
-
(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginModalService, decorators: [{
|
|
422
|
+
type: Injectable,
|
|
423
|
+
args: [{
|
|
424
|
+
providedIn: 'root'
|
|
425
|
+
}]
|
|
426
|
+
}], propDecorators: { modal: [{
|
|
427
|
+
type: Output
|
|
428
|
+
}] } });
|
|
533
429
|
|
|
534
430
|
class LoadingScreenService {
|
|
535
431
|
constructor() {
|
|
@@ -549,15 +445,15 @@ class LoadingScreenService {
|
|
|
549
445
|
stopLoading() {
|
|
550
446
|
this.loading = false;
|
|
551
447
|
}
|
|
552
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
553
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
448
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingScreenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
449
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingScreenService, providedIn: 'root' }); }
|
|
554
450
|
}
|
|
555
|
-
(
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingScreenService, decorators: [{
|
|
452
|
+
type: Injectable,
|
|
453
|
+
args: [{
|
|
454
|
+
providedIn: 'root'
|
|
455
|
+
}]
|
|
456
|
+
}] });
|
|
561
457
|
|
|
562
458
|
class httpInterceptor {
|
|
563
459
|
constructor(loginModalService, toastrService, loadingScreenService) {
|
|
@@ -632,32 +528,24 @@ class httpInterceptor {
|
|
|
632
528
|
}
|
|
633
529
|
}
|
|
634
530
|
}
|
|
635
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
636
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
531
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: httpInterceptor, deps: [{ token: LoginModalService }, { token: i1$1.ToastrService }, { token: LoadingScreenService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
532
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: httpInterceptor }); }
|
|
637
533
|
}
|
|
638
|
-
(
|
|
639
|
-
|
|
640
|
-
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: httpInterceptor, decorators: [{
|
|
535
|
+
type: Injectable
|
|
536
|
+
}], ctorParameters: () => [{ type: LoginModalService }, { type: i1$1.ToastrService }, { type: LoadingScreenService }] });
|
|
641
537
|
|
|
642
538
|
class Error404Component {
|
|
643
539
|
constructor() { }
|
|
644
540
|
ngOnInit() {
|
|
645
541
|
}
|
|
646
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
647
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
i0.ɵɵelementEnd()()()()()();
|
|
654
|
-
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] }); }
|
|
655
|
-
}
|
|
656
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
|
|
657
|
-
type: Component,
|
|
658
|
-
args: [{ selector: 'app-error404', template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }]
|
|
659
|
-
}], () => [], null); })();
|
|
660
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Error404Component, { className: "Error404Component" }); })();
|
|
542
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Error404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
543
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: Error404Component, isStandalone: false, selector: "app-error404", ngImport: i0, template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }); }
|
|
544
|
+
}
|
|
545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Error404Component, decorators: [{
|
|
546
|
+
type: Component,
|
|
547
|
+
args: [{ selector: 'app-error404', standalone: false, template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }]
|
|
548
|
+
}], ctorParameters: () => [] });
|
|
661
549
|
|
|
662
550
|
class LoadingService {
|
|
663
551
|
constructor() {
|
|
@@ -675,17 +563,17 @@ class LoadingService {
|
|
|
675
563
|
stop() {
|
|
676
564
|
this.loading.emit(false);
|
|
677
565
|
}
|
|
678
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
679
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
566
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
567
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingService, providedIn: 'root' }); }
|
|
680
568
|
}
|
|
681
|
-
(
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingService, decorators: [{
|
|
570
|
+
type: Injectable,
|
|
571
|
+
args: [{
|
|
572
|
+
providedIn: 'root'
|
|
573
|
+
}]
|
|
574
|
+
}], propDecorators: { loading: [{
|
|
575
|
+
type: Output
|
|
576
|
+
}] } });
|
|
689
577
|
|
|
690
578
|
class LoadingComponent {
|
|
691
579
|
constructor(loadingService) {
|
|
@@ -705,31 +593,15 @@ class LoadingComponent {
|
|
|
705
593
|
}
|
|
706
594
|
});
|
|
707
595
|
}
|
|
708
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
709
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
i0.ɵɵpipe(13, "translate");
|
|
718
|
-
i0.ɵɵelementEnd()()()()()()()();
|
|
719
|
-
} if (rf & 2) {
|
|
720
|
-
i0.ɵɵadvance(10);
|
|
721
|
-
i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
|
|
722
|
-
i0.ɵɵadvance(2);
|
|
723
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
724
|
-
} }, dependencies: [i2.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
|
|
725
|
-
}
|
|
726
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
727
|
-
type: Component,
|
|
728
|
-
args: [{ selector: 'loading', template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
729
|
-
}], () => [{ type: LoadingService }], { logo_loading: [{
|
|
730
|
-
type: Input
|
|
731
|
-
}] }); })();
|
|
732
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingComponent, { className: "LoadingComponent" }); })();
|
|
596
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingComponent, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
597
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: LoadingComponent, isStandalone: false, selector: "loading", inputs: { logo_loading: "logo_loading" }, ngImport: i0, template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"], dependencies: [{ kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
598
|
+
}
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
600
|
+
type: Component,
|
|
601
|
+
args: [{ selector: 'loading', standalone: false, template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
602
|
+
}], ctorParameters: () => [{ type: LoadingService }], propDecorators: { logo_loading: [{
|
|
603
|
+
type: Input
|
|
604
|
+
}] } });
|
|
733
605
|
|
|
734
606
|
class LoadingScreenComponent {
|
|
735
607
|
constructor(loadingScreenService, _elmRef, _changeDetectorRef, loadingService) {
|
|
@@ -754,20 +626,15 @@ class LoadingScreenComponent {
|
|
|
754
626
|
ngOnDestroy() {
|
|
755
627
|
this.loadingSubscription.unsubscribe();
|
|
756
628
|
}
|
|
757
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
758
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
args: [{ selector: 'app-loading-screen', template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }]
|
|
767
|
-
}], () => [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }], { logo_loading: [{
|
|
768
|
-
type: Input
|
|
769
|
-
}] }); })();
|
|
770
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingScreenComponent, { className: "LoadingScreenComponent" }); })();
|
|
629
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingScreenComponent, deps: [{ token: LoadingScreenService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
630
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: LoadingScreenComponent, isStandalone: false, selector: "app-loading-screen", inputs: { logo_loading: "logo_loading" }, ngImport: i0, template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }); }
|
|
631
|
+
}
|
|
632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoadingScreenComponent, decorators: [{
|
|
633
|
+
type: Component,
|
|
634
|
+
args: [{ selector: 'app-loading-screen', standalone: false, template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }]
|
|
635
|
+
}], ctorParameters: () => [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }], propDecorators: { logo_loading: [{
|
|
636
|
+
type: Input
|
|
637
|
+
}] } });
|
|
771
638
|
|
|
772
639
|
class PdfModalService {
|
|
773
640
|
constructor() {
|
|
@@ -782,19 +649,19 @@ class PdfModalService {
|
|
|
782
649
|
this.html = html;
|
|
783
650
|
this.print.emit(true);
|
|
784
651
|
}
|
|
785
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
786
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
652
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PdfModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
653
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PdfModalService, providedIn: 'root' }); }
|
|
787
654
|
}
|
|
788
|
-
(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PdfModalService, decorators: [{
|
|
656
|
+
type: Injectable,
|
|
657
|
+
args: [{
|
|
658
|
+
providedIn: 'root'
|
|
659
|
+
}]
|
|
660
|
+
}], propDecorators: { visible: [{
|
|
661
|
+
type: Output
|
|
662
|
+
}], print: [{
|
|
663
|
+
type: Output
|
|
664
|
+
}] } });
|
|
798
665
|
|
|
799
666
|
class FileService {
|
|
800
667
|
constructor(_toastrService, translate) {
|
|
@@ -848,27 +715,16 @@ class FileService {
|
|
|
848
715
|
base64ToFileDowload(base64, type, name) {
|
|
849
716
|
this.blobToDowload(this.base64ToBlob(base64, type), type, name);
|
|
850
717
|
}
|
|
851
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
852
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
853
|
-
}
|
|
854
|
-
(
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
const _c0$4 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
862
|
-
const _c1$3 = () => ({ "overflow": "visible" });
|
|
863
|
-
function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
864
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
865
|
-
i0.ɵɵelement(1, "iframe", 3);
|
|
866
|
-
i0.ɵɵelementEnd();
|
|
867
|
-
} if (rf & 2) {
|
|
868
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
869
|
-
i0.ɵɵadvance();
|
|
870
|
-
i0.ɵɵproperty("src", ctx_r0.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64," + ctx_r0.pdfBase64), i0.ɵɵsanitizeResourceUrl);
|
|
871
|
-
} }
|
|
718
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FileService, deps: [{ token: i1$1.ToastrService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
719
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
720
|
+
}
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FileService, decorators: [{
|
|
722
|
+
type: Injectable,
|
|
723
|
+
args: [{
|
|
724
|
+
providedIn: 'root'
|
|
725
|
+
}]
|
|
726
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }] });
|
|
727
|
+
|
|
872
728
|
class PdfModalComponent {
|
|
873
729
|
constructor(_pdfModalService, fileService, domSanitizer) {
|
|
874
730
|
this._pdfModalService = _pdfModalService;
|
|
@@ -932,25 +788,13 @@ class PdfModalComponent {
|
|
|
932
788
|
//iframe.focus();
|
|
933
789
|
// iframe.contentWindow.print();
|
|
934
790
|
}
|
|
935
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
936
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
}
|
|
942
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$4, ctx.size + "px"));
|
|
943
|
-
i0.ɵɵtwoWayProperty("visible", ctx.display);
|
|
944
|
-
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$3));
|
|
945
|
-
i0.ɵɵadvance();
|
|
946
|
-
i0.ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
947
|
-
} }, dependencies: [i4.NgIf, i30.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
|
|
948
|
-
}
|
|
949
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
950
|
-
type: Component,
|
|
951
|
-
args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
|
|
952
|
-
}], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }], null); })();
|
|
953
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PdfModalComponent, { className: "PdfModalComponent" }); })();
|
|
791
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PdfModalComponent, deps: [{ token: PdfModalService }, { token: FileService }, { token: i3$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
792
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: PdfModalComponent, isStandalone: false, selector: "pdf-modal", ngImport: i0, template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
793
|
+
}
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PdfModalComponent, decorators: [{
|
|
795
|
+
type: Component,
|
|
796
|
+
args: [{ selector: 'pdf-modal', standalone: false, template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
|
|
797
|
+
}], ctorParameters: () => [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }] });
|
|
954
798
|
|
|
955
799
|
class Usuario {
|
|
956
800
|
}
|
|
@@ -1141,102 +985,20 @@ class AuthService {
|
|
|
1141
985
|
this.url_host = config.url;
|
|
1142
986
|
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
|
|
1143
987
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
};
|
|
1159
|
-
let config = JSON.parse(localStorage.getItem("config"));
|
|
1160
|
-
if (config)
|
|
1161
|
-
if (config.url)
|
|
1162
|
-
this.url_host = config.url;
|
|
1163
|
-
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
|
|
1164
|
-
}
|
|
1165
|
-
/** @nocollapse */ static { this.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1166
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' }); }
|
|
1167
|
-
}
|
|
1168
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthService, [{
|
|
1169
|
-
type: Injectable,
|
|
1170
|
-
args: [{
|
|
1171
|
-
providedIn: 'root'
|
|
1172
|
-
}]
|
|
1173
|
-
}], () => [{ type: i1.HttpClient }], { login: [{
|
|
1174
|
-
type: Output
|
|
1175
|
-
}], seleccionEmpresa: [{
|
|
1176
|
-
type: Output
|
|
1177
|
-
}] }); })();
|
|
1178
|
-
|
|
1179
|
-
const _c0$3 = () => ({ width: "50vw" });
|
|
1180
|
-
const _c1$2 = () => ({ "960px": "75vw", "640px": "90vw" });
|
|
1181
|
-
function LoginModalComponent_div_3_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
1182
|
-
i0.ɵɵelementStart(0, "label", 16);
|
|
1183
|
-
i0.ɵɵtext(1, "Usuario o contrase\u00F1a incorrectos");
|
|
1184
|
-
i0.ɵɵelementEnd();
|
|
1185
|
-
} }
|
|
1186
|
-
function LoginModalComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1187
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
1188
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "form", 8, 0);
|
|
1189
|
-
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_3_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
|
|
1190
|
-
i0.ɵɵtemplate(4, LoginModalComponent_div_3_label_4_Template, 2, 0, "label", 9);
|
|
1191
|
-
i0.ɵɵelementStart(5, "div", 10)(6, "label", 11);
|
|
1192
|
-
i0.ɵɵtext(7, "Usuario");
|
|
1193
|
-
i0.ɵɵelementEnd();
|
|
1194
|
-
i0.ɵɵelementStart(8, "input", 12, 1);
|
|
1195
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
|
|
1196
|
-
i0.ɵɵelementEnd()();
|
|
1197
|
-
i0.ɵɵelementStart(10, "div", 10)(11, "label", 13);
|
|
1198
|
-
i0.ɵɵtext(12, "Contrase\u00F1a");
|
|
1199
|
-
i0.ɵɵelementEnd();
|
|
1200
|
-
i0.ɵɵelementStart(13, "input", 14);
|
|
1201
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
|
|
1202
|
-
i0.ɵɵelementEnd()();
|
|
1203
|
-
i0.ɵɵelementStart(14, "button", 15);
|
|
1204
|
-
i0.ɵɵtext(15, "Entrar");
|
|
1205
|
-
i0.ɵɵelementEnd()()()();
|
|
1206
|
-
} if (rf & 2) {
|
|
1207
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1208
|
-
i0.ɵɵadvance(4);
|
|
1209
|
-
i0.ɵɵproperty("ngIf", ctx_r2.error);
|
|
1210
|
-
i0.ɵɵadvance(4);
|
|
1211
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.username);
|
|
1212
|
-
i0.ɵɵadvance(5);
|
|
1213
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.password);
|
|
1214
|
-
} }
|
|
1215
|
-
function LoginModalComponent_div_4_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1216
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1217
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
1218
|
-
i0.ɵɵlistener("click", function LoginModalComponent_div_4_div_5_Template_div_click_0_listener() { const empresa_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.entrarEmpresa(empresa_r5)); });
|
|
1219
|
-
i0.ɵɵelementStart(1, "div", 20)(2, "div", 21)(3, "h5");
|
|
1220
|
-
i0.ɵɵtext(4);
|
|
1221
|
-
i0.ɵɵelementEnd()()()();
|
|
1222
|
-
} if (rf & 2) {
|
|
1223
|
-
const empresa_r5 = ctx.$implicit;
|
|
1224
|
-
i0.ɵɵadvance(4);
|
|
1225
|
-
i0.ɵɵtextInterpolate1(" ", empresa_r5.nombre, " ");
|
|
1226
|
-
} }
|
|
1227
|
-
function LoginModalComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1228
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "div", 17)(2, "h4");
|
|
1229
|
-
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1230
|
-
i0.ɵɵelementEnd();
|
|
1231
|
-
i0.ɵɵelement(4, "hr");
|
|
1232
|
-
i0.ɵɵelementEnd();
|
|
1233
|
-
i0.ɵɵtemplate(5, LoginModalComponent_div_4_div_5_Template, 5, 1, "div", 18);
|
|
1234
|
-
i0.ɵɵelementEnd();
|
|
1235
|
-
} if (rf & 2) {
|
|
1236
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1237
|
-
i0.ɵɵadvance(5);
|
|
1238
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.empresas);
|
|
1239
|
-
} }
|
|
988
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
989
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
990
|
+
}
|
|
991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AuthService, decorators: [{
|
|
992
|
+
type: Injectable,
|
|
993
|
+
args: [{
|
|
994
|
+
providedIn: 'root'
|
|
995
|
+
}]
|
|
996
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }], propDecorators: { login: [{
|
|
997
|
+
type: Output
|
|
998
|
+
}], seleccionEmpresa: [{
|
|
999
|
+
type: Output
|
|
1000
|
+
}] } });
|
|
1001
|
+
|
|
1240
1002
|
class LoginModalComponent {
|
|
1241
1003
|
constructor(loginModalService, authService) {
|
|
1242
1004
|
this.loginModalService = loginModalService;
|
|
@@ -1246,14 +1008,9 @@ class LoginModalComponent {
|
|
|
1246
1008
|
this.error = false;
|
|
1247
1009
|
this.empresas = [];
|
|
1248
1010
|
this.loginModalService.modal.subscribe(resp => {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
this.empresas = [];
|
|
1253
|
-
}
|
|
1254
|
-
else {
|
|
1255
|
-
this.modal = false;
|
|
1256
|
-
}
|
|
1011
|
+
$('#modalLogin').modal('show');
|
|
1012
|
+
this.user = { username: undefined, password: undefined };
|
|
1013
|
+
this.empresas = [];
|
|
1257
1014
|
});
|
|
1258
1015
|
}
|
|
1259
1016
|
entrar(form) {
|
|
@@ -1283,7 +1040,7 @@ class LoginModalComponent {
|
|
|
1283
1040
|
auth.usuarioDetalles = resp;
|
|
1284
1041
|
this.authService.startAuth(auth);
|
|
1285
1042
|
this.error = false;
|
|
1286
|
-
|
|
1043
|
+
$('#modalLogin').modal('hide');
|
|
1287
1044
|
});
|
|
1288
1045
|
}, (_error) => {
|
|
1289
1046
|
this.error = true;
|
|
@@ -1292,115 +1049,32 @@ class LoginModalComponent {
|
|
|
1292
1049
|
}
|
|
1293
1050
|
entrarEmpresa(_empresa) {
|
|
1294
1051
|
this.authService.setEmpresa(_empresa).subscribe((resp) => {
|
|
1295
|
-
|
|
1052
|
+
$('#modalLogin').modal('hide');
|
|
1296
1053
|
});
|
|
1297
1054
|
}
|
|
1298
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1299
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
i0.ɵɵtemplate(3, LoginModalComponent_div_3_Template, 16, 3, "div", 5)(4, LoginModalComponent_div_4_Template, 6, 1, "div", 5);
|
|
1306
|
-
i0.ɵɵelementEnd();
|
|
1307
|
-
} if (rf & 2) {
|
|
1308
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$3));
|
|
1309
|
-
i0.ɵɵtwoWayProperty("visible", ctx.modal);
|
|
1310
|
-
i0.ɵɵproperty("modal", true)("closable", false)("breakpoints", i0.ɵɵpureFunction0(9, _c1$2));
|
|
1311
|
-
i0.ɵɵadvance(3);
|
|
1312
|
-
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
1313
|
-
i0.ɵɵadvance();
|
|
1314
|
-
i0.ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1315
|
-
} }, dependencies: [i4.NgForOf, i4.NgIf, i4$1.ɵNgNoValidate, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgControlStatusGroup, i4$1.RequiredValidator, i4$1.NgModel, i4$1.NgForm, i30.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
|
|
1316
|
-
}
|
|
1317
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1318
|
-
type: Component,
|
|
1319
|
-
args: [{ selector: 'app-login-modal', template: "<p-dialog [(visible)]=\"modal\" [modal]=\"true\" [closable]=\"false\" [style]=\"{width: '50vw'}\"\n [breakpoints]=\"{'960px': '75vw', '640px': '90vw'}\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\">\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\">\n <label class=\"error\" *ngIf=\"error\">Usuario o contrase\u00F1a incorrectos</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\">Usuario</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\"\n #username=\"ngModel\" placeholder=\"Usuario\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">Contrase\u00F1a</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"Contrase\u00F1a\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n\n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\">Entrar</button>\n </form>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\"\n (click)=\"entrarEmpresa(empresa)\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div>\n</p-dialog>", styles: [":host ::ng-deep .p-dialog{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1320
|
-
}], () => [{ type: LoginModalService }, { type: AuthService }], null); })();
|
|
1321
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoginModalComponent, { className: "LoginModalComponent" }); })();
|
|
1055
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginModalComponent, deps: [{ token: LoginModalService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1056
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: LoginModalComponent, isStandalone: false, selector: "app-login-modal", ngImport: i0, template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i11.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i11.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i11.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1057
|
+
}
|
|
1058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginModalComponent, decorators: [{
|
|
1059
|
+
type: Component,
|
|
1060
|
+
args: [{ selector: 'app-login-modal', standalone: false, template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1061
|
+
}], ctorParameters: () => [{ type: LoginModalService }, { type: AuthService }] });
|
|
1322
1062
|
|
|
1323
1063
|
class SessionCajaService extends CrudService {
|
|
1324
1064
|
constructor(httpClient) {
|
|
1325
1065
|
super(httpClient, 'sessionCaja');
|
|
1326
1066
|
this.httpClient = httpClient;
|
|
1327
1067
|
}
|
|
1328
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1329
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1330
|
-
}
|
|
1331
|
-
(
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
const _c0$2 = () => ({ width: "750px" });
|
|
1339
|
-
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
1340
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
1341
|
-
i0.ɵɵtext(1);
|
|
1342
|
-
i0.ɵɵelementEnd();
|
|
1343
|
-
} if (rf & 2) {
|
|
1344
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1345
|
-
i0.ɵɵadvance();
|
|
1346
|
-
i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
|
|
1347
|
-
} }
|
|
1348
|
-
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1349
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
1350
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
1351
|
-
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1352
|
-
i0.ɵɵelementEnd();
|
|
1353
|
-
i0.ɵɵelementStart(4, "input", 8);
|
|
1354
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.caja.nombre, $event) || (ctx_r0.caja.nombre = $event); return i0.ɵɵresetView($event); });
|
|
1355
|
-
i0.ɵɵelementEnd()();
|
|
1356
|
-
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1357
|
-
i0.ɵɵtext(7, "Saldo: ");
|
|
1358
|
-
i0.ɵɵelementEnd();
|
|
1359
|
-
i0.ɵɵelementStart(8, "input", 11);
|
|
1360
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.monto, $event) || (ctx_r0.session.monto = $event); return i0.ɵɵresetView($event); });
|
|
1361
|
-
i0.ɵɵelementEnd()();
|
|
1362
|
-
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1363
|
-
i0.ɵɵtext(11, "Numero Z:");
|
|
1364
|
-
i0.ɵɵelementEnd();
|
|
1365
|
-
i0.ɵɵelementStart(12, "input", 13);
|
|
1366
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.z, $event) || (ctx_r0.session.z = $event); return i0.ɵɵresetView($event); });
|
|
1367
|
-
i0.ɵɵelementEnd()()();
|
|
1368
|
-
} if (rf & 2) {
|
|
1369
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1370
|
-
i0.ɵɵadvance(4);
|
|
1371
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.caja.nombre);
|
|
1372
|
-
i0.ɵɵproperty("disabled", true);
|
|
1373
|
-
i0.ɵɵadvance(4);
|
|
1374
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.monto);
|
|
1375
|
-
i0.ɵɵproperty("disabled", ctx_r0.editMode);
|
|
1376
|
-
i0.ɵɵadvance(4);
|
|
1377
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.z);
|
|
1378
|
-
i0.ɵɵproperty("disabled", true);
|
|
1379
|
-
} }
|
|
1380
|
-
function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1381
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1382
|
-
i0.ɵɵelementStart(0, "button", 17);
|
|
1383
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.save()); });
|
|
1384
|
-
i0.ɵɵelementEnd();
|
|
1385
|
-
} }
|
|
1386
|
-
function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1387
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1388
|
-
i0.ɵɵelementStart(0, "button", 18);
|
|
1389
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.edit()); });
|
|
1390
|
-
i0.ɵɵelementEnd();
|
|
1391
|
-
} }
|
|
1392
|
-
function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
1393
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
1394
|
-
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14)(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
1395
|
-
i0.ɵɵelementStart(2, "button", 16);
|
|
1396
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.closeModal()); });
|
|
1397
|
-
i0.ɵɵelementEnd();
|
|
1398
|
-
} if (rf & 2) {
|
|
1399
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1400
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.editMode && ctx_r0.caja);
|
|
1401
|
-
i0.ɵɵadvance();
|
|
1402
|
-
i0.ɵɵproperty("ngIf", ctx_r0.editMode && ctx_r0.caja);
|
|
1403
|
-
} }
|
|
1068
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SessionCajaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1069
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SessionCajaService, providedIn: 'root' }); }
|
|
1070
|
+
}
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SessionCajaService, decorators: [{
|
|
1072
|
+
type: Injectable,
|
|
1073
|
+
args: [{
|
|
1074
|
+
providedIn: 'root'
|
|
1075
|
+
}]
|
|
1076
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1077
|
+
|
|
1404
1078
|
class SessionCreateComponent {
|
|
1405
1079
|
constructor(sessionCajaService) {
|
|
1406
1080
|
this.sessionCajaService = sessionCajaService;
|
|
@@ -1469,42 +1143,81 @@ class SessionCreateComponent {
|
|
|
1469
1143
|
this.status.emit({ status: false, update: this.resp.data });
|
|
1470
1144
|
}
|
|
1471
1145
|
}
|
|
1472
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1473
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1146
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SessionCreateComponent, deps: [{ token: SessionCajaService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1147
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SessionCreateComponent, isStandalone: false, selector: "session-create", inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, ngImport: i0, template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
1148
|
+
}
|
|
1149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SessionCreateComponent, decorators: [{
|
|
1150
|
+
type: Component,
|
|
1151
|
+
args: [{ selector: 'session-create', standalone: false, template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>" }]
|
|
1152
|
+
}], ctorParameters: () => [{ type: SessionCajaService }], propDecorators: { showCreateSession: [{
|
|
1153
|
+
type: Input
|
|
1154
|
+
}], caja: [{
|
|
1155
|
+
type: Input
|
|
1156
|
+
}], monedaDenominacionList: [{
|
|
1157
|
+
type: Input
|
|
1158
|
+
}], sessionEdit: [{
|
|
1159
|
+
type: Input
|
|
1160
|
+
}], status: [{
|
|
1161
|
+
type: Output
|
|
1162
|
+
}], success: [{
|
|
1163
|
+
type: Output
|
|
1164
|
+
}] } });
|
|
1165
|
+
|
|
1166
|
+
class Persona {
|
|
1167
|
+
constructor() {
|
|
1168
|
+
//this.estadoCivil= new EstadoCivil();
|
|
1169
|
+
//this.genero = new Genero();
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
class PersonaFisica {
|
|
1174
|
+
constructor() {
|
|
1175
|
+
this.datoPersona = new Persona();
|
|
1176
|
+
this.contactos = [];
|
|
1177
|
+
this.datoDirecciones = [];
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
class PersonaMoral {
|
|
1182
|
+
constructor() {
|
|
1183
|
+
this.representanteLegal = new PersonaFisica();
|
|
1184
|
+
this.contactos = [];
|
|
1185
|
+
this.datoDirecciones = [];
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
class Agente {
|
|
1190
|
+
constructor() {
|
|
1191
|
+
// this.catalogoTipo= new CatalogoTipo();
|
|
1192
|
+
this.personaFisica = new PersonaFisica();
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
class Cliente {
|
|
1197
|
+
constructor() {
|
|
1198
|
+
this.agenteCobrador = new Agente();
|
|
1199
|
+
this.agenteVendedor = new Agente();
|
|
1200
|
+
this.personaFisica = new PersonaFisica();
|
|
1201
|
+
this.personaMoral = new PersonaMoral();
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
class ClienteService extends CrudService {
|
|
1206
|
+
constructor(httpCliente) {
|
|
1207
|
+
super(httpCliente, '/cliente');
|
|
1208
|
+
}
|
|
1209
|
+
validar_archivos_bss(id) {
|
|
1210
|
+
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
1211
|
+
}
|
|
1212
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1213
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteService, providedIn: 'root' }); }
|
|
1214
|
+
}
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteService, decorators: [{
|
|
1216
|
+
type: Injectable,
|
|
1217
|
+
args: [{
|
|
1218
|
+
providedIn: 'root'
|
|
1219
|
+
}]
|
|
1220
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1508
1221
|
|
|
1509
1222
|
class PaginateService {
|
|
1510
1223
|
constructor(translate) {
|
|
@@ -1550,15 +1263,165 @@ class PaginateService {
|
|
|
1550
1263
|
}, erro => { });
|
|
1551
1264
|
return ordenar;
|
|
1552
1265
|
}
|
|
1553
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1554
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1266
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PaginateService, deps: [{ token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1267
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PaginateService, providedIn: "root" }); }
|
|
1268
|
+
}
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PaginateService, decorators: [{
|
|
1270
|
+
type: Injectable,
|
|
1271
|
+
args: [{
|
|
1272
|
+
providedIn: "root"
|
|
1273
|
+
}]
|
|
1274
|
+
}], ctorParameters: () => [{ type: i3$1.TranslateService }] });
|
|
1275
|
+
|
|
1276
|
+
class SelectClienteComponent {
|
|
1277
|
+
constructor(clienteService, paginate) {
|
|
1278
|
+
this.clienteService = clienteService;
|
|
1279
|
+
this.paginate = paginate;
|
|
1280
|
+
this.selectMode = 'single';
|
|
1281
|
+
this.select = new EventEmitter();
|
|
1282
|
+
this.ordenar = [];
|
|
1283
|
+
this.loading = true;
|
|
1284
|
+
}
|
|
1285
|
+
ngOnInit() {
|
|
1286
|
+
this.page = this.paginate.getPage();
|
|
1287
|
+
this.page.rows = 20;
|
|
1288
|
+
this.clientes = [];
|
|
1289
|
+
this.ordenar = this.paginate.getOrden([
|
|
1290
|
+
{ param: 'razonZocial', label: 'razonZocial' }
|
|
1291
|
+
], 'es');
|
|
1292
|
+
}
|
|
1293
|
+
cargarDatosClientes(event = null) {
|
|
1294
|
+
this.loading = true;
|
|
1295
|
+
if (event) {
|
|
1296
|
+
this.page.rows = event.rows;
|
|
1297
|
+
this.page.offset = event.first;
|
|
1298
|
+
}
|
|
1299
|
+
this.clientes = [];
|
|
1300
|
+
this.params = this.paginate.getParams(this.page);
|
|
1301
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1302
|
+
if (this.page.filtro && this.page.filtro.trim() !== '') {
|
|
1303
|
+
this.params.push({ param: 'filtroGeneral', value: this.page.filtro.trim() });
|
|
1304
|
+
}
|
|
1305
|
+
this.clienteService.getAll(this.params).subscribe((data) => {
|
|
1306
|
+
this.page.total = data.total;
|
|
1307
|
+
this.clientes = data.data;
|
|
1308
|
+
this.loading = false;
|
|
1309
|
+
}, error => {
|
|
1310
|
+
console.error("Error al cargar clientes:", error);
|
|
1311
|
+
this.loading = false;
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
aplicarFiltro() {
|
|
1315
|
+
this.page.offset = 0;
|
|
1316
|
+
this.cargarDatosClientes();
|
|
1317
|
+
}
|
|
1318
|
+
seleccionaCliente(e) {
|
|
1319
|
+
console.log('Fila seleccionada (evento):', e);
|
|
1320
|
+
console.log('Datos de la fila (e.data):', e.data);
|
|
1321
|
+
console.log('Cliente seleccionado ANTES de emitir:', this.clienteSeleccionado); // Verifica si [(selection)] ya lo actualizó
|
|
1322
|
+
this.select.emit(e.data);
|
|
1323
|
+
this.visible = false;
|
|
1324
|
+
console.log('Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):', this.clienteSeleccionado);
|
|
1325
|
+
}
|
|
1326
|
+
cerrar() {
|
|
1327
|
+
this.select.emit(null);
|
|
1328
|
+
this.visible = false;
|
|
1329
|
+
}
|
|
1330
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectClienteComponent, deps: [{ token: ClienteService }, { token: PaginateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1331
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SelectClienteComponent, isStandalone: false, selector: "select-cliente", inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1332
|
+
}
|
|
1333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectClienteComponent, decorators: [{
|
|
1334
|
+
type: Component,
|
|
1335
|
+
args: [{ selector: 'select-cliente', standalone: false, template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>" }]
|
|
1336
|
+
}], ctorParameters: () => [{ type: ClienteService }, { type: PaginateService }], propDecorators: { clienteSeleccionado: [{
|
|
1337
|
+
type: Input
|
|
1338
|
+
}], selectMode: [{
|
|
1339
|
+
type: Input
|
|
1340
|
+
}], visible: [{
|
|
1341
|
+
type: Input
|
|
1342
|
+
}], select: [{
|
|
1343
|
+
type: Output
|
|
1344
|
+
}] } });
|
|
1345
|
+
|
|
1346
|
+
class ClasificadorTipo {
|
|
1347
|
+
constructor() { }
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
class Proveedor {
|
|
1351
|
+
constructor() {
|
|
1352
|
+
this.personaMoral = new PersonaMoral();
|
|
1353
|
+
this.catalogoTipo = new ClasificadorTipo();
|
|
1354
|
+
this.clasificadorTipo = new ClasificadorTipo();
|
|
1355
|
+
this.personaFisica = new PersonaFisica();
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
class ProveedorService extends CrudService {
|
|
1360
|
+
constructor(httpClient) {
|
|
1361
|
+
super(httpClient, '/proveedor');
|
|
1362
|
+
this.httpClient = httpClient;
|
|
1363
|
+
}
|
|
1364
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1365
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorService, providedIn: 'root' }); }
|
|
1555
1366
|
}
|
|
1556
|
-
(
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorService, decorators: [{
|
|
1368
|
+
type: Injectable,
|
|
1369
|
+
args: [{
|
|
1370
|
+
providedIn: 'root'
|
|
1371
|
+
}]
|
|
1372
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1373
|
+
|
|
1374
|
+
class SelectProveedorComponent {
|
|
1375
|
+
constructor(proveedorService, paginanateService, translate) {
|
|
1376
|
+
this.proveedorService = proveedorService;
|
|
1377
|
+
this.paginanateService = paginanateService;
|
|
1378
|
+
this.translate = translate;
|
|
1379
|
+
this.params = [];
|
|
1380
|
+
this.ordenar = [];
|
|
1381
|
+
this.visible = false;
|
|
1382
|
+
this.proveedorSeleccionado = new Proveedor();
|
|
1383
|
+
this.select = new EventEmitter();
|
|
1384
|
+
this.translate.get('es');
|
|
1385
|
+
}
|
|
1386
|
+
ngOnInit() {
|
|
1387
|
+
this.page = this.paginanateService.getPage();
|
|
1388
|
+
let arg = [];
|
|
1389
|
+
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
1390
|
+
this.proveedores = [];
|
|
1391
|
+
}
|
|
1392
|
+
cargarDatosProveedores() {
|
|
1393
|
+
this.params = this.paginanateService.getParams(this.page);
|
|
1394
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1395
|
+
this.proveedorService.getAll(this.params).subscribe((data) => {
|
|
1396
|
+
this.proveedores = data.data;
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
pagina(e) {
|
|
1400
|
+
this.page.rows = e.rows;
|
|
1401
|
+
this.page.offset = e.first;
|
|
1402
|
+
this.cargarDatosProveedores();
|
|
1403
|
+
}
|
|
1404
|
+
cerrarModal() {
|
|
1405
|
+
this.select.emit(null);
|
|
1406
|
+
this.visible = false;
|
|
1407
|
+
}
|
|
1408
|
+
seleccionarProveedor(e) {
|
|
1409
|
+
this.select.emit(e.data);
|
|
1410
|
+
this.visible = false;
|
|
1411
|
+
}
|
|
1412
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectProveedorComponent, deps: [{ token: ProveedorService }, { token: PaginateService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1413
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SelectProveedorComponent, isStandalone: false, selector: "select-proveedor", inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>", dependencies: [{ kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1414
|
+
}
|
|
1415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectProveedorComponent, decorators: [{
|
|
1416
|
+
type: Component,
|
|
1417
|
+
args: [{ selector: 'select-proveedor', standalone: false, template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
1418
|
+
}], ctorParameters: () => [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], propDecorators: { visible: [{
|
|
1419
|
+
type: Input
|
|
1420
|
+
}], proveedorSeleccionado: [{
|
|
1421
|
+
type: Input
|
|
1422
|
+
}], select: [{
|
|
1423
|
+
type: Output
|
|
1424
|
+
}] } });
|
|
1562
1425
|
|
|
1563
1426
|
class AlmacenService extends CrudService {
|
|
1564
1427
|
constructor(httpClient) {
|
|
@@ -1569,15 +1432,15 @@ class AlmacenService extends CrudService {
|
|
|
1569
1432
|
let url = this.geturl() + '/obtenerAlmacenEmpresa';
|
|
1570
1433
|
return this.getHttp().get(url, this.buildAuth());
|
|
1571
1434
|
}
|
|
1572
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1573
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1435
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AlmacenService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1436
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AlmacenService, providedIn: 'root' }); }
|
|
1574
1437
|
}
|
|
1575
|
-
(
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AlmacenService, decorators: [{
|
|
1439
|
+
type: Injectable,
|
|
1440
|
+
args: [{
|
|
1441
|
+
providedIn: 'root'
|
|
1442
|
+
}]
|
|
1443
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1581
1444
|
|
|
1582
1445
|
class StockService extends CrudService {
|
|
1583
1446
|
constructor(httpClient) {
|
|
@@ -1595,15 +1458,15 @@ class StockService extends CrudService {
|
|
|
1595
1458
|
});
|
|
1596
1459
|
return promesa;
|
|
1597
1460
|
}
|
|
1598
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1599
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1461
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StockService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1462
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StockService, providedIn: 'root' }); }
|
|
1600
1463
|
}
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StockService, decorators: [{
|
|
1465
|
+
type: Injectable,
|
|
1466
|
+
args: [{
|
|
1467
|
+
providedIn: 'root'
|
|
1468
|
+
}]
|
|
1469
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1607
1470
|
|
|
1608
1471
|
class ArticuloInformacionService extends CrudService {
|
|
1609
1472
|
constructor(httpClient) {
|
|
@@ -1614,86 +1477,16 @@ class ArticuloInformacionService extends CrudService {
|
|
|
1614
1477
|
let uRL = "/existenciasArticulo/" + articulo;
|
|
1615
1478
|
return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
|
|
1616
1479
|
}
|
|
1617
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1618
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1619
|
-
}
|
|
1620
|
-
(
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
1628
|
-
const _c1$1 = () => ({ width: "600px" });
|
|
1629
|
-
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
1630
|
-
i0.ɵɵelement(0, "col");
|
|
1631
|
-
} if (rf & 2) {
|
|
1632
|
-
const col_r1 = ctx.$implicit;
|
|
1633
|
-
i0.ɵɵstyleProp("width", col_r1.width);
|
|
1634
|
-
} }
|
|
1635
|
-
function SeleccionArticuloInformacionComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
1636
|
-
i0.ɵɵelementStart(0, "colgroup");
|
|
1637
|
-
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template, 1, 2, "col", 6);
|
|
1638
|
-
i0.ɵɵelementEnd();
|
|
1639
|
-
} if (rf & 2) {
|
|
1640
|
-
const columns_r2 = ctx.$implicit;
|
|
1641
|
-
i0.ɵɵadvance();
|
|
1642
|
-
i0.ɵɵproperty("ngForOf", columns_r2);
|
|
1643
|
-
} }
|
|
1644
|
-
function SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
1645
|
-
i0.ɵɵelementStart(0, "th", 8);
|
|
1646
|
-
i0.ɵɵtext(1);
|
|
1647
|
-
i0.ɵɵelementEnd();
|
|
1648
|
-
} if (rf & 2) {
|
|
1649
|
-
const col_r3 = ctx.$implicit;
|
|
1650
|
-
i0.ɵɵadvance();
|
|
1651
|
-
i0.ɵɵtextInterpolate1(" ", col_r3.header, " ");
|
|
1652
|
-
} }
|
|
1653
|
-
function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
1654
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1655
|
-
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template, 2, 1, "th", 7);
|
|
1656
|
-
i0.ɵɵelementEnd();
|
|
1657
|
-
} if (rf & 2) {
|
|
1658
|
-
const columns_r4 = ctx.$implicit;
|
|
1659
|
-
i0.ɵɵadvance();
|
|
1660
|
-
i0.ɵɵproperty("ngForOf", columns_r4);
|
|
1661
|
-
} }
|
|
1662
|
-
function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
1663
|
-
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
1664
|
-
i0.ɵɵtext(2);
|
|
1665
|
-
i0.ɵɵelementEnd();
|
|
1666
|
-
i0.ɵɵelementStart(3, "td");
|
|
1667
|
-
i0.ɵɵtext(4);
|
|
1668
|
-
i0.ɵɵelementEnd();
|
|
1669
|
-
i0.ɵɵelementStart(5, "td");
|
|
1670
|
-
i0.ɵɵtext(6);
|
|
1671
|
-
i0.ɵɵelementEnd();
|
|
1672
|
-
i0.ɵɵelementStart(7, "td");
|
|
1673
|
-
i0.ɵɵtext(8);
|
|
1674
|
-
i0.ɵɵelementEnd();
|
|
1675
|
-
i0.ɵɵelementStart(9, "td");
|
|
1676
|
-
i0.ɵɵtext(10);
|
|
1677
|
-
i0.ɵɵelementEnd()();
|
|
1678
|
-
} if (rf & 2) {
|
|
1679
|
-
const rowData_r5 = ctx.$implicit;
|
|
1680
|
-
i0.ɵɵadvance(2);
|
|
1681
|
-
i0.ɵɵtextInterpolate(rowData_r5.almacenCodigo);
|
|
1682
|
-
i0.ɵɵadvance(2);
|
|
1683
|
-
i0.ɵɵtextInterpolate(rowData_r5.almacenDescripcion);
|
|
1684
|
-
i0.ɵɵadvance(2);
|
|
1685
|
-
i0.ɵɵtextInterpolate(rowData_r5.ubicacionCodigo);
|
|
1686
|
-
i0.ɵɵadvance(2);
|
|
1687
|
-
i0.ɵɵtextInterpolate(rowData_r5.ubicacionDescripcion);
|
|
1688
|
-
i0.ɵɵadvance(2);
|
|
1689
|
-
i0.ɵɵtextInterpolate(rowData_r5.existencia);
|
|
1690
|
-
} }
|
|
1691
|
-
function SeleccionArticuloInformacionComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
1692
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
1693
|
-
i0.ɵɵelementStart(0, "div", 9)(1, "button", 10);
|
|
1694
|
-
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_ng_template_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.hiddenDialog()); });
|
|
1695
|
-
i0.ɵɵelementEnd()();
|
|
1696
|
-
} }
|
|
1480
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ArticuloInformacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1481
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ArticuloInformacionService, providedIn: 'root' }); }
|
|
1482
|
+
}
|
|
1483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ArticuloInformacionService, decorators: [{
|
|
1484
|
+
type: Injectable,
|
|
1485
|
+
args: [{
|
|
1486
|
+
providedIn: 'root'
|
|
1487
|
+
}]
|
|
1488
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1489
|
+
|
|
1697
1490
|
class SeleccionArticuloInformacionComponent {
|
|
1698
1491
|
constructor(articuloInformacionService) {
|
|
1699
1492
|
this.articuloInformacionService = articuloInformacionService;
|
|
@@ -1733,333 +1526,20 @@ class SeleccionArticuloInformacionComponent {
|
|
|
1733
1526
|
onSelectedUbicacion(ubicacionRow) {
|
|
1734
1527
|
this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
|
|
1735
1528
|
}
|
|
1736
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1737
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
i0.ɵɵtwoWayProperty("visible", ctx.showModal);
|
|
1751
|
-
i0.ɵɵproperty("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
|
|
1752
|
-
i0.ɵɵadvance();
|
|
1753
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(18, _c1$1));
|
|
1754
|
-
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true);
|
|
1755
|
-
} }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i15.Table, i15.ResizableColumn, i18.ButtonDirective, i30.Dialog] }); }
|
|
1756
|
-
}
|
|
1757
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
1758
|
-
type: Component,
|
|
1759
|
-
args: [{ selector: 'lib-seleccion-articulo-informacion', template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>" }]
|
|
1760
|
-
}], () => [{ type: ArticuloInformacionService }], { showModal: [{
|
|
1761
|
-
type: Input
|
|
1762
|
-
}], articulo: [{
|
|
1763
|
-
type: Input
|
|
1764
|
-
}], eventSelection: [{
|
|
1765
|
-
type: Output
|
|
1766
|
-
}] }); })();
|
|
1767
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionArticuloInformacionComponent, { className: "SeleccionArticuloInformacionComponent" }); })();
|
|
1768
|
-
|
|
1769
|
-
const _c0 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
1770
|
-
const _c1 = () => [10, 25, 50, 100, 500];
|
|
1771
|
-
function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
|
|
1772
|
-
i0.ɵɵelementStart(0, "option", 22);
|
|
1773
|
-
i0.ɵɵtext(1);
|
|
1774
|
-
i0.ɵɵelementEnd();
|
|
1775
|
-
} if (rf & 2) {
|
|
1776
|
-
const almacen_r2 = ctx.$implicit;
|
|
1777
|
-
i0.ɵɵpropertyInterpolate("value", almacen_r2.id);
|
|
1778
|
-
i0.ɵɵadvance();
|
|
1779
|
-
i0.ɵɵtextInterpolate(almacen_r2.descripcion);
|
|
1780
|
-
} }
|
|
1781
|
-
function SeleccionaArticuloComponent_ng_template_26_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
1782
|
-
i0.ɵɵelementStart(0, "th", 31);
|
|
1783
|
-
i0.ɵɵtext(1, "existenciaSecundaria");
|
|
1784
|
-
i0.ɵɵelementEnd();
|
|
1785
|
-
} }
|
|
1786
|
-
function SeleccionaArticuloComponent_ng_template_26_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
1787
|
-
i0.ɵɵelementStart(0, "th", 25);
|
|
1788
|
-
i0.ɵɵtext(1, "Unidad");
|
|
1789
|
-
i0.ɵɵelementEnd();
|
|
1790
|
-
} }
|
|
1791
|
-
function SeleccionaArticuloComponent_ng_template_26_th_14_Template(rf, ctx) { if (rf & 1) {
|
|
1792
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1793
|
-
i0.ɵɵtext(1, "Precio");
|
|
1794
|
-
i0.ɵɵelementEnd();
|
|
1795
|
-
} }
|
|
1796
|
-
function SeleccionaArticuloComponent_ng_template_26_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
1797
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1798
|
-
i0.ɵɵtext(1, "Precio 2");
|
|
1799
|
-
i0.ɵɵelementEnd();
|
|
1800
|
-
} }
|
|
1801
|
-
function SeleccionaArticuloComponent_ng_template_26_th_16_Template(rf, ctx) { if (rf & 1) {
|
|
1802
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1803
|
-
i0.ɵɵtext(1, "Precio 3");
|
|
1804
|
-
i0.ɵɵelementEnd();
|
|
1805
|
-
} }
|
|
1806
|
-
function SeleccionaArticuloComponent_ng_template_26_th_17_Template(rf, ctx) { if (rf & 1) {
|
|
1807
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1808
|
-
i0.ɵɵtext(1, "Precio 4");
|
|
1809
|
-
i0.ɵɵelementEnd();
|
|
1810
|
-
} }
|
|
1811
|
-
function SeleccionaArticuloComponent_ng_template_26_th_18_Template(rf, ctx) { if (rf & 1) {
|
|
1812
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1813
|
-
i0.ɵɵtext(1, "Precio 5");
|
|
1814
|
-
i0.ɵɵelementEnd();
|
|
1815
|
-
} }
|
|
1816
|
-
function SeleccionaArticuloComponent_ng_template_26_th_19_Template(rf, ctx) { if (rf & 1) {
|
|
1817
|
-
i0.ɵɵelementStart(0, "th", 25);
|
|
1818
|
-
i0.ɵɵtext(1, "Movimiento.costo");
|
|
1819
|
-
i0.ɵɵelementEnd();
|
|
1820
|
-
} }
|
|
1821
|
-
function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if (rf & 1) {
|
|
1822
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1823
|
-
i0.ɵɵtext(1);
|
|
1824
|
-
i0.ɵɵelementEnd();
|
|
1825
|
-
} if (rf & 2) {
|
|
1826
|
-
const item_r3 = ctx.$implicit;
|
|
1827
|
-
i0.ɵɵadvance();
|
|
1828
|
-
i0.ɵɵtextInterpolate(item_r3.descripcion);
|
|
1829
|
-
} }
|
|
1830
|
-
function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
1831
|
-
i0.ɵɵelementStart(0, "tr")(1, "th", 23);
|
|
1832
|
-
i0.ɵɵtext(2, "C\u00F3digo Ubicacion");
|
|
1833
|
-
i0.ɵɵelementEnd();
|
|
1834
|
-
i0.ɵɵelementStart(3, "th", 24);
|
|
1835
|
-
i0.ɵɵtext(4, "Existencia");
|
|
1836
|
-
i0.ɵɵelementEnd();
|
|
1837
|
-
i0.ɵɵelementStart(5, "th", 25);
|
|
1838
|
-
i0.ɵɵtext(6, "Unidad");
|
|
1839
|
-
i0.ɵɵelementEnd();
|
|
1840
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26)(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
|
|
1841
|
-
i0.ɵɵelementStart(9, "th", 23);
|
|
1842
|
-
i0.ɵɵtext(10, "C\u00F3digo");
|
|
1843
|
-
i0.ɵɵelementEnd();
|
|
1844
|
-
i0.ɵɵelementStart(11, "th", 28);
|
|
1845
|
-
i0.ɵɵtext(12, "Descripcion");
|
|
1846
|
-
i0.ɵɵelementEnd();
|
|
1847
|
-
i0.ɵɵelement(13, "th", 25);
|
|
1848
|
-
i0.ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29)(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29)(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29)(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29)(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29)(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
|
|
1849
|
-
i0.ɵɵelementStart(20, "th", 25);
|
|
1850
|
-
i0.ɵɵtext(21, "Existencia por Unidad");
|
|
1851
|
-
i0.ɵɵelementEnd();
|
|
1852
|
-
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_26_th_22_Template, 2, 1, "th", 30);
|
|
1853
|
-
i0.ɵɵelementEnd();
|
|
1854
|
-
} if (rf & 2) {
|
|
1855
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
1856
|
-
i0.ɵɵadvance(7);
|
|
1857
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
1858
|
-
i0.ɵɵadvance();
|
|
1859
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
1860
|
-
i0.ɵɵadvance(6);
|
|
1861
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1862
|
-
i0.ɵɵadvance();
|
|
1863
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1864
|
-
i0.ɵɵadvance();
|
|
1865
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1866
|
-
i0.ɵɵadvance();
|
|
1867
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1868
|
-
i0.ɵɵadvance();
|
|
1869
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1870
|
-
i0.ɵɵadvance();
|
|
1871
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
1872
|
-
i0.ɵɵadvance(3);
|
|
1873
|
-
i0.ɵɵproperty("ngForOf", ctx_r3.clasificadorList);
|
|
1874
|
-
} }
|
|
1875
|
-
function SeleccionaArticuloComponent_ng_template_27_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
1876
|
-
i0.ɵɵelementStart(0, "td", 23);
|
|
1877
|
-
i0.ɵɵtext(1, "Movimiento.NoAsignado");
|
|
1878
|
-
i0.ɵɵelementEnd();
|
|
1879
|
-
} }
|
|
1880
|
-
function SeleccionaArticuloComponent_ng_template_27_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
1881
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1882
|
-
i0.ɵɵtext(1);
|
|
1883
|
-
i0.ɵɵelementEnd();
|
|
1884
|
-
} if (rf & 2) {
|
|
1885
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1886
|
-
i0.ɵɵadvance();
|
|
1887
|
-
i0.ɵɵtextInterpolate(rowData_r6.ubicacionCodigo);
|
|
1888
|
-
} }
|
|
1889
|
-
function SeleccionaArticuloComponent_ng_template_27_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
1890
|
-
i0.ɵɵelementStart(0, "td", 44);
|
|
1891
|
-
i0.ɵɵtext(1);
|
|
1892
|
-
i0.ɵɵelementEnd();
|
|
1893
|
-
} if (rf & 2) {
|
|
1894
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1895
|
-
i0.ɵɵadvance();
|
|
1896
|
-
i0.ɵɵtextInterpolate(rowData_r6.existenciaSecundaria);
|
|
1897
|
-
} }
|
|
1898
|
-
function SeleccionaArticuloComponent_ng_template_27_td_8_Template(rf, ctx) { if (rf & 1) {
|
|
1899
|
-
i0.ɵɵelementStart(0, "td", 36);
|
|
1900
|
-
i0.ɵɵtext(1);
|
|
1901
|
-
i0.ɵɵelementEnd();
|
|
1902
|
-
} if (rf & 2) {
|
|
1903
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1904
|
-
i0.ɵɵadvance();
|
|
1905
|
-
i0.ɵɵtextInterpolate(rowData_r6.unidadSecundariaCodigo);
|
|
1906
|
-
} }
|
|
1907
|
-
function SeleccionaArticuloComponent_ng_template_27_td_15_Template(rf, ctx) { if (rf & 1) {
|
|
1908
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1909
|
-
i0.ɵɵtext(1);
|
|
1910
|
-
i0.ɵɵpipe(2, "currency");
|
|
1911
|
-
i0.ɵɵelementEnd();
|
|
1912
|
-
} if (rf & 2) {
|
|
1913
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1914
|
-
i0.ɵɵadvance();
|
|
1915
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, rowData_r6.precioConImpuestos), " ");
|
|
1916
|
-
} }
|
|
1917
|
-
function SeleccionaArticuloComponent_ng_template_27_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
1918
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1919
|
-
i0.ɵɵtext(1);
|
|
1920
|
-
i0.ɵɵpipe(2, "currency");
|
|
1921
|
-
i0.ɵɵelementEnd();
|
|
1922
|
-
} if (rf & 2) {
|
|
1923
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1924
|
-
i0.ɵɵadvance();
|
|
1925
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio2ConImpuestos));
|
|
1926
|
-
} }
|
|
1927
|
-
function SeleccionaArticuloComponent_ng_template_27_td_17_Template(rf, ctx) { if (rf & 1) {
|
|
1928
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1929
|
-
i0.ɵɵtext(1);
|
|
1930
|
-
i0.ɵɵpipe(2, "currency");
|
|
1931
|
-
i0.ɵɵelementEnd();
|
|
1932
|
-
} if (rf & 2) {
|
|
1933
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1934
|
-
i0.ɵɵadvance();
|
|
1935
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio3ConImpuestos));
|
|
1936
|
-
} }
|
|
1937
|
-
function SeleccionaArticuloComponent_ng_template_27_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
1938
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1939
|
-
i0.ɵɵtext(1);
|
|
1940
|
-
i0.ɵɵpipe(2, "currency");
|
|
1941
|
-
i0.ɵɵelementEnd();
|
|
1942
|
-
} if (rf & 2) {
|
|
1943
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1944
|
-
i0.ɵɵadvance();
|
|
1945
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio4ConImpuestos));
|
|
1946
|
-
} }
|
|
1947
|
-
function SeleccionaArticuloComponent_ng_template_27_td_19_Template(rf, ctx) { if (rf & 1) {
|
|
1948
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1949
|
-
i0.ɵɵtext(1);
|
|
1950
|
-
i0.ɵɵpipe(2, "currency");
|
|
1951
|
-
i0.ɵɵelementEnd();
|
|
1952
|
-
} if (rf & 2) {
|
|
1953
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1954
|
-
i0.ɵɵadvance();
|
|
1955
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio5ConImpuestos));
|
|
1956
|
-
} }
|
|
1957
|
-
function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if (rf & 1) {
|
|
1958
|
-
i0.ɵɵelementStart(0, "td", 36);
|
|
1959
|
-
i0.ɵɵtext(1);
|
|
1960
|
-
i0.ɵɵpipe(2, "currency");
|
|
1961
|
-
i0.ɵɵelementEnd();
|
|
1962
|
-
} if (rf & 2) {
|
|
1963
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1964
|
-
i0.ɵɵadvance();
|
|
1965
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio));
|
|
1966
|
-
} }
|
|
1967
|
-
function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
1968
|
-
i0.ɵɵelementStart(0, "div", 45)(1, "div", 46)(2, "label", 47);
|
|
1969
|
-
i0.ɵɵtext(3);
|
|
1970
|
-
i0.ɵɵelementEnd()();
|
|
1971
|
-
i0.ɵɵelementStart(4, "div", 46)(5, "label", 47);
|
|
1972
|
-
i0.ɵɵtext(6);
|
|
1973
|
-
i0.ɵɵpipe(7, "number");
|
|
1974
|
-
i0.ɵɵelementEnd()()();
|
|
1975
|
-
} if (rf & 2) {
|
|
1976
|
-
const item_r7 = ctx.$implicit;
|
|
1977
|
-
i0.ɵɵadvance(3);
|
|
1978
|
-
i0.ɵɵtextInterpolate(item_r7.unidad_codigo);
|
|
1979
|
-
i0.ɵɵadvance(3);
|
|
1980
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, item_r7.unidad_existencia, "1.2-2"));
|
|
1981
|
-
} }
|
|
1982
|
-
function SeleccionaArticuloComponent_ng_template_27_td_23_Template(rf, ctx) { if (rf & 1) {
|
|
1983
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1984
|
-
i0.ɵɵtext(1);
|
|
1985
|
-
i0.ɵɵelementEnd();
|
|
1986
|
-
} if (rf & 2) {
|
|
1987
|
-
const itemData_r8 = ctx.$implicit;
|
|
1988
|
-
i0.ɵɵadvance();
|
|
1989
|
-
i0.ɵɵtextInterpolate(itemData_r8.valor);
|
|
1990
|
-
} }
|
|
1991
|
-
function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
|
|
1992
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1993
|
-
i0.ɵɵelementStart(0, "tr", 32);
|
|
1994
|
-
i0.ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33)(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
|
|
1995
|
-
i0.ɵɵelementStart(3, "td", 35);
|
|
1996
|
-
i0.ɵɵtext(4);
|
|
1997
|
-
i0.ɵɵelementEnd();
|
|
1998
|
-
i0.ɵɵelementStart(5, "td", 36);
|
|
1999
|
-
i0.ɵɵtext(6);
|
|
2000
|
-
i0.ɵɵelementEnd();
|
|
2001
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37)(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
|
|
2002
|
-
i0.ɵɵelementStart(9, "td", 39);
|
|
2003
|
-
i0.ɵɵtext(10);
|
|
2004
|
-
i0.ɵɵelementEnd();
|
|
2005
|
-
i0.ɵɵelementStart(11, "td", 40);
|
|
2006
|
-
i0.ɵɵtext(12);
|
|
2007
|
-
i0.ɵɵelementEnd();
|
|
2008
|
-
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2009
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const rowData_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onShowInformacion(rowData_r6)); });
|
|
2010
|
-
i0.ɵɵelementEnd()();
|
|
2011
|
-
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34)(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34)(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34)(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34)(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34)(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
|
|
2012
|
-
i0.ɵɵelementStart(21, "td", 36);
|
|
2013
|
-
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_27_div_22_Template, 8, 5, "div", 42);
|
|
2014
|
-
i0.ɵɵelementEnd();
|
|
2015
|
-
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_ng_template_27_td_23_Template, 2, 1, "td", 43);
|
|
2016
|
-
i0.ɵɵelementEnd();
|
|
2017
|
-
} if (rf & 2) {
|
|
2018
|
-
const rowData_r6 = ctx.$implicit;
|
|
2019
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2020
|
-
i0.ɵɵproperty("pSelectableRow", rowData_r6);
|
|
2021
|
-
i0.ɵɵadvance();
|
|
2022
|
-
i0.ɵɵproperty("ngIf", !rowData_r6.ubicacionCodigo);
|
|
2023
|
-
i0.ɵɵadvance();
|
|
2024
|
-
i0.ɵɵproperty("ngIf", rowData_r6.ubicacionCodigo);
|
|
2025
|
-
i0.ɵɵadvance(2);
|
|
2026
|
-
i0.ɵɵtextInterpolate(rowData_r6.existencia);
|
|
2027
|
-
i0.ɵɵadvance(2);
|
|
2028
|
-
i0.ɵɵtextInterpolate(rowData_r6.unidadCodigo);
|
|
2029
|
-
i0.ɵɵadvance();
|
|
2030
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2031
|
-
i0.ɵɵadvance();
|
|
2032
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2033
|
-
i0.ɵɵadvance(2);
|
|
2034
|
-
i0.ɵɵtextInterpolate(rowData_r6.articulo.codigo);
|
|
2035
|
-
i0.ɵɵadvance(2);
|
|
2036
|
-
i0.ɵɵtextInterpolate(rowData_r6.articulo.descripcion);
|
|
2037
|
-
i0.ɵɵadvance(3);
|
|
2038
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2039
|
-
i0.ɵɵadvance();
|
|
2040
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2041
|
-
i0.ɵɵadvance();
|
|
2042
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2043
|
-
i0.ɵɵadvance();
|
|
2044
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2045
|
-
i0.ɵɵadvance();
|
|
2046
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2047
|
-
i0.ɵɵadvance();
|
|
2048
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
2049
|
-
i0.ɵɵadvance(2);
|
|
2050
|
-
i0.ɵɵproperty("ngForOf", rowData_r6.existenciaUnidades);
|
|
2051
|
-
i0.ɵɵadvance();
|
|
2052
|
-
i0.ɵɵproperty("ngForOf", rowData_r6.articuloClasificadorList);
|
|
2053
|
-
} }
|
|
2054
|
-
function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template(rf, ctx) { if (rf & 1) {
|
|
2055
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
2056
|
-
i0.ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
|
|
2057
|
-
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onEventInformacion($event)); });
|
|
2058
|
-
i0.ɵɵelementEnd();
|
|
2059
|
-
} if (rf & 2) {
|
|
2060
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2061
|
-
i0.ɵɵproperty("showModal", ctx_r3.showModalInformacion)("articulo", ctx_r3.articuloSelected);
|
|
2062
|
-
} }
|
|
1529
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SeleccionArticuloInformacionComponent, deps: [{ token: ArticuloInformacionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1530
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SeleccionArticuloInformacionComponent, isStandalone: false, selector: "lib-seleccion-articulo-informacion", inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, ngImport: i0, template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1531
|
+
}
|
|
1532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SeleccionArticuloInformacionComponent, decorators: [{
|
|
1533
|
+
type: Component,
|
|
1534
|
+
args: [{ selector: 'lib-seleccion-articulo-informacion', standalone: false, template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\">\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>" }]
|
|
1535
|
+
}], ctorParameters: () => [{ type: ArticuloInformacionService }], propDecorators: { showModal: [{
|
|
1536
|
+
type: Input
|
|
1537
|
+
}], articulo: [{
|
|
1538
|
+
type: Input
|
|
1539
|
+
}], eventSelection: [{
|
|
1540
|
+
type: Output
|
|
1541
|
+
}] } });
|
|
1542
|
+
|
|
2063
1543
|
class SeleccionaArticuloComponent {
|
|
2064
1544
|
constructor(_stockService, _paginateService, _almacenService) {
|
|
2065
1545
|
this._stockService = _stockService;
|
|
@@ -2150,89 +1630,92 @@ class SeleccionaArticuloComponent {
|
|
|
2150
1630
|
onEventInformacion(event) {
|
|
2151
1631
|
this.showModalInformacion = event.status;
|
|
2152
1632
|
}
|
|
2153
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2154
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 24, consts: [["dt", ""], [3, "visibleChange", "onShow", "onHide", "header", "visible", "maximizable", "baseZIndex", "blockScroll", "minY"], [1, "grid", "grid-fluid"], [1, "col-12", "md:col-6", "lg:col-6"], [2, "display", "flex"], [2, "width", "115px"], ["pInputText", "", 3, "ngModelChange", "change", "ngModel"], ["value", "C"], ["value", "D"], ["value", "CD"], ["value", "CI"], ["type", "text", "pInputText", "", "id", "key", 2, "width", "200px", 3, "ngModelChange", "keypress", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], [2, "width", "100px"], ["for", "almacen"], ["pInputText", "", "disabled", "", "id", "almacen", 2, "width", "200px", 3, "ngModelChange", "change", "ngModel"], [3, "value", 4, "ngFor", "ngForOf"], ["scrollHeight", "400px", "responsiveLayout", "scroll", "selectionMode", "single", 3, "onRowSelect", "value", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "showModal", "articulo", "eventSelection", 4, "ngIf"], [3, "value"], ["translate", "", 2, "width", "80px"], ["translate", "", 2, "width", "70px"], ["translate", "", 2, "width", "40px"], ["style", "width: 50px", "translate", "", 4, "ngIf"], ["style", "width: 40px", "translate", "", 4, "ngIf"], ["translate", "", 2, "width", "120px"], ["style", "width: 80px", "translate", "", 4, "ngIf"], ["style", "width: 80px", "translate", "", 4, "ngFor", "ngForOf"], ["translate", "", 2, "width", "50px"], [3, "pSelectableRow"], ["style", "width: 80px;", "translate", "", 4, "ngIf"], ["style", "width: 80px;", 4, "ngIf"], [2, "width", "70px"], [2, "width", "40px"], ["style", "width: 50px;", 4, "ngIf"], ["style", "width: 40px;", 4, "ngIf"], [2, "width", "80px"], [2, "width", "120px"], ["pButton", "", "type", "button", "icon", "pi pi-eye", 1, "ui-button-raised", "ui-button-primary", 3, "click"], ["class", "row justify-content-between", 4, "ngFor", "ngForOf"], ["style", "width: 80px;", 4, "ngFor", "ngForOf"], [2, "width", "50px"], [1, "row", "justify-content-between"], [1, "col-lg-4"], ["for", ""], [3, "eventSelection", "showModal", "articulo"]], template: function SeleccionaArticuloComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
i0.ɵɵtwoWayListener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.showArticulos, $event) || (ctx.showArticulos = $event); return i0.ɵɵresetView($event); });
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
(
|
|
2220
|
-
|
|
2221
|
-
args: [{ selector: 'app-selecciona-articulo', template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"] }]
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
type:
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
type:
|
|
2232
|
-
}],
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
1633
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SeleccionaArticuloComponent, deps: [{ token: StockService }, { token: PaginateService }, { token: AlmacenService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1634
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SeleccionaArticuloComponent, isStandalone: false, selector: "app-selecciona-articulo", inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, ngImport: i0, template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i11.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i11.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: SeleccionArticuloInformacionComponent, selector: "lib-seleccion-articulo-informacion", inputs: ["showModal", "articulo"], outputs: ["eventSelection"] }, { kind: "pipe", type: i4.DecimalPipe, name: "number" }, { kind: "pipe", type: i4.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1635
|
+
}
|
|
1636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SeleccionaArticuloComponent, decorators: [{
|
|
1637
|
+
type: Component,
|
|
1638
|
+
args: [{ selector: 'app-selecciona-articulo', standalone: false, template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"] }]
|
|
1639
|
+
}], ctorParameters: () => [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }], propDecorators: { configuracion: [{
|
|
1640
|
+
type: Input
|
|
1641
|
+
}], showArticulos: [{
|
|
1642
|
+
type: Input
|
|
1643
|
+
}], movimiento: [{
|
|
1644
|
+
type: Input
|
|
1645
|
+
}], manejaUnidadSecundaria: [{
|
|
1646
|
+
type: Input
|
|
1647
|
+
}], emitFilaSeleccionada: [{
|
|
1648
|
+
type: Output
|
|
1649
|
+
}], emitShowArticulos: [{
|
|
1650
|
+
type: Output
|
|
1651
|
+
}] } });
|
|
1652
|
+
|
|
1653
|
+
class AcreedorService extends CrudService {
|
|
1654
|
+
constructor(httpClient) {
|
|
1655
|
+
super(httpClient, 'acreedor');
|
|
1656
|
+
this.httpClient = httpClient;
|
|
1657
|
+
}
|
|
1658
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1659
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorService, providedIn: 'root' }); }
|
|
1660
|
+
}
|
|
1661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorService, decorators: [{
|
|
1662
|
+
type: Injectable,
|
|
1663
|
+
args: [{
|
|
1664
|
+
providedIn: 'root'
|
|
1665
|
+
}]
|
|
1666
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1667
|
+
|
|
1668
|
+
class SelectAcreedorComponent {
|
|
1669
|
+
constructor(acreedorService, paginanateService, translate) {
|
|
1670
|
+
this.acreedorService = acreedorService;
|
|
1671
|
+
this.paginanateService = paginanateService;
|
|
1672
|
+
this.translate = translate;
|
|
1673
|
+
this.params = [];
|
|
1674
|
+
this.ordenar = [];
|
|
1675
|
+
this.visible = false;
|
|
1676
|
+
this.acreedorSeleccionado = new Proveedor();
|
|
1677
|
+
this.select = new EventEmitter();
|
|
1678
|
+
this.translate.get('es');
|
|
1679
|
+
}
|
|
1680
|
+
ngOnInit() {
|
|
1681
|
+
this.page = this.paginanateService.getPage();
|
|
1682
|
+
let arg = [];
|
|
1683
|
+
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
1684
|
+
this.acreedores = [];
|
|
1685
|
+
}
|
|
1686
|
+
cargarDatosAcreedores() {
|
|
1687
|
+
this.params = this.paginanateService.getParams(this.page);
|
|
1688
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1689
|
+
this.acreedorService.getAll(this.params).subscribe((data) => {
|
|
1690
|
+
this.acreedores = data.data;
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
pagina(e) {
|
|
1694
|
+
this.page.rows = e.rows;
|
|
1695
|
+
this.page.offset = e.first;
|
|
1696
|
+
this.cargarDatosAcreedores;
|
|
1697
|
+
}
|
|
1698
|
+
cerrarModal() {
|
|
1699
|
+
this.select.emit(null);
|
|
1700
|
+
this.visible = false;
|
|
1701
|
+
}
|
|
1702
|
+
seleccionarAcreedor(e) {
|
|
1703
|
+
this.select.emit(e.data);
|
|
1704
|
+
this.visible = false;
|
|
1705
|
+
}
|
|
1706
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectAcreedorComponent, deps: [{ token: AcreedorService }, { token: PaginateService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1707
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SelectAcreedorComponent, isStandalone: false, selector: "select-acreedor", inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "component", type: i32.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i11.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i11.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i11.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1708
|
+
}
|
|
1709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectAcreedorComponent, decorators: [{
|
|
1710
|
+
type: Component,
|
|
1711
|
+
args: [{ selector: 'select-acreedor', standalone: false, template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
1712
|
+
}], ctorParameters: () => [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], propDecorators: { visible: [{
|
|
1713
|
+
type: Input
|
|
1714
|
+
}], acreedorSeleccionado: [{
|
|
1715
|
+
type: Input
|
|
1716
|
+
}], select: [{
|
|
1717
|
+
type: Output
|
|
1718
|
+
}] } });
|
|
2236
1719
|
|
|
2237
1720
|
const components = [
|
|
2238
1721
|
LoadingComponent,
|
|
@@ -2240,7 +1723,10 @@ const components = [
|
|
|
2240
1723
|
LoginModalComponent,
|
|
2241
1724
|
PdfModalComponent,
|
|
2242
1725
|
SessionCreateComponent,
|
|
2243
|
-
|
|
1726
|
+
SelectClienteComponent,
|
|
1727
|
+
SelectProveedorComponent,
|
|
1728
|
+
SeleccionaArticuloComponent,
|
|
1729
|
+
SelectAcreedorComponent
|
|
2244
1730
|
];
|
|
2245
1731
|
const exportComponents = components;
|
|
2246
1732
|
const exportServices = [];
|
|
@@ -2266,7 +1752,6 @@ const primeNg = [
|
|
|
2266
1752
|
PaginatorModule,
|
|
2267
1753
|
ConfirmDialogModule,
|
|
2268
1754
|
ProgressBarModule,
|
|
2269
|
-
TriStateCheckboxModule,
|
|
2270
1755
|
KeyFilterModule,
|
|
2271
1756
|
InputSwitchModule,
|
|
2272
1757
|
DialogModule,
|
|
@@ -2277,18 +1762,24 @@ const primeNg = [
|
|
|
2277
1762
|
FieldsetModule,
|
|
2278
1763
|
TreeModule,
|
|
2279
1764
|
TabMenuModule,
|
|
2280
|
-
MenubarModule
|
|
1765
|
+
MenubarModule
|
|
2281
1766
|
];
|
|
2282
1767
|
const primeNgServices = [ConfirmationService];
|
|
2283
1768
|
|
|
1769
|
+
;
|
|
2284
1770
|
function HttpLoaderFactory(http) {
|
|
2285
1771
|
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
2286
1772
|
}
|
|
2287
1773
|
class CoreLibModule {
|
|
2288
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2289
|
-
/** @nocollapse */ static { this.ɵmod =
|
|
2290
|
-
/** @nocollapse */ static { this.ɵinj =
|
|
1774
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CoreLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1775
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: CoreLibModule, declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.KeyFilterModule, i31.InputSwitchModule, i32.DialogModule, i33.TabViewModule, i34.PanelModule, i35.ToolbarModule, i36.SplitButtonModule, i37.FieldsetModule, i38.TreeModule, i39.TabMenuModule, i40.MenubarModule, FormsModule, i1$1.ToastrModule, i3$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.KeyFilterModule, i31.InputSwitchModule, i32.DialogModule, i33.TabViewModule, i34.PanelModule, i35.ToolbarModule, i36.SplitButtonModule, i37.FieldsetModule, i38.TreeModule, i39.TabMenuModule, i40.MenubarModule, TranslateModule] }); }
|
|
1776
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CoreLibModule, providers: [
|
|
2291
1777
|
primeNgServices,
|
|
1778
|
+
providePrimeNG({
|
|
1779
|
+
theme: {
|
|
1780
|
+
preset: Aura
|
|
1781
|
+
}
|
|
1782
|
+
}),
|
|
2292
1783
|
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
2293
1784
|
], imports: [CommonModule,
|
|
2294
1785
|
primeNg,
|
|
@@ -2300,61 +1791,42 @@ class CoreLibModule {
|
|
|
2300
1791
|
useFactory: HttpLoaderFactory,
|
|
2301
1792
|
deps: [HttpClient]
|
|
2302
1793
|
}
|
|
2303
|
-
}),
|
|
2304
|
-
}
|
|
2305
|
-
(
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
//this.genero = new Genero();
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
class PersonaFisica {
|
|
2344
|
-
constructor() {
|
|
2345
|
-
this.datoPersona = new Persona();
|
|
2346
|
-
this.contactos = [];
|
|
2347
|
-
this.datoDirecciones = [];
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
class PersonaMoral {
|
|
2352
|
-
constructor() {
|
|
2353
|
-
this.representanteLegal = new PersonaFisica();
|
|
2354
|
-
this.contactos = [];
|
|
2355
|
-
this.datoDirecciones = [];
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
1794
|
+
}), i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.KeyFilterModule, i31.InputSwitchModule, i32.DialogModule, i33.TabViewModule, i34.PanelModule, i35.ToolbarModule, i36.SplitButtonModule, i37.FieldsetModule, i38.TreeModule, i39.TabMenuModule, i40.MenubarModule, TranslateModule] }); }
|
|
1795
|
+
}
|
|
1796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CoreLibModule, decorators: [{
|
|
1797
|
+
type: NgModule,
|
|
1798
|
+
args: [{
|
|
1799
|
+
declarations: [
|
|
1800
|
+
Error404Component,
|
|
1801
|
+
components,
|
|
1802
|
+
contaComponents,
|
|
1803
|
+
SeleccionArticuloInformacionComponent
|
|
1804
|
+
],
|
|
1805
|
+
imports: [
|
|
1806
|
+
CommonModule,
|
|
1807
|
+
primeNg,
|
|
1808
|
+
FormsModule,
|
|
1809
|
+
ToastrModule.forRoot(),
|
|
1810
|
+
TranslateModule.forRoot({
|
|
1811
|
+
loader: {
|
|
1812
|
+
provide: TranslateLoader,
|
|
1813
|
+
useFactory: HttpLoaderFactory,
|
|
1814
|
+
deps: [HttpClient]
|
|
1815
|
+
}
|
|
1816
|
+
})
|
|
1817
|
+
],
|
|
1818
|
+
providers: [
|
|
1819
|
+
primeNgServices,
|
|
1820
|
+
providePrimeNG({
|
|
1821
|
+
theme: {
|
|
1822
|
+
preset: Aura
|
|
1823
|
+
}
|
|
1824
|
+
}),
|
|
1825
|
+
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
1826
|
+
],
|
|
1827
|
+
exports: [components, contaComponents, primeNg, TranslateModule]
|
|
1828
|
+
}]
|
|
1829
|
+
}] });
|
|
2358
1830
|
|
|
2359
1831
|
class ControlAccesoService {
|
|
2360
1832
|
constructor(authService) {
|
|
@@ -2381,19 +1853,19 @@ class ControlAccesoService {
|
|
|
2381
1853
|
}
|
|
2382
1854
|
return permiso;
|
|
2383
1855
|
}
|
|
2384
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2385
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1856
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ControlAccesoService, deps: [{ token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1857
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ControlAccesoService, providedIn: 'root' }); }
|
|
2386
1858
|
}
|
|
2387
|
-
(
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
1859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ControlAccesoService, decorators: [{
|
|
1860
|
+
type: Injectable,
|
|
1861
|
+
args: [{
|
|
1862
|
+
providedIn: 'root'
|
|
1863
|
+
}]
|
|
1864
|
+
}], ctorParameters: () => [{ type: AuthService }], propDecorators: { cambioAcciones: [{
|
|
1865
|
+
type: Output
|
|
1866
|
+
}], changeDetalleUsuario: [{
|
|
1867
|
+
type: Output
|
|
1868
|
+
}] } });
|
|
2397
1869
|
|
|
2398
1870
|
class InitService {
|
|
2399
1871
|
constructor(http, authService) {
|
|
@@ -2430,15 +1902,15 @@ class InitService {
|
|
|
2430
1902
|
});
|
|
2431
1903
|
});
|
|
2432
1904
|
}
|
|
2433
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2434
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1905
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InitService, deps: [{ token: i1.HttpClient }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1906
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InitService, providedIn: 'root' }); }
|
|
2435
1907
|
}
|
|
2436
|
-
(
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
1908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InitService, decorators: [{
|
|
1909
|
+
type: Injectable,
|
|
1910
|
+
args: [{
|
|
1911
|
+
providedIn: 'root'
|
|
1912
|
+
}]
|
|
1913
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: AuthService }] });
|
|
2442
1914
|
|
|
2443
1915
|
class MessageService {
|
|
2444
1916
|
constructor(toastr) {
|
|
@@ -2505,29 +1977,29 @@ class MessageService {
|
|
|
2505
1977
|
}
|
|
2506
1978
|
return msgs;
|
|
2507
1979
|
}
|
|
2508
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2509
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1980
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1981
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, providedIn: 'root' }); }
|
|
2510
1982
|
}
|
|
2511
|
-
(
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
1983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, decorators: [{
|
|
1984
|
+
type: Injectable,
|
|
1985
|
+
args: [{
|
|
1986
|
+
providedIn: 'root'
|
|
1987
|
+
}]
|
|
1988
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }] });
|
|
2517
1989
|
|
|
2518
1990
|
class PersonaMoralService extends CrudService {
|
|
2519
1991
|
constructor(http) {
|
|
2520
1992
|
super(http, '/personaMoral');
|
|
2521
1993
|
}
|
|
2522
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2523
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1994
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaMoralService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1995
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaMoralService, providedIn: 'root' }); }
|
|
2524
1996
|
}
|
|
2525
|
-
(
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
1997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaMoralService, decorators: [{
|
|
1998
|
+
type: Injectable,
|
|
1999
|
+
args: [{
|
|
2000
|
+
providedIn: 'root'
|
|
2001
|
+
}]
|
|
2002
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2531
2003
|
|
|
2532
2004
|
class CanActivateGuard {
|
|
2533
2005
|
constructor(controlAccesoService) {
|
|
@@ -2541,30 +2013,30 @@ class CanActivateGuard {
|
|
|
2541
2013
|
permisos(rol) {
|
|
2542
2014
|
this.rol = rol;
|
|
2543
2015
|
}
|
|
2544
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2545
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2016
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CanActivateGuard, deps: [{ token: ControlAccesoService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2017
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CanActivateGuard, providedIn: 'root' }); }
|
|
2546
2018
|
}
|
|
2547
|
-
(
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CanActivateGuard, decorators: [{
|
|
2020
|
+
type: Injectable,
|
|
2021
|
+
args: [{
|
|
2022
|
+
providedIn: 'root'
|
|
2023
|
+
}]
|
|
2024
|
+
}], ctorParameters: () => [{ type: ControlAccesoService }] });
|
|
2553
2025
|
|
|
2554
2026
|
class CatalogoAdicionalService extends CrudService {
|
|
2555
2027
|
constructor(httpClient) {
|
|
2556
2028
|
super(httpClient, 'catalogoAdicional');
|
|
2557
2029
|
this.httpClient = httpClient;
|
|
2558
2030
|
}
|
|
2559
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2560
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2031
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoAdicionalService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2032
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoAdicionalService, providedIn: 'root' }); }
|
|
2561
2033
|
}
|
|
2562
|
-
(
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoAdicionalService, decorators: [{
|
|
2035
|
+
type: Injectable,
|
|
2036
|
+
args: [{
|
|
2037
|
+
providedIn: 'root'
|
|
2038
|
+
}]
|
|
2039
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2568
2040
|
|
|
2569
2041
|
class Authenticated {
|
|
2570
2042
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -2625,15 +2097,15 @@ class Authenticated {
|
|
|
2625
2097
|
}
|
|
2626
2098
|
window.location.href = host;
|
|
2627
2099
|
}
|
|
2628
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2629
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2100
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Authenticated, deps: [{ token: AuthService }, { token: ControlAccesoService }, { token: i3$3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2101
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Authenticated, providedIn: 'root' }); }
|
|
2630
2102
|
}
|
|
2631
|
-
(
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Authenticated, decorators: [{
|
|
2104
|
+
type: Injectable,
|
|
2105
|
+
args: [{
|
|
2106
|
+
providedIn: 'root'
|
|
2107
|
+
}]
|
|
2108
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }] });
|
|
2637
2109
|
|
|
2638
2110
|
class VersionCheckService {
|
|
2639
2111
|
constructor(http) {
|
|
@@ -2673,22 +2145,15 @@ class VersionCheckService {
|
|
|
2673
2145
|
}
|
|
2674
2146
|
return currentHash === newHash;
|
|
2675
2147
|
}
|
|
2676
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2677
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2678
|
-
}
|
|
2679
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionCheckService, [{
|
|
2680
|
-
type: Injectable,
|
|
2681
|
-
args: [{
|
|
2682
|
-
providedIn: 'root'
|
|
2683
|
-
}]
|
|
2684
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2685
|
-
|
|
2686
|
-
class Agente {
|
|
2687
|
-
constructor() {
|
|
2688
|
-
// this.catalogoTipo= new CatalogoTipo();
|
|
2689
|
-
this.personaFisica = new PersonaFisica();
|
|
2690
|
-
}
|
|
2148
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: VersionCheckService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2149
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: VersionCheckService, providedIn: 'root' }); }
|
|
2691
2150
|
}
|
|
2151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: VersionCheckService, decorators: [{
|
|
2152
|
+
type: Injectable,
|
|
2153
|
+
args: [{
|
|
2154
|
+
providedIn: 'root'
|
|
2155
|
+
}]
|
|
2156
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2692
2157
|
|
|
2693
2158
|
class AgenteService extends CrudService {
|
|
2694
2159
|
constructor(httpClient) {
|
|
@@ -2707,15 +2172,15 @@ class AgenteService extends CrudService {
|
|
|
2707
2172
|
let url = this.geturl() + '/obtenerAgenteEmpresa';
|
|
2708
2173
|
return this.getHttp().get(url, this.buildAuth());
|
|
2709
2174
|
}
|
|
2710
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2711
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2175
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AgenteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2176
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AgenteService, providedIn: 'root' }); }
|
|
2712
2177
|
}
|
|
2713
|
-
(
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AgenteService, decorators: [{
|
|
2179
|
+
type: Injectable,
|
|
2180
|
+
args: [{
|
|
2181
|
+
providedIn: 'root'
|
|
2182
|
+
}]
|
|
2183
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2719
2184
|
|
|
2720
2185
|
class Almacen {
|
|
2721
2186
|
constructor() { }
|
|
@@ -2736,15 +2201,15 @@ class BancoService extends CrudService {
|
|
|
2736
2201
|
constructor(http) {
|
|
2737
2202
|
super(http, '/banco');
|
|
2738
2203
|
}
|
|
2739
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2740
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2204
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2205
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BancoService, providedIn: 'root' }); }
|
|
2741
2206
|
}
|
|
2742
|
-
(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BancoService, decorators: [{
|
|
2208
|
+
type: Injectable,
|
|
2209
|
+
args: [{
|
|
2210
|
+
providedIn: 'root'
|
|
2211
|
+
}]
|
|
2212
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2748
2213
|
|
|
2749
2214
|
class CatalogoTipo {
|
|
2750
2215
|
constructor() { }
|
|
@@ -2754,33 +2219,29 @@ class CatalogoTipoService extends CrudService {
|
|
|
2754
2219
|
constructor(htt) {
|
|
2755
2220
|
super(htt, '/catalogoTipo');
|
|
2756
2221
|
}
|
|
2757
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2758
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2759
|
-
}
|
|
2760
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoTipoService, [{
|
|
2761
|
-
type: Injectable,
|
|
2762
|
-
args: [{
|
|
2763
|
-
providedIn: 'root'
|
|
2764
|
-
}]
|
|
2765
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2766
|
-
|
|
2767
|
-
class ClasificadorTipo {
|
|
2768
|
-
constructor() { }
|
|
2222
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2223
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoTipoService, providedIn: 'root' }); }
|
|
2769
2224
|
}
|
|
2225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CatalogoTipoService, decorators: [{
|
|
2226
|
+
type: Injectable,
|
|
2227
|
+
args: [{
|
|
2228
|
+
providedIn: 'root'
|
|
2229
|
+
}]
|
|
2230
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2770
2231
|
|
|
2771
2232
|
class ClasificadorTipoService extends CrudService {
|
|
2772
2233
|
constructor(http) {
|
|
2773
2234
|
super(http, '/clasificadorTipo');
|
|
2774
2235
|
}
|
|
2775
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2776
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2236
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClasificadorTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2237
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClasificadorTipoService, providedIn: 'root' }); }
|
|
2777
2238
|
}
|
|
2778
|
-
(
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClasificadorTipoService, decorators: [{
|
|
2240
|
+
type: Injectable,
|
|
2241
|
+
args: [{
|
|
2242
|
+
providedIn: 'root'
|
|
2243
|
+
}]
|
|
2244
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2784
2245
|
|
|
2785
2246
|
class ClaveMovimiento {
|
|
2786
2247
|
constructor() { }
|
|
@@ -2790,24 +2251,15 @@ class ClaveMovimientoService extends CrudService {
|
|
|
2790
2251
|
constructor(http) {
|
|
2791
2252
|
super(http, 'claveMovimiento');
|
|
2792
2253
|
}
|
|
2793
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2794
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2795
|
-
}
|
|
2796
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
2797
|
-
type: Injectable,
|
|
2798
|
-
args: [{
|
|
2799
|
-
providedIn: 'root'
|
|
2800
|
-
}]
|
|
2801
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2802
|
-
|
|
2803
|
-
class Cliente {
|
|
2804
|
-
constructor() {
|
|
2805
|
-
this.agenteCobrador = new Agente();
|
|
2806
|
-
this.agenteVendedor = new Agente();
|
|
2807
|
-
this.personaFisica = new PersonaFisica();
|
|
2808
|
-
this.personaMoral = new PersonaMoral();
|
|
2809
|
-
}
|
|
2254
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveMovimientoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2255
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveMovimientoService, providedIn: 'root' }); }
|
|
2810
2256
|
}
|
|
2257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveMovimientoService, decorators: [{
|
|
2258
|
+
type: Injectable,
|
|
2259
|
+
args: [{
|
|
2260
|
+
providedIn: 'root'
|
|
2261
|
+
}]
|
|
2262
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2811
2263
|
|
|
2812
2264
|
class ClienteCuentaBanco {
|
|
2813
2265
|
constructor() {
|
|
@@ -2828,23 +2280,6 @@ class ClienteFlete {
|
|
|
2828
2280
|
}
|
|
2829
2281
|
}
|
|
2830
2282
|
|
|
2831
|
-
class ClienteService extends CrudService {
|
|
2832
|
-
constructor(httpCliente) {
|
|
2833
|
-
super(httpCliente, '/cliente');
|
|
2834
|
-
}
|
|
2835
|
-
validar_archivos_bss(id) {
|
|
2836
|
-
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
2837
|
-
}
|
|
2838
|
-
/** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
2839
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
|
|
2840
|
-
}
|
|
2841
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
|
|
2842
|
-
type: Injectable,
|
|
2843
|
-
args: [{
|
|
2844
|
-
providedIn: 'root'
|
|
2845
|
-
}]
|
|
2846
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2847
|
-
|
|
2848
2283
|
class ClienteCuentaBancoService extends CrudService {
|
|
2849
2284
|
constructor(httpClient) {
|
|
2850
2285
|
super(httpClient, '/clienteCuentaBanco');
|
|
@@ -2854,15 +2289,15 @@ class ClienteCuentaBancoService extends CrudService {
|
|
|
2854
2289
|
let p = { 'cuentas': params };
|
|
2855
2290
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
2856
2291
|
}
|
|
2857
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2858
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2292
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2293
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteCuentaBancoService, providedIn: 'root' }); }
|
|
2859
2294
|
}
|
|
2860
|
-
(
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteCuentaBancoService, decorators: [{
|
|
2296
|
+
type: Injectable,
|
|
2297
|
+
args: [{
|
|
2298
|
+
providedIn: 'root'
|
|
2299
|
+
}]
|
|
2300
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2866
2301
|
|
|
2867
2302
|
class ClienteFleteService extends CrudService {
|
|
2868
2303
|
constructor(httpClient) {
|
|
@@ -2873,15 +2308,15 @@ class ClienteFleteService extends CrudService {
|
|
|
2873
2308
|
let params = { fletes: p };
|
|
2874
2309
|
return this.save(params);
|
|
2875
2310
|
}
|
|
2876
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2877
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2311
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2312
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteFleteService, providedIn: 'root' }); }
|
|
2878
2313
|
}
|
|
2879
|
-
(
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClienteFleteService, decorators: [{
|
|
2315
|
+
type: Injectable,
|
|
2316
|
+
args: [{
|
|
2317
|
+
providedIn: 'root'
|
|
2318
|
+
}]
|
|
2319
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2885
2320
|
|
|
2886
2321
|
class TipoContacto {
|
|
2887
2322
|
constructor() {
|
|
@@ -2899,29 +2334,29 @@ class DatoContactoService extends CrudService {
|
|
|
2899
2334
|
constructor(http) {
|
|
2900
2335
|
super(http, '/contacto');
|
|
2901
2336
|
}
|
|
2902
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2903
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2337
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2338
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoContactoService, providedIn: 'root' }); }
|
|
2904
2339
|
}
|
|
2905
|
-
(
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoContactoService, decorators: [{
|
|
2341
|
+
type: Injectable,
|
|
2342
|
+
args: [{
|
|
2343
|
+
providedIn: 'root'
|
|
2344
|
+
}]
|
|
2345
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2911
2346
|
|
|
2912
2347
|
class DatoDireccionService extends CrudService {
|
|
2913
2348
|
constructor(http) {
|
|
2914
2349
|
super(http, '/datoDireccion');
|
|
2915
2350
|
}
|
|
2916
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2917
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2351
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoDireccionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2352
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoDireccionService, providedIn: 'root' }); }
|
|
2918
2353
|
}
|
|
2919
|
-
(
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatoDireccionService, decorators: [{
|
|
2355
|
+
type: Injectable,
|
|
2356
|
+
args: [{
|
|
2357
|
+
providedIn: 'root'
|
|
2358
|
+
}]
|
|
2359
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2925
2360
|
|
|
2926
2361
|
class Departamento {
|
|
2927
2362
|
constructor() {
|
|
@@ -2932,15 +2367,15 @@ class DepartamentoService extends CrudService {
|
|
|
2932
2367
|
constructor(http) {
|
|
2933
2368
|
super(http, '/departamento');
|
|
2934
2369
|
}
|
|
2935
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2936
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2370
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2371
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
|
|
2937
2372
|
}
|
|
2938
|
-
(
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DepartamentoService, decorators: [{
|
|
2374
|
+
type: Injectable,
|
|
2375
|
+
args: [{
|
|
2376
|
+
providedIn: 'root'
|
|
2377
|
+
}]
|
|
2378
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2944
2379
|
|
|
2945
2380
|
class FormaPago {
|
|
2946
2381
|
constructor() { }
|
|
@@ -2969,44 +2404,44 @@ class EmpresaService extends CrudService {
|
|
|
2969
2404
|
// return super.get(1);
|
|
2970
2405
|
return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
|
|
2971
2406
|
}
|
|
2972
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2973
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2407
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2408
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
|
|
2974
2409
|
}
|
|
2975
|
-
(
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EmpresaService, decorators: [{
|
|
2411
|
+
type: Injectable,
|
|
2412
|
+
args: [{
|
|
2413
|
+
providedIn: 'root'
|
|
2414
|
+
}]
|
|
2415
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2981
2416
|
|
|
2982
2417
|
class FleteService extends CrudService {
|
|
2983
2418
|
constructor(httpClient) {
|
|
2984
2419
|
super(httpClient, '/flete');
|
|
2985
2420
|
this.httpClient = httpClient;
|
|
2986
2421
|
}
|
|
2987
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2988
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2422
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2423
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FleteService, providedIn: 'root' }); }
|
|
2989
2424
|
}
|
|
2990
|
-
(
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FleteService, decorators: [{
|
|
2426
|
+
type: Injectable,
|
|
2427
|
+
args: [{
|
|
2428
|
+
providedIn: 'root'
|
|
2429
|
+
}]
|
|
2430
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2996
2431
|
|
|
2997
2432
|
class FormaPagoService extends CrudService {
|
|
2998
2433
|
constructor(http) {
|
|
2999
2434
|
super(http, '/FormaDePago');
|
|
3000
2435
|
}
|
|
3001
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3002
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2436
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormaPagoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2437
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormaPagoService, providedIn: "root" }); }
|
|
3003
2438
|
}
|
|
3004
|
-
(
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormaPagoService, decorators: [{
|
|
2440
|
+
type: Injectable,
|
|
2441
|
+
args: [{
|
|
2442
|
+
providedIn: "root"
|
|
2443
|
+
}]
|
|
2444
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3010
2445
|
|
|
3011
2446
|
class Moneda {
|
|
3012
2447
|
constructor() { }
|
|
@@ -3017,15 +2452,15 @@ class MonedaService extends CrudService {
|
|
|
3017
2452
|
super(httpClient, '/moneda');
|
|
3018
2453
|
this.httpClient = httpClient;
|
|
3019
2454
|
}
|
|
3020
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3021
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2455
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MonedaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2456
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MonedaService, providedIn: 'root' }); }
|
|
3022
2457
|
}
|
|
3023
|
-
(
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
2458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MonedaService, decorators: [{
|
|
2459
|
+
type: Injectable,
|
|
2460
|
+
args: [{
|
|
2461
|
+
providedIn: 'root'
|
|
2462
|
+
}]
|
|
2463
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3029
2464
|
|
|
3030
2465
|
class EstadoCivil {
|
|
3031
2466
|
constructor() { }
|
|
@@ -3046,24 +2481,15 @@ class PersonaFisicaService extends CrudService {
|
|
|
3046
2481
|
getEstadoCivil() {
|
|
3047
2482
|
return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
|
|
3048
2483
|
}
|
|
3049
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3050
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
3051
|
-
}
|
|
3052
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaFisicaService, [{
|
|
3053
|
-
type: Injectable,
|
|
3054
|
-
args: [{
|
|
3055
|
-
providedIn: "root"
|
|
3056
|
-
}]
|
|
3057
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3058
|
-
|
|
3059
|
-
class Proveedor {
|
|
3060
|
-
constructor() {
|
|
3061
|
-
this.personaMoral = new PersonaMoral();
|
|
3062
|
-
this.catalogoTipo = new ClasificadorTipo();
|
|
3063
|
-
this.clasificadorTipo = new ClasificadorTipo();
|
|
3064
|
-
this.personaFisica = new PersonaFisica();
|
|
3065
|
-
}
|
|
2484
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaFisicaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2485
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaFisicaService, providedIn: "root" }); }
|
|
3066
2486
|
}
|
|
2487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PersonaFisicaService, decorators: [{
|
|
2488
|
+
type: Injectable,
|
|
2489
|
+
args: [{
|
|
2490
|
+
providedIn: "root"
|
|
2491
|
+
}]
|
|
2492
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3067
2493
|
|
|
3068
2494
|
class ProveedorCuentaBanco {
|
|
3069
2495
|
constructor() {
|
|
@@ -3080,21 +2506,6 @@ class ProveedorFlete {
|
|
|
3080
2506
|
}
|
|
3081
2507
|
}
|
|
3082
2508
|
|
|
3083
|
-
class ProveedorService extends CrudService {
|
|
3084
|
-
constructor(httpClient) {
|
|
3085
|
-
super(httpClient, '/proveedor');
|
|
3086
|
-
this.httpClient = httpClient;
|
|
3087
|
-
}
|
|
3088
|
-
/** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3089
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
|
|
3090
|
-
}
|
|
3091
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
|
|
3092
|
-
type: Injectable,
|
|
3093
|
-
args: [{
|
|
3094
|
-
providedIn: 'root'
|
|
3095
|
-
}]
|
|
3096
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3097
|
-
|
|
3098
2509
|
class ProveedorCuentaBancoService extends CrudService {
|
|
3099
2510
|
constructor(httpClient) {
|
|
3100
2511
|
super(httpClient, '/proveedorCuentaBanco');
|
|
@@ -3104,15 +2515,15 @@ class ProveedorCuentaBancoService extends CrudService {
|
|
|
3104
2515
|
let p = { 'cuentas': params };
|
|
3105
2516
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
3106
2517
|
}
|
|
3107
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3108
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2518
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2519
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorCuentaBancoService, providedIn: 'root' }); }
|
|
3109
2520
|
}
|
|
3110
|
-
(
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
2521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorCuentaBancoService, decorators: [{
|
|
2522
|
+
type: Injectable,
|
|
2523
|
+
args: [{
|
|
2524
|
+
providedIn: 'root'
|
|
2525
|
+
}]
|
|
2526
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3116
2527
|
|
|
3117
2528
|
class ProveedorFleteService extends CrudService {
|
|
3118
2529
|
constructor(httpClient) {
|
|
@@ -3123,29 +2534,29 @@ class ProveedorFleteService extends CrudService {
|
|
|
3123
2534
|
let params = { fletes: p };
|
|
3124
2535
|
return this.save(params);
|
|
3125
2536
|
}
|
|
3126
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3127
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2537
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2538
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorFleteService, providedIn: 'root' }); }
|
|
3128
2539
|
}
|
|
3129
|
-
(
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
2540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ProveedorFleteService, decorators: [{
|
|
2541
|
+
type: Injectable,
|
|
2542
|
+
args: [{
|
|
2543
|
+
providedIn: 'root'
|
|
2544
|
+
}]
|
|
2545
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3135
2546
|
|
|
3136
2547
|
class ClaveAumentoDisminucionService extends CrudService {
|
|
3137
2548
|
constructor(http) {
|
|
3138
2549
|
super(http, 'claveAumentoDisminucion');
|
|
3139
2550
|
}
|
|
3140
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3141
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2551
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveAumentoDisminucionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2552
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveAumentoDisminucionService, providedIn: 'root' }); }
|
|
3142
2553
|
}
|
|
3143
|
-
(
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
2554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClaveAumentoDisminucionService, decorators: [{
|
|
2555
|
+
type: Injectable,
|
|
2556
|
+
args: [{
|
|
2557
|
+
providedIn: 'root'
|
|
2558
|
+
}]
|
|
2559
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3149
2560
|
|
|
3150
2561
|
class SerieDocumentoService extends CrudService {
|
|
3151
2562
|
constructor(httpClient) {
|
|
@@ -3158,15 +2569,15 @@ class SerieDocumentoService extends CrudService {
|
|
|
3158
2569
|
getReporte(params) {
|
|
3159
2570
|
return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
|
|
3160
2571
|
}
|
|
3161
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3162
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2572
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SerieDocumentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2573
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SerieDocumentoService, providedIn: 'root' }); }
|
|
3163
2574
|
}
|
|
3164
|
-
(
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
2575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SerieDocumentoService, decorators: [{
|
|
2576
|
+
type: Injectable,
|
|
2577
|
+
args: [{
|
|
2578
|
+
providedIn: 'root'
|
|
2579
|
+
}]
|
|
2580
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3170
2581
|
|
|
3171
2582
|
class SerieDocumento {
|
|
3172
2583
|
constructor() { }
|
|
@@ -3176,15 +2587,15 @@ class TipoContactoService extends CrudService {
|
|
|
3176
2587
|
constructor(http) {
|
|
3177
2588
|
super(http, '/tipoContacto');
|
|
3178
2589
|
}
|
|
3179
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3180
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2590
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TipoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2591
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TipoContactoService, providedIn: 'root' }); }
|
|
3181
2592
|
}
|
|
3182
|
-
(
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
2593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TipoContactoService, decorators: [{
|
|
2594
|
+
type: Injectable,
|
|
2595
|
+
args: [{
|
|
2596
|
+
providedIn: 'root'
|
|
2597
|
+
}]
|
|
2598
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3188
2599
|
|
|
3189
2600
|
class Ubicacion {
|
|
3190
2601
|
constructor() { }
|
|
@@ -3194,36 +2605,21 @@ class UbicacionService extends CrudService {
|
|
|
3194
2605
|
constructor(http) {
|
|
3195
2606
|
super(http, 'ubicacion');
|
|
3196
2607
|
}
|
|
3197
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3198
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2608
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UbicacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2609
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UbicacionService, providedIn: 'root' }); }
|
|
3199
2610
|
}
|
|
3200
|
-
(
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
2611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UbicacionService, decorators: [{
|
|
2612
|
+
type: Injectable,
|
|
2613
|
+
args: [{
|
|
2614
|
+
providedIn: 'root'
|
|
2615
|
+
}]
|
|
2616
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3206
2617
|
|
|
3207
2618
|
class TipoCatalogo {
|
|
3208
2619
|
static { this.ARTICULO = 2; }
|
|
3209
2620
|
static { this.USO_CFDI = 11; }
|
|
3210
2621
|
}
|
|
3211
2622
|
|
|
3212
|
-
class AcreedorService extends CrudService {
|
|
3213
|
-
constructor(httpClient) {
|
|
3214
|
-
super(httpClient, 'acreedor');
|
|
3215
|
-
this.httpClient = httpClient;
|
|
3216
|
-
}
|
|
3217
|
-
/** @nocollapse */ static { this.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3218
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' }); }
|
|
3219
|
-
}
|
|
3220
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
|
|
3221
|
-
type: Injectable,
|
|
3222
|
-
args: [{
|
|
3223
|
-
providedIn: 'root'
|
|
3224
|
-
}]
|
|
3225
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3226
|
-
|
|
3227
2623
|
class AcreedorCuentaContableService extends CrudService {
|
|
3228
2624
|
constructor(httpClient) {
|
|
3229
2625
|
super(httpClient, 'acreedorCuentaContable');
|
|
@@ -3233,15 +2629,15 @@ class AcreedorCuentaContableService extends CrudService {
|
|
|
3233
2629
|
let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
|
|
3234
2630
|
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
3235
2631
|
}
|
|
3236
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3237
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2632
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorCuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2633
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorCuentaContableService, providedIn: 'root' }); }
|
|
3238
2634
|
}
|
|
3239
|
-
(
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
2635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AcreedorCuentaContableService, decorators: [{
|
|
2636
|
+
type: Injectable,
|
|
2637
|
+
args: [{
|
|
2638
|
+
providedIn: 'root'
|
|
2639
|
+
}]
|
|
2640
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3245
2641
|
|
|
3246
2642
|
class CuentaContableModel {
|
|
3247
2643
|
constructor() {
|
|
@@ -3262,5 +2658,5 @@ class NormaInformacionFinancieraModel {
|
|
|
3262
2658
|
* Generated bundle index. Do not edit.
|
|
3263
2659
|
*/
|
|
3264
2660
|
|
|
3265
|
-
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, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
2661
|
+
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 };
|
|
3266
2662
|
//# sourceMappingURL=visorus-erp-core.mjs.map
|