visorus-erp-core 17.3.0 → 17.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/app.module.mjs +33 -34
- package/esm2022/lib/components/acreedor/services/acreedor.service.mjs +9 -9
- package/esm2022/lib/components/acreedor/services/acreedorCuentaContable.mjs +9 -9
- package/esm2022/lib/components/agente/services/agente.service.mjs +9 -9
- package/esm2022/lib/components/almacen/services/almacen.service.mjs +9 -9
- package/esm2022/lib/components/banco/services/banco.service.mjs +9 -9
- package/esm2022/lib/components/caja/session-create/session-create.component.mjs +19 -102
- package/esm2022/lib/components/caja/sessionCaja.service.mjs +9 -9
- package/esm2022/lib/components/catalogoTipo/services/catalogoTipo.service.mjs +9 -9
- package/esm2022/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs +9 -9
- package/esm2022/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs +9 -9
- package/esm2022/lib/components/claveMovimiento/services/claveMovimiento.service.mjs +9 -9
- package/esm2022/lib/components/cliente/services/cliente.service.mjs +9 -9
- package/esm2022/lib/components/cliente/services/clienteCuentaBanco.service.mjs +9 -9
- package/esm2022/lib/components/cliente/services/clienteFlete.service.mjs +9 -9
- package/esm2022/lib/components/contacto/services/datoContacto.service.mjs +9 -9
- package/esm2022/lib/components/dato-direccion/services/datoDireccion.service.mjs +9 -9
- package/esm2022/lib/components/departamento/services/departamento.service.mjs +9 -9
- package/esm2022/lib/components/empresa/services/empresa.service.mjs +9 -9
- package/esm2022/lib/components/error404/error404.component.mjs +7 -15
- package/esm2022/lib/components/flete/services/flete.service.mjs +9 -9
- package/esm2022/lib/components/formaPago/services/FormaPago.service.mjs +9 -9
- package/esm2022/lib/components/loading/loading.component.mjs +9 -25
- package/esm2022/lib/components/loading/loading.service.mjs +11 -11
- package/esm2022/lib/components/loading-screen/loading-screen.component.mjs +9 -14
- package/esm2022/lib/components/loading-screen/loading-screen.service.mjs +9 -9
- package/esm2022/lib/components/login-modal/login-modal.component.mjs +7 -85
- package/esm2022/lib/components/login-modal/login-modal.service.mjs +11 -11
- package/esm2022/lib/components/moneda/services/moneda.service.mjs +9 -9
- package/esm2022/lib/components/pdfModal/pdf-modal.component.mjs +56 -46
- package/esm2022/lib/components/pdfModal/pdf-modal.service.mjs +13 -13
- package/esm2022/lib/components/persona-fisica/services/personaFisica.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/services/proveedor.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/services/proveedorFlete.service.mjs +9 -9
- package/esm2022/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +13 -102
- package/esm2022/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs +9 -9
- package/esm2022/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +85 -400
- package/esm2022/lib/components/selecciona-articulo/stock.service.mjs +9 -9
- package/esm2022/lib/components/serieDocumento/services/serieDocumento.service.mjs +9 -9
- package/esm2022/lib/components/tipo-contacto/services/tipoContacto.service.mjs +9 -9
- package/esm2022/lib/components/ubicacion/services/ubicacion.service.mjs +9 -9
- package/esm2022/lib/contabilidad/componentes/cclista/cclista.component.mjs +13 -93
- package/esm2022/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +16 -40
- package/esm2022/lib/contabilidad/servicios/cuentacontable.service.mjs +9 -9
- package/esm2022/lib/httpInterceptor/httpInterceptor.mjs +6 -6
- package/esm2022/lib/services/auth.service.mjs +13 -13
- package/esm2022/lib/services/authenticated.service.mjs +9 -9
- package/esm2022/lib/services/canActivateGuard.service.ts.mjs +9 -9
- package/esm2022/lib/services/catalogo-adicional.service.mjs +9 -9
- package/esm2022/lib/services/controlAcceso.service.mjs +13 -13
- package/esm2022/lib/services/file.service.mjs +9 -9
- package/esm2022/lib/services/init.service.mjs +9 -9
- package/esm2022/lib/services/message.service.mjs +9 -9
- package/esm2022/lib/services/paginate.service.mjs +9 -9
- package/esm2022/lib/services/personaMoral.service.mjs +9 -9
- package/esm2022/lib/services/versionCheck.service.mjs +9 -9
- package/fesm2022/visorus-erp-core.mjs +653 -1341
- package/fesm2022/visorus-erp-core.mjs.map +1 -1
- package/lib/components/pdfModal/pdf-modal.component.d.ts +16 -3
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +16 -10
- package/package.json +2 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
2
|
+
import { Injectable, EventEmitter, Output, Input, Component, ViewChild, inject, 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
|
-
import * as
|
|
5
|
+
import * as i2 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';
|
|
@@ -12,17 +12,19 @@ import * as i18 from 'primeng/button';
|
|
|
12
12
|
import { ButtonModule } from 'primeng/button';
|
|
13
13
|
import * as i19 from 'primeng/inputtext';
|
|
14
14
|
import { InputTextModule } from 'primeng/inputtext';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i7 from '@angular/forms';
|
|
16
16
|
import { FormsModule } from '@angular/forms';
|
|
17
17
|
import * as i30 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
|
-
import { Subject, throwError, of } from 'rxjs';
|
|
19
|
+
import { Subject, throwError, of, Subscription } 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 i2 from '@ngx-translate/core';
|
|
23
|
+
import * as i2$1 from '@ngx-translate/core';
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
25
|
import * as i3$1 from '@angular/platform-browser';
|
|
26
|
+
import * as i10 from 'primeng/tooltip';
|
|
27
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
26
28
|
import * as i15 from 'primeng/table';
|
|
27
29
|
import { TableModule } from 'primeng/table';
|
|
28
30
|
import * as i24 from 'primeng/paginator';
|
|
@@ -65,8 +67,6 @@ import * as i37 from 'primeng/tabmenu';
|
|
|
65
67
|
import { TabMenuModule } from 'primeng/tabmenu';
|
|
66
68
|
import * as i11 from 'primeng/overlaypanel';
|
|
67
69
|
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
|
68
|
-
import * as i10 from 'primeng/tooltip';
|
|
69
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
70
70
|
import * as i9 from 'primeng/card';
|
|
71
71
|
import { CardModule } from 'primeng/card';
|
|
72
72
|
import * as i38 from 'primeng/menubar';
|
|
@@ -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: "17.3.12", ngImport: i0, type: CuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
188
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CuentaContableService, providedIn: 'root' }); }
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", ngImport: i0, type: CclistaComponent, deps: [{ token: CuentaContableService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
356
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CclistaComponent, 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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i16.TreeTable, selector: "p-treeTable", 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"], outputs: ["selectionChange", "contextMenuSelectionChange", "onFilter", "onNodeExpand", "onNodeCollapse", "onPage", "onSort", "onLazyLoad", "sortFunction", "onColResize", "onColReorder", "onNodeSelect", "onNodeUnselect", "onContextMenuSelect", "onHeaderCheckboxToggle", "onEditInit", "onEditComplete", "onEditCancel"] }, { kind: "component", type: i16.TreeTableToggler, selector: "p-treeTableToggler", inputs: ["rowNode"] }, { kind: "directive", type: i18.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i19.InputText, selector: "[pInputText]" }, { kind: "directive", type: i7.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: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.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: "17.3.12", ngImport: i0, type: CclistaComponent, decorators: [{
|
|
359
|
+
type: Component,
|
|
360
|
+
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>" }]
|
|
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: "17.3.12", ngImport: i0, type: CcseleccionDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
390
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CcseleccionDialogComponent, 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: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], 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: "17.3.12", ngImport: i0, type: CcseleccionDialogComponent, decorators: [{
|
|
393
|
+
type: Component,
|
|
394
|
+
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>" }]
|
|
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: "17.3.12", ngImport: i0, type: LoginModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
419
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalService, providedIn: 'root' }); }
|
|
524
420
|
}
|
|
525
|
-
(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", ngImport: i0, type: LoadingScreenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
449
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenService, providedIn: 'root' }); }
|
|
554
450
|
}
|
|
555
|
-
(
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", 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: "17.3.12", ngImport: i0, type: httpInterceptor }); }
|
|
637
533
|
}
|
|
638
|
-
(
|
|
639
|
-
|
|
640
|
-
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", ngImport: i0, type: Error404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
543
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: Error404Component, 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: "17.3.12", ngImport: i0, type: Error404Component, decorators: [{
|
|
546
|
+
type: Component,
|
|
547
|
+
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"] }]
|
|
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: "17.3.12", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
567
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingService, providedIn: 'root' }); }
|
|
680
568
|
}
|
|
681
|
-
(
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
597
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoadingComponent, 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: i2$1.TranslatePipe, name: "translate" }] }); }
|
|
598
|
+
}
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
600
|
+
type: Component,
|
|
601
|
+
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"] }]
|
|
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: "17.3.12", 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: "17.3.12", type: LoadingScreenComponent, 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: "17.3.12", ngImport: i0, type: LoadingScreenComponent, decorators: [{
|
|
633
|
+
type: Component,
|
|
634
|
+
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"] }]
|
|
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: "17.3.12", ngImport: i0, type: PdfModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
653
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", 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: "17.3.12", 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,62 +715,79 @@ 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: "17.3.12", ngImport: i0, type: FileService, deps: [{ token: i1$1.ToastrService }, { token: i2$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
719
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
720
|
+
}
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileService, decorators: [{
|
|
722
|
+
type: Injectable,
|
|
723
|
+
args: [{
|
|
724
|
+
providedIn: 'root'
|
|
725
|
+
}]
|
|
726
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }, { type: i2$1.TranslateService }] });
|
|
727
|
+
|
|
872
728
|
class PdfModalComponent {
|
|
873
729
|
constructor(_pdfModalService, fileService, domSanitizer) {
|
|
874
730
|
this._pdfModalService = _pdfModalService;
|
|
875
731
|
this.fileService = fileService;
|
|
876
732
|
this.domSanitizer = domSanitizer;
|
|
877
733
|
this.display = false;
|
|
878
|
-
this.
|
|
734
|
+
this.pdfUrl = null;
|
|
735
|
+
this.modo = 'pdf';
|
|
879
736
|
this.size = 840;
|
|
880
|
-
|
|
737
|
+
this.objectUrl = null;
|
|
738
|
+
this.subscriptions = new Subscription();
|
|
739
|
+
this.subscriptions.add(_pdfModalService.visible.subscribe(resp => {
|
|
881
740
|
if (_pdfModalService.base_64) {
|
|
741
|
+
this.modo = 'pdf';
|
|
742
|
+
this.cargarPdf(_pdfModalService.base_64);
|
|
882
743
|
this.display = resp;
|
|
883
|
-
this.pdfBase64 = _pdfModalService.base_64;
|
|
884
|
-
/*
|
|
885
|
-
let blob = fileService.base64ToBlob(_pdfModalService.base_64, "application/pdf");
|
|
886
|
-
let blobUrl = URL.createObjectURL(blob);
|
|
887
|
-
setTimeout(() => {
|
|
888
|
-
let iframe = "<iframe width='100%' height='100%' src='" + blobUrl + "'></iframe>";
|
|
889
|
-
document.getElementById('_modal_pdf').innerHTML = iframe;
|
|
890
|
-
},20); */
|
|
891
744
|
}
|
|
892
|
-
});
|
|
893
|
-
_pdfModalService.print.subscribe((resp) => {
|
|
745
|
+
}));
|
|
746
|
+
this.subscriptions.add(_pdfModalService.print.subscribe((resp) => {
|
|
747
|
+
this.modo = 'print';
|
|
748
|
+
this.liberarPdf();
|
|
894
749
|
this.display = resp;
|
|
895
750
|
setTimeout(() => {
|
|
896
751
|
let iframe = "<iframe id='printf' width='100%' height='100%' ></iframe>";
|
|
897
|
-
document.getElementById('_modal_pdf')
|
|
752
|
+
let contenedor = document.getElementById('_modal_pdf');
|
|
753
|
+
if (contenedor) {
|
|
754
|
+
contenedor.innerHTML = iframe;
|
|
755
|
+
}
|
|
898
756
|
}, 20);
|
|
899
757
|
setTimeout(() => {
|
|
900
758
|
this.imprimir();
|
|
901
759
|
}, 40);
|
|
902
|
-
});
|
|
760
|
+
}));
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* El base64 se convierte a blob una sola vez y la URL se sanitiza aquí, no en el
|
|
764
|
+
* template: sanitizar dentro del binding regresa un objeto nuevo en cada ciclo de
|
|
765
|
+
* detección de cambios, lo que recarga el iframe una y otra vez (parpadeo).
|
|
766
|
+
*/
|
|
767
|
+
cargarPdf(base64) {
|
|
768
|
+
this.liberarPdf();
|
|
769
|
+
let blob = this.fileService.base64ToBlob(base64, 'application/pdf');
|
|
770
|
+
this.objectUrl = URL.createObjectURL(blob);
|
|
771
|
+
this.pdfUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(this.objectUrl);
|
|
772
|
+
}
|
|
773
|
+
liberarPdf() {
|
|
774
|
+
if (this.objectUrl) {
|
|
775
|
+
URL.revokeObjectURL(this.objectUrl);
|
|
776
|
+
this.objectUrl = null;
|
|
777
|
+
}
|
|
778
|
+
this.pdfUrl = null;
|
|
779
|
+
}
|
|
780
|
+
cerrar() {
|
|
781
|
+
this.display = false;
|
|
782
|
+
this.liberarPdf();
|
|
903
783
|
}
|
|
904
784
|
imprimir() {
|
|
905
785
|
var iframe = window.frames['printf'];
|
|
906
|
-
iframe
|
|
786
|
+
if (!iframe) {
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
789
|
+
let doc = iframe.document || iframe.contentDocument;
|
|
790
|
+
doc.head.innerHTML = ` <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
907
791
|
<style>
|
|
908
792
|
.table-hover tbody tr:hover {
|
|
909
793
|
color: #ffffff;
|
|
@@ -928,29 +812,21 @@ class PdfModalComponent {
|
|
|
928
812
|
background: #b9d2a0;
|
|
929
813
|
}
|
|
930
814
|
</style>`;
|
|
931
|
-
|
|
815
|
+
doc.body.innerHTML = this._pdfModalService.html;
|
|
932
816
|
//iframe.focus();
|
|
933
817
|
// iframe.contentWindow.print();
|
|
934
818
|
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
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" }); })();
|
|
819
|
+
ngOnDestroy() {
|
|
820
|
+
this.subscriptions.unsubscribe();
|
|
821
|
+
this.liberarPdf();
|
|
822
|
+
}
|
|
823
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalComponent, deps: [{ token: PdfModalService }, { token: FileService }, { token: i3$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
824
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PdfModalComponent, selector: "pdf-modal", ngImport: i0, template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [maximizable]=\"true\" [breakpoint]=\"840\"\n [contentStyle]=\"{'overflow':'visible'}\" (onHide)=\"cerrar()\">\n <div *ngIf=\"pdfUrl\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh; border: 0;\" [src]=\"pdfUrl\"></iframe>\n </div>\n <div *ngIf=\"modo === 'print'\" id=\"_modal_pdf\" style=\"min-height: 90vh;\"></div>\n</p-dialog>\n", styles: [".down{display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
825
|
+
}
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalComponent, decorators: [{
|
|
827
|
+
type: Component,
|
|
828
|
+
args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [maximizable]=\"true\" [breakpoint]=\"840\"\n [contentStyle]=\"{'overflow':'visible'}\" (onHide)=\"cerrar()\">\n <div *ngIf=\"pdfUrl\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh; border: 0;\" [src]=\"pdfUrl\"></iframe>\n </div>\n <div *ngIf=\"modo === 'print'\" id=\"_modal_pdf\" style=\"min-height: 90vh;\"></div>\n</p-dialog>\n", styles: [".down{display:block}\n"] }]
|
|
829
|
+
}], ctorParameters: () => [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }] });
|
|
954
830
|
|
|
955
831
|
class Usuario {
|
|
956
832
|
}
|
|
@@ -1162,81 +1038,20 @@ class AuthService {
|
|
|
1162
1038
|
this.url_host = config.url;
|
|
1163
1039
|
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
|
|
1164
1040
|
}
|
|
1165
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1166
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1167
|
-
}
|
|
1168
|
-
(
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
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
|
-
} }
|
|
1041
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1042
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
1043
|
+
}
|
|
1044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, decorators: [{
|
|
1045
|
+
type: Injectable,
|
|
1046
|
+
args: [{
|
|
1047
|
+
providedIn: 'root'
|
|
1048
|
+
}]
|
|
1049
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }], propDecorators: { login: [{
|
|
1050
|
+
type: Output
|
|
1051
|
+
}], seleccionEmpresa: [{
|
|
1052
|
+
type: Output
|
|
1053
|
+
}] } });
|
|
1054
|
+
|
|
1240
1055
|
class LoginModalComponent {
|
|
1241
1056
|
constructor(loginModalService, authService) {
|
|
1242
1057
|
this.loginModalService = loginModalService;
|
|
@@ -1295,112 +1110,29 @@ class LoginModalComponent {
|
|
|
1295
1110
|
this.modal = false;
|
|
1296
1111
|
});
|
|
1297
1112
|
}
|
|
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" }); })();
|
|
1113
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalComponent, deps: [{ token: LoginModalService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1114
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoginModalComponent, selector: "app-login-modal", ngImport: i0, 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"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.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: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1115
|
+
}
|
|
1116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalComponent, decorators: [{
|
|
1117
|
+
type: Component,
|
|
1118
|
+
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"] }]
|
|
1119
|
+
}], ctorParameters: () => [{ type: LoginModalService }, { type: AuthService }] });
|
|
1322
1120
|
|
|
1323
1121
|
class SessionCajaService extends CrudService {
|
|
1324
1122
|
constructor(httpClient) {
|
|
1325
1123
|
super(httpClient, 'sessionCaja');
|
|
1326
1124
|
this.httpClient = httpClient;
|
|
1327
1125
|
}
|
|
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
|
-
} }
|
|
1126
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1127
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, providedIn: 'root' }); }
|
|
1128
|
+
}
|
|
1129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, decorators: [{
|
|
1130
|
+
type: Injectable,
|
|
1131
|
+
args: [{
|
|
1132
|
+
providedIn: 'root'
|
|
1133
|
+
}]
|
|
1134
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1135
|
+
|
|
1404
1136
|
class SessionCreateComponent {
|
|
1405
1137
|
constructor(sessionCajaService) {
|
|
1406
1138
|
this.sessionCajaService = sessionCajaService;
|
|
@@ -1469,42 +1201,25 @@ class SessionCreateComponent {
|
|
|
1469
1201
|
this.status.emit({ status: false, update: this.resp.data });
|
|
1470
1202
|
}
|
|
1471
1203
|
}
|
|
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
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1492
|
-
type: Component,
|
|
1493
|
-
args: [{ selector: 'session-create', template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>" }]
|
|
1494
|
-
}], () => [{ type: SessionCajaService }], { showCreateSession: [{
|
|
1495
|
-
type: Input
|
|
1496
|
-
}], caja: [{
|
|
1497
|
-
type: Input
|
|
1498
|
-
}], monedaDenominacionList: [{
|
|
1499
|
-
type: Input
|
|
1500
|
-
}], sessionEdit: [{
|
|
1501
|
-
type: Input
|
|
1502
|
-
}], status: [{
|
|
1503
|
-
type: Output
|
|
1504
|
-
}], success: [{
|
|
1505
|
-
type: Output
|
|
1506
|
-
}] }); })();
|
|
1507
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SessionCreateComponent, { className: "SessionCreateComponent" }); })();
|
|
1204
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCreateComponent, deps: [{ token: SessionCajaService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1205
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SessionCreateComponent, 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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i18.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i19.InputText, selector: "[pInputText]" }, { kind: "directive", type: i7.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: i7.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1206
|
+
}
|
|
1207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCreateComponent, decorators: [{
|
|
1208
|
+
type: Component,
|
|
1209
|
+
args: [{ selector: 'session-create', template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>" }]
|
|
1210
|
+
}], ctorParameters: () => [{ type: SessionCajaService }], propDecorators: { showCreateSession: [{
|
|
1211
|
+
type: Input
|
|
1212
|
+
}], caja: [{
|
|
1213
|
+
type: Input
|
|
1214
|
+
}], monedaDenominacionList: [{
|
|
1215
|
+
type: Input
|
|
1216
|
+
}], sessionEdit: [{
|
|
1217
|
+
type: Input
|
|
1218
|
+
}], status: [{
|
|
1219
|
+
type: Output
|
|
1220
|
+
}], success: [{
|
|
1221
|
+
type: Output
|
|
1222
|
+
}] } });
|
|
1508
1223
|
|
|
1509
1224
|
class PaginateService {
|
|
1510
1225
|
constructor(translate) {
|
|
@@ -1550,15 +1265,15 @@ class PaginateService {
|
|
|
1550
1265
|
}, erro => { });
|
|
1551
1266
|
return ordenar;
|
|
1552
1267
|
}
|
|
1553
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1554
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1268
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, deps: [{ token: i2$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1269
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, providedIn: "root" }); }
|
|
1555
1270
|
}
|
|
1556
|
-
(
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, decorators: [{
|
|
1272
|
+
type: Injectable,
|
|
1273
|
+
args: [{
|
|
1274
|
+
providedIn: "root"
|
|
1275
|
+
}]
|
|
1276
|
+
}], ctorParameters: () => [{ type: i2$1.TranslateService }] });
|
|
1562
1277
|
|
|
1563
1278
|
class AlmacenService extends CrudService {
|
|
1564
1279
|
constructor(httpClient) {
|
|
@@ -1569,15 +1284,15 @@ class AlmacenService extends CrudService {
|
|
|
1569
1284
|
let url = this.geturl() + '/obtenerAlmacenEmpresa';
|
|
1570
1285
|
return this.getHttp().get(url, this.buildAuth());
|
|
1571
1286
|
}
|
|
1572
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1573
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1287
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1288
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, providedIn: 'root' }); }
|
|
1574
1289
|
}
|
|
1575
|
-
(
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, decorators: [{
|
|
1291
|
+
type: Injectable,
|
|
1292
|
+
args: [{
|
|
1293
|
+
providedIn: 'root'
|
|
1294
|
+
}]
|
|
1295
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1581
1296
|
|
|
1582
1297
|
class StockService extends CrudService {
|
|
1583
1298
|
constructor(httpClient) {
|
|
@@ -1595,15 +1310,15 @@ class StockService extends CrudService {
|
|
|
1595
1310
|
});
|
|
1596
1311
|
return promesa;
|
|
1597
1312
|
}
|
|
1598
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1599
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1313
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1314
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, providedIn: 'root' }); }
|
|
1600
1315
|
}
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, decorators: [{
|
|
1317
|
+
type: Injectable,
|
|
1318
|
+
args: [{
|
|
1319
|
+
providedIn: 'root'
|
|
1320
|
+
}]
|
|
1321
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1607
1322
|
|
|
1608
1323
|
class ArticuloInformacionService extends CrudService {
|
|
1609
1324
|
constructor(httpClient) {
|
|
@@ -1614,86 +1329,16 @@ class ArticuloInformacionService extends CrudService {
|
|
|
1614
1329
|
let uRL = "/existenciasArticulo/" + articulo;
|
|
1615
1330
|
return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
|
|
1616
1331
|
}
|
|
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
|
-
} }
|
|
1332
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1333
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, providedIn: 'root' }); }
|
|
1334
|
+
}
|
|
1335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, decorators: [{
|
|
1336
|
+
type: Injectable,
|
|
1337
|
+
args: [{
|
|
1338
|
+
providedIn: 'root'
|
|
1339
|
+
}]
|
|
1340
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1341
|
+
|
|
1697
1342
|
class SeleccionArticuloInformacionComponent {
|
|
1698
1343
|
constructor(articuloInformacionService) {
|
|
1699
1344
|
this.articuloInformacionService = articuloInformacionService;
|
|
@@ -1733,351 +1378,39 @@ class SeleccionArticuloInformacionComponent {
|
|
|
1733
1378
|
onSelectedUbicacion(ubicacionRow) {
|
|
1734
1379
|
this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
|
|
1735
1380
|
}
|
|
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
|
-
} }
|
|
1381
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionArticuloInformacionComponent, deps: [{ token: ArticuloInformacionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1382
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SeleccionArticuloInformacionComponent, 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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i15.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", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], 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: i15.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { kind: "directive", type: i18.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1383
|
+
}
|
|
1384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionArticuloInformacionComponent, decorators: [{
|
|
1385
|
+
type: Component,
|
|
1386
|
+
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>" }]
|
|
1387
|
+
}], ctorParameters: () => [{ type: ArticuloInformacionService }], propDecorators: { showModal: [{
|
|
1388
|
+
type: Input
|
|
1389
|
+
}], articulo: [{
|
|
1390
|
+
type: Input
|
|
1391
|
+
}], eventSelection: [{
|
|
1392
|
+
type: Output
|
|
1393
|
+
}] } });
|
|
1394
|
+
|
|
2063
1395
|
class SeleccionaArticuloComponent {
|
|
2064
|
-
constructor(
|
|
2065
|
-
this._stockService = _stockService;
|
|
2066
|
-
this._paginateService = _paginateService;
|
|
2067
|
-
this._almacenService = _almacenService;
|
|
1396
|
+
constructor() {
|
|
2068
1397
|
this.manejaUnidadSecundaria = false;
|
|
2069
1398
|
this.emitFilaSeleccionada = new EventEmitter();
|
|
2070
1399
|
this.emitShowArticulos = new EventEmitter();
|
|
1400
|
+
this._stockService = inject(StockService);
|
|
1401
|
+
this._paginateService = inject(PaginateService);
|
|
1402
|
+
this._almacenService = inject(AlmacenService);
|
|
2071
1403
|
this.articulosList = [];
|
|
2072
1404
|
this.ordenar = [];
|
|
2073
1405
|
this.busquedaArticulos = {
|
|
2074
1406
|
tipoBusqueda: ''
|
|
2075
1407
|
};
|
|
1408
|
+
this.cargando = false;
|
|
2076
1409
|
this.showModal = false;
|
|
2077
1410
|
this.showModalInformacion = false;
|
|
2078
1411
|
this.showFirstTime = true;
|
|
2079
1412
|
this.clasificadorList = [];
|
|
2080
|
-
this.
|
|
1413
|
+
this.maximizado = false;
|
|
2081
1414
|
}
|
|
2082
1415
|
ngOnInit() {
|
|
2083
1416
|
this.page = this._paginateService.getPage();
|
|
@@ -2087,9 +1420,39 @@ class SeleccionaArticuloComponent {
|
|
|
2087
1420
|
this.showFirstTime = true;
|
|
2088
1421
|
this._almacenService.getAll(this.configuracion.params).subscribe((data) => {
|
|
2089
1422
|
this.almacenList = data.data;
|
|
1423
|
+
// El valor se reaplica cuando las opciones ya existen en el select
|
|
1424
|
+
setTimeout(() => { this.almacenSeleccionado = this.almacenId; });
|
|
2090
1425
|
});
|
|
2091
1426
|
this.busquedaArticulos.tipoBusqueda = 'CD';
|
|
2092
|
-
|
|
1427
|
+
}
|
|
1428
|
+
/** Id del almacén del movimiento; acepta tanto id numérico como objeto Almacen. */
|
|
1429
|
+
get almacenId() {
|
|
1430
|
+
const almacen = this.movimiento ? this.movimiento.almacen : null;
|
|
1431
|
+
return (almacen && typeof almacen === 'object') ? almacen.id : almacen;
|
|
1432
|
+
}
|
|
1433
|
+
/** Número de columnas visibles de la tabla, para el colspan del estado vacío. */
|
|
1434
|
+
get totalColumnas() {
|
|
1435
|
+
let total = 6; // ubicación, existencia, unidad, código, descripción, detalle
|
|
1436
|
+
if (this.manejaUnidadSecundaria) {
|
|
1437
|
+
total += 2;
|
|
1438
|
+
}
|
|
1439
|
+
total += (this.configuracion && this.configuracion.tipoPrecio === 'costo') ? 1 : 5;
|
|
1440
|
+
if (this.mostrarExistenciaPorUnidad) {
|
|
1441
|
+
total += 1;
|
|
1442
|
+
}
|
|
1443
|
+
return total + (this.clasificadorList ? this.clasificadorList.length : 0);
|
|
1444
|
+
}
|
|
1445
|
+
/** La columna "Existencia por Unidad" solo se muestra si algún artículo trae datos. */
|
|
1446
|
+
get mostrarExistenciaPorUnidad() {
|
|
1447
|
+
return Array.isArray(this.articulosList) &&
|
|
1448
|
+
this.articulosList.some((row) => row.existenciaUnidades && row.existenciaUnidades.length > 0);
|
|
1449
|
+
}
|
|
1450
|
+
/** Altura del cuerpo del diálogo: ocupa el viewport y crece al maximizar. */
|
|
1451
|
+
get estiloContenido() {
|
|
1452
|
+
const base = { display: 'flex', 'flex-direction': 'column', 'min-height': '0' };
|
|
1453
|
+
return this.maximizado
|
|
1454
|
+
? { ...base, flex: '1 1 auto' }
|
|
1455
|
+
: { ...base, height: 'calc(90vh - 9.5rem)' };
|
|
2093
1456
|
}
|
|
2094
1457
|
pagina(e) {
|
|
2095
1458
|
this.page.rows = e.rows;
|
|
@@ -2102,8 +1465,19 @@ class SeleccionaArticuloComponent {
|
|
|
2102
1465
|
this.obtenerExistenciaArticulos();
|
|
2103
1466
|
this.showFirstTime = false;
|
|
2104
1467
|
}
|
|
1468
|
+
// El diálogo termina de montar su contenido después del evento onShow
|
|
1469
|
+
setTimeout(() => {
|
|
1470
|
+
if (this.campoBusqueda) {
|
|
1471
|
+
this.campoBusqueda.nativeElement.focus();
|
|
1472
|
+
}
|
|
1473
|
+
});
|
|
2105
1474
|
}
|
|
2106
1475
|
obtenerExistenciaArticulos() {
|
|
1476
|
+
if (this.busquedaArticulos.tipoBusqueda && !this.busquedaArticulos.key) {
|
|
1477
|
+
// Sin término de búsqueda el backend no regresa resultados
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1480
|
+
this.cargando = true;
|
|
2107
1481
|
this.busquedaArticulos.params = this._paginateService.getParams(this.page);
|
|
2108
1482
|
const parametros = {
|
|
2109
1483
|
almacen: (this.configuracion.noOcupaAlamacen ? null : this.movimiento.almacen),
|
|
@@ -2121,8 +1495,11 @@ class SeleccionaArticuloComponent {
|
|
|
2121
1495
|
if (!this.showModal) {
|
|
2122
1496
|
this.showModal = true;
|
|
2123
1497
|
}
|
|
1498
|
+
this.cargando = false;
|
|
2124
1499
|
}).catch(e => {
|
|
2125
1500
|
this.articulosList = [];
|
|
1501
|
+
this.page.total = 0;
|
|
1502
|
+
this.cargando = false;
|
|
2126
1503
|
});
|
|
2127
1504
|
}
|
|
2128
1505
|
obtenerExistenciaArticulosVal() {
|
|
@@ -2140,9 +1517,6 @@ class SeleccionaArticuloComponent {
|
|
|
2140
1517
|
emitirShowArticulos() {
|
|
2141
1518
|
this.emitShowArticulos.emit(0);
|
|
2142
1519
|
}
|
|
2143
|
-
seriesArticulo(series) {
|
|
2144
|
-
console.log(series);
|
|
2145
|
-
}
|
|
2146
1520
|
onShowInformacion(eventArticulo) {
|
|
2147
1521
|
this.articuloSelected = eventArticulo;
|
|
2148
1522
|
this.showModalInformacion = true;
|
|
@@ -2150,89 +1524,28 @@ class SeleccionaArticuloComponent {
|
|
|
2150
1524
|
onEventInformacion(event) {
|
|
2151
1525
|
this.showModalInformacion = event.status;
|
|
2152
1526
|
}
|
|
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
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
i0.ɵɵelementStart(15, "input", 11);
|
|
2176
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.busquedaArticulos.key, $event) || (ctx.busquedaArticulos.key = $event); return i0.ɵɵresetView($event); });
|
|
2177
|
-
i0.ɵɵlistener("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosKey($event)); });
|
|
2178
|
-
i0.ɵɵelementEnd();
|
|
2179
|
-
i0.ɵɵelementStart(16, "button", 12);
|
|
2180
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulos()); });
|
|
2181
|
-
i0.ɵɵelementEnd()()();
|
|
2182
|
-
i0.ɵɵelementStart(17, "div", 3)(18, "div", 4)(19, "div", 13)(20, "label", 14);
|
|
2183
|
-
i0.ɵɵtext(21, "Almacen:");
|
|
2184
|
-
i0.ɵɵelementEnd()();
|
|
2185
|
-
i0.ɵɵelementStart(22, "select", 15);
|
|
2186
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.movimiento.almacen, $event) || (ctx.movimiento.almacen = $event); return i0.ɵɵresetView($event); });
|
|
2187
|
-
i0.ɵɵlistener("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.obtenerExistenciaArticulosVal()); });
|
|
2188
|
-
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 16);
|
|
2189
|
-
i0.ɵɵelementEnd()()()();
|
|
2190
|
-
i0.ɵɵelementStart(24, "p-table", 17, 0);
|
|
2191
|
-
i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.filaSeleccionada($event)); });
|
|
2192
|
-
i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18)(27, SeleccionaArticuloComponent_ng_template_27_Template, 24, 17, "ng-template", 19);
|
|
2193
|
-
i0.ɵɵelementEnd();
|
|
2194
|
-
i0.ɵɵelementStart(28, "p-paginator", 20);
|
|
2195
|
-
i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pagina($event)); });
|
|
2196
|
-
i0.ɵɵelementEnd()();
|
|
2197
|
-
i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
|
|
2198
|
-
} if (rf & 2) {
|
|
2199
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0, ctx.size + "px"));
|
|
2200
|
-
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 19, "Articulos"));
|
|
2201
|
-
i0.ɵɵtwoWayProperty("visible", ctx.showArticulos);
|
|
2202
|
-
i0.ɵɵproperty("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
|
|
2203
|
-
i0.ɵɵadvance(6);
|
|
2204
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.busquedaArticulos.tipoBusqueda);
|
|
2205
|
-
i0.ɵɵadvance(9);
|
|
2206
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.busquedaArticulos.key);
|
|
2207
|
-
i0.ɵɵadvance(7);
|
|
2208
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.movimiento.almacen);
|
|
2209
|
-
i0.ɵɵadvance();
|
|
2210
|
-
i0.ɵɵproperty("ngForOf", ctx.almacenList);
|
|
2211
|
-
i0.ɵɵadvance();
|
|
2212
|
-
i0.ɵɵproperty("value", ctx.articulosList)("scrollable", true);
|
|
2213
|
-
i0.ɵɵadvance(4);
|
|
2214
|
-
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(23, _c1));
|
|
2215
|
-
i0.ɵɵadvance();
|
|
2216
|
-
i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2217
|
-
} }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i15.Table, i15.SelectableRow, i18.ButtonDirective, i19.InputText, i24.Paginator, i4$1.NgSelectOption, i4$1.ɵNgSelectMultipleOption, i4$1.DefaultValueAccessor, i4$1.SelectControlValueAccessor, i4$1.NgControlStatus, i4$1.NgModel, i30.Dialog, i2.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i2.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] }); }
|
|
2218
|
-
}
|
|
2219
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2220
|
-
type: Component,
|
|
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
|
-
}], () => [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }], { configuracion: [{
|
|
2223
|
-
type: Input
|
|
2224
|
-
}], showArticulos: [{
|
|
2225
|
-
type: Input
|
|
2226
|
-
}], movimiento: [{
|
|
2227
|
-
type: Input
|
|
2228
|
-
}], manejaUnidadSecundaria: [{
|
|
2229
|
-
type: Input
|
|
2230
|
-
}], emitFilaSeleccionada: [{
|
|
2231
|
-
type: Output
|
|
2232
|
-
}], emitShowArticulos: [{
|
|
2233
|
-
type: Output
|
|
2234
|
-
}] }); })();
|
|
2235
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionaArticuloComponent, { className: "SeleccionaArticuloComponent" }); })();
|
|
1527
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionaArticuloComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1528
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SeleccionaArticuloComponent, selector: "app-selecciona-articulo", inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, viewQueries: [{ propertyName: "campoBusqueda", first: true, predicate: ["campoBusqueda"], descendants: true }], ngImport: i0, template: "<!--inicia seleccion de articulos-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n (onMaximize)=\"maximizado = $event.maximized\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{ width: '95vw' }\" [minY]=\"70\"\n [contentStyle]=\"estiloContenido\">\n\n <div class=\"sa-cuerpo\">\n\n <div class=\"grid sa-filtros\">\n <div class=\"col-12 md:col-6 xl:col-5\">\n <label class=\"sa-etiqueta\" for=\"sa-tipo-busqueda\">Buscar por</label>\n <div class=\"p-inputgroup\">\n <select pInputText class=\"sa-tipo-busqueda\" id=\"sa-tipo-busqueda\"\n [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">C\u00F3digo</option>\n <option value=\"D\">Descripci\u00F3n</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n <input pInputText type=\"text\" class=\"sa-campo-busqueda\" id=\"sa-campo-busqueda\" #campoBusqueda\n placeholder=\"T\u00E9rmino de b\u00FAsqueda\" [(ngModel)]=\"busquedaArticulos.key\"\n (keydown.enter)=\"obtenerExistenciaArticulos()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" aria-label=\"Buscar\"\n (click)=\"obtenerExistenciaArticulos()\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 xl:col-5\">\n <label class=\"sa-etiqueta\" for=\"sa-almacen\">Almac\u00E9n</label>\n <select pInputText class=\"sa-almacen\" id=\"sa-almacen\" disabled [ngModel]=\"almacenSeleccionado\"\n [ngModelOptions]=\"{ standalone: true }\">\n @for (almacen of almacenList; track almacen.id) {\n <option [ngValue]=\"almacen.id\">{{ almacen.descripcion }}</option>\n }\n </select>\n </div>\n </div>\n\n <p-table #dt [value]=\"articulosList\" [scrollable]=\"true\" scrollHeight=\"flex\" responsiveLayout=\"scroll\"\n selectionMode=\"single\" styleClass=\"p-datatable-sm\" [loading]=\"cargando\" class=\"sa-tabla\"\n (onRowSelect)=\"filaSeleccionada($event)\">\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th class=\"sa-col-ubicacion\" translate>C\u00F3digo Ubicacion</th>\n <th class=\"sa-num\" translate>Existencia</th>\n <th class=\"sa-col-unidad\" translate>Unidad</th>\n @if (manejaUnidadSecundaria) {\n <th class=\"sa-num\" translate>existenciaSecundaria</th>\n <th class=\"sa-col-unidad\" translate>Unidad</th>\n }\n <th class=\"sa-col-codigo\" translate>C\u00F3digo</th>\n <th class=\"sa-col-descripcion\" translate>Descripcion</th>\n <th class=\"sa-col-accion\"><span class=\"sa-sr-only\">Detalle</span></th>\n @if (configuracion.tipoPrecio !== 'costo') {\n <th class=\"sa-num\" translate>Precio</th>\n <th class=\"sa-num\" translate>Precio 2</th>\n <th class=\"sa-num\" translate>Precio 3</th>\n <th class=\"sa-num\" translate>Precio 4</th>\n <th class=\"sa-num\" translate>Precio 5</th>\n } @else {\n <th class=\"sa-num\" translate>Movimiento.costo</th>\n }\n @if (mostrarExistenciaPorUnidad) {\n <th class=\"sa-col-unidades\" translate>Existencia por Unidad</th>\n }\n @for (item of clasificadorList; track $index) {\n <th class=\"sa-col-clasificador\" translate>{{ item.descripcion }}</th>\n }\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"sa-col-ubicacion\">\n @if (rowData.ubicacionCodigo) {\n {{ rowData.ubicacionCodigo }}\n } @else {\n <span class=\"sa-sr-only\" translate>Movimiento.NoAsignado</span>\n }\n </td>\n <td class=\"sa-num\">{{ rowData.existencia }}</td>\n <td class=\"sa-col-unidad\">{{ rowData.unidadCodigo }}</td>\n @if (manejaUnidadSecundaria) {\n <td class=\"sa-num\">{{ rowData.existenciaSecundaria }}</td>\n <td class=\"sa-col-unidad\">{{ rowData.unidadSecundariaCodigo }}</td>\n }\n <td class=\"sa-col-codigo\">{{ rowData.articulo.codigo }}</td>\n <td class=\"sa-col-descripcion\" [pTooltip]=\"rowData.articulo.descripcion\" tooltipPosition=\"top\"\n [showDelay]=\"400\">{{ rowData.articulo.descripcion }}</td>\n <td class=\"sa-col-accion\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"p-button-text p-button-sm p-button-rounded\"\n [attr.aria-label]=\"'Ver informaci\u00F3n del art\u00EDculo ' + rowData.articulo.descripcion\"\n (click)=\"onShowInformacion(rowData)\"></button>\n </td>\n @if (configuracion.tipoPrecio !== 'costo') {\n <td class=\"sa-num\">{{ rowData.precioConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio2ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio3ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio4ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio5ConImpuestos | currency }}</td>\n } @else {\n <td class=\"sa-num\">{{ rowData.precio | currency }}</td>\n }\n @if (mostrarExistenciaPorUnidad) {\n <td class=\"sa-col-unidades\">\n @for (item of rowData.existenciaUnidades; track $index) {\n <div class=\"sa-unidad-existencia\">\n <span>{{ item.unidad_codigo }}</span>\n <span class=\"sa-num\">{{ item.unidad_existencia | number : '1.2-2' }}</span>\n </div>\n }\n </td>\n }\n @for (itemData of rowData.articuloClasificadorList; track $index) {\n <td class=\"sa-col-clasificador\">{{ itemData.valor }}</td>\n }\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"totalColumnas\">\n <div class=\"sa-vacio\">\n <i class=\"pi pi-search\" aria-hidden=\"true\"></i>\n @if (busquedaArticulos.key) {\n <p>Sin resultados para \u00AB{{ busquedaArticulos.key }}\u00BB. Prueba con otro t\u00E9rmino o tipo de b\u00FAsqueda.</p>\n } @else {\n <p>Escribe un t\u00E9rmino de b\u00FAsqueda y presiona <strong>Buscar</strong> para consultar la existencia de\n art\u00EDculos.</p>\n }\n </div>\n </td>\n </tr>\n </ng-template>\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</p-dialog>\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n@if (showModalInformacion) {\n <lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\">\n </lib-seleccion-articulo-informacion>\n}\n", styles: [".sa-cuerpo{display:flex;flex-direction:column;gap:.875rem;flex:1 1 auto;min-height:0}.sa-etiqueta{display:block;margin-bottom:.25rem;font-weight:600;color:#475569}.sa-tipo-busqueda{width:10.5rem;flex:0 0 auto}.sa-campo-busqueda{flex:1 1 auto;min-width:7rem}.sa-almacen{width:100%;max-width:22rem}p-table.sa-tabla{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.sa-col-ubicacion{width:7.5rem}.sa-col-codigo{width:6.5rem}.sa-col-unidad{width:4.5rem}.sa-col-accion{width:3.25rem;text-align:center}.sa-col-accion .p-button{width:1.85rem;height:1.85rem;padding:0}.sa-col-unidades{width:12rem}.sa-col-clasificador{width:6.5rem}.sa-col-descripcion{min-width:13rem;max-width:26rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sa-unidad-existencia{display:flex;justify-content:space-between;gap:.5rem}p-table.sa-tabla tr.p-highlight{background:#e3f2fd;color:#1565c0;font-weight:600}.sa-vacio{display:flex;align-items:center;gap:.75rem;padding:1.25rem .5rem;color:#64748b}.sa-vacio i{font-size:1.5rem;color:#94a3b8}.sa-vacio p{margin:0}.sa-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n"], dependencies: [{ kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i10.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i15.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", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], 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: i15.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i18.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i19.InputText, selector: "[pInputText]" }, { kind: "component", type: i24.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "directive", type: i7.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i7.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i7.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: i7.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i30.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i2$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: i2.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] }); }
|
|
1529
|
+
}
|
|
1530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionaArticuloComponent, decorators: [{
|
|
1531
|
+
type: Component,
|
|
1532
|
+
args: [{ selector: 'app-selecciona-articulo', template: "<!--inicia seleccion de articulos-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n (onMaximize)=\"maximizado = $event.maximized\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{ width: '95vw' }\" [minY]=\"70\"\n [contentStyle]=\"estiloContenido\">\n\n <div class=\"sa-cuerpo\">\n\n <div class=\"grid sa-filtros\">\n <div class=\"col-12 md:col-6 xl:col-5\">\n <label class=\"sa-etiqueta\" for=\"sa-tipo-busqueda\">Buscar por</label>\n <div class=\"p-inputgroup\">\n <select pInputText class=\"sa-tipo-busqueda\" id=\"sa-tipo-busqueda\"\n [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">C\u00F3digo</option>\n <option value=\"D\">Descripci\u00F3n</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n <input pInputText type=\"text\" class=\"sa-campo-busqueda\" id=\"sa-campo-busqueda\" #campoBusqueda\n placeholder=\"T\u00E9rmino de b\u00FAsqueda\" [(ngModel)]=\"busquedaArticulos.key\"\n (keydown.enter)=\"obtenerExistenciaArticulos()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" aria-label=\"Buscar\"\n (click)=\"obtenerExistenciaArticulos()\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 xl:col-5\">\n <label class=\"sa-etiqueta\" for=\"sa-almacen\">Almac\u00E9n</label>\n <select pInputText class=\"sa-almacen\" id=\"sa-almacen\" disabled [ngModel]=\"almacenSeleccionado\"\n [ngModelOptions]=\"{ standalone: true }\">\n @for (almacen of almacenList; track almacen.id) {\n <option [ngValue]=\"almacen.id\">{{ almacen.descripcion }}</option>\n }\n </select>\n </div>\n </div>\n\n <p-table #dt [value]=\"articulosList\" [scrollable]=\"true\" scrollHeight=\"flex\" responsiveLayout=\"scroll\"\n selectionMode=\"single\" styleClass=\"p-datatable-sm\" [loading]=\"cargando\" class=\"sa-tabla\"\n (onRowSelect)=\"filaSeleccionada($event)\">\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th class=\"sa-col-ubicacion\" translate>C\u00F3digo Ubicacion</th>\n <th class=\"sa-num\" translate>Existencia</th>\n <th class=\"sa-col-unidad\" translate>Unidad</th>\n @if (manejaUnidadSecundaria) {\n <th class=\"sa-num\" translate>existenciaSecundaria</th>\n <th class=\"sa-col-unidad\" translate>Unidad</th>\n }\n <th class=\"sa-col-codigo\" translate>C\u00F3digo</th>\n <th class=\"sa-col-descripcion\" translate>Descripcion</th>\n <th class=\"sa-col-accion\"><span class=\"sa-sr-only\">Detalle</span></th>\n @if (configuracion.tipoPrecio !== 'costo') {\n <th class=\"sa-num\" translate>Precio</th>\n <th class=\"sa-num\" translate>Precio 2</th>\n <th class=\"sa-num\" translate>Precio 3</th>\n <th class=\"sa-num\" translate>Precio 4</th>\n <th class=\"sa-num\" translate>Precio 5</th>\n } @else {\n <th class=\"sa-num\" translate>Movimiento.costo</th>\n }\n @if (mostrarExistenciaPorUnidad) {\n <th class=\"sa-col-unidades\" translate>Existencia por Unidad</th>\n }\n @for (item of clasificadorList; track $index) {\n <th class=\"sa-col-clasificador\" translate>{{ item.descripcion }}</th>\n }\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"sa-col-ubicacion\">\n @if (rowData.ubicacionCodigo) {\n {{ rowData.ubicacionCodigo }}\n } @else {\n <span class=\"sa-sr-only\" translate>Movimiento.NoAsignado</span>\n }\n </td>\n <td class=\"sa-num\">{{ rowData.existencia }}</td>\n <td class=\"sa-col-unidad\">{{ rowData.unidadCodigo }}</td>\n @if (manejaUnidadSecundaria) {\n <td class=\"sa-num\">{{ rowData.existenciaSecundaria }}</td>\n <td class=\"sa-col-unidad\">{{ rowData.unidadSecundariaCodigo }}</td>\n }\n <td class=\"sa-col-codigo\">{{ rowData.articulo.codigo }}</td>\n <td class=\"sa-col-descripcion\" [pTooltip]=\"rowData.articulo.descripcion\" tooltipPosition=\"top\"\n [showDelay]=\"400\">{{ rowData.articulo.descripcion }}</td>\n <td class=\"sa-col-accion\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"p-button-text p-button-sm p-button-rounded\"\n [attr.aria-label]=\"'Ver informaci\u00F3n del art\u00EDculo ' + rowData.articulo.descripcion\"\n (click)=\"onShowInformacion(rowData)\"></button>\n </td>\n @if (configuracion.tipoPrecio !== 'costo') {\n <td class=\"sa-num\">{{ rowData.precioConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio2ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio3ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio4ConImpuestos | currency }}</td>\n <td class=\"sa-num\">{{ rowData.precio5ConImpuestos | currency }}</td>\n } @else {\n <td class=\"sa-num\">{{ rowData.precio | currency }}</td>\n }\n @if (mostrarExistenciaPorUnidad) {\n <td class=\"sa-col-unidades\">\n @for (item of rowData.existenciaUnidades; track $index) {\n <div class=\"sa-unidad-existencia\">\n <span>{{ item.unidad_codigo }}</span>\n <span class=\"sa-num\">{{ item.unidad_existencia | number : '1.2-2' }}</span>\n </div>\n }\n </td>\n }\n @for (itemData of rowData.articuloClasificadorList; track $index) {\n <td class=\"sa-col-clasificador\">{{ itemData.valor }}</td>\n }\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"totalColumnas\">\n <div class=\"sa-vacio\">\n <i class=\"pi pi-search\" aria-hidden=\"true\"></i>\n @if (busquedaArticulos.key) {\n <p>Sin resultados para \u00AB{{ busquedaArticulos.key }}\u00BB. Prueba con otro t\u00E9rmino o tipo de b\u00FAsqueda.</p>\n } @else {\n <p>Escribe un t\u00E9rmino de b\u00FAsqueda y presiona <strong>Buscar</strong> para consultar la existencia de\n art\u00EDculos.</p>\n }\n </div>\n </td>\n </tr>\n </ng-template>\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</p-dialog>\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n@if (showModalInformacion) {\n <lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\">\n </lib-seleccion-articulo-informacion>\n}\n", styles: [".sa-cuerpo{display:flex;flex-direction:column;gap:.875rem;flex:1 1 auto;min-height:0}.sa-etiqueta{display:block;margin-bottom:.25rem;font-weight:600;color:#475569}.sa-tipo-busqueda{width:10.5rem;flex:0 0 auto}.sa-campo-busqueda{flex:1 1 auto;min-width:7rem}.sa-almacen{width:100%;max-width:22rem}p-table.sa-tabla{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.sa-col-ubicacion{width:7.5rem}.sa-col-codigo{width:6.5rem}.sa-col-unidad{width:4.5rem}.sa-col-accion{width:3.25rem;text-align:center}.sa-col-accion .p-button{width:1.85rem;height:1.85rem;padding:0}.sa-col-unidades{width:12rem}.sa-col-clasificador{width:6.5rem}.sa-col-descripcion{min-width:13rem;max-width:26rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sa-unidad-existencia{display:flex;justify-content:space-between;gap:.5rem}p-table.sa-tabla tr.p-highlight{background:#e3f2fd;color:#1565c0;font-weight:600}.sa-vacio{display:flex;align-items:center;gap:.75rem;padding:1.25rem .5rem;color:#64748b}.sa-vacio i{font-size:1.5rem;color:#94a3b8}.sa-vacio p{margin:0}.sa-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n"] }]
|
|
1533
|
+
}], propDecorators: { configuracion: [{
|
|
1534
|
+
type: Input
|
|
1535
|
+
}], showArticulos: [{
|
|
1536
|
+
type: Input
|
|
1537
|
+
}], movimiento: [{
|
|
1538
|
+
type: Input
|
|
1539
|
+
}], manejaUnidadSecundaria: [{
|
|
1540
|
+
type: Input
|
|
1541
|
+
}], emitFilaSeleccionada: [{
|
|
1542
|
+
type: Output
|
|
1543
|
+
}], emitShowArticulos: [{
|
|
1544
|
+
type: Output
|
|
1545
|
+
}], campoBusqueda: [{
|
|
1546
|
+
type: ViewChild,
|
|
1547
|
+
args: ['campoBusqueda']
|
|
1548
|
+
}] } });
|
|
2236
1549
|
|
|
2237
1550
|
const components = [
|
|
2238
1551
|
LoadingComponent,
|
|
@@ -2285,9 +1598,9 @@ function HttpLoaderFactory(http) {
|
|
|
2285
1598
|
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
2286
1599
|
}
|
|
2287
1600
|
class CoreLibModule {
|
|
2288
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2289
|
-
/** @nocollapse */ static { this.ɵmod =
|
|
2290
|
-
/** @nocollapse */ static { this.ɵinj =
|
|
1601
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1602
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, FormsModule, i1$1.ToastrModule, i2$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); }
|
|
1603
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, providers: [
|
|
2291
1604
|
primeNgServices,
|
|
2292
1605
|
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
2293
1606
|
], imports: [CommonModule,
|
|
@@ -2302,36 +1615,35 @@ class CoreLibModule {
|
|
|
2302
1615
|
}
|
|
2303
1616
|
}), i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); }
|
|
2304
1617
|
}
|
|
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
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, FormsModule, i1$1.ToastrModule, i2.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); })();
|
|
1618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, decorators: [{
|
|
1619
|
+
type: NgModule,
|
|
1620
|
+
args: [{
|
|
1621
|
+
declarations: [
|
|
1622
|
+
Error404Component,
|
|
1623
|
+
components,
|
|
1624
|
+
contaComponents,
|
|
1625
|
+
SeleccionArticuloInformacionComponent
|
|
1626
|
+
],
|
|
1627
|
+
imports: [
|
|
1628
|
+
CommonModule,
|
|
1629
|
+
primeNg,
|
|
1630
|
+
FormsModule,
|
|
1631
|
+
ToastrModule.forRoot(),
|
|
1632
|
+
TranslateModule.forRoot({
|
|
1633
|
+
loader: {
|
|
1634
|
+
provide: TranslateLoader,
|
|
1635
|
+
useFactory: HttpLoaderFactory,
|
|
1636
|
+
deps: [HttpClient]
|
|
1637
|
+
}
|
|
1638
|
+
})
|
|
1639
|
+
],
|
|
1640
|
+
providers: [
|
|
1641
|
+
primeNgServices,
|
|
1642
|
+
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
1643
|
+
],
|
|
1644
|
+
exports: [components, contaComponents, primeNg, TranslateModule]
|
|
1645
|
+
}]
|
|
1646
|
+
}] });
|
|
2335
1647
|
|
|
2336
1648
|
class Persona {
|
|
2337
1649
|
constructor() {
|
|
@@ -2381,19 +1693,19 @@ class ControlAccesoService {
|
|
|
2381
1693
|
}
|
|
2382
1694
|
return permiso;
|
|
2383
1695
|
}
|
|
2384
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2385
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1696
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, deps: [{ token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1697
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, providedIn: 'root' }); }
|
|
2386
1698
|
}
|
|
2387
|
-
(
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
1699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, decorators: [{
|
|
1700
|
+
type: Injectable,
|
|
1701
|
+
args: [{
|
|
1702
|
+
providedIn: 'root'
|
|
1703
|
+
}]
|
|
1704
|
+
}], ctorParameters: () => [{ type: AuthService }], propDecorators: { cambioAcciones: [{
|
|
1705
|
+
type: Output
|
|
1706
|
+
}], changeDetalleUsuario: [{
|
|
1707
|
+
type: Output
|
|
1708
|
+
}] } });
|
|
2397
1709
|
|
|
2398
1710
|
class InitService {
|
|
2399
1711
|
constructor(http, authService) {
|
|
@@ -2430,15 +1742,15 @@ class InitService {
|
|
|
2430
1742
|
});
|
|
2431
1743
|
});
|
|
2432
1744
|
}
|
|
2433
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2434
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1745
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, deps: [{ token: i1.HttpClient }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1746
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, providedIn: 'root' }); }
|
|
2435
1747
|
}
|
|
2436
|
-
(
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
1748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, decorators: [{
|
|
1749
|
+
type: Injectable,
|
|
1750
|
+
args: [{
|
|
1751
|
+
providedIn: 'root'
|
|
1752
|
+
}]
|
|
1753
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: AuthService }] });
|
|
2442
1754
|
|
|
2443
1755
|
class MessageService {
|
|
2444
1756
|
constructor(toastr) {
|
|
@@ -2505,29 +1817,29 @@ class MessageService {
|
|
|
2505
1817
|
}
|
|
2506
1818
|
return msgs;
|
|
2507
1819
|
}
|
|
2508
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2509
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1820
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1821
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, providedIn: 'root' }); }
|
|
2510
1822
|
}
|
|
2511
|
-
(
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
1823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, decorators: [{
|
|
1824
|
+
type: Injectable,
|
|
1825
|
+
args: [{
|
|
1826
|
+
providedIn: 'root'
|
|
1827
|
+
}]
|
|
1828
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }] });
|
|
2517
1829
|
|
|
2518
1830
|
class PersonaMoralService extends CrudService {
|
|
2519
1831
|
constructor(http) {
|
|
2520
1832
|
super(http, '/personaMoral');
|
|
2521
1833
|
}
|
|
2522
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2523
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1834
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1835
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, providedIn: 'root' }); }
|
|
2524
1836
|
}
|
|
2525
|
-
(
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
1837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, decorators: [{
|
|
1838
|
+
type: Injectable,
|
|
1839
|
+
args: [{
|
|
1840
|
+
providedIn: 'root'
|
|
1841
|
+
}]
|
|
1842
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2531
1843
|
|
|
2532
1844
|
class CanActivateGuard {
|
|
2533
1845
|
constructor(controlAccesoService) {
|
|
@@ -2541,30 +1853,30 @@ class CanActivateGuard {
|
|
|
2541
1853
|
permisos(rol) {
|
|
2542
1854
|
this.rol = rol;
|
|
2543
1855
|
}
|
|
2544
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2545
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1856
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, deps: [{ token: ControlAccesoService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1857
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, providedIn: 'root' }); }
|
|
2546
1858
|
}
|
|
2547
|
-
(
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
1859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, decorators: [{
|
|
1860
|
+
type: Injectable,
|
|
1861
|
+
args: [{
|
|
1862
|
+
providedIn: 'root'
|
|
1863
|
+
}]
|
|
1864
|
+
}], ctorParameters: () => [{ type: ControlAccesoService }] });
|
|
2553
1865
|
|
|
2554
1866
|
class CatalogoAdicionalService extends CrudService {
|
|
2555
1867
|
constructor(httpClient) {
|
|
2556
1868
|
super(httpClient, 'catalogoAdicional');
|
|
2557
1869
|
this.httpClient = httpClient;
|
|
2558
1870
|
}
|
|
2559
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2560
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1871
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1872
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, providedIn: 'root' }); }
|
|
2561
1873
|
}
|
|
2562
|
-
(
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
1874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, decorators: [{
|
|
1875
|
+
type: Injectable,
|
|
1876
|
+
args: [{
|
|
1877
|
+
providedIn: 'root'
|
|
1878
|
+
}]
|
|
1879
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2568
1880
|
|
|
2569
1881
|
class Authenticated {
|
|
2570
1882
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -2625,15 +1937,15 @@ class Authenticated {
|
|
|
2625
1937
|
}
|
|
2626
1938
|
window.location.href = host;
|
|
2627
1939
|
}
|
|
2628
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2629
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1940
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, deps: [{ token: AuthService }, { token: ControlAccesoService }, { token: i3$2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1941
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, providedIn: 'root' }); }
|
|
2630
1942
|
}
|
|
2631
|
-
(
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
1943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, decorators: [{
|
|
1944
|
+
type: Injectable,
|
|
1945
|
+
args: [{
|
|
1946
|
+
providedIn: 'root'
|
|
1947
|
+
}]
|
|
1948
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$2.Router }] });
|
|
2637
1949
|
|
|
2638
1950
|
class VersionCheckService {
|
|
2639
1951
|
constructor(http) {
|
|
@@ -2673,15 +1985,15 @@ class VersionCheckService {
|
|
|
2673
1985
|
}
|
|
2674
1986
|
return currentHash === newHash;
|
|
2675
1987
|
}
|
|
2676
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2677
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1988
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1989
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, providedIn: 'root' }); }
|
|
2678
1990
|
}
|
|
2679
|
-
(
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
1991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, decorators: [{
|
|
1992
|
+
type: Injectable,
|
|
1993
|
+
args: [{
|
|
1994
|
+
providedIn: 'root'
|
|
1995
|
+
}]
|
|
1996
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2685
1997
|
|
|
2686
1998
|
class Agente {
|
|
2687
1999
|
constructor() {
|
|
@@ -2707,15 +2019,15 @@ class AgenteService extends CrudService {
|
|
|
2707
2019
|
let url = this.geturl() + '/obtenerAgenteEmpresa';
|
|
2708
2020
|
return this.getHttp().get(url, this.buildAuth());
|
|
2709
2021
|
}
|
|
2710
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2711
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2022
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2023
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, providedIn: 'root' }); }
|
|
2712
2024
|
}
|
|
2713
|
-
(
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, decorators: [{
|
|
2026
|
+
type: Injectable,
|
|
2027
|
+
args: [{
|
|
2028
|
+
providedIn: 'root'
|
|
2029
|
+
}]
|
|
2030
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2719
2031
|
|
|
2720
2032
|
class Almacen {
|
|
2721
2033
|
constructor() { }
|
|
@@ -2736,15 +2048,15 @@ class BancoService extends CrudService {
|
|
|
2736
2048
|
constructor(http) {
|
|
2737
2049
|
super(http, '/banco');
|
|
2738
2050
|
}
|
|
2739
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2740
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2051
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2052
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, providedIn: 'root' }); }
|
|
2741
2053
|
}
|
|
2742
|
-
(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, decorators: [{
|
|
2055
|
+
type: Injectable,
|
|
2056
|
+
args: [{
|
|
2057
|
+
providedIn: 'root'
|
|
2058
|
+
}]
|
|
2059
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2748
2060
|
|
|
2749
2061
|
class CatalogoTipo {
|
|
2750
2062
|
constructor() { }
|
|
@@ -2754,15 +2066,15 @@ class CatalogoTipoService extends CrudService {
|
|
|
2754
2066
|
constructor(htt) {
|
|
2755
2067
|
super(htt, '/catalogoTipo');
|
|
2756
2068
|
}
|
|
2757
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2758
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2069
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2070
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, providedIn: 'root' }); }
|
|
2759
2071
|
}
|
|
2760
|
-
(
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, decorators: [{
|
|
2073
|
+
type: Injectable,
|
|
2074
|
+
args: [{
|
|
2075
|
+
providedIn: 'root'
|
|
2076
|
+
}]
|
|
2077
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2766
2078
|
|
|
2767
2079
|
class ClasificadorTipo {
|
|
2768
2080
|
constructor() { }
|
|
@@ -2772,15 +2084,15 @@ class ClasificadorTipoService extends CrudService {
|
|
|
2772
2084
|
constructor(http) {
|
|
2773
2085
|
super(http, '/clasificadorTipo');
|
|
2774
2086
|
}
|
|
2775
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2776
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2087
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2088
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, providedIn: 'root' }); }
|
|
2777
2089
|
}
|
|
2778
|
-
(
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, decorators: [{
|
|
2091
|
+
type: Injectable,
|
|
2092
|
+
args: [{
|
|
2093
|
+
providedIn: 'root'
|
|
2094
|
+
}]
|
|
2095
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2784
2096
|
|
|
2785
2097
|
class ClaveMovimiento {
|
|
2786
2098
|
constructor() { }
|
|
@@ -2790,15 +2102,15 @@ class ClaveMovimientoService extends CrudService {
|
|
|
2790
2102
|
constructor(http) {
|
|
2791
2103
|
super(http, 'claveMovimiento');
|
|
2792
2104
|
}
|
|
2793
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2794
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2105
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2106
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, providedIn: 'root' }); }
|
|
2795
2107
|
}
|
|
2796
|
-
(
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, decorators: [{
|
|
2109
|
+
type: Injectable,
|
|
2110
|
+
args: [{
|
|
2111
|
+
providedIn: 'root'
|
|
2112
|
+
}]
|
|
2113
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2802
2114
|
|
|
2803
2115
|
class Cliente {
|
|
2804
2116
|
constructor() {
|
|
@@ -2835,15 +2147,15 @@ class ClienteService extends CrudService {
|
|
|
2835
2147
|
validar_archivos_bss(id) {
|
|
2836
2148
|
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
2837
2149
|
}
|
|
2838
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2839
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2150
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2151
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, providedIn: 'root' }); }
|
|
2840
2152
|
}
|
|
2841
|
-
(
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, decorators: [{
|
|
2154
|
+
type: Injectable,
|
|
2155
|
+
args: [{
|
|
2156
|
+
providedIn: 'root'
|
|
2157
|
+
}]
|
|
2158
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2847
2159
|
|
|
2848
2160
|
class ClienteCuentaBancoService extends CrudService {
|
|
2849
2161
|
constructor(httpClient) {
|
|
@@ -2854,15 +2166,15 @@ class ClienteCuentaBancoService extends CrudService {
|
|
|
2854
2166
|
let p = { 'cuentas': params };
|
|
2855
2167
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
2856
2168
|
}
|
|
2857
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2858
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2169
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2170
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, providedIn: 'root' }); }
|
|
2859
2171
|
}
|
|
2860
|
-
(
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, decorators: [{
|
|
2173
|
+
type: Injectable,
|
|
2174
|
+
args: [{
|
|
2175
|
+
providedIn: 'root'
|
|
2176
|
+
}]
|
|
2177
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2866
2178
|
|
|
2867
2179
|
class ClienteFleteService extends CrudService {
|
|
2868
2180
|
constructor(httpClient) {
|
|
@@ -2873,15 +2185,15 @@ class ClienteFleteService extends CrudService {
|
|
|
2873
2185
|
let params = { fletes: p };
|
|
2874
2186
|
return this.save(params);
|
|
2875
2187
|
}
|
|
2876
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2877
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2188
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2189
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, providedIn: 'root' }); }
|
|
2878
2190
|
}
|
|
2879
|
-
(
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, decorators: [{
|
|
2192
|
+
type: Injectable,
|
|
2193
|
+
args: [{
|
|
2194
|
+
providedIn: 'root'
|
|
2195
|
+
}]
|
|
2196
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2885
2197
|
|
|
2886
2198
|
class TipoContacto {
|
|
2887
2199
|
constructor() {
|
|
@@ -2899,29 +2211,29 @@ class DatoContactoService extends CrudService {
|
|
|
2899
2211
|
constructor(http) {
|
|
2900
2212
|
super(http, '/contacto');
|
|
2901
2213
|
}
|
|
2902
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2903
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2214
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2215
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, providedIn: 'root' }); }
|
|
2904
2216
|
}
|
|
2905
|
-
(
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, decorators: [{
|
|
2218
|
+
type: Injectable,
|
|
2219
|
+
args: [{
|
|
2220
|
+
providedIn: 'root'
|
|
2221
|
+
}]
|
|
2222
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2911
2223
|
|
|
2912
2224
|
class DatoDireccionService extends CrudService {
|
|
2913
2225
|
constructor(http) {
|
|
2914
2226
|
super(http, '/datoDireccion');
|
|
2915
2227
|
}
|
|
2916
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2917
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2228
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2229
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, providedIn: 'root' }); }
|
|
2918
2230
|
}
|
|
2919
|
-
(
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, decorators: [{
|
|
2232
|
+
type: Injectable,
|
|
2233
|
+
args: [{
|
|
2234
|
+
providedIn: 'root'
|
|
2235
|
+
}]
|
|
2236
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2925
2237
|
|
|
2926
2238
|
class Departamento {
|
|
2927
2239
|
constructor() {
|
|
@@ -2932,15 +2244,15 @@ class DepartamentoService extends CrudService {
|
|
|
2932
2244
|
constructor(http) {
|
|
2933
2245
|
super(http, '/departamento');
|
|
2934
2246
|
}
|
|
2935
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2936
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2247
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2248
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
|
|
2937
2249
|
}
|
|
2938
|
-
(
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, decorators: [{
|
|
2251
|
+
type: Injectable,
|
|
2252
|
+
args: [{
|
|
2253
|
+
providedIn: 'root'
|
|
2254
|
+
}]
|
|
2255
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2944
2256
|
|
|
2945
2257
|
class FormaPago {
|
|
2946
2258
|
constructor() { }
|
|
@@ -2969,44 +2281,44 @@ class EmpresaService extends CrudService {
|
|
|
2969
2281
|
// return super.get(1);
|
|
2970
2282
|
return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
|
|
2971
2283
|
}
|
|
2972
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2973
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2284
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2285
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
|
|
2974
2286
|
}
|
|
2975
|
-
(
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, decorators: [{
|
|
2288
|
+
type: Injectable,
|
|
2289
|
+
args: [{
|
|
2290
|
+
providedIn: 'root'
|
|
2291
|
+
}]
|
|
2292
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2981
2293
|
|
|
2982
2294
|
class FleteService extends CrudService {
|
|
2983
2295
|
constructor(httpClient) {
|
|
2984
2296
|
super(httpClient, '/flete');
|
|
2985
2297
|
this.httpClient = httpClient;
|
|
2986
2298
|
}
|
|
2987
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2988
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2299
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2300
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, providedIn: 'root' }); }
|
|
2989
2301
|
}
|
|
2990
|
-
(
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, decorators: [{
|
|
2303
|
+
type: Injectable,
|
|
2304
|
+
args: [{
|
|
2305
|
+
providedIn: 'root'
|
|
2306
|
+
}]
|
|
2307
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2996
2308
|
|
|
2997
2309
|
class FormaPagoService extends CrudService {
|
|
2998
2310
|
constructor(http) {
|
|
2999
2311
|
super(http, '/FormaDePago');
|
|
3000
2312
|
}
|
|
3001
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3002
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2313
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2314
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, providedIn: "root" }); }
|
|
3003
2315
|
}
|
|
3004
|
-
(
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, decorators: [{
|
|
2317
|
+
type: Injectable,
|
|
2318
|
+
args: [{
|
|
2319
|
+
providedIn: "root"
|
|
2320
|
+
}]
|
|
2321
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3010
2322
|
|
|
3011
2323
|
class Moneda {
|
|
3012
2324
|
constructor() { }
|
|
@@ -3017,15 +2329,15 @@ class MonedaService extends CrudService {
|
|
|
3017
2329
|
super(httpClient, '/moneda');
|
|
3018
2330
|
this.httpClient = httpClient;
|
|
3019
2331
|
}
|
|
3020
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3021
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2332
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2333
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, providedIn: 'root' }); }
|
|
3022
2334
|
}
|
|
3023
|
-
(
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
2335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, decorators: [{
|
|
2336
|
+
type: Injectable,
|
|
2337
|
+
args: [{
|
|
2338
|
+
providedIn: 'root'
|
|
2339
|
+
}]
|
|
2340
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3029
2341
|
|
|
3030
2342
|
class EstadoCivil {
|
|
3031
2343
|
constructor() { }
|
|
@@ -3046,15 +2358,15 @@ class PersonaFisicaService extends CrudService {
|
|
|
3046
2358
|
getEstadoCivil() {
|
|
3047
2359
|
return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
|
|
3048
2360
|
}
|
|
3049
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3050
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2361
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2362
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, providedIn: "root" }); }
|
|
3051
2363
|
}
|
|
3052
|
-
(
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
2364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, decorators: [{
|
|
2365
|
+
type: Injectable,
|
|
2366
|
+
args: [{
|
|
2367
|
+
providedIn: "root"
|
|
2368
|
+
}]
|
|
2369
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3058
2370
|
|
|
3059
2371
|
class Proveedor {
|
|
3060
2372
|
constructor() {
|
|
@@ -3085,15 +2397,15 @@ class ProveedorService extends CrudService {
|
|
|
3085
2397
|
super(httpClient, '/proveedor');
|
|
3086
2398
|
this.httpClient = httpClient;
|
|
3087
2399
|
}
|
|
3088
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3089
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2400
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2401
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, providedIn: 'root' }); }
|
|
3090
2402
|
}
|
|
3091
|
-
(
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
2403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, decorators: [{
|
|
2404
|
+
type: Injectable,
|
|
2405
|
+
args: [{
|
|
2406
|
+
providedIn: 'root'
|
|
2407
|
+
}]
|
|
2408
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3097
2409
|
|
|
3098
2410
|
class ProveedorCuentaBancoService extends CrudService {
|
|
3099
2411
|
constructor(httpClient) {
|
|
@@ -3104,15 +2416,15 @@ class ProveedorCuentaBancoService extends CrudService {
|
|
|
3104
2416
|
let p = { 'cuentas': params };
|
|
3105
2417
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
3106
2418
|
}
|
|
3107
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3108
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2419
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2420
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, providedIn: 'root' }); }
|
|
3109
2421
|
}
|
|
3110
|
-
(
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
2422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, decorators: [{
|
|
2423
|
+
type: Injectable,
|
|
2424
|
+
args: [{
|
|
2425
|
+
providedIn: 'root'
|
|
2426
|
+
}]
|
|
2427
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3116
2428
|
|
|
3117
2429
|
class ProveedorFleteService extends CrudService {
|
|
3118
2430
|
constructor(httpClient) {
|
|
@@ -3123,29 +2435,29 @@ class ProveedorFleteService extends CrudService {
|
|
|
3123
2435
|
let params = { fletes: p };
|
|
3124
2436
|
return this.save(params);
|
|
3125
2437
|
}
|
|
3126
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3127
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2438
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2439
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, providedIn: 'root' }); }
|
|
3128
2440
|
}
|
|
3129
|
-
(
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
2441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, decorators: [{
|
|
2442
|
+
type: Injectable,
|
|
2443
|
+
args: [{
|
|
2444
|
+
providedIn: 'root'
|
|
2445
|
+
}]
|
|
2446
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3135
2447
|
|
|
3136
2448
|
class ClaveAumentoDisminucionService extends CrudService {
|
|
3137
2449
|
constructor(http) {
|
|
3138
2450
|
super(http, 'claveAumentoDisminucion');
|
|
3139
2451
|
}
|
|
3140
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3141
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2452
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2453
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, providedIn: 'root' }); }
|
|
3142
2454
|
}
|
|
3143
|
-
(
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
2455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, decorators: [{
|
|
2456
|
+
type: Injectable,
|
|
2457
|
+
args: [{
|
|
2458
|
+
providedIn: 'root'
|
|
2459
|
+
}]
|
|
2460
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3149
2461
|
|
|
3150
2462
|
class SerieDocumentoService extends CrudService {
|
|
3151
2463
|
constructor(httpClient) {
|
|
@@ -3158,15 +2470,15 @@ class SerieDocumentoService extends CrudService {
|
|
|
3158
2470
|
getReporte(params) {
|
|
3159
2471
|
return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
|
|
3160
2472
|
}
|
|
3161
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3162
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2473
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2474
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, providedIn: 'root' }); }
|
|
3163
2475
|
}
|
|
3164
|
-
(
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
2476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, decorators: [{
|
|
2477
|
+
type: Injectable,
|
|
2478
|
+
args: [{
|
|
2479
|
+
providedIn: 'root'
|
|
2480
|
+
}]
|
|
2481
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3170
2482
|
|
|
3171
2483
|
class SerieDocumento {
|
|
3172
2484
|
constructor() { }
|
|
@@ -3176,15 +2488,15 @@ class TipoContactoService extends CrudService {
|
|
|
3176
2488
|
constructor(http) {
|
|
3177
2489
|
super(http, '/tipoContacto');
|
|
3178
2490
|
}
|
|
3179
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3180
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2491
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2492
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, providedIn: 'root' }); }
|
|
3181
2493
|
}
|
|
3182
|
-
(
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
2494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, decorators: [{
|
|
2495
|
+
type: Injectable,
|
|
2496
|
+
args: [{
|
|
2497
|
+
providedIn: 'root'
|
|
2498
|
+
}]
|
|
2499
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3188
2500
|
|
|
3189
2501
|
class Ubicacion {
|
|
3190
2502
|
constructor() { }
|
|
@@ -3194,15 +2506,15 @@ class UbicacionService extends CrudService {
|
|
|
3194
2506
|
constructor(http) {
|
|
3195
2507
|
super(http, 'ubicacion');
|
|
3196
2508
|
}
|
|
3197
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3198
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2509
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2510
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, providedIn: 'root' }); }
|
|
3199
2511
|
}
|
|
3200
|
-
(
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
2512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, decorators: [{
|
|
2513
|
+
type: Injectable,
|
|
2514
|
+
args: [{
|
|
2515
|
+
providedIn: 'root'
|
|
2516
|
+
}]
|
|
2517
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3206
2518
|
|
|
3207
2519
|
class TipoCatalogo {
|
|
3208
2520
|
static { this.ARTICULO = 2; }
|
|
@@ -3214,15 +2526,15 @@ class AcreedorService extends CrudService {
|
|
|
3214
2526
|
super(httpClient, 'acreedor');
|
|
3215
2527
|
this.httpClient = httpClient;
|
|
3216
2528
|
}
|
|
3217
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3218
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2529
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2530
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, providedIn: 'root' }); }
|
|
3219
2531
|
}
|
|
3220
|
-
(
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
2532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, decorators: [{
|
|
2533
|
+
type: Injectable,
|
|
2534
|
+
args: [{
|
|
2535
|
+
providedIn: 'root'
|
|
2536
|
+
}]
|
|
2537
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3226
2538
|
|
|
3227
2539
|
class AcreedorCuentaContableService extends CrudService {
|
|
3228
2540
|
constructor(httpClient) {
|
|
@@ -3233,15 +2545,15 @@ class AcreedorCuentaContableService extends CrudService {
|
|
|
3233
2545
|
let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
|
|
3234
2546
|
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
3235
2547
|
}
|
|
3236
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3237
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2548
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2549
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, providedIn: 'root' }); }
|
|
3238
2550
|
}
|
|
3239
|
-
(
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, decorators: [{
|
|
2552
|
+
type: Injectable,
|
|
2553
|
+
args: [{
|
|
2554
|
+
providedIn: 'root'
|
|
2555
|
+
}]
|
|
2556
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3245
2557
|
|
|
3246
2558
|
class CuentaContableModel {
|
|
3247
2559
|
constructor() {
|