Skip to content

Commit

Permalink
rename 'layouts' directory to 'viewpoints'
Browse files Browse the repository at this point in the history
Signed-off-by: pogi7 <[email protected]>
  • Loading branch information
pogi7 committed Mar 19, 2024
1 parent fd17d0f commit 85ea780
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 35 deletions.
24 changes: 0 additions & 24 deletions src/vision/layouts/trees/missions.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
"title": "Connections",
"type": "table",
"path": "connections"
},
}
]
},
{
"title": "Requirements",
"type": "group",
"iconUrl": "https://nasa-jpl.github.io/stellar/icons/checklist_on_page.svg",
"children": [
{
"title": "Requirements",
"type": "tree",
Expand Down
84 changes: 84 additions & 0 deletions src/vision/viewpoints/properties/propertyLayouts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"pages": [
{
"id": "general",
"label": "General",
"sparqlQuery": "general-properties.sparql",
"icon": "IconSettings",
"domainClass": "oml.iddInstance",
"preconditionExpression": "tablePath != \"PEL\" && tablePath != \"MEL\" && tablePath != \"wbs\"",
"groups": [
{
"id": "instance",
"label": "Instance",
"domainClass": "oml.ConceptInstance",
"controls": [
{
"type": "text",
"id": "id",
"label": "Label",
"helpExpression": "A label can provide a human-readable id for model objects that have assigned ids that might be less readable",
"isEnabledExpression": "aql:self.isEditable()",
"initialOperation": {
"firstModelOperations": {
"type": "tool:ChangeContext",
"browseExpression": "aql:self.oclAsType(oml::ConceptInstance).setPropertyValue('label'.rdfsIri(), newValue)"
}
}
},
{
"type": "text",
"id": "aIri",
"label": "IRI",
"readOnly": true,
"helpExpression": "This is the model-assigned element identifier. Every model element has this unique identifier"
},
{
"type": "text",
"id": "name",
"label": "Name",
"required": true,
"helpExpression": "Lists zero or more model types that this instance specializes. Such supertypes carry inherited properties or relations in the model."
}
]
}
]
},
{
"id": "functionFilters",
"label": "Function Filters",
"sparqlQuery": "functionFiltersProperties",
"icon": "IconFilter",
"domainClass": "oml.Element",
"preconditionExpression": "tablePath == 'function-list'",
"groups": []
},
{
"id": "assemblyFilters",
"label": "Assembly Filters",
"sparqlQuery": "assemblyFiltersProperties",
"icon": "IconFilter",
"domainClass": "oml.Element",
"preconditionExpression": "tablePath == 'assemblies'",
"groups": []
},
{
"id": "main",
"label": "Main",
"sparqlQuery": "requirement-properties.sparql",
"icon": "IconChecklist",
"domainClass": "",
"preconditionExpression": "",
"groups": []
},
{
"id": "semantic",
"label": "Semantic",
"sparqlQuery": "semanticProperties",
"icon": "IconLink",
"domainClass": "",
"preconditionExpression": "",
"groups": []
}
]
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@
"o2_name": "Objective 2 Name"
},
"queries": {
"obj-query": "objectives.sparql",
"miss-query": "missions.sparql"
"obj-query": "objectives.sparql"
},
"rowMapping": {
"id": "obj-query",
"name": "Objectives",
"labelFormat": "Objective",
"subRowMappings": [
{
"id": "miss-query",
"name": "Missions",
"labelFormat": "{m_id}"
}
]
"labelFormat": "Objective"
}
}
}
16 changes: 16 additions & 0 deletions src/vision/viewpoints/trees/missions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"missions": {
"name": "Missions",
"diagrams": {
"all-rows": "missions-diagram"
},
"queries": {
"missions": "missions.sparql"
},
"rowMapping": {
"id": "missions",
"name": "Missions",
"labelFormat": "{m_id} {m_name}"
}
}
}
File renamed without changes.

0 comments on commit 85ea780

Please sign in to comment.