@piveau/dpi 0.1.0-beta.69 → 0.1.0-beta.70
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 +24 -16
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +277 -264
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +99 -92
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +228 -227
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +386 -325
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +10 -6
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.js +26 -23
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ function gt(t) {
|
|
|
5
5
|
return t.replace(/[^a-z0-9\s]/gi, "").replace(/\s+/g, "-").toLowerCase();
|
|
6
6
|
}
|
|
7
7
|
async function ft(t, g, l, b) {
|
|
8
|
-
var
|
|
8
|
+
var A, v, f, D, k, O, R, j, S, w, I, x, L, U, B, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ct, ot, st, lt;
|
|
9
9
|
const u = g.specification.prefixes;
|
|
10
10
|
let p = [];
|
|
11
11
|
const o = Object.keys(t);
|
|
@@ -25,7 +25,7 @@ async function ft(t, g, l, b) {
|
|
|
25
25
|
"@id": t.Discoverability.discoverabilityPage[e].uri
|
|
26
26
|
});
|
|
27
27
|
d.dataset["dcat:theme"] = i, t.Discoverability.hvdPage && Object.keys(t.Discoverability.hvdPage).length !== 0 && t.Discoverability.hvdPage[0].label !== void 0 && (d.dataset["dcatap:hvdCategory"] = {
|
|
28
|
-
"@id": (v = (
|
|
28
|
+
"@id": (v = (A = t.Discoverability) == null ? void 0 : A.hvdPage) == null ? void 0 : v[0].uri
|
|
29
29
|
}, d.dataset["dcatap:applicableLegislation"] = {
|
|
30
30
|
"@id": "http://data.europa.eu/eli/reg_impl/2023/138/oj"
|
|
31
31
|
});
|
|
@@ -65,7 +65,7 @@ async function ft(t, g, l, b) {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
Object.keys(t.Covering)[i] === "dcatde:politicalGeocodingURI" && ((j = (R = (O = t.Covering) == null ? void 0 : O["dcatde:politicalGeocodingURI"]) == null ? void 0 : R[0]) == null ? void 0 : j.uri) != null && (d.dataset["dcatde:politicalGeocodingURI"] = {
|
|
68
|
-
"@id": ((
|
|
68
|
+
"@id": ((w = (S = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : S[0]) == null ? void 0 : w.uri) || ""
|
|
69
69
|
}, d.dataset["dct:spatial"] === void 0 && (d.dataset["dct:spatial"] = []), d.dataset["dct:spatial"].push({
|
|
70
70
|
"@id": ((x = (I = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : I[0]) == null ? void 0 : x.uri) || ""
|
|
71
71
|
}));
|
|
@@ -143,6 +143,10 @@ async function ft(t, g, l, b) {
|
|
|
143
143
|
}), t.DistributionSimple["dcat:distribution"][i]["dct:title"] && (d.distribution[i]["dct:title"] = {
|
|
144
144
|
"@language": "de",
|
|
145
145
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dct:title"]
|
|
146
|
+
}), Object.keys(
|
|
147
|
+
t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"]
|
|
148
|
+
).length !== 0 && (d.distribution[i]["dct:accessRights"] = {
|
|
149
|
+
"@id": t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"].uri
|
|
146
150
|
}), t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"] != null && Object.keys(
|
|
147
151
|
t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"]
|
|
148
152
|
).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri !== "" && (d.distribution[i]["dcat:compressFormat"] = {
|
|
@@ -505,14 +509,14 @@ async function ft(t, g, l, b) {
|
|
|
505
509
|
} catch (c) {
|
|
506
510
|
console.log(c);
|
|
507
511
|
}
|
|
508
|
-
let
|
|
512
|
+
let h = yt(d, u);
|
|
509
513
|
return { actionParams: {
|
|
510
514
|
id: y,
|
|
511
515
|
catalog: l.permissions[0].rsname,
|
|
512
|
-
body:
|
|
516
|
+
body: h,
|
|
513
517
|
title: d.dataset["dct:title"]["@value"],
|
|
514
518
|
description: d.dataset["dct:description"]["@value"]
|
|
515
|
-
}, body:
|
|
519
|
+
}, body: h };
|
|
516
520
|
}
|
|
517
521
|
function yt(t, g) {
|
|
518
522
|
const l = {}, b = Object.keys(t);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { getNode as K } from "@formkit/core";
|
|
2
2
|
import "@formkit/vue";
|
|
3
|
-
import { PhNumberCircleFive as
|
|
3
|
+
import { PhNumberCircleFive as J, PhCheckCircle as Z, PhLightbulb as G } from "@phosphor-icons/vue";
|
|
4
4
|
import { useWindowScroll as Q } from "@vueuse/core";
|
|
5
5
|
import X from "jquery";
|
|
6
6
|
import { has as I, isNil as E } from "lodash-es";
|
|
7
|
-
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as v, createBlock as b, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y,
|
|
7
|
+
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as v, createBlock as b, toDisplayString as c, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y, vShow as H, createTextVNode as M, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
|
|
8
8
|
import { useI18n as te } from "vue-i18n";
|
|
9
9
|
import { mapActions as B, mapGetters as W } from "vuex";
|
|
10
10
|
import ie from "../components/InputPageStep.vue.js";
|
|
11
11
|
import se from "../components/Navigation.vue.js";
|
|
12
12
|
import { useFormValues as oe } from "../composables/useDpiFormValues.js";
|
|
13
13
|
import { useDpiStepper as ae } from "../composables/useDpiStepper.js";
|
|
14
|
-
import
|
|
14
|
+
import U from "../config/dcatapdeHappyFlow/converter.js";
|
|
15
15
|
import re from "../HappyFlowComponents/img/Circle.svg.js";
|
|
16
16
|
import le from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
17
17
|
import ne from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
@@ -91,9 +91,9 @@ const Fe = Y({
|
|
|
91
91
|
ButtonV3: Se,
|
|
92
92
|
TextButtonSmall: _e,
|
|
93
93
|
Illustration: Ce,
|
|
94
|
-
PhLightbulb:
|
|
95
|
-
PhCheckCircle:
|
|
96
|
-
PhNumberCircleFive:
|
|
94
|
+
PhLightbulb: G,
|
|
95
|
+
PhCheckCircle: Z,
|
|
96
|
+
PhNumberCircleFive: J,
|
|
97
97
|
ModalSimpleV3: Ve
|
|
98
98
|
},
|
|
99
99
|
computed: {
|
|
@@ -179,7 +179,7 @@ const Fe = Y({
|
|
|
179
179
|
i[this.stepCounter].substeps
|
|
180
180
|
)[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
|
|
181
181
|
let l = "auth/createDataset";
|
|
182
|
-
|
|
182
|
+
U(
|
|
183
183
|
this.formValues,
|
|
184
184
|
this.dpiContext,
|
|
185
185
|
this.getUserData,
|
|
@@ -201,7 +201,7 @@ const Fe = Y({
|
|
|
201
201
|
}
|
|
202
202
|
if (e === "depublish") {
|
|
203
203
|
let l = "auth/depublishById";
|
|
204
|
-
|
|
204
|
+
U(
|
|
205
205
|
this.formValues,
|
|
206
206
|
this.dpiContext,
|
|
207
207
|
this.getUserData,
|
|
@@ -223,7 +223,7 @@ const Fe = Y({
|
|
|
223
223
|
}
|
|
224
224
|
if (e === "draft") {
|
|
225
225
|
let l = "auth/createUserDraft";
|
|
226
|
-
|
|
226
|
+
U(
|
|
227
227
|
this.formValues,
|
|
228
228
|
this.dpiContext,
|
|
229
229
|
this.getUserData,
|
|
@@ -359,7 +359,7 @@ const Fe = Y({
|
|
|
359
359
|
stepPlugin: k,
|
|
360
360
|
goToNextStep: T,
|
|
361
361
|
goToPreviousStep: $
|
|
362
|
-
} = ae(), { formValues: D } = oe(), { t: P, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema:
|
|
362
|
+
} = ae(), { formValues: D } = oe(), { t: P, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: O } = we({
|
|
363
363
|
t: P,
|
|
364
364
|
te: w
|
|
365
365
|
}), n = () => {
|
|
@@ -383,7 +383,7 @@ const Fe = Y({
|
|
|
383
383
|
isEditMode: t,
|
|
384
384
|
translateSchema: A,
|
|
385
385
|
createSchema: L,
|
|
386
|
-
getSchema:
|
|
386
|
+
getSchema: O,
|
|
387
387
|
dpiContext: e,
|
|
388
388
|
formValues: D,
|
|
389
389
|
activeSimpleModal: F
|
|
@@ -393,7 +393,7 @@ const Fe = Y({
|
|
|
393
393
|
key: 0,
|
|
394
394
|
ref: "fkInputContainer",
|
|
395
395
|
class: "inputContainer"
|
|
396
|
-
},
|
|
396
|
+
}, Oe = { class: "formContainer formkit" }, Ue = { key: 0 }, Ee = { class: "dpiV3_stepper draftStepper" }, je = {
|
|
397
397
|
key: 0,
|
|
398
398
|
class: "draftCTA"
|
|
399
399
|
}, ze = {
|
|
@@ -402,7 +402,7 @@ const Fe = Y({
|
|
|
402
402
|
}, He = { key: 1 }, Me = {
|
|
403
403
|
key: 0,
|
|
404
404
|
class: "dpiV3_stepper"
|
|
405
|
-
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"],
|
|
405
|
+
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Je = ["textContent"], Ze = { style: { "vertical-align": "middle" } }, Ge = { class: "dpiV3_subStepWrapper" }, Qe = {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
408
408
|
}, Xe = {
|
|
@@ -435,15 +435,18 @@ const Fe = Y({
|
|
|
435
435
|
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
|
|
436
436
|
key: 3,
|
|
437
437
|
class: "dpiV3_Content_InputPage"
|
|
438
|
-
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, _t = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, kt = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" },
|
|
438
|
+
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, _t = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, kt = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" }, Ot = { class: "dpiV3_copy_large_semi_bold" }, Ut = { class: "dpiV3_copy_large_regular" }, Et = {
|
|
439
439
|
key: 5,
|
|
440
440
|
class: "p-1"
|
|
441
441
|
};
|
|
442
442
|
function jt(e, t, i, l, a, m) {
|
|
443
|
-
const C = g("TextButtonSmall"), h = g("ButtonV3"), k = g("LogoV3"), T = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), D = g("Illustration"), P = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"),
|
|
443
|
+
const C = g("TextButtonSmall"), h = g("ButtonV3"), k = g("LogoV3"), T = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), D = g("Illustration"), P = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"), O = g("ModalSimpleV3");
|
|
444
444
|
return s(), r("div", Ae, [
|
|
445
445
|
e.isInput ? (s(), r("div", Le, [
|
|
446
|
-
o("div",
|
|
446
|
+
o("div", Oe, [
|
|
447
|
+
o("details", null, [
|
|
448
|
+
o("pre", null, c(JSON.stringify(e.formValues.Additionals, null, 2)), 1)
|
|
449
|
+
]),
|
|
447
450
|
v(L, {
|
|
448
451
|
id: "dpiForm",
|
|
449
452
|
modelValue: e.formValues,
|
|
@@ -456,7 +459,7 @@ function jt(e, t, i, l, a, m) {
|
|
|
456
459
|
}, ["prevent"]))
|
|
457
460
|
}, {
|
|
458
461
|
default: j(() => [
|
|
459
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div",
|
|
462
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Ue, [
|
|
460
463
|
o("div", Ee, [
|
|
461
464
|
v(C, {
|
|
462
465
|
"button-text": "Übersicht",
|
|
@@ -537,10 +540,10 @@ function jt(e, t, i, l, a, m) {
|
|
|
537
540
|
key: 4,
|
|
538
541
|
class: "dpiV3_step--errors",
|
|
539
542
|
textContent: c(n.errorCount + n.blockingCount)
|
|
540
|
-
}, null, 8,
|
|
541
|
-
o("span",
|
|
543
|
+
}, null, 8, Je)) : p("", !0),
|
|
544
|
+
o("span", Ze, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
542
545
|
], 2),
|
|
543
|
-
o("div",
|
|
546
|
+
o("div", Ge, [
|
|
544
547
|
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
|
|
545
548
|
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
|
|
546
549
|
e.activeStep === u ? (s(), r("div", Ye, [
|
|
@@ -767,10 +770,10 @@ function jt(e, t, i, l, a, m) {
|
|
|
767
770
|
o("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
768
771
|
]),
|
|
769
772
|
o("div", Lt, [
|
|
770
|
-
o("div",
|
|
773
|
+
o("div", Ot, " 4. " + c(e.$t(
|
|
771
774
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
772
775
|
)), 1),
|
|
773
|
-
o("p",
|
|
776
|
+
o("p", Ut, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
774
777
|
])
|
|
775
778
|
])
|
|
776
779
|
])
|
|
@@ -790,7 +793,7 @@ function jt(e, t, i, l, a, m) {
|
|
|
790
793
|
]),
|
|
791
794
|
_: 1
|
|
792
795
|
}, 8, ["modelValue", "plugins"]),
|
|
793
|
-
e.activeSimpleModal ? (s(), b(
|
|
796
|
+
e.activeSimpleModal ? (s(), b(O, {
|
|
794
797
|
key: 0,
|
|
795
798
|
buttons: e.modalSimpleConf.button,
|
|
796
799
|
"header-text": e.modalSimpleConf.header,
|