@piveau/dpi 0.1.0-beta.5
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/dpi.css +1 -0
- package/dist/composables/useRuntimeEnv.js +11 -0
- package/dist/composables/useTed.js +9 -0
- package/dist/data-provider-interface/DPIMenu.vue.js +457 -0
- package/dist/data-provider-interface/DataProviderInterface.vue.js +43 -0
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +144 -0
- package/dist/data-provider-interface/HappyFlowComponents/BlogDPIHome.vue.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/CommunityDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1052 -0
- package/dist/data-provider-interface/HappyFlowComponents/ConsultingDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +26 -0
- package/dist/data-provider-interface/HappyFlowComponents/FAQDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +109 -0
- package/dist/data-provider-interface/HappyFlowComponents/ServiceDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CheckCircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Circle.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/DatenbereitstellerV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Error.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Published.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Warning.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/FurV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationCelebrate.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationStart.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/InfoFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/WarningFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/bydata_logo_blue_small.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/iconRight.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/x-circleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +135 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/eventBus.js +16 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +256 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CheckboxV3.vue.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +91 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CrossOutButton.vue.js +63 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DatasetStatus.vue.js +52 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +231 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Illustration.vue.js +33 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +477 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputV3.vue.js +182 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/LogoV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +123 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +566 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/MoreButton.vue.js +56 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +41 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +80 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +113 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +116 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +227 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +148 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +46 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +130 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +106 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +247 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +79 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +73 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +134 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +68 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +64 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SwitchV3.vue.js +195 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +207 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +115 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonLarge.vue.js +108 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +125 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +69 -0
- package/dist/data-provider-interface/components/AutocompleteInput.vue.js +279 -0
- package/dist/data-provider-interface/components/BasicInfosPage.vue.js +9 -0
- package/dist/data-provider-interface/components/ConditionalInput.vue.js +196 -0
- package/dist/data-provider-interface/components/ContactPage.vue.js +246 -0
- package/dist/data-provider-interface/components/CoveringPage.vue.js +9 -0
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.js +49 -0
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +60 -0
- package/dist/data-provider-interface/components/DistLicense.vue.js +160 -0
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1147 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.js +212 -0
- package/dist/data-provider-interface/components/Dropup.vue.js +62 -0
- package/dist/data-provider-interface/components/FileUpload.vue.js +278 -0
- package/dist/data-provider-interface/components/HVDPage.vue.js +106 -0
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +70 -0
- package/dist/data-provider-interface/components/InfoSlot.vue.js +81 -0
- package/dist/data-provider-interface/components/InputPageStep.vue.js +40 -0
- package/dist/data-provider-interface/components/InputPageStep.vue2.js +4 -0
- package/dist/data-provider-interface/components/LanguageSelector.vue.js +65 -0
- package/dist/data-provider-interface/components/Navigation.vue.js +256 -0
- package/dist/data-provider-interface/components/Navigation.vue2.js +1 -0
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +81 -0
- package/dist/data-provider-interface/components/PublisherPage.vue.js +176 -0
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +413 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.js +55 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue2.js +4 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.js +32 -0
- package/dist/data-provider-interface/components/SimpleInput.vue.js +35 -0
- package/dist/data-provider-interface/components/SimpleSelect.vue.js +111 -0
- package/dist/data-provider-interface/components/SpatialInput.vue.js +276 -0
- package/dist/data-provider-interface/components/TempResPage.vue.js +211 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue.js +90 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue2.js +4 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +52 -0
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.js +75 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +75 -0
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +44 -0
- package/dist/data-provider-interface/composables/aucotomplete.js +50 -0
- package/dist/data-provider-interface/composables/useDpiContext.js +17 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.js +88 -0
- package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +384 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +47 -0
- package/dist/data-provider-interface/composables/useDpiUtils.js +39 -0
- package/dist/data-provider-interface/composables/useErrorDialog.js +31 -0
- package/dist/data-provider-interface/composables/useFormSchema.js +56 -0
- package/dist/data-provider-interface/composables/useRequestUriName.js +58 -0
- package/dist/data-provider-interface/config/dcatap/format-types.js +256 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.js +1842 -0
- package/dist/data-provider-interface/config/dcatap/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatap/prefixes.js +25 -0
- package/dist/data-provider-interface/config/dcatap/vocab-prefixes.js +24 -0
- package/dist/data-provider-interface/config/dcatapde/format-types.js +274 -0
- package/dist/data-provider-interface/config/dcatapde/input-definition.js +2131 -0
- package/dist/data-provider-interface/config/dcatapde/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatapde/prefixes.js +27 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +33 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +161 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +2196 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +82 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.js +18 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dpi-spec-config.js +54 -0
- package/dist/data-provider-interface/config/selector-languages.json.js +57 -0
- package/dist/data-provider-interface/plugins/userConfigShimPlugin.js +10 -0
- package/dist/data-provider-interface/store/dpiStore.js +33 -0
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +94 -0
- package/dist/data-provider-interface/store/modules/navigationStore.js +24 -0
- package/dist/data-provider-interface/utils/general-helper.js +218 -0
- package/dist/data-provider-interface/utils/injectionKeys.js +5 -0
- package/dist/data-provider-interface/utils/translation-helper.js +31 -0
- package/dist/data-provider-interface/utils/useSteps.js +34 -0
- package/dist/data-provider-interface/views/DistributionInputPage.vue.js +100 -0
- package/dist/data-provider-interface/views/DistributionOverview.vue.js +201 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +278 -0
- package/dist/data-provider-interface/views/InputPage.vue.js +1182 -0
- package/dist/data-provider-interface/views/LinkedDataViewer.vue.js +105 -0
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js +86 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.js +214 -0
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.js +219 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.js +19 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.js +397 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.js +56 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.js +109 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.js +92 -0
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.js +103 -0
- package/dist/data-provider-interface/views/OverviewPage.vue.js +189 -0
- package/dist/data-provider-interface/views/PropertyChooser.vue.js +41 -0
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.js +74 -0
- package/dist/data-provider-interface/views/UserProfilePage.vue.js +83 -0
- package/dist/filters/dateFilters.js +39 -0
- package/dist/form/FormKitGroup.vue.js +55 -0
- package/dist/form/Repeatable.vue.js +7 -0
- package/dist/form/Repeatable.vue2.js +72 -0
- package/dist/form/inputDefinitions.js +131 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +124 -0
- package/dist/utils/helpers.js +32 -0
- package/dist/widgets/AppLink.vue.js +118 -0
- package/package.json +96 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { mapActions as c, mapGetters as u } from "vuex";
|
|
2
|
+
import h from "axios";
|
|
3
|
+
import { createElementBlock as l, openBlock as d, createElementVNode as a, withDirectives as m, toDisplayString as p, vModelText as f } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const g = {
|
|
7
|
+
props: {
|
|
8
|
+
name: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
format: {
|
|
12
|
+
type: String
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
loading: !0,
|
|
18
|
+
linkedData: ""
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
...u("auth", [
|
|
23
|
+
"getUserData"
|
|
24
|
+
]),
|
|
25
|
+
isLoading() {
|
|
26
|
+
return this.loading;
|
|
27
|
+
},
|
|
28
|
+
url() {
|
|
29
|
+
return `${this.$env.api.hubUrl}drafts/datasets/${this.name}.${this.format}?useNormalizedId=true&locale=${this.$route.query.locale}&catalogue=${this.$route.query.catalogue}`;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
methods: {
|
|
33
|
+
...c("snackbar", [
|
|
34
|
+
"showSnackbar"
|
|
35
|
+
]),
|
|
36
|
+
setupLinkedDataViewer() {
|
|
37
|
+
this.url && this.loadLinkedData().then((e) => {
|
|
38
|
+
this.loading = !1, this.linkedData = this.format === "jsonld" ? JSON.stringify(e.data, null, 2) : e.data, this.$nextTick(() => {
|
|
39
|
+
const t = document.getElementsByTagName("textarea");
|
|
40
|
+
for (let n = 0; n < t.length; n++) t[n].setAttribute("style", `height:${t[n].scrollHeight}px;overflow-y:hidden;`);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
loadLinkedData() {
|
|
45
|
+
return new Promise((e, t) => {
|
|
46
|
+
const n = this.url;
|
|
47
|
+
h.get(n, {
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: `Bearer ${this.getUserData.rtpToken}`
|
|
50
|
+
}
|
|
51
|
+
}).then((o) => {
|
|
52
|
+
e(o);
|
|
53
|
+
}).catch((o) => {
|
|
54
|
+
t(o);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
handleCopy(e) {
|
|
59
|
+
navigator.clipboard.writeText(e), this.showSnackbar({
|
|
60
|
+
message: "Text successfully copied",
|
|
61
|
+
variant: "success"
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
handleDownload(e) {
|
|
65
|
+
const t = document.createElement("A");
|
|
66
|
+
t.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(e)}`), t.setAttribute("download", `${this.name}.${this.format}`), t.style.display = "none", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
created() {
|
|
70
|
+
this.setupLinkedDataViewer();
|
|
71
|
+
}
|
|
72
|
+
}, k = { class: "d-flex flex-column bg-transparent container-fluid justify-content-between content" }, b = {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "loading-spinner ml-3"
|
|
75
|
+
}, D = { key: 1 }, x = { class: "d-flex justify-content-between" }, v = { class: "d-inline" };
|
|
76
|
+
function w(e, t, n, o, i, s) {
|
|
77
|
+
return d(), l("div", k, [
|
|
78
|
+
s.isLoading ? (d(), l("div", b)) : (d(), l("div", D, [
|
|
79
|
+
a("div", x, [
|
|
80
|
+
a("h1", v, p(this.name), 1),
|
|
81
|
+
a("div", null, [
|
|
82
|
+
a("button", {
|
|
83
|
+
type: "button",
|
|
84
|
+
class: "btn btn-secondary",
|
|
85
|
+
onClick: t[0] || (t[0] = (r) => s.handleCopy(i.linkedData))
|
|
86
|
+
}, " Copy "),
|
|
87
|
+
a("button", {
|
|
88
|
+
type: "button",
|
|
89
|
+
class: "btn btn-primary",
|
|
90
|
+
onClick: t[1] || (t[1] = (r) => s.handleDownload(i.linkedData))
|
|
91
|
+
}, "Download")
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
m(a("textarea", {
|
|
95
|
+
"onUpdate:modelValue": t[2] || (t[2] = (r) => i.linkedData = r)
|
|
96
|
+
}, null, 512), [
|
|
97
|
+
[f, i.linkedData]
|
|
98
|
+
])
|
|
99
|
+
]))
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
const S = /* @__PURE__ */ y(g, [["render", w], ["__scopeId", "data-v-a17023d3"]]);
|
|
103
|
+
export {
|
|
104
|
+
S as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import m from "./PropertyEntry.vue.js";
|
|
2
|
+
import { mapGetters as u } from "vuex";
|
|
3
|
+
import { resolveComponent as v, createElementBlock as s, openBlock as l, createCommentVNode as r, createElementVNode as e, toDisplayString as c, Fragment as b, renderList as _, createVNode as f } from "vue";
|
|
4
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const y = {
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
tableProperties: {
|
|
9
|
+
"dct:publisher": { type: "conditional", voc: "corporate-body", label: "message.metadata.publisher" },
|
|
10
|
+
"foaf:homepage": { type: "singularURI", voc: "", label: "message.metadata.homepage" },
|
|
11
|
+
"dct:language": { type: "multiURI", voc: "language", label: "message.metadata.languages" },
|
|
12
|
+
"dct:license": { type: "singularURI", voc: "", label: "message.metadata.license" },
|
|
13
|
+
"dct:spatial": { type: "special", voc: "", label: "message.metadata.spatial" },
|
|
14
|
+
"dct:creator": { type: "special", voc: "", label: "message.metadata.creator" },
|
|
15
|
+
"dct:hasPart": { type: "multiURL", voc: "", label: "message.dataupload.catalogues.hasPart.label" },
|
|
16
|
+
"dct:isPartOf": { type: "singularURI", voc: "", label: "message.metadata.isPartOf" },
|
|
17
|
+
"dcat:catalog": { type: "multiURL", voc: "", label: "message.dataupload.catalogues.catalog.label" },
|
|
18
|
+
"dct:rights": { type: "singularString", voc: "", label: "message.metadata.rights" }
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
dpiLocale: String
|
|
24
|
+
},
|
|
25
|
+
components: {
|
|
26
|
+
PropertyEntry: m
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
...u("dpiStore", [
|
|
30
|
+
"getData"
|
|
31
|
+
])
|
|
32
|
+
}
|
|
33
|
+
}, L = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "mt-4 mb-2"
|
|
36
|
+
}, P = { class: "row" }, D = { class: "col-8 offset-1" }, w = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "mt-2"
|
|
39
|
+
}, R = { class: "row" }, U = { class: "col-10 offset-1" }, k = { class: "mt-5" }, E = { class: "row" }, I = { class: "col-10 offset-1 py-2 bg-white" }, O = { class: "heading" }, S = { class: "col-10 offset-1" }, C = { class: "table table-borderless table-responsive pl-3 bg-light" };
|
|
40
|
+
function N(a, i, o, V, d, B) {
|
|
41
|
+
const n = v("PropertyEntry");
|
|
42
|
+
return l(), s("div", null, [
|
|
43
|
+
a.getData("catalogues")["dct:title"] ? (l(), s("div", L, [
|
|
44
|
+
e("div", P, [
|
|
45
|
+
e("div", D, [
|
|
46
|
+
e("h2", null, c(a.getData("catalogues")["dct:title"].filter((t) => t["@language"] === o.dpiLocale).map((t) => t["@value"])[0]), 1)
|
|
47
|
+
])
|
|
48
|
+
])
|
|
49
|
+
])) : r("", !0),
|
|
50
|
+
a.getData("catalogues")["dct:description"] ? (l(), s("div", w, [
|
|
51
|
+
e("div", R, [
|
|
52
|
+
e("div", U, [
|
|
53
|
+
e("p", null, c(a.getData("catalogues")["dct:description"].filter((t) => t["@language"] === o.dpiLocale).map((t) => t["@value"])[0]), 1)
|
|
54
|
+
])
|
|
55
|
+
]),
|
|
56
|
+
i[0] || (i[0] = e("hr", null, null, -1))
|
|
57
|
+
])) : r("", !0),
|
|
58
|
+
e("div", k, [
|
|
59
|
+
e("div", E, [
|
|
60
|
+
e("div", I, [
|
|
61
|
+
e("h2", O, c(a.$t("message.datasetDetails.additionalInfo")), 1)
|
|
62
|
+
]),
|
|
63
|
+
e("div", S, [
|
|
64
|
+
e("table", C, [
|
|
65
|
+
(l(!0), s(b, null, _(d.tableProperties, (t, p, g) => (l(), s("div", {
|
|
66
|
+
key: g,
|
|
67
|
+
class: "catOverviewTable"
|
|
68
|
+
}, [
|
|
69
|
+
f(n, {
|
|
70
|
+
data: a.getData("catalogues"),
|
|
71
|
+
profile: "catalogues",
|
|
72
|
+
property: p,
|
|
73
|
+
value: t,
|
|
74
|
+
dpiLocale: o.dpiLocale
|
|
75
|
+
}, null, 8, ["data", "property", "value", "dpiLocale"])
|
|
76
|
+
]))), 128))
|
|
77
|
+
])
|
|
78
|
+
])
|
|
79
|
+
])
|
|
80
|
+
])
|
|
81
|
+
]);
|
|
82
|
+
}
|
|
83
|
+
const j = /* @__PURE__ */ h(y, [["render", N]]);
|
|
84
|
+
export {
|
|
85
|
+
j as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import D from "./PropertyEntry.vue.js";
|
|
2
|
+
import _ from "./DistributionOverview.vue.js";
|
|
3
|
+
import { mapGetters as R } from "vuex";
|
|
4
|
+
import L from "axios";
|
|
5
|
+
import { resolveComponent as g, createElementBlock as d, createCommentVNode as u, openBlock as o, createElementVNode as t, toDisplayString as l, createVNode as p, Fragment as b, renderList as v, createTextVNode as I } from "vue";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import U from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const w = {
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
values: [],
|
|
12
|
+
pageLoaded: !1,
|
|
13
|
+
tableProperties: {
|
|
14
|
+
"dct:publisher": { type: "special", voc: "corporate-body", label: "message.metadata.publisher" },
|
|
15
|
+
"dcat:contactPoint": { type: "special", voc: "", label: "message.metadata.contactPoints" },
|
|
16
|
+
"dct:creator": { type: "special", voc: "", label: "message.metadata.creator" },
|
|
17
|
+
// 'dct:issued': { type: 'date', label: 'message.metadata.created' },
|
|
18
|
+
// 'dct:modified': { type: 'date', label: 'message.metadata.updated' },
|
|
19
|
+
"dct:language": { type: "multiURI", voc: "language", label: "message.metadata.languages" },
|
|
20
|
+
"dct:subject": { type: "multiURI", voc: "eurovoc", label: "message.dataupload.datasets.subject.label" },
|
|
21
|
+
"dcat:theme": { type: "multiURI", voc: "data-theme", label: "message.dataupload.datasets.theme.label" },
|
|
22
|
+
"dct:type": { type: "singularURI", voc: "dataset-type", label: "message.metadata.type" },
|
|
23
|
+
"dct:source": { type: "multiURL", voc: "", label: "message.metadata.sources" },
|
|
24
|
+
"dct:identifier": { type: "multiString", voc: "", label: "message.metadata.identifiers" },
|
|
25
|
+
"adms:identifier": { type: "special", voc: "", label: "message.metadata.otherIdentifiers" },
|
|
26
|
+
"foaf:page": { type: "special", voc: "", label: "message.dataupload.datasets.page.label" },
|
|
27
|
+
"dcat:landingPage": { type: "multiURL", voc: "", label: "message.metadata.landingPage" },
|
|
28
|
+
"dct:provenance": { type: "multiString", voc: "", label: "message.metadata.provenances" },
|
|
29
|
+
"dct:accrualPeriodicity": { type: "singularURI", voc: "frequency", label: "message.metadata.accrualPeriodicity" },
|
|
30
|
+
"dct:accessRights": { type: "singularURI", voc: "access-right", label: "message.metadata.accessRights" },
|
|
31
|
+
"dct:conformsTo": { type: "special", voc: "", label: "message.metadata.conformsTo" },
|
|
32
|
+
"dct:relation": { type: "multiURL", voc: "", label: "message.dataupload.datasets.relation.label" },
|
|
33
|
+
"dcat:qualifiedRelation": { type: "multiURL", voc: "", label: "message.dataupload.datasets.qualifiedRelation.label" },
|
|
34
|
+
"prov:qualifiedAttribution": { type: "multiURL", voc: "", label: "message.dataupload.datasets.qualifiedAttribution.label" },
|
|
35
|
+
"dct:spatial": { type: "multiURI", voc: "", label: "message.metadata.spatial" },
|
|
36
|
+
"dcat:spatialResolutionInMeters": { type: "singularString", voc: "", label: "message.dataupload.datasets.spatialResolutionInMeters.label" },
|
|
37
|
+
"dct:temporal": { type: "special", voc: "", label: "message.metadata.temporal" },
|
|
38
|
+
"dcat:temporalResolution": { type: "special", voc: "", label: "message.dataupload.datasets.temporalResolution.label" },
|
|
39
|
+
"dct:isReferencedBy": { type: "multiURL", voc: "", label: "message.dataupload.datasets.isReferencedBy.label" },
|
|
40
|
+
"prov:wasGeneratedBy": { type: "multiURL", voc: "", label: "message.dataupload.datasets.wasGeneratedBy.label" },
|
|
41
|
+
"dct:isVersionOf": { type: "multiURL", voc: "", label: "message.metadata.isVersionOf" },
|
|
42
|
+
"dext:metadataExtension": { type: "multiURL", voc: "", label: "message.dataupload.datasets.isUsedBy.label" },
|
|
43
|
+
"dct:hasVersion": { type: "multiURL", voc: "", label: "message.metadata.hasVersion" },
|
|
44
|
+
"owl:versionInfo": { type: "singularString", voc: "", label: "message.metadata.versionInfo" },
|
|
45
|
+
"adms:versionNotes": { type: "multiLingual", voc: "", label: "message.metadata.versionNotes" },
|
|
46
|
+
"dcatde:qualityProcessURI": { type: "singularURI", voc: "", label: "message.dataupload.datasets.qualityProcessURI.label" },
|
|
47
|
+
"dct:references": { type: "singularURI", voc: "", label: "message.dataupload.datasets.references.label" },
|
|
48
|
+
"dcatde:legalBasis": { type: "multiLingual", voc: "", label: "message.dataupload.datasets.legalBasis.label" },
|
|
49
|
+
"dct:contributor": { type: "special", voc: "", label: "message.dataupload.datasets.contributor.label" },
|
|
50
|
+
"dcatde:contributorID": { type: "multiURI", voc: "contributors", label: "message.dataupload.datasets.contributorID.label" },
|
|
51
|
+
"dcatde:originator": { type: "special", voc: "", label: "message.dataupload.datasets.originator.label" },
|
|
52
|
+
"dcatde:maintainer": { type: "special", voc: "", label: "message.dataupload.datasets.maintainer.label" },
|
|
53
|
+
"dcatap:availability": { type: "singularURI", voc: "planned-availability", label: "message.dataupload.datasets.availabilityDE.label" },
|
|
54
|
+
"dcatde:geocodingDescription": { type: "multiLingual", voc: "", label: "message.dataupload.datasets.geocodingDescription.label" },
|
|
55
|
+
"dcatde:politicalGeocodingLevelURI": { type: "multiURI", voc: "", label: "message.dataupload.datasets.politicalGeocodingLevelURI.label" },
|
|
56
|
+
"dcatde:politicalGeocodingURI": { type: "multiURI", voc: "political-geocoding-level", label: "message.dataupload.datasets.politicalGeocodingURI.label" }
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
props: {
|
|
61
|
+
dpiLocale: String
|
|
62
|
+
},
|
|
63
|
+
components: {
|
|
64
|
+
PropertyEntry: D,
|
|
65
|
+
DistributionOverview: _
|
|
66
|
+
},
|
|
67
|
+
computed: {
|
|
68
|
+
...R("dpiStore", [
|
|
69
|
+
"getData"
|
|
70
|
+
]),
|
|
71
|
+
getDatasets() {
|
|
72
|
+
return this.values;
|
|
73
|
+
},
|
|
74
|
+
getDistributions() {
|
|
75
|
+
return this.getDatasets.distributionList || [];
|
|
76
|
+
},
|
|
77
|
+
showTable() {
|
|
78
|
+
return Object.keys(this.tableProperties).filter((e) => this.getDatasets[e]).length > 0;
|
|
79
|
+
},
|
|
80
|
+
storeData() {
|
|
81
|
+
return this.getData("datasets");
|
|
82
|
+
},
|
|
83
|
+
getTitle() {
|
|
84
|
+
return this.getDatasets["dct:title"] && this.getDatasets["dct:title"].filter((e) => e["@language"] === this.dpiLocale).map((e) => e["@value"])[0];
|
|
85
|
+
},
|
|
86
|
+
getDescription() {
|
|
87
|
+
return this.getDatasets["dct:description"] && this.getDatasets["dct:description"].filter((e) => e["@language"] === this.dpiLocale).map((e) => e["@value"])[0];
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
methods: {
|
|
91
|
+
checkIfPropertySet(e, a) {
|
|
92
|
+
return e[a] != null ? e[a] : "-";
|
|
93
|
+
},
|
|
94
|
+
getDate(e) {
|
|
95
|
+
if (!(e instanceof Date) || isNaN(e.getTime())) return "-";
|
|
96
|
+
let a = {};
|
|
97
|
+
return this.dpiLocale === "de" ? (a = { year: "numeric", month: "long", day: "numeric" }, e.toLocaleDateString("de-DE", a)) : (a = { year: "numeric", month: "long", day: "numeric" }, e.toLocaleDateString("en-EN", a));
|
|
98
|
+
},
|
|
99
|
+
checkIfPropertyValueSet(e, a, i) {
|
|
100
|
+
return e[a] != null && e[a][i] != null ? e[a][i] : "-";
|
|
101
|
+
},
|
|
102
|
+
async reqName(e) {
|
|
103
|
+
let a = e.split("/"), i = `${this.$env.api.baseUrl}vocabularies/${a[a.length - 2]}/${a[a.length - 1]}`;
|
|
104
|
+
return (await L.get(i)).data.result.pref_label[this.dpiLocale];
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
async mounted() {
|
|
108
|
+
this.$nextTick(() => {
|
|
109
|
+
this.pageLoaded = !0, this.values = this.getData("datasets");
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
watch: {
|
|
113
|
+
storeData(e, a) {
|
|
114
|
+
this.values = e;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, P = {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: "mt-2"
|
|
120
|
+
}, k = { class: "overviewHeader p-3" }, S = { class: "firstRow d-flex" }, V = { class: "datasetNotation dsd-title-tag d-flex align-items-center" }, N = { class: "dsTitle" }, x = { class: "secondRow d-flex justify-content-between" }, q = { class: "dsCatalogue" }, B = { href: "" }, E = { class: "dsPublisher" }, O = { class: "dsIssued" }, T = { class: "dsUpdated" }, G = { class: "dsMainWrap d-flex flex-column mt-3" }, j = { class: "" }, C = { class: "dsDesc px-3" }, M = { class: "" }, A = { class: "table table-borderless table-responsive bg-light disOverview p-3" }, H = {
|
|
121
|
+
key: 0,
|
|
122
|
+
class: "dsDist b-top p-3"
|
|
123
|
+
}, K = { class: "my-4" }, F = {
|
|
124
|
+
key: 1,
|
|
125
|
+
class: "dsKeywords b-top my-2 p-3"
|
|
126
|
+
}, W = { class: "my-4" }, z = { class: "d-flex" }, J = ["title"];
|
|
127
|
+
function Q(e, a, i, y, r, s) {
|
|
128
|
+
const m = g("PropertyEntry"), h = g("DistributionOverview");
|
|
129
|
+
return r.pageLoaded ? (o(), d("div", P, [
|
|
130
|
+
t("div", k, [
|
|
131
|
+
t("div", S, [
|
|
132
|
+
t("div", V, [
|
|
133
|
+
t("span", null, l(e.$te("message.metadata.dataset") ? e.$t("message.metadata.dataset") : "Dataset"), 1)
|
|
134
|
+
]),
|
|
135
|
+
t("h1", N, l(s.getTitle), 1)
|
|
136
|
+
]),
|
|
137
|
+
t("div", x, [
|
|
138
|
+
t("div", q, [
|
|
139
|
+
t("span", null, [
|
|
140
|
+
t("b", null, l(e.$te("message.metadata.catalog") ? e.$t("message.metadata.catalog") : "Catalogue") + ":", 1)
|
|
141
|
+
]),
|
|
142
|
+
t("a", B, l(s.checkIfPropertySet(s.getDatasets, "dcat:catalog")), 1)
|
|
143
|
+
]),
|
|
144
|
+
t("div", E, [
|
|
145
|
+
p(m, {
|
|
146
|
+
profile: "datasets",
|
|
147
|
+
data: s.getDatasets,
|
|
148
|
+
property: "dct:publisher",
|
|
149
|
+
value: { type: "special", voc: "corporate-body", label: "message.metadata.publisher", isHeader: !0 },
|
|
150
|
+
dpiLocale: i.dpiLocale
|
|
151
|
+
}, null, 8, ["data", "dpiLocale"])
|
|
152
|
+
]),
|
|
153
|
+
t("div", O, [
|
|
154
|
+
t("span", null, [
|
|
155
|
+
t("b", null, l(e.$te("message.dataupload.datasets.issued.label") ? e.$t("message.dataupload.datasets.issued.label") : "Issued") + ":", 1)
|
|
156
|
+
]),
|
|
157
|
+
t("a", null, l(s.getDate(new Date(s.checkIfPropertyValueSet(s.getDatasets, "dct:issued", "@value")))), 1)
|
|
158
|
+
]),
|
|
159
|
+
t("div", T, [
|
|
160
|
+
t("span", null, [
|
|
161
|
+
t("b", null, l(e.$te("message.dataupload.datasets.modified.label") ? e.$t("message.dataupload.datasets.modified.label") : "Updated") + ":", 1)
|
|
162
|
+
]),
|
|
163
|
+
t("a", null, l(s.getDate(new Date(s.checkIfPropertyValueSet(s.getDatasets, "dct:modified", "@value")))), 1)
|
|
164
|
+
])
|
|
165
|
+
])
|
|
166
|
+
]),
|
|
167
|
+
t("div", G, [
|
|
168
|
+
t("div", j, [
|
|
169
|
+
t("p", C, l(s.getDescription), 1)
|
|
170
|
+
]),
|
|
171
|
+
t("div", M, [
|
|
172
|
+
t("table", A, [
|
|
173
|
+
(o(!0), d(b, null, v(r.tableProperties, (c, n, f) => (o(), d("div", { key: f }, [
|
|
174
|
+
p(m, {
|
|
175
|
+
profile: "datasets",
|
|
176
|
+
data: r.values,
|
|
177
|
+
property: n,
|
|
178
|
+
value: c,
|
|
179
|
+
dpiLocale: i.dpiLocale
|
|
180
|
+
}, null, 8, ["data", "property", "value", "dpiLocale"])
|
|
181
|
+
]))), 128))
|
|
182
|
+
])
|
|
183
|
+
])
|
|
184
|
+
]),
|
|
185
|
+
s.getDistributions.length > 0 ? (o(), d("div", H, [
|
|
186
|
+
t("h2", K, l(e.$t("message.metadata.distributions")) + " (" + l(s.getDistributions.length) + ")", 1),
|
|
187
|
+
p(h, {
|
|
188
|
+
dpiLocale: i.dpiLocale,
|
|
189
|
+
distributions: s.getDistributions
|
|
190
|
+
}, null, 8, ["dpiLocale", "distributions"])
|
|
191
|
+
])) : u("", !0),
|
|
192
|
+
s.getDatasets["dct:keyword"] != null && s.getDatasets["dct:keyword"][0]["@value"] != null && s.getDatasets["dct:keyword"].length > 0 ? (o(), d("div", F, [
|
|
193
|
+
t("h2", W, [
|
|
194
|
+
a[0] || (a[0] = I("Keywords ", -1)),
|
|
195
|
+
t("span", null, "(" + l(s.getDatasets["dct:keyword"].length) + ")", 1)
|
|
196
|
+
]),
|
|
197
|
+
t("div", z, [
|
|
198
|
+
(o(!0), d(b, null, v(s.getDatasets["dct:keyword"].filter((c) => c["@language"] === i.dpiLocale), (c, n) => (o(), d("span", {
|
|
199
|
+
class: "mx-1",
|
|
200
|
+
key: n
|
|
201
|
+
}, [
|
|
202
|
+
t("small", {
|
|
203
|
+
title: c,
|
|
204
|
+
class: "d-inline-block w-100 p-2 ml-1 rounded-pill text-center text-white text-truncate bg-primary"
|
|
205
|
+
}, l(c["@value"]), 9, J)
|
|
206
|
+
]))), 128))
|
|
207
|
+
])
|
|
208
|
+
])) : u("", !0)
|
|
209
|
+
])) : u("", !0);
|
|
210
|
+
}
|
|
211
|
+
const se = /* @__PURE__ */ U(w, [["render", Q]]);
|
|
212
|
+
export {
|
|
213
|
+
se as default
|
|
214
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { mapGetters as f } from "vuex";
|
|
2
|
+
import L from "./PropertyEntry.vue.js";
|
|
3
|
+
import { has as w, isNil as k, isEmpty as D } from "lodash-es";
|
|
4
|
+
import { truncate as I } from "../../../utils/helpers.js";
|
|
5
|
+
import S from "../../utils/general-helper.js";
|
|
6
|
+
import { resolveComponent as R, createElementBlock as e, openBlock as t, createElementVNode as s, toDisplayString as i, Fragment as g, renderList as v, createVNode as y, createTextVNode as h, createCommentVNode as b } from "vue";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import U from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const C = {
|
|
10
|
+
props: {
|
|
11
|
+
dpiLocale: String,
|
|
12
|
+
distributions: {
|
|
13
|
+
required: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
components: {
|
|
17
|
+
PropertyEntry: L
|
|
18
|
+
},
|
|
19
|
+
computed: {
|
|
20
|
+
...f("dpiStore", [
|
|
21
|
+
"getData"
|
|
22
|
+
]),
|
|
23
|
+
distributionList() {
|
|
24
|
+
let a = [];
|
|
25
|
+
for (let n = 0; n < this.distributions.length; n++)
|
|
26
|
+
a.push(S.mergeNestedObjects(this.distributions[n]));
|
|
27
|
+
return a;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
mounted() {
|
|
31
|
+
},
|
|
32
|
+
methods: {
|
|
33
|
+
truncate: I,
|
|
34
|
+
getDistributionFormat(a) {
|
|
35
|
+
try {
|
|
36
|
+
return a["dct:format"].name;
|
|
37
|
+
} catch {
|
|
38
|
+
return "No format provided";
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
showValue(a, n) {
|
|
42
|
+
return w(a, n) && !k(a[n]) && !D(a[n]);
|
|
43
|
+
},
|
|
44
|
+
unfoldDisDetails(a) {
|
|
45
|
+
document.getElementsByClassName("tdWrap")[a].classList.toggle("dropShdw"), document.getElementsByClassName("bi-chevron-down")[a].classList.toggle("turnChev"), document.getElementsByClassName("disInfoWrap")[a].classList.toggle("openDisDetails");
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
tableProperties: {
|
|
51
|
+
"dct:format": { type: "singularURI", voc: "file-type", label: "message.metadata.format" },
|
|
52
|
+
"dcat:downloadURL": { type: "multiURL", voc: "", label: "message.metadata.downloadUrl" },
|
|
53
|
+
"dcat:accessService": { type: "special", voc: "", label: "message.dataupload.distributions.accessService.label" },
|
|
54
|
+
"dct:license": { type: "special", voc: "", label: "message.metadata.license" },
|
|
55
|
+
"dct:issued": { type: "date", voc: "", label: "message.metadata.created" },
|
|
56
|
+
"dct:modified": { type: "date", voc: "", label: "message.metadata.updated" },
|
|
57
|
+
"dct:type": { type: "singularURI", voc: "distribution-type", label: "message.metadata.type" },
|
|
58
|
+
"dcat:mediaType": { type: "singularURI", voc: "iana-media-types", label: "message.metadata.mediaType" },
|
|
59
|
+
"dcatap:availability": { type: "singularURI", voc: "planned-availability", label: "message.metadata.availability" },
|
|
60
|
+
"dcat:byteSize": { type: "singularString", voc: "", label: "message.metadata.byteSize" },
|
|
61
|
+
"dcat:packageFormat": { type: "singularURI", voc: "iana-media-types", label: "message.metadata.packageFormat" },
|
|
62
|
+
"dcat:compressFormat": { type: "singularURI", voc: "iana-media-types", label: "message.metadata.compressFormat" },
|
|
63
|
+
"adms:status": { type: "singularURI", voc: "dataset-status", label: "message.metadata.status" },
|
|
64
|
+
"dcat:spatialResolutionInMeters": { type: "singularString", voc: "", label: "message.metadata.spatialResolutionInMeters.label" },
|
|
65
|
+
"dcat:temporalResolution": { type: "special", voc: "", label: "message.dataupload.datasets.temporalResolution.label" },
|
|
66
|
+
"dct:conformsTo": { type: "special", voc: "", label: "message.metadata.conformsTo" },
|
|
67
|
+
"dct:language": { type: "multiURI", voc: "language", label: "message.metadata.languages" },
|
|
68
|
+
"dct:rights": { type: "singularString", voc: "", label: "message.metadata.rights" },
|
|
69
|
+
"foaf:page": { type: "special", voc: "", label: "message.dataupload.datasets.page.label" },
|
|
70
|
+
"odrl:hasPolicy": { type: "multiURL", voc: "", label: "message.metadata.hasPolicy" },
|
|
71
|
+
"spdx:checksum": { type: "special", voc: "spdx-checksum-algorithm", label: "message.metadata.checksum" },
|
|
72
|
+
"dcatde:licenseAttributionByText": { type: "multiLingual", voc: "", label: "message.dataupload.distributions.licenseAttributionByText.label" }
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}, B = { class: "w-100 disDetailsWrap" }, N = { class: "tHeadWrap" }, E = { class: "" }, P = { class: "" }, W = { class: "" }, T = { class: "" }, F = { class: "" }, M = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "tdWrap"
|
|
79
|
+
}, V = { key: 0 }, z = { key: 1 }, H = { key: 2 }, x = { key: 3 }, O = { key: 4 }, j = { key: 5 }, A = { key: 6 }, q = { key: 7 }, G = ["onClick"], J = {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "tdWrap grey"
|
|
82
|
+
}, K = { key: 0 }, Q = { key: 1 }, X = { key: 2 }, Y = { key: 3 }, Z = { key: 4 }, $ = { key: 5 }, ee = { key: 6 }, te = { key: 7 }, ae = ["onClick"], se = { class: "disInfoWrap" }, le = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "list list-unstyled"
|
|
85
|
+
}, oe = { class: "mb-3 disDetails" }, ie = { class: "row bg-light mb-2" }, de = {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "table table-borderless table-responsive pl-3 bg-light mb-0"
|
|
88
|
+
}, ne = { class: "font-weight-bold w-25" }, ce = { class: "w-75" }, re = ["href"], me = { class: "table table-borderless table-responsive pl-3 bg-light" };
|
|
89
|
+
function pe(a, n, d, ue, m, r) {
|
|
90
|
+
const p = R("PropertyEntry");
|
|
91
|
+
return t(), e("div", null, [
|
|
92
|
+
s("div", B, [
|
|
93
|
+
s("div", N, [
|
|
94
|
+
s("p", E, i(a.$t("message.dataupload.datasets.distribution.overview.name")), 1),
|
|
95
|
+
s("p", P, i(a.$t("message.metadata.format")), 1),
|
|
96
|
+
s("p", W, i(a.$t("message.metadata.updated")), 1),
|
|
97
|
+
s("p", T, i(a.$t("message.metadata.issued")), 1),
|
|
98
|
+
s("p", F, i(a.$t("message.dataupload.info.actions")), 1)
|
|
99
|
+
]),
|
|
100
|
+
(t(!0), e(g, null, v(r.distributionList, (o, c) => (t(), e("div", {
|
|
101
|
+
key: "distribution" + c
|
|
102
|
+
}, [
|
|
103
|
+
c % 2 == 0 ? (t(), e("div", M, [
|
|
104
|
+
o["dct:title"] != null && o["dct:title"].filter((l) => l["@language"] === d.dpiLocale).map((l) => l["@value"])[0] ? (t(), e("p", V, i(o["dct:title"].filter((l) => l["@language"] === d.dpiLocale).map((l) => l["@value"])[0]), 1)) : (t(), e("p", z, i(a.$t("message.dataupload.datasets.distribution.overview.notitleinthislanguage")), 1)),
|
|
105
|
+
o["dct:format"] != "" || Object.keys(o["dct:format"]).length != 0 ? (t(), e("p", H, [
|
|
106
|
+
y(p, {
|
|
107
|
+
profile: "distributions",
|
|
108
|
+
data: r.distributionList[c],
|
|
109
|
+
property: "dct:format",
|
|
110
|
+
value: m.tableProperties["dct:format"],
|
|
111
|
+
dpiLocale: d.dpiLocale,
|
|
112
|
+
distId: c,
|
|
113
|
+
inHeader: !0
|
|
114
|
+
}, null, 8, ["data", "value", "dpiLocale", "distId"])
|
|
115
|
+
])) : (t(), e("p", x, i(a.$t("message.dataupload.datasets.distribution.overview.noformatprovided")), 1)),
|
|
116
|
+
new Date(o["dct:modified"]["@value"]).toLocaleDateString(d.dpiLocale) != "Invalid Date" ? (t(), e("p", O, i(new Date(o["dct:modified"]["@value"]).toLocaleDateString(d.dpiLocale)), 1)) : (t(), e("p", j, " - ")),
|
|
117
|
+
new Date(o["dct:issued"]["@value"]).toLocaleDateString(d.dpiLocale) != "Invalid Date" ? (t(), e("p", A, i(new Date(o["dct:issued"]["@value"]).toLocaleDateString(d.dpiLocale)), 1)) : (t(), e("p", q, " - ")),
|
|
118
|
+
s("p", null, [
|
|
119
|
+
s("a", {
|
|
120
|
+
class: "moreDisInfoBtn",
|
|
121
|
+
onClick: (l) => r.unfoldDisDetails(c)
|
|
122
|
+
}, n[0] || (n[0] = [
|
|
123
|
+
h(" More information ", -1),
|
|
124
|
+
s("svg", {
|
|
125
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
126
|
+
width: "16",
|
|
127
|
+
height: "16",
|
|
128
|
+
fill: "currentColor",
|
|
129
|
+
class: "bi bi-chevron-down",
|
|
130
|
+
viewBox: "0 0 16 16"
|
|
131
|
+
}, [
|
|
132
|
+
s("path", {
|
|
133
|
+
"fill-rule": "evenodd",
|
|
134
|
+
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"
|
|
135
|
+
})
|
|
136
|
+
], -1)
|
|
137
|
+
]), 8, G)
|
|
138
|
+
])
|
|
139
|
+
])) : (t(), e("div", J, [
|
|
140
|
+
o["dct:title"] != null && o["dct:title"].filter((l) => l["@language"] === d.dpiLocale).map((l) => l["@value"])[0] ? (t(), e("p", K, i(o["dct:title"].filter((l) => l["@language"] === d.dpiLocale).map((l) => l["@value"])[0]), 1)) : (t(), e("p", Q, i(a.$t("message.dataupload.datasets.distribution.overview.notitleinthislanguage")), 1)),
|
|
141
|
+
o["dct:format"] != null ? (t(), e("p", X, [
|
|
142
|
+
y(p, {
|
|
143
|
+
profile: "distributions",
|
|
144
|
+
data: r.distributionList[c],
|
|
145
|
+
property: "dct:format",
|
|
146
|
+
value: m.tableProperties["dct:format"],
|
|
147
|
+
dpiLocale: d.dpiLocale,
|
|
148
|
+
distId: c,
|
|
149
|
+
inHeader: !0
|
|
150
|
+
}, null, 8, ["data", "value", "dpiLocale", "distId"])
|
|
151
|
+
])) : (t(), e("p", Y, i(a.$t("message.dataupload.datasets.distribution.overview.noformatprovided")), 1)),
|
|
152
|
+
new Date(o["dct:modified"]["@value"]).toLocaleDateString(d.dpiLocale) != "Invalid Date" ? (t(), e("p", Z, i(new Date(o["dct:modified"]["@value"]).toLocaleDateString(d.dpiLocale)), 1)) : (t(), e("p", $, " - ")),
|
|
153
|
+
new Date(o["dct:issued"]["@value"]).toLocaleDateString(d.dpiLocale) != "Invalid Date" ? (t(), e("p", ee, i(new Date(o["dct:issued"]["@value"]).toLocaleDateString(d.dpiLocale)), 1)) : (t(), e("p", te, " - ")),
|
|
154
|
+
s("p", null, [
|
|
155
|
+
s("a", {
|
|
156
|
+
class: "moreDisInfoBtn",
|
|
157
|
+
onClick: (l) => r.unfoldDisDetails(c)
|
|
158
|
+
}, n[1] || (n[1] = [
|
|
159
|
+
h(" More information ", -1),
|
|
160
|
+
s("svg", {
|
|
161
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
162
|
+
width: "16",
|
|
163
|
+
height: "16",
|
|
164
|
+
fill: "currentColor",
|
|
165
|
+
class: "bi bi-chevron-down",
|
|
166
|
+
viewBox: "0 0 16 16"
|
|
167
|
+
}, [
|
|
168
|
+
s("path", {
|
|
169
|
+
"fill-rule": "evenodd",
|
|
170
|
+
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"
|
|
171
|
+
})
|
|
172
|
+
], -1)
|
|
173
|
+
]), 8, ae)
|
|
174
|
+
])
|
|
175
|
+
])),
|
|
176
|
+
s("div", se, [
|
|
177
|
+
d.distributions.length > 0 ? (t(), e("ul", le, [
|
|
178
|
+
(t(), e("li", {
|
|
179
|
+
class: "disWrapper",
|
|
180
|
+
key: `distribution${c + 1}`
|
|
181
|
+
}, [
|
|
182
|
+
s("span", oe, [
|
|
183
|
+
n[2] || (n[2] = s("span", { class: "row" }, null, -1)),
|
|
184
|
+
s("span", ie, [
|
|
185
|
+
r.showValue(o, "dcat:accessURL") ? (t(), e("table", de, [
|
|
186
|
+
(t(!0), e(g, null, v(o["dcat:accessURL"], (l, u) => (t(), e("tr", { key: u }, [
|
|
187
|
+
s("td", ne, i(a.$t("message.metadata.accessUrl")) + ": ", 1),
|
|
188
|
+
s("td", ce, [
|
|
189
|
+
s("a", {
|
|
190
|
+
href: l["@id"]
|
|
191
|
+
}, i(l["@id"]), 9, re)
|
|
192
|
+
])
|
|
193
|
+
]))), 128))
|
|
194
|
+
])) : b("", !0),
|
|
195
|
+
s("table", me, [
|
|
196
|
+
(t(!0), e(g, null, v(m.tableProperties, (l, u, _) => (t(), e("div", { key: _ }, [
|
|
197
|
+
y(p, {
|
|
198
|
+
profile: "distributions",
|
|
199
|
+
data: r.distributionList[c],
|
|
200
|
+
property: u,
|
|
201
|
+
value: l,
|
|
202
|
+
dpiLocale: d.dpiLocale,
|
|
203
|
+
distId: c
|
|
204
|
+
}, null, 8, ["data", "property", "value", "dpiLocale", "distId"])
|
|
205
|
+
]))), 128))
|
|
206
|
+
])
|
|
207
|
+
])
|
|
208
|
+
])
|
|
209
|
+
]))
|
|
210
|
+
])) : b("", !0)
|
|
211
|
+
])
|
|
212
|
+
]))), 128))
|
|
213
|
+
])
|
|
214
|
+
]);
|
|
215
|
+
}
|
|
216
|
+
const we = /* @__PURE__ */ U(C, [["render", pe]]);
|
|
217
|
+
export {
|
|
218
|
+
we as default
|
|
219
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as l, toDisplayString as c } from "vue";
|
|
2
|
+
const i = { class: "w-100" }, r = { class: "font-weight-bold" }, s = { class: "d-flex flex-column" }, g = {
|
|
3
|
+
__name: "MultilingualProp",
|
|
4
|
+
props: {
|
|
5
|
+
property: Object,
|
|
6
|
+
value: Object,
|
|
7
|
+
data: Object,
|
|
8
|
+
dpiLocale: Object
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (a, d) => (n(), o("tr", i, [
|
|
12
|
+
l("td", r, c(a.$t(`${e.value.label}`)) + ":", 1),
|
|
13
|
+
l("td", s, c(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)
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
g as default
|
|
19
|
+
};
|