diff --git a/lerna.json b/lerna.json
index 3746f256b5..0e5fa45410 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "2.8.22-alpha.2",
+ "version": "2.8.22-alpha.3",
"npmClient": "yarn",
"packages": [
"packages/*"
diff --git a/nx.json b/nx.json
index 3df61886c2..c2f44ef70d 100644
--- a/nx.json
+++ b/nx.json
@@ -3,11 +3,8 @@
"default": {
"runner": "nx-cloud",
"options": {
- "cacheableOperations": [
- "build",
- "test"
- ],
- "accessToken": "YWNiYzc5NTEtMzMzZC00NDhjLTgyNjktZTllMjI1MzM4OGQxfHJlYWQtd3JpdGU="
+ "cacheableOperations": ["build", "test"],
+ "accessToken": "MmM4OGYxNzItMDBlYy00ZmE3LTk4MTYtNmJhYWMyZjBjZTUyfHJlYWQ="
}
}
},
@@ -15,9 +12,7 @@
"dev:builder": {
"dependsOn": [
{
- "projects": [
- "@budibase/string-templates"
- ],
+ "projects": ["@budibase/string-templates"],
"target": "build"
}
]
diff --git a/packages/builder/src/components/design/settings/componentSettings.js b/packages/builder/src/components/design/settings/componentSettings.js
index 314391e77c..8b151564a1 100644
--- a/packages/builder/src/components/design/settings/componentSettings.js
+++ b/packages/builder/src/components/design/settings/componentSettings.js
@@ -23,6 +23,7 @@ import BasicColumnEditor from "./controls/ColumnEditor/BasicColumnEditor.svelte"
import GridColumnEditor from "./controls/ColumnEditor/GridColumnEditor.svelte"
import BarButtonList from "./controls/BarButtonList.svelte"
import FieldConfiguration from "./controls/FieldConfiguration/FieldConfiguration.svelte"
+import RelationshipFilterEditor from "./controls/RelationshipFilterEditor.svelte"
const componentMap = {
text: DrawerBindableInput,
@@ -44,6 +45,7 @@ const componentMap = {
schema: SchemaSelect,
section: SectionSelect,
filter: FilterEditor,
+ "filter/relationship": RelationshipFilterEditor,
url: URLSelect,
fieldConfiguration: FieldConfiguration,
columns: ColumnEditor,
diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte
index 88c3842f54..828d189850 100644
--- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte
+++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte
@@ -13,13 +13,14 @@
export let value = []
export let componentInstance
export let bindings = []
+ export let schema = null
let drawer
$: tempValue = value
$: datasource = getDatasourceForProvider($currentAsset, componentInstance)
- $: schema = getSchemaForDatasource($currentAsset, datasource)?.schema
- $: schemaFields = Object.values(schema || {})
+ $: dsSchema = getSchemaForDatasource($currentAsset, datasource)?.schema
+ $: schemaFields = Object.values(schema || dsSchema || {})
$: text = getText(value?.filter(filter => filter.field))
async function saveFilter() {
diff --git a/packages/builder/src/components/design/settings/controls/RelationshipFilterEditor.svelte b/packages/builder/src/components/design/settings/controls/RelationshipFilterEditor.svelte
new file mode 100644
index 0000000000..0010a22d15
--- /dev/null
+++ b/packages/builder/src/components/design/settings/controls/RelationshipFilterEditor.svelte
@@ -0,0 +1,35 @@
+
+
+