-
- {monthName}
-
-
+
+
+ {heading}
+ {#if weekNumber}uge {weekNumber}{/if}
+
+
+
- {#each ['man', 'tir', 'ons', 'tor', 'fre', 'lør', 'søn'] as day}
+ {#each WEEKDAYS as day}
{day}
{/each}
@@ -128,7 +218,8 @@
{#each grid as date (date.toISOString())}
{@const tasks = tasksOn(date)}
- {@const outside = date.getMonth() !== cursor.getMonth()}
+
+ {@const outside = span !== 'week' && date.getMonth() !== cursor.getMonth()}
(over = null)}
ondrop={(e) => onDrop(e, date)}
>
+
+ {#if span === 'week'}
+ {WEEKDAYS[(date.getDay() + 6) % 7]}
+ {/if}
{date.getDate()}
- {#each tasks.slice(0, 3) as task (task.id)}
+ {#each tasks.slice(0, chipLimit) as task (task.id)}