| {:else if typeof value === "boolean"} | {value.toString().toUpperCase()} | {:else if typeof value === "number"}{table.columns[index]?.dtype === "int" ? value.toString() : $num(value)} | {:else if typeof value === "string"}
{#if $accounts_set.has(value)}
{value}
|
{:else if Array.isArray(value)}
{value.join(",")} | {:else if value instanceof Date}{day(value)} | {:else if value instanceof Amount}{value.str($ctx)} | {:else if value instanceof Position}{value.units.str($ctx)} {#if value.cost} {{value.cost.str($ctx)}}{/if} | {:else if value instanceof Inventory}
{#each Object.entries(value.value) as [currency, number]}
{$ctx.amount(number, currency)}
{/each} |
{/if}
{/each}