From a5a7ba68e3476e114e456461ddc8890179e34687 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 17 Sep 2020 13:43:52 +0100 Subject: [PATCH] Add data binding to workflow block setup --- .../userInterface/BindableInput.svelte | 51 +++++++ .../GenericBindingPopover.svelte | 129 ++++++++++++++++++ .../SetupPanel/WorkflowBlockSetup.svelte | 36 ++++- 3 files changed, 214 insertions(+), 2 deletions(-) create mode 100644 packages/builder/src/components/userInterface/BindableInput.svelte create mode 100644 packages/builder/src/components/userInterface/GenericBindingPopover.svelte diff --git a/packages/builder/src/components/userInterface/BindableInput.svelte b/packages/builder/src/components/userInterface/BindableInput.svelte new file mode 100644 index 0000000000..bbe544c318 --- /dev/null +++ b/packages/builder/src/components/userInterface/BindableInput.svelte @@ -0,0 +1,51 @@ + + +
+ + +
+ + + diff --git a/packages/builder/src/components/userInterface/GenericBindingPopover.svelte b/packages/builder/src/components/userInterface/GenericBindingPopover.svelte new file mode 100644 index 0000000000..73b529a90d --- /dev/null +++ b/packages/builder/src/components/userInterface/GenericBindingPopover.svelte @@ -0,0 +1,129 @@ + + + +
+
+ +
+
+ {#each categories as [categoryName, bindings]} + + {#each bindings as binding} +
onClickBinding(binding)}> + {binding.label} + {binding.type} +
+
{binding.description}
+
+ {/each} + {/each} +
+
+
+
+ + + Binding connects one piece of data to another and makes it dynamic. + Click the objects on the left to add them to the textbox. + +