# angular-dtrp-fork

> [//]: (start placeholder for auto-badger)

Latest version **1.0.3** (published 2021-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-dtrp-fork
pnpm add angular-dtrp-fork
yarn add angular-dtrp-fork
bun add angular-dtrp-fork
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-11-20 |
| First published | 2021-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 886.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marcin Zielezny, originaly Nikhil Mehta |
| Maintainers | mzielezny |
| Keywords | angular 6, angular 7, angular 8, angular 9, angular X, angular component, date range picker, date picker, time picker, time range picker, range picker, bootstrap css |

## Links

- npm: https://www.npmjs.com/package/angular-dtrp-fork
- Repository: https://github.com/mzielezny/angular-components
- Homepage: https://github.com/mzielezny/angular-components/tree/master/projects/angular-datetimerangepicker
- Issues: https://github.com/mzielezny/angular-components/issues
- Funding: https://www.buymeacoffee.com/technikhil314
- npm.io page: https://npm.io/package/angular-dtrp-fork

## Dependencies (3)

- [dayjs](https://npm.io/package/dayjs.md) ^1.9.3
- [tslib](https://npm.io/package/tslib.md) ^1.9.0
- [calendarize](https://npm.io/package/calendarize.md) ^1.1.1

## 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

- 1.0.3 (latest) — 2021-11-20
- 1.0.2 — 2021-11-20
- 1.0.1 — 2021-11-20
- 1.0.0 — 2021-11-20

## README

### Highly configurable, opinionated, themable, light weight (12kb) date and time range picker for angular

[//]: <> (start placeholder for auto-badger)

[![Build Status](https://img.shields.io/github/workflow/status/technikhil314/angular-components/deploy%20to%20surge?style=flat-square&color=%23007a1f)](https://github.com/technikhil314/angular-components/actions)
[![version](https://img.shields.io/npm/v/angular-datetimerangepicker.svg?style=flat-square)](https://npmjs.org/angular-datetimerangepicker)
[![min size](https://img.shields.io/bundlephobia/min/angular-datetimerangepicker)](https://bundlephobia.com/result?p=angular-datetimerangepicker)
[![mingzip size](https://img.shields.io/bundlephobia/minzip/angular-datetimerangepicker)](https://bundlephobia.com/result?p=angular-datetimerangepicker)
[![license](https://img.shields.io/npm/l/angular-datetimerangepicker?color=%23007a1f)](https://github.com/technikhil314/angular-components/blob/master/LICENSE)

[![dependancies](https://img.shields.io/librariesio/release/npm/angular-datetimerangepicker?color=%23007a1f)](https://libraries.io/npm/angular-datetimerangepicker)
[![downloads](https://img.shields.io/npm/dm/angular-datetimerangepicker)](https://npmcharts.com/compare/angular-datetimerangepicker)
[![all contributors](https://img.shields.io/github/all-contributors/technikhil314/angular-components)](https://github.com/technikhil314/angular-components/graphs/contributors)
[![code of conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/technikhil314/angular-components/blob/master/CODE_OF_CONDUCT.md)

[![stargazers](https://img.shields.io/github/stars/technikhil314/angular-components?style=social)](https://github.com/technikhil314/angular-components/stargazers)
[![number of forks](https://img.shields.io/github/forks/technikhil314/angular-components?style=social)](https://github.com/technikhil314/angular-components/fork)
[![Follow technikhil314 on twitter](https://img.shields.io/twitter/follow/technikhil314?label=Follow)](https://www.twitter.com/technikhil314)

###### :clap: & :heart: to [auto badger](https://github.com/technikhil314/auto-badger) for making badging simple

[//]: <> (end placeholder for auto-badger)

## [For Documentation, configuration click here](https://technikhil314.netlify.app/docs/daterangepicker/introduction)

## [Playground / configuration generator](https://angular-datetimerangepicker.surge.sh)

## Coding examples

1. [With predefined custom ranges](https://stackblitz.com/edit/angular-datetimerangepicker-demo)
   - This requires dayjs installed
1. [Without predefined custom ranges](https://stackblitz.com/edit/angular-datetimerangepicker-demo-1)
   - This does not require any dependency
1. [Without bootstrap](https://stackblitz.com/edit/angular-datetimerangepicker-demo-without-bootstrap)
   - Plain css no customizations on styling

## About this package

Date and time range picker for Angular v6 and above.
<br/>
This is a successor of this package located here [angular-2-daterangepicker](https://www.npmjs.com/package/angular-2-daterangepicker)
<br/>
It is a fully responsive date and time range picker with or without bootstrap.css.
<br/>
The purpose of this project is to remove dependencies on bootstrap, jquery etc.
<br/>
No offence here. These are good libraries but with modern frameworks they add more footprint hampering the performance

<br/>

## Announcements

- Date: 17th Mar 2021 v2.4.1
  1. Allowing use of escape key to close the calendars
- Date: 10th Mar 2021 v2.4.1
  1. Making dates on calendar more screen reader friendly
- Date: 31st Dec 2020 v2.4.0
  1. Added 12 hours time format support
- Date: 01 Dec 2020 v2.3.2
  1. Added disableWeekEnds, disabledDays, disabledDates
- Date: 01 Dec 2020 v2.3.1
  1. Handeling onChanges component lifecycle hook
- Date: 30 Nov 2020 v2.3.0
  1. Added options hideControls, readOnly, placeholder
  1. Added touch support too (Behind toggle and WIP) (Open issue on [github](https://github.com/technikhil314/angular-components/issues) if you want to try out touch support)
- Date: 26 Nov 2020 v2.2.10
  1. Added option to set week start day [issue #47](https://github.com/technikhil314/angular-components/issues/47)
- Date: 19 Nov 2020 v2.1.9
  1. Added intelligent position detector to avoid horizontal scroll
  1. Using css variables to color the previous next chevron arrows
- Date: 13th Nov 2020 v2.1.8
  1. Using modern css (flexbox)
  1. Removing dependency on bootstrap (now works without bootstrap too)
  1. Adding option for theme
  1. Added screen reader and keyboard accessibility
- Date: 25 Oct 2020
  1. Removed momentjs now using [dayjs](https://day.js.org/)
- Date: 17 Oct 2020
  1. This is a successor of this package located here [angular-2-daterangepicker](https://www.npmjs.com/package/angular-2-daterangepicker)
  1. Published next major version. v1.0.0
  1. Fixed issue [#45](https://github.com/technikhil314/angular-components/issues/45)
  1. If you want to use this module with angular < v6. Then install v1.1.52 of [this package]([https://www.npmjs.com/package/angular-2-daterangepicker])
  1. This package uses angular version 6 or above

<br/>

## Todos

1. Get rid of moment to minimise the package [:heavy_check_mark:]
1. Make style more robust. Use latest CSS features. [:heavy_check_mark:]
1. Add theme support [:heavy_check_mark:]
1. Make touch friendly UI for touch devices

# Facing Problems

Please let me know if you are facing any issues [here](https://github.com/technikhil314/angular-components/issues)

<br/>

# Contributions

Would :heart: to see any contributions.

### How to contribute

P.S. The code for demo which lies in `src` folder

P.S. Actual code for npm package lies in `projects/angular-datetimerangepicker` directory

1. Fork this repo
1. `npm install @angular/cli@6`
1. `npm install`
1. `ng build angular-datetimerangepicker --watch`
1. run `ng serve` in another terminal window/shell
1. Make changes
1. Raise PR

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