import { __decorate } from "tslib";
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FormComponentControlSAPipe, FormComponentBase } from '@anglr/dynamic/form';
import { LayoutEditorMetadata } from '@anglr/dynamic/layout-editor';
import { RelationsEditorMetadata } from '@anglr/dynamic/relations-editor';
import { CastPipesModule, HostDisplayBlockStyle } from '@anglr/common';
import { FormPipesModule } from '@anglr/common/forms';
import { TextFieldLayoutMetadataLoader, TextFieldRelationsMetadataLoader } from './textField.metadata';
import * as i0 from "@angular/core";
import * as i1 from "@anglr/common/forms";
import * as i2 from "@anglr/common";
import * as i3 from "@angular/forms";
/**
 * Component used for displaying  text field
 */
let TextFieldSAComponent = class TextFieldSAComponent extends FormComponentBase {
};
TextFieldSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextFieldSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
TextFieldSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: TextFieldSAComponent, isStandalone: true, selector: "form-text-field", usesInheritance: true, ngImport: i0, template: "<label>{{options?.label}}</label>\n<input type=\"text\" [attr.placeholder]=\"options?.placeholder\" [formControl]=\"control|asFormControl|asRequired\"/>", styles: [":host{display: block;}"], dependencies: [{ kind: "ngmodule", type: FormPipesModule }, { kind: "pipe", type: i1.AsFormControlPipe, name: "asFormControl" }, { kind: "ngmodule", type: CastPipesModule }, { kind: "pipe", type: i2.AsRequiredTypePipe, name: "asRequired" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
TextFieldSAComponent = __decorate([
    RelationsEditorMetadata(TextFieldRelationsMetadataLoader),
    LayoutEditorMetadata(TextFieldLayoutMetadataLoader)
], TextFieldSAComponent);
export { TextFieldSAComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextFieldSAComponent, decorators: [{
            type: Component,
            args: [{ selector: 'form-text-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
                        FormPipesModule,
                        CastPipesModule,
                        FormComponentControlSAPipe,
                        ReactiveFormsModule,
                        CommonModule,
                    ], template: "<label>{{options?.label}}</label>\n<input type=\"text\" [attr.placeholder]=\"options?.placeholder\" [formControl]=\"control|asFormControl|asRequired\"/>", styles: [":host{display: block;}"] }]
        }] });
//# sourceMappingURL=textField.component.js.map