@piveau/dpi 0.2.0-alpha.41 → 0.2.0-alpha.43
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/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +97 -80
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +107 -90
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +96 -80
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +115 -93
- 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 +120 -109
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +60 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +9 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +114 -103
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +180 -185
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +101 -90
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +74 -74
- package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitMessages.js +14 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitSummary.js +46 -0
- package/dist/packages/dpi/src/data-provider-interface/utils/useSteps.js +35 -29
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +22 -21
- package/dist/packages/dpi/src/utils/twinbyUtils.js +1 -0
- package/dist/styles/_dpi.scss +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { parentSymbol as g } from "@formkit/vue";
|
|
2
|
+
import { whenever as h } from "@vueuse/core";
|
|
3
|
+
import { toRef as w, computed as n, inject as b, ref as p, nextTick as v } from "vue";
|
|
4
|
+
function S(d) {
|
|
5
|
+
const o = w(d), c = n(() => (o == null ? void 0 : o.value) || b(g, void 0));
|
|
6
|
+
let s = null, r = null;
|
|
7
|
+
const a = p([]), i = p(!1), m = n(() => {
|
|
8
|
+
const e = [];
|
|
9
|
+
return a.value.forEach((t) => {
|
|
10
|
+
for (const l in t.messages) {
|
|
11
|
+
const u = t.messages[l];
|
|
12
|
+
typeof u.value == "string" && e.push({
|
|
13
|
+
message: u.value,
|
|
14
|
+
id: t.id,
|
|
15
|
+
key: `${t.id}-${u.key}`,
|
|
16
|
+
type: u.type
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}), e;
|
|
20
|
+
}), f = () => {
|
|
21
|
+
var e;
|
|
22
|
+
a.value = [], (e = c.value) == null || e.walk(
|
|
23
|
+
(t) => t.context && a.value.push(t.context)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
h(c, (e, t, l) => {
|
|
27
|
+
s && (t == null || t.off(s), t == null || t.off(r)), e && (s = e.on("submit-raw", async () => {
|
|
28
|
+
f(), m.value.length !== 0 && (i.value = !0, await v());
|
|
29
|
+
}), r = e.on("child", f), l(() => {
|
|
30
|
+
e == null || e.off(s || ""), e == null || e.off(r || "");
|
|
31
|
+
}));
|
|
32
|
+
}, {
|
|
33
|
+
immediate: !0
|
|
34
|
+
});
|
|
35
|
+
async function y() {
|
|
36
|
+
f(), m.value.length !== 0 && (i.value = !0, await v());
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
summaries: m,
|
|
40
|
+
showSummaries: i,
|
|
41
|
+
submit: y
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
S as useFormKitSummary
|
|
46
|
+
};
|
|
@@ -1,43 +1,49 @@
|
|
|
1
|
-
import { getNode as
|
|
2
|
-
import { ref as s, reactive as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
1
|
+
import { getNode as v, createMessage as o } from "@formkit/core";
|
|
2
|
+
import { ref as s, reactive as f, watch as g, toRef as m } from "vue";
|
|
3
|
+
function h() {
|
|
4
|
+
const i = s(""), a = f({});
|
|
5
5
|
let u = s([]);
|
|
6
|
-
const
|
|
7
|
-
function n(
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const r = s([]);
|
|
7
|
+
function n(e) {
|
|
8
|
+
const t = v(e);
|
|
9
|
+
t !== void 0 && (t.walk((p) => {
|
|
10
|
+
p.store.set(
|
|
11
|
+
o({
|
|
12
12
|
key: "submitted",
|
|
13
13
|
value: !0,
|
|
14
14
|
visible: !1
|
|
15
15
|
})
|
|
16
16
|
);
|
|
17
|
-
})
|
|
17
|
+
}), t.store.set(
|
|
18
|
+
o({
|
|
19
|
+
key: "submitted",
|
|
20
|
+
value: !0,
|
|
21
|
+
visible: !1
|
|
22
|
+
})
|
|
23
|
+
));
|
|
18
24
|
}
|
|
19
25
|
function l() {
|
|
20
|
-
n(
|
|
26
|
+
n(i.value);
|
|
21
27
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
n(
|
|
28
|
+
function c() {
|
|
29
|
+
r.value.forEach((e) => {
|
|
30
|
+
n(e);
|
|
25
31
|
});
|
|
26
32
|
}
|
|
27
|
-
return g(
|
|
28
|
-
|
|
29
|
-
}), { visitedSteps:
|
|
30
|
-
if (
|
|
31
|
-
return a[
|
|
32
|
-
const
|
|
33
|
-
a[
|
|
34
|
-
}),
|
|
35
|
-
a[
|
|
36
|
-
}),
|
|
37
|
-
a[
|
|
38
|
-
}),
|
|
39
|
-
}, triggerValidation:
|
|
33
|
+
return g(i, (e, t) => {
|
|
34
|
+
t && !r.value.includes(t) && r.value.push(t);
|
|
35
|
+
}), { visitedSteps: r, activeStep: i, steps: a, subSteps: u, stepPlugin: (e) => {
|
|
36
|
+
if (e.props.type == "group")
|
|
37
|
+
return a[e.name] = a[e.name] || {}, e.on("created", () => {
|
|
38
|
+
const t = m(e.context.state, "valid");
|
|
39
|
+
a[e.name].valid = t;
|
|
40
|
+
}), e.on("count:blocking", ({ payload: t }) => {
|
|
41
|
+
a[e.name].blockingCount = t;
|
|
42
|
+
}), e.on("count:errors", ({ payload: t }) => {
|
|
43
|
+
a[e.name].errorCount = t;
|
|
44
|
+
}), i.value === "" && (i.value = e.name), u.value.push(e.value), !1;
|
|
45
|
+
}, triggerValidation: c, triggerValidationCurrentStep: l };
|
|
40
46
|
}
|
|
41
47
|
export {
|
|
42
|
-
|
|
48
|
+
h as default
|
|
43
49
|
};
|
|
@@ -7,7 +7,7 @@ import { whenever as B1, useWindowScroll as E1 } from "@vueuse/core";
|
|
|
7
7
|
import "axios";
|
|
8
8
|
import "jquery";
|
|
9
9
|
import { has as U, isNil as c1 } from "lodash-es";
|
|
10
|
-
import { defineComponent as A1, resolveComponent as r, createElementBlock as d, openBlock as p, createCommentVNode as h, createElementVNode as i, createBlock as C1, withModifiers as U1, withCtx as n, createVNode as t, Fragment as f1, renderList as v1, normalizeClass as N1, createTextVNode as S1, toDisplayString as
|
|
10
|
+
import { defineComponent as A1, resolveComponent as r, createElementBlock as d, openBlock as p, createCommentVNode as h, createElementVNode as i, createBlock as C1, withModifiers as U1, withCtx as n, createVNode as t, Fragment as f1, renderList as v1, normalizeClass as N1, createTextVNode as S1, toDisplayString as _, computed as M, ref as v, markRaw as R1, toRef as z1, watch as g1, nextTick as G1 } from "vue";
|
|
11
11
|
import { useI18n as W1 } from "vue-i18n";
|
|
12
12
|
import { useRouter as q1 } from "vue-router";
|
|
13
13
|
import { mapActions as h1, mapGetters as V1 } from "vuex";
|
|
@@ -45,8 +45,8 @@ import be from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
|
45
45
|
import ye from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
46
46
|
import ke from "../HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js";
|
|
47
47
|
import Pe from "../HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js";
|
|
48
|
-
import
|
|
49
|
-
import
|
|
48
|
+
import Ie from "../HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js";
|
|
49
|
+
import _e from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js";
|
|
50
50
|
import Me from "../HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js";
|
|
51
51
|
import Fe from "../HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js";
|
|
52
52
|
import Le from "../HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js";
|
|
@@ -110,7 +110,7 @@ const ze = A1({
|
|
|
110
110
|
ProjectOrganisationStep: pe,
|
|
111
111
|
SoftwareStep: Me,
|
|
112
112
|
DatasetStep: Pe,
|
|
113
|
-
HardwareStep:
|
|
113
|
+
HardwareStep: Ie,
|
|
114
114
|
OptionalDataStep: ke,
|
|
115
115
|
InitiierenStep: Fe,
|
|
116
116
|
UmstezenStep: je,
|
|
@@ -120,7 +120,7 @@ const ze = A1({
|
|
|
120
120
|
DataProcessingBasicInformationStep: Ce,
|
|
121
121
|
DataVisualisationBasicInformationStep: ve,
|
|
122
122
|
DataSimulationBasicInformationStep: fe,
|
|
123
|
-
ProcessStepsOverviewStep:
|
|
123
|
+
ProcessStepsOverviewStep: _e,
|
|
124
124
|
ReviewStep: $e,
|
|
125
125
|
ProjektPhasenOverviewStep: Te,
|
|
126
126
|
Card: me,
|
|
@@ -336,7 +336,7 @@ const ze = A1({
|
|
|
336
336
|
set(l) {
|
|
337
337
|
Z(l.id);
|
|
338
338
|
}
|
|
339
|
-
}), b1 = v(!1), { organization: y1, catalogProject: k1, startFetchPermissions: P1, userRoles:
|
|
339
|
+
}), b1 = v(!1), { organization: y1, catalogProject: k1, startFetchPermissions: P1, userRoles: I1, permissions: _1 } = ne({
|
|
340
340
|
keycloak: ((l1 = (s1 = e.authentication) == null ? void 0 : s1.keycloak) == null ? void 0 : l1.url) || "https://keycloak.twin.bydata.de",
|
|
341
341
|
realm: ((d1 = (p1 = e.authentication) == null ? void 0 : p1.keycloak) == null ? void 0 : d1.realm) || "piveau",
|
|
342
342
|
audience: "piveau-hub-repo"
|
|
@@ -357,7 +357,7 @@ const ze = A1({
|
|
|
357
357
|
const P = a1("dpiForm");
|
|
358
358
|
if (P)
|
|
359
359
|
if (S.includes("#")) {
|
|
360
|
-
const [
|
|
360
|
+
const [I, $1] = S.split("#"), u1 = P.at([I]);
|
|
361
361
|
if (!u1)
|
|
362
362
|
return;
|
|
363
363
|
const n1 = u1.at(["$self", $1]);
|
|
@@ -365,10 +365,10 @@ const ze = A1({
|
|
|
365
365
|
return;
|
|
366
366
|
n1._value = {}, m1(n1);
|
|
367
367
|
} else {
|
|
368
|
-
const
|
|
369
|
-
if (!
|
|
368
|
+
const I = P.at([S]);
|
|
369
|
+
if (!I)
|
|
370
370
|
return;
|
|
371
|
-
|
|
371
|
+
I._value = {}, m1(I);
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}
|
|
@@ -412,8 +412,8 @@ const ze = A1({
|
|
|
412
412
|
isSubmittingLoading: F1,
|
|
413
413
|
organization: y1,
|
|
414
414
|
catalogProject: k1,
|
|
415
|
-
userRoles:
|
|
416
|
-
permissions:
|
|
415
|
+
userRoles: I1,
|
|
416
|
+
permissions: _1
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
}), Ge = { class: "input-page-project form-container V3-typography" }, We = {
|
|
@@ -604,13 +604,13 @@ function vt(e, o, u, y, F, g) {
|
|
|
604
604
|
}
|
|
605
605
|
}, [
|
|
606
606
|
i("div", et, [
|
|
607
|
-
i("div", tt,
|
|
607
|
+
i("div", tt, _(A + 1), 1),
|
|
608
608
|
e.checkStepValidity(c) ? (p(), d("span", {
|
|
609
609
|
key: 0,
|
|
610
610
|
class: "step--errors",
|
|
611
|
-
textContent:
|
|
611
|
+
textContent: _(s.errorCount + s.blockingCount)
|
|
612
612
|
}, null, 8, ot)) : h("", !0),
|
|
613
|
-
S1(
|
|
613
|
+
S1(_(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
614
614
|
]),
|
|
615
615
|
A != Object.keys(e.steps).length ? (p(), d("div", it)) : h("", !0)
|
|
616
616
|
], 10, xe))), 128)),
|
|
@@ -622,7 +622,7 @@ function vt(e, o, u, y, F, g) {
|
|
|
622
622
|
i("div", rt, [
|
|
623
623
|
i("details", st, [
|
|
624
624
|
o[15] || (o[15] = i("summary", null, "Form Values", -1)),
|
|
625
|
-
i("pre", lt,
|
|
625
|
+
i("pre", lt, _(JSON.stringify(e.formValues, null, 2)), 1)
|
|
626
626
|
]),
|
|
627
627
|
t(m, null, {
|
|
628
628
|
title: n(() => o[16] || (o[16] = [
|
|
@@ -873,8 +873,9 @@ function vt(e, o, u, y, F, g) {
|
|
|
873
873
|
default: n(() => [
|
|
874
874
|
t(t1, {
|
|
875
875
|
modelValue: e.formValues,
|
|
876
|
-
"onUpdate:modelValue": o[7] || (o[7] = (s) => e.formValues = s)
|
|
877
|
-
|
|
876
|
+
"onUpdate:modelValue": o[7] || (o[7] = (s) => e.formValues = s),
|
|
877
|
+
edit: e.isEditMode
|
|
878
|
+
}, null, 8, ["modelValue", "edit"])
|
|
878
879
|
]),
|
|
879
880
|
_: 1
|
|
880
881
|
}),
|
|
@@ -921,7 +922,7 @@ function vt(e, o, u, y, F, g) {
|
|
|
921
922
|
e.showErrorSummary && e.validationMessages.length ? (p(), d("div", Ct, [
|
|
922
923
|
o[17] || (o[17] = i("h4", null, "Bitte korrigieren Sie die folgenden Fehler:", -1)),
|
|
923
924
|
i("ul", ft, [
|
|
924
|
-
(p(!0), d(f1, null, v1(e.validationMessages, (s) => (p(), d("li", { key: s },
|
|
925
|
+
(p(!0), d(f1, null, v1(e.validationMessages, (s) => (p(), d("li", { key: s }, _(s), 1))), 128))
|
|
925
926
|
])
|
|
926
927
|
])) : h("", !0),
|
|
927
928
|
o[19] || (o[19] = i("hr", null, null, -1)),
|
|
@@ -943,7 +944,7 @@ function vt(e, o, u, y, F, g) {
|
|
|
943
944
|
], 512)) : h("", !0)
|
|
944
945
|
]);
|
|
945
946
|
}
|
|
946
|
-
const
|
|
947
|
+
const _3 = /* @__PURE__ */ Ae(ze, [["render", vt]]);
|
|
947
948
|
export {
|
|
948
|
-
|
|
949
|
+
_3 as default
|
|
949
950
|
};
|
package/dist/styles/_dpi.scss
CHANGED
|
@@ -1612,3 +1612,19 @@ innerRapModalItem {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
|
+
|
|
1616
|
+
.dpiV3_errorText {
|
|
1617
|
+
display: flex;
|
|
1618
|
+
padding: 0px var(--Spacing-3, 16px);
|
|
1619
|
+
align-items: flex-start;
|
|
1620
|
+
align-self: stretch;
|
|
1621
|
+
|
|
1622
|
+
/* Copy/Copy-Small-Regular */
|
|
1623
|
+
font-family: var(--font-family-secondary, Inter);
|
|
1624
|
+
font-size: var(--copy-small-regular-font-size, 15px);
|
|
1625
|
+
font-style: normal;
|
|
1626
|
+
font-weight: var(--copy-small-regular-font-weight, 400);
|
|
1627
|
+
line-height: var(--copy-small-regular-line-height, 24px); /* 160% */
|
|
1628
|
+
|
|
1629
|
+
color: var(--text-error, #a9242c);
|
|
1630
|
+
}
|