@codeperate/app-asset
Version:
Codeperate App Asset
30 lines (25 loc) • 999 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-9f7d7390.js');
const mapStateToProps = require('./map-state-to-props-a2d6d90c.js');
const CdpMenuRematch = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.proxyHandler = {
set: (_target, prop, value, _receiver) => {
this.config.store.dispatch.CdpMenuModel.set({ [prop]: value });
return true;
},
};
}
componentWillLoad() {
mapStateToProps.mapStateToProps(this.config.store, this, (state) => ({
props: state.CdpMenuModel,
}));
}
render() {
return (index.h(index.Host, { class: "h-full block w-full" }, index.h("cdp-menu", { config: Object.assign(Object.assign({}, this.config.menuConfig), { proxyHandler: this.proxyHandler }), props: this.props }, index.h("slot", null))));
}
get rootEl() { return index.getElement(this); }
};
exports.cdp_menu_rematch = CdpMenuRematch;