visorus-erp-core 15.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/lib/app.module.mjs +20 -20
- package/esm2022/lib/components/acreedor/select/select-acreedor.component.mjs +208 -0
- package/{esm2020 → esm2022}/lib/components/acreedor/services/acreedor.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/acreedor/services/acreedorCuentaContable.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/agente/services/agente.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/almacen/services/almacen.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/banco/services/banco.service.mjs +5 -5
- package/esm2022/lib/components/caja/session-create/session-create.component.mjs +181 -0
- package/{esm2020 → esm2022}/lib/components/caja/sessionCaja.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/catalogoTipo/services/catalogoTipo.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/claveMovimiento/services/claveMovimiento.service.mjs +5 -5
- package/esm2022/lib/components/cliente/select/select-cliente.component.mjs +219 -0
- package/{esm2020 → esm2022}/lib/components/cliente/services/cliente.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/cliente/services/clienteCuentaBanco.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/cliente/services/clienteFlete.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/contacto/services/datoContacto.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/dato-direccion/services/datoDireccion.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/departamento/services/departamento.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/empresa/services/empresa.service.mjs +5 -5
- package/esm2022/lib/components/error404/error404.component.mjs +22 -0
- package/{esm2020 → esm2022}/lib/components/flete/services/flete.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/formaPago/services/FormaPago.service.mjs +5 -5
- package/esm2022/lib/components/loading/loading.component.mjs +49 -0
- package/{esm2020 → esm2022}/lib/components/loading/loading.service.mjs +4 -4
- package/esm2022/lib/components/loading-screen/loading-screen.component.mjs +45 -0
- package/{esm2020 → esm2022}/lib/components/loading-screen/loading-screen.service.mjs +4 -4
- package/esm2022/lib/components/login-modal/login-modal.component.mjs +152 -0
- package/{esm2020 → esm2022}/lib/components/login-modal/login-modal.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/moneda/services/moneda.service.mjs +5 -5
- package/esm2022/lib/components/pdfModal/pdf-modal.component.mjs +104 -0
- package/{esm2020 → esm2022}/lib/components/pdfModal/pdf-modal.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/persona-fisica/services/personaFisica.service.mjs +5 -5
- package/esm2022/lib/components/proveedor/select/select-proveedor.component.mjs +142 -0
- package/{esm2020 → esm2022}/lib/components/proveedor/services/proveedor.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/proveedor/services/proveedorFlete.service.mjs +5 -5
- package/esm2022/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +151 -0
- package/{esm2020 → esm2022}/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs +5 -5
- package/esm2022/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +486 -0
- package/{esm2020 → esm2022}/lib/components/selecciona-articulo/stock.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/serieDocumento/services/serieDocumento.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/tipo-contacto/services/tipoContacto.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/ubicacion/services/ubicacion.service.mjs +5 -5
- package/esm2022/lib/contabilidad/componentes/cclista/cclista.component.mjs +262 -0
- package/esm2022/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +66 -0
- package/{esm2020 → esm2022}/lib/contabilidad/servicios/cuentacontable.service.mjs +5 -5
- package/esm2022/lib/httpInterceptor/httpInterceptor.mjs +90 -0
- package/esm2022/lib/services/auth.service.mjs +203 -0
- package/esm2022/lib/services/authenticated.service.mjs +77 -0
- package/{esm2020 → esm2022}/lib/services/canActivateGuard.service.ts.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/catalogo-adicional.service.mjs +5 -5
- package/esm2022/lib/services/controlAcceso.service.mjs +43 -0
- package/{esm2020 → esm2022}/lib/services/file.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/init.service.mjs +5 -5
- package/esm2022/lib/services/message.service.mjs +79 -0
- package/esm2022/lib/services/paginate.service.mjs +58 -0
- package/{esm2020 → esm2022}/lib/services/personaMoral.service.mjs +5 -5
- package/esm2022/lib/services/versionCheck.service.mjs +52 -0
- package/esm2022/lib/utils/tipo_catalogo.ts.mjs +5 -0
- package/{fesm2020 → fesm2022}/visorus-erp-core.mjs +778 -754
- package/fesm2022/visorus-erp-core.mjs.map +1 -0
- package/lib/app.module.d.ts +1 -1
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +1 -1
- package/lib/components/caja/session-create/session-create.component.d.ts +1 -1
- package/lib/components/cliente/select/select-cliente.component.d.ts +1 -1
- package/lib/components/loading/loading.component.d.ts +1 -1
- package/lib/components/loading-screen/loading-screen.component.d.ts +1 -1
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +1 -1
- package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +1 -1
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +1 -1
- package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +1 -1
- package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +1 -1
- package/package.json +13 -19
- package/esm2020/lib/components/acreedor/select/select-acreedor.component.mjs +0 -205
- package/esm2020/lib/components/caja/session-create/session-create.component.mjs +0 -177
- package/esm2020/lib/components/cliente/select/select-cliente.component.mjs +0 -215
- package/esm2020/lib/components/error404/error404.component.mjs +0 -21
- package/esm2020/lib/components/loading/loading.component.mjs +0 -48
- package/esm2020/lib/components/loading-screen/loading-screen.component.mjs +0 -44
- package/esm2020/lib/components/login-modal/login-modal.component.mjs +0 -152
- package/esm2020/lib/components/pdfModal/pdf-modal.component.mjs +0 -102
- package/esm2020/lib/components/proveedor/select/select-proveedor.component.mjs +0 -138
- package/esm2020/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +0 -143
- package/esm2020/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +0 -493
- package/esm2020/lib/contabilidad/componentes/cclista/cclista.component.mjs +0 -262
- package/esm2020/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +0 -63
- package/esm2020/lib/httpInterceptor/httpInterceptor.mjs +0 -90
- package/esm2020/lib/services/auth.service.mjs +0 -203
- package/esm2020/lib/services/authenticated.service.mjs +0 -77
- package/esm2020/lib/services/controlAcceso.service.mjs +0 -43
- package/esm2020/lib/services/message.service.mjs +0 -79
- package/esm2020/lib/services/paginate.service.mjs +0 -58
- package/esm2020/lib/services/versionCheck.service.mjs +0 -52
- package/esm2020/lib/utils/tipo_catalogo.ts.mjs +0 -5
- package/fesm2015/visorus-erp-core.mjs +0 -4063
- package/fesm2015/visorus-erp-core.mjs.map +0 -1
- package/fesm2020/visorus-erp-core.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/components/agente/models/Agente.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/almacen/models/Almacen.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/banco/models/Banco.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/catalogoTipo/models/CatalogoTipo.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/clasificadorTipo/models/ClasificadorTipo.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/claveMovimiento/models/ClaveMovimiento.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/cliente/models/Cliente.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/cliente/models/ClienteCuentaBanco.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/cliente/models/ClienteFlete.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/contacto/models/DatoContacto.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/dato-direccion/models/DatoDireccion.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/departamento/models/Departamento.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/empresa/models/Empresa.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/flete/models/Flete.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/formaPago/models/FormaPago.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/moneda/models/Moneda.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/persona-fisica/models/EstadoCivil.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/persona-fisica/models/Genero.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/persona-fisica/models/Persona.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/persona-fisica/models/PersonaFisica.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/proveedor/models/Proveedor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/proveedor/models/ProveedorCuentaBanco.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/proveedor/models/ProveedorFlete.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/serieDocumento/models/SerieDocumento.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tipo-contacto/models/TipoContacto.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/ubicacion/models/Ubicacion.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/contabilidad/modelos/cuentaContable.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/contabilidad/modelos/normaInfoFinanciera.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/globalPrimeNg.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/importComponents.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/importComponetsConta.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/PersonaMoral.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/Usuario.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/auth.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/crud.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/global.service.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/visorus-erp-core.mjs +0 -0
package/lib/app.module.d.ts
CHANGED
|
@@ -51,6 +51,6 @@ import * as i47 from "@ngx-translate/core";
|
|
|
51
51
|
export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
|
|
52
52
|
export declare class CoreLibModule {
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreLibModule, never>;
|
|
54
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreLibModule, [typeof i1.Error404Component, typeof i2.LoadingComponent, typeof i3.LoadingScreenComponent, typeof i4.LoginModalComponent, typeof i5.PdfModalComponent, typeof i6.SessionCreateComponent, typeof i7.SelectClienteComponent, typeof i8.SelectProveedorComponent, typeof i9.SeleccionaArticuloComponent, typeof i10.SelectAcreedorComponent, typeof i11.CclistaComponent, typeof i12.CcseleccionDialogComponent, typeof i13.SeleccionArticuloInformacionComponent], [typeof i14.CommonModule, typeof i15.CardModule, typeof i16.TooltipModule, typeof i17.OverlayPanelModule, typeof i18.RadioButtonModule, typeof i19.CheckboxModule, typeof i20.AutoCompleteModule, typeof i21.TableModule, typeof i22.TreeTableModule, typeof i23.CalendarModule, typeof i21.TableModule, typeof i24.ButtonModule, typeof i25.InputTextModule, typeof i26.DropdownModule, typeof i27.InputMaskModule, typeof i28.MessagesModule, typeof i29.MessageModule, typeof i30.PaginatorModule, typeof i31.ConfirmDialogModule, typeof i32.ProgressBarModule, typeof i33.TriStateCheckboxModule, typeof i34.KeyFilterModule, typeof i35.InputSwitchModule, typeof i36.DialogModule, typeof i37.TabViewModule, typeof i38.PanelModule, typeof i39.ToolbarModule, typeof i40.SplitButtonModule, typeof i41.FieldsetModule, typeof i42.TreeModule, typeof i43.TabMenuModule, typeof i44.MenubarModule, typeof i45.FormsModule, typeof i46.ToastrModule, typeof i47.TranslateModule], [typeof i2.LoadingComponent, typeof i3.LoadingScreenComponent, typeof i4.LoginModalComponent, typeof i5.PdfModalComponent, typeof i6.SessionCreateComponent, typeof i7.SelectClienteComponent, typeof i8.SelectProveedorComponent, typeof i9.SeleccionaArticuloComponent, typeof i10.SelectAcreedorComponent, typeof i11.CclistaComponent, typeof i12.CcseleccionDialogComponent]>;
|
|
54
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreLibModule, [typeof i1.Error404Component, typeof i2.LoadingComponent, typeof i3.LoadingScreenComponent, typeof i4.LoginModalComponent, typeof i5.PdfModalComponent, typeof i6.SessionCreateComponent, typeof i7.SelectClienteComponent, typeof i8.SelectProveedorComponent, typeof i9.SeleccionaArticuloComponent, typeof i10.SelectAcreedorComponent, typeof i11.CclistaComponent, typeof i12.CcseleccionDialogComponent, typeof i13.SeleccionArticuloInformacionComponent], [typeof i14.CommonModule, typeof i15.CardModule, typeof i16.TooltipModule, typeof i17.OverlayPanelModule, typeof i18.RadioButtonModule, typeof i19.CheckboxModule, typeof i20.AutoCompleteModule, typeof i21.TableModule, typeof i22.TreeTableModule, typeof i23.CalendarModule, typeof i21.TableModule, typeof i24.ButtonModule, typeof i25.InputTextModule, typeof i26.DropdownModule, typeof i27.InputMaskModule, typeof i28.MessagesModule, typeof i29.MessageModule, typeof i30.PaginatorModule, typeof i31.ConfirmDialogModule, typeof i32.ProgressBarModule, typeof i33.TriStateCheckboxModule, typeof i34.KeyFilterModule, typeof i35.InputSwitchModule, typeof i36.DialogModule, typeof i37.TabViewModule, typeof i38.PanelModule, typeof i39.ToolbarModule, typeof i40.SplitButtonModule, typeof i41.FieldsetModule, typeof i42.TreeModule, typeof i43.TabMenuModule, typeof i44.MenubarModule, typeof i45.FormsModule, typeof i46.ToastrModule, typeof i47.TranslateModule], [typeof i2.LoadingComponent, typeof i3.LoadingScreenComponent, typeof i4.LoginModalComponent, typeof i5.PdfModalComponent, typeof i6.SessionCreateComponent, typeof i7.SelectClienteComponent, typeof i8.SelectProveedorComponent, typeof i9.SeleccionaArticuloComponent, typeof i10.SelectAcreedorComponent, typeof i11.CclistaComponent, typeof i12.CcseleccionDialogComponent, typeof i15.CardModule, typeof i16.TooltipModule, typeof i17.OverlayPanelModule, typeof i18.RadioButtonModule, typeof i19.CheckboxModule, typeof i20.AutoCompleteModule, typeof i21.TableModule, typeof i22.TreeTableModule, typeof i23.CalendarModule, typeof i21.TableModule, typeof i24.ButtonModule, typeof i25.InputTextModule, typeof i26.DropdownModule, typeof i27.InputMaskModule, typeof i28.MessagesModule, typeof i29.MessageModule, typeof i30.PaginatorModule, typeof i31.ConfirmDialogModule, typeof i32.ProgressBarModule, typeof i33.TriStateCheckboxModule, typeof i34.KeyFilterModule, typeof i35.InputSwitchModule, typeof i36.DialogModule, typeof i37.TabViewModule, typeof i38.PanelModule, typeof i39.ToolbarModule, typeof i40.SplitButtonModule, typeof i41.FieldsetModule, typeof i42.TreeModule, typeof i43.TabMenuModule, typeof i44.MenubarModule, typeof i47.TranslateModule]>;
|
|
55
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreLibModule>;
|
|
56
56
|
}
|
|
@@ -22,5 +22,5 @@ export declare class SelectAcreedorComponent implements OnInit {
|
|
|
22
22
|
cerrarModal(): void;
|
|
23
23
|
seleccionarAcreedor(e: any): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAcreedorComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectAcreedorComponent, "select-acreedor", never, { "visible": "visible"; "acreedorSeleccionado": "acreedorSeleccionado"; }, { "select": "select"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectAcreedorComponent, "select-acreedor", never, { "visible": { "alias": "visible"; "required": false; }; "acreedorSeleccionado": { "alias": "acreedorSeleccionado"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
|
|
26
26
|
}
|
|
@@ -21,5 +21,5 @@ export declare class SessionCreateComponent implements OnInit {
|
|
|
21
21
|
save(): Promise<void>;
|
|
22
22
|
edit(): Promise<void>;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SessionCreateComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SessionCreateComponent, "session-create", never, { "showCreateSession": "showCreateSession"; "caja": "caja"; "monedaDenominacionList": "monedaDenominacionList"; "sessionEdit": "sessionEdit"; }, { "status": "status"; "success": "success"; }, never, never, false, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SessionCreateComponent, "session-create", never, { "showCreateSession": { "alias": "showCreateSession"; "required": false; }; "caja": { "alias": "caja"; "required": false; }; "monedaDenominacionList": { "alias": "monedaDenominacionList"; "required": false; }; "sessionEdit": { "alias": "sessionEdit"; "required": false; }; }, { "status": "status"; "success": "success"; }, never, never, false, never>;
|
|
25
25
|
}
|
|
@@ -23,5 +23,5 @@ export declare class SelectClienteComponent implements OnInit {
|
|
|
23
23
|
seleccionaCliente(e: any): void;
|
|
24
24
|
cerrar(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectClienteComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectClienteComponent, "select-cliente", never, { "clienteSeleccionado": "clienteSeleccionado"; "selectMode": "selectMode"; "visible": "visible"; }, { "select": "select"; }, never, never, false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectClienteComponent, "select-cliente", never, { "clienteSeleccionado": { "alias": "clienteSeleccionado"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
|
|
27
27
|
}
|
|
@@ -6,5 +6,5 @@ export declare class LoadingComponent {
|
|
|
6
6
|
logo_loading: string;
|
|
7
7
|
constructor(loadingService: LoadingService);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "loading", never, { "logo_loading": "logo_loading"; }, {}, never, never, false, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "loading", never, { "logo_loading": { "alias": "logo_loading"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -16,5 +16,5 @@ export declare class LoadingScreenComponent implements AfterViewInit, OnDestroy
|
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingScreenComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingScreenComponent, "app-loading-screen", never, { "logo_loading": "logo_loading"; }, {}, never, never, false, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingScreenComponent, "app-loading-screen", never, { "logo_loading": { "alias": "logo_loading"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -22,5 +22,5 @@ export declare class SelectProveedorComponent implements OnInit {
|
|
|
22
22
|
cerrarModal(): void;
|
|
23
23
|
seleccionarProveedor(e: any): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectProveedorComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectProveedorComponent, "select-proveedor", never, { "visible": "visible"; "proveedorSeleccionado": "proveedorSeleccionado"; }, { "select": "select"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectProveedorComponent, "select-proveedor", never, { "visible": { "alias": "visible"; "required": false; }; "proveedorSeleccionado": { "alias": "proveedorSeleccionado"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
|
|
26
26
|
}
|
package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ export declare class SeleccionArticuloInformacionComponent implements OnInit {
|
|
|
25
25
|
OnShow(): void;
|
|
26
26
|
onSelectedUbicacion(ubicacionRow: any): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeleccionArticuloInformacionComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeleccionArticuloInformacionComponent, "lib-seleccion-articulo-informacion", never, { "showModal": "showModal"; "articulo": "articulo"; }, { "eventSelection": "eventSelection"; }, never, never, false, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeleccionArticuloInformacionComponent, "lib-seleccion-articulo-informacion", never, { "showModal": { "alias": "showModal"; "required": false; }; "articulo": { "alias": "articulo"; "required": false; }; }, { "eventSelection": "eventSelection"; }, never, never, false, never>;
|
|
29
29
|
}
|
|
@@ -38,5 +38,5 @@ export declare class SeleccionaArticuloComponent implements OnInit {
|
|
|
38
38
|
onShowInformacion(eventArticulo: any): void;
|
|
39
39
|
onEventInformacion(event: any): void;
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeleccionaArticuloComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeleccionaArticuloComponent, "app-selecciona-articulo", never, { "configuracion": "configuracion"; "showArticulos": "showArticulos"; "movimiento": "movimiento"; "manejaUnidadSecundaria": "manejaUnidadSecundaria"; }, { "emitFilaSeleccionada": "emitFilaSeleccionada"; "emitShowArticulos": "emitShowArticulos"; }, never, never, false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeleccionaArticuloComponent, "app-selecciona-articulo", never, { "configuracion": { "alias": "configuracion"; "required": false; }; "showArticulos": { "alias": "showArticulos"; "required": false; }; "movimiento": { "alias": "movimiento"; "required": false; }; "manejaUnidadSecundaria": { "alias": "manejaUnidadSecundaria"; "required": false; }; }, { "emitFilaSeleccionada": "emitFilaSeleccionada"; "emitShowArticulos": "emitShowArticulos"; }, never, never, false, never>;
|
|
42
42
|
}
|
|
@@ -22,5 +22,5 @@ export declare class CclistaComponent implements OnInit {
|
|
|
22
22
|
resetAccount(): any[];
|
|
23
23
|
browseAccount(accounts: any): any[];
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CclistaComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CclistaComponent, "lib-cclista", never, { "isShared": "isShared"; "typeAccount": "typeAccount"; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CclistaComponent, "lib-cclista", never, { "isShared": { "alias": "isShared"; "required": false; }; "typeAccount": { "alias": "typeAccount"; "required": false; }; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never, false, never>;
|
|
26
26
|
}
|
|
@@ -20,5 +20,5 @@ export declare class CcseleccionDialogComponent implements OnInit {
|
|
|
20
20
|
getAccount(account: any): void;
|
|
21
21
|
hiddenDialog(evt: any): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CcseleccionDialogComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CcseleccionDialogComponent, "lib-ccseleccion-dialog", never, { "tipoCuenta": "tipoCuenta"; "displayShowCuentas": "displayShowCuentas"; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never, false, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CcseleccionDialogComponent, "lib-ccseleccion-dialog", never, { "tipoCuenta": { "alias": "tipoCuenta"; "required": false; }; "displayShowCuentas": { "alias": "displayShowCuentas"; "required": false; }; }, { "evSelectedAccount": "evSelectedAccount"; }, never, never, false, never>;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visorus-erp-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "~
|
|
6
|
-
"@angular/core": "~
|
|
7
|
-
"@angular/forms": "~
|
|
8
|
-
"@angular/cdk": "~
|
|
9
|
-
"primeng": "~
|
|
10
|
-
"primeflex": "
|
|
11
|
-
"primeicons": "
|
|
12
|
-
"rxjs": "~7.
|
|
5
|
+
"@angular/common": "~17.0.0",
|
|
6
|
+
"@angular/core": "~17.0.0",
|
|
7
|
+
"@angular/forms": "~17.0.0",
|
|
8
|
+
"@angular/cdk": "~17.0.0",
|
|
9
|
+
"primeng": "~17.0.0",
|
|
10
|
+
"primeflex": "~4.0.0",
|
|
11
|
+
"primeicons": "~6.0.1",
|
|
12
|
+
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.0.0"
|
|
16
16
|
},
|
|
17
|
-
"module": "
|
|
18
|
-
"es2020": "fesm2020/visorus-erp-core.mjs",
|
|
19
|
-
"esm2020": "esm2020/visorus-erp-core.mjs",
|
|
20
|
-
"fesm2020": "fesm2020/visorus-erp-core.mjs",
|
|
21
|
-
"fesm2015": "fesm2015/visorus-erp-core.mjs",
|
|
17
|
+
"module": "fesm2022/visorus-erp-core.mjs",
|
|
22
18
|
"typings": "index.d.ts",
|
|
23
19
|
"exports": {
|
|
24
20
|
"./package.json": {
|
|
@@ -26,11 +22,9 @@
|
|
|
26
22
|
},
|
|
27
23
|
".": {
|
|
28
24
|
"types": "./index.d.ts",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"node": "./fesm2015/visorus-erp-core.mjs",
|
|
33
|
-
"default": "./fesm2020/visorus-erp-core.mjs"
|
|
25
|
+
"esm2022": "./esm2022/visorus-erp-core.mjs",
|
|
26
|
+
"esm": "./esm2022/visorus-erp-core.mjs",
|
|
27
|
+
"default": "./fesm2022/visorus-erp-core.mjs"
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
"sideEffects": false,
|
|
@@ -1,205 +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 "@angular/common";
|
|
11
|
-
import * as i5 from "primeng/api";
|
|
12
|
-
import * as i6 from "primeng/table";
|
|
13
|
-
import * as i7 from "primeng/button";
|
|
14
|
-
import * as i8 from "primeng/inputtext";
|
|
15
|
-
import * as i9 from "primeng/paginator";
|
|
16
|
-
import * as i10 from "@angular/forms";
|
|
17
|
-
import * as i11 from "primeng/dialog";
|
|
18
|
-
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
20
|
-
i0.ɵɵtext(2);
|
|
21
|
-
i0.ɵɵpipe(3, "translate");
|
|
22
|
-
i0.ɵɵelementEnd();
|
|
23
|
-
i0.ɵɵelementStart(4, "th");
|
|
24
|
-
i0.ɵɵtext(5);
|
|
25
|
-
i0.ɵɵpipe(6, "translate");
|
|
26
|
-
i0.ɵɵelementEnd();
|
|
27
|
-
i0.ɵɵelementStart(7, "th");
|
|
28
|
-
i0.ɵɵtext(8);
|
|
29
|
-
i0.ɵɵpipe(9, "translate");
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
i0.ɵɵelementStart(10, "th");
|
|
32
|
-
i0.ɵɵtext(11);
|
|
33
|
-
i0.ɵɵpipe(12, "translate");
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
i0.ɵɵelementStart(13, "th");
|
|
36
|
-
i0.ɵɵtext(14);
|
|
37
|
-
i0.ɵɵpipe(15, "translate");
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
i0.ɵɵelementStart(16, "th");
|
|
40
|
-
i0.ɵɵtext(17);
|
|
41
|
-
i0.ɵɵpipe(18, "translate");
|
|
42
|
-
i0.ɵɵelementEnd()();
|
|
43
|
-
} if (rf & 2) {
|
|
44
|
-
i0.ɵɵadvance(2);
|
|
45
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
|
|
46
|
-
i0.ɵɵadvance(3);
|
|
47
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "rfc"));
|
|
48
|
-
i0.ɵɵadvance(3);
|
|
49
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
|
|
50
|
-
i0.ɵɵadvance(3);
|
|
51
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
|
|
52
|
-
i0.ɵɵadvance(3);
|
|
53
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "limiteCredito"));
|
|
54
|
-
i0.ɵɵadvance(3);
|
|
55
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
|
|
56
|
-
} }
|
|
57
|
-
function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
-
i0.ɵɵelementStart(0, "span");
|
|
59
|
-
i0.ɵɵtext(1);
|
|
60
|
-
i0.ɵɵpipe(2, "translate");
|
|
61
|
-
i0.ɵɵelementEnd();
|
|
62
|
-
} if (rf & 2) {
|
|
63
|
-
i0.ɵɵadvance(1);
|
|
64
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
|
|
65
|
-
} }
|
|
66
|
-
function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
i0.ɵɵelementStart(0, "span");
|
|
68
|
-
i0.ɵɵtext(1);
|
|
69
|
-
i0.ɵɵpipe(2, "translate");
|
|
70
|
-
i0.ɵɵelementEnd();
|
|
71
|
-
} if (rf & 2) {
|
|
72
|
-
i0.ɵɵadvance(1);
|
|
73
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
|
|
74
|
-
} }
|
|
75
|
-
function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵelementStart(0, "tr", 9)(1, "td");
|
|
77
|
-
i0.ɵɵtext(2);
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
i0.ɵɵelementStart(3, "td");
|
|
80
|
-
i0.ɵɵtext(4);
|
|
81
|
-
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵelementStart(5, "td");
|
|
83
|
-
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10);
|
|
84
|
-
i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵelementStart(8, "td");
|
|
87
|
-
i0.ɵɵtext(9);
|
|
88
|
-
i0.ɵɵelementEnd();
|
|
89
|
-
i0.ɵɵelementStart(10, "td");
|
|
90
|
-
i0.ɵɵtext(11);
|
|
91
|
-
i0.ɵɵelementEnd();
|
|
92
|
-
i0.ɵɵelementStart(12, "td");
|
|
93
|
-
i0.ɵɵtext(13);
|
|
94
|
-
i0.ɵɵpipe(14, "date");
|
|
95
|
-
i0.ɵɵelementEnd()();
|
|
96
|
-
} if (rf & 2) {
|
|
97
|
-
const acreedor_r3 = ctx.$implicit;
|
|
98
|
-
i0.ɵɵproperty("pSelectableRow", acreedor_r3);
|
|
99
|
-
i0.ɵɵadvance(2);
|
|
100
|
-
i0.ɵɵtextInterpolate(acreedor_r3.descripcionRazonSocial);
|
|
101
|
-
i0.ɵɵadvance(2);
|
|
102
|
-
i0.ɵɵtextInterpolate(acreedor_r3.descripcionRfc);
|
|
103
|
-
i0.ɵɵadvance(2);
|
|
104
|
-
i0.ɵɵproperty("ngIf", acreedor_r3.personaMoral);
|
|
105
|
-
i0.ɵɵadvance(1);
|
|
106
|
-
i0.ɵɵproperty("ngIf", acreedor_r3.personaFisica);
|
|
107
|
-
i0.ɵɵadvance(2);
|
|
108
|
-
i0.ɵɵtextInterpolate(acreedor_r3.atrasoDiasEntrega);
|
|
109
|
-
i0.ɵɵadvance(2);
|
|
110
|
-
i0.ɵɵtextInterpolate(acreedor_r3.limiteCredito);
|
|
111
|
-
i0.ɵɵadvance(2);
|
|
112
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
|
|
113
|
-
} }
|
|
114
|
-
function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
-
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
116
|
-
i0.ɵɵtext(2);
|
|
117
|
-
i0.ɵɵpipe(3, "translate");
|
|
118
|
-
i0.ɵɵelementEnd()();
|
|
119
|
-
} if (rf & 2) {
|
|
120
|
-
i0.ɵɵadvance(1);
|
|
121
|
-
i0.ɵɵattribute("colspan", 6);
|
|
122
|
-
i0.ɵɵadvance(1);
|
|
123
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
|
|
124
|
-
} }
|
|
125
|
-
const _c0 = function () { return [10, 25, 50, 100, 500]; };
|
|
126
|
-
export class SelectAcreedorComponent {
|
|
127
|
-
constructor(acreedorService, paginanateService, translate) {
|
|
128
|
-
this.acreedorService = acreedorService;
|
|
129
|
-
this.paginanateService = paginanateService;
|
|
130
|
-
this.translate = translate;
|
|
131
|
-
this.params = [];
|
|
132
|
-
this.ordenar = [];
|
|
133
|
-
this.visible = false;
|
|
134
|
-
this.acreedorSeleccionado = new Proveedor();
|
|
135
|
-
this.select = new EventEmitter();
|
|
136
|
-
this.translate.get('es');
|
|
137
|
-
}
|
|
138
|
-
ngOnInit() {
|
|
139
|
-
this.page = this.paginanateService.getPage();
|
|
140
|
-
let arg = [];
|
|
141
|
-
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
142
|
-
this.acreedores = [];
|
|
143
|
-
}
|
|
144
|
-
cargarDatosAcreedores() {
|
|
145
|
-
this.params = this.paginanateService.getParams(this.page);
|
|
146
|
-
this.params.push({ param: 'estatus', value: true });
|
|
147
|
-
this.acreedorService.getAll(this.params).subscribe((data) => {
|
|
148
|
-
this.acreedores = data.data;
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
pagina(e) {
|
|
152
|
-
this.page.rows = e.rows;
|
|
153
|
-
this.page.offset = e.first;
|
|
154
|
-
this.cargarDatosAcreedores;
|
|
155
|
-
}
|
|
156
|
-
cerrarModal() {
|
|
157
|
-
this.select.emit(null);
|
|
158
|
-
this.visible = false;
|
|
159
|
-
}
|
|
160
|
-
seleccionarAcreedor(e) {
|
|
161
|
-
this.select.emit(e.data);
|
|
162
|
-
this.visible = false;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
/** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(i1.AcreedorService), i0.ɵɵdirectiveInject(i2.PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
|
|
166
|
-
/** @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) {
|
|
167
|
-
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
168
|
-
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(); });
|
|
169
|
-
i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
|
|
170
|
-
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(); });
|
|
171
|
-
i0.ɵɵpipe(3, "translate");
|
|
172
|
-
i0.ɵɵelementEnd();
|
|
173
|
-
i0.ɵɵelementStart(4, "button", 3);
|
|
174
|
-
i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
|
|
175
|
-
i0.ɵɵelementEnd()();
|
|
176
|
-
i0.ɵɵelementStart(5, "p-table", 4);
|
|
177
|
-
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); });
|
|
178
|
-
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
|
|
179
|
-
i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6);
|
|
180
|
-
i0.ɵɵtemplate(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
|
|
181
|
-
i0.ɵɵelementEnd();
|
|
182
|
-
i0.ɵɵelementStart(9, "p-paginator", 8);
|
|
183
|
-
i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
184
|
-
i0.ɵɵelementEnd()();
|
|
185
|
-
} if (rf & 2) {
|
|
186
|
-
i0.ɵɵproperty("visible", ctx.visible);
|
|
187
|
-
i0.ɵɵadvance(2);
|
|
188
|
-
i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
|
|
189
|
-
i0.ɵɵproperty("ngModel", ctx.page.filtro);
|
|
190
|
-
i0.ɵɵadvance(3);
|
|
191
|
-
i0.ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
|
|
192
|
-
i0.ɵɵadvance(4);
|
|
193
|
-
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
|
|
194
|
-
} }, dependencies: [i4.NgIf, i5.PrimeTemplate, i6.Table, i6.SelectableRow, i7.ButtonDirective, i8.InputText, i9.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i11.Dialog, i4.DatePipe, i3.TranslatePipe], encapsulation: 2 });
|
|
195
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
196
|
-
type: Component,
|
|
197
|
-
args: [{ selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n [responsive]=\"true\">\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
198
|
-
}], function () { return [{ type: i1.AcreedorService }, { type: i2.PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}], acreedorSeleccionado: [{
|
|
201
|
-
type: Input
|
|
202
|
-
}], select: [{
|
|
203
|
-
type: Output
|
|
204
|
-
}] }); })();
|
|
205
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VycC1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9hY3JlZWRvci9zZWxlY3Qvc2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VycC1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9hY3JlZWRvci9zZWxlY3Qvc2VsZWN0LWFjcmVlZG9yLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFJLE9BQU8sRUFBRSxTQUFTLE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ICAgIDwvZGl2PlxuICAgIDxwLXRhYmxlXG4gICAgICAgICAgICAgICAgW3ZhbHVlXT1cImFjcmVlZG9yZXNcIlxuICAgICAgICAgICAgICAgIGRhdGFLZXk9XCJpZFwiIHNlbGVjdGlvbk1vZGU9XCJzaW5nbGVcIlxuICAgICAgICAgICAgICAgIFsoc2VsZWN0aW9uKV09XCJhY3JlZWRvclNlbGVjY2lvbmFkb1wiXG4gICAgICAgICAgICAgICAgKG9uUm93U2VsZWN0KT1cInNlbGVjY2lvbmFyQWNyZWVkb3IoJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgW3Njcm9sbGFibGVdPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgc2Nyb2xsSGVpZ2h0PVwiMzUwcHhcIlxuICAgICAgICAgICAgICAgIFtyZXNwb25zaXZlXT1cInRydWVcIj5cblxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBwVGVtcGxhdGU9XCJoZWFkZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgPHRyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoPnt7J3Jhem9uU29jaWFsJyB8IHRyYW5zbGF0ZX19PC90aD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD57eydyZmMnIHwgdHJhbnNsYXRlfX08L3RoPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoPnt7J3RpcG8nIHwgdHJhbnNsYXRlfX08L3RoPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoPnt7J2F0cmFzb0RpYXNFbnRyZWdhJyB8IHRyYW5zbGF0ZX19PC90aD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD57eydsaW1pdGVDcmVkaXRvJyB8IHRyYW5zbGF0ZX19PC90aD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD57eydmZWNoYVVsdGltYUNvbXByYScgfCB0cmFuc2xhdGV9fTwvdGg+XG4gICAgICAgICAgICAgICAgICAgIDwvdHI+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cblxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBwVGVtcGxhdGU9XCJib2R5XCIgbGV0LWFjcmVlZG9yPlxuICAgICAgICAgICAgICAgICAgICA8dHIgW3BTZWxlY3RhYmxlUm93XT1cImFjcmVlZG9yXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+e3thY3JlZWRvci5kZXNjcmlwY2lvblJhem9uU29jaWFsfX08L3RkPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRkPnt7YWNyZWVkb3IuZGVzY3JpcGNpb25SZmN9fTwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJhY3JlZWRvci5wZXJzb25hTW9yYWxcIj57eydtb3JhbCcgfCB0cmFuc2xhdGV9fTwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cImFjcmVlZG9yLnBlcnNvbmFGaXNpY2FcIj57eydmaXNpY28nIHwgdHJhbnNsYXRlfX08L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRkPnt7YWNyZWVkb3IuYXRyYXNvRGlhc0VudHJlZ2F9fTwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQ+e3thY3JlZWRvci5saW1pdGVDcmVkaXRvfX08L3RkPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHRkPnt7YWNyZWVkb3IuZmVjaGFVbHRpbWFDb21wcmEgfCBkYXRlOidkZC9NTS95eXl5J319PC90ZD5cbiAgICAgICAgICAgICAgICAgICAgPC90cj5cbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImVtcHR5bWVzc2FnZVwiPlxuICAgICAgICAgICAgICAgICAgICA8dHI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8dGQgW2F0dHIuY29sc3Bhbl09XCI2XCI+e3snZ2VuZXJhbC5ub1JlZ2lzdHJvcycgfCB0cmFuc2xhdGV9fTwvdGQ+XG4gICAgICAgICAgICAgICAgICAgIDwvdHI+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgIDwvcC10YWJsZT5cblxuICAgIDxwLXBhZ2luYXRvciBbcm93c109XCJwYWdlLnJvd3NcIiBbdG90YWxSZWNvcmRzXT1cInBhZ2UudG90YWxcIiBbcGFnZUxpbmtTaXplXT1cIjVcIlxuICAgICAgICAob25QYWdlQ2hhbmdlKT1cInBhZ2luYSgkZXZlbnQpXCIgW3Jvd3NQZXJQYWdlT3B0aW9uc109XCJbMTAsMjUsNTAsMTAwLDUwMF1cIj48L3AtcGFnaW5hdG9yPlxuXG48L3AtZGlhbG9nPiJdfQ==
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { Component, Input, EventEmitter, Output } from '@angular/core';
|
|
2
|
-
import { SessionCajaService } from '../sessionCaja.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../sessionCaja.service";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "primeng/api";
|
|
7
|
-
import * as i4 from "primeng/button";
|
|
8
|
-
import * as i5 from "primeng/inputtext";
|
|
9
|
-
import * as i6 from "@angular/forms";
|
|
10
|
-
import * as i7 from "primeng/dialog";
|
|
11
|
-
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
13
|
-
i0.ɵɵtext(1);
|
|
14
|
-
i0.ɵɵelementEnd();
|
|
15
|
-
} if (rf & 2) {
|
|
16
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
17
|
-
i0.ɵɵadvance(1);
|
|
18
|
-
i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
|
|
19
|
-
} }
|
|
20
|
-
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
22
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
23
|
-
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
24
|
-
i0.ɵɵelementEnd();
|
|
25
|
-
i0.ɵɵelementStart(4, "input", 8);
|
|
26
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.caja.nombre = $event); });
|
|
27
|
-
i0.ɵɵelementEnd()();
|
|
28
|
-
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
29
|
-
i0.ɵɵtext(7, "Saldo: ");
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
i0.ɵɵelementStart(8, "input", 11);
|
|
32
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.session.monto = $event); });
|
|
33
|
-
i0.ɵɵelementEnd()();
|
|
34
|
-
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
35
|
-
i0.ɵɵtext(11, "Numero Z:");
|
|
36
|
-
i0.ɵɵelementEnd();
|
|
37
|
-
i0.ɵɵelementStart(12, "input", 13);
|
|
38
|
-
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.session.z = $event); });
|
|
39
|
-
i0.ɵɵelementEnd()()();
|
|
40
|
-
} if (rf & 2) {
|
|
41
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
42
|
-
i0.ɵɵadvance(4);
|
|
43
|
-
i0.ɵɵproperty("ngModel", ctx_r1.caja.nombre)("disabled", true);
|
|
44
|
-
i0.ɵɵadvance(4);
|
|
45
|
-
i0.ɵɵproperty("ngModel", ctx_r1.session.monto)("disabled", ctx_r1.editMode);
|
|
46
|
-
i0.ɵɵadvance(4);
|
|
47
|
-
i0.ɵɵproperty("ngModel", ctx_r1.session.z)("disabled", true);
|
|
48
|
-
} }
|
|
49
|
-
function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
51
|
-
i0.ɵɵelementStart(0, "button", 17);
|
|
52
|
-
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 i0.ɵɵresetView(ctx_r9.save()); });
|
|
53
|
-
i0.ɵɵelementEnd();
|
|
54
|
-
} }
|
|
55
|
-
function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
57
|
-
i0.ɵɵelementStart(0, "button", 18);
|
|
58
|
-
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 i0.ɵɵresetView(ctx_r11.edit()); });
|
|
59
|
-
i0.ɵɵelementEnd();
|
|
60
|
-
} }
|
|
61
|
-
function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
63
|
-
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
|
|
64
|
-
i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
65
|
-
i0.ɵɵelementStart(2, "button", 16);
|
|
66
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.closeModal()); });
|
|
67
|
-
i0.ɵɵelementEnd();
|
|
68
|
-
} if (rf & 2) {
|
|
69
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
70
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.editMode && ctx_r2.caja);
|
|
71
|
-
i0.ɵɵadvance(1);
|
|
72
|
-
i0.ɵɵproperty("ngIf", ctx_r2.editMode && ctx_r2.caja);
|
|
73
|
-
} }
|
|
74
|
-
const _c0 = function () { return { width: "750px" }; };
|
|
75
|
-
export class SessionCreateComponent {
|
|
76
|
-
constructor(sessionCajaService) {
|
|
77
|
-
this.sessionCajaService = sessionCajaService;
|
|
78
|
-
this.showCreateSession = false;
|
|
79
|
-
this.caja = {};
|
|
80
|
-
this.sessionEdit = null;
|
|
81
|
-
// @Input() closeSession?: boolean
|
|
82
|
-
this.status = new EventEmitter();
|
|
83
|
-
this.success = new EventEmitter();
|
|
84
|
-
this.session = {
|
|
85
|
-
inicio: new Date().getTime(),
|
|
86
|
-
termino: null,
|
|
87
|
-
monedaDenominacionList: []
|
|
88
|
-
};
|
|
89
|
-
this.flagModal = true;
|
|
90
|
-
this.labels = {
|
|
91
|
-
title: "Crear nueva session de caja"
|
|
92
|
-
};
|
|
93
|
-
this.resp = {};
|
|
94
|
-
this.editMode = false;
|
|
95
|
-
}
|
|
96
|
-
ngOnInit() {
|
|
97
|
-
console.log("denominacionList", this.monedaDenominacionList);
|
|
98
|
-
}
|
|
99
|
-
setSession() {
|
|
100
|
-
if (this.sessionEdit) {
|
|
101
|
-
this.session = this.sessionEdit;
|
|
102
|
-
this.session.monedaDenominacionList = this.monedaDenominacionList;
|
|
103
|
-
if (this.session.movimientosCaja) {
|
|
104
|
-
this.session.monto = this.session.movimientosCaja[0].monto;
|
|
105
|
-
}
|
|
106
|
-
this.labels = {
|
|
107
|
-
title: "Cerrar session"
|
|
108
|
-
};
|
|
109
|
-
this.editMode = true;
|
|
110
|
-
}
|
|
111
|
-
else if (this.caja) {
|
|
112
|
-
this.labels.title = "Crear nueva session de caja";
|
|
113
|
-
this.session.caja = this.caja;
|
|
114
|
-
this.session.z = this.caja.z;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
closeModal() {
|
|
118
|
-
this.session = {};
|
|
119
|
-
this.editMode = false;
|
|
120
|
-
this.status.emit({ status: false });
|
|
121
|
-
}
|
|
122
|
-
async save() {
|
|
123
|
-
this.resp = await this.sessionCajaService.save(this.session).toPromise() || null;
|
|
124
|
-
if (this.resp) {
|
|
125
|
-
this.session = {};
|
|
126
|
-
this.editMode = false;
|
|
127
|
-
this.status.emit({ status: false, save: this.resp.data });
|
|
128
|
-
this.success.emit(true);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
this.success.emit(false);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async edit() {
|
|
135
|
-
console.log("EDIT", this.session);
|
|
136
|
-
this.resp = await this.sessionCajaService.update(this.session).toPromise() || null;
|
|
137
|
-
if (this.resp) {
|
|
138
|
-
this.session = {};
|
|
139
|
-
this.editMode = false;
|
|
140
|
-
this.status.emit({ status: false, update: this.resp.data });
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
/** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(i1.SessionCajaService)); };
|
|
145
|
-
/** @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) {
|
|
146
|
-
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
147
|
-
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(); });
|
|
148
|
-
i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_1_Template, 2, 1, "ng-template", 1);
|
|
149
|
-
i0.ɵɵtemplate(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
|
|
150
|
-
i0.ɵɵelementStart(3, "div");
|
|
151
|
-
i0.ɵɵtext(4, " Este agente no esta asignado a una caja ");
|
|
152
|
-
i0.ɵɵelementEnd();
|
|
153
|
-
i0.ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
|
|
154
|
-
i0.ɵɵelementEnd();
|
|
155
|
-
} if (rf & 2) {
|
|
156
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0));
|
|
157
|
-
i0.ɵɵproperty("visible", ctx.showCreateSession)("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
|
|
158
|
-
i0.ɵɵadvance(2);
|
|
159
|
-
i0.ɵɵproperty("ngIf", ctx.caja);
|
|
160
|
-
} }, dependencies: [i2.NgIf, i3.PrimeTemplate, i4.ButtonDirective, i5.InputText, i6.DefaultValueAccessor, i6.NumberValueAccessor, i6.NgControlStatus, i6.NgModel, i7.Dialog] });
|
|
161
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
162
|
-
type: Component,
|
|
163
|
-
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>" }]
|
|
164
|
-
}], function () { return [{ type: i1.SessionCajaService }]; }, { showCreateSession: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], caja: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], monedaDenominacionList: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], sessionEdit: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}], status: [{
|
|
173
|
-
type: Output
|
|
174
|
-
}], success: [{
|
|
175
|
-
type: Output
|
|
176
|
-
}] }); })();
|
|
177
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vzc2lvbi1jcmVhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXJwLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL2NhamEvc2Vzc2lvbi1jcmVhdGUvc2Vzc2lvbi1jcmVhdGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXJwLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL2NhamEvc2Vzc2lvbi1jcmVhdGUvc2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