-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng2-date-picker.es5.js.map
1 lines (1 loc) · 254 KB
/
ng2-date-picker.es5.js.map
1
{"version":3,"file":"ng2-date-picker.es5.js","sources":["ts/src/app/ng2-date-picker.ts","ts/src/app/date-picker.module.ts","ts/src/app/day-time-calendar/day-time-calendar.component.ts","ts/src/app/calendar-nav/calendar-nav.component.ts","ts/src/app/time-select/time-select.component.ts","ts/src/app/month-calendar/month-calendar.component.ts","ts/src/app/month-calendar/month-calendar.service.ts","ts/src/app/day-calendar/day-calendar.component.ts","ts/src/app/date-picker/date-picker.directive.ts","ts/src/app/date-picker/date-picker-directive.service.ts","ts/src/app/date-picker/date-picker.component.ts","ts/src/app/date-picker/date-picker.service.ts","ts/src/app/day-time-calendar/day-time-calendar.service.ts","ts/src/app/time-select/time-select.service.ts","ts/src/app/day-calendar/day-calendar.service.ts","ts/src/app/common/services/utils/utils.service.ts","ts/src/app/common/services/dom-appender/dom-appender.service.ts","ts/src/app/common/types/calendar-value-enum.ts","ts/src/app/common/types/calendar-mode-enum.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport {SingleCalendarValue,IDate,ECalendarMode,IDay,IMonth,ECalendarValue,CalendarValue,IDayCalendarConfig,IDayEvent,IDatePickerConfig,IDatePickerDirectiveConfig,IMonthCalendarConfig,DatePickerComponent,DatePickerDirective,DayCalendarComponent,DayTimeCalendarComponent,TimeSelectComponent,MonthCalendarComponent,DpDatePickerModule} from './index';\n\nexport {CalendarNavComponent as ɵi} from './calendar-nav/calendar-nav.component';\nexport {DomHelper as ɵa} from './common/services/dom-appender/dom-appender.service';\nexport {UtilsService as ɵb} from './common/services/utils/utils.service';\nexport {DatePickerDirectiveService as ɵg} from './date-picker/date-picker-directive.service';\nexport {DatePickerService as ɵc} from './date-picker/date-picker.service';\nexport {DayCalendarService as ɵf} from './day-calendar/day-calendar.service';\nexport {DayTimeCalendarService as ɵe} from './day-time-calendar/day-time-calendar.service';\nexport {MonthCalendarService as ɵh} from './month-calendar/month-calendar.service';\nexport {TimeSelectService as ɵd} from './time-select/time-select.service';","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {CommonModule} from '@angular/common';\nimport {DomHelper} from './common/services/dom-appender/dom-appender.service';\nimport {UtilsService} from './common/services/utils/utils.service';\nimport {DatePickerComponent} from './date-picker/date-picker.component';\nimport {DatePickerDirective} from './date-picker/date-picker.directive';\nimport {DayCalendarComponent} from './day-calendar/day-calendar.component';\nimport {MonthCalendarComponent} from './month-calendar/month-calendar.component';\nimport {TimeSelectComponent} from './time-select/time-select.component';\nimport {CalendarNavComponent} from './calendar-nav/calendar-nav.component';\nimport {DayTimeCalendarComponent} from './day-time-calendar/day-time-calendar.component';\nexport {DatePickerComponent} from './date-picker/date-picker.component';\nexport {DatePickerDirective} from './date-picker/date-picker.directive';\nexport {DayCalendarComponent} from './day-calendar/day-calendar.component';\nexport {DayTimeCalendarComponent} from './day-time-calendar/day-time-calendar.component';\nexport {TimeSelectComponent} from './time-select/time-select.component';\nexport {MonthCalendarComponent} from './month-calendar/month-calendar.component';\nexport class DpDatePickerModule {\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n providers: [\n DomHelper,\n UtilsService\n ],\n declarations: [\n DatePickerComponent,\n DatePickerDirective,\n DayCalendarComponent,\n MonthCalendarComponent,\n CalendarNavComponent,\n TimeSelectComponent,\n DayTimeCalendarComponent\n ],\n entryComponents: [\n DatePickerComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n DatePickerComponent,\n DatePickerDirective,\n MonthCalendarComponent,\n DayCalendarComponent,\n TimeSelectComponent,\n DayTimeCalendarComponent\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction DpDatePickerModule_tsickle_Closure_declarations() {\n/** @type {?} */\nDpDatePickerModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDpDatePickerModule.ctorParameters;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {ECalendarValue} from '../common/types/calendar-value-enum';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport {Moment} from 'moment';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IDate} from '../common/models/date.model';\nimport {DayCalendarService} from '../day-calendar/day-calendar.service';\nimport {TimeSelectService} from '../time-select/time-select.service';\nimport {IDayTimeCalendarConfig} from './day-time-calendar-config.model';\nimport {DayTimeCalendarService} from './day-time-calendar.service';\nimport {DateValidator} from '../common/types/validator.type';\nimport {DayCalendarComponent} from '../day-calendar/day-calendar.component';\nimport {INavEvent} from '../common/models/navigation-event.model';\nexport class DayTimeCalendarComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {\n\n config: IDayTimeCalendarConfig;\n displayDate: SingleCalendarValue;\n minDate: SingleCalendarValue;\n maxDate: SingleCalendarValue;\n theme: string;\n\n onChange: EventEmitter<IDate> = new EventEmitter();\n onGoToCurrent: EventEmitter<void> = new EventEmitter();\n onLeftNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightNav: EventEmitter<INavEvent> = new EventEmitter();\n\n dayCalendarRef: DayCalendarComponent;\n\n isInited: boolean = false;\n componentConfig: IDayTimeCalendarConfig;\n _selected: Moment;\n inputValue: CalendarValue;\n inputValueType: ECalendarValue;\n validateFn: DateValidator;\n/**\n * @param {?} selected\n * @return {?}\n */\nset selected(selected: Moment) {\n this._selected = selected;\n this.onChangeCallback(this.processOnChangeCallback(selected));\n }\n/**\n * @return {?}\n */\nget selected(): Moment {\n return this._selected;\n }\n\n api = {\n moveCalendarTo: this.moveCalendarTo.bind(this)\n };\n/**\n * @param {?} dayTimeCalendarService\n * @param {?} utilsService\n * @param {?} cd\n */\nconstructor(public dayTimeCalendarService: DayTimeCalendarService,\npublic utilsService: UtilsService,\npublic cd: ChangeDetectorRef) {\n }\n/**\n * @return {?}\n */\nngOnInit() {\n this.isInited = true;\n this.init();\n this.initValidators();\n }\n/**\n * @return {?}\n */\ninit() {\n this.componentConfig = this.dayTimeCalendarService.getConfig(this.config);\n this.inputValueType = this.utilsService.getInputType(this.inputValue, false);\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n if (this.isInited) {\n const {minDate, maxDate} = changes;\n this.init();\n\n if (minDate || maxDate) {\n this.initValidators();\n }\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nwriteValue(value: CalendarValue): void {\n this.inputValue = value;\n\n if (value) {\n this.selected = this.utilsService\n .convertToMomentArray(value, this.componentConfig.format, false)[0];\n this.inputValueType = this.utilsService\n .getInputType(this.inputValue, false);\n } else {\n this.selected = null;\n }\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n/**\n * @param {?} _\n * @return {?}\n */\nonChangeCallback(_: any) {\n };\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnTouched(fn: any): void {\n }\n/**\n * @param {?} formControl\n * @return {?}\n */\nvalidate(formControl: FormControl): ValidationErrors | any {\n if (this.minDate || this.maxDate) {\n return this.validateFn(formControl.value);\n } else {\n return () => null;\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nprocessOnChangeCallback(value: Moment): CalendarValue {\n return this.utilsService.convertFromMomentArray(\n this.componentConfig.format,\n [value],\n this.componentConfig.returnedValueType || this.inputValueType\n );\n }\n/**\n * @return {?}\n */\ninitValidators() {\n this.validateFn = this.utilsService.createValidator(\n {\n minDate: this.minDate,\n maxDate: this.maxDate\n }, undefined, 'daytime');\n\n this.onChangeCallback(this.processOnChangeCallback(this.selected));\n }\n/**\n * @param {?} day\n * @return {?}\n */\ndateSelected(day: IDate) {\n this.selected = this.dayTimeCalendarService.updateDay(this.selected, day.date, this.config);\n this.emitChange();\n }\n/**\n * @param {?} time\n * @return {?}\n */\ntimeChange(time: IDate) {\n this.selected = this.dayTimeCalendarService.updateTime(this.selected, time.date);\n this.emitChange();\n }\n/**\n * @return {?}\n */\nemitChange() {\n this.onChange.emit({date: this.selected, selected: false});\n }\n/**\n * @param {?} to\n * @return {?}\n */\nmoveCalendarTo(to: SingleCalendarValue) {\n if (to) {\n this.dayCalendarRef.moveCalendarTo(to);\n }\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonLeftNavClick(change: INavEvent) {\n this.onLeftNav.emit(change);\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonRightNavClick(change: INavEvent) {\n this.onRightNav.emit(change);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-day-time-calendar',\n template: `\n <dp-day-calendar #dayCalendar\n [config]=\"componentConfig\"\n [ngModel]=\"_selected\"\n [theme]=\"theme\"\n [displayDate]=\"displayDate\"\n (onSelect)=\"dateSelected($event)\"\n (onGoToCurrent)=\"onGoToCurrent.emit()\"\n (onLeftNav)=\"onLeftNavClick($event)\"\n (onRightNav)=\"onRightNavClick($event)\">\n </dp-day-calendar>\n <dp-time-select #timeSelect\n [config]=\"componentConfig\"\n [ngModel]=\"_selected\"\n (onChange)=\"timeChange($event)\"\n [theme]=\"theme\">\n </dp-time-select>\n `,\n styles: [`\n dp-day-time-calendar {\n display: inline-block;\n }\n dp-day-time-calendar dp-time-select {\n display: block;\n border: 1px solid #000000;\n border-top: 0;\n }\n dp-day-time-calendar.dp-material dp-time-select {\n border: 1px solid #E0E0E0;\n border-top: 0;\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n DayTimeCalendarService,\n DayCalendarService,\n TimeSelectService,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DayTimeCalendarComponent),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => DayTimeCalendarComponent),\n multi: true\n }\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: DayTimeCalendarService, },\n{type: UtilsService, },\n{type: ChangeDetectorRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'onChange': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n'onLeftNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n'dayCalendarRef': [{ type: ViewChild, args: ['dayCalendar', ] },],\n};\n}\n\nfunction DayTimeCalendarComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nDayTimeCalendarComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDayTimeCalendarComponent.ctorParameters;\n/** @type {?} */\nDayTimeCalendarComponent.propDecorators;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.config;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.displayDate;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.minDate;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.maxDate;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.theme;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.onChange;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.onGoToCurrent;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.onLeftNav;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.onRightNav;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.dayCalendarRef;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.isInited;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.componentConfig;\n/** @type {?} */\nDayTimeCalendarComponent.prototype._selected;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.inputValue;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.inputValueType;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.validateFn;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.api;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.dayTimeCalendarService;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.utilsService;\n/** @type {?} */\nDayTimeCalendarComponent.prototype.cd;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Input,\n Output,\n ViewEncapsulation\n} from '@angular/core';\nexport class CalendarNavComponent {\n label: string;\n isLabelClickable: boolean = false;\n showLeftNav: boolean = true;\n showLeftSecondaryNav: boolean = false;\n showRightNav: boolean = true;\n showRightSecondaryNav: boolean = false;\n leftNavDisabled: boolean = false;\n leftSecondaryNavDisabled: boolean = false;\n rightNavDisabled: boolean = false;\n rightSecondaryNavDisabled: boolean = false;\n showGoToCurrent: boolean = true;\n theme: string;\n\n onLeftNav: EventEmitter<null> = new EventEmitter();\n onLeftSecondaryNav: EventEmitter<null> = new EventEmitter();\n onRightNav: EventEmitter<null> = new EventEmitter();\n onRightSecondaryNav: EventEmitter<null> = new EventEmitter();\n onLabelClick: EventEmitter<null> = new EventEmitter();\n onGoToCurrent: EventEmitter<null> = new EventEmitter();\n/**\n * @return {?}\n */\nleftNavClicked() {\n this.onLeftNav.emit();\n }\n/**\n * @return {?}\n */\nleftSecondaryNavClicked() {\n this.onLeftSecondaryNav.emit();\n }\n/**\n * @return {?}\n */\nrightNavClicked() {\n this.onRightNav.emit();\n }\n/**\n * @return {?}\n */\nrightSecondaryNavClicked() {\n this.onRightSecondaryNav.emit();\n }\n/**\n * @return {?}\n */\nlabelClicked() {\n this.onLabelClick.emit();\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-calendar-nav',\n template: `\n <div class=\"dp-calendar-nav-container\">\n <div class=\"dp-nav-header\">\n <span [hidden]=\"isLabelClickable\"\n [attr.data-hidden]=\"isLabelClickable\"\n [innerText]=\"label\">\n </span>\n <button type=\"button\"\n class=\"dp-nav-header-btn\"\n [hidden]=\"!isLabelClickable\"\n [attr.data-hidden]=\"!isLabelClickable\"\n (click)=\"labelClicked()\"\n [innerText]=\"label\">\n </button>\n </div>\n\n <div class=\"dp-nav-btns-container\">\n <div class=\"dp-calendar-nav-container-left\">\n <button type=\"button\"\n class=\"dp-calendar-secondary-nav-left\"\n *ngIf=\"showLeftSecondaryNav\"\n [disabled]=\"leftSecondaryNavDisabled\"\n (click)=\"leftSecondaryNavClicked()\">\n </button>\n <button type=\"button\"\n class=\"dp-calendar-nav-left\"\n [hidden]=\"!showLeftNav\"\n [attr.data-hidden]=\"!showLeftNav\"\n [disabled]=\"leftNavDisabled\"\n (click)=\"leftNavClicked()\">\n </button>\n </div>\n <button type=\"button\"\n class=\"dp-current-location-btn\"\n *ngIf=\"showGoToCurrent\"\n (click)=\"onGoToCurrent.emit()\">\n </button>\n <div class=\"dp-calendar-nav-container-right\">\n <button type=\"button\"\n class=\"dp-calendar-nav-right\"\n [hidden]=\"!showRightNav\"\n [attr.data-hidden]=\"!showRightNav\"\n [disabled]=\"rightNavDisabled\"\n (click)=\"rightNavClicked()\">\n </button>\n <button type=\"button\"\n class=\"dp-calendar-secondary-nav-right\"\n *ngIf=\"showRightSecondaryNav\"\n [disabled]=\"rightSecondaryNavDisabled\"\n (click)=\"rightSecondaryNavClicked()\">\n </button>\n </div>\n </div>\n </div>\n `,\n styles: [`\n dp-calendar-nav .dp-calendar-nav-container {\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 25px;\n border: 1px solid #000000;\n border-bottom: none;\n }\n dp-calendar-nav .dp-nav-date-btn {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 25px;\n border: 1px solid #000000;\n border-bottom: none;\n }\n dp-calendar-nav .dp-nav-btns-container {\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 5px;\n display: inline-block;\n }\n dp-calendar-nav .dp-calendar-nav-container-left,\n dp-calendar-nav .dp-calendar-nav-container-right {\n display: inline-block;\n }\n dp-calendar-nav .dp-calendar-nav-left,\n dp-calendar-nav .dp-calendar-nav-right,\n dp-calendar-nav .dp-calendar-secondary-nav-left,\n dp-calendar-nav .dp-calendar-secondary-nav-right {\n position: relative;\n width: 16px;\n cursor: pointer;\n }\n dp-calendar-nav .dp-calendar-nav-left,\n dp-calendar-nav .dp-calendar-nav-right {\n line-height: 0;\n }\n dp-calendar-nav .dp-calendar-nav-left::before,\n dp-calendar-nav .dp-calendar-nav-right::before {\n position: relative;\n content: '';\n display: inline-block;\n height: 8px;\n width: 8px;\n vertical-align: baseline;\n border-style: solid;\n border-width: 2px 2px 0 0;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n dp-calendar-nav .dp-calendar-secondary-nav-left,\n dp-calendar-nav .dp-calendar-secondary-nav-right {\n padding: 0;\n }\n dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n dp-calendar-nav .dp-calendar-secondary-nav-right::before,\n dp-calendar-nav .dp-calendar-secondary-nav-left::after,\n dp-calendar-nav .dp-calendar-secondary-nav-right::after {\n position: relative;\n content: '';\n display: inline-block;\n height: 8px;\n width: 8px;\n vertical-align: baseline;\n border-style: solid;\n border-width: 2px 2px 0 0;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n dp-calendar-nav .dp-calendar-secondary-nav-right::before {\n right: -10px;\n }\n dp-calendar-nav .dp-calendar-secondary-nav-right {\n left: initial;\n right: 5px;\n }\n dp-calendar-nav .dp-calendar-nav-left::before {\n position: relative;\n content: '';\n display: inline-block;\n height: 8px;\n width: 8px;\n vertical-align: baseline;\n border-style: solid;\n border-width: 2px 2px 0 0;\n -webkit-transform: rotate(-135deg);\n transform: rotate(-135deg);\n }\n dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n dp-calendar-nav .dp-calendar-secondary-nav-left::after {\n position: relative;\n content: '';\n display: inline-block;\n height: 8px;\n width: 8px;\n vertical-align: baseline;\n border-style: solid;\n border-width: 2px 2px 0 0;\n -webkit-transform: rotate(-135deg);\n transform: rotate(-135deg);\n }\n dp-calendar-nav .dp-calendar-secondary-nav-left::before {\n right: -10px;\n }\n dp-calendar-nav .dp-nav-header {\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n left: 5px;\n display: inline-block;\n font-size: 13px;\n }\n dp-calendar-nav .dp-nav-header-btn {\n cursor: pointer;\n }\n dp-calendar-nav .dp-current-location-btn {\n position: relative;\n top: -1px;\n height: 16px;\n width: 16px;\n vertical-align: middle;\n background: rgba(0, 0, 0, 0.6);\n border: 1px solid rgba(0, 0, 0, 0.6);\n outline: none;\n border-radius: 50%;\n -webkit-box-shadow: inset 0 0 0 3px #FFFFFF;\n box-shadow: inset 0 0 0 3px #FFFFFF;\n cursor: pointer;\n }\n dp-calendar-nav .dp-current-location-btn:hover {\n background: #000000;\n }\n dp-calendar-nav.dp-material .dp-calendar-nav-container {\n height: 30px;\n border: 1px solid #E0E0E0;\n }\n dp-calendar-nav.dp-material .dp-calendar-nav-left,\n dp-calendar-nav.dp-material .dp-calendar-nav-right,\n dp-calendar-nav.dp-material .dp-calendar-secondary-nav-left,\n dp-calendar-nav.dp-material .dp-calendar-secondary-nav-right {\n border: none;\n background: #FFFFFF;\n outline: none;\n font-size: 16px;\n padding: 0;\n }\n dp-calendar-nav.dp-material .dp-calendar-secondary-nav-left,\n dp-calendar-nav.dp-material .dp-calendar-secondary-nav-right {\n width: 20px;\n }\n dp-calendar-nav.dp-material .dp-nav-header-btn {\n height: 20px;\n width: 80px;\n border: none;\n background: #FFFFFF;\n outline: none;\n }\n dp-calendar-nav.dp-material .dp-nav-header-btn:hover {\n background: rgba(0, 0, 0, 0.05);\n }\n dp-calendar-nav.dp-material .dp-nav-header-btn:active {\n background: rgba(0, 0, 0, 0.1);\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'label': [{ type: Input },],\n'isLabelClickable': [{ type: Input },],\n'showLeftNav': [{ type: Input },],\n'showLeftSecondaryNav': [{ type: Input },],\n'showRightNav': [{ type: Input },],\n'showRightSecondaryNav': [{ type: Input },],\n'leftNavDisabled': [{ type: Input },],\n'leftSecondaryNavDisabled': [{ type: Input },],\n'rightNavDisabled': [{ type: Input },],\n'rightSecondaryNavDisabled': [{ type: Input },],\n'showGoToCurrent': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'onLeftNav': [{ type: Output },],\n'onLeftSecondaryNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n'onRightSecondaryNav': [{ type: Output },],\n'onLabelClick': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n};\n}\n\nfunction CalendarNavComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nCalendarNavComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nCalendarNavComponent.ctorParameters;\n/** @type {?} */\nCalendarNavComponent.propDecorators;\n/** @type {?} */\nCalendarNavComponent.prototype.label;\n/** @type {?} */\nCalendarNavComponent.prototype.isLabelClickable;\n/** @type {?} */\nCalendarNavComponent.prototype.showLeftNav;\n/** @type {?} */\nCalendarNavComponent.prototype.showLeftSecondaryNav;\n/** @type {?} */\nCalendarNavComponent.prototype.showRightNav;\n/** @type {?} */\nCalendarNavComponent.prototype.showRightSecondaryNav;\n/** @type {?} */\nCalendarNavComponent.prototype.leftNavDisabled;\n/** @type {?} */\nCalendarNavComponent.prototype.leftSecondaryNavDisabled;\n/** @type {?} */\nCalendarNavComponent.prototype.rightNavDisabled;\n/** @type {?} */\nCalendarNavComponent.prototype.rightSecondaryNavDisabled;\n/** @type {?} */\nCalendarNavComponent.prototype.showGoToCurrent;\n/** @type {?} */\nCalendarNavComponent.prototype.theme;\n/** @type {?} */\nCalendarNavComponent.prototype.onLeftNav;\n/** @type {?} */\nCalendarNavComponent.prototype.onLeftSecondaryNav;\n/** @type {?} */\nCalendarNavComponent.prototype.onRightNav;\n/** @type {?} */\nCalendarNavComponent.prototype.onRightSecondaryNav;\n/** @type {?} */\nCalendarNavComponent.prototype.onLabelClick;\n/** @type {?} */\nCalendarNavComponent.prototype.onGoToCurrent;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {ECalendarValue} from '../common/types/calendar-value-enum';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {TimeSelectService, TimeUnit} from './time-select.service';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {ITimeSelectConfig, ITimeSelectConfigInternal} from './time-select-config.model';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IDate} from '../common/models/date.model';\nimport {DateValidator} from '../common/types/validator.type';\nconst /** @type {?} */ moment = momentNs;\nexport class TimeSelectComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {\n\n config: ITimeSelectConfig;\n displayDate: SingleCalendarValue;\n minDate: SingleCalendarValue;\n maxDate: SingleCalendarValue;\n minTime: SingleCalendarValue;\n maxTime: SingleCalendarValue;\n theme: string;\n\n onChange: EventEmitter<IDate> = new EventEmitter();\n\n isInited: boolean = false;\n componentConfig: ITimeSelectConfigInternal;\n _selected: Moment;\n inputValue: CalendarValue;\n inputValueType: ECalendarValue;\n validateFn: DateValidator;\n\n hours: string;\n minutes: string;\n seconds: string;\n meridiem: string;\n\n showDecHour: boolean;\n showDecMinute: boolean;\n showDecSecond: boolean;\n showIncHour: boolean;\n showIncMinute: boolean;\n showIncSecond: boolean;\n showToggleMeridiem: boolean;\n/**\n * @param {?} selected\n * @return {?}\n */\nset selected(selected: Moment) {\n this._selected = selected;\n this.calculateTimeParts(this.selected);\n\n this.showDecHour = this.timeSelectService.shouldShowDecrease(this.componentConfig, this._selected, 'hour');\n this.showDecMinute = this.timeSelectService.shouldShowDecrease(this.componentConfig, this._selected, 'minute');\n this.showDecSecond = this.timeSelectService.shouldShowDecrease(this.componentConfig, this._selected, 'second');\n\n this.showIncHour = this.timeSelectService.shouldShowIncrease(this.componentConfig, this._selected, 'hour');\n this.showIncMinute = this.timeSelectService.shouldShowIncrease(this.componentConfig, this._selected, 'minute');\n this.showIncSecond = this.timeSelectService.shouldShowIncrease(this.componentConfig, this._selected, 'second');\n\n this.showToggleMeridiem = this.timeSelectService.shouldShowToggleMeridiem(this.componentConfig, this._selected);\n\n this.onChangeCallback(this.processOnChangeCallback(selected));\n }\n/**\n * @return {?}\n */\nget selected(): Moment {\n return this._selected;\n }\n\n api = {\n triggerChange: this.emitChange.bind(this)\n };\n/**\n * @param {?} timeSelectService\n * @param {?} utilsService\n * @param {?} cd\n */\nconstructor(public timeSelectService: TimeSelectService,\npublic utilsService: UtilsService,\npublic cd: ChangeDetectorRef) {\n }\n/**\n * @return {?}\n */\nngOnInit() {\n this.isInited = true;\n this.init();\n this.initValidators();\n }\n/**\n * @return {?}\n */\ninit() {\n this.componentConfig = this.timeSelectService.getConfig(this.config);\n this.selected = this.selected || moment();\n this.inputValueType = this.utilsService.getInputType(this.inputValue, false);\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n if (this.isInited) {\n const {minDate, maxDate, minTime, maxTime} = changes;\n this.init();\n\n if (minDate || maxDate || minTime || maxTime) {\n this.initValidators();\n }\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nwriteValue(value: CalendarValue): void {\n this.inputValue = value;\n\n if (value) {\n const /** @type {?} */ momentValue = this.utilsService\n .convertToMomentArray(value, this.timeSelectService.getTimeFormat(this.componentConfig), false)[0];\n if (momentValue.isValid()) {\n this.selected = momentValue;\n this.inputValueType = this.utilsService\n .getInputType(this.inputValue, false);\n }\n }\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n/**\n * @param {?} _\n * @return {?}\n */\nonChangeCallback(_: any) {\n };\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnTouched(fn: any): void {\n }\n/**\n * @param {?} formControl\n * @return {?}\n */\nvalidate(formControl: FormControl): ValidationErrors | any {\n if (this.minDate || this.maxDate || this.minTime || this.maxTime) {\n return this.validateFn(formControl.value);\n } else {\n return () => null;\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nprocessOnChangeCallback(value: Moment): CalendarValue {\n return this.utilsService.convertFromMomentArray(\n this.timeSelectService.getTimeFormat(this.componentConfig),\n [value],\n this.componentConfig.returnedValueType || this.inputValueType\n );\n }\n/**\n * @return {?}\n */\ninitValidators() {\n this.validateFn = this.utilsService.createValidator(\n {\n minDate: this.minDate,\n maxDate: this.maxDate,\n minTime: this.minTime,\n maxTime: this.maxTime\n }, undefined, 'day');\n\n this.onChangeCallback(this.processOnChangeCallback(this.selected));\n }\n/**\n * @param {?} unit\n * @return {?}\n */\ndecrease(unit: TimeUnit) {\n this.selected = this.timeSelectService.decrease(this.componentConfig, this.selected, unit);\n this.emitChange();\n }\n/**\n * @param {?} unit\n * @return {?}\n */\nincrease(unit: TimeUnit) {\n this.selected = this.timeSelectService.increase(this.componentConfig, this.selected, unit);\n this.emitChange();\n }\n/**\n * @return {?}\n */\ntoggleMeridiem() {\n this.selected = this.timeSelectService.toggleMeridiem(this.selected);\n this.emitChange();\n }\n/**\n * @return {?}\n */\nemitChange() {\n this.onChange.emit({date: this.selected, selected: false});\n this.cd.markForCheck();\n }\n/**\n * @param {?} time\n * @return {?}\n */\ncalculateTimeParts(time: Moment) {\n this.hours = this.timeSelectService.getHours(this.componentConfig, time);\n this.minutes = this.timeSelectService.getMinutes(this.componentConfig, time);\n this.seconds = this.timeSelectService.getSeconds(this.componentConfig, time);\n this.meridiem = this.timeSelectService.getMeridiem(this.componentConfig, time);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-time-select',\n template: `\n <ul class=\"dp-time-select-controls\">\n <li class=\"dp-time-select-control dp-time-select-control-hours\">\n <button type=\"button\"\n class=\"dp-time-select-control-up\"\n [disabled]=\"!showIncHour\"\n (click)=\"increase('hour')\">\n </button>\n <span class=\"dp-time-select-display-hours\"\n [innerText]=\"hours\">\n </span>\n <button type=\"button\"\n class=\"dp-time-select-control-down\"\n [disabled]=\"!showDecHour\"\n (click)=\"decrease('hour')\"></button>\n </li>\n <li class=\"dp-time-select-control dp-time-select-separator\"\n [innerText]=\"componentConfig.timeSeparator\">\n </li>\n <li class=\"dp-time-select-control dp-time-select-control-minutes\">\n <button type=\"button\"\n class=\"dp-time-select-control-up\"\n [disabled]=\"!showIncMinute\"\n (click)=\"increase('minute')\"></button>\n <span class=\"dp-time-select-display-minutes\"\n [innerText]=\"minutes\">\n </span>\n <button type=\"button\"\n [disabled]=\"!showDecMinute\" class=\"dp-time-select-control-down\"\n (click)=\"decrease('minute')\"></button>\n </li>\n <ng-container *ngIf=\"componentConfig.showSeconds\">\n <li class=\"dp-time-select-control dp-time-select-separator\"\n [innerText]=\"componentConfig.timeSeparator\">\n </li>\n <li class=\"dp-time-select-control dp-time-select-control-seconds\">\n <button type=\"button\"\n class=\"dp-time-select-control-up\"\n [disabled]=\"!showIncSecond\"\n (click)=\"increase('second')\"></button>\n <span class=\"dp-time-select-display-seconds\"\n [innerText]=\"seconds\">\n </span>\n <button type=\"button\"\n class=\"dp-time-select-control-down\"\n [disabled]=\"!showDecSecond\"\n (click)=\"decrease('second')\"></button>\n </li>\n </ng-container>\n <li class=\"dp-time-select-control dp-time-select-control-meridiem\" *ngIf=\"!componentConfig.showTwentyFourHours\">\n <button type=\"button\"\n class=\"dp-time-select-control-up\"\n [disabled]=\"!showToggleMeridiem\"\n (click)=\"toggleMeridiem()\"></button>\n <span class=\"dp-time-select-display-meridiem\"\n [innerText]=\"meridiem\">\n </span>\n <button type=\"button\"\n class=\"dp-time-select-control-down\"\n [disabled]=\"!showToggleMeridiem\"\n (click)=\"toggleMeridiem()\"></button>\n </li>\n </ul>\n `,\n styles: [`\n dp-time-select {\n display: inline-block;\n }\n dp-time-select .dp-time-select-controls {\n margin: 0;\n padding: 0;\n text-align: center;\n line-height: normal;\n background: #FFFFFF;\n }\n dp-time-select .dp-time-select-control {\n display: inline-block;\n width: 35px;\n margin: 0 auto;\n vertical-align: middle;\n font-size: inherit;\n letter-spacing: 1px;\n }\n dp-time-select .dp-time-select-control-up,\n dp-time-select .dp-time-select-control-down {\n position: relative;\n display: block;\n width: 24px;\n height: 24px;\n margin: 3px auto;\n cursor: pointer;\n }\n dp-time-select .dp-time-select-control-up::before,\n dp-time-select .dp-time-select-control-down::before {\n position: relative;\n content: '';\n display: inline-block;\n height: 8px;\n width: 8px;\n vertical-align: baseline;\n border-style: solid;\n border-width: 2px 2px 0 0;\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n dp-time-select .dp-time-select-control-up::before {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n top: 4px;\n }\n dp-time-select .dp-time-select-control-down::before {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n dp-time-select .dp-time-select-separator {\n width: 5px;\n }\n dp-time-select.dp-material .dp-time-select-control-up,\n dp-time-select.dp-material .dp-time-select-control-down {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: transparent;\n border: none;\n outline: none;\n border-radius: 50%;\n }\n dp-time-select.dp-material .dp-time-select-control-up::before,\n dp-time-select.dp-material .dp-time-select-control-down::before {\n left: 0;\n }\n dp-time-select.dp-material .dp-time-select-control-up:hover,\n dp-time-select.dp-material .dp-time-select-control-down:hover {\n background: #E0E0E0;\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TimeSelectService,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TimeSelectComponent),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TimeSelectComponent),\n multi: true\n }\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: TimeSelectService, },\n{type: UtilsService, },\n{type: ChangeDetectorRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'minTime': [{ type: Input },],\n'maxTime': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'onChange': [{ type: Output },],\n};\n}\n\nfunction TimeSelectComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nTimeSelectComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nTimeSelectComponent.ctorParameters;\n/** @type {?} */\nTimeSelectComponent.propDecorators;\n/** @type {?} */\nTimeSelectComponent.prototype.config;\n/** @type {?} */\nTimeSelectComponent.prototype.displayDate;\n/** @type {?} */\nTimeSelectComponent.prototype.minDate;\n/** @type {?} */\nTimeSelectComponent.prototype.maxDate;\n/** @type {?} */\nTimeSelectComponent.prototype.minTime;\n/** @type {?} */\nTimeSelectComponent.prototype.maxTime;\n/** @type {?} */\nTimeSelectComponent.prototype.theme;\n/** @type {?} */\nTimeSelectComponent.prototype.onChange;\n/** @type {?} */\nTimeSelectComponent.prototype.isInited;\n/** @type {?} */\nTimeSelectComponent.prototype.componentConfig;\n/** @type {?} */\nTimeSelectComponent.prototype._selected;\n/** @type {?} */\nTimeSelectComponent.prototype.inputValue;\n/** @type {?} */\nTimeSelectComponent.prototype.inputValueType;\n/** @type {?} */\nTimeSelectComponent.prototype.validateFn;\n/** @type {?} */\nTimeSelectComponent.prototype.hours;\n/** @type {?} */\nTimeSelectComponent.prototype.minutes;\n/** @type {?} */\nTimeSelectComponent.prototype.seconds;\n/** @type {?} */\nTimeSelectComponent.prototype.meridiem;\n/** @type {?} */\nTimeSelectComponent.prototype.showDecHour;\n/** @type {?} */\nTimeSelectComponent.prototype.showDecMinute;\n/** @type {?} */\nTimeSelectComponent.prototype.showDecSecond;\n/** @type {?} */\nTimeSelectComponent.prototype.showIncHour;\n/** @type {?} */\nTimeSelectComponent.prototype.showIncMinute;\n/** @type {?} */\nTimeSelectComponent.prototype.showIncSecond;\n/** @type {?} */\nTimeSelectComponent.prototype.showToggleMeridiem;\n/** @type {?} */\nTimeSelectComponent.prototype.api;\n/** @type {?} */\nTimeSelectComponent.prototype.timeSelectService;\n/** @type {?} */\nTimeSelectComponent.prototype.utilsService;\n/** @type {?} */\nTimeSelectComponent.prototype.cd;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {ECalendarValue} from '../common/types/calendar-value-enum';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChange,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {IMonth} from './month.model';\nimport {MonthCalendarService} from './month-calendar.service';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {IMonthCalendarConfig, IMonthCalendarConfigInternal} from './month-calendar-config';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {DateValidator} from '../common/types/validator.type';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {INavEvent} from '../common/models/navigation-event.model';\nconst /** @type {?} */ moment = momentNs;\nexport class MonthCalendarComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {\n config: IMonthCalendarConfig;\n displayDate: Moment;\n minDate: Moment;\n maxDate: Moment;\n theme: string;\n\n onSelect: EventEmitter<IMonth> = new EventEmitter();\n onNavHeaderBtnClick: EventEmitter<null> = new EventEmitter();\n onGoToCurrent: EventEmitter<void> = new EventEmitter();\n onLeftNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightNav: EventEmitter<INavEvent> = new EventEmitter();\n onLeftSecondaryNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightSecondaryNav: EventEmitter<INavEvent> = new EventEmitter();\n\n isInited: boolean = false;\n componentConfig: IMonthCalendarConfigInternal;\n _selected: Moment[];\n yearMonths: IMonth[][];\n _currentDateView: Moment;\n inputValue: CalendarValue;\n inputValueType: ECalendarValue;\n validateFn: DateValidator;\n _shouldShowCurrent: boolean = true;\n navLabel: string;\n showLeftNav: boolean;\n showRightNav: boolean;\n showSecondaryLeftNav: boolean;\n showSecondaryRightNav: boolean;\n\n api = {\n toggleCalendar: this.toggleCalendarMode.bind(this),\n moveCalendarTo: this.moveCalendarTo.bind(this)\n };\n/**\n * @param {?} selected\n * @return {?}\n */\nset selected(selected: Moment[]) {\n this._selected = selected;\n this.onChangeCallback(this.processOnChangeCallback(selected));\n }\n/**\n * @return {?}\n */\nget selected(): Moment[] {\n return this._selected;\n }\n/**\n * @param {?} current\n * @return {?}\n */\nset currentDateView(current: Moment) {\n this._currentDateView = current.clone();\n this.yearMonths = this.monthCalendarService\n .generateYear(this.componentConfig, this._currentDateView, this.selected);\n this.navLabel = this.monthCalendarService.getHeaderLabel(this.componentConfig, this.currentDateView);\n this.showLeftNav = this.monthCalendarService.shouldShowLeft(this.componentConfig.min, this._currentDateView);\n this.showRightNav = this.monthCalendarService.shouldShowRight(this.componentConfig.max, this.currentDateView);\n this.showSecondaryLeftNav = this.componentConfig.showMultipleYearsNavigation && this.showLeftNav;\n this.showSecondaryRightNav = this.componentConfig.showMultipleYearsNavigation && this.showRightNav;\n }\n/**\n * @return {?}\n */\nget currentDateView(): Moment {\n return this._currentDateView;\n }\n/**\n * @param {?} monthCalendarService\n * @param {?} utilsService\n * @param {?} cd\n */\nconstructor(public readonly monthCalendarService: MonthCalendarService,\npublic readonly utilsService: UtilsService,\npublic readonly cd: ChangeDetectorRef) {\n }\n/**\n * @return {?}\n */\nngOnInit() {\n this.isInited = true;\n this.init();\n this.initValidators();\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n if (this.isInited) {\n const {minDate, maxDate, config} = changes;\n\n this.handleConfigChange(config);\n this.init();\n\n if (minDate || maxDate) {\n this.initValidators();\n }\n }\n }\n/**\n * @return {?}\n */\ninit() {\n this.componentConfig = this.monthCalendarService.getConfig(this.config);\n this.selected = this.selected || [];\n this.currentDateView = this.displayDate\n ? this.displayDate\n : this.utilsService\n .getDefaultDisplayDate(\n this.currentDateView,\n this.selected,\n this.componentConfig.allowMultiSelect,\n this.componentConfig.min\n );\n this.inputValueType = this.utilsService.getInputType(this.inputValue, this.componentConfig.allowMultiSelect);\n this._shouldShowCurrent = this.shouldShowCurrent();\n }\n/**\n * @param {?} value\n * @return {?}\n */\nwriteValue(value: CalendarValue): void {\n this.inputValue = value;\n\n if (value) {\n this.selected = this.utilsService\n .convertToMomentArray(value, this.componentConfig.format, this.componentConfig.allowMultiSelect);\n this.yearMonths = this.monthCalendarService\n .generateYear(this.componentConfig, this.currentDateView, this.selected);\n this.inputValueType = this.utilsService.getInputType(this.inputValue, this.componentConfig.allowMultiSelect);\n }\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n/**\n * @param {?} _\n * @return {?}\n */\nonChangeCallback(_: any) {\n };\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnTouched(fn: any): void {\n }\n/**\n * @param {?} formControl\n * @return {?}\n */\nvalidate(formControl: FormControl): ValidationErrors | any {\n if (this.minDate || this.maxDate) {\n return this.validateFn(formControl.value);\n } else {\n return () => null;\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nprocessOnChangeCallback(value: Moment[]): CalendarValue {\n return this.utilsService.convertFromMomentArray(\n this.componentConfig.format,\n value,\n this.componentConfig.returnedValueType || this.inputValueType\n );\n }\n/**\n * @return {?}\n */\ninitValidators() {\n this.validateFn = this.validateFn = this.utilsService.createValidator(\n {minDate: this.minDate, maxDate: this.maxDate},\n this.componentConfig.format,\n 'month'\n );\n\n this.onChangeCallback(this.processOnChangeCallback(this.selected));\n }\n/**\n * @param {?} month\n * @return {?}\n */\nmonthClicked(month: IMonth) {\n if (month.selected && !this.componentConfig.unSelectOnClick) {\n return;\n }\n\n this.selected = this.utilsService\n .updateSelected(this.componentConfig.allowMultiSelect, this.selected, month, 'month');\n this.yearMonths = this.monthCalendarService\n .generateYear(this.componentConfig, this.currentDateView, this.selected);\n this.onSelect.emit(month);\n }\n/**\n * @return {?}\n */\nonLeftNavClick() {\n const /** @type {?} */ from = this.currentDateView.clone();\n this.currentDateView = this.currentDateView.clone().subtract(1, 'year');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.yearMonths = this.monthCalendarService.generateYear(this.componentConfig, this.currentDateView, this.selected);\n this.onLeftNav.emit({from, to});\n }\n/**\n * @return {?}\n */\nonLeftSecondaryNavClick() {\n let /** @type {?} */ navigateBy = this.componentConfig.multipleYearsNavigateBy;\n const /** @type {?} */ isOutsideRange = this.componentConfig.min &&\n this.currentDateView.year() - this.componentConfig.min.year() < navigateBy;\n\n if (isOutsideRange) {\n navigateBy = this.currentDateView.year() - this.componentConfig.min.year();\n }\n\n const /** @type {?} */ from = this.currentDateView.clone();\n this.currentDateView = this.currentDateView.clone().subtract(navigateBy, 'year');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.onLeftSecondaryNav.emit({from, to});\n }\n/**\n * @return {?}\n */\nonRightNavClick() {\n const /** @type {?} */ from = this.currentDateView.clone();\n this.currentDateView = this.currentDateView.clone().add(1, 'year');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.onRightNav.emit({from, to});\n }\n/**\n * @return {?}\n */\nonRightSecondaryNavClick() {\n let /** @type {?} */ navigateBy = this.componentConfig.multipleYearsNavigateBy;\n const /** @type {?} */ isOutsideRange = this.componentConfig.max &&\n this.componentConfig.max.year() - this.currentDateView.year() < navigateBy;\n\n if (isOutsideRange) {\n navigateBy = this.componentConfig.max.year() - this.currentDateView.year();\n }\n\n const /** @type {?} */ from = this.currentDateView.clone();\n this.currentDateView = this.currentDateView.clone().add(navigateBy, 'year');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.onRightSecondaryNav.emit({from, to});\n }\n/**\n * @return {?}\n */\ntoggleCalendarMode() {\n this.onNavHeaderBtnClick.emit();\n }\n/**\n * @param {?} month\n * @return {?}\n */\ngetMonthBtnCssClass(month: IMonth): {[klass: string]: boolean} {\n const /** @type {?} */ cssClass: {[klass: string]: boolean} = {\n 'dp-selected': month.selected,\n 'dp-current-month': month.currentMonth\n };\n const /** @type {?} */ customCssClass: string = this.monthCalendarService.getMonthBtnCssClass(this.componentConfig, month.date);\n\n if (customCssClass) {\n cssClass[customCssClass] = true;\n }\n\n return cssClass;\n }\n/**\n * @return {?}\n */\nshouldShowCurrent(): boolean {\n return this.utilsService.shouldShowCurrent(\n this.componentConfig.showGoToCurrent,\n 'month',\n this.componentConfig.min,\n this.componentConfig.max\n );\n }\n/**\n * @return {?}\n */\ngoToCurrent() {\n this.currentDateView = moment();\n this.onGoToCurrent.emit();\n }\n/**\n * @param {?} to\n * @return {?}\n */\nmoveCalendarTo(to: SingleCalendarValue) {\n if (to) {\n this.currentDateView = this.utilsService.convertToMoment(to, this.componentConfig.format);\n this.cd.markForCheck();\n }\n }\n/**\n * @param {?} config\n * @return {?}\n */\nhandleConfigChange(config: SimpleChange) {\n if (config) {\n const /** @type {?} */ prevConf: IMonthCalendarConfigInternal = this.monthCalendarService.getConfig(config.previousValue);\n const /** @type {?} */ currentConf: IMonthCalendarConfigInternal = this.monthCalendarService.getConfig(config.currentValue);\n\n if (this.utilsService.shouldResetCurrentView(prevConf, currentConf)) {\n this._currentDateView = null;\n }\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-month-calendar',\n template: `\n <div class=\"dp-month-calendar-container\">\n <dp-calendar-nav\n [label]=\"navLabel\"\n [showLeftNav]=\"showLeftNav\"\n [showLeftSecondaryNav]=\"showSecondaryLeftNav\"\n [showRightNav]=\"showRightNav\"\n [showRightSecondaryNav]=\"showSecondaryRightNav\"\n [isLabelClickable]=\"componentConfig.isNavHeaderBtnClickable\"\n [showGoToCurrent]=\"shouldShowCurrent()\"\n [theme]=\"theme\"\n (onLeftNav)=\"onLeftNavClick()\"\n (onLeftSecondaryNav)=\"onLeftSecondaryNavClick()\"\n (onRightNav)=\"onRightNavClick()\"\n (onRightSecondaryNav)=\"onRightSecondaryNavClick()\"\n (onLabelClick)=\"toggleCalendarMode()\"\n (onGoToCurrent)=\"goToCurrent()\">\n </dp-calendar-nav>\n\n <div class=\"dp-calendar-wrapper\">\n <div class=\"dp-months-row\" *ngFor=\"let monthRow of yearMonths\">\n <button type=\"button\"\n class=\"dp-calendar-month\"\n *ngFor=\"let month of monthRow\"\n [attr.data-date]=\"month.date.format(componentConfig.format)\"\n [disabled]=\"month.disabled\"\n [ngClass]=\"getMonthBtnCssClass(month)\"\n (click)=\"monthClicked(month)\"\n [innerText]=\"month.text\">\n </button>\n </div>\n </div>\n </div>\n `,\n styles: [`\n dp-month-calendar {\n display: inline-block;\n }\n dp-month-calendar .dp-month-calendar-container {\n background: #FFFFFF;\n }\n dp-month-calendar .dp-calendar-wrapper {\n border: 1px solid #000000;\n }\n dp-month-calendar .dp-calendar-month {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 52.5px;\n height: 52.5px;\n cursor: pointer;\n }\n dp-month-calendar .dp-calendar-month.dp-selected {\n background: #106CC8;\n color: #FFFFFF;\n }\n dp-month-calendar.dp-material .dp-calendar-weekday {\n height: 25px;\n width: 30px;\n line-height: 25px;\n background: #E0E0E0;\n border: 1px solid #E0E0E0;\n }\n dp-month-calendar.dp-material .dp-calendar-wrapper {\n border: 1px solid #E0E0E0;\n }\n dp-month-calendar.dp-material .dp-calendar-month {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: #FFFFFF;\n border-radius: 50%;\n border: none;\n outline: none;\n }\n dp-month-calendar.dp-material .dp-calendar-month:hover {\n background: #E0E0E0;\n }\n dp-month-calendar.dp-material .dp-selected {\n background: #106CC8;\n color: #FFFFFF;\n }\n dp-month-calendar.dp-material .dp-selected:hover {\n background: #106CC8;\n }\n dp-month-calendar.dp-material .dp-current-month {\n border: 1px solid #106CC8;\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MonthCalendarService,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MonthCalendarComponent),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MonthCalendarComponent),\n multi: true\n }\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: MonthCalendarService, },\n{type: UtilsService, },\n{type: ChangeDetectorRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'onSelect': [{ type: Output },],\n'onNavHeaderBtnClick': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n'onLeftNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n'onLeftSecondaryNav': [{ type: Output },],\n'onRightSecondaryNav': [{ type: Output },],\n};\n}\n\nfunction MonthCalendarComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nMonthCalendarComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nMonthCalendarComponent.ctorParameters;\n/** @type {?} */\nMonthCalendarComponent.propDecorators;\n/** @type {?} */\nMonthCalendarComponent.prototype.config;\n/** @type {?} */\nMonthCalendarComponent.prototype.displayDate;\n/** @type {?} */\nMonthCalendarComponent.prototype.minDate;\n/** @type {?} */\nMonthCalendarComponent.prototype.maxDate;\n/** @type {?} */\nMonthCalendarComponent.prototype.theme;\n/** @type {?} */\nMonthCalendarComponent.prototype.onSelect;\n/** @type {?} */\nMonthCalendarComponent.prototype.onNavHeaderBtnClick;\n/** @type {?} */\nMonthCalendarComponent.prototype.onGoToCurrent;\n/** @type {?} */\nMonthCalendarComponent.prototype.onLeftNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.onRightNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.onLeftSecondaryNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.onRightSecondaryNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.isInited;\n/** @type {?} */\nMonthCalendarComponent.prototype.componentConfig;\n/** @type {?} */\nMonthCalendarComponent.prototype._selected;\n/** @type {?} */\nMonthCalendarComponent.prototype.yearMonths;\n/** @type {?} */\nMonthCalendarComponent.prototype._currentDateView;\n/** @type {?} */\nMonthCalendarComponent.prototype.inputValue;\n/** @type {?} */\nMonthCalendarComponent.prototype.inputValueType;\n/** @type {?} */\nMonthCalendarComponent.prototype.validateFn;\n/** @type {?} */\nMonthCalendarComponent.prototype._shouldShowCurrent;\n/** @type {?} */\nMonthCalendarComponent.prototype.navLabel;\n/** @type {?} */\nMonthCalendarComponent.prototype.showLeftNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.showRightNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.showSecondaryLeftNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.showSecondaryRightNav;\n/** @type {?} */\nMonthCalendarComponent.prototype.api;\n/** @type {?} */\nMonthCalendarComponent.prototype.monthCalendarService;\n/** @type {?} */\nMonthCalendarComponent.prototype.utilsService;\n/** @type {?} */\nMonthCalendarComponent.prototype.cd;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {Injectable} from '@angular/core';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IMonth} from './month.model';\nimport {IMonthCalendarConfig, IMonthCalendarConfigInternal} from './month-calendar-config';\nconst /** @type {?} */ moment = momentNs;\nexport class MonthCalendarService {\n readonly DEFAULT_CONFIG: IMonthCalendarConfigInternal = {\n allowMultiSelect: false,\n yearFormat: 'YYYY',\n format: 'MM-YYYY',\n isNavHeaderBtnClickable: false,\n monthBtnFormat: 'MMM',\n locale: moment.locale(),\n multipleYearsNavigateBy: 10,\n showMultipleYearsNavigation: false,\n unSelectOnClick: true\n };\n/**\n * @param {?} utilsService\n */\nconstructor(private utilsService: UtilsService) {\n }\n/**\n * @param {?} config\n * @return {?}\n */\ngetConfig(config: IMonthCalendarConfig): IMonthCalendarConfigInternal {\n const /** @type {?} */ _config = /** @type {?} */(( <IMonthCalendarConfigInternal>{\n ...this.DEFAULT_CONFIG,\n ...this.utilsService.clearUndefined(config)\n }));\n\n this.utilsService.convertPropsToMoment(_config, _config.format, ['min', 'max']);\n\n moment.locale(_config.locale);\n\n return _config;\n }\n/**\n * @param {?} config\n * @param {?} year\n * @param {?=} selected\n * @return {?}\n */\ngenerateYear(config: IMonthCalendarConfig, year: Moment, selected: Moment[] = null): IMonth[][] {\n const /** @type {?} */ index = year.clone().startOf('year');\n const /** @type {?} */ inRow = config.monthInRow && 12 % config.monthInRow === 0 ? config.monthInRow : 4;\n return this.utilsService.createArray(12 / inRow).map(() => {\n return this.utilsService.createArray(inRow).map(() => {\n const /** @type {?} */ date = index.clone();\n const /** @type {?} */ month = {\n date,\n selected: !!selected.find(s => index.isSame(s, 'month')),\n currentMonth: index.isSame(moment(), 'month'),\n disabled: this.isMonthDisabled(date, config),\n text: this.getMonthBtnText(config, date)\n };\n\n index.add(1, 'month');\n\n return month;\n });\n });\n }\n/**\n * @param {?} date\n * @param {?} config\n * @return {?}\n */\nisMonthDisabled(date: Moment, config: IMonthCalendarConfig) {\n if (config.min && date.isBefore(config.min, 'month')) {\n return true;\n }\n\n return !!(config.max && date.isAfter(config.max, 'month'));\n }\n/**\n * @param {?} min\n * @param {?} currentMonthView\n * @return {?}\n */\nshouldShowLeft(min: Moment, currentMonthView: Moment): boolean {\n return min ? min.isBefore(currentMonthView, 'year') : true;\n }\n/**\n * @param {?} max\n * @param {?} currentMonthView\n * @return {?}\n */\nshouldShowRight(max: Moment, currentMonthView: Moment): boolean {\n return max ? max.isAfter(currentMonthView, 'year') : true;\n }\n/**\n * @param {?} config\n * @param {?} year\n * @return {?}\n */\ngetHeaderLabel(config: IMonthCalendarConfig, year: Moment): string {\n if (config.yearFormatter) {\n return config.yearFormatter(year);\n }\n\n return year.format(config.yearFormat);\n }\n/**\n * @param {?} config\n * @param {?} month\n * @return {?}\n */\ngetMonthBtnText(config: IMonthCalendarConfig, month: Moment): string {\n if (config.monthBtnFormatter) {\n return config.monthBtnFormatter(month);\n }\n\n return month.format(config.monthBtnFormat);\n }\n/**\n * @param {?} config\n * @param {?} month\n * @return {?}\n */\ngetMonthBtnCssClass(config: IMonthCalendarConfig, month: Moment): string {\n if (config.monthBtnCssClassCallback) {\n return config.monthBtnCssClassCallback(month);\n }\n\n return '';\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n];\n}\n\nfunction MonthCalendarService_tsickle_Closure_declarations() {\n/** @type {?} */\nMonthCalendarService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nMonthCalendarService.ctorParameters;\n/** @type {?} */\nMonthCalendarService.prototype.DEFAULT_CONFIG;\n/** @type {?} */\nMonthCalendarService.prototype.utilsService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {ECalendarValue} from '../common/types/calendar-value-enum';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {ECalendarMode} from '../common/types/calendar-mode-enum';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChange,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {DayCalendarService} from './day-calendar.service';\nimport * as momentNs from 'moment';\nimport {Moment, unitOfTime} from 'moment';\nimport {IDayCalendarConfig, IDayCalendarConfigInternal} from './day-calendar-config.model';\nimport {IDay} from './day.model';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IMonthCalendarConfig} from '../month-calendar/month-calendar-config';\nimport {IMonth} from '../month-calendar/month.model';\nimport {DateValidator} from '../common/types/validator.type';\nimport {INavEvent} from '../common/models/navigation-event.model';\nconst /** @type {?} */ moment = momentNs;\nexport class DayCalendarComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {\n\n config: IDayCalendarConfig;\n displayDate: SingleCalendarValue;\n minDate: Moment;\n maxDate: Moment;\n theme: string;\n\n onSelect: EventEmitter<IDay> = new EventEmitter();\n onMonthSelect: EventEmitter<IMonth> = new EventEmitter();\n onNavHeaderBtnClick: EventEmitter<ECalendarMode> = new EventEmitter();\n onGoToCurrent: EventEmitter<void> = new EventEmitter();\n onLeftNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightNav: EventEmitter<INavEvent> = new EventEmitter();\n\n CalendarMode = ECalendarMode;\n isInited: boolean = false;\n componentConfig: IDayCalendarConfigInternal;\n _selected: Moment[];\n weeks: IDay[][];\n weekdays: Moment[];\n _currentDateView: Moment;\n inputValue: CalendarValue;\n inputValueType: ECalendarValue;\n validateFn: DateValidator;\n currentCalendarMode: ECalendarMode = ECalendarMode.Day;\n monthCalendarConfig: IMonthCalendarConfig;\n _shouldShowCurrent: boolean = true;\n navLabel: string;\n showLeftNav: boolean;\n showRightNav: boolean;\n\n api = {\n moveCalendarsBy: this.moveCalendarsBy.bind(this),\n moveCalendarTo: this.moveCalendarTo.bind(this),\n toggleCalendarMode: this.toggleCalendarMode.bind(this)\n };\n/**\n * @param {?} selected\n * @return {?}\n */\nset selected(selected: Moment[]) {\n this._selected = selected;\n this.onChangeCallback(this.processOnChangeCallback(selected));\n }\n/**\n * @return {?}\n */\nget selected(): Moment[] {\n return this._selected;\n }\n/**\n * @param {?} current\n * @return {?}\n */\nset currentDateView(current: Moment) {\n this._currentDateView = current.clone();\n this.weeks = this.dayCalendarService\n .generateMonthArray(this.componentConfig, this._currentDateView, this.selected);\n this.navLabel = this.dayCalendarService.getHeaderLabel(this.componentConfig, this._currentDateView);\n this.showLeftNav = this.dayCalendarService.shouldShowLeft(this.componentConfig.min, this.currentDateView);\n this.showRightNav = this.dayCalendarService.shouldShowRight(this.componentConfig.max, this.currentDateView);\n }\n/**\n * @return {?}\n */\nget currentDateView(): Moment {\n return this._currentDateView;\n }\n/**\n * @param {?} dayCalendarService\n * @param {?} utilsService\n * @param {?} cd\n */\nconstructor(public readonly dayCalendarService: DayCalendarService,\npublic readonly utilsService: UtilsService,\npublic readonly cd: ChangeDetectorRef) {\n }\n/**\n * @return {?}\n */\nngOnInit() {\n this.isInited = true;\n this.init();\n this.initValidators();\n }\n/**\n * @return {?}\n */\ninit() {\n this.componentConfig = this.dayCalendarService.getConfig(this.config);\n this.selected = this.selected || [];\n this.currentDateView = this.displayDate\n ? this.utilsService.convertToMoment(this.displayDate, this.componentConfig.format).clone()\n : this.utilsService\n .getDefaultDisplayDate(\n this.currentDateView,\n this.selected,\n this.componentConfig.allowMultiSelect,\n this.componentConfig.min\n );\n this.weekdays = this.dayCalendarService\n .generateWeekdays(this.componentConfig.firstDayOfWeek);\n this.inputValueType = this.utilsService.getInputType(this.inputValue, this.componentConfig.allowMultiSelect);\n this.monthCalendarConfig = this.dayCalendarService.getMonthCalendarConfig(this.componentConfig);\n this._shouldShowCurrent = this.shouldShowCurrent();\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n if (this.isInited) {\n const {minDate, maxDate, config} = changes;\n\n this.handleConfigChange(config);\n this.init();\n\n if (minDate || maxDate) {\n this.initValidators();\n }\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nwriteValue(value: CalendarValue): void {\n this.inputValue = value;\n\n if (value) {\n this.selected = this.utilsService\n .convertToMomentArray(value, this.componentConfig.format, this.componentConfig.allowMultiSelect);\n this.inputValueType = this.utilsService\n .getInputType(this.inputValue, this.componentConfig.allowMultiSelect);\n } else {\n this.selected = [];\n }\n\n this.weeks = this.dayCalendarService\n .generateMonthArray(this.componentConfig, this.currentDateView, this.selected);\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n/**\n * @param {?} _\n * @return {?}\n */\nonChangeCallback(_: any) {\n };\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnTouched(fn: any): void {\n }\n/**\n * @param {?} formControl\n * @return {?}\n */\nvalidate(formControl: FormControl): ValidationErrors | any {\n if (this.minDate || this.maxDate) {\n return this.validateFn(formControl.value);\n } else {\n return () => null;\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nprocessOnChangeCallback(value: Moment[]): CalendarValue {\n return this.utilsService.convertFromMomentArray(\n this.componentConfig.format,\n value,\n this.componentConfig.returnedValueType || this.inputValueType\n );\n }\n/**\n * @return {?}\n */\ninitValidators() {\n this.validateFn = this.utilsService.createValidator(\n {minDate: this.minDate, maxDate: this.maxDate},\n this.componentConfig.format,\n 'day'\n );\n\n this.onChangeCallback(this.processOnChangeCallback(this.selected));\n }\n/**\n * @param {?} day\n * @return {?}\n */\ndayClicked(day: IDay) {\n if (day.selected && !this.componentConfig.unSelectOnClick) {\n return;\n }\n\n this.selected = this.utilsService\n .updateSelected(this.componentConfig.allowMultiSelect, this.selected, day);\n this.weeks = this.dayCalendarService\n .generateMonthArray(this.componentConfig, this.currentDateView, this.selected);\n this.onSelect.emit(day);\n }\n/**\n * @param {?} day\n * @return {?}\n */\ngetDayBtnText(day: IDay): string {\n return this.dayCalendarService.getDayBtnText(this.componentConfig, day.date);\n }\n/**\n * @param {?} day\n * @return {?}\n */\ngetDayBtnCssClass(day: IDay): {[klass: string]: boolean} {\n const /** @type {?} */ cssClasses: {[klass: string]: boolean} = {\n 'dp-selected': day.selected,\n 'dp-current-month': day.currentMonth,\n 'dp-prev-month': day.prevMonth,\n 'dp-next-month': day.nextMonth,\n 'dp-current-day': day.currentDay\n };\n const /** @type {?} */ customCssClass: string = this.dayCalendarService.getDayBtnCssClass(this.componentConfig, day.date);\n if (customCssClass) {\n cssClasses[customCssClass] = true;\n }\n\n return cssClasses;\n }\n/**\n * @return {?}\n */\nonLeftNavClick() {\n const /** @type {?} */ from = this.currentDateView.clone();\n this.moveCalendarsBy(this.currentDateView, -1, 'month');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.onLeftNav.emit({from, to});\n }\n/**\n * @return {?}\n */\nonRightNavClick() {\n const /** @type {?} */ from = this.currentDateView.clone();\n this.moveCalendarsBy(this.currentDateView, 1, 'month');\n const /** @type {?} */ to = this.currentDateView.clone();\n this.onRightNav.emit({from, to});\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonMonthCalendarLeftClick(change: INavEvent) {\n this.onLeftNav.emit(change);\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonMonthCalendarRightClick(change: INavEvent) {\n this.onRightNav.emit(change);\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonMonthCalendarSecondaryLeftClick(change: INavEvent) {\n this.onRightNav.emit(change);\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonMonthCalendarSecondaryRightClick(change: INavEvent) {\n this.onLeftNav.emit(change);\n }\n/**\n * @param {?} weekday\n * @return {?}\n */\ngetWeekdayName(weekday: Moment): string {\n if (this.componentConfig.weekDayFormatter) {\n return this.componentConfig.weekDayFormatter(weekday.day());\n }\n\n return weekday.format(this.componentConfig.weekDayFormat);\n }\n/**\n * @param {?} mode\n * @return {?}\n */\ntoggleCalendarMode(mode: ECalendarMode) {\n if (this.currentCalendarMode !== mode) {\n this.currentCalendarMode = mode;\n this.onNavHeaderBtnClick.emit(mode);\n }\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} month\n * @return {?}\n */\nmonthSelected(month: IMonth) {\n this.currentDateView = month.date.clone();\n this.currentCalendarMode = ECalendarMode.Day;\n this.onMonthSelect.emit(month);\n }\n/**\n * @param {?} current\n * @param {?} amount\n * @param {?=} granularity\n * @return {?}\n */\nmoveCalendarsBy(current: Moment, amount: number, granularity: unitOfTime.Base = 'month') {\n this.currentDateView = current.clone().add(amount, granularity);\n this.cd.markForCheck();\n }\n/**\n * @param {?} to\n * @return {?}\n */\nmoveCalendarTo(to: SingleCalendarValue) {\n if (to) {\n this.currentDateView = this.utilsService.convertToMoment(to, this.componentConfig.format);\n }\n\n this.cd.markForCheck();\n }\n/**\n * @return {?}\n */\nshouldShowCurrent(): boolean {\n return this.utilsService.shouldShowCurrent(\n this.componentConfig.showGoToCurrent,\n 'day',\n this.componentConfig.min,\n this.componentConfig.max\n );\n }\n/**\n * @return {?}\n */\ngoToCurrent() {\n this.currentDateView = moment();\n this.onGoToCurrent.emit();\n }\n/**\n * @param {?} config\n * @return {?}\n */\nhandleConfigChange(config: SimpleChange) {\n if (config) {\n const /** @type {?} */ prevConf: IDayCalendarConfigInternal = this.dayCalendarService.getConfig(config.previousValue);\n const /** @type {?} */ currentConf: IDayCalendarConfigInternal = this.dayCalendarService.getConfig(config.currentValue);\n\n if (this.utilsService.shouldResetCurrentView(prevConf, currentConf)) {\n this._currentDateView = null;\n }\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-day-calendar',\n template: `\n <div class=\"dp-day-calendar-container\" *ngIf=\"currentCalendarMode === CalendarMode.Day\">\n <dp-calendar-nav\n [label]=\"navLabel\"\n [showLeftNav]=\"showLeftNav\"\n [showRightNav]=\"showRightNav\"\n [isLabelClickable]=\"componentConfig.enableMonthSelector\"\n [showGoToCurrent]=\"_shouldShowCurrent\"\n [theme]=\"theme\"\n (onLeftNav)=\"onLeftNavClick()\"\n (onRightNav)=\"onRightNavClick()\"\n (onLabelClick)=\"toggleCalendarMode(CalendarMode.Month)\"\n (onGoToCurrent)=\"goToCurrent()\">\n </dp-calendar-nav>\n\n <div class=\"dp-calendar-wrapper\"\n [ngClass]=\"{'dp-hide-near-month': !componentConfig.showNearMonthDays}\">\n <div class=\"dp-weekdays\">\n <span class=\"dp-calendar-weekday\"\n *ngFor=\"let weekday of weekdays\"\n [innerText]=\"getWeekdayName(weekday)\">\n </span>\n </div>\n <div class=\"dp-calendar-week\" *ngFor=\"let week of weeks\">\n <span class=\"dp-week-number\"\n *ngIf=\"componentConfig.showWeekNumbers\"\n [innerText]=\"week[0].date.isoWeek()\">\n </span>\n <button type=\"button\"\n class=\"dp-calendar-day\"\n *ngFor=\"let day of week\"\n [attr.data-date]=\"day.date.format(componentConfig.format)\"\n (click)=\"dayClicked(day)\"\n [disabled]=\"day.disabled\"\n [ngClass]=\"getDayBtnCssClass(day)\"\n [innerText]=\"getDayBtnText(day)\">\n </button>\n </div>\n </div>\n </div>\n\n <dp-month-calendar\n *ngIf=\"currentCalendarMode === CalendarMode.Month\"\n [config]=\"monthCalendarConfig\"\n [displayDate]=\"_currentDateView\"\n [theme]=\"theme\"\n (onSelect)=\"monthSelected($event)\"\n (onNavHeaderBtnClick)=\"toggleCalendarMode(CalendarMode.Day)\"\n (onLeftNav)=\"onMonthCalendarLeftClick($event)\"\n (onRightNav)=\"onMonthCalendarRightClick($event)\"\n (onLeftSecondaryNav)=\"onMonthCalendarSecondaryLeftClick($event)\"\n (onRightSecondaryNav)=\"onMonthCalendarSecondaryRightClick($event)\">\n </dp-month-calendar>\n `,\n styles: [`\n dp-day-calendar {\n display: inline-block;\n }\n dp-day-calendar .dp-day-calendar-container {\n background: #FFFFFF;\n }\n dp-day-calendar .dp-calendar-wrapper {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #000000;\n }\n dp-day-calendar .dp-calendar-wrapper .dp-calendar-weekday:first-child {\n border-left: none;\n }\n dp-day-calendar .dp-weekdays {\n font-size: 15px;\n margin-bottom: 5px;\n }\n dp-day-calendar .dp-calendar-weekday {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n width: 30px;\n text-align: center;\n border-left: 1px solid #000000;\n border-bottom: 1px solid #000000;\n }\n dp-day-calendar .dp-calendar-day {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 30px;\n height: 30px;\n cursor: pointer;\n }\n dp-day-calendar .dp-selected {\n background: #106CC8;\n color: #FFFFFF;\n }\n dp-day-calendar .dp-prev-month,\n dp-day-calendar .dp-next-month {\n opacity: 0.5;\n }\n dp-day-calendar .dp-hide-near-month .dp-prev-month,\n dp-day-calendar .dp-hide-near-month .dp-next-month {\n visibility: hidden;\n }\n dp-day-calendar .dp-week-number {\n position: absolute;\n font-size: 9px;\n }\n dp-day-calendar.dp-material .dp-calendar-weekday {\n height: 25px;\n width: 30px;\n line-height: 25px;\n color: #7a7a7a;\n border: none;\n }\n dp-day-calendar.dp-material .dp-calendar-wrapper {\n border: 1px solid #E0E0E0;\n }\n dp-day-calendar.dp-material .dp-calendar-month,\n dp-day-calendar.dp-material .dp-calendar-day {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: #FFFFFF;\n border-radius: 50%;\n border: none;\n outline: none;\n }\n dp-day-calendar.dp-material .dp-calendar-month:hover,\n dp-day-calendar.dp-material .dp-calendar-day:hover {\n background: #E0E0E0;\n }\n dp-day-calendar.dp-material .dp-selected {\n background: #106CC8;\n color: #FFFFFF;\n }\n dp-day-calendar.dp-material .dp-selected:hover {\n background: #106CC8;\n }\n dp-day-calendar.dp-material .dp-current-day {\n border: 1px solid #106CC8;\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n DayCalendarService,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DayCalendarComponent),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => DayCalendarComponent),\n multi: true\n }\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: DayCalendarService, },\n{type: UtilsService, },\n{type: ChangeDetectorRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'onSelect': [{ type: Output },],\n'onMonthSelect': [{ type: Output },],\n'onNavHeaderBtnClick': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n'onLeftNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n};\n}\n\nfunction DayCalendarComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nDayCalendarComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDayCalendarComponent.ctorParameters;\n/** @type {?} */\nDayCalendarComponent.propDecorators;\n/** @type {?} */\nDayCalendarComponent.prototype.config;\n/** @type {?} */\nDayCalendarComponent.prototype.displayDate;\n/** @type {?} */\nDayCalendarComponent.prototype.minDate;\n/** @type {?} */\nDayCalendarComponent.prototype.maxDate;\n/** @type {?} */\nDayCalendarComponent.prototype.theme;\n/** @type {?} */\nDayCalendarComponent.prototype.onSelect;\n/** @type {?} */\nDayCalendarComponent.prototype.onMonthSelect;\n/** @type {?} */\nDayCalendarComponent.prototype.onNavHeaderBtnClick;\n/** @type {?} */\nDayCalendarComponent.prototype.onGoToCurrent;\n/** @type {?} */\nDayCalendarComponent.prototype.onLeftNav;\n/** @type {?} */\nDayCalendarComponent.prototype.onRightNav;\n/** @type {?} */\nDayCalendarComponent.prototype.CalendarMode;\n/** @type {?} */\nDayCalendarComponent.prototype.isInited;\n/** @type {?} */\nDayCalendarComponent.prototype.componentConfig;\n/** @type {?} */\nDayCalendarComponent.prototype._selected;\n/** @type {?} */\nDayCalendarComponent.prototype.weeks;\n/** @type {?} */\nDayCalendarComponent.prototype.weekdays;\n/** @type {?} */\nDayCalendarComponent.prototype._currentDateView;\n/** @type {?} */\nDayCalendarComponent.prototype.inputValue;\n/** @type {?} */\nDayCalendarComponent.prototype.inputValueType;\n/** @type {?} */\nDayCalendarComponent.prototype.validateFn;\n/** @type {?} */\nDayCalendarComponent.prototype.currentCalendarMode;\n/** @type {?} */\nDayCalendarComponent.prototype.monthCalendarConfig;\n/** @type {?} */\nDayCalendarComponent.prototype._shouldShowCurrent;\n/** @type {?} */\nDayCalendarComponent.prototype.navLabel;\n/** @type {?} */\nDayCalendarComponent.prototype.showLeftNav;\n/** @type {?} */\nDayCalendarComponent.prototype.showRightNav;\n/** @type {?} */\nDayCalendarComponent.prototype.api;\n/** @type {?} */\nDayCalendarComponent.prototype.dayCalendarService;\n/** @type {?} */\nDayCalendarComponent.prototype.utilsService;\n/** @type {?} */\nDayCalendarComponent.prototype.cd;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {CalendarMode} from '../common/types/calendar-mode';\nimport {IDatePickerDirectiveConfig} from './date-picker-directive-config.model';\nimport {DatePickerDirectiveService} from './date-picker-directive.service';\nimport {IDpDayPickerApi} from './date-picker.api';\nimport {DatePickerComponent} from './date-picker.component';\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n OnInit,\n Optional,\n Output,\n ViewContainerRef\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {INavEvent} from '../common/models/navigation-event.model';\nimport {UtilsService} from '../common/services/utils/utils.service';\nexport class DatePickerDirective implements OnInit {\nprivate _config: IDatePickerDirectiveConfig;\nprivate _attachTo: ElementRef | string;\nprivate _theme: string;\nprivate _mode: CalendarMode = 'day';\nprivate _minDate: SingleCalendarValue;\nprivate _maxDate: SingleCalendarValue;\nprivate _minTime: SingleCalendarValue;\nprivate _maxTime: SingleCalendarValue;\nprivate _displayDate: SingleCalendarValue;\n/**\n * @return {?}\n */\nget config(): IDatePickerDirectiveConfig {\n return this._config;\n }\n/**\n * @param {?} config\n * @return {?}\n */\nset config(config: IDatePickerDirectiveConfig) {\n this._config = this.service.getConfig(config, this.viewContainerRef.element, this.attachTo);\n this.updateDatepickerConfig();\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget attachTo(): ElementRef | string {\n return this._attachTo;\n }\n/**\n * @param {?} attachTo\n * @return {?}\n */\nset attachTo(attachTo: ElementRef | string) {\n this._attachTo = attachTo;\n this._config = this.service.getConfig(this.config, this.viewContainerRef.element, this.attachTo);\n this.updateDatepickerConfig();\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget theme(): string {\n return this._theme;\n }\n/**\n * @param {?} theme\n * @return {?}\n */\nset theme(theme: string) {\n this._theme = theme;\n if (this.datePicker) {\n this.datePicker.theme = theme;\n }\n\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget mode(): CalendarMode {\n return this._mode;\n }\n/**\n * @param {?} mode\n * @return {?}\n */\nset mode(mode: CalendarMode) {\n this._mode = mode;\n if (this.datePicker) {\n this.datePicker.mode = mode;\n }\n\n this.markForCheck();\n }\n/**\n * @param {?} minDate\n * @return {?}\n */\nset minDate(minDate: SingleCalendarValue) {\n this._minDate = minDate;\n if (this.datePicker) {\n this.datePicker.minDate = minDate;\n this.datePicker.ngOnInit();\n }\n\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget minDate(): SingleCalendarValue {\n return this._minDate;\n }\n/**\n * @param {?} maxDate\n * @return {?}\n */\nset maxDate(maxDate: SingleCalendarValue) {\n this._maxDate = maxDate;\n if (this.datePicker) {\n this.datePicker.maxDate = maxDate;\n this.datePicker.ngOnInit();\n }\n\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget maxDate(): SingleCalendarValue {\n return this._maxDate;\n }\n/**\n * @param {?} minTime\n * @return {?}\n */\nset minTime(minTime: SingleCalendarValue) {\n this._minTime = minTime;\n if (this.datePicker) {\n this.datePicker.minTime = minTime;\n this.datePicker.ngOnInit();\n }\n\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget minTime(): SingleCalendarValue {\n return this._minTime;\n }\n/**\n * @param {?} maxTime\n * @return {?}\n */\nset maxTime(maxTime: SingleCalendarValue) {\n this._maxTime = maxTime;\n if (this.datePicker) {\n this.datePicker.maxTime = maxTime;\n this.datePicker.ngOnInit();\n }\n\n this.markForCheck();\n }\n/**\n * @return {?}\n */\nget maxTime(): SingleCalendarValue {\n return this._maxTime;\n }\n/**\n * @return {?}\n */\nget displayDate(): SingleCalendarValue {\n return this._displayDate;\n }\n/**\n * @param {?} displayDate\n * @return {?}\n */\nset displayDate(displayDate: SingleCalendarValue) {\n this._displayDate = displayDate;\n this.updateDatepickerConfig();\n\n this.markForCheck();\n }\n\n open = new EventEmitter<void>();\n close = new EventEmitter<void>();\n onChange = new EventEmitter<CalendarValue>();\n onGoToCurrent: EventEmitter<void> = new EventEmitter();\n onLeftNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightNav: EventEmitter<INavEvent> = new EventEmitter();\npublic datePicker: DatePickerComponent;\npublic api: IDpDayPickerApi;\n/**\n * @param {?} viewContainerRef\n * @param {?} elemRef\n * @param {?} componentFactoryResolver\n * @param {?} service\n * @param {?} formControl\n * @param {?} utilsService\n */\nconstructor(public viewContainerRef: ViewContainerRef,\npublic elemRef: ElementRef,\npublic componentFactoryResolver: ComponentFactoryResolver,\npublic service: DatePickerDirectiveService,\npublic formControl: NgControl,\npublic utilsService: UtilsService) {\n }\n/**\n * @return {?}\n */\nngOnInit(): void {\n this.datePicker = this.createDatePicker();\n this.api = this.datePicker.api;\n this.updateDatepickerConfig();\n this.attachModelToDatePicker();\n this.datePicker.theme = this.theme;\n }\n/**\n * @return {?}\n */\ncreateDatePicker(): DatePickerComponent {\n const /** @type {?} */ factory = this.componentFactoryResolver.resolveComponentFactory(DatePickerComponent);\n return this.viewContainerRef.createComponent(factory).instance;\n }\n/**\n * @return {?}\n */\nattachModelToDatePicker() {\n if (!this.formControl) {\n return;\n }\n\n this.datePicker.onViewDateChange(this.formControl.value);\n\n this.formControl.valueChanges.subscribe((value) => {\n if (value !== this.datePicker.inputElementValue) {\n const /** @type {?} */ strVal = this.utilsService.convertToString(value, this.datePicker.componentConfig.format);\n this.datePicker.onViewDateChange(strVal);\n }\n });\n\n let /** @type {?} */ setup = true;\n\n this.datePicker.registerOnChange((value, changedByInput) => {\n if (value) {\n const /** @type {?} */ isMultiselectEmpty = setup && Array.isArray(value) && !value.length;\n\n if (!isMultiselectEmpty && !changedByInput) {\n this.formControl.control.setValue(this.datePicker.inputElementValue);\n }\n }\n\n const /** @type {?} */ errors = this.datePicker.validateFn(value);\n\n if (!setup) {\n this.formControl.control.markAsDirty({\n onlySelf: true\n });\n } else {\n setup = false;\n }\n\n if (errors) {\n if (errors.hasOwnProperty('format')) {\n const {given} = errors['format'];\n this.datePicker.inputElementValue = given;\n if (!changedByInput) {\n this.formControl.control.setValue(given);\n }\n }\n\n this.formControl.control.setErrors(errors);\n }\n });\n }\n/**\n * @return {?}\n */\nonClick() {\n this.datePicker.onClick();\n }\n/**\n * @return {?}\n */\nonFocus() {\n this.datePicker.inputFocused();\n }\n/**\n * @return {?}\n */\nprivate updateDatepickerConfig() {\n if (this.datePicker) {\n this.datePicker.minDate = this.minDate;\n this.datePicker.maxDate = this.maxDate;\n this.datePicker.minTime = this.minTime;\n this.datePicker.maxTime = this.maxTime;\n this.datePicker.mode = this.mode || 'day';\n this.datePicker.displayDate = this.displayDate;\n this.datePicker.config = this.config;\n this.datePicker.open = this.open;\n this.datePicker.close = this.close;\n this.datePicker.onChange = this.onChange;\n this.datePicker.onGoToCurrent = this.onGoToCurrent;\n this.datePicker.onLeftNav = this.onLeftNav;\n this.datePicker.onRightNav = this.onRightNav;\n\n this.datePicker.init();\n\n if (this.datePicker.componentConfig.disableKeypress) {\n this.elemRef.nativeElement.setAttribute('readonly', true);\n } else {\n this.elemRef.nativeElement.removeAttribute('readonly');\n }\n }\n }\n/**\n * @return {?}\n */\nmarkForCheck() {\n if (this.datePicker) {\n this.datePicker.cd.markForCheck();\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n exportAs: 'dpDayPicker',\n providers: [DatePickerDirectiveService],\n selector: '[dpDayPicker]'\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ViewContainerRef, },\n{type: ElementRef, },\n{type: ComponentFactoryResolver, },\n{type: DatePickerDirectiveService, },\n{type: NgControl, decorators: [{ type: Optional }, ]},\n{type: UtilsService, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input, args: ['dpDayPicker', ] },],\n'attachTo': [{ type: Input },],\n'theme': [{ type: Input },],\n'mode': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'minTime': [{ type: Input },],\n'maxTime': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'open': [{ type: Output },],\n'close': [{ type: Output },],\n'onChange': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n'onLeftNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n'onClick': [{ type: HostListener, args: ['click', ] },],\n'onFocus': [{ type: HostListener, args: ['focus', ] },],\n};\n}\n\nfunction DatePickerDirective_tsickle_Closure_declarations() {\n/** @type {?} */\nDatePickerDirective.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDatePickerDirective.ctorParameters;\n/** @type {?} */\nDatePickerDirective.propDecorators;\n/** @type {?} */\nDatePickerDirective.prototype._config;\n/** @type {?} */\nDatePickerDirective.prototype._attachTo;\n/** @type {?} */\nDatePickerDirective.prototype._theme;\n/** @type {?} */\nDatePickerDirective.prototype._mode;\n/** @type {?} */\nDatePickerDirective.prototype._minDate;\n/** @type {?} */\nDatePickerDirective.prototype._maxDate;\n/** @type {?} */\nDatePickerDirective.prototype._minTime;\n/** @type {?} */\nDatePickerDirective.prototype._maxTime;\n/** @type {?} */\nDatePickerDirective.prototype._displayDate;\n/** @type {?} */\nDatePickerDirective.prototype.open;\n/** @type {?} */\nDatePickerDirective.prototype.close;\n/** @type {?} */\nDatePickerDirective.prototype.onChange;\n/** @type {?} */\nDatePickerDirective.prototype.onGoToCurrent;\n/** @type {?} */\nDatePickerDirective.prototype.onLeftNav;\n/** @type {?} */\nDatePickerDirective.prototype.onRightNav;\n/** @type {?} */\nDatePickerDirective.prototype.datePicker;\n/** @type {?} */\nDatePickerDirective.prototype.api;\n/** @type {?} */\nDatePickerDirective.prototype.viewContainerRef;\n/** @type {?} */\nDatePickerDirective.prototype.elemRef;\n/** @type {?} */\nDatePickerDirective.prototype.componentFactoryResolver;\n/** @type {?} */\nDatePickerDirective.prototype.service;\n/** @type {?} */\nDatePickerDirective.prototype.formControl;\n/** @type {?} */\nDatePickerDirective.prototype.utilsService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {UtilsService} from '../common/services/utils/utils.service';\nimport {IDatePickerDirectiveConfig} from './date-picker-directive-config.model';\nimport {ElementRef, Injectable} from '@angular/core';\nexport class DatePickerDirectiveService {\n/**\n * @param {?} utilsService\n */\nconstructor(public utilsService: UtilsService) {\n }\n/**\n * @param {?} attachTo\n * @param {?} baseElement\n * @return {?}\n */\nconvertToHTMLElement(attachTo: ElementRef | string, baseElement: HTMLElement): HTMLElement {\n if (typeof attachTo === 'string') {\n return this.utilsService.closestParent(baseElement, attachTo);\n } else if (attachTo) {\n return attachTo.nativeElement;\n }\n\n return undefined;\n }\n/**\n * @param {?=} config\n * @param {?=} baseElement\n * @param {?=} attachTo\n * @return {?}\n */\ngetConfig(config: IDatePickerDirectiveConfig = {},\n baseElement?: ElementRef,\n attachTo?: ElementRef | string): IDatePickerDirectiveConfig {\n const /** @type {?} */ _config: IDatePickerDirectiveConfig = {...config};\n _config.hideInputContainer = true;\n\n let /** @type {?} */ native;\n\n if (config.inputElementContainer) {\n native = this.utilsService.getNativeElement(config.inputElementContainer);\n } else {\n native = baseElement ? baseElement.nativeElement : null;\n }\n\n if (native) {\n _config.inputElementContainer = attachTo\n ? this.convertToHTMLElement(attachTo, native)\n : native;\n }\n\n return _config;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n];\n}\n\nfunction DatePickerDirectiveService_tsickle_Closure_declarations() {\n/** @type {?} */\nDatePickerDirectiveService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDatePickerDirectiveService.ctorParameters;\n/** @type {?} */\nDatePickerDirectiveService.prototype.utilsService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {IDate} from '../common/models/date.model';\nimport {DomHelper} from '../common/services/dom-appender/dom-appender.service';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {CalendarMode} from '../common/types/calendar-mode';\nimport {ECalendarMode} from '../common/types/calendar-mode-enum';\nimport {CalendarValue} from '../common/types/calendar-value';\nimport {ECalendarValue} from '../common/types/calendar-value-enum';\nimport {SingleCalendarValue} from '../common/types/single-calendar-value';\nimport {IDayCalendarConfig} from '../day-calendar/day-calendar-config.model';\nimport {DayCalendarComponent} from '../day-calendar/day-calendar.component';\nimport {DayCalendarService} from '../day-calendar/day-calendar.service';\nimport {IDayTimeCalendarConfig} from '../day-time-calendar/day-time-calendar-config.model';\nimport {DayTimeCalendarService} from '../day-time-calendar/day-time-calendar.service';\nimport {ITimeSelectConfig} from '../time-select/time-select-config.model';\nimport {TimeSelectComponent} from '../time-select/time-select.component';\nimport {TimeSelectService} from '../time-select/time-select.service';\nimport {IDatePickerConfig, IDatePickerConfigInternal} from './date-picker-config.model';\nimport {IDpDayPickerApi} from './date-picker.api';\nimport {DatePickerService} from './date-picker.service';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n Renderer,\n SimpleChanges,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator\n} from '@angular/forms';\nimport {Moment, unitOfTime} from 'moment';\nimport {DateValidator} from '../common/types/validator.type';\nimport {MonthCalendarComponent} from '../month-calendar/month-calendar.component';\nimport {DayTimeCalendarComponent} from '../day-time-calendar/day-time-calendar.component';\nimport {INavEvent} from '../common/models/navigation-event.model';\nexport class DatePickerComponent implements OnChanges,\n OnInit,\n AfterViewInit,\n ControlValueAccessor,\n Validator,\n OnDestroy {\n isInitialized: boolean = false;\n config: IDatePickerConfig;\n mode: CalendarMode = 'day';\n placeholder: string = '';\n disabled: boolean = false;\n displayDate: SingleCalendarValue;\n theme: string;\n minDate: SingleCalendarValue;\n maxDate: SingleCalendarValue;\n minTime: SingleCalendarValue;\n maxTime: SingleCalendarValue;\n\n open = new EventEmitter<void>();\n close = new EventEmitter<void>();\n onChange = new EventEmitter<CalendarValue>();\n onGoToCurrent: EventEmitter<void> = new EventEmitter();\n onLeftNav: EventEmitter<INavEvent> = new EventEmitter();\n onRightNav: EventEmitter<INavEvent> = new EventEmitter();\n\n calendarContainer: ElementRef;\n dayCalendarRef: DayCalendarComponent;\n monthCalendarRef: MonthCalendarComponent;\n dayTimeCalendarRef: DayTimeCalendarComponent;\n timeSelectRef: TimeSelectComponent;\n\n componentConfig: IDatePickerConfigInternal;\n dayCalendarConfig: IDayCalendarConfig;\n dayTimeCalendarConfig: IDayTimeCalendarConfig;\n timeSelectConfig: ITimeSelectConfig;\n _areCalendarsShown: boolean = false;\n hideStateHelper: boolean = false;\n _selected: Moment[] = [];\n inputValue: CalendarValue;\n inputValueType: ECalendarValue;\n isFocusedTrigger: boolean = false;\n _currentDateView: Moment;\n inputElementValue: string;\n calendarWrapper: HTMLElement;\n appendToElement: HTMLElement;\n inputElementContainer: HTMLElement;\n popupElem: HTMLElement;\n handleInnerElementClickUnlisteners: Function[] = [];\n globalListnersUnlisteners: Function[] = [];\n validateFn: DateValidator;\n api: IDpDayPickerApi = {\n open: this.showCalendars.bind(this),\n close: this.hideCalendar.bind(this),\n moveCalendarTo: this.moveCalendarTo.bind(this)\n };\n/**\n * @param {?} selected\n * @return {?}\n */\nset selected(selected: Moment[]) {\n this._selected = selected;\n this.inputElementValue = ( /** @type {?} */((<string[]>this.utilsService\n .convertFromMomentArray(this.componentConfig.format, selected, ECalendarValue.StringArr))))\n .join(' | ');\n const /** @type {?} */ val = this.processOnChangeCallback(selected);\n this.onChangeCallback(val, false);\n this.onChange.emit(val);\n }\n/**\n * @return {?}\n */\nget selected(): Moment[] {\n return this._selected;\n }\n/**\n * @return {?}\n */\nget areCalendarsShown(): boolean {\n return this._areCalendarsShown;\n }\n/**\n * @return {?}\n */\nget openOnFocus(): boolean {\n return this.componentConfig.openOnFocus;\n }\n/**\n * @return {?}\n */\nget openOnClick(): boolean {\n return this.componentConfig.openOnClick;\n }\n/**\n * @param {?} value\n * @return {?}\n */\nset areCalendarsShown(value: boolean) {\n if (value) {\n this.startGlobalListeners();\n this.domHelper.appendElementToPosition({\n container: this.appendToElement,\n element: this.calendarWrapper,\n anchor: this.inputElementContainer,\n dimElem: this.popupElem,\n drops: this.componentConfig.drops,\n opens: this.componentConfig.opens\n });\n } else {\n this.stopGlobalListeners();\n this.dayPickerService.pickerClosed();\n }\n\n this._areCalendarsShown = value;\n }\n/**\n * @return {?}\n */\nget currentDateView(): Moment {\n return this._currentDateView;\n }\n/**\n * @param {?} date\n * @return {?}\n */\nset currentDateView(date: Moment) {\n this._currentDateView = date;\n\n if (this.dayCalendarRef) {\n this.dayCalendarRef.moveCalendarTo(date);\n }\n\n if (this.monthCalendarRef) {\n this.monthCalendarRef.moveCalendarTo(date);\n }\n\n if (this.dayTimeCalendarRef) {\n this.dayTimeCalendarRef.moveCalendarTo(date);\n }\n }\n/**\n * @param {?} dayPickerService\n * @param {?} domHelper\n * @param {?} elemRef\n * @param {?} renderer\n * @param {?} utilsService\n * @param {?} cd\n */\nconstructor(private readonly dayPickerService: DatePickerService,\nprivate readonly domHelper: DomHelper,\nprivate readonly elemRef: ElementRef,\nprivate readonly renderer: Renderer,\nprivate readonly utilsService: UtilsService,\npublic readonly cd: ChangeDetectorRef) {\n }\n/**\n * @return {?}\n */\nonClick() {\n if (!this.openOnClick) {\n return;\n }\n\n if (!this.isFocusedTrigger && !this.disabled) {\n this.hideStateHelper = true;\n if (!this.areCalendarsShown) {\n this.showCalendars();\n }\n }\n }\n/**\n * @return {?}\n */\nonBodyClick() {\n if (this.componentConfig.hideOnOutsideClick) {\n if (!this.hideStateHelper && this.areCalendarsShown) {\n this.hideCalendar();\n }\n\n this.hideStateHelper = false;\n }\n }\n/**\n * @return {?}\n */\nonScroll() {\n if (this.areCalendarsShown) {\n this.domHelper.setElementPosition({\n container: this.appendToElement,\n element: this.calendarWrapper,\n anchor: this.inputElementContainer,\n dimElem: this.popupElem,\n drops: this.componentConfig.drops,\n opens: this.componentConfig.opens\n });\n }\n }\n/**\n * @param {?} value\n * @return {?}\n */\nwriteValue(value: CalendarValue): void {\n this.inputValue = value;\n\n if (value || value === '') {\n this.selected = this.utilsService\n .convertToMomentArray(value, this.componentConfig.format, this.componentConfig.allowMultiSelect);\n this.init();\n } else {\n this.selected = [];\n }\n\n this.cd.markForCheck();\n }\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n/**\n * @param {?} _\n * @param {?} changedByInput\n * @return {?}\n */\nonChangeCallback(_: any, changedByInput: boolean) {\n };\n/**\n * @param {?} fn\n * @return {?}\n */\nregisterOnTouched(fn: any): void {\n }\n/**\n * @param {?} formControl\n * @return {?}\n */\nvalidate(formControl: FormControl): ValidationErrors {\n return this.validateFn(formControl.value);\n }\n/**\n * @param {?} selected\n * @return {?}\n */\nprocessOnChangeCallback(selected: Moment[] | string): CalendarValue {\n if (typeof selected === 'string') {\n return selected;\n } else {\n return this.utilsService.convertFromMomentArray(\n this.componentConfig.format,\n selected,\n this.componentConfig.returnedValueType || this.inputValueType\n );\n }\n }\n/**\n * @return {?}\n */\ninitValidators() {\n this.validateFn = this.utilsService.createValidator(\n {\n minDate: this.minDate,\n maxDate: this.maxDate,\n minTime: this.minTime,\n maxTime: this.maxTime\n }, this.componentConfig.format, this.mode);\n this.onChangeCallback(this.processOnChangeCallback(this.selected), false);\n }\n/**\n * @return {?}\n */\nngOnInit() {\n this.isInitialized = true;\n this.init();\n this.initValidators();\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n if (this.isInitialized) {\n const {minDate, maxDate, minTime, maxTime} = changes;\n\n this.init();\n\n if (minDate || maxDate || minTime || maxTime) {\n this.initValidators();\n }\n }\n }\n/**\n * @return {?}\n */\nngAfterViewInit() {\n this.setElementPositionInDom();\n }\n/**\n * @param {?} isDisabled\n * @return {?}\n */\nsetDisabledState(isDisabled: boolean) {\n this.disabled = isDisabled;\n }\n/**\n * @return {?}\n */\nsetElementPositionInDom() {\n this.calendarWrapper = /** @type {?} */(( <HTMLElement> this.calendarContainer.nativeElement));\n this.setInputElementContainer();\n this.popupElem = this.elemRef.nativeElement.querySelector('.dp-popup');\n this.handleInnerElementClick(this.popupElem);\n\n const {appendTo} = this.componentConfig;\n if (appendTo) {\n if (typeof appendTo === 'string') {\n this.appendToElement = /** @type {?} */(( <HTMLElement>document.querySelector( /** @type {?} */((<string>appendTo)))));\n } else {\n this.appendToElement = /** @type {?} */(( <HTMLElement>appendTo));\n }\n } else {\n this.appendToElement = this.elemRef.nativeElement;\n }\n\n this.appendToElement.appendChild(this.calendarWrapper);\n }\n/**\n * @return {?}\n */\nsetInputElementContainer() {\n this.inputElementContainer = this.utilsService.getNativeElement(this.componentConfig.inputElementContainer)\n || this.elemRef.nativeElement.querySelector('.dp-input-container')\n || document.body;\n }\n/**\n * @param {?} element\n * @return {?}\n */\nhandleInnerElementClick(element: HTMLElement) {\n this.handleInnerElementClickUnlisteners.push(\n this.renderer.listen(element, 'click', () => {\n this.hideStateHelper = true;\n })\n );\n }\n/**\n * @return {?}\n */\ninit() {\n this.componentConfig = this.dayPickerService.getConfig(this.config, this.mode);\n this.currentDateView = this.displayDate\n ? this.utilsService.convertToMoment(this.displayDate, this.componentConfig.format).clone()\n : this.utilsService\n .getDefaultDisplayDate(\n this.currentDateView,\n this.selected,\n this.componentConfig.allowMultiSelect,\n this.componentConfig.min\n );\n this.inputValueType = this.utilsService.getInputType(this.inputValue, this.componentConfig.allowMultiSelect);\n this.dayCalendarConfig = this.dayPickerService.getDayConfigService(this.componentConfig);\n this.dayTimeCalendarConfig = this.dayPickerService.getDayTimeConfigService(this.componentConfig);\n this.timeSelectConfig = this.dayPickerService.getTimeConfigService(this.componentConfig);\n }\n/**\n * @return {?}\n */\ninputFocused() {\n if (!this.openOnFocus) {\n return;\n }\n\n this.isFocusedTrigger = true;\n setTimeout(() => {\n this.hideStateHelper = false;\n\n if (!this.areCalendarsShown) {\n this.showCalendars();\n }\n\n this.isFocusedTrigger = false;\n }, this.componentConfig.onOpenDelay);\n }\n/**\n * @return {?}\n */\nshowCalendars() {\n this.hideStateHelper = true;\n this.areCalendarsShown = true;\n\n if (this.timeSelectRef) {\n this.timeSelectRef.api.triggerChange();\n }\n\n this.open.emit();\n this.cd.markForCheck();\n }\n/**\n * @return {?}\n */\nhideCalendar() {\n this.areCalendarsShown = false;\n\n if (this.dayCalendarRef) {\n this.dayCalendarRef.api.toggleCalendarMode(ECalendarMode.Day);\n }\n\n this.close.emit();\n this.cd.markForCheck();\n }\n/**\n * @param {?} value\n * @return {?}\n */\nonViewDateChange(value: CalendarValue) {\n const /** @type {?} */ strVal = value ? this.utilsService.convertToString(value, this.componentConfig.format) : '';\n if (this.dayPickerService.isValidInputDateValue(strVal, this.componentConfig)) {\n this.selected = this.dayPickerService.convertInputValueToMomentArray(strVal, this.componentConfig);\n this.currentDateView = this.selected.length\n ? this.utilsService.getDefaultDisplayDate(\n null,\n this.selected,\n this.componentConfig.allowMultiSelect,\n this.componentConfig.min\n )\n : this.currentDateView;\n } else {\n this._selected = this.utilsService\n .getValidMomentArray(strVal, this.componentConfig.format);\n this.onChangeCallback(this.processOnChangeCallback(strVal), true);\n }\n }\n/**\n * @param {?} date\n * @param {?} granularity\n * @param {?=} ignoreClose\n * @return {?}\n */\ndateSelected(date: IDate, granularity: unitOfTime.Base, ignoreClose?: boolean) {\n this.selected = this.utilsService\n .updateSelected(this.componentConfig.allowMultiSelect, this.selected, date, granularity);\n if (!ignoreClose) {\n this.onDateClick();\n }\n }\n/**\n * @return {?}\n */\nonDateClick() {\n if (this.componentConfig.closeOnSelect) {\n setTimeout(this.hideCalendar.bind(this), this.componentConfig.closeOnSelectDelay);\n }\n }\n/**\n * @param {?} event\n * @return {?}\n */\nonKeyPress(event: KeyboardEvent) {\n switch (event.keyCode) {\n case (9):\n case (27):\n this.hideCalendar();\n break;\n }\n }\n/**\n * @param {?} date\n * @return {?}\n */\nmoveCalendarTo(date: SingleCalendarValue) {\n const /** @type {?} */ momentDate = this.utilsService.convertToMoment(date, this.componentConfig.format);\n this.currentDateView = momentDate;\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonLeftNavClick(change: INavEvent) {\n this.onLeftNav.emit(change);\n }\n/**\n * @param {?} change\n * @return {?}\n */\nonRightNavClick(change: INavEvent) {\n this.onRightNav.emit(change);\n }\n/**\n * @return {?}\n */\nstartGlobalListeners() {\n this.globalListnersUnlisteners.push(\n this.renderer.listen(document, 'keydown', (e: KeyboardEvent) => {\n this.onKeyPress(e);\n }),\n this.renderer.listen(document, 'scroll', () => {\n this.onScroll();\n }),\n this.renderer.listen(document, 'click', () => {\n this.onBodyClick();\n })\n );\n }\n/**\n * @return {?}\n */\nstopGlobalListeners() {\n this.globalListnersUnlisteners.forEach((ul) => ul());\n this.globalListnersUnlisteners = [];\n }\n/**\n * @return {?}\n */\nngOnDestroy() {\n this.handleInnerElementClickUnlisteners.forEach(ul => ul());\n\n if (this.appendToElement) {\n this.appendToElement.removeChild(this.calendarWrapper);\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'dp-date-picker',\n template: `\n <div [ngClass]=\"{'dp-open': areCalendarsShown}\">\n <div class=\"dp-input-container\"\n [hidden]=\"componentConfig.hideInputContainer\"\n [attr.data-hidden]=\"componentConfig.hideInputContainer\">\n <input type=\"text\"\n class=\"dp-picker-input\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"inputElementValue\"\n (ngModelChange)=\"onViewDateChange($event)\"\n (focus)=\"inputFocused()\"\n [readonly]=\"componentConfig.disableKeypress\"\n [disabled]=\"disabled\"/>\n </div>\n <div #container>\n <div class=\"dp-popup {{theme}}\"\n [ngSwitch]=\"mode\"\n [hidden]=\"!_areCalendarsShown\"\n [attr.data-hidden]=\"!_areCalendarsShown\">\n <dp-day-calendar #dayCalendar\n *ngSwitchCase=\"'day'\"\n [config]=\"dayCalendarConfig\"\n [ngModel]=\"_selected\"\n [displayDate]=\"displayDate\"\n [theme]=\"theme\"\n (onSelect)=\"dateSelected($event, 'day')\"\n (onGoToCurrent)=\"onGoToCurrent.emit()\"\n (onLeftNav)=\"onLeftNavClick($event)\"\n (onRightNav)=\"onRightNavClick($event)\">\n </dp-day-calendar>\n\n <dp-month-calendar #monthCalendar\n *ngSwitchCase=\"'month'\"\n [config]=\"dayCalendarConfig\"\n [ngModel]=\"_selected\"\n [displayDate]=\"displayDate\"\n [theme]=\"theme\"\n (onSelect)=\"dateSelected($event, 'month')\"\n (onGoToCurrent)=\"onGoToCurrent.emit()\"\n (onLeftNav)=\"onLeftNavClick($event)\"\n (onRightNav)=\"onRightNavClick($event)\">\n </dp-month-calendar>\n\n <dp-time-select #timeSelect\n *ngSwitchCase=\"'time'\"\n [config]=\"timeSelectConfig\"\n [ngModel]=\"_selected && _selected[0]\"\n (onChange)=\"dateSelected($event, 'second', true)\"\n [theme]=\"theme\">\n </dp-time-select>\n\n <dp-day-time-calendar #daytimeCalendar\n *ngSwitchCase=\"'daytime'\"\n [config]=\"dayTimeCalendarConfig\"\n [displayDate]=\"displayDate\"\n [ngModel]=\"_selected && _selected[0]\"\n [theme]=\"theme\"\n (onChange)=\"dateSelected($event, 'second', true)\"\n (onGoToCurrent)=\"onGoToCurrent.emit()\"\n (onLeftNav)=\"onLeftNavClick($event)\"\n (onRightNav)=\"onRightNavClick($event)\">\n </dp-day-time-calendar>\n </div>\n </div>\n </div>\n `,\n styles: [`\n dp-date-picker {\n display: inline-block;\n }\n dp-date-picker.dp-material .dp-picker-input {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 30px;\n width: 213px;\n font-size: 13px;\n outline: none;\n }\n dp-date-picker .dp-input-container {\n position: relative;\n }\n dp-date-picker .dp-selected {\n background: #106CC8;\n color: #FFFFFF;\n }\n .dp-popup {\n position: relative;\n background: #FFFFFF;\n -webkit-box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);\n border-left: 1px solid rgba(0, 0, 0, 0.1);\n border-right: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n z-index: 9999;\n white-space: nowrap;\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n DatePickerService,\n DayTimeCalendarService,\n DayCalendarService,\n TimeSelectService,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DatePickerComponent),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => DatePickerComponent),\n multi: true\n }\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: DatePickerService, },\n{type: DomHelper, },\n{type: ElementRef, },\n{type: Renderer, },\n{type: UtilsService, },\n{type: ChangeDetectorRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'config': [{ type: Input },],\n'mode': [{ type: Input },],\n'placeholder': [{ type: Input },],\n'disabled': [{ type: Input },],\n'displayDate': [{ type: Input },],\n'theme': [{ type: HostBinding, args: ['class', ] },{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'minTime': [{ type: Input },],\n'maxTime': [{ type: Input },],\n'open': [{ type: Output },],\n'close': [{ type: Output },],\n'onChange': [{ type: Output },],\n'onGoToCurrent': [{ type: Output },],\n'onLeftNav': [{ type: Output },],\n'onRightNav': [{ type: Output },],\n'calendarContainer': [{ type: ViewChild, args: ['container', ] },],\n'dayCalendarRef': [{ type: ViewChild, args: ['dayCalendar', ] },],\n'monthCalendarRef': [{ type: ViewChild, args: ['monthCalendar', ] },],\n'dayTimeCalendarRef': [{ type: ViewChild, args: ['daytimeCalendar', ] },],\n'timeSelectRef': [{ type: ViewChild, args: ['timeSelect', ] },],\n'onClick': [{ type: HostListener, args: ['click', ] },],\n'onScroll': [{ type: HostListener, args: ['window:resize', ] },],\n};\n}\n\nfunction DatePickerComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nDatePickerComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDatePickerComponent.ctorParameters;\n/** @type {?} */\nDatePickerComponent.propDecorators;\n/** @type {?} */\nDatePickerComponent.prototype.isInitialized;\n/** @type {?} */\nDatePickerComponent.prototype.config;\n/** @type {?} */\nDatePickerComponent.prototype.mode;\n/** @type {?} */\nDatePickerComponent.prototype.placeholder;\n/** @type {?} */\nDatePickerComponent.prototype.disabled;\n/** @type {?} */\nDatePickerComponent.prototype.displayDate;\n/** @type {?} */\nDatePickerComponent.prototype.theme;\n/** @type {?} */\nDatePickerComponent.prototype.minDate;\n/** @type {?} */\nDatePickerComponent.prototype.maxDate;\n/** @type {?} */\nDatePickerComponent.prototype.minTime;\n/** @type {?} */\nDatePickerComponent.prototype.maxTime;\n/** @type {?} */\nDatePickerComponent.prototype.open;\n/** @type {?} */\nDatePickerComponent.prototype.close;\n/** @type {?} */\nDatePickerComponent.prototype.onChange;\n/** @type {?} */\nDatePickerComponent.prototype.onGoToCurrent;\n/** @type {?} */\nDatePickerComponent.prototype.onLeftNav;\n/** @type {?} */\nDatePickerComponent.prototype.onRightNav;\n/** @type {?} */\nDatePickerComponent.prototype.calendarContainer;\n/** @type {?} */\nDatePickerComponent.prototype.dayCalendarRef;\n/** @type {?} */\nDatePickerComponent.prototype.monthCalendarRef;\n/** @type {?} */\nDatePickerComponent.prototype.dayTimeCalendarRef;\n/** @type {?} */\nDatePickerComponent.prototype.timeSelectRef;\n/** @type {?} */\nDatePickerComponent.prototype.componentConfig;\n/** @type {?} */\nDatePickerComponent.prototype.dayCalendarConfig;\n/** @type {?} */\nDatePickerComponent.prototype.dayTimeCalendarConfig;\n/** @type {?} */\nDatePickerComponent.prototype.timeSelectConfig;\n/** @type {?} */\nDatePickerComponent.prototype._areCalendarsShown;\n/** @type {?} */\nDatePickerComponent.prototype.hideStateHelper;\n/** @type {?} */\nDatePickerComponent.prototype._selected;\n/** @type {?} */\nDatePickerComponent.prototype.inputValue;\n/** @type {?} */\nDatePickerComponent.prototype.inputValueType;\n/** @type {?} */\nDatePickerComponent.prototype.isFocusedTrigger;\n/** @type {?} */\nDatePickerComponent.prototype._currentDateView;\n/** @type {?} */\nDatePickerComponent.prototype.inputElementValue;\n/** @type {?} */\nDatePickerComponent.prototype.calendarWrapper;\n/** @type {?} */\nDatePickerComponent.prototype.appendToElement;\n/** @type {?} */\nDatePickerComponent.prototype.inputElementContainer;\n/** @type {?} */\nDatePickerComponent.prototype.popupElem;\n/** @type {?} */\nDatePickerComponent.prototype.handleInnerElementClickUnlisteners;\n/** @type {?} */\nDatePickerComponent.prototype.globalListnersUnlisteners;\n/** @type {?} */\nDatePickerComponent.prototype.validateFn;\n/** @type {?} */\nDatePickerComponent.prototype.api;\n/** @type {?} */\nDatePickerComponent.prototype.dayPickerService;\n/** @type {?} */\nDatePickerComponent.prototype.domHelper;\n/** @type {?} */\nDatePickerComponent.prototype.elemRef;\n/** @type {?} */\nDatePickerComponent.prototype.renderer;\n/** @type {?} */\nDatePickerComponent.prototype.utilsService;\n/** @type {?} */\nDatePickerComponent.prototype.cd;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {EventEmitter, Injectable} from '@angular/core';\nimport {IDatePickerConfig, IDatePickerConfigInternal} from './date-picker-config.model';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IDayCalendarConfig} from '../day-calendar/day-calendar-config.model';\nimport {TimeSelectService} from '../time-select/time-select.service';\nimport {DayTimeCalendarService} from '../day-time-calendar/day-time-calendar.service';\nimport {ITimeSelectConfig} from '../time-select/time-select-config.model';\nimport {CalendarMode} from '../common/types/calendar-mode';\nimport {CalendarValue} from '../common/types/calendar-value';\nconst /** @type {?} */ moment = momentNs;\nexport class DatePickerService {\n readonly onPickerClosed: EventEmitter<null> = new EventEmitter();\nprivate defaultConfig: IDatePickerConfigInternal = {\n closeOnSelect: true,\n closeOnSelectDelay: 100,\n format: 'DD-MM-YYYY',\n openOnFocus: true,\n openOnClick: true,\n onOpenDelay: 0,\n disableKeypress: false,\n showNearMonthDays: true,\n showWeekNumbers: false,\n enableMonthSelector: true,\n showGoToCurrent: true,\n locale: moment.locale(),\n hideOnOutsideClick: true\n };\n/**\n * @param {?} utilsService\n * @param {?} timeSelectService\n * @param {?} daytimeCalendarService\n */\nconstructor(private utilsService: UtilsService,\nprivate timeSelectService: TimeSelectService,\nprivate daytimeCalendarService: DayTimeCalendarService) {\n }\n/**\n * @param {?} config\n * @param {?=} mode\n * @return {?}\n */\ngetConfig(config: IDatePickerConfig, mode: CalendarMode = 'daytime'): IDatePickerConfigInternal {\n const /** @type {?} */ _config = /** @type {?} */(( <IDatePickerConfigInternal>{\n ...this.defaultConfig,\n format: this.getDefaultFormatByMode(mode),\n ...this.utilsService.clearUndefined(config)\n }));\n\n this.utilsService.convertPropsToMoment(_config, _config.format, ['min', 'max']);\n\n if (config && config.allowMultiSelect && config.closeOnSelect === undefined) {\n _config.closeOnSelect = false;\n }\n\n moment.locale(_config.locale);\n\n return _config;\n }\n/**\n * @param {?} pickerConfig\n * @return {?}\n */\ngetDayConfigService(pickerConfig: IDatePickerConfig): IDayCalendarConfig {\n return {\n min: pickerConfig.min,\n max: pickerConfig.max,\n isDayDisabledCallback: pickerConfig.isDayDisabledCallback,\n weekDayFormat: pickerConfig.weekDayFormat,\n showNearMonthDays: pickerConfig.showNearMonthDays,\n showWeekNumbers: pickerConfig.showWeekNumbers,\n firstDayOfWeek: pickerConfig.firstDayOfWeek,\n format: pickerConfig.format,\n allowMultiSelect: pickerConfig.allowMultiSelect,\n monthFormat: pickerConfig.monthFormat,\n monthFormatter: pickerConfig.monthFormatter,\n enableMonthSelector: pickerConfig.enableMonthSelector,\n yearFormat: pickerConfig.yearFormat,\n yearFormatter: pickerConfig.yearFormatter,\n dayBtnFormat: pickerConfig.dayBtnFormat,\n dayBtnFormatter: pickerConfig.dayBtnFormatter,\n dayBtnCssClassCallback: pickerConfig.dayBtnCssClassCallback,\n monthBtnFormat: pickerConfig.monthBtnFormat,\n monthBtnFormatter: pickerConfig.monthBtnFormatter,\n monthBtnCssClassCallback: pickerConfig.monthBtnCssClassCallback,\n multipleYearsNavigateBy: pickerConfig.multipleYearsNavigateBy,\n showMultipleYearsNavigation: pickerConfig.showMultipleYearsNavigation,\n locale: pickerConfig.locale,\n returnedValueType: pickerConfig.returnedValueType,\n showGoToCurrent: pickerConfig.showGoToCurrent,\n unSelectOnClick: pickerConfig.unSelectOnClick,\n monthInRow: pickerConfig.monthInRow\n };\n }\n/**\n * @param {?} pickerConfig\n * @return {?}\n */\ngetDayTimeConfigService(pickerConfig: IDatePickerConfig): ITimeSelectConfig {\n return this.daytimeCalendarService.getConfig(pickerConfig);\n }\n/**\n * @param {?} pickerConfig\n * @return {?}\n */\ngetTimeConfigService(pickerConfig: IDatePickerConfig): ITimeSelectConfig {\n return this.timeSelectService.getConfig(pickerConfig);\n }\n/**\n * @return {?}\n */\npickerClosed() {\n this.onPickerClosed.emit();\n }\n/**\n * @param {?} value\n * @param {?} config\n * @return {?}\n */\nisValidInputDateValue(value: string, config: IDatePickerConfig): boolean {\n value = value ? value : '';\n const /** @type {?} */ datesStrArr: string[] = this.utilsService.datesStringToStringArray(value);\n\n return datesStrArr.every(date => this.utilsService.isDateValid(date, config.format));\n }\n/**\n * @param {?} value\n * @param {?} config\n * @return {?}\n */\nconvertInputValueToMomentArray(value: string, config: IDatePickerConfig): Moment[] {\n value = value ? value : '';\n const /** @type {?} */ datesStrArr: string[] = this.utilsService.datesStringToStringArray(value);\n\n return this.utilsService.convertToMomentArray(datesStrArr, config.format, config.allowMultiSelect);\n }\n/**\n * @param {?} mode\n * @return {?}\n */\nprivate getDefaultFormatByMode(mode: CalendarMode): string {\n switch (mode) {\n case 'day':\n return 'DD-MM-YYYY';\n case 'daytime':\n return 'DD-MM-YYYY HH:mm:ss';\n case 'time':\n return 'HH:mm:ss';\n case 'month':\n return 'MMM, YYYY';\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n{type: TimeSelectService, },\n{type: DayTimeCalendarService, },\n];\n}\n\nfunction DatePickerService_tsickle_Closure_declarations() {\n/** @type {?} */\nDatePickerService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDatePickerService.ctorParameters;\n/** @type {?} */\nDatePickerService.prototype.onPickerClosed;\n/** @type {?} */\nDatePickerService.prototype.defaultConfig;\n/** @type {?} */\nDatePickerService.prototype.utilsService;\n/** @type {?} */\nDatePickerService.prototype.timeSelectService;\n/** @type {?} */\nDatePickerService.prototype.daytimeCalendarService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {Injectable} from '@angular/core';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\n\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {DayCalendarService} from '../day-calendar/day-calendar.service';\nimport {TimeSelectService} from '../time-select/time-select.service';\nimport {IDayTimeCalendarConfig} from './day-time-calendar-config.model';\nconst /** @type {?} */ moment = momentNs;\n\nconst /** @type {?} */ DAY_FORMAT = 'YYYYMMDD';\nconst /** @type {?} */ TIME_FORMAT = 'HH:mm:ss';\nconst /** @type {?} */ COMBINED_FORMAT = DAY_FORMAT + TIME_FORMAT;\nexport class DayTimeCalendarService {\n readonly DEFAULT_CONFIG: IDayTimeCalendarConfig = {\n locale: moment.locale()\n };\n/**\n * @param {?} utilsService\n * @param {?} dayCalendarService\n * @param {?} timeSelectService\n */\nconstructor(private utilsService: UtilsService,\nprivate dayCalendarService: DayCalendarService,\nprivate timeSelectService: TimeSelectService) {\n }\n/**\n * @param {?} config\n * @return {?}\n */\ngetConfig(config: IDayTimeCalendarConfig): IDayTimeCalendarConfig {\n const /** @type {?} */ _config = {\n ...this.DEFAULT_CONFIG,\n ...this.timeSelectService.getConfig(config),\n ...this.dayCalendarService.getConfig(config)\n };\n\n moment.locale(config.locale);\n\n return _config;\n }\n/**\n * @param {?} current\n * @param {?} day\n * @param {?} config\n * @return {?}\n */\nupdateDay(current: Moment, day: Moment, config: IDayTimeCalendarConfig): Moment {\n const /** @type {?} */ time = current ? current : moment();\n let /** @type {?} */ updated = moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT)\n\n if (config.min) {\n const /** @type {?} */ min = /** @type {?} */(( <Moment>config.min));\n updated = min.isAfter(updated) ? min : updated;\n }\n\n if (config.max) {\n const /** @type {?} */ max = /** @type {?} */(( <Moment>config.max));\n updated = max.isBefore(updated) ? max : updated;\n }\n\n return updated;\n }\n/**\n * @param {?} current\n * @param {?} time\n * @return {?}\n */\nupdateTime(current: Moment, time: Moment): Moment {\n const /** @type {?} */ day = current ? current : moment();\n\n return moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n{type: DayCalendarService, },\n{type: TimeSelectService, },\n];\n}\n\nfunction DayTimeCalendarService_tsickle_Closure_declarations() {\n/** @type {?} */\nDayTimeCalendarService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDayTimeCalendarService.ctorParameters;\n/** @type {?} */\nDayTimeCalendarService.prototype.DEFAULT_CONFIG;\n/** @type {?} */\nDayTimeCalendarService.prototype.utilsService;\n/** @type {?} */\nDayTimeCalendarService.prototype.dayCalendarService;\n/** @type {?} */\nDayTimeCalendarService.prototype.timeSelectService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {Injectable} from '@angular/core';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {ITimeSelectConfig, ITimeSelectConfigInternal} from './time-select-config.model';\nconst /** @type {?} */ moment = momentNs;\n\nexport type TimeUnit = 'hour' | 'minute' | 'second';\nexport const /** @type {?} */ FIRST_PM_HOUR = 12;\nexport class TimeSelectService {\n readonly DEFAULT_CONFIG: ITimeSelectConfigInternal = {\n hours12Format: 'hh',\n hours24Format: 'HH',\n meridiemFormat: 'A',\n minutesFormat: 'mm',\n minutesInterval: 1,\n secondsFormat: 'ss',\n secondsInterval: 1,\n showSeconds: false,\n showTwentyFourHours: false,\n timeSeparator: ':',\n locale: moment.locale()\n };\n/**\n * @param {?} utilsService\n */\nconstructor(private utilsService: UtilsService) {\n }\n/**\n * @param {?} config\n * @return {?}\n */\ngetConfig(config: ITimeSelectConfig): ITimeSelectConfigInternal {\n const /** @type {?} */ timeConfigs = {\n maxTime: this.utilsService.onlyTime(config && config.maxTime),\n minTime: this.utilsService.onlyTime(config && config.minTime)\n };\n\n const /** @type {?} */ _config = /** @type {?} */(( <ITimeSelectConfigInternal>{\n ...this.DEFAULT_CONFIG,\n ...this.utilsService.clearUndefined(config),\n ...timeConfigs\n }));\n\n moment.locale(_config.locale);\n\n return _config;\n }\n/**\n * @param {?} config\n * @return {?}\n */\ngetTimeFormat(config: ITimeSelectConfigInternal): string {\n return (config.showTwentyFourHours ? config.hours24Format : config.hours12Format)\n + config.timeSeparator + config.minutesFormat\n + (config.showSeconds ? (config.timeSeparator + config.secondsFormat) : '')\n + (config.showTwentyFourHours ? '' : ' ' + config.meridiemFormat);\n }\n/**\n * @param {?} config\n * @param {?} t\n * @return {?}\n */\ngetHours(config: ITimeSelectConfigInternal, t: Moment | null): string {\n const /** @type {?} */ time = t || moment();\n return time && time.format(config.showTwentyFourHours ? config.hours24Format : config.hours12Format);\n }\n/**\n * @param {?} config\n * @param {?} t\n * @return {?}\n */\ngetMinutes(config: ITimeSelectConfigInternal, t: Moment | null): string {\n const /** @type {?} */ time = t || moment();\n return time && time.format(config.minutesFormat);\n }\n/**\n * @param {?} config\n * @param {?} t\n * @return {?}\n */\ngetSeconds(config: ITimeSelectConfigInternal, t: Moment | null): string {\n const /** @type {?} */ time = t || moment();\n return time && time.format(config.secondsFormat);\n }\n/**\n * @param {?} config\n * @param {?} time\n * @return {?}\n */\ngetMeridiem(config: ITimeSelectConfigInternal, time: Moment): string {\n return time && time.format(config.meridiemFormat);\n }\n/**\n * @param {?} config\n * @param {?} time\n * @param {?} unit\n * @return {?}\n */\ndecrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment {\n let /** @type {?} */ amount: number = 1;\n switch (unit) {\n case 'minute':\n amount = config.minutesInterval;\n break;\n case 'second':\n amount = config.secondsInterval;\n break;\n }\n return time.clone().subtract(amount, unit);\n }\n/**\n * @param {?} config\n * @param {?} time\n * @param {?} unit\n * @return {?}\n */\nincrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment {\n let /** @type {?} */ amount: number = 1;\n switch (unit) {\n case 'minute':\n amount = config.minutesInterval;\n break;\n case 'second':\n amount = config.secondsInterval;\n break;\n }\n return time.clone().add(amount, unit);\n }\n/**\n * @param {?} time\n * @return {?}\n */\ntoggleMeridiem(time: Moment): Moment {\n if (time.hours() < FIRST_PM_HOUR) {\n return time.clone().add(12, 'hour');\n } else {\n return time.clone().subtract(12, 'hour');\n }\n }\n/**\n * @param {?} config\n * @param {?} time\n * @param {?} unit\n * @return {?}\n */\nshouldShowDecrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean {\n if (!config.min && !config.minTime) {\n return true;\n }\n ;\n const /** @type {?} */ newTime = this.decrease(config, time, unit);\n\n return (!config.min || config.min.isSameOrBefore(newTime))\n && (!config.minTime || config.minTime.isSameOrBefore(this.utilsService.onlyTime(newTime)));\n }\n/**\n * @param {?} config\n * @param {?} time\n * @param {?} unit\n * @return {?}\n */\nshouldShowIncrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean {\n if (!config.max && !config.maxTime) {\n return true;\n }\n ;\n const /** @type {?} */ newTime = this.increase(config, time, unit);\n\n return (!config.max || config.max.isSameOrAfter(newTime))\n && (!config.maxTime || config.maxTime.isSameOrAfter(this.utilsService.onlyTime(newTime)));\n }\n/**\n * @param {?} config\n * @param {?} time\n * @return {?}\n */\nshouldShowToggleMeridiem(config: ITimeSelectConfigInternal, time: Moment): boolean {\n if (!config.min && !config.max && !config.minTime && !config.maxTime) {\n return true;\n }\n const /** @type {?} */ newTime = this.toggleMeridiem(time);\n return (!config.max || config.max.isSameOrAfter(newTime))\n && (!config.min || config.min.isSameOrBefore(newTime))\n && (!config.maxTime || config.maxTime.isSameOrAfter(this.utilsService.onlyTime(newTime)))\n && (!config.minTime || config.minTime.isSameOrBefore(this.utilsService.onlyTime(newTime)));\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n];\n}\n\nfunction TimeSelectService_tsickle_Closure_declarations() {\n/** @type {?} */\nTimeSelectService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nTimeSelectService.ctorParameters;\n/** @type {?} */\nTimeSelectService.prototype.DEFAULT_CONFIG;\n/** @type {?} */\nTimeSelectService.prototype.utilsService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {Injectable} from '@angular/core';\nimport * as momentNs from 'moment';\nimport {Moment} from 'moment';\nimport {WeekDays} from '../common/types/week-days.type';\nimport {UtilsService} from '../common/services/utils/utils.service';\nimport {IDay} from './day.model';\nimport {IDayCalendarConfig, IDayCalendarConfigInternal} from './day-calendar-config.model';\nimport {IMonthCalendarConfig} from '../month-calendar/month-calendar-config';\nconst /** @type {?} */ moment = momentNs;\nexport class DayCalendarService {\nprivate readonly DAYS = ['su', 'mo', 'tu', 'we', 'th', 'fr', 'sa'];\n readonly DEFAULT_CONFIG: IDayCalendarConfig = {\n showNearMonthDays: true,\n showWeekNumbers: false,\n firstDayOfWeek: 'su',\n weekDayFormat: 'ddd',\n format: 'DD-MM-YYYY',\n allowMultiSelect: false,\n monthFormat: 'MMM, YYYY',\n enableMonthSelector: true,\n locale: moment.locale(),\n dayBtnFormat: 'DD',\n unSelectOnClick: true\n };\n/**\n * @param {?} utilsService\n */\nconstructor(private utilsService: UtilsService) {\n }\n/**\n * @param {?} currentMonth\n * @param {?} monthArray\n * @return {?}\n */\nprivate removeNearMonthWeeks(currentMonth: Moment, monthArray: IDay[][]): IDay[][] {\n if (monthArray[monthArray.length - 1].find((day) => day.date.isSame(currentMonth, 'month'))) {\n return monthArray;\n } else {\n return monthArray.slice(0, -1);\n }\n }\n/**\n * @param {?} config\n * @return {?}\n */\ngetConfig(config: IDayCalendarConfig): IDayCalendarConfigInternal {\n const /** @type {?} */ _config = /** @type {?} */(( <IDayCalendarConfigInternal>{\n ...this.DEFAULT_CONFIG,\n ...this.utilsService.clearUndefined(config)\n }));\n\n this.utilsService.convertPropsToMoment(_config, _config.format, ['min', 'max']);\n\n moment.locale(_config.locale);\n\n return _config;\n }\n/**\n * @param {?} firstDayOfWeek\n * @return {?}\n */\ngenerateDaysMap(firstDayOfWeek: WeekDays) {\n const /** @type {?} */ firstDayIndex = this.DAYS.indexOf(firstDayOfWeek);\n const /** @type {?} */ daysArr = this.DAYS.slice(firstDayIndex, 7).concat(this.DAYS.slice(0, firstDayIndex));\n return daysArr.reduce((map, day, index) => {\n map[day] = index;\n\n return map;\n }, /** @type {?} */(( <{[key: number]: string}>{})));\n }\n/**\n * @param {?} config\n * @param {?} month\n * @param {?} selected\n * @return {?}\n */\ngenerateMonthArray(config: IDayCalendarConfigInternal, month: Moment, selected: Moment[]): IDay[][] {\n let /** @type {?} */ monthArray: IDay[][] = [];\n const /** @type {?} */ firstDayOfWeekIndex = this.DAYS.indexOf(config.firstDayOfWeek);\n const /** @type {?} */ firstDayOfBoard = month.clone().startOf('month');\n\n while (firstDayOfBoard.day() !== firstDayOfWeekIndex) {\n firstDayOfBoard.subtract(1, 'day');\n }\n\n const /** @type {?} */ current = firstDayOfBoard.clone();\n const /** @type {?} */ prevMonth = month.clone().subtract(1, 'month');\n const /** @type {?} */ nextMonth = month.clone().add(1, 'month');\n const /** @type {?} */ today = moment();\n\n const /** @type {?} */ daysOfCalendar: IDay[] = this.utilsService.createArray(42)\n .reduce((array: IDay[]) => {\n array.push({\n date: current.clone(),\n selected: !!selected.find(selectedDay => current.isSame(selectedDay, 'day')),\n currentMonth: current.isSame(month, 'month'),\n prevMonth: current.isSame(prevMonth, 'month'),\n nextMonth: current.isSame(nextMonth, 'month'),\n currentDay: current.isSame(today, 'day'),\n disabled: this.isDateDisabled(current, config)\n });\n current.add(1, 'day');\n\n if (current.format('HH') !== '00') {\n current.startOf('day').add(1, 'day');\n }\n\n return array;\n }, []);\n\n daysOfCalendar.forEach((day, index) => {\n const /** @type {?} */ weekIndex = Math.floor(index / 7);\n\n if (!monthArray[weekIndex]) {\n monthArray.push([]);\n }\n\n monthArray[weekIndex].push(day);\n });\n\n if (!config.showNearMonthDays) {\n monthArray = this.removeNearMonthWeeks(month, monthArray);\n }\n\n return monthArray;\n }\n/**\n * @param {?} firstDayOfWeek\n * @return {?}\n */\ngenerateWeekdays(firstDayOfWeek: WeekDays): Moment[] {\n const /** @type {?} */ weekdayNames: {[key: string]: Moment} = {\n su: moment().day(0),\n mo: moment().day(1),\n tu: moment().day(2),\n we: moment().day(3),\n th: moment().day(4),\n fr: moment().day(5),\n sa: moment().day(6)\n };\n const /** @type {?} */ weekdays: Moment[] = [];\n const /** @type {?} */ daysMap = this.generateDaysMap(firstDayOfWeek);\n\n for (const /** @type {?} */ dayKey in daysMap) {\n if (daysMap.hasOwnProperty(dayKey)) {\n weekdays[daysMap[dayKey]] = weekdayNames[dayKey];\n }\n }\n\n return weekdays;\n }\n/**\n * @param {?} date\n * @param {?} config\n * @return {?}\n */\nisDateDisabled(date: Moment, config: IDayCalendarConfigInternal): boolean {\n if (config.isDayDisabledCallback) {\n return config.isDayDisabledCallback(date);\n }\n\n if (config.min && date.isBefore(config.min, 'day')) {\n return true;\n }\n\n return !!(config.max && date.isAfter(config.max, 'day'));\n }\n/**\n * @param {?} config\n * @param {?} month\n * @return {?}\n */\ngetHeaderLabel(config: IDayCalendarConfigInternal, month: Moment): string {\n if (config.monthFormatter) {\n return config.monthFormatter(month);\n }\n\n return month.format(config.monthFormat);\n }\n/**\n * @param {?} min\n * @param {?} currentMonthView\n * @return {?}\n */\nshouldShowLeft(min: Moment, currentMonthView: Moment): boolean {\n return min ? min.isBefore(currentMonthView, 'month') : true;\n }\n/**\n * @param {?} max\n * @param {?} currentMonthView\n * @return {?}\n */\nshouldShowRight(max: Moment, currentMonthView: Moment): boolean {\n return max ? max.isAfter(currentMonthView, 'month') : true;\n }\n/**\n * @param {?} firstDayOfWeek\n * @return {?}\n */\ngenerateDaysIndexMap(firstDayOfWeek: WeekDays) {\n const /** @type {?} */ firstDayIndex = this.DAYS.indexOf(firstDayOfWeek);\n const /** @type {?} */ daysArr = this.DAYS.slice(firstDayIndex, 7).concat(this.DAYS.slice(0, firstDayIndex));\n return daysArr.reduce((map, day, index) => {\n map[index] = day;\n\n return map;\n }, /** @type {?} */(( <{[key: number]: string}>{})));\n }\n/**\n * @param {?} componentConfig\n * @return {?}\n */\ngetMonthCalendarConfig(componentConfig: IDayCalendarConfigInternal): IMonthCalendarConfig {\n return this.utilsService.clearUndefined({\n min: componentConfig.min,\n max: componentConfig.max,\n format: componentConfig.format,\n isNavHeaderBtnClickable: true,\n allowMultiSelect: false,\n yearFormat: componentConfig.yearFormat,\n yearFormatter: componentConfig.yearFormatter,\n monthBtnFormat: componentConfig.monthBtnFormat,\n monthBtnFormatter: componentConfig.monthBtnFormatter,\n monthBtnCssClassCallback: componentConfig.monthBtnCssClassCallback,\n multipleYearsNavigateBy: componentConfig.multipleYearsNavigateBy,\n showMultipleYearsNavigation: componentConfig.showMultipleYearsNavigation,\n showGoToCurrent: componentConfig.showGoToCurrent\n });\n }\n/**\n * @param {?} config\n * @param {?} day\n * @return {?}\n */\ngetDayBtnText(config: IDayCalendarConfigInternal, day: Moment): string {\n if (config.dayBtnFormatter) {\n return config.dayBtnFormatter(day);\n }\n\n return day.format(config.dayBtnFormat);\n }\n/**\n * @param {?} config\n * @param {?} day\n * @return {?}\n */\ngetDayBtnCssClass(config: IDayCalendarConfigInternal, day: Moment): string {\n if (config.dayBtnCssClassCallback) {\n return config.dayBtnCssClassCallback(day);\n }\n\n return '';\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: UtilsService, },\n];\n}\n\nfunction DayCalendarService_tsickle_Closure_declarations() {\n/** @type {?} */\nDayCalendarService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDayCalendarService.ctorParameters;\n/** @type {?} */\nDayCalendarService.prototype.DAYS;\n/** @type {?} */\nDayCalendarService.prototype.DEFAULT_CONFIG;\n/** @type {?} */\nDayCalendarService.prototype.utilsService;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {ECalendarValue} from '../../types/calendar-value-enum';\nimport {SingleCalendarValue} from '../../types/single-calendar-value';\nimport {Injectable} from '@angular/core';\nimport * as momentNs from 'moment';\nimport {Moment, unitOfTime} from 'moment';\nimport {CalendarValue} from '../../types/calendar-value';\nimport {IDate} from '../../models/date.model';\nimport {CalendarMode} from '../../types/calendar-mode';\nimport {DateValidator} from '../../types/validator.type';\nimport {ICalendarInternal} from '../../models/calendar.model';\n\nconst /** @type {?} */ moment = momentNs;\n\nexport interface DateLimits {\n minDate?: SingleCalendarValue;\n maxDate?: SingleCalendarValue;\n minTime?: SingleCalendarValue;\n maxTime?: SingleCalendarValue;\n}\nexport class UtilsService {\n/**\n * @param {?} func\n * @param {?} wait\n * @return {?}\n */\nstatic debounce(func: Function, wait: number) {\n let /** @type {?} */ timeout;\n return function () {\n const /** @type {?} */ context = this, /** @type {?} */ args = arguments;\n timeout = clearTimeout(timeout);\n setTimeout(() => {\n func.apply(context, args);\n }, wait);\n };\n };\n/**\n * @param {?} size\n * @return {?}\n */\ncreateArray(size: number): number[] {\n return new Array(size).fill(1);\n }\n/**\n * @param {?} date\n * @param {?} format\n * @return {?}\n */\nconvertToMoment(date: SingleCalendarValue, format: string): Moment {\n if (!date) {\n return null;\n } else if (typeof date === 'string') {\n return moment(date, format);\n } else {\n return date.clone();\n }\n }\n/**\n * @param {?} date\n * @param {?} format\n * @return {?}\n */\nisDateValid(date: string, format: string): boolean {\n if (date === '') {\n return true;\n }\n\n return moment(date, format, true).isValid();\n }\n/**\n * @param {?} current\n * @param {?} selected\n * @param {?} allowMultiSelect\n * @param {?} minDate\n * @return {?}\n */\ngetDefaultDisplayDate(current: Moment,\n selected: Moment[],\n allowMultiSelect: boolean,\n minDate: Moment): Moment {\n if (current) {\n return current.clone();\n } else if (minDate && minDate.isAfter(moment())) {\n return minDate.clone();\n } else if (allowMultiSelect) {\n if (selected && selected[selected.length]) {\n return selected[selected.length].clone();\n }\n } else if (selected && selected[0]) {\n return selected[0].clone();\n }\n\n return moment();\n }\n/**\n * @param {?} value\n * @param {?} allowMultiSelect\n * @return {?}\n */\ngetInputType(value: CalendarValue, allowMultiSelect: boolean): ECalendarValue {\n if (Array.isArray(value)) {\n if (!value.length) {\n return ECalendarValue.MomentArr;\n } else if (typeof value[0] === 'string') {\n return ECalendarValue.StringArr;\n } else if (moment.isMoment(value[0])) {\n return ECalendarValue.MomentArr;\n }\n } else {\n if (typeof value === 'string') {\n return ECalendarValue.String;\n } else if (moment.isMoment(value)) {\n return ECalendarValue.Moment;\n }\n }\n\n return allowMultiSelect ? ECalendarValue.MomentArr : ECalendarValue.Moment;\n }\n/**\n * @param {?} value\n * @param {?} format\n * @param {?} allowMultiSelect\n * @return {?}\n */\nconvertToMomentArray(value: CalendarValue, format: string, allowMultiSelect: boolean): Moment[] {\n switch (this.getInputType(value, allowMultiSelect)) {\n case (ECalendarValue.String):\n return value ? [moment( /** @type {?} */((<string>value)), format, true)] : [];\n case (ECalendarValue.StringArr):\n return ( /** @type {?} */((<string[]>value))).map(v => v ? moment(v, format, true) : null).filter(Boolean);\n case (ECalendarValue.Moment):\n return value ? [( /** @type {?} */((<Moment>value))).clone()] : [];\n case (ECalendarValue.MomentArr):\n return ( /** @type {?} */((<Moment[]>value)) || []).map(v => v.clone());\n default:\n return [];\n }\n }\n/**\n * @param {?} format\n * @param {?} value\n * @param {?} convertTo\n * @return {?}\n */\nconvertFromMomentArray(format: string,\n value: Moment[],\n convertTo: ECalendarValue): CalendarValue {\n switch (convertTo) {\n case (ECalendarValue.String):\n return value[0] && value[0].format(format);\n case (ECalendarValue.StringArr):\n return value.filter(Boolean).map(v => v.format(format));\n case (ECalendarValue.Moment):\n return value[0] ? value[0].clone() : value[0];\n case (ECalendarValue.MomentArr):\n return value ? value.map(v => v.clone()) : value;\n default:\n return value;\n }\n }\n/**\n * @param {?} value\n * @param {?} format\n * @return {?}\n */\nconvertToString(value: CalendarValue, format: string): string {\n let /** @type {?} */ tmpVal: string[];\n\n if (typeof value === 'string') {\n tmpVal = [value];\n } else if (Array.isArray(value)) {\n if (value.length) {\n tmpVal = ( /** @type {?} */((<SingleCalendarValue[]>value))).map((v) => {\n return this.convertToMoment(v, format).format(format);\n });\n } else {\n tmpVal = /** @type {?} */(( <string[]>value));\n }\n } else if (moment.isMoment(value)) {\n tmpVal = [value.format(format)];\n } else {\n return '';\n }\n\n return tmpVal.filter(Boolean).join(' | ');\n }\n/**\n * @template T\n * @param {?} obj\n * @return {?}\n */\nclearUndefined<T>(obj: T): T {\n if (!obj) {\n return obj;\n }\n\n Object.keys(obj).forEach((key) => (obj[key] === undefined) && delete obj[key]);\n return obj;\n }\n/**\n * @param {?} isMultiple\n * @param {?} currentlySelected\n * @param {?} date\n * @param {?=} granularity\n * @return {?}\n */\nupdateSelected(isMultiple: boolean,\n currentlySelected: Moment[],\n date: IDate,\n granularity: unitOfTime.Base = 'day'): Moment[] {\n const /** @type {?} */ isSelected = !date.selected;\n if (isMultiple) {\n return isSelected\n ? currentlySelected.concat([date.date])\n : currentlySelected.filter(d => !d.isSame(date.date, granularity));\n } else {\n return isSelected ? [date.date] : [];\n }\n }\n/**\n * @param {?} element\n * @param {?} selector\n * @return {?}\n */\nclosestParent(element: HTMLElement, selector: string): HTMLElement {\n if (!element) {\n return undefined;\n }\n const /** @type {?} */ match = /** @type {?} */(( <HTMLElement>element.querySelector(selector)));\n return match || this.closestParent(element.parentElement, selector);\n }\n/**\n * @param {?} m\n * @return {?}\n */\nonlyTime(m: Moment): Moment {\n return m && moment.isMoment(m) && moment(m.format('HH:mm:ss'), 'HH:mm:ss');\n }\n/**\n * @param {?} calendarType\n * @return {?}\n */\ngranularityFromType(calendarType: CalendarMode): unitOfTime.Base {\n switch (calendarType) {\n case 'time':\n return 'second';\n case 'daytime':\n return 'second';\n default:\n return calendarType;\n }\n }\n/**\n * @param {?} __0\n * @param {?} format\n * @param {?} calendarType\n * @return {?}\n */\ncreateValidator({minDate, maxDate, minTime, maxTime}: DateLimits,\n format: string,\n calendarType: CalendarMode): DateValidator {\n let /** @type {?} */ isValid: boolean;\n let /** @type {?} */ value: Moment[];\n const /** @type {?} */ validators = [];\n const /** @type {?} */ granularity = this.granularityFromType(calendarType);\n\n if (minDate) {\n const /** @type {?} */ md = this.convertToMoment(minDate, format);\n validators.push({\n key: 'minDate',\n isValid: () => {\n const /** @type {?} */ _isValid = value.every(val => val.isSameOrAfter(md, granularity));\n isValid = isValid ? _isValid : false;\n return _isValid;\n }\n });\n }\n\n if (maxDate) {\n const /** @type {?} */ md = this.convertToMoment(maxDate, format);\n validators.push({\n key: 'maxDate',\n isValid: () => {\n const /** @type {?} */ _isValid = value.every(val => val.isSameOrBefore(md, granularity));\n isValid = isValid ? _isValid : false;\n return _isValid;\n }\n });\n }\n\n if (minTime) {\n const /** @type {?} */ md = this.onlyTime(this.convertToMoment(minTime, format));\n validators.push({\n key: 'minTime',\n isValid: () => {\n const /** @type {?} */ _isValid = value.every(val => this.onlyTime(val).isSameOrAfter(md));\n isValid = isValid ? _isValid : false;\n return _isValid;\n }\n });\n }\n\n if (maxTime) {\n const /** @type {?} */ md = this.onlyTime(this.convertToMoment(maxTime, format));\n validators.push({\n key: 'maxTime',\n isValid: () => {\n const /** @type {?} */ _isValid = value.every(val => this.onlyTime(val).isSameOrBefore(md));\n isValid = isValid ? _isValid : false;\n return _isValid;\n }\n });\n }\n\n return (inputVal: CalendarValue) => {\n isValid = true;\n\n value = this.convertToMomentArray(inputVal, format, true).filter(Boolean);\n\n if (!value.every(val => val.isValid())) {\n return {\n format: {\n given: inputVal\n }\n };\n }\n\n const /** @type {?} */ errors = validators.reduce((map, err) => {\n if (!err.isValid()) {\n map[err.key] = {\n given: value\n };\n }\n\n return map;\n }, {});\n\n return !isValid ? errors : null;\n };\n }\n/**\n * @param {?} value\n * @return {?}\n */\ndatesStringToStringArray(value: string): string[] {\n return (value || '').split('|').map(m => m.trim()).filter(Boolean);\n }\n/**\n * @param {?} value\n * @param {?} format\n * @return {?}\n */\ngetValidMomentArray(value: string, format: string): Moment[] {\n return this.datesStringToStringArray(value)\n .filter(d => this.isDateValid(d, format))\n .map(d => moment(d, format));\n }\n/**\n * @param {?} showGoToCurrent\n * @param {?} mode\n * @param {?} min\n * @param {?} max\n * @return {?}\n */\nshouldShowCurrent(showGoToCurrent: boolean,\n mode: CalendarMode,\n min: Moment,\n max: Moment): boolean {\n return showGoToCurrent &&\n mode !== 'time' &&\n this.isDateInRange(moment(), min, max);\n }\n/**\n * @param {?} date\n * @param {?} from\n * @param {?} to\n * @return {?}\n */\nisDateInRange(date: Moment, from: Moment, to: Moment): boolean {\n return date.isBetween(from, to, 'day', '[]');\n }\n/**\n * @param {?} obj\n * @param {?} format\n * @param {?} props\n * @return {?}\n */\nconvertPropsToMoment(obj: {[key: string]: any}, format: string, props: string[]) {\n props.forEach((prop) => {\n if (obj.hasOwnProperty(prop)) {\n obj[prop] = this.convertToMoment(obj[prop], format);\n }\n });\n }\n/**\n * @template T\n * @param {?} prevConf\n * @param {?} currentConf\n * @return {?}\n */\nshouldResetCurrentView<T extends ICalendarInternal>(prevConf: T, currentConf: T): boolean {\n if (prevConf && currentConf) {\n if (!prevConf.min && currentConf.min) {\n return true;\n } else if (prevConf.min && currentConf.min && !prevConf.min.isSame(currentConf.min, 'd')) {\n return true;\n } else if (!prevConf.max && currentConf.max) {\n return true;\n } else if (prevConf.max && currentConf.max && !prevConf.max.isSame(currentConf.max, 'd')) {\n return true;\n }\n\n return false;\n }\n\n return false;\n }\n/**\n * @param {?} elem\n * @return {?}\n */\ngetNativeElement(elem: HTMLElement | string): HTMLElement {\n if (!elem) {\n return null;\n } else if (typeof elem === 'string') {\n return /** @type {?} */(( <HTMLElement>document.querySelector(elem)));\n } else {\n return elem;\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction UtilsService_tsickle_Closure_declarations() {\n/** @type {?} */\nUtilsService.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nUtilsService.ctorParameters;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import {Injectable} from '@angular/core';\nimport {TDrops, TOpens} from '../../types/poistions.type';\nexport class DomHelper {\n/**\n * @param {?} element\n * @param {?} container\n * @param {?} anchor\n * @param {?} drops\n * @return {?}\n */\nprivate static setYAxisPosition(element: HTMLElement, container: HTMLElement, anchor: HTMLElement, drops: TDrops) {\n const /** @type {?} */ anchorRect = anchor.getBoundingClientRect();\n const /** @type {?} */ containerRect = container.getBoundingClientRect();\n const /** @type {?} */ bottom = anchorRect.bottom - containerRect.top;\n const /** @type {?} */ top = anchorRect.top - containerRect.top;\n\n if (drops === 'down') {\n element.style.top = (bottom + 1 + 'px');\n } else {\n element.style.top = (top - 1 - element.scrollHeight) + 'px';\n }\n }\n/**\n * @param {?} element\n * @param {?} container\n * @param {?} anchor\n * @param {?} dimElem\n * @param {?} opens\n * @return {?}\n */\nprivate static setXAxisPosition(element: HTMLElement, container: HTMLElement, anchor: HTMLElement, dimElem: HTMLElement, opens: TOpens) {\n const /** @type {?} */ anchorRect = anchor.getBoundingClientRect();\n const /** @type {?} */ containerRect = container.getBoundingClientRect();\n const /** @type {?} */ left = anchorRect.left - containerRect.left;\n\n if (opens === 'right') {\n element.style.left = left + 'px';\n } else {\n element.style.left = left - dimElem.offsetWidth + anchor.offsetWidth + 'px';\n }\n }\n/**\n * @param {?} el\n * @return {?}\n */\nprivate static isTopInView(el: HTMLElement): boolean {\n const {top} = el.getBoundingClientRect();\n return (top >= 0);\n }\n/**\n * @param {?} el\n * @return {?}\n */\nprivate static isBottomInView(el: HTMLElement): boolean {\n const {bottom} = el.getBoundingClientRect();\n return (bottom <= window.innerHeight);\n }\n/**\n * @param {?} el\n * @return {?}\n */\nprivate static isLeftInView(el: HTMLElement): boolean {\n const {left} = el.getBoundingClientRect();\n return (left >= 0);\n }\n/**\n * @param {?} el\n * @return {?}\n */\nprivate static isRightInView(el: HTMLElement): boolean {\n const {right} = el.getBoundingClientRect();\n return (right <= window.innerWidth);\n }\n/**\n * @param {?} config\n * @return {?}\n */\nappendElementToPosition(config: IAppendToArgs): void {\n const {container, element} = config;\n\n if (!container.style.position || container.style.position === 'static') {\n container.style.position = 'relative';\n }\n\n if (element.style.position !== 'absolute') {\n element.style.position = 'absolute';\n }\n\n element.style.visibility = 'hidden';\n\n setTimeout(() => {\n this.setElementPosition(config);\n\n element.style.visibility = 'visible';\n });\n }\n/**\n * @param {?} __0\n * @return {?}\n */\nsetElementPosition({element, container, anchor, dimElem, drops, opens}: IAppendToArgs) {\n DomHelper.setYAxisPosition(element, container, anchor, 'down');\n DomHelper.setXAxisPosition(element, container, anchor, dimElem, 'right');\n\n if (drops !== 'down' && drops !== 'up') {\n if (DomHelper.isBottomInView(dimElem)) {\n DomHelper.setYAxisPosition(element, container, anchor, 'down');\n } else if (DomHelper.isTopInView(dimElem)) {\n DomHelper.setYAxisPosition(element, container, anchor, 'up');\n }\n } else {\n DomHelper.setYAxisPosition(element, container, anchor, drops);\n }\n\n if (opens !== 'left' && opens !== 'right') {\n if (DomHelper.isRightInView(dimElem)) {\n DomHelper.setXAxisPosition(element, container, anchor, dimElem, 'right');\n } else if (DomHelper.isLeftInView(dimElem)) {\n DomHelper.setXAxisPosition(element, container, anchor, dimElem, 'left');\n }\n } else {\n DomHelper.setXAxisPosition(element, container, anchor, dimElem, opens);\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction DomHelper_tsickle_Closure_declarations() {\n/** @type {?} */\nDomHelper.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nDomHelper.ctorParameters;\n}\n\n\nexport interface IAppendToArgs {\n container: HTMLElement;\n element: HTMLElement;\n anchor: HTMLElement;\n dimElem: HTMLElement;\n drops: TDrops;\n opens: TOpens;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","\nexport type ECalendarValue = number;\nexport let ECalendarValue: any = {};\nECalendarValue.Moment = 1;\nECalendarValue.MomentArr = 2;\nECalendarValue.String = 3;\nECalendarValue.StringArr = 4;\nECalendarValue[ECalendarValue.Moment] = \"Moment\";\nECalendarValue[ECalendarValue.MomentArr] = \"MomentArr\";\nECalendarValue[ECalendarValue.String] = \"String\";\nECalendarValue[ECalendarValue.StringArr] = \"StringArr\";\n\n","\nexport type ECalendarMode = number;\nexport let ECalendarMode: any = {};\nECalendarMode.Day = 0;\nECalendarMode.DayTime = 1;\nECalendarMode.Month = 2;\nECalendarMode.Time = 3;\nECalendarMode[ECalendarMode.Day] = \"Day\";\nECalendarMode[ECalendarMode.DayTime] = \"DayTime\";\nECalendarMode[ECalendarMode.Month] = \"Month\";\nECalendarMode[ECalendarMode.Time] = \"Time\";\n\n"],"names":["moment"],"mappings":";;;;AkBEO,IAAI,aAAa,GAAQ,EAAE,CAAC;AACnC,aAAa,CAAC,GAAG,GAAG,CAAC,CAAC;AACtB,aAAa,CAAC,OAAO,GAAG,CAAC,CAAC;AAC1B,aAAa,CAAC,KAAK,GAAG,CAAC,CAAC;AACxB,aAAa,CAAC,IAAI,GAAG,CAAC,CAAC;AACvB,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACzC,aAAa,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;AACjD,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;AAC7C,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;ADRpC,IAAI,cAAc,GAAQ,EAAE,CAAC;AACpC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1B,cAAc,CAAC,SAAS,GAAG,CAAC,CAAC;AAC7B,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1B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