import { h } from "@stencil/core";
export class ElementDownloadEditor {
    constructor() {
        this.label = {
            name: 'Download',
            placeholderText: 'File description'
        };
    }
    prop(path, options = {}) {
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    }
    render() {
        return [
            h("bce-input", Object.assign({ type: "text" }, this.prop('text', { localize: true }))),
            h("bce-upload", Object.assign({}, this.prop('location'))),
            h("slot", null)
        ];
    }
    static get is() { return "bce-element-download-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": "DownloadElement.Label",
                "resolved": "Label",
                "references": {
                    "DownloadElement": {
                        "location": "import",
                        "path": "./element-download"
                    }
                }
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "defaultValue": "{\n    name: 'Download',\n    placeholderText: 'File description'\n  }"
        }
    }; }
}
