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

blind-pagination

v1.0.5

Published

#Instalación

Readme

BlindPagination

#Instalación

npm install blind-pagination -save --legacy-peer-deps

#Importaciones

app.module.ts

import { MetroPaginationModule } from 'blind-pagination'


@NgModule({
  declarations: [],
  imports: [
    MetroPaginationModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Nota:

Este componente no realiza paginaciones, solo contiene el template con el diseño visual basico para controlar dicha paginación.

Este componente está diseñado para trabajar con los assets de Metro-Core, para utilizarlo en otro proyecto, tendrán que editarlo de acuerdo a los requerimientos del proyecto y su template.

Parametros

LLamada y parametros requeridos

|

Llamada Basica

|

<metro-pagination
  [totalRecords]="200" 
  [current]="current" 
  (onPageSelected)="current = $event"
  (onLimitSelected)="change_api_limit($event)" 
></metro-pagination>

| |

Parametros requeridos

|

totalRecords number

|

Nota:

La cantidad de paginas se calculará automaticamente dependiendo de la cantidad total de registros que contenga la tabla. Por defecto, la cantidad e registros a mostrar será de 10, es decir que para 200 registros, se calcularán 20 paginas.

Por defecto se mostrarán 5 paginas en el selector de paginas, pero podrá modificar este numero agregando parametros adicionales

Parametros opcionales

|

Nombre

|

Type

|

Default

|

Descripcipón

| |

current

|

number
|

1

|

Pagina actual

| |

loading

|

BOOLEAN
|

false
|

Dependiendo del estado enviado, se mostrará u oculpará el spinner de carga

| |

maxShowPages

|

BOOLEAN
|

5

|

Cantidad maxima de páginas a mostrar en el selector de páginas

| |

buttonText

|

class
|
|

Recibe textos que se asignarán a los botones de navegación

| |

showButtonsOnSides

|

BOOLEAN
|

false
|

Mueve los botones de navegacion hacia los lados

| |

showPageSelector

|

BOOLEAN
|

true
|

Muestra u oculta los botones de seleccion de pagina

| |

showPageLimits

|

BOOLEAN
|

true
|

Habilita o deshabilita el selector de limites predefinidos

| |

showRightOptions

|

BOOLEAN
|

true
|

Habilita o deshabilita el bloque derecho de opciones.

|

Nota:

Si showRightOptions se setea en false, el selector de paginas se alineará al centro.

showButtonsOnSides debe estar seteado en false para que showButtonsOnSides active su funcionalidad

Callbacks

|

onPageSelected

|

number
|

Retornará en $event la pagina seleccionada

| |

onLimitSelected

|

number
|

Retornará en $event el valor 1, 10, 25, 50 o 100 dependiendo de la opción seleccionado para la cantidad de filas.

|

onPageSelected

<metro-pagination
  [totalRecords]="127" 
  [current]="current" 
  (onPageSelected)="current = $event" 
></metro-pagination>

onLimitSelected

<metro-pagination
  [totalRecords]="127" 
  [current]="current" 
  (onLimitSelected)="change_api_limit($event)" 
></metro-pagination>

Nota:

onLimitSelected retornará 1 si se selecciona la opcion All records

Configuración de texto, idioma o WCGA

Este parámetro es de tipo wcga_text, podrán recibirse textos para alterar los valores de title y aria-label de los botones de navegación y selectores de pagina

export class wcag_text{
  goFirstButton:string = "Go to first page";
  subOneButton:string = "Previous page";
  addOneButton:string = "Next page";
  goLastButton:string = "Go to last page";
  selectPage:string = "Select page ";

  constructor( params?: Partial<wcag_text> ){
    Object.assign(this, params);
  }
}

Debe enviarse un objeto para poder cambiar los textos de forma correcta.

/ENJOY ¯_(ツ)_/¯