@piveau/piveau-hub-ui-modules 4.4.11 → 4.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +37 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.d.ts +1 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs +101 -96
- package/dist/data-provider-interface/components/DistributionStepper.vue.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs +2 -2
- package/dist/data-provider-interface/config/dcatap/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs +16 -8
- package/dist/data-provider-interface/config/dcatapde/input-definition.mjs.map +1 -1
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs +37 -37
- package/dist/data-provider-interface/views/DraftsPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +37 -0
- package/dist/data-provider-interface/views/InputPage.vue.mjs +111 -149
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.d.ts +12 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.d.ts +25 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +18 -14
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.d.ts +12 -0
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs +89 -79
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.d.ts +13 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.mjs +21 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.mjs.map +1 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs +48 -48
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.mjs +17 -17
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.mjs +42 -32
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.d.ts +12 -0
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.mjs +48 -38
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +37 -0
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/DistributionOverview.vue"],"sourcesContent":["<template>\n <div>\n <!-- DISTRIBUTIONS -->\n <div class=\"w-100 disDetailsWrap\">\n <div class=\"tHeadWrap\">\n <!-- ToDo integrate Weblate -->\n <p class=\"\">{{ $t('message.dataupload.datasets.distribution.overview.name') }}</p>\n <p class=\"\">{{ $t('message.metadata.format') }}</p>\n <p class=\"\">{{ $t('message.metadata.updated') }}</p>\n <p class=\"\">{{ $t('message.dataupload.info.actions') }}</p>\n </div>\n <div v-for=\"( distribution, id) in distributionList\" :key=\"'distribution' + id\">\n\n <div class=\"tdWrap\" v-if=\"id % 2 == 0\">\n <p v-if=\"distribution['dct:title'] != undefined && distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0]\">\n {{ distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0] }}\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.notitleinthislanguage') }}\n </p>\n <p v-if=\"distribution['dct:format'] != '' || Object.keys(distribution['dct:format']).length != 0\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\" property='dct:format'\n :value=\"tableProperties['dct:format']\" :dpiLocale=\"dpiLocale\" :distId=\"id\" :inHeader=\"true\">\n </PropertyEntry>\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.noformatprovided') }}\n </p>\n <p v-if=\"distribution['dct:modified'] != undefined && distribution['dct:modified']\">\n {{ new Date(distribution['dct:modified']['@value']).toDateString() }}\n </p>\n <p v-else>\n -\n </p>\n <p>\n <a class=\"moreDisInfoBtn\" @click=\"unfoldDisDetails(id)\">\n More information\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\"\n class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\"\n d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" />\n </svg>\n </a>\n </p>\n </div>\n <div class=\"tdWrap grey\" v-else>\n <p v-if=\"distribution['dct:title'] != undefined && distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0]\">\n {{ distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0] }}\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.notitleinthislanguage') }}\n </p>\n <p v-if=\"distribution['dct:format'] != undefined\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\" property='dct:format'\n :value=\"tableProperties['dct:format']\" :dpiLocale=\"dpiLocale\" :distId=\"id\" :inHeader=\"true\">\n </PropertyEntry>\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.noformatprovided') }}\n </p>\n <p v-if=\"distribution['dct:modified'] != undefined && distribution['dct:modified']\">\n {{ new Date(distribution['dct:modified']['@value']).toDateString() }}\n </p>\n <p v-else>\n -\n </p>\n <p>\n <a class=\"moreDisInfoBtn\" @click=\"unfoldDisDetails(id)\">\n More information\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\"\n class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\"\n d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" />\n </svg>\n </a>\n </p>\n </div>\n\n <div class=\"disInfoWrap\">\n <ul class=\"list list-unstyled\" v-if=\"distributions.length > 0\">\n <li class=\"disWrapper\" :key=\"`distribution${id + 1}`\">\n <!-- DISTRIBUTIONS FORMAT -->\n\n <span class=\" mb-3 disDetails\">\n <span class=\"row\">\n\n </span>\n <span class=\"row bg-light mb-2 \">\n <!-- DISTRIBUTIONS ACCESS URL -->\n <table class=\"table table-borderless table-responsive pl-3 bg-light mb-0\"\n v-if=\"showValue(distribution, 'dcat:accessURL')\">\n <tr v-for=\"( elem, index ) in distribution['dcat:accessURL'] \" :key=\"index\">\n <td class=\"font-weight-bold w-25\">\n {{ $t('message.metadata.accessUrl') }}:\n </td>\n <td class=\"w-75\">\n <a :href=\"elem['@id']\">\n {{ elem['@id'] }}\n </a>\n </td>\n </tr>\n </table>\n <table class=\"table table-borderless table-responsive pl-3 bg-light\">\n <div v-for=\"( value, name, index ) in tableProperties \" :key=\"index\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\"\n :property=\"name\" :value=\"value\" :dpiLocale=\"dpiLocale\" :distId=\"id\">\n </PropertyEntry>\n </div>\n </table>\n </span>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex';\nimport PropertyEntry from './PropertyEntry.vue';\nimport { has, isNil, isEmpty } from 'lodash';\nimport { truncate } from '../../../utils/helpers';\nimport generalHelper from '../../utils/general-helper.js'\n\n\nexport default {\n props: {\n dpiLocale: String,\n distributions: {\n required: true\n }\n },\n components: {\n PropertyEntry,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n distributionList() {\n let list = [];\n\n for (let index = 0; index < this.distributions.length; index++) {\n list.push(generalHelper.mergeNestedObjects(this.distributions[index]))\n }\n return list;\n },\n },\n mounted() { },\n methods: {\n truncate,\n getDistributionFormat(distribution) {\n\n try {\n return distribution['dct:format']['name'];\n } catch (error) {\n return \"No format provided\"\n }\n\n },\n showValue(property, value) {\n return has(property, value) && !isNil(property[value]) && !isEmpty(property[value]);\n },\n unfoldDisDetails(e) {\n document.getElementsByClassName(\"tdWrap\")[e].classList.toggle('dropShdw')\n document.getElementsByClassName(\"bi-chevron-down\")[e].classList.toggle('turnChev')\n document.getElementsByClassName(\"disInfoWrap\")[e].classList.toggle('openDisDetails')\n }\n },\n data() {\n return {\n tableProperties: {\n 'dct:format': { type: 'singularURI', voc: 'file-type', label: 'message.metadata.format' },\n 'dcat:downloadURL': { type: 'multiURL', voc: '', label: 'message.metadata.downloadUrl' },\n 'dcat:accessService': { type: 'special', voc: '', label: 'message.dataupload.distributions.accessService.label' },\n 'dct:license': { type: 'special', voc: '', label: 'message.metadata.license' },\n 'dct:issued': { type: 'date', voc: '', label: 'message.metadata.created' },\n 'dct:modified': { type: 'date', voc: '', label: 'message.metadata.updated' },\n 'dct:type': { type: 'singularURI', voc: 'distribution-type', label: 'message.metadata.type' },\n 'dcat:mediaType': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.mediaType' },\n 'dcatap:availability': { type: 'singularURI', voc: 'planned-availability', label: 'message.metadata.availability' },\n 'dcat:byteSize': { type: 'singularString', voc: '', label: 'message.metadata.byteSize' },\n 'dcat:packageFormat': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.packageFormat' },\n 'dcat:compressFormat': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.compressFormat' },\n 'adms:status': { type: 'singularURI', voc: 'dataset-status', label: 'message.metadata.status' },\n 'dcat:spatialResolutionInMeters': { type: 'singularString', voc: '', label: 'message.metadata.spatialResolutionInMeters.label' },\n 'dcat:temporalResolution': { type: 'special', voc: '', label: 'message.dataupload.datasets.temporalResolution.label' },\n 'dct:conformsTo': { type: 'special', voc: '', label: 'message.metadata.conformsTo' },\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:rights': { type: 'singularString', voc: '', label: 'message.metadata.rights' },\n 'foaf:page': { type: 'special', voc: '', label: 'message.dataupload.datasets.page.label' },\n 'odrl:hasPolicy': { type: 'multiURL', voc: '', label: 'message.metadata.hasPolicy' },\n 'spdx:checksum': { type: 'special', voc: 'spdx-checksum-algorithm', label: 'message.metadata.checksum' },\n 'dcatde:licenseAttributionByText': { type: 'multiLingual', voc: '', label: 'message.dataupload.distributions.licenseAttributionByText.label' },\n }\n }\n },\n}\n</script>\n\n<style>\n.disDetailsWrap p {\n margin-bottom: 0;\n}\n\n.moreDisInfoBtn {\n cursor: pointer;\n transition: all 300ms ease-in-out;\n}\n\n.moreDisInfoBtn svg {\n\n transition: all 300ms ease-in-out;\n}\n\n.turnChev {\n transform: scale(-1);\n}\n\n.moreDisInfoBtn:hover {\n text-decoration: none;\n}\n\n.openDisDetails {\n max-height: 2000px !important;\n}\n\n\n.disDetails {\n width: 95%\n}\n\n.disInfoWrap {\n overflow: hidden;\n\n max-height: 0;\n height: auto;\n position: relative;\n z-index: 0;\n transition: all 500ms ease-in-out;\n}\n\n.grey {\n background: rgb(248, 248, 248);\n}\n\n.tHeadWrap {\n display: flex;\n padding: 1rem;\n background-color: #f2f4f8;\n}\n\n.tHeadWrap p {\n width: 25%;\n font-weight: bold;\n}\n\n.tdWrap {\n display: flex;\n padding: 1rem;\n position: relative;\n z-index: 1;\n transition: all 300ms ease-in-out;\n\n}\n\n.dropShdw {\n box-shadow: 0 3px 6px -6px black;\n}\n\n.tdWrap p {\n width: 25%;\n display: flex;\n align-items: center;\n}\n</style>\n"],"names":["_sfc_main","PropertyEntry","mapGetters","list","index","generalHelper","truncate","distribution","property","value","has","isNil","isEmpty","e","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_14","_hoisted_22","_hoisted_23","_hoisted_25","_hoisted_26","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_createElementBlock","_createElementVNode","_toDisplayString","_ctx","_cache","_createTextVNode","_openBlock","_Fragment","_renderList","$options","id","_hoisted_7","el","$props","_hoisted_8","_hoisted_9","_hoisted_10","_createVNode","_component_PropertyEntry","$data","_hoisted_11","_hoisted_12","_hoisted_13","$event","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_24","_hoisted_27","elem","_createCommentVNode","name"],"mappings":";;;;;;;;AAoIA,MAAKA,IAAU;AAAA,EACX,OAAO;AAAA,IACH,WAAW;AAAA,IACX,eAAe;AAAA,MACX,UAAU;AAAA,IACd;AAAA,EACH;AAAA,EACD,YAAY;AAAA,IACR,eAAAC;AAAA,EACH;AAAA,EACD,UAAU;AAAA,IACN,GAAGC,EAAW,YAAY;AAAA,MACtB;AAAA,IACJ,CAAC;AAAA,IACD,mBAAmB;AACf,UAAIC,IAAO,CAAA;AAEX,eAASC,IAAQ,GAAGA,IAAQ,KAAK,cAAc,QAAQA;AACnD,QAAAD,EAAK,KAAKE,EAAc,mBAAmB,KAAK,cAAcD,CAAK,CAAC,CAAC;AAEzE,aAAOD;AAAA,IACV;AAAA,EACJ;AAAA,EACD,UAAU;AAAA,EAAG;AAAA,EACb,SAAS;AAAA,IACL,UAAAG;AAAA,IACA,sBAAsBC,GAAc;AAEhC,UAAI;AACA,eAAOA,EAAa,YAAY,EAAE;AAAA,MACpC,QAAc;AACZ,eAAO;AAAA,MACX;AAAA,IAEH;AAAA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AAA,UAAU/B,GAAY,gBAAA,KADhC4B,KAAAN,EAYQ,SAZRgC,IAYQ;AAAA,qBAVJ1B,EAAA,EAAA,GAAAN,EASKO,SAxG7CC,EA+FuE9B,qBA/FvE,CA+FqDuD,GAAM1D,YAAnByB,EASK,MAAA,EAT4D,KAAKzB,KAAK;AAAA,sBACvE0B,EAEK,MAFLL,IACOM,EAAAC,EAAA,oCAAmC;AAAA,+CAC1C,CAAA;AAAA,sBAlG5CC,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,sBAmG4CJ,EAIK,MAJLJ,IAIK;AAAA,wBAHDI,EAEI,KAAA;AAAA,0BAFA,MAAMgC,EAAI,KAAA;AAAA,wBACP,GAAA/B,EAAA+B,EArGvD,KAAA,CAAA,GAAA,GAAAnC,EAAA;AAAA;;wBAAAoC,EAAA,IAAA,EAAA;AAAA,kBAAA9B,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,kBA0GoCJ,EAMQ,SANRF,IAMQ;AAAA,4BALJC,EAIMO,GAAA,MA/G9CC,EA2G+EW,EAAe,iBA3G9F,CA2GsDvC,GAAOuD,GAAM5D,YAA3ByB,EAIM,OAAA,EAJoD,KAAKzB,KAAK;AAAA,sBAChE0C,EAEgBC,GAAA;AAAA,wBAFD,SAAQ;AAAA,wBAAiB,MAAMT,EAAgB,iBAACC,CAAE;AAAA,wBAC5D,UAAUyB;AAAA,wBAAO,OAAOvD;AAAA,wBAAQ,WAAWiC,EAAS;AAAA,wBAAG,QAAQH;AAAA;;;;;;gBA7GhHwB,EAAA,IAAA,EAAA;AAAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"DistributionOverview.vue.mjs","sources":["../../../../lib/data-provider-interface/views/OverviewPage/DistributionOverview.vue"],"sourcesContent":["<template>\n <div>\n <!-- DISTRIBUTIONS -->\n <div class=\"w-100 disDetailsWrap\">\n <div class=\"tHeadWrap\">\n <!-- ToDo integrate Weblate -->\n <p class=\"\">{{ $t('message.dataupload.datasets.distribution.overview.name') }}</p>\n <p class=\"\">{{ $t('message.metadata.format') }}</p>\n <p class=\"\">{{ $t('message.metadata.updated') }}</p>\n <p class=\"\">{{ $t('message.metadata.issued') }}</p>\n <p class=\"\">{{ $t('message.dataupload.info.actions') }}</p>\n </div>\n <div v-for=\"( distribution, id) in distributionList\" :key=\"'distribution' + id\">\n <div class=\"tdWrap\" v-if=\"id % 2 == 0\">\n <p v-if=\"distribution['dct:title'] != undefined && distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0]\">\n {{ distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0] }}\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.notitleinthislanguage') }}\n </p>\n <p v-if=\"distribution['dct:format'] != '' || Object.keys(distribution['dct:format']).length != 0\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\" property='dct:format'\n :value=\"tableProperties['dct:format']\" :dpiLocale=\"dpiLocale\" :distId=\"id\" :inHeader=\"true\">\n </PropertyEntry>\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.noformatprovided') }}\n </p>\n <p v-if=\"distribution['dct:modified'] != undefined && distribution['dct:modified']\">\n {{ new Date(distribution['dct:modified']['@value']).toLocaleDateString(dpiLocale) }}\n </p>\n <p v-else>\n -\n </p>\n <p v-if=\"distribution['dct:issued'] != undefined && distribution['dct:modified']\">\n {{ new Date(distribution['dct:issued']['@value']).toLocaleDateString(dpiLocale) }}\n </p>\n <p v-else>\n -\n </p>\n <p>\n <a class=\"moreDisInfoBtn\" @click=\"unfoldDisDetails(id)\">\n More information\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\"\n class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\"\n d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" />\n </svg>\n </a>\n </p>\n </div>\n <div class=\"tdWrap grey\" v-else>\n <p v-if=\"distribution['dct:title'] != undefined && distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0]\">\n {{ distribution['dct:title'].filter(el => el['@language'] === dpiLocale).map(el =>\n el['@value'])[0] }}\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.notitleinthislanguage') }}\n </p>\n <p v-if=\"distribution['dct:format'] != undefined\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\" property='dct:format'\n :value=\"tableProperties['dct:format']\" :dpiLocale=\"dpiLocale\" :distId=\"id\" :inHeader=\"true\">\n </PropertyEntry>\n </p>\n <p v-else>\n {{ $t('message.dataupload.datasets.distribution.overview.noformatprovided') }}\n </p>\n \n <p v-if=\"distribution['dct:modified'] != undefined && distribution['dct:modified']\">\n \n {{ new Date(distribution['dct:modified']['@value']).toLocaleDateString(dpiLocale) }}\n </p>\n <p v-else>\n -\n </p>\n <p v-if=\"distribution['dct:issued'] != undefined && distribution['dct:modified']\">\n {{ new Date(distribution['dct:issued']['@value']).toLocaleDateString(dpiLocale) }}\n </p>\n <p v-else>\n -\n </p>\n <p>\n <a class=\"moreDisInfoBtn\" @click=\"unfoldDisDetails(id)\">\n More information\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\"\n class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\"\n d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\" />\n </svg>\n </a>\n </p>\n </div>\n\n <div class=\"disInfoWrap\">\n <ul class=\"list list-unstyled\" v-if=\"distributions.length > 0\">\n <li class=\"disWrapper\" :key=\"`distribution${id + 1}`\">\n <!-- DISTRIBUTIONS FORMAT -->\n\n <span class=\" mb-3 disDetails\">\n <span class=\"row\">\n\n </span>\n <span class=\"row bg-light mb-2 \">\n <!-- DISTRIBUTIONS ACCESS URL -->\n <table class=\"table table-borderless table-responsive pl-3 bg-light mb-0\"\n v-if=\"showValue(distribution, 'dcat:accessURL')\">\n <tr v-for=\"( elem, index ) in distribution['dcat:accessURL'] \" :key=\"index\">\n <td class=\"font-weight-bold w-25\">\n {{ $t('message.metadata.accessUrl') }}:\n </td>\n <td class=\"w-75\">\n <a :href=\"elem['@id']\">\n {{ elem['@id'] }}\n </a>\n </td>\n </tr>\n </table>\n <table class=\"table table-borderless table-responsive pl-3 bg-light\">\n <div v-for=\"( value, name, index ) in tableProperties \" :key=\"index\">\n <PropertyEntry profile=\"distributions\" :data=\"distributionList[id]\"\n :property=\"name\" :value=\"value\" :dpiLocale=\"dpiLocale\" :distId=\"id\">\n </PropertyEntry>\n </div>\n </table>\n </span>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex';\nimport PropertyEntry from './PropertyEntry.vue';\nimport { has, isNil, isEmpty } from 'lodash';\nimport { truncate } from '../../../utils/helpers';\nimport generalHelper from '../../utils/general-helper.js'\n\n\nexport default {\n props: {\n dpiLocale: String,\n distributions: {\n required: true\n }\n },\n components: {\n PropertyEntry,\n },\n computed: {\n ...mapGetters('dpiStore', [\n 'getData',\n ]),\n distributionList() {\n let list = [];\n\n for (let index = 0; index < this.distributions.length; index++) {\n list.push(generalHelper.mergeNestedObjects(this.distributions[index]))\n }\n return list;\n },\n },\n mounted() { },\n methods: {\n truncate,\n getDistributionFormat(distribution) {\n\n try {\n return distribution['dct:format']['name'];\n } catch (error) {\n return \"No format provided\"\n }\n\n },\n showValue(property, value) {\n return has(property, value) && !isNil(property[value]) && !isEmpty(property[value]);\n },\n unfoldDisDetails(e) {\n document.getElementsByClassName(\"tdWrap\")[e].classList.toggle('dropShdw')\n document.getElementsByClassName(\"bi-chevron-down\")[e].classList.toggle('turnChev')\n document.getElementsByClassName(\"disInfoWrap\")[e].classList.toggle('openDisDetails')\n }\n },\n data() {\n return {\n tableProperties: {\n 'dct:format': { type: 'singularURI', voc: 'file-type', label: 'message.metadata.format' },\n 'dcat:downloadURL': { type: 'multiURL', voc: '', label: 'message.metadata.downloadUrl' },\n 'dcat:accessService': { type: 'special', voc: '', label: 'message.dataupload.distributions.accessService.label' },\n 'dct:license': { type: 'special', voc: '', label: 'message.metadata.license' },\n 'dct:issued': { type: 'date', voc: '', label: 'message.metadata.created' },\n 'dct:modified': { type: 'date', voc: '', label: 'message.metadata.updated' },\n 'dct:type': { type: 'singularURI', voc: 'distribution-type', label: 'message.metadata.type' },\n 'dcat:mediaType': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.mediaType' },\n 'dcatap:availability': { type: 'singularURI', voc: 'planned-availability', label: 'message.metadata.availability' },\n 'dcat:byteSize': { type: 'singularString', voc: '', label: 'message.metadata.byteSize' },\n 'dcat:packageFormat': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.packageFormat' },\n 'dcat:compressFormat': { type: 'singularURI', voc: 'iana-media-types', label: 'message.metadata.compressFormat' },\n 'adms:status': { type: 'singularURI', voc: 'dataset-status', label: 'message.metadata.status' },\n 'dcat:spatialResolutionInMeters': { type: 'singularString', voc: '', label: 'message.metadata.spatialResolutionInMeters.label' },\n 'dcat:temporalResolution': { type: 'special', voc: '', label: 'message.dataupload.datasets.temporalResolution.label' },\n 'dct:conformsTo': { type: 'special', voc: '', label: 'message.metadata.conformsTo' },\n 'dct:language': { type: 'multiURI', voc: 'language', label: 'message.metadata.languages' },\n 'dct:rights': { type: 'singularString', voc: '', label: 'message.metadata.rights' },\n 'foaf:page': { type: 'special', voc: '', label: 'message.dataupload.datasets.page.label' },\n 'odrl:hasPolicy': { type: 'multiURL', voc: '', label: 'message.metadata.hasPolicy' },\n 'spdx:checksum': { type: 'special', voc: 'spdx-checksum-algorithm', label: 'message.metadata.checksum' },\n 'dcatde:licenseAttributionByText': { type: 'multiLingual', voc: '', label: 'message.dataupload.distributions.licenseAttributionByText.label' },\n }\n }\n },\n}\n</script>\n\n<style>\n.disDetailsWrap p {\n margin-bottom: 0;\n}\n\n.moreDisInfoBtn {\n cursor: pointer;\n transition: all 300ms ease-in-out;\n}\n\n.moreDisInfoBtn svg {\n\n transition: all 300ms ease-in-out;\n}\n\n.turnChev {\n transform: scale(-1);\n}\n\n.moreDisInfoBtn:hover {\n text-decoration: none;\n}\n\n.openDisDetails {\n max-height: 2000px !important;\n}\n\n\n.disDetails {\n width: 95%\n}\n\n.disInfoWrap {\n overflow: hidden;\n\n max-height: 0;\n height: auto;\n position: relative;\n z-index: 0;\n transition: all 500ms ease-in-out;\n}\n\n.grey {\n background: rgb(248, 248, 248);\n}\n\n.tHeadWrap {\n display: flex;\n padding: 1rem;\n background-color: #f2f4f8;\n}\n\n.tHeadWrap p {\n width: 25%;\n font-weight: bold;\n}\n\n.tdWrap {\n display: flex;\n padding: 1rem;\n position: relative;\n z-index: 1;\n transition: all 300ms ease-in-out;\n\n}\n\n.dropShdw {\n box-shadow: 0 3px 6px -6px black;\n}\n\n.tdWrap p {\n width: 25%;\n display: flex;\n align-items: center;\n}\n</style>\n"],"names":["_sfc_main","PropertyEntry","mapGetters","list","index","generalHelper","truncate","distribution","property","value","has","isNil","isEmpty","e","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_17","_hoisted_27","_hoisted_28","_hoisted_30","_hoisted_31","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_createElementBlock","_createElementVNode","_toDisplayString","_ctx","_cache","_createTextVNode","_openBlock","_Fragment","_renderList","$options","id","_hoisted_8","el","$props","_hoisted_9","_hoisted_10","_hoisted_11","_createVNode","_component_PropertyEntry","$data","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","$event","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_29","_hoisted_32","elem","_createCommentVNode","name"],"mappings":";;;;;;;;AAkJA,MAAKA,IAAU;AAAA,EACX,OAAO;AAAA,IACH,WAAW;AAAA,IACX,eAAe;AAAA,MACX,UAAU;AAAA,IACd;AAAA,EACH;AAAA,EACD,YAAY;AAAA,IACR,eAAAC;AAAA,EACH;AAAA,EACD,UAAU;AAAA,IACN,GAAGC,EAAW,YAAY;AAAA,MACtB;AAAA,IACJ,CAAC;AAAA,IACD,mBAAmB;AACf,UAAIC,IAAO,CAAA;AAEX,eAASC,IAAQ,GAAGA,IAAQ,KAAK,cAAc,QAAQA;AACnD,QAAAD,EAAK,KAAKE,EAAc,mBAAmB,KAAK,cAAcD,CAAK,CAAC,CAAC;AAEzE,aAAOD;AAAA,IACV;AAAA,EACJ;AAAA,EACD,UAAU;AAAA,EAAG;AAAA,EACb,SAAS;AAAA,IACL,UAAAG;AAAA,IACA,sBAAsBC,GAAc;AAEhC,UAAI;AACA,eAAOA,EAAa,YAAY,EAAE;AAAA,MACpC,QAAc;AACZ,eAAO;AAAA,MACX;AAAA,IAEH;AAAA,IACD,UAAUC,GAAUC,GAAO;AACvB,aAAOC,EAAIF,GAAUC,CAAK,KAAK,CAACE,EAAMH,EAASC,CAAK,CAAC,KAAK,CAACG,EAAQJ,EAASC,CAAK,CAAC;AAAA,IACrF;AAAA,IACD,iBAAiBI,GAAG;AAChB,eAAS,uBAAuB,QAAQ,EAAEA,CAAC,EAAE,UAAU,OAAO,UAAU,GACxE,SAAS,uBAAuB,iBAAiB,EAAEA,CAAC,EAAE,UAAU,OAAO,UAAU,GACjF,SAAS,uBAAuB,aAAa,EAAEA,CAAC,EAAE,UAAU,OAAO,gBAAgB;AAAA,IACvF;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,iBAAiB;AAAA,QACb,cAA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AAA,wBAAiB,MAAMT,EAAgB,iBAACC,CAAE;AAAA,wBAC5D,UAAU6B;AAAA,wBAAO,OAAO5D;AAAA,wBAAQ,WAAWkC,EAAS;AAAA,wBAAG,QAAQH;AAAA;;;;;;gBA3HhH4B,EAAA,IAAA,EAAA;AAAA;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
value?: Record<string, any> | undefined;
|
|
3
|
+
data?: Record<string, any> | undefined;
|
|
4
|
+
property?: Record<string, any> | undefined;
|
|
5
|
+
dpiLocale?: Record<string, any> | undefined;
|
|
6
|
+
$props: {
|
|
7
|
+
readonly value?: Record<string, any> | undefined;
|
|
8
|
+
readonly data?: Record<string, any> | undefined;
|
|
9
|
+
readonly property?: Record<string, any> | undefined;
|
|
10
|
+
readonly dpiLocale?: Record<string, any> | undefined;
|
|
11
|
+
};
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as c, createElementBlock as r, createElementVNode as o, toDisplayString as n, createTextVNode as d } from "vue";
|
|
2
|
+
const i = { class: "w-100" }, s = { class: "font-weight-bold" }, u = { class: "d-flex flex-column" }, m = {
|
|
3
|
+
__name: "MultilingualProp",
|
|
4
|
+
props: {
|
|
5
|
+
property: Object,
|
|
6
|
+
value: Object,
|
|
7
|
+
data: Object,
|
|
8
|
+
dpiLocale: Object
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (a, l) => (c(), r("tr", i, [
|
|
12
|
+
o("td", s, n(a.$t(`${e.value.label}`)) + ":", 1),
|
|
13
|
+
l[0] || (l[0] = d()),
|
|
14
|
+
o("td", u, n(e.data[e.property].filter((t) => t["@language"]).length === 0 ? e.data[e.property].map((t) => t["@value"])[0] : e.data[e.property].filter((t) => t["@language"] === e.dpiLocale).map((t) => t["@value"])[0] || a.$t("message.catalogsAndDatasets.noDescriptionAvailable")), 1)
|
|
15
|
+
]));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=MultilingualProp.vue.mjs.map
|
package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultilingualProp.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import O from "../../../../widgets/AppLink.vue.mjs";
|
|
2
2
|
import S from "../../../../filters/dateFilters.mjs";
|
|
3
|
-
import { has as
|
|
3
|
+
import { has as b, isNil as w, isEmpty as V } from "lodash-es";
|
|
4
4
|
import j from "./URIProp.vue.mjs";
|
|
5
|
-
import { resolveComponent as c, openBlock as s, createElementBlock as i, Fragment as
|
|
5
|
+
import { resolveComponent as c, openBlock as s, createElementBlock as i, Fragment as k, createElementVNode as r, toDisplayString as d, createTextVNode as a, createCommentVNode as n, createVNode as y, withCtx as g, createBlock as A, renderList as L } from "vue";
|
|
6
6
|
import "./SpecialProp.vue2.mjs";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import R from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const U = {
|
|
9
9
|
props: {
|
|
10
10
|
property: String,
|
|
11
11
|
value: Object,
|
|
@@ -33,7 +33,7 @@ const A = {
|
|
|
33
33
|
},
|
|
34
34
|
showMultilingualValue(l, e) {
|
|
35
35
|
if (l[e] != null) {
|
|
36
|
-
const t =
|
|
36
|
+
const t = b(l, e) && !w(l[e]) && !V(l[e]), f = l[e].filter((v) => v["@language"] === this.dpiLocale).map((v) => v["@value"]).filter((v) => v !== void 0), h = l[e].filter((v) => v["@language"] !== this.dpiLocale).map((v) => v["@value"]).filter((v) => v !== void 0), o = f.length > 0, m = h.length > 0;
|
|
37
37
|
return t && (o || m);
|
|
38
38
|
} else
|
|
39
39
|
return "";
|
|
@@ -44,7 +44,7 @@ const A = {
|
|
|
44
44
|
},
|
|
45
45
|
showValue(l, e) {
|
|
46
46
|
try {
|
|
47
|
-
return
|
|
47
|
+
return b(l, e) && !w(l[e]) && !V(l[e]) && l[e] !== void 0;
|
|
48
48
|
} catch {
|
|
49
49
|
}
|
|
50
50
|
},
|
|
@@ -63,7 +63,7 @@ const A = {
|
|
|
63
63
|
for (let t = 0; t < Object.keys(e).length; t += 1) {
|
|
64
64
|
const f = Object.keys(e)[t];
|
|
65
65
|
try {
|
|
66
|
-
|
|
66
|
+
b(l, f) ? f !== "Year" && l[f].length < 2 ? e[f] = `0${l[f]}` : f === "Year" && l[f].length < 4 ? l[f].length === 3 ? e[f] = `0${l[f]}` : l[f].length === 2 ? e[f] = `00${l[f]}` : l[f].length === 1 && (e[f] = `000${l[f]}`) : e[f] = l[f] : f === "Year" ? e[f] = "0000" : e[f] = "00";
|
|
67
67
|
} catch {
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -73,39 +73,39 @@ const A = {
|
|
|
73
73
|
}, E = {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "marginBot"
|
|
76
|
-
}, M = { class: "font-weight-bold" },
|
|
76
|
+
}, M = { class: "font-weight-bold" }, D = { key: 0 }, N = { key: 1 }, T = { key: 2 }, H = { key: 3 }, P = { key: 1 }, Y = { class: "font-weight-bold" }, B = { class: "" }, F = { key: 0 }, z = { key: 1 }, C = { key: 2 }, I = { key: 3 }, q = { key: 4 }, G = { key: 5 }, J = { key: 6 }, K = { key: 0 }, Q = { key: 1 }, W = { key: 2 }, X = { key: 3 }, Z = { key: 2 }, x = { class: "font-weight-bold" }, $ = { key: 0 }, p = { key: 1 }, tt = { key: 2 }, et = { key: 3 }, at = {
|
|
77
77
|
key: 3,
|
|
78
78
|
class: "d-flex"
|
|
79
79
|
}, dt = { class: "font-weight-bold" }, lt = { key: 0 }, st = { key: 1 }, it = { key: 2 }, nt = { key: 4 }, ut = { class: "font-weight-bold" }, ot = { class: "d-flex flex-column" }, rt = { key: 0 }, ft = { key: 1 }, mt = {
|
|
80
80
|
key: 5,
|
|
81
81
|
class: "d-flex"
|
|
82
|
-
}, yt = { class: "font-weight-bold" }, vt = { class: "" },
|
|
82
|
+
}, yt = { class: "font-weight-bold" }, vt = { class: "" }, gt = { key: 0 }, ht = { key: 1 }, bt = { key: 2 }, kt = {
|
|
83
83
|
key: 6,
|
|
84
84
|
class: "w-100 d-flex"
|
|
85
|
-
}, wt = { class: "font-weight-bold" }, Vt = { key: 0 }, ct = { key: 1 },
|
|
85
|
+
}, wt = { class: "font-weight-bold" }, Vt = { key: 0 }, ct = { key: 1 }, Lt = { key: 2 }, _t = { key: 3 }, Ot = {
|
|
86
86
|
key: 7,
|
|
87
87
|
class: "w-100 d-flex"
|
|
88
|
-
}, St = { class: "font-weight-bold" }, jt = { key: 0 },
|
|
88
|
+
}, St = { class: "font-weight-bold" }, jt = { key: 0 }, At = { key: 8 }, Rt = { class: "flex-column font-weight-bold" }, Ut = { key: 9 }, Et = { class: "font-weight-bold" }, Mt = { class: "" }, Dt = { key: 0 }, Nt = { class: "" }, Tt = { key: 1 }, Ht = { class: "" }, Pt = {
|
|
89
89
|
key: 2,
|
|
90
90
|
class: "pr-1"
|
|
91
91
|
}, Yt = { class: "" }, Bt = { key: 10 }, Ft = { class: "font-weight-bold" }, zt = { key: 11 }, Ct = { class: "font-weight-bold" }, It = { key: 0 }, qt = { class: "" }, Gt = { key: 1 }, Jt = { class: "" }, Kt = { key: 2 }, Qt = { class: "" }, Wt = { key: 12 }, Xt = { key: 13 }, Zt = { class: "font-weight-bold" }, xt = { key: 0 }, $t = { class: "" }, pt = { key: 1 }, te = { class: "" }, ee = { key: 2 }, ae = { class: "" }, de = { key: 14 };
|
|
92
|
-
function le(l, e, t, f,
|
|
92
|
+
function le(l, e, t, f, h, o) {
|
|
93
93
|
const m = c("app-link"), v = c("URIProp");
|
|
94
|
-
return s(), i(
|
|
94
|
+
return s(), i(k, null, [
|
|
95
95
|
t.property === "dct:creator" ? (s(), i("tr", E, [
|
|
96
96
|
r("td", M, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
97
97
|
e[3] || (e[3] = a()),
|
|
98
98
|
r("td", null, [
|
|
99
|
-
o.showValue(t.data, "rdf:type") ? (s(), i("div",
|
|
99
|
+
o.showValue(t.data, "rdf:type") ? (s(), i("div", D, d(l.$t("message.metadata.type")) + ": " + d(t.data["rdf:type"].split(":")[1]), 1)) : n("", !0),
|
|
100
100
|
e[0] || (e[0] = a()),
|
|
101
|
-
o.showValue(t.data, "foaf:name") ? (s(), i("div",
|
|
101
|
+
o.showValue(t.data, "foaf:name") ? (s(), i("div", N, d(l.$t("message.metadata.name")) + ": " + d(t.data["foaf:name"]), 1)) : n("", !0),
|
|
102
102
|
e[1] || (e[1] = a()),
|
|
103
|
-
o.showValue(t.data, "foaf:mbox") ? (s(), i("div",
|
|
103
|
+
o.showValue(t.data, "foaf:mbox") ? (s(), i("div", T, [
|
|
104
104
|
a(d(l.$t("message.metadata.email")) + ": ", 1),
|
|
105
105
|
y(m, {
|
|
106
106
|
to: `mailto:${t.data["foaf:mbox"]}`
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
108
|
+
default: g(() => [
|
|
109
109
|
a(d(t.data["foaf:mbox"]), 1)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
@@ -117,7 +117,7 @@ function le(l, e, t, f, g, o) {
|
|
|
117
117
|
y(m, {
|
|
118
118
|
to: t.data["foaf:homepage"]
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
120
|
+
default: g(() => [
|
|
121
121
|
a(d(t.data["foaf:homepage"]), 1)
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
@@ -139,7 +139,7 @@ function le(l, e, t, f, g, o) {
|
|
|
139
139
|
y(m, {
|
|
140
140
|
to: `mailto:${t.data["vcard:hasEmail"]}`
|
|
141
141
|
}, {
|
|
142
|
-
default:
|
|
142
|
+
default: g(() => [
|
|
143
143
|
a(d(t.data["vcard:hasEmail"]), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
@@ -155,7 +155,7 @@ function le(l, e, t, f, g, o) {
|
|
|
155
155
|
y(m, {
|
|
156
156
|
to: t.data["vcard:hasURL"]
|
|
157
157
|
}, {
|
|
158
|
-
default:
|
|
158
|
+
default: g(() => [
|
|
159
159
|
a(d(t.data["vcard:hasURL"]), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
@@ -191,7 +191,7 @@ function le(l, e, t, f, g, o) {
|
|
|
191
191
|
y(m, {
|
|
192
192
|
to: `mailto:${t.data["foaf:mbox"]}`
|
|
193
193
|
}, {
|
|
194
|
-
default:
|
|
194
|
+
default: g(() => [
|
|
195
195
|
a(d(t.data["foaf:mbox"]), 1)
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
@@ -203,7 +203,7 @@ function le(l, e, t, f, g, o) {
|
|
|
203
203
|
y(m, {
|
|
204
204
|
to: t.data["foaf:homepage"]
|
|
205
205
|
}, {
|
|
206
|
-
default:
|
|
206
|
+
default: g(() => [
|
|
207
207
|
a(d(t.data["foaf:homepage"]), 1)
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
@@ -222,7 +222,7 @@ function le(l, e, t, f, g, o) {
|
|
|
222
222
|
y(m, {
|
|
223
223
|
to: t.data["@id"]
|
|
224
224
|
}, {
|
|
225
|
-
default:
|
|
225
|
+
default: g(() => [
|
|
226
226
|
a(d(t.data["@id"]), 1)
|
|
227
227
|
]),
|
|
228
228
|
_: 1
|
|
@@ -256,30 +256,30 @@ function le(l, e, t, f, g, o) {
|
|
|
256
256
|
r("td", yt, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
257
257
|
e[27] || (e[27] = a()),
|
|
258
258
|
r("td", vt, [
|
|
259
|
-
typeof t.data == "string" ? (s(), i("div",
|
|
259
|
+
typeof t.data == "string" ? (s(), i("div", gt, d(t.data), 1)) : n("", !0),
|
|
260
260
|
e[25] || (e[25] = a()),
|
|
261
|
-
typeof t.data == "object" ? (s(), i("div",
|
|
261
|
+
typeof t.data == "object" ? (s(), i("div", ht, d(t.data["spdx:checksumValue"]), 1)) : n("", !0),
|
|
262
262
|
e[26] || (e[26] = a()),
|
|
263
|
-
typeof t.data == "object" ? (s(), i("div",
|
|
263
|
+
typeof t.data == "object" ? (s(), i("div", bt, d(t.data["spdx:algorithm"].name), 1)) : n("", !0)
|
|
264
264
|
])
|
|
265
265
|
])) : n("", !0),
|
|
266
266
|
e[57] || (e[57] = a()),
|
|
267
|
-
t.property === "foaf:page" ? (s(), i("div",
|
|
267
|
+
t.property === "foaf:page" ? (s(), i("div", kt, [
|
|
268
268
|
r("td", wt, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
269
269
|
e[31] || (e[31] = a()),
|
|
270
270
|
r("td", null, [
|
|
271
|
-
o.showMultilingualValue(t.data, "dct:title") ? (s(), i("div", Vt, d(l.$t("message.metadata.title")) + ": " + d(t.data["dct:title"].filter((u) => u["@language"]).length === 0 ? t.data["dct:title"].map((u) => u["@value"])[0] : t.data["dct:title"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0]), 1)) : n("", !0),
|
|
271
|
+
o.showMultilingualValue(t.data, "dct:title") ? (s(), i("div", Vt, d(l.$t("message.metadata.title")) + ": " + d(t.data["dct:title"].filter((u) => u["@language"]).length === 0 ? t.data["dct:title"].map((u) => u["@value"])[0] : t.data["dct:title"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0] || l.$t("message.dataupload.datasets.distribution.overview.notitleinthislanguage")), 1)) : n("", !0),
|
|
272
272
|
e[28] || (e[28] = a()),
|
|
273
|
-
o.showMultilingualValue(t.data, "dct:description") ? (s(), i("div", ct, d(l.$t("message.metadata.description")) + ": " + d(t.data["dct:description"].filter((u) => u["@language"]).length === 0 ? t.data["dct:description"].map((u) => u["@value"])[0] : t.data["dct:description"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0]), 1)) : n("", !0),
|
|
273
|
+
o.showMultilingualValue(t.data, "dct:description") ? (s(), i("div", ct, d(l.$t("message.metadata.description")) + ": " + d(t.data["dct:description"].filter((u) => u["@language"]).length === 0 ? t.data["dct:description"].map((u) => u["@value"])[0] : t.data["dct:description"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0] || l.$t("message.catalogsAndDatasets.noDescriptionAvailable")), 1)) : n("", !0),
|
|
274
274
|
e[29] || (e[29] = a()),
|
|
275
|
-
o.showValue(t.data, "dct:format") ? (s(), i("div",
|
|
275
|
+
o.showValue(t.data, "dct:format") ? (s(), i("div", Lt, d(l.$t("message.metadata.format")) + ": " + d(t.data["dct:format"].name), 1)) : n("", !0),
|
|
276
276
|
e[30] || (e[30] = a()),
|
|
277
|
-
o.showValue(t.data, "@id") ? (s(), i("div",
|
|
277
|
+
o.showValue(t.data, "@id") ? (s(), i("div", _t, [
|
|
278
278
|
a(d(l.$t("message.metadata.url")) + ": ", 1),
|
|
279
279
|
y(m, {
|
|
280
280
|
to: t.data["@id"]
|
|
281
281
|
}, {
|
|
282
|
-
default:
|
|
282
|
+
default: g(() => [
|
|
283
283
|
a(d(t.data["@id"]), 1)
|
|
284
284
|
]),
|
|
285
285
|
_: 1
|
|
@@ -294,11 +294,11 @@ function le(l, e, t, f, g, o) {
|
|
|
294
294
|
r("td", null, [
|
|
295
295
|
o.showValue(t.data, "rdfs:label") ? (s(), i("div", jt, d(t.data["rdfs:label"]), 1)) : n("", !0),
|
|
296
296
|
e[32] || (e[32] = a()),
|
|
297
|
-
o.showValue(t.data, "@id") ? (s(),
|
|
297
|
+
o.showValue(t.data, "@id") ? (s(), A(m, {
|
|
298
298
|
key: 1,
|
|
299
299
|
to: t.data["@id"]
|
|
300
300
|
}, {
|
|
301
|
-
default:
|
|
301
|
+
default: g(() => [
|
|
302
302
|
a(d(t.data["@id"]), 1)
|
|
303
303
|
]),
|
|
304
304
|
_: 1
|
|
@@ -306,24 +306,24 @@ function le(l, e, t, f, g, o) {
|
|
|
306
306
|
])
|
|
307
307
|
])) : n("", !0),
|
|
308
308
|
e[59] || (e[59] = a()),
|
|
309
|
-
t.property === "dcat:temporalResolution" ? (s(), i("tr",
|
|
310
|
-
r("td",
|
|
309
|
+
t.property === "dcat:temporalResolution" ? (s(), i("tr", At, [
|
|
310
|
+
r("td", Rt, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
311
311
|
e[34] || (e[34] = a()),
|
|
312
312
|
r("td", null, [
|
|
313
313
|
r("div", null, d(o.convertTemporalResolution(t.data)), 1)
|
|
314
314
|
])
|
|
315
315
|
])) : n("", !0),
|
|
316
316
|
e[60] || (e[60] = a()),
|
|
317
|
-
o.showDataService() ? (s(), i("tr",
|
|
317
|
+
o.showDataService() ? (s(), i("tr", Ut, [
|
|
318
318
|
r("td", Et, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
319
319
|
e[38] || (e[38] = a()),
|
|
320
320
|
r("td", Mt, [
|
|
321
|
-
o.showValue(t.data, "dct:title") ? (s(), i("div",
|
|
322
|
-
r("span",
|
|
321
|
+
o.showValue(t.data, "dct:title") ? (s(), i("div", Dt, [
|
|
322
|
+
r("span", Nt, d(l.$t("message.dataupload.distributions.accessServiceTitle.label")) + ":", 1),
|
|
323
323
|
a(" " + d(t.data["dct:title"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0]), 1)
|
|
324
324
|
])) : n("", !0),
|
|
325
325
|
e[36] || (e[36] = a()),
|
|
326
|
-
o.showValue(t.data, "dct:description") ? (s(), i("div",
|
|
326
|
+
o.showValue(t.data, "dct:description") ? (s(), i("div", Tt, [
|
|
327
327
|
r("span", Ht, d(l.$t("message.dataupload.distributions.accessServiceDescription.label")) + ":", 1),
|
|
328
328
|
a(" " + d(t.data["dct:description"].filter((u) => u["@language"] === t.dpiLocale).map((u) => u["@value"])[0]), 1)
|
|
329
329
|
])) : n("", !0),
|
|
@@ -335,7 +335,7 @@ function le(l, e, t, f, g, o) {
|
|
|
335
335
|
class: "w-100",
|
|
336
336
|
to: t.data["dcat:endpointURL"]
|
|
337
337
|
}, {
|
|
338
|
-
default:
|
|
338
|
+
default: g(() => [
|
|
339
339
|
a(d(t.data["dcat:endpointURL"]), 1)
|
|
340
340
|
]),
|
|
341
341
|
_: 1
|
|
@@ -354,7 +354,7 @@ function le(l, e, t, f, g, o) {
|
|
|
354
354
|
r("td", Ct, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
355
355
|
e[45] || (e[45] = a()),
|
|
356
356
|
r("td", null, [
|
|
357
|
-
(s(!0), i(
|
|
357
|
+
(s(!0), i(k, null, L(Object.keys(t.data["dct:publisher"]), (u, _) => (s(), i("div", null, [
|
|
358
358
|
t.data["dct:publisher"][u] != null && t.data["dct:publisher"][u] != "" && u === "foaf:name" ? (s(), i("div", It, [
|
|
359
359
|
r("span", qt, d(l.$t("message.dataupload.datasets.publisherName.label")) + ":", 1),
|
|
360
360
|
e[40] || (e[40] = a()),
|
|
@@ -368,7 +368,7 @@ function le(l, e, t, f, g, o) {
|
|
|
368
368
|
class: "w-100",
|
|
369
369
|
to: u
|
|
370
370
|
}, {
|
|
371
|
-
default:
|
|
371
|
+
default: g(() => [
|
|
372
372
|
a(d(t.data["dct:publisher"][u]), 1)
|
|
373
373
|
]),
|
|
374
374
|
_: 2
|
|
@@ -382,7 +382,7 @@ function le(l, e, t, f, g, o) {
|
|
|
382
382
|
class: "w-100",
|
|
383
383
|
to: u
|
|
384
384
|
}, {
|
|
385
|
-
default:
|
|
385
|
+
default: g(() => [
|
|
386
386
|
a(d(t.data["dct:publisher"][u]), 1)
|
|
387
387
|
]),
|
|
388
388
|
_: 2
|
|
@@ -404,7 +404,7 @@ function le(l, e, t, f, g, o) {
|
|
|
404
404
|
r("td", Zt, d(l.$t(`${t.value.label}`)) + ":", 1),
|
|
405
405
|
e[51] || (e[51] = a()),
|
|
406
406
|
r("td", null, [
|
|
407
|
-
(s(!0), i(
|
|
407
|
+
(s(!0), i(k, null, L(Object.keys(t.data["dct:license"]), (u, _) => (s(), i("div", null, [
|
|
408
408
|
t.data["dct:license"][u] != null && t.data["dct:license"][u] != "" && u === "dct:title" ? (s(), i("div", xt, [
|
|
409
409
|
r("span", $t, d(l.$t("message.dataupload.distributions.licenceTitle.label")) + ":", 1),
|
|
410
410
|
e[46] || (e[46] = a()),
|
|
@@ -418,7 +418,7 @@ function le(l, e, t, f, g, o) {
|
|
|
418
418
|
class: "w-100",
|
|
419
419
|
to: u
|
|
420
420
|
}, {
|
|
421
|
-
default:
|
|
421
|
+
default: g(() => [
|
|
422
422
|
a(d(t.data["dct:license"][u]), 1)
|
|
423
423
|
]),
|
|
424
424
|
_: 2
|
|
@@ -432,7 +432,7 @@ function le(l, e, t, f, g, o) {
|
|
|
432
432
|
class: "w-100",
|
|
433
433
|
to: u
|
|
434
434
|
}, {
|
|
435
|
-
default:
|
|
435
|
+
default: g(() => [
|
|
436
436
|
a(d(t.data["dct:license"][u]), 1)
|
|
437
437
|
]),
|
|
438
438
|
_: 2
|
|
@@ -451,7 +451,7 @@ function le(l, e, t, f, g, o) {
|
|
|
451
451
|
])) : n("", !0)
|
|
452
452
|
], 64);
|
|
453
453
|
}
|
|
454
|
-
const me = /* @__PURE__ */ U
|
|
454
|
+
const me = /* @__PURE__ */ R(U, [["render", le]]);
|
|
455
455
|
export {
|
|
456
456
|
me as default
|
|
457
457
|
};
|