# ngx-picka-period

> An Angular Material compatible date time picker library.

Latest version **0.1.6** (published 2020-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-picka-period
pnpm add ngx-picka-period
yarn add ngx-picka-period
bun add ngx-picka-period
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2020-03-17 |
| First published | 2020-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 517.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Davide Russo |
| Maintainers | davide-russo |
| Keywords | angular, material, library, date, time, period, picker, picka |

## Links

- npm: https://www.npmjs.com/package/ngx-picka-period
- Repository: https://github.com/davide-russo/angular-picka-period
- Homepage: https://angular-picka-period.stackblitz.io/
- Issues: https://github.com/davide-russo/angular-picka-period/issues
- npm.io page: https://npm.io/package/ngx-picka-period

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2020-03-17
- 0.1.5 — 2020-03-16
- 0.1.4 — 2020-03-16
- 0.1.3 — 2020-03-16
- 0.1.2 — 2020-03-14
- 0.1.1 — 2020-03-14
- 0.1.0 — 2020-03-14
- 0.0.2 — 2020-03-14
- 0.0.1 — 2020-03-06

## README

Angular Picka Period
====================

**Angular datetime period picker**
**This package supports Angular 9**

Description
-----------
Angular responsive datetime period picker. Online demo(StackBlitz) is [here](https://angular-picka-period.stackblitz.io/).
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](https://github.com/codetok/angular-date-range-picker) and [daterangepicker](http://www.daterangepicker.com/).

How to Use
----------
 1. Install with [npm](https://www.npmjs.com): `npm i ngx-picka-picker`.
 2. Import the module __NgxPickaPeriodModule__ and add it to your module imports.
 ```typescript
    import { NgxPickaPeriodModule } from 'ngx-picka-period';

    imports: [
        NgxPickaPeriodModule
       // ...
    ],
 ```
 3. Connect the picker to the template with __ngxPickaPeriod__ directive to your __matInput__, you also have to provide a __NgxPickaPeriodConfig__ to the library.
 ```html
    <mat-form-field>
      <input matInput placeholder="Picka Period" ngxPickaPeriod [ngxPickaPeriodConfig]="config"
             [value]="value">
    </mat-form-field>
```
 4. Add angular-material-theme ngx-picka-period-theme to your theme.scss file.
 ```scss
    .my-theme {
      @include angular-material-theme($theme);
      @include ngx-picka-period-theme($theme);
    }
 ```
 5. __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
```
```typescript
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](https://material.angular.io/guide/getting-started).
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](https://angular-picka-period.stackblitz.io)

License
-------
* License: MIT

Author
------
**Davide-Russo**

---
_Source: https://npm.io/package/ngx-picka-period · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
