From da993b47f1d0295b1192a337b313ff86d67a1513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 27 Apr 2021 17:43:56 +0200 Subject: [PATCH] Create DrawerContent component --- .../Drawer/DrawerContentWithSidebar.svelte | 42 ++++++++++ packages/bbui/src/index.js | 1 + .../EditAutomationPopover.svelte | 4 - .../IntegrationConfigForm.svelte | 8 +- .../PropertiesPanel/BindingPanel.svelte | 79 ++++++------------- .../[selectedDatasource]/index.svelte | 19 +++-- 6 files changed, 81 insertions(+), 72 deletions(-) create mode 100644 packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte diff --git a/packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte b/packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte new file mode 100644 index 0000000000..9ab981daa0 --- /dev/null +++ b/packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte @@ -0,0 +1,42 @@ +
+
+ +
+ +
+
+
+ + diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index f0bf22f9e7..6413493580 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -10,6 +10,7 @@ export { default as Select } from "./Form/Select.svelte" export { default as Combobox } from "./Form/Combobox.svelte" export { default as Dropzone } from "./Form/Dropzone.svelte" export { default as Drawer } from "./Drawer/Drawer.svelte" +export { default as DrawerContentWithSidebar } from "./Drawer/DrawerContentWithSidebar.svelte" export { default as Avatar } from "./Avatar/Avatar.svelte" export { default as ActionButton } from "./ActionButton/ActionButton.svelte" export { default as ActionGroup } from "./ActionGroup/ActionGroup.svelte" diff --git a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte index 2eefac0ea8..20fb152691 100644 --- a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte @@ -47,8 +47,4 @@ justify-content: flex-end; align-items: center; } - - div.icon i { - font-size: 16px; - } diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte index 0b56eb0281..14c980f7f9 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte @@ -11,19 +11,21 @@
{#each Object.keys(schema) as configKey} - {#if schema[configKey].type === 'object'} + {#if schema[configKey].type === "object"} + bind:object={integration[configKey]} + /> {:else}
+ bind:value={integration[configKey]} + />
{/if} {/each} diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 647d7a00a5..2a58f18155 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -1,6 +1,6 @@ -
-
-
- - + + + + {#if context} Columns
    - {#each context.filter(context => + {#each context.filter((context) => context.readableBinding.match(searchRgx) ) as { readableBinding }}
  • addToText(readableBinding)}> @@ -80,7 +79,7 @@ Components
      - {#each instance.filter(instance => + {#each instance.filter((instance) => instance.readableBinding.match(searchRgx) ) as { readableBinding }}
    • addToText(readableBinding)}> @@ -93,7 +92,7 @@ Helpers
        - {#each helpers.filter(helper => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper} + {#each helpers.filter((helper) => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper}
      • addToText(helper.text)}>
        @@ -105,49 +104,24 @@
      • {/each}
      -
-
-