import { Host, h } from "@stencil/core";
export class SpwCardExcerpt {
    constructor() {
        /** Permet de limiter ou pas le nombre de lignes affichées */
        this.lineClamp = 3;
    }
    get elementClass() {
        const hasLineClamp = this.lineClamp !== 'none';
        return {
            'spw-card-excerpt': true,
            'spw-card-excerpt--has-clamp': hasLineClamp,
            [`spw-card-excerpt--clamp-${this.lineClamp}`]: hasLineClamp,
        };
    }
    render() {
        return (h(Host, { key: '94f53e8e2d7a9c333ab2320ca3f37d13657fece3' }, h("div", { key: '84c391bea45ccec30809e488c8ff12d2e921edbb', class: this.elementClass }, h("slot", { key: 'd9b85510693fe08e8b9951ab7395dca3ebfaa0d9' }))));
    }
    static get is() { return "spw-card-excerpt"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["spw-card-excerpt.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["spw-card-excerpt.css"]
        };
    }
    static get properties() {
        return {
            "lineClamp": {
                "type": "any",
                "mutable": false,
                "complexType": {
                    "original": "number | 'none'",
                    "resolved": "\"none\" | number",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Permet de limiter ou pas le nombre de lignes affich\u00E9es"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "line-clamp",
                "defaultValue": "3"
            }
        };
    }
}
