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

jsvalley-ui

v0.2.4

Published

Collection of Quality Angular2 User Interfaces

Downloads

20

Readme

JsValley User Interface

Collection of Quality Angular 2 UIs

Demo

Current Modules Included

  • ng2-auto-complete
  • ng2-datetime-picker
  • ng2-map
  • ng2-overlay
  • ng2-scrollable

Install

  • npm

    $ npm install jsvalley-ui
  • update config.js map and packages

    //map tells the System loader where to look for things
    map: {
      app: "./src",
      '@angular': 'https://npmcdn.com/@angular',
      ...
      'jsvalley-ui': 'https://npmcdn.com/jsvalley-ui' // <----- this
    },
    
    packages: {
       app: {
         main: './main.ts',
         defaultExtension: 'ts'
       },
       ...
       'jsvalley-ui': {                              // <----- this
         main: 'dist/index.js',
         defaultExtension: 'js'
       }
    }

Usage

Import and include directives for your application

  • app.ts

      //our root app component
      import {Component, enableProdMode} from '@angular/core'
      import { JSVALLEY_DIRECTIVES } from "jsvalley-ui";
      enableProdMode();
    
      @Component({
        selector: 'my-app',
        templateUrl: 'src/app.tpl.html',
        directives: [ JSVALLEY_DIRECTIVES ]
      })
      export class App {
        arrayOfValues: any[] = ['a', 'b', 'c'];
      }
  • src/app.tpl.html

      <input ng2-auto-complete [source]="arrayOfKeyValues" [(ngModel)]="myModel" />
        
      <input [(ngModel)]="date1" ng2-datetime-picker /> 
        
      <ng2-map center="Brampton, Canada"></ng2-map>

Directives

  • ng2-map Google Maps Api V3 Wrappe
  • ng2-auto-complete Typeahead for local and remote sources
  • ng2-datetime-picker Date picker, Time picker, or both
  • ng2-overlay Generic overlays
  • ng2-scrollable Scroll Enabler and Sccoll Detector

For Developer,

To publish a directive as a part of Jsvalley UI, jui

  1. Update build.sh by adding additional line, so it will be added to distribution

     declare -a packages=(
         ng2-map
         ng2-auto-complete
         ng2-datetime-picker
         ng2-overlay
         ng2-scrollable
     )
  2. Update dist/jsvalley-directives.ts, so that it will included in JSVALLEY_DIRECTIVES

     import { NG2_MAP_DIRECTIVES } from './ng2-map';
    
     export const JSVALLEY_DIRECTIVES: any[] = [
       ..
       NG2_MAP_DIRECTIVES
     ];
  3. Build again

     $ npm run build