From 1048a506275996c709fbbacee7564e3e3aab40c5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 15 Jan 2025 14:52:27 +0000 Subject: [PATCH] Add functional bindings panel --- .../BindingExplorer/BindingNode.svelte | 188 ++++++++++++++++++ .../_components/BindingsPanel.svelte | 100 +++++++++- 2 files changed, 282 insertions(+), 6 deletions(-) create mode 100644 packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingExplorer/BindingNode.svelte diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingExplorer/BindingNode.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingExplorer/BindingNode.svelte new file mode 100644 index 0000000000..155312c03e --- /dev/null +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingExplorer/BindingNode.svelte @@ -0,0 +1,188 @@ + + +
+ {#if label} +
+
+ {#if expandable} + (expanded = !expanded)} + /> + {/if} +
+
+ {label} +
+
+ {displayValue} +
+
+ {/if} + {#if expandable && (expanded || !label)} +
+ {#each keys as key} + + {/each} +
+ {/if} +
+ + diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingsPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingsPanel.svelte index 73cac27331..6af802c570 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingsPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/BindingsPanel.svelte @@ -1,14 +1,102 @@ - -Bindings +Bindings - - Some awesome bindings content. + +