import * as i0 from '@angular/core';
import { Input, ChangeDetectionStrategy, Component } from '@angular/core';
import * as i1 from '@angular/material/icon';
import { MatIconModule } from '@angular/material/icon';
import * as i2 from '@angular/material/tooltip';
import { MatTooltipModule } from '@angular/material/tooltip';

/* eslint-disable @angular-eslint/no-input-rename */
class SdLabel {
    label;
    set _label(val) {
        this.label = val;
    }
    description;
    set _description(description) {
        this.description = description;
    }
    required = false;
    set _required(val) {
        this.required = val === '' || !!val;
    }
    helperText;
    set _helperText(val) {
        this.helperText = val;
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: SdLabel, isStandalone: true, selector: "sd-label", inputs: { _label: ["label", "_label"], _description: ["description", "_description"], _required: ["required", "_required"], _helperText: ["helperText", "_helperText"] }, ngImport: i0, template: "@if (label) {\r\n  <div class=\"mb-0 d-flex\">\r\n    <div style=\"display: flex; align-items: center; gap: 4px\">\r\n      <span class=\"T14M\">{{ label }}</span>\r\n      @if (helperText) {\r\n        <mat-icon style=\"height: 1rem; width: 1rem; font-size: 1rem\" [matTooltip]=\"helperText\" matTooltipPosition=\"below\"\r\n          >info_outline</mat-icon\r\n        >\r\n      }\r\n    </div>\r\n    @if (required) {\r\n      <span class=\"text-error mb-2 T14M\">*</span>\r\n    }\r\n  </div>\r\n  @if (description) {\r\n    <div class=\"text-black400 T12R\">{{ description }}</div>\r\n  }\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdLabel, decorators: [{
            type: Component,
            args: [{ selector: 'sd-label', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, MatTooltipModule], template: "@if (label) {\r\n  <div class=\"mb-0 d-flex\">\r\n    <div style=\"display: flex; align-items: center; gap: 4px\">\r\n      <span class=\"T14M\">{{ label }}</span>\r\n      @if (helperText) {\r\n        <mat-icon style=\"height: 1rem; width: 1rem; font-size: 1rem\" [matTooltip]=\"helperText\" matTooltipPosition=\"below\"\r\n          >info_outline</mat-icon\r\n        >\r\n      }\r\n    </div>\r\n    @if (required) {\r\n      <span class=\"text-error mb-2 T14M\">*</span>\r\n    }\r\n  </div>\r\n  @if (description) {\r\n    <div class=\"text-black400 T12R\">{{ description }}</div>\r\n  }\r\n}\r\n" }]
        }], propDecorators: { _label: [{
                type: Input,
                args: ['label']
            }], _description: [{
                type: Input,
                args: ['description']
            }], _required: [{
                type: Input,
                args: ['required']
            }], _helperText: [{
                type: Input,
                args: ['helperText']
            }] } });

/**
 * Generated bundle index. Do not edit.
 */

export { SdLabel };
//# sourceMappingURL=sd-angular-core-forms-label.mjs.map
