import { Component, Event, h, Host, Prop } from '@stencil/core';
export class DvnFieldInputCellSingleChoice {
  render() {
    const { field, value } = this;
    const { options = [] } = field;
    return (h(Host, null,
      h("dvn-select", { dataAdapter: field.dataAdapter, dataProvider: field.dataProvider, disabled: field.disabled, leaned: true, value: value, width: "100%", scale: "small" }, options.map(option => (h("dvn-select-option", { value: option.value }, option.label))))));
  }
  static get is() { return "dvn-field-input-cell-single-choice"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-field-input-cell-single-choice.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-field-input-cell-single-choice.css"]
  }; }
  static get properties() { return {
    "field": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "SingleChoiceField",
        "resolved": "SingleChoiceField",
        "references": {
          "SingleChoiceField": {
            "location": "import",
            "path": "@dvn/core/doldurma/src/fields/single-choice"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "value": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false
    }
  }; }
  static get events() { return [{
      "method": "change",
      "name": "change",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
}
