@cbpds/web-components
Version:
Web components for the CBP Design System.
35 lines (30 loc) • 1.11 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-cd71cbd5.js');
const utils = require('./utils-99c9e716.js');
const CbpStructuredListItem = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.color = undefined;
this.selected = undefined;
this.sx = {};
}
componentWillLoad() {
if (typeof this.sx == 'string') {
this.sx = JSON.parse(this.sx) || {};
}
utils.setCSSProps(this.host, Object.assign({}, this.sx));
}
stateChangedHandler({ detail: { checked } }) {
this.selected = checked;
}
render() {
return (index.h(index.Host, { key: '4b9590464c93336fee59d004b99f63405ec56b0e', role: "listitem" }, index.h("slot", { key: '59ff7236113a7ebd6678184e85b034bd38e9eacd' })));
}
get host() { return index.getElement(this); }
};
exports.cbp_structured_list_item = CbpStructuredListItem;
//# sourceMappingURL=cbp-structured-list-item.cjs.entry.js.map