From cf31c7ba3f6dfeabe243824d92b95547c6675613 Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Mon, 29 Jul 2024 12:59:24 +0100 Subject: [PATCH] Form Screen Templates Generate Relevant Row Ids, Permission Roles are Automatically Generated (#14192) * url params * wip * wip * wip * wip * permissions now * change table/screen deletion * form screen refactor * refactor grid templates * wip * wip permissions * wip * wip * lint * lint * wip * before lint * lint * wip * rename some stuff * Dean PR Feedback * remove unneeded awaits --- .../bbui/src/InlineAlert/InlineAlert.svelte | 8 +- .../bbui/src/StatusLight/StatusLight.svelte | 20 +- .../DeleteConfirmationModal.svelte | 3 +- .../DeleteConfirmationModal.svelte | 166 ++++++--- .../src/components/common/RoleIcon.svelte | 12 + .../NewScreen/CreateScreenModal.svelte | 339 ++++++++---------- .../NewScreen/DatasourceModal.svelte | 159 ++++---- .../NewScreen/DatasourceTemplateRow.svelte | 45 --- .../NewScreen/FormTypeModal.svelte | 20 +- .../NewScreen/ScreenRoleModal.svelte | 62 ---- .../NewScreen/TableOrViewOption.svelte | 112 ++++++ packages/builder/src/templates/Screen.js | 5 + packages/builder/src/templates/blankScreen.js | 7 + .../src/templates/createFromScratchScreen.js | 12 - packages/builder/src/templates/formScreen.js | 48 +-- .../src/templates/gridDetailsScreen.js | 43 +-- .../builder/src/templates/gridListScreen.js | 41 --- packages/builder/src/templates/gridScreen.js | 30 ++ packages/builder/src/templates/index.js | 35 -- 19 files changed, 614 insertions(+), 553 deletions(-) create mode 100644 packages/builder/src/components/common/RoleIcon.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/DatasourceTemplateRow.svelte delete mode 100644 packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/ScreenRoleModal.svelte create mode 100644 packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/TableOrViewOption.svelte create mode 100644 packages/builder/src/templates/blankScreen.js delete mode 100644 packages/builder/src/templates/createFromScratchScreen.js delete mode 100644 packages/builder/src/templates/gridListScreen.js create mode 100644 packages/builder/src/templates/gridScreen.js delete mode 100644 packages/builder/src/templates/index.js diff --git a/packages/bbui/src/InlineAlert/InlineAlert.svelte b/packages/bbui/src/InlineAlert/InlineAlert.svelte index bfc56818cb..3b98936f62 100644 --- a/packages/bbui/src/InlineAlert/InlineAlert.svelte +++ b/packages/bbui/src/InlineAlert/InlineAlert.svelte @@ -36,9 +36,11 @@
{header}
- {#each split as splitMsg} -
{splitMsg}
- {/each} + + {#each split as splitMsg} +
{splitMsg}
+ {/each} +
{#if onConfirm}