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