@piveau/piveau-hub-ui-modules 4.4.29 → 4.5.0
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/configurations/configureComponents.mjs +20 -18
- package/dist/configurations/configureComponents.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +59 -20
- package/dist/data-provider-interface/DataProviderInterface.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs +36 -25
- package/dist/data-provider-interface/DataProviderInterface.vue2.mjs.map +1 -1
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +92 -89
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +104 -107
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs +190 -148
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +19 -8
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/composables/aucotomplete.d.ts +27 -0
- package/dist/data-provider-interface/composables/aucotomplete.mjs +52 -0
- package/dist/data-provider-interface/composables/aucotomplete.mjs.map +1 -0
- package/dist/data-provider-interface/composables/index.d.ts +4 -0
- package/dist/data-provider-interface/composables/useDpiContext.mjs +7 -9
- package/dist/data-provider-interface/composables/useDpiContext.mjs.map +1 -1
- package/dist/data-provider-interface/composables/useRequestUriName.d.ts +18 -0
- package/dist/data-provider-interface/composables/useRequestUriName.mjs +59 -0
- package/dist/data-provider-interface/composables/useRequestUriName.mjs.map +1 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs +1 -1
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.mjs.map +1 -1
- package/dist/data-provider-interface/index.mjs +10 -6
- package/dist/data-provider-interface/index.mjs.map +1 -1
- package/dist/data-provider-interface/store/dpiStore.d.ts +0 -26
- package/dist/data-provider-interface/store/dpiStore.mjs +12 -14
- package/dist/data-provider-interface/store/dpiStore.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +49 -20
- package/dist/data-provider-interface/views/InputPage.vue.mjs +125 -107
- package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.d.ts +32 -14
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs +27 -31
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.d.ts +8 -3
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.d.ts +8 -3
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs +57 -47
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.d.ts +16 -6
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +48 -20
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +50 -36
- package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs +4 -4
- package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.d.ts +3 -3
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs +3 -3
- package/dist/datasetDetails/features/DatasetDetailsFeatures.vue.mjs.map +1 -1
- package/dist/datasetDetails/features/DatasetDetailsIsUsedBy.vue.mjs +18 -18
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs +58 -50
- package/dist/datasetDetails/properties/DatasetDetailsProperties.vue.mjs.map +1 -1
- package/dist/external/@vueuse/core/index +3 -2
- package/dist/external/@vueuse/shared/index +86 -72
- package/dist/external/@vueuse/shared/index.map +1 -1
- package/dist/form/Repeatable.vue.d.ts +11 -10
- package/dist/form/Repeatable.vue.mjs +5 -62
- package/dist/form/Repeatable.vue.mjs.map +1 -1
- package/dist/form/Repeatable.vue2.mjs +72 -2
- package/dist/form/Repeatable.vue2.mjs.map +1 -1
- package/dist/form/Repeatable.vue3.mjs +5 -0
- package/dist/form/Repeatable.vue3.mjs.map +1 -0
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
- package/dist/data-provider-interface/store/modules/autocompleteStore.d.ts +0 -27
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs +0 -54
- package/dist/data-provider-interface/store/modules/autocompleteStore.mjs.map +0 -1
|
@@ -157,15 +157,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
157
157
|
value: ObjectConstructor;
|
|
158
158
|
data: ObjectConstructor;
|
|
159
159
|
inHeader: StringConstructor;
|
|
160
|
-
}>, {
|
|
160
|
+
}>, {
|
|
161
|
+
requestResourceName: (options: {
|
|
162
|
+
voc: string;
|
|
163
|
+
uri: string;
|
|
164
|
+
envs: any;
|
|
165
|
+
}) => Promise<any>;
|
|
166
|
+
getURILabel: (value: any) => Promise<any>;
|
|
167
|
+
}, {
|
|
161
168
|
nameOfProperty: string;
|
|
162
169
|
namesOfMulti: never[];
|
|
163
170
|
}, {}, {
|
|
164
171
|
trimString(str: any, maxLength: any): any;
|
|
165
172
|
getTranslationFor: typeof import('../../../utils/helpers').getTranslationFor;
|
|
166
173
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
167
|
-
getURILabel(value: any): Promise<any>;
|
|
168
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
169
174
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
170
175
|
property: StringConstructor;
|
|
171
176
|
value: ObjectConstructor;
|
|
@@ -229,15 +234,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
229
234
|
value: ObjectConstructor;
|
|
230
235
|
data: ObjectConstructor;
|
|
231
236
|
inHeader: StringConstructor;
|
|
232
|
-
}>, {
|
|
237
|
+
}>, {
|
|
238
|
+
requestResourceName: (options: {
|
|
239
|
+
voc: string;
|
|
240
|
+
uri: string;
|
|
241
|
+
envs: any;
|
|
242
|
+
}) => Promise<any>;
|
|
243
|
+
getURILabel: (value: any) => Promise<any>;
|
|
244
|
+
}, {
|
|
233
245
|
nameOfProperty: string;
|
|
234
246
|
namesOfMulti: never[];
|
|
235
247
|
}, {}, {
|
|
236
248
|
trimString(str: any, maxLength: any): any;
|
|
237
249
|
getTranslationFor: typeof import('../../../utils/helpers').getTranslationFor;
|
|
238
250
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
239
|
-
getURILabel(value: any): Promise<any>;
|
|
240
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
241
251
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
242
252
|
property: StringConstructor;
|
|
243
253
|
value: ObjectConstructor;
|
|
@@ -22,15 +22,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
22
|
value: ObjectConstructor;
|
|
23
23
|
data: ObjectConstructor;
|
|
24
24
|
inHeader: StringConstructor;
|
|
25
|
-
}>, {
|
|
25
|
+
}>, {
|
|
26
|
+
requestResourceName: (options: {
|
|
27
|
+
voc: string;
|
|
28
|
+
uri: string;
|
|
29
|
+
envs: any;
|
|
30
|
+
}) => Promise<any>;
|
|
31
|
+
getURILabel: (value: any) => Promise<any>;
|
|
32
|
+
}, {
|
|
26
33
|
nameOfProperty: string;
|
|
27
34
|
namesOfMulti: never[];
|
|
28
35
|
}, {}, {
|
|
29
36
|
trimString(str: any, maxLength: any): any;
|
|
30
37
|
getTranslationFor: typeof import('../../../..').getTranslationFor;
|
|
31
38
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
32
|
-
getURILabel(value: any): Promise<any>;
|
|
33
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
34
39
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
40
|
property: StringConstructor;
|
|
36
41
|
value: ObjectConstructor;
|
|
@@ -4,15 +4,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
value: ObjectConstructor;
|
|
5
5
|
data: ObjectConstructor;
|
|
6
6
|
inHeader: StringConstructor;
|
|
7
|
-
}>, {
|
|
7
|
+
}>, {
|
|
8
|
+
requestResourceName: (options: {
|
|
9
|
+
voc: string;
|
|
10
|
+
uri: string;
|
|
11
|
+
envs: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
getURILabel: (value: any) => Promise<any>;
|
|
14
|
+
}, {
|
|
8
15
|
nameOfProperty: string;
|
|
9
16
|
namesOfMulti: never[];
|
|
10
17
|
}, {}, {
|
|
11
18
|
trimString(str: any, maxLength: any): any;
|
|
12
19
|
getTranslationFor: typeof getTranslationFor;
|
|
13
20
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
14
|
-
getURILabel(value: any): Promise<any>;
|
|
15
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
16
21
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
22
|
property: StringConstructor;
|
|
18
23
|
value: ObjectConstructor;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { getTranslationFor as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import "vuex";
|
|
2
|
+
import { getTranslationFor as f } from "../../../../utils/helpers.mjs";
|
|
3
|
+
import h from "../../../utils/general-helper.mjs";
|
|
4
|
+
import "../../../config/dcatapdeODB/page-content-config.mjs";
|
|
5
|
+
import "../../../config/dcatapdeODB/input-definition.mjs";
|
|
6
|
+
import "../../../config/dcatapdeODB/prefixes.mjs";
|
|
7
|
+
import "../../../config/dcatapdeODB/format-types.mjs";
|
|
8
|
+
import "../../../config/dcatapdeODB/vocab-prefixes.mjs";
|
|
9
|
+
import { useDpiContext as p } from "../../../composables/useDpiContext.mjs";
|
|
10
|
+
import { useAutocomplete as g } from "../../../composables/aucotomplete.mjs";
|
|
11
|
+
import { openBlock as i, createElementBlock as l, Fragment as c, toDisplayString as u, createCommentVNode as d, createTextVNode as m, normalizeClass as v, renderList as b } from "vue";
|
|
6
12
|
import "./URIProp.vue2.mjs";
|
|
7
13
|
import U from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
14
|
const R = {
|
|
@@ -19,30 +25,20 @@ const R = {
|
|
|
19
25
|
inHeader: String
|
|
20
26
|
},
|
|
21
27
|
methods: {
|
|
22
|
-
...h("dpiStore", [
|
|
23
|
-
"requestResourceName"
|
|
24
|
-
]),
|
|
25
28
|
trimString(a, t) {
|
|
26
29
|
return a.length > t ? a.slice(0, t) + "..." : a;
|
|
27
30
|
},
|
|
28
|
-
getTranslationFor:
|
|
31
|
+
getTranslationFor: f,
|
|
29
32
|
async requestURILabel(a, t) {
|
|
30
33
|
const e = this.$env;
|
|
31
34
|
if (t != null) {
|
|
32
|
-
let
|
|
35
|
+
let o = this.voc === "iana-media-types" || this.voc === "spdx-checksum-algorithm", r;
|
|
33
36
|
return await this.requestResourceName({ voc: a, uri: t, envs: e }).then(
|
|
34
|
-
(
|
|
35
|
-
this.property === "dcatde:politicalGeocodingURI" ?
|
|
37
|
+
(n) => {
|
|
38
|
+
this.property === "dcatde:politicalGeocodingURI" ? n != null && (r = o ? n.data.result.results.filter((s) => s.resource === t).map((s) => s.alt_label)[0].en : f(n.data.result.alt_label, this.$i18n.locale, [])) : n != null && (r = o ? n.data.result.results.filter((s) => s.resource === t).map((s) => s.pref_label)[0].en : f(n.data.result.pref_label, this.$i18n.locale, []));
|
|
36
39
|
}
|
|
37
|
-
),
|
|
40
|
+
), r;
|
|
38
41
|
}
|
|
39
|
-
},
|
|
40
|
-
async getURILabel(a) {
|
|
41
|
-
if (g.isUrl(a.name)) {
|
|
42
|
-
const t = p[this.$env.content.dataProviderInterface.specification].vocabPrefixes, e = Object.keys(t).find((y) => a.name.includes(y));
|
|
43
|
-
return await this.requestURILabel(e, a.name);
|
|
44
|
-
} else
|
|
45
|
-
return a.name;
|
|
46
42
|
}
|
|
47
43
|
},
|
|
48
44
|
async created() {
|
|
@@ -57,11 +53,25 @@ const R = {
|
|
|
57
53
|
} catch (a) {
|
|
58
54
|
console.warn(a);
|
|
59
55
|
}
|
|
56
|
+
},
|
|
57
|
+
setup() {
|
|
58
|
+
const { requestResourceName: a } = g(), t = p();
|
|
59
|
+
async function e(o) {
|
|
60
|
+
if (h.isUrl(o.name)) {
|
|
61
|
+
const r = t.value.specification.vocabPrefixes, n = Object.keys(r).find((y) => o.name.includes(y));
|
|
62
|
+
return await this.requestURILabel(n, o.name);
|
|
63
|
+
} else
|
|
64
|
+
return o.name;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
requestResourceName: a,
|
|
68
|
+
getURILabel: e
|
|
69
|
+
};
|
|
60
70
|
}
|
|
61
|
-
},
|
|
71
|
+
}, k = {
|
|
62
72
|
key: 0,
|
|
63
73
|
class: "font-weight-bold"
|
|
64
|
-
},
|
|
74
|
+
}, I = {
|
|
65
75
|
key: 1,
|
|
66
76
|
class: ""
|
|
67
77
|
}, O = {
|
|
@@ -80,36 +90,36 @@ const R = {
|
|
|
80
90
|
key: 7,
|
|
81
91
|
class: ""
|
|
82
92
|
};
|
|
83
|
-
function H(a, t, e,
|
|
84
|
-
return
|
|
85
|
-
e.value.type !== "special" && e.inHeader != !0 ? (
|
|
86
|
-
`, 1)) :
|
|
87
|
-
t[0] || (t[0] =
|
|
88
|
-
e.value.type === "singularURI" && typeof e.data[e.property] == "string" ? (
|
|
89
|
-
t[1] || (t[1] =
|
|
90
|
-
Object.keys(e.data[e.property]).length === 1 && e.value.type === "singularURI" ? (
|
|
91
|
-
t[2] || (t[2] =
|
|
92
|
-
e.value.type === "singularURI" && typeof e.data[e.property] != "string" && Object.keys(e.data[e.property]).length > 1 ? (
|
|
93
|
+
function H(a, t, e, o, r, n) {
|
|
94
|
+
return i(), l(c, null, [
|
|
95
|
+
e.value.type !== "special" && e.inHeader != !0 ? (i(), l("td", k, u(a.$t(`${e.value.label}`)) + `:
|
|
96
|
+
`, 1)) : d("", !0),
|
|
97
|
+
t[0] || (t[0] = m()),
|
|
98
|
+
e.value.type === "singularURI" && typeof e.data[e.property] == "string" ? (i(), l("td", I, u(e.data[e.property]), 1)) : d("", !0),
|
|
99
|
+
t[1] || (t[1] = m()),
|
|
100
|
+
Object.keys(e.data[e.property]).length === 1 && e.value.type === "singularURI" ? (i(), l("td", O, u(e.data[e.property][0]["@id"]), 1)) : d("", !0),
|
|
101
|
+
t[2] || (t[2] = m()),
|
|
102
|
+
e.value.type === "singularURI" && typeof e.data[e.property] != "string" && Object.keys(e.data[e.property]).length > 1 ? (i(), l("td", {
|
|
93
103
|
key: 3,
|
|
94
104
|
class: v({ "p-0": e.inHeader })
|
|
95
|
-
}, u(
|
|
96
|
-
t[3] || (t[3] =
|
|
97
|
-
e.value.type === "multiURI" ? (
|
|
98
|
-
(
|
|
99
|
-
key:
|
|
105
|
+
}, u(r.nameOfProperty), 3)) : d("", !0),
|
|
106
|
+
t[3] || (t[3] = m()),
|
|
107
|
+
e.value.type === "multiURI" ? (i(), l("td", P, [
|
|
108
|
+
(i(!0), l(c, null, b(e.data[e.property], (y, s) => (i(), l("div", {
|
|
109
|
+
key: s,
|
|
100
110
|
class: "border shadow-sm p-2 mb-1 mr-1"
|
|
101
|
-
}, u(
|
|
102
|
-
])) :
|
|
103
|
-
t[4] || (t[4] =
|
|
104
|
-
e.value.type === "special" &&
|
|
105
|
-
t[5] || (t[5] =
|
|
106
|
-
e.value.type === "special" &&
|
|
107
|
-
t[6] || (t[6] =
|
|
108
|
-
e.value.type === "special" &&
|
|
111
|
+
}, u(y.name), 1))), 128))
|
|
112
|
+
])) : d("", !0),
|
|
113
|
+
t[4] || (t[4] = m()),
|
|
114
|
+
e.value.type === "special" && r.nameOfProperty != "Unchanged Value" ? (i(), l("td", w, u(a.$t(`${e.value.label}`)) + ":", 1)) : d("", !0),
|
|
115
|
+
t[5] || (t[5] = m()),
|
|
116
|
+
e.value.type === "special" && r.nameOfProperty != "Unchanged Value" && e.value.isHeader != !0 ? (i(), l("td", _, u(r.nameOfProperty), 1)) : d("", !0),
|
|
117
|
+
t[6] || (t[6] = m()),
|
|
118
|
+
e.value.type === "special" && r.nameOfProperty != "Unchanged Value" && e.value.isHeader === !0 ? (i(), l("td", x, u(n.trimString(r.nameOfProperty, 35)), 1)) : d("", !0)
|
|
109
119
|
], 64);
|
|
110
120
|
}
|
|
111
|
-
const
|
|
121
|
+
const A = /* @__PURE__ */ U(R, [["render", H]]);
|
|
112
122
|
export {
|
|
113
|
-
|
|
123
|
+
A as default
|
|
114
124
|
};
|
|
115
125
|
//# sourceMappingURL=URIProp.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"URIProp.vue.mjs","sources":["../../../../../lib/data-provider-interface/views/OverviewPage/Properties/URIProp.vue"],"sourcesContent":["<template>\n <!-- <details>{{ value.isHeader === true }}</details> -->\n <td class=\" font-weight-bold\" v-if=\"value.type !== 'special' && inHeader != true\">{{ $t(`${value.label}`) }}:\n </td>\n\n <!-- SINGULAR URIs -->\n <td v-if=\"value.type === 'singularURI' && typeof data[property] === 'string'\" class=\"\"> {{ data[property] }}</td>\n <td v-if=\"Object.keys(data[property]).length === 1 && value.type === 'singularURI'\" class=\"\"> {{\n data[property][0]['@id'] }} </td>\n <td v-if=\"value.type === 'singularURI' && typeof data[property] != 'string' && Object.keys(data[property]).length > 1\"\n :class=\"{ 'p-0': inHeader }\"> {{ nameOfProperty }}</td>\n <!-- MULTIPLE URIs -->\n <td v-if=\"value.type === 'multiURI'\" class=\"flex-wrap d-flex multiURI\">\n <div v-for=\"(el, index) in data[property]\" :key=\"index\" class=\"border shadow-sm p-2 mb-1 mr-1\">\n {{ el.name }}\n </div>\n </td>\n <!-- SPECIAL CASES -->\n\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value'\" class=\"font-weight-bold\">{{\n $t(`${value.label}`) }}:</td>\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.isHeader != true\" class=\"\"> {{\n nameOfProperty }}</td>\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.isHeader === true\" class=\"\"> {{\n trimString(nameOfProperty, 35) }} </td>\n <!-- License Edge case -->\n <!-- <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.label === 'message.metadata.license'\" class=\"\"> {{ nameOfProperty }}</td> -->\n <!-- <details>{{ data[property] }}</details> -->\n</template>\n\n<script>\nimport { mapActions } from 'vuex';\nimport { getTranslationFor } from \"../../../../utils/helpers\";\nimport generalHelper from '../../../utils/general-helper';\nimport dpiConfig from '../../../config/dpi-spec-config';\n\nexport default {\n data() {\n return {\n nameOfProperty: \"Unchanged Value\",\n namesOfMulti: []\n }\n },\n props: {\n property: String,\n value: Object,\n data: Object,\n inHeader: String\n },\n methods: {\n
|
|
1
|
+
{"version":3,"file":"URIProp.vue.mjs","sources":["../../../../../lib/data-provider-interface/views/OverviewPage/Properties/URIProp.vue"],"sourcesContent":["<template>\n <!-- <details>{{ value.isHeader === true }}</details> -->\n <td class=\" font-weight-bold\" v-if=\"value.type !== 'special' && inHeader != true\">{{ $t(`${value.label}`) }}:\n </td>\n\n <!-- SINGULAR URIs -->\n <td v-if=\"value.type === 'singularURI' && typeof data[property] === 'string'\" class=\"\"> {{ data[property] }}</td>\n <td v-if=\"Object.keys(data[property]).length === 1 && value.type === 'singularURI'\" class=\"\"> {{\n data[property][0]['@id'] }} </td>\n <td v-if=\"value.type === 'singularURI' && typeof data[property] != 'string' && Object.keys(data[property]).length > 1\"\n :class=\"{ 'p-0': inHeader }\"> {{ nameOfProperty }}</td>\n <!-- MULTIPLE URIs -->\n <td v-if=\"value.type === 'multiURI'\" class=\"flex-wrap d-flex multiURI\">\n <div v-for=\"(el, index) in data[property]\" :key=\"index\" class=\"border shadow-sm p-2 mb-1 mr-1\">\n {{ el.name }}\n </div>\n </td>\n <!-- SPECIAL CASES -->\n\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value'\" class=\"font-weight-bold\">{{\n $t(`${value.label}`) }}:</td>\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.isHeader != true\" class=\"\"> {{\n nameOfProperty }}</td>\n <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.isHeader === true\" class=\"\"> {{\n trimString(nameOfProperty, 35) }} </td>\n <!-- License Edge case -->\n <!-- <td v-if=\"value.type === 'special' && nameOfProperty != 'Unchanged Value' && value.label === 'message.metadata.license'\" class=\"\"> {{ nameOfProperty }}</td> -->\n <!-- <details>{{ data[property] }}</details> -->\n</template>\n\n<script>\nimport { mapActions } from 'vuex';\nimport { getTranslationFor } from \"../../../../utils/helpers\";\nimport generalHelper from '../../../utils/general-helper';\nimport dpiConfig from '../../../config/dpi-spec-config';\nimport { useDpiContext } from '../../../composables/useDpiContext';\nimport { useAutocomplete } from '../../../composables/aucotomplete';\n\nexport default {\n data() {\n return {\n nameOfProperty: \"Unchanged Value\",\n namesOfMulti: []\n }\n },\n props: {\n property: String,\n value: Object,\n data: Object,\n inHeader: String\n },\n methods: {\n trimString(str, maxLength) {\n if (str.length > maxLength) {\n return str.slice(0, maxLength) + '...';\n }\n return str;\n },\n getTranslationFor,\n async requestURILabel(voc, res) {\n\n const envs = this.$env;\n\n if (res != undefined) {\n let vocMatch =\n this.voc === \"iana-media-types\" ||\n this.voc === \"spdx-checksum-algorithm\";\n\n let name;\n await this.requestResourceName({ voc: voc, uri: res, envs: envs }).then(\n (response) => {\n\n if (this.property === 'dcatde:politicalGeocodingURI') {\n if (response != undefined) {\n let result = vocMatch\n ? response.data.result.results\n .filter((dataset) => dataset.resource === res)\n .map((dataset) => dataset.alt_label)[0].en\n : getTranslationFor(response.data.result.alt_label, this.$i18n.locale, []);\n name = result;\n }\n } else {\n if (response != undefined) {\n let result = vocMatch\n ? response.data.result.results\n .filter((dataset) => dataset.resource === res)\n .map((dataset) => dataset.pref_label)[0].en\n : getTranslationFor(response.data.result.pref_label, this.$i18n.locale, []);\n name = result;\n }\n }\n }\n );\n // console.log(name);\n return name\n }\n },\n },\n async created() {\n\n try {\n if (this.value.type === 'singularURI') {\n if (typeof this.data[this.property] != 'string') {\n\n this.nameOfProperty = await this.getURILabel(this.data[this.property]);\n }\n\n } else if (this.value.type === 'multiURI') {\n for (let index = 0; index < this.data[this.property].length; index++) {\n this.data[this.property][index].name = await this.getURILabel(this.data[this.property][index]);\n }\n }\n else if (this.value.type === 'special') {\n\n this.nameOfProperty = await this.getURILabel(this.data[this.property]);\n\n }\n\n } catch (e) {\n console.warn(e);\n }\n },\n setup() {\n const { requestResourceName } = useAutocomplete()\n const dpiConfig = useDpiContext();\n\n async function getURILabel(value) {\n if (generalHelper.isUrl(value.name)) {\n\n const prefixes = dpiConfig.value.specification.vocabPrefixes;\n const vocabulary = Object.keys(prefixes).find(key => value.name.includes(key));\n return await this.requestURILabel(vocabulary, value.name);\n }\n else return value.name;\n }\n\n return {\n requestResourceName,\n getURILabel,\n }\n }\n}\n\n</script>\n<style>\ndiv:has(>.multiURI) {\n width: 75%;\n}\n</style>\n"],"names":["_sfc_main","str","maxLength","getTranslationFor","voc","res","envs","vocMatch","name","response","dataset","index","e","requestResourceName","useAutocomplete","dpiConfig","useDpiContext","getURILabel","value","generalHelper","prefixes","vocabulary","key","_openBlock","_createElementBlock","_Fragment","$props","_hoisted_1","_toDisplayString","_ctx","_createCommentVNode","_cache","_createTextVNode","_hoisted_2","_hoisted_3","_normalizeClass","$data","_hoisted_4","_renderList","el","_hoisted_5","_hoisted_6","_hoisted_7","$options"],"mappings":";;;;;;;;;;;;;AAsCA,MAAKA,IAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,gBAAgB;AAAA,MAChB,cAAc,CAAC;AAAA,IACjB;AAAA,EACD;AAAA,EACD,OAAO;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACX;AAAA,EACD,SAAS;AAAA,IACP,WAAWC,GAAKC,GAAW;AACzB,aAAID,EAAI,SAASC,IACRD,EAAI,MAAM,GAAGC,CAAS,IAAI,QAE5BD;AAAA,IACR;AAAA,IACD,mBAAAE;AAAA,IACA,MAAM,gBAAgBC,GAAKC,GAAK;AAE9B,YAAMC,IAAO,KAAK;AAElB,UAAID,KAAO,MAAW;AACpB,YAAIE,IACF,KAAK,QAAQ,sBACb,KAAK,QAAQ,2BAEXC;AACJ,qBAAM,KAAK,oBAAoB,EAAE,KAAKJ,GAAK,KAAKC,GAAK,MAAMC,EAAM,CAAA,EAAE;AAAA,UACjE,CAACG,MAAa;AAEZ,YAAI,KAAK,aAAa,iCAChBA,KAAY,SAMdD,IALaD,IACTE,EAAS,KAAK,OAAO,QACpB,OAAO,CAACC,MAAYA,EAAQ,aAAaL,CAAG,EAC5C,IAAI,CAACK,MAAYA,EAAQ,SAAS,EAAE,CAAC,EAAE,KACxCP,EAAkBM,EAAS,KAAK,OAAO,WAAW,KAAK,MAAM,QAAQ,CAAA,CAAE,KAIzEA,KAAY,SAMdD,IALaD,IACTE,EAAS,KAAK,OAAO,QACpB,OAAO,CAACC,MAA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AAA;AAAA;;;"}
|
|
@@ -24,15 +24,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
24
|
value: ObjectConstructor;
|
|
25
25
|
data: ObjectConstructor;
|
|
26
26
|
inHeader: StringConstructor;
|
|
27
|
-
}>, {
|
|
27
|
+
}>, {
|
|
28
|
+
requestResourceName: (options: {
|
|
29
|
+
voc: string;
|
|
30
|
+
uri: string;
|
|
31
|
+
envs: any;
|
|
32
|
+
}) => Promise<any>;
|
|
33
|
+
getURILabel: (value: any) => Promise<any>;
|
|
34
|
+
}, {
|
|
28
35
|
nameOfProperty: string;
|
|
29
36
|
namesOfMulti: never[];
|
|
30
37
|
}, {}, {
|
|
31
38
|
trimString(str: any, maxLength: any): any;
|
|
32
39
|
getTranslationFor: typeof import('../../..').getTranslationFor;
|
|
33
40
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
34
|
-
getURILabel(value: any): Promise<any>;
|
|
35
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
36
41
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
42
|
property: StringConstructor;
|
|
38
43
|
value: ObjectConstructor;
|
|
@@ -96,15 +101,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
96
101
|
value: ObjectConstructor;
|
|
97
102
|
data: ObjectConstructor;
|
|
98
103
|
inHeader: StringConstructor;
|
|
99
|
-
}>, {
|
|
104
|
+
}>, {
|
|
105
|
+
requestResourceName: (options: {
|
|
106
|
+
voc: string;
|
|
107
|
+
uri: string;
|
|
108
|
+
envs: any;
|
|
109
|
+
}) => Promise<any>;
|
|
110
|
+
getURILabel: (value: any) => Promise<any>;
|
|
111
|
+
}, {
|
|
100
112
|
nameOfProperty: string;
|
|
101
113
|
namesOfMulti: never[];
|
|
102
114
|
}, {}, {
|
|
103
115
|
trimString(str: any, maxLength: any): any;
|
|
104
116
|
getTranslationFor: typeof import('../../..').getTranslationFor;
|
|
105
117
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
106
|
-
getURILabel(value: any): Promise<any>;
|
|
107
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
108
118
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
109
119
|
property: StringConstructor;
|
|
110
120
|
value: ObjectConstructor;
|
|
@@ -576,8 +576,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
576
576
|
getDate(date: any): string;
|
|
577
577
|
checkIfPropertyValueSet(data: any, property: any, value: any): any;
|
|
578
578
|
reqName(URI: any): Promise<any>;
|
|
579
|
-
requestFirstEntrySuggestions: import('vuex').ActionMethod;
|
|
580
|
-
requestAutocompleteSuggestions: import('vuex').ActionMethod;
|
|
581
579
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
582
580
|
dpiLocale: StringConstructor;
|
|
583
581
|
}>> & Readonly<{}>, {}, {}, {
|
|
@@ -607,15 +605,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
607
605
|
value: ObjectConstructor;
|
|
608
606
|
data: ObjectConstructor;
|
|
609
607
|
inHeader: StringConstructor;
|
|
610
|
-
}>, {
|
|
608
|
+
}>, {
|
|
609
|
+
requestResourceName: (options: {
|
|
610
|
+
voc: string;
|
|
611
|
+
uri: string;
|
|
612
|
+
envs: any;
|
|
613
|
+
}) => Promise<any>;
|
|
614
|
+
getURILabel: (value: any) => Promise<any>;
|
|
615
|
+
}, {
|
|
611
616
|
nameOfProperty: string;
|
|
612
617
|
namesOfMulti: never[];
|
|
613
618
|
}, {}, {
|
|
614
619
|
trimString(str: any, maxLength: any): any;
|
|
615
620
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
616
621
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
617
|
-
getURILabel(value: any): Promise<any>;
|
|
618
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
619
622
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
620
623
|
property: StringConstructor;
|
|
621
624
|
value: ObjectConstructor;
|
|
@@ -679,15 +682,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
679
682
|
value: ObjectConstructor;
|
|
680
683
|
data: ObjectConstructor;
|
|
681
684
|
inHeader: StringConstructor;
|
|
682
|
-
}>, {
|
|
685
|
+
}>, {
|
|
686
|
+
requestResourceName: (options: {
|
|
687
|
+
voc: string;
|
|
688
|
+
uri: string;
|
|
689
|
+
envs: any;
|
|
690
|
+
}) => Promise<any>;
|
|
691
|
+
getURILabel: (value: any) => Promise<any>;
|
|
692
|
+
}, {
|
|
683
693
|
nameOfProperty: string;
|
|
684
694
|
namesOfMulti: never[];
|
|
685
695
|
}, {}, {
|
|
686
696
|
trimString(str: any, maxLength: any): any;
|
|
687
697
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
688
698
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
689
|
-
getURILabel(value: any): Promise<any>;
|
|
690
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
691
699
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
692
700
|
property: StringConstructor;
|
|
693
701
|
value: ObjectConstructor;
|
|
@@ -866,15 +874,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
866
874
|
value: ObjectConstructor;
|
|
867
875
|
data: ObjectConstructor;
|
|
868
876
|
inHeader: StringConstructor;
|
|
869
|
-
}>, {
|
|
877
|
+
}>, {
|
|
878
|
+
requestResourceName: (options: {
|
|
879
|
+
voc: string;
|
|
880
|
+
uri: string;
|
|
881
|
+
envs: any;
|
|
882
|
+
}) => Promise<any>;
|
|
883
|
+
getURILabel: (value: any) => Promise<any>;
|
|
884
|
+
}, {
|
|
870
885
|
nameOfProperty: string;
|
|
871
886
|
namesOfMulti: never[];
|
|
872
887
|
}, {}, {
|
|
873
888
|
trimString(str: any, maxLength: any): any;
|
|
874
889
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
875
890
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
876
|
-
getURILabel(value: any): Promise<any>;
|
|
877
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
878
891
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
879
892
|
property: StringConstructor;
|
|
880
893
|
value: ObjectConstructor;
|
|
@@ -938,15 +951,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
938
951
|
value: ObjectConstructor;
|
|
939
952
|
data: ObjectConstructor;
|
|
940
953
|
inHeader: StringConstructor;
|
|
941
|
-
}>, {
|
|
954
|
+
}>, {
|
|
955
|
+
requestResourceName: (options: {
|
|
956
|
+
voc: string;
|
|
957
|
+
uri: string;
|
|
958
|
+
envs: any;
|
|
959
|
+
}) => Promise<any>;
|
|
960
|
+
getURILabel: (value: any) => Promise<any>;
|
|
961
|
+
}, {
|
|
942
962
|
nameOfProperty: string;
|
|
943
963
|
namesOfMulti: never[];
|
|
944
964
|
}, {}, {
|
|
945
965
|
trimString(str: any, maxLength: any): any;
|
|
946
966
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
947
967
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
948
|
-
getURILabel(value: any): Promise<any>;
|
|
949
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
950
968
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
951
969
|
property: StringConstructor;
|
|
952
970
|
value: ObjectConstructor;
|
|
@@ -1055,15 +1073,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1055
1073
|
value: ObjectConstructor;
|
|
1056
1074
|
data: ObjectConstructor;
|
|
1057
1075
|
inHeader: StringConstructor;
|
|
1058
|
-
}>, {
|
|
1076
|
+
}>, {
|
|
1077
|
+
requestResourceName: (options: {
|
|
1078
|
+
voc: string;
|
|
1079
|
+
uri: string;
|
|
1080
|
+
envs: any;
|
|
1081
|
+
}) => Promise<any>;
|
|
1082
|
+
getURILabel: (value: any) => Promise<any>;
|
|
1083
|
+
}, {
|
|
1059
1084
|
nameOfProperty: string;
|
|
1060
1085
|
namesOfMulti: never[];
|
|
1061
1086
|
}, {}, {
|
|
1062
1087
|
trimString(str: any, maxLength: any): any;
|
|
1063
1088
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
1064
1089
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
1065
|
-
getURILabel(value: any): Promise<any>;
|
|
1066
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
1067
1090
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1068
1091
|
property: StringConstructor;
|
|
1069
1092
|
value: ObjectConstructor;
|
|
@@ -1127,15 +1150,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1127
1150
|
value: ObjectConstructor;
|
|
1128
1151
|
data: ObjectConstructor;
|
|
1129
1152
|
inHeader: StringConstructor;
|
|
1130
|
-
}>, {
|
|
1153
|
+
}>, {
|
|
1154
|
+
requestResourceName: (options: {
|
|
1155
|
+
voc: string;
|
|
1156
|
+
uri: string;
|
|
1157
|
+
envs: any;
|
|
1158
|
+
}) => Promise<any>;
|
|
1159
|
+
getURILabel: (value: any) => Promise<any>;
|
|
1160
|
+
}, {
|
|
1131
1161
|
nameOfProperty: string;
|
|
1132
1162
|
namesOfMulti: never[];
|
|
1133
1163
|
}, {}, {
|
|
1134
1164
|
trimString(str: any, maxLength: any): any;
|
|
1135
1165
|
getTranslationFor: typeof import('../..').getTranslationFor;
|
|
1136
1166
|
requestURILabel(voc: any, res: any): Promise<undefined>;
|
|
1137
|
-
getURILabel(value: any): Promise<any>;
|
|
1138
|
-
requestResourceName: import('vuex').ActionMethod;
|
|
1139
1167
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1140
1168
|
property: StringConstructor;
|
|
1141
1169
|
value: ObjectConstructor;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as n, openBlock as
|
|
1
|
+
import I from "./DatasetDetailsDataset.vue2.mjs";
|
|
2
|
+
import { resolveComponent as n, openBlock as a, createElementBlock as c, createVNode as l, createTextVNode as r, createElementVNode as D, createCommentVNode as d, createBlock as p, withCtx as u, renderSlot as b } from "vue";
|
|
3
3
|
import "./DatasetDetailsDataset.vue3.mjs";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import k from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const v = ["content"], A = ["content"], O = { key: 0 }, U = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "dsd-dataset"
|
|
8
8
|
};
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
l(
|
|
13
|
-
t[
|
|
14
|
-
|
|
9
|
+
function _(s, t, o, C, i, e) {
|
|
10
|
+
const w = n("resource-access-popup"), g = n("dataset-details-skeleton"), y = n("dataset-details-description"), m = n("distributions"), h = n("dataset-details-features"), f = n("dataset-details-properties");
|
|
11
|
+
return a(), c("div", null, [
|
|
12
|
+
l(w, { ref: "externalResourceModal" }, null, 512),
|
|
13
|
+
t[6] || (t[6] = r()),
|
|
14
|
+
D("span", {
|
|
15
15
|
property: "dc:issued",
|
|
16
|
-
content:
|
|
17
|
-
}, null, 8,
|
|
18
|
-
t[
|
|
19
|
-
|
|
16
|
+
content: s.getReleaseDate
|
|
17
|
+
}, null, 8, v),
|
|
18
|
+
t[7] || (t[7] = r()),
|
|
19
|
+
D("span", {
|
|
20
20
|
property: "dc:modified",
|
|
21
|
-
content:
|
|
22
|
-
}, null, 8,
|
|
23
|
-
t[
|
|
24
|
-
i.loadingDatasetDetails ? (
|
|
25
|
-
l(
|
|
21
|
+
content: s.getModificationDate
|
|
22
|
+
}, null, 8, A),
|
|
23
|
+
t[8] || (t[8] = r()),
|
|
24
|
+
i.loadingDatasetDetails ? (a(), c("div", O, [
|
|
25
|
+
l(g, { type: "DatasetDetails" })
|
|
26
26
|
])) : d("", !0),
|
|
27
|
-
t[
|
|
28
|
-
i.loadingDatasetDetails ? d("", !0) : (
|
|
29
|
-
|
|
27
|
+
t[9] || (t[9] = r()),
|
|
28
|
+
i.loadingDatasetDetails ? d("", !0) : (a(), c("div", U, [
|
|
29
|
+
o.showDatasetDescription ? (a(), p(y, {
|
|
30
30
|
key: 0,
|
|
31
31
|
dateIncorrect: e.dateIncorrect,
|
|
32
32
|
machineTranslated: i.machineTranslated,
|
|
33
33
|
translationNotAvailable: i.translationNotAvailable
|
|
34
34
|
}, null, 8, ["dateIncorrect", "machineTranslated", "translationNotAvailable"])) : d("", !0),
|
|
35
|
-
t[
|
|
36
|
-
l(
|
|
35
|
+
t[3] || (t[3] = r()),
|
|
36
|
+
l(m, {
|
|
37
37
|
openModal: e.openModal,
|
|
38
|
-
getDistributions:
|
|
38
|
+
getDistributions: s.getDistributions,
|
|
39
39
|
expandedDistributions: i.expandedDistributions,
|
|
40
40
|
expandedDistributionDescriptions: i.expandedDistributionDescriptions,
|
|
41
41
|
displayedDistributions: e.displayedDistributions,
|
|
@@ -48,8 +48,8 @@ function U(a, t, r, _, i, e) {
|
|
|
48
48
|
getDistributionFormat: e.getDistributionFormat,
|
|
49
49
|
distributionFormatTruncated: e.distributionFormatTruncated,
|
|
50
50
|
getDistributionTitle: e.getDistributionTitle,
|
|
51
|
-
distributionVisibleContent:
|
|
52
|
-
distributionExpandedContent:
|
|
51
|
+
distributionVisibleContent: o.distributionVisibleContent,
|
|
52
|
+
distributionExpandedContent: o.distributionExpandedContent,
|
|
53
53
|
distributionDescriptionIsExpanded: e.distributionDescriptionIsExpanded,
|
|
54
54
|
distributionDescriptionIsExpandable: e.distributionDescriptionIsExpandable,
|
|
55
55
|
distributionIsExpanded: e.distributionIsExpanded,
|
|
@@ -75,12 +75,12 @@ function U(a, t, r, _, i, e) {
|
|
|
75
75
|
isUrlInvalid: e.isUrlInvalid,
|
|
76
76
|
openIfValidUrl: e.openIfValidUrl,
|
|
77
77
|
showTooltipVisualiseButton: e.showTooltipVisualiseButton,
|
|
78
|
-
showPublisher:
|
|
79
|
-
embed:
|
|
78
|
+
showPublisher: o.showPublisher,
|
|
79
|
+
embed: o.embed
|
|
80
80
|
}, null, 8, ["openModal", "getDistributions", "expandedDistributions", "expandedDistributionDescriptions", "displayedDistributions", "isDistributionsAllDisplayed", "distributions", "setDistributionsDisplayCount", "pages", "showDownloadUrls", "isOnlyOneUrl", "getDistributionFormat", "distributionFormatTruncated", "getDistributionTitle", "distributionVisibleContent", "distributionExpandedContent", "distributionDescriptionIsExpanded", "distributionDescriptionIsExpandable", "distributionIsExpanded", "showNumber", "showObject", "showDownloadDropdown", "showLicence", "showLicensingAssistant", "filterDateFormatEU", "showArray", "showObjectArray", "getVisualisationLink", "getDownloadUrl", "trackGoto", "showAccessUrls", "replaceHttp", "previewLinkCallback", "toggleDistribution", "toggleDistributionDescription", "increaseNumDisplayedDistributions", "nonOverflowingIncrementsForDistributions", "appendCurrentLocaleToURL", "isUrlInvalid", "openIfValidUrl", "showTooltipVisualiseButton", "showPublisher", "embed"]),
|
|
81
|
-
t[
|
|
82
|
-
l(
|
|
83
|
-
getKeywords:
|
|
81
|
+
t[4] || (t[4] = r()),
|
|
82
|
+
l(h, {
|
|
83
|
+
getKeywords: s.getKeywords,
|
|
84
84
|
pages: i.pages,
|
|
85
85
|
increaseNumDisplayedPages: e.increaseNumDisplayedPages,
|
|
86
86
|
nonOverflowingIncrementsForPages: e.nonOverflowingIncrementsForPages,
|
|
@@ -90,13 +90,27 @@ function U(a, t, r, _, i, e) {
|
|
|
90
90
|
showArray: e.showArray,
|
|
91
91
|
showObject: e.showObject
|
|
92
92
|
}, null, 8, ["getKeywords", "pages", "increaseNumDisplayedPages", "nonOverflowingIncrementsForPages", "showKeyword", "trackGoto", "showObjectArray", "showArray", "showObject"]),
|
|
93
|
-
t[
|
|
94
|
-
|
|
93
|
+
t[5] || (t[5] = r()),
|
|
94
|
+
o.showDatasetProperties ? (a(), p(f, { key: 1 }, {
|
|
95
|
+
"property-header": u(() => [
|
|
96
|
+
b(s.$slots, "property-header", {}, void 0, !0)
|
|
97
|
+
]),
|
|
98
|
+
"property-table-before": u(() => [
|
|
99
|
+
b(s.$slots, "property-table-before", {}, void 0, !0)
|
|
100
|
+
]),
|
|
101
|
+
"property-table": u(() => [
|
|
102
|
+
b(s.$slots, "property-table", {}, void 0, !0)
|
|
103
|
+
]),
|
|
104
|
+
"property-table-after": u(() => [
|
|
105
|
+
b(s.$slots, "property-table-after", {}, void 0, !0)
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
})) : d("", !0)
|
|
95
109
|
]))
|
|
96
110
|
]);
|
|
97
111
|
}
|
|
98
|
-
const
|
|
112
|
+
const T = /* @__PURE__ */ k(I, [["render", _], ["__scopeId", "data-v-9ed03189"]]);
|
|
99
113
|
export {
|
|
100
|
-
|
|
114
|
+
T as default
|
|
101
115
|
};
|
|
102
116
|
//# sourceMappingURL=DatasetDetailsDataset.vue.mjs.map
|