import { assertExists } from '@blockeditor/global/utils'; import { ShadowlessElement } from '@blockeditor/lit'; import { autoUpdate, computePosition, size } from '@floating-ui/dom'; import { css, html } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { createModal } from '../../../_common/components/menu/index.js'; import { CrossIcon } from '../../../_common/icons/index.js'; import type { PageBlockComponent } from '../../../index.js'; import type { DataViewManager } from '../data-view-manager.js'; import { RecordDetail } from './detail.js'; @customElement('side-layout-modal') class SideLayoutModal extends ShadowlessElement { static override styles = css` side-layout-modal { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 500px; background-color: var(--affine-background-overlay-panel-color); border-left: 0.5px solid var(--affine-border-color); box-shadow: -5px 0px 10px 0px rgba(0, 0, 0, 0.05); } .side-modal-header { margin: 12px 0; padding: 0 12px; display: flex; align-items: center; justify-content: end; } .header-ops { display: flex; align-items: center; gap: 8px; } .header-op { display: flex; align-items: center; padding: 2px; border-radius: 4px; cursor: pointer; } .header-op svg { width: 20px; height: 20px; color: var(--affine-icon-color); } .header-op:hover { background-color: var(--affine-hover-color); } .close-modal { margin-left: 20px; } `; @property({ attribute: false }) content?: HTMLElement; @property({ attribute: false }) close?: () => void; renderOps() { return html``; // return html` //