radh-ui
Version:
Stencil Component Starter
1 lines • 869 B
JavaScript
System.register(["./p-72e8199d.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.c;r=e.h}],execute:function(){var o="";var s=function(){function e(e){t(this,e);this.sendLocale=n(this,"sendLocale",7)}e.prototype.parseLocale=function(e){if(e)this.innerLocales=JSON.parse(this.locales)};e.prototype.componentWillLoad=function(){this.parseLocale(this.locales)};e.prototype.handleSelect=function(e){this.sendLocale.emit(e.target.value)};e.prototype.render=function(){var e=this;if(this.innerLocales){return r("div",null,r("select",{onChange:function(t){return e.handleSelect(t)}},this.innerLocales.map((function(e){return r("option",{value:e.value},e.name)}))))}};Object.defineProperty(e,"watchers",{get:function(){return{locales:["parseLocale"]}},enumerable:false,configurable:true});return e}();e("radh_locale_select",s);s.style=o}}}));