@piveau/dpi 0.1.0-beta.8 → 0.1.0-beta.83

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