From 79e179d726b4e81fef8dfe23f1e76affb3054ded Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 15 Sep 2023 18:52:50 +0200 Subject: [PATCH] Implement search and push --- .../grid/cells/BBReferenceCell.svelte | 32 +++++++++++++++---- .../grid/cells/RelationshipCell.svelte | 5 +-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte b/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte index 1f41f42a08..a075aaf8ee 100644 --- a/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte @@ -1,16 +1,36 @@ - + diff --git a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte index ac7869bc4b..74610ee431 100644 --- a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte @@ -30,6 +30,8 @@ export let invertX = false export let invertY = false export let contentLines = 1 + export let searchFunction = API.searchTable + export let primaryDisplay const { API, dispatch } = getContext("grid") const color = getColor(0) @@ -38,7 +40,6 @@ let searchResults let searchString let lastSearchString - let primaryDisplay let candidateIndex let lastSearchId let searching = false @@ -96,7 +97,7 @@ lastSearchId = Math.random() searching = true const thisSearchId = lastSearchId - const results = await API.searchTable({ + const results = await searchFunction({ paginate: false, tableId: schema.tableId, limit: 20,