From 86125ebf21cfae6840f2ce548d7fa2f1ebc02d5b Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 16 Jun 2025 18:46:19 +0200 Subject: [PATCH] Create VariableInputModal.svelte --- .../components/chat/VariableInputModal.svelte | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 src/lib/components/chat/VariableInputModal.svelte diff --git a/src/lib/components/chat/VariableInputModal.svelte b/src/lib/components/chat/VariableInputModal.svelte new file mode 100644 index 000000000..32ee72cea --- /dev/null +++ b/src/lib/components/chat/VariableInputModal.svelte @@ -0,0 +1,104 @@ + + + + + + {$i18n.t('Enter Variable Values')} + (show = false)} + aria-label={$i18n.t('Close')} + > + + + + + + {#if subtitle} + {@html subtitle} + {/if} + + + {#each variables as variable (variable)} + + + {@html $i18n.t('Insert a value for {{variable}}', { variable })} + + { + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault(); + } + }} + /> + + {/each} + + + + (show = false)} + > + {$i18n.t('Cancel')} + + + {$i18n.t('Submit')} + + + +
{@html subtitle}