From bb19e48a6d90f7230504ea3609c47d73afe36a1d Mon Sep 17 00:00:00 2001 From: Conor Webb Date: Tue, 31 Oct 2023 14:22:15 +0000 Subject: [PATCH] Added new DataSourceSelect component. --- .../settings/controls/DataSourceSelect.svelte | 287 ++++-------------- .../DataSourceSelectItem/SelectItem.svelte | 60 ++++ 2 files changed, 123 insertions(+), 224 deletions(-) create mode 100644 packages/builder/src/components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte diff --git a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte index 545165a25c..a56614e4e5 100644 --- a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte @@ -32,6 +32,7 @@ import IntegrationQueryEditor from "components/integration/index.svelte" import { makePropSafe as safe } from "@budibase/string-templates" import ClientBindingPanel from "components/common/bindings/ClientBindingPanel.svelte" + import DataSourceSelect from "components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte" import { API } from "api" export let value = {} @@ -279,243 +280,81 @@ diff --git a/packages/builder/src/components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte b/packages/builder/src/components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte new file mode 100644 index 0000000000..1fda2da634 --- /dev/null +++ b/packages/builder/src/components/design/settings/controls/DataSourceSelectItem/SelectItem.svelte @@ -0,0 +1,60 @@ + + +{#if dividerState} + +{/if} +{#if heading.length > 0} +
+ {heading} +
+{/if} + + +