-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
1 parent
4f4bafc
commit 5595336
Showing
10 changed files
with
602 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.