UNPKG

@cbpds/web-components

Version:
5 lines 1.09 kB
/*! * CPB Design System web components - built with Stencil */ import{p as t,H as e,h as s,c as i}from"./p-9caf8482.js";import{s as c}from"./p-9c1b2f31.js";const n=t(class t extends e{constructor(){super();this.__registerHost();this.color=undefined;this.selected=undefined;this.sx={}}componentWillLoad(){if(typeof this.sx=="string"){this.sx=JSON.parse(this.sx)||{}}c(this.host,Object.assign({},this.sx))}stateChangedHandler({detail:{checked:t}}){this.selected=t}render(){return s(i,{key:"4b9590464c93336fee59d004b99f63405ec56b0e",role:"listitem"},s("slot",{key:"59ff7236113a7ebd6678184e85b034bd38e9eacd"}))}get host(){return this}},[4,"cbp-structured-list-item",{color:[513],selected:[516],sx:[8]},[[0,"stateChanged","stateChangedHandler"]]]);function r(){if(typeof customElements==="undefined"){return}const t=["cbp-structured-list-item"];t.forEach((t=>{switch(t){case"cbp-structured-list-item":if(!customElements.get(t)){customElements.define(t,n)}break}}))}const o=n;const d=r;export{o as CbpStructuredListItem,d as defineCustomElement}; //# sourceMappingURL=cbp-structured-list-item.js.map