import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit'; import { ShadowlessElement } from '@blocksuite/std'; import { cssVarV2 } from '@toeverything/theme/v2'; import { css, unsafeCSS } from 'lit'; import { property } from 'lit/decorators.js'; import { repeat } from 'lit/directives/repeat.js'; import { styleMap } from 'lit/directives/style-map.js'; import { html } from 'lit/static-html.js'; import type { Group } from '../../../../core/group-by/trait.js'; import type { Row } from '../../../../core/index.js'; import type { TableProperty, TableSingleView, } from '../../table-view-manager.js'; import type { TableViewUILogic } from '../table-view-ui-logic.js'; export class DataViewColumnPreview extends SignalWatcher( WithDisposable(ShadowlessElement) ) { static override styles = css` affine-data-view-column-preview { pointer-events: none; display: block; position: fixed; font-family: var(--affine-font-family); } `; get tableViewManager(): TableSingleView { return this.tableViewLogic.view; } private renderGroup(rows: Row[]) { const columnIndex = this.column.index$.value; return html`