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);
};
import { Component, Input } from '@angular/core';
import { CaseField } from '../../../domain/definition/case-field.model';
var LabelFieldComponent = /** @class */ (function () {
    function LabelFieldComponent() {
        this.caseFields = [];
    }
    __decorate([
        Input(),
        __metadata("design:type", CaseField)
    ], LabelFieldComponent.prototype, "caseField", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Array)
    ], LabelFieldComponent.prototype, "caseFields", void 0);
    LabelFieldComponent = __decorate([
        Component({
            selector: 'ccd-label-field',
            template: "\n    <dl class=\"case-field\" ccdLabelSubstitutor [caseField]=\"caseField\" [contextFields]=\"caseFields\" [id]=\"caseField.id\">\n      <dt>\n        <ccd-markdown [content]=\"caseField.value || caseField.label\"></ccd-markdown>\n      </dt>\n      <dd></dd>\n    </dl>\n  "
        })
    ], LabelFieldComponent);
    return LabelFieldComponent;
}());
export { LabelFieldComponent };
//# sourceMappingURL=label-field.component.js.map