@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20

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 (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
  36. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
  38. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
  39. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
  40. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
  41. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
  42. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
  43. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
  44. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
  45. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  46. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
  52. package/package.json +2 -2
@@ -1,104 +1,107 @@
1
- import { computed as ve, toRef as Ze, ref as h, onUnmounted as Qe, onMounted as Xe, getCurrentInstance as Ye, watch as et, createElementBlock as m, openBlock as u, Fragment as he, createElementVNode as f, createBlock as W, createCommentVNode as p, toDisplayString as C, renderList as tt, unref as T, createVNode as r, withDirectives as at, vShow as ot } from "vue";
1
+ import { ref as v, computed as Te, toRef as nt, onUnmounted as dt, onMounted as ct, getCurrentInstance as rt, watch as ut, createElementBlock as m, openBlock as r, Fragment as Q, createElementVNode as f, createBlock as X, createCommentVNode as p, toDisplayString as B, renderList as Ue, unref as U, createVNode as u, withDirectives as mt, vShow as ft } from "vue";
2
2
  import "@formkit/core";
3
- import { PhWarning as j } from "@phosphor-icons/vue";
4
- import { useI18n as it } from "vue-i18n";
5
- import { useStore as st } from "vuex";
6
- import { useEditModeInfo as nt } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as dt } from "../composables/useDpiFormValues.js";
8
- import S from "../config/dcatapdeHappyFlow/page-content-config.js";
9
- import { getFileTypes as lt, getChecksumAlgorithms as ct, getPlannedAvailability as rt, getLanguages as ut } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as ge } from "../HappyFlowComponents/services/eventBus.js";
11
- import H from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import mt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import ye from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import ft from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import pt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import vt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
- import ht from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
- import gt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
- import yt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
- import kt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
- import xt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
- import bt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
- import Dt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
- import J from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
- import _t from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
- import wt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
- import It from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
- import Tt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
- import Vt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
- import U from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
3
+ import { PhWarning as Y } from "@phosphor-icons/vue";
4
+ import { useI18n as pt } from "vue-i18n";
5
+ import { useStore as vt } from "vuex";
6
+ import { useEditModeInfo as ht } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as gt } from "../composables/useDpiFormValues.js";
8
+ import M from "../config/dcatapdeHappyFlow/page-content-config.js";
9
+ import { getLicenses as yt, getFileTypes as kt, getFormatTypes as xt, getChecksumAlgorithms as bt, getPlannedAvailability as wt, getLanguages as Dt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Le } from "../HappyFlowComponents/services/eventBus.js";
11
+ import z from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
+ import _t from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
+ import Z from "../HappyFlowComponents/ui/InputField.vue.js";
14
+ import It from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import Tt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Ut from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import Lt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
+ import Vt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
+ import Rt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
+ import Ct from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
+ import At from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
+ import St from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
+ import Ft from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
+ import ee from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
+ import $t from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
+ import Et from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
+ import Bt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
+ import Mt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
+ import zt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
+ import A from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
31
  /* empty css */
32
- import Lt from "../../../../../_virtual/_plugin-vue_export-helper.js";
33
- const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
32
+ import Pt from "../../../../../_virtual/_plugin-vue_export-helper.js";
33
+ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
34
34
  key: 1,
35
35
  class: "copy-large-regular"
