From f72dda18de4c60af232b2987ae731e176540930c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Thu, 8 Apr 2021 18:10:18 +0200 Subject: [PATCH] actually convert table command buttons --- packages/builder/src/App.svelte | 7 +++++++ .../SetupPanel/AutomationBlockSetup.svelte | 2 +- .../automation/SetupPanel/SetupPanel.svelte | 2 +- .../DataTable/buttons/CalculateButton.svelte | 9 +++------ .../DataTable/buttons/CreateColumnButton.svelte | 13 ++++--------- .../DataTable/buttons/CreateRowButton.svelte | 11 ++++------- .../DataTable/buttons/CreateViewButton.svelte | 7 +++---- .../DataTable/buttons/DeleteRowsButton.svelte | 15 ++++++--------- .../DataTable/buttons/EditRolesButton.svelte | 12 ++---------- .../DataTable/buttons/ExportButton.svelte | 8 +++----- .../DataTable/buttons/FilterButton.svelte | 9 +++------ .../DataTable/buttons/GroupByButton.svelte | 3 +-- .../buttons/HideAutocolumnButton.svelte | 11 ++++++----- .../DataTable/buttons/ManageAccessButton.svelte | 16 ++++------------ .../DataTable/modals/CreateEditColumn.svelte | 5 ++--- .../TableIntegrationMenu/index.svelte | 3 +-- .../modals/CreateDatasourceModal.svelte | 1 + packages/builder/src/pages/builder/index.svelte | 5 ----- 18 files changed, 52 insertions(+), 87 deletions(-) diff --git a/packages/builder/src/App.svelte b/packages/builder/src/App.svelte index 0f9d0695f2..5c87ebbc7d 100644 --- a/packages/builder/src/App.svelte +++ b/packages/builder/src/App.svelte @@ -14,3 +14,10 @@ + {/each} {#if stepId === 'WEBHOOK'} - {/if} diff --git a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte index 68d5eee0c4..ed4ea54964 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -65,7 +65,7 @@ {webhookModal} /> {:else if $automationStore.selectedAutomation}
{automation.name}
- + {/if} diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte index 7677451a44..566bec2de0 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CreateColumnButton.svelte @@ -1,7 +1,6 @@ -
- -
+ - import { TextButton as Button, Icon, Modal } from "@budibase/bbui" + import { Button, Icon, Modal } from "@budibase/bbui" import CreateEditRow from "../modals/CreateEditRow.svelte" export let modalContentComponent = CreateEditRow @@ -8,12 +8,9 @@ let modal -
- -
+ diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte index ef58b52c60..020c8af3ce 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte @@ -1,5 +1,5 @@
- - +
diff --git a/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte index f55969087f..32ce7b83b2 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte @@ -1,5 +1,5 @@ -
- - - Delete - {selectedRows.length} - row(s) - -
+ - import { TextButton as Button, Modal } from "@budibase/bbui" + import { Button, Modal } from "@budibase/bbui" import EditRolesModal from "../modals/EditRoles.svelte" let modal
-
- - diff --git a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte index f4e4fb34a8..fe383d99a3 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte @@ -1,6 +1,5 @@
- - +
diff --git a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte index 5c7efab369..cfe558a36d 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte @@ -1,5 +1,5 @@
- - Filter - +
diff --git a/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte index dbe88d8f1f..736369d2ae 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte @@ -9,8 +9,7 @@
- - + Group By
diff --git a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte index fc50bfbfef..891dc0feb8 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte @@ -1,5 +1,5 @@
- +
+
\ No newline at end of file diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 055a0a693b..203d89b2b9 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -291,8 +291,8 @@ {#if !uneditable && originalName != null} Delete Column {/if} - - + @@ -319,7 +319,6 @@ .actions { display: grid; grid-gap: var(--spacing-xl); - min-width: 400px; } footer { diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/index.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/index.svelte index ed40244de5..1b72507b63 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/index.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/index.svelte @@ -56,7 +56,7 @@ .integration-list { display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat( auto-fit, minmax(150px, 1fr)); grid-gap: var(--spacing-m); } @@ -68,7 +68,6 @@ transition: 0.3s all; border-radius: var(--border-radius-s); height: 75px; - width: 200px; } span { diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte index 27a058cd5d..42ebff0552 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte @@ -41,6 +41,7 @@ diff --git a/packages/builder/src/pages/builder/index.svelte b/packages/builder/src/pages/builder/index.svelte index 6b7670b426..7a04d3b927 100644 --- a/packages/builder/src/pages/builder/index.svelte +++ b/packages/builder/src/pages/builder/index.svelte @@ -76,7 +76,6 @@ -