import { h } from "@stencil/core";
import { ElementQuestionBase } from '../../../utils/element-question-base';
export class ElementIconEditor {
    constructor() {
        this.label = {
            name: 'Icon',
            labelQuestion: 'Formulate your question',
            labelRequired: 'Required',
            labelOCOptionAdd: 'Add Icon',
            labelOCOptionRemove: 'Delete Icon',
            placeholderOptions: 'Icon'
        };
    }
    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-option-creator", Object.assign({}, this.prop('options'), { label: this.label, "allow-color": true })),
            h("slot", null)));
    }
    static get is() { return "bce-element-icon-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": "IconElement.Label",
                "resolved": "Label",
                "references": {
                    "IconElement": {
                        "location": "import",
                        "path": "./element-icon"
                    }
                }
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "defaultValue": "{\n    name: 'Icon',\n    labelQuestion: 'Formulate your question',\n    labelRequired: 'Required',\n    labelOCOptionAdd: 'Add Icon',\n    labelOCOptionRemove: 'Delete Icon',\n    placeholderOptions: 'Icon'\n  }"
        }
    }; }
}
