@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
@@ -0,0 +1,172 @@
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";
3
+ import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
4
+ import x from "../HappyFlowComponents/ui/Chip.vue.js";
5
+ import E from "../HappyFlowComponents/ui/InputField.vue.js";
6
+ import F from "../HappyFlowComponents/ui/ListBox/Listbox.vue.js";
7
+ import T from "../HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js";
8
+ import W from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepInputCard.vue.js";
9
+ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
10
+ key: 2,
11
+ class: "step-section-actions"
12
+ }, ee = /* @__PURE__ */ B({
13
+ __name: "Spatial",
14
+ props: /* @__PURE__ */ C({
15
+ baseUrl: { default: "https://open.bydata.de/api/hub/search" },
16
+ options: { default: () => [
17
+ { id: "continent", name: "Kontinent" },
18
+ { id: "country", name: "Land" },
19
+ { id: "place", name: "Ort" }
20
+ ] }
21
+ }, {
22
+ modelValue: { default: () => [] },
23
+ modelModifiers: {}
24
+ }),
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(() => {
28
+ try {
29
+ if (!n.value)
30
+ return !1;
31
+ const a = new URL(n.value);
32
+ return !!a.protocol && !!a.host;
33
+ } catch {
34
+ return !1;
35
+ }
36
+ }), S = v(() => {
37
+ var a;
38
+ return ((a = d.value) == null ? void 0 : a.id) || "";
39
+ });
40
+ z(d, (a) => {
41
+ a && (u.value = void 0);
42
+ });
43
+ function _(a) {
44
+ return a.startsWith("http://publications.europa.eu/resource/authority");
45
+ }
46
+ const w = v(() => f.value || !!u.value);
47
+ function A() {
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);
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}`,
56
+ class: "functionalities"
57
+ }, [
58
+ $(y("input", {
59
+ id: `spatial-${t}`,
60
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
61
+ hidden: "",
62
+ value: e,
63
+ name: "spatial",
64
+ type: "checkbox"
65
+ }, null, 8, O), [
66
+ [I, i.value]
67
+ ]),
68
+ _(e) ? (s(), h(T, {
69
+ key: 0,
70
+ "base-url": r.baseUrl,
71
+ vocabulary: e == null ? void 0 : e.split("/").slice(-2)[0],
72
+ "resource-id": e,
73
+ "setup-fn": (o) => o
74
+ }, {
75
+ default: U(({ result: o }) => {
76
+ var V, k;
77
+ return [
78
+ p(x, {
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),
82
+ setup: {
83
+ "@type": "select",
84
+ "@icon": "suffix",
85
+ "@inTable": !1,
86
+ "@search": !1,
87
+ "@selected": !0
88
+ },
89
+ data: { "@value": e, URI: e }
90
+ }, null, 8, ["for", "text", "data"])
91
+ ];
92
+ }),
93
+ _: 2
94
+ }, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (s(), h(x, {
95
+ key: 1,
96
+ as: "label",
97
+ for: `spatial-${t}`,
98
+ text: e,
99
+ setup: {
100
+ "@type": "select",
101
+ "@icon": "suffix",
102
+ "@inTable": !1,
103
+ "@search": !1,
104
+ "@selected": !0
105
+ },
106
+ data: { "@value": e, URI: e }
107
+ }, null, 8, ["for", "text", "data"]))
108
+ ]))), 128))
109
+ ])) : b("", !0),
110
+ i.value.length === 0 ? (s(), h(W, {
111
+ key: 1,
112
+ class: "step-section",
113
+ "no-delete": ""
114
+ }, {
115
+ default: U(() => {
116
+ var e;
117
+ return [
118
+ l[4] || (l[4] = y("h5", null, "Administrativer Bezug", -1)),
119
+ p(F, {
120
+ modelValue: d.value,
121
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => d.value = t),
122
+ options: r.options,
123
+ label: "Gebiet der Abdeckung",
124
+ placeholder: "Wählen Sie das Gebiet der Abdeckung."
125
+ }, null, 8, ["modelValue", "options"]),
126
+ p(M, {
127
+ modelValue: u.value,
128
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => u.value = t),
129
+ by: "vocabulary",
130
+ label: (e = d.value) == null ? void 0 : e.name,
131
+ "base-url": r.baseUrl,
132
+ vocabulary: S.value,
133
+ placeholder: "Legen Sie die räumliche Abdeckung fest.",
134
+ name: "spatial"
135
+ }, null, 8, ["modelValue", "label", "base-url", "vocabulary"]),
136
+ l[5] || (l[5] = y("h5", null, "oder Geodatensatz", -1)),
137
+ p(E, {
138
+ modelValue: n.value,
139
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => n.value = t),
140
+ "add-on-text": !1,
141
+ "date-picker": !1,
142
+ "info-icon": !1,
143
+ "show-end-icon": !1,
144
+ "pre-icon": !1,
145
+ "input-type": "url",
146
+ label: "URL angeben",
147
+ placeholder: "https://example.org/geodatensatz",
148
+ "show-error": !!n.value && !f.value,
149
+ error_message: "Geben Sie eine gültige URL an",
150
+ "initial-hint-text": !!n.value && !f.value
151
+ }, null, 8, ["modelValue", "show-error", "initial-hint-text"])
152
+ ];
153
+ }),
154
+ _: 1,
155
+ __: [4, 5]
156
+ })) : b("", !0),
157
+ i.value.length === 0 ? (s(), c("div", P, [
158
+ p(N, {
159
+ "button-text": "Räumliche Abdeckung hinzufügen",
160
+ size: "medium",
161
+ variant: "tertiary",
162
+ "icon-start": "plus",
163
+ disabled: !w.value,
164
+ onClick: A
165
+ }, null, 8, ["disabled"])
166
+ ])) : b("", !0)
167
+ ]));
168
+ }
169
+ });
170
+ export {
171
+ ee as default
172
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./SpatialPage.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e751c47f"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as r, computed as u, createElementBlock as p, openBlock as c, createElementVNode as l, toDisplayString as m, createVNode as f } from "vue";
2
+ import { useFormValues as g } from "../composables/useDpiFormValues.js";
3
+ import v from "./Spatial.vue.js";
4
+ import { useEditModeInfo as h } from "../composables/useDpiEditMode.js";
5
+ const V = { class: "dpiV3InnerComponentWrap" }, z = { class: "dropdown-container" }, I = /* @__PURE__ */ r({
6
+ __name: "SpatialPage",
7
+ props: {
8
+ context: Object
9
+ },
10
+ setup(A) {
11
+ var d;
12
+ const { isEditMode: o } = h(), { formValues: i } = g();
13
+ o.value || (i.value.Additionals || (i.value.Additionals = {}), (d = i.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
14
+ { isValid: !0 }
15
+ ])), o.value || (i.value.Covering["dcatde:politicalGeocodingURI"] = [
16
+ { isValid: !0 }
17
+ ]);
18
+ const s = u({
19
+ 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"])) || [];
22
+ },
23
+ set(t) {
24
+ i.value.Additionals || (i.value.Additionals = {}), i.value.Additionals["dct:spatial"] = [
25
+ ...t.map((e) => ({ "@id": e }))
26
+ ];
27
+ }
28
+ });
29
+ return (t, e) => (c(), p("div", V, [
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", null, m(s.value), 1),
33
+ l("div", z, [
34
+ f(v, {
35
+ modelValue: s.value,
36
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => s.value = n)
37
+ }, null, 8, ["modelValue"])
38
+ ])
39
+ ]));
40
+ }
41
+ });
42
+ export {
43
+ I as default
44
+ };
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-683dbe00"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3084d41e"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -62,7 +62,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
62
62
  async function z() {
63
63
  !t || !await b() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
64
64
  }
65
- const L = I(() => t == null ? void 0 : t.isLast.value);
65
+ const L = I(() => t ? t == null ? void 0 : t.isLast.value : !0);
66
66
  return (e, n) => (o(), r("div", {
67
67
  class: $([e.classList, "step-actions-container"])
68
68
  }, [
@@ -146,7 +146,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
146
146
  })
147
147
  ]),
148
148
  title: g(() => n[2] || (n[2] = [
149
- m("p", null, "Bitte korrigieren Sie die folgenden Fehler", -1)
149
+ m("p", null, "Fehler", -1)
150
150
  ])),
151
151
  default: g(() => [
152
152
  e.showDetailedErrorSummary ? (o(), r("ul", te, [
@@ -1,29 +1,36 @@
1
- import { defineComponent as C, computed as E, createBlock as y, openBlock as a, unref as o, isRef as $, withCtx as m, createElementBlock as h, createCommentVNode as i, createElementVNode as t, toDisplayString as B, createVNode as b } from "vue";
2
- import N from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
1
+ import { defineComponent as x, computed as E, createBlock as y, openBlock as i, unref as o, isRef as B, withCtx as m, createElementBlock as h, createCommentVNode as l, createElementVNode as t, toDisplayString as C, createVNode as N, renderSlot as b, createTextVNode as R } from "vue";
2
+ import { useRouter as S, useRoute as w } from "vue-router";
3
+ import { useRuntimeEnv as F } from "../../composables/useRuntimeEnv.js";
4
+ import { useErrorDialog as T } from "../composables/useErrorDialog.js";
3
5
  import g from "../HappyFlowComponents/ui/ButtonV3.vue.js";
4
- import { useErrorDialog as R } from "../composables/useErrorDialog.js";
5
- import { useRouter as T, useRoute as F } from "vue-router";
6
- import { useRuntimeEnv as S } from "../../composables/useRuntimeEnv.js";
7
- const q = {
6
+ import q from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
7
+ const M = { class: "dpiV3_modalTitle" }, z = {
8
8
  key: 0,
9
9
  class: "dpiV3_modalErrorContent"
10
- }, M = { class: "dpiV3_modalErrorMain" }, w = {
10
+ }, A = { class: "dpiV3_modalErrorMain" }, J = {
11
11
  key: 0,
12
12
  class: "error-message"
13
- }, z = { class: "development-notice" }, A = ["value"], J = { class: "dpiV3_modalActions" }, K = /* @__PURE__ */ C({
13
+ }, O = { class: "development-notice" }, L = ["value"], U = { class: "dpiV3_modalActions" }, W = /* @__PURE__ */ x({
14
14
  __name: "TheErrorDialog",
15
- setup(O) {
16
- const k = T(), l = F(), { open: r, error: n, currentError: u, userMessage: c } = R(), p = S(), f = !0, V = () => {
15
+ setup(j) {
16
+ const k = S(), d = w(), { open: r, error: n, currentError: u, userMessage: c } = T(), p = F(), f = !0;
17
+ function V() {
17
18
  r.value = !1;
18
- }, D = () => {
19
+ }
20
+ function D() {
19
21
  k.push("/");
20
- }, x = E(() => {
21
- var d, e, s, _, v;
22
- return `${(d = u == null ? void 0 : u.value) == null ? void 0 : d.message}
22
+ }
23
+ const $ = E(() => {
24
+ var s, e, a, _, v;
25
+ return `${(s = u == null ? void 0 : u.value) == null ? void 0 : s.message}
23
26
 
24
27
  ----
25
28
 
26
- id = ${(e = l.query) == null ? void 0 : e.id}; fromDraft = ${(s = l.query) == null ? void 0 : s.fromDraft}; edit = ${(_ = l.query) == null ? void 0 : _.edit}
29
+ ${window.location}
30
+
31
+ ----
32
+
33
+ id = ${(e = d.query) == null ? void 0 : e.id}; fromDraft = ${(a = d.query) == null ? void 0 : a.fromDraft}; edit = ${(_ = d.query) == null ? void 0 : _.edit}
27
34
 
28
35
  ----
29
36
 
@@ -39,52 +46,56 @@ ${JSON.stringify(p.authentication.keycloak, null, 2)}
39
46
 
40
47
  `;
41
48
  });
