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

panel-navigator

v1.1.6

Published

This Angular Module allows you dynamically configured navigation panel perfect for mobile and desktop devices. Theres a lot in this component to explore

Downloads

48

Readme

Panel Navigator

This Angular Module (Component) allows you to have dynamic navigation with icons and status type and navigation controlloer.

Installation

npm install panel-navigation-scroller

Scaffolding

Import the module into your project under imports

imports: [
    BrowserModule,
    AppRoutingModule,
    PanelNavigationScrollerModule
  ],

Use

To use in your component, use the following tag for a basic setup

<wav-panel-navigator
    [title]="title"
    [description]="description"
    [data]="dataObservable"
></wav-panel-navigator>

Inputs

The following Inputs are available

| Input | Type | Defaut | Description | | ----- | ---- | ------ | ----------- | | title | STRING | NULL | title for navigation section | | description | STRING | NULL | description below title area for navigation | | data | Object or Observable | [] | data for items | | navigation | BOOLEAN | FALSE | navigation controller at top of navigation | | navigationTitle | STRING | NULL | navigation controller title | | navigationColor | STRING | NULL | navigation controller background color | | navigationTextColor | STRING | NULL | navigation controller text color | | navigationRedirect | STRING | NULL | back button on navigation controller will appear and redirect to this route | | bindSelectionToTitle | BOOLEAN | NULL | the selected item will be reflected in the navigation controller | | stateTypes | OBJECTS[] | NULL | states for items - appears on right of menu items | | lineAbove | BOOLEAN | FALSE | add line above navigation list | | lineBelow |BOOLEAN | FALSE | add line below navigation list | | displayIcons |BOOLEAN | FALSE | display icons from data to line items on left | | displayStates |BOOLEAN | FALSE | display state icons from data to line items on left | | enableScrolling |BOOLEAN | FALSE | add line below navigation list |

Data Structure

Object or Observable, this is the data strtucture object that defines each list item. All, Some none of the properties may be provided for eah list item. You do need at least a name property to display something in the list.

  data: MenuItem[] = [
    { name: 'Vendor Onboarding', disabled: false, icon: 'person', iconColor: 'purple', color: 'green', state: 1, ref: 'sec2'},
    { name: 'Required Information', disabled: false, state: 0 },
    { name: 'Private Details', disabled: false, state: -1 },
    { name: 'Negotiated Terms', disabled: false, state: 2 },
  ]

Inputs

| Input | Type | Defaut | Description | | ----- | ---- | ------ | ----------- | | name | STRING | NULL | list item text | | disabled | STRING | NULL | disable list item | | icon | STRING | NULL | icon to use (mat icons) | | iconColor | STRING | NULL | icon (left on list item color) color | | color | STRING | NULL | color of the text | | state | STRING | NULL | the state ID (State Types) that is assigned to this list item | | ref | STRING | NULL | this is the div reference ID for the target to be scrolled to |

Outputs

| Input | Type | Defaut | Description | | ----- | ---- | ------ | ----------- | | selectedItem | MenuItem | NULL | menu item object |

State Type Structure

This is the different state types (icon on the right of list) that is provided when a state of a menu item has changed Provided all the types that are assigned to the data structure. if no type is provided, nothing will be rendered.

stateTypes: StateType[] = [
  {name: 'testing', icon: '', value: 0, color: ''},
  {name: 'approved', icon: 'check', value: 1, color: 'purple'},
  {name: 'declined', icon: 'warning', value: -1, color: 'red'},
  {name: 'warning', icon: 'refresh', value: 2, color: 'orange'},
]

Properties

| Input | Type | Defaut | Description | | ----- | ---- | ------ | ----------- | | name | STRING | NULL | text to appear on left of state icon | | icon | STRING | NULL | mat icon anme | | value | STRING | NULL | value that corresponds to the state value of data | | color | STRING | NULL | color for icon and text |

Sample Configurations

Here is a basic setup:

<wav-panel-navigator
    [title]="title"
    [description]="description"
    [data]="dataObservable"
></wav-panel-navigator>

Here is max setup

<wav-panel-navigator
    [navigation]="true"
    [navigationRedirect]="'default'"
    [title]="title"
    [description]="description"
    [data]="dataObservable"
    [bindSelectionToTitle]="true"
    [stateTypes]="stateTypes"
    [displayIcons]="false"
    [displayStates]="true"
></wav-panel-navigator>

Scrolling (Comming Soon)

There is a scrollTo binding thats being implemented - comming soon