@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-507f2a89.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: '00c4f7340b83fbc31558fb4e8743221d7e688015', role: "listitem" }, index.h("slot", { key: '5a4500bab8d030b798a6f4eefa109e331096d9fd' })));
}
get host() { return index.getElement(this); }
};
exports.cbp_structured_list_item = CbpStructuredListItem;
//# sourceMappingURL=cbp-structured-list-item.cjs.entry.js.map