- Removed unnecessary event propagation handling in ComponentPreview.vue for cleaner interaction. - Adjusted FormBuilderConfiguration.vue to ensure proper min attribute placement for maxFiles input. - Updated FormScriptEngine.vue to allow global CSS injection and added new notification helper functions for success, error, and info messages. - Enhanced FormTemplatesModal.vue with a new CSS & JavaScript test form template, demonstrating real-time calculations and dynamic field updates. - Improved documentation to include a comprehensive JavaScript API reference and updated user guides for better clarity on dynamic form functionalities. - Added new fields to the JSON schema for custom scripts and CSS, enhancing form configuration capabilities. - Updated formBuilder.js to include a method for updating preview form data, improving state management during form interactions.
538 lines
10 KiB
JSON
538 lines
10 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"audit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"auditID": {
|
|
"type": "integer"
|
|
},
|
|
"auditIP": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditURL": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditURLMethod": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditURLPayload": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditCreatedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"auditAction": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditDetails": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"auditUsername": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"user": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/user"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"userID": {
|
|
"type": "integer"
|
|
},
|
|
"userSecretKey": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userUsername": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userPassword": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userFullName": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userEmail": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userPhone": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userStatus": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"userCreatedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"userModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"audit": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/audit"
|
|
}
|
|
},
|
|
"forms": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/form"
|
|
}
|
|
},
|
|
"processes": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/process"
|
|
}
|
|
},
|
|
"assignedTasks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/task"
|
|
}
|
|
},
|
|
"userrole": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/userrole"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"roleID": {
|
|
"type": "integer"
|
|
},
|
|
"roleName": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"roleDescription": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"roleStatus": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"roleCreatedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"roleModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"userrole": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/userrole"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"lookup": {
|
|
"type": "object",
|
|
"properties": {
|
|
"lookupID": {
|
|
"type": "integer"
|
|
},
|
|
"lookupOrder": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupTitle": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupRefCode": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupValue": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupType": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupStatus": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lookupCreatedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"lookupModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
}
|
|
}
|
|
},
|
|
"userrole": {
|
|
"type": "object",
|
|
"properties": {
|
|
"userRoleID": {
|
|
"type": "integer"
|
|
},
|
|
"userRoleCreatedDate": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/role"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/user"
|
|
}
|
|
}
|
|
},
|
|
"form": {
|
|
"type": "object",
|
|
"properties": {
|
|
"formID": {
|
|
"type": "integer"
|
|
},
|
|
"formUUID": {
|
|
"type": "string"
|
|
},
|
|
"formName": {
|
|
"type": "string"
|
|
},
|
|
"formDescription": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"formComponents": {
|
|
"type": [
|
|
"number",
|
|
"string",
|
|
"boolean",
|
|
"object",
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"customScript": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"customCSS": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"formEvents": {
|
|
"type": [
|
|
"number",
|
|
"string",
|
|
"boolean",
|
|
"object",
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"scriptMode": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"default": "safe"
|
|
},
|
|
"formStatus": {
|
|
"type": "string",
|
|
"default": "active"
|
|
},
|
|
"formCreatedDate": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"formModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"creator": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/user"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"formTasks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/task"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"process": {
|
|
"type": "object",
|
|
"properties": {
|
|
"processID": {
|
|
"type": "integer"
|
|
},
|
|
"processUUID": {
|
|
"type": "string"
|
|
},
|
|
"processName": {
|
|
"type": "string"
|
|
},
|
|
"processDescription": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"processDefinition": {
|
|
"type": [
|
|
"number",
|
|
"string",
|
|
"boolean",
|
|
"object",
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"processVersion": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"processStatus": {
|
|
"type": "string",
|
|
"default": "draft"
|
|
},
|
|
"processCreatedDate": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"processModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"creator": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/user"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"tasks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/task"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"task": {
|
|
"type": "object",
|
|
"properties": {
|
|
"taskID": {
|
|
"type": "integer"
|
|
},
|
|
"taskUUID": {
|
|
"type": "string"
|
|
},
|
|
"taskNodeId": {
|
|
"type": "string"
|
|
},
|
|
"taskName": {
|
|
"type": "string"
|
|
},
|
|
"taskType": {
|
|
"type": "string"
|
|
},
|
|
"taskData": {
|
|
"type": [
|
|
"number",
|
|
"string",
|
|
"boolean",
|
|
"object",
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"taskStatus": {
|
|
"type": "string",
|
|
"default": "pending"
|
|
},
|
|
"taskCreatedDate": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"taskModifiedDate": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"format": "date-time"
|
|
},
|
|
"assignee": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/user"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"form": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/form"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"process": {
|
|
"$ref": "#/definitions/process"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"type": "object",
|
|
"properties": {
|
|
"audit": {
|
|
"$ref": "#/definitions/audit"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/user"
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/role"
|
|
},
|
|
"lookup": {
|
|
"$ref": "#/definitions/lookup"
|
|
},
|
|
"userrole": {
|
|
"$ref": "#/definitions/userrole"
|
|
},
|
|
"form": {
|
|
"$ref": "#/definitions/form"
|
|
},
|
|
"process": {
|
|
"$ref": "#/definitions/process"
|
|
},
|
|
"task": {
|
|
"$ref": "#/definitions/task"
|
|
}
|
|
}
|
|
} |