import { Component, input } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FieldLabelComponent } from '@seniorsistemas/angular-components/dynamic-form';
import { EditorComponent } from '@seniorsistemas/angular-components/editor';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
export class EditorFieldComponent {
    field = input.required();
    formControl = input.required();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: EditorFieldComponent, isStandalone: true, selector: "ng-component", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let _field = field();\n<s-field-label [field]=\"_field\"></s-field-label>\n\n<s-editor\n    [formControl]=\"formControl()\"\n    [formats]=\"_field.formats\"\n    [readonly]=\"_field.readonly ?? false\"\n    [style]=\"_field.style\"\n    [extensions]=\"_field.extensions ?? []\"\n>\n</s-editor>\n", dependencies: [{ kind: "component", type: EditorComponent, selector: "s-editor", inputs: ["readonly", "formats", "placeholder", "style", "styleClass", "extensions"], outputs: ["editorInit", "textChange", "selectionChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FieldLabelComponent, selector: "s-field-label", inputs: ["field", "fieldContainerRef"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorFieldComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [EditorComponent, ReactiveFormsModule, FieldLabelComponent], template: "@let _field = field();\n<s-field-label [field]=\"_field\"></s-field-label>\n\n<s-editor\n    [formControl]=\"formControl()\"\n    [formats]=\"_field.formats\"\n    [readonly]=\"_field.readonly ?? false\"\n    [style]=\"_field.style\"\n    [extensions]=\"_field.extensions ?? []\"\n>\n</s-editor>\n" }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9vcHRpb25hbC1maWVsZHMvZWRpdG9yL2VkaXRvci1maWVsZC9lZGl0b3ItZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL29wdGlvbmFsLWZpZWxkcy9lZGl0b3IvZWRpdG9yLWZpZWxkL2VkaXRvci1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQWUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRSxPQUFPLEVBQTRCLG1CQUFtQixFQUFFLE1BQU0saURBQWlELENBQUM7QUFDaEgsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDJDQUEyQyxDQUFDOzs7QUFRNUUsTUFBTSxPQUFPLG9CQUFvQjtJQUM3QixLQUFLLEdBQUcsS0FBSyxDQUFDLFFBQVEsRUFBcUIsQ0FBQztJQUM1QyxXQUFXLEdBQUcsS0FBSyxDQUFDLFFBQVEsRUFBZSxDQUFDO3dHQUZuQyxvQkFBb0I7NEZBQXBCLG9CQUFvQixvVkNaakMsMlNBV0EsNENERmMsZUFBZSxtTUF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