2021-12-19 01:16:02 +01:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="media-detail-metadata">
|
|
|
|
|
|
<ui-property label="@media.fields.size" :vertical="false">
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<span v-filesize="config.model.size"></span>
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
|
|
|
|
|
<ui-property label="@ui.createdDate" field="createdDate" :vertical="false">
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<ui-date :value="config.model.createdDate" />
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<ui-property v-if="config.model.lastModifiedDate" :vertical="false" label="@ui.modifiedDate">
|
|
|
|
|
|
<ui-date :value="config.model.lastModifiedDate" />
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<template v-if="config.model.imageMeta">
|
|
|
|
|
|
<ui-property v-if="config.model.imageMeta.width" label="@media.fields.imageMeta.dimension" :is-text="true" :vertical="false">
|
|
|
|
|
|
{{config.model.imageMeta.width}} × {{config.model.imageMeta.height}}
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<ui-property v-if="config.model.imageMeta.dpi != 0" label="@media.fields.imageMeta.dpi" :is-text="true" :vertical="false">
|
|
|
|
|
|
{{config.model.imageMeta.dpi}}
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<ui-property v-if="config.model.imageMeta.colorSpace" label="@media.fields.imageMeta.colorSpace" :is-text="true" :vertical="false">
|
|
|
|
|
|
{{config.model.imageMeta.colorSpace}}
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
2021-12-23 13:47:34 +01:00
|
|
|
|
<ui-property v-if="config.model.imageMeta.frames > 1" label="@media.fields.imageMeta.frames" :is-text="true" :vertical="false">
|
|
|
|
|
|
{{config.model.imageMeta.frames}}
|
2021-12-19 01:16:02 +01:00
|
|
|
|
</ui-property>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
props: {
|
|
|
|
|
|
value: Object,
|
2021-12-23 13:47:34 +01:00
|
|
|
|
config: Object,
|
2021-12-19 01:16:02 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.media-detail
|
|
|
|
|
|
{
|
|
|
|
|
|
.ui-property + .ui-property
|
|
|
|
|
|
{
|
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.media-detail-metadata
|
|
|
|
|
|
{
|
|
|
|
|
|
.ui-property + .ui-property
|
|
|
|
|
|
{
|
|
|
|
|
|
margin-top: var(--padding-xs);
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|