import { h } from "@stencil/core";
import { ElementQuestionBase } from '../../../utils/element-question-base';
export class ElementSliderEditor {
    constructor() {
        this.label = {
            name: 'Header',
            labelQuestion: 'Formulate your question',
            labelRequired: 'Required',
            labelStep: 'Step size',
            labelMin: 'Min',
            labelMax: 'Max',
            labelMinText: 'Text left',
            labelMaxText: 'Text right'
        };
    }
    prop(path, options = {}) {
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    }
    render() {
        return (h(ElementQuestionBase, { question: this.prop('question', { localize: true }), required: this.prop('required') },
            h("bce-input", Object.assign({ type: "number" }, this.prop('step'))),
            h("bce-input", Object.assign({ type: "number" }, this.prop('min'))),
            h("bce-input", Object.assign({ type: "number" }, this.prop('max'))),
            h("bce-input", Object.assign({ type: "text" }, this.prop('minText', { localize: true }))),
            h("bce-input", Object.assign({ type: "text" }, this.prop('maxText', { localize: true }))),
            h("slot", null)));
    }
    static get is() { return "bce-element-slider-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": "SliderElement.Label",
                "resolved": "Label",
                "references": {
                    "SliderElement": {
                        "location": "import",
                        "path": "./element-slider"
                    }
                }
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "defaultValue": "{\n    name: 'Header',\n    labelQuestion: 'Formulate your question',\n    labelRequired: 'Required',\n    labelStep: 'Step size',\n    labelMin: 'Min',\n    labelMax: 'Max',\n    labelMinText: 'Text left',\n    labelMaxText: 'Text right'\n  }"
        }
    }; }
}
