@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,397 @@
|
|
|
1
|
+
import S from "../../../../widgets/AppLink.vue.js";
|
|
2
|
+
import A from "../../../../filters/dateFilters.js";
|
|
3
|
+
import { has as g, isNil as b, isEmpty as k } from "lodash-es";
|
|
4
|
+
import O from "./URIProp.vue.js";
|
|
5
|
+
import "zod";
|
|
6
|
+
import { resolveComponent as w, createElementBlock as l, openBlock as d, Fragment as y, createCommentVNode as i, createElementVNode as u, toDisplayString as a, createTextVNode as o, createVNode as f, withCtx as m, createBlock as R, renderList as V } from "vue";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import j from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const U = {
|
|
10
|
+
props: {
|
|
11
|
+
property: String,
|
|
12
|
+
value: Object,
|
|
13
|
+
data: Object,
|
|
14
|
+
dpiLocale: String
|
|
15
|
+
},
|
|
16
|
+
components: {
|
|
17
|
+
AppLink: S,
|
|
18
|
+
URIProp: O
|
|
19
|
+
},
|
|
20
|
+
methods: {
|
|
21
|
+
// showDataService() {
|
|
22
|
+
// try {
|
|
23
|
+
// return this.property === 'dcat:accessService' && Object.keys(this.data[Object.keys(this.data)[0]][0]).length > 1 && Object.keys(this.data[Object.keys(this.data)[1]][0]).length > 1;
|
|
24
|
+
// } catch (error) {
|
|
25
|
+
// }
|
|
26
|
+
// },
|
|
27
|
+
manualSwitch(t, c) {
|
|
28
|
+
if (t != null) {
|
|
29
|
+
if (t["dct:publisher"] != null)
|
|
30
|
+
return typeof t == "string" ? !1 : Object.keys(t["dct:publisher"])[1] != "resource" ? "man" : Object.keys(t["dct:publisher"])[0] != "foaf:name" ? "auto" : c === !0 ? "head" : !1;
|
|
31
|
+
if (t["dct:license"] != null)
|
|
32
|
+
return typeof t == "string" ? !1 : Object.keys(t["dct:license"])[1] != "resource" ? "liMan" : Object.keys(t["dct:license"])[0] != "foaf:name" ? "liAuto" : !1;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
showMultilingualValue(t, c) {
|
|
36
|
+
if (t[c] != null) {
|
|
37
|
+
const e = g(t, c) && !b(t[c]) && !k(t[c]), h = t[c].filter((_) => _["@language"] === this.dpiLocale).map((_) => _["@value"]).filter((_) => _ !== void 0), v = t[c].filter((_) => _["@language"] !== this.dpiLocale).map((_) => _["@value"]).filter((_) => _ !== void 0), n = h.length > 0, r = v.length > 0;
|
|
38
|
+
return e && (n || r);
|
|
39
|
+
} else
|
|
40
|
+
return "";
|
|
41
|
+
},
|
|
42
|
+
checkadms(t) {
|
|
43
|
+
if (this.property === t)
|
|
44
|
+
return this.showValue(this.data, "@id") && this.showValue(this.data, "skos:notation");
|
|
45
|
+
},
|
|
46
|
+
showValue(t, c) {
|
|
47
|
+
try {
|
|
48
|
+
return g(t, c) && !b(t[c]) && !k(t[c]) && t[c] !== void 0;
|
|
49
|
+
} catch {
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
filterDateFormatEU(t) {
|
|
53
|
+
return A.formatEU(t);
|
|
54
|
+
},
|
|
55
|
+
convertTemporalResolution(t) {
|
|
56
|
+
const c = {
|
|
57
|
+
Year: "",
|
|
58
|
+
Month: "",
|
|
59
|
+
Day: "",
|
|
60
|
+
Hour: "",
|
|
61
|
+
Minute: "",
|
|
62
|
+
Second: ""
|
|
63
|
+
};
|
|
64
|
+
for (let e = 0; e < Object.keys(c).length; e += 1) {
|
|
65
|
+
const h = Object.keys(c)[e];
|
|
66
|
+
try {
|
|
67
|
+
g(t, h) ? h !== "Year" && t[h].length < 2 ? c[h] = `0${t[h]}` : h === "Year" && t[h].length < 4 ? t[h].length === 3 ? c[h] = `0${t[h]}` : t[h].length === 2 ? c[h] = `00${t[h]}` : t[h].length === 1 && (c[h] = `000${t[h]}`) : c[h] = t[h] : h === "Year" ? c[h] = "0000" : c[h] = "00";
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return `${c.Hour}:${c.Minute}:${c.Second} - ${c.Day}.${c.Month}.${c.Year}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, E = {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "marginBot"
|
|
77
|
+
}, 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 }, C = { key: 1 }, I = { key: 2 }, z = { 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 }, ee = { key: 2 }, ae = { key: 3 }, te = {
|
|
78
|
+
key: 3,
|
|
79
|
+
class: "d-flex"
|
|
80
|
+
}, de = { class: "font-weight-bold" }, le = { key: 0 }, se = { key: 1 }, ie = { key: 2 }, ne = { key: 4 }, ue = { class: "font-weight-bold" }, ce = { class: "d-flex flex-column" }, oe = { key: 0 }, he = { key: 1 }, re = {
|
|
81
|
+
key: 5,
|
|
82
|
+
class: "d-flex"
|
|
83
|
+
}, fe = { class: "font-weight-bold" }, _e = { class: "" }, me = { key: 0 }, ve = { key: 1 }, ge = { key: 2 }, ye = {
|
|
84
|
+
key: 6,
|
|
85
|
+
class: "w-100 d-flex"
|
|
86
|
+
}, be = { class: "font-weight-bold" }, ke = { key: 0 }, we = { key: 1 }, Ve = { key: 2 }, Le = { key: 3 }, Se = {
|
|
87
|
+
key: 7,
|
|
88
|
+
class: "w-100 d-flex"
|
|
89
|
+
}, Ae = { class: "font-weight-bold" }, Oe = { key: 0 }, Re = { key: 8 }, je = { class: "flex-column font-weight-bold" }, Ue = { key: 9 }, Ee = { class: "font-weight-bold" }, Me = { class: "" }, De = { key: 0 }, Ne = { class: "" }, Te = { key: 0 }, He = { key: 1 }, Pe = { class: "" }, Ye = { key: 0 }, Be = {
|
|
90
|
+
key: 2,
|
|
91
|
+
class: "pr-1"
|
|
92
|
+
}, Fe = { class: "" }, Ce = { key: 10 }, Ie = { class: "font-weight-bold" }, ze = { key: 11 }, qe = { class: "font-weight-bold" }, Ge = { key: 0 }, Je = { class: "" }, Ke = { key: 1 }, Qe = { class: "" }, We = { key: 2 }, Xe = { class: "" }, Ze = { key: 12 }, xe = { key: 13 }, $e = { class: "font-weight-bold" }, pe = { key: 0 }, ea = { class: "" }, aa = { key: 1 }, ta = { class: "" }, da = { key: 2 }, la = { class: "" }, sa = { key: 14 };
|
|
93
|
+
function ia(t, c, e, h, v, n) {
|
|
94
|
+
const r = w("app-link"), _ = w("URIProp");
|
|
95
|
+
return d(), l(y, null, [
|
|
96
|
+
e.property === "dct:creator" ? (d(), l("tr", E, [
|
|
97
|
+
u("td", M, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
98
|
+
u("td", null, [
|
|
99
|
+
n.showValue(e.data, "rdf:type") ? (d(), l("div", D, a(t.$t("message.metadata.type")) + ": " + a(e.data["rdf:type"].split(":")[1]), 1)) : i("", !0),
|
|
100
|
+
n.showValue(e.data, "foaf:name") ? (d(), l("div", N, a(t.$t("message.metadata.name")) + ": " + a(e.data["foaf:name"]), 1)) : i("", !0),
|
|
101
|
+
n.showValue(e.data, "foaf:mbox") ? (d(), l("div", T, [
|
|
102
|
+
o(a(t.$t("message.metadata.email")) + ": ", 1),
|
|
103
|
+
f(r, {
|
|
104
|
+
to: `mailto:${e.data["foaf:mbox"]}`
|
|
105
|
+
}, {
|
|
106
|
+
default: m(() => [
|
|
107
|
+
o(a(e.data["foaf:mbox"]), 1)
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["to"])
|
|
111
|
+
])) : i("", !0),
|
|
112
|
+
n.showValue(e.data, "foaf:homepage") ? (d(), l("div", H, [
|
|
113
|
+
o(a(t.$t("message.metadata.homepage")) + ": ", 1),
|
|
114
|
+
f(r, {
|
|
115
|
+
to: e.data["foaf:homepage"]
|
|
116
|
+
}, {
|
|
117
|
+
default: m(() => [
|
|
118
|
+
o(a(e.data["foaf:homepage"]), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["to"])
|
|
122
|
+
])) : i("", !0)
|
|
123
|
+
])
|
|
124
|
+
])) : i("", !0),
|
|
125
|
+
e.property === "dcat:contactPoint" && n.showValue(e.data, "rdf:type") ? (d(), l("tr", P, [
|
|
126
|
+
u("td", Y, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
127
|
+
u("td", B, [
|
|
128
|
+
n.showValue(e.data, "rdf:type") ? (d(), l("div", F, a(t.$t("message.metadata.type")) + ": " + a(e.data["rdf:type"].split(":")[1]), 1)) : i("", !0),
|
|
129
|
+
n.showValue(e.data, "vcard:fn") ? (d(), l("div", C, a(t.$t("message.metadata.name")) + ": " + a(e.data["vcard:fn"]), 1)) : i("", !0),
|
|
130
|
+
n.showValue(e.data, "vcard:hasEmail") ? (d(), l("div", I, [
|
|
131
|
+
o(a(t.$t("message.metadata.email")) + ": ", 1),
|
|
132
|
+
f(r, {
|
|
133
|
+
to: `mailto:${e.data["vcard:hasEmail"]}`
|
|
134
|
+
}, {
|
|
135
|
+
default: m(() => [
|
|
136
|
+
o(a(e.data["vcard:hasEmail"]), 1)
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["to"])
|
|
140
|
+
])) : i("", !0),
|
|
141
|
+
n.showValue(e.data, "vcard:hasOrganizationName") ? (d(), l("div", z, a(e.data["vcard:hasOrganizationName"]), 1)) : i("", !0),
|
|
142
|
+
n.showValue(e.data, "vcard:hasTelephone") ? (d(), l("div", q, a(t.$t("message.metadata.telephone")) + ": " + a(e.data["vcard:hasTelephone"]), 1)) : i("", !0),
|
|
143
|
+
n.showValue(e.data, "vcard:hasURL") ? (d(), l("div", G, [
|
|
144
|
+
o(a(t.$t("message.metadata.url")) + ": ", 1),
|
|
145
|
+
f(r, {
|
|
146
|
+
to: e.data["vcard:hasURL"]
|
|
147
|
+
}, {
|
|
148
|
+
default: m(() => [
|
|
149
|
+
o(a(e.data["vcard:hasURL"]), 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["to"])
|
|
153
|
+
])) : i("", !0),
|
|
154
|
+
n.showValue(e.data, "vcard:hasAddress") ? (d(), l("div", J, [
|
|
155
|
+
o(a(t.$t("message.metadata.address")) + ": ", 1),
|
|
156
|
+
n.showValue(e.data["vcard:hasAddress"], "vcard:street_address") ? (d(), l("span", K, a(e.data["vcard:hasAddress"]["vcard:street_address"]), 1)) : i("", !0),
|
|
157
|
+
c[0] || (c[0] = o(", ", -1)),
|
|
158
|
+
n.showValue(e.data["vcard:hasAddress"], "vcard:postal_code") ? (d(), l("span", Q, a(e.data["vcard:hasAddress"]["vcard:postal_code"]), 1)) : i("", !0),
|
|
159
|
+
n.showValue(e.data["vcard:hasAddress"], "vcard:locality") ? (d(), l("span", W, a(e.data["vcard:hasAddress"]["vcard:locality"]), 1)) : i("", !0),
|
|
160
|
+
c[1] || (c[1] = o(", ", -1)),
|
|
161
|
+
n.showValue(e.data["vcard:hasAddress"], "vcard:country_name") ? (d(), l("span", X, a(e.data["vcard:hasAddress"]["vcard:country_name"]), 1)) : i("", !0)
|
|
162
|
+
])) : i("", !0)
|
|
163
|
+
])
|
|
164
|
+
])) : i("", !0),
|
|
165
|
+
e.property === "dct:contributor" || e.property === "dcatde:maintainer" || e.property === "dcatde:originator" ? (d(), l("tr", Z, [
|
|
166
|
+
u("td", x, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
167
|
+
u("td", null, [
|
|
168
|
+
n.showValue(e.data, "rdf:type") ? (d(), l("div", $, a(t.$t("message.metadata.type")) + ": " + a(e.data["rdf:type"].split(":")[1]), 1)) : i("", !0),
|
|
169
|
+
n.showValue(e.data, "foaf:name") ? (d(), l("div", p, a(t.$t("message.metadata.name")) + ": " + a(e.data["foaf:name"]), 1)) : i("", !0),
|
|
170
|
+
n.showValue(e.data, "foaf:mbox") ? (d(), l("div", ee, [
|
|
171
|
+
o(a(t.$t("message.metadata.email")) + ": ", 1),
|
|
172
|
+
f(r, {
|
|
173
|
+
to: `mailto:${e.data["foaf:mbox"]}`
|
|
174
|
+
}, {
|
|
175
|
+
default: m(() => [
|
|
176
|
+
o(a(e.data["foaf:mbox"]), 1)
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["to"])
|
|
180
|
+
])) : i("", !0),
|
|
181
|
+
n.showValue(e.data, "foaf:homepage") ? (d(), l("div", ae, [
|
|
182
|
+
o(a(t.$t("message.metadata.homepage")) + ": ", 1),
|
|
183
|
+
f(r, {
|
|
184
|
+
to: e.data["foaf:homepage"]
|
|
185
|
+
}, {
|
|
186
|
+
default: m(() => [
|
|
187
|
+
o(a(e.data["foaf:homepage"]), 1)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["to"])
|
|
191
|
+
])) : i("", !0)
|
|
192
|
+
])
|
|
193
|
+
])) : i("", !0),
|
|
194
|
+
e.property === "adms:identifier" && n.checkadms("adms:identifier") ? (d(), l("div", te, [
|
|
195
|
+
u("td", de, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
196
|
+
u("td", null, [
|
|
197
|
+
n.showValue(e.data, "@id") && e.property === "adms:identifier" ? (d(), l("div", le, [
|
|
198
|
+
o(a(t.$t("message.metadata.url")) + ": ", 1),
|
|
199
|
+
f(r, {
|
|
200
|
+
to: e.data["@id"]
|
|
201
|
+
}, {
|
|
202
|
+
default: m(() => [
|
|
203
|
+
o(a(e.data["@id"]), 1)
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["to"])
|
|
207
|
+
])) : i("", !0),
|
|
208
|
+
n.showValue(e.data, "skos:notation") && n.showValue(e.data["skos:notation"][0], "@value") ? (d(), l("div", se, a(t.$t("message.metadata.identifier")) + ": " + a(e.data["skos:notation"][0]["@value"]), 1)) : i("", !0),
|
|
209
|
+
n.showValue(e.data, "skos:notation") && n.showValue(e.data["skos:notation"][0], "@type") ? (d(), l("div", ie, a(t.$t("message.metadata.type")) + ": " + a(e.data["skos:notation"][0]["@type"]), 1)) : i("", !0)
|
|
210
|
+
])
|
|
211
|
+
])) : i("", !0),
|
|
212
|
+
e.property === "dct:temporal" && n.showValue(e.data, "dcat:startDate") ? (d(), l("tr", ne, [
|
|
213
|
+
u("td", ue, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
214
|
+
u("td", ce, [
|
|
215
|
+
n.showValue(e.data, "dcat:startDate") ? (d(), l("div", oe, [
|
|
216
|
+
c[2] || (c[2] = u("b", null, "From:", -1)),
|
|
217
|
+
o(" " + a(new Date(e.data["dcat:startDate"])) + " ", 1)
|
|
218
|
+
])) : i("", !0),
|
|
219
|
+
n.showValue(e.data, "dcat:endDate") ? (d(), l("div", he, [
|
|
220
|
+
c[3] || (c[3] = u("b", null, "to:", -1)),
|
|
221
|
+
o(" " + a(new Date(e.data["dcat:endDate"])), 1)
|
|
222
|
+
])) : i("", !0)
|
|
223
|
+
])
|
|
224
|
+
])) : i("", !0),
|
|
225
|
+
e.property === "spdx:checksum" && Object.keys(e.data).length > 0 ? (d(), l("div", re, [
|
|
226
|
+
u("td", fe, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
227
|
+
u("td", _e, [
|
|
228
|
+
typeof e.data == "string" ? (d(), l("div", me, a(e.data), 1)) : i("", !0),
|
|
229
|
+
typeof e.data == "object" ? (d(), l("div", ve, a(e.data["spdx:checksumValue"]), 1)) : i("", !0),
|
|
230
|
+
typeof e.data == "object" ? (d(), l("div", ge, a(e.data["spdx:algorithm"].name), 1)) : i("", !0)
|
|
231
|
+
])
|
|
232
|
+
])) : i("", !0),
|
|
233
|
+
e.property === "foaf:page" ? (d(), l("div", ye, [
|
|
234
|
+
u("td", be, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
235
|
+
u("td", null, [
|
|
236
|
+
n.showMultilingualValue(e.data, "dct:title") ? (d(), l("div", ke, a(t.$t("message.metadata.title")) + ": " + a(e.data["dct:title"].filter((s) => s["@language"]).length === 0 ? e.data["dct:title"].map((s) => s["@value"])[0] : e.data["dct:title"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0] || t.$t("message.dataupload.datasets.distribution.overview.notitleinthislanguage")), 1)) : i("", !0),
|
|
237
|
+
n.showMultilingualValue(e.data, "dct:description") ? (d(), l("div", we, a(t.$t("message.metadata.description")) + ": " + a(e.data["dct:description"].filter((s) => s["@language"]).length === 0 ? e.data["dct:description"].map((s) => s["@value"])[0] : e.data["dct:description"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0] || t.$t("message.catalogsAndDatasets.noDescriptionAvailable")), 1)) : i("", !0),
|
|
238
|
+
n.showValue(e.data, "dct:format") ? (d(), l("div", Ve, a(t.$t("message.metadata.format")) + ": " + a(e.data["dct:format"].name), 1)) : i("", !0),
|
|
239
|
+
n.showValue(e.data, "@id") ? (d(), l("div", Le, [
|
|
240
|
+
o(a(t.$t("message.metadata.url")) + ": ", 1),
|
|
241
|
+
f(r, {
|
|
242
|
+
to: e.data["@id"]
|
|
243
|
+
}, {
|
|
244
|
+
default: m(() => [
|
|
245
|
+
o(a(e.data["@id"]), 1)
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}, 8, ["to"])
|
|
249
|
+
])) : i("", !0)
|
|
250
|
+
])
|
|
251
|
+
])) : i("", !0),
|
|
252
|
+
e.property === "dct:conformsTo" && n.showValue(e.data, "rdfs:label") ? (d(), l("div", Se, [
|
|
253
|
+
u("td", Ae, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
254
|
+
u("td", null, [
|
|
255
|
+
n.showValue(e.data, "rdfs:label") ? (d(), l("div", Oe, a(e.data["rdfs:label"]), 1)) : i("", !0),
|
|
256
|
+
n.showValue(e.data, "@id") ? (d(), R(r, {
|
|
257
|
+
key: 1,
|
|
258
|
+
to: e.data["@id"]
|
|
259
|
+
}, {
|
|
260
|
+
default: m(() => [
|
|
261
|
+
o(a(e.data["@id"]), 1)
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["to"])) : i("", !0)
|
|
265
|
+
])
|
|
266
|
+
])) : i("", !0),
|
|
267
|
+
e.property === "dcat:temporalResolution" ? (d(), l("tr", Re, [
|
|
268
|
+
u("td", je, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
269
|
+
u("td", null, [
|
|
270
|
+
u("div", null, a(n.convertTemporalResolution(e.data)), 1)
|
|
271
|
+
])
|
|
272
|
+
])) : i("", !0),
|
|
273
|
+
e.data["rdf:type"] === "dcat:DataService" ? (d(), l("tr", Ue, [
|
|
274
|
+
u("td", Ee, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
275
|
+
u("td", Me, [
|
|
276
|
+
n.showValue(e.data, "dct:title") ? (d(), l("div", De, [
|
|
277
|
+
u("span", Ne, a(t.$t("message.dataupload.distributions.accessServiceTitle.label")) + ":", 1),
|
|
278
|
+
o(" " + a(e.data["dct:title"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0]) + " ", 1),
|
|
279
|
+
e.data["dct:title"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0] === void 0 ? (d(), l("span", Te, [
|
|
280
|
+
u("b", null, a(t.$t("message.dataupload.datasets.distribution.overview.notitleinthislanguage")), 1)
|
|
281
|
+
])) : i("", !0)
|
|
282
|
+
])) : i("", !0),
|
|
283
|
+
n.showValue(e.data, "dct:description") ? (d(), l("div", He, [
|
|
284
|
+
u("span", Pe, a(t.$t("message.dataupload.distributions.accessServiceDescription.label")) + ":", 1),
|
|
285
|
+
o(" " + a(e.data["dct:description"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0]) + " ", 1),
|
|
286
|
+
e.data["dct:description"].filter((s) => s["@language"] === e.dpiLocale).map((s) => s["@value"])[0] === void 0 ? (d(), l("span", Ye, [
|
|
287
|
+
u("b", null, a(t.$t("message.dataupload.datasets.distribution.overview.nodescriptioninthislanguage")), 1)
|
|
288
|
+
])) : i("", !0)
|
|
289
|
+
])) : i("", !0),
|
|
290
|
+
n.showValue(e.data, "dcat:endpointURL") ? (d(), l("div", Be, [
|
|
291
|
+
u("span", Fe, a(t.$t("message.dataupload.distributions.accessServiceEndpointURL.label")) + ":", 1),
|
|
292
|
+
f(r, {
|
|
293
|
+
class: "w-100",
|
|
294
|
+
to: e.data["dcat:endpointURL"]
|
|
295
|
+
}, {
|
|
296
|
+
default: m(() => [
|
|
297
|
+
o(a(e.data["dcat:endpointURL"]), 1)
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["to"])
|
|
301
|
+
])) : i("", !0)
|
|
302
|
+
])
|
|
303
|
+
])) : i("", !0),
|
|
304
|
+
e.value.isHeader && n.manualSwitch(e.data, e.value.isHeader) === "man" ? (d(), l("tr", Ce, [
|
|
305
|
+
u("td", Ie, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
306
|
+
u("td", null, a(e.data["dct:publisher"]["foaf:name"]), 1)
|
|
307
|
+
])) : i("", !0),
|
|
308
|
+
n.manualSwitch(e.data, e.value.isHeader) === "man" && !e.value.isHeader ? (d(), l("tr", ze, [
|
|
309
|
+
u("td", qe, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
310
|
+
u("td", null, [
|
|
311
|
+
(d(!0), l(y, null, V(Object.keys(e.data["dct:publisher"]), (s, L) => (d(), l("div", null, [
|
|
312
|
+
e.data["dct:publisher"][s] != null && e.data["dct:publisher"][s] != "" && s === "foaf:name" ? (d(), l("div", Ge, [
|
|
313
|
+
u("span", Je, a(t.$t("message.dataupload.datasets.publisherName.label")) + ":", 1),
|
|
314
|
+
u("span", null, a(e.data["dct:publisher"][s]), 1)
|
|
315
|
+
])) : i("", !0),
|
|
316
|
+
e.data["dct:publisher"][s] != null && e.data["dct:publisher"][s] != "" && s === "foaf:mbox" ? (d(), l("div", Ke, [
|
|
317
|
+
u("span", Qe, a(t.$t("message.dataupload.datasets.publisherEmail.label")) + ":", 1),
|
|
318
|
+
f(r, {
|
|
319
|
+
class: "w-100",
|
|
320
|
+
to: s
|
|
321
|
+
}, {
|
|
322
|
+
default: m(() => [
|
|
323
|
+
o(a(e.data["dct:publisher"][s]), 1)
|
|
324
|
+
]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, 1032, ["to"])
|
|
327
|
+
])) : i("", !0),
|
|
328
|
+
e.data["dct:publisher"][s] != null && e.data["dct:publisher"][s] != "" && s === "foaf:homepage" ? (d(), l("div", We, [
|
|
329
|
+
u("span", Xe, a(t.$t("message.dataupload.datasets.publisherHomepage.label")) + ":", 1),
|
|
330
|
+
f(r, {
|
|
331
|
+
class: "w-100",
|
|
332
|
+
to: s
|
|
333
|
+
}, {
|
|
334
|
+
default: m(() => [
|
|
335
|
+
o(a(e.data["dct:publisher"][s]), 1)
|
|
336
|
+
]),
|
|
337
|
+
_: 2
|
|
338
|
+
}, 1032, ["to"])
|
|
339
|
+
])) : i("", !0)
|
|
340
|
+
]))), 256))
|
|
341
|
+
])
|
|
342
|
+
])) : i("", !0),
|
|
343
|
+
n.manualSwitch(e.data) === "auto" ? (d(), l("tr", Ze, [
|
|
344
|
+
f(_, {
|
|
345
|
+
property: e.property,
|
|
346
|
+
value: e.value,
|
|
347
|
+
data: e.data
|
|
348
|
+
}, null, 8, ["property", "value", "data"])
|
|
349
|
+
])) : i("", !0),
|
|
350
|
+
n.manualSwitch(e.data) === "liMan" ? (d(), l("tr", xe, [
|
|
351
|
+
u("td", $e, a(t.$t(`${e.value.label}`)) + ":", 1),
|
|
352
|
+
u("td", null, [
|
|
353
|
+
(d(!0), l(y, null, V(Object.keys(e.data["dct:license"]), (s, L) => (d(), l("div", null, [
|
|
354
|
+
e.data["dct:license"][s] != null && e.data["dct:license"][s] != "" && s === "dct:title" ? (d(), l("div", pe, [
|
|
355
|
+
u("span", ea, a(t.$t("message.dataupload.distributions.licenceTitle.label")) + ":", 1),
|
|
356
|
+
u("span", null, a(e.data["dct:license"][s]), 1)
|
|
357
|
+
])) : i("", !0),
|
|
358
|
+
e.data["dct:license"][s] != null && e.data["dct:license"][s] != "" && s === "skos:prefLabel" ? (d(), l("div", aa, [
|
|
359
|
+
u("span", ta, a(t.$t("message.dataupload.distributions.licenceDescription.label")) + ":", 1),
|
|
360
|
+
f(r, {
|
|
361
|
+
class: "w-100",
|
|
362
|
+
to: s
|
|
363
|
+
}, {
|
|
364
|
+
default: m(() => [
|
|
365
|
+
o(a(e.data["dct:license"][s]), 1)
|
|
366
|
+
]),
|
|
367
|
+
_: 2
|
|
368
|
+
}, 1032, ["to"])
|
|
369
|
+
])) : i("", !0),
|
|
370
|
+
e.data["dct:license"][s] != null && e.data["dct:license"][s] != "" && s === "skos:exactMatch" ? (d(), l("div", da, [
|
|
371
|
+
u("span", la, a(t.$t("message.dataupload.distributions.licenceURL.label")) + ":", 1),
|
|
372
|
+
f(r, {
|
|
373
|
+
class: "w-100",
|
|
374
|
+
to: s
|
|
375
|
+
}, {
|
|
376
|
+
default: m(() => [
|
|
377
|
+
o(a(e.data["dct:license"][s]), 1)
|
|
378
|
+
]),
|
|
379
|
+
_: 2
|
|
380
|
+
}, 1032, ["to"])
|
|
381
|
+
])) : i("", !0)
|
|
382
|
+
]))), 256))
|
|
383
|
+
])
|
|
384
|
+
])) : i("", !0),
|
|
385
|
+
n.manualSwitch(e.data) === "liAuto" ? (d(), l("tr", sa, [
|
|
386
|
+
f(_, {
|
|
387
|
+
property: e.property,
|
|
388
|
+
value: e.value,
|
|
389
|
+
data: e.data
|
|
390
|
+
}, null, 8, ["property", "value", "data"])
|
|
391
|
+
])) : i("", !0)
|
|
392
|
+
], 64);
|
|
393
|
+
}
|
|
394
|
+
const ma = /* @__PURE__ */ j(U, [["render", ia]]);
|
|
395
|
+
export {
|
|
396
|
+
ma as default
|
|
397
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createElementBlock as e, openBlock as a, Fragment as d, createElementVNode as o, toDisplayString as r, createCommentVNode as l, renderList as c, createTextVNode as s } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import y from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = {
|
|
5
|
+
props: {
|
|
6
|
+
property: String,
|
|
7
|
+
value: Object,
|
|
8
|
+
data: Object,
|
|
9
|
+
dpiLocale: String
|
|
10
|
+
},
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
availableInLocale: !1,
|
|
14
|
+
availableLang: []
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
mounted() {
|
|
18
|
+
this.value.type === "multiLingual" && this.availableLang.push(this.data[this.property][0]["@language"]);
|
|
19
|
+
},
|
|
20
|
+
methods: {
|
|
21
|
+
filterDateFormatEU(i) {
|
|
22
|
+
return i;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, g = { class: "font-weight-bold" }, h = { key: 0 }, m = { key: 1 }, v = { key: 0 }, f = { key: 1 }, k = { key: 0 }, b = {
|
|
26
|
+
key: 2,
|
|
27
|
+
class: "flex-column"
|
|
28
|
+
}, p = {
|
|
29
|
+
key: 3,
|
|
30
|
+
class: "flex-column"
|
|
31
|
+
};
|
|
32
|
+
function L(i, S, t, x, j, E) {
|
|
33
|
+
return a(), e(d, null, [
|
|
34
|
+
o("td", g, r(i.$t(`${t.value.label}`)) + ":", 1),
|
|
35
|
+
o("div", null, [
|
|
36
|
+
t.value.type === "multiString" ? (a(), e("td", h, [
|
|
37
|
+
(a(!0), e(d, null, c(t.data[t.property], (n, u) => (a(), e("div", { key: u }, r(Object.values(n)[0]), 1))), 128))
|
|
38
|
+
])) : l("", !0),
|
|
39
|
+
t.value.type === "singularString" ? (a(), e("td", m, [
|
|
40
|
+
t.data[t.property]["@type"] != "" && t.property === "dct:rights" ? (a(), e("span", v, r(t.data[t.property]["rdfs:label"]), 1)) : l("", !0),
|
|
41
|
+
t.property != "dct:rights" ? (a(), e("span", f, [
|
|
42
|
+
s(r(t.data[t.property]) + " ", 1),
|
|
43
|
+
t.property === "dcat:spatialResolutionInMeters" ? (a(), e("span", k, "Meters")) : l("", !0)
|
|
44
|
+
])) : l("", !0)
|
|
45
|
+
])) : l("", !0),
|
|
46
|
+
t.value.type === "date" ? (a(), e("td", b, r(t.data[t.property]["@value"]), 1)) : l("", !0),
|
|
47
|
+
t.value.type === "multiLingual" ? (a(), e("td", p, [
|
|
48
|
+
(a(!0), e(d, null, c(t.data[t.property].filter((n) => n["@language"] === this.dpiLocale), (n, u) => (a(), e("div", { key: u }, r(n["@value"]), 1))), 128))
|
|
49
|
+
])) : l("", !0)
|
|
50
|
+
])
|
|
51
|
+
], 64);
|
|
52
|
+
}
|
|
53
|
+
const B = /* @__PURE__ */ y(_, [["render", L]]);
|
|
54
|
+
export {
|
|
55
|
+
B as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import "vuex";
|
|
2
|
+
import { getTranslationFor as y } from "../../../../utils/helpers.js";
|
|
3
|
+
import f from "../../../utils/general-helper.js";
|
|
4
|
+
import { useDpiContext as h } from "../../../composables/useDpiContext.js";
|
|
5
|
+
import { useAutocomplete as p } from "../../../composables/aucotomplete.js";
|
|
6
|
+
import { createElementBlock as r, openBlock as i, Fragment as m, createCommentVNode as c, toDisplayString as o, normalizeClass as g, renderList as v } from "vue";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import _ from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const b = {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
nameOfProperty: "Unchanged Value",
|
|
13
|
+
namesOfMulti: []
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
property: String,
|
|
18
|
+
value: Object,
|
|
19
|
+
data: Object,
|
|
20
|
+
inHeader: String
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
trimString(t, l) {
|
|
24
|
+
return t.length > l ? t.slice(0, l) + "..." : t;
|
|
25
|
+
},
|
|
26
|
+
getTranslationFor: y,
|
|
27
|
+
async requestURILabel(t, l) {
|
|
28
|
+
const e = this.$env;
|
|
29
|
+
if (l != null) {
|
|
30
|
+
let u = this.voc === "iana-media-types" || this.voc === "spdx-checksum-algorithm", a;
|
|
31
|
+
return await this.requestResourceName({ voc: t, uri: l, envs: e }).then(
|
|
32
|
+
(n) => {
|
|
33
|
+
this.property === "dcatde:politicalGeocodingURI" ? n != null && (a = u ? n.data.result.results.filter((s) => s.resource === l).map((s) => s.alt_label)[0].en : y(n.data.result.alt_label, this.$i18n.locale, [])) : n != null && (a = u ? n.data.result.results.filter((s) => s.resource === l).map((s) => s.pref_label)[0].en : y(n.data.result.pref_label, this.$i18n.locale, []));
|
|
34
|
+
}
|
|
35
|
+
), a;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
async created() {
|
|
40
|
+
try {
|
|
41
|
+
if (this.value.type === "singularURI")
|
|
42
|
+
typeof this.data[this.property] != "string" && (this.nameOfProperty = await this.getURILabel(this.data[this.property]));
|
|
43
|
+
else if (this.value.type === "multiURI")
|
|
44
|
+
for (let t = 0; t < this.data[this.property].length; t++)
|
|
45
|
+
this.data[this.property][t].name = await this.getURILabel(this.data[this.property][t]);
|
|
46
|
+
else this.value.type === "special" && (this.nameOfProperty = await this.getURILabel(this.data[this.property]));
|
|
47
|
+
} catch (t) {
|
|
48
|
+
console.warn(t);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup() {
|
|
52
|
+
const { requestResourceName: t } = p(), l = h();
|
|
53
|
+
async function e(u) {
|
|
54
|
+
if (f.isUrl(u.name)) {
|
|
55
|
+
const a = l.value.specification.vocabPrefixes, n = Object.keys(a).find((d) => u.name.includes(d));
|
|
56
|
+
return await this.requestURILabel(n, u.name);
|
|
57
|
+
} else return u.name;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
requestResourceName: t,
|
|
61
|
+
getURILabel: e
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, U = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "font-weight-bold"
|
|
67
|
+
}, R = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: ""
|
|
70
|
+
}, k = {
|
|
71
|
+
key: 2,
|
|
72
|
+
class: ""
|
|
73
|
+
}, I = {
|
|
74
|
+
key: 4,
|
|
75
|
+
class: "flex-wrap d-flex multiURI"
|
|
76
|
+
}, O = {
|
|
77
|
+
key: 5,
|
|
78
|
+
class: "font-weight-bold"
|
|
79
|
+
}, P = {
|
|
80
|
+
key: 6,
|
|
81
|
+
class: ""
|
|
82
|
+
}, w = {
|
|
83
|
+
key: 7,
|
|
84
|
+
class: ""
|
|
85
|
+
};
|
|
86
|
+
function x(t, l, e, u, a, n) {
|
|
87
|
+
return i(), r(m, null, [
|
|
88
|
+
e.value.type !== "special" && e.inHeader != !0 ? (i(), r("td", U, o(t.$t(`${e.value.label}`)) + ": ", 1)) : c("", !0),
|
|
89
|
+
e.value.type === "singularURI" && typeof e.data[e.property] == "string" ? (i(), r("td", R, o(e.data[e.property]), 1)) : c("", !0),
|
|
90
|
+
Object.keys(e.data[e.property]).length === 1 && e.value.type === "singularURI" ? (i(), r("td", k, o(e.data[e.property][0]["@id"]), 1)) : c("", !0),
|
|
91
|
+
e.value.type === "singularURI" && typeof e.data[e.property] != "string" && Object.keys(e.data[e.property]).length > 1 ? (i(), r("td", {
|
|
92
|
+
key: 3,
|
|
93
|
+
class: g({ "p-0": e.inHeader })
|
|
94
|
+
}, o(a.nameOfProperty), 3)) : c("", !0),
|
|
95
|
+
e.value.type === "multiURI" ? (i(), r("td", I, [
|
|
96
|
+
(i(!0), r(m, null, v(e.data[e.property], (d, s) => (i(), r("div", {
|
|
97
|
+
key: s,
|
|
98
|
+
class: "border shadow-sm p-2 mb-1 mr-1"
|
|
99
|
+
}, o(d.name), 1))), 128))
|
|
100
|
+
])) : c("", !0),
|
|
101
|
+
e.value.type === "special" && a.nameOfProperty != "Unchanged Value" ? (i(), r("td", O, o(t.$t(`${e.value.label}`)) + ":", 1)) : c("", !0),
|
|
102
|
+
e.value.type === "special" && a.nameOfProperty != "Unchanged Value" && e.value.isHeader != !0 ? (i(), r("td", P, o(a.nameOfProperty), 1)) : c("", !0),
|
|
103
|
+
e.value.type === "special" && a.nameOfProperty != "Unchanged Value" && e.value.isHeader === !0 ? (i(), r("td", w, o(n.trimString(a.nameOfProperty, 35)), 1)) : c("", !0)
|
|
104
|
+
], 64);
|
|
105
|
+
}
|
|
106
|
+
const B = /* @__PURE__ */ _(b, [["render", x]]);
|
|
107
|
+
export {
|
|
108
|
+
B as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import "zod";
|
|
2
|
+
import h from "../../../../widgets/AppLink.vue.js";
|
|
3
|
+
import { has as k, isNil as x, isEmpty as g } from "lodash-es";
|
|
4
|
+
import { resolveComponent as v, createElementBlock as n, openBlock as o, Fragment as p, createElementVNode as y, createCommentVNode as r, toDisplayString as s, createVNode as E, withCtx as c, createTextVNode as l, withDirectives as V, vModelText as w, renderList as O, createBlock as f } from "vue";
|
|
5
|
+
import P from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const U = {
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
isEditMode: !1,
|
|
10
|
+
contentOfProp: ""
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
property: String,
|
|
15
|
+
value: Object,
|
|
16
|
+
data: Object
|
|
17
|
+
},
|
|
18
|
+
components: {
|
|
19
|
+
AppLink: h
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
showValue(i, d) {
|
|
23
|
+
return k(i, d) && !x(i[d]) && !g(i[d]);
|
|
24
|
+
},
|
|
25
|
+
async editProp(i) {
|
|
26
|
+
this.isEditMode ? await this.$formkit.get(i).context.node.input([{ "@id": this.contentOfProp }]) : this.contentOfProp = this.$formkit.get(i).context.value[0]["@id"], this.isEditMode = !this.isEditMode;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, B = { class: "font-weight-bold" }, M = { key: 0 }, L = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "d-flex align-items-center"
|
|
32
|
+
}, N = { key: 0 }, b = { key: 1 };
|
|
33
|
+
function C(i, d, t, R, u, m) {
|
|
34
|
+
const a = v("app-link");
|
|
35
|
+
return o(), n(p, null, [
|
|
36
|
+
y("td", B, s(i.$t(`${t.value.label}`)) + ":", 1),
|
|
37
|
+
t.value.type === "singularURL" ? (o(), n("td", M, [
|
|
38
|
+
E(a, {
|
|
39
|
+
to: t.data[t.property]
|
|
40
|
+
}, {
|
|
41
|
+
default: c(() => [
|
|
42
|
+
l(s(t.data[t.property]["@type"]), 1)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["to"])
|
|
46
|
+
])) : r("", !0),
|
|
47
|
+
t.value.type === "multiURL" && t.data[t.property][0]["@id"] != "" ? (o(), n("td", L, [
|
|
48
|
+
u.isEditMode ? (o(), n("div", N, [
|
|
49
|
+
V(y("input", {
|
|
50
|
+
type: "text",
|
|
51
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => u.contentOfProp = e)
|
|
52
|
+
}, null, 512), [
|
|
53
|
+
[w, u.contentOfProp]
|
|
54
|
+
])
|
|
55
|
+
])) : (o(), n("div", b, [
|
|
56
|
+
(o(!0), n(p, null, O(t.data[t.property], (e, _) => (o(), n("div", { key: _ }, [
|
|
57
|
+
m.showValue(e, "@id") ? (o(), f(a, {
|
|
58
|
+
key: 0,
|
|
59
|
+
to: e["@id"]
|
|
60
|
+
}, {
|
|
61
|
+
default: c(() => [
|
|
62
|
+
l(s(e["@id"]), 1)
|
|
63
|
+
]),
|
|
64
|
+
_: 2
|
|
65
|
+
}, 1032, ["to"])) : r("", !0),
|
|
66
|
+
m.showValue(e, "dext:isUsedBy") ? (o(), f(a, {
|
|
67
|
+
key: 1,
|
|
68
|
+
to: e["dext:isUsedBy"]
|
|
69
|
+
}, {
|
|
70
|
+
default: c(() => [
|
|
71
|
+
l(s(e["dext:isUsedBy"]), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 2
|
|
74
|
+
}, 1032, ["to"])) : r("", !0),
|
|
75
|
+
typeof e == "string" ? (o(), f(a, {
|
|
76
|
+
key: 2,
|
|
77
|
+
to: e
|
|
78
|
+
}, {
|
|
79
|
+
default: c(() => [
|
|
80
|
+
l(s(e), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, 1032, ["to"])) : r("", !0)
|
|
84
|
+
]))), 128))
|
|
85
|
+
]))
|
|
86
|
+
])) : r("", !0)
|
|
87
|
+
], 64);
|
|
88
|
+
}
|
|
89
|
+
const F = /* @__PURE__ */ P(U, [["render", C]]);
|
|
90
|
+
export {
|
|
91
|
+
F as default
|
|
92
|
+
};
|