From dda5a1ac7d876f2b77a113d2127a091a59966280 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 28 Jul 2022 16:46:07 +0200 Subject: [PATCH] feat(webapp): add account modal functionality --- src/components/atoms/AtomModal.vue | 27 ++++- src/components/atoms/AtomSelect.vue | 11 ++- .../molecules/MoleculeAddAccountModal.vue | 98 ++++++++++++++++--- .../molecules/MoleculeContactModal.vue | 53 ++++++++++ .../molecules/MoleculeDataTable.vue | 12 ++- src/components/services/account.service.ts | 4 + src/components/services/bank.service.ts | 19 +++- src/components/services/data.service.ts | 32 ++++++ src/components/views/DataView.vue | 31 +++++- src/interfaces/account-data.interface.ts | 3 +- src/interfaces/create-account.interface.ts | 8 ++ .../personal-information.interface.ts | 3 +- 12 files changed, 276 insertions(+), 25 deletions(-) create mode 100644 src/components/molecules/MoleculeContactModal.vue create mode 100644 src/interfaces/create-account.interface.ts diff --git a/src/components/atoms/AtomModal.vue b/src/components/atoms/AtomModal.vue index 305a194..3b59563 100644 --- a/src/components/atoms/AtomModal.vue +++ b/src/components/atoms/AtomModal.vue @@ -6,15 +6,26 @@ class="modal-toggle" @change="$emit('open', {id, open: ($event.target as HTMLInputElement).checked})" /> - + + @@ -28,6 +39,14 @@ defineProps({ type: String, required: true, }, + darker: { + type: Boolean, + default: false, + }, + closeButton: { + type: Boolean, + default: false, + }, }); defineEmits(['open']); diff --git a/src/components/atoms/AtomSelect.vue b/src/components/atoms/AtomSelect.vue index d19a258..fd6e15b 100644 --- a/src/components/atoms/AtomSelect.vue +++ b/src/components/atoms/AtomSelect.vue @@ -1,5 +1,8 @@