[ADF-4790] [ADF-4791] - fix visibility condition for text/checkbox and variable/value (#4978)

* [ADF-4790] [ADF-4791] - fix visibility condition for empty string and checkbox - value/variable

* reset package-lock

* reset package-lock.json

* fix lint and change return type
This commit is contained in:
Silviu Popa
2019-08-09 00:51:10 +03:00
committed by Eugenio Romano
parent f04c135377
commit cb988b0145
4 changed files with 201 additions and 17 deletions

View File

@@ -954,3 +954,87 @@ export let nextConditionForm = {
}
]
};
export let headerVisibilityCond = {
'id': 'form-f0823c05-51eb-4703-8634-75a6d5e15df5',
'name': 'text_form',
'description': '',
'version': 0,
'standAlone': true,
'formDefinition': {
'tabs': [],
'fields': [
{
'id': 'Header0hm6n0',
'name': 'Header',
'type': 'group',
'tab': null,
'params': {
'allowCollapse': false,
'collapseByDefault': false
},
'numberOfColumns': 1,
'fields': {
'1': []
},
'visibilityCondition': {
'leftType': 'field',
'leftValue': 'Text1',
'operator': '==',
'rightValue': 'Text2',
'rightType': 'field',
'nextConditionOperator': '',
'nextCondition': null
}
},
{
'id': '19c3a066-c1bf-47f1-97f2-2b9420be3566',
'name': 'Label',
'type': 'container',
'tab': null,
'numberOfColumns': 2,
'fields': {
'1': [
{
'id': 'Text1',
'name': 'Text1',
'type': 'text',
'required': false,
'colspan': 1,
'placeholder': null,
'minLength': 0,
'maxLength': 0,
'regexPattern': null,
'visibilityCondition': null,
'params': {
'existingColspan': 1,
'maxColspan': 2
}
}
],
'2': [
{
'id': 'Text2',
'name': 'Text2',
'type': 'text',
'required': false,
'colspan': 1,
'placeholder': null,
'minLength': 0,
'maxLength': 0,
'regexPattern': null,
'visibilityCondition': null,
'params': {
'existingColspan': 1,
'maxColspan': 2
}
}
]
}
}
],
'outcomes': [],
'metadata': {},
'variables': []
}
};