diff --git a/.gitignore b/.gitignore
index 3eb705dbbf..8861a14d20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -107,3 +107,4 @@ budibase-component
budibase-datasource
*.iml
+.nx
\ No newline at end of file
diff --git a/lerna.json b/lerna.json
index 5a561bec04..9cffdba08a 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "2.22.9",
+ "version": "2.22.12",
"npmClient": "yarn",
"packages": [
"packages/*",
diff --git a/packages/bbui/src/Actions/click_outside.js b/packages/bbui/src/Actions/click_outside.js
index 2c54427b3a..eafca657f3 100644
--- a/packages/bbui/src/Actions/click_outside.js
+++ b/packages/bbui/src/Actions/click_outside.js
@@ -79,7 +79,8 @@ const removeHandler = id => {
export default (element, opts) => {
const id = Math.random()
const update = newOpts => {
- const callback = newOpts?.callback || newOpts
+ const callback =
+ newOpts?.callback || (typeof newOpts === "function" ? newOpts : null)
const anchor = newOpts?.anchor || element
const allowedType = newOpts?.allowedType || "click"
updateHandler(id, element, anchor, callback, allowedType)
diff --git a/packages/bbui/src/Drawer/DrawerContent.svelte b/packages/bbui/src/Drawer/DrawerContent.svelte
index 490dfecc31..f7345afb11 100644
--- a/packages/bbui/src/Drawer/DrawerContent.svelte
+++ b/packages/bbui/src/Drawer/DrawerContent.svelte
@@ -42,7 +42,6 @@
.main {
height: 100%;
overflow: auto;
- overflow-x: hidden;
}
.padding .main {
padding: var(--spacing-xl);
diff --git a/packages/bbui/src/Table/CellRenderer.svelte b/packages/bbui/src/Table/CellRenderer.svelte
index 4ad6e22d7e..eff1178f6d 100644
--- a/packages/bbui/src/Table/CellRenderer.svelte
+++ b/packages/bbui/src/Table/CellRenderer.svelte
@@ -12,6 +12,7 @@
export let schema
export let value
export let customRenderers = []
+ export let snippets
let renderer
const typeMap = {
@@ -44,7 +45,7 @@
if (!template) {
return value
}
- return processStringSync(template, { value })
+ return processStringSync(template, { value, snippets })
}
diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte
index 33b9bd9a7e..868f7b3a0b 100644
--- a/packages/bbui/src/Table/Table.svelte
+++ b/packages/bbui/src/Table/Table.svelte
@@ -42,6 +42,7 @@
export let customPlaceholder = false
export let showHeaderBorder = true
export let placeholderText = "No rows found"
+ export let snippets = []
const dispatch = createEventDispatcher()
@@ -425,6 +426,7 @@
- {:else if editableColumn.type === FieldType.ATTACHMENT}
- {
- if (!e.detail) {
- editableColumn.subtype = FieldTypeSubtypes.ATTACHMENT.SINGLE
- } else {
- delete editableColumn.subtype
- }
- }}
- thin
- text="Allow multiple"
- />
{/if}
{#if editableColumn.type === AUTO_TYPE || editableColumn.autocolumn}