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