-
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.
fix: adding support for additional component types for string and tex…
…t types
- Loading branch information
1 parent
d765667
commit 53d5537
Showing
13 changed files
with
255 additions
and
56 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
...s/studio-ui-codegen-react/lib/__tests__/studio-ui-json/childComponentWithDataBinding.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,24 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Button", | ||
"name": "ChildComponentWithDataBinding", | ||
"bindingProperties": { | ||
"textValue": { | ||
"type": "String" | ||
} | ||
}, | ||
"properties": {}, | ||
"children": [ | ||
{ | ||
"componentType": "Text", | ||
"name": "TextWithDataBinding", | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "textValue" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
...-codegen-react/lib/__tests__/studio-ui-json/childComponentWithDataBoundConcatenation.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": "Button", | ||
"name": "ChildComponentWithDataBoundConcatenation", | ||
"bindingProperties": { | ||
"textValue": { | ||
"type": "String" | ||
} | ||
}, | ||
"properties": {}, | ||
"children": [ | ||
{ | ||
"componentType": "Text", | ||
"name": "TextWithConcatenation", | ||
"properties": { | ||
"value": { | ||
"concat": [ | ||
{ | ||
"bindingProperties": { | ||
"property": "buttonUser", | ||
"field": "firstname" | ||
}, | ||
"defaultValue": "Harrison" | ||
}, | ||
{ | ||
"value": " " | ||
}, | ||
{ | ||
"bindingProperties": { | ||
"property": "buttonUser", | ||
"field": "lastname" | ||
}, | ||
"defaultValue": "Spain" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
28 changes: 28 additions & 0 deletions
28
...-ui-codegen-react/lib/__tests__/studio-ui-json/childComponentWithStaticConcatenation.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,28 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Button", | ||
"name": "ChildComponentWithStaticConcatenation", | ||
"bindingProperties": {}, | ||
"properties": {}, | ||
"children": [ | ||
{ | ||
"componentType": "Text", | ||
"name": "TextWithConcatenation", | ||
"properties": { | ||
"value": { | ||
"concat": [ | ||
{ | ||
"value": "Concatenate" | ||
}, | ||
{ | ||
"value": " " | ||
}, | ||
{ | ||
"value": "Me!" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.