mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 02:36:01 +00:00
SYNC: diagram column filter
This commit is contained in:
committed by
Diflow
parent
c99ca9edcc
commit
c8462fb50b
@@ -67,7 +67,8 @@
|
|||||||
let canvasHeight = 3000;
|
let canvasHeight = 3000;
|
||||||
let dragStartPoint = null;
|
let dragStartPoint = null;
|
||||||
let dragCurrentPoint = null;
|
let dragCurrentPoint = null;
|
||||||
let columnFilter;
|
export let columnFilter;
|
||||||
|
export let showColumnFilter = true;
|
||||||
|
|
||||||
const sourceDragColumn$ = writable(null);
|
const sourceDragColumn$ = writable(null);
|
||||||
const targetDragColumn$ = writable(null);
|
const targetDragColumn$ = writable(null);
|
||||||
@@ -972,7 +973,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if tables?.length > 0}
|
{#if showColumnFilter && tables?.length > 0}
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<DragColumnMemory {settings} {sourceDragColumn$} {targetDragColumn$} />
|
<DragColumnMemory {settings} {sourceDragColumn$} {targetDragColumn$} />
|
||||||
<div class="searchbox">
|
<div class="searchbox">
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Designer from './Designer.svelte';
|
import Designer from './Designer.svelte';
|
||||||
import DiagramDesignerReference from './DiagramDesignerReference.svelte';
|
import DiagramDesignerReference from './DiagramDesignerReference.svelte';
|
||||||
|
|
||||||
|
export let columnFilter;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Designer
|
<Designer
|
||||||
@@ -18,4 +20,6 @@
|
|||||||
arrangeAlg: 'springy',
|
arrangeAlg: 'springy',
|
||||||
}}
|
}}
|
||||||
referenceComponent={DiagramDesignerReference}
|
referenceComponent={DiagramDesignerReference}
|
||||||
|
showColumnFilter={false}
|
||||||
|
{columnFilter}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -100,4 +100,6 @@
|
|||||||
|
|
||||||
<FormCheckboxField name="showNullability" label="Show NULL/NOT NULL" data-testid="DiagramSettings_showNullability" />
|
<FormCheckboxField name="showNullability" label="Show NULL/NOT NULL" data-testid="DiagramSettings_showNullability" />
|
||||||
<FormCheckboxField name="showDataType" label="Show data type" data-testid="DiagramSettings_showDataType" />
|
<FormCheckboxField name="showDataType" label="Show data type" data-testid="DiagramSettings_showDataType" />
|
||||||
|
|
||||||
|
<FormTextField name="columnFilter" label="Column filter" />
|
||||||
</FormProviderCore>
|
</FormProviderCore>
|
||||||
|
|||||||
@@ -123,7 +123,14 @@
|
|||||||
<ToolStripContainer>
|
<ToolStripContainer>
|
||||||
<HorizontalSplitter isSplitter={$styleStore.settingsVisible ?? true} initialSizeRight={300}>
|
<HorizontalSplitter isSplitter={$styleStore.settingsVisible ?? true} initialSizeRight={300}>
|
||||||
<svelte:fragment slot="1">
|
<svelte:fragment slot="1">
|
||||||
<DiagramDesigner value={$modelState.value || {}} {conid} {database} onChange={handleChange} menu={createMenu} />
|
<DiagramDesigner
|
||||||
|
value={$modelState.value || {}}
|
||||||
|
{conid}
|
||||||
|
{database}
|
||||||
|
onChange={handleChange}
|
||||||
|
menu={createMenu}
|
||||||
|
columnFilter={$styleStore.columnFilter}
|
||||||
|
/>
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
<svelte:fragment slot="2">
|
<svelte:fragment slot="2">
|
||||||
<WidgetColumnBar>
|
<WidgetColumnBar>
|
||||||
|
|||||||
Reference in New Issue
Block a user