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-6c11fa0c.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: '4b9590464c93336fee59d004b99f63405ec56b0e', role: "listitem" }, h("slot", { key: '59ff7236113a7ebd6678184e85b034bd38e9eacd' }))); } get host() { return getElement(this); } }; export { CbpStructuredListItem as cbp_structured_list_item }; //# sourceMappingURL=cbp-structured-list-item.entry.js.map