42
- return (d, e) => (a(), y(N, {
43
- persistent: !o(f),
49
+ return (s, e) => (i(), y(q, {
44
50
  modelValue: o(r),
45
- "onUpdate:modelValue": e[0] || (e[0] = (s) => $(r) ? r.value = s : null),
46
- onClose: "() => {}"
51
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => B(r) ? r.value = a : null),
52
+ persistent: !o(f),
53
+ "on-close": "() => {}"
47
54
  }, {
48
- header: m(() => e[1] || (e[1] = [
49
- t("h2", { class: "dpiV3_modalTitle" }, [
50
- t("strong", null, "Fehler beim Laden des Datensatzes")
51
- ], -1)
52
- ])),
55
+ header: m(() => [
56
+ t("h2", M, [
57
+ t("strong", null, [
58
+ b(s.$slots, "title", {}, () => [
59
+ e[1] || (e[1] = R("Fehler beim Laden des Datensatzes", -1))
60
+ ])
61
+ ])
62
+ ])
63
+ ]),
53
64
  footer: m(() => [
54
- t("div", J, [
55
- o(f) ? (a(), y(g, {
65
+ t("div", U, [
66
+ o(f) ? (i(), y(g, {
56
67
  key: 0,
57
- onClick: V,
58
- buttonText: "Trotzdem Fortfahren",
59
- variant: "secondary"
60
- })) : i("", !0),
61
- b(g, {
62
- onClick: D,
63
- buttonText: "Schließen",
64
- variant: "primary"
68
+ "button-text": "Trotzdem Fortfahren",
69
+ variant: "secondary",
70
+ onClick: V
71
+ })) : l("", !0),
72
+ N(g, {
73
+ "button-text": "Schließen",
74
+ variant: "primary",
75
+ onClick: D
65
76
  })
66
77
  ])
67
78
  ]),
68
79
  default: m(() => [
69
- o(n) ? (a(), h("div", q, [
70
- t("div", M, [
71
- o(c) ? (a(), h("p", w, B(o(c)), 1)) : i("", !0),
72
- e[2] || (e[2] = t("p", { class: "error-message" }, "Ein Fehler ist aufgetreten. Die folgenden Details können den Betreibenden bei der Fehleranalyse helfen.", -1)),
73
- t("div", z, [
80
+ o(n) ? (i(), h("div", z, [
81
+ t("div", A, [
82
+ o(c) ? (i(), h("p", J, C(o(c)), 1)) : l("", !0),
83
+ e[2] || (e[2] = t("p", { class: "error-message" }, " Ein Fehler ist aufgetreten. Die folgenden Details können den Betreibenden bei der Fehleranalyse helfen. ", -1)),
84
+ t("div", O, [
74
85
  t("textarea", {
75
86
  readonly: "",
76
87
  class: "error-textarea",
77
- value: x.value
78
- }, null, 8, A)
88
+ value: $.value
89
+ }, null, 8, L)
79
90
  ])
80
91
  ]),
81
- i("", !0)
82
- ])) : i("", !0)
92
+ l("", !0)
93
+ ])) : l("", !0)
83
94
  ]),
84
- _: 1
85
- }, 8, ["persistent", "modelValue"]));
95
+ _: 3
96
+ }, 8, ["modelValue", "persistent"]));
86
97
  }
87
98
  });
88
99
  export {
89
- K as default
100
+ W as default
90
101
  };
@@ -1,10 +1,10 @@
1
1
  import { pipe as A } from "effect";
2
2
  import * as d from "effect/Option";
3
- import * as H from "jsonld";
3
+ import * as F from "jsonld";
4
4
  import { schemaProject as q } from "../../schema/projectLdSchema.js";
5
- import { getFirstItem as x, extractStringValue as t, extractLocalizedString as N } from "../useDpiSimpleLoader.js";
5
+ import { getFirstItem as G, extractStringValue as t, extractLocalizedString as N } from "../useDpiSimpleLoader.js";
6
6
  import { isNonNullable as m } from "./encodeProject.js";
7
- import { PREFIXES as U, nonEmpty as k } from "./shared.js";
7
+ import { PREFIXES as H, nonEmpty as k } from "./shared.js";
8
8
  function z(r) {
9
9
  const a = (r || "").trim();
10
10
  if (!a)
@@ -18,23 +18,23 @@ function z(r) {
18
18
  }
19
19
  async function C(r) {
20
20
  const a = {
21
- "@context": U,
21
+ "@context": H,
22
22
  "@type": "schema:Project"
23
- }, s = await H.frame(r, a, {
23
+ }, s = await F.frame(r, a, {
24
24
  embed: "@always",
25
25
  omitGraph: !0
26
- }), n = await H.compact(s, U, {
26
+ }), n = await F.compact(s, H, {
27
27
  compactArrays: !1,
28
28
  graph: !1
29
- }), l = q.safeParse(x(n == null ? void 0 : n["@graph"]));
29
+ }), l = q.safeParse(G(n == null ? void 0 : n["@graph"]));
30
30
  if (!l.success)
31
31
  throw new Error(`Failed to parse project
32
32
 
33
33
  ${l.error.message}`);
34
34
  return l.data;
35
35
  }
36
- function G(r) {
37
- return k(x(r["@id"]));
36
+ function U(r) {
37
+ return k(G(r["@id"]));
38
38
  }
39
39
  function K(r, a) {
40
40
  var n, l;
@@ -44,10 +44,10 @@ function K(r, a) {
44
44
  visibility: s
45
45
  },
46
46
  "Auffindbarkeit/Kategorien": {
47
- categories: ((n = r["dcat:theme"]) == null ? void 0 : n.map(G).filter(m)) || []
47
+ categories: ((n = r["dcat:theme"]) == null ? void 0 : n.map(U).filter(m)) || []
48
48
  },
49
49
  "Auffindbarkeit/Anwendungsbereiche": {
50
- applications: ((l = r["schema:application"]) == null ? void 0 : l.map(G).filter(m)) || []
50
+ applications: ((l = r["schema:application"]) == null ? void 0 : l.filter(m)) || []
51
51
  }
52
52
  };
53
53
  }
@@ -81,7 +81,7 @@ function V(r) {
81
81
  )
82
82
  },
83
83
  "Grundlegende Informationen/Organisation": {
84
- contact: x(a || []) || {
84
+ contact: G(a || []) || {
85
85
  name: "",
86
86
  mail: "",
87
87
  phone: ""
@@ -216,19 +216,19 @@ function L(r) {
216
216
  selected: P
217
217
  });
218
218
  const p = f.filter((e) => t(e["@type"]) === "ssn:System").map((e) => {
219
- const u = e["ssn:deployedSystem"], g = z(t(e["dct:identifier"]) || ""), y = u && typeof u == "object" ? z(t(u["@id"]) || u["@id"]) : "", W = g || y, M = N(e["dct:description"], "de") || void 0, E = (e["ssn:forProperty"] || []).map((o) => t(o)).filter(m), T = (e["sosa:hasLocation"] || []).map((o) => ({ lat: t(o["geo:lat"]) || "", lng: t(o["geo:long"]) || "" })).filter((o) => o.lat.length > 0 && o.lng.length > 0), B = (e["foaf:depiction"] || []).map((o) => G(o)).filter(m), O = (e["dct:references"] || []).filter((o) => t(o["dct:type"]) === "documentation").map((o) => ({
219
+ const u = e["ssn:deployedSystem"], g = z(t(e["dct:identifier"]) || ""), y = u && typeof u == "object" ? z(t(u["@id"]) || u["@id"]) : "", W = g || y, x = N(e["dct:description"], "de") || void 0, M = (e["ssn:forProperty"] || []).map((o) => t(o)).filter(m), E = (e["sosa:hasLocation"] || []).map((o) => ({ lat: t(o["geo:lat"]) || "", lng: t(o["geo:long"]) || "" })).filter((o) => o.lat.length > 0 && o.lng.length > 0), T = (e["foaf:depiction"] || []).map((o) => U(o)).filter(m), B = (e["dct:references"] || []).filter((o) => t(o["dct:type"]) === "documentation").map((o) => ({
220
220
  name: t(o["dct:title"]) || "",
221
221
  url: t(o["schema:url"]) || "",
222
222
  description: t(o["dct:description"]) || void 0
223
- })).filter((o) => o.url.length > 0), F = (e["ssn-system:hasSystemCapability"] || []).map((o) => t(o)).filter(m);
223
+ })).filter((o) => o.url.length > 0), O = (e["ssn-system:hasSystemCapability"] || []).map((o) => t(o)).filter(m);
224
224
  return {
225
225
  id: W,
226
- ...M ? { description: M } : {},
227
- ...E.length > 0 ? { forProperty: E } : {},
228
- ...T.length > 0 ? { locations: T } : {},
229
- ...B.length > 0 ? { depictions: B } : {},
230
- ...O.length > 0 ? { references: O } : {},
231
- ...F.length > 0 ? { functionalities: F } : {},
226
+ ...x ? { description: x } : {},
227
+ ...M.length > 0 ? { forProperty: M } : {},
228
+ ...E.length > 0 ? { locations: E } : {},
229
+ ...T.length > 0 ? { depictions: T } : {},
230
+ ...B.length > 0 ? { references: B } : {},
231
+ ...O.length > 0 ? { functionalities: O } : {},
232
232
  isHostedBy: [],
233
233
  hosts: []
234
234
  };