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