@piveau/dpi 0.2.0-alpha.24 → 0.2.0-alpha.27
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/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +43 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +23 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +206 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +76 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +7 -7
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +106 -135
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +114 -111
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +59 -52
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +44 -33
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +465 -452
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +83 -75
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +33 -33
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +37 -21
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +86 -73
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +197 -170
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +320 -317
- package/package.json +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +0 -7
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +0 -143
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js
CHANGED
|
@@ -52,7 +52,7 @@ const d = {
|
|
|
52
52
|
src: m,
|
|
53
53
|
alt: ""
|
|
54
54
|
}, g = { class: "label" };
|
|
55
|
-
function h(y,
|
|
55
|
+
function h(y, C, t, S, b, r) {
|
|
56
56
|
return s(), e("div", {
|
|
57
57
|
class: o(["state-tag", [r.stateClass, r.sizeClass]])
|
|
58
58
|
}, [
|
|
@@ -62,7 +62,7 @@ function h(y, b, t, C, S, r) {
|
|
|
62
62
|
i("span", g, c(t.label), 1)
|
|
63
63
|
], 2);
|
|
64
64
|
}
|
|
65
|
-
const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-
|
|
65
|
+
const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-c4af57c2"]]);
|
|
66
66
|
export {
|
|
67
67
|
E as default
|
|
68
68
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as p, computed as R, watch as
|
|
2
|
-
import { setResourcePublicationStatus as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { useRuntimeEnv as
|
|
6
|
-
import { useDpiUtils as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { ref as p, computed as R, watch as q, createElementBlock as F, openBlock as d, Fragment as H, createElementVNode as o, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as L, withModifiers as y, unref as n, toDisplayString as z, isRef as B } from "vue";
|
|
2
|
+
import { setResourcePublicationStatus as j, setDatasetPublicationStatus as I, deleteResource as J, deleteDataset as O } from "@piveau/sdk-core/hubRepo";
|
|
3
|
+
import { useRouter as W, useRoute as G } from "vue-router";
|
|
4
|
+
import { useStore as Q } from "vuex";
|
|
5
|
+
import { useRuntimeEnv as X } from "../../../composables/useRuntimeEnv.js";
|
|
6
|
+
import { useDpiUtils as Y } from "../../composables/useDpiUtils.js";
|
|
7
|
+
import Z from "./Dropdown.vue.js";
|
|
8
|
+
import ee from "./ModalSimpleV3.vue.js";
|
|
9
9
|
import k from "./StateTag.vue.js";
|
|
10
|
-
import
|
|
10
|
+
import te from "./Toast.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import ae from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
+
const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, se = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowUpdated" }, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
|
|
14
14
|
__name: "TableRowV3",
|
|
15
15
|
props: {
|
|
16
16
|
text: {
|
|
@@ -50,31 +50,35 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
50
50
|
allowDelete: {
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: !0
|
|
53
|
+
},
|
|
54
|
+
visibilityState: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "public"
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
59
|
emits: ["complete", "start"],
|
|
56
|
-
setup(
|
|
57
|
-
const t =
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
+
setup(w, { emit: _ }) {
|
|
61
|
+
const t = w, U = _, C = Q();
|
|
62
|
+
W();
|
|
63
|
+
const E = G(), c = X().api.hubUrl;
|
|
60
64
|
let s = p(!1), i = p(!1), v = p(!1), r = p({}), u = p({});
|
|
61
65
|
const D = R(() => {
|
|
62
66
|
var a;
|
|
63
|
-
return !!((a =
|
|
67
|
+
return !!((a = E.query) != null && a.fromDraft);
|
|
64
68
|
}), f = R(() => {
|
|
65
69
|
var a, e;
|
|
66
|
-
return (e = (a =
|
|
67
|
-
}), { toEditMode:
|
|
68
|
-
function
|
|
70
|
+
return (e = (a = C.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
71
|
+
}), { toEditMode: A } = Y();
|
|
72
|
+
function P() {
|
|
69
73
|
const a = t.draft || D.value, e = t.catalogue, l = t.id || t.dataset.id || t.catalogue.id;
|
|
70
|
-
|
|
71
|
-
routeName: t.type === "
|
|
74
|
+
A({
|
|
75
|
+
routeName: t.type === "projects" ? "DataProviderInterface-InputProject" : "DataProviderInterface-Input",
|
|
72
76
|
id: l,
|
|
73
77
|
catalogId: e,
|
|
74
78
|
isDraft: a,
|
|
75
79
|
locale: "de",
|
|
76
80
|
additionalParams: {
|
|
77
|
-
visibility: t.
|
|
81
|
+
visibility: t.visibilityState
|
|
78
82
|
}
|
|
79
83
|
});
|
|
80
84
|
}
|
|
@@ -83,12 +87,12 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
83
87
|
i.value = !1;
|
|
84
88
|
}, 2e3);
|
|
85
89
|
}
|
|
86
|
-
|
|
90
|
+
q(i, (a) => {
|
|
87
91
|
a && setTimeout(() => {
|
|
88
92
|
v.value || (i.value = !1);
|
|
89
93
|
}, 2e3);
|
|
90
94
|
});
|
|
91
|
-
function
|
|
95
|
+
function M() {
|
|
92
96
|
return t.draft ? [
|
|
93
97
|
{ "@value": "Ansehen", selected: !1, disabled: !1 },
|
|
94
98
|
{ "@value": "Bearbeiten", selected: !1, disabled: !t.allowEdit },
|
|
@@ -101,14 +105,14 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
101
105
|
{ "@value": "Löschen", selected: !1, disabled: !t.allowDelete }
|
|
102
106
|
];
|
|
103
107
|
}
|
|
104
|
-
async function
|
|
108
|
+
async function K(a, e) {
|
|
105
109
|
switch (a) {
|
|
106
110
|
case "goToDataset":
|
|
107
|
-
window.open(`/${t.type === "
|
|
111
|
+
window.open(`/${t.type === "projects" ? "projects" : t.type}/${t.id}`, "_blank");
|
|
108
112
|
break;
|
|
109
113
|
case "publishDataset":
|
|
110
|
-
if (e("start"), t.type === "
|
|
111
|
-
|
|
114
|
+
if (e("start"), t.type === "projects") {
|
|
115
|
+
j({
|
|
112
116
|
baseUrl: c,
|
|
113
117
|
id: t.id,
|
|
114
118
|
type: "project",
|
|
@@ -134,8 +138,8 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
134
138
|
}, e("complete");
|
|
135
139
|
break;
|
|
136
140
|
case "deleteDataset":
|
|
137
|
-
if (e("start"), t.type === "
|
|
138
|
-
await
|
|
141
|
+
if (e("start"), t.type === "projects") {
|
|
142
|
+
await J({
|
|
139
143
|
baseUrl: c,
|
|
140
144
|
id: t.id,
|
|
141
145
|
type: "project",
|
|
@@ -144,7 +148,7 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
144
148
|
}), e("complete");
|
|
145
149
|
break;
|
|
146
150
|
}
|
|
147
|
-
await
|
|
151
|
+
await O({
|
|
148
152
|
baseUrl: c,
|
|
149
153
|
id: t.id,
|
|
150
154
|
catalogId: t.catalogue,
|
|
@@ -157,8 +161,8 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
157
161
|
}, e("complete");
|
|
158
162
|
break;
|
|
159
163
|
case "setToDraft":
|
|
160
|
-
if (e("start"), t.type === "
|
|
161
|
-
|
|
164
|
+
if (e("start"), t.type === "projects") {
|
|
165
|
+
j({
|
|
162
166
|
baseUrl: c,
|
|
163
167
|
id: t.id,
|
|
164
168
|
type: "project",
|
|
@@ -184,14 +188,17 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
184
188
|
}, e("complete");
|
|
185
189
|
}
|
|
186
190
|
}
|
|
187
|
-
function
|
|
191
|
+
function N(a, e) {
|
|
192
|
+
return `/${a === "projects" ? "projects" : a}/${e}`;
|
|
193
|
+
}
|
|
194
|
+
function S(a) {
|
|
188
195
|
let e = "";
|
|
189
196
|
switch (typeof a == "string" ? e = a : e = a.target.innerText, e) {
|
|
190
197
|
case "Ansehen":
|
|
191
|
-
window.
|
|
198
|
+
window.open(N(t.type, t.id), "_blank");
|
|
192
199
|
break;
|
|
193
200
|
case "Bearbeiten":
|
|
194
|
-
|
|
201
|
+
P();
|
|
195
202
|
break;
|
|
196
203
|
case "Veröffentlichen":
|
|
197
204
|
r.value = {
|
|
@@ -220,7 +227,7 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
220
227
|
}
|
|
221
228
|
}
|
|
222
229
|
let g = p(!1);
|
|
223
|
-
function
|
|
230
|
+
function T(a, e) {
|
|
224
231
|
e ? g.value = !0 : g.value = !1;
|
|
225
232
|
}
|
|
226
233
|
function V(a) {
|
|
@@ -229,32 +236,32 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
229
236
|
function x(a) {
|
|
230
237
|
a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
|
|
231
238
|
}
|
|
232
|
-
return (a, e) => (d(),
|
|
233
|
-
|
|
234
|
-
class:
|
|
235
|
-
dpiV3_pressedTableRow:
|
|
239
|
+
return (a, e) => (d(), F(H, null, [
|
|
240
|
+
o("button", {
|
|
241
|
+
class: L(["dpiV3_tableRowWrapper", {
|
|
242
|
+
dpiV3_pressedTableRow: n(g),
|
|
236
243
|
tRowInDraft: t.fromDraft
|
|
237
244
|
}]),
|
|
238
245
|
onKeydown: [
|
|
239
|
-
e[3] || (e[3] = m(
|
|
240
|
-
e[4] || (e[4] = m(
|
|
246
|
+
e[3] || (e[3] = m(y((l) => V(l), ["prevent"]), ["space"])),
|
|
247
|
+
e[4] || (e[4] = m(y((l) => V(l), ["prevent"]), ["enter"]))
|
|
241
248
|
],
|
|
242
249
|
onKeyup: [
|
|
243
250
|
e[5] || (e[5] = m((l) => x(l), ["space"])),
|
|
244
251
|
e[6] || (e[6] = m((l) => x(l), ["enter"]))
|
|
245
252
|
]
|
|
246
253
|
}, [
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
o("div", le, [
|
|
255
|
+
o("div", {
|
|
249
256
|
class: "dpiV3_tableRowContent",
|
|
250
|
-
onMousedown: e[0] || (e[0] =
|
|
251
|
-
onMouseup: e[1] || (e[1] =
|
|
252
|
-
onClick: e[2] || (e[2] = (l) =>
|
|
257
|
+
onMousedown: e[0] || (e[0] = y((l) => T(l, !0), ["prevent"])),
|
|
258
|
+
onMouseup: e[1] || (e[1] = y((l) => T(l, !1), ["prevent"])),
|
|
259
|
+
onClick: e[2] || (e[2] = (l) => S("Ansehen"))
|
|
253
260
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
261
|
+
o("div", ne, [
|
|
262
|
+
o("span", oe, z(t.text), 1)
|
|
256
263
|
]),
|
|
257
|
-
|
|
264
|
+
o("div", se, [
|
|
258
265
|
t.draft ? (d(), b(k, {
|
|
259
266
|
key: 1,
|
|
260
267
|
label: "Entwurf",
|
|
@@ -263,19 +270,20 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
263
270
|
key: 0,
|
|
264
271
|
label: "Freigegeben",
|
|
265
272
|
state: "published"
|
|
266
|
-
}))
|
|
273
|
+
})),
|
|
274
|
+
o("span", ie, " Bearbeitet am: " + z(t.date), 1)
|
|
267
275
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
276
|
+
o("div", re, [
|
|
277
|
+
w.visibility ? (d(), b(k, {
|
|
270
278
|
key: 0,
|
|
271
|
-
label:
|
|
272
|
-
state: t.draft ? "draft" : "published",
|
|
279
|
+
label: w.visibility,
|
|
280
|
+
state: t.draft ? "visibility-draft" : "visibility-published",
|
|
273
281
|
"has-dot-icon": !1
|
|
274
282
|
}, null, 8, ["label", "state"])) : h("", !0)
|
|
275
283
|
])
|
|
276
284
|
], 32),
|
|
277
|
-
|
|
278
|
-
D.value ? h("", !0) : (d(), b(
|
|
285
|
+
o("div", ue, [
|
|
286
|
+
D.value ? h("", !0) : (d(), b(Z, {
|
|
279
287
|
key: 0,
|
|
280
288
|
type: "moreButton",
|
|
281
289
|
"not-draft": !D.value,
|
|
@@ -283,34 +291,34 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
|
|
|
283
291
|
text: {
|
|
284
292
|
support: "This is a supporting message"
|
|
285
293
|
},
|
|
286
|
-
data:
|
|
287
|
-
onClick:
|
|
294
|
+
data: M(),
|
|
295
|
+
onClick: S
|
|
288
296
|
}, null, 8, ["not-draft", "data"]))
|
|
289
297
|
])
|
|
290
298
|
])
|
|
291
299
|
], 34),
|
|
292
|
-
|
|
300
|
+
n(s) ? (d(), b(ee, {
|
|
293
301
|
key: 0,
|
|
294
|
-
buttons:
|
|
295
|
-
"header-text":
|
|
296
|
-
text:
|
|
297
|
-
action:
|
|
298
|
-
onClose: e[7] || (e[7] = (l) =>
|
|
299
|
-
onActionHandling: e[8] || (e[8] = (l) =>
|
|
302
|
+
buttons: n(r).button,
|
|
303
|
+
"header-text": n(r).header,
|
|
304
|
+
text: n(r).text,
|
|
305
|
+
action: n(r).action,
|
|
306
|
+
onClose: e[7] || (e[7] = (l) => B(s) ? s.value = !1 : s = !1),
|
|
307
|
+
onActionHandling: e[8] || (e[8] = (l) => K(l, U))
|
|
300
308
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0),
|
|
301
|
-
|
|
309
|
+
n(i) ? (d(), b(te, {
|
|
302
310
|
key: 1,
|
|
303
|
-
type:
|
|
304
|
-
text:
|
|
311
|
+
type: n(u).type,
|
|
312
|
+
text: n(u).text,
|
|
305
313
|
class: "dpiV3_tableToast",
|
|
306
|
-
button:
|
|
307
|
-
action:
|
|
308
|
-
onMouseenter: e[9] || (e[9] = (l) =>
|
|
314
|
+
button: n(u).button,
|
|
315
|
+
action: n(u).action,
|
|
316
|
+
onMouseenter: e[9] || (e[9] = (l) => B(v) ? v.value = !0 : v = !0),
|
|
309
317
|
onMouseleave: $
|
|
310
318
|
}, null, 8, ["type", "text", "button", "action"])) : h("", !0)
|
|
311
319
|
], 64));
|
|
312
320
|
}
|
|
313
|
-
},
|
|
321
|
+
}, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-e19eb221"]]);
|
|
314
322
|
export {
|
|
315
|
-
|
|
323
|
+
Te as default
|
|
316
324
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Spatial.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4797bd26"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as i, createCommentVNode as b, createBlock as h, Fragment as R, renderList as G, withDirectives as M, createElementVNode as y, vModelCheckbox as $, withCtx as U, createVNode as p } from "vue";
|
|
2
|
+
import I from "../HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js";
|
|
3
3
|
import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
4
4
|
import x from "../HappyFlowComponents/ui/Chip.vue.js";
|
|
5
5
|
import E from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
@@ -8,7 +8,7 @@ import T from "../HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js";
|
|
|
8
8
|
import W from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepInputCard.vue.js";
|
|
9
9
|
const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
10
10
|
key: 2,
|
|
11
|
-
class: "step-section-actions"
|
|
11
|
+
class: "step-section-actions dpiV3_tempAddMore"
|
|
12
12
|
}, ee = /* @__PURE__ */ B({
|
|
13
13
|
__name: "Spatial",
|
|
14
14
|
props: /* @__PURE__ */ C({
|
|
@@ -23,8 +23,8 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
|
-
setup(
|
|
27
|
-
const r =
|
|
26
|
+
setup(V) {
|
|
27
|
+
const r = V, s = L(V, "modelValue"), d = m(r.options.find((a) => a.id === "place") || r.options[0]), u = m(void 0), n = m(""), f = v(() => {
|
|
28
28
|
try {
|
|
29
29
|
if (!n.value)
|
|
30
30
|
return !1;
|
|
@@ -43,29 +43,29 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
43
43
|
function _(a) {
|
|
44
44
|
return a.startsWith("http://publications.europa.eu/resource/authority");
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
function
|
|
46
|
+
const A = v(() => f.value || !!u.value);
|
|
47
|
+
function w() {
|
|
48
48
|
var o;
|
|
49
|
-
const a = (o = n.value) == null ? void 0 : o.trim(),
|
|
50
|
-
|
|
49
|
+
const a = (o = n.value) == null ? void 0 : o.trim(), t = f.value, e = u.value, l = t ? a : e;
|
|
50
|
+
l && (s.value = [l], n.value = "", u.value = void 0);
|
|
51
51
|
}
|
|
52
|
-
return (a,
|
|
53
|
-
|
|
54
|
-
(
|
|
55
|
-
key: `spatial-${
|
|
52
|
+
return (a, t) => (i(), c("section", D, [
|
|
53
|
+
s.value.length > 0 ? (i(), c("div", K, [
|
|
54
|
+
(i(!0), c(R, null, G(s.value, (e, l) => (i(), c("div", {
|
|
55
|
+
key: `spatial-${l}`,
|
|
56
56
|
class: "functionalities"
|
|
57
57
|
}, [
|
|
58
|
-
|
|
59
|
-
id: `spatial-${
|
|
60
|
-
"onUpdate:modelValue":
|
|
58
|
+
M(y("input", {
|
|
59
|
+
id: `spatial-${l}`,
|
|
60
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o),
|
|
61
61
|
hidden: "",
|
|
62
62
|
value: e,
|
|
63
63
|
name: "spatial",
|
|
64
64
|
type: "checkbox"
|
|
65
65
|
}, null, 8, O), [
|
|
66
|
-
[
|
|
66
|
+
[$, s.value]
|
|
67
67
|
]),
|
|
68
|
-
_(e) ? (
|
|
68
|
+
_(e) ? (i(), h(T, {
|
|
69
69
|
key: 0,
|
|
70
70
|
"base-url": r.baseUrl,
|
|
71
71
|
vocabulary: e == null ? void 0 : e.split("/").slice(-2)[0],
|
|
@@ -73,12 +73,12 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
73
73
|
"setup-fn": (o) => o
|
|
74
74
|
}, {
|
|
75
75
|
default: U(({ result: o }) => {
|
|
76
|
-
var
|
|
76
|
+
var g, k;
|
|
77
77
|
return [
|
|
78
78
|
p(x, {
|
|
79
79
|
as: "label",
|
|
80
|
-
for: `spatial-${
|
|
81
|
-
text: ((
|
|
80
|
+
for: `spatial-${l}`,
|
|
81
|
+
text: ((g = o == null ? void 0 : o.pref_label) == null ? void 0 : g.de) || ((k = o == null ? void 0 : o.pref_label) == null ? void 0 : k.en),
|
|
82
82
|
setup: {
|
|
83
83
|
"@type": "select",
|
|
84
84
|
"@icon": "suffix",
|
|
@@ -91,10 +91,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
91
91
|
];
|
|
92
92
|
}),
|
|
93
93
|
_: 2
|
|
94
|
-
}, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (
|
|
94
|
+
}, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (i(), h(x, {
|
|
95
95
|
key: 1,
|
|
96
96
|
as: "label",
|
|
97
|
-
for: `spatial-${
|
|
97
|
+
for: `spatial-${l}`,
|
|
98
98
|
text: e,
|
|
99
99
|
setup: {
|
|
100
100
|
"@type": "select",
|
|
@@ -107,7 +107,7 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
107
107
|
}, null, 8, ["for", "text", "data"]))
|
|
108
108
|
]))), 128))
|
|
109
109
|
])) : b("", !0),
|
|
110
|
-
|
|
110
|
+
s.value.length === 0 ? (i(), h(W, {
|
|
111
111
|
key: 1,
|
|
112
112
|
class: "step-section",
|
|
113
113
|
"no-delete": ""
|
|
@@ -115,17 +115,17 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
115
115
|
default: U(() => {
|
|
116
116
|
var e;
|
|
117
117
|
return [
|
|
118
|
-
|
|
118
|
+
t[4] || (t[4] = y("h5", null, "Administrativer Bezug", -1)),
|
|
119
119
|
p(F, {
|
|
120
120
|
modelValue: d.value,
|
|
121
|
-
"onUpdate:modelValue":
|
|
121
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => d.value = l),
|
|
122
122
|
options: r.options,
|
|
123
123
|
label: "Gebiet der Abdeckung",
|
|
124
124
|
placeholder: "Wählen Sie das Gebiet der Abdeckung."
|
|
125
125
|
}, null, 8, ["modelValue", "options"]),
|
|
126
|
-
p(
|
|
126
|
+
p(I, {
|
|
127
127
|
modelValue: u.value,
|
|
128
|
-
"onUpdate:modelValue":
|
|
128
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => u.value = l),
|
|
129
129
|
by: "vocabulary",
|
|
130
130
|
label: (e = d.value) == null ? void 0 : e.name,
|
|
131
131
|
"base-url": r.baseUrl,
|
|
@@ -133,10 +133,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
133
133
|
placeholder: "Legen Sie die räumliche Abdeckung fest.",
|
|
134
134
|
name: "spatial"
|
|
135
135
|
}, null, 8, ["modelValue", "label", "base-url", "vocabulary"]),
|
|
136
|
-
|
|
136
|
+
t[5] || (t[5] = y("h5", null, "oder Geodatensatz", -1)),
|
|
137
137
|
p(E, {
|
|
138
138
|
modelValue: n.value,
|
|
139
|
-
"onUpdate:modelValue":
|
|
139
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => n.value = l),
|
|
140
140
|
"add-on-text": !1,
|
|
141
141
|
"date-picker": !1,
|
|
142
142
|
"info-icon": !1,
|
|
@@ -154,14 +154,14 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
|
|
|
154
154
|
_: 1,
|
|
155
155
|
__: [4, 5]
|
|
156
156
|
})) : b("", !0),
|
|
157
|
-
|
|
157
|
+
s.value.length === 0 ? (i(), c("div", P, [
|
|
158
158
|
p(N, {
|
|
159
159
|
"button-text": "Räumliche Abdeckung hinzufügen",
|
|
160
160
|
size: "medium",
|
|
161
161
|
variant: "tertiary",
|
|
162
162
|
"icon-start": "plus",
|
|
163
|
-
disabled: !
|
|
164
|
-
onClick:
|
|
163
|
+
disabled: !A.value,
|
|
164
|
+
onClick: w
|
|
165
165
|
}, null, 8, ["disabled"])
|
|
166
166
|
])) : b("", !0)
|
|
167
167
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./SpatialPage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56c592dd"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,43 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as p, computed as u, createElementBlock as c, openBlock as m, createElementVNode as i, createVNode as r, unref as g } from "vue";
|
|
2
|
+
import { PhLightbulb as f } from "@phosphor-icons/vue";
|
|
3
|
+
import { useFormValues as _ } from "../composables/useDpiFormValues.js";
|
|
4
|
+
import v from "./Spatial.vue.js";
|
|
5
|
+
import { useEditModeInfo as V } from "../composables/useDpiEditMode.js";
|
|
6
|
+
const h = { class: "dpiV3InnerComponentWrap" }, z = { class: "dropdown-container" }, b = { class: "dpiV3_Content_InputPage" }, A = { class: "dpiV3_Card_Tips" }, I = { class: "dpiV3_Icon_Title" }, E = /* @__PURE__ */ p({
|
|
6
7
|
__name: "SpatialPage",
|
|
7
8
|
props: {
|
|
8
9
|
context: Object
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
+
setup(k) {
|
|
11
12
|
var d;
|
|
12
|
-
const { isEditMode:
|
|
13
|
-
|
|
13
|
+
const { isEditMode: l } = V(), { formValues: t } = _();
|
|
14
|
+
l.value || (t.value.Additionals || (t.value.Additionals = {}), (d = t.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
|
|
14
15
|
{ isValid: !0 }
|
|
15
|
-
])),
|
|
16
|
+
])), l.value || (t.value.Covering["dcatde:politicalGeocodingURI"] = [
|
|
16
17
|
{ isValid: !0 }
|
|
17
18
|
]);
|
|
18
19
|
const o = u({
|
|
19
20
|
get() {
|
|
20
|
-
var
|
|
21
|
-
return ((n = (e = (
|
|
21
|
+
var s, e, n;
|
|
22
|
+
return ((n = (e = (s = t.value.Additionals) == null ? void 0 : s["dct:spatial"]) == null ? void 0 : e.filter((a) => !(a.isValid && Object.keys(a).length === 1))) == null ? void 0 : n.map((a) => a["@id"])) || [];
|
|
22
23
|
},
|
|
23
|
-
set(
|
|
24
|
-
|
|
25
|
-
...
|
|
24
|
+
set(s) {
|
|
25
|
+
t.value.Additionals || (t.value.Additionals = {}), t.value.Additionals["dct:spatial"] = [
|
|
26
|
+
...s.map((e) => ({ "@id": e }))
|
|
26
27
|
];
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
|
-
return (
|
|
30
|
-
e[
|
|
31
|
-
e[
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return (s, e) => (m(), c("div", h, [
|
|
31
|
+
e[3] || (e[3] = i("h4", null, " Legen Sie die räumliche Abdeckung Ihres Datensatzes fest (optional) ", -1)),
|
|
32
|
+
e[4] || (e[4] = i("div", { class: "copy-large-regular" }, " Bitte geben Sie an, auf welches geografische oder politische Gebiet sich Ihr Datensatz bezieht. Dies kann beispielsweise eine Stadt, eine Region, ein Land oder eine spezifische Verwaltungseinheit sein. Die Angabe des räumlichen Bezugs hilft anderen Nutzenden, Ihren Datensatz schnell im passenden Kontext zu finden und gezielt für ihre Zwecke einzusetzen. ", -1)),
|
|
33
|
+
i("div", z, [
|
|
34
|
+
r(v, {
|
|
34
35
|
modelValue: o.value,
|
|
35
36
|
"onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n)
|
|
36
|
-
}, null, 8, ["modelValue"])
|
|
37
|
+
}, null, 8, ["modelValue"]),
|
|
38
|
+
i("div", b, [
|
|
39
|
+
i("div", A, [
|
|
40
|
+
i("div", I, [
|
|
41
|
+
r(g(f), {
|
|
42
|
+
size: 32,
|
|
43
|
+
color: "#009fe3"
|
|
44
|
+
}),
|
|
45
|
+
e[1] || (e[1] = i("div", { class: "dpiV3_Info-Text dpiV3_activeStepName" }, " Beispiele ", -1))
|
|
46
|
+
]),
|
|
47
|
+
e[2] || (e[2] = i("div", { class: "dpiV3_CT-Content" }, [
|
|
48
|
+
i("div", { class: "dpiV3_copy_large_regular link_text" }, " Würzburg: http://publications.europa.eu/resource/authority/place/DEU-WUE "),
|
|
49
|
+
i("div", { class: "dpiV3_copy_large_regular link_text" }, " Deutschland: http://sws.geonames.org/2921044/ ")
|
|
50
|
+
], -1))
|
|
51
|
+
])
|
|
52
|
+
])
|
|
37
53
|
])
|
|
38
54
|
]));
|
|
39
55
|
}
|
|
40
56
|
});
|
|
41
57
|
export {
|
|
42
|
-
|
|
58
|
+
E as default
|
|
43
59
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-768749b1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|