From 592d7987ab3bcef8af6bf077f743e51423a96d87 Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Wed, 18 Sep 2024 13:50:02 +0200 Subject: [PATCH] show objects by schemas --- .../src/appobj/DatabaseObjectAppObject.svelte | 2 +- packages/web/src/forms/SelectField.svelte | 4 +- packages/web/src/icons/FontIcon.svelte | 1 + .../web/src/widgets/SchemaSelector.svelte | 101 ++++++++++++++++++ packages/web/src/widgets/SqlObjectList.svelte | 30 +++++- 5 files changed, 133 insertions(+), 5 deletions(-) create mode 100644 packages/web/src/widgets/SchemaSelector.svelte diff --git a/packages/web/src/appobj/DatabaseObjectAppObject.svelte b/packages/web/src/appobj/DatabaseObjectAppObject.svelte index 0f794416..5a16cfef 100644 --- a/packages/web/src/appobj/DatabaseObjectAppObject.svelte +++ b/packages/web/src/appobj/DatabaseObjectAppObject.svelte @@ -877,7 +877,7 @@ {...$$restProps} module={$$props.module} {data} - title={data.schemaName ? `${data.schemaName}.${data.pureName}` : data.pureName} + title={data.schemaName && !passProps?.hideSchemaName ? `${data.schemaName}.${data.pureName}` : data.pureName} icon={databaseObjectIcons[data.objectTypeField]} menu={createMenu} showPinnedInsteadOfUnpin={passProps?.showPinnedInsteadOfUnpin} diff --git a/packages/web/src/forms/SelectField.svelte b/packages/web/src/forms/SelectField.svelte index eadd937d..a3826861 100644 --- a/packages/web/src/forms/SelectField.svelte +++ b/packages/web/src/forms/SelectField.svelte @@ -11,6 +11,7 @@ export let isMulti = false; export let notSelected = null; export let defaultValue = ''; + export let selectClass = ''; let listOpen = false; let isFocused = false; @@ -23,6 +24,7 @@ {#if isNative}