From 271e302b10884ab64ff830c9c95d8900c5ea08b8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Apr 2022 14:22:32 +0100 Subject: [PATCH] Add back in component settings panel --- .../builder/src/builderStore/dataBinding.js | 2 +- .../SetupPanel/AutomationBlockSetup.svelte | 2 +- .../buttons/TableFilterButton.svelte | 2 +- .../FrontendNavigatePane.svelte | 6 +-- .../{NavigationPanel => _old}/Layout.svelte | 0 .../NavigationSelectionModal.svelte | 0 .../NewLayoutModal.svelte | 0 .../PropertiesPanel/PropertiesPanel.svelte | 0 .../ScreenSettingsSection.svelte | 0 .../design/_old/[assetType]/_layout.svelte | 4 +- .../NavigationPanel.svelte | 0 .../SettingsPanel.svelte | 14 ++++++- .../componentSettings.js | 38 +++++++++---------- .../ButtonActionDrawer.svelte | 0 .../ButtonActionEditor.svelte | 0 .../actions/ChangeFormStep.svelte | 0 .../actions/ClearForm.svelte | 0 .../actions/CloseScreenModal.svelte | 0 .../actions/ContinueIf.svelte | 0 .../actions/DeleteRow.svelte | 0 .../actions/DuplicateRow.svelte | 0 .../actions/ExecuteQuery.svelte | 0 .../actions/ExportData.svelte | 0 .../ButtonActionEditor/actions/LogOut.svelte | 0 .../actions/NavigateTo.svelte | 0 .../actions/RefreshDataProvider.svelte | 0 .../actions/S3Upload.svelte | 0 .../actions/SaveFields.svelte | 0 .../ButtonActionEditor/actions/SaveRow.svelte | 0 .../actions/TriggerAutomation.svelte | 0 .../actions/UpdateFieldValue.svelte | 0 .../actions/UpdateState.svelte | 0 .../actions/ValidateForm.svelte | 0 .../ButtonActionEditor/actions/index.js | 0 .../controls}/ButtonActionEditor/index.js | 0 .../ButtonActionEditor/manifest.json | 0 .../controls}/ColorPicker.svelte | 0 .../controls}/ColumnEditor/CellDrawer.svelte | 0 .../controls}/ColumnEditor/CellEditor.svelte | 0 .../ColumnEditor/ColumnDrawer.svelte | 0 .../ColumnEditor/ColumnEditor.svelte | 0 .../controls}/DataProviderSelect.svelte | 0 .../controls}/DataSourceSelect.svelte | 0 .../controls}/FieldSelect.svelte | 0 .../FilterEditor/FilterDrawer.svelte | 0 .../FilterEditor/FilterEditor.svelte | 0 .../FlatButtonGroup/FlatButton.svelte | 0 .../FlatButtonGroup/FlatButtonGroup.svelte | 0 .../controls}/FlatButtonGroup/index.js | 0 .../controls}/FormFieldSelect.svelte | 0 .../controls}/IconSelect/IconSelect.svelte | 0 .../controls}/IconSelect/icons.js | 0 .../controls}/IconSelect/index.js | 0 .../controls}/LayoutSelect.svelte | 0 .../controls}/MultiFieldSelect.svelte | 0 .../NavigationEditor/NavigationDrawer.svelte | 0 .../NavigationEditor/NavigationEditor.svelte | 0 .../OptionsEditor/OptionsDrawer.svelte | 0 .../OptionsEditor/OptionsEditor.svelte | 0 .../controls}/PropertyControl.svelte | 0 .../controls}/ResetFieldsButton.svelte | 0 .../controls}/RoleSelect.svelte | 0 .../controls}/S3DataSourceSelect.svelte | 0 .../controls}/SchemaSelect.svelte | 0 .../controls}/SearchFieldSelect.svelte | 0 .../controls}/SectionSelect.svelte | 0 .../controls}/TableSelect.svelte | 0 .../controls}/URLSelect.svelte | 0 .../ValidationEditor/ValidationDrawer.svelte | 0 .../ValidationEditor/ValidationEditor.svelte | 0 .../_components/ComponentSettingsPanel.svelte | 5 --- .../ComponentDropdownMenu.svelte | 0 .../ComponentNavigationPanel.svelte | 2 +- .../{ => navigation}/ComponentTree.svelte | 0 .../ScreenslotDropdownMenu.svelte | 0 .../{ => navigation}/dragDropStore.js | 0 .../settings/ComponentSettingsPanel.svelte | 37 ++++++++++++++++++ .../settings}/ComponentSettingsSection.svelte | 12 +++--- .../settings}/ConditionalUIDrawer.svelte | 4 +- .../settings}/ConditionalUISection.svelte | 2 +- .../settings}/CustomStylesSection.svelte | 0 .../settings}/DesignSection.svelte | 0 .../_components/settings}/StyleSection.svelte | 2 +- .../_components/settings}/componentStyles.js | 2 +- .../[screenId]/[componentId]/index.svelte | 4 +- .../new/_components/NewComponentPanel.svelte | 2 +- .../NewComponentTargetPanel.svelte | 2 +- .../_components/ScreenDropdownMenu.svelte | 15 -------- .../_components/ScreenNavigationPanel.svelte | 2 +- .../_components/ScreenSettingsPanel.svelte | 6 +-- .../[application]/design/theme/index.svelte | 2 +- 91 files changed, 97 insertions(+), 70 deletions(-) rename packages/builder/src/components/design/{NavigationPanel => _old}/FrontendNavigatePane.svelte (94%) rename packages/builder/src/components/design/{NavigationPanel => _old}/Layout.svelte (100%) rename packages/builder/src/components/design/{NavigationPanel => _old}/NavigationSelectionModal.svelte (100%) rename packages/builder/src/components/design/{NavigationPanel => _old}/NewLayoutModal.svelte (100%) rename packages/builder/src/components/design/{ => _old}/PropertiesPanel/PropertiesPanel.svelte (100%) rename packages/builder/src/components/design/{ => _old}/PropertiesPanel/ScreenSettingsSection.svelte (100%) rename packages/builder/src/components/design/{NavigationPanel => navigation}/NavigationPanel.svelte (100%) rename packages/builder/src/components/design/{SettingsPanel => settings}/SettingsPanel.svelte (84%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings}/componentSettings.js (56%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/ButtonActionDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/ButtonActionEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ChangeFormStep.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ClearForm.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/CloseScreenModal.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ContinueIf.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/DeleteRow.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/DuplicateRow.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ExecuteQuery.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ExportData.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/LogOut.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/NavigateTo.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/RefreshDataProvider.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/S3Upload.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/SaveFields.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/SaveRow.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/TriggerAutomation.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/UpdateFieldValue.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/UpdateState.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/ValidateForm.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/actions/index.js (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/index.js (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ButtonActionEditor/manifest.json (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ColorPicker.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ColumnEditor/CellDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ColumnEditor/CellEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ColumnEditor/ColumnDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ColumnEditor/ColumnEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/DataProviderSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/DataSourceSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FieldSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FilterEditor/FilterDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FilterEditor/FilterEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FlatButtonGroup/FlatButton.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FlatButtonGroup/FlatButtonGroup.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FlatButtonGroup/index.js (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/FormFieldSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/IconSelect/IconSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/IconSelect/icons.js (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/IconSelect/index.js (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/LayoutSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/MultiFieldSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/NavigationEditor/NavigationDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/NavigationEditor/NavigationEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/OptionsEditor/OptionsDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/OptionsEditor/OptionsEditor.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/PropertyControl.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ResetFieldsButton.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/RoleSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/S3DataSourceSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/SchemaSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/SearchFieldSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/SectionSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/TableSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/URLSelect.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ValidationEditor/ValidationDrawer.svelte (100%) rename packages/builder/src/components/design/{PropertiesPanel/PropertyControls => settings/controls}/ValidationEditor/ValidationEditor.svelte (100%) delete mode 100644 packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentSettingsPanel.svelte rename packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/{ => navigation}/ComponentDropdownMenu.svelte (100%) rename packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/{ => navigation}/ComponentNavigationPanel.svelte (96%) rename packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/{ => navigation}/ComponentTree.svelte (100%) rename packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/{ => navigation}/ScreenslotDropdownMenu.svelte (100%) rename packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/{ => navigation}/dragDropStore.js (100%) create mode 100644 packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsPanel.svelte rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/ComponentSettingsSection.svelte (89%) rename packages/builder/src/{components/design/PropertiesPanel/PropertyControls => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/ConditionalUIDrawer.svelte (97%) rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/ConditionalUISection.svelte (93%) rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/CustomStylesSection.svelte (100%) rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/DesignSection.svelte (100%) rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/StyleSection.svelte (94%) rename packages/builder/src/{components/design/PropertiesPanel => pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings}/componentStyles.js (99%) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index 8cbc629291..b469eb3048 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -20,7 +20,7 @@ import { } from "@budibase/string-templates" import { TableNames } from "../constants" import { JSONUtils } from "@budibase/frontend-core" -import ActionDefinitions from "components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/manifest.json" +import ActionDefinitions from "components/design/settings/controls/ButtonActionEditor/manifest.json" // Regex to match all instances of template strings const CAPTURE_VAR_INSIDE_TEMPLATE = /{{([^}]+)}}/g diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 856ab5f31a..392ac64606 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -27,7 +27,7 @@ import Editor from "components/integration/QueryEditor.svelte" import { debounce } from "lodash" import ModalBindableInput from "components/common/bindings/ModalBindableInput.svelte" - import FilterDrawer from "components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte" + import FilterDrawer from "components/design/settings/controls/FilterEditor/FilterDrawer.svelte" import { LuceneUtils } from "@budibase/frontend-core" import { getSchemaForTable } from "builderStore/dataBinding" diff --git a/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte index cf9e4b1358..633c7e1ad1 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte @@ -1,7 +1,7 @@ - - diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentDropdownMenu.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/navigation/ComponentDropdownMenu.svelte similarity index 100% rename from packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentDropdownMenu.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/navigation/ComponentDropdownMenu.svelte diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentNavigationPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/navigation/ComponentNavigationPanel.svelte similarity index 96% rename from packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentNavigationPanel.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/navigation/ComponentNavigationPanel.svelte index 98d087d8de..fa16a74f0b 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/ComponentNavigationPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/navigation/ComponentNavigationPanel.svelte @@ -1,5 +1,5 @@ + + + + + + + diff --git a/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte similarity index 89% rename from packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte index a043cca619..d1ba42a656 100644 --- a/packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte @@ -2,11 +2,11 @@ import { isEmpty } from "lodash/fp" import { Input, DetailSummary, notifications } from "@budibase/bbui" import { store } from "builderStore" - import PropertyControl from "./PropertyControls/PropertyControl.svelte" - import LayoutSelect from "./PropertyControls/LayoutSelect.svelte" - import RoleSelect from "./PropertyControls/RoleSelect.svelte" - import ResetFieldsButton from "./PropertyControls/ResetFieldsButton.svelte" - import { getComponentForSettingType } from "./PropertyControls/componentSettings" + import PropertyControl from "components/design/settings/controls/PropertyControl.svelte" + import LayoutSelect from "components/design/settings/controls/LayoutSelect.svelte" + import RoleSelect from "components/design/settings/controls/RoleSelect.svelte" + import ResetFieldsButton from "components/design/settings/controls/ResetFieldsButton.svelte" + import { getComponentForSettingType } from "components/design/settings/componentSettings" import { Utils } from "@budibase/frontend-core" export let componentDefinition @@ -33,7 +33,7 @@ const customSections = settings.filter(setting => setting.section) return [ { - name: componentDefinition?.name || "General", + name: "General", info: componentDefinition?.info, settings: generalSettings, }, diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ConditionalUIDrawer.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUIDrawer.svelte similarity index 97% rename from packages/builder/src/components/design/PropertiesPanel/PropertyControls/ConditionalUIDrawer.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUIDrawer.svelte index 11d19edf7c..2605343c45 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ConditionalUIDrawer.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUIDrawer.svelte @@ -14,8 +14,8 @@ import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte" import { LuceneUtils, Constants } from "@budibase/frontend-core" import { selectedComponent } from "builderStore" - import { getComponentForSettingType } from "./componentSettings" - import PropertyControl from "./PropertyControl.svelte" + import { getComponentForSettingType } from "components/design/settings/componentSettings" + import PropertyControl from "components/design/settings/controls/PropertyControl.svelte" import { getComponentSettings } from "builderStore/componentUtils" export let conditions = [] diff --git a/packages/builder/src/components/design/PropertiesPanel/ConditionalUISection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUISection.svelte similarity index 93% rename from packages/builder/src/components/design/PropertiesPanel/ConditionalUISection.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUISection.svelte index b0863dce83..ba84b67622 100644 --- a/packages/builder/src/components/design/PropertiesPanel/ConditionalUISection.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ConditionalUISection.svelte @@ -7,7 +7,7 @@ notifications, } from "@budibase/bbui" import { store } from "builderStore" - import ConditionalUIDrawer from "./PropertyControls/ConditionalUIDrawer.svelte" + import ConditionalUIDrawer from "./ConditionalUIDrawer.svelte" export let componentInstance export let bindings diff --git a/packages/builder/src/components/design/PropertiesPanel/CustomStylesSection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/CustomStylesSection.svelte similarity index 100% rename from packages/builder/src/components/design/PropertiesPanel/CustomStylesSection.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/CustomStylesSection.svelte diff --git a/packages/builder/src/components/design/PropertiesPanel/DesignSection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/DesignSection.svelte similarity index 100% rename from packages/builder/src/components/design/PropertiesPanel/DesignSection.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/DesignSection.svelte diff --git a/packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/StyleSection.svelte similarity index 94% rename from packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte rename to packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/StyleSection.svelte index aa5147fa62..e34ea1019a 100644 --- a/packages/builder/src/components/design/PropertiesPanel/StyleSection.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/StyleSection.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte index b3315403af..33a254e0f2 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenDropdownMenu.svelte b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenDropdownMenu.svelte index 0ca94d4c13..e9179ee828 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenDropdownMenu.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenDropdownMenu.svelte @@ -62,14 +62,6 @@ notifications.error("Error deleting screen") } } - - const pasteComponent = mode => { - try { - store.actions.components.paste(screen?.props, mode) - } catch (error) { - notifications.error("Error saving component") - } - } @@ -77,13 +69,6 @@ Duplicate - pasteComponent("inside")} - disabled={!$store.componentToPaste} - > - Paste inside - Delete diff --git a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte index 9728fb43c9..654a7272a8 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/screens/_components/ScreenNavigationPanel.svelte @@ -1,6 +1,6 @@