@piveau/piveau-hub-ui-modules 4.4.22 → 4.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +0 -3
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs +47 -47
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +138 -118
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SpatialInput.vue.d.ts +1 -4
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs +95 -96
- package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/config/dcatapde/page-content-config.mjs +1 -1
- package/dist/data-provider-interface/config/dcatapde/page-content-config.mjs.map +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.d.ts +0 -3
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.d.ts +0 -1
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.d.ts +0 -2
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.d.ts +0 -1
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs +88 -88
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.d.ts +0 -1
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs +161 -155
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.mjs.map +1 -1
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.d.ts +0 -1
- package/dist/data-provider-interface/views/OverviewPage.vue.d.ts +0 -3
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,87 +1,86 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import { getTranslationFor as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { useTed as
|
|
1
|
+
import { getCurrentInstance as q, ref as v, computed as J, watch as R, onMounted as W, nextTick as X, reactive as z, openBlock as l, createElementBlock as i, unref as m, createElementVNode as d, toDisplayString as f, createTextVNode as c, withDirectives as M, vShow as H, createCommentVNode as g, Fragment as $, renderList as S, isRef as C, vModelText as Q } from "vue";
|
|
2
|
+
import { useStore as Y } from "vuex";
|
|
3
|
+
import { getTranslationFor as O } from "../../utils/helpers.mjs";
|
|
4
|
+
import { onClickOutside as T } from "../../external/@vueuse/core/index";
|
|
5
|
+
import { useRoute as Z } from "vue-router";
|
|
6
|
+
import { useI18n as ee } from "vue-i18n";
|
|
7
|
+
import { useTed as te } from "../../composables/useTed.mjs";
|
|
8
8
|
import "./SpatialInput.vue2.mjs";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import ae from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
|
+
const se = { class: "d-flex flex-column w-100 spatialWrap" }, oe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "d-flex formkit-inner mx-3 mb-3"
|
|
13
|
-
},
|
|
13
|
+
}, le = { class: "autocompleteInputSingleValue" }, ie = { key: 1 }, ne = { class: "w-100 d-flex" }, re = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "d-flex position-relative m-3 w-100"
|
|
16
|
-
},
|
|
16
|
+
}, de = { class: "w-100" }, ce = ["placeholder"], ue = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "d-flex position-relative m-3 w-100"
|
|
19
|
-
},
|
|
19
|
+
}, pe = { class: "w-100" }, ve = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "d-flex position-relative m-3 w-100"
|
|
22
|
+
}, me = { class: "w-100" }, fe = ["placeholder"], ye = ["onClick"], he = {
|
|
20
23
|
key: 0,
|
|
21
24
|
class: "m-3"
|
|
22
|
-
},
|
|
25
|
+
}, ge = {
|
|
23
26
|
key: 0,
|
|
24
27
|
class: "w-100"
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
man: !1,
|
|
29
|
-
vocSearch: !1
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}, ge = /* @__PURE__ */ Object.assign(he, {
|
|
28
|
+
}, be = ["placeholder"], Ie = ["onClick"], ke = {
|
|
33
29
|
__name: "SpatialInput",
|
|
34
30
|
props: {
|
|
35
31
|
context: Object
|
|
36
32
|
},
|
|
37
|
-
setup(
|
|
38
|
-
let
|
|
39
|
-
const n =
|
|
40
|
-
let
|
|
41
|
-
const
|
|
42
|
-
|
|
33
|
+
setup(E) {
|
|
34
|
+
let U = q().appContext.app.config.globalProperties.$env, K = Z();
|
|
35
|
+
const n = E;
|
|
36
|
+
let k = v([]), o = v({}), h = v({}), w = v({}), x = v({});
|
|
37
|
+
const V = Y(), { t: Ce, locale: A } = ee(), u = te(), b = v(!1), I = v(!1), L = J(() => {
|
|
38
|
+
var t, e;
|
|
39
|
+
return !!((e = (t = n.context) == null ? void 0 : t.attrs) != null && e.vocabularyOnly);
|
|
40
|
+
});
|
|
41
|
+
n.context.attrs.identifier === "politicalGeocodingURI" && k.value.push(
|
|
43
42
|
{ item: "Municipality Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.Municipality Key", "Municipality Key") },
|
|
44
43
|
{ item: "Regional Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.Regional Key", "Regional Key") },
|
|
45
44
|
{ item: "Municipal Association Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.Municipal Association Key", "Municipal Association Key") },
|
|
46
45
|
{ item: "District Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.District Key", "District Key") },
|
|
47
46
|
{ item: "Government District Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.Government District Key", "Government District Key") },
|
|
48
47
|
{ item: "State Key", active: !1, placeholder: u("message.dataupload.datasets.conditional.State Key", "State Key") }
|
|
49
|
-
), n.context.attrs.identifier === "spatial" &&
|
|
48
|
+
), n.context.attrs.identifier === "spatial" && k.value.push(
|
|
50
49
|
{ item: "Country", active: !1, placeholder: u("message.dataupload.datasets.conditional.Country", "Country") },
|
|
51
50
|
{ item: "Place", active: !1, placeholder: u("message.dataupload.datasets.conditional.Place", "Place") },
|
|
52
51
|
{ item: "Continent", active: !1, placeholder: u("message.dataupload.datasets.conditional.Continent", "Continent") }
|
|
53
|
-
),
|
|
54
|
-
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
n.context.node.input({ name:
|
|
59
|
-
}),
|
|
60
|
-
|
|
52
|
+
), R(o, async () => {
|
|
53
|
+
B();
|
|
54
|
+
}), R(h, async () => {
|
|
55
|
+
h.value = h.value.toLowerCase();
|
|
56
|
+
}), R(x, async () => {
|
|
57
|
+
n.context.node.input({ name: x, resource: x });
|
|
58
|
+
}), W(async () => {
|
|
59
|
+
w = [{ name: u("message.dataupload.info.searchVocabulary", "--- Type in anything for a live search of the vocabulary ---").value, resource: "invalid" }], await X(), n.context.value.name === void 0 || n.context.value.name === "" ? s.activeValue = !1 : s.activeValue = !0, L.value && (y("showTable"), I.value = !0, b.value && (b.value = !1));
|
|
61
60
|
});
|
|
62
|
-
function
|
|
63
|
-
|
|
61
|
+
function F() {
|
|
62
|
+
k.value.forEach((t) => {
|
|
64
63
|
t.active = !1;
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function P(t) {
|
|
68
67
|
s.activeValue = !1, n.context.node.input({});
|
|
69
68
|
}
|
|
70
|
-
function
|
|
71
|
-
let e = JSON.parse(localStorage.getItem(`dpi_${
|
|
69
|
+
function N(t) {
|
|
70
|
+
let e = JSON.parse(localStorage.getItem(`dpi_${K.params.property}`)), a;
|
|
72
71
|
n.context.attrs.identifier === "politicalGeocodingURI" ? a = e.Advised["dcatde:politicalGeocodingURI"] : a = e.Advised["dct:spatial"], a.forEach((r, p) => {
|
|
73
72
|
Object.keys(r).length === 0 && a.splice(p, 1);
|
|
74
|
-
}), a.push(n.context.node._value), n.context.attrs.identifier === "politicalGeocodingURI" ? e.Advised["dcatde:politicalGeocodingURI"] = a : e.Advised["dct:spatial"] = a, localStorage.setItem(`dpi_${
|
|
73
|
+
}), a.push(n.context.node._value), n.context.attrs.identifier === "politicalGeocodingURI" ? e.Advised["dcatde:politicalGeocodingURI"] = a : e.Advised["dct:spatial"] = a, localStorage.setItem(`dpi_${K.params.property}`, JSON.stringify(e));
|
|
75
74
|
}
|
|
76
|
-
const
|
|
77
|
-
let t =
|
|
75
|
+
const B = async () => {
|
|
76
|
+
let t = h.value;
|
|
78
77
|
if (n.context.attrs.identifier === "politicalGeocodingURI") {
|
|
79
78
|
t = "political-geocoding-" + t.toLowerCase().replaceAll(" ", "-");
|
|
80
79
|
try {
|
|
81
80
|
let e = o.value;
|
|
82
|
-
await
|
|
83
|
-
|
|
84
|
-
name:
|
|
81
|
+
await V.dispatch("dpiStore/requestAutocompleteSuggestions", { voc: t, text: e, base: U.api.baseUrl }).then((a) => {
|
|
82
|
+
w = a.data.result.results.map((p) => ({
|
|
83
|
+
name: O(p.alt_label, A.value, []) + " (" + p.id + ")",
|
|
85
84
|
resource: p.resource
|
|
86
85
|
}));
|
|
87
86
|
});
|
|
@@ -90,41 +89,41 @@ const Z = { class: "d-flex flex-column w-100 spatialWrap" }, ee = {
|
|
|
90
89
|
} else
|
|
91
90
|
try {
|
|
92
91
|
let e = o.value;
|
|
93
|
-
await
|
|
94
|
-
|
|
95
|
-
name:
|
|
92
|
+
await V.dispatch("dpiStore/requestAutocompleteSuggestions", { voc: t, text: e, base: U.api.baseUrl }).then((a) => {
|
|
93
|
+
w = a.data.result.results.map((p) => ({
|
|
94
|
+
name: O(p.pref_label, A.value, []) + " (" + p.id + ")",
|
|
96
95
|
resource: p.resource
|
|
97
96
|
}));
|
|
98
97
|
});
|
|
99
98
|
} catch {
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
|
-
var s =
|
|
101
|
+
var s = z({
|
|
103
102
|
first: !1,
|
|
104
103
|
second: !1,
|
|
105
104
|
third: !1,
|
|
106
105
|
activeValue: !1
|
|
107
106
|
});
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
function
|
|
107
|
+
const _ = v(null), G = v(null), D = v(null);
|
|
108
|
+
T(_, (t) => s.first = !1), T(G, (t) => s.second = !1), T(D, (t) => s.third = !1);
|
|
109
|
+
function y(t) {
|
|
111
110
|
t === "showTable" && (s.first = !s.first), t === "showVocTable" && (s.second = !s.second), t === "showVocEntries" && (s.third === !0 || (s.third = !s.third));
|
|
112
111
|
}
|
|
113
|
-
function
|
|
112
|
+
function j(t) {
|
|
114
113
|
n.context.node.input({ name: t.target.value, resource: t.target.value });
|
|
115
114
|
}
|
|
116
|
-
return (t, e) => (l(), i("div",
|
|
117
|
-
!n.context.attrs.multiple && m(s).activeValue ? (l(), i("div",
|
|
118
|
-
d("a",
|
|
115
|
+
return (t, e) => (l(), i("div", se, [
|
|
116
|
+
!n.context.attrs.multiple && m(s).activeValue ? (l(), i("div", oe, [
|
|
117
|
+
d("a", le, f(n.context.value.name), 1),
|
|
119
118
|
e[7] || (e[7] = c()),
|
|
120
119
|
d("div", {
|
|
121
120
|
class: "removeX",
|
|
122
|
-
onClick:
|
|
121
|
+
onClick: P
|
|
123
122
|
})
|
|
124
|
-
])) : (l(), i("div",
|
|
125
|
-
d("div",
|
|
126
|
-
|
|
127
|
-
d("label",
|
|
123
|
+
])) : (l(), i("div", ie, [
|
|
124
|
+
d("div", ne, [
|
|
125
|
+
L.value ? g("", !0) : (l(), i("div", re, [
|
|
126
|
+
d("label", de, [
|
|
128
127
|
c(f(t.$t("message.dataupload.info.preferredInput")) + " ", 1),
|
|
129
128
|
d("input", {
|
|
130
129
|
id: "I1",
|
|
@@ -132,47 +131,47 @@ const Z = { class: "d-flex flex-column w-100 spatialWrap" }, ee = {
|
|
|
132
131
|
class: "selectInputField formkit-inner",
|
|
133
132
|
readonly: "readonly",
|
|
134
133
|
placeholder: t.$t("message.dataupload.info.preferredInput"),
|
|
135
|
-
onClick: e[0] || (e[0] = (a) =>
|
|
136
|
-
}, null, 8,
|
|
134
|
+
onClick: e[0] || (e[0] = (a) => y("showTable"))
|
|
135
|
+
}, null, 8, ce)
|
|
137
136
|
]),
|
|
138
137
|
e[9] || (e[9] = c()),
|
|
139
|
-
|
|
138
|
+
M(d("ul", {
|
|
140
139
|
ref_key: "I1",
|
|
141
|
-
ref:
|
|
140
|
+
ref: _,
|
|
142
141
|
class: "spatialListUpload"
|
|
143
142
|
}, [
|
|
144
143
|
d("li", {
|
|
145
144
|
onClick: e[1] || (e[1] = (a) => {
|
|
146
|
-
|
|
145
|
+
y("showTable"), b.value = !0, I.value && (I.value = !1);
|
|
147
146
|
}),
|
|
148
147
|
class: "p-2 border-b border-gray-200 choosableItemsAC"
|
|
149
148
|
}, f(t.$t("message.dataupload.datasets.conditional.manually")), 1),
|
|
150
149
|
e[8] || (e[8] = c()),
|
|
151
150
|
d("li", {
|
|
152
151
|
onClick: e[2] || (e[2] = (a) => {
|
|
153
|
-
|
|
152
|
+
y("showTable"), I.value = !0, b.value && (b.value = !1);
|
|
154
153
|
}),
|
|
155
154
|
class: "p-2 border-b border-gray-200 choosableItemsAC"
|
|
156
155
|
}, f(t.$t("message.dataupload.datasets.conditional.vocabulary")), 1)
|
|
157
156
|
], 512), [
|
|
158
|
-
[
|
|
157
|
+
[H, m(s).first]
|
|
159
158
|
])
|
|
160
|
-
]),
|
|
159
|
+
])),
|
|
161
160
|
e[11] || (e[11] = c()),
|
|
162
|
-
|
|
163
|
-
d("label",
|
|
161
|
+
b.value ? (l(), i("div", ue, [
|
|
162
|
+
d("label", pe, [
|
|
164
163
|
c(f(t.$te("message.dataupload.datasets.isReferencedByUrl.placeholder") ? t.$t("message.dataupload.datasets.isReferencedByUrl.placeholder") : "Provide an URL") + " ", 1),
|
|
165
164
|
d("input", {
|
|
166
165
|
type: "URL",
|
|
167
166
|
class: "selectInputField formkit-inner",
|
|
168
167
|
placeholder: "URL",
|
|
169
|
-
onInput: e[3] || (e[3] = (a) =>
|
|
168
|
+
onInput: e[3] || (e[3] = (a) => j(a))
|
|
170
169
|
}, null, 32)
|
|
171
170
|
])
|
|
172
171
|
])) : g("", !0),
|
|
173
172
|
e[12] || (e[12] = c()),
|
|
174
|
-
|
|
175
|
-
d("label",
|
|
173
|
+
I.value ? (l(), i("div", ve, [
|
|
174
|
+
d("label", me, [
|
|
176
175
|
c(f(t.$te("message.dataupload.datasets.contributorType.placeholder") ? t.$t("message.dataupload.datasets.contributorType.placeholder") : "Choose type of vocabulary") + " ", 1),
|
|
177
176
|
d("input", {
|
|
178
177
|
id: "I2",
|
|
@@ -181,46 +180,46 @@ const Z = { class: "d-flex flex-column w-100 spatialWrap" }, ee = {
|
|
|
181
180
|
readonly: "readonly",
|
|
182
181
|
placeholder: t.$te("message.dataupload.datasets.accessRights.placeholder") ? t.$t("message.dataupload.datasets.accessRights.placeholder") : "Choose type of vocabulary",
|
|
183
182
|
onClick: e[4] || (e[4] = (a) => {
|
|
184
|
-
|
|
183
|
+
y("showVocTable");
|
|
185
184
|
})
|
|
186
|
-
}, null, 8,
|
|
185
|
+
}, null, 8, fe)
|
|
187
186
|
]),
|
|
188
187
|
e[10] || (e[10] = c()),
|
|
189
188
|
m(s).second ? (l(), i("ul", {
|
|
190
189
|
key: 0,
|
|
191
190
|
ref_key: "I2",
|
|
192
|
-
ref:
|
|
191
|
+
ref: G,
|
|
193
192
|
class: "spatialListUpload"
|
|
194
193
|
}, [
|
|
195
|
-
(l(!0), i(
|
|
194
|
+
(l(!0), i($, null, S(m(k), (a) => (l(), i("li", {
|
|
196
195
|
key: a,
|
|
197
196
|
class: "p-2 border-b border-gray-200 choosableItemsAC",
|
|
198
197
|
onClick: (r) => {
|
|
199
|
-
|
|
198
|
+
F(), a.active = !a.active, y("showVocTable"), C(o) ? o.value = "" : o = "", C(h) ? h.value = a.item : h = a.item;
|
|
200
199
|
}
|
|
201
|
-
}, f(t.$t("message.dataupload.datasets.conditional." + a.item)), 9,
|
|
200
|
+
}, f(t.$t("message.dataupload.datasets.conditional." + a.item)), 9, ye))), 128))
|
|
202
201
|
], 512)) : g("", !0)
|
|
203
202
|
])) : g("", !0)
|
|
204
203
|
]),
|
|
205
204
|
e[14] || (e[14] = c()),
|
|
206
|
-
|
|
207
|
-
(l(!0), i(
|
|
205
|
+
I.value ? (l(), i("div", he, [
|
|
206
|
+
(l(!0), i($, null, S(m(k), (a) => (l(), i("div", {
|
|
208
207
|
key: a,
|
|
209
208
|
class: "position-relative"
|
|
210
209
|
}, [
|
|
211
|
-
a.active ? (l(), i("label",
|
|
210
|
+
a.active ? (l(), i("label", ge, [
|
|
212
211
|
c(f(t.$te("message.dataupload.datasets.accessRights.placeholder") ? t.$t("message.dataupload.datasets.accessRights.placeholder") : "Choose type of vocabulary") + " ", 1),
|
|
213
|
-
|
|
212
|
+
M(d("input", {
|
|
214
213
|
id: "I3",
|
|
215
214
|
type: "text",
|
|
216
|
-
"onUpdate:modelValue": e[5] || (e[5] = (r) =>
|
|
215
|
+
"onUpdate:modelValue": e[5] || (e[5] = (r) => C(o) ? o.value = r : o = r),
|
|
217
216
|
class: "selectInputField formkit-inner",
|
|
218
217
|
placeholder: a.placeholder ?? "",
|
|
219
218
|
onClick: e[6] || (e[6] = (r) => {
|
|
220
|
-
|
|
219
|
+
y("showVocEntries"), C(o) ? o.value = "" : o = "";
|
|
221
220
|
})
|
|
222
|
-
}, null, 8,
|
|
223
|
-
[
|
|
221
|
+
}, null, 8, be), [
|
|
222
|
+
[Q, m(o)]
|
|
224
223
|
])
|
|
225
224
|
])) : g("", !0),
|
|
226
225
|
e[13] || (e[13] = c()),
|
|
@@ -228,24 +227,24 @@ const Z = { class: "d-flex flex-column w-100 spatialWrap" }, ee = {
|
|
|
228
227
|
key: 1,
|
|
229
228
|
ref_for: !0,
|
|
230
229
|
ref_key: "I3",
|
|
231
|
-
ref:
|
|
230
|
+
ref: D,
|
|
232
231
|
class: "spatialListUpload"
|
|
233
232
|
}, [
|
|
234
|
-
(l(!0), i(
|
|
233
|
+
(l(!0), i($, null, S(m(w), (r) => (l(), i("li", {
|
|
235
234
|
key: r,
|
|
236
235
|
class: "p-2 border-b border-gray-200 choosableItemsAC",
|
|
237
236
|
onClick: (p) => {
|
|
238
|
-
n.context.node.input(r),
|
|
237
|
+
n.context.node.input(r), C(o) ? o.value = r.name : o = r.name, y("showVocEntries"), m(s).third = !1, N();
|
|
239
238
|
}
|
|
240
|
-
}, f(r.name), 9,
|
|
239
|
+
}, f(r.name), 9, Ie))), 128))
|
|
241
240
|
], 512)) : g("", !0)
|
|
242
241
|
]))), 128))
|
|
243
242
|
])) : g("", !0)
|
|
244
243
|
]))
|
|
245
244
|
]));
|
|
246
245
|
}
|
|
247
|
-
}
|
|
246
|
+
}, Ae = /* @__PURE__ */ ae(ke, [["__scopeId", "data-v-1595a9da"]]);
|
|
248
247
|
export {
|
|
249
|
-
|
|
248
|
+
Ae as default
|
|
250
249
|
};
|
|
251
250
|
//# sourceMappingURL=SpatialInput.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/SpatialInput.vue"],"sourcesContent":["<script setup>\n\nimport { ref, reactive, watch, computed, onBeforeMount, onMounted, nextTick } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { onClickOutside } from '@vueuse/core'\nimport { getCurrentInstance } from \"vue\";\nimport { useRoute } from 'vue-router';\nimport { useI18n } from 'vue-i18n';\nimport { useTed } from '../../composables/useTed';\n\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nlet route = useRoute();\n\nconst props = defineProps({\n context: Object,\n})\n// let listOfVoc: [{ item: 'Country', active: false }, { item: 'Place', active: false }, { item: 'Continent', active: false }],\nlet listOfVoc = ref([])\nlet inputText = ref({})\nlet voc = ref({})\nlet matches = ref({})\nlet manURL = ref({})\nconst store = useStore();\nconst { t, locale } = useI18n();\nconst ted = useTed();\n\nif (props.context.attrs.identifier === 'politicalGeocodingURI') {\n listOfVoc.value.push(\n { item: 'Municipality Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Municipality Key', 'Municipality Key') },\n { item: 'Regional Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Regional Key', 'Regional Key') },\n { item: 'Municipal Association Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Municipal Association Key', 'Municipal Association Key') },\n { item: 'District Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.District Key', 'District Key') },\n { item: 'Government District Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Government District Key', 'Government District Key') },\n { item: 'State Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.State Key', 'State Key') },\n )\n\n}\nif (props.context.attrs.identifier === 'spatial') {\n listOfVoc.value.push(\n { item: 'Country', active: false, placeholder: ted('message.dataupload.datasets.conditional.Country', 'Country') },\n { item: 'Place', active: false, placeholder: ted('message.dataupload.datasets.conditional.Place', 'Place') },\n { item: 'Continent', active: false, placeholder: ted('message.dataupload.datasets.conditional.Continent', 'Continent') },\n )\n}\n\nwatch(inputText, async () => {\n getAutocompleteSuggestions();\n})\nwatch(voc, async () => {\n voc.value = voc.value.toLowerCase();\n})\nwatch(manURL, async () => {\n props.context.node.input({ 'name': manURL, 'resource': manURL })\n})\nonMounted(async () => {\n matches = [{ name: ted('message.dataupload.info.searchVocabulary', '--- Type in anything for a live search of the vocabulary ---').value, resource: 'invalid' }]\n\n await nextTick()\n // DOM loaded\n if (props.context.value.name === undefined || props.context.value.name === \"\") {\n showTable.activeValue = false\n } else showTable.activeValue = true\n // console.log(showTable.activeValue);\n\n});\n\nfunction closeAll() {\n listOfVoc.value.forEach(element => {\n element.active = false;\n });\n}\nfunction removeProperty(e) {\n // props.context.value = {}\n showTable.activeValue = false\n props.context.node.input({})\n}\nfunction saveToLocal(el) {\n\n let pathToLocalStorage = JSON.parse(localStorage.getItem(`dpi_${route.params.property}`));\n let arr\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n arr = pathToLocalStorage.Advised['dcatde:politicalGeocodingURI'];\n }\n else arr = pathToLocalStorage.Advised['dct:spatial'];\n\n arr.forEach((element, index) => {\n if (Object.keys(element).length === 0) {\n arr.splice(index, 1)\n }\n })\n arr.push(props.context.node._value)\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n pathToLocalStorage.Advised['dcatde:politicalGeocodingURI'] = arr\n }\n else pathToLocalStorage.Advised['dct:spatial'] = arr\n\n localStorage.setItem(`dpi_${route.params.property}`, JSON.stringify(pathToLocalStorage))\n}\nconst getAutocompleteSuggestions = async () => {\n\n let vocCache = voc.value\n\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n\n vocCache = 'political-geocoding-' + vocCache.toLowerCase().replaceAll(\" \", '-')\n\n try {\n let text = inputText.value;\n await store.dispatch('dpiStore/requestAutocompleteSuggestions', { voc: vocCache, text: text, base: instance.api.baseUrl }).then((response) => {\n const results = response.data.result.results.map((r) => ({\n name: getTranslationFor(r.alt_label, locale.value, []) + \" (\" + r.id + \")\",\n resource: r.resource,\n }));\n matches = results;\n });\n } catch (error) {\n }\n }\n else {\n try {\n let text = inputText.value;\n await store.dispatch('dpiStore/requestAutocompleteSuggestions', { voc: vocCache, text: text, base: instance.api.baseUrl }).then((response) => {\n const results = response.data.result.results.map((r) => ({\n name: getTranslationFor(r.pref_label, locale.value, []) + \" (\" + r.id + \")\",\n resource: r.resource,\n }));\n matches = results;\n });\n } catch (error) {\n }\n }\n\n}\n\nvar showTable = reactive({\n first: false,\n second: false,\n third: false,\n activeValue: false\n})\n\nconst I1 = ref(null);\nconst I2 = ref(null);\nconst I3 = ref(null);\n\nonClickOutside(I1, event => showTable.first = false)\nonClickOutside(I2, event => showTable.second = false)\nonClickOutside(I3, event => showTable.third = false)\nfunction activeInput(e) {\n\n // console.log('in', showTable);\n if (e === \"showTable\") showTable.first = !showTable.first;\n if (e === \"showVocTable\") showTable.second = !showTable.second;\n if (e === \"showVocEntries\") {\n if (showTable.third === true) {\n }\n else showTable.third = !showTable.third;\n }\n}\nfunction manURLInput(e) {\n props.context.node.input({ 'name': e.target.value, 'resource': e.target.value })\n}\n// console.log(voc);\n</script>\n\n<template>\n <div class=\"d-flex flex-column w-100 spatialWrap\">\n <div class=\"d-flex formkit-inner mx-3 mb-3\" v-if=\"!props.context.attrs.multiple && showTable.activeValue\">\n <!-- <div class=\"infoI\">\n <div class=\"tooltipFormkit\">{{ props.context.attrs.info }}</div>\n </div> -->\n <a class=\"autocompleteInputSingleValue \">{{ props.context.value.name }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n </div>\n <div v-else>\n <div class=\" w-100 d-flex\">\n <div class=\"d-flex position-relative m-3 w-100\">\n <label class=\"w-100\"> {{ $t('message.dataupload.info.preferredInput') }}\n <input id=\"I1\" type=\"text\" class=\"selectInputField formkit-inner\" readonly=\"readonly\"\n :placeholder=\"$t('message.dataupload.info.preferredInput')\"\n @click=\"activeInput('showTable')\" />\n </label>\n\n <ul ref=\"I1\" v-show=\"showTable.first\" class=\"spatialListUpload\">\n <li @click=\"activeInput('showTable'); man = true; if (vocSearch) { vocSearch = false; };\"\n class=\"p-2 border-b border-gray-200 choosableItemsAC\">\n {{ $t('message.dataupload.datasets.conditional.manually') }}\n </li>\n <li @click=\"activeInput('showTable'); vocSearch = true; if (man) { man = false }\"\n class=\"p-2 border-b border-gray-200 choosableItemsAC\">\n {{ $t('message.dataupload.datasets.conditional.vocabulary') }}\n </li>\n </ul>\n </div>\n <div v-if=\"man\" class=\"d-flex position-relative m-3 w-100\">\n <label class=\"w-100\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n {{ $te('message.dataupload.datasets.isReferencedByUrl.placeholder') ? $t('message.dataupload.datasets.isReferencedByUrl.placeholder') : 'Provide an URL' }}\n <input type=\"URL\" class=\"selectInputField formkit-inner\" placeholder=\"URL\"\n @input=\"manURLInput($event)\">\n </label>\n </div>\n <div v-if=\"vocSearch\" class=\"d-flex position-relative m-3 w-100\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n <label class=\"w-100\"> {{ $te('message.dataupload.datasets.contributorType.placeholder') ? $t('message.dataupload.datasets.contributorType.placeholder') : 'Choose type of vocabulary' }} \n <input id=\"I2\" type=\"text\" class=\"selectInputField formkit-inner\" readonly=\"readonly\"\n :placeholder=\"$te('message.dataupload.datasets.accessRights.placeholder') ? $t('message.dataupload.datasets.accessRights.placeholder') : 'Choose type of vocabulary'\" @click=\"activeInput('showVocTable');\">\n </label>\n <ul ref=\"I2\" v-if=\"showTable.second\" class=\"spatialListUpload\">\n <li v-for=\"el in listOfVoc\" :key=\"el\" class=\"p-2 border-b border-gray-200 choosableItemsAC\"\n @click=\" closeAll(); el.active = !el.active; activeInput('showVocTable'); inputText = ''; voc = el.item\">\n {{ $t('message.dataupload.datasets.conditional.' + el.item) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"m-3\" v-if=\"vocSearch\">\n <div v-for=\"el in listOfVoc\" :key=\"el\" class=\"position-relative\">\n <label class=\"w-100\" v-if=\"el.active\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n {{ $te('message.dataupload.datasets.accessRights.placeholder') ? $t('message.dataupload.datasets.accessRights.placeholder') : 'Choose type of vocabulary' }} \n <input id=\"I3\" type=\"text\"\n v-model=\"inputText\" class=\"selectInputField formkit-inner\" :placeholder=\"el.placeholder ?? ''\"\n @click=\"activeInput('showVocEntries'); inputText = ''\"\n >\n </label>\n <ul ref=\"I3\" v-if=\"showTable.third && el.active\" class=\"spatialListUpload\">\n <li v-for=\"el in matches\" :key=\"el\" class=\"p-2 border-b border-gray-200 choosableItemsAC\"\n @click=\"props.context.node.input(el); inputText = el.name; activeInput('showVocEntries'); showTable.third = false; saveToLocal(el)\">\n {{ el.name }}</li>\n </ul>\n </div>\n\n </div>\n\n </div>\n </div>\n</template>\n\n<script>\n\nexport default {\n data() {\n return {\n man: false,\n vocSearch: false,\n }\n },\n\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.spatialWrap label {\n font-family: var(--fk-font-family-label);\n font-size: var(--fk-font-size-label);\n font-weight: var(--fk-font-weight-label);\n line-height: var(--fk-line-height-label);\n}\n\n.spatialWrap {\n .spatialListUpload {\n width: 100%;\n left: 0;\n top: 78px;\n }\n}\n</style>\n"],"names":["__default__","instance","getCurrentInstance","route","useRoute","props","__props","listOfVoc","ref","inputText","voc","matches","manURL","store","useStore","t","locale","useI18n","ted","useTed","watch","getAutocompleteSuggestions","onMounted","nextTick","showTable","closeAll","element","removeProperty","e","saveToLocal","el","pathToLocalStorage","arr","index","vocCache","text","response","r","getTranslationFor","reactive","I1","I2","I3","onClickOutside","event","activeInput","manURLInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;2CAiPeA,KAAA;AAAA,EACX,OAAO;AACH,WAAO;AAAA,MACH,KAAK;AAAA,MACL,WAAW;AAAA,IACf;AAAA,EACH;AAEL;;;;;;AA9OA,QAAIC,IAAWC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB,MACvEC,IAAQC,EAAQ;AAEpB,UAAMC,IAAQC;AAId,QAAIC,IAAYC,EAAI,EAAE,GAClBC,IAAYD,EAAI,EAAE,GAClBE,IAAMF,EAAI,EAAE,GACZG,IAAUH,EAAI,EAAE,GAChBI,IAASJ,EAAI,EAAE;AACnB,UAAMK,IAAQC,EAAQ,GAChB,EAAE,GAAAC,IAAG,QAAAC,MAAWC,KAChBC,IAAMC,EAAM;AAElB,IAAId,EAAM,QAAQ,MAAM,eAAe,2BACnCE,EAAU,MAAM;AAAA,MACZ,EAAE,MAAM,oBAAoB,QAAQ,IAAO,aAAaW,EAAI,4DAA4D,kBAAkB,EAAG;AAAA,MAC7I,EAAE,MAAM,gBAAgB,QA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Q,KAAK,MAAM,EAAE,MAAQuB,EAAE,OAAO,OAAO,UAAYA,EAAE,OAAO,MAAK,CAAE;AAAA,IACnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"SpatialInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/SpatialInput.vue"],"sourcesContent":["<script setup>\n\nimport { ref, reactive, watch, computed, onBeforeMount, onMounted, nextTick } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { onClickOutside } from '@vueuse/core'\nimport { getCurrentInstance } from \"vue\";\nimport { useRoute } from 'vue-router';\nimport { useI18n } from 'vue-i18n';\nimport { useTed } from '../../composables/useTed';\n\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nlet route = useRoute();\n\nconst props = defineProps({\n context: Object,\n})\n// let listOfVoc: [{ item: 'Country', active: false }, { item: 'Place', active: false }, { item: 'Continent', active: false }],\nlet listOfVoc = ref([])\nlet inputText = ref({})\nlet voc = ref({})\nlet matches = ref({})\nlet manURL = ref({})\nconst store = useStore();\nconst { t, locale } = useI18n();\nconst ted = useTed();\n\nconst man = ref(false)\nconst vocSearch = ref(false)\n\n// If true, then:\n// - hides the select input for manual and vocabulary\n// - pre-selects the vocabulary option\n// When using formkit schema, enable this option by setting vocabularyOnly to true\n// {\n// $formkit: 'spatialinput',\n// name: 'dcatde:politicalGeocodingURI',\n// identifier: 'politicalGeocodingURI',\n// vocabularyOnly: true,\n// }\nconst vocabularyOnly = computed(() => !!props.context?.attrs?.vocabularyOnly)\n\nif (props.context.attrs.identifier === 'politicalGeocodingURI') {\n listOfVoc.value.push(\n { item: 'Municipality Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Municipality Key', 'Municipality Key') },\n { item: 'Regional Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Regional Key', 'Regional Key') },\n { item: 'Municipal Association Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Municipal Association Key', 'Municipal Association Key') },\n { item: 'District Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.District Key', 'District Key') },\n { item: 'Government District Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.Government District Key', 'Government District Key') },\n { item: 'State Key', active: false, placeholder: ted('message.dataupload.datasets.conditional.State Key', 'State Key') },\n )\n\n}\nif (props.context.attrs.identifier === 'spatial') {\n listOfVoc.value.push(\n { item: 'Country', active: false, placeholder: ted('message.dataupload.datasets.conditional.Country', 'Country') },\n { item: 'Place', active: false, placeholder: ted('message.dataupload.datasets.conditional.Place', 'Place') },\n { item: 'Continent', active: false, placeholder: ted('message.dataupload.datasets.conditional.Continent', 'Continent') },\n )\n}\n\nwatch(inputText, async () => {\n getAutocompleteSuggestions();\n})\nwatch(voc, async () => {\n voc.value = voc.value.toLowerCase();\n})\nwatch(manURL, async () => {\n props.context.node.input({ 'name': manURL, 'resource': manURL })\n})\nonMounted(async () => {\n matches = [{ name: ted('message.dataupload.info.searchVocabulary', '--- Type in anything for a live search of the vocabulary ---').value, resource: 'invalid' }]\n\n await nextTick()\n // DOM loaded\n if (props.context.value.name === undefined || props.context.value.name === \"\") {\n showTable.activeValue = false\n } else showTable.activeValue = true\n // console.log(showTable.activeValue);\n\n if (vocabularyOnly.value) {\n activeInput('showTable'); vocSearch.value = true; if (man.value) { man.value = false }\n }\n\n});\n\nfunction closeAll() {\n listOfVoc.value.forEach(element => {\n element.active = false;\n });\n}\nfunction removeProperty(e) {\n // props.context.value = {}\n showTable.activeValue = false\n props.context.node.input({})\n}\nfunction saveToLocal(el) {\n\n let pathToLocalStorage = JSON.parse(localStorage.getItem(`dpi_${route.params.property}`));\n let arr\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n arr = pathToLocalStorage.Advised['dcatde:politicalGeocodingURI'];\n }\n else arr = pathToLocalStorage.Advised['dct:spatial'];\n\n arr.forEach((element, index) => {\n if (Object.keys(element).length === 0) {\n arr.splice(index, 1)\n }\n })\n arr.push(props.context.node._value)\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n pathToLocalStorage.Advised['dcatde:politicalGeocodingURI'] = arr\n }\n else pathToLocalStorage.Advised['dct:spatial'] = arr\n\n localStorage.setItem(`dpi_${route.params.property}`, JSON.stringify(pathToLocalStorage))\n}\nconst getAutocompleteSuggestions = async () => {\n\n let vocCache = voc.value\n\n if (props.context.attrs.identifier === 'politicalGeocodingURI') {\n\n vocCache = 'political-geocoding-' + vocCache.toLowerCase().replaceAll(\" \", '-')\n\n try {\n let text = inputText.value;\n await store.dispatch('dpiStore/requestAutocompleteSuggestions', { voc: vocCache, text: text, base: instance.api.baseUrl }).then((response) => {\n const results = response.data.result.results.map((r) => ({\n name: getTranslationFor(r.alt_label, locale.value, []) + \" (\" + r.id + \")\",\n resource: r.resource,\n }));\n matches = results;\n });\n } catch (error) {\n }\n }\n else {\n try {\n let text = inputText.value;\n await store.dispatch('dpiStore/requestAutocompleteSuggestions', { voc: vocCache, text: text, base: instance.api.baseUrl }).then((response) => {\n const results = response.data.result.results.map((r) => ({\n name: getTranslationFor(r.pref_label, locale.value, []) + \" (\" + r.id + \")\",\n resource: r.resource,\n }));\n matches = results;\n });\n } catch (error) {\n }\n }\n\n}\n\nvar showTable = reactive({\n first: false,\n second: false,\n third: false,\n activeValue: false\n})\n\nconst I1 = ref(null);\nconst I2 = ref(null);\nconst I3 = ref(null);\n\nonClickOutside(I1, event => showTable.first = false)\nonClickOutside(I2, event => showTable.second = false)\nonClickOutside(I3, event => showTable.third = false)\nfunction activeInput(e) {\n\n // console.log('in', showTable);\n if (e === \"showTable\") showTable.first = !showTable.first;\n if (e === \"showVocTable\") showTable.second = !showTable.second;\n if (e === \"showVocEntries\") {\n if (showTable.third === true) {\n }\n else showTable.third = !showTable.third;\n }\n}\nfunction manURLInput(e) {\n props.context.node.input({ 'name': e.target.value, 'resource': e.target.value })\n}\n// console.log(voc);\n</script>\n\n<template>\n <div class=\"d-flex flex-column w-100 spatialWrap\">\n <div class=\"d-flex formkit-inner mx-3 mb-3\" v-if=\"!props.context.attrs.multiple && showTable.activeValue\">\n <!-- <div class=\"infoI\">\n <div class=\"tooltipFormkit\">{{ props.context.attrs.info }}</div>\n </div> -->\n <a class=\"autocompleteInputSingleValue \">{{ props.context.value.name }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n </div>\n <div v-else>\n <div class=\" w-100 d-flex\">\n <div v-if=\"!vocabularyOnly\" class=\"d-flex position-relative m-3 w-100\">\n <label class=\"w-100\"> {{ $t('message.dataupload.info.preferredInput') }}\n <input id=\"I1\" type=\"text\" class=\"selectInputField formkit-inner\" readonly=\"readonly\"\n :placeholder=\"$t('message.dataupload.info.preferredInput')\"\n @click=\"activeInput('showTable')\" />\n </label>\n\n <ul ref=\"I1\" v-show=\"showTable.first\" class=\"spatialListUpload\">\n <li @click=\"activeInput('showTable'); man = true; if (vocSearch) { vocSearch = false; };\"\n class=\"p-2 border-b border-gray-200 choosableItemsAC\">\n {{ $t('message.dataupload.datasets.conditional.manually') }}\n </li>\n <li @click=\"activeInput('showTable'); vocSearch = true; if (man) { man = false }\"\n class=\"p-2 border-b border-gray-200 choosableItemsAC\">\n {{ $t('message.dataupload.datasets.conditional.vocabulary') }}\n </li>\n </ul>\n </div>\n <div v-if=\"man\" class=\"d-flex position-relative m-3 w-100\">\n <label class=\"w-100\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n {{ $te('message.dataupload.datasets.isReferencedByUrl.placeholder') ? $t('message.dataupload.datasets.isReferencedByUrl.placeholder') : 'Provide an URL' }}\n <input type=\"URL\" class=\"selectInputField formkit-inner\" placeholder=\"URL\"\n @input=\"manURLInput($event)\">\n </label>\n </div>\n <div v-if=\"vocSearch\" class=\"d-flex position-relative m-3 w-100\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n <label class=\"w-100\"> {{ $te('message.dataupload.datasets.contributorType.placeholder') ? $t('message.dataupload.datasets.contributorType.placeholder') : 'Choose type of vocabulary' }} \n <input id=\"I2\" type=\"text\" class=\"selectInputField formkit-inner\" readonly=\"readonly\"\n :placeholder=\"$te('message.dataupload.datasets.accessRights.placeholder') ? $t('message.dataupload.datasets.accessRights.placeholder') : 'Choose type of vocabulary'\" @click=\"activeInput('showVocTable');\">\n </label>\n <ul ref=\"I2\" v-if=\"showTable.second\" class=\"spatialListUpload\">\n <li v-for=\"el in listOfVoc\" :key=\"el\" class=\"p-2 border-b border-gray-200 choosableItemsAC\"\n @click=\" closeAll(); el.active = !el.active; activeInput('showVocTable'); inputText = ''; voc = el.item\">\n {{ $t('message.dataupload.datasets.conditional.' + el.item) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"m-3\" v-if=\"vocSearch\">\n <div v-for=\"el in listOfVoc\" :key=\"el\" class=\"position-relative\">\n <label class=\"w-100\" v-if=\"el.active\">\n <!-- todo: I borrowed this from another input. Maybe refactor? -->\n {{ $te('message.dataupload.datasets.accessRights.placeholder') ? $t('message.dataupload.datasets.accessRights.placeholder') : 'Choose type of vocabulary' }} \n <input id=\"I3\" type=\"text\"\n v-model=\"inputText\" class=\"selectInputField formkit-inner\" :placeholder=\"el.placeholder ?? ''\"\n @click=\"activeInput('showVocEntries'); inputText = ''\"\n >\n </label>\n <ul ref=\"I3\" v-if=\"showTable.third && el.active\" class=\"spatialListUpload\">\n <li v-for=\"el in matches\" :key=\"el\" class=\"p-2 border-b border-gray-200 choosableItemsAC\"\n @click=\"props.context.node.input(el); inputText = el.name; activeInput('showVocEntries'); showTable.third = false; saveToLocal(el)\">\n {{ el.name }}</li>\n </ul>\n </div>\n\n </div>\n\n </div>\n </div>\n</template>\n\n<script>\n\n</script>\n\n<style lang=\"scss\" scoped>\n.spatialWrap label {\n font-family: var(--fk-font-family-label);\n font-size: var(--fk-font-size-label);\n font-weight: var(--fk-font-weight-label);\n line-height: var(--fk-line-height-label);\n}\n\n.spatialWrap {\n .spatialListUpload {\n width: 100%;\n left: 0;\n top: 78px;\n }\n}\n</style>\n"],"names":["instance","getCurrentInstance","route","useRoute","props","__props","listOfVoc","ref","inputText","voc","matches","manURL","store","useStore","t","locale","useI18n","ted","useTed","man","vocSearch","vocabularyOnly","computed","_b","_a","watch","getAutocompleteSuggestions","onMounted","nextTick","showTable","activeInput","closeAll","element","removeProperty","e","saveToLocal","el","pathToLocalStorage","arr","index","vocCache","text","response","r","getTranslationFor","reactive","I1","I2","I3","onClickOutside","event","manURLInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,QAAIA,IAAWC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB,MACvEC,IAAQC,EAAQ;AAEpB,UAAMC,IAAQC;AAId,QAAIC,IAAYC,EAAI,EAAE,GAClBC,IAAYD,EAAI,EAAE,GAClBE,IAAMF,EAAI,EAAE,GACZG,IAAUH,EAAI,EAAE,GAChBI,IAASJ,EAAI,EAAE;AACnB,UAAMK,IAAQC,EAAQ,GAChB,EAAE,GAAAC,IAAG,QAAAC,MAAWC,MAChBC,IAAMC,GAAM,GAEZC,IAAMZ,EAAI,EAAK,GACfa,IAAYb,EAAI,EAAK,GAYrBc,IAAiBC,EAAS;;AAAM,cAAC,GAACC,KAAAC,IAAApB,EAAM,YAAN,gBAAAoB,EAAe,UAAf,QAAAD,EAAsB;AAAA,KAAc;AAE5E,IAAInB,EAAM,QAAQ,MAAM,eAAe,2BACnCE,EAAU,MAAM;AAAA,MACZ,EAAE,MAAM,oBAAoB,QAAQ,IAAO,aAAaW,EAAI,4DAA4D,kBAAkB,EAAG;AAAA,MAC7I,EAAE,MAAM,gBAAgB,QAAQ,IAAO,aAAaA,EAAI,wDAAwD,cAAc,EAAG;AAAA,MACjI,EAAE,MAAM,6BAA6B,QAAQ,IAAO,aAAaA,EAAI,qEAAqE,2BAA2B,EAAG;AAAA,MACxK,E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O,UAAYA,EAAE,OAAO,MAAK,CAAE;AAAA,IACnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
datasets: {
|
|
3
3
|
Mandatory: ["title", "datasetID", "description", "catalog", "publisher", "theme", "issued", "modified"],
|
|
4
|
-
Advised: ["politicalGeocodingLevelURI", "politicalGeocodingURI", "availabilityDE", "contributorID", "geocodingDescription", "legalBasis", "qualityProcessURI", "references", "contributor", "originator", "maintainer", "keyword", "
|
|
4
|
+
Advised: ["politicalGeocodingLevelURI", "politicalGeocodingURI", "availabilityDE", "contributorID", "geocodingDescription", "legalBasis", "qualityProcessURI", "references", "contributor", "originator", "maintainer", "keyword", "contactPoint", "landingPage", "accrualPeriodicity", "language", "spatial", "temporal", "creator", "identifier", "admsIdentifier", "page", "accessRights"],
|
|
5
5
|
Recommended: ["type", "isUsedBy", "conformsTo", "versionInfo", "versionNotes", "temporalResolution", "spatialResolutionInMeters", "relation", "qualifiedRelation", "isReferencedBy", "hasVersion", "isVersionOf", "source", "provenance", "qualifiedAttribution", "wasGeneratedBy"],
|
|
6
6
|
Distributions: [],
|
|
7
7
|
Overview: ["overview"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-content-config.mjs","sources":["../../../../lib/data-provider-interface/config/dcatapde/page-content-config.js"],"sourcesContent":["const config = {\n datasets: {\n Mandatory: [ 'title', 'datasetID', 'description', 'catalog', 'publisher', 'theme', 'issued', 'modified' ],\n Advised: [ 'politicalGeocodingLevelURI', 'politicalGeocodingURI', 'availabilityDE', 'contributorID', 'geocodingDescription', 'legalBasis', 'qualityProcessURI', 'references', 'contributor', 'originator', 'maintainer', 'keyword', '
|
|
1
|
+
{"version":3,"file":"page-content-config.mjs","sources":["../../../../lib/data-provider-interface/config/dcatapde/page-content-config.js"],"sourcesContent":["const config = {\n datasets: {\n Mandatory: [ 'title', 'datasetID', 'description', 'catalog', 'publisher', 'theme', 'issued', 'modified' ],\n Advised: [ 'politicalGeocodingLevelURI', 'politicalGeocodingURI', 'availabilityDE', 'contributorID', 'geocodingDescription', 'legalBasis', 'qualityProcessURI', 'references', 'contributor', 'originator', 'maintainer', 'keyword', 'contactPoint', 'landingPage', 'accrualPeriodicity', 'language', 'spatial', 'temporal', 'creator', 'identifier', 'admsIdentifier', 'page', 'accessRights' ],\n Recommended: [ 'type', 'isUsedBy', 'conformsTo', 'versionInfo', 'versionNotes', 'temporalResolution', 'spatialResolutionInMeters', 'relation', 'qualifiedRelation', 'isReferencedBy', 'hasVersion', 'isVersionOf', 'source', 'provenance', 'qualifiedAttribution', 'wasGeneratedBy' ],\n Distributions: [],\n Overview: [ 'overview' ]\n },\n distributions: {\n Mandatory: [ 'accessURL', 'title', 'description' ],\n Advised: [ 'licence', 'licenseAttributionByText', 'downloadUrl', 'format', 'mediaType', 'status', 'availability', 'issued', 'modified' ],\n Recommended: [ 'type', 'byteSize', 'checksum', 'compressFormat', 'packageFormat', 'language', 'page', 'conformsTo', 'rights', 'hasPolicy', 'temporalResolution', 'spatialResolutionInMeters' ],\n DataService: [ 'accessService' ]\n },\n catalogues: {\n Mandatory: [ 'title', 'availabilityCatDE', 'datasetID', 'description', 'publisher', 'language', 'homepage', 'licence' ],\n Advised: [ 'spatial', 'hasPart', 'isPartOf', 'rights', 'catalog', 'creator' ],\n Overview: ['overview']\n }\n };\n \n export default config;\n "],"names":["config"],"mappings":"AAAK,MAACA,IAAS;AAAA,EACX,UAAU;AAAA,IACR,WAAW,CAAE,SAAS,aAAa,eAAe,WAAW,aAAa,SAAS,UAAU,UAAY;AAAA,IACzG,SAAS,CAAE,8BAA8B,yBAAyB,kBAAkB,iBAAiB,wBAAwB,cAAc,qBAAqB,cAAc,eAAe,cAAc,cAAc,WAAW,gBAAgB,eAAe,sBAAsB,YAAY,WAAW,YAAY,WAAW,cAAc,kBAAkB,QAAQ,cAAgB;AAAA,IAC/X,aAAa,CAAE,QAAQ,YAAY,cAAc,eAAe,gBAAgB,sBAAsB,6BAA6B,YAAY,qBAAqB,kBAAkB,cAAc,eAAe,UAAU,cAAc,wBAAwB,gBAAkB;AAAA,IACrR,eAAe,CAAE;AAAA,IACjB,UAAU,CAAE,UAAY;AAAA,EACzB;AAAA,EACD,eAAe;AAAA,IACb,WAAW,CAAE,aAAa,SAAS,aAAe;AAAA,IAClD,SAAS,CAAE,WAAW,4BAA4B,eAAe,UAAU,aAAa,UAAU,gBAAgB,UAAU,UAAY;AAAA,IACxI,aAAa,CAAE,QAAQ,YAAY,YAAY,kBAAkB,iBAAiB,YAAY,QAAQ,cAAc,UAAU,aAAa,sBAAsB,2BAA6B;AAAA,IAC9L,aAAa,CAAE,eAAiB;AAAA,EACjC;AAAA,EACD,YAAY;AAAA,IACV,WAAW,CAAE,SAAS,qBAAqB,aAAa,eAAe,aAAa,YAAY,YAAY,SAAW;AAAA,IACvH,SAAS,CAAE,WAAW,WAAW,YAAY,UAAU,WAAW,SAAW;AAAA,IAC7E,UAAU,CAAC,UAAU;AAAA,EACtB;AACL;"}
|
|
@@ -361,7 +361,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
361
361
|
data: ObjectConstructor;
|
|
362
362
|
dpiLocale: StringConstructor;
|
|
363
363
|
}>, {}, {}, {}, {
|
|
364
|
-
showDataService(): boolean | undefined;
|
|
365
364
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
366
365
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
367
366
|
checkadms(str: any): boolean | undefined;
|
|
@@ -621,7 +620,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
621
620
|
data: ObjectConstructor;
|
|
622
621
|
dpiLocale: StringConstructor;
|
|
623
622
|
}>, {}, {}, {}, {
|
|
624
|
-
showDataService(): boolean | undefined;
|
|
625
623
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
626
624
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
627
625
|
checkadms(str: any): boolean | undefined;
|
|
@@ -811,7 +809,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
811
809
|
data: ObjectConstructor;
|
|
812
810
|
dpiLocale: StringConstructor;
|
|
813
811
|
}>, {}, {}, {}, {
|
|
814
|
-
showDataService(): boolean | undefined;
|
|
815
812
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
816
813
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
817
814
|
checkadms(str: any): boolean | undefined;
|
|
@@ -138,7 +138,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
138
138
|
data: ObjectConstructor;
|
|
139
139
|
dpiLocale: StringConstructor;
|
|
140
140
|
}>, {}, {}, {}, {
|
|
141
|
-
showDataService(): boolean | undefined;
|
|
142
141
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
143
142
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
144
143
|
checkadms(str: any): boolean | undefined;
|
|
@@ -308,7 +308,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
308
308
|
data: ObjectConstructor;
|
|
309
309
|
dpiLocale: StringConstructor;
|
|
310
310
|
}>, {}, {}, {}, {
|
|
311
|
-
showDataService(): boolean | undefined;
|
|
312
311
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
313
312
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
314
313
|
checkadms(str: any): boolean | undefined;
|
|
@@ -568,7 +567,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
568
567
|
data: ObjectConstructor;
|
|
569
568
|
dpiLocale: StringConstructor;
|
|
570
569
|
}>, {}, {}, {}, {
|
|
571
|
-
showDataService(): boolean | undefined;
|
|
572
570
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
573
571
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
574
572
|
checkadms(str: any): boolean | undefined;
|
|
@@ -211,7 +211,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
211
211
|
data: ObjectConstructor;
|
|
212
212
|
dpiLocale: StringConstructor;
|
|
213
213
|
}>, {}, {}, {}, {
|
|
214
|
-
showDataService(): boolean | undefined;
|
|
215
214
|
manualSwitch(propData: any, head: any): false | "head" | "auto" | "man" | "liMan" | "liAuto" | undefined;
|
|
216
215
|
showMultilingualValue(property: any, value: any): boolean | "";
|
|
217
216
|
checkadms(str: any): boolean | undefined;
|