@piveau/dpi 0.2.0-alpha.46 → 0.2.0-alpha.48

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 (56) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +38 -30
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  34. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +49 -49
  35. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
  36. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
  38. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
  39. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +2 -2
  40. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue2.js +61 -54
  41. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
  42. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
  43. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
  44. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
  45. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
  46. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  47. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +2 -1
  48. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
  49. package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue.js +26 -0
  50. package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue2.js +4 -0
  51. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
  52. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
  53. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
  54. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
  55. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
  56. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
- import { defineComponent as R, mergeModels as C, useModel as H, unref as l, watch as P, ref as J, computed as b, createElementBlock as S, openBlock as d, createElementVNode as o, createCommentVNode as g, createVNode as a, Fragment as D, mergeProps as Q, isRef as W, withCtx as X, createBlock as Y } from "vue";
1
+ import { defineComponent as R, mergeModels as P, useModel as H, unref as r, watch as D, ref as J, computed as b, createElementBlock as h, openBlock as d, createElementVNode as o, createCommentVNode as g, createVNode as a, Fragment as W, mergeProps as Q, isRef as I, withCtx as X, createBlock as Y } from "vue";
2
2
  import { toTypedSchema as ee } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
3
  import { useForm as ne, useFieldArray as te } from "vee-validate";
4
4
  import * as i from "zod";
5
5
  import { useTwinbyUser as oe } from "../../../composables/useTwinbyUser.js";
6
6
  import ie from "../Autocomplete/AutocompleteVocab.vue.js";
7
- import h from "../ButtonV3.vue.js";
7
+ import S from "../ButtonV3.vue.js";
8
8
  import se from "./FunctionalityForm.vue.js";
9
9
  import re from "./RichOption.vue.js";
