diff --git a/packages/bbui/package.json b/packages/bbui/package.json index 7e57282b2c..1d05abcc19 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -71,6 +71,7 @@ "@spectrum-css/tags": "^3.0.2", "@spectrum-css/textfield": "^3.0.1", "@spectrum-css/toast": "^3.0.1", + "@spectrum-css/tooltip": "^3.0.3", "@spectrum-css/treeview": "^3.0.2", "@spectrum-css/typography": "^3.0.1", "@spectrum-css/underlay": "^2.0.9", diff --git a/packages/bbui/src/Table/AttachmentRenderer.svelte b/packages/bbui/src/Table/AttachmentRenderer.svelte index ab9760a980..90bb5cce66 100644 --- a/packages/bbui/src/Table/AttachmentRenderer.svelte +++ b/packages/bbui/src/Table/AttachmentRenderer.svelte @@ -1,4 +1,7 @@ + + + +
+ {text} + +
+
diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 63abfa319b..f6d2c4eb9c 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -30,6 +30,7 @@ export { default as Label } from "./Label/Label.svelte" export { default as Layout } from "./Layout/Layout.svelte" export { default as Page } from "./Layout/Page.svelte" export { default as Link } from "./Link/Link.svelte" +export { default as Tooltip } from "./Tooltip/Tooltip.svelte" export { default as Menu } from "./Menu/Menu.svelte" export { default as MenuSection } from "./Menu/Section.svelte" export { default as MenuSeparator } from "./Menu/Separator.svelte" diff --git a/packages/bbui/yarn.lock b/packages/bbui/yarn.lock index c6991c4a03..71582be096 100644 --- a/packages/bbui/yarn.lock +++ b/packages/bbui/yarn.lock @@ -236,6 +236,11 @@ resolved "https://registry.yarnpkg.com/@spectrum-css/toast/-/toast-3.0.2.tgz#8e27cce799b1b1d0054a88b135dddf7fbf1bdc78" integrity sha512-sJp8DRsU2iSF67hlOQHFdRkbJHncspoOywHEsqcjh2KFl8gRY12rQL0ORG6J2THUt0LVBWSy48iwph9s4rkwsA== +"@spectrum-css/tooltip@^3.0.3": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@spectrum-css/tooltip/-/tooltip-3.0.3.tgz#26b8ca3b3d30e29630244d85eb4fc11d0c841281" + integrity sha512-ztRF7WW1FzyNavXBRc+80z67UoOrY9wl3cMYsVD3MpDnyxdzP8cjza1pCcolKBaFqRTcQKkxKw3GWtGICRKR5A== + "@spectrum-css/treeview@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@spectrum-css/treeview/-/treeview-3.0.2.tgz#d54d8f17290babb1c885f5d9355e225421beb0d2" diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 88ee57e176..f5f6da7d86 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -33,6 +33,7 @@ let fieldDefinitions = cloneDeep(FIELDS) const { hide } = getContext(Context.Modal) + export let onClosed = () => {} export let field = { type: "string", constraints: fieldDefinitions.STRING.constraints, @@ -56,9 +57,8 @@ ) $: required = !!field?.constraints?.presence || primaryDisplay $: uneditable = - ($tables.selected?._id === TableNames.USERS && - UNEDITABLE_USER_FIELDS.includes(field.name)) || - (originalName && field.type === LINK_TYPE) + $tables.selected?._id === TableNames.USERS && + UNEDITABLE_USER_FIELDS.includes(field.name) $: invalid = !field.name || (field.type === LINK_TYPE && !field.tableId) || @@ -98,7 +98,8 @@ } else { tables.deleteField(field) notifications.success(`Column ${field.name} deleted.`) - hide() + confirmDeleteDialog.hide() + deletion = false } } @@ -193,7 +194,11 @@ onConfirm={saveColumn} disabled={invalid} > - +