From d8dc8744a90f99ef226003ec045ea49dd9cbf228 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 10 Sep 2024 16:44:50 +0100 Subject: [PATCH] Add ability to update roles --- packages/bbui/src/index.js | 1 + .../backend/RoleEditor/RoleNode.svelte | 60 +++++++- yarn.lock | 145 ++++++++++++++++++ 3 files changed, 198 insertions(+), 8 deletions(-) diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 083b4ecfd5..3efafed156 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -21,6 +21,7 @@ export { default as EnvDropdown } from "./Form/EnvDropdown.svelte" export { default as Multiselect } from "./Form/Multiselect.svelte" export { default as Search } from "./Form/Search.svelte" export { default as RichTextField } from "./Form/RichTextField.svelte" +export { default as FieldLabel } from "./Form/FieldLabel.svelte" export { default as Slider } from "./Form/Slider.svelte" export { default as File } from "./Form/File.svelte" diff --git a/packages/builder/src/components/backend/RoleEditor/RoleNode.svelte b/packages/builder/src/components/backend/RoleEditor/RoleNode.svelte index b8d59a19ce..fd7216af77 100644 --- a/packages/builder/src/components/backend/RoleEditor/RoleNode.svelte +++ b/packages/builder/src/components/backend/RoleEditor/RoleNode.svelte @@ -1,10 +1,18 @@
- {label} + {data.label}
- {#if custom} + {#if data.custom}
- +
{/if}
- {#if description} + {#if data.description}
- {description} + {data.description}
{/if}
@@ -57,6 +83,24 @@ {/if}
+ + + (tempLabel = e.detail)} + /> +
+ + (tempColor = e.detail)} /> +
+
+
+