UNPKG

@codeperate/app-asset

Version:

Codeperate App Asset

27 lines (22 loc) 911 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-9f7d7390.js'); const cdpMenu_store = require('./cdp-menu.store-cfbc9fc9.js'); require('./index-65ce289a.js'); const CdpMenuStore = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.proxyHandler = { set: (_target, prop, value, _receiver) => { cdpMenu_store.state[prop] = value; index.forceUpdate(this.rootEl); return true; }, }; } 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: { display: cdpMenu_store.state.display } }, index.h("slot", null)))); } get rootEl() { return index.getElement(this); } }; exports.cdp_menu_store = CdpMenuStore;