@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,246 @@
1
+ import { ref as h, computed as M, getCurrentInstance as S, unref as m, onMounted as I, createElementBlock as r, openBlock as d, createElementVNode as a, createCommentVNode as f, toDisplayString as i, createVNode as c, Fragment as y, renderList as $ } from "vue";
2
+ import { PhWarning as v } from "@phosphor-icons/vue";
3
+ import { useEditModeInfo as R } from "../composables/useDpiEditMode.js";
4
+ import w from "../HappyFlowComponents/ui/InputField.vue.js";
5
+ import B from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
6
+ /* empty css */
7
+ import W from "../../_virtual/_plugin-vue_export-helper.js";
8
+ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular" }, U = { class: "dpiV3AutoCompleteWrap" }, j = { class: "CardTips_internal" }, F = { class: "CardTips_Part" }, L = { class: "firstRow" }, O = { class: "icon_title copy-small-semi-bold" }, K = { class: "TextButton_small" }, Z = { class: "secondRow" }, q = { class: "copy-small-regular" }, G = { class: "CardTips_Part" }, H = { class: "firstRow" }, J = { class: "icon_title copy-small-semi-bold" }, Q = { class: "TextButton_small" }, X = { class: "secondRow" }, Y = { class: "copy-small-regular" }, ee = { class: "input-container" }, te = {
9
+ key: 0,
10
+ class: "dpiV3_errormsgWrapper"
11
+ }, ae = { class: "copy-mini-regular" }, se = { class: "input-container" }, oe = {
12
+ key: 0,
13
+ class: "dpiV3_errormsgWrapper"
14
+ }, le = { class: "copy-mini-regular" }, ne = { class: "input-container" }, ie = {
15
+ key: 0,
16
+ class: "dpiV3_errormsgWrapper"
17
+ }, re = { class: "copy-mini-regular" }, de = { class: "copy-large-regular" }, ce = {
18
+ key: 0,
19
+ class: "form-error-message"
20
+ }, k = "", ue = {
21
+ __name: "ContactPage",
22
+ props: {
23
+ context: Object
24
+ },
25
+ setup(C) {
26
+ const g = C, { isEditMode: pe } = R(), P = [
27
+ "Mobilitätsreferat der Landeshauptstadt München",
28
+ "contact@example.com",
29
+ "https://example.com"
30
+ ], _ = h([
31
+ "Mobilitätsreferat - Verkehrs- und Verhaltensdaten",
32
+ "verkehrsdaten.mor@muenchen.de"
33
+ ]), V = M(() => {
34
+ var s, t;
35
+ const e = (t = (s = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : s.idTokenParsed) == null ? void 0 : t.contact;
36
+ if (e) {
37
+ const n = {
38
+ organization: e.organization
39
+ };
40
+ return e.email && (n.email = e.email), e.website && (n.website = `https://${e.website}`), n;
41
+ }
42
+ return {};
43
+ }), o = h({
44
+ 1: {
45
+ show: !1,
46
+ message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
47
+ },
48
+ 2: {
49
+ show: !1,
50
+ message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
51
+ },
52
+ 3: {
53
+ show: !1,
54
+ message: "Bitte geben Sie eine gültige Telefonnummer ein."
55
+ }
56
+ });
57
+ let p = h({ 1: !1, 2: !1, 3: !1 });
58
+ const l = h([
59
+ {
60
+ isValid: "unset",
61
+ "vcard:fn": "",
62
+ "vcard:hasEmail": "",
63
+ "vcard:hasTelephone": ""
64
+ }
65
+ ]);
66
+ g.context.node.value.length === 0 && g.context.node.input(m(l)), I(() => {
67
+ try {
68
+ k && k["foaf:name"] && k["foaf:mbox"];
69
+ } catch (e) {
70
+ console.warn("Could not load publisher data from context:", e);
71
+ }
72
+ });
73
+ function E(e) {
74
+ return e.trim().length >= 2;
75
+ }
76
+ function T(e) {
77
+ return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
78
+ }
79
+ function z(e) {
80
+ return e.trim() === "" ? !0 : e.trim().length >= 6;
81
+ }
82
+ function u(e, s, t) {
83
+ l.value = l.value.map((b) => s in b ? { ...b, [s]: e } : b);
84
+ let n = !1;
85
+ if (t === 3 && e.trim() === "")
86
+ o.value[t].show = !1, p.value[t] = !0;
87
+ else if (e.trim() === "")
88
+ o.value[t].show = !0, p.value[t] = !1;
89
+ else {
90
+ switch (s) {
91
+ case "vcard:fn":
92
+ n = E(e);
93
+ break;
94
+ case "vcard:hasEmail":
95
+ n = T(e);
96
+ break;
97
+ case "vcard:hasTelephone":
98
+ n = z(e);
99
+ break;
100
+ default:
101
+ n = e.trim() !== "";
102
+ }
103
+ o.value[t].show = !n, p.value[t] = n;
104
+ }
105
+ p.value[1] && p.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = !1, g.context.node.input(l.value);
106
+ }
107
+ function x() {
108
+ u(P[0], "vcard:fn", 1), u(P[1], "vcard:hasEmail", 2);
109
+ }
110
+ function D() {
111
+ u(_.value[0], "vcard:fn", 1), u(_.value[1], "vcard:hasEmail", 2);
112
+ }
113
+ return (e, s) => (d(), r("div", N, [
114
+ a("h4", null, i(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
115
+ a("div", A, i(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
116
+ a("div", U, [
117
+ a("div", j, [
118
+ a("div", F, [
119
+ a("div", L, [
120
+ a("div", O, i(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
121
+ a("div", K, [
122
+ c(B, {
123
+ "button-text": e.$t(
124
+ "message.dataupload.datasets.dcat:contactPoint.useAccountButton"
125
+ ),
126
+ "icon-start": "DeleteBlue",
127
+ "icon-name": "copy",
128
+ class: "dpiV3_usedetailsButton",
129
+ onClick: x
130
+ }, null, 8, ["button-text"])
131
+ ])
132
+ ]),
133
+ a("div", Z, [
134
+ (d(!0), r(y, null, $(Object.values(V.value), (t) => (d(), r("span", q, i(t), 1))), 256))
135
+ ])
136
+ ]),
137
+ a("div", G, [
138
+ a("div", H, [
139
+ a("div", J, i(e.$t("message.metadata.publisher")), 1),
140
+ a("div", Q, [
141
+ c(B, {
142
+ "button-text": e.$t(
143
+ "message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
144
+ ),
145
+ "icon-start": "true",
146
+ "icon-name": "copy",
147
+ class: "",
148
+ onClick: D
149
+ }, null, 8, ["button-text"])
150
+ ])
151
+ ]),
152
+ a("div", X, [
153
+ (d(!0), r(y, null, $(_.value, (t) => (d(), r("span", Y, i(t), 1))), 256))
154
+ ])
155
+ ])
156
+ ])
157
+ ]),
158
+ a("div", ee, [
159
+ c(w, {
160
+ "model-value": l.value[0]["vcard:fn"],
161
+ "add-on-text": !1,
162
+ "date-picker": !1,
163
+ "info-icon": !1,
164
+ placeholder: e.$t(
165
+ "message.dataupload.datasets.dcat:contactPoint.nameInput.placeholder"
166
+ ),
167
+ "pre-icon": !1,
168
+ "input-field-size": "large",
169
+ "initial-hint-text": !1,
170
+ label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
171
+ "show-end-icon": !1,
172
+ "show-error": o.value[1].show,
173
+ "onUpdate:modelValue": s[0] || (s[0] = (t) => u(t, "vcard:fn", 1))
174
+ }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
175
+ o.value[1].show ? (d(), r("div", te, [
176
+ c(m(v), {
177
+ size: 16,
178
+ weight: "fill"
179
+ }),
180
+ a("span", ae, i(o.value[1].message), 1)
181
+ ])) : f("", !0)
182
+ ]),
183
+ a("div", se, [
184
+ c(w, {
185
+ "model-value": l.value[0]["vcard:hasEmail"],
186
+ "add-on-text": !1,
187
+ "date-picker": !1,
188
+ "info-icon": !1,
189
+ placeholder: e.$t(
190
+ "message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
191
+ ),
192
+ "pre-icon": !1,
193
+ "input-field-size": "large",
194
+ "initial-hint-text": !1,
195
+ label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
196
+ "show-end-icon": !1,
197
+ "show-error": o.value[2].show,
198
+ "onUpdate:modelValue": s[1] || (s[1] = (t) => u(t, "vcard:hasEmail", 2))
199
+ }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
200
+ o.value[2].show ? (d(), r("div", oe, [
201
+ c(m(v), {
202
+ size: 16,
203
+ weight: "fill"
204
+ }),
205
+ a("span", le, i(o.value[2].message), 1)
206
+ ])) : f("", !0)
207
+ ]),
208
+ a("div", ne, [
209
+ c(w, {
210
+ "model-value": l.value[0]["vcard:hasTelephone"],
211
+ "add-on-text": !1,
212
+ "date-picker": !1,
213
+ "info-icon": !1,
214
+ placeholder: e.$t(
215
+ "message.dataupload.datasets.dcat:contactPoint.telInput.placeholder"
216
+ ),
217
+ "pre-icon": !1,
218
+ "input-field-size": "large",
219
+ "initial-hint-text": !1,
220
+ label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
221
+ "show-end-icon": !1,
222
+ "show-error": o.value[3].show,
223
+ "onUpdate:modelValue": s[2] || (s[2] = (t) => u(t, "vcard:hasTelephone", 3))
224
+ }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
225
+ o.value[3].show ? (d(), r("div", ie, [
226
+ c(m(v), {
227
+ size: 16,
228
+ weight: "fill"
229
+ }),
230
+ a("span", re, i(o.value[3].message), 1)
231
+ ])) : f("", !0)
232
+ ]),
233
+ a("div", de, i(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
234
+ l.value.find((t) => t.isValid === !1) ? (d(), r("div", ce, [
235
+ c(m(v), {
236
+ size: 16,
237
+ weight: "fill"
238
+ }),
239
+ s[3] || (s[3] = a("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
240
+ ])) : f("", !0)
241
+ ]));
242
+ }
243
+ }, we = /* @__PURE__ */ W(ue, [["__scopeId", "data-v-2c2768bc"]]);
244
+ export {
245
+ we as default
246
+ };
@@ -0,0 +1,9 @@
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
+ const r = {};
3
+ function n(c, o) {
4
+ return "Covering Page";
5
+ }
6
+ const _ = /* @__PURE__ */ e(r, [["render", n]]);
7
+ export {
8
+ _ as default
9
+ };
@@ -0,0 +1,49 @@
1
+ import { mapActions as o, mapGetters as s } from "vuex";
2
+ import { createElementBlock as i, openBlock as n, createElementVNode as p } from "vue";
3
+ import c from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const u = {
5
+ props: ["id", "property", "catalog"],
6
+ data() {
7
+ return {};
8
+ },
9
+ computed: {
10
+ ...s("auth", ["getIsDraft", "getUserData"]),
11
+ token() {
12
+ return this.getUserData.rtpToken;
13
+ },
14
+ redirectUri() {
15
+ return `${this.$env.content.dataProviderInterface.basePath}/${this.property}?locale=${this.$i18n.locale}`;
16
+ }
17
+ },
18
+ methods: {
19
+ ...o("auth", ["setIsEditMode", "setIsDraft"]),
20
+ ...o("dpiStore", ["convertToInput"]),
21
+ async setupEditPage() {
22
+ this.$router.push({
23
+ name: "DataProviderInterface-Input",
24
+ params: { property: this.property },
25
+ query: {
26
+ locale: this.$route.query.locale,
27
+ edit: !0,
28
+ id: !this.getIsDraft && this.property === "catalogues" ? this.catalog : this.id,
29
+ catalog: this.catalog,
30
+ fromDraft: this.getIsDraft ? "true" : void 0
31
+ }
32
+ });
33
+ }
34
+ },
35
+ beforeRouteEnter(a, t, r) {
36
+ r((e) => {
37
+ t.fullPath.startsWith(e.redirectUri) ? e.$router.go(-1) : e.setupEditPage();
38
+ });
39
+ }
40
+ }, d = { style: { height: "370px" } };
41
+ function l(a, t, r, e, h, f) {
42
+ return n(), i("div", d, t[0] || (t[0] = [
43
+ p("div", { class: "spinner" }, null, -1)
44
+ ]));
45
+ }
46
+ const y = /* @__PURE__ */ c(u, [["render", l]]);
47
+ export {
48
+ y as default
49
+ };
@@ -0,0 +1,60 @@
1
+ import { computed as g, ref as l, getCurrentInstance as h, onMounted as x, createElementBlock as o, openBlock as n, createElementVNode as r, createCommentVNode as y, Fragment as V, renderList as C, unref as d, createBlock as I, createVNode as k } from "vue";
2
+ import D from "../HappyFlowComponents/ui/Chip.vue.js";
3
+ import { getDatasetCategories as E } from "../HappyFlowComponents/services/dpiV3_apis.js";
4
+ import { PhWarning as z } from "@phosphor-icons/vue";
5
+ /* empty css */
6
+ import U from "../../_virtual/_plugin-vue_export-helper.js";
7
+ import { useDpiContext as w } from "../composables/useDpiContext.js";
8
+ const B = { class: "dpiV3_findabilityWrap" }, P = { class: "dpiV3_findabilityThemesWrap" }, S = {
9
+ key: 0,
10
+ class: "dpiV3_errormsgWrapper"
11
+ }, W = {
12
+ __name: "DiscoverabilityPage",
13
+ props: {
14
+ context: Object
15
+ },
16
+ setup(u) {
17
+ const c = w(), f = g(() => {
18
+ var t;
19
+ return !!((t = c.value.edit) != null && t.enabled);
20
+ });
21
+ let s = l([]), m = h().appContext.app.config.globalProperties.$env, i = l([{ isValid: "unset" }]);
22
+ l(["this is a secret"]);
23
+ const p = u;
24
+ f.value || p.context.node.input(i);
25
+ const v = async () => {
26
+ try {
27
+ s.value = await E(m.api.baseUrl), s.value.sort((t, a) => t.pref_label.de.localeCompare(a.pref_label.de));
28
+ } catch (t) {
29
+ console.log(t);
30
+ }
31
+ }, _ = (t) => {
32
+ i.value.find((e) => e.id === t.id) ? i.value = i.value.filter((e) => e.id !== t.id) : i.value.push({ id: t.id, uri: t.resource, label: t.pref_label.de }), i.value.length > 1 ? i.value.find((e) => e.isValid = !0) : i.value.find((e) => e.isValid = !1), p.context.node.input(i);
33
+ };
34
+ return x(() => {
35
+ v();
36
+ }), (t, a) => (n(), o("div", B, [
37
+ a[1] || (a[1] = r("h4", { class: "dpiV3_title" }, "Machen Sie Ihren Datensatz leicht auffindbar", -1)),
38
+ a[2] || (a[2] = r("span", null, "Um sicherzustellen, dass Ihr Datensatz für andere leicht zu finden ist, wählen Sie die relevanten Kategorien aus.", -1)),
39
+ r("div", P, [
40
+ (n(!0), o(V, null, C(d(s), (e, b) => (n(), I(D, {
41
+ key: b,
42
+ text: e.pref_label.de,
43
+ data: { "@value": e.value, URI: e.URI },
44
+ setup: { "@type": "select", "@inTable": !1, "@findability": !0 },
45
+ onClick: (M) => _(e)
46
+ }, null, 8, ["text", "data", "onClick"]))), 128))
47
+ ]),
48
+ d(i).find((e) => e.isValid === !1) ? (n(), o("div", S, [
49
+ k(d(z), {
50
+ size: 16,
51
+ weight: "fill"
52
+ }),
53
+ a[0] || (a[0] = r("span", { class: "copy-mini-regular" }, "Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren.", -1))
54
+ ])) : y("", !0)
55
+ ]));
56
+ }
57
+ }, j = /* @__PURE__ */ U(W, [["__scopeId", "data-v-35202ed2"]]);
58
+ export {
59
+ j as default
60
+ };
@@ -0,0 +1,160 @@
1
+ import { ref as c, watch as y, onMounted as D, getCurrentInstance as C, createElementBlock as z, openBlock as V, createElementVNode as a, createVNode as h, createCommentVNode as I, createBlock as $, toDisplayString as n, unref as d, isRef as E, createTextVNode as v } from "vue";
2
+ import F from "../HappyFlowComponents/ui/InputField.vue.js";
3
+ import S from "../HappyFlowComponents/ui/Dropdown.vue.js";
4
+ import { PhLightbulb as B, PhArrowSquareOut as P } from "@phosphor-icons/vue";
5
+ import { getLicenses as M } from "../HappyFlowComponents/services/dpiV3_apis.js";
6
+ import { useEditModeInfo as O } from "../composables/useDpiEditMode.js";
7
+ /* empty css */
8
+ import U from "../../_virtual/_plugin-vue_export-helper.js";
9
+ const x = { class: "dpiV3InnerComponentWrap" }, H = { class: "copy-large-regular" }, W = {
10
+ key: 0,
11
+ class: "validation-error"
12
+ }, j = { class: "dpiV3_Content_InputPage" }, R = { class: "dpiV3_Card_Tips" }, q = { class: "dpiV3_Icon_Title" }, A = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, G = { class: "dpiV3_CT-Content" }, J = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, K = { class: "dpiV3_hvd_frame3846" }, Q = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, X = { class: "dpiV3_normal" }, Y = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Z = { class: "dpiV3_normal" }, ee = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, se = { class: "dpiV3_normal" }, te = { class: "dpiV3_link" }, ae = {
13
+ __name: "DistLicense",
14
+ props: {
15
+ context: Object,
16
+ changeLicenseText: { type: String, default: "" },
17
+ changeLicenseDropdownText: { type: String, default: "" }
18
+ },
19
+ setup(b) {
20
+ const { isEditMode: w } = O();
21
+ let L = c(!1), f = c([]), r = c("");
22
+ const u = c(""), g = b;
23
+ let l = c({ 1: !1, 2: !1 });
24
+ const i = c([
25
+ { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
26
+ ]);
27
+ w.value || g.context.node.input(i);
28
+ const T = (e, s, t) => {
29
+ _(e, s, t);
30
+ }, N = (e) => {
31
+ const s = typeof e == "object" && e.target ? e.target.value : e;
32
+ _(s, "dcterms:license", 1);
33
+ }, _ = (e, s, t, o) => {
34
+ !(e === "" || f.value.some((p) => p["@value"] === e)) && e !== "" ? (u.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", l.value[t] = !1, i.value[0].isValid = !1) : (u.value = "", L.value = e !== "", e !== "" ? (l.value[t] = !0, e !== "" && l.value[2] && (i.value[0].isValid = !0)) : (l.value[t] = !1, i.value[0].isValid = !1), i.value = i.value.map((p) => s in p ? { ...p, [s]: e, uri: o } : p)), g.context.node.input(i.value);
35
+ }, k = (e, s, t) => {
36
+ e.target.value != "" ? (l.value[t] = !0, l.value[1] && l.value[2] && (i.value[0].isValid = !0)) : (l.value[t] = !1, (!l.value[1] || !l.value[2]) && (i.value[0].isValid = !1));
37
+ const o = e.target.value;
38
+ i.value = i.value.map((m) => s in m ? { ...m, [s]: o } : m), g.context.node.input(i.value);
39
+ };
40
+ return y(r, (e) => {
41
+ let s = f.value.find(
42
+ (t) => t["@value"] === e
43
+ ).uri;
44
+ e !== void 0 && _(e, "dcterms:license", 1, s);
45
+ }), D(async () => {
46
+ const s = C().appContext.app.config.globalProperties.$env;
47
+ try {
48
+ const t = await M(s.api.baseUrl);
49
+ f.value = t.map((o) => ({
50
+ "@value": o.value,
51
+ label: o.label,
52
+ uri: o.uri
53
+ }));
54
+ } catch (t) {
55
+ console.error("Failed to load licenses", t);
56
+ }
57
+ }), (e, s) => (V(), z("div", x, [
58
+ a("h4", null, n(e.$t("message.dataupload.datasets.dct:license.title")), 1),
59
+ a("div", H, n(e.$t("message.dataupload.datasets.dct:license.description")), 1),
60
+ h(S, {
61
+ "onUpdate:modelValue": [
62
+ s[0] || (s[0] = (t) => T(t, "dcterms:license", 1)),
63
+ s[1] || (s[1] = (t) => E(r) ? r.value = t : r = t)
64
+ ],
65
+ onInput: N,
66
+ dropdownWidth: "large",
67
+ type: "inputField",
68
+ modelValue: d(r),
69
+ inputFieldProps: {
70
+ addOnText: !1,
71
+ initialHintText: !1,
72
+ datePicker: !1,
73
+ infoIcon: !1,
74
+ preIcon: !1,
75
+ label: "Lizenz",
76
+ dropdown_dpiV3: !0,
77
+ placeholder: "Lizenz wählen...",
78
+ inputFieldSize: "large",
79
+ modelValue: d(r),
80
+ defaultInput: !0,
81
+ showError: u.value !== "" || i.value[0].isValid === !1 && d(l)[1] === !1
82
+ },
83
+ data: d(f),
84
+ autocomplete: !0,
85
+ onDeleteButtonClicked: e.deleteModifiedField
86
+ }, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
87
+ u.value ? (V(), z("div", W, n(u.value), 1)) : I("", !0),
88
+ d(L) ? (V(), $(F, {
89
+ key: 1,
90
+ onInput: s[2] || (s[2] = (t) => k(t, "title", 2)),
91
+ modelValue: e.changeLicenseTitleText,
92
+ "onUpdate:modelValue": s[3] || (s[3] = (t) => e.changeLicenseTitleText = t),
93
+ addOnText: !1,
94
+ datePicker: !1,
95
+ infoIcon: !1,
96
+ placeholder: "Geben Sie den Namensnennungstext für Ihre Lizenz an...",
97
+ preIcon: !1,
98
+ inputFieldSize: "large",
99
+ initialHintText: !0,
100
+ label: "Nennung des Datenbereitstellers",
101
+ showEndIcon: !1,
102
+ defaultInput: !0,
103
+ onDeleteButtonClicked: e.deleteModifiedField,
104
+ supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
105
+ error_message: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
106
+ showError: i.value[0].isValid === !1 && d(l)[2] === !1
107
+ }, null, 8, ["modelValue", "onDeleteButtonClicked", "showError"])) : I("", !0),
108
+ a("div", j, [
109
+ a("div", R, [
110
+ a("div", q, [
111
+ h(d(B), {
112
+ size: 32,
113
+ color: "#009fe3"
114
+ }),
115
+ a("div", A, n(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
116
+ ]),
117
+ a("div", G, [
118
+ a("div", J, n(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
119
+ a("div", K, [
120
+ a("div", Q, [
121
+ v(n(e.$t(
122
+ "message.dataupload.datasets.dct:license.advices.licenseName1"
123
+ )) + " ", 1),
124
+ a("span", X, n(e.$t(
125
+ "message.dataupload.datasets.dct:license.advices.licenseName1_desc"
126
+ )), 1)
127
+ ]),
128
+ a("div", Y, [
129
+ v(n(e.$t(
130
+ "message.dataupload.datasets.dct:license.advices.licenseName2"
131
+ )) + " ", 1),
132
+ a("span", Z, n(e.$t(
133
+ "message.dataupload.datasets.dct:license.advices.licenseName2_desc"
134
+ )), 1)
135
+ ]),
136
+ a("div", ee, [
137
+ v(n(e.$t(
138
+ "message.dataupload.datasets.dct:license.advices.licenseName3"
139
+ )) + " ", 1),
140
+ a("span", se, n(e.$t(
141
+ "message.dataupload.datasets.dct:license.advices.licenseName3_desc"
142
+ )), 1)
143
+ ]),
144
+ a("div", te, [
145
+ h(d(P), { size: 24 }),
146
+ v(" " + n(e.$t(
147
+ "message.dataupload.datasets.dct:license.advices.linkToLicenses"
148
+ )), 1)
149
+ ])
150
+ ])
151
+ ])
152
+ ])
153
+ ]),
154
+ s[4] || (s[4] = a("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1))
155
+ ]));
156
+ }
157
+ }, pe = /* @__PURE__ */ U(ae, [["__scopeId", "data-v-ad7ba291"]]);
158
+ export {
159
+ pe as default
160
+ };