@piveau/piveau-hub-ui-modules 4.6.92 → 4.6.95
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/CatalogueMQA.vue.mjs +52 -52
- package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs +108 -116
- package/dist/data-provider-interface/components/ConditionalInput.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs +10 -10
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.mjs.map +1 -1
- package/dist/datasets/DatasetList.vue.mjs +10 -10
- package/dist/datasets/DatasetList.vue.mjs.map +1 -1
- package/dist/facets/SelectedFacetsOverview.vue.mjs +2 -2
- package/dist/facets/SelectedFacetsOverview.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,86 +1,94 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as R, ref as m, computed as b, watchEffect as B, resolveComponent as H, openBlock as a, createElementBlock as n, toDisplayString as f, createTextVNode as r, unref as i, createStaticVNode as T, createCommentVNode as u, createElementVNode as l, withDirectives as L, isRef as M, vModelText as U, Fragment as k, renderList as C, createVNode as w, createBlock as P } from "vue";
|
|
2
2
|
import q from "./AutocompleteInput.vue.mjs";
|
|
3
3
|
import { onClickOutside as F } from "../../external/@vueuse/core/index";
|
|
4
|
-
import { useRuntimeEnv as
|
|
5
|
-
import { useStore as
|
|
4
|
+
import { useRuntimeEnv as j } from "../../composables/useRuntimeEnv.mjs";
|
|
5
|
+
import { useStore as O } from "vuex";
|
|
6
6
|
import "../../utils/helpers.mjs";
|
|
7
7
|
import "@formkit/core";
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { useRequestUriName as
|
|
8
|
+
import { useI18n as X } from "vue-i18n";
|
|
9
|
+
import { useRequestUriName as z } from "../composables/useRequestUriName.mjs";
|
|
10
10
|
import "./ConditionalInput.vue2.mjs";
|
|
11
|
-
const
|
|
11
|
+
const K = { class: "formkitProperty" }, W = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "formkitHeader"
|
|
14
|
-
},
|
|
14
|
+
}, Y = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "formkitHeader"
|
|
17
|
-
},
|
|
17
|
+
}, G = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "d-flex infoLicense py-5"
|
|
20
|
-
},
|
|
20
|
+
}, J = {
|
|
21
21
|
key: 3,
|
|
22
22
|
class: "d-flex infoLicense py-5"
|
|
23
|
-
},
|
|
23
|
+
}, Q = {
|
|
24
24
|
key: 4,
|
|
25
25
|
class: "formkitCmpWrap simpleConditional"
|
|
26
|
-
},
|
|
26
|
+
}, Z = { class: "m-3" }, ee = { class: "conditionalSelectDiv" }, te = ["placeholder"], oe = { key: 0 }, ae = { class: "selectListConditional" }, ne = ["onClick"], se = { class: "conditionalManual" }, ie = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "d-flex"
|
|
29
|
-
},
|
|
29
|
+
}, re = { key: 0 }, le = {
|
|
30
30
|
key: 5,
|
|
31
31
|
class: "formkitCmpWrap simpleConditional"
|
|
32
|
-
},
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "formkit-help position-absolute"
|
|
35
|
-
}, ve = { class: "conditionalManual" }, he = {
|
|
32
|
+
}, de = { class: "m-3" }, ue = { class: "conditionalSelectDiv" }, ce = ["placeholder"], pe = { key: 0 }, me = { class: "selectListConditional" }, fe = ["onClick"], ve = ["innerHTML"], he = { class: "conditionalManual" }, ye = {
|
|
36
33
|
key: 0,
|
|
37
34
|
class: "d-flex"
|
|
38
|
-
},
|
|
35
|
+
}, ge = {
|
|
39
36
|
key: 0,
|
|
40
37
|
class: ""
|
|
41
|
-
},
|
|
38
|
+
}, xe = {
|
|
42
39
|
key: 1,
|
|
43
40
|
class: "conditionalVocabulary d-flex"
|
|
44
|
-
},
|
|
41
|
+
}, be = { class: "autocompleteInputSingleValue" }, ke = ["innerHTML"], Se = {
|
|
45
42
|
__name: "ConditionalInput",
|
|
46
43
|
props: {
|
|
47
44
|
context: Object
|
|
48
45
|
},
|
|
49
|
-
setup(
|
|
50
|
-
let
|
|
51
|
-
const t =
|
|
52
|
-
|
|
53
|
-
const { t:
|
|
46
|
+
setup($) {
|
|
47
|
+
let I = j();
|
|
48
|
+
const t = $;
|
|
49
|
+
R().appContext.app.config.globalProperties.$env;
|
|
50
|
+
const { t: y, locale: E } = X(), D = (s) => ({
|
|
51
|
+
licence: y("message.dataupload.distributions.licence.vocabulary.help"),
|
|
52
|
+
publisher: `
|
|
53
|
+
Vocabulary (see
|
|
54
|
+
<a href='https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence'
|
|
55
|
+
target='_blank' rel='noopener noreferrer'>EU Vocabularies</a>
|
|
56
|
+
and
|
|
57
|
+
<a href='https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body'
|
|
58
|
+
target='_blank' rel='noopener noreferrer'>Corporate Body</a>
|
|
59
|
+
for details on the entities.)
|
|
60
|
+
`
|
|
61
|
+
})[s] || "Search the vocabulary";
|
|
54
62
|
let d = m(), c = m(!1), p = m(!1);
|
|
55
|
-
t.context.attrs.voc,
|
|
63
|
+
t.context.attrs.voc, O();
|
|
56
64
|
let v = m();
|
|
57
|
-
const { execute:
|
|
58
|
-
res:
|
|
59
|
-
voc:
|
|
60
|
-
property:
|
|
61
|
-
locale:
|
|
65
|
+
const { execute: S, error: Ce, isLoading: we } = z({
|
|
66
|
+
res: b(() => t.context.value.name),
|
|
67
|
+
voc: b(() => t.context.attrs.voc),
|
|
68
|
+
property: b(() => t.context.attrs.property),
|
|
69
|
+
locale: E
|
|
62
70
|
});
|
|
63
|
-
|
|
64
|
-
t.context.value.name && (v.value != t.context.value.name && (t.context.value.name === t.context.value.resource ?
|
|
71
|
+
B(() => {
|
|
72
|
+
t.context.value.name && (v.value != t.context.value.name && (t.context.value.name === t.context.value.resource ? S().then((s) => {
|
|
65
73
|
v.value = s;
|
|
66
74
|
}).catch((s) => {
|
|
67
75
|
console.error(s);
|
|
68
|
-
}) : v.value = t.context.value.name), d.value =
|
|
76
|
+
}) : v.value = t.context.value.name), d.value = y("message.dataupload.datasets.conditional.vocabulary")), t.context.value["foaf:name"] && (d.value = y("message.dataupload.datasets.conditional.manually"));
|
|
69
77
|
});
|
|
70
|
-
const
|
|
78
|
+
const g = m(null), _ = (s) => {
|
|
71
79
|
p.value = !p.value;
|
|
72
|
-
},
|
|
80
|
+
}, A = () => {
|
|
73
81
|
t.context.node.reset();
|
|
74
82
|
}, V = (s, e) => {
|
|
75
83
|
d.value = e, c.value = s, t.context.node.reset(), t.context.value = "";
|
|
76
84
|
};
|
|
77
|
-
return F(
|
|
78
|
-
const
|
|
79
|
-
return
|
|
80
|
-
t.context.attrs.class != null && t.context.attrs.class.includes("inDistribution") ? (
|
|
81
|
-
e[
|
|
82
|
-
t.context.attrs.identifier === "licence" &&
|
|
83
|
-
|
|
85
|
+
return F(g, (s) => p.value = !1), (s, e) => {
|
|
86
|
+
const x = H("FormKit");
|
|
87
|
+
return a(), n("div", K, [
|
|
88
|
+
t.context.attrs.class != null && t.context.attrs.class.includes("inDistribution") ? (a(), n("h4", W, f(s.$t("message.dataupload.distributions." + t.context.attrs.identifier + ".label")), 1)) : (a(), n("h4", Y, f(s.$t("message.dataupload.datasets." + t.context.attrs.identifier + ".label")), 1)),
|
|
89
|
+
e[18] || (e[18] = r()),
|
|
90
|
+
t.context.attrs.identifier === "licence" && i(I).content.dataProviderInterface.annifIntegration ? (a(), n("div", G, [...e[6] || (e[6] = [
|
|
91
|
+
T(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <div class="w-80"><p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind
|
|
84
92
|
that <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]" target="_blank" rel="nofollow noopener"><ins>Decision 2011/833/EU</ins></a> allows for their commercial
|
|
85
93
|
reuse without
|
|
86
94
|
prior authorisation, except for the material subject to the third party intellectual property rights. This
|
|
@@ -93,9 +101,9 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
93
101
|
approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your
|
|
94
102
|
organisation</strong> before publishing or submitting your dataset.</p> <p>If you need further information regarding copyright issues, please contact us at <a href="mailto:op-copyright@publications.europa.eu" target="_blank" rel="nofollow noopener">op-copyright@publications.europa.eu</a></p></div>`, 3)
|
|
95
103
|
])])) : u("", !0),
|
|
96
|
-
e[
|
|
97
|
-
t.context.attrs.identifier === "rights" &&
|
|
98
|
-
|
|
104
|
+
e[19] || (e[19] = r()),
|
|
105
|
+
t.context.attrs.identifier === "rights" && i(I).content.dataProviderInterface.annifIntegration ? (a(), n("div", J, [...e[7] || (e[7] = [
|
|
106
|
+
T(`<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" fill="currentColor" class="bi bi-info-circle mx-3 mb-3 mt-1 infoboxI" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"></path></svg> <p class="textInfoI">As owner of your dataset, you guarantee that it does not violate the copyright, other
|
|
99
107
|
intellectual property or
|
|
100
108
|
privacy rights of any third party. In particular, if third party material is included in the dataset, you must
|
|
101
109
|
ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.
|
|
@@ -103,35 +111,35 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
103
111
|
If you need further information regarding copyright issues, please contact us at
|
|
104
112
|
<a href="mailto:op-copyright@publications.europa.eu">op-copyright@publications.europa.eu</a></p>`, 3)
|
|
105
113
|
])])) : u("", !0),
|
|
106
|
-
e[
|
|
107
|
-
t.context.attrs.identifier === "rights" ? (
|
|
108
|
-
l("div",
|
|
109
|
-
l("div",
|
|
114
|
+
e[20] || (e[20] = r()),
|
|
115
|
+
t.context.attrs.identifier === "rights" ? (a(), n("div", Q, [
|
|
116
|
+
l("div", Z, [
|
|
117
|
+
l("div", ee, [
|
|
110
118
|
L(l("input", {
|
|
111
119
|
ref_key: "I1",
|
|
112
|
-
ref:
|
|
120
|
+
ref: g,
|
|
113
121
|
type: "text",
|
|
114
122
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
115
123
|
onClick: e[0] || (e[0] = (o) => _()),
|
|
116
124
|
placeholder: t.context.attrs.placeholder,
|
|
117
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) =>
|
|
118
|
-
}, null, 8,
|
|
119
|
-
[
|
|
125
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => M(d) ? d.value = o : d = o)
|
|
126
|
+
}, null, 8, te), [
|
|
127
|
+
[U, i(d)]
|
|
120
128
|
]),
|
|
121
|
-
e[8] || (e[8] =
|
|
122
|
-
|
|
123
|
-
l("ul",
|
|
124
|
-
(
|
|
129
|
+
e[8] || (e[8] = r()),
|
|
130
|
+
i(p) ? (a(), n("div", oe, [
|
|
131
|
+
l("ul", ae, [
|
|
132
|
+
(a(!0), n(k, null, C(t.context.attrs.selection, (o, h) => (a(), n("li", {
|
|
125
133
|
class: "p-2 border-b border-gray-200",
|
|
126
|
-
onClick: (
|
|
134
|
+
onClick: (N) => V(o, s.$t("message.dataupload.datasets.conditional." + o))
|
|
127
135
|
}, f(s.$t("message.dataupload.datasets.conditional." + o)), 9, ne))), 256))
|
|
128
136
|
])
|
|
129
137
|
])) : u("", !0)
|
|
130
138
|
]),
|
|
131
|
-
e[9] || (e[9] =
|
|
132
|
-
l("div",
|
|
133
|
-
|
|
134
|
-
|
|
139
|
+
e[9] || (e[9] = r()),
|
|
140
|
+
l("div", se, [
|
|
141
|
+
i(c) === "URL" || t.context.node.value["@type"] === "url" ? (a(), n("div", ie, [
|
|
142
|
+
w(x, {
|
|
135
143
|
type: "url",
|
|
136
144
|
placeholder: s.$t("message.dataupload.datasets.conditional.URL"),
|
|
137
145
|
name: "rdfs:label",
|
|
@@ -143,9 +151,9 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
143
151
|
}, null, 8, ["placeholder", "modelValue"])
|
|
144
152
|
])) : u("", !0)
|
|
145
153
|
]),
|
|
146
|
-
e[10] || (e[10] =
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
e[10] || (e[10] = r()),
|
|
155
|
+
i(c) === "Text" || t.context.value["@type"] === "text" ? (a(), n("div", re, [
|
|
156
|
+
w(x, {
|
|
149
157
|
type: "text",
|
|
150
158
|
placeholder: s.$t("message.dataupload.datasets.conditional.Text"),
|
|
151
159
|
name: "rdfs:label",
|
|
@@ -156,57 +164,41 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
156
164
|
}, null, 8, ["placeholder", "modelValue"])
|
|
157
165
|
])) : u("", !0)
|
|
158
166
|
])
|
|
159
|
-
])) : (
|
|
160
|
-
l("div",
|
|
161
|
-
l("div",
|
|
167
|
+
])) : (a(), n("div", le, [
|
|
168
|
+
l("div", de, [
|
|
169
|
+
l("div", ue, [
|
|
162
170
|
L(l("input", {
|
|
163
171
|
ref_key: "I1",
|
|
164
|
-
ref:
|
|
172
|
+
ref: g,
|
|
165
173
|
type: "text",
|
|
166
174
|
class: "conditionalSelect formkit-input formkit-inner",
|
|
167
175
|
onClick: e[4] || (e[4] = (o) => _()),
|
|
168
176
|
placeholder: t.context.attrs.placeholder,
|
|
169
|
-
"onUpdate:modelValue": e[5] || (e[5] = (o) =>
|
|
177
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => M(d) ? d.value = o : d = o),
|
|
170
178
|
readonly: ""
|
|
171
|
-
}, null, 8,
|
|
172
|
-
[
|
|
179
|
+
}, null, 8, ce), [
|
|
180
|
+
[U, i(d)]
|
|
173
181
|
]),
|
|
174
|
-
e[
|
|
175
|
-
|
|
176
|
-
l("ul",
|
|
177
|
-
(
|
|
182
|
+
e[11] || (e[11] = r()),
|
|
183
|
+
i(p) ? (a(), n("div", pe, [
|
|
184
|
+
l("ul", me, [
|
|
185
|
+
(a(!0), n(k, null, C(t.context.attrs.selection, (o, h) => (a(), n("li", {
|
|
178
186
|
class: "p-2 border-b border-gray-200",
|
|
179
|
-
onClick: (
|
|
180
|
-
}, f(s.$t("message.dataupload.datasets.conditional." + o)), 9,
|
|
187
|
+
onClick: (N) => V(o, s.$t("message.dataupload.datasets.conditional." + o))
|
|
188
|
+
}, f(s.$t("message.dataupload.datasets.conditional." + o)), 9, fe))), 256))
|
|
181
189
|
])
|
|
182
190
|
])) : u("", !0),
|
|
183
|
-
e[
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
href: "https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence",
|
|
190
|
-
target: "_blank",
|
|
191
|
-
rel: "noopener noreferrer"
|
|
192
|
-
}, "EU Vocabularies", -1),
|
|
193
|
-
i(`
|
|
194
|
-
and
|
|
195
|
-
`, -1),
|
|
196
|
-
l("a", {
|
|
197
|
-
href: "https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body",
|
|
198
|
-
target: "_blank",
|
|
199
|
-
rel: "noopener noreferrer"
|
|
200
|
-
}, "Corporate Body", -1),
|
|
201
|
-
i(`
|
|
202
|
-
for details on the entities.)
|
|
203
|
-
`, -1)
|
|
204
|
-
])])) : u("", !0)
|
|
191
|
+
e[12] || (e[12] = r()),
|
|
192
|
+
i(c) === "vocabulary" ? (a(), n("div", {
|
|
193
|
+
key: 1,
|
|
194
|
+
innerHTML: D(t.context.attrs.identifier),
|
|
195
|
+
class: "formkit-help position-absolute"
|
|
196
|
+
}, null, 8, ve)) : u("", !0)
|
|
205
197
|
]),
|
|
206
|
-
e[
|
|
207
|
-
l("div",
|
|
208
|
-
|
|
209
|
-
(
|
|
198
|
+
e[14] || (e[14] = r()),
|
|
199
|
+
l("div", he, [
|
|
200
|
+
i(c) === "manually" || Object.keys(t.context.value).length > 0 && t.context.value["foaf:name"] && i(c) != "vocabulary" ? (a(), n("div", ye, [
|
|
201
|
+
(a(!0), n(k, null, C(t.context.attrs.options, (o, h) => (a(), P(x, {
|
|
210
202
|
type: h,
|
|
211
203
|
placeholder: s.$t("message.dataupload.datasets.individual." + o),
|
|
212
204
|
name: o,
|
|
@@ -215,27 +207,27 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
215
207
|
}, null, 8, ["type", "placeholder", "name", "validation"]))), 256))
|
|
216
208
|
])) : u("", !0)
|
|
217
209
|
]),
|
|
218
|
-
e[
|
|
219
|
-
|
|
220
|
-
|
|
210
|
+
e[15] || (e[15] = r()),
|
|
211
|
+
i(c) === "vocabulary" && !t.context.value.name ? (a(), n("div", ge, [
|
|
212
|
+
w(q, {
|
|
221
213
|
context: t.context
|
|
222
214
|
}, null, 8, ["context"])
|
|
223
215
|
])) : u("", !0),
|
|
224
|
-
e[
|
|
225
|
-
t.context.value.name ? (
|
|
226
|
-
l("a",
|
|
227
|
-
e[
|
|
216
|
+
e[16] || (e[16] = r()),
|
|
217
|
+
t.context.value.name ? (a(), n("div", xe, [
|
|
218
|
+
l("a", be, f(i(v)), 1),
|
|
219
|
+
e[13] || (e[13] = r()),
|
|
228
220
|
l("div", {
|
|
229
221
|
class: "removeX",
|
|
230
|
-
onClick:
|
|
222
|
+
onClick: A
|
|
231
223
|
})
|
|
232
224
|
])) : u("", !0),
|
|
233
|
-
e[
|
|
234
|
-
|
|
225
|
+
e[17] || (e[17] = r()),
|
|
226
|
+
i(c) === "manually" ? (a(), n("div", {
|
|
235
227
|
key: 2,
|
|
236
228
|
innerHTML: t.context.attrs.info,
|
|
237
229
|
class: "formkit-help"
|
|
238
|
-
}, null, 8,
|
|
230
|
+
}, null, 8, ke)) : u("", !0)
|
|
239
231
|
])
|
|
240
232
|
]))
|
|
241
233
|
]);
|
|
@@ -243,6 +235,6 @@ const z = { class: "formkitProperty" }, K = {
|
|
|
243
235
|
}
|
|
244
236
|
};
|
|
245
237
|
export {
|
|
246
|
-
|
|
238
|
+
Se as default
|
|
247
239
|
};
|
|
248
240
|
//# sourceMappingURL=ConditionalInput.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind\n that <a href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial\n reuse without\n prior authorisation, except for the material subject to the third party intellectual property rights. This\n Decision has been implemented under the <a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a> by which Creative\n Commons\n Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's\n reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be\n distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0\n 1.0).</p>\n <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have\n approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your\n organisation</strong> before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at <a\n href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\"\n rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\" readonly>\n\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n <!-- <div v-if=\"selectedItem === 'vocabulary'\"\n v-html=\"$t('Vocabulary (see EU Vocabularies and Corporate Body for details on the entities.)')\"\n class=\"formkit-help position-absolute\">\n </div> -->\n <div v-if=\"selectedItem === 'vocabulary'\" class=\"formkit-help position-absolute\">\n Vocabulary (see\n <a href=\"https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence\"\n target=\"_blank\" rel=\"noopener noreferrer\">EU Vocabularies</a>\n and\n <a href=\"https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body\"\n target=\"_blank\" rel=\"noopener noreferrer\">Corporate Body</a>\n for details on the entities.)\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n resolvedUriName }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-if=\"selectedItem === 'manually'\" v-html=\"props.context.attrs.info\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\n\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { ref, watch, computed, onMounted, watchEffect, toRef } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { getCurrentInstance } from \"vue\";\nimport { getNode } from '@formkit/core'\nimport { useI18n } from 'vue-i18n';\nimport { useRequestUriName } from '../composables/useRequestUriName';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nconst { t, locale } = useI18n();\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\nlet voc = props.context.attrs.voc;\nconst store = useStore();\nlet resolvedUriName = ref();\n\nconst { execute: requestURIname, error: requestURInameError, isLoading: requestURInameLoading } = useRequestUriName({\n res: computed(() => props.context.value.name),\n voc: computed(() => props.context.attrs.voc),\n property: computed(() => props.context.attrs.property),\n locale,\n})\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n if (resolvedUriName.value != props.context.value.name) {\n\n if (props.context.value.name === props.context.value.resource) {\n requestURIname().then(result => {\n resolvedUriName.value = result;\n }).catch(error => {\n console.error(error);\n })\n }\n else {\n resolvedUriName.value = props.context.value.name\n }\n }\n\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","getCurrentInstance","t","locale","useI18n","selectModeVal","ref","selectedItem","showSelect","useStore","resolvedUriName","requestURIname","requestURInameError","requestURInameLoading","useRequestUriName","computed","watchEffect","result","error","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_toDisplayString","$t","_hoisted_3","_unref","_hoisted_4","_cache","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_7","_hoisted_8","$event","_hoisted_10","_hoisted_11","_Fragment","_renderList","el","index","_hoisted_12","_hoisted_13","_hoisted_14","_createVNode","_component_FormKit","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","key","_createBlock","_hoisted_26","AutocompleteInput","_hoisted_27","_hoisted_28"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JA,QAAIA,IAAMC,EAAc;AACxB,UAAMC,IAAQC;AAGC,IAAAC,EAAkB,EAAG,WAAW,IAAI,OAAO,iBAAiB;AAC3E,UAAM,EAAE,GAAAC,GAAG,QAAAC,MAAWC;AACtB,QAAIC,IAAgBC,EAAI,GACpBC,IAAeD,EAAI,EAAK,GACxBE,IAAaF,EAAI,EAAK;AAChB,IAAAP,EAAM,QAAQ,MAAM,KAChBU,EAAU;AACxB,QAAIC,IAAkBJ,EAAG;AAEzB,UAAM,EAAE,SAASK,GAAgB,OAAOC,IAAqB,WAAWC,GAAuB,IAAGC,EAAkB;AAAA,MAClH,KAAKC,EAAS,MAAMhB,EAAM,QAAQ,MAAM,IAAI;AAAA,MAC5C,KAAKgB,EAAS,MAAMhB,EAAM,QAAQ,MAAM,GAAG;AAAA,MAC3C,UAAUgB,EAAS,MAAMhB,EAAM,QAAQ,MAAM,QAAQ;AAAA,MACrD,QAAAI;AAAA,IACF,CAAC;AAED,IAAAa,EAAY,MAAM;AAChB,MAAIjB,EAAM,QAAQ,MAAM,SAClBW,EAAgB,SAASX,EAAM,QAAQ,MAAM,SAE3CA,EAAM,QAAQ,MAAM,SAASA,EAAM,QAAQ,MAAM,WACnDY,EAAgB,EAAC,KAAK,CAAAM,MAAU;AAC9B,QAAAP,EAAgB,QAAQO;AAAA,MAClC,CAAS,EAAE,MAAM,CAAAC,MAAS;AAChB,gBAAQ,MAAMA,CAAK;AAAA,MAC7B,CAAS,IAGDR,EAAgB,QAAQX,EAAM,QAAQ,MAAM,OAIhDM,EAAc,QAAQH,EAAE,oDAAyD,IAE/EH,EAAM,QAAQ,M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;YAGpBY,EAAY3B,CAAA,MAAA,mBAAvBqB,EAAqG,OAAA;AAAA;cAA7D,WAAQ7B,EAAM,QAAQ,MAAM;AAAA,cAAM,OAAM;AAAA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ConditionalInput.vue.mjs","sources":["../../../lib/data-provider-interface/components/ConditionalInput.vue"],"sourcesContent":["<template>\n <div class=\"formkitProperty\">\n <!-- <h4 class=\"formkitHeader\">{{ props.context.attrs.identifier.charAt(0).toUpperCase() +\n props.context.attrs.identifier.slice(1) }}</h4> -->\n <h4 class=\"formkitHeader\"\n v-if=\"props.context.attrs.class != undefined && props.context.attrs.class.includes('inDistribution')\">\n {{ $t('message.dataupload.distributions.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <h4 class=\"formkitHeader\" v-else>\n {{ $t('message.dataupload.datasets.' + props.context.attrs.identifier + '.label') }}\n </h4>\n <div v-if=\"props.context.attrs.identifier === 'licence' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI \" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <div class=\"w-80\">\n <p>For <strong>European</strong> <strong>Commission's datasets</strong>, bear in mind\n that <a href=\"https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011D0833]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision 2011/833/EU</ins></a> allows for their commercial\n reuse without\n prior authorisation, except for the material subject to the third party intellectual property rights. This\n Decision has been implemented under the <a\n href=\"https://ec.europa.eu/transparency/documents-register/detail?ref=C(2019)1655&lang=en]\"\n target=\"_blank\" rel=\"nofollow noopener\"><ins>Decision C(2019) 1655 final</ins></a> by which Creative\n Commons\n Attribution 4.0 International Public License (CC BY 4.0) is adopted as an open licence for the Commission's\n reuse policy. Additionally, raw data, metadata or other documents of comparable nature may alternatively be\n distributed under the provisions of the Creative Commons Universal Public Domain Dedication deed (CC0\n 1.0).</p>\n <p>The <strong>Council</strong> and the <strong>European Court of Auditors</strong> have\n approved similar decisions on reuse. It is advisable that you check <strong>the reuse policy of your\n organisation</strong> before publishing or submitting your dataset.</p>\n <p>If you need further information regarding copyright issues, please contact us at <a\n href=\"mailto:op-copyright@publications.europa.eu\" target=\"_blank\"\n rel=\"nofollow noopener\">op-copyright@publications.europa.eu</a></p>\n </div>\n\n </div>\n\n <div v-if=\"props.context.attrs.identifier === 'rights' && env.content.dataProviderInterface.annifIntegration\"\n class=\"d-flex infoLicense py-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" fill=\"currentColor\"\n class=\"bi bi-info-circle mx-3 mb-3 mt-1 infoboxI\" viewBox=\"0 0 16 16\">\n <path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\" />\n <path\n d=\"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" />\n </svg>\n <p class=\"textInfoI\">As owner of your dataset, you guarantee that it does not violate the copyright, other\n intellectual property or\n privacy rights of any third party. In particular, if third party material is included in the dataset, you must\n ensure that all necessary permissions have been obtained and appropriate acknowledgment is given, if necessary.\n <br><br>\n If you need further information regarding copyright issues, please contact us at\n <a href=\"mailto:op-copyright@publications.europa.eu\">op-copyright@publications.europa.eu</a>\n </p>\n </div>\n <!-- Choice between text and URL -->\n <div class=\"formkitCmpWrap simpleConditional\" v-if=\"props.context.attrs.identifier === 'rights'\">\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=\"props.context.attrs.placeholder\" v-model=\"selectModeVal\">\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'URL' || props.context.node.value['@type'] === 'url'\">\n <FormKit type=\"url\" :placeholder=\"$t('message.dataupload.datasets.conditional.URL')\" name=\"rdfs:label\"\n validation=\"url\" class=\"w-100\" identifier=\"rightsUrl\" v-model=\"props.context.value['rdfs:value']\">\n </FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'Text' || props.context.value['@type'] === 'text'\">\n <FormKit type=\"text\" :placeholder=\"$t('message.dataupload.datasets.conditional.Text')\" name=\"rdfs:label\"\n class=\"w-100\" identifier=\"rightsText\" v-model=\"props.context.value['rdfs:value']\"></FormKit>\n </div>\n </div>\n </div>\n\n <!-- Choice between manualinput and vocabulary search -->\n <div class=\"formkitCmpWrap simpleConditional\" v-else>\n <div class=\"m-3\">\n <div class=\"conditionalSelectDiv\">\n <input ref=\"I1\" type=\"text\" class=\"conditionalSelect formkit-input formkit-inner\" @click=\"openSelect($event)\"\n :placeholder=props.context.attrs.placeholder v-model=\"selectModeVal\" readonly>\n\n <div v-if=\"showSelect\">\n <ul class=\"selectListConditional\">\n <li v-for=\"el, index in props.context.attrs.selection\" class=\"p-2 border-b border-gray-200 \"\n @click=\"selectMode(el, $t('message.dataupload.datasets.conditional.' + el))\">{{\n $t('message.dataupload.datasets.conditional.' + el) }}</li>\n </ul>\n </div>\n <!-- License else Publisher -->\n <div v-if=\"selectedItem === 'vocabulary'\" v-html=\"getHelpText(props.context.attrs.identifier)\"\n class=\"formkit-help position-absolute\">\n </div>\n <!-- <div v-if=\"selectedItem === 'vocabulary'\" v-html=\"props.context.attrs.identifier === 'licence'\n ? $t('message.dataupload.distributions.licence.vocabulary.help')\n : `Vocabulary (see\n <a href='https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence'\n target='_blank' rel='noopener noreferrer'>EU Vocabularies</a>\n and\n <a href='https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body'\n target='_blank' rel='noopener noreferrer'>Corporate Body</a>\n for details on the entities.)`\" class=\"formkit-help position-absolute\">\n </div> -->\n </div>\n <div class=\"conditionalManual\">\n <div class=\"d-flex\" v-if=\"selectedItem === 'manually' ||\n Object.keys(props.context.value).length > 0 && props.context.value['foaf:name']\n && selectedItem != 'vocabulary'\">\n <FormKit v-for=\"el, key in props.context.attrs.options\" :type=\"key\"\n :placeholder=\"$t('message.dataupload.datasets.individual.' + el)\" :name=\"el\" :validation=\"key\"\n class=\"w-100\"></FormKit>\n </div>\n </div>\n <div v-if=\"selectedItem === 'vocabulary' && !props.context.value['name']\" class=\"\">\n <AutocompleteInput :context=\"props.context\"></AutocompleteInput>\n </div>\n\n <div v-if=\"props.context.value['name']\" class=\"conditionalVocabulary d-flex\">\n <a class=\"autocompleteInputSingleValue\">{{\n resolvedUriName }}</a>\n <div class=\"removeX\" @click=\"removeProperty\"></div>\n\n </div>\n <div v-if=\"selectedItem === 'manually'\" v-html=\"props.context.attrs.info\" class=\"formkit-help\"></div>\n\n </div>\n\n </div>\n </div>\n\n</template>\n<script setup>\n\nimport AutocompleteInput from './AutocompleteInput.vue';\nimport { onClickOutside } from '@vueuse/core'\nimport { useRuntimeEnv } from \"../../composables/useRuntimeEnv.ts\";\nimport { ref, watch, computed, onMounted, watchEffect, toRef } from 'vue';\nimport { useStore } from 'vuex';\nimport { getTranslationFor } from \"../../utils/helpers\";\nimport { getCurrentInstance } from \"vue\";\nimport { getNode } from '@formkit/core'\nimport { useI18n } from 'vue-i18n';\nimport { useRequestUriName } from '../composables/useRequestUriName';\n\nlet env = useRuntimeEnv()\nconst props = defineProps({\n context: Object,\n})\nlet instance = getCurrentInstance().appContext.app.config.globalProperties.$env\nconst { t, locale } = useI18n();\n\n// --- Help text mapping for vocabulary mode ---\nconst getHelpText = (identifier) => {\n const helpTextMap = {\n licence: t('message.dataupload.distributions.licence.vocabulary.help'),\n publisher: `\n Vocabulary (see\n <a href='https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=https://publications.europa.eu/resource/authority/licence'\n target='_blank' rel='noopener noreferrer'>EU Vocabularies</a>\n and\n <a href='https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/corporate-body'\n target='_blank' rel='noopener noreferrer'>Corporate Body</a>\n for details on the entities.)\n `\n }\n\n // Default message if no match found\n return helpTextMap[identifier] || 'Search the vocabulary'\n}\n\n\nlet selectModeVal = ref()\nlet selectedItem = ref(false)\nlet showSelect = ref(false)\nlet voc = props.context.attrs.voc;\nconst store = useStore();\nlet resolvedUriName = ref();\n\nconst { execute: requestURIname, error: requestURInameError, isLoading: requestURInameLoading } = useRequestUriName({\n res: computed(() => props.context.value.name),\n voc: computed(() => props.context.attrs.voc),\n property: computed(() => props.context.attrs.property),\n locale,\n})\n\nwatchEffect(() => {\n if (props.context.value['name']) {\n if (resolvedUriName.value != props.context.value.name) {\n\n if (props.context.value.name === props.context.value.resource) {\n requestURIname().then(result => {\n resolvedUriName.value = result;\n }).catch(error => {\n console.error(error);\n })\n }\n else {\n resolvedUriName.value = props.context.value.name\n }\n }\n\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'vocabulary');\n }\n if (props.context.value['foaf:name']) {\n selectModeVal.value = t('message.dataupload.datasets.conditional.' + 'manually');\n }\n});\n\nconst I1 = ref(null)\n\nconst openSelect = (e) => {\n\n showSelect.value = !showSelect.value\n\n}\nconst removeProperty = () => {\n props.context.node.reset()\n}\nconst selectMode = (e, translatedString) => {\n selectModeVal.value = translatedString\n selectedItem.value = e\n props.context.node.reset()\n props.context.value = \"\"\n}\n\nonClickOutside(I1, event => showSelect.value = false)\n\n</script>\n<style>\n.conditionalManual {\n .formkit-outer {\n width: 100%;\n }\n}\n\n.hover {\n text-decoration: underline;\n}\n\n.conditionalVocabulary {\n display: flex;\n align-items: center;\n margin: 1rem 0;\n}\n\n.w-80 {\n width: 80%;\n}\n\n.infoLicense {\n a {\n color: blue;\n }\n\n padding: 1rem;\n background-color: rgb(171, 225, 165)\n}\n\n.infoboxI {\n width: 5%;\n}\n\n.textInfoI {\n width: 95%;\n}\n</style>\n"],"names":["env","useRuntimeEnv","props","__props","getCurrentInstance","t","locale","useI18n","getHelpText","identifier","selectModeVal","ref","selectedItem","showSelect","useStore","resolvedUriName","requestURIname","requestURInameError","requestURInameLoading","useRequestUriName","computed","watchEffect","result","error","I1","openSelect","e","removeProperty","selectMode","translatedString","onClickOutside","event","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_toDisplayString","$t","_hoisted_3","_unref","_hoisted_4","_cache","_hoisted_5","_hoisted_6","_createElementVNode","_hoisted_7","_hoisted_8","$event","_hoisted_10","_hoisted_11","_Fragment","_renderList","el","index","_hoisted_12","_hoisted_13","_hoisted_14","_createVNode","_component_FormKit","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_24","_hoisted_25","key","_createBlock","_hoisted_26","AutocompleteInput","_hoisted_27","_hoisted_28"],"mappings":";;;;;;;;;;;;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A,gBAC1F,OAAM;AAAA;;;YAaV0C,EAQM,OARNsB,IAQM;AAAA,cAPsB3B,EAAY3B,CAAA,MAAA,cAA+B,OAAO,KAAKV,EAAM,QAAQ,KAAK,EAAE,SAAc,KAAAA,EAAM,QAAQ,MAAK,WAAA,KAA6BqC,EAAY3B,CAAA,KAAA,gBAAhLoB,KAAAC,EAMM,OANNkC,IAMM;AAAA,wBAHJlC,EAE0BiB,GAAA,MAAAC,EAFCjD,EAAM,QAAQ,MAAM,SAAO,CAAtCkD,GAAIgB,YAApBC,EAE0BX,GAAA;AAAA,kBAF+B,MAAMU;AAAA,kBAC5D,aAAa/B,EAAE,GAAA,4CAA6Ce,CAAE;AAAA,kBAAI,MAAMA;AAAA,kBAAK,YAAYgB;AAAA,kBAC1F,OAAM;AAAA;;;;YAGD7B,EAAA3B,CAAA,MAAkC,gBAAA,CAAAV,EAAM,QAAQ,MAAK,QAAhE8B,KAAAC,EAEM,OAFNqC,IAEM;AAAA,cADJb,EAAgEc,GAAA;AAAA,gBAA5C,SAASrE,EAAM;AAAA;;;YAG1BA,EAAM,QAAQ,MAAK,QAA9B8B,KAAAC,EAKM,OALNuC,IAKM;AAAA,cAJJ5B,EACwB,KADxB6B,IACwBrC,EAAtBG,EAAexB,CAAA,CAAA,GAAA,CAAA;AAAA;cACjB6B,EAAmD,OAAA;AAAA,gBAA9C,OAAM;AAAA,gBAAW,SAAOjB;AAAA;;;YAGpBY,EAAY3B,CAAA,MAAA,mBAAvBqB,EAAqG,OAAA;AAAA;cAA7D,WAAQ/B,EAAM,QAAQ,MAAM;AAAA,cAAM,OAAM;AAAA;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, reactive as V, openBlock as f, createElementBlock as x, createElementVNode as a, toDisplayString as c, createTextVNode as i, createVNode as r, unref as
|
|
2
|
-
import { FormKit as
|
|
1
|
+
import { defineComponent as m, reactive as V, openBlock as f, createElementBlock as x, createElementVNode as a, toDisplayString as c, createTextVNode as i, createVNode as r, unref as d, withCtx as s, renderSlot as g } from "vue";
|
|
2
|
+
import { FormKit as u } from "@formkit/vue";
|
|
3
3
|
const k = { class: "formkitProperty" }, y = { class: "formkitCmpWrap d-flex" }, b = /* @__PURE__ */ m({
|
|
4
4
|
__name: "SelectControlledGroup",
|
|
5
5
|
props: {
|
|
@@ -13,16 +13,16 @@ const k = { class: "formkitProperty" }, y = { class: "formkitCmpWrap d-flex" },
|
|
|
13
13
|
placeholder: {},
|
|
14
14
|
info: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
16
|
+
setup(n) {
|
|
17
|
+
const t = n, l = V({
|
|
18
18
|
groupValue: {},
|
|
19
19
|
selectValue: t.initialValue ?? Object.keys(t.options)[0]
|
|
20
20
|
});
|
|
21
|
-
return (
|
|
21
|
+
return (p, e) => (f(), x("div", k, [
|
|
22
22
|
a("h4", null, c(t.label), 1),
|
|
23
23
|
e[4] || (e[4] = i()),
|
|
24
24
|
a("div", y, [
|
|
25
|
-
r(
|
|
25
|
+
r(d(u), {
|
|
26
26
|
id: t.id,
|
|
27
27
|
type: "group",
|
|
28
28
|
name: n.name,
|
|
@@ -30,19 +30,19 @@ const k = { class: "formkitProperty" }, y = { class: "formkitCmpWrap d-flex" },
|
|
|
30
30
|
modelValue: l.groupValue,
|
|
31
31
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => l.groupValue = o)
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
r(
|
|
33
|
+
default: s(() => [
|
|
34
|
+
r(d(u), {
|
|
35
35
|
modelValue: l.selectValue,
|
|
36
36
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => l.selectValue = o),
|
|
37
37
|
type: "select",
|
|
38
38
|
options: t.options,
|
|
39
39
|
name: t.selectName
|
|
40
40
|
}, {
|
|
41
|
-
prefix:
|
|
41
|
+
prefix: s(() => [...e[2] || (e[2] = [])]),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["modelValue", "options", "name"]),
|
|
44
44
|
e[3] || (e[3] = i()),
|
|
45
|
-
g(
|
|
45
|
+
g(p.$slots, "default", {
|
|
46
46
|
selectValue: l.selectValue
|
|
47
47
|
})
|
|
48
48
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectControlledGroup.vue.mjs","sources":["../../../lib/data-provider-interface/components/SelectControlledGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * `SelectControlledGroup` is a Vue component wrapping the FormKit group input. \n * It features a central select input that dictates the behavior of all child inputs within the group. \n * This setup allows for conditional display and interaction of child components based on the select input's value. \n * \n * Note that this is not a FormKit input itself, but rather a wrapper around the FormKit group input.\n */\n\nimport { reactive } from 'vue';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps<{\n name?: string;\n selectName: string;\n initialValue?: string;\n options: Record<string, string>;\n index?: number;\n id?: any;\n label?: string;\n placeholder?: string;\n info?: string;\n}>();\n\nconst data = reactive({\n groupValue: {},\n selectValue: props.initialValue ?? Object.keys(props.options)[0],\n});\n</script>\n\n<template>\n <div class=\"formkitProperty\">\n <h4>{{ props.label }}</h4>\n <div class=\"formkitCmpWrap d-flex\">\n <FormKit :id=\"props.id\" type=\"group\" :name=\"name\" :index=\"props.index\" v-model=\"data.groupValue\">\n <FormKit v-model=\"data.selectValue\" type=\"select\" :options=\"props.options\" :name=\"props.selectName\">\n <template #prefix>\n <!-- <div v-if=\"props.info\" class=\"infoI\">\n <div class=\"tooltipFormkit\">\n {{ props.info }}\n </div>\n </div> -->\n </template>\n </FormKit>\n <slot :select-value=\"data.selectValue\" />\n </FormKit>\n </div>\n\n </div>\n\n</template>"],"names":["props","__props","data","reactive","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_toDisplayString","_hoisted_2","_createVNode","_unref","FormKit","
|
|
1
|
+
{"version":3,"file":"SelectControlledGroup.vue.mjs","sources":["../../../lib/data-provider-interface/components/SelectControlledGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * `SelectControlledGroup` is a Vue component wrapping the FormKit group input. \n * It features a central select input that dictates the behavior of all child inputs within the group. \n * This setup allows for conditional display and interaction of child components based on the select input's value. \n * \n * Note that this is not a FormKit input itself, but rather a wrapper around the FormKit group input.\n */\n\nimport { reactive } from 'vue';\nimport { FormKit } from '@formkit/vue';\n\nconst props = defineProps<{\n name?: string;\n selectName: string;\n initialValue?: string;\n options: Record<string, string>;\n index?: number;\n id?: any;\n label?: string;\n placeholder?: string;\n info?: string;\n}>();\n\nconst data = reactive({\n groupValue: {},\n selectValue: props.initialValue ?? Object.keys(props.options)[0],\n});\n</script>\n\n<template>\n <div class=\"formkitProperty\">\n <h4>{{ props.label }}</h4>\n <div class=\"formkitCmpWrap d-flex\">\n <FormKit :id=\"props.id\" type=\"group\" :name=\"name\" :index=\"props.index\" v-model=\"data.groupValue\">\n <FormKit v-model=\"data.selectValue\" type=\"select\" :options=\"props.options\" :name=\"props.selectName\">\n <template #prefix>\n <!-- <div v-if=\"props.info\" class=\"infoI\">\n <div class=\"tooltipFormkit\">\n {{ props.info }}\n </div>\n </div> -->\n </template>\n </FormKit>\n <slot :select-value=\"data.selectValue\" />\n </FormKit>\n </div>\n\n </div>\n\n</template>"],"names":["props","__props","data","reactive","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_toDisplayString","_hoisted_2","_createVNode","_unref","FormKit","_cache","$event","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;AAYA,UAAMA,IAAQC,GAYRC,IAAOC,EAAS;AAAA,MACpB,YAAY,CAAC;AAAA,MACb,aAAaH,EAAM,gBAAgB,OAAO,KAAKA,EAAM,OAAO,EAAE,CAAC;AAAA,IAAA,CAChE;sBAICI,EAAA,GAAAC,EAiBM,OAjBNC,GAiBM;AAAA,MAhBJC,EAA0B,MAAA,MAAAC,EAAnBR,EAAM,KAAK,GAAA,CAAA;AAAA;MAClBO,EAaM,OAbNE,GAaM;AAAA,QAZJC,EAWUC,EAAAC,CAAA,GAAA;AAAA,UAXA,IAAIZ,EAAM;AAAA,UAAI,MAAK;AAAA,UAAS,MAAMC,EAAI;AAAA,UAAG,OAAOD,EAAM;AAAA,UAAgB,YAAAE,EAAK;AAAA,UAAL,uBAAAW,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAAZ,EAAK,aAAUY;AAAA,QAAA;qBAC7F,MAQU;AAAA,YARVJ,EAQUC,EAAAC,CAAA,GAAA;AAAA,cARQ,YAAAV,EAAK;AAAA,cAAL,uBAAAW,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAAZ,EAAK,cAAWY;AAAA,cAAE,MAAK;AAAA,cAAU,SAASd,EAAM;AAAA,cAAU,MAAMA,EAAM;AAAA,YAAA;cAC3E,UAAX,MAMW,CAAA,GAAAa,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,GAAA,CAAA;AAAA;;;YAEbE,EAAyCC,EAAA,QAAA,WAAA;AAAA,cAAlC,aAAcd,EAAK;AAAA,YAAA;;;;;;;;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as a, createBlock as
|
|
2
|
-
import
|
|
3
|
-
import { useDataInfoBox as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as c, openBlock as a, createBlock as n, resolveDynamicComponent as d, withCtx as m, createElementBlock as i, Fragment as u, renderList as f, unref as p, renderSlot as D } from "vue";
|
|
2
|
+
import x from "../PvDataInfoBox/PvDataInfoBox.vue.mjs";
|
|
3
|
+
import { useDataInfoBox as B } from "../composables/useDataInfoBox.mjs";
|
|
4
|
+
const C = /* @__PURE__ */ c({
|
|
5
5
|
__name: "DatasetList",
|
|
6
6
|
props: {
|
|
7
7
|
as: { default: "div" },
|
|
8
8
|
datasets: {},
|
|
9
9
|
locale: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const s =
|
|
11
|
+
setup(e) {
|
|
12
|
+
const s = e, r = B({
|
|
13
13
|
datasets: s.datasets,
|
|
14
14
|
locale: s.locale
|
|
15
15
|
});
|
|
16
|
-
return (
|
|
16
|
+
return (l, k) => (a(), n(d(e.as), null, {
|
|
17
17
|
default: m(() => [
|
|
18
|
-
(a(!0), i(u, null, p(
|
|
18
|
+
(a(!0), i(u, null, f(p(r), (t, o) => D(l.$slots, "default", {
|
|
19
19
|
dataset: t,
|
|
20
20
|
rawDataset: e.datasets[o],
|
|
21
21
|
index: o
|
|
22
22
|
}, () => [
|
|
23
|
-
(a(),
|
|
23
|
+
(a(), n(x, {
|
|
24
24
|
key: t.id,
|
|
25
25
|
to: `/datasets/${t.id}`,
|
|
26
26
|
src: t.src,
|
|
@@ -36,6 +36,6 @@ const x = /* @__PURE__ */ c({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
C as default
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=DatasetList.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetList.vue.mjs","sources":["../../lib/datasets/DatasetList.vue"],"sourcesContent":["<template>\n <component :is=\"as\">\n <template v-for=\"(dataset, idx) in computedDatasets\">\n <slot :dataset=\"dataset\" :raw-dataset=\"datasets[idx]\" :index=\"idx\">\n <pv-data-info-box\n :key=\"dataset.id\"\n :to=\"`/datasets/${dataset.id}`\"\n :src=\"dataset.src\"\n :dataset=\"dataset.dataset\"\n :description-max-length=\"1000\"\n :data-cy=\"`dataset@${dataset.id}`\"\n class=\"mt-3\"\n />\n </slot>\n </template>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport PvDataInfoBox from '../PvDataInfoBox/PvDataInfoBox.vue'\n\nimport { useDataInfoBox } from '../composables/useDataInfoBox';\n\nconst props = withDefaults(defineProps<{\n as?: string;\n datasets: any;\n locale: string;\n}>(), {\n as: 'div'\n})\n\nconst computedDatasets = useDataInfoBox({ \n datasets: props.datasets,\n locale: props.locale\n })\n</script>\n\n<style lang=\"scss\" scoped>\n\n</style>"],"names":["props","__props","computedDatasets","useDataInfoBox","_openBlock","_createBlock","_resolveDynamicComponent","
|
|
1
|
+
{"version":3,"file":"DatasetList.vue.mjs","sources":["../../lib/datasets/DatasetList.vue"],"sourcesContent":["<template>\n <component :is=\"as\">\n <template v-for=\"(dataset, idx) in computedDatasets\">\n <slot :dataset=\"dataset\" :raw-dataset=\"datasets[idx]\" :index=\"idx\">\n <pv-data-info-box\n :key=\"dataset.id\"\n :to=\"`/datasets/${dataset.id}`\"\n :src=\"dataset.src\"\n :dataset=\"dataset.dataset\"\n :description-max-length=\"1000\"\n :data-cy=\"`dataset@${dataset.id}`\"\n class=\"mt-3\"\n />\n </slot>\n </template>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport PvDataInfoBox from '../PvDataInfoBox/PvDataInfoBox.vue'\n\nimport { useDataInfoBox } from '../composables/useDataInfoBox';\n\nconst props = withDefaults(defineProps<{\n as?: string;\n datasets: any;\n locale: string;\n}>(), {\n as: 'div'\n})\n\nconst computedDatasets = useDataInfoBox({ \n datasets: props.datasets,\n locale: props.locale\n })\n</script>\n\n<style lang=\"scss\" scoped>\n\n</style>"],"names":["props","__props","computedDatasets","useDataInfoBox","_openBlock","_createBlock","_resolveDynamicComponent","_createElementBlock","_Fragment","_renderList","_unref","dataset","idx","_renderSlot","_ctx","PvDataInfoBox"],"mappings":";;;;;;;;;;;AAuBA,UAAMA,IAAQC,GAQRC,IAAmBC,EAAe;AAAA,MACtC,UAAUH,EAAM;AAAA,MAChB,QAAQA,EAAM;AAAA,IAAA,CACd;sBAjCAI,EAAA,GAAAC,EAcYC,EAdIL,EAAE,EAAA,GAAA,MAAA;AAAA,iBACN,MAA0C;AAAA,SAApDG,EAAA,EAAA,GAAAG,EAYWC,GAZwB,MAAAC,EAAAC,EAAAR,CAAA,GAAjB,CAAAS,GAASC,MACzBC,EAUOC,EAAA,QAAA,WAAA;AAAA,UAVA,SAAAH;AAAA,UAAmB,YAAaV,EAAQ,SAACW,CAAG;AAAA,UAAI,OAAOA;AAAA,QAAA,GAA9D,MAUO;AAAA,aATL,GAAAP,EAQEU,GAAA;AAAA,YAPC,KAAKJ,EAAQ;AAAA,YACb,IAAE,aAAeA,EAAQ,EAAE;AAAA,YAC3B,KAAKA,EAAQ;AAAA,YACb,SAASA,EAAQ;AAAA,YACjB,0BAAwB;AAAA,YACxB,WAAO,WAAaA,EAAQ,EAAE;AAAA,YAC/B,OAAM;AAAA,UAAA;;;;;;;"}
|
|
@@ -123,7 +123,7 @@ const q = {
|
|
|
123
123
|
*/
|
|
124
124
|
toggleFacet(e, t) {
|
|
125
125
|
let s = null;
|
|
126
|
-
if (Object.prototype.hasOwnProperty.call(this.$route.query, [e]) ? e === "scoring" ? (this.setMinScoring(0), this.setMaxScoring(0)
|
|
126
|
+
if (Object.prototype.hasOwnProperty.call(this.$route.query, [e]) ? e === "scoring" ? (this.setMinScoring(0), this.setMaxScoring(void 0)) : e === "dataScope" ? s = { query: Object.assign({}, this.$route.query, { country: [], dataScope: [], page: 1 }) } : e === "country" && (s = { query: Object.assign({}, this.$route.query, { country: [], page: 1 }) }) : s = { query: Object.assign({}, this.$route.query, { [e]: [], page: 1 }) }, !s) {
|
|
127
127
|
let a = this.$route.query[e].slice();
|
|
128
128
|
Array.isArray(a) || (a = [a]), e === "categories" && (t.toUpperCase(), a = a.map((c) => c.toUpperCase()));
|
|
129
129
|
const r = a.indexOf(t);
|
|
@@ -163,7 +163,7 @@ function v(e, t, s, a, r, c) {
|
|
|
163
163
|
]))), 128))
|
|
164
164
|
]);
|
|
165
165
|
}
|
|
166
|
-
const D = /* @__PURE__ */ S(q, [["render", v], ["__scopeId", "data-v-
|
|
166
|
+
const D = /* @__PURE__ */ S(q, [["render", v], ["__scopeId", "data-v-c779989d"]]);
|
|
167
167
|
export {
|
|
168
168
|
D as default
|
|
169
169
|
};
|