import { Component, Input, TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class FormFieldComponent {
    constructor() {
    }
    ngOnInit() {
    }
    get labelType() {
        if (this.label instanceof TemplateRef) {
            return 'template';
        }
        return 'primitive';
    }
}
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.4", type: FormFieldComponent, selector: "ui-form-field", inputs: { label: "label" }, ngImport: i0, template: "<div class=\"label\" *ngIf=\"label\" [ngSwitch]=\"labelType\">\n  <ng-container *ngSwitchCase=\"'primitive'\">{{label}}</ng-container>\n  <ng-container *ngSwitchCase=\"'template'\" [ngTemplateOutlet]=\"label\"></ng-container>\n</div>\n<ng-content></ng-content>\n", styles: [":host{flex:1;padding:8px}.label{margin-bottom:5px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: FormFieldComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ui-form-field', template: "<div class=\"label\" *ngIf=\"label\" [ngSwitch]=\"labelType\">\n  <ng-container *ngSwitchCase=\"'primitive'\">{{label}}</ng-container>\n  <ng-container *ngSwitchCase=\"'template'\" [ngTemplateOutlet]=\"label\"></ng-container>\n</div>\n<ng-content></ng-content>\n", styles: [":host{flex:1;padding:8px}.label{margin-bottom:5px}\n"] }]
        }], ctorParameters: function () { return []; }, propDecorators: { label: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi91aS1raXQvc3JjL2xpYi9mb3JtL2Zvcm0tbGF5b3V0L2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi91aS1raXQvc3JjL2xpYi9mb3JtL2Zvcm0tbGF5b3V0L2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBVSxXQUFXLEVBQUMsTUFBTSxlQUFlLENBQUM7OztBQU9wRSxNQUFNLE9BQU8sa0JBQWtCO0lBSTdCO0lBQ0EsQ0FBQztJQUVELFFBQVE7SUFDUixDQUFDO0lBRUQsSUFBSSxTQUFTO1FBQ1gsSUFBSSxJQUFJLENBQUMsS0FBSyxZQUFZLFdBQVcsRUFBRTtZQUNyQyxPQUFPLFVBQVUsQ0FBQztTQUNuQjtRQUNELE9BQU8sV0FBVyxDQUFDO0lBQ3JCLENBQUM7OytHQWZVLGtCQUFrQjttR0FBbEIsa0JBQWtCLGlGQ1AvQix3UUFLQTsyRkRFYSxrQkFBa0I7a0JBTDlCLFNBQVM7K0JBQ0UsZUFBZTswRUFNaEIsS0FBSztzQkFBYixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtDb21wb25lbnQsIElucHV0LCBPbkluaXQsIFRlbXBsYXRlUmVmfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAndWktZm9ybS1maWVsZCcsXG4gIHRlbXBsYXRlVXJsO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