import { h } from "@stencil/core";
export class EclNavigationListItem {
    constructor() {
        this.theme = 'ec';
        this.image = undefined;
        this.imageAlt = undefined;
        this.styleClass = undefined;
        this.border = true;
    }
    getClass() {
        const styleClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__item`,
            this.styleClass
        ];
        if (!this.border) {
            styleClasses.push('ecl-navigation-list__item--no-border');
        }
        return styleClasses.join(' ');
    }
    getImgClass() {
        const imgClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__image`,
        ];
        return imgClasses.join(' ');
    }
    render() {
        return (h("div", { class: this.getClass() }, this.image ?
            h("ecl-picture", { styleClass: `ecl-navigation-list__picture sc-ecl-navigation-list-${this.theme}`, image: this.image, imgClass: this.getImgClass(), imageAlt: this.imageAlt }, h("slot", { name: "sources" })) : '', h("slot", null)));
    }
    static get is() { return "ecl-navigation-list-item"; }
    static get encapsulation() { return "scoped"; }
    static get properties() {
        return {
            "theme": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "theme",
                "reflect": false,
                "defaultValue": "'ec'"
            },
            "image": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "image",
                "reflect": false
            },
            "imageAlt": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "image-alt",
                "reflect": false
            },
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "style-class",
                "reflect": false
            },
            "border": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "border",
                "reflect": false,
                "defaultValue": "true"
            }
        };
    }
}
//# sourceMappingURL=ecl-navigation-list-item.js.map
