diff --git a/src/lib/components/ui/TrainServiceTable.svelte b/src/lib/components/ui/TrainServiceTable.svelte new file mode 100644 index 0000000..6d50473 --- /dev/null +++ b/src/lib/components/ui/TrainServiceTable.svelte @@ -0,0 +1,152 @@ + + +
| + | Arr | +Dep | +||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Location | +Plat | +Sch | +Act | +Sch | +Act | ++ | ||||
| + {loc.t} + | ++ {loc.p} + | + {#if loc.r === 'PASS'} +Pass | +{formatUkTime(loc.wtp)} | +{formatUkTime(loc.atp || loc.etp || '--')} | + {:else} +{formatUkTime(loc.pta || loc.wta)} | +{formatUkTime(loc.ata || loc.eta || '--')} | +{formatUkTime(loc.ptd || loc.wtd)} | +{formatUkTime(loc.atd || loc.etd || '--')} | + {/if} + {#if loc} + {@const delay = calculateDelay(loc)} +{delay.val} | + {/if} +|
|
+
+ {#each getRelevantActivities(loc.act) as note}
+ {note}
+ {/each}
+
+ |
+ ||||||||||