import { __decorate, __metadata } from "tslib";
import { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';
import { coerceBoolean } from '@eui/base';
import { ECLBaseDirective } from '../ecl-base.directive';
import * as i0 from "@angular/core";
export class EclRadioLabelComponent extends ECLBaseDirective {
    constructor() {
        super(...arguments);
        this.isInvalid = false;
        this.isDisabled = false;
    }
    get cssClasses() {
        return [
            super.getCssClasses('ecl-radio__label'),
        ].join(' ').trim();
    }
}
/** @nocollapse */ EclRadioLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: EclRadioLabelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclRadioLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.4", type: EclRadioLabelComponent, selector: "[eclRadioLabel]", inputs: { isInvalid: "isInvalid", isDisabled: "isDisabled" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<!--\n    @TODO\n    Uncomment markup below once eui is fixed\n    Due to eui css spillover following markup has to be commented to avoid double radioes being drawn\n    https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-3459\n-->\n\n<span class=\"ecl-radio__box\"\n    [class.ecl-radio__box--disabled]=\"isDisabled\"\n    [class.ecl-radio__box--invalid]=\"isInvalid\">\n</span>\n\n<ng-content></ng-content>\n", styles: [".ecl-radio__label{margin-top:0;margin-bottom:0}.ecl-radio__help{margin-bottom:0}.ecl-radio__box:before{box-sizing:initial}\n"], encapsulation: i0.ViewEncapsulation.None });
__decorate([
    coerceBoolean,
    __metadata("design:type", Object)
], EclRadioLabelComponent.prototype, "isInvalid", void 0);
__decorate([
    coerceBoolean,
    __metadata("design:type", Object)
], EclRadioLabelComponent.prototype, "isDisabled", void 0);
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: EclRadioLabelComponent, decorators: [{
            type: Component,
            args: [{ selector: '[eclRadioLabel]', encapsulation: ViewEncapsulation.None, template: "<!--\n    @TODO\n    Uncomment markup below once eui is fixed\n    Due to eui css spillover following markup has to be commented to avoid double radioes being drawn\n    https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-3459\n-->\n\n<span class=\"ecl-radio__box\"\n    [class.ecl-radio__box--disabled]=\"isDisabled\"\n    [class.ecl-radio__box--invalid]=\"isInvalid\">\n</span>\n\n<ng-content></ng-content>\n", styles: [".ecl-radio__label{margin-top:0;margin-bottom:0}.ecl-radio__help{margin-bottom:0}.ecl-radio__box:before{box-sizing:initial}\n"] }]
        }], propDecorators: { isInvalid: [{
                type: Input
            }], isDisabled: [{
                type: Input
            }], cssClasses: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLXJhZGlvLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtcmFkaW8vZWNsLXJhZGlvLWxhYmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtcmFkaW8vZWNsLXJhZGlvLWxhYmVsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFRekQsTUFBTSxPQUFPLHNCQUF1QixTQUFRLGdCQUFnQjtJQU41RDs7UUFPNEIsY0FBUyxHQUFtQixLQU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