@piveau/dpi 0.1.0-beta.45 → 0.1.0-beta.47
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/services/dpiV3_apis.js +43 -43
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +316 -302
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +32 -36
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +120 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +40 -40
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +44 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +57 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +61 -45
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +394 -378
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +42 -42
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +3 -3
- package/dist/data-provider-interface/components/DistLicense.vue.js +107 -96
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +329 -310
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +39 -39
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +2 -2
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +176 -179
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +203 -195
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +5 -5
- package/dist/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
- package/package.json +1 -1
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { filterGeocodingURIs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { ref as l, getCurrentInstance as _, resolveComponent as x, createElementBlock as C, openBlock as y, createVNode as n, withCtx as m, unref as f } from "vue";
|
|
2
|
+
import { filterGeocodingURIs as T } from "../../services/dpiV3_apis.js";
|
|
3
|
+
import w from "../Dropdown.vue.js";
|
|
4
|
+
import h from "../../../components/TempResPageInModal.vue.js";
|
|
5
5
|
import "@formkit/core";
|
|
6
|
-
import { useFormValues as
|
|
7
|
-
const
|
|
6
|
+
import { useFormValues as O } from "../../../composables/useDpiFormValues.js";
|
|
7
|
+
const P = { class: "dpiV3_innerRapModalWrapper" }, S = {
|
|
8
8
|
__name: "CoverageModal",
|
|
9
9
|
props: {
|
|
10
10
|
context: Object,
|
|
11
11
|
newValues: Object
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const { formValues:
|
|
18
|
-
((
|
|
13
|
+
setup(g, { expose: v }) {
|
|
14
|
+
var d, c;
|
|
15
|
+
const a = l(null);
|
|
16
|
+
let i = l([]), V = _().appContext.app.config.globalProperties.$env, r;
|
|
17
|
+
const { formValues: t } = O();
|
|
18
|
+
((c = (d = t.value.Covering) == null ? void 0 : d["dcat:temporalResolution"]) == null ? void 0 : c["dct:temporal"]) === void 0 && (t.value.Covering["dcat:temporalResolution"] = {
|
|
19
19
|
isValid: !0,
|
|
20
20
|
type: "dct:PeriodOfTime",
|
|
21
21
|
"dct:temporal": [
|
|
@@ -25,7 +25,7 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
|
|
|
25
25
|
"dcat:endDate": ""
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
|
-
}),
|
|
28
|
+
}), l(), l({
|
|
29
29
|
"dcatde:politicalGeocodingURI": [
|
|
30
30
|
{
|
|
31
31
|
isValid: !0,
|
|
@@ -48,40 +48,40 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
|
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
|
-
}), console.log(
|
|
52
|
-
const b = (
|
|
53
|
-
|
|
51
|
+
}), console.log(t), console.log({});
|
|
52
|
+
const b = (e, o) => {
|
|
53
|
+
t.value.Covering[Object.keys(t.value.Covering)[0]] = [
|
|
54
54
|
{
|
|
55
55
|
isValid: !0,
|
|
56
|
-
uri:
|
|
57
|
-
id:
|
|
58
|
-
label:
|
|
59
|
-
inVoc:
|
|
56
|
+
uri: e.resource,
|
|
57
|
+
id: e.id,
|
|
58
|
+
label: e.alt_label.de,
|
|
59
|
+
inVoc: o
|
|
60
60
|
}
|
|
61
|
-
]
|
|
62
|
-
}, I = async (
|
|
63
|
-
clearTimeout(
|
|
64
|
-
if (
|
|
61
|
+
];
|
|
62
|
+
}, I = async (e) => {
|
|
63
|
+
clearTimeout(r), r = setTimeout(async () => {
|
|
64
|
+
if (e !== "")
|
|
65
65
|
try {
|
|
66
|
-
console.log(
|
|
67
|
-
} catch (
|
|
68
|
-
console.log(
|
|
66
|
+
console.log(e), i.value = await T(e, V.api.baseUrl);
|
|
67
|
+
} catch (o) {
|
|
68
|
+
console.log(o);
|
|
69
69
|
}
|
|
70
70
|
}, 500);
|
|
71
71
|
};
|
|
72
|
-
return
|
|
73
|
-
validateAllItems: () =>
|
|
74
|
-
}), (
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
|
|
72
|
+
return v({
|
|
73
|
+
validateAllItems: () => a.value && a.value.validateAllItems ? a.value.validateAllItems() : !1
|
|
74
|
+
}), (e, o) => {
|
|
75
|
+
const s = x("innerRapModalItem");
|
|
76
|
+
return y(), C("div", P, [
|
|
77
|
+
n(s, null, {
|
|
78
78
|
default: m(() => {
|
|
79
|
-
var
|
|
79
|
+
var p, u;
|
|
80
80
|
return [
|
|
81
|
-
|
|
81
|
+
n(w, {
|
|
82
82
|
dropdownWidth: "large",
|
|
83
83
|
type: "inputField",
|
|
84
|
-
onInput:
|
|
84
|
+
onInput: o[0] || (o[0] = (R) => I(R)),
|
|
85
85
|
inputFieldProps: {
|
|
86
86
|
addOnText: !1,
|
|
87
87
|
initialHintText: !1,
|
|
@@ -96,21 +96,21 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
|
|
|
96
96
|
autocomplete: "true"
|
|
97
97
|
},
|
|
98
98
|
onValueSent: b,
|
|
99
|
-
data: f(
|
|
99
|
+
data: f(i),
|
|
100
100
|
multi: "true",
|
|
101
101
|
autocomplete: !0,
|
|
102
|
-
modelValue: (
|
|
102
|
+
modelValue: (u = (p = f(t).Covering) == null ? void 0 : p["dcatde:politicalGeocodingURI"]) == null ? void 0 : u[0].label
|
|
103
103
|
}, null, 8, ["data", "modelValue"])
|
|
104
104
|
];
|
|
105
105
|
}),
|
|
106
106
|
_: 1
|
|
107
107
|
}),
|
|
108
|
-
|
|
108
|
+
n(s, null, {
|
|
109
109
|
default: m(() => [
|
|
110
|
-
|
|
110
|
+
n(h, {
|
|
111
111
|
ref_key: "tempResPageRef",
|
|
112
|
-
ref:
|
|
113
|
-
context:
|
|
112
|
+
ref: a,
|
|
113
|
+
context: g.context,
|
|
114
114
|
inRap: !0,
|
|
115
115
|
class: "dpiV3_tempresCard"
|
|
116
116
|
}, null, 8, ["context"])
|
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js
CHANGED
|
@@ -1,103 +1,42 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { getLicenses as
|
|
3
|
-
import
|
|
4
|
-
import A from "../../../components/DistributionSimplePage.vue.js";
|
|
1
|
+
import { ref as e, getCurrentInstance as i, watch as u, onMounted as m, resolveComponent as f, createElementBlock as d, openBlock as v, createVNode as n, withCtx as _ } from "vue";
|
|
2
|
+
import { getLicenses as b } from "../../services/dpiV3_apis.js";
|
|
3
|
+
import g from "../../../components/DistributionSimplePage.vue.js";
|
|
5
4
|
import "@formkit/core";
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
5
|
+
import { useFormValues as h } from "../../../composables/useDpiFormValues.js";
|
|
6
|
+
const x = { class: "dpiV3_innerRapModalWrapper" }, O = {
|
|
9
7
|
__name: "DistributionModal",
|
|
10
8
|
props: {
|
|
11
9
|
context: Object,
|
|
12
10
|
newValues: Object
|
|
13
11
|
},
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
a
|
|
18
|
-
|
|
19
|
-
const { formValues: r } = H(), v = a("");
|
|
20
|
-
let y = a(!1), b = a({ 1: !1, 2: !1 });
|
|
21
|
-
const o = a([
|
|
12
|
+
setup(c) {
|
|
13
|
+
e(), e(""), e([]), i().appContext.app.config.globalProperties.$env;
|
|
14
|
+
let l = e([]);
|
|
15
|
+
const { formValues: a } = h();
|
|
16
|
+
return e(""), e(!1), e({ 1: !1, 2: !1 }), e([
|
|
22
17
|
{ isValid: "unset", "dcterms:license": "", title: "", uri: "" }
|
|
23
|
-
]),
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
const
|
|
27
|
-
g(t, "dcterms:license", 1);
|
|
28
|
-
}, g = (e, t, l, n) => {
|
|
29
|
-
const u = e === "" || s.value.some((i) => i["@value"] === e);
|
|
30
|
-
let p = a();
|
|
31
|
-
s.value.some((i) => i["@value"] === e) && (p.value = s.value.find(
|
|
32
|
-
(i) => i["@value"] === e
|
|
33
|
-
).label), !u && e !== "" ? (v.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", b.value[l] = !1, o.value[0].isValid = !1) : (v.value = "", y.value = e !== "", e !== "" ? (b.value[l] = !0, e !== "" && b.value[2] && (o.value[0].isValid = !0)) : (b.value[l] = !1, o.value[0].isValid = !1), o.value = o.value.map((i) => t in i ? { ...i, [t]: e, uri: n, title: p } : i)), console.log(r.value.DistributionSimple), r.value.DistributionSimple["dct:license"] = o.value;
|
|
34
|
-
};
|
|
35
|
-
return k(async () => {
|
|
36
|
-
const t = B().appContext.app.config.globalProperties.$env;
|
|
18
|
+
]), e(!1), u(a.value.DistributionSimple.length, (r) => {
|
|
19
|
+
a.value.DistributionSimple.length > 1 && console.log("halo"), console.log("halo Outer");
|
|
20
|
+
}), m(async () => {
|
|
21
|
+
const s = i().appContext.app.config.globalProperties.$env;
|
|
37
22
|
try {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
"@value":
|
|
41
|
-
label:
|
|
42
|
-
uri:
|
|
43
|
-
})),
|
|
44
|
-
} catch (
|
|
45
|
-
console.error("Failed to load licenses",
|
|
23
|
+
const t = await b(s.api.baseUrl);
|
|
24
|
+
l.value = t.map((o) => ({
|
|
25
|
+
"@value": o.value,
|
|
26
|
+
label: o.label,
|
|
27
|
+
uri: o.uri
|
|
28
|
+
})), l.value.sort((o, p) => o["@value"].localeCompare(p["@value"]));
|
|
29
|
+
} catch (t) {
|
|
30
|
+
console.error("Failed to load licenses", t);
|
|
46
31
|
}
|
|
47
|
-
}), (
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"onUpdate:modelValue": [
|
|
56
|
-
t[0] || (t[0] = (d) => P(d, "dcterms:license", 1)),
|
|
57
|
-
t[1] || (t[1] = (d) => N(f) ? f.value = d : f = d)
|
|
58
|
-
],
|
|
59
|
-
dropdownWidth: "large",
|
|
60
|
-
onInput: _,
|
|
61
|
-
type: "inputField",
|
|
62
|
-
modelValue: c(f),
|
|
63
|
-
inputFieldProps: {
|
|
64
|
-
addOnText: !1,
|
|
65
|
-
initialHintText: !1,
|
|
66
|
-
datePicker: !1,
|
|
67
|
-
infoIcon: !1,
|
|
68
|
-
preIcon: !1,
|
|
69
|
-
label: "Lizenz",
|
|
70
|
-
dropdown_dpiV3: !0,
|
|
71
|
-
placeholder: ((V = (i = (p = (u = (n = c(r).DistributionSimple) == null ? void 0 : n["dcat:distribution"]) == null ? void 0 : u[0]) == null ? void 0 : p["dct:license"]) == null ? void 0 : i[0]) == null ? void 0 : V["dcterms:license"]) || ((w = (h = (D = c(r).DistributionSimple) == null ? void 0 : D["dct:license"]) == null ? void 0 : h[0]) == null ? void 0 : w["dcterms:license"]) || "Lizenz wählen...",
|
|
72
|
-
inputFieldSize: "large",
|
|
73
|
-
defaultInput: !0,
|
|
74
|
-
showError: !1
|
|
75
|
-
},
|
|
76
|
-
data: c(s),
|
|
77
|
-
onDeleteButtonClicked: e.deleteModifiedField,
|
|
78
|
-
class: "gap5BottomAsMargin"
|
|
79
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
|
|
80
|
-
m(U, {
|
|
81
|
-
label: e.$t(
|
|
82
|
-
"message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
|
|
83
|
-
),
|
|
84
|
-
infoIcon: !1,
|
|
85
|
-
preIcon: !1,
|
|
86
|
-
initialHintText: !0,
|
|
87
|
-
"supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
|
|
88
|
-
showEndIcon: !1,
|
|
89
|
-
placeholder: ((L = (x = (I = c(r).DistributionSimple) == null ? void 0 : I["dcat:distribution"]) == null ? void 0 : x[0]) == null ? void 0 : L["dcatde:licenseAttributionByText"]) || ((S = (C = (z = c(r).DistributionSimple) == null ? void 0 : z["dct:license"]) == null ? void 0 : C[0]) == null ? void 0 : S.attribution) || "Nennung des Datenbereitstellers",
|
|
90
|
-
modelValue: o.value[0].attribution,
|
|
91
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) => o.value[0].attribution = d)
|
|
92
|
-
}, null, 8, ["label", "placeholder", "modelValue"])
|
|
93
|
-
];
|
|
94
|
-
}),
|
|
95
|
-
_: 1
|
|
96
|
-
}),
|
|
97
|
-
m(l, null, {
|
|
98
|
-
default: F(() => [
|
|
99
|
-
m(A, {
|
|
100
|
-
context: M.context,
|
|
32
|
+
}), (r, s) => {
|
|
33
|
+
const t = f("innerRapModalItem");
|
|
34
|
+
return v(), d("div", x, [
|
|
35
|
+
n(t),
|
|
36
|
+
n(t, null, {
|
|
37
|
+
default: _(() => [
|
|
38
|
+
n(g, {
|
|
39
|
+
context: c.context,
|
|
101
40
|
inRap: !0
|
|
102
41
|
}, null, 8, ["context"])
|
|
103
42
|
]),
|
|
@@ -108,5 +47,5 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
108
47
|
}
|
|
109
48
|
};
|
|
110
49
|
export {
|
|
111
|
-
|
|
50
|
+
O as default
|
|
112
51
|
};
|
|
@@ -40,8 +40,8 @@ const se = { class: "dpiV3_tableRowInner" }, oe = { class: "dpiV3_TableRowDescCo
|
|
|
40
40
|
A({ id: a, catalogId: e, isDraft: n, locale: "de" });
|
|
41
41
|
}, E = (n, e, a, h) => {
|
|
42
42
|
console.log(t.dataset), D.dispatch("auth/putDatasetToDraft", { id: n, catalog: e, title: a, description: h });
|
|
43
|
-
}, K = (n, e) => {
|
|
44
|
-
D.dispatch("auth/publishUserDraftById", { id: n, catalog: e });
|
|
43
|
+
}, K = async (n, e) => {
|
|
44
|
+
await D.dispatch("auth/publishUserDraftById", { id: n, catalog: e });
|
|
45
45
|
}, y = async (n, e) => {
|
|
46
46
|
const a = n || t.dataset && t.dataset.id || t.catalogue && t.catalogue.id, h = e || t.catalogue, H = $.api.hubUrl, J = !!t.draft ? `drafts/datasets/${a}?catalogue=${h}` : `datasets/${a}?useNormalizedId=true&catalogue=${h}`, j = `${H}${J}`;
|
|
47
47
|
await te.delete(j, {
|
|
@@ -230,7 +230,7 @@ const se = { class: "dpiV3_tableRowInner" }, oe = { class: "dpiV3_TableRowDescCo
|
|
|
230
230
|
}, null, 8, ["type", "text", "button", "action"])) : b("", !0)
|
|
231
231
|
], 64));
|
|
232
232
|
}
|
|
233
|
-
}, Ve = /* @__PURE__ */ ne(ue, [["__scopeId", "data-v-
|
|
233
|
+
}, Ve = /* @__PURE__ */ ne(ue, [["__scopeId", "data-v-faa1fe1c"]]);
|
|
234
234
|
export {
|
|
235
235
|
Ve as default
|
|
236
236
|
};
|