{ if (typeMenu && !e.target.closest?.('.ptype, .pk-type')) typeMenu = null; }} />
{#if doc} {#each store.tagCounts as [tag]} {/each} {#key doc.version}

store.commitTitle(titleEl.textContent)} onpaste={onTitlePaste} >

{#if !store.isDatabase}
{#if schema} {#each schema.properties as p (p.key)}
{p.name}
r.id !== doc.id).map((r) => r.title) : []} plain onchange={(v) => store.setMeta({ [p.key]: write(v, p.type) })} onaddoption={(n) => addSchemaOption(p, n)} />
{/each} {/if}
Tags
{#each tags as t (t)} { e.preventDefault(); store.menu = { x: e.clientX, y: e.clientY, tag: t }; }} > {t} {/each} {#if tagInput !== null} { if (e.key === 'Enter') { e.preventDefault(); addTag(true); } if (e.key === 'Escape') { e.preventDefault(); addTag(false); } }} onblur={() => addTag(true)} /> {:else} {/if}
Created {fmtDate(created)}
File
{#each customKeys as pk (pk)} {@const cp = propFor(pk)}
renameMeta(pk, e.target.value)} />
{#if cp.type === 'text'} updateMeta(pk, e.target.value)} placeholder="Empty" /> {:else}
store.setMeta({ [pk]: write(v, cp.type) })} onaddoption={() => {}} />
{/if}
{/each} {#if addingProp}
{ if (e.key === 'Enter') commitNewProp(e.target.value); if (e.key === 'Escape') addingProp = false; }} onblur={(e) => { if (!e.relatedTarget?.classList?.contains('type-chip')) commitNewProp(e.target.value); }} />
{/if}
{#if addingProp} {#each PLAIN_TYPES as t (t)} {/each} {:else} {/if}
{/if}
{#if !store.isBoard && !store.isDatabase} {/if}
{#if typeMenu} {/if} {#if pickingCover} { pickingCover = false; coverBtnEl?.focus(); }} /> {/if} {#if picking} setIcon('')} onclose={() => { picking = false; iconEl?.focus(); }} /> {/if} {#if store.isDatabase}
{:else if store.isBoard}
{/if} {/key} {:else}

This folder has no pages yet.

{/if}
{#if store.outlineOpen && doc && !store.isBoard && !store.isDatabase}{/if}