2021-04-13 11:02:41 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
2021-10-26 00:43:02 +02:00
|
|
|
<script lang="ts">
|
2020-11-01 05:26:58 +01:00
|
|
|
import type { TableDatum } from "./graph-helpers";
|
2021-10-07 15:31:49 +02:00
|
|
|
import { direction } from "../lib/i18n";
|
2020-08-04 06:37:21 +02:00
|
|
|
export let tableData: TableDatum[];
|
|
|
|
</script>
|
|
|
|
|
2021-05-26 01:21:33 +02:00
|
|
|
<div>
|
2021-10-07 15:31:49 +02:00
|
|
|
<table dir={direction()}>
|
2021-05-26 01:21:33 +02:00
|
|
|
{#each tableData as { label, value }}
|
|
|
|
<tr>
|
|
|
|
<td class="align-end">{label}:</td>
|
|
|
|
<td class="align-start">{value}</td>
|
|
|
|
</tr>
|
|
|
|
{/each}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2021-03-21 13:47:52 +01:00
|
|
|
<style lang="scss">
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.align-end {
|
|
|
|
text-align: end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.align-start {
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
</style>
|