10
10
  const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "step-section" }, ue = { class: "step-section-actions" }, ce = ["href"], me = { class: "step-section" }, de = { class: "step-section-actions" }, fe = {
@@ -12,7 +12,7 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
12
12
  class: "button-row"
13
13
  }, Be = /* @__PURE__ */ R({
14
14
  __name: "SoftwareForm",
15
- props: /* @__PURE__ */ C({
15
+ props: /* @__PURE__ */ P({
16
16
  modelValue: {},
17
17
  functionalities: {},
18
18
  exclude: { default: () => [] }
@@ -22,53 +22,53 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
22
22
  },
23
23
  modelModifiers: {}
24
24
  }),
25
- emits: /* @__PURE__ */ C(["submit", "patch", "close"], ["update:modelValue"]),
26
- setup(V, { emit: I }) {
27
- const u = V, w = I, M = H(V, "modelValue"), c = !!u.modelValue, E = l(u.modelValue) || "", L = i.object({
25
+ emits: /* @__PURE__ */ P(["submit", "patch", "close"], ["update:modelValue"]),
26
+ setup(k, { emit: M }) {
27
+ const u = k, w = M, E = H(k, "modelValue"), c = !!u.modelValue, L = r(u.modelValue) || "", T = i.object({
28
28
  lat: i.string().min(1, "Geben Sie einen Wert für die Breite ein"),
29
29
  lng: i.string().min(1, "Geben Sie einen Wert für die Länge ein")
30
- }), T = i.array(L), U = i.object({
30
+ }), U = i.array(T), j = i.object({
31
31
  id: i.string(),
32
32
  functionalities: i.array(i.string()).min(1),
33
- locations: T
33
+ locations: U
34
34
  }), {
35
- defineField: k,
36
- handleSubmit: j,
37
- resetForm: N,
35
+ defineField: V,
36
+ handleSubmit: N,
37
+ resetForm: Z,
38
38
  errors: pe
39
39
  } = ne({
40
- validationSchema: ee(U),
40
+ validationSchema: ee(j),
41
41
  initialValues: {
42
42
  id: u.modelValue || "",
43
43
  functionalities: u.functionalities || [],
44
44
  locations: []
45
45
  },
46
46
  name: "softwareForm"
47
- }), [r, Z] = k("id"), [s] = k("functionalities"), {
47
+ }), [l, _] = V("id"), [s] = V("functionalities"), {
48
48
  remove: be,
49
- push: Se,
50
- fields: he
49
+ push: he,
50
+ fields: Se
51
51
  } = te("locations");
52
- P(r, (t) => {
53
- M.value = t || "";
52
+ D(l, (t) => {
53
+ E.value = t || "";
54
54
  }, { immediate: !0 });
55
55
  const y = J(null);
56
- function _(t) {
56
+ function $(t) {
57
57
  y.value = t;
58
58
  }
59
- const v = b(() => !!r.value), F = b(() => {
59
+ const v = b(() => !!l.value), F = b(() => {
60
60
  var t;
61
61
  return (((t = s.value) == null ? void 0 : t.length) ?? 0) > 0;
62
- }), $ = b(() => {
62
+ }), q = b(() => {
63
63
  var t;
64
64
  return ((t = y.value) == null ? void 0 : t.functionalities) ?? [];
65
65
  });
66
- P(r, (t, n) => {
66
+ D(l, (t, n) => {
67
67
  !!n && !!t && t !== n && (s.value = []);
68
68
  });
69
- const z = j((t) => {
69
+ const z = N((t) => {
70
70
  c ? w("patch", {
71
- id: E,
71
+ id: L,
72
72
  software: {
73
73
  id: t.id,
74
74
  functionalities: Array.from(s.value || []).filter(Boolean)
@@ -76,9 +76,9 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
76
76
  }) : w("submit", {
77
77
  id: t.id,
78
78
  functionalities: Array.from(s.value || []).filter(Boolean)
79
- }), N();
79
+ }), Z();
80
80
  });
81
- function q(t) {
81
+ function G(t) {
82
82
  return [
83
83
  ...t,
84
84
  {
@@ -90,36 +90,37 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
90
90
  }
91
91
  ];
92
92
  }
93
- const { authToken: G, username: K } = oe(), O = b(() => `https://form.typeform.com/to/r9b1mAZL#token=${G.value}&account=${K.value}`);
94
- return (t, n) => (d(), S("div", le, [
93
+ const { authToken: B, username: K } = oe(), O = b(() => `https://form.typeform.com/to/r9b1mAZL#token=${B.value}&account=${K.value}`);
94
+ return (t, n) => (d(), h("div", le, [
95
95
  o("section", ae, [
96
- c ? g("", !0) : (d(), S(D, { key: 0 }, [
96
+ c ? g("", !0) : (d(), h(W, { key: 0 }, [
97
97
  n[4] || (n[4] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
98
98
  n[5] || (n[5] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
99
99
  ], 64)),
100
100
  a(ie, Q({
101
- modelValue: l(r),
102
- "onUpdate:modelValue": n[0] || (n[0] = (e) => W(r) ? r.value = e : null)
103
- }, l(Z), {
101
+ modelValue: r(l),
102
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => I(l) ? l.value = e : null)
103
+ }, r(_), {
104
104
  "base-url": "https://twin.bydata.de/api/hub/search",
105
105
  resource: "software",
106
106
  label: c ? "Software auswählen" : "",
107
107
  placeholder: "Wählen Sie eine Software.",
108
108
  name: "software",
109
109
  "setup-fn": (e) => {
110
- var m, f, p, B, x, A;
110
+ var m, f, p, x, A, C;
111
111
  return {
112
112
  id: e == null ? void 0 : e.id,
113
113
  name: ((m = e == null ? void 0 : e.name) == null ? void 0 : m.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
114
114
  functionalities: (e == null ? void 0 : e.functionalities) || [],
115
115
  unavailable: u.exclude.includes(e == null ? void 0 : e.id),
116
- manufacturer: (B = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : B.label,
117
- description: ((x = e == null ? void 0 : e.description) == null ? void 0 : x.de) || ((A = e == null ? void 0 : e.description) == null ? void 0 : A.en),
116
+ manufacturer: (x = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : x.label,
117
+ description: ((A = e == null ? void 0 : e.description) == null ? void 0 : A.de) || ((C = e == null ? void 0 : e.description) == null ? void 0 : C.en),
118
118
  version: e == null ? void 0 : e.version
119
119
  };
120
120
  },
121
- "post-process-fn": q,
122
- onSelect: _
121
+ "post-process-fn": G,
122
+ "auth-token": r(B),
123
+ onSelect: $
123
124
  }), {
124
125
  option: X(({ option: e, active: m, selected: f, disabled: p }) => [
125
126
  a(re, {
@@ -132,8 +133,8 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
132
133
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
133
134
  ]),
134
135
  _: 1
135
- }, 16, ["modelValue", "label", "setup-fn"]),
136
- c ? g("", !0) : (d(), S(D, { key: 1 }, [
136
+ }, 16, ["modelValue", "label", "setup-fn", "auth-token"]),
137
+ c ? g("", !0) : (d(), h(W, { key: 1 }, [
137
138
  n[6] || (n[6] = o("h5", null, "oder", -1)),
138
139
  n[7] || (n[7] = o("p", null, " Sollte die verwendete Software noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
139
140
  o("div", ue, [
@@ -141,7 +142,7 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
141
142
  href: O.value,
142
143
  target: "_blank"
143
144
  }, [
144
- a(h, {
145
+ a(S, {
145
146
  "button-text": "Zur Softwarebeantragung",
146
147
  size: "medium",
147
148
  variant: "secondary"
@@ -154,31 +155,31 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
154
155
  n[8] || (n[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
155
156
  n[9] || (n[9] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
156
157
  a(se, {
157
- modelValue: l(s),
158
- "onUpdate:modelValue": n[1] || (n[1] = (e) => W(s) ? s.value = e : null),
159
- options: $.value,
158
+ modelValue: r(s),
159
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => I(s) ? s.value = e : null),
160
+ options: q.value,
160
161
  disabled: !v.value
161
162
  }, null, 8, ["modelValue", "options", "disabled"])
162
163
  ]),
163
164
  g("", !0),
164
165
  o("section", de, [
165
- c ? (d(), S("div", fe, [
166
- a(h, {
166
+ c ? (d(), h("div", fe, [
167
+ a(S, {
167
168
  "button-text": "Abbrechen",
168
169
  variant: "tertiary",
169
170
  onClick: n[3] || (n[3] = (e) => w("close"))
170
171
  }),
171
- a(h, {
172
+ a(S, {
172
173
  "button-text": "Speichern",
173
174
  disabled: !v.value || !F.value,
174
- onClick: l(z)
175
+ onClick: r(z)
175
176
  }, null, 8, ["disabled", "onClick"])
176
- ])) : (d(), Y(h, {
177
+ ])) : (d(), Y(S, {
177
178
  key: 1,
178
179
  "icon-start": "PlusSquare",
179
180
  "button-text": "Software hinzufügen",
180
181
  disabled: !v.value || !F.value,
181
- onClick: l(z)
182
+ onClick: r(z)
182
183
  }, null, 8, ["disabled", "onClick"]))
183
184
  ])
184
185
  ]));
@@ -1,28 +1,28 @@
1
- import { ref as g, computed as k, resolveComponent as y, createElementBlock as f, openBlock as o, createElementVNode as m, createBlock as S, createCommentVNode as d, toDisplayString as P, createVNode as s, withCtx as V, unref as M, Fragment as Z, renderList as G } from "vue";
2
- import { useI18n as Q } from "vue-i18n";
3
- import { PhWarning as X } from "@phosphor-icons/vue";
4
- import Y from "./CrossOutButton.vue.js";
5
- import z from "./ButtonV3.vue.js";
6
- import ee from "./SectionItems/FindabilityChips.vue.js";
7
- import te from "./SectionItems/HVDSwitch.vue.js";
8
- import ae from "./SectionItems/EssentialsModal.vue.js";
9
- import ie from "./SectionItems/DistributionModal.vue.js";
10
- import oe from "./SectionItems/CoverageModal.vue.js";
11
- import ne from "./SectionItems/AdditionalsModal.vue.js";
1
+ import { ref as f, computed as k, resolveComponent as S, createElementBlock as m, openBlock as o, createElementVNode as p, createBlock as V, createCommentVNode as u, toDisplayString as R, createVNode as s, withCtx as x, unref as B, Fragment as Q, renderList as X } from "vue";
2
+ import { useI18n as Y } from "vue-i18n";
3
+ import { PhWarning as ee } from "@phosphor-icons/vue";
4
+ import te from "./CrossOutButton.vue.js";
5
+ import O from "./ButtonV3.vue.js";
6
+ import ae from "./SectionItems/FindabilityChips.vue.js";
7
+ import ie from "./SectionItems/HVDSwitch.vue.js";
8
+ import oe from "./SectionItems/EssentialsModal.vue.js";
9
+ import ne from "./SectionItems/DistributionModal.vue.js";
10
+ import le from "./SectionItems/CoverageModal.vue.js";
11
+ import se from "./SectionItems/AdditionalsModal.vue.js";
12
12
  import "@formkit/core";
13
- import { useFormValues as se } from "../../composables/useDpiFormValues.js";
13
+ import { useFormValues as ce } from "../../composables/useDpiFormValues.js";
14
14
  /* empty css */
15
- import le from "../../../../../../_virtual/_plugin-vue_export-helper.js";
16
- const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOuter" }, de = { class: "dpiV3_RapModalInner" }, ue = { class: "dpiV3_modalHead" }, ve = {
15
+ import re from "../../../../../../_virtual/_plugin-vue_export-helper.js";
16
+ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOuter" }, ve = { class: "dpiV3_RapModalInner" }, fe = { class: "dpiV3_modalHead" }, me = {
17
17
  key: 0,
18
18
  class: "headline"
19
- }, fe = { class: "dpiV3_closeButtonContainer" }, me = { class: "dpiV3_modalBody" }, pe = { key: 0 }, _e = {
19
+ }, pe = { class: "dpiV3_closeButtonContainer" }, _e = { class: "dpiV3_modalBody" }, he = { key: 0 }, ge = {
20
20
  key: 2,
21
21
  id: "essentials"
22
- }, ge = {
22
+ }, be = {
23
23
  key: 6,
24
24
  class: "dpiV3_errormsgWrapper"
25
- }, he = { class: "validation-messages" }, be = { class: "dpiV3_actionButtonWrap" }, ye = {
25
+ }, ye = { class: "validation-messages" }, Se = { class: "dpiV3_actionButtonWrap" }, Ve = {
26
26
  __name: "RapModal",
27
27
  props: {
28
28
  isVisible: {
@@ -33,10 +33,10 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
33
33
  activeSection: String
34
34
  },
35
35
  emits: ["close"],
36
- setup(u, { emit: O }) {
37
- const { t: $ } = Q(), t = u;
38
- let C = g();
39
- const { formValues: h } = se(), R = O, A = g(null), p = g(null), b = g(null), l = g(!1), L = {
36
+ setup(d, { emit: L }) {
37
+ const { t: $ } = Y(), a = d;
38
+ let C = f();
39
+ const { formValues: h } = ce(), w = L, D = f(null), g = f(null), b = f(null), n = f(!1), y = f(null), J = {
40
40
  findabilityHvd: "message.dataupload.datasets.rap.findability.title",
41
41
  essentials: "message.dataupload.datasets.rap.essentials.title",
42
42
  coverage: "message.dataupload.datasets.rap.coverage.title",
@@ -44,165 +44,170 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
44
44
  additionals: "message.metadata.additionals"
45
45
  };
46
46
  console.log(h.value);
47
- const w = k(() => {
48
- const e = L[t.activeSection];
47
+ const I = k(() => {
48
+ const e = J[a.activeSection];
49
49
  return e ? $(e) : "";
50
50
  }), E = k(() => {
51
51
  var i, r;
52
52
  const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
53
53
  return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
54
- }), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => t.activeSection === "findabilityHvd" ? D() : t.activeSection === "essentials" ? J() : t.activeSection === "coverage" ? K() : (l.value = !1, !0), F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
55
- I() && T();
56
- }, T = () => {
57
- l.value = !1, R("close");
58
- }, c = k(() => h.value.BasicInfos), N = (e, a) => {
54
+ }), K = () => a.activeSection === "findabilityHvd" && !E.value ? (n.value = !0, !1) : (n.value = !1, !0), F = () => a.activeSection === "distributions" && (console.log(y.value && !y.value.isValid), y.value && !y.value.isValid) ? (n.value = !0, !1) : (n.value = !1, !0), j = () => a.activeSection === "essentials" && g.value && !g.value.isValid ? (n.value = !0, !1) : (n.value = !1, !0), q = () => a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (n.value = !0, !1) : (n.value = !1, !0), H = () => a.activeSection === "findabilityHvd" ? K() : a.activeSection === "essentials" ? j() : a.activeSection === "coverage" ? q() : a.activeSection === "distributions" ? (console.log("hey" + F()), F()) : (n.value = !1, !0), T = k(() => a.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : a.activeSection === "essentials" && g.value && !g.value.isValid ? ["Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren."] : a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), N = () => {
55
+ H() && W();
56
+ }, W = () => {
57
+ n.value = !1, w("close");
58
+ }, c = k(() => h.value.BasicInfos), z = (e, t) => {
59
59
  var i;
60
- return ((i = e == null ? void 0 : e.find((r) => r["@language"] === a)) == null ? void 0 : i["@value"]) || "";
61
- }, _ = (e, a) => {
60
+ return ((i = e == null ? void 0 : e.find((r) => r["@language"] === t)) == null ? void 0 : i["@value"]) || "";
61
+ }, _ = (e, t) => {
62
62
  var i;
63
- return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[a]) || "";
64
- }, j = (e) => {
65
- var a;
66
- return ((a = e == null ? void 0 : e[0]) == null ? void 0 : a["@value"]) || "";
67
- }, n = g({
68
- title: N(c.value["dct:title"], "de"),
69
- description: N(c.value["dct:description"], "de"),
70
- modified: j(c.value["dct:modified"]),
63
+ return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[t]) || "";
64
+ }, U = (e) => {
65
+ var t;
66
+ return ((t = e == null ? void 0 : e[0]) == null ? void 0 : t["@value"]) || "";
67
+ }, l = f({
68
+ title: z(c.value["dct:title"], "de"),
69
+ description: z(c.value["dct:description"], "de"),
70
+ modified: U(c.value["dct:modified"]),
71
71
  publisherName: _(c.value["dct:publisher"], "foaf:name"),
72
72
  publisherMail: _(c.value["dct:publisher"], "foaf:mbox"),
73
73
  publisherWebsite: _(c.value["dct:publisher"], "foaf:homepage"),
74
74
  contactPointName: _(c.value["dcat:contactPoint"], "vcard:fn"),
75
75
  contactPointMail: _(c.value["dcat:contactPoint"], "vcard:hasEmail"),
76
76
  contactPointPhone: _(c.value["dcat:contactPoint"], "vcard:hasTelephone")
77
- }), W = (e, a, i, r) => {
78
- e[a] || (e[a] = []);
79
- const v = e[a].find((B) => B["@language"] === r);
80
- v ? v["@value"] = i : e[a].push({ "@value": i, "@language": r });
81
- }, q = () => {
82
- if (!I())
83
- return;
84
- const e = JSON.parse(JSON.stringify(h.value.BasicInfos));
85
- W(e, "dct:title", n.value.title, "de"), W(e, "dct:description", n.value.description, "de"), e["dct:publisher"] = [{
86
- "foaf:name": n.value.publisherName,
87
- "foaf:mbox": n.value.publisherMail,
88
- "foaf:homepage": n.value.publisherWebsite
89
- }], e["dcat:contactPoint"] = [{
90
- "vcard:fn": n.value.contactPointName,
91
- "vcard:hasEmail": n.value.contactPointMail,
92
- "vcard:hasTelephone": n.value.contactPointPhone
93
- }], e["dct:modified"] = [{ "@value": n.value.modified }], h.value.BasicInfos = e, R("close");
77
+ }), A = (e, t, i, r) => {
78
+ e[t] || (e[t] = []);
79
+ const v = e[t].find((P) => P["@language"] === r);
80
+ v ? v["@value"] = i : e[t].push({ "@value": i, "@language": r });
81
+ }, Z = () => {
82
+ if (H()) {
83
+ if (a.activeSection === "essentials") {
84
+ const e = h.value.BasicInfos || {}, t = JSON.parse(JSON.stringify(e));
85
+ A(t, "dct:title", l.value.title, "de"), A(t, "dct:description", l.value.description, "de"), t["dct:publisher"] = [{
86
+ "foaf:name": l.value.publisherName,
87
+ "foaf:mbox": l.value.publisherMail,
88
+ "foaf:homepage": l.value.publisherWebsite
89
+ }], t["dcat:contactPoint"] = [{
90
+ "vcard:fn": l.value.contactPointName,
91
+ "vcard:hasEmail": l.value.contactPointMail,
92
+ "vcard:hasTelephone": l.value.contactPointPhone
93
+ }], t["dct:modified"] = [{ "@value": l.value.modified }], h.value.BasicInfos = t;
94
+ }
95
+ w("close");
96
+ }
94
97
  };
95
- return (e, a) => {
96
- const i = y("findability"), r = y("coverage"), v = y("distributionRap"), B = y("additionals"), U = y("interaction");
97
- return o(), f("div", ce, [
98
- m("div", re, [
99
- m("div", de, [
100
- m("div", ue, [
101
- w.value ? (o(), f("div", ve, P(w.value), 1)) : d("", !0),
102
- m("div", fe, [
103
- s(Y, {
104
- onClick: H,
98
+ return (e, t) => {
99
+ const i = S("findability"), r = S("coverage"), v = S("distributionRap"), P = S("additionals"), G = S("interaction");
100
+ return o(), m("div", ue, [
101
+ p("div", de, [
102
+ p("div", ve, [
103
+ p("div", fe, [
104
+ I.value ? (o(), m("div", me, R(I.value), 1)) : u("", !0),
105
+ p("div", pe, [
106
+ s(te, {
107
+ onClick: N,
105
108
  class: "dpiV3_closeButton",
106
109
  type: "default"
107
110
  })
108
111
  ])
109
112
  ]),
110
- m("div", me, [
111
- t.activeSection === "findabilityHvd" ? (o(), f("span", pe, P(e.$t("message.metadata.categories")), 1)) : d("", !0),
112
- t.activeSection === "findabilityHvd" ? (o(), S(i, {
113
+ p("div", _e, [
114
+ a.activeSection === "findabilityHvd" ? (o(), m("span", he, R(e.$t("message.metadata.categories")), 1)) : u("", !0),
115
+ a.activeSection === "findabilityHvd" ? (o(), V(i, {
113
116
  key: 1,
114
117
  class: "findability-container"
115
118
  }, {
116
- default: V(() => [
117
- s(ee, {
118
- context: u.context,
119
+ default: x(() => [
120
+ s(ae, {
121
+ context: d.context,
119
122
  ref_key: "findabilityChipsRef",
120
- ref: A
123
+ ref: D
121
124
  }, null, 8, ["context"]),
122
- s(te, { context: u.context }, null, 8, ["context"])
125
+ s(ie, { context: d.context }, null, 8, ["context"])
123
126
  ]),
124
127
  _: 1
125
- })) : d("", !0),
126
- t.activeSection === "essentials" ? (o(), f("div", _e, [
127
- s(ae, {
128
- context: u.context,
129
- newValues: M(C),
130
- modelValue: n.value,
131
- "onUpdate:modelValue": a[0] || (a[0] = (x) => n.value = x),
128
+ })) : u("", !0),
129
+ a.activeSection === "essentials" ? (o(), m("div", ge, [
130
+ s(oe, {
131
+ context: d.context,
132
+ newValues: B(C),
133
+ modelValue: l.value,
134
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => l.value = M),
132
135
  ref_key: "essentialsModalRef",
133
- ref: p
136
+ ref: g
134
137
  }, null, 8, ["context", "newValues", "modelValue"])
135
- ])) : d("", !0),
136
- t.activeSection === "coverage" ? (o(), S(r, { key: 3 }, {
137
- default: V(() => [
138
- s(oe, {
139
- context: u.context,
140
- newValues: M(C),
138
+ ])) : u("", !0),
139
+ a.activeSection === "coverage" ? (o(), V(r, { key: 3 }, {
140
+ default: x(() => [
141
+ s(le, {
142
+ context: d.context,
143
+ newValues: B(C),
141
144
  ref_key: "coverageModalRef",
142
145
  ref: b
143
146
  }, null, 8, ["context", "newValues"])
144
147
  ]),
145
148
  _: 1
146
- })) : d("", !0),
147
- t.activeSection === "distributions" ? (o(), S(v, { key: 4 }, {
148
- default: V(() => [
149
- s(ie, {
150
- context: u.context,
151
- newValues: M(C)
149
+ })) : u("", !0),
150
+ a.activeSection === "distributions" ? (o(), V(v, { key: 4 }, {
151
+ default: x(() => [
152
+ s(ne, {
153
+ context: d.context,
154
+ newValues: B(C),
155
+ ref_key: "distributionModalRef",
156
+ ref: y
152
157
  }, null, 8, ["context", "newValues"])
153
158
  ]),
154
159
  _: 1
155
- })) : d("", !0),
156
- t.activeSection === "additionals" ? (o(), S(B, { key: 5 }, {
157
- default: V(() => [
158
- s(ne, {
159
- context: u.context,
160
- onCloseModal: T
160
+ })) : u("", !0),
161
+ a.activeSection === "additionals" ? (o(), V(P, { key: 5 }, {
162
+ default: x(() => [
163
+ s(se, {
164
+ context: d.context,
165
+ onCloseModal: W
161
166
  }, null, 8, ["context"])
162
167
  ]),
163
168
  _: 1
164
- })) : d("", !0),
165
- l.value && F.value.length > 0 ? (o(), f("div", ge, [
166
- s(M(X), {
169
+ })) : u("", !0),
170
+ n.value && T.value.length > 0 ? (o(), m("div", be, [
171
+ s(B(ee), {
167
172
  size: 16,
168
173
  weight: "fill"
169
174
  }),
170
- m("div", he, [
171
- (o(!0), f(Z, null, G(F.value, (x) => (o(), f("span", {
172
- key: x,
175
+ p("div", ye, [
176
+ (o(!0), m(Q, null, X(T.value, (M) => (o(), m("span", {
177
+ key: M,
173
178
  class: "copy-mini-regular"
174
- }, P(x), 1))), 128))
179
+ }, R(M), 1))), 128))
175
180
  ])
176
- ])) : d("", !0)
181
+ ])) : u("", !0)
177
182
  ])
178
183
  ]),
179
- t.activeSection != "additionals" ? (o(), S(U, {
184
+ a.activeSection != "additionals" ? (o(), V(G, {
180
185
  key: 0,
181
186
  class: "dpiV3_interactionWrap"
182
187
  }, {
183
- default: V(() => [
184
- m("div", be, [
185
- s(z, {
186
- onClick: H,
188
+ default: x(() => [
189
+ p("div", Se, [
190
+ s(O, {
191
+ onClick: N,
187
192
  buttonText: "Zurück",
188
193
  size: "large",
189
194
  iconStart: "CaretLeft",
190
195
  variant: "tertiary"
191
196
  }),
192
- s(z, {
193
- onClick: q,
197
+ s(O, {
198
+ onClick: Z,
194
199
  buttonText: "Speichern",
195
200
  size: "large"
196
201
  })
197
202
  ])
198
203
  ]),
199
204
  _: 1
200
- })) : d("", !0)
205
+ })) : u("", !0)
201
206
  ])
202
207
  ]);
203
208
  };
204
209
  }
205
- }, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-37fe91ab"]]);
210
+ }, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-055b1a66"]]);
206
211
  export {
207
- Ne as default
212
+ ze as default
208
213
  };