{#each columns as col (col.status)}
{
if (!e.dataTransfer?.types.includes('application/x-redaktion')) return;
e.preventDefault();
dropTarget = col.status;
}}
ondragleave={() => dropTarget === col.status && (dropTarget = null)}
ondrop={(e) => drop(e, col.status)}
>
{EDITORIAL_STATUS[col.status]}
{col.items.length}
{#each col.items as entry (entry.id)}
-
{#if entry.type === 'plan' && entry.date}
geplant für {formatShort(entry.date)}
{/if}
{:else}
- Hierher ziehen
{/each}
{/each}