diff --git a/packages/bbui/package.json b/packages/bbui/package.json index 7d34c5c6d7..67277ac2f0 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -43,6 +43,14 @@ "dist" ], "dependencies": { + "@spectrum-css/actionbutton": "^1.0.1", + "@spectrum-css/button": "^3.0.1", + "@spectrum-css/checkbox": "^3.0.1", + "@spectrum-css/icon": "^3.0.1", + "@spectrum-css/label": "^2.0.9", + "@spectrum-css/table": "^3.0.1", + "@spectrum-css/vars": "^3.0.1", + "dayjs": "^1.10.4", "markdown-it": "^12.0.4", "quill": "^1.3.7", "sirv-cli": "^0.4.6", diff --git a/packages/bbui/src/Table/AttachmentRenderer.svelte b/packages/bbui/src/Table/AttachmentRenderer.svelte new file mode 100644 index 0000000000..45bd97a849 --- /dev/null +++ b/packages/bbui/src/Table/AttachmentRenderer.svelte @@ -0,0 +1,39 @@ + + +{#each attachments as attachment} + {#if attachment.type.startsWith('image')} + + {:else} +
+
+ {customColumnTitle || ''}
+
+ |
+ {/if}
+ {#each fields as field}
+ sortBy(field)}>
+
+
+
+ {schema[field]?.displayName || schema[field]?.name}
+
+ {#if schema[field]?.autocolumn}
+
+ {/if}
+ {#if sortColumn === field}
+
+ {/if}
+ {#if allowEditColumns}
+
+ {/if}
+ |
+ {/each}
+
---|---|
+
+
+ |
+ {/if}
+ {#each fields as field}
+
+
+
+ |
+ {/each}
+ {/if}
+