feat(fullstack): Add form element section and stepper

This commit is contained in:
2025-06-01 18:16:38 +02:00
parent 7a9809909b
commit cb9abeed7f
15 changed files with 497 additions and 196 deletions

View File

@@ -665,7 +665,7 @@ components:
required:
- id
- name
- formElements
- formElementSections
- isTemplate
- organizationId
- createdBy
@@ -678,10 +678,10 @@ components:
format: uuid
name:
type: string
formElements:
formElementSections:
type: array
items:
$ref: "#/components/schemas/FormElementDto"
$ref: "#/components/schemas/FormElementSectionDto"
isTemplate:
type: boolean
organizationId:
@@ -700,16 +700,16 @@ components:
CreateApplicationFormDto:
required:
- name
- formElements
- formElementSections
- isTemplate
type: object
properties:
name:
type: string
formElements:
formElementSections:
type: array
items:
$ref: "#/components/schemas/CreateFormElementDto"
$ref: "#/components/schemas/CreateFormElementSectionDto"
isTemplate:
type: boolean
default: false
@@ -728,21 +728,64 @@ components:
items:
$ref: "#/components/schemas/ApplicationFormDto"
####### Form #######
FormElementDto:
FormElementSectionDto:
type: object
required:
- id
- title
- formElements
- applicationFormId
- options
- type
properties:
id:
type: string
format: uuid
title:
type: string
shortTitle:
type: string
description:
type: string
formElements:
type: array
items:
$ref: "#/components/schemas/FormElementDto"
applicationFormId:
type: string
format: uuid
CreateFormElementSectionDto:
type: object
required:
- title
- formElements
properties:
id:
type: string
format: uuid
title:
type: string
shortTitle:
type: string
description:
type: string
formElements:
type: array
items:
$ref: "#/components/schemas/CreateFormElementDto"
FormElementDto:
type: object
required:
- id
- options
- type
- formElementSectionId
properties:
id:
type: string
format: uuid
title:
type: string
description:
@@ -753,6 +796,9 @@ components:
$ref: "#/components/schemas/FormOptionDto"
type:
$ref: "#/components/schemas/FormElementType"
formElementSectionId:
type: string
format: uuid
CreateFormElementDto:
type: object