@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
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { PhLightbulb as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as z, ref as f, computed as S, watch as h, createElementBlock as d, openBlock as m, createElementVNode as n, createVNode as a, createCommentVNode as x, unref as s, Fragment as A, renderList as C, withDirectives as I, vModelCheckbox as U, withCtx as l, createTextVNode as b } from "vue";
|
|
2
|
+
import { useFormKitNodeById as B, FormKit as E } from "@formkit/vue";
|
|
3
|
+
import { PhLightbulb as v } from "@phosphor-icons/vue";
|
|
4
|
+
import M from "../../../components/StepActionsSection.vue.js";
|
|
5
|
+
import { useFormKitMessages as L } from "../../../composables/useFormKitMessages.js";
|
|
6
|
+
import w from "../Card.vue.js";
|
|
7
|
+
import N from "../Chip.vue.js";
|
|
8
|
+
import P from "../ListBox/Listbox.vue.js";
|
|
9
|
+
const j = { class: "dpiV3_page V3-typography" }, D = { class: "funny-section" }, K = { class: "funny-flex" }, W = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "d-flex selected-applications"
|
|
11
|
-
},
|
|
12
|
+
}, H = ["id", "value"], F = { class: "funny-section action-section" }, T = { class: "action-section" }, $ = { class: "action-section" }, ee = /* @__PURE__ */ z({
|
|
12
13
|
__name: "ApplicationsStep",
|
|
13
|
-
setup(
|
|
14
|
-
const i =
|
|
14
|
+
setup(q) {
|
|
15
|
+
const i = f([]), r = f(""), k = [
|
|
15
16
|
"Abfallmanagement",
|
|
16
17
|
"Abwassermanagement",
|
|
17
18
|
"Baumanagement",
|
|
@@ -49,106 +50,116 @@ const B = { class: "dpiV3_page V3-typography" }, E = { class: "funny-section" },
|
|
|
49
50
|
"Wasserqualität",
|
|
50
51
|
"Wasserversorgung",
|
|
51
52
|
"Wirtschaftsflächenmanagement"
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
53
|
+
], c = S(() => i.value);
|
|
54
|
+
h(r, (u) => {
|
|
55
|
+
r.value = "", u && (i.value.includes(u) || i.value.push(u));
|
|
56
|
+
});
|
|
57
|
+
const _ = B("applications"), { validationMessages: o, hasError: y } = L(_);
|
|
58
|
+
return h(o, () => {
|
|
59
|
+
console.log("validationMessages", o.value);
|
|
60
|
+
}), (u, e) => {
|
|
61
|
+
var p;
|
|
62
|
+
return m(), d("div", j, [
|
|
63
|
+
n("section", D, [
|
|
64
|
+
n("div", K, [
|
|
65
|
+
e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
|
|
66
|
+
e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese in der Liste aus. ", -1)),
|
|
67
|
+
a(s(E), {
|
|
68
|
+
id: "applications",
|
|
69
|
+
modelValue: i.value,
|
|
70
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
|
|
71
|
+
name: "applications",
|
|
72
|
+
type: "list",
|
|
73
|
+
validation: "required",
|
|
74
|
+
"validation-label": "Anwendungsbereiche",
|
|
75
|
+
hidden: ""
|
|
76
|
+
}, null, 8, ["modelValue"]),
|
|
77
|
+
c.value.length > 0 ? (m(), d("div", W, [
|
|
78
|
+
(m(!0), d(A, null, C(c.value, (t, g) => (m(), d("div", {
|
|
79
|
+
key: `application-${t}@${g}`,
|
|
80
|
+
class: "label-chip"
|
|
81
|
+
}, [
|
|
82
|
+
I(n("input", {
|
|
83
|
+
id: `application-${t}@${g}`,
|
|
84
|
+
"onUpdate:modelValue": e[1] || (e[1] = (V) => i.value = V),
|
|
85
|
+
class: "label-chip__input",
|
|
86
|
+
type: "checkbox",
|
|
87
|
+
value: t
|
|
88
|
+
}, null, 8, H), [
|
|
89
|
+
[U, i.value]
|
|
90
|
+
]),
|
|
91
|
+
a(N, {
|
|
92
|
+
as: "label",
|
|
93
|
+
for: t,
|
|
94
|
+
class: "label-chip__inner",
|
|
95
|
+
text: t,
|
|
96
|
+
data: { "@value": t, URI: "https://example.com/default" },
|
|
97
|
+
setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
|
|
98
|
+
}, null, 8, ["for", "text", "data"])
|
|
99
|
+
]))), 128))
|
|
100
|
+
])) : x("", !0),
|
|
101
|
+
a(P, {
|
|
102
|
+
modelValue: r.value,
|
|
103
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => r.value = t),
|
|
104
|
+
options: k,
|
|
105
|
+
placeholder: "Wählen Sie Ihre Anwendungsbereiche.",
|
|
106
|
+
label: "Anwendungsbereich auswählen",
|
|
107
|
+
filterable: "",
|
|
108
|
+
taggable: "",
|
|
109
|
+
"create-option": "",
|
|
110
|
+
clearable: "",
|
|
111
|
+
error: s(y),
|
|
112
|
+
"error-message": Object.values(s(o)).length > 0 ? String((p = Object.values(s(o))[0]) == null ? void 0 : p.value) : ""
|
|
113
|
+
}, null, 8, ["modelValue", "error", "error-message"])
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
n("section", F, [
|
|
117
|
+
a(M, { "hide-cancel": "" })
|
|
118
|
+
]),
|
|
119
|
+
n("section", T, [
|
|
120
|
+
a(w, { variant: "default" }, {
|
|
121
|
+
icon: l(() => [
|
|
122
|
+
a(s(v), {
|
|
123
|
+
size: 32,
|
|
124
|
+
color: "#009fe3"
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
title: l(() => e[5] || (e[5] = [
|
|
128
|
+
b(" Information ", -1)
|
|
129
|
+
])),
|
|
130
|
+
default: l(() => [
|
|
131
|
+
e[6] || (e[6] = n("div", { class: "application-information" }, [
|
|
132
|
+
n("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
|
|
133
|
+
], -1))
|
|
134
|
+
]),
|
|
135
|
+
_: 1,
|
|
136
|
+
__: [6]
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
n("section", $, [
|
|
140
|
+
a(w, { variant: "default" }, {
|
|
141
|
+
icon: l(() => [
|
|
142
|
+
a(s(v), {
|
|
143
|
+
size: 32,
|
|
144
|
+
color: "#009fe3"
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
title: l(() => e[7] || (e[7] = [
|
|
148
|
+
b(" Beispiel ", -1)
|
|
149
|
+
])),
|
|
150
|
+
default: l(() => [
|
|
151
|
+
e[8] || (e[8] = n("div", { class: "application-information" }, [
|
|
152
|
+
n("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
|
|
153
|
+
], -1))
|
|
154
|
+
]),
|
|
155
|
+
_: 1,
|
|
156
|
+
__: [8]
|
|
157
|
+
})
|
|
104
158
|
])
|
|
105
|
-
])
|
|
106
|
-
|
|
107
|
-
a(C, { "hide-cancel": "" })
|
|
108
|
-
]),
|
|
109
|
-
n("section", N, [
|
|
110
|
-
a(h, { variant: "default" }, {
|
|
111
|
-
icon: s(() => [
|
|
112
|
-
a(d(f), {
|
|
113
|
-
size: 32,
|
|
114
|
-
color: "#009fe3"
|
|
115
|
-
})
|
|
116
|
-
]),
|
|
117
|
-
title: s(() => e[5] || (e[5] = [
|
|
118
|
-
g(" Information ", -1)
|
|
119
|
-
])),
|
|
120
|
-
default: s(() => [
|
|
121
|
-
e[6] || (e[6] = n("div", { class: "application-information" }, [
|
|
122
|
-
n("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
|
|
123
|
-
], -1))
|
|
124
|
-
]),
|
|
125
|
-
_: 1,
|
|
126
|
-
__: [6]
|
|
127
|
-
})
|
|
128
|
-
]),
|
|
129
|
-
n("section", W, [
|
|
130
|
-
a(h, { variant: "default" }, {
|
|
131
|
-
icon: s(() => [
|
|
132
|
-
a(d(f), {
|
|
133
|
-
size: 32,
|
|
134
|
-
color: "#009fe3"
|
|
135
|
-
})
|
|
136
|
-
]),
|
|
137
|
-
title: s(() => e[7] || (e[7] = [
|
|
138
|
-
g(" Beispiel ", -1)
|
|
139
|
-
])),
|
|
140
|
-
default: s(() => [
|
|
141
|
-
e[8] || (e[8] = n("div", { class: "application-information" }, [
|
|
142
|
-
n("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
|
|
143
|
-
], -1))
|
|
144
|
-
]),
|
|
145
|
-
_: 1,
|
|
146
|
-
__: [8]
|
|
147
|
-
})
|
|
148
|
-
])
|
|
149
|
-
]));
|
|
159
|
+
]);
|
|
160
|
+
};
|
|
150
161
|
}
|
|
151
162
|
});
|
|
152
163
|
export {
|
|
153
|
-
|
|
164
|
+
ee as default
|
|
154
165
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CategoriesStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-17f9d4b6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,67 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as g, ref as m, computed as h, watch as y, resolveComponent as _, createElementBlock as b, openBlock as V, createElementVNode as s, createVNode as r, unref as u } from "vue";
|
|
2
|
+
import { getValidationMessages as S } from "@formkit/validation";
|
|
3
|
+
import { useFormKitNodeById as x, FormKitMessages as C } from "@formkit/vue";
|
|
4
|
+
import { defineHubSearch as K } from "@piveau/sdk-vue";
|
|
5
|
+
import * as P from "zod";
|
|
6
|
+
import { useRuntimeEnv as U } from "../../../../composables/useRuntimeEnv.js";
|
|
7
|
+
import k from "../../../components/StepActionsSection.vue.js";
|
|
8
|
+
import q from "../ChipToggleList/ChipToggleList.vue.js";
|
|
9
|
+
const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" }, O = { class: "funny-flex" }, R = { style: { display: "flex", "flex-direction": "column", gap: ".5rem" } }, z = { class: "funny-section" }, D = /* @__PURE__ */ g({
|
|
7
10
|
__name: "CategoriesStep",
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
baseUrl:
|
|
11
|
+
setup(B) {
|
|
12
|
+
const n = m([]), d = U(), p = m(""), { useSearch: f } = K({
|
|
13
|
+
baseUrl: d.api.baseUrl,
|
|
11
14
|
index: "vocabulary",
|
|
12
|
-
schema:
|
|
15
|
+
schema: P.any()
|
|
13
16
|
}, (e) => {
|
|
14
|
-
var t,
|
|
15
|
-
const o = String((e == null ? void 0 : e.resource) || ""),
|
|
17
|
+
var t, c;
|
|
18
|
+
const o = String((e == null ? void 0 : e.resource) || ""), i = String(((t = e == null ? void 0 : e.pref_label) == null ? void 0 : t.de) || ((c = e == null ? void 0 : e.pref_label) == null ? void 0 : c.en) || "");
|
|
16
19
|
return {
|
|
17
20
|
id: o,
|
|
18
|
-
name:
|
|
21
|
+
name: i
|
|
19
22
|
};
|
|
20
|
-
}), { getSearchResultsEnhanced:
|
|
23
|
+
}), { getSearchResultsEnhanced: a } = f({
|
|
21
24
|
queryParams: {
|
|
22
|
-
q:
|
|
25
|
+
q: p,
|
|
23
26
|
limit: 40,
|
|
24
27
|
vocabulary: "data-theme",
|
|
25
28
|
sort: "title+asc"
|
|
26
29
|
}
|
|
27
|
-
}),
|
|
30
|
+
}), v = h(() => {
|
|
28
31
|
var e;
|
|
29
|
-
return
|
|
30
|
-
});
|
|
31
|
-
return (e, o) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
return a.value ? (e = [...a.value].filter((o) => !o.id.endsWith("OP_DATPRO"))) == null ? void 0 : e.sort((o, i) => o.name.localeCompare(i.name)) : [];
|
|
33
|
+
}), l = x("categories");
|
|
34
|
+
return y(n, (e, o) => {
|
|
35
|
+
if (!l.value)
|
|
36
|
+
return;
|
|
37
|
+
const i = S(l.value);
|
|
38
|
+
console.log("le messages", i, e, o);
|
|
39
|
+
}), (e, o) => {
|
|
40
|
+
const i = _("FormKit");
|
|
41
|
+
return V(), b("div", E, [
|
|
42
|
+
s("section", F, [
|
|
43
|
+
s("div", O, [
|
|
44
|
+
o[2] || (o[2] = s("div", null, [
|
|
45
|
+
s("h4", null, " Machen Sie Ihr Projekt leicht auffindbar "),
|
|
46
|
+
s("div", { class: "visibility-description" }, [
|
|
47
|
+
s("p", { class: "copy-large-regular" }, " Um sicherzustellen, dass Ihr Projekt für andere leicht zu finden ist, wählen Sie die relevanten, übergeordneten Kategorien aus. ")
|
|
40
48
|
])
|
|
41
49
|
], -1)),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
r(i, {
|
|
51
|
+
id: "categories",
|
|
52
|
+
modelValue: n.value,
|
|
53
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
|
|
45
54
|
type: "list",
|
|
46
55
|
name: "categories",
|
|
47
56
|
validation: "required",
|
|
48
57
|
"validation-visibility": "submit",
|
|
49
58
|
"validation-label": "Kategorien"
|
|
50
59
|
}, null, 8, ["modelValue"]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
s("div", R, [
|
|
61
|
+
r(q, {
|
|
62
|
+
modelValue: n.value,
|
|
63
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => n.value = t),
|
|
64
|
+
options: v.value || []
|
|
65
|
+
}, null, 8, ["modelValue", "options"]),
|
|
66
|
+
r(u(C), {
|
|
67
|
+
node: u(l),
|
|
68
|
+
"sections-schema": {
|
|
69
|
+
message: {
|
|
70
|
+
$el: "div",
|
|
71
|
+
attrs: {
|
|
72
|
+
class: "dpiV3_errorText"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, null, 8, ["node"])
|
|
77
|
+
])
|
|
56
78
|
])
|
|
57
79
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
80
|
+
s("section", z, [
|
|
81
|
+
r(k, { "hide-cancel": "" })
|
|
60
82
|
])
|
|
61
83
|
]);
|
|
62
84
|
};
|
|
63
85
|
}
|
|
64
86
|
});
|
|
65
87
|
export {
|
|
66
|
-
|
|
88
|
+
D as default
|
|
67
89
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as g, toRef as c, computed as s, ref as y, watch as h, createBlock as v, openBlock as B, unref as T, isRef as k } from "vue";
|
|
2
|
+
import { watchOnce as V } from "@vueuse/core";
|
|
3
|
+
import { useField as x } from "vee-validate";
|
|
4
|
+
import M from "../InputField.vue.js";
|
|
5
|
+
const F = /* @__PURE__ */ g({
|
|
5
6
|
__name: "InputFieldVeeValidate",
|
|
6
7
|
props: {
|
|
7
8
|
modelValue: {},
|
|
@@ -28,16 +29,21 @@ const M = /* @__PURE__ */ f({
|
|
|
28
29
|
errorMessage: { default: "" }
|
|
29
30
|
},
|
|
30
31
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const t =
|
|
32
|
+
setup(u) {
|
|
33
|
+
const t = u, p = c(t, "name"), { value: a, errorMessage: o, meta: l, validate: f } = x(p, void 0, {
|
|
33
34
|
syncVModel: !0,
|
|
34
35
|
form: t.form,
|
|
35
36
|
validateOnValueUpdate: !1,
|
|
36
|
-
validateOnMount: !1
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
validateOnMount: !1,
|
|
38
|
+
keepValueOnUnmount: !1
|
|
39
|
+
}), i = s(() => !!((l.touched || l.dirty) && (o.value || t.errorMessage))), n = s(() => o.value || t.errorMessage || ""), d = y(!1);
|
|
40
|
+
return V(i, (e) => {
|
|
41
|
+
e && (d.value = !0);
|
|
42
|
+
}), h(a, () => {
|
|
43
|
+
d.value && l.validated && f({ mode: "force" });
|
|
44
|
+
}), (e, r) => (B(), v(M, {
|
|
45
|
+
modelValue: T(a),
|
|
46
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => k(a) ? a.value = m : null),
|
|
41
47
|
label: e.label,
|
|
42
48
|
placeholder: e.placeholder,
|
|
43
49
|
"input-type": e.inputType,
|
|
@@ -54,13 +60,13 @@ const M = /* @__PURE__ */ f({
|
|
|
54
60
|
"is-disabled": e.isDisabled,
|
|
55
61
|
"input-field-size": e.inputFieldSize,
|
|
56
62
|
"input-style": e.inputStyle,
|
|
57
|
-
"show-error":
|
|
63
|
+
"show-error": i.value,
|
|
58
64
|
error_message: n.value,
|
|
59
65
|
"supporting-hint-message": n.value || e.supportingHintMessage,
|
|
60
|
-
"initial-hint-text":
|
|
66
|
+
"initial-hint-text": i.value || e.initialHintText
|
|
61
67
|
}, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "add-on-leading-text", "trailing-text", "trailing_text", "date-picker", "time-picker", "info-icon", "tooltip-text", "pre-icon", "show-end-icon", "is-disabled", "input-field-size", "input-style", "show-error", "error_message", "supporting-hint-message", "initial-hint-text"]));
|
|
62
68
|
}
|
|
63
69
|
});
|
|
64
70
|
export {
|
|
65
|
-
|
|
71
|
+
F as default
|
|
66
72
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as b, toRef as c, computed as r, ref as v, watch as V, createBlock as h, openBlock as y, unref as g, isRef as B } from "vue";
|
|
2
|
+
import { watchOnce as F } from "@vueuse/core";
|
|
3
|
+
import { useField as L } from "vee-validate";
|
|
4
|
+
import M from "./Listbox.vue.js";
|
|
5
|
+
const D = /* @__PURE__ */ b({
|
|
5
6
|
__name: "ListboxVeeValidate",
|
|
6
7
|
props: {
|
|
7
8
|
modelValue: {},
|
|
@@ -17,15 +18,19 @@ const L = /* @__PURE__ */ p({
|
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:modelValue"],
|
|
19
20
|
setup(o) {
|
|
20
|
-
const l = o,
|
|
21
|
+
const l = o, s = c(l, "name"), { value: a, errorMessage: n, validate: p, meta: t } = L(s, void 0, {
|
|
21
22
|
syncVModel: !0,
|
|
22
23
|
form: l.form,
|
|
23
24
|
validateOnValueUpdate: !1,
|
|
24
25
|
validateOnMount: !1
|
|
25
|
-
}),
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
}), u = r(() => !!((t.touched || t.dirty) && n.value)), m = r(() => n.value || ""), d = v(!1);
|
|
27
|
+
return F(u, (e) => {
|
|
28
|
+
e && (d.value = !0);
|
|
29
|
+
}), V(a, () => {
|
|
30
|
+
d.value && t.validated && p({ mode: "force" });
|
|
31
|
+
}), (e, i) => (y(), h(M, {
|
|
32
|
+
modelValue: g(a),
|
|
33
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => B(a) ? a.value = f : null),
|
|
29
34
|
options: e.options,
|
|
30
35
|
label: e.label,
|
|
31
36
|
placeholder: e.placeholder,
|
|
@@ -33,11 +38,11 @@ const L = /* @__PURE__ */ p({
|
|
|
33
38
|
"option-value": e.optionValue,
|
|
34
39
|
"option-disabled": e.optionDisabled,
|
|
35
40
|
disabled: e.disabled,
|
|
36
|
-
"error-message":
|
|
41
|
+
"error-message": m.value,
|
|
37
42
|
name: l.name
|
|
38
43
|
}, null, 8, ["modelValue", "options", "label", "placeholder", "option-label", "option-value", "option-disabled", "disabled", "error-message", "name"]));
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
export {
|
|
42
|
-
|
|
47
|
+
D as default
|
|
43
48
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OptionalDataStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d206ff46"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|