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

ngx-picka-period

v0.1.6

Published

An Angular Material compatible date time picker library.

Downloads

4

Readme

Angular Picka Period

Angular datetime period picker This package supports Angular 9

Description

Angular responsive datetime period picker. Online demo(StackBlitz) is here. This picker is responsive design, so feel free to try it in your desktops, tablets and mobile devices.

Inspiration

Based on the work of: codetok and daterangepicker.

How to Use

  1. Install with npm: npm i ngx-picka-picker.
  2. Import the module NgxPickaPeriodModule and add it to your module imports.
   import { NgxPickaPeriodModule } from 'ngx-picka-period';

   imports: [
       NgxPickaPeriodModule
      // ...
   ],
  1. Connect the picker to the template with ngxPickaPeriod directive to your matInput, you also have to provide a NgxPickaPeriodConfig to the library.
   <mat-form-field>
     <input matInput placeholder="Picka Period" ngxPickaPeriod [ngxPickaPeriodConfig]="config"
            [value]="value">
   </mat-form-field>
  1. Add angular-material-theme ngx-picka-period-theme to your theme.scss file.
   .my-theme {
     @include angular-material-theme($theme);
     @include ngx-picka-period-theme($theme);
   }
  1. ENJOY IT!

Animation

This library uses Angular animations to improve the user experience, therefore you need to install @angular/animations and import BrowserAnimationsModule to your application.

npm install @angular/animations --save
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        //...
    ],
    //...
})
export class YourAppModule { }

If you prefer to disable animation effect, use NoopAnimationsModule instead.

Angular Material

This library relies on the Angular Material library, therefore you need to install @angular/material package, for more info please follow this guide. Remember to add the ngx-picka-period-theme to your theme configuration.

Dependencies

    "@angular/common": "^9.0.5",
    "@angular/core": "^9.0.5",
    "@angular/material": "^9.1.1",
    "@angular/animations": "^9.0.5",
    "moment": "^2.24.0"

Demo

  • Online demo(StackBlitz) is here

License

  • License: MIT

Author

Davide-Russo