@piveau/dpi 0.1.0-beta.70 → 0.1.0-beta.71
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.
|
@@ -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 Z, PhCheckCircle as G, PhLightbulb as J } 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,
|
|
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, toDisplayString as c, 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 O 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: J,
|
|
95
|
+
PhCheckCircle: G,
|
|
96
|
+
PhNumberCircleFive: Z,
|
|
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
|
+
O(
|
|
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
|
+
O(
|
|
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
|
+
O(
|
|
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: U } = 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: U,
|
|
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
|
+
}, Ue = { class: "formContainer formkit" }, Oe = { 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"], Ze = ["textContent"], Ge = { style: { "vertical-align": "middle" } }, Je = { class: "dpiV3_subStepWrapper" }, Qe = {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
408
408
|
}, Xe = {
|
|
@@ -435,18 +435,15 @@ 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" }, Ut = { class: "dpiV3_copy_large_semi_bold" }, Ot = { 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"), U = g("ModalSimpleV3");
|
|
444
444
|
return s(), r("div", Ae, [
|
|
445
445
|
e.isInput ? (s(), r("div", Le, [
|
|
446
|
-
o("div",
|
|
447
|
-
o("details", null, [
|
|
448
|
-
o("pre", null, c(JSON.stringify(e.formValues.Additionals, null, 2)), 1)
|
|
449
|
-
]),
|
|
446
|
+
o("div", Ue, [
|
|
450
447
|
v(L, {
|
|
451
448
|
id: "dpiForm",
|
|
452
449
|
modelValue: e.formValues,
|
|
@@ -459,7 +456,7 @@ function jt(e, t, i, l, a, m) {
|
|
|
459
456
|
}, ["prevent"]))
|
|
460
457
|
}, {
|
|
461
458
|
default: j(() => [
|
|
462
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div",
|
|
459
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Oe, [
|
|
463
460
|
o("div", Ee, [
|
|
464
461
|
v(C, {
|
|
465
462
|
"button-text": "Übersicht",
|
|
@@ -540,10 +537,10 @@ function jt(e, t, i, l, a, m) {
|
|
|
540
537
|
key: 4,
|
|
541
538
|
class: "dpiV3_step--errors",
|
|
542
539
|
textContent: c(n.errorCount + n.blockingCount)
|
|
543
|
-
}, null, 8,
|
|
544
|
-
o("span",
|
|
540
|
+
}, null, 8, Ze)) : p("", !0),
|
|
541
|
+
o("span", Ge, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
545
542
|
], 2),
|
|
546
|
-
o("div",
|
|
543
|
+
o("div", Je, [
|
|
547
544
|
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
|
|
548
545
|
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
|
|
549
546
|
e.activeStep === u ? (s(), r("div", Ye, [
|
|
@@ -770,10 +767,10 @@ function jt(e, t, i, l, a, m) {
|
|
|
770
767
|
o("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
771
768
|
]),
|
|
772
769
|
o("div", Lt, [
|
|
773
|
-
o("div",
|
|
770
|
+
o("div", Ut, " 4. " + c(e.$t(
|
|
774
771
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
775
772
|
)), 1),
|
|
776
|
-
o("p",
|
|
773
|
+
o("p", Ot, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
777
774
|
])
|
|
778
775
|
])
|
|
779
776
|
])
|
|
@@ -793,7 +790,7 @@ function jt(e, t, i, l, a, m) {
|
|
|
793
790
|
]),
|
|
794
791
|
_: 1
|
|
795
792
|
}, 8, ["modelValue", "plugins"]),
|
|
796
|
-
e.activeSimpleModal ? (s(), b(
|
|
793
|
+
e.activeSimpleModal ? (s(), b(U, {
|
|
797
794
|
key: 0,
|
|
798
795
|
buttons: e.modalSimpleConf.button,
|
|
799
796
|
"header-text": e.modalSimpleConf.header,
|