UNPKG

equinox-web-components

Version:

Equinox design for the web using StencilJS

1 lines 1.02 kB
System.register(["./p-33ebdb75.system.js"],(function(e){"use strict";var t,n,o,r;return{setters:[function(e){t=e.r;n=e.c;o=e.h;r=e.g}],execute:function(){var u=e("e_radio_group",function(){function e(e){t(this,e);this.valueChanged=n(this,"valueChanged",7)}e.prototype.onValueChange=function(){var e=this;var t=this.findNestedRadios();t&&t.forEach((function(t){t.checked=t.value===e.value}))};e.prototype.onSelectionChange=function(e){var t=e.target;this.value=t.value};e.prototype.connectedCallback=function(){this.onValueChange()};e.prototype.componentDidLoad=function(){this.onValueChange()};e.prototype.findNestedRadios=function(){var e=this.host.shadowRoot.querySelector("slot");return e&&e.assignedElements()};e.prototype.render=function(){return o("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["onValueChange"]}},enumerable:false,configurable:true});return e}())}}}));