mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
f04c135377
commit
cb988b0145
@@ -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': []
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user