"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var sortDirection_1 = require("../../sorts/sortDirection");
var columnHeader_template_1 = require("../../templates/columnHeader.template");
var sizeForBreakpoints_1 = require("../../card/headerColumn/sizeForBreakpoints");
var ColumnHeaderComponent = (function () {
    function ColumnHeaderComponent(sizeForBreakpoints) {
        this.sort = new core_1.EventEmitter();
        this.sortDirection = sortDirection_1.SortDirection;
        this.sizeForBreakpoints = sizeForBreakpoints;
    }
    ColumnHeaderComponent.prototype.ngOnInit = function () {
        this.sizeClass = this.sizeForBreakpoints.getClass(this.column.size, this.column.styling);
    };
    return ColumnHeaderComponent;
}());
__decorate([
    core_1.Input(),
    __metadata("design:type", Object)
], ColumnHeaderComponent.prototype, "column", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], ColumnHeaderComponent.prototype, "sorting", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", columnHeader_template_1.ColumnHeaderTemplate)
], ColumnHeaderComponent.prototype, "headerTemplate", void 0);
__decorate([
    core_1.Output(),
    __metadata("design:type", core_1.EventEmitter)
], ColumnHeaderComponent.prototype, "sort", void 0);
ColumnHeaderComponent = __decorate([
    core_1.Component({
        selector: 'rlColumnHeader',
        template: require('./columnHeader.html'),
        providers: [sizeForBreakpoints_1.SizeForBreakpoints],
        changeDetection: core_1.ChangeDetectionStrategy.OnPush,
    }),
    __metadata("design:paramtypes", [sizeForBreakpoints_1.SizeForBreakpoints])
], ColumnHeaderComponent);
exports.ColumnHeaderComponent = ColumnHeaderComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uSGVhZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29sdW1uSGVhZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxzQ0FBZ0c7QUFNaEcsMkRBQTJFO0FBQzNFLCtFQUE2RTtBQUM3RSxpRkFBZ0Y7QUFRaEYsSUFBYSxxQkFBcUI7SUFXakMsK0JBQVksa0JBQXNDO1FBUHhDLFNBQUksR0FBdUIsSUFBSSxtQkFBWSxFQUFRLENBQUM7UUFLOUQsa0JBQWEsR0FBb0IsNkJBQWEsQ0FBQztRQUc5QyxJQUFJLENBQUMsa0JBQWtCLEdBQUcsa0JBQWtCLENBQUM7SUFDOUMsQ0FBQztJQUVELHdDQUFRLEdBQVI7UUFDQyxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUMxRixDQUFDO0lBQ0YsNEJBQUM7QUFBRCxDQUFDLEFBbEJELElBa0JDO0FBakJTO0lBQVIsWUFBSyxFQUFFOztxREFBb0I7QUFDbkI7SUFBUixZQUFLLEVBQUU7O3NEQUFpQjtBQUNoQjtJQUFSLFlBQUssRUFBRTs4QkFBaUIsNENBQW9COzZEQUFDO0FBQ3BDO0lBQVQsYUFBTSxFQUFFOzhCQUFPLG1CQUFZO21EQUFrQztBQUpsRCxxQkFBcUI7SUFOakMsZ0JBQVMsQ0FBQztRQUNWLFFBQVEsRUFBRSxnQkFBZ0I7UUFDMUIsUUFBUSxFQUFFLE9BQU8sQ0FBQyxxQkFBcUIsQ0FBQztRQUN4QyxTQUFTLEVBQUUsQ0FBQyx1Q0FBa0IsQ0FBQztRQUMvQixlQUFlLEVBQUUsOEJBQXVCLENBQUMsTUFBTTtLQUMvQyxDQUFDO3FDQVkrQix1Q0FBa0I7R0FYdEMscUJBQXFCLENBa0JqQztBQWxCWSxzREFBcUIifQ==