diff --git a/packages/design-system/src/components/N8nFormBox/FormBox.vue b/packages/design-system/src/components/N8nFormBox/FormBox.vue index 2c9d875dd1..243010b366 100644 --- a/packages/design-system/src/components/N8nFormBox/FormBox.vue +++ b/packages/design-system/src/components/N8nFormBox/FormBox.vue @@ -56,6 +56,8 @@ interface FormBoxProps { redirectLink?: string; } +type Value = string | number | boolean | null | undefined; + defineOptions({ name: 'N8nFormBox' }); withDefaults(defineProps(), { title: '', @@ -68,8 +70,8 @@ withDefaults(defineProps(), { const formBus = createEventBus(); const $emit = defineEmits(['submit', 'update', 'secondaryClick']); -const onUpdateModelValue = (e: { name: string; value: string }) => $emit('update', e); -const onSubmit = (e: { [key: string]: string }) => $emit('submit', e); +const onUpdateModelValue = (e: { name: string; value: Value }) => $emit('update', e); +const onSubmit = (e: { [key: string]: Value }) => $emit('submit', e); const onButtonClick = () => formBus.emit('submit'); const onSecondaryButtonClick = (event: Event) => $emit('secondaryClick', event); diff --git a/packages/design-system/src/components/N8nFormInputs/FormInputs.vue b/packages/design-system/src/components/N8nFormInputs/FormInputs.vue index b49103493e..842879fa65 100644 --- a/packages/design-system/src/components/N8nFormInputs/FormInputs.vue +++ b/packages/design-system/src/components/N8nFormInputs/FormInputs.vue @@ -1,3 +1,99 @@ + +