import '../../../../../_common/components/button.js'; import { BlockElement } from '@blockeditor/lit'; import { customElement, property } from 'lit/decorators.js'; import { html } from 'lit/static-html.js'; import { DatabaseTableViewClose, DatabaseTableViewIcon, } from '../../../../../_common/icons/index.js'; import type { DatabaseBlockModel } from '../../../../database-model.js'; import { fullScreenStyles } from './styles.js'; @customElement('affine-database-table-view-full-screen') export class DatabaseTableViewFullScreen extends BlockElement { static override styles = fullScreenStyles; @property({ attribute: false }) abortController!: AbortController; close = () => { this.abortController.abort(); }; _renderView = () => { /* eslint-disable lit/binding-positions, lit/no-invalid-html */ return html` `; }; override renderBlock() { return html`
${this.page.meta.title} / ${DatabaseTableViewIcon}${this.model.title.toString()}
${DatabaseTableViewClose}
${this._renderView()}
`; } } declare global { interface HTMLElementTagNameMap { 'affine-database-table-view-full-screen': DatabaseTableViewFullScreen; } }