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

@soyalfredo115/at-grid-angular

v0.1.0

Published

AtGrid — tabla declarativa con superpoderes (orden, filtros, agrupación, export Excel) para Angular standalone/signals

Readme

@soyalfredo115/at-grid-angular

Puerto a Angular (standalone components, signals) del componente AtGrid — misma funcionalidad que @soyalfredo115/at-grid-react: orden (incl. multi-sort), reordenar/redimensionar/fijar columnas, agrupación con subtotales, búsqueda global, filtros por columna tipados, selección de filas con barra de agregados, export a Excel (.xlsx propio, sin librerías) y copia TSV, autosize, tooltips, grupos de encabezado de 2 niveles, y persistencia de estado en localStorage.

Instalación

npm install @soyalfredo115/at-grid-angular

Peer dependencies

@angular/core ^18.0.0 || ^19.0.0
@angular/common ^18.0.0 || ^19.0.0

Sin dependencias de terceros para íconos/overlay: los íconos son <svg> inline y el popover usa un Directive propio (AtGridPortalDirective) para portal a document.body, no @angular/cdk.

Uso

import { AtGridComponent, type AtGridColumn } from '@soyalfredo115/at-grid-angular';

@Component({
  standalone: true,
  imports: [AtGridComponent],
  template: `
    <at-grid [columns]="columns" [rows]="rows" storageKey="cxc" selectable (rowClick)="onRowClick($event)" />
  `,
})
export class MiTablaComponent {
  columns: AtGridColumn<Fila>[] = [
    { key: 'partner', label: 'Cliente', strong: true, groupable: true },
    { key: 'state', label: 'Estado', filterType: 'set' },
    { key: 'amount_usd', label: 'USD', numeric: true, aggregate: 'sum', aggregateFormat: fmtUSD },
  ];
  rows: Fila[] = [];
}

Celdas custom

A diferencia de la versión React (que pasa una función render en la columna), acá las celdas/pies/acciones de selección personalizadas se proyectan como contenido dentro de <at-grid>:

<at-grid [columns]="columns" [rows]="rows">
  <ng-template atGridCell="state" let-row>
    <span class="badge">{{ row.state }}</span>
  </ng-template>
</at-grid>

Ver AtGridCellDirective, AtGridFooterDirective, AtGridSelectionActionsDirective.

Diferencias conocidas vs. la versión React

  • Sin i18n: los textos de la UI están hardcodeados en español en el template. La versión React usa react-i18next con namespace grid (es/en). Si se necesita i18n en Angular, hay que agregarlo (no viene incluido).
  • Celdas custom: proyección de contenido (ng-template) en vez de props render/footer (ver arriba).

Estilos

Igual que la versión React: usa clases Tailwind del sistema de diseño Atelier (paper, card, line, ink, clay, etc.) y estilos .at-table / .at-pin / .at-group. Sin esos tokens/estilos el componente funciona pero pierde su apariencia — hay que portar los tokens y esas clases al proyecto consumidor.

Exports

  • AtGridComponent — componente principal (selector at-grid).
  • AtGridPaginationComponent, AtGridPopoverComponent, AtGridPortalDirective — usados internamente, también reusables sueltos.
  • AtGridCellDirective, AtGridFooterDirective, AtGridSelectionActionsDirective — directivas de proyección de contenido.
  • downloadXlsx, makeXlsx — generador de .xlsx sin librerías.
  • Tipos: AtGridColumn, AtGridFilterType, AtGridAggregate, SortState, ColumnFilterValue, PinSide, PersistedState, GroupNode, FlatItem, PopoverKind, PopoverState.