diff --git a/legalconsenthub-backend/api/legalconsenthub.yml b/legalconsenthub-backend/api/legalconsenthub.yml index 277a925..9aea6f2 100644 --- a/legalconsenthub-backend/api/legalconsenthub.yml +++ b/legalconsenthub-backend/api/legalconsenthub.yml @@ -881,7 +881,7 @@ components: FormElementType: type: string enum: - - DROPDOWN + - SELECT - CHECKBOX - RADIOBUTTON - TEXTFIELD diff --git a/legalconsenthub/components/FormEngine.vue b/legalconsenthub/components/FormEngine.vue index 17a669b..9e279fe 100644 --- a/legalconsenthub/components/FormEngine.vue +++ b/legalconsenthub/components/FormEngine.vue @@ -27,7 +27,9 @@ const emit = defineEmits<{ function getResolvedComponent(formElement: FormElementDto) { switch (formElement.type) { case 'CHECKBOX': - case 'DROPDOWN': + return resolveComponent('TheCheckbox') + case 'SELECT': + return resolveComponent('TheSelect') case 'RADIOBUTTON': return resolveComponent('TheRadioGroup') case 'SWITCH': diff --git a/legalconsenthub/components/formelements/TheCheckbox.vue b/legalconsenthub/components/formelements/TheCheckbox.vue new file mode 100644 index 0000000..ffdaab4 --- /dev/null +++ b/legalconsenthub/components/formelements/TheCheckbox.vue @@ -0,0 +1,28 @@ + + + diff --git a/legalconsenthub/components/formelements/TheSelect.vue b/legalconsenthub/components/formelements/TheSelect.vue new file mode 100644 index 0000000..e5a4f25 --- /dev/null +++ b/legalconsenthub/components/formelements/TheSelect.vue @@ -0,0 +1,32 @@ + + + diff --git a/legalconsenthub/composables/complianceMap.ts b/legalconsenthub/composables/complianceMap.ts index 2a34fe6..7ff75e2 100644 --- a/legalconsenthub/composables/complianceMap.ts +++ b/legalconsenthub/composables/complianceMap.ts @@ -41,6 +41,7 @@ export const complianceMap = new Map