visorus-erp-core 12.0.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/esm2020/lib/components/acreedor/select/select-acreedor.component.mjs +205 -0
  2. package/esm2020/lib/components/caja/session-create/session-create.component.mjs +177 -0
  3. package/esm2020/lib/components/cliente/select/select-cliente.component.mjs +215 -0
  4. package/esm2020/lib/components/error404/error404.component.mjs +21 -0
  5. package/esm2020/lib/components/loading/loading.component.mjs +48 -0
  6. package/{esm2015/lib/components/loading-screen/loading-screen.component.js → esm2020/lib/components/loading-screen/loading-screen.component.mjs} +5 -19
  7. package/esm2020/lib/components/login-modal/login-modal.component.mjs +152 -0
  8. package/{esm2015/lib/components/pdfModal/pdf-modal.component.js → esm2020/lib/components/pdfModal/pdf-modal.component.mjs} +2 -6
  9. package/esm2020/lib/components/proveedor/select/select-proveedor.component.mjs +138 -0
  10. package/esm2020/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +143 -0
  11. package/esm2020/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +493 -0
  12. package/esm2020/lib/contabilidad/componentes/cclista/cclista.component.mjs +262 -0
  13. package/{esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js → esm2020/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs} +4 -11
  14. package/fesm2015/visorus-erp-core.mjs +4066 -0
  15. package/fesm2015/visorus-erp-core.mjs.map +1 -0
  16. package/{fesm2015/visorus-erp-core.js → fesm2020/visorus-erp-core.mjs} +115 -303
  17. package/fesm2020/visorus-erp-core.mjs.map +1 -0
  18. package/package.json +25 -12
  19. package/bundles/visorus-erp-core.umd.js +0 -5077
  20. package/bundles/visorus-erp-core.umd.js.map +0 -1
  21. package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +0 -217
  22. package/esm2015/lib/components/caja/session-create/session-create.component.js +0 -194
  23. package/esm2015/lib/components/cliente/select/select-cliente.component.js +0 -227
  24. package/esm2015/lib/components/error404/error404.component.js +0 -35
  25. package/esm2015/lib/components/loading/loading.component.js +0 -66
  26. package/esm2015/lib/components/login-modal/login-modal.component.js +0 -180
  27. package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +0 -148
  28. package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +0 -154
  29. package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +0 -522
  30. package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +0 -274
  31. package/fesm2015/visorus-erp-core.js.map +0 -1
  32. /package/{esm2015/lib/app.module.js → esm2020/lib/app.module.mjs} +0 -0
  33. /package/{esm2015/lib/components/acreedor/services/acreedor.service.js → esm2020/lib/components/acreedor/services/acreedor.service.mjs} +0 -0
  34. /package/{esm2015/lib/components/acreedor/services/acreedorCuentaContable.js → esm2020/lib/components/acreedor/services/acreedorCuentaContable.mjs} +0 -0
  35. /package/{esm2015/lib/components/agente/models/Agente.js → esm2020/lib/components/agente/models/Agente.mjs} +0 -0
  36. /package/{esm2015/lib/components/agente/services/agente.service.js → esm2020/lib/components/agente/services/agente.service.mjs} +0 -0
  37. /package/{esm2015/lib/components/almacen/models/Almacen.js → esm2020/lib/components/almacen/models/Almacen.mjs} +0 -0
  38. /package/{esm2015/lib/components/almacen/services/almacen.service.js → esm2020/lib/components/almacen/services/almacen.service.mjs} +0 -0
  39. /package/{esm2015/lib/components/banco/models/Banco.js → esm2020/lib/components/banco/models/Banco.mjs} +0 -0
  40. /package/{esm2015/lib/components/banco/services/banco.service.js → esm2020/lib/components/banco/services/banco.service.mjs} +0 -0
  41. /package/{esm2015/lib/components/caja/sessionCaja.service.js → esm2020/lib/components/caja/sessionCaja.service.mjs} +0 -0
  42. /package/{esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js → esm2020/lib/components/catalogoTipo/models/CatalogoTipo.mjs} +0 -0
  43. /package/{esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js → esm2020/lib/components/catalogoTipo/services/catalogoTipo.service.mjs} +0 -0
  44. /package/{esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js → esm2020/lib/components/clasificadorTipo/models/ClasificadorTipo.mjs} +0 -0
  45. /package/{esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js → esm2020/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs} +0 -0
  46. /package/{esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js → esm2020/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs} +0 -0
  47. /package/{esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js → esm2020/lib/components/claveMovimiento/models/ClaveMovimiento.mjs} +0 -0
  48. /package/{esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js → esm2020/lib/components/claveMovimiento/services/claveMovimiento.service.mjs} +0 -0
  49. /package/{esm2015/lib/components/cliente/models/Cliente.js → esm2020/lib/components/cliente/models/Cliente.mjs} +0 -0
  50. /package/{esm2015/lib/components/cliente/models/ClienteCuentaBanco.js → esm2020/lib/components/cliente/models/ClienteCuentaBanco.mjs} +0 -0
  51. /package/{esm2015/lib/components/cliente/models/ClienteFlete.js → esm2020/lib/components/cliente/models/ClienteFlete.mjs} +0 -0
  52. /package/{esm2015/lib/components/cliente/services/cliente.service.js → esm2020/lib/components/cliente/services/cliente.service.mjs} +0 -0
  53. /package/{esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js → esm2020/lib/components/cliente/services/clienteCuentaBanco.service.mjs} +0 -0
  54. /package/{esm2015/lib/components/cliente/services/clienteFlete.service.js → esm2020/lib/components/cliente/services/clienteFlete.service.mjs} +0 -0
  55. /package/{esm2015/lib/components/contacto/models/DatoContacto.js → esm2020/lib/components/contacto/models/DatoContacto.mjs} +0 -0
  56. /package/{esm2015/lib/components/contacto/services/datoContacto.service.js → esm2020/lib/components/contacto/services/datoContacto.service.mjs} +0 -0
  57. /package/{esm2015/lib/components/dato-direccion/models/DatoDireccion.js → esm2020/lib/components/dato-direccion/models/DatoDireccion.mjs} +0 -0
  58. /package/{esm2015/lib/components/dato-direccion/services/datoDireccion.service.js → esm2020/lib/components/dato-direccion/services/datoDireccion.service.mjs} +0 -0
  59. /package/{esm2015/lib/components/departamento/models/Departamento.js → esm2020/lib/components/departamento/models/Departamento.mjs} +0 -0
  60. /package/{esm2015/lib/components/departamento/services/departamento.service.js → esm2020/lib/components/departamento/services/departamento.service.mjs} +0 -0
  61. /package/{esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js → esm2020/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.mjs} +0 -0
  62. /package/{esm2015/lib/components/empresa/models/Empresa.js → esm2020/lib/components/empresa/models/Empresa.mjs} +0 -0
  63. /package/{esm2015/lib/components/empresa/services/empresa.service.js → esm2020/lib/components/empresa/services/empresa.service.mjs} +0 -0
  64. /package/{esm2015/lib/components/flete/models/Flete.js → esm2020/lib/components/flete/models/Flete.mjs} +0 -0
  65. /package/{esm2015/lib/components/flete/services/flete.service.js → esm2020/lib/components/flete/services/flete.service.mjs} +0 -0
  66. /package/{esm2015/lib/components/formaPago/models/FormaPago.js → esm2020/lib/components/formaPago/models/FormaPago.mjs} +0 -0
  67. /package/{esm2015/lib/components/formaPago/services/FormaPago.service.js → esm2020/lib/components/formaPago/services/FormaPago.service.mjs} +0 -0
  68. /package/{esm2015/lib/components/loading/loading.service.js → esm2020/lib/components/loading/loading.service.mjs} +0 -0
  69. /package/{esm2015/lib/components/loading-screen/loading-screen.service.js → esm2020/lib/components/loading-screen/loading-screen.service.mjs} +0 -0
  70. /package/{esm2015/lib/components/login-modal/login-modal.service.js → esm2020/lib/components/login-modal/login-modal.service.mjs} +0 -0
  71. /package/{esm2015/lib/components/moneda/models/Moneda.js → esm2020/lib/components/moneda/models/Moneda.mjs} +0 -0
  72. /package/{esm2015/lib/components/moneda/services/moneda.service.js → esm2020/lib/components/moneda/services/moneda.service.mjs} +0 -0
  73. /package/{esm2015/lib/components/pdfModal/pdf-modal.service.js → esm2020/lib/components/pdfModal/pdf-modal.service.mjs} +0 -0
  74. /package/{esm2015/lib/components/persona-fisica/models/EstadoCivil.js → esm2020/lib/components/persona-fisica/models/EstadoCivil.mjs} +0 -0
  75. /package/{esm2015/lib/components/persona-fisica/models/Genero.js → esm2020/lib/components/persona-fisica/models/Genero.mjs} +0 -0
  76. /package/{esm2015/lib/components/persona-fisica/models/Persona.js → esm2020/lib/components/persona-fisica/models/Persona.mjs} +0 -0
  77. /package/{esm2015/lib/components/persona-fisica/models/PersonaFisica.js → esm2020/lib/components/persona-fisica/models/PersonaFisica.mjs} +0 -0
  78. /package/{esm2015/lib/components/persona-fisica/services/personaFisica.service.js → esm2020/lib/components/persona-fisica/services/personaFisica.service.mjs} +0 -0
  79. /package/{esm2015/lib/components/proveedor/models/Proveedor.js → esm2020/lib/components/proveedor/models/Proveedor.mjs} +0 -0
  80. /package/{esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js → esm2020/lib/components/proveedor/models/ProveedorCuentaBanco.mjs} +0 -0
  81. /package/{esm2015/lib/components/proveedor/models/ProveedorFlete.js → esm2020/lib/components/proveedor/models/ProveedorFlete.mjs} +0 -0
  82. /package/{esm2015/lib/components/proveedor/services/proveedor.service.js → esm2020/lib/components/proveedor/services/proveedor.service.mjs} +0 -0
  83. /package/{esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js → esm2020/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs} +0 -0
  84. /package/{esm2015/lib/components/proveedor/services/proveedorFlete.service.js → esm2020/lib/components/proveedor/services/proveedorFlete.service.mjs} +0 -0
  85. /package/{esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js → esm2020/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs} +0 -0
  86. /package/{esm2015/lib/components/selecciona-articulo/stock.service.js → esm2020/lib/components/selecciona-articulo/stock.service.mjs} +0 -0
  87. /package/{esm2015/lib/components/serieDocumento/models/SerieDocumento.js → esm2020/lib/components/serieDocumento/models/SerieDocumento.mjs} +0 -0
  88. /package/{esm2015/lib/components/serieDocumento/services/serieDocumento.service.js → esm2020/lib/components/serieDocumento/services/serieDocumento.service.mjs} +0 -0
  89. /package/{esm2015/lib/components/tipo-contacto/models/TipoContacto.js → esm2020/lib/components/tipo-contacto/models/TipoContacto.mjs} +0 -0
  90. /package/{esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js → esm2020/lib/components/tipo-contacto/services/tipoContacto.service.mjs} +0 -0
  91. /package/{esm2015/lib/components/ubicacion/models/Ubicacion.js → esm2020/lib/components/ubicacion/models/Ubicacion.mjs} +0 -0
  92. /package/{esm2015/lib/components/ubicacion/services/ubicacion.service.js → esm2020/lib/components/ubicacion/services/ubicacion.service.mjs} +0 -0
  93. /package/{esm2015/lib/contabilidad/modelos/cuentaContable.model.js → esm2020/lib/contabilidad/modelos/cuentaContable.model.mjs} +0 -0
  94. /package/{esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js → esm2020/lib/contabilidad/modelos/normaInfoFinanciera.model.mjs} +0 -0
  95. /package/{esm2015/lib/contabilidad/servicios/cuentacontable.service.js → esm2020/lib/contabilidad/servicios/cuentacontable.service.mjs} +0 -0
  96. /package/{esm2015/lib/globalPrimeNg.js → esm2020/lib/globalPrimeNg.mjs} +0 -0
  97. /package/{esm2015/lib/httpInterceptor/httpInterceptor.js → esm2020/lib/httpInterceptor/httpInterceptor.mjs} +0 -0
  98. /package/{esm2015/lib/importComponents.js → esm2020/lib/importComponents.mjs} +0 -0
  99. /package/{esm2015/lib/importComponetsConta.js → esm2020/lib/importComponetsConta.mjs} +0 -0
  100. /package/{esm2015/lib/models/PersonaMoral.js → esm2020/lib/models/PersonaMoral.mjs} +0 -0
  101. /package/{esm2015/lib/models/Usuario.js → esm2020/lib/models/Usuario.mjs} +0 -0
  102. /package/{esm2015/lib/models/auth.js → esm2020/lib/models/auth.mjs} +0 -0
  103. /package/{esm2015/lib/services/auth.service.js → esm2020/lib/services/auth.service.mjs} +0 -0
  104. /package/{esm2015/lib/services/authenticated.service.js → esm2020/lib/services/authenticated.service.mjs} +0 -0
  105. /package/{esm2015/lib/services/canActivateGuard.service.ts.js → esm2020/lib/services/canActivateGuard.service.ts.mjs} +0 -0
  106. /package/{esm2015/lib/services/catalogo-adicional.service.js → esm2020/lib/services/catalogo-adicional.service.mjs} +0 -0
  107. /package/{esm2015/lib/services/controlAcceso.service.js → esm2020/lib/services/controlAcceso.service.mjs} +0 -0
  108. /package/{esm2015/lib/services/crud.service.js → esm2020/lib/services/crud.service.mjs} +0 -0
  109. /package/{esm2015/lib/services/file.service.js → esm2020/lib/services/file.service.mjs} +0 -0
  110. /package/{esm2015/lib/services/global.service.js → esm2020/lib/services/global.service.mjs} +0 -0
  111. /package/{esm2015/lib/services/init.service.js → esm2020/lib/services/init.service.mjs} +0 -0
  112. /package/{esm2015/lib/services/message.service.js → esm2020/lib/services/message.service.mjs} +0 -0
  113. /package/{esm2015/lib/services/paginate.service.js → esm2020/lib/services/paginate.service.mjs} +0 -0
  114. /package/{esm2015/lib/services/personaMoral.service.js → esm2020/lib/services/personaMoral.service.mjs} +0 -0
  115. /package/{esm2015/lib/services/versionCheck.service.js → esm2020/lib/services/versionCheck.service.mjs} +0 -0
  116. /package/{esm2015/lib/utils/tipo_catalogo.ts.js → esm2020/lib/utils/tipo_catalogo.ts.mjs} +0 -0
  117. /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  118. /package/{esm2015/visorus-erp-core.js → esm2020/visorus-erp-core.mjs} +0 -0
