npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ng-documentos-cliente

v1.3.0

Published

Ng Documentos Cliente es un componente tipo modal para visualizar datos de las dcouemntos cliente.

Readme

NgDocumentosCliente

Ng Documentos Cliente es un componente tipo modal para visualizar datos de las dcouemntos cliente.

Esta Libreria se generó con Angular CLI version 19.1.0.

Índice


Pre-requisitos

Para que nuestro componente funcione debemos tener instalado las siguientes librerias.

  • @angular/material
  • ag-grid-angular

Arquitectura Hexagonal

La librería está diseñada con Hexagonal Architecture, lo que significa que separa las capas internas (dominio y aplicación) de las capas externas (infraestructura y adaptadores). Esto permite que la lógica de negocio sea independiente de los frameworks y herramientas específicas.

Estructura del proyecto

📂 ng-documentos-cliente
┣ 📂 lib
┃ ┣ 📂 domain                        # Lógica de negocio y modelos
┃ ┃ ┣ 📂 mappers                     # Mapeo de datos API a Domain y viceversa
┃ ┃ ┣ 📂 models                      # Modelos de datos
┃ ┃ ┗ 📂 usecase                     # Casos de uso (Aplicación de negocio)
┃ ┣ 📂 environment                   # Configuración de entorno
┃ ┣ 📂 helpers                       # Funciones auxiliares y utilidades
┃ ┣ 📂 infrastructure                # Comunicación con el exterior (Servicios, APIs, etc.)
┃ ┃ ┣ 📂 dto                         # Data Transfer Objects
┃ ┃ ┣ 📂 repositories                # Implementaciones de acceso a datos
┃ ┃ ┗ 📂 services                    # Servicios que interactúan con APIs externas
┃ ┣ 📂 entry-point                   # Adaptadores y puntos de entrada (controladores, etc.)
┃ ┣ 📂 modules                       # Módulos de la aplicación
┃ ┃ ┣ 📂 consulta-documentos-cliente # Módulo de trazabilidad
┃ ┃ ┗ 📂 shared                      # Componentes compartidos

Datos de entrada

Definición de atributos del [input] consulta-documentos-cliente-config para el correcto funcionamiento del dialog ng-documentos-cliente

| Atributo | Descripción | |----------------------------|-----------------------------------------------------------------------------| | accessToken (string) | Valor del token de autorización para consumir la api de documentos cliente. | | host (string) | Host donde se consultara las documentos cliente. | | idRemesa (string) | Identificador de la remesa | | numeroRemesa (string) | Numero de remesa | | widthDialog? (string) | (Opcional) Ancho del dialog. Default: 660px |
| heightTable? (string) | (Opcional) Alto de la tabla. Default: 250px | | camposAOcultar? (string[]) | (Opcional) Campos que no se deseen mostrar en la tabla |

Nombre de los campos que se pueden ocultar:

  • tipoDocumento
  • numeroDocumento
  • fechaDocumento

Configuración

En el archivo app.gateway-config.ts, agrega lo siguiente para definir la configuración del Gateway:

import { libDocumentosClienteGateWayConfig } from 'ng-documentos-cliente';

export const gateWayConfig: Provider | EnvironmentProviders = [
  libDocumentosClienteGateWayConfig // Providers lib Docmuentos Cliente
];

En el archivo app.config.ts, agrega la siguiente configuración:

provideAnimationsAsync(), //Animation Angular
//HttpClient
  provideHttpClient(
    withFetch(),
  ),
  NgConsultaDocumentosClienteDialog, // Providers Dialog de consulta de documentos cliente
  gateWayConfig // Provider app.gateway-config.ts
  //Tambien se puede colocar directamente el Provider de la libreria
  //libDocumentosClienteGateWayConfig //De esta manera

Como utilizar

Importación de la libreria

import { NgConsultaDocumentosClienteDialog } from 'ng-documentos-cliente';

Declaración e Inyección de la libreria

constructor(
  private readonly ngConsultaDocumentosClienteDialog: NgConsultaDocumentosClienteDialog
) {}

Abrir el dialog

const configConsultaDocumentosCliente: ConsultaDocumentosClienteConfigDto = {
  accessToken: 'ey23232323',
  host: environment.HOST,
  idRemesa: "2323223232323232332",
  numeroRemesa: '232323232'
}
this.ngConsultaDocumentosClienteDialog.open(configConsultaDocumentosCliente);

Licencia

Este componente es software propietario de TCC. Queda restringido a proyectos internos y no puede distribuirse ni reutilizarse fuera de la organización.

Autores

  • Camiliño Andrés Calle Coavas - Analista Desarrollador - Softcaribbean
  • Fabio Miguel Lengua Pastrana - Analista Desarrollador - Softcaribbean