From 186dcc00f601a74d203372c168431ce6484622de Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 6 Apr 2022 10:10:53 +0100 Subject: [PATCH] Initial commit of screen workflow updates --- .../NavigationPanel/DatasourceModal.svelte | 153 ++++++++++++++++++ .../NavigationPanel/NewScreenModal.svelte | 134 ++++++--------- .../NavigationPanel/ScreenDetailsModal.svelte | 28 ++-- .../NavigationPanel/ScreenWizard.svelte | 53 ++++-- 4 files changed, 257 insertions(+), 111 deletions(-) create mode 100644 packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte diff --git a/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte b/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte new file mode 100644 index 0000000000..45b721ee49 --- /dev/null +++ b/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte @@ -0,0 +1,153 @@ + + + + + {#each filteredSources.otherSources as datasource} +
+
+ +
+
+
{datasource.name}
+
+
+ {#if Array.isArray(datasource.entities)} + {#each datasource.entities.filter(table => table._id !== "ta_users") as table} +
x.table === table.name)} + on:click={() => toggleScreenSelection(table)} + > + + + + {table.name} +
+ {/each} + {/if} + {#if datasource["entities"] && !Array.isArray(datasource.entities)} + {#each Object.keys(datasource.entities).filter(table => table._id !== "ta_users") as table_key} +
x.table === datasource.entities[table_key].name + )} + on:click={() => + toggleScreenSelection(datasource.entities[table_key])} + > + + + + {datasource.entities[table_key].name} +
+ {/each} + {/if} + {/each} + + -
- {#if showProgressCircle} - - {/if} -
+