@piveau/dpi 0.1.0-beta.43 → 0.1.0-beta.45
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 +64 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +2 -12
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +326 -242
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +337 -325
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +9 -9
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +20 -10
- package/dist/data-provider-interface/views/InputPage.vue.js +96 -95
- package/package.json +1 -1
|
@@ -16,10 +16,20 @@ const u = async (a) => {
|
|
|
16
16
|
}, d = async (a) => {
|
|
17
17
|
try {
|
|
18
18
|
let e = `${a}vocabularies/iana-media-types`;
|
|
19
|
-
const
|
|
19
|
+
const r = await c.get(e, {
|
|
20
20
|
headers: { Accept: "application/json" }
|
|
21
21
|
});
|
|
22
|
-
return console.log(
|
|
22
|
+
return console.log(r.data.result), r.data.result;
|
|
23
|
+
} catch (e) {
|
|
24
|
+
throw console.error("Error fetching file types:", e), e;
|
|
25
|
+
}
|
|
26
|
+
}, h = async (a) => {
|
|
27
|
+
try {
|
|
28
|
+
let e = `${a}vocabularies/file-type`;
|
|
29
|
+
const r = await c.get(e, {
|
|
30
|
+
headers: { Accept: "application/json" }
|
|
31
|
+
});
|
|
32
|
+
return console.log(r.data.result), r.data.result;
|
|
23
33
|
} catch (e) {
|
|
24
34
|
throw console.error("Error fetching file types:", e), e;
|
|
25
35
|
}
|
|
@@ -31,37 +41,37 @@ const u = async (a) => {
|
|
|
31
41
|
"municipality-key",
|
|
32
42
|
"regional-key",
|
|
33
43
|
"state-key"
|
|
34
|
-
],
|
|
44
|
+
], r = [], l = [];
|
|
35
45
|
try {
|
|
36
46
|
let s = `${a}vocabularies/political-geocoding-level`;
|
|
37
|
-
const
|
|
38
|
-
for (let o = 0; o <
|
|
47
|
+
const t = await c.get(s);
|
|
48
|
+
for (let o = 0; o < t.data.result.results.length; o++)
|
|
39
49
|
l.push(
|
|
40
50
|
await c.get(
|
|
41
51
|
`${a}vocabularies/political-geocoding-` + e[o]
|
|
42
52
|
)
|
|
43
|
-
),
|
|
53
|
+
), r.push({
|
|
44
54
|
headers: e[o],
|
|
45
55
|
list: l[o].data.result.results
|
|
46
56
|
});
|
|
47
|
-
return
|
|
57
|
+
return r;
|
|
48
58
|
} catch (s) {
|
|
49
59
|
throw console.error("Error fetching Dataset categories:", s), s;
|
|
50
60
|
}
|
|
51
|
-
},
|
|
52
|
-
const
|
|
61
|
+
}, p = async (a, e) => (await n(e)).map((s) => {
|
|
62
|
+
const t = s.list.filter(
|
|
53
63
|
(o) => o.alt_label && o.alt_label.de && o.alt_label.de.includes(a)
|
|
54
64
|
);
|
|
55
|
-
return { ...s, list:
|
|
56
|
-
}).filter((s) => s.list.length > 0),
|
|
65
|
+
return { ...s, list: t };
|
|
66
|
+
}).filter((s) => s.list.length > 0), y = async (a, e, r) => {
|
|
57
67
|
let l = [];
|
|
58
68
|
try {
|
|
59
|
-
let s = `${e}vocabularies/${
|
|
69
|
+
let s = `${e}vocabularies/${r}`;
|
|
60
70
|
return l = (await c.get(s)).data.result.results, l;
|
|
61
71
|
} catch (s) {
|
|
62
72
|
throw console.error("Error fetching Dataset categories:", s), s;
|
|
63
73
|
}
|
|
64
|
-
},
|
|
74
|
+
}, b = async (a) => {
|
|
65
75
|
try {
|
|
66
76
|
let e = `${a}vocabularies/planned-availability`;
|
|
67
77
|
return (await c.get(e)).data.result.results.map((l) => ({
|
|
@@ -72,65 +82,66 @@ const u = async (a) => {
|
|
|
72
82
|
} catch (e) {
|
|
73
83
|
throw console.error("Error fetching planned availability:", e), e;
|
|
74
84
|
}
|
|
75
|
-
},
|
|
85
|
+
}, f = async (a, e = "de") => {
|
|
76
86
|
try {
|
|
77
|
-
let
|
|
78
|
-
value:
|
|
79
|
-
label: `${
|
|
80
|
-
uri:
|
|
87
|
+
let r = `${a}vocabularies/language`, s = (await c.get(r)).data.result.results.map((t) => ({
|
|
88
|
+
value: t.id,
|
|
89
|
+
label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
|
|
90
|
+
uri: t.resource
|
|
81
91
|
}));
|
|
82
|
-
return s.sort((
|
|
83
|
-
} catch (
|
|
84
|
-
throw console.error("Error fetching languages:",
|
|
92
|
+
return s.sort((t, o) => t.label.localeCompare(o.label, e)), s;
|
|
93
|
+
} catch (r) {
|
|
94
|
+
throw console.error("Error fetching languages:", r), r;
|
|
85
95
|
}
|
|
86
|
-
},
|
|
96
|
+
}, v = async (a, e = "de") => {
|
|
87
97
|
try {
|
|
88
|
-
let
|
|
89
|
-
return (await c.get(
|
|
98
|
+
let r = `${a}vocabularies/licence`;
|
|
99
|
+
return (await c.get(r)).data.result.results.map((t) => {
|
|
90
100
|
var o;
|
|
91
101
|
return {
|
|
92
|
-
value:
|
|
93
|
-
label:
|
|
94
|
-
homepage: ((o =
|
|
95
|
-
uri:
|
|
102
|
+
value: t.id,
|
|
103
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
104
|
+
homepage: ((o = t.extensions) == null ? void 0 : o.foaf_homepage) || null,
|
|
105
|
+
uri: t.resource
|
|
96
106
|
};
|
|
97
107
|
});
|
|
98
|
-
} catch (
|
|
99
|
-
throw console.error("Error fetching licenses:",
|
|
108
|
+
} catch (r) {
|
|
109
|
+
throw console.error("Error fetching licenses:", r), r;
|
|
100
110
|
}
|
|
101
|
-
},
|
|
111
|
+
}, w = async (a, e = "de") => {
|
|
102
112
|
try {
|
|
103
|
-
let
|
|
104
|
-
return (await c.get(
|
|
105
|
-
value:
|
|
106
|
-
label:
|
|
107
|
-
resource:
|
|
113
|
+
let r = `${a}vocabularies/dataset-status`;
|
|
114
|
+
return (await c.get(r)).data.result.results.map((t) => ({
|
|
115
|
+
value: t.id,
|
|
116
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
117
|
+
resource: t.resource || null
|
|
108
118
|
}));
|
|
109
|
-
} catch (
|
|
110
|
-
throw console.error("Error fetching dataset status:",
|
|
119
|
+
} catch (r) {
|
|
120
|
+
throw console.error("Error fetching dataset status:", r), r;
|
|
111
121
|
}
|
|
112
|
-
},
|
|
122
|
+
}, $ = async (a, e = "en") => {
|
|
113
123
|
try {
|
|
114
|
-
let
|
|
115
|
-
return (await c.get(
|
|
116
|
-
value:
|
|
117
|
-
label:
|
|
118
|
-
resource:
|
|
124
|
+
let r = `${a}vocabularies/spdx-checksum-algorithm`;
|
|
125
|
+
return (await c.get(r)).data.result.results.map((t) => ({
|
|
126
|
+
value: t.id,
|
|
127
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
128
|
+
resource: t.resource || null
|
|
119
129
|
}));
|
|
120
|
-
} catch (
|
|
121
|
-
throw console.error("Error fetching checksum algorithms:",
|
|
130
|
+
} catch (r) {
|
|
131
|
+
throw console.error("Error fetching checksum algorithms:", r), r;
|
|
122
132
|
}
|
|
123
133
|
};
|
|
124
134
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
135
|
+
p as filterGeocodingURIs,
|
|
136
|
+
$ as getChecksumAlgorithms,
|
|
127
137
|
g as getDatasetCategories,
|
|
128
|
-
|
|
138
|
+
w as getDatasetStatus,
|
|
129
139
|
d as getFileTypes,
|
|
140
|
+
h as getFormatTypes,
|
|
130
141
|
n as getGeocodingURIs,
|
|
131
142
|
u as getHvdCategories,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
143
|
+
f as getLanguages,
|
|
144
|
+
v as getLicenses,
|
|
145
|
+
y as getOptionalURIs,
|
|
146
|
+
b as getPlannedAvailability
|
|
136
147
|
};
|
|
@@ -51,17 +51,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
51
51
|
var i, r;
|
|
52
52
|
const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
|
|
53
53
|
return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
|
|
54
|
-
}), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => {
|
|
55
|
-
if (t.activeSection === "findabilityHvd")
|
|
56
|
-
return D();
|
|
57
|
-
if (t.activeSection === "essentials")
|
|
58
|
-
return J();
|
|
59
|
-
if (t.activeSection === "coverage") {
|
|
60
|
-
debugger;
|
|
61
|
-
return K();
|
|
62
|
-
}
|
|
63
|
-
return l.value = !1, !0;
|
|
64
|
-
}, F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
|
|
54
|
+
}), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => t.activeSection === "findabilityHvd" ? D() : t.activeSection === "essentials" ? J() : t.activeSection === "coverage" ? K() : (l.value = !1, !0), F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
|
|
65
55
|
I() && T();
|
|
66
56
|
}, T = () => {
|
|
67
57
|
l.value = !1, R("close");
|
|
@@ -212,7 +202,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
212
202
|
]);
|
|
213
203
|
};
|
|
214
204
|
}
|
|
215
|
-
}, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-
|
|
205
|
+
}, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-37fe91ab"]]);
|
|
216
206
|
export {
|
|
217
207
|
Ne as default
|
|
218
208
|
};
|