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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cbm-common/accounting-seat

v0.0.3

Published

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.1.0.

Readme

AccountingSeat

This project was generated using Angular CLI version 20.1.0.

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

Building

To build the library, run:

cbm-accounting-seat — Documentación

Breve

accounting-seat es la librería que contiene el componente para visualizar y operar con asientos contables dentro del ecosistema CBM. Está pensada para integrarse tanto como componente standalone como parte de un módulo que pueda registrarse en la app principal.

Instalación (distribución interna)

La librería se publica como paquete local/privado con el nombre accounting-seat. Para instalarla desde un registro privado o desde dist/:

  1. Desde dist tras construir:
cd dist/accounting-seat
npm install --no-save ./
  1. O, si está publicada en vuestro registro privado:
npm install --save accounting-seat

Uso rápido

Ejemplo mínimo (si se exporta como componente standalone CbmAccountingSeatComponent):

  1. Import en un componente padre (standalone):
import { CbmAccountingSeatComponent } from 'accounting-seat';

@Component({
   standalone: true,
   imports: [CbmAccountingSeatComponent],
   template: `<cbm-accounting-seat [collectionOriginId]="''"></cbm-accounting-seat>`
})
export class Demo {}
  1. Uso en plantilla HTML de la app (si la librería exporta un módulo CbmAccountingSeatModule):
import { CbmAccountingSeatModule } from 'accounting-seat';

@NgModule({
   imports: [CbmAccountingSeatModule]
})
export class AppModule {}

Y en la plantilla:

<cbm-accounting-seat collectionOriginId="" ></cbm-accounting-seat>

API (entradas / salida)

Nota: ajusta los nombres a los que exporta la librería en tu build. Ejemplo razonable de inputs que este componente suele exponer:

  • collectionOriginId: string — identificador del origen de datos a mostrar.
  • disabled: boolean — desactiva la interacción.
  • Eventos emitidos: save, cancel (EventEmitter) — si aplica.

Consulta el archivo src/app/cbm-common/components/accounting-seat/* del proyecto para confirmar las propiedades reales exportadas y actualiza esta sección si es necesario.

Desarrollo

Comandos útiles dentro del workspace raíz:

  • Construir la librería (Angular CLI):
ng build accounting-seat
  • Ejecutar el script de Tailwind (se usa para compilar estilos locales):
# en el directorio projects/accounting-seat
npm run tailwind
  • Para trabajar en la librería y probarla desde la app principal:
  1. Ejecuta ng build accounting-seat --watch y en otra terminal inicia la app principal npm start.
  2. Importa la librería desde dist/accounting-seat o publícala en tu registro local.

Publicación

  1. Asegúrate de actualizar la versión en projects/accounting-seat/package.json.
  2. Construye la librería:
ng build accounting-seat
  1. Publica desde dist:
cd dist/accounting-seat
npm publish --access restricted

Testing

Ejecuta los tests unitarios configurados en el workspace:

ng test

Si la librería incluye pruebas propias en projects/accounting-seat, puedes ejecutar ng test accounting-seat.

Integración en la app (routing)

Para exponer el componente en el panel de componentes del ejemplo CBM, se añadió la ruta local cbm-common/components/accounting-seat y el enlace en el panel; para que la navegación funcione, el componente debe exportarse con el nombre AccountingSeat (o ajustar la import en components.routes.ts).

Comprobaciones a realizar tras integrar

  • Asegúrate de que projects/accounting-seat/src/public-api.ts exporta los símbolos que quieres usar (componente y/o módulo).
  • Confirma el nombre del paquete en projects/accounting-seat/package.json (por defecto en este repositorio: accounting-seat).

Contribuir

  1. Crea una rama con tu cambio.
  2. Añade tests si modificas comportamiento.
  3. Abre un merge request con descripción y pasos para verificar.

Licencia

Incluye la información de licencia del repo principal aquí o reemplázala por la licencia que aplique a esta librería.

Contacto

Para dudas sobre integración o publicación, contacta al equipo CBM responsable del monorepo.