import { h } from "@stencil/core";
export class ElementLinkEditor {
    constructor() {
        this.label = {
            name: 'Link',
            labelHref: 'Reference',
            labelText: 'Text',
            labelIcon: 'Icon',
            placeholderHref: 'https://example.com',
            placeholderText: 'Example',
            placeholderIcon: 'globe'
        };
    }
    prop(path, options = {}) {
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    }
    render() {
        return [
            h("bce-input", Object.assign({}, this.prop('href'), { type: "text" })),
            h("bce-input", Object.assign({}, this.prop('text', { localize: true }), { type: "text" })),
            h("bce-input", Object.assign({}, this.prop('icon'), { type: "text" })),
            h("slot", null)
        ];
    }
    static get is() { return "bce-element-link-editor"; }
    static get encapsulation() { return "shadow"; }
    static get properties() { return {
        "handler": {
            "type": "unknown",
            "mutable": false,
            "complexType": {
                "original": "InputHandler",
                "resolved": "InputHandler",
                "references": {
                    "InputHandler": {
                        "location": "import",
                        "path": "../../../utils/input-handler"
                    }
                }
            },
            "required": true,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            }
        },
        "language": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string | undefined",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "language",
            "reflect": false
        },
        "label": {
            "type": "unknown",
            "mutable": false,
            "complexType": {
                "original": "LinkElement.Label",
                "resolved": "Label",
                "references": {
                    "LinkElement": {
                        "location": "import",
                        "path": "./element-link"
                    }
                }
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "defaultValue": "{\n    name: 'Link',\n    labelHref: 'Reference',\n    labelText: 'Text',\n    labelIcon: 'Icon',\n    placeholderHref: 'https://example.com',\n    placeholderText: 'Example',\n    placeholderIcon: 'globe'\n  }"
        }
    }; }
}
