UNPKG

radh-ui

Version:

Stencil Component Starter

1 lines 545 B
import{r as s,c as t,h as e}from"./p-1a9f3501.js";class a{constructor(e){s(this,e),this.sendLocale=t(this,"sendLocale",7)}parseLocale(s){s&&(this.innerLocales=JSON.parse(this.locales))}componentWillLoad(){this.parseLocale(this.locales)}handleSelect(s){this.sendLocale.emit(s.target.value)}render(){if(this.innerLocales)return e("div",null,e("select",{onChange:s=>this.handleSelect(s)},this.innerLocales.map(s=>e("option",{value:s.value},s.name))))}static get watchers(){return{locales:["parseLocale"]}}}a.style="";export{a as radh_locale_select}