diff --git a/packages/builder/package.json b/packages/builder/package.json index bc1abf3ff1..267e4f5d72 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -63,7 +63,7 @@ } }, "dependencies": { - "@budibase/bbui": "^1.58.4", + "@budibase/bbui": "^1.58.5", "@budibase/client": "^0.7.6", "@budibase/colorpicker": "1.0.1", "@budibase/string-templates": "^0.7.6", diff --git a/packages/builder/yarn.lock b/packages/builder/yarn.lock index c95e2da250..d44a9e63c0 100644 --- a/packages/builder/yarn.lock +++ b/packages/builder/yarn.lock @@ -842,11 +842,10 @@ lodash "^4.17.19" to-fast-properties "^2.0.0" -"@budibase/bbui@^1.58.4": - version "1.58.4" - resolved "https://registry.yarnpkg.com/@budibase/bbui/-/bbui-1.58.4.tgz#a74d66b3dd715b0a9861a0f86bc0b863fd8f1d44" - integrity sha512-1oEVt7zMREM594CAUIXqOtiuP4Sx4FbfgPBHTZ+t4RhFfbFqvU7yyakqPZM2LhTAmO5Rfa+c+dfFLh+y1++KaA== - +"@budibase/bbui@^1.58.5": + version "1.58.5" + resolved "https://registry.yarnpkg.com/@budibase/bbui/-/bbui-1.58.5.tgz#c9ce712941760825c7774a1de77594e989db4561" + integrity sha512-0j1I7BetJ2GzB1BXKyvvlkuFphLmADJh2U/Ihubwxx5qUDY8REoVzLgAB4c24zt0CGVTF9VMmOoMLd0zD0QwdQ== dependencies: markdown-it "^12.0.2" quill "^1.3.7" diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json index ec179f934a..cb56664bbd 100644 --- a/packages/standard-components/package.json +++ b/packages/standard-components/package.json @@ -40,7 +40,7 @@ "gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd", "dependencies": { "@adobe/spectrum-css-workflow-icons": "^1.1.0", - "@budibase/bbui": "^1.58.4", + "@budibase/bbui": "^1.58.5", "@budibase/svelte-ag-grid": "^0.0.16", "@spectrum-css/actionbutton": "^1.0.0-beta.1", "@spectrum-css/button": "^3.0.0-beta.6", diff --git a/packages/standard-components/src/Search.svelte b/packages/standard-components/src/Search.svelte index cbe4ece78f..affedccd2c 100644 --- a/packages/standard-components/src/Search.svelte +++ b/packages/standard-components/src/Search.svelte @@ -10,7 +10,7 @@ Input, } from "@budibase/bbui" - const { API, styleable, DataProvider, builderStore } = getContext("sdk") + const { API, styleable, Provider, builderStore } = getContext("sdk") const component = getContext("component") export let table = [] @@ -39,7 +39,7 @@ if (!isEmpty(table)) { const tableDef = await API.fetchTableDefinition(table) schema = tableDef.schema - rows = await API.searchTable({ + rows = await API.searchTableData({ tableId: table, search: parsedSearch, pagination: { @@ -107,18 +107,16 @@ {#if loaded} {#if rows.length > 0} {#if $component.children === 0 && $builderStore.inBuilder} -
Add some components too
+Add some components to display
{:else} {#each rows as row} -Feed me some data
- {:else} -{noRowsMessage}
+ {:else if noRowsMessage} +{noRowsMessage}
{/if} {/if}