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

ngnz-time-input

v0.0.4

Published

Material design time input for Angular 8

Readme

NgnzTimeInput

This is a simple Angular 8 component is to be used to change time as MomentJs.Moment data type. It is not influence to date part. It allows to change seconds. You can use it as field in angular reactive form or separately by [value] attribute and (timeChange) event. It depends on MomentJs, Angular MaterialDesign libraries.

Look and Feel

Example 1. Input field with no buttons to change value. Use mouse wheel.
Pic.1.

Example 2. Input field with always shown buttons to change value. Defined Material Design style "mat-raised-button" and color "primary" Also possible to use mouse wheel. Part of seconds is hidden.
Pic.1.

Example 3. Input field with buttons shows on focus. Not focused. Use buttons or mouse wheel to change value.
Pic.1.

Example 4. Focused input field with custom buttons defined with CSS class shows on focus.
Pic.1.

Example 5. Focused input field with defined Material Design "mat-fab" style buttons
Pic.1.

Usage

<mat-form-field appearance="standard" style="width: 250px;">
    <ngnz-time-input-inline
        color="accent"
        mat-raised-button
        [formControl]="timeInputControl"
        [increaseBtnIconName]="'keyboard_arrow_up'"
        [decreaseBtnIconName]="'keyboard_arrow_down'"
        (timeChange)="onTimeChange($event)"
    >
    </ngnz-time-input-inline>
</mat-form-field>

Input parameters

  • color: string - from Material theme: primary, accent, warn;

  • buttonMatType: string - type of control buttons in Material Design: mat-button, mat-raised-button etc.

  • inputClasses: string | string[] | {[key:string]:boolean} - additional css classes for input fields of hours, minutes and seconds

  • inputClasses: string | string[] | {[key:string]:boolean} - additional css classes for control buttons

  • buttonDecreaseClasses: string | string[] | {[key:string]:boolean} - additional css classes for decrease button on the left side of the input fieled

  • buttonIncreaseClasses: string | string[] | {[key:string]:boolean} - additional css classes for increase button on the right side of the input fieled

  • inputMode: TimeInputMode - enum defining of time change mode: 0-Limit, 1-Circular, 2-CircularForwarding

  • value: Moment - value

  • splitter: string - one character to separate hours from minutes and minutes from seconds; default is ':'

  • noButtons: boolean - do not show control buttons; normally buttons are shown on focus

  • showButtons: boolean - always show control buttons; normally buttons are shown on focus

  • noSeconds: boolean - do not show seconds block if it is not necessary

  • decreaseBtnIconName: string - mat icon name for descrease controll button; 'remove' by default

  • increaseBtnIconName: string - mat icon name for increase control button; 'add' by default