import { __decorate } from "tslib";
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { LayoutEditorMetadata } from '@anglr/dynamic/layout-editor';
import { CastPipesModule, HostDisplayBlockStyle } from '@anglr/common';
import { FormComponentBase, FormComponentControlSAPipe } from '@anglr/dynamic/form';
import { FormPipesModule } from '@anglr/common/forms';
import { RelationsEditorMetadata } from '@anglr/dynamic/relations-editor';
import { MaterialPeriodLayoutMetadataLoader, MaterialPeriodRelationsMetadataLoader } from './period.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";
import * as i4 from "@angular/material/form-field";
import * as i5 from "@angular/material/input";
/**
 * Component used for displaying material period
 */
let MaterialPeriodSAComponent = class MaterialPeriodSAComponent extends FormComponentBase {
};
MaterialPeriodSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MaterialPeriodSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
MaterialPeriodSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: MaterialPeriodSAComponent, isStandalone: true, selector: "material-period", usesInheritance: true, ngImport: i0, template: "<mat-form-field [appearance]=\"options?.appearance|asRequired\">\n    <mat-label>{{options?.label}}</mat-label>\n    <input matInput [attr.placeholder]=\"options?.placeholder\" [formControl]=\"control|asFormControl|asRequired\">\n    <mat-hint>{{options?.hint}}</mat-hint>\n</mat-form-field>", 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: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl],      input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
MaterialPeriodSAComponent = __decorate([
    RelationsEditorMetadata(MaterialPeriodRelationsMetadataLoader),
    LayoutEditorMetadata(MaterialPeriodLayoutMetadataLoader)
], MaterialPeriodSAComponent);
export { MaterialPeriodSAComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MaterialPeriodSAComponent, decorators: [{
            type: Component,
            args: [{ selector: 'material-period', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
                        FormPipesModule,
                        CastPipesModule,
                        FormComponentControlSAPipe,
                        ReactiveFormsModule,
                        MatFormFieldModule,
                        MatInputModule,
                    ], template: "<mat-form-field [appearance]=\"options?.appearance|asRequired\">\n    <mat-label>{{options?.label}}</mat-label>\n    <input matInput [attr.placeholder]=\"options?.placeholder\" [formControl]=\"control|asFormControl|asRequired\">\n    <mat-hint>{{options?.hint}}</mat-hint>\n</mat-form-field>", styles: [":host{display: block;}"] }]
        }] });
//# sourceMappingURL=period.component.js.map