From 275f0ca0926a7468525d9713a458e1b4b7bf0f72 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 19 Jan 2021 10:47:00 +0000 Subject: [PATCH] Add navigation bar, links and row detail definitions --- .../builder/src/builderStore/dataBinding.js | 1 + .../design/AppPreview/componentStructure.json | 4 +- .../PropertyControls/ScreenSelect.svelte | 92 ++++++++----------- .../PropertiesPanel/SettingsView.svelte | 1 + .../design/temporaryPanelStructure.js | 44 --------- packages/standard-components/components.json | 29 ------ packages/standard-components/manifest.json | 52 +++++++++++ packages/standard-components/src/index.js | 6 +- 8 files changed, 99 insertions(+), 130 deletions(-) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index 296d657656..5b3e24211c 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -53,6 +53,7 @@ export const getBindableContexts = (rootComponent, componentId) => { readableBinding: `${provider._instanceName}.${table.name}.${key}`, fieldSchema, providerId: provider._id, + tableId: provider.datasource.tableId, }) }) }) diff --git a/packages/builder/src/components/design/AppPreview/componentStructure.json b/packages/builder/src/components/design/AppPreview/componentStructure.json index 2fc80f6829..1359b20ce0 100644 --- a/packages/builder/src/components/design/AppPreview/componentStructure.json +++ b/packages/builder/src/components/design/AppPreview/componentStructure.json @@ -22,11 +22,13 @@ }, "button", "text", + "link", { "name": "Other", "icon": "ri-file-edit-line", "children": [ - "screenslot" + "screenslot", + "navigation" ] } ] \ No newline at end of file diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ScreenSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ScreenSelect.svelte index 9a3e555740..993e49faa6 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ScreenSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ScreenSelect.svelte @@ -1,67 +1,53 @@