UNPKG

equinox-web-components

Version:

Equinox design for the web using StencilJS

1 lines 605 B
import{r as t,c as s,h as e,g as n}from"./p-cc373a46.js";const o=class{constructor(e){t(this,e),this.valueChanged=s(this,"valueChanged",7)}onValueChange(){const t=this.findNestedRadios();t&&t.forEach(t=>{t.checked=t.value===this.value})}onSelectionChange(t){this.value=t.target.value}connectedCallback(){this.onValueChange()}componentDidLoad(){this.onValueChange()}findNestedRadios(){const t=this.host.shadowRoot.querySelector("slot");return t&&t.assignedElements()}render(){return e("slot",null)}get host(){return n(this)}static get watchers(){return{value:["onValueChange"]}}};export{o as e_radio_group}