Redaktionskalender {formatMonthYear(`${month}-01`)}
{#each WEEKDAYS as w (w)}
|
{w.slice(0, 2)}
|
{/each}
{#each weeks as week, wi (wi)}
{#each week as day, di (day)}
{@const inMonth = day.startsWith(month)}
{@const isToday = day === today}
{@const list = byDay.get(day) ?? []}
allowDrop(e, day)}
ondragleave={() => dropTarget === day && (dropTarget = null)}
ondrop={(e) => drop(e, day)}
>
{dayOfMonth(day)}
{#if list.length}
{#each list as entry (`${entry.type}-${entry.id}`)}
{/each}
{/if}
|
{/each}
{/each}
{#each days.filter((d) => d.startsWith(month) && ((byDay.get(d)?.length ?? 0) > 0 || d === today)) as day (day)}
-
{formatLong(day)}{day === today ? ' · heute' : ''}
{#each byDay.get(day) ?? [] as entry (`${entry.type}-${entry.id}`)}
{/each}
{:else}
- In diesem Monat ist noch nichts geplant.
{/each}
allowDrop(e, 'ideen')}
ondragleave={() => dropTarget === 'ideen' && (dropTarget = null)}
ondrop={(e) => drop(e, '')}
>
Ideenspeicher
Noch ohne Datum. Zum Planen auf einen Tag ziehen oder öffnen und ein Datum wählen.
{#if ideas.length}
{#each ideas as entry (entry.id)}
{/each}
{:else}
Keine offenen Ideen.
{/if}