UNPKG

@cbpds/web-components

Version:
31 lines (28 loc) 1.05 kB
/*! * CPB Design System web components - built with Stencil */ import { r as registerInstance, h, a as Host, g as getElement } from './index-0f6e3adc.js'; import { s as setCSSProps } from './utils-475ba472.js'; const CbpStructuredListItem = class { constructor(hostRef) { registerInstance(this, hostRef); this.color = undefined; this.selected = undefined; this.sx = {}; } componentWillLoad() { if (typeof this.sx == 'string') { this.sx = JSON.parse(this.sx) || {}; } setCSSProps(this.host, Object.assign({}, this.sx)); } stateChangedHandler({ detail: { checked } }) { this.selected = checked; } render() { return (h(Host, { key: '00c4f7340b83fbc31558fb4e8743221d7e688015', role: "listitem" }, h("slot", { key: '5a4500bab8d030b798a6f4eefa109e331096d9fd' }))); } get host() { return getElement(this); } }; export { CbpStructuredListItem as cbp_structured_list_item }; //# sourceMappingURL=cbp-structured-list-item.entry.js.map