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

ng-dates

v0.4.4

Published

Simple Angular Date Picker

Downloads

51

Readme

NgDates

Ng Dates is a simple date picker for Angular applications. Inspired by Ryanair datepicker, allows you to select a single date or a range of dates from a predeterminated set. Powerful and configurable can be easily integrated into any Angular application.

npm npm npm type definitions

Installation

Download ng-dates from npm

npm install ng-dates

##Usage Import NgDatesModule module in your AppModule

import { NgDatesModule } from 'ng-dates';

Insert ng-dates component in your HTML template

<ng-dates></ng-dates>

Attributes (Input):

All attributes are optional

| Name | Type | Default | Description |
|----------------------|:-----------------------------------:|:------------------:|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| from | Moment | undefined | Range start date |
| to | Moment | undefined | Range end date |
| min | Moment | undefined | Minimum selectable date |
| max | Moment | undefined | Max selectable date |
| current | Moment | undefined | Current selection |
| availabilityRule | {type: exclude \| include, dates: Moment[]| undefined | Allows to narrow the range of selectable dates by including or excluding specific days |
| startOfWeek | Number | 0 | A number from 0 to 6 to indicate the first day of the week (starting with Sunday)|
| full | Boolean | true | Show/Hide prev and next months days. |
| colorScheme | green \| red \| NgDatesColors* | green | Customize colors.

* interface NgDatesColors {
  background: string;
  text: string;
  day_selected_bg: string;
  day_selected_bg_light: string;
  day_selected_text: string;
} 

Attributes (Output):

| Name | Event Arguments | Description |
|----------------------|:-----------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| selected | Moment | This event will be emitted when a valid date is clicked

People

Proudly made by CodicePlastico

License

MIT