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-31e2d0a8.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: '54a0690012fad5f6c837017aca04a959f5c5a479', role: "listitem" }, h("slot", { key: '343ae2882b86be584798c6487de8b047094eadd9' }))); } get host() { return getElement(this); } }; export { CbpStructuredListItem as cbp_structured_list_item }; //# sourceMappingURL=cbp-structured-list-item.entry.js.map