import { Component, h, Host, Prop } from '@stencil/core';
export class DvnFieldDisplayCellSingleChoice {
  render() {
    const option = this.field.getOptionOfValue(this.value);
    return (h(Host, { class: {
        'tag-wrapper': !!option.tint,
      } }, option.tint
      ? h("dvn-button", { leaned: true, scale: "small", shape: "rounded", tint: option.tint, view: "ghost", tagMode: true }, option.label)
      : option.label));
  }
  static get is() { return "dvn-field-display-cell-single-choice"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-field-display-cell-single-choice.css"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-field-display-cell-single-choice.css"]
  }; }
  static get properties() { return {
    "value": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false
    },
    "field": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "SingleChoiceField",
        "resolved": "SingleChoiceField",
        "references": {
          "SingleChoiceField": {
            "location": "import",
            "path": "../single-choice"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
}
