@piveau/dpi 0.2.0-alpha.26 → 0.2.0-alpha.28
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/AboutProject.vue.js +4 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +107 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +67 -74
- 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 +18 -21
- 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/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/views/InputPage.vue.js +197 -170
- package/package.json +1 -1
|
@@ -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
|
};
|