@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.15
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/AboutProject.vue.js +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
- 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 +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
- 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 +38 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +18 -17
- 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 +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- 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 +189 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
- 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 +128 -123
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +337 -337
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -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 +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +53 -55
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { PhLightbulb as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { dpiStepperKey as
|
|
10
|
-
const Z = { class: "dpiV3_page V3-typography" },
|
|
1
|
+
import { defineComponent as E, ref as h, computed as L, useModel as F, inject as P, createElementBlock as C, openBlock as s, createElementVNode as t, createVNode as i, createBlock as a, createCommentVNode as f, createTextVNode as k, unref as o, withCtx as n, Fragment as D, renderList as M } from "vue";
|
|
2
|
+
import { FormKit as b } from "@formkit/vue";
|
|
3
|
+
import { PhLightbulb as N, PhExclamationMark as K } from "@phosphor-icons/vue";
|
|
4
|
+
import W from "../../../../stories/components/LinkCard.vue.js";
|
|
5
|
+
import $ from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import u from "../ButtonV3.vue.js";
|
|
7
|
+
import V from "../Card.vue.js";
|
|
8
|
+
import I from "../TextArea/TextAreaDefinition.js";
|
|
9
|
+
import { dpiStepperKey as R } from "../../../utils/injectionKeys.js";
|
|
10
|
+
const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" }, A = { class: "funny-section" }, T = {
|
|
11
11
|
id: "partners-section",
|
|
12
12
|
class: "funny-section"
|
|
13
|
-
},
|
|
13
|
+
}, U = { class: "partner-cards-container" }, O = { class: "action-container" }, q = { class: "step-actions__prev-and-next" }, G = { class: "actions" }, H = 1e3, se = /* @__PURE__ */ E({
|
|
14
14
|
__name: "BasicInformationStep",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -18,103 +18,87 @@ const Z = { class: "dpiV3_page V3-typography" }, $ = { class: "funny-section" },
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
20
|
setup(w) {
|
|
21
|
-
const
|
|
21
|
+
const g = h(""), y = h([]);
|
|
22
22
|
h([]);
|
|
23
|
-
const
|
|
24
|
-
var
|
|
25
|
-
return ((
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(n) => n.startsWith("4. Datenvisualisierung/")
|
|
32
|
-
);
|
|
33
|
-
for (const n of e) {
|
|
34
|
-
const s = l[n];
|
|
35
|
-
if (!s || typeof s != "object") continue;
|
|
36
|
-
const c = Object.keys(s).filter((a) => a !== "__resourceCount");
|
|
37
|
-
for (const a of c) {
|
|
38
|
-
const i = s[a];
|
|
39
|
-
if (Array.isArray(i) && i.length > 0 || typeof i == "string" && i.trim() !== "" || typeof i == "object" && i !== null && Object.keys(i).length > 0)
|
|
40
|
-
return k.value = !1, y == null ? void 0 : y.goTo("Vorschau");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return k.value = !0;
|
|
44
|
-
}
|
|
45
|
-
return (l, e) => (u(), V("div", Z, [
|
|
46
|
-
e[8] || (e[8] = t("section", { class: "funny-section" }, [
|
|
23
|
+
const _ = h(!1), S = L(() => {
|
|
24
|
+
var v;
|
|
25
|
+
return ((v = g.value) == null ? void 0 : v.length) || 0;
|
|
26
|
+
});
|
|
27
|
+
F(w, "modelValue");
|
|
28
|
+
const B = P(R);
|
|
29
|
+
return (v, e) => (s(), C("div", Z, [
|
|
30
|
+
e[9] || (e[9] = t("section", { class: "funny-section" }, [
|
|
47
31
|
t("div", { class: "funny-flex" }, [
|
|
48
32
|
t("h4", null, "Beschreiben Sie den Prozessschritt zur Datenvisualisierung"),
|
|
49
33
|
t("span", { class: "copy-large-regular" }, [
|
|
50
|
-
|
|
34
|
+
k(" Führen Sie im Schritt der "),
|
|
51
35
|
t("strong", null, "Datenvisualisierung"),
|
|
52
|
-
|
|
36
|
+
k(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
|
|
53
37
|
])
|
|
54
38
|
])
|
|
55
39
|
], -1)),
|
|
56
|
-
t("section",
|
|
57
|
-
o(
|
|
40
|
+
t("section", j, [
|
|
41
|
+
i(o(b), {
|
|
58
42
|
id: "Beschreibung",
|
|
59
|
-
modelValue:
|
|
60
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
43
|
+
modelValue: g.value,
|
|
44
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => g.value = r),
|
|
61
45
|
class: "budgetArea",
|
|
62
46
|
label: "Beschreibung",
|
|
63
|
-
type:
|
|
47
|
+
type: o(I),
|
|
64
48
|
name: "description",
|
|
65
49
|
"text-label": "Beschreibung",
|
|
66
50
|
placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
|
|
67
51
|
validation: "length:0,1000",
|
|
68
52
|
"validation-visibility": "live",
|
|
69
53
|
hint: "true",
|
|
70
|
-
help: `${
|
|
54
|
+
help: `${S.value} von ${H} Zeichen`,
|
|
71
55
|
"count-hint": !0
|
|
72
56
|
}, null, 8, ["modelValue", "type", "help"])
|
|
73
57
|
]),
|
|
74
|
-
t("section",
|
|
75
|
-
|
|
76
|
-
icon:
|
|
77
|
-
o(
|
|
58
|
+
t("section", A, [
|
|
59
|
+
i(V, { variant: "default" }, {
|
|
60
|
+
icon: n(() => [
|
|
61
|
+
i(o(N), {
|
|
78
62
|
size: 32,
|
|
79
63
|
color: "#009FE3"
|
|
80
64
|
})
|
|
81
65
|
]),
|
|
82
|
-
title:
|
|
83
|
-
|
|
66
|
+
title: n(() => e[3] || (e[3] = [
|
|
67
|
+
k(" Beispiel ", -1)
|
|
84
68
|
])),
|
|
85
|
-
default:
|
|
86
|
-
e[
|
|
69
|
+
default: n(() => [
|
|
70
|
+
e[4] || (e[4] = t("p", null, " Die Simulationsergebnisse und aktuellen Messdaten werden in einer interaktiven Kartenanwendung dargestellt. Zusätzlich werden visuelle Warnhinweise sowie zeitbasierte Entwicklungen übersichtlich präsentiert, um die Kommunikation mit Einsatzkräften und Bürgern zu unterstützen. ", -1))
|
|
87
71
|
]),
|
|
88
72
|
_: 1,
|
|
89
|
-
__: [
|
|
73
|
+
__: [4]
|
|
90
74
|
})
|
|
91
75
|
]),
|
|
92
|
-
t("section",
|
|
93
|
-
e[
|
|
94
|
-
e[
|
|
95
|
-
t("div",
|
|
96
|
-
o(
|
|
97
|
-
modelValue:
|
|
98
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
76
|
+
t("section", T, [
|
|
77
|
+
e[5] || (e[5] = t("h5", null, " Weiterführende Links (optional) ", -1)),
|
|
78
|
+
e[6] || (e[6] = t("span", { class: "copy-large-regular further-links-text" }, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zur Vorgehensweise in diesem Prozessschritt enthalten, wie etwa einzuhaltende Richtlinien oder Standardarbeitsanweisungen.", -1)),
|
|
79
|
+
t("div", U, [
|
|
80
|
+
i(o(b), {
|
|
81
|
+
modelValue: y.value,
|
|
82
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => y.value = r),
|
|
99
83
|
type: "list",
|
|
100
84
|
name: "links",
|
|
101
85
|
dynamic: ""
|
|
102
86
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
(
|
|
105
|
-
key:
|
|
87
|
+
default: n(({ items: r, node: d, value: c }) => [
|
|
88
|
+
(s(!0), C(D, null, M(r, (m, p) => (s(), a(o(b), {
|
|
89
|
+
key: m,
|
|
106
90
|
type: "group",
|
|
107
|
-
index:
|
|
91
|
+
index: p
|
|
108
92
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
action:
|
|
112
|
-
|
|
93
|
+
default: n(() => [
|
|
94
|
+
i(W, null, {
|
|
95
|
+
action: n(() => [
|
|
96
|
+
i(u, {
|
|
113
97
|
"button-text": "Löschen",
|
|
114
98
|
size: "small",
|
|
115
99
|
variant: "tertiary",
|
|
116
100
|
"icon-start": "trash",
|
|
117
|
-
onClick: () =>
|
|
101
|
+
onClick: () => d.input(c.filter((z, l) => l !== p))
|
|
118
102
|
}, null, 8, ["onClick"])
|
|
119
103
|
]),
|
|
120
104
|
_: 2
|
|
@@ -122,13 +106,13 @@ const Z = { class: "dpiV3_page V3-typography" }, $ = { class: "funny-section" },
|
|
|
122
106
|
]),
|
|
123
107
|
_: 2
|
|
124
108
|
}, 1032, ["index"]))), 128)),
|
|
125
|
-
t("div",
|
|
126
|
-
|
|
109
|
+
t("div", O, [
|
|
110
|
+
i(u, {
|
|
127
111
|
"button-text": "Link hinzufügen",
|
|
128
112
|
size: "medium",
|
|
129
113
|
variant: "tertiary",
|
|
130
114
|
"icon-start": "plus",
|
|
131
|
-
onClick: (
|
|
115
|
+
onClick: (m) => d.input(c.concat({}))
|
|
132
116
|
}, null, 8, ["onClick"])
|
|
133
117
|
])
|
|
134
118
|
]),
|
|
@@ -136,80 +120,83 @@ const Z = { class: "dpiV3_page V3-typography" }, $ = { class: "funny-section" },
|
|
|
136
120
|
}, 8, ["modelValue"])
|
|
137
121
|
])
|
|
138
122
|
]),
|
|
139
|
-
|
|
123
|
+
i($, {
|
|
140
124
|
"next-text": "Weiter zu Software",
|
|
141
125
|
class: "actions-container"
|
|
142
126
|
}, {
|
|
143
|
-
"prev-and-next":
|
|
144
|
-
hidePrevious:
|
|
145
|
-
hideNext:
|
|
127
|
+
"prev-and-next": n(({
|
|
128
|
+
hidePrevious: r,
|
|
129
|
+
hideNext: d,
|
|
146
130
|
previousText: c,
|
|
147
|
-
nextText:
|
|
148
|
-
handlePrevious:
|
|
149
|
-
handleSubmit:
|
|
131
|
+
nextText: m,
|
|
132
|
+
handlePrevious: p,
|
|
133
|
+
handleSubmit: z
|
|
150
134
|
}) => [
|
|
151
135
|
t("div", q, [
|
|
152
|
-
t("div",
|
|
153
|
-
|
|
136
|
+
t("div", G, [
|
|
137
|
+
r ? f("", !0) : (s(), a(u, {
|
|
154
138
|
key: 0,
|
|
155
139
|
variant: "secondary",
|
|
156
140
|
size: "large",
|
|
157
141
|
"button-text": c,
|
|
158
142
|
"icon-start": "CaretLeft",
|
|
159
143
|
class: "previus-button",
|
|
160
|
-
onClick:
|
|
144
|
+
onClick: p
|
|
161
145
|
}, null, 8, ["button-text", "onClick"])),
|
|
162
|
-
|
|
146
|
+
r ? f("", !0) : (s(), a(u, {
|
|
163
147
|
key: 1,
|
|
164
148
|
variant: "secondary",
|
|
165
149
|
class: "skip-button",
|
|
166
|
-
onClick:
|
|
150
|
+
onClick: e[2] || (e[2] = (l) => {
|
|
151
|
+
var x;
|
|
152
|
+
return (x = o(B)) == null ? void 0 : x.goToStep("Vorschau");
|
|
153
|
+
}),
|
|
167
154
|
size: "large",
|
|
168
155
|
"button-text": "Weiter ohne Datensimulation",
|
|
169
156
|
"icon-end": "CaretRight"
|
|
170
157
|
}))
|
|
171
158
|
]),
|
|
172
|
-
|
|
159
|
+
d ? f("", !0) : (s(), a(u, {
|
|
173
160
|
key: 0,
|
|
174
161
|
variant: "primary",
|
|
175
162
|
size: "large",
|
|
176
|
-
"button-text":
|
|
163
|
+
"button-text": m,
|
|
177
164
|
"icon-end": "CaretRight",
|
|
178
165
|
class: "next-button",
|
|
179
166
|
onClick: () => {
|
|
180
|
-
const
|
|
181
|
-
return console.log(
|
|
167
|
+
const l = z();
|
|
168
|
+
return console.log(l), l;
|
|
182
169
|
}
|
|
183
170
|
}, null, 8, ["button-text", "onClick"]))
|
|
184
171
|
])
|
|
185
172
|
]),
|
|
186
173
|
_: 1
|
|
187
174
|
}),
|
|
188
|
-
|
|
175
|
+
_.value ? (s(), a(V, {
|
|
189
176
|
key: 0,
|
|
190
177
|
variant: "error",
|
|
191
178
|
class: "error"
|
|
192
179
|
}, {
|
|
193
|
-
icon:
|
|
194
|
-
o(
|
|
180
|
+
icon: n(() => [
|
|
181
|
+
i(o(K), {
|
|
195
182
|
size: 32,
|
|
196
183
|
color: "currentColor"
|
|
197
184
|
})
|
|
198
185
|
]),
|
|
199
|
-
title:
|
|
186
|
+
title: n(() => e[7] || (e[7] = [
|
|
200
187
|
t("span", { class: "error-title" }, "Fehler", -1)
|
|
201
188
|
])),
|
|
202
|
-
default:
|
|
203
|
-
e[
|
|
189
|
+
default: n(() => [
|
|
190
|
+
e[8] || (e[8] = t("ul", { class: "validation-errors" }, [
|
|
204
191
|
t("li", null, " Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden. ")
|
|
205
192
|
], -1))
|
|
206
193
|
]),
|
|
207
194
|
_: 1,
|
|
208
|
-
__: [
|
|
209
|
-
})) :
|
|
195
|
+
__: [8]
|
|
196
|
+
})) : f("", !0)
|
|
210
197
|
]));
|
|
211
198
|
}
|
|
212
199
|
});
|
|
213
200
|
export {
|
|
214
|
-
|
|
201
|
+
se as default
|
|
215
202
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as p, computed as K, watch as B, createElementBlock as s, openBlock as r, createBlock as
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
import J from "
|
|
4
|
-
import Q from "./
|
|
5
|
-
import X from "./
|
|
6
|
-
import
|
|
1
|
+
import { ref as p, computed as K, watch as B, createElementBlock as s, openBlock as r, createBlock as D, createCommentVNode as h, mergeProps as G, withKeys as f, unref as C, withModifiers as V, normalizeStyle as F, normalizeClass as I, createElementVNode as _, Fragment as x, renderList as A, toDisplayString as S, nextTick as H } from "vue";
|
|
2
|
+
import { onClickOutside as N } from "@vueuse/core";
|
|
3
|
+
import { useI18n as J } from "vue-i18n";
|
|
4
|
+
import Q from "./InputField.vue.js";
|
|
5
|
+
import X from "./MoreButton.vue.js";
|
|
6
|
+
import Y from "./TextButtonSmall.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import Z from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
@@ -15,13 +15,13 @@ const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
|
15
15
|
}, ae = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "dpiV3_dropdown dpiV3_dropdownMulti"
|
|
18
|
-
},
|
|
18
|
+
}, ne = { class: "dpiV3_multiInnerWrap" }, oe = { class: "dpiV3_multiHeader" }, ue = { class: "dpiV3_btnWrap" }, re = ["onClick", "onKeydown", "onKeyup"], de = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "dpiV3_multiSeperator"
|
|
21
21
|
}, se = {
|
|
22
22
|
key: 3,
|
|
23
23
|
class: "dpiV3_dropdown"
|
|
24
|
-
}, ie = ["onClick", "onKeydown", "onKeyup"], ce = {
|
|
24
|
+
}, ie = ["disabled", "onClick", "onKeydown", "onKeyup"], ce = {
|
|
25
25
|
__name: "Dropdown",
|
|
26
26
|
props: {
|
|
27
27
|
buttonText: {
|
|
@@ -78,15 +78,19 @@ const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
|
78
78
|
"chosenVocItem",
|
|
79
79
|
"clickOutside"
|
|
80
80
|
],
|
|
81
|
-
setup(g, { emit:
|
|
82
|
-
const { t:
|
|
81
|
+
setup(g, { emit: q }) {
|
|
82
|
+
const a = g, v = q, { t: M } = J(), w = p();
|
|
83
83
|
p("#0172AD");
|
|
84
84
|
let u = p(!1);
|
|
85
|
-
const
|
|
85
|
+
const y = p({});
|
|
86
86
|
p([]);
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const o = p(0), b = p(!1);
|
|
88
|
+
function T(e) {
|
|
89
|
+
return M(
|
|
90
|
+
`message.dataupload.datasets.dcatde:politicalGeocodingURI.titles.${e}`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
const E = K(() => {
|
|
90
94
|
if (a.multi) {
|
|
91
95
|
if (!a.data || !Array.isArray(a.data) || a.data.length === 0)
|
|
92
96
|
return !0;
|
|
@@ -100,7 +104,7 @@ const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
|
100
104
|
B(
|
|
101
105
|
() => a.loading,
|
|
102
106
|
(e) => {
|
|
103
|
-
|
|
107
|
+
b.value = e;
|
|
104
108
|
}
|
|
105
109
|
);
|
|
106
110
|
const d = p(a.modelValue);
|
|
@@ -110,96 +114,106 @@ const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
|
110
114
|
d.value = e;
|
|
111
115
|
}
|
|
112
116
|
);
|
|
113
|
-
|
|
114
|
-
k(),
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
function U() {
|
|
118
|
+
k(), v("deleteDropdownField");
|
|
119
|
+
}
|
|
120
|
+
function W(e) {
|
|
121
|
+
d.value = e.target.value, H(() => {
|
|
122
|
+
v("input", d.value);
|
|
118
123
|
}), a.autocomplete && d.value.length > 0 ? u.value = !0 : d.value.length === 0 && (u.value = !1);
|
|
119
|
-
}
|
|
124
|
+
}
|
|
125
|
+
const O = K(() => {
|
|
120
126
|
if (!a.autocomplete)
|
|
121
127
|
return a.dropdownWidth === "large" ? "100%" : "161px";
|
|
122
|
-
})
|
|
128
|
+
});
|
|
129
|
+
function k(e) {
|
|
123
130
|
a.autocomplete || a.isDisabled || (u.value = !u.value);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
}
|
|
132
|
+
function $(e) {
|
|
133
|
+
if (u.value && !b.value && !E.value) {
|
|
134
|
+
o.value--;
|
|
127
135
|
const t = Array.from(
|
|
128
136
|
document.querySelectorAll(".dpiV3_dropdown button")
|
|
129
137
|
);
|
|
130
|
-
t.length > 0 && (e.preventDefault(),
|
|
138
|
+
t.length > 0 && (e.preventDefault(), o.value = (o.value + 1) % t.length, t[o.value].focus());
|
|
131
139
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
140
|
+
}
|
|
141
|
+
function m(e, t) {
|
|
142
|
+
t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (o.value = 0, y.value[e] || (y.value[e] = {}), y.value[e] = "var(--neutral-10, #fafafb)"), t.key === "Escape" && (o.value = 0, u.value = !u.value);
|
|
134
143
|
const l = Array.from(
|
|
135
144
|
document.querySelectorAll(".dpiV3_dropdownMulti .dpiV3_btnWrap button")
|
|
136
|
-
), c = l.findIndex((
|
|
145
|
+
), c = l.findIndex((n) => n === document.activeElement);
|
|
137
146
|
if (t.key === "ArrowDown") {
|
|
138
147
|
t.preventDefault();
|
|
139
|
-
const
|
|
140
|
-
l[
|
|
148
|
+
const n = (c + 1) % l.length;
|
|
149
|
+
l[n].focus(), o.value = n;
|
|
141
150
|
} else if (t.key === "ArrowUp") {
|
|
142
151
|
t.preventDefault();
|
|
143
|
-
const
|
|
144
|
-
l[
|
|
152
|
+
const n = (c - 1 + l.length) % l.length;
|
|
153
|
+
l[n].focus(), o.value = n;
|
|
145
154
|
}
|
|
146
|
-
}
|
|
155
|
+
}
|
|
156
|
+
function L(e, t) {
|
|
147
157
|
t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (a.data.forEach((l) => {
|
|
148
158
|
for (let c in l)
|
|
149
|
-
l[c].forEach((
|
|
150
|
-
|
|
159
|
+
l[c].forEach((n) => {
|
|
160
|
+
n.selected = !1;
|
|
151
161
|
});
|
|
152
162
|
}), e.selected = !e.selected, d.value = e["@value"], u.value = !1);
|
|
153
|
-
}
|
|
154
|
-
|
|
163
|
+
}
|
|
164
|
+
function P(e, t) {
|
|
165
|
+
t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (y.value[e["@value"]] = "var(--neutral-10, #f1f1f3)", o.value = 0), t.key === "Escape" && (o.value = 0, u.value = !u.value);
|
|
155
166
|
const l = Array.from(document.querySelectorAll(".dpiV3_dropdown button"));
|
|
156
|
-
t.key === "ArrowDown" ? (t.preventDefault(),
|
|
157
|
-
}
|
|
167
|
+
t.key === "ArrowDown" ? (t.preventDefault(), o.value = (o.value + 1) % l.length, l[o.value].focus()) : t.key === "ArrowUp" || t.key === "Tab" && t.shiftKey ? (t.preventDefault(), o.value = (o.value - 1 + l.length) % l.length, l[o.value].focus()) : t.key === "Tab" && (t.preventDefault(), o.value = (o.value + 1) % l.length, l[o.value].focus());
|
|
168
|
+
}
|
|
169
|
+
function j(e, t) {
|
|
158
170
|
t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (a.data.forEach((l) => {
|
|
159
171
|
l.selected = !1;
|
|
160
|
-
}), e.selected = !e.selected,
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
}), e.selected = !e.selected, y.value[e["@value"]] = "var(--neutral-5, #fafafb)", d.value = e["@value"], u.value = !1);
|
|
173
|
+
}
|
|
174
|
+
function R(e, t, l) {
|
|
175
|
+
v("valueSent", e, l), d.value = `${e.alt_label.de} (${l})`, u.value = !1;
|
|
176
|
+
}
|
|
177
|
+
function z(e, t) {
|
|
164
178
|
console.log(a.notDraft), t.type === "keydown" && t.preventDefault(), t.type === "click" && (a.multi ? (a.data.forEach((l) => {
|
|
165
179
|
for (let c in l)
|
|
166
|
-
l[c].forEach((
|
|
167
|
-
|
|
180
|
+
l[c].forEach((n) => {
|
|
181
|
+
n.selected = !1;
|
|
168
182
|
});
|
|
169
183
|
}), d.value = e["@value"], e.selected = !e.selected) : (a.data.forEach((l) => {
|
|
170
184
|
l.selected = !1;
|
|
171
|
-
}), e.selected = !e.selected, d.value = e["@value"]), u.value = !1, e["@value"] === void 0 && (d.value = e.pref_label.de || e.pref_label.en,
|
|
172
|
-
}
|
|
173
|
-
return
|
|
185
|
+
}), e.selected = !e.selected, d.value = e["@value"]), u.value = !1, e["@value"] === void 0 && (d.value = e.pref_label.de || e.pref_label.en, v("chosenVocItem", e)), e["@value"] === "Löschen" && a.notDraft && (d.value = "LöschenPublished", v("chosenVocItem", e)), v("update:modelValue", e["@value"], e));
|
|
186
|
+
}
|
|
187
|
+
return N(w, (e) => {
|
|
174
188
|
u.value = !1;
|
|
175
189
|
}), (e, t) => (r(), s("div", ee, [
|
|
176
|
-
a.type === "textButtonSmall" ? (r(),
|
|
190
|
+
a.type === "textButtonSmall" ? (r(), D(Y, {
|
|
177
191
|
key: 0,
|
|
178
|
-
buttonText: a.buttonText,
|
|
179
|
-
onClick: k,
|
|
180
192
|
ref_key: "accActive",
|
|
181
|
-
ref: w
|
|
182
|
-
|
|
183
|
-
|
|
193
|
+
ref: w,
|
|
194
|
+
"button-text": a.buttonText,
|
|
195
|
+
onClick: k
|
|
196
|
+
}, null, 8, ["button-text"])) : h("", !0),
|
|
197
|
+
a.type === "moreButton" ? (r(), D(X, {
|
|
184
198
|
key: 1,
|
|
185
|
-
onClick: k,
|
|
186
199
|
ref_key: "accActive",
|
|
187
|
-
ref: w
|
|
200
|
+
ref: w,
|
|
201
|
+
onClick: k
|
|
188
202
|
}, null, 512)) : h("", !0),
|
|
189
|
-
a.type === "inputField" ? (r(),
|
|
203
|
+
a.type === "inputField" ? (r(), D(Q, G({ key: 2 }, a.inputFieldProps, {
|
|
204
|
+
ref_key: "accActive",
|
|
205
|
+
ref: w,
|
|
206
|
+
"model-value": d.value,
|
|
207
|
+
"drop-down-expanded": C(u),
|
|
190
208
|
onClick: k,
|
|
191
209
|
onKeydown: [
|
|
192
210
|
f(V(k, ["prevent"]), ["space"]),
|
|
193
211
|
f(k, ["enter"]),
|
|
194
|
-
f(V(
|
|
212
|
+
f(V($, ["prevent"]), ["arrow-down"])
|
|
195
213
|
],
|
|
196
214
|
onInput: W,
|
|
197
|
-
onDeleteButtonClicked: U
|
|
198
|
-
|
|
199
|
-
dropDownExpanded: C(u),
|
|
200
|
-
ref_key: "accActive",
|
|
201
|
-
ref: w
|
|
202
|
-
}), null, 16, ["onKeydown", "modelValue", "dropDownExpanded"])) : h("", !0),
|
|
215
|
+
onDeleteButtonClicked: U
|
|
216
|
+
}), null, 16, ["model-value", "drop-down-expanded", "onKeydown"])) : h("", !0),
|
|
203
217
|
C(u) ? (r(), s("div", {
|
|
204
218
|
key: 3,
|
|
205
219
|
class: I(["dpiV3_dropdownWrapper", {
|
|
@@ -207,49 +221,50 @@ const ee = { class: "dpiV3_dropdownV3" }, te = {
|
|
|
207
221
|
}]),
|
|
208
222
|
style: F({ width: O.value })
|
|
209
223
|
}, [
|
|
210
|
-
|
|
224
|
+
b.value ? (r(), s("div", te, t[0] || (t[0] = [
|
|
211
225
|
_("div", { class: "dpiV3_loading-spinner" }, null, -1),
|
|
212
226
|
_("span", null, "Daten werden geladen...", -1)
|
|
213
|
-
]))) :
|
|
227
|
+
]))) : E.value ? (r(), s("div", le, t[1] || (t[1] = [
|
|
214
228
|
_("span", null, "Keine Ergebnisse gefunden", -1)
|
|
215
229
|
]))) : a.multi ? (r(), s("ul", ae, [
|
|
216
|
-
(r(!0), s(x, null,
|
|
217
|
-
_("div",
|
|
218
|
-
|
|
230
|
+
(r(!0), s(x, null, A(g.data, (l, c) => (r(), s("div", ne, [
|
|
231
|
+
_("div", oe, S(e.$t(
|
|
232
|
+
`message.dataupload.datasets.dcatde:politicalGeocodingURI.titles.${l.headers}`
|
|
219
233
|
)), 1),
|
|
220
|
-
(r(!0), s(x, null,
|
|
234
|
+
(r(!0), s(x, null, A(l.list, (n, pe) => (r(), s("div", ue, [
|
|
221
235
|
_("button", {
|
|
222
|
-
onClick: (i) =>
|
|
223
|
-
|
|
236
|
+
onClick: (i) => R(
|
|
237
|
+
n,
|
|
224
238
|
i,
|
|
225
|
-
|
|
239
|
+
T(l.headers)
|
|
226
240
|
),
|
|
227
241
|
onKeydown: [
|
|
228
|
-
f((i) => m(
|
|
229
|
-
f(V((i) => m(
|
|
230
|
-
f((i) => m(
|
|
231
|
-
f((i) => m(
|
|
242
|
+
f((i) => m(n, i), ["enter"]),
|
|
243
|
+
f(V((i) => m(n, i), ["prevent"]), ["space"]),
|
|
244
|
+
f((i) => m(n, i), ["arrow-down"]),
|
|
245
|
+
f((i) => m(n, i), ["arrow-up"])
|
|
232
246
|
],
|
|
233
|
-
onKeyup: (i) =>
|
|
234
|
-
},
|
|
247
|
+
onKeyup: (i) => L(n, i)
|
|
248
|
+
}, S(n.alt_label.de), 41, re)
|
|
235
249
|
]))), 256)),
|
|
236
250
|
c - 1 != Object.values(l).length ? (r(), s("div", de)) : h("", !0)
|
|
237
251
|
]))), 256))
|
|
238
252
|
])) : (r(), s("ul", se, [
|
|
239
|
-
(r(!0), s(x, null,
|
|
240
|
-
|
|
241
|
-
onKeydown: (o) => j(l, o),
|
|
242
|
-
onKeyup: (o) => R(l, o),
|
|
253
|
+
(r(!0), s(x, null, A(g.data, (l, c) => (r(), s("button", {
|
|
254
|
+
disabled: l.disabled,
|
|
243
255
|
class: I({ dpiV3_selected: l.selected }),
|
|
244
256
|
style: F({
|
|
245
|
-
background:
|
|
246
|
-
})
|
|
247
|
-
|
|
257
|
+
background: y.value[l["@value"]] || "initial"
|
|
258
|
+
}),
|
|
259
|
+
onClick: (n) => z(l, n),
|
|
260
|
+
onKeydown: (n) => P(l, n),
|
|
261
|
+
onKeyup: (n) => j(l, n)
|
|
262
|
+
}, S(l["@value"] || l.pref_label.de || l.pref_label.en), 47, ie))), 256))
|
|
248
263
|
]))
|
|
249
264
|
], 6)) : h("", !0)
|
|
250
265
|
]));
|
|
251
266
|
}
|
|
252
|
-
}, me = /* @__PURE__ */ Z(ce, [["__scopeId", "data-v-
|
|
267
|
+
}, me = /* @__PURE__ */ Z(ce, [["__scopeId", "data-v-fed57feb"]]);
|
|
253
268
|
export {
|
|
254
269
|
me as default
|
|
255
270
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ApplicationsStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a67a5c73"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|