import { h } from "@stencil/core";
export class EclTabsItem {
    constructor() {
        this.styleClass = '';
        this.path = '';
        this.elId = `ecl-tabs-item-${Math.random().toString(36).substr(2, 9)}}`;
        this.isCurrent = false;
    }
    getClass() {
        const classes = [
            `ecl-tabs__item`,
            `sc-ecl-tabs-${this.theme}`,
            this.styleClass
        ];
        return classes.join(' ');
    }
    componentWillLoad() {
        var _a;
        this.theme = (_a = document.documentElement.getAttribute('data-ecl-theme')) !== null && _a !== void 0 ? _a : (this.theme || 'ec');
    }
    render() {
        return (h("div", { key: '86d3d8ef9e32fda300450c408bad01eee101ff63', class: this.getClass() }, h("ecl-link", { key: '87c36a37735f0478c559d8482c998ac32f78e289', "style-class": `ecl-tabs__link ${this.isCurrent ? 'ecl-tabs__link--active' : ''} sc-ecl-tabs-${this.theme}`, "el-id": this.elId, path: this.path, "aria-selected": this.isCurrent }, h("slot", { key: '4f6cc4c7a2fc06723f44c1b50239d0138ed64866' }))));
    }
    static get is() { return "ecl-tabs-item"; }
    static get encapsulation() { return "scoped"; }
    static get properties() {
        return {
            "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": "''"
            },
            "theme": {
                "type": "string",
                "mutable": true,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "theme"
            },
            "path": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "path",
                "defaultValue": "''"
            },
            "elId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "el-id",
                "defaultValue": "`ecl-tabs-item-${Math.random().toString(36).substr(2, 9)}}`"
            },
            "isCurrent": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "is-current",
                "defaultValue": "false"
            }
        };
    }
}
