From d0fe415d2e46e1084e2bb1422262efaa7b25f205 Mon Sep 17 00:00:00 2001 From: Sebastian Eicke Date: Mon, 18 Nov 2024 13:01:35 +0100 Subject: [PATCH 1/6] Add administrative information component --- .../AppNavigation/AASListDetails.vue | 23 +- .../src/components/SubmodelElementView.vue | 19 ++ .../AdministrativeInformationElement.vue | 217 ++++++++++++++++++ 3 files changed, 257 insertions(+), 2 deletions(-) create mode 100644 aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue diff --git a/aas-web-ui/src/components/AppNavigation/AASListDetails.vue b/aas-web-ui/src/components/AppNavigation/AASListDetails.vue index 97300cb..2d24c6a 100644 --- a/aas-web-ui/src/components/AppNavigation/AASListDetails.vue +++ b/aas-web-ui/src/components/AppNavigation/AASListDetails.vue @@ -50,14 +50,31 @@ :model-type="'AAS'" :id-type="'Identification (ID)'" :name-type="'idShort'"> + + + - + import { defineComponent } from 'vue'; + import AdministrativeInformationElement from '@/components/UIComponents/AdministrativeInformationElement.vue'; import AssetInformation from '@/components/UIComponents/AssetInformation.vue'; import DescriptionElement from '@/components/UIComponents/DescriptionElement.vue'; import DisplayNameElement from '@/components/UIComponents/DisplayNameElement.vue'; @@ -89,6 +107,7 @@ name: 'AASListDetails', components: { IdentificationElement, + AdministrativeInformationElement, DisplayNameElement, DescriptionElement, AssetInformation, diff --git a/aas-web-ui/src/components/SubmodelElementView.vue b/aas-web-ui/src/components/SubmodelElementView.vue index 24cc24e..98ecf5c 100644 --- a/aas-web-ui/src/components/SubmodelElementView.vue +++ b/aas-web-ui/src/components/SubmodelElementView.vue @@ -13,6 +13,23 @@ :model-type="submodelElementData.modelType" :id-type="'Identification (ID)'" :name-type="'idShort'"> + + + @@ -155,6 +172,7 @@ import Submodel from '@/components/SubmodelElements/Submodel.vue'; import SubmodelElementCollection from '@/components/SubmodelElements/SubmodelElementCollection.vue'; import SubmodelElementList from '@/components/SubmodelElements/SubmodelElementList.vue'; + import AdministrativeInformationElement from '@/components/UIComponents/AdministrativeInformationElement.vue'; import ConceptDescription from '@/components/UIComponents/ConceptDescription.vue'; import DescriptionElement from '@/components/UIComponents/DescriptionElement.vue'; import DisplayNameElement from '@/components/UIComponents/DisplayNameElement.vue'; @@ -170,6 +188,7 @@ name: 'SubmodelElementView', components: { IdentificationElement, + AdministrativeInformationElement, DisplayNameElement, DescriptionElement, SemanticID, diff --git a/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue b/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue new file mode 100644 index 0000000..4af44ac --- /dev/null +++ b/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue @@ -0,0 +1,217 @@ + + + From fb6b5b81a90ccba544508e09e2d1c5de604d8199 Mon Sep 17 00:00:00 2001 From: Aaron Zielstorff Date: Sun, 8 Dec 2024 09:41:28 +0100 Subject: [PATCH 2/6] adds missing check for keys --- .../UIComponents/AdministrativeInformationElement.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue b/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue index 4af44ac..9bcdd85 100644 --- a/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue +++ b/aas-web-ui/src/components/UIComponents/AdministrativeInformationElement.vue @@ -1,6 +1,5 @@