-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add a way to pilot if collapsible is managed or not
- storybook example
- Loading branch information
Showing
4 changed files
with
103 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
88 changes: 88 additions & 0 deletions
88
packages/forms/stories/json/fieldsets/core-arrays-collapsible.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,88 @@ | ||
{ | ||
"jsonSchema": { | ||
"type": "object", | ||
"title": "Comment", | ||
"required": ["comments"], | ||
"properties": { | ||
"groupBy": { | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 5, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"fieldName": { | ||
"type": "string", | ||
"enum": ["First Field", "Second Field", "Third Field"] | ||
} | ||
} | ||
} | ||
}, | ||
"operations": { | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 5, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"fieldName": { | ||
"type": "string", | ||
"enum": ["First Field", "Second Field", "Third Field"] | ||
}, | ||
"operation": { | ||
"type": "string", | ||
"enum": ["First Operation", "Second Operation", "Third Operation"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"uiSchema": [ | ||
{ | ||
"key": "operations", | ||
"title": "Operations", | ||
"itemWidget": "collapsibleFieldset", | ||
"items": [ | ||
{ | ||
"key": "operations[].fieldName", | ||
"title": "Field" | ||
}, | ||
{ | ||
"key": "operations[].operation", | ||
"title": "Operation" | ||
} | ||
] | ||
}, | ||
{ | ||
"key": "groupBy", | ||
"title": "Group by", | ||
"items": [ | ||
{ | ||
"key": "groupBy[].fieldName", | ||
"title": "Field" | ||
} | ||
] | ||
} | ||
], | ||
"properties": { | ||
"groupBy": [ | ||
{ | ||
"fieldName": "First Field" | ||
}, | ||
{ | ||
"fieldName": "Second Field" | ||
} | ||
], | ||
"operations": [ | ||
{ | ||
"fieldName": "First Field", | ||
"operation": "First Operation" | ||
}, | ||
{ | ||
"fieldName": "Second Field", | ||
"operation": "First Operation" | ||
} | ||
] | ||
} | ||
} |
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