-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add control event to all state references with change event (#388)
- Loading branch information
1 parent
53d01f8
commit 53b7e75
Showing
10 changed files
with
177 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/codegen-ui/example-schemas/workflow/inputMutationOnClick.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Flex", | ||
"name": "InputMutationOnClick", | ||
"properties": {}, | ||
"children": [ | ||
{ | ||
"componentType": "TextField", | ||
"name": "MyInput", | ||
"properties": {} | ||
}, | ||
{ | ||
"componentType": "Button", | ||
"name": "SetInputButton", | ||
"events": { | ||
"click": { | ||
"action": "Amplify.Mutation", | ||
"parameters": { | ||
"state": { | ||
"componentName": "MyInput", | ||
"property": "value", | ||
"set": { | ||
"value": "Razor Crest" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"children": { | ||
"value": "Change Input" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/test-generator/lib/components/workflow/inputMutationOnClick.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Flex", | ||
"name": "InputMutationOnClick", | ||
"properties": { | ||
"id": { | ||
"value": "input-mutation-on-click" | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"componentType": "TextField", | ||
"name": "MyInput", | ||
"properties": {} | ||
}, | ||
{ | ||
"componentType": "Button", | ||
"name": "SetInputButton", | ||
"events": { | ||
"click": { | ||
"action": "Amplify.Mutation", | ||
"parameters": { | ||
"state": { | ||
"componentName": "MyInput", | ||
"property": "value", | ||
"set": { | ||
"value": "Razor Crest" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"children": { | ||
"value": "Change Input" | ||
} | ||
} | ||
} | ||
] | ||
} |