import { Component, Input } from '@angular/core';
import { NgClass } from '@angular/common';
import { InfoSignModule } from '@seniorsistemas/angular-components/info-sign';
import * as i0 from "@angular/core";
import * as i1 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, isStandalone: true, selector: "s-field-label", inputs: { field: "field", fieldContainerRef: "fieldContainerRef" }, ngImport: i0, template: "@if (field.label) {\n    <span>\n        <label\n            *sInfoSign=\"\n                field.infoSign ?? '';\n                displayTime: field.displayTimeInfoSign ?? 0;\n                focusedInputRef: fieldContainerRef;\n                useFocusedInputRef: field.useInfoSignFocusedInputRef ?? false\n            \"\n            [for]=\"field.name\"\n            class=\"inline-block\"\n            [ngClass]=\"{ required: field.required?.() }\"\n        >\n            {{ field.label }}\n        </label>\n    </span>\n}\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: InfoSignModule }, { kind: "directive", type: i1.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', imports: [NgClass, InfoSignModule], standalone: true, template: "@if (field.label) {\n    <span>\n        <label\n            *sInfoSign=\"\n                field.infoSign ?? '';\n                displayTime: field.displayTimeInfoSign ?? 0;\n                focusedInputRef: fieldContainerRef;\n                useFocusedInputRef: field.useInfoSignFocusedInputRef ?? false\n            \"\n            [for]=\"field.name\"\n            class=\"inline-block\"\n            [ngClass]=\"{ required: field.required?.() }\"\n        >\n            {{ field.label }}\n        </label>\n    </span>\n}\n\n" }]
        }], propDecorators: { field: [{
                type: Input,
                args: [{ required: true }]
            }], fieldContainerRef: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbGFiZWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9zcmMvbGliL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL2ZpZWxkLWxhYmVsL2ZpZWxkLWxhYmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9keW5hbWljLWZvcm0vc3JjL2xpYi9keW5hbWljLWZvcm0vY29tcG9uZW50cy9maWVsZC1sYWJlbC9maWVsZC1sYWJlbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVqRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDMUMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDhDQUE4QyxDQUFDOzs7QUFROUUsTUFBTSxPQUFPLG1CQUFtQjtJQUVyQixLQUFLLENBQWU7SUFHcEIsaUJBQWlCLEdBQW1DLElBQUksQ0FBQzt3R0FMdkQsbUJBQW1COzRGQUFuQixtQkFBbUIsNklDWGhDLHVoQkFrQkEsNENEVmMsT0FBTyxtRkFBRSxjQUFjOzs0RkFHeEIsbUJBQW1CO2tCQU4vQixTQUFTOytCQUNJLGVBQWUsV0FFaEIsQ0FBQyxPQUFPLEVBQUUsY0FB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