diff --git a/aas-web-ui/src/assets/Data/predefinedQualifier.json b/aas-web-ui/src/assets/Data/predefinedQualifier.json new file mode 100644 index 000000000..e8db543e7 --- /dev/null +++ b/aas-web-ui/src/assets/Data/predefinedQualifier.json @@ -0,0 +1,300 @@ +[ + { + "id": "empty", + "title": "Empty Qualifier", + "description": "", + "qualifier": { + "type": "", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "" + } + ] + }, + "kind": "", + "value": "" + } + }, + { + "id": "cardinalityOne", + "title": "SMT/Cardinality One", + "description": "This Qualifier allows to specify how many SubmodelElement instances of this SMT element are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/Cardinality", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/Cardinality/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "One" + } + }, + { + "id": "cardinalityZeroToOne", + "title": "SMT/Cardinality ZeroToOne", + "description": "This Qualifier allows to specify how many SubmodelElement instances of this SMT element are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/Cardinality", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/Cardinality/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "ZeroToOne" + } + }, + { + "id": "cardinalityZeroToMany", + "title": "SMT/Cardinality ZeroToMany", + "description": "This Qualifier allows to specify how many SubmodelElement instances of this SMT element are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/Cardinality", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/Cardinality/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "ZeroToMany" + } + }, + { + "id": "cardinalityOneToMany", + "title": "SMT/Cardinality OneToMany", + "description": "This Qualifier allows to specify how many SubmodelElement instances of this SMT element are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/Cardinality", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/Cardinality/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "OneToMany" + } + }, + { + "id": "eitherOr", + "title": "SMT/EitherOr", + "description": "The Qualifier value defines an id of an equivalence class. Only ids in the range [A-Za-z0-9] are allowed. If multiple SMT elements feature the same equivalence class, only one of these are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/EitherOr", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/EitherOr/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + { + "id": "initialValue", + "title": "SMT/InitialValue", + "description": "The Qualifier value defines an id of an equivalence class. Only ids in the range [A-Za-z0-9] are allowed. If multiple SMT elements feature the same equivalence class, only one of these are allowed in the actual collection (hierarchy level of the Submodel)", + "qualifier": { + "type": "SMT/InitialValue", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/InitialValue/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + { + "id": "defaultValue", + "title": "SMT/DefaultValue", + "description": "Specifies the default value of the SubmodelElement instance. Often, this might designate a neutral, zero or empty value depending on the valueType of a SMT element", + "qualifier": { + "type": "SMT/DefaultValue", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/DefaultValue/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + { + "id": "exampleValue", + "title": "SMT/ExampleValue", + "description": "Specifies an example value of the SubmodelElement instance, in order to allow the user to better understand the intention and possible values of a SubmodelElement instance. Note: Multiple examples can be given by delimiting them by '|'. In case of a translatable string (langString) the example value shall be an English example string. Alternative (to be decided): add suffix like @en to string to denote language", + "qualifier": { + "type": "SMT/ExampleValue", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/ExampleValue/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + + { + "id": "allowedRange", + "title": "SMT/AllowedRange", + "description": "Specifies a set of allowed continuous numerical ranges. Note: Multiple ranges can be given by delimiting them by '|'. Note: A single range is defined by interval start and end, either including or excluding the given number. Note: Interval start and end are delimited by ','; '.' is the decimal point Note: '*' allows to enter the default value", + "qualifier": { + "type": "SMT/AllowedRange", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/AllowedRange/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + + { + "id": "allowedIdShort", + "title": "SMT/AllowedIdShort", + "description": "Specifies a regular expression validating the idShort of the created SubmodelElement instance. Note: The format shall conform to POSIX extended regular expressions", + "qualifier": { + "type": "SMT/AllowedIdShort", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/AllowedIdShort/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + + { + "id": "allowedValue", + "title": "SMT/AllowedValue", + "description": "Specifies a regular expression validating the value of the created SubmodelElement instance in its string representation. Note: the format shall conform to POSIX extended regular expressions", + "qualifier": { + "type": "SMT/AllowedValue", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/AllowedValue/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + + { + "id": "requiredLang", + "title": "SMT/RequiredLang", + "description": "If the SMT element is a multi-language property (MLP), it specifies the required languages, which shall be given. Note: Multiple languages can be given by multiple Qualifiers. Note: Multiple languages can be given by delimiting them by '|' Note: languages are specified either by ISO 639-1 or ISO 639-2 codes", + "qualifier": { + "type": "SMT/RequiredLang", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/RequiredLang/1/0" + } + ] + }, + "kind": "TemplateQualifier" + } + }, + + { + "id": "accessModeReadWrite", + "title": "SMT/AccessMode Read/Write", + "description": "Specifies the user access mode for SubmodelElement instance. When a Submodel is received from another party, if set to Read/Only, then the user shall not change the value", + "qualifier": { + "type": "SMT/AccessMode", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/AccessMode/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "Read/Write" + } + }, + + { + "id": "accessModeReadOnly", + "title": "SMT/AccessMode Read/Only", + "description": "Specifies the user access mode for SubmodelElement instance. When a Submodel is received from another party, if set to Read/Only, then the user shall not change the value", + "qualifier": { + "type": "SMT/AccessMode", + "dataType": "String", + "reference": { + "referenceType": "ExternalReference", + "keys": [ + { + "keyType": "GlobalReference", + "value": "https://admin-shell.io/SubmodelTemplates/SMT/AccessMode/1/0" + } + ] + }, + "kind": "TemplateQualifier", + "value": "Read/Only" + } + } +] diff --git a/aas-web-ui/src/components/EditorComponents/InputTypes/QualifierInput.vue b/aas-web-ui/src/components/EditorComponents/InputTypes/QualifierInput.vue index b027f2ea8..40a7d79f6 100644 --- a/aas-web-ui/src/components/EditorComponents/InputTypes/QualifierInput.vue +++ b/aas-web-ui/src/components/EditorComponents/InputTypes/QualifierInput.vue @@ -78,18 +78,36 @@ - + + + + + + + + +