Skip to content

Commit

Permalink
#40 - Redesign detailViews
Browse files Browse the repository at this point in the history
- Show valueDomain urn in dataElement detail view
- Show metaData in boxes instead of table
- Add element path to detail view
- Element path is clickable and shows the detail view of all elements along the path
- Add button to navigate from detailView in treeView
- Show progress circular while element is fetching
- Redesign valueDomain metaData
  • Loading branch information
ammarbarakat committed Apr 13, 2022
1 parent 4f4bafc commit 5595336
Show file tree
Hide file tree
Showing 10 changed files with 602 additions and 111 deletions.
117 changes: 99 additions & 18 deletions components/item/meta-data.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,109 @@
<template>
<v-list>
<v-subheader>{{ $t('global.metaData') }}</v-subheader>
<v-list-item>
<v-list-item-content>{{ $t('global.type') }}: {{ data.elementType }}</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>{{ $t('global.status') }}: {{ data.status }}</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>{{ $t('global.identifier') }}: {{ data.identifier }}</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>{{ $t('global.revision') }}: {{ data.revision }}</v-list-item-content>
</v-list-item>
<v-list-item v-if="type === 'NAMESPACE'">
<v-list-item-content>{{ $t('global.hidden') }}: {{ data.hideNamespace }}</v-list-item-content>
</v-list-item>
</v-list>
<v-container>
<v-row dense>
<v-col>
<v-card
class="meta-data-card d-flex align-center justify-center"
>
{{ data.elementType.toUpperCase() }}
</v-card>
</v-col>
<v-col>
<v-card
class="meta-data-card d-flex align-center justify-center"
>
{{ data.status.toUpperCase() }}
</v-card>
</v-col>
<v-col>
<v-card
class="meta-data-card d-flex align-center justify-center pt-4"
>
<v-menu
v-model="showUrnInfo"
absolute
offset-y
style="max-width: 300px;"
>
<template #activator="{ on, attrs }">
<v-div
v-bind="attrs"
v-on="on"
>
<p style="display: inline-flex;">
<span>
{{ data.urn.toUpperCase().split(':')[0] }}:
</span>
<span :style="showUrnInfo ? 'color: #e4002c;' : 'color: #000000;'">
{{ data.urn.toUpperCase().split(':')[1] }}:
</span>
<span :style="showUrnInfo ? 'color: #0080c8;' : 'color: #000000;'">
{{ data.urn.toUpperCase().split(':')[2] }}:
</span>
<span :style="showUrnInfo ? 'color: #5b2282;' : 'color: #000000;'">
{{ data.urn.toUpperCase().split(':')[3] }}:
</span>
<span :style="showUrnInfo ? 'color: #f6a200;' : 'color: #000000;'">
{{ data.urn.toUpperCase().split(':')[4] }}
</span>
<span>
<v-icon style="padding-left: 3px;">
mdi-information-outline
</v-icon>
</span>
</p>
</v-div>
</template>
<v-list>
<v-list-item>
<card class="meta-data-card" v-if="showUrnInfo" style="text-align: left;">
<p style="color: #e4002c; height: 5px;">
{{ $t('global.namespaceIdentifier') }}
</p>
<p style="color: #0080c8; height: 5px;">
{{ $t('global.elementType') }}
</p>
<p style="color: #5b2282; height: 5px;">
{{ $t('global.elementIdentifier') }}
</p>
<p style="color: #f6a200; height: 5px;">
{{ $t('global.elementVersion') }}
</p>
</card>
</v-list-item>
</v-list>
</v-menu>
</v-card>
</v-col>
<v-col v-if="type === 'NAMESPACE'">
<v-card
class="meta-data-card d-flex align-center justify-center"
>
{{ data.hideNamespace ? $t('global.hidden') : $t('global.public') }}
</v-card>
</v-col>
</v-row>
</v-container>
</template>
<script>
export default {
props: {
data: { required: true, type: Object },
type: { required: false, default: 'DATAELEMENT', type: String }
},
data () {
return {
showUrnInfo: false
}
}
}
</script>
<style>
.meta-data-card {
border-radius: 75px;
elevation: level;
height: 100%;
padding-inline: 15px;
min-height: 50px;
}
</style>
Loading

0 comments on commit 5595336

Please sign in to comment.