From 36e8664605a54e65661c79d20bf6f76750e149f5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 6 Mar 2023 12:29:18 +0000 Subject: [PATCH] WIP column popovers for dataspace sheets --- .../src/components/sheet/HeaderRow.svelte | 24 +----- .../src/components/sheet/NewRow.svelte | 2 +- .../src/components/sheet/Sheet.svelte | 3 +- .../src/components/sheet/SheetRow.svelte | 2 +- .../src/components/sheet/StickyColumn.svelte | 2 +- .../components/sheet/cells/HeaderCell.svelte | 78 +++++++++++++++++++ .../sheet/{ => cells}/SheetCell.svelte | 22 ------ 7 files changed, 85 insertions(+), 48 deletions(-) create mode 100644 packages/frontend-core/src/components/sheet/cells/HeaderCell.svelte rename packages/frontend-core/src/components/sheet/{ => cells}/SheetCell.svelte (87%) diff --git a/packages/frontend-core/src/components/sheet/HeaderRow.svelte b/packages/frontend-core/src/components/sheet/HeaderRow.svelte index 553ee6430a..54129a9b63 100644 --- a/packages/frontend-core/src/components/sheet/HeaderRow.svelte +++ b/packages/frontend-core/src/components/sheet/HeaderRow.svelte @@ -1,34 +1,16 @@
{#each $visibleColumns as column} - reorder.actions.startReordering(column.name, e)} - width={column.width} - left={column.left} - > - - - {column.name} - - + {/each}
diff --git a/packages/frontend-core/src/components/sheet/NewRow.svelte b/packages/frontend-core/src/components/sheet/NewRow.svelte index 7d01f6010c..90af4cc958 100644 --- a/packages/frontend-core/src/components/sheet/NewRow.svelte +++ b/packages/frontend-core/src/components/sheet/NewRow.svelte @@ -1,5 +1,5 @@ + +
+ reorder.actions.startReordering(column.name, e)} + on:click={openPopover} + width={column.width} + left={column.left} + > +
+ +
+ {column.name} asdasdasd asdasdas asdasdasd +
+
+ +
+
+
+
+ +asdsad asdasd asdasd asasa + + diff --git a/packages/frontend-core/src/components/sheet/SheetCell.svelte b/packages/frontend-core/src/components/sheet/cells/SheetCell.svelte similarity index 87% rename from packages/frontend-core/src/components/sheet/SheetCell.svelte rename to packages/frontend-core/src/components/sheet/cells/SheetCell.svelte index a4140b6434..e719087adb 100644 --- a/packages/frontend-core/src/components/sheet/SheetCell.svelte +++ b/packages/frontend-core/src/components/sheet/cells/SheetCell.svelte @@ -1,7 +1,4 @@