@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.50

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