{"maintainers":[{"name":"anonymous","email":"amolborse699@gmail.com"}],"keywords":["Angular2","Angular4","date picker"],"dist-tags":{"latest":"1.0.1"},"author":{"name":"Amol B"},"description":"Angular date picker","readme":"# mydatepicker\r\n\r\n**Angular date picker**\r\n\r\n[![Build Status](https://travis-ci.org/kekeh/mydatepicker.svg?branch=master)](https://travis-ci.org/kekeh/mydatepicker)\r\n[![codecov](https://codecov.io/gh/kekeh/mydatepicker/branch/master/graph/badge.svg)](https://codecov.io/gh/kekeh/mydatepicker)\r\n[![npm](https://img.shields.io/npm/v/mydatepicker.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/mydatepicker)\r\n\r\n## Description\r\nHighly configurable Angular date picker. Compatible with __Angular2__ and __Angular4__ versions.\r\n\r\nOnline demo is [here](http://kekeh.github.io/mydatepicker)\r\n\r\nIf you want to set own styles to the input box, the calendar and the clear buttons you can try [this](https://github.com/kekeh/ngx-mydatepicker)\r\nattribute directive date picker.\r\n\r\n## Installation\r\n\r\nTo install this component to an external project, follow the procedure:\r\n\r\n1. __npm install angular4-datepicker --save__\r\n\r\n2. Add __MyDatePickerModule__ import to your __@NgModule__ like example below\r\n    ```ts\r\n    import { NgModule } from '@angular/core';\r\n    import { BrowserModule } from '@angular/platform-browser';\r\n    import { MyTestApp } from './my-test-app';\r\n    import { MyDatePickerModule } from 'mydatepicker';\r\n\r\n    @NgModule({\r\n        imports:      [ BrowserModule, MyDatePickerModule ],\r\n        declarations: [ MyTestApp ],\r\n        bootstrap:    [ MyTestApp ]\r\n    })\r\n    export class MyTestAppModule {}\r\n    ```\r\n\r\n3. If you are using __systemjs__ package loader add the following mydatepicker properties to the __System.config__:\r\n    ```js\r\n    (function (global) {\r\n        System.config({\r\n            paths: {\r\n                'npm:': 'node_modules/'\r\n            },\r\n            map: {\r\n                // Other components are here...\r\n\r\n                'mydatepicker': 'npm:mydatepicker/bundles/mydatepicker.umd.min.js'\r\n            },\r\n            packages: {\r\n            }\r\n        });\r\n    })(this);\r\n    ```\r\n\r\n## Usage\r\n\r\nUse one of the following three options.\r\n\r\n### 1. ngModel binding\r\n\r\nIn this option the ngModel binding is used. [Here](https://github.com/kekeh/mydatepicker/tree/master/sampleapp/sample-date-picker-access-modifier)\r\nis an example application. It shows how to use the __ngModel__.\r\n\r\nTo use ngModel define the application class as follows:\r\n\r\n```ts\r\nimport {IMyDpOptions} from 'mydatepicker';\r\n// other imports here...\r\n\r\nexport class MyTestApp {\r\n\r\n    public myDatePickerOptions: IMyDpOptions = {\r\n        // other options...\r\n        dateFormat: 'dd.mm.yyyy',\r\n    };\r\n\r\n    // Initialized to specific date (09.10.2018).\r\n    public model: any = { date: { year: 2018, month: 10, day: 9 } };\r\n\r\n    constructor() { }\r\n}\r\n```\r\n\r\nAdd the following snippet inside your template:\r\n\r\n```html\r\n<form #myForm=\"ngForm\" novalidate>\r\n    <my-date-picker name=\"mydate\" [options]=\"myDatePickerOptions\"\r\n                    [(ngModel)]=\"model\" required></my-date-picker>\r\n</form>\r\n```\r\n\r\n### 2. Reactive forms\r\n\r\nIn this option the value accessor of reactive forms is used. [Here](https://github.com/kekeh/mydatepicker/tree/master/sampleapp/sample-date-picker-access-modifier)\r\nis an example application. It shows how to use the __formControlName__.\r\n\r\nTo use reactive forms define the application class as follows:\r\n\r\n```ts\r\nimport {IMyDpOptions} from 'mydatepicker';\r\n// other imports here...\r\n\r\nexport class MyTestApp implements OnInit {\r\n\r\n    public myDatePickerOptions: IMyDpOptions = {\r\n        // other options...\r\n        dateFormat: 'dd.mm.yyyy',\r\n    };\r\n\r\n    public myForm: FormGroup;\r\n\r\n    constructor(private formBuilder: FormBuilder) { }\r\n\r\n    ngOnInit() {\r\n        this.myForm = this.formBuilder.group({\r\n            // Empty string or null means no initial value. Can be also specific date for\r\n            // example: {date: {year: 2018, month: 10, day: 9}} which sets this date to initial\r\n            // value.\r\n\r\n            myDate: [null, Validators.required]\r\n            // other controls are here...\r\n        });\r\n    }\r\n\r\n    setDate(): void {\r\n        // Set today date using the patchValue function\r\n        let date = new Date();\r\n        this.myForm.patchValue({myDate: {\r\n        date: {\r\n            year: date.getFullYear(),\r\n            month: date.getMonth() + 1,\r\n            day: date.getDate()}\r\n        }});\r\n    }\r\n\r\n    clearDate(): void {\r\n        // Clear the date using the patchValue function\r\n        this.myForm.patchValue({myDate: null});\r\n    }\r\n}\r\n```\r\n\r\nAdd the following snippet inside your template:\r\n\r\n```html\r\n<form [formGroup]=\"myForm\" novalidate>\r\n    <my-date-picker name=\"mydate\" [options]=\"myDatePickerOptions\"\r\n                    formControlName=\"myDate\"></my-date-picker>\r\n  <!-- other controls are here... -->\r\n</form>\r\n```\r\n\r\n### 3. Callbacks\r\n\r\nIn this option the mydatepicker sends data back to host application using callbacks. [Here](https://github.com/kekeh/mydatepicker/tree/master/sampleapp/sample-date-picker-normal)\r\nis an example application. It shows how to use callbacks.\r\n\r\nTo use callbacks define the application class as follows:\r\n\r\n```js\r\nimport {IMyDpOptions, IMyDateModel} from 'mydatepicker';\r\n// other imports here...\r\n\r\nexport class MyTestApp {\r\n\r\n    myDatePickerOptions: IMyDpOptions = {\r\n        // other options...\r\n        dateFormat: 'dd.mm.yyyy',\r\n    };\r\n\r\n    constructor() { }\r\n\r\n    // dateChanged callback function called when the user select the date. This is mandatory callback\r\n    // in this option. There are also optional inputFieldChanged and calendarViewChanged callbacks.\r\n    onDateChanged(event: IMyDateModel) {\r\n        // event properties are: event.date, event.jsdate, event.formatted and event.epoc\r\n    }\r\n}\r\n```\r\n\r\nAdd the following snippet inside your template:\r\n\r\n```html\r\n<my-date-picker [options]=\"myDatePickerOptions\"\r\n                (dateChanged)=\"onDateChanged($event)\"></my-date-picker>\r\n```\r\n\r\n## Attributes\r\n\r\n### options attribute\r\n\r\nValue of the __options__ attribute is a type of [IMyDpOptions](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-options.interface.ts). It can contain the following properties.\r\n\r\n| Option        | Default       | Type   | Description  |\r\n| :------------ | :------------ | :----- | :--------- |\r\n| __dayLabels__     | {su: 'Sun', mo: 'Mon', tu: 'Tue', we: 'Wed', th: 'Thu', fr: 'Fri', sa: 'Sat'} | [IMyDayLabels](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-day-labels.interface.ts) | Day labels visible on the selector. |\r\n| __monthLabels__   | { 1: 'Jan', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'May', 6: 'Jun', 7: 'Jul', 8: 'Aug', 9: 'Sep', 10: 'Oct', 11: 'Nov', 12: 'Dec' } | [IMyMonthLabels](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-month-labels.interface.ts) | Month labels visible on the selector. |\r\n| __dateFormat__    | yyyy-mm-dd | string |  Date format on the selection area and the callback. For example: d.m.yyyy, dd.mm.yyyy, yyyy-m-d, yyyy-mm-dd, d mmm yyyy, dd mmm yyyy (d = Day not leading zero, dd = Day with leading zero, m = Month not leading zero, mm = Month with leading zero, mmm = Month as a text, yyyy = Year four digit) |\r\n| __showTodayBtn__   | true | boolean | Show 'Today' button on calendar. |\r\n| __todayBtnTxt__   | Today | string | Today button text. Can be used if __showTodayBtn = true__. |\r\n| __firstDayOfWeek__   | mo | string | First day of week on calendar. One of the following: mo, tu, we, th, fr, sa, su |\r\n| __sunHighlight__   | true | boolean | Sunday red colored on calendar. |\r\n| __satHighlight__   | false | boolean | Saturday red colored on calendar. |\r\n| __highlightDates__   | no default value | Array<[IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts)> | Dates red colored on calendar. For example: [{year: 2016, month: 11, day: 14}, {year: 2016, month: 1, day: 15}] |\r\n| __markCurrentDay__   | true | boolean | Is current day (today) marked on calendar. |\r\n| __markCurrentMonth__   | true | boolean | Is current month marked on calendar. Can be used if __monthSelector = true__. |\r\n| __markCurrentYear__   | true | boolean | Is current year marked on calendar. Can be used if __yearSelector = true__. |\r\n| __monthSelector__  | true | boolean | If month label is selected opens a selector of months. |\r\n| __yearSelector__  | true | boolean | If year label is selected opens a selector of years. |\r\n| __minYear__   | 1000 | number | Minimum allowed year in calendar. Cannot be less than 1000. |\r\n| __maxYear__   | 9999 | number | Maximum allowed year in calendar. Cannot be more than 9999. |\r\n| __disableUntil__   | no default value | [IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts) | Disable dates backward starting from the given date. For example: {year: 2016, month: 6, day: 26}. To reset existing disableUntil value set: {year: 0, month: 0, day: 0} |\r\n| __disableSince__   | no default value | [IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts) | Disable dates forward starting from the given date. For example: {year: 2016, month: 7, day: 22}. To reset existing disableSince value set: {year: 0, month: 0, day: 0} |\r\n| __disableDays__   | no default value  | Array<[IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts)> | Disable single dates one by one. Array of disabled dates. For example: [{year: 2016, month: 11, day: 14}, {year: 2016, month: 1, day: 15}]. To reset existing disableDays value set empty array to it. |\r\n| __enableDays__   | no default value  | Array<[IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts)> | Enable given dates one by one if the date is disabled. For example if you disable the date range and want to enable some dates in range. Array of enabled days. For example: [{year: 2016, month: 11, day: 14}, {year: 2016, month: 1, day: 15}]. To reset existing enableDays value set empty array to it. |\r\n| __disableDateRanges__   | no default value | Array<[IMyDateRange](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date-range.interface.ts)> | Disable date ranges. For example: [{begin: {year: 2016, month: 11, day: 14}, end: {year: 2016, month: 11, day: 20}}]. To reset existing disableDateRanges value set empty array to it. |\r\n| __disableWeekends__   | false | boolean | Disable weekends (Saturday and Sunday). |\r\n| __disableWeekdays__   | no default value | Array< string > | Disable weekdays. Array of weekdays to disable. Weekdays are same strings as the __firstDayOfWeek__ option. For example: ['tu', 'we'] which disables Tuesdays and Wednesdays. |\r\n| __markDates__   | no default value | Array<[IMyMarkedDates](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-marked-dates.interface.ts)> | Mark dates for different colors. For example: [{dates: [{year: 2016, month: 11, day: 14}, {year: 2016, month: 12, day: 16}], color: '#004198'}, {dates: [{year: 2017, month: 10, day: 1}, {year: 2017, month: 11, day: 4}], color: 'green'}]. To reset existing markDates value set empty array to it. |\r\n| __markWeekends__   | no default value | [IMyMarkedDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-marked-date.interface.ts) | Mark weekends (Saturday and Sunday). For example: {marked: true, color: 'red'}. Value of color can be any CSS color code. To reset existing markWeekends set: {marked: false, color: ''} |\r\n| __disableHeaderButtons__   | true | boolean | Prevent to change the calendar view with header buttons if previous or next month are fully disabled by disableUntil or disableSince. |\r\n| __showWeekNumbers__   | false | boolean | Are week numbers visible or not on calendar. Can be used if __firstDayOfWeek = mo__. |\r\n| __selectorHeight__   | 232px | string | Selector height. |\r\n| __selectorWidth__   | 252px | string | Selector width. |\r\n| __allowDeselectDate__   | false | boolean | Is deselect of selected date allowed or not. |\r\n| __inline__   | false | boolean | Show mydatepicker in inline mode. |\r\n| __showClearDateBtn__   | true | boolean | Is clear date button shown or not. Can be used if __inline = false__. |\r\n| __showDecreaseDateBtn__   | false | boolean | Is decrease date button shown or not. Can be used if __inline = false__. |\r\n| __showIncreaseDateBtn__   | false | boolean | Is increase date button shown or not. Can be used if __inline = false__. |\r\n| __height__   | 34px | string | mydatepicker height in without selector. Can be used if __inline = false__. |\r\n| __width__   | 100% | string | mydatepicker width. Can be used if __inline = false__. |\r\n| __selectionTxtFontSize__   | 14px | string | Selection area font size. Can be used if __inline = false__. |\r\n| __alignSelectorRight__   | false | boolean | Align selector right. Can be used if __inline = false__. |\r\n| __openSelectorTopOfInput__   | false | boolean | Open selector top of input field. The selector arrow cannot be shown if this option is true. Can be used if __inline = false__. |\r\n| __indicateInvalidDate__   | true | boolean | If user typed date is not same format as __dateFormat__, show red background in the selection area. Can be used if __inline = false__. |\r\n| __componentDisabled__   | false | boolean | Is selection area input field and buttons disabled or not (input disabled flag). You can also disable component by __disabled__ attribute. Can be used if __inline = false__. |\r\n| __editableDateField__   | true | boolean | Is selection area input field editable or not (input readonly flag). Can be used if __inline = false__. |\r\n| __showSelectorArrow__   | true | boolean | Is selector (calendar) arrow shown or not. Can be used if __inline = false__. |\r\n| __showInputField__   | true | boolean | Is selection area input field shown or not. If not, just show the icon. Can be used if __inline = false__. |\r\n| __openSelectorOnInputClick__   | false | boolean | Open selector when the input field is clicked. Can be used if __inline = false and editableDateField = false__. |\r\n| __allowSelectionOnlyInCurrentMonth__ | true | boolean | Is a date selection allowed or not other than current month. |\r\n| __ariaLabelInputField__   | Date input field | string | Aria label text of input field. |\r\n| __ariaLabelClearDate__   | Clear Date | string | Aria label text of clear date button. |\r\n| __ariaLabelDecreaseDate__   | Decrease Date | string | Aria label text of decrease date button. |\r\n| __ariaLabelIncreaseDate__   | Increase Date | string | Aria label text of increase date button. |\r\n| __ariaLabelOpenCalendar__   | Open Calendar | string | Aria label text of open calendar button. |\r\n| __ariaLabelPrevMonth__   | Previous Month | string | Aria label text of previous month button. |\r\n| __ariaLabelNextMonth__   | Next Month | string | Aria label text of next month button. |\r\n| __ariaLabelPrevYear__   | Previous Year | string | Aria label text of previous year button. |\r\n| __ariaLabelNextYear__   | Next Year | string | Aria label text of next year button. |\r\n\r\n* Example of the options data (not all properties listed):\r\n```ts\r\n  myDatePickerOptions: IMyDpOptions = {\r\n      todayBtnTxt: 'Today',\r\n      dateFormat: 'yyyy-mm-dd',\r\n      firstDayOfWeek: 'mo',\r\n      sunHighlight: true,\r\n      inline: false,\r\n      disableUntil: {year: 2016, month: 8, day: 10}\r\n  };\r\n```\r\n\r\n### locale attribute\r\n\r\nAn ISO 639-1 language code can be provided as shorthand for the following options (dayLabels, monthLabels, dateFormat, todayBtnTxt, firstDayOfWeek and sunHighlight).\r\nCurrently supported languages: __en__, __fr__, __ja__, __fi__, __es__, __hu__, __sv__, __nl__, __ru__, __uk__, __no__, __tr__,\r\n__pt-br__, __de__, __it__, __it-ch__, __pl__, __my__, __sk__, __sl__, __zh-cn__, __he__, __ro__, __ca__, __id__, __en-au__, __am-et__, __cs__, __el__, __kk__,\r\n__th__, __ko-kr__, __da__, __lt__, __vi__, __bn__, __bg__, __hr__, __ar__ and __is__.\r\n\r\nThe __locale__ options can be override by __options__ attribute.\r\n\r\n* new locale data can be added to [this](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/services/my-date-picker.locale.service.ts)\r\nfile. If you want to add a new locale create a pull request.\r\n* locales can be tested [here](http://kekeh.github.io/mydatepicker/#inlinemode)\r\n\r\n### selDate attribute\r\n\r\nProvide the initially chosen date that will display both in the text input field\r\nand provide the default for the popped-up selector.\r\n\r\nType of the __selDate__ attribute can be a string or an [IMyDate](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date.interface.ts) object.\r\n  * the string must be in the same format as the __dateFormat__ option is. For example '2016-06-26'\r\n  * the object must be in the IMyDate format. For example: {year: 2016, month: 6, day: 26}\r\n\r\n[Here](https://github.com/kekeh/mydatepicker/wiki/Initialize-with-selDate-attribute) is an example on how to use this attribute.\r\n\r\n### defaultMonth attribute\r\n\r\nIf __selDate__ is not specified, when the calendar is opened, it will\r\nordinarily default to selecting the current date. If you would prefer\r\na different year and month to be the default for a freshly chosen date\r\npicking operation, specify a __defaultMonth__ attribute.\r\n\r\nValue of the defaultMonth attribute can be:\r\n  * [IMyDefaultMonth](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-default-month.interface.ts) object. The value of __defMonth__ property can be a string which contain year number and month number separated by delimiter. The delimiter can be any special character. For example: __08-2016__ or __08/2016__.\r\n  * a string which contain year number and month number separated by delimiter. The delimiter can be any special character. For example: __08-2016__ or __08/2016__.\r\n\r\n[Here](https://github.com/kekeh/mydatepicker/wiki/Initialize-with-defaultMonth-attribute) is an example on how to use this attribute.\r\n\r\n### placeholder attribute\r\n\r\nPlaceholder text in the input field. [Here](https://github.com/kekeh/mydatepicker/wiki/Set-placeholder) is an example on how to use this attribute.\r\n\r\n### disabled attribute\r\n\r\nBoolean value indicating is the component disabled or not. [Here](https://github.com/kekeh/mydatepicker/wiki/Disable-component-with-disabled-attribute) is an example on how to use this attribute.\r\n\r\n### selector attribute\r\n\r\nSelector can be opened or closed using this attribute. Value of the selector attribute can be:\r\n  * [IMySelector](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-selector.interface.ts) object. The value of __open__ property is a boolean value indicating the state of the selector.\r\n\r\n[Here](https://github.com/kekeh/mydatepicker/wiki/Open-selector-with-selector-attribute) is an example on how to use this attribute. Another way is to call a function of mydatepicker. [Here](https://github.com/kekeh/mydatepicker/wiki/Calling-date-picker-function) is an example.\r\n\r\n## Callbacks\r\n\r\n### dateChanged callback\r\n  * called when the date is selected, removed or input field typing is valid\r\n  * event parameter:\r\n    * event.date: Date object in the following format: { day: 22, month: 11, year: 2016 }\r\n    * event.jsdate: Javascript Date object\r\n    * event.formatted: Date string in the same format as dateFormat option is: '2016-11-22'\r\n    * event.epoc: Epoc time stamp number: 1479765600\r\n  * event parameter type is [IMyDateModel](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-date-model.interface.ts)\r\n\r\n  * Example of the dateChanged callback:\r\n  ```js\r\n  onDateChanged(event: IMyDateModel) {\r\n    console.log('onDateChanged(): ', event.date, ' - jsdate: ', new Date(event.jsdate).toLocaleDateString(), ' - formatted: ', event.formatted, ' - epoc timestamp: ', event.epoc);\r\n  }\r\n  ```\r\n\r\n### inputFieldChanged callback\r\n  * called when the value change in the input field, date is selected or date is cleared (can be used in validation, returns true or false indicating is date valid or not in the input field)\r\n  * event parameter:\r\n    * event.value: Value of the input field. For example: '2016-11-22'\r\n    * event.dateFormat: Date format string in the same format as dateFormat option is. For example: 'yyyy-mm-dd'\r\n    * event.valid: Boolean value indicating is the input field value valid or not. For example: true\r\n  * event parameter type is [IMyInputFieldChanged](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-input-field-changed.interface.ts)\r\n\r\n  * Example of the input field changed callback:\r\n  ```js\r\n  onInputFieldChanged(event: IMyInputFieldChanged) {\r\n    console.log('onInputFieldChanged(): Value: ', event.value, ' - dateFormat: ', event.dateFormat, ' - valid: ', event.valid);\r\n  }\r\n  ```\r\n\r\n### calendarViewChanged callback\r\n  * called when the calendar view change (year or month change)\r\n  * event parameter:\r\n    * event.year: Year number in calendar. For example: 2016\r\n    * event.month: Month number in calendar. For example: 11\r\n    * event.first: First day of selected month and year. Type of [IMyWeekday](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-weekday.interface.ts). For example: {number: 1, weekday: \"tu\"}\r\n    * event.last: Last day of selected month and year. Type of [IMyWeekday](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-weekday.interface.ts). For example: {number: 30, weekday: \"we\"}\r\n  * event parameter type is [IMyCalendarViewChanged](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-calendar-view-changed.interface.ts)\r\n  * values of the weekday property are same as values of the __firstDayOfWeek__ option\r\n\r\n  * Example of the calendar view changed callback:\r\n  ```js\r\n  onCalendarViewChanged(event: IMyCalendarViewChanged) {\r\n    console.log('onCalendarViewChanged(): Year: ', event.year, ' - month: ', event.month, ' - first: ', event.first, ' - last: ', event.last);\r\n  }\r\n  ```\r\n\r\n### calendarToggle callback\r\n  * called when the calendar is opened or closed\r\n    * event: number from 1 to 4 indicating the reason of the event\r\n      * 1 = calendar opened\r\n      * 2 = calendar closed by date select\r\n      * 3 = calendar closed by calendar button\r\n      * 4 = calendar closed by outside click (document click)\r\n      * 5 = calendar closed by ESC key\r\n      * 6 = calendar closed by API call\r\n\r\n  * Example of the calendar toggle callback:\r\n  ```js\r\n    onCalendarToggle(event: number): void {\r\n        console.log('onCalendarClosed(): Reason: ', event);\r\n    }\r\n  ```\r\n\r\n### inputFocusBlur callback\r\n  * called when the input box get or lost focus\r\n  * event parameter:\r\n    * event.reason: Reason of the event:\r\n      * 1 = focus to input box\r\n      * 2 = focus out of input box\r\n    * event.value: Value of input box\r\n  * event parameter type is [IMyInputFocusBlur](https://github.com/kekeh/mydatepicker/blob/master/src/my-date-picker/interfaces/my-input-focus-blur.interface.ts)\r\n\r\n  * Example of the input focus blur callback:\r\n  ```js\r\n    onInputFocusBlur(event: IMyInputFocusBlur): void {\r\n        console.log('onInputFocusBlur(): Reason: ', event. reason, ' - Value: ', event.value);\r\n    }\r\n  ```\r\n\r\n## Change styles of the component\r\n\r\nThe styles of the component can be changed by overriding the styles.\r\n\r\nCreate a separate stylesheet file which contain the changed styles. Then import the stylesheet file in the place which\r\nis after the place where the component is loaded.\r\n\r\nThe [sampleapp](https://github.com/kekeh/mydatepicker/tree/master/sampleapp) of the component contain an example:\r\n\r\n* [override.css](https://github.com/kekeh/mydatepicker/blob/master/sampleapp/override.css) contain the changed styles.\r\n* [index.html](https://github.com/kekeh/mydatepicker/blob/master/sampleapp/index.html) contain import of the override.css file.\r\n\r\n\r\n## Development of this component\r\n\r\n* At first fork and clone this repo.\r\n\r\n* Install all dependencies:\r\n  1. __npm install__\r\n  2. __npm install --global gulp-cli__\r\n\r\n* Build the __npmdist__ folder and execute __tslint__:\r\n  1. __gulp all__\r\n\r\n* Execute unit tests and coverage (output is generated to the __test-output__ folder):\r\n  1. __npm test__\r\n\r\n* Run sample application:\r\n  1. __npm start__\r\n  2. Open __http://localhost:5000__ to browser\r\n\r\n* Build a local npm installation package:\r\n  1. __gulp all__\r\n  2. __cd npmdist__\r\n  3. __npm pack__\r\n    * local installation package is created to the __npmdist__ folder. For example: __mydatepicker-1.1.1.tgz__\r\n\r\n* Install local npm package to your project:\r\n  1. __npm install path_to_npmdist/mydatepicker-1.1.1.tgz__\r\n\r\n## Demo\r\nOnline demo is [here](http://kekeh.github.io/mydatepicker)\r\n\r\n## Compatibility (tested with)\r\n* Firefox (latest)\r\n* Chrome (latest)\r\n* Chromium (latest)\r\n* Edge\r\n* IE11\r\n* Safari\r\n\r\n## License\r\n* License: MIT\r\n\r\n## Author\r\n* Author: kekeh\r\n\r\n## Keywords\r\n* Date picker\r\n* Angular2\r\n* Angular4\r\n","repository":{"type":"git","url":"git+https://github.com/AmolBorse/mydatepicker.git"},"users":{"warisa":true},"bugs":{"url":"https://github.com/AmolBorse/mydatepicker/issues"},"license":"MIT","versions":{"1.0.0":{"name":"angular4-datepicker","version":"1.0.0","description":"Angular date picker","keywords":["Angular2","Angular4","date picker"],"author":{"name":"Amol B"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AmolBorse/mydatepicker.git"},"scripts":{"start":"webpack-dev-server --config config/webpack.dev.js --progress","build.dist":"gulp all","build.webpack.sampleapp":"rimraf build-sampleapp && webpack --config config/webpack.build.sampleapp.js --progress --profile --bail","test":"karma start config/karma.conf.js","tslint":"gulp tslint","ngc":"ngc -p tsconfig.publish.json","bundle":"rollup -c rollup.config.js && uglifyjs npmdist/bundles/mydatepicker.umd.js --compress --mangle --screw-ie8 -o npmdist/bundles/mydatepicker.umd.min.js"},"main":"bundles/mydatepicker.umd.js","typings":"index.d.ts","module":"index.js","dependencies":{},"devDependencies":{"@angular/common":"2.2.4","@angular/compiler":"2.2.4","@angular/compiler-cli":"2.2.4","@angular/core":"2.2.4","@angular/forms":"2.2.4","@angular/platform-browser":"2.2.4","@angular/platform-browser-dynamic":"2.2.4","@angular/platform-server":"2.2.4","@types/core-js":"0.9.34","@types/jasmine":"2.5.38","@types/node":"7.0.1","angular2-template-loader":"0.6.0","awesome-typescript-loader":"3.0.0-beta.18","codecov":"1.0.1","codelyzer":"2.0.0-beta.1","concurrently":"3.0.0","core-js":"2.4.1","css-loader":"0.26.1","es6-promise":"4.0.5","es6-shim":"0.35.1","extract-text-webpack-plugin":"1.0.1","file-loader":"0.9.0","gulp":"3.9.1","gulp-clean":"0.3.2","gulp-clean-css":"2.0.12","gulp-htmlmin":"3.0.0","gulp-json-editor":"2.2.1","gulp-replace":"0.5.4","gulp-shell":"0.5.2","gulp-tslint":"7.0.1","html-loader":"0.4.3","html-webpack-plugin":"2.24.1","istanbul-instrumenter-loader":"1.2.0","jasmine-core":"2.5.2","karma":"1.3.0","karma-cli":"1.0.1","karma-coverage":"1.1.1","karma-htmlfile-reporter":"0.3.4","karma-jasmine":"1.0.2","karma-jasmine-html-reporter":"0.2.2","karma-phantomjs-launcher":"1.0.2","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.1","null-loader":"0.1.1","postcss-loader":"1.1.1","raw-loader":"0.5.1","reflect-metadata":"0.1.8","rimraf":"2.5.2","rollup":"0.41.4","run-sequence":"1.2.2","rxjs":"5.0.0-beta.12","source-map-loader":"0.1.5","style-loader":"0.13.1","systemjs":"0.19.43","systemjs-builder":"0.15.34","to-string-loader":"1.1.4","tslint":"4.0.2","typescript":"2.0.3","uglify-js":"3.0.13","webpack":"1.13.3","webpack-dev-server":"1.16.2","webpack-livereload-plugin":"0.10.0","webpack-merge":"2.4.0","zone.js":"0.6.25"},"gitHead":"75e1e4db605bc2392993c32820d6974bb0f417df","bugs":{"url":"https://github.com/AmolBorse/mydatepicker/issues"},"homepage":"https://github.com/AmolBorse/mydatepicker#readme","_id":"angular4-datepicker@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"anonymous","email":"amolborse699@gmail.com"},"dist":{"integrity":"sha512-xJR7MOpAACHtZOY3Pk42nrciiliARpA5wMkRgk1Pbmcs7ZE7aR9bBuAIdwnFH0Uu+AVCes85hXjSzEB2aBK+4g==","shasum":"09666f52e7515af47476fb502f6f82db0db3d89d","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/angular4-datepicker/-/angular4-datepicker-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3+DoQLdHJGZHHKp9aAuzWBeJgIhfsbzFqNQwzmIH+iwIhAL6zStF02qCygVrUQVNcPumJ8qM77V23irLK3dxKSdSF"}]},"maintainers":[{"name":"anonymous","email":"amolborse699@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular4-datepicker-1.0.0.tgz_1510252736580_0.4645347520709038"}},"1.0.1":{"name":"angular4-datepicker","version":"1.0.1","description":"Angular date picker","keywords":["Angular2","Angular4","date picker"],"author":{"name":"Amol B"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AmolBorse/mydatepicker.git"},"scripts":{"start":"webpack-dev-server --config config/webpack.dev.js --progress","build.dist":"gulp all","build.webpack.sampleapp":"rimraf build-sampleapp && webpack --config config/webpack.build.sampleapp.js --progress --profile --bail","test":"karma start config/karma.conf.js","tslint":"gulp tslint","ngc":"ngc -p tsconfig.publish.json","bundle":"rollup -c rollup.config.js && uglifyjs npmdist/bundles/mydatepicker.umd.js --compress --mangle --screw-ie8 -o npmdist/bundles/mydatepicker.umd.min.js"},"main":"bundles/mydatepicker.umd.js","typings":"index.d.ts","module":"index.js","dependencies":{},"devDependencies":{"@angular/common":"2.2.4","@angular/compiler":"2.2.4","@angular/compiler-cli":"2.2.4","@angular/core":"2.2.4","@angular/forms":"2.2.4","@angular/platform-browser":"2.2.4","@angular/platform-browser-dynamic":"2.2.4","@angular/platform-server":"2.2.4","@types/core-js":"0.9.34","@types/jasmine":"2.5.38","@types/node":"7.0.1","angular2-template-loader":"0.6.0","awesome-typescript-loader":"3.0.0-beta.18","codecov":"1.0.1","codelyzer":"2.0.0-beta.1","concurrently":"3.0.0","core-js":"2.4.1","css-loader":"0.26.1","es6-promise":"4.0.5","es6-shim":"0.35.1","extract-text-webpack-plugin":"1.0.1","file-loader":"0.9.0","gulp":"3.9.1","gulp-clean":"0.3.2","gulp-clean-css":"2.0.12","gulp-htmlmin":"3.0.0","gulp-json-editor":"2.2.1","gulp-replace":"0.5.4","gulp-shell":"0.5.2","gulp-tslint":"7.0.1","html-loader":"0.4.3","html-webpack-plugin":"2.24.1","istanbul-instrumenter-loader":"1.2.0","jasmine-core":"2.5.2","karma":"1.3.0","karma-cli":"1.0.1","karma-coverage":"1.1.1","karma-htmlfile-reporter":"0.3.4","karma-jasmine":"1.0.2","karma-jasmine-html-reporter":"0.2.2","karma-phantomjs-launcher":"1.0.2","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.1","null-loader":"0.1.1","postcss-loader":"1.1.1","raw-loader":"0.5.1","reflect-metadata":"0.1.8","rimraf":"2.5.2","rollup":"0.41.4","run-sequence":"1.2.2","rxjs":"5.0.0-beta.12","source-map-loader":"0.1.5","style-loader":"0.13.1","systemjs":"0.19.43","systemjs-builder":"0.15.34","to-string-loader":"1.1.4","tslint":"4.0.2","typescript":"2.0.3","uglify-js":"3.0.13","webpack":"1.13.3","webpack-dev-server":"1.16.2","webpack-livereload-plugin":"0.10.0","webpack-merge":"2.4.0","zone.js":"0.6.25"},"gitHead":"cdc2fa97b91cf73b5f24654882369dabefcedad5","bugs":{"url":"https://github.com/AmolBorse/mydatepicker/issues"},"homepage":"https://github.com/AmolBorse/mydatepicker#readme","_id":"angular4-datepicker@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"anonymous","email":"amolborse699@gmail.com"},"dist":{"integrity":"sha512-mfrYkCJ5/HdXZj7J331vOPph9n06tQouUtmCjh4Orqq2FCRpia6LeBq11eBJsF9xdMJtMtvx2VjtyD3rAXRf0A==","shasum":"d017407f979c0bdfed6b863a4107c6c1969b3c75","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/angular4-datepicker/-/angular4-datepicker-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkDOspGIkRtlrw32lv1s7v0fg2y6++YhYDMjTFF8me0AiEA5x9TsoRDfRdRNtGiCwZQ5GrJvbkUTtSHEtyAf7GTgHc="}]},"maintainers":[{"name":"anonymous","email":"amolborse699@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular4-datepicker-1.0.1.tgz_1510253185682_0.2259764748159796"}}},"name":"angular4-datepicker","time":{"modified":"2022-04-11T14:09:07.862Z","created":"2017-11-09T18:38:56.740Z","1.0.0":"2017-11-09T18:38:56.740Z","1.0.1":"2017-11-09T18:46:25.803Z"},"readmeFilename":"README.md","homepage":"https://github.com/AmolBorse/mydatepicker#readme"}