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