@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.16

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.
Files changed (70) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +140 -116
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +36 -29
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +367 -379
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
  45. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
  46. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
  47. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
  48. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  49. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
  51. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +20 -20
  52. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +68 -70
  53. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
  54. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
  55. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
  56. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
  57. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
  58. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
  59. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
  60. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +98 -94
  61. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
  62. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
  63. package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
  64. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  65. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
  66. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  67. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
  68. package/package.json +5 -5
  69. package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
  70. 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 M, ref as h, computed as j, useModel as D, inject as K, createElementBlock as V, openBlock as u, createElementVNode as t, createVNode as o, createBlock as m, createCommentVNode as g, createTextVNode as b, unref as d, withCtx as r, Fragment as L, renderList as P } from "vue";
2
- import { FormKit as x } from "@formkit/vue";
3
- import { PhLightbulb as F, PhExclamationMark as W } from "@phosphor-icons/vue";
4
- import A from "../../../../stories/components/LinkCard.vue.js";
5
- import I from "../../../components/StepActionsSection.vue.js";
6
- import p from "../ButtonV3.vue.js";
7
- import _ from "../Card.vue.js";
8
- import N from "../TextArea/TextAreaDefinition.js";
9
- import { dpiStepperKey as O } from "../../../utils/injectionKeys.js";
10
- const Z = { class: "dpiV3_page V3-typography" }, $ = { class: "funny-section" }, G = { class: "funny-section" }, R = {
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
- }, T = { class: "partner-cards-container" }, U = { class: "action-container" }, q = { class: "step-actions__prev-and-next" }, H = { class: "actions" }, J = 1e3, oe = /* @__PURE__ */ M({
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 v = h(""), z = h([]);
21
+ const g = h(""), y = h([]);
22
22
  h([]);
23
- const k = h(!1), B = j(() => {
24
- var l;
25
- return ((l = v.value) == null ? void 0 : l.length) || 0;
26
- }), S = D(w, "modelValue"), y = K(O);
27
- function E() {
28
- const l = S.value;
29
- if (!l || typeof l != "object") return !1;
30
- const e = Object.keys(l).filter(
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
- b(" Führen Sie im Schritt der "),
34
+ k(" Führen Sie im Schritt der "),
51
35
  t("strong", null, "Datenvisualisierung"),
52
- b(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
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(d(x), {
40
+ t("section", j, [
41
+ i(o(b), {
58
42
  id: "Beschreibung",
59
- modelValue: v.value,
60
- "onUpdate:modelValue": e[0] || (e[0] = (n) => v.value = n),
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: d(N),
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: `${B.value} von ${J} Zeichen`,
54
+ help: `${S.value} von ${H} Zeichen`,
71
55
  "count-hint": !0
72
56
  }, null, 8, ["modelValue", "type", "help"])
73
57
  ]),
74
- t("section", G, [
75
- o(_, { variant: "default" }, {
76
- icon: r(() => [
77
- o(d(F), {
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: r(() => e[2] || (e[2] = [
83
- b(" Beispiel ", -1)
66
+ title: n(() => e[3] || (e[3] = [
67
+ k(" Beispiel ", -1)
84
68
  ])),
85
- default: r(() => [
86
- e[3] || (e[3] = 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))
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
- __: [3]
73
+ __: [4]
90
74
  })
91
75
  ]),
92
- t("section", R, [
93
- e[4] || (e[4] = t("h5", null, " Weiterführende Links (optional) ", -1)),
94
- e[5] || (e[5] = t("span", { class: "copy-large-regular further-links-text" }, "Geben Sie hier Methoden, Verfahren oder Werkzeuge an, die im Prozessschritt verwendet wurden (z.B. KI-Modelle, GIS-Anwendungen oder spezielle Messtechniken).", -1)),
95
- t("div", T, [
96
- o(d(x), {
97
- modelValue: z.value,
98
- "onUpdate:modelValue": e[1] || (e[1] = (n) => z.value = n),
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: r(({ items: n, node: s, value: c }) => [
104
- (u(!0), V(L, null, P(n, (a, i) => (u(), m(d(x), {
105
- key: a,
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: i
91
+ index: p
108
92
  }, {
109
- default: r(() => [
110
- o(A, null, {
111
- action: r(() => [
112
- o(p, {
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: () => s.input(c.filter((C, f) => f !== i))
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", U, [
126
- o(p, {
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: (a) => s.input(c.concat({}))
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
- o(I, {
123
+ i($, {
140
124
  "next-text": "Weiter zu Software",
141
125
  class: "actions-container"
142
126
  }, {
143
- "prev-and-next": r(({
144
- hidePrevious: n,
145
- hideNext: s,
127
+ "prev-and-next": n(({
128
+ hidePrevious: r,
129
+ hideNext: d,
146
130
  previousText: c,
147
- nextText: a,
148
- handlePrevious: i,
149
- handleSubmit: C
131
+ nextText: m,
132
+ handlePrevious: p,
133
+ handleSubmit: z
150
134
  }) => [
151
135
  t("div", q, [
152
- t("div", H, [
153
- n ? g("", !0) : (u(), m(p, {
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: i
144
+ onClick: p
161
145
  }, null, 8, ["button-text", "onClick"])),
162
- n ? g("", !0) : (u(), m(p, {
146
+ r ? f("", !0) : (s(), a(u, {
163
147
  key: 1,
164
148
  variant: "secondary",
165
149
  class: "skip-button",
166
- onClick: E,
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
- s ? g("", !0) : (u(), m(p, {
159
+ d ? f("", !0) : (s(), a(u, {
173
160
  key: 0,
174
161
  variant: "primary",
175
162
  size: "large",
176
- "button-text": a,
163
+ "button-text": m,
177
164
  "icon-end": "CaretRight",
178
165
  class: "next-button",
179
166
  onClick: () => {
180
- const f = C();
181
- return console.log(f), f;
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
- k.value ? (u(), m(_, {
175
+ _.value ? (s(), a(V, {
189
176
  key: 0,
190
177
  variant: "error",
191
178
  class: "error"
192
179
  }, {
193
- icon: r(() => [
194
- o(d(W), {
180
+ icon: n(() => [
181
+ i(o(K), {
195
182
  size: 32,
196
183
  color: "currentColor"
197
184
  })
198
185
  ]),
199
- title: r(() => e[6] || (e[6] = [
186
+ title: n(() => e[7] || (e[7] = [
200
187
  t("span", { class: "error-title" }, "Fehler", -1)
201
188
  ])),
202
- default: r(() => [
203
- e[7] || (e[7] = t("ul", { class: "validation-errors" }, [
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
- __: [7]
209
- })) : g("", !0)
195
+ __: [8]
196
+ })) : f("", !0)
210
197
  ]));
211
198
  }
212
199
  });
213
200
  export {
214
- oe as default
201
+ se as default
215
202
  };
@@ -1,9 +1,9 @@
1
- import { ref as p, computed as K, watch as B, createElementBlock as s, openBlock as r, createBlock as b, createCommentVNode as h, mergeProps as H, unref as C, withKeys as f, withModifiers as V, normalizeStyle as F, normalizeClass as I, createElementVNode as _, Fragment as x, renderList as E, toDisplayString as A, nextTick as N } from "vue";
2
- import { onClickOutside as $ } from "@vueuse/core";
3
- import J from "./TextButtonSmall.vue.js";
4
- import Q from "./MoreButton.vue.js";
5
- import X from "./InputField.vue.js";
6
- import { useI18n as Y } from "vue-i18n";
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
- }, oe = { class: "dpiV3_multiInnerWrap" }, ne = { class: "dpiV3_multiHeader" }, ue = { class: "dpiV3_btnWrap" }, re = ["onClick", "onKeydown", "onKeyup"], de = {
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: T }) {
82
- const { t: q } = Y(), w = p();
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 v = p({});
85
+ const y = p({});
86
86
  p([]);
87
- const n = p(0), D = p(!1), y = T, M = (e) => q(
88
- "message.dataupload.datasets.dcatde:politicalGeocodingURI.titles." + e
89
- ), a = g, S = K(() => {
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
- D.value = e;
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
- const U = () => {
114
- k(), y("deleteDropdownField");
115
- }, W = (e) => {
116
- d.value = e.target.value, N(() => {
117
- y("input", d.value);
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
- }, O = K(() => {
124
+ }
125
+ const O = K(() => {
120
126
  if (!a.autocomplete)
121
127
  return a.dropdownWidth === "large" ? "100%" : "161px";
122
- }), k = (e) => {
128
+ });
129
+ function k(e) {
123
130
  a.autocomplete || a.isDisabled || (u.value = !u.value);
124
- }, L = (e) => {
125
- if (u.value && !D.value && !S.value) {
126
- n.value--;
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(), n.value = (n.value + 1) % t.length, t[n.value].focus());
138
+ t.length > 0 && (e.preventDefault(), o.value = (o.value + 1) % t.length, t[o.value].focus());
131
139
  }
132
- }, m = (e, t) => {
133
- t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (n.value = 0, v.value[e] || (v.value[e] = {}), v.value[e] = "var(--neutral-10, #fafafb)"), t.key === "Escape" && (n.value = 0, u.value = !u.value);
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((o) => o === document.activeElement);
145
+ ), c = l.findIndex((n) => n === document.activeElement);
137
146
  if (t.key === "ArrowDown") {
138
147
  t.preventDefault();
139
- const o = (c + 1) % l.length;
140
- l[o].focus(), n.value = o;
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 o = (c - 1 + l.length) % l.length;
144
- l[o].focus(), n.value = o;
152
+ const n = (c - 1 + l.length) % l.length;
153
+ l[n].focus(), o.value = n;
145
154
  }
146
- }, P = (e, t) => {
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((o) => {
150
- o.selected = !1;
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
- }, j = (e, t) => {
154
- t.preventDefault(), (t.key === "Enter" || t.key === " " || t.key === "Spacebar") && (v.value[e["@value"]] = "var(--neutral-10, #f1f1f3)", n.value = 0), t.key === "Escape" && (n.value = 0, u.value = !u.value);
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(), n.value = (n.value + 1) % l.length, l[n.value].focus()) : t.key === "ArrowUp" || t.key === "Tab" && t.shiftKey ? (t.preventDefault(), n.value = (n.value - 1 + l.length) % l.length, l[n.value].focus()) : t.key === "Tab" && (t.preventDefault(), n.value = (n.value + 1) % l.length, l[n.value].focus());
157
- }, R = (e, t) => {
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, v.value[e["@value"]] = "var(--neutral-5, #fafafb)", d.value = e["@value"], u.value = !1);
161
- }, z = (e, t, l) => {
162
- y("valueSent", e, l), d.value = e.alt_label.de + " (" + l + ")", u.value = !1;
163
- }, G = (e, t) => {
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((o) => {
167
- o.selected = !1;
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, y("chosenVocItem", e)), e["@value"] === "Löschen" && a.notDraft && (d.value = "LöschenPublished", y("chosenVocItem", e)), y("update:modelValue", e["@value"], e));
172
- };
173
- return $(w, (e) => {
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(), b(J, {
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
- }, null, 8, ["buttonText"])) : h("", !0),
183
- a.type === "moreButton" ? (r(), b(Q, {
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(), b(X, H({ key: 2 }, a.inputFieldProps, {
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(L, ["prevent"]), ["arrow-down"])
212
+ f(V($, ["prevent"]), ["arrow-down"])
195
213
  ],
196
214
  onInput: W,
197
- onDeleteButtonClicked: U,
198
- modelValue: d.value,
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
- D.value ? (r(), s("div", te, t[0] || (t[0] = [
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
- ]))) : S.value ? (r(), s("div", le, t[1] || (t[1] = [
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, E(g.data, (l, c) => (r(), s("div", oe, [
217
- _("div", ne, A(e.$t(
218
- "message.dataupload.datasets.dcatde:politicalGeocodingURI.titles." + l.headers
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, E(l.list, (o, pe) => (r(), s("div", ue, [
234
+ (r(!0), s(x, null, A(l.list, (n, pe) => (r(), s("div", ue, [
221
235
  _("button", {
222
- onClick: (i) => z(
223
- o,
236
+ onClick: (i) => R(
237
+ n,
224
238
  i,
225
- M(l.headers)
239
+ T(l.headers)
226
240
  ),
227
241
  onKeydown: [
228
- f((i) => m(o, i), ["enter"]),
229
- f(V((i) => m(o, i), ["prevent"]), ["space"]),
230
- f((i) => m(o, i), ["arrow-down"]),
231
- f((i) => m(o, i), ["arrow-up"])
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) => P(o, i)
234
- }, A(o.alt_label.de), 41, re)
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, E(g.data, (l, c) => (r(), s("button", {
240
- onClick: (o) => G(l, o),
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: v.value[l["@value"]] || "initial"
246
- })
247
- }, A(l["@value"] || l.pref_label.de || l.pref_label.en), 47, ie))), 256))
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-3fad67f2"]]);
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-341c16e4"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53df9331"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };