|
|
@ -20,7 +20,6 @@ |
|
|
import QueryParamSelector from "./QueryParamSelector.svelte" |
|
|
import QueryParamSelector from "./QueryParamSelector.svelte" |
|
|
import CronBuilder from "./CronBuilder.svelte" |
|
|
import CronBuilder from "./CronBuilder.svelte" |
|
|
import Editor from "components/integration/QueryEditor.svelte" |
|
|
import Editor from "components/integration/QueryEditor.svelte" |
|
|
import { database } from "stores/backend" |
|
|
|
|
|
import { debounce } from "lodash" |
|
|
import { debounce } from "lodash" |
|
|
import ModalBindableInput from "components/common/bindings/ModalBindableInput.svelte" |
|
|
import ModalBindableInput from "components/common/bindings/ModalBindableInput.svelte" |
|
|
import FilterDrawer from "components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte" |
|
|
import FilterDrawer from "components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte" |
|
|
@ -35,13 +34,11 @@ |
|
|
let drawer |
|
|
let drawer |
|
|
let tempFilters = lookForFilters(schemaProperties) || [] |
|
|
let tempFilters = lookForFilters(schemaProperties) || [] |
|
|
let fillWidth = true |
|
|
let fillWidth = true |
|
|
|
|
|
|
|
|
$: stepId = block.stepId |
|
|
$: stepId = block.stepId |
|
|
$: bindings = getAvailableBindings( |
|
|
$: bindings = getAvailableBindings( |
|
|
block || $automationStore.selectedBlock, |
|
|
block || $automationStore.selectedBlock, |
|
|
$automationStore.selectedAutomation?.automation?.definition |
|
|
$automationStore.selectedAutomation?.automation?.definition |
|
|
) |
|
|
) |
|
|
$: instanceId = $database._id |
|
|
|
|
|
|
|
|
|
|
|
$: inputData = testData ? testData : block.inputs |
|
|
$: inputData = testData ? testData : block.inputs |
|
|
$: tableId = inputData ? inputData.tableId : null |
|
|
$: tableId = inputData ? inputData.tableId : null |
|
|
@ -210,7 +207,7 @@ |
|
|
{:else if value.customType === "webhookUrl"} |
|
|
{:else if value.customType === "webhookUrl"} |
|
|
<WebhookDisplay value={inputData[key]} /> |
|
|
<WebhookDisplay value={inputData[key]} /> |
|
|
{:else if value.customType === "triggerSchema"} |
|
|
{:else if value.customType === "triggerSchema"} |
|
|
<SchemaSetup on:change={e => onChange(e, key)} value={value[key]} /> |
|
|
<SchemaSetup on:change={e => onChange(e, key)} value={inputData[key]} /> |
|
|
{:else if value.customType === "code"} |
|
|
{:else if value.customType === "code"} |
|
|
<CodeEditorModal> |
|
|
<CodeEditorModal> |
|
|
<pre>{JSON.stringify(bindings, null, 2)}</pre> |
|
|
<pre>{JSON.stringify(bindings, null, 2)}</pre> |
|
|
|