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.2.6", ngImport: i0, type: EclRadioLabelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclRadioLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", 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.2.6", 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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