import { h } from "@stencil/core";
export class EclNavigationListItem {
    constructor() {
        this.theme = 'ec';
        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');
        }
        if (this.variant) {
            styleClasses.push(`ecl-navigation-list__item--${this.variant}`);
        }
        if (this.colorMode) {
            styleClasses.push(`ecl-color-mode--${this.colorMode}`);
        }
        return styleClasses.join(' ');
    }
    getImgClass() {
        const imgClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__image`,
        ];
        return imgClasses.join(' ');
    }
    render() {
        return (h("div", { key: '787c18e9207527d9e8c939716b42630f9358fb73', 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", { key: '783e46298fe324204c441a4e4e7995b435669754' })));
    }
    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": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "theme",
                "defaultValue": "'ec'"
            },
            "image": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "image"
            },
            "imageAlt": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "image-alt"
            },
            "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"
            },
            "border": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "border",
                "defaultValue": "true"
            },
            "colorMode": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "color-mode"
            },
            "variant": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "variant"
            }
        };
    }
}
