From 27c1788db28b06d41d15361fba5e513d784d3de3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 28 Oct 2024 14:17:50 +0000 Subject: [PATCH] Update view calculation button to be a detail popover --- .../grid/GridViewCalculationButton.svelte | 142 +++++++++--------- 1 file changed, 74 insertions(+), 68 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte index 72216f3b3b..10bf35d4dc 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte @@ -1,15 +1,15 @@ - - Configure calculations{count ? `: ${count}` : ""} - + + + + Configure calculations{count ? `: ${count}` : ""} + + - - - {#if calculations.length} -
- {#each calculations as calc, idx} - {idx === 0 ? "Calculate" : "and"} the - - deleteCalc(idx)} - color="var(--spectrum-global-color-gray-700)" - /> - {/each} - Group by -
- -
+ {#if calculations.length} +
+ {#each calculations as calc, idx} + {idx === 0 ? "Calculate" : "and"} the + + deleteCalc(idx)} + color="var(--spectrum-global-color-gray-700)" + /> + {/each} + Group by +
+
- {/if} -
- = 5} - > - Add calculation -
- + - - + icon="Add" + on:click={addCalc} + disabled={calculations.length >= 5} + > + Add calculation + +
+ + +
+ +
+