36
- }, Ut = { class: "dpiV3_LinkAndMetadata input-container" }, Ft = {
36
+ }, jt = { class: "dpiV3_LinkAndMetadata input-container" }, Ht = {
37
37
  key: 0,
38
38
  class: "accUrlError"
39
- }, $t = { class: "copy-mini-regular" }, Rt = {
39
+ }, Jt = { class: "copy-mini-regular" }, Kt = {
40
40
  key: 1,
41
41
  class: "validation-error"
42
- }, Et = { class: "copy-mini-regular" }, Mt = {
42
+ }, qt = { class: "copy-mini-regular" }, Gt = {
43
43
  key: 2,
44
44
  class: "dpiV3_DocumentationsInDistr"
45
- }, Bt = { class: "dpiV3_TitleDelete" }, zt = { class: "dpiV3_documentationContents" }, Nt = { class: "dpiV3_Documentation" }, Pt = {
45
+ }, Qt = { class: "dpiV3_TitleDelete" }, Xt = { class: "dpiV3_documentationContents" }, Yt = { class: "dpiV3_Documentation" }, Zt = {
46
46
  key: 3,
47
47
  class: "dpiV3_DocumentationsInDistr"
48
- }, Ot = { class: "dpiV3_TitleDelete" }, Wt = { class: "dpiV3_documentationContents" }, jt = { class: "dpiV3_Documentation" }, Ht = {
49
- key: 4,
50
- class: "dpiV3_modified dpiV3_label"
51
- }, Jt = {
48
+ }, ea = { class: "dpiV3_TitleDelete" }, ta = { class: "dpiV3_documentationContents" }, aa = { class: "dpiV3_Documentation" }, oa = { class: "dpiV3_DocumentationsInDistr" }, sa = { class: "dpiV3_TitleDelete" }, ia = { key: 0 }, la = {
49
+ key: 0,
50
+ class: "dpiV3_tempAddMore"
51
+ }, na = {
52
52
  key: 5,
53
53
  class: "dpiV3_modified dpiV3_label"
54
- }, Kt = { class: "dpiV3_modified dpiV3_label" }, qt = {
54
+ }, da = {
55
55
  key: 6,
56
56
  class: "dpiV3_modified dpiV3_label"
57
- }, Gt = {
57
+ }, ca = { class: "dpiV3_modified dpiV3_label" }, ra = {
58
58
  key: 7,
59
59
  class: "dpiV3_modified dpiV3_label"
60
- }, Zt = {
60
+ }, ua = {
61
61
  key: 8,
62
62
  class: "dpiV3_modified dpiV3_label"
63
- }, Qt = {
63
+ }, ma = {
64
64
  key: 9,
65
65
  class: "dpiV3_modified dpiV3_label"
66
- }, Xt = {
66
+ }, fa = {
67
67
  key: 10,
68
- class: "dpiV3_DocumentationsInDistr"
69
- }, Yt = { class: "dpiV3_TitleDelete" }, ea = {
68
+ class: "dpiV3_modified dpiV3_label"
69
+ }, pa = {
70
70
  key: 11,
71
71
  class: "dpiV3_DocumentationsInDistr"
72
- }, ta = { class: "dpiV3_TitleDelete" }, aa = {
72
+ }, va = { class: "dpiV3_TitleDelete" }, ha = {
73
73
  key: 12,
74
- class: "dpiV3_modified dpiV3_label"
75
- }, oa = {
74
+ class: "dpiV3_DocumentationsInDistr"
75
+ }, ga = { class: "dpiV3_TitleDelete" }, ya = {
76
76
  key: 13,
77
77
  class: "dpiV3_modified dpiV3_label"
78
- }, ia = {
78
+ }, ka = {
79
79
  key: 14,
80
80
  class: "dpiV3_modified dpiV3_label"
81
- }, sa = {
81
+ }, xa = {
82
82
  key: 15,
83
83
  class: "dpiV3_modified dpiV3_label"
84
- }, na = {
84
+ }, ba = {
85
85
  key: 16,
86
86
  class: "dpiV3_modified dpiV3_label"
87
- }, da = {
87
+ }, wa = {
88
88
  key: 17,
89
+ class: "dpiV3_modified dpiV3_label"
90
+ }, Da = {
91
+ key: 18,
89
92
  class: "copy-mini-regular dpiV3_text_error"
90
- }, la = { class: "dpiV3_CTA-Distribution" }, ca = { class: "dpiV3_tempAddMore" }, ra = {
93
+ }, _a = { class: "dpiV3_CTA-Distribution" }, Ia = { class: "dpiV3_tempAddMore" }, Ta = {
91
94
  key: 2,
92
95
  class: "dpiV3_errormsgWrapper"
93
- }, ua = {
96
+ }, Ua = {
94
97
  __name: "DistributionSimplePage",
95
98
  props: {
96
99
  context: Object,
97
100
  inRap: Boolean
98
101
  },
99
- setup(L) {
100
- var me, fe, pe;
101
- const K = L, { isEditMode: q } = nt(), { t: D } = it(), ke = {
102
+ setup(S) {
103
+ var ye, ke, xe;
104
+ const P = S, { isEditMode: te } = ht(), { t: _ } = pt(), L = v(null), Ve = {
102
105
  isValid: "unset",
103
106
  id: 1,
104
107
  "dcat:accessURL": "",
@@ -107,6 +110,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
107
110
  documentations: [],
108
111
  conformsToItems: [],
109
112
  policyItems: [],
113
+ "dcat:downloadURL": [{ "@id": "" }],
110
114
  accessServices: [],
111
115
  "dct:modified": "",
112
116
  "dct:issued": "",
@@ -125,107 +129,134 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
125
129
  "spdx:checksum": "",
126
130
  uri: ""
127
131
  },
128
- changeLicense: {
132
+ "dct:license": {
129
133
  title: "",
130
134
  "dcterms:license": ""
131
135
  }
132
- }, { formValues: _ } = dt(), d = ve(
133
- () => q.value || K.inRap
134
- ).value ? Ze((me = _.value.DistributionSimple) == null ? void 0 : me["dcat:distribution"]) : h([ke]), n = h({}), V = h({}), G = h([]), A = h(!1), F = h(!1), x = h(0), y = h([]), Z = h([]), Q = h([]), X = h([]), $ = h([...y.value]), xe = st(), R = h(null);
135
- h(null);
136
- const E = h(!1), Y = h(!1), ee = h(!1), M = h(!1), te = h(!0);
137
- for (let t = 0; t < d.value.length; t++)
138
- if (((fe = _.value.DistributionSimple["dcat:distribution"][t]) == null ? void 0 : fe.checksum.uri) !== "" || ((pe = _.value.DistributionSimple["dcat:distribution"][t]) == null ? void 0 : pe.checksum.title) !== "") {
139
- Y.value = !0;
136
+ }, { formValues: b } = gt(), l = Te(
137
+ () => te.value || P.inRap
138
+ ).value ? nt((ye = b.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Ve]);
139
+ l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
140
+ const n = v({}), V = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), x = v([]), D = v([]), oe = v([]), O = v([]), se = v([]);
141
+ v([...x.value]);
142
+ const $ = v([...D.value]), Re = vt(), W = v(null);
143
+ v(null);
144
+ const j = v(!1), ie = v(!1), H = v(!1), le = v(!0);
145
+ for (let a = 0; a < l.value.length; a++)
146
+ if (((ke = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((xe = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
147
+ ie.value = !1;
140
148
  break;
141
149
  }
142
- function be() {
143
- G.value = [
150
+ function Ce() {
151
+ ae.value = [
144
152
  {
145
- title: D(
153
+ title: _(
146
154
  "message.dataupload.datasets.dcat:distribution.recommended.title"
147
155
  ),
148
- items: S.distributions.Recommended.map(
149
- (t) => D(
150
- `message.dataupload.datasets.dcat:distribution.recommended.${t}`
151
- ) || t
156
+ items: M.distributions.Recommended.map(
157
+ (a) => _(
158
+ `message.dataupload.datasets.dcat:distribution.recommended.${a}`
159
+ ) || a
152
160
  ),
153
- keys: S.distributions.Recommended
161
+ keys: M.distributions.Recommended
154
162
  },
155
163
  {
156
- title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
157
- items: S.distributions.Advanced.map(
158
- (t) => D(`message.dataupload.datasets.dcat:distribution.advanced.${t}`) || t
164
+ title: _("message.dataupload.datasets.dcat:distribution.advanced.title"),
165
+ items: M.distributions.Advanced.map(
166
+ (a) => _(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
159
167
  ),
160
- keys: S.distributions.Advanced
168
+ keys: M.distributions.Advanced
161
169
  }
162
170
  ];
163
171
  }
164
- function ae(t) {
165
- (t.includes("dcat:distribution") || t.includes("dct:license")) && (te.value || B(), te.value = !1);
172
+ function ne(a) {
173
+ var t, e, o;
174
+ (o = (e = (t = P.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || J(), le.value = !1);
166
175
  }
167
- function B(t) {
168
- let a = !0;
169
- d.value = d.value.map((e) => {
170
- var c, g;
171
- const o = ((c = e["dcat:accessURL"]) == null ? void 0 : c.trim()) !== "", i = ((g = e["dct:format"].label) == null ? void 0 : g.trim()) !== "", s = o && i;
172
- return s || (a = !1), t === e.id ? {
176
+ function J(a) {
177
+ let t = !0;
178
+ l.value = l.value.map((e) => {
179
+ var d;
180
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((d = e["dct:format"]) == null ? void 0 : d.label) != null && e["dct:format"].label.trim() !== "" && x.value.some(
181
+ (g) => g["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
182
+ ), i = o && s;
183
+ return i || (t = !1), a === e.id ? {
173
184
  ...e,
174
- isValid: s,
185
+ isValid: i,
175
186
  showErrorDownloadURL: !1,
176
187
  showErrorFormat: !1
177
188
  } : {
178
189
  ...e,
179
- isValid: s,
190
+ isValid: i,
180
191
  showErrorDownloadURL: !o,
181
- showErrorFormat: !i
192
+ showErrorFormat: !s
182
193
  };
183
- }), !a && d.value.length > 0 && (d.value[0].isValid = !1), t == null && (M.value = !a), _.value.DistributionSimple["dcat:distribution"] = d.value;
194
+ }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), b.value.DistributionSimple["dcat:distribution"] = l.value;
184
195
  }
185
- function z(t, a) {
186
- var o, i, s;
196
+ function E(a, t) {
197
+ var o, s, i;
187
198
  let e = !0;
188
- if (a === "dcat:accessURL")
189
- e = ((o = t[a]) == null ? void 0 : o.trim()) !== "" && (t[a] ? N(t[a]) : !1), e ? (t.showErrorDownloadURL = !1, t.urlErrorMessage = "") : (t.showErrorDownloadURL = !0, ((i = t[a]) == null ? void 0 : i.trim()) === "" ? t.urlErrorMessage = "URL ist erforderlich" : t.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
190
- else if (a === "dct:format") {
191
- const c = (s = t[a].label) == null ? void 0 : s.trim();
192
- e = c !== "", e ? (t.showErrorFormat = !1, t.formatErrorMessage = "") : (t.showErrorFormat = !0, c === "" ? t.formatErrorMessage = "Format ist erforderlich" : t.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
199
+ if (t === "dcat:accessURL")
200
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
201
+ else if (t === "dct:format") {
202
+ const d = (i = a[t].label) == null ? void 0 : i.trim();
203
+ e = d !== "" && D.value.some(
204
+ (g) => g["@value"].toLowerCase() === d.toLowerCase()
205
+ ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, d === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
193
206
  }
194
- De();
207
+ Ae();
195
208
  }
196
- function De() {
197
- let t = !0;
198
- d.value = d.value.map((a) => {
199
- var s, c;
200
- const e = ((s = a["dcat:accessURL"]) == null ? void 0 : s.trim()) !== "" && N(a["dcat:accessURL"]), o = ((c = a["dct:format"].label) == null ? void 0 : c.trim()) !== "" && y.value.some(
209
+ function Ae() {
210
+ let a = !0;
211
+ l.value = l.value.map((t) => {
212
+ var i, d;
213
+ const e = ((i = t["dcat:accessURL"]) == null ? void 0 : i.trim()) !== "" && K(t["dcat:accessURL"]), o = ((d = t["dct:format"].label) == null ? void 0 : d.trim()) !== "" && $.value.some(
201
214
  (g) => {
202
- var v;
203
- return g["@value"].toUpperCase() === ((v = a["dct:format"].label) == null ? void 0 : v.toUpperCase());
215
+ var h;
216
+ return g["@value"].toUpperCase() === ((h = t["dct:format"].label) == null ? void 0 : h.toUpperCase());
204
217
  }
205
- ), i = e && o;
206
- return i || (t = !1), {
207
- ...a,
208
- isValid: i
218
+ ), s = e && o;
219
+ return console.log(s), s || (a = !1), {
220
+ ...t,
221
+ isValid: s
209
222
  };
210
- }), !t && d.value.length > 0 ? d.value[0].isValid = !1 : d.value.length > 0 && (d.value[0].isValid = !0), M.value = !t, _.value.DistributionSimple["dcat:distribution"] = d.value;
223
+ }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, b.value.DistributionSimple["dcat:distribution"] = l.value;
211
224
  }
212
- function N(t) {
213
- return /^(https?:\/\/)?(www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-\w()@:%+.~#?&/=]*)$/.test(t);
225
+ function K(a) {
226
+ return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
214
227
  }
215
- Qe(() => {
216
- ge.off("nextClicked", ae);
217
- }), Xe(async () => {
218
- ge.on("nextClicked", ae);
219
- const t = Ye(), a = t.appContext.app.config.globalProperties.$env;
220
- if (t) {
221
- const e = t.appContext.app.config.globalProperties.$env;
222
- R.value = e.content.dataProviderInterface.specification;
228
+ dt(() => {
229
+ Le.off("nextClicked", ne), L.value && clearTimeout(L.value);
230
+ });
231
+ let de = v([]);
232
+ ct(async () => {
233
+ Le.on("nextClicked", ne);
234
+ const a = rt(), t = a.appContext.app.config.globalProperties.$env;
235
+ if (a) {
236
+ const e = a.appContext.app.config.globalProperties.$env;
237
+ W.value = e.content.dataProviderInterface.specification;
223
238
  } else
224
239
  console.log("Instance is null!");
225
240
  try {
226
- const e = await lt(a.api.baseUrl);
227
- y.value = e.results.map((o) => ({
228
- "@value": o.id,
241
+ const e = await yt(t.api.baseUrl);
242
+ de.value = e.map((s) => ({
243
+ uri: s.uri,
244
+ "@value": s.value,
245
+ label: s.label
246
+ }));
247
+ const o = await kt(t.api.baseUrl);
248
+ x.value = o.results.map((s) => ({
249
+ "@value": s.pref_label.en,
250
+ uri: s.resource,
251
+ selected: !1
252
+ }));
253
+ } catch (e) {
254
+ error.value = e;
255
+ }
256
+ try {
257
+ const e = await xt(t.api.baseUrl);
258
+ D.value = e.results.map((o) => ({
259
+ "@value": o.pref_label.en,
229
260
  uri: o.resource,
230
261
  selected: !1
231
262
  }));
@@ -233,191 +264,204 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
233
264
  error.value = e;
234
265
  }
235
266
  try {
236
- const e = await ct(a.api.baseUrl);
237
- Z.value = e;
238
- const o = await rt(a.api.baseUrl);
239
- Q.value = o;
240
- const i = await ut(a.api.baseUrl);
241
- X.value = i;
267
+ const e = await bt(t.api.baseUrl);
268
+ oe.value = e;
269
+ const o = await wt(t.api.baseUrl);
270
+ O.value = o;
271
+ const s = await Dt(t.api.baseUrl);
272
+ se.value = s;
242
273
  } catch (e) {
243
274
  console.log(e);
244
275
  }
245
- be();
276
+ Ce();
246
277
  });
247
- function _e(t, a) {
248
- const e = d.value.find((i) => i.id === a);
278
+ function Se(a, t) {
279
+ const e = l.value.find((s) => s.id === t);
249
280
  if (!e) return;
250
- let o = y.value.find((i) => i["@value"] === t).uri || "";
251
- e["dct:format"] = { label: t, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", z(e, "dct:format"), _.value.DistributionSimple["dcat:distribution"] = d.value;
281
+ let o = D.value.find((s) => s["@value"] === a).uri || "";
282
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.value.DistributionSimple["dcat:distribution"] = l.value;
252
283
  }
253
- function oe(t, a) {
254
- const e = d.value.find((o) => o.id === a);
255
- e ? (e["dct:modified"] = t, n.value.dctModified = t) : console.warn(`No matching distribution found for ID ${a}.`);
284
+ function ce(a, t) {
285
+ const e = l.value.find((o) => o.id === t);
286
+ e ? (e["dct:modified"] = a, n.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
256
287
  }
257
- function ie(t, a) {
258
- const e = d.value.find((o) => o.id === a);
259
- e ? (e["dct:issued"] = t, n.value.dctIssued = t) : console.warn(`No matching distribution found for ID ${a}.`);
288
+ function re(a, t) {
289
+ const e = l.value.find((o) => o.id === t);
290
+ e ? (e["dct:issued"] = a, n.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
260
291
  }
261
- function se(t, a) {
262
- const e = d.value.find((o) => o.id === a);
263
- e ? (e["dct:description"] = t, n.value.dctDescription = t) : console.warn(`No matching distribution found for ID ${a}.`);
292
+ function ue(a, t) {
293
+ const e = l.value.find((o) => o.id === t);
294
+ e ? (e["dct:description"] = a, n.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
264
295
  }
265
- function ne(t, a, e) {
266
- const o = d.value.find((i) => i.id === a);
267
- e || (e = Q.value.find((i) => i.value === t).uri || ""), o ? (o["dcatap:availability"] = { label: { de: t }, uri: e }, n.value.availabilityText = t) : console.warn(`No matching distribution found for ID ${a}.`);
296
+ function me(a, t, e) {
297
+ const o = l.value.find((s) => s.id === t);
298
+ e || (console.log(O.value), e = O.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, n.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
268
299
  }
269
- function de(t, a) {
270
- const e = d.value.find((o) => o.id === a);
271
- e ? (e["adms:status"] = t, n.value.statusText = t) : console.warn(`No matching distribution found for ID ${a}.`);
300
+ function fe(a, t) {
301
+ const e = l.value.find((o) => o.id === t);
302
+ e ? (e["adms:status"] = a, n.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
272
303
  }
273
- function le(t, a, e, o) {
274
- Y.value = !0;
275
- const i = d.value.find((s) => s.id === e);
276
- o || (o = Z.value.find((s) => s.value === a).resource || ""), i ? (i.checksum.title = t, i.checksum["spdx:checksum"] = a, i.checksum.uri = o || "no URI", n.value.checksumText = t, n.value.checksumDropdownText = a, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
304
+ function pe(a, t, e, o) {
305
+ ie.value = !0;
306
+ const s = l.value.find((i) => i.id === e);
307
+ o || (o = oe.value.find((i) => i.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", n.value.checksumText = a, n.value.checksumDropdownText = t, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
277
308
  }
278
- function ce(t, a, e) {
279
- ee.value = !0;
280
- const o = d.value.find((i) => i.id === e);
281
- o ? (o.changeLicense.title = t, o.changeLicense["dcterms:license"] = a, n.value.changeLicenseText = t, n.value.changeLicenseDropdownText = a) : console.warn(`No matching distribution found for ID ${e}.`);
309
+ function ve(a, t, e, o) {
310
+ const s = l.value.find((d) => d.id === e);
311
+ let i = de.value.find(
312
+ (d) => d["@value"] === t
313
+ );
314
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = i.uri, b.value.DistributionSimple["dct:license"] = [
315
+ {
316
+ title: a,
317
+ "dcterms:license": t,
318
+ uri: i.uri
319
+ }
320
+ ], n.value.changeLicenseText = a, n.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
282
321
  }
283
- function re(t, a, e) {
284
- const o = d.value.find((i) => i.id === a);
285
- e || (e = X.value.find((i) => i.label === t).uri || ""), o ? (o["dct:language"] = [{ label: t, uri: e }], n.value.languageText = t) : console.warn(`No matching distribution found for ID ${a}.`);
322
+ function he(a, t, e) {
323
+ const o = l.value.find((s) => s.id === t);
324
+ e || (e = se.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], n.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
286
325
  }
287
- function ue(t, a) {
288
- const e = d.value.find((o) => o.id === a);
289
- e ? (e["dcat:byteSize"] = t, n.value.byteSizeText = t) : console.warn(`No matching distribution found for ID ${a}.`);
326
+ function ge(a, t) {
327
+ const e = l.value.find((o) => o.id === t);
328
+ e ? (e["dcat:byteSize"] = a, n.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
290
329
  }
291
- function w(t, a, e) {
292
- const o = d.value.find((s) => s.id === e);
293
- let i = y.value.find((s) => s["@value"] === t).uri || "";
330
+ function I(a, t, e) {
331
+ const o = l.value.find((i) => i.id === e);
332
+ let s = x.value.find((i) => i["@value"] === a).uri || "";
294
333
  if (o)
295
- switch (o[a] = { label: t, uri: i }, a) {
334
+ switch (o[t] = { label: a, uri: s }, t) {
296
335
  case "dcat:mediaType":
297
- n.value.mediaTypeText = t;
336
+ n.value.mediaTypeText = a;
298
337
  break;
299
338
  case "dcat:compressFormat":
300
- n.value.compressFormatText = t;
339
+ n.value.compressFormatText = a;
301
340
  break;
302
341
  case "dcat:packageFormat":
303
- n.value.packageFormatText = t;
342
+ n.value.packageFormatText = a;
304
343
  break;
305
344
  }
306
345
  else
307
346
  console.warn(`No matching distribution found for ID ${e}.`);
308
347
  }
309
- function we(t) {
310
- k(
311
- t,
348
+ function Fe(a) {
349
+ y(
350
+ a,
312
351
  "Konform zu Standard",
313
352
  "conformsToItems",
314
353
  !0,
315
354
  !0
316
355
  );
317
356
  }
318
- function Ie(t) {
319
- k(
320
- t,
357
+ function $e(a) {
358
+ y(
359
+ a,
321
360
  "Verfügbarkeit",
322
361
  "dcatap:availability",
323
362
  !1,
324
363
  !1
325
364
  );
326
365
  }
327
- function Te(t) {
328
- k(
329
- t,
366
+ function Ee(a) {
367
+ y(
368
+ a,
330
369
  "Status",
331
370
  "adms:status",
332
371
  !1,
333
372
  !1
334
373
  );
335
374
  }
336
- function Ve(t) {
337
- k(
338
- t,
375
+ function Be(a) {
376
+ y(
377
+ a,
339
378
  "Größe in Bytes",
340
379
  "dcat:byteSize",
341
380
  !0,
342
381
  !1
343
382
  );
344
383
  }
345
- function Le(t) {
346
- k(
347
- t,
384
+ function Me(a) {
385
+ y(
386
+ a,
348
387
  "Sprache",
349
388
  "dct:language",
350
389
  !0,
351
390
  !1
352
391
  );
353
392
  }
354
- function P(t, a) {
355
- k(a, t, t, !0, !1);
393
+ function q(a, t) {
394
+ y(t, a, a, !0, !1);
356
395
  }
357
- function Ae(t) {
358
- k(
359
- t,
396
+ function ze(a) {
397
+ y(
398
+ a,
360
399
  "Regelwerk",
361
400
  "policyItems",
362
401
  !0,
363
402
  !0
364
403
  );
365
404
  }
366
- function Ce(t) {
367
- k(
368
- t,
405
+ function Pe(a) {
406
+ y(
407
+ a,
369
408
  "Dokumentation",
370
409
  "documentations",
371
410
  !0,
372
411
  !0
373
412
  );
374
413
  }
375
- function Se(t) {
376
- k(
377
- t,
414
+ function Ne(a) {
415
+ y(
416
+ a,
378
417
  "Ausliefernder Datenservice",
379
418
  "accessServices",
380
419
  !0,
381
420
  !0
382
421
  );
383
422
  }
384
- function Ue(t) {
385
- k(
386
- t,
423
+ function Oe(a, t, e) {
424
+ const o = b.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
425
+ o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
426
+ }
427
+ function We(a) {
428
+ y(
429
+ a,
387
430
  "Aktualisierungsdatum",
388
431
  "dct:modified",
389
432
  !1
390
433
  );
391
434
  }
392
- function Fe(t) {
393
- k(
394
- t,
435
+ function je(a) {
436
+ y(
437
+ a,
395
438
  "Veröffentlichungsdatum",
396
439
  "dct:issued",
397
440
  !1
398
441
  );
399
442
  }
400
- function $e(t) {
401
- k(
402
- t,
443
+ function He(a) {
444
+ y(
445
+ a,
403
446
  "Beschreibung",
404
447
  "dct:description",
405
448
  !0
406
449
  );
407
450
  }
408
- const Re = ve(() => R.value ? xe.getters["dpiStore/getNavSteps"](R.value) : {});
409
- et(Re, (t) => {
410
- }), q.value || K.context.node.input([{ isValid: "unset" }]);
411
- function Ee() {
412
- const t = Date.now();
413
- d.value.push({
451
+ const Je = Te(() => W.value ? Re.getters["dpiStore/getNavSteps"](W.value) : {});
452
+ ut(Je, (a) => {
453
+ }), te.value || P.context.node.input([{ isValid: "unset" }]);
454
+ function Ke() {
455
+ const a = Date.now();
456
+ l.value.push({
414
457
  isValid: "unset",
415
- id: t,
458
+ id: a,
416
459
  "dcat:accessURL": "",
417
460
  "dct:format": {},
418
461
  "dct:title": "",
419
462
  documentations: [],
420
463
  conformsToItems: [],
464
+ "dcat:downloadURL": [{ "@id": "" }],
421
465
  policyItems: [],
422
466
  accessServices: [],
423
467
  "dct:modified": "",
@@ -437,37 +481,37 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
437
481
  "spdx:checksum": "",
438
482
  uri: ""
439
483
  },
440
- changeLicense: {
484
+ "dct:license": {
441
485
  title: "",
442
486
  "dcterms:license": ""
443
487
  }
444
- }), B(t);
488
+ }), J(a);
445
489
  }
446
- function Me(t, a) {
447
- const e = d.value.find((o) => o.id === t);
490
+ function qe(a, t) {
491
+ const e = l.value.find((o) => o.id === a);
448
492
  if (!e) {
449
- console.error(`Distribution with ID ${t} not found`);
493
+ console.error(`Distribution with ID ${a} not found`);
450
494
  return;
451
495
  }
452
- if (!Array.isArray(a)) {
453
- console.error("Provided documentations is not an array", a);
496
+ if (!Array.isArray(t)) {
497
+ console.error("Provided documentations is not an array", t);
454
498
  return;
455
499
  }
456
500
  e.documentations = e.documentations.filter(
457
- (o) => a.some((i) => i.id === o.id)
458
- ), a.forEach((o) => {
459
- const i = e.documentations.findIndex(
460
- (s) => s.id === o.id
501
+ (o) => t.some((s) => s.id === o.id)
502
+ ), t.forEach((o) => {
503
+ const s = e.documentations.findIndex(
504
+ (i) => i.id === o.id
461
505
  );
462
- if (i !== -1)
463
- e.documentations[i] = {
464
- ...e.documentations[i],
506
+ if (s !== -1)
507
+ e.documentations[s] = {
508
+ ...e.documentations[s],
465
509
  ...o
466
510
  };
467
511
  else {
468
- const s = e.documentations.length > 0 ? Math.max(...e.documentations.map((c) => c.id)) + 1 : 1;
512
+ const i = e.documentations.length > 0 ? Math.max(...e.documentations.map((d) => d.id)) + 1 : 1;
469
513
  e.documentations.push({
470
- id: o.id || s,
514
+ id: o.id || i,
471
515
  "dcat:accessURL": o["dcat:accessURL"] || "",
472
516
  "dct:format": o["dct:format"] || "",
473
517
  "dct:title": o["dct:title"] || "",
@@ -477,36 +521,36 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
477
521
  }
478
522
  });
479
523
  }
480
- function Be(t, a) {
481
- const e = d.value.find((o) => o.id === t);
524
+ function Ge(a, t) {
525
+ const e = l.value.find((o) => o.id === a);
482
526
  if (!e) {
483
- console.error(`Distribution with ID ${t} not found`);
527
+ console.error(`Distribution with ID ${a} not found`);
484
528
  return;
485
529
  }
486
- if (!Array.isArray(a)) {
530
+ if (!Array.isArray(t)) {
487
531
  console.error(
488
532
  "Provided access services is not an array",
489
- a
533
+ t
490
534
  );
491
535
  return;
492
536
  }
493
537
  e.accessServices = e.accessServices.filter(
494
- (o) => a.some(
495
- (i) => i.id === o.id
496
- )
497
- ), a.forEach((o) => {
498
- const i = e.accessServices.findIndex(
538
+ (o) => t.some(
499
539
  (s) => s.id === o.id
540
+ )
541
+ ), t.forEach((o) => {
542
+ const s = e.accessServices.findIndex(
543
+ (i) => i.id === o.id
500
544
  );
501
- if (i !== -1)
502
- e.accessServices[i] = {
503
- ...e.accessServices[i],
545
+ if (s !== -1)
546
+ e.accessServices[s] = {
547
+ ...e.accessServices[s],
504
548
  ...o
505
549
  };
506
550
  else {
507
- const s = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((c) => c.id)) + 1 : 1;
551
+ const i = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((d) => d.id)) + 1 : 1;
508
552
  e.accessServices.push({
509
- id: o.id || s,
553
+ id: o.id || i,
510
554
  "dcat:downloadURL": o["dcat:downloadURL"] || "",
511
555
  "dct:title": o["dct:title"] || "",
512
556
  "dct:description": o["dct:description"] || ""
@@ -514,248 +558,252 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
514
558
  }
515
559
  });
516
560
  }
517
- function ze(t, a) {
561
+ function Qe(a, t) {
518
562
  var o;
519
- const e = d.value.find((i) => i.id === t);
563
+ const e = l.value.find((s) => s.id === a);
520
564
  if (!e) {
521
- console.error(`Distribution with ID ${t} not found`);
565
+ console.error(`Distribution with ID ${a} not found`);
522
566
  return;
523
567
  }
524
- if (!Array.isArray(a)) {
525
- console.error("Provided items is not an array", a);
568
+ if (!Array.isArray(t)) {
569
+ console.error("Provided items is not an array", t);
526
570
  return;
527
571
  }
528
572
  e.conformsToItems = ((o = e == null ? void 0 : e.conformsToItems) == null ? void 0 : o.filter(
529
- (i) => a.some((s) => s.id === i.id)
530
- )) || [], a.forEach((i) => {
531
- const s = e.conformsToItems.findIndex(
532
- (c) => c.id === i.id
573
+ (s) => t.some((i) => i.id === s.id)
574
+ )) || [], t.forEach((s) => {
575
+ const i = e.conformsToItems.findIndex(
576
+ (d) => d.id === s.id
533
577
  );
534
- if (s !== -1)
535
- e.conformsToItems[s] = {
536
- ...e.conformsToItems[s],
537
- ...i
578
+ if (i !== -1)
579
+ e.conformsToItems[i] = {
580
+ ...e.conformsToItems[i],
581
+ ...s
538
582
  };
539
583
  else {
540
- const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
584
+ const d = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
541
585
  e.conformsToItems.push({
542
- id: i.id || c,
543
- "dcat:downloadURL": i["dcat:downloadURL"] || "",
544
- "dct:title": i["dct:title"] || ""
586
+ id: s.id || d,
587
+ "dcat:downloadURL": s["dcat:downloadURL"] || "",
588
+ "dct:title": s["dct:title"] || ""
545
589
  });
546
590
  }
547
591
  });
548
592
  }
549
- function Ne(t, a) {
593
+ function Xe(a, t) {
550
594
  var o;
551
- const e = d.value.find((i) => i.id === t);
595
+ const e = l.value.find((s) => s.id === a);
552
596
  if (!e) {
553
- console.error(`Distribution with ID ${t} not found`);
597
+ console.error(`Distribution with ID ${a} not found`);
554
598
  return;
555
599
  }
556
- if (!Array.isArray(a)) {
557
- console.error("Provided items is not an array", a);
600
+ if (!Array.isArray(t)) {
601
+ console.error("Provided items is not an array", t);
558
602
  return;
559
603
  }
560
604
  e.policyItems = ((o = e == null ? void 0 : e.policyItems) == null ? void 0 : o.filter(
561
- (i) => a.some((s) => s.id === i.id)
562
- )) || [], a.forEach((i) => {
563
- var c, g;
564
- const s = (c = e == null ? void 0 : e.policyItems) == null ? void 0 : c.findIndex(
565
- (v) => v.id === i.id
605
+ (s) => t.some((i) => i.id === s.id)
606
+ )) || [], t.forEach((s) => {
607
+ var d, g;
608
+ const i = (d = e == null ? void 0 : e.policyItems) == null ? void 0 : d.findIndex(
609
+ (h) => h.id === s.id
566
610
  );
567
- if (s !== -1)
568
- e.policyItems[s] = {
569
- ...e.policyItems[s],
570
- ...i
611
+ if (i !== -1)
612
+ e.policyItems[i] = {
613
+ ...e.policyItems[i],
614
+ ...s
571
615
  };
572
616
  else {
573
- const v = ((g = e == null ? void 0 : e.policyItems) == null ? void 0 : g.length) > 0 ? Math.max(...e.policyItems.map((b) => b.id)) + 1 : 1;
617
+ const h = ((g = e == null ? void 0 : e.policyItems) == null ? void 0 : g.length) > 0 ? Math.max(...e.policyItems.map((w) => w.id)) + 1 : 1;
574
618
  e.policyItems.push({
575
- id: i.id || v,
576
- "dcat:accessURL": i["dcat:accessURL"] || ""
619
+ id: s.id || h,
620
+ "dcat:accessURL": s["dcat:accessURL"] || ""
577
621
  });
578
622
  }
579
623
  });
580
624
  }
581
- function Pe(t) {
582
- if (t === "deleteDataset" && x.value !== null) {
583
- if (d.value.length === 1) {
584
- E.value = !0;
625
+ function Ye(a) {
626
+ if (a === "deleteDataset" && k.value !== null) {
627
+ if (l.value.length === 1) {
628
+ j.value = !0;
585
629
  return;
586
630
  }
587
- d.value = d.value.filter(
588
- (a) => a.id !== x.value
589
- ), E.value = !1, x.value = null, B();
631
+ l.value = l.value.filter(
632
+ (t) => t.id !== k.value
633
+ ), j.value = !1, k.value = null, J();
590
634
  }
591
635
  }
592
- function Oe(t) {
593
- const a = JSON.parse(t), e = d.value.find(
594
- (o) => o.id === a.distributionId
636
+ function Ze(a) {
637
+ const t = JSON.parse(a), e = l.value.find(
638
+ (o) => o.id === t.distributionId
595
639
  );
596
- if (a.isArray) {
597
- e[a.optType] = [];
640
+ if (t.isArray) {
641
+ e[t.optType] = [];
598
642
  return;
599
643
  }
600
- a.useUndefined ? e[a.optType] = void 0 : e[a.optType] = "";
644
+ t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
601
645
  }
602
- function We(t) {
603
- var e, o, i, s, c;
604
- x.value = t;
605
- const a = d.value.find((g) => g.id === t);
606
- a && (n.value = {
646
+ function et(a) {
647
+ var e, o, s, i, d;
648
+ k.value = a;
649
+ const t = l.value.find((g) => g.id === a);
650
+ t && (n.value = {
607
651
  button: "",
608
652
  header: "Optionale Informationen hinzufügen",
609
653
  text: "",
610
654
  action: "deleteDataset",
611
655
  showButtons: !1,
612
656
  optionalInfoView: !0,
613
- distributionId: t,
614
- documentations: a.documentations || [],
615
- accessServices: a.accessServices || [],
616
- dctModified: a["dct:modified"] || "",
617
- dctIssued: a["dct:issued"] || "",
618
- dctDescription: a["dct:description"] || "",
657
+ distributionId: a,
658
+ documentations: t.documentations || [],
659
+ accessServices: t.accessServices || [],
660
+ dctModified: t["dct:modified"] || "",
661
+ dctIssued: t["dct:issued"] || "",
662
+ dctDescription: t["dct:description"] || "",
619
663
  // nameTextByClauses: distribution["dcatde:licenseAttributionByText"] || "",
620
664
  // accessRightsText: distribution["dct:accessRights"].uri || "",
621
- availabilityText: ((o = (e = a["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
622
- languageText: ((i = a == null ? void 0 : a["dct:language"]) == null ? void 0 : i["@value"]) || "",
623
- byteSizeText: a["dcat:byteSize"] || "",
624
- mediaTypeText: a["dcat:mediaType"].label || "",
665
+ availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
666
+ languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
667
+ byteSizeText: t["dcat:byteSize"] || "",
668
+ mediaTypeText: t["dcat:mediaType"].label || "",
625
669
  // compressFormatText: distribution["dcat:compressFormat"].label || "",
626
- packageFormatText: a["dcat:packageFormat"].label || "",
627
- statusText: a["adms:status"].label || "",
628
- checksumText: a.checksum.title || "",
629
- checksumURI: a.checksum.uri || "",
630
- checksumDropdownText: a.checksum["spdx:checksum"] || "",
631
- changeLicenseText: ((s = a == null ? void 0 : a.changeLicense) == null ? void 0 : s.title) || "",
632
- changeLicenseDropdownText: ((c = a == null ? void 0 : a.changeLicense) == null ? void 0 : c["dcterms:license"]) || "",
633
- conformsToItems: (a == null ? void 0 : a.conformsToItems) || [],
634
- policyItems: (a == null ? void 0 : a.policyItems) || []
635
- }, A.value = !0, document.body.style.overflow = "hidden");
670
+ packageFormatText: t["dcat:packageFormat"].label || "",
671
+ statusText: t["adms:status"].label || "",
672
+ checksumText: t.checksum.title || "",
673
+ checksumURI: t.checksum.uri || "",
674
+ checksumDropdownText: t.checksum["spdx:checksum"] || "",
675
+ changeLicenseText: ((i = t == null ? void 0 : t.changeLicense) == null ? void 0 : i.title) || "",
676
+ changeLicenseDropdownText: ((d = t == null ? void 0 : t.changeLicense) == null ? void 0 : d["dcterms:license"]) || "",
677
+ conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
678
+ policyItems: (t == null ? void 0 : t.policyItems) || [],
679
+ downloadURL: (t == null ? void 0 : t.downloadURL) || []
680
+ }, F.value = !0, document.body.style.overflow = "hidden");
636
681
  }
637
- function je() {
638
- A.value = !1, document.body.style.overflow = "auto";
682
+ function tt() {
683
+ F.value = !1, document.body.style.overflow = "auto";
639
684
  }
640
- function He(t) {
641
- x.value = t;
642
- const a = d.value.find((s) => s.id === t), e = a ? a["dct:title"] : "", o = a ? a["dct:format"].label : "", i = a ? a["dcat:accessURL"] : "";
685
+ function at(a) {
686
+ k.value = a;
687
+ const t = l.value.find((i) => i.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
643
688
  n.value = {
644
689
  button: "Löschen",
645
- header: D(
690
+ header: _(
646
691
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
647
692
  ),
648
- text: D(
693
+ text: _(
649
694
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
650
695
  ),
651
696
  action: "deleteDataset",
652
697
  title: e,
653
698
  format: o,
654
- distributionLink: i
655
- }, A.value = !0;
699
+ distributionLink: s
700
+ }, F.value = !0;
656
701
  }
657
- function k(t, a, e, o, i) {
658
- const c = JSON.stringify({
659
- distributionId: t,
702
+ function y(a, t, e, o, s) {
703
+ const d = JSON.stringify({
704
+ distributionId: a,
660
705
  optType: e,
661
706
  useUndefined: o,
662
- isArray: i
707
+ isArray: s
663
708
  });
664
709
  V.value = {
665
710
  button: "Löschen",
666
- header: `${a} löschen`,
667
- text: `Sind Sie sicher, dass Sie das optionale Feld ${a} löschen wollen?`,
668
- action: c
669
- }, F.value = !0;
711
+ header: `${t} löschen`,
712
+ text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
713
+ action: d
714
+ }, N.value = !0;
670
715
  }
671
- function O(t, a, e) {
672
- var i, s, c, g;
673
- const o = d.value.find((v) => v.id === e);
674
- if (o) {
675
- if (a === "dcat:accessURL") {
676
- const v = (i = t == null ? void 0 : t.target) == null ? void 0 : i.value;
677
- o[a] = v, v && !N(v) ? (o.showErrorDownloadURL = !0, o.urlErrorMessage = "Bitte geben Sie eine gültige URL ein") : (o.showErrorDownloadURL = v.trim() === "", o.urlErrorMessage = "");
678
- } else if (a === "dct:format") {
679
- const v = typeof t == "string" ? t.trim() : (c = (s = t == null ? void 0 : t.target) == null ? void 0 : s.value) == null ? void 0 : c.trim();
680
- if (o.showErrorFormat = !1, o.formatErrorMessage = "", v === "")
681
- $.value = [...y.value];
716
+ function G(a, t, e) {
717
+ var s, i, d, g;
718
+ const o = l.value.find((h) => h.id === e);
719
+ if (o)
720
+ if (t === "dcat:accessURL") {
721
+ const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
722
+ o[t] = h, L.value && clearTimeout(L.value), L.value = setTimeout(() => {
723
+ E(o, t);
724
+ }, 800);
725
+ } else if (t === "dct:format") {
726
+ const h = typeof a == "string" ? a.trim() : (d = (i = a == null ? void 0 : a.target) == null ? void 0 : i.value) == null ? void 0 : d.trim();
727
+ if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
728
+ $.value = [...D.value];
682
729
  else {
683
- const b = y.value.find(
684
- (I) => I["@value"].toLowerCase() === v.toLowerCase()
730
+ const w = D.value.find(
731
+ (T) => T["@value"].toLowerCase() === h.toLowerCase()
685
732
  );
686
- b ? (o[a] = b["@value"], o.showErrorFormat = !1, o.formatErrorMessage = "") : (o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), $.value = y.value.filter(
687
- (I) => I["@value"].toLowerCase().includes(v.toLowerCase())
733
+ w ? (o[t] = {
734
+ label: w["@value"],
735
+ uri: w.uri
736
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), $.value = D.value.filter(
737
+ (T) => T["@value"].toLowerCase().includes(h.toLowerCase())
688
738
  );
689
739
  }
690
- z(o, a);
740
+ E(o, t);
691
741
  } else
692
- o[a] = (g = t == null ? void 0 : t.target) == null ? void 0 : g.value;
693
- a !== "dct:format" && z(o, a);
694
- }
742
+ o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, E(o, t);
695
743
  }
696
- function Je(t, a) {
697
- const e = d.value.find((o) => o.id === t);
744
+ function ot(a, t) {
745
+ const e = l.value.find((o) => o.id === a);
698
746
  e.documentations = e.documentations.filter(
699
- (o) => a.some((i) => i.id === o.id)
747
+ (o) => t.some((s) => s.id === o.id)
700
748
  );
701
749
  }
702
- function Ke(t, a) {
703
- const e = d.value.find((o) => o.id === t);
750
+ function st(a, t) {
751
+ const e = l.value.find((o) => o.id === a);
704
752
  e.accessServices = e.accessServices.filter(
705
- (o) => a.some((i) => i.id === o.id)
753
+ (o) => t.some((s) => s.id === o.id)
706
754
  );
707
755
  }
708
- function qe(t, a) {
709
- const e = d.value.find((o) => o.id === t);
756
+ function it(a, t) {
757
+ const e = l.value.find((o) => o.id === a);
710
758
  e.conformsToItems = e.conformsToItems.filter(
711
- (o) => a.some((i) => i.id === o.id)
759
+ (o) => t.some((s) => s.id === o.id)
712
760
  );
713
761
  }
714
- function Ge(t, a) {
715
- const e = d.value.find((o) => o.id === t);
762
+ function lt(a, t) {
763
+ const e = l.value.find((o) => o.id === a);
716
764
  e.policyItems = e.policyItems.filter(
717
- (o) => a.some((i) => i.id === o.id)
765
+ (o) => t.some((s) => s.id === o.id)
718
766
  );
719
767
  }
720
- return (t, a) => (u(), m(he, null, [
721
- f("div", At, [
722
- L.inRap ? p("", !0) : (u(), m("h4", Ct, C(t.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
723
- L.inRap ? p("", !0) : (u(), m("div", St, C(t.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
724
- (u(!0), m(he, null, tt(T(d), (e, o) => {
725
- var i, s, c, g, v, b, I;
726
- return u(), m("div", {
768
+ return (a, t) => (r(), m(Q, null, [
769
+ f("div", Nt, [
770
+ S.inRap ? p("", !0) : (r(), m("h4", Ot, B(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
771
+ S.inRap ? p("", !0) : (r(), m("div", Wt, B(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
772
+ (r(!0), m(Q, null, Ue(U(l), (e, o) => {
773
+ var s, i, d, g, h, w, T, be, we, De, _e, Ie;
774
+ return r(), m("div", {
727
775
  key: e.id,
728
776
  class: "dpiV3AutoCompleteWrap"
729
777
  }, [
730
- f("div", Ut, [
731
- r(ye, {
778
+ f("div", jt, [
779
+ u(Z, {
732
780
  "add-on-text": !1,
733
781
  datePicker: !1,
734
782
  infoIcon: !0,
735
783
  tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
736
784
  wird oder über eine Schnittstelle abgerufen werden kann.`,
737
- placeholder: t.$t(
785
+ placeholder: a.$t(
738
786
  "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
739
787
  ),
740
788
  preIcon: !1,
741
789
  "input-field-size": "large",
742
790
  initialHintText: !1,
743
- label: t.$t(
791
+ label: a.$t(
744
792
  "message.dataupload.datasets.dcat:distribution.download-link.label"
745
793
  ),
746
794
  showEndIcon: !1,
747
795
  showError: e.showErrorDownloadURL,
748
796
  "model-value": e["dcat:accessURL"],
749
- onInput: (l) => O(l, "dcat:accessURL", e.id)
797
+ onInput: (c) => G(c, "dcat:accessURL", e.id)
750
798
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
751
- e.showErrorDownloadURL && e.urlErrorMessage ? (u(), m("div", Ft, [
752
- r(T(j), {
799
+ e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Ht, [
800
+ u(U(Y), {
753
801
  size: 16,
754
802
  weight: "fill"
755
803
  }),
756
- f("span", $t, C(e.urlErrorMessage), 1)
804
+ f("span", Jt, B(e.urlErrorMessage), 1)
757
805
  ])) : p("", !0),
758
- r(mt, {
806
+ u(_t, {
759
807
  "dropdown-width": "large",
760
808
  type: "inputField",
761
809
  "input-field-props": {
@@ -765,11 +813,11 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
765
813
  infoIcon: !1,
766
814
  preIcon: !0,
767
815
  showEndIcon: !1,
768
- label: t.$t(
816
+ label: a.$t(
769
817
  "message.dataupload.datasets.dcat:distribution.format.label"
770
818
  ),
771
819
  dropdown_dpiV3: !0,
772
- placeholder: t.$t(
820
+ placeholder: a.$t(
773
821
  "message.dataupload.datasets.dcat:distribution.format.placeholder"
774
822
  ),
775
823
  inputFieldSize: "large",
@@ -778,279 +826,323 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
778
826
  },
779
827
  data: $.value,
780
828
  autocomplete: !0,
781
- onInput: (l) => O(l, "dct:format", e.id),
782
- "onUpdate:modelValue": (l) => _e(l, e.id),
783
- "model-value": (i = e == null ? void 0 : e["dct:format"]) == null ? void 0 : i.label
829
+ onInput: (c) => G(c, "dct:format", e.id),
830
+ "onUpdate:modelValue": (c) => Se(c, e.id),
831
+ "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
784
832
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
785
- e.showErrorFormat && e.formatErrorMessage ? (u(), m("div", Rt, [
786
- r(T(j), {
833
+ e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", Kt, [
834
+ u(U(Y), {
787
835
  size: 16,
788
836
  weight: "fill"
789
837
  }),
790
- f("span", Et, C(e.formatErrorMessage), 1)
838
+ f("span", qt, B(e.formatErrorMessage), 1)
791
839
  ])) : p("", !0),
792
- r(ye, {
840
+ u(Z, {
793
841
  modelValue: e["dct:title"],
794
- "onUpdate:modelValue": (l) => e["dct:title"] = l,
842
+ "onUpdate:modelValue": (c) => e["dct:title"] = c,
795
843
  "add-on-text": !1,
796
844
  "date-picker": !1,
797
845
  "info-icon": !1,
798
- placeholder: t.$t(
846
+ placeholder: a.$t(
799
847
  "message.dataupload.datasets.dcat:distribution.distribution-title.placeholder"
800
848
  ),
801
849
  "pre-icon": !1,
802
850
  "input-field-size": "large",
803
851
  "initial-hint-text": !1,
804
- label: t.$t(
852
+ label: a.$t(
805
853
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
806
854
  ),
807
855
  "show-end-icon": !1,
808
- onInput: (l) => O(l, "dct:title", e.id)
856
+ onInput: (c) => G(c, "dct:title", e.id)
809
857
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
810
- (e.documentations || []).length > 0 ? (u(), m("div", Mt, [
811
- f("div", Bt, [
812
- a[6] || (a[6] = f("div", null, "Webpage (optional)", -1)),
858
+ (e.documentations || []).length > 0 ? (r(), m("div", Gt, [
859
+ f("div", Qt, [
860
+ t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
813
861
  f("div", null, [
814
- r(U, {
862
+ u(A, {
815
863
  "button-text": "löschen",
816
- onClick: (l) => Ce(e.id)
864
+ onClick: (c) => Pe(e.id)
817
865
  }, null, 8, ["onClick"])
818
866
  ])
819
867
  ]),
820
- f("div", zt, [
821
- f("div", Nt, [
822
- r(Dt, {
868
+ f("div", Xt, [
869
+ f("div", Yt, [
870
+ u(Ft, {
823
871
  documentations: e.documentations,
824
- "file-types": y.value,
872
+ "file-types": x.value,
825
873
  "distribution-id": e.id,
826
874
  "as-card": !0,
827
875
  "show-delete-button": !0,
828
- onUpdate: (l) => Je(e.id, l)
876
+ onUpdate: (c) => ot(e.id, c)
829
877
  }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
830
878
  ])
831
879
  ])
832
880
  ])) : p("", !0),
833
- (e.accessServices || []).length > 0 ? (u(), m("div", Pt, [
834
- f("div", Ot, [
835
- a[7] || (a[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
881
+ (e.accessServices || []).length > 0 ? (r(), m("div", Zt, [
882
+ f("div", ea, [
883
+ t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
836
884
  f("div", null, [
837
- r(U, {
885
+ u(A, {
838
886
  "button-text": "löschen",
839
- onClick: (l) => Se(e.id)
887
+ onClick: (c) => Ne(e.id)
840
888
  }, null, 8, ["onClick"])
841
889
  ])
842
890
  ]),
843
- f("div", Wt, [
844
- f("div", jt, [
845
- r(vt, {
891
+ f("div", ta, [
892
+ f("div", aa, [
893
+ u(Ut, {
846
894
  "access-services": e.accessServices,
847
895
  "distribution-id": e.id,
848
896
  "as-card": !0,
849
897
  "show-delete-button": !0,
850
- onUpdate: (l) => Ke(
898
+ onUpdate: (c) => st(
851
899
  e.id,
852
- l
900
+ c
853
901
  )
854
902
  }, null, 8, ["access-services", "distribution-id", "onUpdate"])
855
903
  ])
856
904
  ])
857
905
  ])) : p("", !0),
858
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), m("div", Ht, [
859
- r(It, {
906
+ (r(!0), m(Q, { key: 4 }, Ue(e["dcat:downloadURL"], (c, R) => (r(), m("div", oa, [
907
+ f("div", sa, [
908
+ t[8] || (t[8] = f("div", {
909
+ class: "dpiV3_label",
910
+ style: { margin: "0" }
911
+ }, " DownloadURL (optional) ", -1)),
912
+ e["dcat:downloadURL"].length !== 1 ? (r(), m("div", ia, [
913
+ u(A, {
914
+ "button-text": "löschen",
915
+ onClick: (C) => e["dcat:downloadURL"].splice(R, 1)
916
+ }, null, 8, ["onClick"])
917
+ ])) : p("", !0)
918
+ ]),
919
+ u(Z, {
920
+ onInput: (C) => Oe(
921
+ C.target.value,
922
+ e.id,
923
+ R
924
+ ),
925
+ addOnText: !1,
926
+ datePicker: !1,
927
+ infoIcon: !1,
928
+ placeholder: "Bitte URL eingeben...",
929
+ preIcon: !1,
930
+ inputFieldSize: "large",
931
+ initialHintText: !1,
932
+ label: "",
933
+ modelValue: e["dcat:downloadURL"][R]["@id"],
934
+ "onUpdate:modelValue": (C) => e["dcat:downloadURL"][R]["@id"] = C,
935
+ showEndIcon: !1
936
+ }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
937
+ R === e["dcat:downloadURL"].length - 1 ? (r(), m("div", la, [
938
+ u(z, {
939
+ buttonText: "Weitere DownloadURL hinzufügen",
940
+ size: "small",
941
+ iconStart: "plus",
942
+ variant: "tertiary",
943
+ onClick: (C) => e["dcat:downloadURL"].push({ "@id": "" })
944
+ }, null, 8, ["onClick"])
945
+ ])) : p("", !0)
946
+ ]))), 256)),
947
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), m("div", na, [
948
+ u(Bt, {
860
949
  "show-delete-button": !0,
861
950
  "distribution-id": e.id,
862
951
  "model-value": e["dct:modified"],
863
- onAddModifiedDate: oe,
864
- onDeleteButtonClicked: (l) => Ue(e.id)
952
+ onAddModifiedDate: ce,
953
+ onDeleteButtonClicked: (c) => We(e.id)
865
954
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
866
955
  ])) : p("", !0),
867
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), m("div", Jt, [
868
- r(_t, {
956
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), m("div", da, [
957
+ u($t, {
869
958
  "show-delete-button": !0,
870
959
  "distribution-id": e.id,
871
960
  "model-value": e["dct:issued"],
872
- onAddIssuedDate: ie,
873
- onDeleteButtonClicked: (l) => Fe(e.id)
961
+ onAddIssuedDate: re,
962
+ onDeleteButtonClicked: (c) => je(e.id)
874
963
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
875
964
  ])) : p("", !0),
876
- at(f("div", Kt, [
877
- r(bt, {
965
+ mt(f("div", ca, [
966
+ u(St, {
878
967
  "distribution-id": e.id,
879
968
  "description-text": e["dct:description"],
880
969
  "show-delete-button": !0,
881
- onAddDescription: se,
882
- onDeleteDescription: (l) => $e(e.id)
970
+ onAddDescription: ue,
971
+ onDeleteDescription: (c) => He(e.id)
883
972
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
884
973
  ], 512), [
885
- [ot, e["dct:description"] !== void 0 && e["dct:description"] !== ""]
974
+ [
975
+ ft,
976
+ e["dct:description"] !== void 0 && e["dct:description"] !== ""
977
+ ]
886
978
  ]),
887
- e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (u(), m("div", qt, [
888
- r(ht, {
979
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), m("div", ra, [
980
+ u(Lt, {
889
981
  "availability-text": e["dcatap:availability"].label.de,
890
982
  "distribution-id": e.id,
891
983
  "show-delete-button": !0,
892
- onAddAvailability: ne,
893
- onDeleteButtonClicked: (l) => Ie(e.id)
984
+ onAddAvailability: me,
985
+ onDeleteButtonClicked: (c) => $e(e.id)
894
986
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
895
987
  ])) : p("", !0),
896
- e["adms:status"].label && e["adms:status"].label.trim() !== "" ? (u(), m("div", Gt, [
897
- r(Vt, {
898
- "status-text": e["adms:status"].label,
988
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), m("div", ua, [
989
+ u(zt, {
990
+ "status-text": e["adms:status"]["@value"],
899
991
  "distribution-id": e.id,
900
992
  "show-delete-button": !0,
901
- onAddStatus: de,
902
- onDeleteButtonClicked: (l) => Te(e.id)
993
+ onAddStatus: fe,
994
+ onDeleteButtonClicked: (c) => Ee(e.id)
903
995
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
904
996
  ])) : p("", !0),
905
- e.checksum["spdx:checksum"] != "" ? (u(), m("div", Zt, [
906
- r(kt, {
997
+ e.checksum["spdx:checksum"] != "" ? (r(), m("div", ma, [
998
+ u(Ct, {
907
999
  "checksum-text": e.checksum.title,
908
1000
  "checksum-dropdown-text": e.checksum["spdx:checksum"],
909
1001
  "distribution-id": e.id,
910
1002
  distIndex: o,
911
1003
  "checksum-u-r-i": e.checksum.uri,
912
1004
  "show-delete-button": !0,
913
- onAddChecksum: le
1005
+ onAddChecksum: pe
914
1006
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
915
1007
  ])) : p("", !0),
916
- ee.value ? (u(), m("div", Qt, [
917
- r(yt, {
918
- "change-license-text": e.changeLicense.title,
919
- "change-license-dropdown-text": e.changeLicense["dcterms:license"],
1008
+ Object.keys(e["dct:license"]).length > 0 && ((i = e["dct:license"]) == null ? void 0 : i["dcterms:license"]) != "" ? (r(), m("div", fa, [
1009
+ u(Rt, {
1010
+ "change-license-text": (d = e["dct:license"]) == null ? void 0 : d.title,
1011
+ "change-license-dropdown-text": (g = e["dct:license"]) == null ? void 0 : g["dcterms:license"],
920
1012
  "distribution-id": e.id,
921
1013
  "as-card": !0,
922
1014
  "show-delete-button": !0,
923
- onAddChangeLicense: ce
1015
+ onAddChangeLicense: ve
924
1016
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
925
1017
  ])) : p("", !0),
926
- e.conformsToItems && e.conformsToItems.length > 0 ? (u(), m("div", Xt, [
927
- f("div", Yt, [
928
- a[8] || (a[8] = f("div", null, "Konform zu Standard (optional)", -1)),
1018
+ e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", pa, [
1019
+ f("div", va, [
1020
+ t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
929
1021
  f("div", null, [
930
- r(U, {
1022
+ u(A, {
931
1023
  "button-text": "löschen",
932
- onClick: (l) => we(e.id)
1024
+ onClick: (c) => Fe(e.id)
933
1025
  }, null, 8, ["onClick"])
934
1026
  ])
935
1027
  ]),
936
- r(xt, {
1028
+ u(At, {
937
1029
  "conforms-to-items": e.conformsToItems,
938
1030
  "distribution-id": e.id,
939
1031
  "as-card": !0,
940
1032
  "show-delete-button": !0,
941
- onUpdate: (l) => qe(e.id, l)
1033
+ onUpdate: (c) => it(e.id, c)
942
1034
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
943
1035
  ])) : p("", !0),
944
- e.policyItems && e.policyItems.length > 0 ? (u(), m("div", ea, [
945
- f("div", ta, [
946
- a[9] || (a[9] = f("div", null, "Regelwerk (optional)", -1)),
1036
+ ((w = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : w["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ha, [
1037
+ f("div", ga, [
1038
+ t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
947
1039
  f("div", null, [
948
- r(U, {
1040
+ u(A, {
949
1041
  "button-text": "löschen",
950
- onClick: (l) => Ae(e.id)
1042
+ onClick: (c) => ze(e.id)
951
1043
  }, null, 8, ["onClick"])
952
1044
  ])
953
1045
  ]),
954
- r(Tt, {
1046
+ u(Mt, {
955
1047
  "policy-items": e.policyItems,
956
1048
  "distribution-id": e.id,
957
1049
  "as-card": !0,
958
- onUpdate: (l) => Ge(e.id, l)
1050
+ onUpdate: (c) => lt(e.id, c)
959
1051
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
960
1052
  ])) : p("", !0),
961
- (c = (s = e["dct:language"]) == null ? void 0 : s[0]) != null && c.label || (v = (g = e["dct:language"]) == null ? void 0 : g[0]) != null && v["@value"] && ((I = (b = e["dct:language"]) == null ? void 0 : b[0]) == null ? void 0 : I["@value"].trim()) !== "" ? (u(), m("div", aa, [
962
- r(wt, {
1053
+ (be = (T = e["dct:language"]) == null ? void 0 : T[0]) != null && be.label || (De = (we = e["dct:language"]) == null ? void 0 : we[0]) != null && De["@value"] && ((Ie = (_e = e["dct:language"]) == null ? void 0 : _e[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), m("div", ya, [
1054
+ u(Et, {
963
1055
  "distribution-id": e.id,
964
1056
  "show-delete-button": !1,
965
- onAddLanguage: re,
966
- onDeleteButtonClicked: (l) => Le(e.id),
1057
+ onAddLanguage: he,
1058
+ onDeleteButtonClicked: (c) => Me(e.id),
967
1059
  inOverview: !0
968
1060
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
969
1061
  ])) : p("", !0),
970
- e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), m("div", oa, [
971
- r(gt, {
1062
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", ka, [
1063
+ u(Vt, {
972
1064
  "byte-size-prop": e["dcat:byteSize"],
973
1065
  "distribution-id": e.id,
974
1066
  "show-delete-button": !0,
975
- onAddByteSize: ue,
976
- onDeleteButtonClicked: (l) => Ve(e.id)
1067
+ onAddByteSize: ge,
1068
+ onDeleteButtonClicked: (c) => Be(e.id)
977
1069
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
978
1070
  ])) : p("", !0),
979
- e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (u(), m("div", ia, [
980
- r(J, {
1071
+ e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", xa, [
1072
+ u(ee, {
981
1073
  "distribution-id": e.id,
982
- "file-types": y.value,
1074
+ "file-types": x.value,
983
1075
  "file-format-type": "dcat:mediaType",
984
1076
  "file-format-text": e["dcat:mediaType"].label,
985
1077
  "show-delete-button": !0,
986
- onAddMediaType: w,
987
- onDeleteButtonClicked: a[0] || (a[0] = (l) => P("dcat:mediaType", x.value))
1078
+ onAddMediaType: I,
1079
+ onDeleteButtonClicked: t[0] || (t[0] = (c) => q("dcat:mediaType", k.value))
988
1080
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
989
1081
  ])) : p("", !0),
990
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (u(), m("div", sa, [
991
- r(J, {
1082
+ e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", ba, [
1083
+ u(ee, {
992
1084
  "distribution-id": e.id,
993
- "file-types": y.value,
1085
+ "file-types": x.value,
994
1086
  "file-format-type": "dcat:compressFormat",
995
1087
  "compress-format-text": e["dcat:compressFormat"].label,
996
1088
  "show-delete-button": !0,
997
- onAddCompressFormat: w,
998
- onDeleteButtonClicked: a[1] || (a[1] = (l) => P("dcat:compressFormat", x.value))
1089
+ onAddCompressFormat: I,
1090
+ onDeleteButtonClicked: t[1] || (t[1] = (c) => q("dcat:compressFormat", k.value))
999
1091
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1000
1092
  ])) : p("", !0),
1001
- e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (u(), m("div", na, [
1002
- r(J, {
1093
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", wa, [
1094
+ u(ee, {
1003
1095
  "distribution-id": e.id,
1004
- "file-types": y.value,
1096
+ "file-types": x.value,
1005
1097
  "file-format-type": "dcat:packageFormat",
1006
1098
  "package-format-text": e["dcat:packageFormat"].label,
1007
1099
  "show-delete-button": !0,
1008
- onAddPackageFormat: w,
1009
- onDeleteButtonClicked: a[2] || (a[2] = (l) => P("dcat:packageFormat", x.value))
1100
+ onAddPackageFormat: I,
1101
+ onDeleteButtonClicked: t[2] || (t[2] = (c) => q("dcat:packageFormat", k.value))
1010
1102
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1011
1103
  ])) : p("", !0),
1012
- E.value && T(d).length === 1 ? (u(), m("p", da, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1104
+ j.value && U(l).length === 1 ? (r(), m("p", Da, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1013
1105
  ]),
1014
- f("div", la, [
1015
- r(H, {
1016
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1106
+ f("div", _a, [
1107
+ u(z, {
1108
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1017
1109
  size: "small",
1018
1110
  "icon-start": "PlusSquare",
1019
1111
  variant: "tertiary",
1020
- onClick: (l) => We(e.id)
1112
+ onClick: (c) => et(e.id)
1021
1113
  }, null, 8, ["button-text", "onClick"]),
1022
- T(d).length > 1 ? (u(), W(H, {
1114
+ U(l).length > 1 ? (r(), X(z, {
1023
1115
  key: 0,
1024
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.delete"),
1116
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1025
1117
  size: "small",
1026
1118
  "icon-start": "trash",
1027
1119
  variant: "tertiary",
1028
- onClick: (l) => He(e.id)
1120
+ onClick: (c) => at(e.id)
1029
1121
  }, null, 8, ["button-text", "onClick"])) : p("", !0)
1030
1122
  ])
1031
1123
  ]);
1032
1124
  }), 128)),
1033
- f("div", ca, [
1034
- r(H, {
1035
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1125
+ f("div", Ia, [
1126
+ u(z, {
1127
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1036
1128
  size: "large",
1037
1129
  "icon-start": "plus",
1038
1130
  variant: "tertiary",
1039
- onClick: Ee
1131
+ onClick: Ke
1040
1132
  }, null, 8, ["button-text"])
1041
1133
  ]),
1042
- M.value ? (u(), m("div", ra, [
1043
- r(T(j), {
1134
+ H.value ? (r(), m("div", Ta, [
1135
+ u(U(Y), {
1044
1136
  size: 16,
1045
1137
  weight: "fill"
1046
1138
  }),
1047
- a[10] || (a[10] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1139
+ t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1048
1140
  ])) : p("", !0)
1049
1141
  ]),
1050
- A.value ? (u(), W(pt, {
1142
+ F.value ? (r(), X(Tt, {
1051
1143
  key: 0,
1052
- "distibution-id": x.value,
1053
- "file-types": y.value,
1144
+ "distibution-id": k.value,
1145
+ "file-types": x.value,
1054
1146
  buttons: n.value.button,
1055
1147
  "header-text": n.value.header,
1056
1148
  text: n.value.text,
@@ -1062,8 +1154,8 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
1062
1154
  title: n.value.title,
1063
1155
  format: n.value.format,
1064
1156
  "distribution-link": n.value.distributionLink,
1065
- sections: G.value,
1066
- context: L.context,
1157
+ sections: ae.value,
1158
+ context: S.context,
1067
1159
  "distribution-id": n.value.distributionId,
1068
1160
  "modified-date": n.value.dctModified || "",
1069
1161
  "issued-date": n.value.dctIssued || "",
@@ -1083,38 +1175,39 @@ const At = { class: "dpiV3InnerComponentWrap" }, Ct = { key: 0 }, St = {
1083
1175
  "change-license-dropdown-text": n.value.changeLicenseDropdownText || "",
1084
1176
  "conforms-to-items": n.value.conformsToItems,
1085
1177
  "policy-items": n.value.policyItems,
1086
- onClose: je,
1087
- onActionHandling: a[3] || (a[3] = (e) => Pe(e)),
1088
- onAddDocumentations: Me,
1089
- onAddAccessServices: Be,
1090
- onAddModifiedDate: oe,
1091
- onAddIssuedDate: ie,
1092
- onAddDescription: se,
1093
- onAddAccessRights: t.handleAccessRights,
1094
- onAddAvailability: ne,
1095
- onAddLanguage: re,
1096
- onAddByteSize: ue,
1097
- onAddMediaType: w,
1098
- onAddCompressFormat: w,
1099
- onAddPackageFormat: w,
1100
- onAddStatus: de,
1101
- onAddChecksum: le,
1102
- onAddChangeLicense: ce,
1103
- onAddConformsToItems: ze,
1104
- onAddPolicyItems: Ne
1105
- }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "onAddAccessRights"])) : p("", !0),
1106
- F.value ? (u(), W(ft, {
1178
+ "download-URL": n.value.downloadURL,
1179
+ onClose: tt,
1180
+ onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1181
+ onAddDocumentations: qe,
1182
+ onAddAccessServices: Ge,
1183
+ onAddModifiedDate: ce,
1184
+ onAddIssuedDate: re,
1185
+ onAddDescription: ue,
1186
+ onAddAccessRights: a.handleAccessRights,
1187
+ onAddAvailability: me,
1188
+ onAddLanguage: he,
1189
+ onAddByteSize: ge,
1190
+ onAddMediaType: I,
1191
+ onAddCompressFormat: I,
1192
+ onAddPackageFormat: I,
1193
+ onAddStatus: fe,
1194
+ onAddChecksum: pe,
1195
+ onAddChangeLicense: ve,
1196
+ onAddConformsToItems: Qe,
1197
+ onAddPolicyItems: Xe
1198
+ }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL", "onAddAccessRights"])) : p("", !0),
1199
+ N.value ? (r(), X(It, {
1107
1200
  key: 1,
1108
1201
  buttons: V.value.button,
1109
1202
  "header-text": V.value.header,
1110
1203
  text: V.value.text,
1111
1204
  action: V.value.action,
1112
- onClose: a[4] || (a[4] = (e) => F.value = !1),
1113
- onActionHandling: a[5] || (a[5] = (e) => Oe(e))
1205
+ onClose: t[4] || (t[4] = (e) => N.value = !1),
1206
+ onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1114
1207
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1115
1208
  ], 64));
1116
1209
  }
1117
- }, Ha = /* @__PURE__ */ Lt(ua, [["__scopeId", "data-v-98a8ca66"]]);
1210
+ }, no = /* @__PURE__ */ Pt(Ua, [["__scopeId", "data-v-c3a67881"]]);
1118
1211
  export {
1119
- Ha as default
1212
+ no as default
1120
1213
  };