@@ -1,217 +0,0 @@
1
- import { Component, Input, Output, EventEmitter } from "@angular/core";
2
- import { AcreedorService } from "../services/acreedor.service";
3
- import { Proveedor } from '../../proveedor/models/Proveedor';
4
- import { PaginateService } from '../../../services/paginate.service';
5
- import { TranslateService } from '@ngx-translate/core';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../services/acreedor.service";
8
- import * as i2 from "../../../services/paginate.service";
9
- import * as i3 from "@ngx-translate/core";
10
- import * as i4 from "primeng/dialog";
11
- import * as i5 from "@angular/forms";
12
- import * as i6 from "primeng/inputtext";
13
- import * as i7 from "primeng/button";
14
- import * as i8 from "primeng/table";
15
- import * as i9 from "primeng/api";
16
- import * as i10 from "primeng/paginator";
17
- import * as i11 from "@angular/common";
18
- function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
19
- i0.ɵɵelementStart(0, "tr");
20
- i0.ɵɵelementStart(1, "th");
21
- i0.ɵɵtext(2);
22
- i0.ɵɵpipe(3, "translate");
23
- i0.ɵɵelementEnd();
24
- i0.ɵɵelementStart(4, "th");
25
- i0.ɵɵtext(5);
26
- i0.ɵɵpipe(6, "translate");
27
- i0.ɵɵelementEnd();
28
- i0.ɵɵelementStart(7, "th");
29
- i0.ɵɵtext(8);
30
- i0.ɵɵpipe(9, "translate");
31
- i0.ɵɵelementEnd();
32
- i0.ɵɵelementStart(10, "th");
33
- i0.ɵɵtext(11);
34
- i0.ɵɵpipe(12, "translate");
35
- i0.ɵɵelementEnd();
36
- i0.ɵɵelementStart(13, "th");
37
- i0.ɵɵtext(14);
38
- i0.ɵɵpipe(15, "translate");
39
- i0.ɵɵelementEnd();
40
- i0.ɵɵelementStart(16, "th");
41
- i0.ɵɵtext(17);
42
- i0.ɵɵpipe(18, "translate");
43
- i0.ɵɵelementEnd();
44
- i0.ɵɵelementEnd();
45
- } if (rf & 2) {
46
- i0.ɵɵadvance(2);
47
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
48
- i0.ɵɵadvance(3);
49
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "rfc"));
50
- i0.ɵɵadvance(3);
51
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
52
- i0.ɵɵadvance(3);
53
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
54
- i0.ɵɵadvance(3);
55
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "limiteCredito"));
56
- i0.ɵɵadvance(3);
57
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
58
- } }
59
- function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf & 1) {
60
- i0.ɵɵelementStart(0, "span");
61
- i0.ɵɵtext(1);
62
- i0.ɵɵpipe(2, "translate");
63
- i0.ɵɵelementEnd();
64
- } if (rf & 2) {
65
- i0.ɵɵadvance(1);
66
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
67
- } }
68
- function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
69
- i0.ɵɵelementStart(0, "span");
70
- i0.ɵɵtext(1);
71
- i0.ɵɵpipe(2, "translate");
72
- i0.ɵɵelementEnd();
73
- } if (rf & 2) {
74
- i0.ɵɵadvance(1);
75
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
76
- } }
77
- function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
78
- i0.ɵɵelementStart(0, "tr", 9);
79
- i0.ɵɵelementStart(1, "td");
80
- i0.ɵɵtext(2);
81
- i0.ɵɵelementEnd();
82
- i0.ɵɵelementStart(3, "td");
83
- i0.ɵɵtext(4);
84
- i0.ɵɵelementEnd();
85
- i0.ɵɵelementStart(5, "td");
86
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10);
87
- i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
88
- i0.ɵɵelementEnd();
89
- i0.ɵɵelementStart(8, "td");
90
- i0.ɵɵtext(9);
91
- i0.ɵɵelementEnd();
92
- i0.ɵɵelementStart(10, "td");
93
- i0.ɵɵtext(11);
94
- i0.ɵɵelementEnd();
95
- i0.ɵɵelementStart(12, "td");
96
- i0.ɵɵtext(13);
97
- i0.ɵɵpipe(14, "date");
98
- i0.ɵɵelementEnd();
99
- i0.ɵɵelementEnd();
100
- } if (rf & 2) {
101
- const acreedor_r3 = ctx.$implicit;
102
- i0.ɵɵproperty("pSelectableRow", acreedor_r3);
103
- i0.ɵɵadvance(2);
104
- i0.ɵɵtextInterpolate(acreedor_r3.descripcionRazonSocial);
105
- i0.ɵɵadvance(2);
106
- i0.ɵɵtextInterpolate(acreedor_r3.descripcionRfc);
107
- i0.ɵɵadvance(2);
108
- i0.ɵɵproperty("ngIf", acreedor_r3.personaMoral);
109
- i0.ɵɵadvance(1);
110
- i0.ɵɵproperty("ngIf", acreedor_r3.personaFisica);
111
- i0.ɵɵadvance(2);
112
- i0.ɵɵtextInterpolate(acreedor_r3.atrasoDiasEntrega);
113
- i0.ɵɵadvance(2);
114
- i0.ɵɵtextInterpolate(acreedor_r3.limiteCredito);
115
- i0.ɵɵadvance(2);
116
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
117
- } }
118
- function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
119
- i0.ɵɵelementStart(0, "tr");
120
- i0.ɵɵelementStart(1, "td");
121
- i0.ɵɵtext(2);
122
- i0.ɵɵpipe(3, "translate");
123
- i0.ɵɵelementEnd();
124
- i0.ɵɵelementEnd();
125
- } if (rf & 2) {
126
- i0.ɵɵadvance(1);
127
- i0.ɵɵattribute("colspan", 6);
128
- i0.ɵɵadvance(1);
129
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
130
- } }
131
- const _c0 = function () { return [10, 25, 50, 100, 500]; };
132
- export class SelectAcreedorComponent {
133
- constructor(acreedorService, paginanateService, translate) {
134
- this.acreedorService = acreedorService;
135
- this.paginanateService = paginanateService;
136
- this.translate = translate;
137
- this.params = [];
138
- this.ordenar = [];
139
- this.visible = false;
140
- this.acreedorSeleccionado = new Proveedor();
141
- this.select = new EventEmitter();
142
- this.translate.get('es');
143
- }
144
- ngOnInit() {
145
- this.page = this.paginanateService.getPage();
146
- let arg = [];
147
- this.ordenar = this.paginanateService.getOrden(arg, 'es');
148
- this.acreedores = [];
149
- }
150
- cargarDatosAcreedores() {
151
- this.params = this.paginanateService.getParams(this.page);
152
- this.params.push({ param: 'estatus', value: true });
153
- this.acreedorService.getAll(this.params).subscribe((data) => {
154
- this.acreedores = data.data;
155
- });
156
- }
157
- pagina(e) {
158
- this.page.rows = e.rows;
159
- this.page.offset = e.first;
160
- this.cargarDatosAcreedores;
161
- }
162
- cerrarModal() {
163
- this.select.emit(null);
164
- this.visible = false;
165
- }
166
- seleccionarAcreedor(e) {
167
- this.select.emit(e.data);
168
- this.visible = false;
169
- }
170
- }
171
- /** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(i1.AcreedorService), i0.ɵɵdirectiveInject(i2.PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
172
- /** @nocollapse */ SelectAcreedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
173
- i0.ɵɵelementStart(0, "p-dialog", 0);
174
- i0.ɵɵlistener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
175
- i0.ɵɵelementStart(1, "div", 1);
176
- i0.ɵɵelementStart(2, "input", 2);
177
- i0.ɵɵlistener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
178
- i0.ɵɵpipe(3, "translate");
179
- i0.ɵɵelementEnd();
180
- i0.ɵɵelementStart(4, "button", 3);
181
- i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
182
- i0.ɵɵelementEnd();
183
- i0.ɵɵelementEnd();
184
- i0.ɵɵelementStart(5, "p-table", 4);
185
- i0.ɵɵlistener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { return ctx.acreedorSeleccionado = $event; })("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
186
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
187
- i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6);
188
- i0.ɵɵtemplate(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
189
- i0.ɵɵelementEnd();
190
- i0.ɵɵelementStart(9, "p-paginator", 8);
191
- i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
192
- i0.ɵɵelementEnd();
193
- i0.ɵɵelementEnd();
194
- } if (rf & 2) {
195
- i0.ɵɵproperty("visible", ctx.visible);
196
- i0.ɵɵadvance(2);
197
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
198
- i0.ɵɵproperty("ngModel", ctx.page.filtro);
199
- i0.ɵɵadvance(3);
200
- i0.ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
201
- i0.ɵɵadvance(4);
202
- i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
203
- } }, directives: [i4.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8.Table, i9.PrimeTemplate, i10.Paginator, i8.SelectableRow, i11.NgIf], pipes: [i3.TranslatePipe, i11.DatePipe], encapsulation: 2 });
204
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
205
- type: Component,
206
- args: [{
207
- templateUrl: 'select-acreedor.component.html',
208
- selector: 'select-acreedor'
209
- }]
210
- }], function () { return [{ type: i1.AcreedorService }, { type: i2.PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
211
- type: Input
212
- }], acreedorSeleccionado: [{
213
- type: Input
214
- }], select: [{
215
- type: Output
216
- }] }); })();
217
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VycC1jb3JlL3NyYy9saWIv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AgICAgICAgICAgICAgICAgPHRoPnt7J3JmYycgfCB0cmFuc2xhdGV9fTwvdGg+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGg+e3sndGlwbycgfCB0cmFuc2xhdGV9fTwvdGg+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGg+e3snYXRyYXNvRGlhc0VudHJlZ2EnIHwgdHJhbnNsYXRlfX08L3RoPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoPnt7J2xpbWl0ZUNyZWRpdG8nIHwgdHJhbnNsYXRlfX08L3RoPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoPnt7J2ZlY2hhVWx0aW1hQ29tcHJhJyB8IHRyYW5zbGF0ZX19PC90aD5cbiAgICAgICAgICAgICAgICAgICAgPC90cj5cbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImJvZHlcIiBsZXQtYWNyZWVkb3I+XG4gICAgICAgICAgICAgICAgICAgIDx0ciBbcFNlbGVjdGFibGVSb3ddPVwiYWNyZWVkb3JcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD57e2FjcmVlZG9yLmRlc2NyaXBjaW9uUmF6b25Tb2NpYWx9fTwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+e3thY3JlZWRvci5kZXNjcmlwY2lvblJmY319PC90ZD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cImFjcmVlZG9yLnBlcnNvbmFNb3JhbFwiPnt7J21vcmFsJyB8IHRyYW5zbGF0ZX19PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiYWNyZWVkb3IucGVyc29uYUZpc2ljYVwiPnt7J2Zpc2ljbycgfCB0cmFuc2xhdGV9fTwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+e3thY3JlZWRvci5hdHJhc29EaWFzRW50cmVnYX19PC90ZD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD57e2FjcmVlZG9yLmxpbWl0ZUNyZWRpdG99fTwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+e3thY3JlZWRvci5mZWNoYVVsdGltYUNvbXByYSB8IGRhdGU6J2RkL01NL3l5eXknfX08L3RkPlxuICAgICAgICAgICAgICAgICAgICA8L3RyPlxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwiZW1wdHltZXNzYWdlXCI+XG4gICAgICAgICAgICAgICAgICAgIDx0cj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBbYXR0ci5jb2xzcGFuXT1cIjZcIj57eydnZW5lcmFsLm5vUmVnaXN0cm9zJyB8IHRyYW5zbGF0ZX19PC90ZD5cbiAgICAgICAgICAgICAgICAgICAgPC90cj5cbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgPC9wLXRhYmxlPlxuXG4gICAgPHAtcGFnaW5hdG9yIFtyb3dzXT1cInBhZ2Uucm93c1wiIFt0b3RhbFJlY29yZHNdPVwicGFnZS50b3RhbFwiIFtwYWdlTGlua1NpemVdPVwiNVwiXG4gICAgICAgIChvblBhZ2VDaGFuZ2UpPVwicGFnaW5hKCRldmVudClcIiBbcm93c1BlclBhZ2VPcHRpb25zXT1cIlsxMCwyNSw1MCwxMDAsNTAwXVwiPjwvcC1wYWdpbmF0b3I+XG5cbjwvcC1kaWFsb2c+Il19
@@ -1,194 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import { Component, Input, EventEmitter, Output } from '@angular/core';
3
- import { SessionCajaService } from '../sessionCaja.service';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../sessionCaja.service";
6
- import * as i2 from "primeng/dialog";
7
- import * as i3 from "primeng/api";
8
- import * as i4 from "@angular/common";
9
- import * as i5 from "@angular/forms";
10
- import * as i6 from "primeng/inputtext";
11
- import * as i7 from "primeng/button";
12
- function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
13
- i0.ɵɵelementStart(0, "a", 4);
14
- i0.ɵɵtext(1);
15
- i0.ɵɵelementEnd();
16
- } if (rf & 2) {
17
- const ctx_r0 = i0.ɵɵnextContext();
18
- i0.ɵɵadvance(1);
19
- i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
20
- } }
21
- function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
22
- const _r4 = i0.ɵɵgetCurrentView();
23
- i0.ɵɵelementStart(0, "div", 5);
24
- i0.ɵɵelementStart(1, "div", 6);
25
- i0.ɵɵelementStart(2, "label", 7);
26
- i0.ɵɵtext(3, "Nombre de caja: ");
27
- i0.ɵɵelementEnd();
28
- i0.ɵɵelementStart(4, "input", 8);
29
- i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
30
- i0.ɵɵelementEnd();
31
- i0.ɵɵelementEnd();
32
- i0.ɵɵelementStart(5, "div", 9);
33
- i0.ɵɵelementStart(6, "label", 10);
34
- i0.ɵɵtext(7, "Saldo: ");
35
- i0.ɵɵelementEnd();
36
- i0.ɵɵelementStart(8, "input", 11);
37
- i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.session.monto = $event; });
38
- i0.ɵɵelementEnd();
39
- i0.ɵɵelementEnd();
40
- i0.ɵɵelementStart(9, "div", 9);
41
- i0.ɵɵelementStart(10, "label", 12);
42
- i0.ɵɵtext(11, "Numero Z:");
43
- i0.ɵɵelementEnd();
44
- i0.ɵɵelementStart(12, "input", 13);
45
- i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.session.z = $event; });
46
- i0.ɵɵelementEnd();
47
- i0.ɵɵelementEnd();
48
- i0.ɵɵelementEnd();
49
- } if (rf & 2) {
50
- const ctx_r1 = i0.ɵɵnextContext();
51
- i0.ɵɵadvance(4);
52
- i0.ɵɵproperty("ngModel", ctx_r1.caja.nombre)("disabled", true);
53
- i0.ɵɵadvance(4);
54
- i0.ɵɵproperty("ngModel", ctx_r1.session.monto)("disabled", ctx_r1.editMode);
55
- i0.ɵɵadvance(4);
56
- i0.ɵɵproperty("ngModel", ctx_r1.session.z)("disabled", true);
57
- } }
58
- function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
59
- const _r10 = i0.ɵɵgetCurrentView();
60
- i0.ɵɵelementStart(0, "button", 17);
61
- i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.save(); });
62
- i0.ɵɵelementEnd();
63
- } }
64
- function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
65
- const _r12 = i0.ɵɵgetCurrentView();
66
- i0.ɵɵelementStart(0, "button", 18);
67
- i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.edit(); });
68
- i0.ɵɵelementEnd();
69
- } }
70
- function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
71
- const _r14 = i0.ɵɵgetCurrentView();
72
- i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
73
- i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
74
- i0.ɵɵelementStart(2, "button", 16);
75
- i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.closeModal(); });
76
- i0.ɵɵelementEnd();
77
- } if (rf & 2) {
78
- const ctx_r2 = i0.ɵɵnextContext();
79
- i0.ɵɵproperty("ngIf", !ctx_r2.editMode && ctx_r2.caja);
80
- i0.ɵɵadvance(1);
81
- i0.ɵɵproperty("ngIf", ctx_r2.editMode && ctx_r2.caja);
82
- } }
83
- const _c0 = function () { return { width: "750px" }; };
84
- export class SessionCreateComponent {
85
- constructor(sessionCajaService) {
86
- this.sessionCajaService = sessionCajaService;
87
- this.showCreateSession = false;
88
- this.caja = {};
89
- this.sessionEdit = null;
90
- // @Input() closeSession?: boolean
91
- this.status = new EventEmitter();
92
- this.success = new EventEmitter();
93
- this.session = {
94
- inicio: new Date().getTime(),
95
- termino: null,
96
- monedaDenominacionList: []
97
- };
98
- this.flagModal = true;
99
- this.labels = {
100
- title: "Crear nueva session de caja"
101
- };
102
- this.resp = {};
103
- this.editMode = false;
104
- }
105
- ngOnInit() {
106
- console.log("denominacionList", this.monedaDenominacionList);
107
- }
108
- setSession() {
109
- if (this.sessionEdit) {
110
- this.session = this.sessionEdit;
111
- this.session.monedaDenominacionList = this.monedaDenominacionList;
112
- if (this.session.movimientosCaja) {
113
- this.session.monto = this.session.movimientosCaja[0].monto;
114
- }
115
- this.labels = {
116
- title: "Cerrar session"
117
- };
118
- this.editMode = true;
119
- }
120
- else if (this.caja) {
121
- this.labels.title = "Crear nueva session de caja";
122
- this.session.caja = this.caja;
123
- this.session.z = this.caja.z;
124
- }
125
- }
126
- closeModal() {
127
- this.session = {};
128
- this.editMode = false;
129
- this.status.emit({ status: false });
130
- }
131
- save() {
132
- return __awaiter(this, void 0, void 0, function* () {
133
- this.resp = (yield this.sessionCajaService.save(this.session).toPromise()) || null;
134
- if (this.resp) {
135
- this.session = {};
136
- this.editMode = false;
137
- this.status.emit({ status: false, save: this.resp.data });
138
- this.success.emit(true);
139
- }
140
- else {
141
- this.success.emit(false);
142
- }
143
- });
144
- }
145
- edit() {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- console.log("EDIT", this.session);
148
- this.resp = (yield this.sessionCajaService.update(this.session).toPromise()) || null;
149
- if (this.resp) {
150
- this.session = {};
151
- this.editMode = false;
152
- this.status.emit({ status: false, update: this.resp.data });
153
- }
154
- });
155
- }
156
- }
157
- /** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(i1.SessionCajaService)); };
158
- /** @nocollapse */ SessionCreateComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SessionCreateComponent, selectors: [["session-create"]], inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, decls: 6, vars: 9, consts: [[3, "visible", "modal", "closeOnEscape", "closable", "blockScroll", "visibleChange", "onHide", "onShow"], ["pTemplate", "header"], ["class", "grid grid-fluid", 4, "ngIf"], ["pTemplate", "footer"], [1, "text-primary"], [1, "grid", "grid-fluid"], [1, "p-field", "col-12"], ["for", "nombreCaja"], ["pInputText", "", "type", "text", "id", "nombreCaja", 3, "ngModel", "disabled", "ngModelChange"], [1, "p-field", "col-12", "md:col-6"], ["for", "saldoCaja"], ["pInputText", "", "type", "number", "id", "saldoCaja", 3, "ngModel", "disabled", "ngModelChange"], ["for", "numeroZ"], ["pInputText", "", "type", "number", "id", "numeroZ", 3, "ngModel", "disabled", "ngModelChange"], ["pButton", "", "type", "button", "label", "Guardar", "class", "p-button-sm", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cerrar session", "class", "p-button-sm p-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cancelar", 1, "p-button-sm", "p-button-danger", 3, "click"], ["pButton", "", "type", "button", "label", "Guardar", 1, "p-button-sm", 3, "click"], ["pButton", "", "type", "button", "label", "Cerrar session", 1, "p-button-sm", "p-button-success", 3, "click"]], template: function SessionCreateComponent_Template(rf, ctx) { if (rf & 1) {
159
- i0.ɵɵelementStart(0, "p-dialog", 0);
160
- i0.ɵɵlistener("visibleChange", function SessionCreateComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showCreateSession = $event; })("onHide", function SessionCreateComponent_Template_p_dialog_onHide_0_listener() { return ctx.closeModal(); })("onShow", function SessionCreateComponent_Template_p_dialog_onShow_0_listener() { return ctx.setSession(); });
161
- i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_1_Template, 2, 1, "ng-template", 1);
162
- i0.ɵɵtemplate(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
163
- i0.ɵɵelementStart(3, "div");
164
- i0.ɵɵtext(4, " Este agente no esta asignado a una caja ");
165
- i0.ɵɵelementEnd();
166
- i0.ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
167
- i0.ɵɵelementEnd();
168
- } if (rf & 2) {
169
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0));
170
- i0.ɵɵproperty("visible", ctx.showCreateSession)("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
171
- i0.ɵɵadvance(2);
172
- i0.ɵɵproperty("ngIf", ctx.caja);
173
- } }, directives: [i2.Dialog, i3.PrimeTemplate, i4.NgIf, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NumberValueAccessor, i7.ButtonDirective], styles: [""] });
174
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
175
- type: Component,
176
- args: [{
177
- selector: 'session-create',
178
- templateUrl: './session-create.component.html',
179
- styleUrls: ['./session-create.component.css']
180
- }]
181
- }], function () { return [{ type: i1.SessionCajaService }]; }, { showCreateSession: [{
182
- type: Input
183
- }], caja: [{
184
- type: Input
185
- }], monedaDenominacionList: [{
186
- type: Input
187
- }], sessionEdit: [{
188
- type: Input
189
- }], status: [{
190
- type: Output
191
- }], success: [{
192
- type: Output
193
- }] }); })();
194
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vzc2lvbi1jcmVhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXJwLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL2NhamEvc2Vzc2lvbi1jcmVhdGUvc2Vzc2lvbi1jcmVhdGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXJwLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL2NhamEvc2Vzc2lvbi1jcmVhdGUvc2Vzc2lvbi1jcmVhdGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7Ozs7Ozs7Ozs7SUNHeEQsNEJBQXdCO0lBQUEsWUFBa0I7SUFBQSxpQkFBSTs7O0lBQXRCLGVBQWtCO0lBQWxCLG9EQUFrQjs7OztJQUc1Qyw4QkFBMEM7SUFDeEMsOEJBQTRCO0lBQzFCLGdDQUF3QjtJQUFBLGdDQUFnQjtJQUFBLGlCQUFRO0lBQ2hELGdDQUEwR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