From cc44ca3e54cf5ecf2398b6ecf3bf1fa976a73450 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 4 Jun 2020 09:26:50 +0200 Subject: [PATCH] switch out input to use bbui --- .../src/components/common/Select.svelte | 1 - .../EventsEditor/EventEditorModal.svelte | 183 +++++++++--------- .../EventsEditor/EventsEditor.svelte | 34 ++-- .../EventsEditor/HandlerSelector.svelte | 38 ++-- .../EventsEditor/StateBindingCascader.svelte | 71 +++---- 5 files changed, 162 insertions(+), 165 deletions(-) diff --git a/packages/builder/src/components/common/Select.svelte b/packages/builder/src/components/common/Select.svelte index e89b8006a5..4bdd2a941e 100644 --- a/packages/builder/src/components/common/Select.svelte +++ b/packages/builder/src/components/common/Select.svelte @@ -22,7 +22,6 @@ font-size: 14px; position: relative; border: var(--grey-dark) 1px solid; - max-width: 256px; } .adjusted { diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte index 684d400399..35faac366f 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte @@ -1,5 +1,6 @@ - -

- {eventData.name ? `${eventData.name} Event` : 'Create a New Component Event'} -

- - Click here to learn more about component events - +
+
+
+

+ {eventData.name ? `${eventData.name} Event` : 'Create a New Component Event'} +

+
+
+
+

Event Type

+ +
+
-
-
-
-
Event Type
- {@html getIcon('info', 20)} -
- +
+

Event Action(s)

+ { + createNewEventHandler(draftEventHandler) + draftEventHandler = { parameters: [] } + }} + handler={draftEventHandler} /> +
+ {#if eventData} + {#each eventData.handlers as handler, index} + deleteEventHandler(index)} + {handler} /> + {/each} + {/if} + +
+ - -
-
Event Action(s)
- {@html getIcon('info', 20)} -
- { - createNewEventHandler(draftEventHandler) - draftEventHandler = { parameters: [] } - }} - handler={draftEventHandler} /> - {#if eventData} - {#each eventData.handlers as handler, index} - deleteEventHandler(index)} - {handler} /> - {/each} - {/if} - -
- - - Save - +
+
- +
diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte index d897ad9c2f..cbc46a3094 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte @@ -1,4 +1,5 @@ @@ -71,11 +84,6 @@ {/each}
- diff --git a/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte b/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte index e86d503a59..69ab73e16c 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte @@ -1,8 +1,8 @@
- {parameter.name} -
- {#if parameter.name === 'workflow'} - - {:else} - - - {/if} -
+ {#if parameter.name === 'workflow'} + {parameter.name} + {/if} + {#if parameter.name === 'workflow'} + + {:else} + + {/if}