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

angular-datepicker-oldschool

v0.1.0

Published

Angular pure datepicker

Downloads

3

Readme

Bower version npm version npm stable version Dependency Status devDependency Status npm

angular-pure-datepicker

angular-pure-datepicker - is kind of old-school date select, but with modern look and feel and abilities.

| [Demos and documentation] 1 |

More info

tldr;

Stability

Not stable yet; Use it only in test or development cases.

Installation and usage

  1. Download it

    bower install angular-pure-datepicker --save

    npm install ??? --save (not ready yet)

    (look for other package managers)

    or download from git: releases

  2. Add to html

    <link href="bower_components/angular-pure-datepicker/dist/angular-pure-datepicker.css">
    <script src="bower_components/angular-pure-datepicker/dist/angular-pure-datepicker.min.js"></script>
  3. Add as angilarjs project's dependency:

        angular.module('demo', [
            'angular-pd'
        ])
  4. Add a directive to html

Options

  • ng-model - Object, can be empty or null, but required.

    The result of select would placed here. Also if ng-model is object with datetime field (should contain number), it's will be applied as initial date value.

  • apd-start - number, optional.

    Datetime of a lower date limit (model's values lower then limit wouldn't be applied).

  • apd-end - number, optional.

    Datetime of a upper date limit (model's values upper then limit wouldn't be applied).

  • apd-day-id - string, optional.

    Setter of custom id for the days select element.

  • apd-month-id - string, optional.

    Setter of custom id for the month select element.

  • apd-year-id - string, optional.

    Setter of custom id for the years select element.

  • apd-day-classes - string, optional.

    Setter of custom classes for the days select element.

  • apd-month-classes - string, optional.

    Setter of custom classes for the month select element.

  • apd-year-classes - string, optional.

    Setter of custom classes for the years select element.

Features

  • No dependencies (except angular of course);
  • About 13kb minified;
  • Support start date and end date limitation;
  • No popups;
  • Easy to customize - you'll be able to provide any class or id for any element inside directive;
  • Localization (development in progress);

Compatibility with browsers

  • Chrome;
  • Firefox (select arrows will be hidden);
  • ...

Localization

There only localization what may be needed is for names of days of week.

(here should be instructions when it's done)

How to port to other framework?

It's should be easy. Most of business logic placed in ./src/classes dir, and angular_directive.ts only works with DOM. You may easily replace it with any other view implementation.

Report issue

github.com/se-panfilov/angular-pure-datepicker/issues

Contribution

All contributions are welcome. Please add a Pull-Request. If you not sure about TypeScript, you ay wrote your PR in JS (it's will be easy to port after all).

You may found few hand-test cases in dev-server branch. It will be better if you test how it works on it.

How it works (for users)

(how it resolve conflicts of limits and datetime, only datetime has mean, what data provided in model, etc...)

How it works (for developers)

(should write basics of apd)

License

MIT: go to text

Bitdeli Badge