@piveau/dpi 0.2.0-alpha.24 → 0.2.0-alpha.27

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 (39) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +43 -38
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +23 -22
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +3 -3
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -40
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +7 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +206 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +76 -62
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +2 -2
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +7 -7
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +106 -135
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +1 -1
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +35 -28
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +3 -3
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +114 -111
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +59 -52
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +44 -33
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +4 -4
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +465 -452
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +83 -75
  28. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +1 -1
  29. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +33 -33
  30. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +3 -3
  31. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +37 -21
  32. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  33. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +14 -14
  34. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +86 -73
  35. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +197 -170
  36. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +320 -317
  37. package/package.json +1 -1
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +0 -7
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +0 -143
@@ -52,7 +52,7 @@ const d = {
52
52
  src: m,
53
53
  alt: ""
54
54
  }, g = { class: "label" };
55
- function h(y, b, t, C, S, r) {
55
+ function h(y, C, t, S, b, r) {
56
56
  return s(), e("div", {
57
57
  class: o(["state-tag", [r.stateClass, r.sizeClass]])
58
58
  }, [
@@ -62,7 +62,7 @@ function h(y, b, t, C, S, r) {
62
62
  i("span", g, c(t.label), 1)
63
63
  ], 2);
64
64
  }
65
- const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-65fb0446"]]);
65
+ const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-c4af57c2"]]);
66
66
  export {
67
67
  E as default
68
68
  };
@@ -1,16 +1,16 @@
1
- import { ref as p, computed as R, watch as K, createElementBlock as N, openBlock as d, Fragment as q, createElementVNode as n, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as F, withModifiers as w, unref as o, toDisplayString as H, isRef as z } from "vue";
2
- import { setResourcePublicationStatus as B, setDatasetPublicationStatus as I, deleteResource as L, deleteDataset as J } from "@piveau/sdk-core/hubRepo";
3
- import { useRouter as O, useRoute as W } from "vue-router";
4
- import { useStore as G } from "vuex";
5
- import { useRuntimeEnv as Q } from "../../../composables/useRuntimeEnv.js";
6
- import { useDpiUtils as X } from "../../composables/useDpiUtils.js";
7
- import Y from "./Dropdown.vue.js";
8
- import Z from "./ModalSimpleV3.vue.js";
1
+ import { ref as p, computed as R, watch as q, createElementBlock as F, openBlock as d, Fragment as H, createElementVNode as o, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as L, withModifiers as y, unref as n, toDisplayString as z, isRef as B } from "vue";
2
+ import { setResourcePublicationStatus as j, setDatasetPublicationStatus as I, deleteResource as J, deleteDataset as O } from "@piveau/sdk-core/hubRepo";
3
+ import { useRouter as W, useRoute as G } from "vue-router";
4
+ import { useStore as Q } from "vuex";
5
+ import { useRuntimeEnv as X } from "../../../composables/useRuntimeEnv.js";
6
+ import { useDpiUtils as Y } from "../../composables/useDpiUtils.js";
7
+ import Z from "./Dropdown.vue.js";
8
+ import ee from "./ModalSimpleV3.vue.js";
9
9
  import k from "./StateTag.vue.js";
10
- import ee from "./Toast.vue.js";
10
+ import te from "./Toast.vue.js";
11
11
  /* empty css */
12
- import te from "../../../../../../_virtual/_plugin-vue_export-helper.js";
13
- const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, ne = { class: "dpiV3_TableRowStatus" }, se = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowButtonWrap" }, re = {
12
+ import ae from "../../../../../../_virtual/_plugin-vue_export-helper.js";
13
+ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, se = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowUpdated" }, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
14
14
  __name: "TableRowV3",
15
15
  props: {
16
16
  text: {
@@ -50,31 +50,35 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
50
50
  allowDelete: {
51
51
  type: Boolean,
52
52
  default: !0
53
+ },
54
+ visibilityState: {
55
+ type: String,
56
+ default: "public"
53
57
  }
54
58
  },
55
59
  emits: ["complete", "start"],
56
- setup(y, { emit: j }) {
57
- const t = y, C = j, E = G();
58
- O();
59
- const U = W(), c = Q().api.hubUrl;
60
+ setup(w, { emit: _ }) {
61
+ const t = w, U = _, C = Q();
62
+ W();
63
+ const E = G(), c = X().api.hubUrl;
60
64
  let s = p(!1), i = p(!1), v = p(!1), r = p({}), u = p({});
61
65
  const D = R(() => {
62
66
  var a;
63
- return !!((a = U.query) != null && a.fromDraft);
67
+ return !!((a = E.query) != null && a.fromDraft);
64
68
  }), f = R(() => {
65
69
  var a, e;
66
- return (e = (a = E.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
67
- }), { toEditMode: P } = X();
68
- function _() {
70
+ return (e = (a = C.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
71
+ }), { toEditMode: A } = Y();
72
+ function P() {
69
73
  const a = t.draft || D.value, e = t.catalogue, l = t.id || t.dataset.id || t.catalogue.id;
70
- P({
71
- routeName: t.type === "project" ? "DataProviderInterface-InputProject" : "DataProviderInterface-Input",
74
+ A({
75
+ routeName: t.type === "projects" ? "DataProviderInterface-InputProject" : "DataProviderInterface-Input",
72
76
  id: l,
73
77
  catalogId: e,
74
78
  isDraft: a,
75
79
  locale: "de",
76
80
  additionalParams: {
77
- visibility: t.visibility
81
+ visibility: t.visibilityState
78
82
  }
79
83
  });
80
84
  }
@@ -83,12 +87,12 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
83
87
  i.value = !1;
84
88
  }, 2e3);
85
89
  }
86
- K(i, (a) => {
90
+ q(i, (a) => {
87
91
  a && setTimeout(() => {
88
92
  v.value || (i.value = !1);
89
93
  }, 2e3);
90
94
  });
91
- function A() {
95
+ function M() {
92
96
  return t.draft ? [
93
97
  { "@value": "Ansehen", selected: !1, disabled: !1 },
94
98
  { "@value": "Bearbeiten", selected: !1, disabled: !t.allowEdit },
@@ -101,14 +105,14 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
101
105
  { "@value": "Löschen", selected: !1, disabled: !t.allowDelete }
102
106
  ];
103
107
  }
104
- async function M(a, e) {
108
+ async function K(a, e) {
105
109
  switch (a) {
106
110
  case "goToDataset":
107
- window.open(`/${t.type === "project" ? "projects" : t.type}/${t.id}`, "_blank");
111
+ window.open(`/${t.type === "projects" ? "projects" : t.type}/${t.id}`, "_blank");
108
112
  break;
109
113
  case "publishDataset":
110
- if (e("start"), t.type === "project") {
111
- B({
114
+ if (e("start"), t.type === "projects") {
115
+ j({
112
116
  baseUrl: c,
113
117
  id: t.id,
114
118
  type: "project",
@@ -134,8 +138,8 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
134
138
  }, e("complete");
135
139
  break;
136
140
  case "deleteDataset":
137
- if (e("start"), t.type === "project") {
138
- await L({
141
+ if (e("start"), t.type === "projects") {
142
+ await J({
139
143
  baseUrl: c,
140
144
  id: t.id,
141
145
  type: "project",
@@ -144,7 +148,7 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
144
148
  }), e("complete");
145
149
  break;
146
150
  }
147
- await J({
151
+ await O({
148
152
  baseUrl: c,
149
153
  id: t.id,
150
154
  catalogId: t.catalogue,
@@ -157,8 +161,8 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
157
161
  }, e("complete");
158
162
  break;
159
163
  case "setToDraft":
160
- if (e("start"), t.type === "project") {
161
- B({
164
+ if (e("start"), t.type === "projects") {
165
+ j({
162
166
  baseUrl: c,
163
167
  id: t.id,
164
168
  type: "project",
@@ -184,14 +188,17 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
184
188
  }, e("complete");
185
189
  }
186
190
  }
187
- function T(a) {
191
+ function N(a, e) {
192
+ return `/${a === "projects" ? "projects" : a}/${e}`;
193
+ }
194
+ function S(a) {
188
195
  let e = "";
189
196
  switch (typeof a == "string" ? e = a : e = a.target.innerText, e) {
190
197
  case "Ansehen":
191
- window.location.href = `/${t.type}/${t.id}`;
198
+ window.open(N(t.type, t.id), "_blank");
192
199
  break;
193
200
  case "Bearbeiten":
194
- _();
201
+ P();
195
202
  break;
196
203
  case "Veröffentlichen":
197
204
  r.value = {
@@ -220,7 +227,7 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
220
227
  }
221
228
  }
222
229
  let g = p(!1);
223
- function S(a, e) {
230
+ function T(a, e) {
224
231
  e ? g.value = !0 : g.value = !1;
225
232
  }
226
233
  function V(a) {
@@ -229,32 +236,32 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
229
236
  function x(a) {
230
237
  a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
231
238
  }
232
- return (a, e) => (d(), N(q, null, [
233
- n("button", {
234
- class: F(["dpiV3_tableRowWrapper", {
235
- dpiV3_pressedTableRow: o(g),
239
+ return (a, e) => (d(), F(H, null, [
240
+ o("button", {
241
+ class: L(["dpiV3_tableRowWrapper", {
242
+ dpiV3_pressedTableRow: n(g),
236
243
  tRowInDraft: t.fromDraft
237
244
  }]),
238
245
  onKeydown: [
239
- e[3] || (e[3] = m(w((l) => V(l), ["prevent"]), ["space"])),
240
- e[4] || (e[4] = m(w((l) => V(l), ["prevent"]), ["enter"]))
246
+ e[3] || (e[3] = m(y((l) => V(l), ["prevent"]), ["space"])),
247
+ e[4] || (e[4] = m(y((l) => V(l), ["prevent"]), ["enter"]))
241
248
  ],
242
249
  onKeyup: [
243
250
  e[5] || (e[5] = m((l) => x(l), ["space"])),
244
251
  e[6] || (e[6] = m((l) => x(l), ["enter"]))
245
252
  ]
246
253
  }, [
247
- n("div", ae, [
248
- n("div", {
254
+ o("div", le, [
255
+ o("div", {
249
256
  class: "dpiV3_tableRowContent",
250
- onMousedown: e[0] || (e[0] = w((l) => S(l, !0), ["prevent"])),
251
- onMouseup: e[1] || (e[1] = w((l) => S(l, !1), ["prevent"])),
252
- onClick: e[2] || (e[2] = (l) => T("Bearbeiten"))
257
+ onMousedown: e[0] || (e[0] = y((l) => T(l, !0), ["prevent"])),
258
+ onMouseup: e[1] || (e[1] = y((l) => T(l, !1), ["prevent"])),
259
+ onClick: e[2] || (e[2] = (l) => S("Ansehen"))
253
260
  }, [
254
- n("div", le, [
255
- n("span", oe, H(t.text), 1)
261
+ o("div", ne, [
262
+ o("span", oe, z(t.text), 1)
256
263
  ]),
257
- n("div", ne, [
264
+ o("div", se, [
258
265
  t.draft ? (d(), b(k, {
259
266
  key: 1,
260
267
  label: "Entwurf",
@@ -263,19 +270,20 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
263
270
  key: 0,
264
271
  label: "Freigegeben",
265
272
  state: "published"
266
- }))
273
+ })),
274
+ o("span", ie, " Bearbeitet am: " + z(t.date), 1)
267
275
  ]),
268
- n("div", se, [
269
- y.visibility ? (d(), b(k, {
276
+ o("div", re, [
277
+ w.visibility ? (d(), b(k, {
270
278
  key: 0,
271
- label: y.visibility,
272
- state: t.draft ? "draft" : "published",
279
+ label: w.visibility,
280
+ state: t.draft ? "visibility-draft" : "visibility-published",
273
281
  "has-dot-icon": !1
274
282
  }, null, 8, ["label", "state"])) : h("", !0)
275
283
  ])
276
284
  ], 32),
277
- n("div", ie, [
278
- D.value ? h("", !0) : (d(), b(Y, {
285
+ o("div", ue, [
286
+ D.value ? h("", !0) : (d(), b(Z, {
279
287
  key: 0,
280
288
  type: "moreButton",
281
289
  "not-draft": !D.value,
@@ -283,34 +291,34 @@ const ae = { class: "dpiV3_tableRowInner" }, le = { class: "dpiV3_TableRowDescCo
283
291
  text: {
284
292
  support: "This is a supporting message"
285
293
  },
286
- data: A(),
287
- onClick: T
294
+ data: M(),
295
+ onClick: S
288
296
  }, null, 8, ["not-draft", "data"]))
289
297
  ])
290
298
  ])
291
299
  ], 34),
292
- o(s) ? (d(), b(Z, {
300
+ n(s) ? (d(), b(ee, {
293
301
  key: 0,
294
- buttons: o(r).button,
295
- "header-text": o(r).header,
296
- text: o(r).text,
297
- action: o(r).action,
298
- onClose: e[7] || (e[7] = (l) => z(s) ? s.value = !1 : s = !1),
299
- onActionHandling: e[8] || (e[8] = (l) => M(l, C))
302
+ buttons: n(r).button,
303
+ "header-text": n(r).header,
304
+ text: n(r).text,
305
+ action: n(r).action,
306
+ onClose: e[7] || (e[7] = (l) => B(s) ? s.value = !1 : s = !1),
307
+ onActionHandling: e[8] || (e[8] = (l) => K(l, U))
300
308
  }, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0),
301
- o(i) ? (d(), b(ee, {
309
+ n(i) ? (d(), b(te, {
302
310
  key: 1,
303
- type: o(u).type,
304
- text: o(u).text,
311
+ type: n(u).type,
312
+ text: n(u).text,
305
313
  class: "dpiV3_tableToast",
306
- button: o(u).button,
307
- action: o(u).action,
308
- onMouseenter: e[9] || (e[9] = (l) => z(v) ? v.value = !0 : v = !0),
314
+ button: n(u).button,
315
+ action: n(u).action,
316
+ onMouseenter: e[9] || (e[9] = (l) => B(v) ? v.value = !0 : v = !0),
309
317
  onMouseleave: $
310
318
  }, null, 8, ["type", "text", "button", "action"])) : h("", !0)
311
319
  ], 64));
312
320
  }
313
- }, ke = /* @__PURE__ */ te(re, [["__scopeId", "data-v-bcba9c89"]]);
321
+ }, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-e19eb221"]]);
314
322
  export {
315
- ke as default
323
+ Te as default
316
324
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Spatial.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e1645b3"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4797bd26"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as s, createCommentVNode as b, createBlock as h, Fragment as R, renderList as G, withDirectives as $, createElementVNode as y, vModelCheckbox as I, withCtx as U, createVNode as p } from "vue";
2
- import M from "../HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js";
1
+ import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as i, createCommentVNode as b, createBlock as h, Fragment as R, renderList as G, withDirectives as M, createElementVNode as y, vModelCheckbox as $, withCtx as U, createVNode as p } from "vue";
2
+ import I from "../HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js";
3
3
  import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
4
4
  import x from "../HappyFlowComponents/ui/Chip.vue.js";
5
5
  import E from "../HappyFlowComponents/ui/InputField.vue.js";
@@ -8,7 +8,7 @@ import T from "../HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js";
8
8
  import W from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepInputCard.vue.js";
9
9
  const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
10
10
  key: 2,
11
- class: "step-section-actions"
11
+ class: "step-section-actions dpiV3_tempAddMore"
12
12
  }, ee = /* @__PURE__ */ B({
13
13
  __name: "Spatial",
14
14
  props: /* @__PURE__ */ C({
@@ -23,8 +23,8 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
23
23
  modelModifiers: {}
24
24
  }),
25
25
  emits: ["update:modelValue"],
26
- setup(g) {
27
- const r = g, i = L(g, "modelValue"), d = m(r.options.find((a) => a.id === "place") || r.options[0]), u = m(void 0), n = m(""), f = v(() => {
26
+ setup(V) {
27
+ const r = V, s = L(V, "modelValue"), d = m(r.options.find((a) => a.id === "place") || r.options[0]), u = m(void 0), n = m(""), f = v(() => {
28
28
  try {
29
29
  if (!n.value)
30
30
  return !1;
@@ -43,29 +43,29 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
43
43
  function _(a) {
44
44
  return a.startsWith("http://publications.europa.eu/resource/authority");
45
45
  }
46
- const w = v(() => f.value || !!u.value);
47
- function A() {
46
+ const A = v(() => f.value || !!u.value);
47
+ function w() {
48
48
  var o;
49
- const a = (o = n.value) == null ? void 0 : o.trim(), l = f.value, e = u.value, t = l ? a : e;
50
- t && (i.value = [t], n.value = "", u.value = void 0);
49
+ const a = (o = n.value) == null ? void 0 : o.trim(), t = f.value, e = u.value, l = t ? a : e;
50
+ l && (s.value = [l], n.value = "", u.value = void 0);
51
51
  }
52
- return (a, l) => (s(), c("section", D, [
53
- i.value.length > 0 ? (s(), c("div", K, [
54
- (s(!0), c(R, null, G(i.value, (e, t) => (s(), c("div", {
55
- key: `spatial-${t}`,
52
+ return (a, t) => (i(), c("section", D, [
53
+ s.value.length > 0 ? (i(), c("div", K, [
54
+ (i(!0), c(R, null, G(s.value, (e, l) => (i(), c("div", {
55
+ key: `spatial-${l}`,
56
56
  class: "functionalities"
57
57
  }, [
58
- $(y("input", {
59
- id: `spatial-${t}`,
60
- "onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
58
+ M(y("input", {
59
+ id: `spatial-${l}`,
60
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o),
61
61
  hidden: "",
62
62
  value: e,
63
63
  name: "spatial",
64
64
  type: "checkbox"
65
65
  }, null, 8, O), [
66
- [I, i.value]
66
+ [$, s.value]
67
67
  ]),
68
- _(e) ? (s(), h(T, {
68
+ _(e) ? (i(), h(T, {
69
69
  key: 0,
70
70
  "base-url": r.baseUrl,
71
71
  vocabulary: e == null ? void 0 : e.split("/").slice(-2)[0],
@@ -73,12 +73,12 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
73
73
  "setup-fn": (o) => o
74
74
  }, {
75
75
  default: U(({ result: o }) => {
76
- var V, k;
76
+ var g, k;
77
77
  return [
78
78
  p(x, {
79
79
  as: "label",
80
- for: `spatial-${t}`,
81
- text: ((V = o == null ? void 0 : o.pref_label) == null ? void 0 : V.de) || ((k = o == null ? void 0 : o.pref_label) == null ? void 0 : k.en),
80
+ for: `spatial-${l}`,
81
+ text: ((g = o == null ? void 0 : o.pref_label) == null ? void 0 : g.de) || ((k = o == null ? void 0 : o.pref_label) == null ? void 0 : k.en),
82
82
  setup: {
83
83
  "@type": "select",
84
84
  "@icon": "suffix",
@@ -91,10 +91,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
91
91
  ];
92
92
  }),
93
93
  _: 2
94
- }, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (s(), h(x, {
94
+ }, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (i(), h(x, {
95
95
  key: 1,
96
96
  as: "label",
97
- for: `spatial-${t}`,
97
+ for: `spatial-${l}`,
98
98
  text: e,
99
99
  setup: {
100
100
  "@type": "select",
@@ -107,7 +107,7 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
107
107
  }, null, 8, ["for", "text", "data"]))
108
108
  ]))), 128))
109
109
  ])) : b("", !0),
110
- i.value.length === 0 ? (s(), h(W, {
110
+ s.value.length === 0 ? (i(), h(W, {
111
111
  key: 1,
112
112
  class: "step-section",
113
113
  "no-delete": ""
@@ -115,17 +115,17 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
115
115
  default: U(() => {
116
116
  var e;
117
117
  return [
118
- l[4] || (l[4] = y("h5", null, "Administrativer Bezug", -1)),
118
+ t[4] || (t[4] = y("h5", null, "Administrativer Bezug", -1)),
119
119
  p(F, {
120
120
  modelValue: d.value,
121
- "onUpdate:modelValue": l[1] || (l[1] = (t) => d.value = t),
121
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => d.value = l),
122
122
  options: r.options,
123
123
  label: "Gebiet der Abdeckung",
124
124
  placeholder: "Wählen Sie das Gebiet der Abdeckung."
125
125
  }, null, 8, ["modelValue", "options"]),
126
- p(M, {
126
+ p(I, {
127
127
  modelValue: u.value,
128
- "onUpdate:modelValue": l[2] || (l[2] = (t) => u.value = t),
128
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => u.value = l),
129
129
  by: "vocabulary",
130
130
  label: (e = d.value) == null ? void 0 : e.name,
131
131
  "base-url": r.baseUrl,
@@ -133,10 +133,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
133
133
  placeholder: "Legen Sie die räumliche Abdeckung fest.",
134
134
  name: "spatial"
135
135
  }, null, 8, ["modelValue", "label", "base-url", "vocabulary"]),
136
- l[5] || (l[5] = y("h5", null, "oder Geodatensatz", -1)),
136
+ t[5] || (t[5] = y("h5", null, "oder Geodatensatz", -1)),
137
137
  p(E, {
138
138
  modelValue: n.value,
139
- "onUpdate:modelValue": l[3] || (l[3] = (t) => n.value = t),
139
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => n.value = l),
140
140
  "add-on-text": !1,
141
141
  "date-picker": !1,
142
142
  "info-icon": !1,
@@ -154,14 +154,14 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
154
154
  _: 1,
155
155
  __: [4, 5]
156
156
  })) : b("", !0),
157
- i.value.length === 0 ? (s(), c("div", P, [
157
+ s.value.length === 0 ? (i(), c("div", P, [
158
158
  p(N, {
159
159
  "button-text": "Räumliche Abdeckung hinzufügen",
160
160
  size: "medium",
161
161
  variant: "tertiary",
162
162
  "icon-start": "plus",
163
- disabled: !w.value,
164
- onClick: A
163
+ disabled: !A.value,
164
+ onClick: w
165
165
  }, null, 8, ["disabled"])
166
166
  ])) : b("", !0)
167
167
  ]));
@@ -1,7 +1,7 @@
1
- import a from "./SpatialPage.vue2.js";
1
+ import o from "./SpatialPage.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-6bcbb49a"]]);
3
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56c592dd"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,43 +1,59 @@
1
- import { defineComponent as r, computed as u, createElementBlock as p, openBlock as c, createElementVNode as l, createVNode as m } from "vue";
2
- import { useFormValues as f } from "../composables/useDpiFormValues.js";
3
- import g from "./Spatial.vue.js";
4
- import { useEditModeInfo as v } from "../composables/useDpiEditMode.js";
5
- const h = { class: "dpiV3InnerComponentWrap" }, V = { class: "dropdown-container" }, S = /* @__PURE__ */ r({
1
+ import { defineComponent as p, computed as u, createElementBlock as c, openBlock as m, createElementVNode as i, createVNode as r, unref as g } from "vue";
2
+ import { PhLightbulb as f } from "@phosphor-icons/vue";
3
+ import { useFormValues as _ } from "../composables/useDpiFormValues.js";
4
+ import v from "./Spatial.vue.js";
5
+ import { useEditModeInfo as V } from "../composables/useDpiEditMode.js";
6
+ const h = { class: "dpiV3InnerComponentWrap" }, z = { class: "dropdown-container" }, b = { class: "dpiV3_Content_InputPage" }, A = { class: "dpiV3_Card_Tips" }, I = { class: "dpiV3_Icon_Title" }, E = /* @__PURE__ */ p({
6
7
  __name: "SpatialPage",
7
8
  props: {
8
9
  context: Object
9
10
  },
10
- setup(z) {
11
+ setup(k) {
11
12
  var d;
12
- const { isEditMode: s } = v(), { formValues: i } = f();
13
- s.value || (i.value.Additionals || (i.value.Additionals = {}), (d = i.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
13
+ const { isEditMode: l } = V(), { formValues: t } = _();
14
+ l.value || (t.value.Additionals || (t.value.Additionals = {}), (d = t.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
14
15
  { isValid: !0 }
15
- ])), s.value || (i.value.Covering["dcatde:politicalGeocodingURI"] = [
16
+ ])), l.value || (t.value.Covering["dcatde:politicalGeocodingURI"] = [
16
17
  { isValid: !0 }
17
18
  ]);
18
19
  const o = u({
19
20
  get() {
20
- var t, e, n;
21
- return ((n = (e = (t = i.value.Additionals) == null ? void 0 : t["dct:spatial"]) == null ? void 0 : e.filter((a) => !(a.isValid && Object.keys(a).length === 1))) == null ? void 0 : n.map((a) => a["@id"])) || [];
21
+ var s, e, n;
22
+ return ((n = (e = (s = t.value.Additionals) == null ? void 0 : s["dct:spatial"]) == null ? void 0 : e.filter((a) => !(a.isValid && Object.keys(a).length === 1))) == null ? void 0 : n.map((a) => a["@id"])) || [];
22
23
  },
23
- set(t) {
24
- i.value.Additionals || (i.value.Additionals = {}), i.value.Additionals["dct:spatial"] = [
25
- ...t.map((e) => ({ "@id": e }))
24
+ set(s) {
25
+ t.value.Additionals || (t.value.Additionals = {}), t.value.Additionals["dct:spatial"] = [
26
+ ...s.map((e) => ({ "@id": e }))
26
27
  ];
27
28
  }
28
29
  });
29
- return (t, e) => (c(), p("div", h, [
30
- e[1] || (e[1] = l("h4", null, " Legen Sie die räumliche Abdeckung Ihres Datensatzes fest (optional) ", -1)),
31
- e[2] || (e[2] = l("div", { class: "copy-large-regular" }, " Bitte geben Sie an, auf welches geografische oder politische Gebiet sich Ihr Datensatz bezieht. Dies kann beispielsweise eine Stadt, eine Region, ein Land oder eine spezifische Verwaltungseinheit sein. Die Angabe des räumlichen Bezugs hilft anderen Nutzenden, Ihren Datensatz schnell im passenden Kontext zu finden und gezielt für ihre Zwecke einzusetzen. ", -1)),
32
- l("div", V, [
33
- m(g, {
30
+ return (s, e) => (m(), c("div", h, [
31
+ e[3] || (e[3] = i("h4", null, " Legen Sie die räumliche Abdeckung Ihres Datensatzes fest (optional) ", -1)),
32
+ e[4] || (e[4] = i("div", { class: "copy-large-regular" }, " Bitte geben Sie an, auf welches geografische oder politische Gebiet sich Ihr Datensatz bezieht. Dies kann beispielsweise eine Stadt, eine Region, ein Land oder eine spezifische Verwaltungseinheit sein. Die Angabe des räumlichen Bezugs hilft anderen Nutzenden, Ihren Datensatz schnell im passenden Kontext zu finden und gezielt für ihre Zwecke einzusetzen. ", -1)),
33
+ i("div", z, [
34
+ r(v, {
34
35
  modelValue: o.value,
35
36
  "onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n)
36
- }, null, 8, ["modelValue"])
37
+ }, null, 8, ["modelValue"]),
38
+ i("div", b, [
39
+ i("div", A, [
40
+ i("div", I, [
41
+ r(g(f), {
42
+ size: 32,
43
+ color: "#009fe3"
44
+ }),
45
+ e[1] || (e[1] = i("div", { class: "dpiV3_Info-Text dpiV3_activeStepName" }, " Beispiele ", -1))
46
+ ]),
47
+ e[2] || (e[2] = i("div", { class: "dpiV3_CT-Content" }, [
48
+ i("div", { class: "dpiV3_copy_large_regular link_text" }, " Würzburg: http://publications.europa.eu/resource/authority/place/DEU-WUE "),
49
+ i("div", { class: "dpiV3_copy_large_regular link_text" }, " Deutschland: http://sws.geonames.org/2921044/ ")
50
+ ], -1))
51
+ ])
52
+ ])
37
53
  ])
38
54
  ]));
39
55
  }
40
56
  });
41
57
  export {
42
- S as default
58
+ E as default
43
59
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./StepActionsSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a44124be"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-768749b1"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };