From 51b517a4be52cb6001d2ee3db34971a5fdeeab48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 23 Feb 2021 16:43:03 +0100 Subject: [PATCH] merge existing work from old branch --- .../SetupPanel/AutomationBindingPanel.svelte | 203 ++++++++++++++++++ .../SetupPanel/AutomationBlockSetup.svelte | 22 +- .../SetupPanel/GenericBindingPopover.svelte | 5 +- .../automation/SetupPanel/RowSelector.svelte | 9 +- .../components/common/BindableInput.svelte | 74 ++++--- .../common/DrawerBindableInput.svelte | 6 +- 6 files changed, 273 insertions(+), 46 deletions(-) create mode 100644 packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte new file mode 100644 index 0000000000..12f4efc110 --- /dev/null +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte @@ -0,0 +1,203 @@ + + +
+
+ Available bindings + + + + {#each categories as [categoryName, bindings]} + {categoryName} + + {#each bindings.filter(binding => + binding.label.match(searchRgx) + ) as binding} +
addToText(binding)}> + {binding.label} + {binding.type} +
+
+ {binding.description || ''} +
+
+ {/each} + {/each} + Helpers + + {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper} +
addToText(helper)}> + {helper.label} +
+
+ {@html helper.description || ''} +
+
{helper.example || ''}
+
+ {/each} +
+
+