import { h } from "@stencil/core";
export class EclInpageNavigationItem {
    getClass() {
        return [
            `ecl-inpage-navigation__item`,
            `sc-ecl-inpage-navigation-${this.theme}`,
            this.styleClass
        ].join(' ');
    }
    componentWillLoad() {
        var _a;
        this.theme = (_a = document.documentElement.getAttribute('data-ecl-theme')) !== null && _a !== void 0 ? _a : (this.theme || 'ec');
    }
    render() {
        return (h("li", { key: '7a40f31ddf800643c3258c370d060eb7194291f0', class: this.getClass() }, h("ecl-link", { key: '3ef2efe9da38a325b6cb344d4f708f2519781258', theme: this.theme, path: this.path, "style-class": `ecl-inpage-navigation__link sc-ecl-inpage-navigation-${this.theme}`, "data-ecl-inpage-navigation-link": true }, h("slot", { key: '10a19d9cd2e5930a90e07ec4a6919ad16c82bc4c' }))));
    }
    static get is() { return "ecl-inpage-navigation-item"; }
    static get properties() {
        return {
            "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"
            },
            "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"
            },
            "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"
            }
        };
    }
}
