import { h } from "@stencil/core";
export class EclDateBlock {
    constructor() {
        this.styleClass = '';
        this.variant = 'default';
        this.theme = 'ec';
        this.day = undefined;
        this.month = undefined;
        this.year = undefined;
        this.monthFull = undefined;
        this.dateTime = undefined;
    }
    getClass() {
        return [
            `ecl-date-block`,
            `ecl-date-block--${this.variant}`,
            this.styleClass
        ].join(' ');
    }
    render() {
        return (h("time", { class: this.getClass() }, this.dateTime ?
            h("span", { class: "ecl-date-block__daytime" }, this.dateTime) : '', this.day ?
            h("span", { class: "ecl-date-block__day", "aria-hidden": "true" }, this.day) : '', this.month ?
            h("abbr", { title: this.monthFull, class: "ecl-date-block__month", "aria-hidden": "true" }, this.month) : '', this.year ?
            h("span", { class: "ecl-date-block__year", "aria-hidden": "true" }, this.year) : ''));
    }
    static get is() { return "ecl-date-block"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "ec": ["./build/styles/ecl-date-block-ec.css"],
            "eu": ["./build/styles/ecl-date-block-eu.css"]
        };
    }
    static get styleUrls() {
        return {
            "ec": ["build/styles/ecl-date-block-ec.css"],
            "eu": ["build/styles/ecl-date-block-eu.css"]
        };
    }
    static get properties() {
        return {
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "style-class",
                "reflect": false,
                "defaultValue": "''"
            },
            "variant": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "variant",
                "reflect": false,
                "defaultValue": "'default'"
            },
            "theme": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "theme",
                "reflect": false,
                "defaultValue": "'ec'"
            },
            "day": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "day",
                "reflect": false
            },
            "month": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "month",
                "reflect": false
            },
            "year": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "year",
                "reflect": false
            },
            "monthFull": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "month-full",
                "reflect": false
            },
            "dateTime": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "date-time",
                "reflect": false
            }
        };
    }
}
//# sourceMappingURL=ecl-date-block.js.map
