"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 typescript_angular_utilities_1 = require("typescript-angular-utilities");
var __transform = typescript_angular_utilities_1.services.transform;
var columnContent_template_1 = require("../../templates/columnContent.template");
var sizeForBreakpoints_1 = require("./sizeForBreakpoints");
var CardHeaderColumnComponent = (function () {
    function CardHeaderColumnComponent(transformService, sizeForBreakpoints) {
        this.transformService = transformService;
        this.sizeForBreakpoints = sizeForBreakpoints;
    }
    Object.defineProperty(CardHeaderColumnComponent.prototype, "value", {
        get: function () {
            return this.transformService.getValue(this.item, this.column.getValue);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CardHeaderColumnComponent.prototype, "context", {
        get: function () {
            return {
                $implicit: this.value,
                item: this.item,
            };
        },
        enumerable: true,
        configurable: true
    });
    CardHeaderColumnComponent.prototype.ngOnInit = function () {
        this.sizeClass = this.sizeForBreakpoints.getClass(this.column.size, this.column.styling);
    };
    return CardHeaderColumnComponent;
}());
__decorate([
    core_1.Input(),
    __metadata("design:type", Object)
], CardHeaderColumnComponent.prototype, "column", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Object)
], CardHeaderColumnComponent.prototype, "item", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", columnContent_template_1.ColumnContentTemplate)
], CardHeaderColumnComponent.prototype, "columnTemplate", void 0);
CardHeaderColumnComponent = __decorate([
    core_1.Component({
        selector: 'rlCardHeaderColumn',
        template: require('./headerColumn.html'),
        providers: [sizeForBreakpoints_1.SizeForBreakpoints],
        changeDetection: core_1.ChangeDetectionStrategy.OnPush,
    }),
    __metadata("design:paramtypes", [__transform.TransformService, sizeForBreakpoints_1.SizeForBreakpoints])
], CardHeaderColumnComponent);
exports.CardHeaderColumnComponent = CardHeaderColumnComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyQ29sdW1uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaGVhZGVyQ29sdW1uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxzQ0FBa0Y7QUFFbEYsNkVBQXdEO0FBQ3hELElBQU8sV0FBVyxHQUFHLHVDQUFRLENBQUMsU0FBUyxDQUFDO0FBR3hDLGlGQUErRTtBQUMvRSwyREFBMEQ7QUFRMUQsSUFBYSx5QkFBeUI7SUFxQnJDLG1DQUFZLGdCQUE4QyxFQUN0RCxrQkFBc0M7UUFDekMsSUFBSSxDQUFDLGdCQUFnQixHQUFHLGdCQUFnQixDQUFDO1FBQ3pDLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxrQkFBa0IsQ0FBQztJQUM5QyxDQUFDO0lBcEJELHNCQUFJLDRDQUFLO2FBQVQ7WUFDQyxNQUFNLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDeEUsQ0FBQzs7O09BQUE7SUFFRCxzQkFBSSw4Q0FBTzthQUFYO1lBQ0MsTUFBTSxDQUFDO2dCQUNOLFNBQVMsRUFBRSxJQUFJLENBQUMsS0FBSztnQkFDckIsSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJO2FBQ2YsQ0FBQztRQUNILENBQUM7Ozt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