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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ngx-reusable/material

v14.1.0

Published

**@ngx-reusable** project is an **Angular** library that contains a collection of components, directives and pipes that we need in any project

Downloads

7

Readme

@ngx-reusable

@ngx-reusable project is an Angular library that contains a collection of components, directives and pipes that we need in any project

@ngx-reusable/material

We believe that Angular Material is providing one the best generic components you need while developing with Angular, but often you find yourself doing the same steps over and over.

@ngx-reusable/material library provides an easier way to deal with @angular/material components that you use often, following same conventions and using same components.

versions

| Angular Version | @ngx-reusable/material |

| --------------- | ------------------------- |

| 14 | @ngx-reusable/material@14 |

Table

Each time you want a simple table, you have to add the table with nested ng-containers to decalre the column data and header!

ReusableTableModule provides a simple mat-table component to use just by declaring the required columns and passing the data!

add ReusableTableModule to your module:

import { ReusableTableModule } from "@ngx-reusable/material/table";
  • TableComponent:

  • selector: reuse-mat-table

  • @Input() list!: { [key: string ]: any }[];

  • @Input() columns!: TableColumn[];

  • @Input() pageEvent?: PageEvent;

  • @Input() sortEvent?: Sort;

  • @Output() sort: EventEmitter<Sort>;

Example: StackBiltz

Autocomplete

Adding Autocomplete component in Material is clear, but in most cases all you need is a searchable dropdown!!

add ReusableAutocompleteModule to your module:

import { ReusableAutocompleteModule } from "@ngx-reusable/material/autocomplete";
  • AutocompleteComponent

    • selector: reuse-mat-autocomplete
    • usage: searchable dropdown
    • @Input() options!: any[];
    • @Input() appearance?: 'standard' | 'fill' | 'outline';
    • @Input() required?: boolean;
    • @Input() placeholder?: string;
    • @Input('key') keyProperty?: string;
    • @Input('value') valueProperty?: boolean;
    • @Output() selectionChange: EventEmitter<any>;
    • Notes:
      • Can be used with ReactiveForms using formControlName or formControl.
      • As any MatFormField components, you can pass:
        • mat-label
        • mat-icon matPrefix
        • mat-icon matSuffix
        • mat-hint
        • mat-error

    Example: StackBiltz