@piveau/dpi 0.2.0-alpha.40 → 0.2.0-alpha.41
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/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/InputField/InputFieldVeeValidate.vue.js +18 -13
- 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 +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +113 -105
- 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 +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +103 -103
- 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 +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +68 -67
- 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 +28 -4
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getNode as
|
|
3
|
-
import { getValidationMessages as
|
|
4
|
-
import { PhExclamationMark as
|
|
1
|
+
import { defineComponent as U, inject as Z, ref as p, watch as q, computed as h, createElementBlock as r, openBlock as o, normalizeClass as G, createElementVNode as g, createBlock as y, createCommentVNode as N, createVNode as s, renderSlot as B, unref as E, normalizeStyle as H, withDirectives as x, vShow as C, Fragment as P, withCtx as S, renderList as J, toDisplayString as z, nextTick as Q } from "vue";
|
|
2
|
+
import { getNode as X, isNode as Y } from "@formkit/core";
|
|
3
|
+
import { getValidationMessages as _ } from "@formkit/validation";
|
|
4
|
+
import { PhExclamationMark as ee } from "@phosphor-icons/vue";
|
|
5
5
|
import u from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { dpiStepperKey as
|
|
8
|
-
import
|
|
9
|
-
import { useEditModeInfo as
|
|
10
|
-
const
|
|
6
|
+
import te from "../HappyFlowComponents/ui/Card.vue.js";
|
|
7
|
+
import { dpiStepperKey as ne } from "../utils/injectionKeys.js";
|
|
8
|
+
import ae from "./TheCancelConfirmationDialog.vue.js";
|
|
9
|
+
import { useEditModeInfo as oe } from "../composables/useDpiEditMode.js";
|
|
10
|
+
const ie = { class: "step-actions" }, le = { class: "step-actions__prev-and-next" }, re = { style: { margin: "0" } }, se = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "validation-errors"
|
|
13
|
-
},
|
|
13
|
+
}, Ce = /* @__PURE__ */ U({
|
|
14
14
|
__name: "StepActionsSection",
|
|
15
15
|
props: {
|
|
16
16
|
hideCancel: { type: Boolean, default: !1 },
|
|
@@ -27,62 +27,62 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
27
27
|
showDetailedErrorSummary: { type: Boolean, default: !1 }
|
|
28
28
|
},
|
|
29
29
|
emits: ["submit", "closeWithSaving"],
|
|
30
|
-
setup(
|
|
31
|
-
const l =
|
|
30
|
+
setup(D, { emit: L }) {
|
|
31
|
+
const l = D, b = L, t = Z(ne);
|
|
32
32
|
t || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
|
|
33
|
-
function
|
|
33
|
+
function T(e) {
|
|
34
34
|
return e !== void 0;
|
|
35
35
|
}
|
|
36
36
|
const f = p(!1), d = p(!1), i = p([]);
|
|
37
|
-
t &&
|
|
37
|
+
t && q(t.activeStep, () => {
|
|
38
38
|
i.value.splice(0, i.value.length), d.value = !1;
|
|
39
39
|
});
|
|
40
|
-
function
|
|
40
|
+
function k() {
|
|
41
41
|
f.value = !0;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function m() {
|
|
44
44
|
t == null || t.goToPreviousStep();
|
|
45
45
|
}
|
|
46
|
-
async function
|
|
47
|
-
var
|
|
48
|
-
if (!
|
|
46
|
+
async function v() {
|
|
47
|
+
var V, w;
|
|
48
|
+
if (!T(t))
|
|
49
49
|
return !1;
|
|
50
|
-
t.triggerValidationCurrentStep(), await
|
|
50
|
+
t.triggerValidationCurrentStep(), await Q();
|
|
51
51
|
const e = t.activeStep.value;
|
|
52
52
|
if (!e)
|
|
53
53
|
return !1;
|
|
54
|
-
const n =
|
|
55
|
-
if (!
|
|
54
|
+
const n = X(e);
|
|
55
|
+
if (!Y(n))
|
|
56
56
|
return console.error("Current step node is not a FormKitNode", n), !1;
|
|
57
57
|
n.clearErrors(!0);
|
|
58
|
-
const a =
|
|
59
|
-
return a && a.size > 0 || !
|
|
58
|
+
const a = _(n), K = !!((w = (V = t.steps) == null ? void 0 : V[e]) != null && w.valid);
|
|
59
|
+
return a && a.size > 0 || !K ? (i.value = [...a.entries()].flatMap(([de, R]) => R.map((O) => String(O.value))), d.value = !0, !1) : (i.value.splice(0, i.value.length), d.value = !1, !0);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function M(e, n) {
|
|
62
|
+
v().then((a) => {
|
|
63
63
|
a ? e() : n && typeof n == "function" && n();
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function A() {
|
|
67
67
|
t == null || t.goToNextStep();
|
|
68
68
|
}
|
|
69
69
|
async function c() {
|
|
70
|
-
!
|
|
70
|
+
!T(t) || !await v() || (t != null && t.isLast.value ? b("submit") : t == null || t.goToNextStep());
|
|
71
71
|
}
|
|
72
|
-
const { isEditMode:
|
|
72
|
+
const { isEditMode: F } = oe();
|
|
73
73
|
async function W() {
|
|
74
|
-
!t || !await
|
|
74
|
+
!t || !await v() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
|
|
75
75
|
}
|
|
76
|
-
const j =
|
|
76
|
+
const j = h(() => t ? t == null ? void 0 : t.isLast.value : !0), I = h(() => [
|
|
77
77
|
{ "step-actions-container--compact": l.compact },
|
|
78
78
|
l.classList
|
|
79
|
-
]);
|
|
80
|
-
return (e, n) => (o(),
|
|
81
|
-
class:
|
|
79
|
+
]), $ = h(() => l.showDetailedErrorSummary ? "Fehler" : "Bitte füllen Sie alle Pflichtfelder aus und geben Sie gültige Formate an, bevor Sie fortfahren.");
|
|
80
|
+
return (e, n) => (o(), r("div", {
|
|
81
|
+
class: G([I.value, "step-actions-container"])
|
|
82
82
|
}, [
|
|
83
|
-
g("div",
|
|
84
|
-
E(
|
|
85
|
-
j.value ?
|
|
83
|
+
g("div", ie, [
|
|
84
|
+
E(F) ? (o(), r(P, { key: 1 }, [
|
|
85
|
+
j.value ? x((o(), y(u, {
|
|
86
86
|
key: 1,
|
|
87
87
|
class: "edit-save-button",
|
|
88
88
|
size: "large",
|
|
@@ -93,8 +93,8 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
93
93
|
loading: l.loading,
|
|
94
94
|
onClick: c
|
|
95
95
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"])), [
|
|
96
|
-
[
|
|
97
|
-
]) : (o(),
|
|
96
|
+
[C, !e.hideNext]
|
|
97
|
+
]) : (o(), y(u, {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "edit-save-button",
|
|
100
100
|
size: "large",
|
|
@@ -105,41 +105,41 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
105
105
|
}))
|
|
106
106
|
], 64)) : B(e.$slots, "default", {
|
|
107
107
|
key: 0,
|
|
108
|
-
handleCancel:
|
|
109
|
-
handlePrevious:
|
|
108
|
+
handleCancel: k,
|
|
109
|
+
handlePrevious: m,
|
|
110
110
|
handleSubmit: c
|
|
111
111
|
}, () => [
|
|
112
|
-
|
|
113
|
-
style:
|
|
112
|
+
s(u, {
|
|
113
|
+
style: H({ opacity: e.hideCancel ? 0 : 1 }),
|
|
114
114
|
variant: "tertiary",
|
|
115
115
|
size: "large",
|
|
116
116
|
type: "button",
|
|
117
117
|
"button-text": e.cancelText,
|
|
118
|
-
onClick:
|
|
118
|
+
onClick: k
|
|
119
119
|
}, null, 8, ["style", "button-text"]),
|
|
120
|
-
g("div",
|
|
120
|
+
g("div", le, [
|
|
121
121
|
B(e.$slots, "prev-and-next", {
|
|
122
122
|
hidePrevious: e.hidePrevious,
|
|
123
123
|
hideNext: e.hideNext,
|
|
124
124
|
previousText: e.previousText,
|
|
125
125
|
nextText: e.nextText,
|
|
126
|
-
handleNext:
|
|
127
|
-
handlePrevious:
|
|
126
|
+
handleNext: A,
|
|
127
|
+
handlePrevious: m,
|
|
128
128
|
handleSubmit: c,
|
|
129
129
|
loading: l.loading,
|
|
130
|
-
validate:
|
|
130
|
+
validate: M
|
|
131
131
|
}, () => [
|
|
132
|
-
|
|
132
|
+
x(s(u, {
|
|
133
133
|
variant: "secondary",
|
|
134
134
|
size: "large",
|
|
135
135
|
type: "button",
|
|
136
136
|
"button-text": e.previousText,
|
|
137
137
|
"icon-start": "CaretLeft",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: m
|
|
139
139
|
}, null, 8, ["button-text"]), [
|
|
140
|
-
[
|
|
140
|
+
[C, !e.hidePrevious]
|
|
141
141
|
]),
|
|
142
|
-
|
|
142
|
+
x(s(u, {
|
|
143
143
|
size: "large",
|
|
144
144
|
variant: e.nextVariant,
|
|
145
145
|
type: "button",
|
|
@@ -148,33 +148,34 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
148
148
|
loading: l.loading,
|
|
149
149
|
onClick: c
|
|
150
150
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"]), [
|
|
151
|
-
[
|
|
151
|
+
[C, !e.hideNext]
|
|
152
152
|
])
|
|
153
153
|
], !0)
|
|
154
154
|
])
|
|
155
155
|
], !0)
|
|
156
156
|
]),
|
|
157
|
-
d.value && i.value.length ? (o(),
|
|
157
|
+
d.value && i.value.length ? (o(), y(te, {
|
|
158
158
|
key: 0,
|
|
159
|
-
variant: "error"
|
|
159
|
+
variant: "error",
|
|
160
|
+
"icon-top": ""
|
|
160
161
|
}, {
|
|
161
|
-
icon:
|
|
162
|
-
|
|
162
|
+
icon: S(() => [
|
|
163
|
+
s(E(ee), {
|
|
163
164
|
size: 32,
|
|
164
165
|
color: "currentColor"
|
|
165
166
|
})
|
|
166
167
|
]),
|
|
167
|
-
title:
|
|
168
|
-
g("p",
|
|
169
|
-
])
|
|
170
|
-
default:
|
|
171
|
-
e.showDetailedErrorSummary ? (o(),
|
|
172
|
-
(o(!0),
|
|
173
|
-
])) :
|
|
168
|
+
title: S(() => [
|
|
169
|
+
g("p", re, z($.value), 1)
|
|
170
|
+
]),
|
|
171
|
+
default: S(() => [
|
|
172
|
+
e.showDetailedErrorSummary ? (o(), r("ul", se, [
|
|
173
|
+
(o(!0), r(P, null, J(i.value, (a) => (o(), r("li", { key: a }, z(a), 1))), 128))
|
|
174
|
+
])) : N("", !0)
|
|
174
175
|
]),
|
|
175
176
|
_: 1
|
|
176
|
-
})) :
|
|
177
|
-
|
|
177
|
+
})) : N("", !0),
|
|
178
|
+
s(ae, {
|
|
178
179
|
modelValue: f.value,
|
|
179
180
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => f.value = a),
|
|
180
181
|
onCloseWithSaving: n[1] || (n[1] = (a) => b("closeWithSaving"))
|
|
@@ -183,5 +184,5 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
|
|
|
183
184
|
}
|
|
184
185
|
});
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
+
Ce as default
|
|
187
188
|
};
|
|
@@ -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
|
};
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as t, createElementBlock as r, openBlock as n, renderSlot as o, createVNode as s, createElementVNode as a } from "vue";
|
|
2
|
+
import "@formkit/vue";
|
|
3
|
+
import c from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
|
|
4
|
+
const i = { class: "dpiV3_Card_Tips" }, d = { class: "action-container" }, f = /* @__PURE__ */ t({
|
|
5
5
|
__name: "ScreenshotCard",
|
|
6
|
-
setup(
|
|
7
|
-
return (e,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: o(d),
|
|
6
|
+
setup(_) {
|
|
7
|
+
return (e, m) => (n(), r("div", i, [
|
|
8
|
+
o(e.$slots, "default", {}, () => [
|
|
9
|
+
s(c, {
|
|
11
10
|
name: "homepage",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"validation-visibility": "submit"
|
|
17
|
-
}, null, 8, ["type"]),
|
|
18
|
-
l("div", m, [
|
|
19
|
-
t(e.$slots, "action", {}, void 0, !0)
|
|
11
|
+
required: ""
|
|
12
|
+
}),
|
|
13
|
+
a("div", d, [
|
|
14
|
+
o(e.$slots, "action", {}, void 0, !0)
|
|
20
15
|
])
|
|
21
16
|
], !0)
|
|
22
17
|
]));
|
|
23
18
|
}
|
|
24
19
|
});
|
|
25
20
|
export {
|
|
26
|
-
|
|
21
|
+
f as default
|
|
27
22
|
};
|
|
@@ -1,8 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
function t(e) {
|
|
1
|
+
function f(e) {
|
|
3
2
|
return `${e} ist erforderlich.`;
|
|
4
3
|
}
|
|
4
|
+
function s(e) {
|
|
5
|
+
return `${e} ist ungültig.`;
|
|
6
|
+
}
|
|
7
|
+
function n(e) {
|
|
8
|
+
const r = typeof e;
|
|
9
|
+
if (r === "number")
|
|
10
|
+
return !1;
|
|
11
|
+
if (e === void 0)
|
|
12
|
+
return !0;
|
|
13
|
+
if (r === "string")
|
|
14
|
+
return e === "";
|
|
15
|
+
if (r === "object") {
|
|
16
|
+
if (e === null)
|
|
17
|
+
return !0;
|
|
18
|
+
for (const u in e) return !1;
|
|
19
|
+
return !(e instanceof RegExp || e instanceof Date);
|
|
20
|
+
}
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
function i(e) {
|
|
24
|
+
const r = e.at("$parent");
|
|
25
|
+
return !r || r.type !== "group" || n(r.value) ? !0 : r.children.some((t) => !n(typeof t.value == "string" ? t.value.trim() : t.value)) ? !n(e.value) : !0;
|
|
26
|
+
}
|
|
27
|
+
i.skipEmpty = !1;
|
|
5
28
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
29
|
+
s as generateIsInvalidMsg,
|
|
30
|
+
f as generateIsRequiredMsg,
|
|
31
|
+
i as requireAllIfAny
|
|
8
32
|
};
|