UNPKG

test-isc

Version:

An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.

1 lines 1.16 kB
import{r as i,h as o,H as s}from"./p-aa742337.js";import{g as t}from"./p-bdcea876.js";import"./p-f3a0c163.js";import{s as e}from"./p-a894deec.js";const n=class{constructor(o){i(this,o),this.options=[]}onSelect(i){const o=this.options.find(o=>o.value===i.target.value);o&&e(o.handler)}render(){const i=this.options.find(i=>i.checked),e=i?i.value:void 0;return o(s,{class:t(this)},o("ion-list",null,void 0!==this.header&&o("ion-list-header",null,this.header),(void 0!==this.subHeader||void 0!==this.message)&&o("ion-item",null,o("ion-label",{class:"ion-text-wrap"},void 0!==this.subHeader&&o("h3",null,this.subHeader),void 0!==this.message&&o("p",null,this.message))),o("ion-radio-group",{value:e},this.options.map(i=>o("ion-item",null,o("ion-label",null,i.text),o("ion-radio",{value:i.value,disabled:i.disabled}))))))}};n.style=".sc-ion-select-popover-h ion-list.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:-1px;margin-bottom:-1px}.sc-ion-select-popover-h ion-list-header.sc-ion-select-popover,.sc-ion-select-popover-h ion-label.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";export{n as ion_select_popover}