import{r as e,c as l,h as i,H as s,g as t}from"./p-a0569a5f.js";let n=class{constructor(i){e(this,i),this.cellFormCancel=l(this,"cellFormCancel",7),this.cellFormSubmit=l(this,"cellFormSubmit",7)}async focus(){var e,l;null===(l=null===(e=this.el.querySelector("dvn-select"))||void 0===e?void 0:e.focusOnInput)||void 0===l||l.call(e)}render(){const{field:e,value:l}=this,{options:t=[]}=e;return i(s,null,i("dvn-select",{dataAdapter:e.dataAdapter,dataProvider:e.dataProvider,disabled:e.disabled,leaned:!0,value:l,width:"100%",scale:"small",onClick:e=>{e.stopImmediatePropagation()},onBlur:e=>{e.stopImmediatePropagation(),this.cellFormCancel.emit()},onChange:e=>{e.stopImmediatePropagation(),this.cellFormSubmit.emit({value:e.detail}),this.cellFormCancel.emit()}},t.map((e=>i("dvn-select-option",{value:e.value},e.label)))))}get el(){return t(this)}};n.style="dvn-field-input-cell-single-choice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%}";export{n as dvn_field_input_cell_single_choice}