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

zmaterial

v0.3.12

Published

A components developed based on the angular material. Containing customizable and templete.

Downloads

11

Readme

zMaterial

A lib developed based on Angular Material using the Angular CLI framework. Containing Customized Components and Templates.


Summary

  1. Develop Mode
  2. Install Library in Projects
  3. Components

Develop Mode

This part shows the development of the library

Clone Project

  • SSH
git clone [email protected]:ivanantunes/zmaterial-app.git
  • HTTP
git clone https://github.com/ivanantunes/zmaterial-app.git

Run Development Mode

To perform the tests we need to build the library and start the app later.

  • Library Build
npm run watch-mod
  • Start App
npm start

Install Library in Projects

  • Command to Install the Library in Angular Projects
npm install --save zmaterial

Components

Below is the list of components that are available to use

  1. zMenu
  2. zForms
  3. zReport

zMenu

<z-menu-material 
[titleProject]="" 
[logoProject]="" 
[showLogout]=""
[profile]=""
[menuItems]=""
(logout)="">
  <router-outlet></router-outlet>
</z-menu-material>
imports: [
        // zMaterial
        ZModule.forRoot({
          languageData: translate
        }),
        ZMenuModule,
    ],

zMenu Picture

zForms

<z-form-material
[title]=""
[formProvider]=""
[showClearButton]=""
[submitText]=""
(submitValue)=""
></z-form-material>
import { ZFormInputBase, ZFormInputText, ZFormProvider } from 'zmaterial';

export class MyComponent extends ZFormProvider {

  constructor() { super(); }

  getInputs(): Observable<ZFormInputBase<any>[]> {
    return of([
      new ZFormInputText({
        label: 'Login',
        key: 'login',
        type: 'text',
        required: true,
        layout: {
          cols: 100
        }
      }),
      new ZFormInputText({
        label: 'Password',
        key: 'password',
        type: 'password',
        required: true,
        layout: {
          cols: 100
        }
      }),
    ]);
  }
}
    imports: [
        // zMaterial
        ZModule.forRoot({
          languageData: translate
        }),
        ZFormModule,
    ],

zForm Picture

zReport

<z-report-material [reportProvider]=""></z-report-material>
export class MyComponent extends ZReportProvider<PeriodicElement> implements OnInit {

  public ELEMENT_DATA: PeriodicElement[] = [
    {position: '1', name: 'Hydrogen', weight: '1.0079', symbol: 'H'},
    {position: '2', name: 'Helium', weight: '4.0026', symbol: 'He'},
    {position: '3', name: 'Lithium', weight: '6.941', symbol: 'Li'},
    {position: '4', name: 'Beryllium', weight: '9.0122', symbol: 'Be'},
    {position: '5', name: 'Boron', weight: '10.811', symbol: 'B'},
    {position: '6', name: 'Carbon', weight: '12.0107', symbol: 'C'},
    {position: '7', name: 'Nitrogen', weight: '14.0067', symbol: 'N'},
    {position: '8', name: 'Oxygen', weight: '15.9994', symbol: 'O'},
    {position: '9', name: 'Fluorine', weight: '18.9984', symbol: 'F'},
    {position: '10', name: 'Neon', weight: '20.1797', symbol: 'Ne'}
  ];

  constructor() { super(); }

  ngOnInit(): void {
  }

  public getReportDefinition(): ZReportDefinition<any>[] {
    return [
      {
        key: 'position',
        header: 'Position',
        order: 1,
        cell: (element: PeriodicElement) => {
          return element.position ;
        }
      },
      {
        key: 'name',
        header: 'Name',
        order: 2,
        cell: (element: PeriodicElement) => {
          return element.name;
        }
      },
      {
        key: 'weight',
        header: 'Weight',
        order: 3,
        cell: (element: PeriodicElement) => {
          return element.weight;
        }
      },
      {
        key: 'symbol',
        header: 'Symbol',
        order: 4,
        cell: (element: PeriodicElement) => {
          return element.symbol;
        }
      }
    ];
  }

  public getReportConfig(): ZReportConfig {
    return {
      title: 'zMaterial',
      image: {
        image: 'assets/no-profile.jpeg',
        type: 'JPEG'
      },
      reportTitle: 'Report Example',
      filters: [
        {title: 'My Filter', value: 'Value Filter'},
      ],
      actions: {
        pdf: true,
        xlsx: true,
        csv: true
      }
    };
  }

  public getReportData(): Observable<any[]> {
    return of(this.ELEMENT_DATA);
  }

}
imports: [
        // zMaterial
        ZModule.forRoot({
          languageData: translate
        }),
        ZReportModule
    ],

zReport Picture