From 54f9507e53c7226e2d175e31f5b50ca326f7beca Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 20 Aug 2024 08:24:23 +0100 Subject: [PATCH] Update buttons for views --- packages/bbui/package.json | 2 +- .../DataTable/RelationshipDataTable.svelte | 44 ------------------- .../backend/DataTable/ViewV2DataTable.svelte | 39 ---------------- ...svelte => GridColumnsSettingButton.svelte} | 6 +-- ...izeButton.svelte => GridSizeButton.svelte} | 27 ++++++------ ...ortButton.svelte => GridSortButton.svelte} | 0 .../common}/ToggleActionButtonGroup.svelte | 9 ++-- .../table/[tableId]/[viewId]/index.svelte | 44 ++++++++++++++++++- .../relationship/[rowId]/[field]/index.svelte | 10 ----- .../relationship/[rowId]/index.svelte | 7 --- .../table/[tableId]/relationship/index.svelte | 7 --- .../data/view/v2/[viewId]/_layout.svelte | 24 ---------- .../data/view/v2/[viewId]/index.svelte | 5 --- .../[application]/data/view/v2/index.svelte | 5 --- .../components/grid/cells/HeaderCell.svelte | 2 +- .../src/components/grid/layout/Grid.svelte | 22 +++++----- .../src/components/grid/lib/utils.js | 21 --------- packages/frontend-core/src/utils/index.js | 1 + packages/frontend-core/src/utils/schema.js | 20 +++++++++ 19 files changed, 95 insertions(+), 200 deletions(-) delete mode 100644 packages/builder/src/components/backend/DataTable/RelationshipDataTable.svelte delete mode 100644 packages/builder/src/components/backend/DataTable/ViewV2DataTable.svelte rename packages/builder/src/components/backend/DataTable/buttons/grid/{ColumnsSettingButton.svelte => GridColumnsSettingButton.svelte} (94%) rename packages/builder/src/components/backend/DataTable/buttons/grid/{SizeButton.svelte => GridSizeButton.svelte} (86%) rename packages/builder/src/components/backend/DataTable/buttons/grid/{SortButton.svelte => GridSortButton.svelte} (100%) rename packages/{frontend-core/src/components/grid/controls => builder/src/components/common}/ToggleActionButtonGroup.svelte (82%) delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/relationship/[rowId]/[field]/index.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/relationship/[rowId]/index.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/relationship/index.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/_layout.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/index.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/data/view/v2/index.svelte create mode 100644 packages/frontend-core/src/utils/schema.js diff --git a/packages/bbui/package.json b/packages/bbui/package.json index 1b3510cf3b..272e0937e1 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -34,7 +34,7 @@ "dist" ], "dependencies": { - "@adobe/spectrum-css-workflow-icons": "1.2.1", + "@adobe/spectrum-css-workflow-icons": "3.0.0", "@budibase/shared-core": "0.0.0", "@budibase/string-templates": "0.0.0", "@spectrum-css/accordion": "3.0.24", diff --git a/packages/builder/src/components/backend/DataTable/RelationshipDataTable.svelte b/packages/builder/src/components/backend/DataTable/RelationshipDataTable.svelte deleted file mode 100644 index f107acc315..0000000000 --- a/packages/builder/src/components/backend/DataTable/RelationshipDataTable.svelte +++ /dev/null @@ -1,44 +0,0 @@ - - -{#if row && row._id === rowId} - -{/if} diff --git a/packages/builder/src/components/backend/DataTable/ViewV2DataTable.svelte b/packages/builder/src/components/backend/DataTable/ViewV2DataTable.svelte deleted file mode 100644 index 5f7a0feb67..0000000000 --- a/packages/builder/src/components/backend/DataTable/ViewV2DataTable.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte similarity index 94% rename from packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingButton.svelte rename to packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte index f3a7678cf2..706b98ae29 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte @@ -1,9 +1,9 @@ -#
-
+
{#each options as option}