From 7dc53dc2e6068fb48e5808f173e96ed9eec71f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 30 Apr 2021 13:38:06 +0200 Subject: [PATCH] convert all Heading instances to use new API --- packages/bbui/src/Drawer/Drawer.svelte | 2 +- .../SetupPanel/AutomationBindingPanel.svelte | 6 +++--- .../automation/SetupPanel/SetupPanel.svelte | 14 ++++++++----- .../components/backend/DataTable/Table.svelte | 17 ++++++++------- .../PropertiesPanel/BindingPanel.svelte | 6 +++--- .../PropertyControls/DataSourceSelect.svelte | 10 ++++----- .../integration/QueryParameterBuilder.svelte | 2 +- .../components/integration/QueryViewer.svelte | 8 +++---- .../src/components/start/AppCard.svelte | 2 +- .../src/components/start/AppList.svelte | 2 +- .../start/BuilderSettingsModal.svelte | 6 +++--- .../components/start/CreateAppModal.svelte | 21 +++++++++++-------- .../src/components/start/Steps/Info.svelte | 19 ++++++++++------- .../src/components/start/Steps/User.svelte | 14 ++++++++----- .../src/components/start/TemplateList.svelte | 4 ++-- .../[selectedDatasource]/index.svelte | 6 +++--- .../builder/[application]/deploy/index.svelte | 2 +- .../builder/src/pages/builder/index.svelte | 2 +- 18 files changed, 79 insertions(+), 64 deletions(-) diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index 60f3461756..f786a54854 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -37,7 +37,7 @@
- {title} + {title}
diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte index 3889ace050..897c0469e4 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBindingPanel.svelte @@ -54,12 +54,12 @@
- Available bindings + Available bindings
{#each categories as [categoryName, bindings]} - {categoryName} + {categoryName} {#each bindableProperties.filter((binding) => binding.label.match(searchRgx) ) as binding} @@ -75,7 +75,7 @@ {/each}
- Helpers + Helpers {#each helpers.filter((helper) => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper}
addToText(helper)}> {helper.label} diff --git a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte index 43f0fe8835..820e052a07 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -47,25 +47,28 @@
- Setup + Setup setAutomationLive(false)} /> + on:click={() => setAutomationLive(false)} + /> setAutomationLive(true)} /> + on:click={() => setAutomationLive(true)} + />
{#if $automationStore.selectedBlock} + {webhookModal} + /> {:else if $automationStore.selectedAutomation}
{automation.name}
@@ -74,7 +77,8 @@ secondary wide data-cy="save-automation-setup" - on:click={saveAutomation}> + on:click={saveAutomation} +> Save Automation diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index 7a46fbf92e..4273089d89 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -40,7 +40,7 @@ component: RoleCell, }, ] - UNEDITABLE_USER_FIELDS.forEach(field => { + UNEDITABLE_USER_FIELDS.forEach((field) => { if (schema[field]) { schema[field].editable = false } @@ -68,19 +68,19 @@ rows: selectedRows, type: "delete", }) - data = data.filter(row => !selectedRows.includes(row)) + data = data.filter((row) => !selectedRows.includes(row)) notifications.success(`Successfully deleted ${selectedRows.length} rows`) selectedRows = [] } - const editRow = row => { + const editRow = (row) => { editableRow = row if (row) { editRowModal.show() } } - const editColumn = field => { + const editColumn = (field) => { editableColumn = schema?.[field] if (editableColumn) { editColumnModal.show() @@ -91,7 +91,7 @@
{#if title} - {title} + {title} {/if} {#if loading}
@@ -118,9 +118,10 @@ allowEditRows={allowEditing} allowEditColumns={allowEditing} showAutoColumns={!hideAutocolumns} - on:editcolumn={e => editColumn(e.detail)} - on:editrow={e => editRow(e.detail)} - on:clickrelationship={e => selectRelationship(e.detail)} /> + on:editcolumn={(e) => editColumn(e.detail)} + on:editrow={(e) => editRow(e.detail)} + on:clickrelationship={(e) => selectRelationship(e.detail)} + /> {/key} diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index ce939e02e3..f8fcce0d24 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -63,7 +63,7 @@ {#if context}
- Columns + Columns
    {#each context.filter((context) => context.readableBinding.match(searchRgx) @@ -77,7 +77,7 @@ {/if} {#if instance}
    - Components + Components
      {#each instance.filter((instance) => instance.readableBinding.match(searchRgx) @@ -90,7 +90,7 @@
    {/if}
    - Helpers + Helpers
      {#each helpers.filter((helper) => helper.label.match(searchRgx) || helper.description.match(searchRgx)) as helper}
    • addToText(helper.text)}> diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte index 76b0a984bd..54002cfc99 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte @@ -143,7 +143,7 @@