-
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: simple property binding default value (#168)
- Loading branch information
Showing
15 changed files
with
344 additions
and
2 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
18 changes: 18 additions & 0 deletions
18
...odegen-react/lib/__tests__/studio-ui-json/default-value-components/boundDefaultValue.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,18 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Text", | ||
"name": "BoundDefaultValue", | ||
"bindingProperties": { | ||
"label": { | ||
"type": "String" | ||
} | ||
}, | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "label" | ||
}, | ||
"defaultValue": "Bound Default" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...act/lib/__tests__/studio-ui-json/default-value-components/simpleAndBoundDefaultValue.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,19 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Text", | ||
"name": "SimpleAndBoundDefaultValue", | ||
"bindingProperties": { | ||
"label": { | ||
"type": "String", | ||
"defaultValue": "Simple Double Default" | ||
} | ||
}, | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "label" | ||
}, | ||
"defaultValue": "Bound Double Default" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../__tests__/studio-ui-json/default-value-components/simplePropertyBindingDefaultValue.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,18 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Text", | ||
"name": "SimplePropertyBindingDefaultValue", | ||
"bindingProperties": { | ||
"label": { | ||
"type": "String", | ||
"defaultValue": "Default Binding Property" | ||
} | ||
}, | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "label" | ||
} | ||
} | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
packages/test-generator/lib/components/default-value-components/boundDefaultValue.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,18 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Text", | ||
"name": "BoundDefaultValue", | ||
"bindingProperties": { | ||
"label": { | ||
"type": "String" | ||
} | ||
}, | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "label" | ||
}, | ||
"defaultValue": "Bound Default" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/test-generator/lib/components/default-value-components/index.js
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,18 @@ | ||
/* | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"). | ||
You may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
export { default as BoundDefaultValue } from './boundDefaultValue.json'; | ||
export { default as SimplePropertyBindingDefaultValue } from './simplePropertyBindingDefaultValue.json'; | ||
export { default as SimpleAndBouldDefaultValue } from './simpleAndBoundDefaultValue.json'; |
19 changes: 19 additions & 0 deletions
19
...es/test-generator/lib/components/default-value-components/simpleAndBoundDefaultValue.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,19 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Text", | ||
"name": "SimpleAndBoundDefaultValue", | ||
"bindingProperties": { | ||
"label": { | ||
"type": "String", | ||
"defaultValue": "Simple Double Default" | ||
} | ||
}, | ||
"properties": { | ||
"value": { | ||
"bindingProperties": { | ||
"property": "label" | ||
}, | ||
"defaultValue": "Bound Double Default" | ||
} | ||
} | ||
} |
Oops, something went wrong.