import { Host, h } from "@stencil/core";
export class SpwListTitle {
    get elementClass() {
        const hasLineClamp = this.lineClamp !== 'none';
        return {
            'spw-list-title': true,
            [`spw-list-title--has-clamp`]: hasLineClamp,
            [`spw-list-title--icon`]: !!this.icon,
            [`spw-list-title--clamp-${this.lineClamp}`]: true,
        };
    }
    render() {
        return (h(Host, { key: '5f4902a58a810d70afd1925d2aca0e854a34b69b' }, h("div", { key: 'cfd756e0515ddb1d2d45ad05848725a2f0db669f', class: this.elementClass }, this.icon && h("spw-icon", { key: '5d28205520fb71bcefb11d7b2bc4c444b36b8d2d', icon: this.icon }), h("div", { key: 'aa75745c5e013a19c7d21b2ab6f32e0c02bdd536', class: "spw-list-title__content" }, h("div", { key: '59fcba1d895676a9dc643ee500b270082ce29c1b', class: "spw-list-title__content-text" }, h("slot", { key: '5bd478c0bd0fb705217717b3c4480d4cd733ba01' }))))));
    }
    static get is() { return "spw-list-title"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["spw-list-title.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["spw-list-title.css"]
        };
    }
    static get properties() {
        return {
            "icon": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Sp\u00E9cifie une ic\u00F4ne \u00E0 c\u00F4t\u00E9 du titre"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "icon"
            },
            "lineClamp": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Sp\u00E9cifie un nombre de ligne maximum \u00E0 afficher"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "line-clamp"
            }
        };
    }
}
