2021-03-01 19:27:09 +00:00
|
|
|
<script lang="ts" context="module">
|
|
|
|
export const extractKey = ({ columnName }) => columnName;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-03-18 10:51:19 +00:00
|
|
|
import { getColumnIcon } from '../elements/ColumnLabel.svelte';
|
2021-03-01 19:27:09 +00:00
|
|
|
|
|
|
|
import AppObjectCore from './AppObjectCore.svelte';
|
|
|
|
|
|
|
|
export let data;
|
|
|
|
|
|
|
|
$: extInfo = data.foreignKey ? `${data.dataType} -> ${data.foreignKey.refTableName}` : data.dataType;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<AppObjectCore
|
|
|
|
{...$$restProps}
|
|
|
|
{data}
|
|
|
|
title={data.columnName}
|
|
|
|
{extInfo}
|
|
|
|
icon={getColumnIcon(data, true)}
|
|
|
|
disableHover
|
|
|
|
/>
|