/**
 * @fileoverview added by tsickle
 * Generated from: components/schedule/views/day-list/day-list.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, ChangeDetectorRef, Output, EventEmitter } from '@angular/core';
export class DayListComponent {
    /**
     * @param {?} changeDetectionRef
     */
    constructor(changeDetectionRef) {
        this.changeDetectionRef = changeDetectionRef;
        this.currentDate = new Date();
        this.onEventDbClick = new EventEmitter();
        this.onEventClick = new EventEmitter();
        this.onEventMouseover = new EventEmitter();
        this.onEventMouseout = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngOnInit() { }
    /**
     * @param {?} changes
     * @return {?}
     */
    ngOnChanges(changes) {
        if (!changes['events']) {
            return;
        }
        if (!changes['events'].firstChange) {
            this.changeDetectionRef.detectChanges();
        }
    }
}
DayListComponent.decorators = [
    { type: Component, args: [{
                selector: 'tl-day-list',
                template: "<div class=\"ui-schedule-daylist-wrapper\"\n     [tlBlockui]=\"events?.length === 0\"\n     [blockuiConfig]=\"{'spin': false, 'icon': 'ion-calendar', 'message': 'No events to display'}\"\n     [dimensionsFrom]=\"'parent'\"\n>\n  <div class=\"ui-schedule-daylist-events\">\n    <div class=\"ui-schedule-event-box\"\n         *ngFor=\"let event of events; let index = index\"\n         [style.borderTopColor]=\"statusConfig ? statusConfig[event.status]?.color : '#FFFFFF'\"\n         [tooltip]=\"{text: statusConfig ? statusConfig[event.status]?.description : '' , placement: 'left-center'}\"\n         (click)=\"onEventClick.emit(event)\"\n         (dblclick)=\"onEventDbClick.emit(event)\"\n         (mouseover)=\"onEventMouseout.emit(event)\"\n         (mouseout)=\"onEventMouseout.emit(event)\"\n    >\n      <div class=\"ui-event-hour\">{{event.date.start | date: 'HH:mm'}} - {{event.date.end | date: 'HH:mm'}}</div>\n      <div class=\"ui-schedule-description\">\n        <div class=\"ui-event-title\">{{event.title}}</div>\n        <div class=\"ui-event-detail\">{{event.detail}}</div>\n      </div>\n    </div>\n  </div>\n</div>\n",
                styles: [".ui-schedule-daylist-wrapper{background-color:#f5f5f5}.ui-schedule-event-box{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;background-color:#fff;border-bottom:1px solid #d6d6d6;border-top-style:solid;border-top-width:5px;box-sizing:border-box;cursor:pointer;display:flex;font-family:Segoe UI,Lato,\"sans-serif\",Arial;font-size:1em;height:50px;margin-bottom:5px;user-select:none}.ui-schedule-event-box>.ui-event-hour{align-items:center;color:#454e58;display:flex;flex-basis:100px;font-size:1em;justify-content:center}.ui-schedule-event-box>.ui-schedule-description{display:flex;flex-basis:100%;flex-direction:column;justify-content:center}.ui-schedule-event-box>.ui-schedule-description>.ui-event-title{color:#454e58;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ui-schedule-event-box>.ui-schedule-description>.ui-event-detail{color:#949799;font-size:1em;text-overflow:ellipsis;white-space:nowrap}"]
            }] }
];
/** @nocollapse */
DayListComponent.ctorParameters = () => [
    { type: ChangeDetectorRef }
];
DayListComponent.propDecorators = {
    events: [{ type: Input }],
    statusConfig: [{ type: Input }],
    currentDate: [{ type: Input }],
    onEventDbClick: [{ type: Output }],
    onEventClick: [{ type: Output }],
    onEventMouseover: [{ type: Output }],
    onEventMouseout: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    DayListComponent.prototype.events;
    /** @type {?} */
    DayListComponent.prototype.statusConfig;
    /** @type {?} */
    DayListComponent.prototype.currentDate;
    /** @type {?} */
    DayListComponent.prototype.onEventDbClick;
    /** @type {?} */
    DayListComponent.prototype.onEventClick;
    /** @type {?} */
    DayListComponent.prototype.onEventMouseover;
    /** @type {?} */
    DayListComponent.prototype.onEventMouseout;
    /**
     * @type {?}
     * @private
     */
    DayListComponent.prototype.changeDetectionRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF5LWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi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