diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index f786a54854..3658fdb7fe 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -38,7 +38,9 @@
{title} - + + +
diff --git a/packages/bbui/src/Form/Core/TextArea.svelte b/packages/bbui/src/Form/Core/TextArea.svelte index 03a233f1e1..28e5955b8d 100644 --- a/packages/bbui/src/Form/Core/TextArea.svelte +++ b/packages/bbui/src/Form/Core/TextArea.svelte @@ -29,7 +29,8 @@ > {#if error}
- Delete + + Delete + import TableSelector from "./TableSelector.svelte" import RowSelector from "./RowSelector.svelte" + import QuerySelector from "./QuerySelector.svelte" import SchemaSetup from "./SchemaSetup.svelte" + import QueryParamSelector from "./QueryParamSelector.svelte" import { Button, Input, Select, Label } from "@budibase/bbui" import { automationStore } from "builderStore" import WebhookDisplay from "../Shared/WebhookDisplay.svelte" import DrawerBindableInput from "../../common/DrawerBindableInput.svelte" import AutomationBindingPanel from "./AutomationBindingPanel.svelte" + import Editor from "components/integration/QueryEditor.svelte" + import CodeEditorModal from "./CodeEditorModal.svelte" export let block export let webhookModal diff --git a/packages/builder/src/components/automation/SetupPanel/CodeEditorModal.svelte b/packages/builder/src/components/automation/SetupPanel/CodeEditorModal.svelte new file mode 100644 index 0000000000..c237827d71 --- /dev/null +++ b/packages/builder/src/components/automation/SetupPanel/CodeEditorModal.svelte @@ -0,0 +1,35 @@ + + + + +
+ +
+
+
+ + + diff --git a/packages/builder/src/components/automation/SetupPanel/QueryParamSelector.svelte b/packages/builder/src/components/automation/SetupPanel/QueryParamSelector.svelte new file mode 100644 index 0000000000..8ef94501a5 --- /dev/null +++ b/packages/builder/src/components/automation/SetupPanel/QueryParamSelector.svelte @@ -0,0 +1,55 @@ + + +
+ +
+ +{#if parameters.length} +
+ {#each parameters as field} + { + value[field.name] = e.detail + }} + label={field.name} + type="string" + {bindings} + /> + {/each} +
+{/if} + + diff --git a/packages/builder/src/components/automation/SetupPanel/QuerySelector.svelte b/packages/builder/src/components/automation/SetupPanel/QuerySelector.svelte new file mode 100644 index 0000000000..9019f4ee56 --- /dev/null +++ b/packages/builder/src/components/automation/SetupPanel/QuerySelector.svelte @@ -0,0 +1,15 @@ + + +
+ +
diff --git a/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte b/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte index 7a6fda79b5..1257563ff8 100644 --- a/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte @@ -54,7 +54,9 @@
-
+
+ +
{#each fieldsArray as field}
diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index 4e2e1f6e1d..ab100b7e8b 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -35,7 +35,9 @@ {#if icon} -
+
+ +
{/if}
{text}
{#if withActions} diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte index 6cb323697b..7322be165f 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte @@ -71,36 +71,42 @@
Delete - Move up - Move down - Duplicate - storeComponentForCopy(true)} - >Cut - storeComponentForCopy(false)} - >Copy + + Move up + + + Move down + + + Duplicate + + storeComponentForCopy(true)}> + Cut + + storeComponentForCopy(false)}> + Copy + pasteComponent("above")} - disabled={noPaste}>Paste above + Paste above + pasteComponent("below")} - disabled={noPaste}>Paste below + Paste below + pasteComponent("inside")} - disabled={noPaste || noChildrenAllowed}>Paste inside + Paste inside + {#if !readOnly} -
+
+ +
{/if}