UNPKG

@rocketspark/domain-checker

Version:
13 lines 1.43 kB
/*! * * @rocketspark/domain-checker v0.0.34 * https://github.com/rocketspark/domain-checker.git * * Copyright (c) Lee Reichardt and project contributors. * * This source code is licensed under the no license license found in the * LICENSE file in the root directory of this source tree. * */ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[141],{2141:function(t,e,i){i.r(e),i.d(e,{rs_radio_group:function(){return s}});var o=i(7915);const s=class{constructor(t){(0,o.r)(this,t),this.rsChange=(0,o.c)(this,"rsChange",7),this.allowDeselect=!1,this.value=void 0,this.name=void 0,this.color=void 0,this.flex=!1,this.justifyContent=void 0,this.flexDirection=void 0,this.button="default"}valueChanged(t){this.rsChange.emit({value:t})}componentDidLoad(){this.el.querySelectorAll("rs-radio").forEach((t=>{void 0!==this.color&&t.setAttribute("color",this.color),void 0!==this.button&&t.setAttribute("button",this.button)}))}render(){return(0,o.h)(o.H,{role:"radiogroup",class:{"rs-radio-group--flex":this.flex},style:{"justify-content":this.justifyContent,"flex-direction":this.flexDirection}},(0,o.h)("slot",null))}get el(){return(0,o.g)(this)}static get watchers(){return{value:["valueChanged"]}}};s.style=":host{display:block;box-sizing:border-box}:host(.rs-radio-group--flex){display:flex;flex-direction:row;align-items:center}"}}]); //# sourceMappingURL=141.index.js.map