@piveau/dpi 0.2.0-alpha.40 → 0.2.0-alpha.42
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 +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +84 -65
- 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/Card.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
- 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 +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +96 -77
- 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 +20 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
- 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 +140 -121
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -49
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +179 -184
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
- 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 +104 -92
- 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/stories/components/LinkCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
- package/dist/packages/dpi/src/utils/twinbyUtils.js +29 -4
- package/dist/styles/_dpi.scss +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, createBlock as r, openBlock as o, unref as e } from "vue";
|
|
2
|
+
import { FormKit as l } from "@formkit/vue";
|
|
3
|
+
import { generateIsInvalidMsg as n } from "../../../utils/twinbyUtils.js";
|
|
4
|
+
import m from "./InputField/InputFieldDefinition.js";
|
|
5
|
+
const v = /* @__PURE__ */ a({
|
|
6
|
+
__name: "UrlField",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
required: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const i = t;
|
|
13
|
+
return (s, p) => (o(), r(e(l), {
|
|
14
|
+
type: e(m),
|
|
15
|
+
name: i.name,
|
|
16
|
+
"text-label": "URL",
|
|
17
|
+
"trailing-text": !1,
|
|
18
|
+
placeholder: "https://www.url.com",
|
|
19
|
+
validation: i.required ? "required|url" : "url",
|
|
20
|
+
"validation-visibility": "submit",
|
|
21
|
+
"validation-label": "URL",
|
|
22
|
+
"validation-messages": {
|
|
23
|
+
url: e(n)("URL")
|
|
24
|
+
}
|
|
25
|
+
}, null, 8, ["type", "name", "validation", "validation-messages"]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
v as default
|
|
30
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-80612429"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getNode as
|
|
3
|
-
import { getValidationMessages as
|
|
4
|
-
import { PhExclamationMark as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineComponent as G, inject as H, ref as h, watch as J, computed as y, createElementBlock as u, openBlock as n, normalizeClass as Q, createElementVNode as x, createBlock as C, createCommentVNode as E, createVNode as c, renderSlot as P, unref as z, normalizeStyle as X, withDirectives as S, vShow as b, Fragment as D, withCtx as k, renderList as Y, toDisplayString as L, nextTick as A } from "vue";
|
|
2
|
+
import { getNode as _, isNode as ee } from "@formkit/core";
|
|
3
|
+
import { getValidationMessages as te } from "@formkit/validation";
|
|
4
|
+
import { PhExclamationMark as oe } from "@phosphor-icons/vue";
|
|
5
|
+
import { useFormKitSummary as ae } from "../composables/useFormKitSummary.js";
|
|
6
|
+
import d from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
7
|
+
import ne from "../HappyFlowComponents/ui/Card.vue.js";
|
|
8
|
+
import { dpiStepperKey as ie } from "../utils/injectionKeys.js";
|
|
9
|
+
import se from "./TheCancelConfirmationDialog.vue.js";
|
|
10
|
+
import { useEditModeInfo as re } from "../composables/useDpiEditMode.js";
|
|
11
|
+
const le = { class: "step-actions" }, ue = { class: "step-actions__prev-and-next" }, ce = { style: { margin: "0" } }, de = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "validation-errors"
|
|
13
|
-
},
|
|
14
|
+
}, be = /* @__PURE__ */ G({
|
|
14
15
|
__name: "StepActionsSection",
|
|
15
16
|
props: {
|
|
16
17
|
hideCancel: { type: Boolean, default: !1 },
|
|
@@ -27,62 +28,72 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
27
28
|
showDetailedErrorSummary: { type: Boolean, default: !1 }
|
|
28
29
|
},
|
|
29
30
|
emits: ["submit", "closeWithSaving"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
31
|
+
setup(F, { emit: M }) {
|
|
32
|
+
const s = F, T = M, t = H(ie);
|
|
32
33
|
t || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
|
|
33
|
-
|
|
34
|
+
const { summaries: W, submit: j } = ae();
|
|
35
|
+
function N(e) {
|
|
34
36
|
return e !== void 0;
|
|
35
37
|
}
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
function T() {
|
|
41
|
-
f.value = !0;
|
|
38
|
+
const v = h(!1), f = h(!1), r = h([]);
|
|
39
|
+
function B() {
|
|
40
|
+
v.value = !0;
|
|
42
41
|
}
|
|
43
|
-
function
|
|
42
|
+
function p() {
|
|
44
43
|
t == null || t.goToPreviousStep();
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
function I(e) {
|
|
46
|
+
const o = (a) => {
|
|
47
|
+
for (const l in a.store) {
|
|
48
|
+
const i = a.store[l];
|
|
49
|
+
i.type === "error" || i.type === "ui" && l === "incomplete" ? a.store.remove(l) : i.type === "state" && a.store.set({ ...i, value: !1 });
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
o(e), e.walk(o);
|
|
53
|
+
}
|
|
54
|
+
async function g() {
|
|
55
|
+
var w, V;
|
|
56
|
+
if (!N(t))
|
|
49
57
|
return !1;
|
|
50
|
-
t.triggerValidationCurrentStep(), await
|
|
58
|
+
t.triggerValidationCurrentStep(), await A();
|
|
51
59
|
const e = t.activeStep.value;
|
|
52
60
|
if (!e)
|
|
53
61
|
return !1;
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
56
|
-
return console.error("Current step node is not a FormKitNode",
|
|
57
|
-
|
|
58
|
-
const a =
|
|
59
|
-
return
|
|
62
|
+
const o = _(e);
|
|
63
|
+
if (!ee(o))
|
|
64
|
+
return console.error("Current step node is not a FormKitNode", o), !1;
|
|
65
|
+
await j();
|
|
66
|
+
const a = te(o), l = !!((V = (w = t.steps) == null ? void 0 : w[e]) != null && V.valid), i = a && a.size > 0 || !l;
|
|
67
|
+
return i || (I(o), o.clearErrors(!0), f.value = !1, await A()), !i;
|
|
60
68
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
J(W, (e) => {
|
|
70
|
+
e && e.length > 0 ? (f.value = !0, r.value = (e == null ? void 0 : e.map((o) => o.message)) || []) : (f.value = !1, r.value.splice(0, r.value.length));
|
|
71
|
+
});
|
|
72
|
+
function K(e, o) {
|
|
73
|
+
g().then((a) => {
|
|
74
|
+
a ? e() : o && typeof o == "function" && o();
|
|
64
75
|
});
|
|
65
76
|
}
|
|
66
|
-
function
|
|
77
|
+
function $() {
|
|
67
78
|
t == null || t.goToNextStep();
|
|
68
79
|
}
|
|
69
|
-
async function
|
|
70
|
-
!
|
|
80
|
+
async function m() {
|
|
81
|
+
!N(t) || !await g() || (t != null && t.isLast.value ? T("submit") : t == null || t.goToNextStep());
|
|
71
82
|
}
|
|
72
|
-
const { isEditMode:
|
|
73
|
-
async function
|
|
74
|
-
!t || !await
|
|
83
|
+
const { isEditMode: R } = re();
|
|
84
|
+
async function O() {
|
|
85
|
+
!t || !await g() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
|
|
75
86
|
}
|
|
76
|
-
const
|
|
77
|
-
{ "step-actions-container--compact":
|
|
78
|
-
|
|
79
|
-
]);
|
|
80
|
-
return (e,
|
|
81
|
-
class:
|
|
87
|
+
const U = y(() => t ? t == null ? void 0 : t.isLast.value : !0), Z = y(() => [
|
|
88
|
+
{ "step-actions-container--compact": s.compact },
|
|
89
|
+
s.classList
|
|
90
|
+
]), q = y(() => s.showDetailedErrorSummary ? "Fehler" : "Bitte füllen Sie alle Pflichtfelder aus und geben Sie gültige Formate an, bevor Sie fortfahren.");
|
|
91
|
+
return (e, o) => (n(), u("div", {
|
|
92
|
+
class: Q([Z.value, "step-actions-container"])
|
|
82
93
|
}, [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
94
|
+
x("div", le, [
|
|
95
|
+
z(R) ? (n(), u(D, { key: 1 }, [
|
|
96
|
+
U.value ? S((n(), C(d, {
|
|
86
97
|
key: 1,
|
|
87
98
|
class: "edit-save-button",
|
|
88
99
|
size: "large",
|
|
@@ -90,98 +101,99 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
90
101
|
type: "button",
|
|
91
102
|
"button-text": e.nextText,
|
|
92
103
|
"icon-end": e.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
|
|
93
|
-
loading:
|
|
94
|
-
onClick:
|
|
104
|
+
loading: s.loading,
|
|
105
|
+
onClick: m
|
|
95
106
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"])), [
|
|
96
|
-
[
|
|
97
|
-
]) : (
|
|
107
|
+
[b, !e.hideNext]
|
|
108
|
+
]) : (n(), C(d, {
|
|
98
109
|
key: 0,
|
|
99
110
|
class: "edit-save-button",
|
|
100
111
|
size: "large",
|
|
101
112
|
variant: "primary",
|
|
102
113
|
type: "button",
|
|
103
114
|
"button-text": "Speichern",
|
|
104
|
-
onClick:
|
|
115
|
+
onClick: O
|
|
105
116
|
}))
|
|
106
|
-
], 64)) :
|
|
117
|
+
], 64)) : P(e.$slots, "default", {
|
|
107
118
|
key: 0,
|
|
108
|
-
handleCancel:
|
|
109
|
-
handlePrevious:
|
|
110
|
-
handleSubmit:
|
|
119
|
+
handleCancel: B,
|
|
120
|
+
handlePrevious: p,
|
|
121
|
+
handleSubmit: m
|
|
111
122
|
}, () => [
|
|
112
|
-
|
|
113
|
-
style:
|
|
123
|
+
c(d, {
|
|
124
|
+
style: X({ opacity: e.hideCancel ? 0 : 1 }),
|
|
114
125
|
variant: "tertiary",
|
|
115
126
|
size: "large",
|
|
116
127
|
type: "button",
|
|
117
128
|
"button-text": e.cancelText,
|
|
118
|
-
onClick:
|
|
129
|
+
onClick: B
|
|
119
130
|
}, null, 8, ["style", "button-text"]),
|
|
120
|
-
|
|
121
|
-
|
|
131
|
+
x("div", ue, [
|
|
132
|
+
P(e.$slots, "prev-and-next", {
|
|
122
133
|
hidePrevious: e.hidePrevious,
|
|
123
134
|
hideNext: e.hideNext,
|
|
124
135
|
previousText: e.previousText,
|
|
125
136
|
nextText: e.nextText,
|
|
126
|
-
handleNext:
|
|
127
|
-
handlePrevious:
|
|
128
|
-
handleSubmit:
|
|
129
|
-
loading:
|
|
130
|
-
validate:
|
|
137
|
+
handleNext: $,
|
|
138
|
+
handlePrevious: p,
|
|
139
|
+
handleSubmit: m,
|
|
140
|
+
loading: s.loading,
|
|
141
|
+
validate: K
|
|
131
142
|
}, () => [
|
|
132
|
-
|
|
143
|
+
S(c(d, {
|
|
133
144
|
variant: "secondary",
|
|
134
145
|
size: "large",
|
|
135
146
|
type: "button",
|
|
136
147
|
"button-text": e.previousText,
|
|
137
148
|
"icon-start": "CaretLeft",
|
|
138
|
-
onClick:
|
|
149
|
+
onClick: p
|
|
139
150
|
}, null, 8, ["button-text"]), [
|
|
140
|
-
[
|
|
151
|
+
[b, !e.hidePrevious]
|
|
141
152
|
]),
|
|
142
|
-
|
|
153
|
+
S(c(d, {
|
|
143
154
|
size: "large",
|
|
144
155
|
variant: e.nextVariant,
|
|
145
156
|
type: "button",
|
|
146
157
|
"button-text": e.nextText,
|
|
147
158
|
"icon-end": e.nextText === "Als Entwurf Speichern" || e.nextText === "Projektanlage starten" ? null : "CaretRight",
|
|
148
|
-
loading:
|
|
149
|
-
onClick:
|
|
159
|
+
loading: s.loading,
|
|
160
|
+
onClick: m
|
|
150
161
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"]), [
|
|
151
|
-
[
|
|
162
|
+
[b, !e.hideNext]
|
|
152
163
|
])
|
|
153
164
|
], !0)
|
|
154
165
|
])
|
|
155
166
|
], !0)
|
|
156
167
|
]),
|
|
157
|
-
|
|
168
|
+
f.value && r.value.length ? (n(), C(ne, {
|
|
158
169
|
key: 0,
|
|
159
|
-
variant: "error"
|
|
170
|
+
variant: "error",
|
|
171
|
+
"icon-top": ""
|
|
160
172
|
}, {
|
|
161
|
-
icon:
|
|
162
|
-
|
|
173
|
+
icon: k(() => [
|
|
174
|
+
c(z(oe), {
|
|
163
175
|
size: 32,
|
|
164
176
|
color: "currentColor"
|
|
165
177
|
})
|
|
166
178
|
]),
|
|
167
|
-
title:
|
|
168
|
-
|
|
169
|
-
])
|
|
170
|
-
default:
|
|
171
|
-
e.showDetailedErrorSummary ? (
|
|
172
|
-
(
|
|
173
|
-
])) :
|
|
179
|
+
title: k(() => [
|
|
180
|
+
x("p", ce, L(q.value), 1)
|
|
181
|
+
]),
|
|
182
|
+
default: k(() => [
|
|
183
|
+
e.showDetailedErrorSummary ? (n(), u("ul", de, [
|
|
184
|
+
(n(!0), u(D, null, Y(r.value, (a) => (n(), u("li", { key: a }, L(a), 1))), 128))
|
|
185
|
+
])) : E("", !0)
|
|
174
186
|
]),
|
|
175
187
|
_: 1
|
|
176
|
-
})) :
|
|
177
|
-
|
|
178
|
-
modelValue:
|
|
179
|
-
"onUpdate:modelValue":
|
|
180
|
-
onCloseWithSaving:
|
|
188
|
+
})) : E("", !0),
|
|
189
|
+
c(se, {
|
|
190
|
+
modelValue: v.value,
|
|
191
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => v.value = a),
|
|
192
|
+
onCloseWithSaving: o[1] || (o[1] = (a) => T("closeWithSaving"))
|
|
181
193
|
}, null, 8, ["modelValue"])
|
|
182
194
|
], 2));
|
|
183
195
|
}
|
|
184
196
|
});
|
|
185
197
|
export {
|
|
186
|
-
|
|
198
|
+
be as default
|
|
187
199
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { toRef as c, computed as o } from "vue";
|
|
2
|
+
function g(n) {
|
|
3
|
+
const r = c(n), e = o(() => {
|
|
4
|
+
var s, t;
|
|
5
|
+
return ((t = (s = r.value) == null ? void 0 : s.context) == null ? void 0 : t.messages) || {};
|
|
6
|
+
}), a = o(() => Object.keys(e.value).length > 0);
|
|
7
|
+
return {
|
|
8
|
+
validationMessages: e,
|
|
9
|
+
hasError: a
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
g as useFormKitMessages
|
|
14
|
+
};
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./LinkCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0cf5e860"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as s, ref as u, computed as m, createElementBlock as p, openBlock as c, renderSlot as r, createVNode as i, createElementVNode as h, unref as t } from "vue";
|
|
2
|
+
import { FormKit as a } from "@formkit/vue";
|
|
3
|
+
import f from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
|
|
4
|
+
import v from "../../data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js";
|
|
5
|
+
import _ from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
|
|
6
|
+
const b = { class: "dpiV3_Card_Tips" }, B = { class: "action-container" }, V = 500, N = /* @__PURE__ */ s({
|
|
6
7
|
__name: "LinkCard",
|
|
7
|
-
setup(
|
|
8
|
-
const n =
|
|
9
|
-
var
|
|
10
|
-
return (
|
|
8
|
+
setup(g) {
|
|
9
|
+
const n = u(""), l = m(() => {
|
|
10
|
+
var e;
|
|
11
|
+
return (e = n.value) == null ? void 0 : e.length;
|
|
11
12
|
});
|
|
12
|
-
return (
|
|
13
|
-
r(
|
|
14
|
-
i(
|
|
15
|
-
type:
|
|
13
|
+
return (e, o) => (c(), p("div", b, [
|
|
14
|
+
r(e.$slots, "default", {}, () => [
|
|
15
|
+
i(t(a), {
|
|
16
|
+
type: t(f),
|
|
16
17
|
name: "name",
|
|
17
18
|
"text-label": "Name",
|
|
18
19
|
placeholder: "Benennen Sie den Link.",
|
|
19
20
|
validation: "required"
|
|
20
21
|
}, null, 8, ["type"]),
|
|
21
|
-
i(
|
|
22
|
-
type: e(a),
|
|
22
|
+
i(_, {
|
|
23
23
|
name: "url",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, null, 8, ["type"]),
|
|
28
|
-
i(e(l), {
|
|
24
|
+
required: ""
|
|
25
|
+
}),
|
|
26
|
+
i(t(a), {
|
|
29
27
|
id: "Beschreibung",
|
|
30
28
|
modelValue: n.value,
|
|
31
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
29
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => n.value = d),
|
|
32
30
|
label: "Beschreibung (optional)",
|
|
33
|
-
type:
|
|
31
|
+
type: t(v),
|
|
34
32
|
name: "description",
|
|
35
33
|
"text-label": "Beschreibung (optional)",
|
|
36
34
|
placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
|
|
37
35
|
validation: "length:0,500",
|
|
38
36
|
"validation-visibility": "live",
|
|
39
37
|
hint: "true",
|
|
40
|
-
help: `${
|
|
38
|
+
help: `${l.value} von ${V} Zeichen`,
|
|
41
39
|
"count-hint": !0
|
|
42
40
|
}, null, 8, ["modelValue", "type", "help"]),
|
|
43
|
-
|
|
44
|
-
r(
|
|
41
|
+
h("div", B, [
|
|
42
|
+
r(e.$slots, "action", {}, void 0, !0)
|
|
45
43
|
])
|
|
46
44
|
], !0)
|
|
47
45
|
]));
|
|
48
46
|
}
|
|
49
47
|
});
|
|
50
48
|
export {
|
|
51
|
-
|
|
49
|
+
N as default
|
|
52
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./PartnerCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(r, [["__scopeId", "data-v-cd6f10aa"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as r, createElementBlock as o, openBlock as a, renderSlot as t, createVNode as i, createElementVNode as l, unref as n } from "vue";
|
|
2
|
+
import { FormKit as s } from "@formkit/vue";
|
|
3
|
+
import d from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
|
|
4
|
+
import m from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
|
|
5
|
+
const c = { class: "dpiV3_Card_Tips" }, p = { class: "action-container" }, b = /* @__PURE__ */ r({
|
|
5
6
|
__name: "PartnerCard",
|
|
6
|
-
setup(
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
n(
|
|
10
|
-
type:
|
|
7
|
+
setup(u) {
|
|
8
|
+
return (e, _) => (a(), o("div", c, [
|
|
9
|
+
t(e.$slots, "default", {}, () => [
|
|
10
|
+
i(n(s), {
|
|
11
|
+
type: n(d),
|
|
11
12
|
name: "name",
|
|
12
13
|
"text-label": "Name",
|
|
13
14
|
placeholder: "Nennen Sie einen Partner.",
|
|
@@ -15,17 +16,12 @@ const m = { class: "dpiV3_Card_Tips" }, c = { class: "action-container" }, b = /
|
|
|
15
16
|
"validation-visibility": "submit",
|
|
16
17
|
"trailing-text": !1
|
|
17
18
|
}, null, 8, ["type"]),
|
|
18
|
-
|
|
19
|
-
type: e(a),
|
|
19
|
+
i(m, {
|
|
20
20
|
name: "url",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"trailing-text": !1
|
|
26
|
-
}, null, 8, ["type"]),
|
|
27
|
-
d("div", c, [
|
|
28
|
-
i(t.$slots, "action", {}, void 0, !0)
|
|
21
|
+
required: ""
|
|
22
|
+
}),
|
|
23
|
+
l("div", p, [
|
|
24
|
+
t(e.$slots, "action", {}, void 0, !0)
|
|
29
25
|
])
|
|
30
26
|
], !0)
|
|
31
27
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ScreenshotCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-052fbdb3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|