import { h } from "@stencil/core";
import Indicator from "@ecl/indicator";
export class EclIndicator {
    constructor() {
        this.value = '';
        this.noScript = false;
        this.srLabel = '';
        this.styleClass = '';
    }
    getClass() {
        const styleClasses = ['ecl-indicator', this.styleClass];
        return styleClasses.join(' ').trim();
    }
    componentDidRender() {
        if (!this.noScript) {
            ;
            window.ECL = window.ECL || {};
            ECL.Indicator = Indicator;
            const indicator = new Indicator(this.el.firstElementChild);
            indicator.init();
        }
    }
    render() {
        return (h("span", { key: '79473f3934e0282e54c85f563640f71969083258', class: this.getClass(), "data-ecl-indicator": true }, h("span", { key: '2fc97601ef02f3895c85292e8ac62550e1526bbd', class: "ecl-indicator__value" }, this.value), this.srLabel &&
            h("span", { key: 'e9f96e6fa81280713b67c25c0a272852d5d65f52', class: "ecl-indicator__label" }, this.srLabel)));
    }
    static get is() { return "ecl-indicator"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "ec": ["./build/styles/ecl-indicator-ec.css"],
            "eu": ["./build/styles/ecl-indicator-eu.css"]
        };
    }
    static get styleUrls() {
        return {
            "ec": ["build/styles/ecl-indicator-ec.css"],
            "eu": ["build/styles/ecl-indicator-eu.css"]
        };
    }
    static get assetsDirs() { return ["build"]; }
    static get properties() {
        return {
            "value": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "value",
                "defaultValue": "''"
            },
            "noScript": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "no-script",
                "defaultValue": "false"
            },
            "srLabel": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "sr-label",
                "defaultValue": "''"
            },
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "style-class",
                "defaultValue": "''"
            }
        };
    }
    static get elementRef() { return "el"; }
}
