import { h } from "@stencil/core";
export class SpwSeparator {
    constructor() {
        /** Permet de choisir la surface du séparateur (clair ou sombre) */
        this.surface = 'dark';
        /** Permet de définir la direction du séparateur */
        this.direction = 'horizontal';
        /** Définit l'épaisseur du séparateur */
        this.thickness = 1;
        /** Largeur du séparateur (par défaut 100% si non spécifié) */
        this.width = '100%';
        /** Hauteur du séparateur (par défaut 100% si non spécifié) */
        this.height = '100%';
    }
    get elementClass() {
        return {
            'spw-separator': true,
            [`spw-separator--${this.surface}`]: true,
            [`spw-separator--${this.direction}`]: true,
            [`spw-separator--thickness-${this.thickness}`]: true,
        };
    }
    get style() {
        return {
            width: this.direction === 'horizontal' ? `${this.width}px` : `${this.thickness}px`,
            height: this.direction === 'vertical' ? `${this.height}px` : `${this.thickness}px`,
        };
    }
    render() {
        return h("div", { key: 'd74452bbc8830cf494100c3f6510988104a5b754', class: this.elementClass, style: this.style });
    }
    static get is() { return "spw-separator"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["spw-separator.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["spw-separator.css"]
        };
    }
    static get properties() {
        return {
            "surface": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'dark' | 'light'",
                    "resolved": "\"dark\" | \"light\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Permet de choisir la surface du s\u00E9parateur (clair ou sombre)"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "surface",
                "defaultValue": "'dark'"
            },
            "direction": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'vertical' | 'horizontal'",
                    "resolved": "\"horizontal\" | \"vertical\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Permet de d\u00E9finir la direction du s\u00E9parateur"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "direction",
                "defaultValue": "'horizontal'"
            },
            "thickness": {
                "type": "number",
                "mutable": false,
                "complexType": {
                    "original": "1 | 2",
                    "resolved": "1 | 2",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "D\u00E9finit l'\u00E9paisseur du s\u00E9parateur"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "thickness",
                "defaultValue": "1"
            },
            "width": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Largeur du s\u00E9parateur (par d\u00E9faut 100% si non sp\u00E9cifi\u00E9)"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "width",
                "defaultValue": "'100%'"
            },
            "height": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Hauteur du s\u00E9parateur (par d\u00E9faut 100% si non sp\u00E9cifi\u00E9)"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "height",
                "defaultValue": "'100%'"
            }
        };
    }
}
