@design.estate/dees-catalog 1.0.187 → 1.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -322,7 +322,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),$=R,G=v),L===void 0&&(
322
322
  <div @click=${this.dispatchClicked} class="windowOverlay ${this.visible?"visible":null}">
323
323
  <slot></slot>
324
324
  </div>
325
- `}firstUpdated(){setTimeout(()=>{this.visible=!0},100)}dispatchClicked(){this.dispatchEvent(new CustomEvent("clicked"))}toggleVisibility(){this.visible=!this.visible}async show(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0),this.visible=!0}async hide(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0),this.visible=!1}async destroy(){let a=await this.domtoolsPromise;await this.hide(),await a.convenience.smartdelay.delayFor(300),this.remove()}};x2.demo=()=>w`<dees-windowlayer></dees-windowlayer>`,A([V({type:Boolean})],x2.prototype,"visible",2),x2=A([n1("dees-windowlayer")],x2);var R2=class extends a1{constructor(){super();this.menuItems=[]}static async openContextMenuWithOptions(a,r){a.preventDefault();let n=new R2;n.style.position="absolute",n.style.zIndex="2000",n.style.top=`${a.clientY.toString()}px`,n.style.left=`${a.clientX.toString()}px`,n.style.opacity="0",n.style.transform="scale(0.95,0.95)",n.style.transformOrigin="top left",n.menuItems=r,n.windowLayer=await x2.createAndShow(),n.windowLayer.addEventListener("click",async()=>{await n.destroy()}),document.body.append(n),await q2.smartdelay.delayFor(0),n.style.opacity="1",n.style.transform="scale(1,1)"}render(){return w`
325
+ `}firstUpdated(){setTimeout(()=>{this.visible=!0},100)}dispatchClicked(){this.dispatchEvent(new CustomEvent("clicked"))}toggleVisibility(){this.visible=!this.visible}async show(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0),this.visible=!0}async hide(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0),this.visible=!1}async destroy(){let a=await this.domtoolsPromise;await this.hide(),await a.convenience.smartdelay.delayFor(300),this.remove()}};x2.demo=()=>w`<dees-windowlayer></dees-windowlayer>`,A([V({type:Boolean})],x2.prototype,"visible",2),x2=A([n1("dees-windowlayer")],x2);var R2=class extends a1{constructor(){super();this.menuItems=[]}static async openContextMenuWithOptions(a,r){a.preventDefault(),a.stopPropagation();let n=new R2;n.style.position="absolute",n.style.zIndex="2000",n.style.top=`${a.clientY.toString()}px`,n.style.left=`${a.clientX.toString()}px`,n.style.opacity="0",n.style.transform="scale(0.95,0.95)",n.style.transformOrigin="top left",n.menuItems=r,n.windowLayer=await x2.createAndShow(),n.windowLayer.addEventListener("click",async()=>{await n.destroy()}),document.body.append(n),await q2.smartdelay.delayFor(0),n.style.opacity="1",n.style.transform="scale(1,1)"}render(){return w`
326
326
  <div class="mainbox">
327
327
  ${this.menuItems.map(a=>w`
328
328
  <div class="menuitem" @click=${()=>this.handleClick(a)}>