alfresco-ng2-components/docs/docassets/demo-cloud.form.json
Deepak Paul 558ee4c031 [ADF-3797] Task management view - Task with Form (#4534)
* [ADF-4248] Created form cloud service

* [ADF-4248] Created form cloud model

* [ADF-4248] Created new cloud form

* [ADF-4248] Exported cloud from module

* [ADF-4248] Added form saving feature

* [ADF-4248] Added form to task details

* [ADF-4248] Added services to save form

* [ADF-4248] Added data support

* [ADF-4248] Added outcome support in form model

* [ADF-4248] Modified demo component to show form

* [ADF-4248] Copied tests

* [ADF-4248] Added form parsing service

* [ADF-4248] Added form cloud demo

* [ADF-4248] Added form input to fom-cloud

* [ADF-4248] Added tests for form cloud model

* [ADF-4248] Improved form model json parsing

* [ADF-4248]  Added test for form could

* [ADF-4248] Refactored types in the form model

* [ADF-4248] Improved tests

* [ADF-4248] Added tests for form cloud service

* [ADF-4248] Added tests for form services

* [ADF-4248] Refactored form services

* [ADF-4248] Handled form events in demo shell

* [ADF-4248] Improved form value parsing

* [ADF-4248] Added form-cloud demo to routing

* [ADF-4248] Added field validation without handler

* [ADF-4248] Added task variable model

* [ADF-4248] Added adf-cloud prefix to css classes

* [ADF-4248] Translated name of nameless task

* [ADF-4248] Added docs for cloud form component

* [ADF-4248] Added docs for cloud form service

* create base component

* [ADF-4248] Created formBase and formModelbase

* [ADF-4248] Used base classes in cloud package

* Update form-cloud.component.md

* Update form-cloud.service.md

* [ADF-4248] Created form cloud service

* [ADF-4248] Created form cloud model

* [ADF-4248] Created new cloud form

* [ADF-4248] Exported cloud from module

* [ADF-4248] Added form saving feature

* [ADF-4248] Added form to task details

* [ADF-4248] Added services to save form

* [ADF-4248] Added data support

* [ADF-4248] Added outcome support in form model

* [ADF-4248] Modified demo component to show form

* [ADF-4248] Copied tests

* [ADF-4248] Added form parsing service

* [ADF-4248] Added form cloud demo

* [ADF-4248] Added form input to fom-cloud

* [ADF-4248] Added tests for form cloud model

* [ADF-4248] Improved form model json parsing

* [ADF-4248]  Added test for form could

* [ADF-4248] Refactored types in the form model

* [ADF-4248] Improved tests

* [ADF-4248] Added tests for form cloud service

* [ADF-4248] Added tests for form services

* [ADF-4248] Refactored form services

* [ADF-4248] Handled form events in demo shell

* [ADF-4248] Improved form value parsing

* [ADF-4248] Added form-cloud demo to routing

* [ADF-4248] Added field validation without handler

* [ADF-4248] Added task variable model

* [ADF-4248] Added adf-cloud prefix to css classes

* [ADF-4248] Translated name of nameless task

* [ADF-4248] Added docs for cloud form component

* [ADF-4248] Added docs for cloud form service

* create base component

* [ADF-4248] Created formBase and formModelbase

* [ADF-4248] Used base classes in cloud package

* [ADF-4248] Moved documentation to process services

* [ADF-4248] Removed duplicate import

* [ADF-4248] Fixed wrong imports

* [ADF-4248] Renamed form renderer input

* [ADF-4248] Show translated name for nameless form

* Enable the uploadWidget

* Make the form great again!

* Move the class style on the parent

* Fix the debugMode
2019-04-10 17:10:55 +01:00

666 lines
20 KiB
JSON

{
"formRepresentation": {
"id": "form-with-all-fields",
"name": "Form with all fields",
"description": "",
"version": 0,
"formDefinition": {
"tabs": [],
"fields": [
{
"fieldType": "ContainerRepresentation",
"id": "26b10e64-0403-4686-a75b-0d45279ce3a8",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "text1",
"name": "Text1",
"type": "text",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"minValue": null,
"maxValue": null,
"regexPattern": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "text2",
"name": "Text2",
"type": "text",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"minValue": null,
"maxValue": null,
"regexPattern": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "69c1390a-8d8d-423c-8efb-8e43401efa42",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "multilinetext1",
"name": "Multiline text1",
"type": "multi-line-text",
"overrideId": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"regexPattern": null,
"required": false,
"readOnly": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "multilinetext2",
"name": "Multiline text2",
"type": "multi-line-text",
"overrideId": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"regexPattern": null,
"required": false,
"readOnly": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "df046463-2d65-4388-9ee1-0e1517985215",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "number1",
"overrideId": false,
"name": "Number1",
"type": "integer",
"colspan": 1,
"placeholder": null,
"readOnly": false,
"minValue": null,
"maxValue": null,
"required": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "number2",
"overrideId": false,
"name": "Number2",
"type": "integer",
"colspan": 1,
"placeholder": null,
"readOnly": false,
"minValue": null,
"maxValue": null,
"required": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "9672cc7b-1959-49c9-96be-3816e57bdfc1",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "checkbox1",
"name": "Checkbox1",
"type": "boolean",
"required": false,
"readOnly": false,
"colspan": 1,
"overrideId": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "checkbox2",
"name": "Checkbox2",
"type": "boolean",
"required": false,
"readOnly": false,
"colspan": 1,
"overrideId": false,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "054d193e-a899-4494-9a3e-b489315b7d57",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "dropdown1",
"name": "Dropdown1",
"type": "dropdown",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"optionType": "manual",
"options": [],
"endpoint": null,
"requestHeaders": null,
"restUrl": null,
"restResponsePath": null,
"restIdProperty": null,
"restLabelProperty": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "dropdown2",
"name": "Dropdown2",
"type": "dropdown",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"optionType": "manual",
"options": [],
"endpoint": null,
"requestHeaders": null,
"restUrl": null,
"restResponsePath": null,
"restIdProperty": null,
"restLabelProperty": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "1f8f0b66-e022-4667-91b4-bbbf2ddc36fb",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "amount1",
"name": "Amount1",
"type": "amount",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": "123",
"minValue": null,
"maxValue": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
},
"enableFractions": false,
"currency": "$"
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "amount2",
"name": "Amount2",
"type": "amount",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": "123",
"minValue": null,
"maxValue": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
},
"enableFractions": false,
"currency": "$"
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "541a368b-67ee-4a7c-ae7e-232c050b9e24",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "date1",
"name": "Date1",
"type": "date",
"overrideId": false,
"required": false,
"readOnly": false,
"colspan": 1,
"placeholder": null,
"minValue": null,
"maxValue": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
},
"dateDisplayFormat": "D-M-YYYY"
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "date2",
"name": "Date2",
"type": "date",
"overrideId": false,
"required": false,
"readOnly": false,
"colspan": 1,
"placeholder": null,
"minValue": null,
"maxValue": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
},
"dateDisplayFormat": "D-M-YYYY"
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "e79cb7e2-3dc1-4c79-8158-28662c28a9f3",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "radiobuttons1",
"name": "Radio buttons1",
"type": "radio-buttons",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"optionType": "manual",
"options": [
{
"id": "option_1",
"name": "Option 1"
},
{
"id": "option_2",
"name": "Option 2"
}
],
"endpoint": null,
"requestHeaders": null,
"restUrl": null,
"restResponsePath": null,
"restIdProperty": null,
"restLabelProperty": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "radiobuttons2",
"name": "Radio buttons2",
"type": "radio-buttons",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"optionType": "manual",
"options": [
{
"id": "option_1",
"name": "Option 1"
},
{
"id": "option_2",
"name": "Option 2"
}
],
"endpoint": null,
"requestHeaders": null,
"restUrl": null,
"restResponsePath": null,
"restIdProperty": null,
"restLabelProperty": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "7c01ed35-be86-4be7-9c28-ed640a5a2ae1",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "AttachFileFieldRepresentation",
"id": "attachfile1",
"name": "Attach file1",
"type": "upload",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2,
"fileSource": {
"serviceId": "all-file-sources",
"name": "All file sources"
},
"multiple": false,
"link": false
}
}
],
"2": [
{
"fieldType": "AttachFileFieldRepresentation",
"id": "attachfile2",
"name": "Attach file2",
"type": "upload",
"value": null,
"required": false,
"readOnly": false,
"overrideId": false,
"colspan": 1,
"placeholder": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2,
"fileSource": {
"serviceId": "all-file-sources",
"name": "All file sources"
},
"multiple": false,
"link": false
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "07b13b96-d469-4a1e-8a9a-9bb957c68869",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "displayvalue1",
"name": "Display value1",
"type": "readonly",
"value": "No field selected",
"readOnly": false,
"overrideId": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2,
"field": {
"id": "displayvalue",
"name": "Display value",
"type": "text"
}
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "displayvalue2",
"name": "Display value2",
"type": "readonly",
"value": "No field selected",
"readOnly": false,
"overrideId": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2,
"field": {
"id": "displayvalue",
"name": "Display value",
"type": "text"
}
}
}
]
}
},
{
"fieldType": "ContainerRepresentation",
"id": "1576ef25-c842-494c-ab84-265a1e3bf68d",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
{
"fieldType": "FormFieldRepresentation",
"id": "displaytext1",
"name": "Display text1",
"type": "readonly-text",
"value": "Display text as part of the form",
"readOnly": false,
"overrideId": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
],
"2": [
{
"fieldType": "FormFieldRepresentation",
"id": "displaytext2",
"name": "Display text2",
"type": "readonly-text",
"value": "Display text as part of the form",
"readOnly": false,
"overrideId": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
}
}
]
}
}
],
"outcomes": [],
"javascriptEvents": [],
"className": "",
"style": "",
"customFieldTemplates": {},
"metadata": {},
"variables": [
{
"name": "FormVarStr",
"type": "string",
"value": ""
},
{
"name": "FormVarInt",
"type": "integer",
"value": ""
},
{
"name": "FormVarBool",
"type": "boolean",
"value": ""
},
{
"name": "FormVarDate",
"type": "date",
"value": ""
},
{
"name": "NewVar",
"type": "string",
"value": ""
}
],
"customFieldsValueInfo": {},
"gridsterForm": false
}
},
"processScopeIdentifiers": []
}