import { Component, Input } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@seniorsistemas/angular-components/info-sign";
export class FieldLabelComponent {
    field;
    fieldContainerRef = null;
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FieldLabelComponent, selector: "s-field-label", inputs: { field: "field", fieldContainerRef: "fieldContainerRef" }, ngImport: i0, template: "<!--\n    Caso esse componente seja alterado/removido/movido,\n    alterar a label no row.component.ts\n-->\n\n@if (field.label) {\n    <span>\n        <label\n            *sInfoSign=\"\n                field.infoSign ?? '';\n                displayTime: field.displayTimeInfoSign ?? 0;\n                focusedInputRef: fieldContainerRef;\n                useFocusedInputRef: field.useInfoSignFocusedInputRef;\n            \"\n            [for]=\"field.name\"\n            class=\"inline-block\"\n            [ngClass]=\"{ required: field.required?.() }\"\n        >\n            {{ field.label }}\n        </label>\n    </span>\n}\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.InfoSignDirective, selector: "[sInfoSign]", inputs: ["sInfoSign", "sInfoSignDisplayTime", "sInfoSignFocusedInputRef", "sInfoSignUseFocusedInputRef"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldLabelComponent, decorators: [{
            type: Component,
            args: [{ selector: 's-field-label', template: "<!--\n    Caso esse componente seja alterado/removido/movido,\n    alterar a label no row.component.ts\n-->\n\n@if (field.label) {\n    <span>\n        <label\n            *sInfoSign=\"\n                field.infoSign ?? '';\n                displayTime: field.displayTimeInfoSign ?? 0;\n                focusedInputRef: fieldContainerRef;\n                useFocusedInputRef: field.useInfoSignFocusedInputRef;\n            \"\n            [for]=\"field.name\"\n            class=\"inline-block\"\n            [ngClass]=\"{ required: field.required?.() }\"\n        >\n            {{ field.label }}\n        </label>\n    </span>\n}\n" }]
        }], propDecorators: { field: [{
                type: Input,
                args: [{ required: true }]
            }], fieldContainerRef: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbGFiZWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9zcmMvbGliL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL2ZpZWxkLWxhYmVsL2ZpZWxkLWxhYmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9keW5hbWljLWZvcm0vc3JjL2xpYi9keW5hbWljLWZvcm0vY29tcG9uZW50cy9maWVsZC1sYWJlbC9maWVsZC1sYWJlbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQVFqRCxNQUFNLE9BQU8sbUJBQW1CO0lBRXJCLEtBQUssQ0FBUztJQUdkLGlCQUFpQixHQUFtQyxJQUFJLENBQUM7d0dBTHZELG1CQUFtQjs0RkFBbkIsbUJBQW1CLHlIQ1JoQyw0bkJBc0JBOzs0RkRkYSxtQkFBbUI7a0JBSi9CLFNBQVM7K0JBQ0ksZUFBZTs4QkFLbEIsS0FBSztzQkFEWCxLQUFLO3VCQUFDLEVBQUUsUUFBUSxFQUFFLElBQUksRUFBRTtnQkFJbEIsaUJBQWlCO3NCQUR2QixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1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1cImZpZWxkLm5hbWVcIlxuICAgICAgICAgICAgY2xhc3M9XCJpbmxpbmUtYmxvY2tcIlxuICAgICAgICAgICAgW25nQ2xhc3NdPVwieyByZXF1aXJlZDogZmllbGQucmVxdWlyZWQ/LigpIH1cIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyBmaWVsZC5sYWJlbCB9fVxuICAgICAgICA8L2xhYmVsPlxuICAgIDwvc3Bhbj5cbn1cbiJdfQ==