import { h } from "@stencil/core";
export class EclPageHeaderMetaItem {
    constructor() {
        this.styleClass = '';
        this.icon = '';
    }
    getClass() {
        const styleClasses = [
            'ecl-page-header__meta-item',
            `sc-ecl-page-header-${this.theme}`,
            this.styleClass
        ];
        return styleClasses.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: 'ec6783998e775726aecb12483b278ff4580870e3', class: this.getClass() }, this.icon &&
            h("ecl-icon", { key: '6f082441396f226291c9b4e01f7ebe55d093c37d', icon: this.icon, size: "2xs", styleClass: "ecl-page-header__meta-icon" }), h("slot", { key: '766fe91f4d94ed153f37ee62ecb6506df55663f4' })));
    }
    static get is() { return "ecl-page-header-meta-item"; }
    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"
            },
            "icon": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "icon",
                "defaultValue": "''"
            }
        };
    }
}
