diff --git a/packages/web/src/datagrid/ReferenceManager.svelte b/packages/web/src/datagrid/ReferenceManager.svelte
new file mode 100644
index 00000000..d54bbc0b
--- /dev/null
+++ b/packages/web/src/datagrid/ReferenceManager.svelte
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+ {#if foreignKeys.length > 0}
+ References tables ({foreignKeys.length})
+ {#each foreignKeys.filter(fk => filterName(filter, fk.refTableName)) as fk}
+
+ dispatch('referenceclick', {
+ schemaName: fk.refSchemaName,
+ pureName: fk.refTableName,
+ columns: fk.columns.map(col => ({
+ baseName: col.columnName,
+ refName: col.refColumnName,
+ })),
+ })}
+ >
+
+
+ {fk.refTableName}
+ ({fk.columns.map(x => x.columnName).join(', ')})
+
+
+ {/each}
+ {/if}
+
+ {#if dependencies.length > 0}
+ References tables ({dependencies.length})
+ {#each dependencies.filter(fk => filterName(filter, fk.pureName)) as fk}
+
+ dispatch('referenceclick', {
+ schemaName: fk.schemaName,
+ pureName: fk.pureName,
+ columns: fk.columns.map(col => ({
+ baseName: col.refColumnName,
+ refName: col.columnName,
+ })),
+ })}
+ >
+
+
+ {fk.pureName}
+ ({fk.columns.map(x => x.columnName).join(', ')})
+
+
+ {/each}
+ {/if}
+
+
+
diff --git a/packages/web/src/widgets/WidgetColumnBarItem.svelte b/packages/web/src/widgets/WidgetColumnBarItem.svelte
index a6db5873..ed543c7f 100644
--- a/packages/web/src/widgets/WidgetColumnBarItem.svelte
+++ b/packages/web/src/widgets/WidgetColumnBarItem.svelte
@@ -2,7 +2,9 @@
export let title;
export let name;
export let height = null;
- export let visible = true;
+ export let collapsed = null;
+
+ let visible = !collapsed;
(visible = !visible)}>{title}