[ACS-3256] Add trigger / "when" section to rule details & edit rule dialog (#2603)

* Add triggers section with checkboxes

* Add some unit tests

* Changed Input property of rule details so that it takes a changeable value rather than just an initial value

* Made separate component with control value accessor for triggers

* Linting

* Change trigger values to lowercase to be in sync with the API

* Minor styling changes and add new rule button to manage rules screen

* Add option for unknown field to be selected

* Add read only to nested composite and simple conditions

* Added unknown field tests for simple condition

* Linting

* Change how the triggers component displays when disabled
This commit is contained in:
Thomas Hunter
2022-08-23 09:54:08 +01:00
committed by GitHub
parent 19b88458ef
commit 9cd616ff8c
25 changed files with 531 additions and 77 deletions

View File

@@ -91,7 +91,12 @@ export const dummyRules: Rule[] = [
errorScript: '',
isShared: false,
triggers: ['inbound'],
conditions: null,
conditions: {
inverted: false,
booleanMode: 'and',
simpleConditions: [],
compositeConditions: []
},
actions: [
{
actionDefinitionId: 'copy',
@@ -113,7 +118,12 @@ export const dummyRules: Rule[] = [
errorScript: '',
isShared: false,
triggers: ['inbound'],
conditions: null,
conditions: {
inverted: false,
booleanMode: 'and',
simpleConditions: [],
compositeConditions: []
},
actions: [
{
actionDefinitionId: 'move',