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";
import * as i1 from "../ecl-icon/ecl-icon.component";
export class EclCheckboxLabelComponent extends ECLBaseDirective {
    constructor() {
        super(...arguments);
        this.isInvalid = false;
        this.isDisabled = false;
    }
    get cssClasses() {
        return [
            super.getCssClasses('ecl-checkbox__label'),
        ].join(' ');
    }
}
/** @nocollapse */ EclCheckboxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: EclCheckboxLabelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclCheckboxLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.4", type: EclCheckboxLabelComponent, selector: "label[eclCheckboxLabel]", inputs: { isInvalid: "isInvalid", isDisabled: "isDisabled" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<span class=\"ecl-checkbox__box\"\n    [class.ecl-checkbox__box--disabled]=\"isDisabled\"\n    [class.ecl-checkbox__box--invalid]=\"isInvalid\">\n    <ecl-icon size=\"s\" icon=\"check\" class=\"ecl-checkbox__icon\"></ecl-icon>\n</span>\n\n<ng-content></ng-content>\n", styles: [".ecl-checkbox__label{margin-top:0;margin-bottom:0}.ecl-checkbox__help{margin-bottom:0}\n"], dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }], encapsulation: i0.ViewEncapsulation.None });
__decorate([
    coerceBoolean,
    __metadata("design:type", Object)
], EclCheckboxLabelComponent.prototype, "isInvalid", void 0);
__decorate([
    coerceBoolean,
    __metadata("design:type", Object)
], EclCheckboxLabelComponent.prototype, "isDisabled", void 0);
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: EclCheckboxLabelComponent, decorators: [{
            type: Component,
            args: [{ selector: 'label[eclCheckboxLabel]', encapsulation: ViewEncapsulation.None, template: "<span class=\"ecl-checkbox__box\"\n    [class.ecl-checkbox__box--disabled]=\"isDisabled\"\n    [class.ecl-checkbox__box--invalid]=\"isInvalid\">\n    <ecl-icon size=\"s\" icon=\"check\" class=\"ecl-checkbox__icon\"></ecl-icon>\n</span>\n\n<ng-content></ng-content>\n", styles: [".ecl-checkbox__label{margin-top:0;margin-bottom:0}.ecl-checkbox__help{margin-bottom:0}\n"] }]
        }], propDecorators: { isInvalid: [{
                type: Input
            }], isDisabled: [{
                type: Input
            }], cssClasses: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWNoZWNrYm94LWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtY2hlY2tib3gvZWNsLWNoZWNrYm94LWxhYmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtY2hlY2tib3gvZWNsLWNoZWNrYm94LWxhYmVsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7O0FBU3pELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxnQkFBZ0I7SUF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