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

ember-material-design-datepicker

v1.1.7

Published

A material design themed datepicker for Ember

Downloads

16

Readme

Ember-material-design-datepicker

Build Status Code Climate

This project aims to bring an easy to use Material Design themed datepicker to Ember.

Installation

Install the ember-cli addon in your ember-cli project:

$ ember install ember-material-design-datepicker

This should also automatically create an scss file under app/styles/app.scss with @import 'ember-material-design-datepicker'; and install ember-cli-sass.

Sass is required for this addon. There are a number of sass variables that can easily be overidden to change the default styling of Ember-material-design-datepicker, these are detailed in usage below.

Usage

Options

  • dateChanged (required) - When the user selects a new date, or edits the date's text, this action is fired with the new date as the first argument. If the date is deemed invalid then 'null' is sent. The second argument is a bool indicating whether the date was entered was valid or not. In most circumstances your application should consume this action and update selectedDate.
  • selectedDate (optional) - The date that should currently be selected
  • mode (optional) - 'date' or 'datetime' can be set. Defaults to 'date'.
  • dateFormat (optional) - Allows the format of the date's text to be changed. Defaults to MM/DD/YYYY.
  • timeFormat (Optional) Sets the format of the time. Defaults to 'HH:mm' (Uppercase HH for 24hour clock. lowercase for 12hour).
  • required (optional) - Passed onto the input element and used when validating. Defaults to false.
  • disabled (optional) - Passed onto the input element. When true it prevents the date from being changed. Defaults to false.
  • placeholder (optional) - The text to display above the date's text.
  • relaxValidation (optional) - When set to true this turns off the 'use strict mode' option within Moment.js when validating the date's text. Defaults to false.
  • inputClass (optional) - Passed directly onto the input element as its class attribute.
  • name (optional) - Passed directly onto the input element.
  • errorMessage (optional) - When provided an error message can be displayed below the input element.
  • minDate (optional) - When provided this prevents the user from selecting a date earlier than this. It is also used when validating the date's text.
  • maxDate (optional) - When provided this prevents the user from selecting a date after this. It is also used when validating the date's text.
  • utc (optional) - When true dates are parsed in UTC. Defaults to false where local time is then used.
  • hourOffset (optional) - When provided, dates selected or entered will apply this offset from midnight.
  • autoHideAfterSelection (optional) - Default: true. When false, the datepicker remains on display after selecting date.
  • locale (optional) - Default: 'en'. Sets component's locale. See moment.js instance locales.
  • dropUp (optional) - Default: false. Causes the control to drop up when true. Drops down by default/when false.

Sass variables

A number of sass variables can be overridden by your application See the top of ember-material-design-datepicker.scss.

Collaborating

We welcome pull requests. For enhancements we suggest you open an issue first, and then if accepted volunteer to take on the feature yourself.

Styling

We use Eslint to enforce styling. We aim to match Ember Styling Guide but this is a work in progress.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.