feat: integrate AMESim media models and editor UI

This commit is contained in:
ljz committed 2026-07-31 23:36:58 +08:00
1 parent 3e4f466114
commit e7177ab03e
181 files changed
+7042 -25270

No files matched your search

+76 -1
View File
@@ -160,6 +160,23 @@
}
}
},
"parameterOption": {
"type": "object",
"additionalProperties": false,
"required": [
"value",
"label"
],
"properties": {
"value": {
"type": "number"
},
"label": {
"type": "string",
"minLength": 1
}
}
},
"parameter": {
"type": "object",
"additionalProperties": false,
@@ -180,6 +197,10 @@
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"quantity": {
"type": "string",
"minLength": 1
@@ -198,8 +219,57 @@
},
"minimumExclusive": {
"type": "boolean"
},
"editor": {
"enum": [
"amesimGasReference",
"amesimGasPropertyModel"
]
},
"options": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/parameterOption"
}
}
}
},
"allOf": [
{
"if": {
"required": [
"editor"
],
"properties": {
"editor": {
"const": "amesimGasPropertyModel"
}
}
},
"then": {
"required": [
"options"
]
}
},
{
"if": {
"required": [
"options"
]
},
"then": {
"required": [
"editor"
],
"properties": {
"editor": {
"const": "amesimGasPropertyModel"
}
}
}
}
]
},
"component": {
"type": "object",
@@ -235,6 +305,11 @@
"order": {
"type": "integer"
},
"role": {
"enum": [
"amesimGasMediumDefinition"
]
},
"category": {
"$ref": "#/$defs/category"
},
+1
View File
@@ -130,6 +130,7 @@
<xs:attribute name="name" type="NonEmptyString" use="required"/>
<xs:attribute name="schemaVersion" use="required" fixed="2"/>
<xs:attribute name="unitSystem" use="required" fixed="SI"/>
<xs:attribute name="mediumReferenceVersion" use="optional" fixed="1"/>
</xs:complexType>
</xs:element>
</xs:schema>