From 59a98ec0cb05da9cbe7798e731b116f472a3c17a Mon Sep 17 00:00:00 2001 From: andz-bb Date: Thu, 19 Dec 2024 16:24:21 +0000 Subject: [PATCH 1/2] support placeholder values in datasource config fields --- .../backend/Datasources/ConfigEditor/ConfigInput.svelte | 2 ++ .../backend/Datasources/ConfigEditor/fields/LongForm.svelte | 3 ++- .../backend/Datasources/ConfigEditor/fields/Select.svelte | 2 ++ .../backend/Datasources/ConfigEditor/fields/String.svelte | 2 ++ .../components/backend/Datasources/ConfigEditor/index.svelte | 3 ++- .../backend/Datasources/ConfigEditor/stores/validatedConfig.js | 1 + packages/types/src/sdk/datasources.ts | 1 + 7 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte b/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte index 70f2ffef46..569f77d5ce 100644 --- a/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte +++ b/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte @@ -12,6 +12,7 @@ export let name export let config export let showModal = () => {} + export let placeholder const selectComponent = type => { if (type === "object") { @@ -40,6 +41,7 @@ {name} {config} {showModal} + {placeholder} on:blur on:change /> diff --git a/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte b/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte index efbeb007e8..6b366a882e 100644 --- a/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte +++ b/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte @@ -5,11 +5,12 @@ export let name export let value export let error + export let placeholder
-