@piveau/dpi 0.1.0-beta.59 → 0.1.0-beta.60
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/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +3 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +131 -126
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +47 -45
- package/dist/data-provider-interface/components/ContactPage.vue.js +49 -49
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +285 -315
- package/dist/data-provider-interface/components/HVDPage.vue.js +41 -42
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +218 -206
- package/dist/data-provider-interface/components/TempResPage.vue.js +2 -2
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.js +13 -14
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as f, computed as B, getCurrentInstance as F, unref as m, onMounted as M, watch as
|
|
1
|
+
import { ref as f, computed as B, getCurrentInstance as F, unref as m, onMounted as M, watch as O, createElementBlock as c, openBlock as d, createElementVNode as s, createCommentVNode as h, toDisplayString as r, createVNode as u, Fragment as E, renderList as D } from "vue";
|
|
2
2
|
import { PhWarning as g } from "@phosphor-icons/vue";
|
|
3
|
-
import { useEditModeInfo as
|
|
3
|
+
import { useEditModeInfo as I } from "../composables/useDpiEditMode.js";
|
|
4
4
|
import P from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
5
5
|
import z from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
6
6
|
import { useFormValues as U } from "../composables/useDpiFormValues.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import j from "../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
-
const L = { class: "dpiV3InnerComponentWrap" },
|
|
9
|
+
const L = { class: "dpiV3InnerComponentWrap" }, q = { class: "copy-large-regular" }, G = { class: "dpiV3AutoCompleteWrap" }, H = { class: "CardTips_internal" }, J = { class: "CardTips_Part" }, K = { class: "firstRow" }, Q = { class: "icon_title copy-small-semi-bold" }, X = { class: "TextButton_small" }, Y = { class: "secondRow" }, Z = { class: "copy-small-regular" }, ee = { class: "CardTips_Part" }, ae = { class: "firstRow" }, te = { class: "icon_title copy-small-semi-bold" }, se = { class: "TextButton_small" }, oe = { class: "secondRow" }, le = { class: "copy-small-regular" }, ie = { class: "input-container" }, ne = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "dpiV3_errormsgWrapper"
|
|
12
12
|
}, re = { class: "copy-mini-regular" }, ce = { class: "input-container" }, de = {
|
|
@@ -23,11 +23,11 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
23
23
|
props: {
|
|
24
24
|
context: Object
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { formValues:
|
|
26
|
+
setup(S) {
|
|
27
|
+
const { formValues: N } = U(), v = S, { isEditMode: R } = I(), _ = f(null), b = f(null), w = B(() => {
|
|
28
28
|
var e, t;
|
|
29
29
|
try {
|
|
30
|
-
const a = (t = (e =
|
|
30
|
+
const a = (t = (e = N.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
|
|
31
31
|
if (a && a["foaf:name"] && a["foaf:mbox"])
|
|
32
32
|
return [
|
|
33
33
|
a["foaf:name"],
|
|
@@ -51,10 +51,10 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
51
51
|
return e.email && (i.email = e.email), (e.phone || e.phoneNumber) && (i.phone = e.phone || e.phoneNumber), i;
|
|
52
52
|
}
|
|
53
53
|
return {};
|
|
54
|
-
}),
|
|
54
|
+
}), o = f({
|
|
55
55
|
1: {
|
|
56
56
|
show: !1,
|
|
57
|
-
message: "Bitte geben Sie einen gültigen
|
|
57
|
+
message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
|
|
58
58
|
},
|
|
59
59
|
2: {
|
|
60
60
|
show: !1,
|
|
@@ -66,7 +66,7 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
let n = f({ 1: !1, 2: !1, 3: !1 });
|
|
69
|
-
const
|
|
69
|
+
const l = f([
|
|
70
70
|
{
|
|
71
71
|
isValid: "unset",
|
|
72
72
|
"vcard:fn": "",
|
|
@@ -74,7 +74,7 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
74
74
|
"vcard:hasTelephone": ""
|
|
75
75
|
}
|
|
76
76
|
]);
|
|
77
|
-
R.value || v.context.node.input(
|
|
77
|
+
R.value || v.context.node.input(l), v.context.node.value.length === 0 && v.context.node.input(m(l)), M(() => {
|
|
78
78
|
try {
|
|
79
79
|
T && T["foaf:name"] && T["foaf:mbox"];
|
|
80
80
|
} catch (e) {
|
|
@@ -99,9 +99,9 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
99
99
|
function y(e, t, a) {
|
|
100
100
|
let i = !1;
|
|
101
101
|
if (a === 3 && e.trim() === "")
|
|
102
|
-
|
|
102
|
+
o.value[a].show = !1, n.value[a] = !0;
|
|
103
103
|
else if (e.trim() === "")
|
|
104
|
-
|
|
104
|
+
o.value[a].show = !0, n.value[a] = !1;
|
|
105
105
|
else {
|
|
106
106
|
switch (t) {
|
|
107
107
|
case "vcard:fn":
|
|
@@ -116,12 +116,12 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
116
116
|
default:
|
|
117
117
|
i = e.trim() !== "";
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
o.value[a].show = !i, n.value[a] = i;
|
|
120
120
|
}
|
|
121
|
-
n.value[1] && n.value[2] ?
|
|
121
|
+
n.value[1] && n.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = "unset";
|
|
122
122
|
}
|
|
123
123
|
function p(e, t, a) {
|
|
124
|
-
|
|
124
|
+
l.value = l.value.map((i) => t in i ? { ...i, [t]: e } : i), v.context.node.input(l.value), a === 2 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
125
125
|
y(e, t, a);
|
|
126
126
|
}, 800)) : a === 3 ? (b.value && clearTimeout(b.value), b.value = setTimeout(() => {
|
|
127
127
|
y(e, t, a);
|
|
@@ -135,38 +135,38 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
135
135
|
p(w.value[0], "vcard:fn", 1), p(w.value[1], "vcard:hasEmail", 2);
|
|
136
136
|
}
|
|
137
137
|
const A = () => {
|
|
138
|
-
const e =
|
|
138
|
+
const e = l.value[0];
|
|
139
139
|
if (e["vcard:fn"].trim() === "")
|
|
140
|
-
|
|
140
|
+
o.value[1].show = !0, n.value[1] = !1;
|
|
141
141
|
else {
|
|
142
142
|
const t = V(e["vcard:fn"]);
|
|
143
|
-
|
|
143
|
+
o.value[1].show = !t, n.value[1] = t;
|
|
144
144
|
}
|
|
145
145
|
if (e["vcard:hasEmail"].trim() === "")
|
|
146
|
-
|
|
146
|
+
o.value[2].show = !0, n.value[2] = !1;
|
|
147
147
|
else {
|
|
148
148
|
const t = C(e["vcard:hasEmail"]);
|
|
149
|
-
|
|
149
|
+
o.value[2].show = !t, n.value[2] = t;
|
|
150
150
|
}
|
|
151
151
|
if (e["vcard:hasTelephone"].trim() === "")
|
|
152
|
-
|
|
152
|
+
o.value[3].show = !1, n.value[3] = !0;
|
|
153
153
|
else {
|
|
154
154
|
const t = $(e["vcard:hasTelephone"]);
|
|
155
|
-
|
|
155
|
+
o.value[3].show = !t, n.value[3] = t;
|
|
156
156
|
}
|
|
157
|
-
n.value[1] && n.value[2] ?
|
|
157
|
+
n.value[1] && n.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = !1;
|
|
158
158
|
};
|
|
159
|
-
return
|
|
159
|
+
return O(() => l.value[0].isValid, (e) => {
|
|
160
160
|
e === !1 && A();
|
|
161
161
|
}), (e, t) => (d(), c("div", L, [
|
|
162
162
|
s("h4", null, r(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
|
|
163
|
-
s("div",
|
|
164
|
-
s("div",
|
|
165
|
-
s("div",
|
|
166
|
-
s("div",
|
|
167
|
-
s("div",
|
|
168
|
-
s("div",
|
|
169
|
-
s("div",
|
|
163
|
+
s("div", q, r(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
|
|
164
|
+
s("div", G, [
|
|
165
|
+
s("div", H, [
|
|
166
|
+
s("div", J, [
|
|
167
|
+
s("div", K, [
|
|
168
|
+
s("div", Q, r(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
|
|
169
|
+
s("div", X, [
|
|
170
170
|
u(z, {
|
|
171
171
|
"button-text": e.$t(
|
|
172
172
|
"message.dataupload.datasets.dcat:contactPoint.useAccountButton"
|
|
@@ -178,8 +178,8 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
178
178
|
}, null, 8, ["button-text"])
|
|
179
179
|
])
|
|
180
180
|
]),
|
|
181
|
-
s("div",
|
|
182
|
-
(d(!0), c(E, null, D(Object.values(k.value), (a) => (d(), c("span",
|
|
181
|
+
s("div", Y, [
|
|
182
|
+
(d(!0), c(E, null, D(Object.values(k.value), (a) => (d(), c("span", Z, r(a), 1))), 256))
|
|
183
183
|
])
|
|
184
184
|
]),
|
|
185
185
|
s("div", ee, [
|
|
@@ -197,15 +197,15 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
197
197
|
}, null, 8, ["button-text"])
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
|
-
s("div",
|
|
201
|
-
(d(!0), c(E, null, D(w.value, (a) => (d(), c("span",
|
|
200
|
+
s("div", oe, [
|
|
201
|
+
(d(!0), c(E, null, D(w.value, (a) => (d(), c("span", le, r(a), 1))), 256))
|
|
202
202
|
])
|
|
203
203
|
])
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
206
|
s("div", ie, [
|
|
207
207
|
u(P, {
|
|
208
|
-
"model-value":
|
|
208
|
+
"model-value": l.value[0]["vcard:fn"],
|
|
209
209
|
"add-on-text": !1,
|
|
210
210
|
"date-picker": !1,
|
|
211
211
|
"info-icon": !1,
|
|
@@ -217,20 +217,20 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
217
217
|
"initial-hint-text": !1,
|
|
218
218
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
|
|
219
219
|
"show-end-icon": !1,
|
|
220
|
-
"show-error":
|
|
220
|
+
"show-error": o.value[1].show,
|
|
221
221
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => p(a, "vcard:fn", 1))
|
|
222
222
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
223
|
-
|
|
223
|
+
o.value[1].show ? (d(), c("div", ne, [
|
|
224
224
|
u(m(g), {
|
|
225
225
|
size: 16,
|
|
226
226
|
weight: "fill"
|
|
227
227
|
}),
|
|
228
|
-
s("span", re, r(
|
|
228
|
+
s("span", re, r(o.value[1].message), 1)
|
|
229
229
|
])) : h("", !0)
|
|
230
230
|
]),
|
|
231
231
|
s("div", ce, [
|
|
232
232
|
u(P, {
|
|
233
|
-
"model-value":
|
|
233
|
+
"model-value": l.value[0]["vcard:hasEmail"],
|
|
234
234
|
"add-on-text": !1,
|
|
235
235
|
"date-picker": !1,
|
|
236
236
|
"info-icon": !1,
|
|
@@ -242,20 +242,20 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
242
242
|
"initial-hint-text": !1,
|
|
243
243
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
|
|
244
244
|
"show-end-icon": !1,
|
|
245
|
-
"show-error":
|
|
245
|
+
"show-error": o.value[2].show,
|
|
246
246
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => p(a, "vcard:hasEmail", 2))
|
|
247
247
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
248
|
-
|
|
248
|
+
o.value[2].show ? (d(), c("div", de, [
|
|
249
249
|
u(m(g), {
|
|
250
250
|
size: 16,
|
|
251
251
|
weight: "fill"
|
|
252
252
|
}),
|
|
253
|
-
s("span", ue, r(
|
|
253
|
+
s("span", ue, r(o.value[2].message), 1)
|
|
254
254
|
])) : h("", !0)
|
|
255
255
|
]),
|
|
256
256
|
s("div", pe, [
|
|
257
257
|
u(P, {
|
|
258
|
-
"model-value":
|
|
258
|
+
"model-value": l.value[0]["vcard:hasTelephone"],
|
|
259
259
|
"add-on-text": !1,
|
|
260
260
|
"date-picker": !1,
|
|
261
261
|
"info-icon": !1,
|
|
@@ -267,19 +267,19 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
267
267
|
"initial-hint-text": !1,
|
|
268
268
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
|
|
269
269
|
"show-end-icon": !1,
|
|
270
|
-
"show-error":
|
|
270
|
+
"show-error": o.value[3].show,
|
|
271
271
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => p(a, "vcard:hasTelephone", 3))
|
|
272
272
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
273
|
-
|
|
273
|
+
o.value[3].show ? (d(), c("div", fe, [
|
|
274
274
|
u(m(g), {
|
|
275
275
|
size: 16,
|
|
276
276
|
weight: "fill"
|
|
277
277
|
}),
|
|
278
|
-
s("span", me, r(
|
|
278
|
+
s("span", me, r(o.value[3].message), 1)
|
|
279
279
|
])) : h("", !0)
|
|
280
280
|
]),
|
|
281
281
|
s("div", ve, r(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
|
|
282
|
-
|
|
282
|
+
l.value.find((a) => a.isValid === !1) ? (d(), c("div", he, [
|
|
283
283
|
u(m(g), {
|
|
284
284
|
size: 16,
|
|
285
285
|
weight: "fill"
|
|
@@ -288,7 +288,7 @@ const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
|
|
|
288
288
|
])) : h("", !0)
|
|
289
289
|
]));
|
|
290
290
|
}
|
|
291
|
-
}, Ce = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-
|
|
291
|
+
}, Ce = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-071ac638"]]);
|
|
292
292
|
export {
|
|
293
293
|
Ce as default
|
|
294
294
|
};
|
|
@@ -54,7 +54,7 @@ const w = { class: "dpiV3_findabilityWrap" }, B = { class: "dpiV3_findabilityThe
|
|
|
54
54
|
])) : y("", !0)
|
|
55
55
|
]));
|
|
56
56
|
}
|
|
57
|
-
}, $ = /* @__PURE__ */ z(S, [["__scopeId", "data-v-
|
|
57
|
+
}, $ = /* @__PURE__ */ z(S, [["__scopeId", "data-v-6d18d828"]]);
|
|
58
58
|
export {
|
|
59
59
|
$ as default
|
|
60
60
|
};
|