@piveau/dpi 0.1.0-beta.5

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