/**
 * @fileoverview added by tsickle
 * Generated from: components/schedule/parts/heading/heading.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, Output, EventEmitter, TemplateRef } from '@angular/core';
import { ScheduleI18n } from '../../i18n/schedule-i18n';
export class HeadingComponent {
    constructor() {
        this.views = ['day', 'dayList'];
        this.defaultView = 'day';
        this.currentDate = new Date();
        this.texts = ScheduleI18n;
        this.changeView = new EventEmitter();
        this.changeDate = new EventEmitter();
        this.newEventClick = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngOnInit() { }
}
HeadingComponent.decorators = [
    { type: Component, args: [{
                selector: 'tl-schedule-heading',
                template: "<div class=\"ui-schedule-heading-wrapper\">\n  <div class=\"ui-schedule-heading-views\">\n    <div class=\"ui-schedule-views-choices\">\n      <tl-button-group [height]=\"'30px'\" >\n        <tl-button-group-item *ngFor=\"let view of views\"\n                              [width]=\"'100px'\"\n                              [text]=\"texts.views[view]\"\n                              [selected]=\"view === defaultView\"\n                              (click)=\"changeView.emit(view)\"\n        >\n        </tl-button-group-item>\n      </tl-button-group>\n\n    </div>\n  </div>\n  <div class=\"ui-schedule-heading-navigator\">\n    <tl-navigator\n      [type]=\"'day'\"\n      [date]=\"currentDate\"\n      (clickNext)=\"changeDate.emit($event)\"\n      (clickPrevious)=\"changeDate.emit($event)\">\n    </tl-navigator>\n  </div>\n  <div class=\"ui-schedule-heading-tools\">\n    <ng-container *ngTemplateOutlet=\"eventButtonTemplate?eventButtonTemplate:defaultButton\"></ng-container>\n    <ng-template #defaultButton>\n      <tl-button (click)=\"newEventClick.emit()\" [text]=\"texts.buttons.addEvent\" [iconBeforeText]=\"'fas fa-plus'\" color=\"primary\"></tl-button>\n    </ng-template>\n  </div>\n</div>\n",
                styles: [".ui-schedule-heading-wrapper{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:row;height:100%;justify-content:space-between;padding:10px}.ui-schedule-heading-views{flex-basis:50%;height:100%;text-align:left}.ui-schedule-heading-navigator{flex-basis:185px;height:34px}.ui-schedule-heading-tools{flex-basis:50%;height:34px;text-align:right}"]
            }] }
];
/** @nocollapse */
HeadingComponent.ctorParameters = () => [];
HeadingComponent.propDecorators = {
    views: [{ type: Input }],
    defaultView: [{ type: Input }],
    currentDate: [{ type: Input }],
    texts: [{ type: Input }],
    eventButtonTemplate: [{ type: Input }],
    changeView: [{ type: Output }],
    changeDate: [{ type: Output }],
    newEventClick: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    HeadingComponent.prototype.views;
    /** @type {?} */
    HeadingComponent.prototype.defaultView;
    /** @type {?} */
    HeadingComponent.prototype.currentDate;
    /** @type {?} */
    HeadingComponent.prototype.texts;
    /** @type {?} */
    HeadingComponent.prototype.eventButtonTemplate;
    /** @type {?} */
    HeadingComponent.prototype.changeView;
    /** @type {?} */
    HeadingComponent.prototype.changeDate;
    /** @type {?} */
    HeadingComponent.prototype.newEventClick;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90cnVseS11aS9zcmMvY29tcG9uZW50cy9zY2hlZHVsZS9wYXJ0cy9oZWFkaW5nL2hlYWRpbmcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFMUYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBT3hELE1BQU0sT0FBTyxnQkFBZ0I7SUFrQjNCO1FBaEJTLFVBQUssR0FBMEUsQ0FBQyxLQUFLLEVBQUUsU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