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

@viamericas/viacheck-filters-check-details

v2.0.36

Published

Component that allow search

Readme

Welcome to component viacheck-filters-search

Hi! this is a guide where you can get technical information about this component.

Filters Search

This component allow to filter with multiple elements:

  • Agency
  • Chain
  • Check Status
  • Banks
  • Cash Letter
  • Date range
  • Generate with Images
  • Credit Applied

The component already includes dates validation and from needs to less than to and to can't be greater than today.

Filter values will be returned with a JSON as shown in this example.

Result Search

Install

  • npm i @viamericas/viacheck-filters-search

Parameters

<FiltersSearch
  language="en"
  nameLanguageJSON="translation"
  agencies={agencies}
  chains={chains}
  checkStatus={checkStatus}
  banks={banks}
  hasElements={hasElements}
  onClickSearch={onClickSearch}
  onClickClean={onClickClean}
  initialDateFrom={initialDateFrom}
  initialDateTo={initialDateTo}
  shortcutKey={shortcutKey}
  activateShortCutKey={activateShortCutKey}
/>

| Parameter | Description | | --------------------- | -------------------------------------------------------------------------------------------------------------------- | | language | this is the language that what we want to show in labels and control, currently has implemented Spanish and English. | | nameLanguageJSON | this is the name of file that contain the translation, this file is located on locales folder | | agencies | this is the array of agencies to show on agency control | | chains | this is the array of chains to show on agency control | | checkStatus | this is the array of checkStatus to show on agency control | | banks | this is the array of banks to show on agency control | | hasElements | object parameter to show or hide filter elements | | onClickSearch | this method receive the result of click on search button | | initialDateFrom | this is the initial date to from control | | initialDateTo | this is the initial date to from control | | shortcutKey | this is the key to action the search, by the default value it's Enter. | | activateShortCutKey | this is boolean value, to activate the search with the key press action. by default it's false. |

Styles

Elements can be resized with this classes:

.filter-box .half-width {
  flex: 1 1 calc(100% / 4);
  min-width: 200px;
}

.filter-box .double-width {
  flex: 1 1 calc(100% / 2);
  min-width: 200px;
}

.filter-box .full-width {
  flex-basis: 100%;
}

Also elements can be reordered using his id:

#agencies-field {
  order: 4;
}
#chain-id-field {
  order: 3;
}
#check-id-field {
  order: 2;
}
#check-status-field {
  order: 5;
}
#cash-letter-field {
  order: 6;
}
#banks-field {
  order: 1;
}

Filters Search Reorder

Localization

Localization folder: Locales

Result

Result Search

you can see the example in the folder dev-test file with his parameters

Implement

The example of implementation is on test-dev folder file app.js

Development

To see the component working you can run the command npm run start:dev by default the solution compile the component and shows in 9009 port

Test

Currently we have to commands to test the application, both shows the same result:

Test

The difference is the first (npm run test) run once the test and it is used in the push git command, and the second (npm run test:w) run on mode watch that mean it is listening changes in the application.

Build

  • npm run start and npm run start:source creates the build file without obfuscation, you can read easily
  • npm run build it is the build on production mode, must be run before publish the package

Validate weight of package (93.04kb)

you can run the next commands to see the result of the bundle :

  • npm run build:debug
  • npm run analizedependences

and this is the result : Test