@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,90 @@
1
+ import { defineComponent as C, computed as E, createBlock as y, openBlock as a, unref as o, isRef as $, withCtx as m, createElementBlock as h, createCommentVNode as i, createElementVNode as t, toDisplayString as B, createVNode as b } from "vue";
2
+ import N from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
3
+ import g from "../HappyFlowComponents/ui/ButtonV3.vue.js";
4
+ import { useErrorDialog as R } from "../composables/useErrorDialog.js";
5
+ import { useRouter as T, useRoute as F } from "vue-router";
6
+ import { useRuntimeEnv as S } from "../../composables/useRuntimeEnv.js";
7
+ const q = {
8
+ key: 0,
9
+ class: "dpiV3_modalErrorContent"
10
+ }, M = { class: "dpiV3_modalErrorMain" }, w = {
11
+ key: 0,
12
+ class: "error-message"
13
+ }, z = { class: "development-notice" }, A = ["value"], J = { class: "dpiV3_modalActions" }, K = /* @__PURE__ */ C({
14
+ __name: "TheErrorDialog",
15
+ setup(O) {
16
+ const k = T(), l = F(), { open: r, error: n, currentError: u, userMessage: c } = R(), p = S(), f = !0, V = () => {
17
+ r.value = !1;
18
+ }, D = () => {
19
+ k.push("/");
20
+ }, x = E(() => {
21
+ var d, e, s, _, v;
22
+ return `${(d = u == null ? void 0 : u.value) == null ? void 0 : d.message}
23
+
24
+ ----
25
+
26
+ id = ${(e = l.query) == null ? void 0 : e.id}; fromDraft = ${(s = l.query) == null ? void 0 : s.fromDraft}; edit = ${(_ = l.query) == null ? void 0 : _.edit}
27
+
28
+ ----
29
+
30
+ ${(v = n == null ? void 0 : n.value) == null ? void 0 : v.stack}
31
+
32
+ ----
33
+
34
+ ${JSON.stringify(p.api, null, 2)}
35
+
36
+ ----
37
+
38
+ ${JSON.stringify(p.authentication.keycloak, null, 2)}
39
+
40
+ `;
41
+ });
42
+ return (d, e) => (a(), y(N, {
43
+ persistent: !o(f),
44
+ modelValue: o(r),
45
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => $(r) ? r.value = s : null),
46
+ onClose: "() => {}"
47
+ }, {
48
+ header: m(() => e[1] || (e[1] = [
49
+ t("h2", { class: "dpiV3_modalTitle" }, [
50
+ t("strong", null, "Fehler beim Laden des Datensatzes")
51
+ ], -1)
52
+ ])),
53
+ footer: m(() => [
54
+ t("div", J, [
55
+ o(f) ? (a(), y(g, {
56
+ key: 0,
57
+ onClick: V,
58
+ buttonText: "Trotzdem Fortfahren",
59
+ variant: "secondary"
60
+ })) : i("", !0),
61
+ b(g, {
62
+ onClick: D,
63
+ buttonText: "Schließen",
64
+ variant: "primary"
65
+ })
66
+ ])
67
+ ]),
68
+ default: m(() => [
69
+ o(n) ? (a(), h("div", q, [
70
+ t("div", M, [
71
+ o(c) ? (a(), h("p", w, B(o(c)), 1)) : i("", !0),
72
+ e[2] || (e[2] = t("p", { class: "error-message" }, "Ein Fehler ist aufgetreten. Die folgenden Details können den Betreibenden bei der Fehleranalyse helfen.", -1)),
73
+ t("div", z, [
74
+ t("textarea", {
75
+ readonly: "",
76
+ class: "error-textarea",
77
+ value: x.value
78
+ }, null, 8, A)
79
+ ])
80
+ ]),
81
+ i("", !0)
82
+ ])) : i("", !0)
83
+ ]),
84
+ _: 1
85
+ }, 8, ["persistent", "modelValue"]));
86
+ }
87
+ });
88
+ export {
89
+ K as default
90
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./TheErrorDialog.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,52 @@
1
+ import { ref as m, createElementBlock as s, openBlock as l, createElementVNode as a, createVNode as r, createCommentVNode as g, toDisplayString as n, unref as i } from "vue";
2
+ import { useI18n as _ } from "vue-i18n";
3
+ /* empty css */
4
+ /* empty css */
5
+ import h from "../HappyFlowComponents/ui/InputField.vue.js";
6
+ import { PhWarning as v } from "@phosphor-icons/vue";
7
+ /* empty css */
8
+ import I from "../../_virtual/_plugin-vue_export-helper.js";
9
+ import { useEditModeInfo as V } from "../composables/useDpiEditMode.js";
10
+ const E = { class: "V3-typography dpiV3_Frame_3841" }, T = { class: "copy-large-regular" }, y = {
11
+ key: 0,
12
+ class: "dpiV3_errormsgWrapper"
13
+ }, b = {
14
+ __name: "TitelPage",
15
+ props: {
16
+ context: Object
17
+ },
18
+ setup(d) {
19
+ const { t: x } = _(), { isEditMode: p } = V(), c = d;
20
+ let e = m([{ isValid: "unset", "@value": "", "@language": "de" }]);
21
+ p.value || c.context.node.input(e);
22
+ const f = (t) => {
23
+ t.target.value != "" ? e.value[0].isValid = !0 : e.value[0].isValid = !1, e.value[0]["@value"] = t.target.value;
24
+ };
25
+ return (t, o) => (l(), s("div", E, [
26
+ a("h4", null, n(t.$t("message.dataupload.datasets.dct:title.title")), 1),
27
+ a("div", T, n(t.$t("message.dataupload.datasets.dct:title.description")), 1),
28
+ r(h, {
29
+ onInput: f,
30
+ addOnText: !1,
31
+ datePicker: !1,
32
+ infoIcon: !1,
33
+ placeholder: "Geben Sie Ihrem Datensatz einen Titel...",
34
+ preIcon: !1,
35
+ initialHintText: !1,
36
+ label: "Titel",
37
+ showEndIcon: !1,
38
+ showError: i(e)[0].isValid === !1
39
+ }, null, 8, ["showError"]),
40
+ i(e).find((u) => u.isValid === !1) ? (l(), s("div", y, [
41
+ r(i(v), {
42
+ size: 16,
43
+ weight: "fill"
44
+ }),
45
+ o[0] || (o[0] = a("span", { class: "copy-mini-regular" }, "Bitte geben Sie einen Titel ein, bevor Sie fortfahren.", -1))
46
+ ])) : g("", !0)
47
+ ]));
48
+ }
49
+ }, M = /* @__PURE__ */ I(b, [["__scopeId", "data-v-56919f9a"]]);
50
+ export {
51
+ M as default
52
+ };
@@ -0,0 +1,75 @@
1
+ import { getCurrentInstance as h, ref as n, computed as q, onMounted as _, resolveComponent as b, createElementBlock as $, openBlock as l, createElementVNode as y, createBlock as r, toDisplayString as U } from "vue";
2
+ import "vue-router";
3
+ import { isNil as k } from "lodash-es";
4
+ import C from "axios";
5
+ import { useStore as x } from "vuex";
6
+ import { useI18n as N } from "vue-i18n";
7
+ import { useDpiContext as S } from "../composables/useDpiContext.js";
8
+ const B = { class: "formkitProperty DSid" }, E = {
9
+ props: ["context"]
10
+ }, G = /* @__PURE__ */ Object.assign(E, {
11
+ __name: "UniqueIdentifierInput",
12
+ setup(F) {
13
+ let u = h().appContext.app.config.globalProperties.$env;
14
+ const p = x(), m = S(), c = n(localStorage.getItem("dpi_duplicate") || !1), f = q(() => {
15
+ var t;
16
+ return !!((t = m.value.edit) != null && t.enabled);
17
+ }), { t: i, locale: M } = N({ useScope: "global" }), s = n({
18
+ idformatvalid: "",
19
+ idunique: "",
20
+ required: ""
21
+ });
22
+ _(() => {
23
+ s.value.idformatvalid = i("message.dataupload.datasets.datasetID.invalidFormat"), s.value.idunique = i("message.dataupload.datasets.datasetID.duplicate"), s.value.required = i("message.dataupload.datasets.datasetID.required");
24
+ });
25
+ const o = p.getters["auth/getUserDraftIds"], v = u.api.hubUrl;
26
+ function I(t) {
27
+ const a = t == null ? void 0 : t.value;
28
+ return new Promise(async (e) => {
29
+ (k(a) || a === "" || a === void 0) && e(!0), (o == null ? void 0 : o.includes(a)) && e(!1);
30
+ const D = `${v}datasets/${a}?useNormalizedId=true`;
31
+ try {
32
+ const d = await C.head(D);
33
+ !(d.status >= 200 && d.status < 300) && e(!1);
34
+ } catch {
35
+ e(!0);
36
+ }
37
+ e(!1);
38
+ });
39
+ }
40
+ function g(t) {
41
+ return /^[a-z0-9-]*$/.test(t.value);
42
+ }
43
+ return (t, a) => {
44
+ const e = b("FormKit");
45
+ return l(), $("div", B, [
46
+ y("h4", null, U(t.$t("message.dataupload.datasets.datasetID.label")), 1),
47
+ !f.value || c.value ? (l(), r(e, {
48
+ key: 0,
49
+ type: "text",
50
+ name: "datasetID",
51
+ id: "datasetID",
52
+ placeholder: t.$t("message.dataupload.datasets.datasetID.label"),
53
+ info: t.$t("message.dataupload.datasets.datasetID.info"),
54
+ help: t.$t("message.dataupload.datasets.datasetID.help"),
55
+ "validation-rules": { idformatvalid: g, idunique: I },
56
+ validation: "required|idformatvalid|(900)idunique",
57
+ "validation-visibility": "live",
58
+ "validation-messages": s.value,
59
+ "outer-class": "formkitCmpWrap p-3"
60
+ }, null, 8, ["placeholder", "info", "help", "validation-rules", "validation-messages"])) : (l(), r(e, {
61
+ key: 1,
62
+ type: "text",
63
+ name: "datasetID",
64
+ id: "datasetID",
65
+ disabled: !0,
66
+ info: t.$t("message.dataupload.datasets.datasetID.info"),
67
+ help: t.$t("message.dataupload.datasets.datasetID.help")
68
+ }, null, 8, ["info", "help"]))
69
+ ]);
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ G as default
75
+ };
@@ -0,0 +1,75 @@
1
+ import { ref as d, createElementBlock as u, openBlock as p, createElementVNode as o, toDisplayString as r, createVNode as c, createCommentVNode as _, unref as l } from "vue";
2
+ import { PhWarning as D } from "@phosphor-icons/vue";
3
+ import V from "../HappyFlowComponents/ui/InputField.vue.js";
4
+ /* empty css */
5
+ import w from "../../_virtual/_plugin-vue_export-helper.js";
6
+ import { useEditModeInfo as S } from "../composables/useDpiEditMode.js";
7
+ const y = { class: "V3-typography" }, I = { class: "dpiV3InnerComponentWrap" }, b = { class: "copy-large-regular" }, M = { class: "input-container" }, T = {
8
+ key: 0,
9
+ class: "dpiV3_errormsgWrapper"
10
+ }, k = { class: "copy-mini-regular" }, E = {
11
+ __name: "UpdateDate",
12
+ props: {
13
+ context: Object
14
+ },
15
+ setup(f) {
16
+ const m = f, a = /* @__PURE__ */ new Date();
17
+ a.getFullYear(), String(a.getMonth() + 1).padStart(2, "0"), String(a.getDate()).padStart(2, "0");
18
+ let e = d([{ isValid: "unset", "@type": "http://www.w3.org/2001/XMLSchema#date" }]), s = d("Bitte geben Sie ein Aktualisierungsdatum ein, bevor Sie fortfahren.");
19
+ const { isEditMode: g } = S();
20
+ g.value || m.context.node.input(e);
21
+ const h = (n) => {
22
+ const t = n.target.value;
23
+ if (t === "") {
24
+ e.value[0].isValid = !1, s.value = "Bitte geben Sie ein Aktualisierungsdatum ein, bevor Sie fortfahren.", e.value[0]["@value"] = t;
25
+ return;
26
+ }
27
+ const i = new Date(t);
28
+ if (isNaN(i.getTime())) {
29
+ e.value[0].isValid = !1, s.value = "Bitte geben Sie ein gültiges Datum ein.", e.value[0]["@value"] = t;
30
+ return;
31
+ }
32
+ const v = new Date(a.getFullYear(), a.getMonth(), a.getDate());
33
+ if (new Date(i.getFullYear(), i.getMonth(), i.getDate()) > v) {
34
+ e.value[0].isValid = !1, s.value = "Das Datum darf nicht in der Zukunft liegen.", e.value[0]["@value"] = t;
35
+ return;
36
+ }
37
+ e.value[0].isValid = !0, e.value[0]["@value"] = t;
38
+ };
39
+ return (n, t) => (p(), u("div", y, [
40
+ o("div", I, [
41
+ o("h4", null, r(n.$t("message.dataupload.datasets.dct:modified.title")), 1),
42
+ o("div", b, r(n.$t("message.dataupload.datasets.dct:modified.description")), 1),
43
+ o("div", M, [
44
+ c(V, {
45
+ onInput: h,
46
+ defaultInput: !0,
47
+ addOnText: !1,
48
+ eraseable: !1,
49
+ datePicker: !0,
50
+ infoIcon: !1,
51
+ placeholder: "TT/MM/JJJJ",
52
+ label: "Aktualisierungsdatum",
53
+ preIcon: !1,
54
+ inputFieldSize: "large",
55
+ initialHintText: !1,
56
+ showEndIcon: !1,
57
+ inputType: "date",
58
+ showError: l(e)[0].isValid === !1,
59
+ modelValue: n.todayDate
60
+ }, null, 8, ["showError", "modelValue"]),
61
+ l(e).find((i) => i.isValid === !1) ? (p(), u("div", T, [
62
+ c(l(D), {
63
+ size: 16,
64
+ weight: "fill"
65
+ }),
66
+ o("span", k, r(l(s)), 1)
67
+ ])) : _("", !0)
68
+ ])
69
+ ])
70
+ ]));
71
+ }
72
+ }, Y = /* @__PURE__ */ w(E, [["__scopeId", "data-v-2dbc8fb6"]]);
73
+ export {
74
+ Y as default
75
+ };
@@ -0,0 +1,44 @@
1
+ import { ref as f, createElementBlock as o, openBlock as r, createElementVNode as a, createVNode as l, createCommentVNode as g, toDisplayString as n, unref as s } from "vue";
2
+ import h from "../HappyFlowComponents/ui/TextAreaV3.vue.js";
3
+ import { PhWarning as V } from "@phosphor-icons/vue";
4
+ /* empty css */
5
+ import v from "../../_virtual/_plugin-vue_export-helper.js";
6
+ import { useEditModeInfo as _ } from "../composables/useDpiEditMode.js";
7
+ const E = { class: "dpiV3InnerComponentWrap" }, I = { class: "copy-large-regular" }, b = {
8
+ key: 0,
9
+ class: "dpiV3_errormsgWrapper"
10
+ }, y = {
11
+ __name: "dpiV3Description",
12
+ props: {
13
+ context: Object
14
+ },
15
+ setup(d) {
16
+ const p = d;
17
+ let t = f([{ isValid: "unset", "@value": "", "@language": "de" }]);
18
+ const c = (e) => {
19
+ e.target.value != "" ? t.value[0].isValid = !0 : t.value[0].isValid = !1, t.value[0]["@value"] = e.target.value;
20
+ }, { isEditMode: u } = _();
21
+ return u.value || p.context.node.input(t), (e, i) => (r(), o("div", E, [
22
+ a("h4", null, n(e.$t("message.dataupload.datasets.dct:description.title")), 1),
23
+ a("div", I, n(e.$t("message.dataupload.datasets.dct:description.description")), 1),
24
+ l(h, {
25
+ onInput: c,
26
+ class: "dpiV3_input-field",
27
+ hint: !1,
28
+ label: e.$t("message.dataupload.datasets.dct:description.input.title"),
29
+ placeholder: e.$t("message.dataupload.datasets.dct:description.input.placeholder"),
30
+ showError: s(t)[0].isValid === !1
31
+ }, null, 8, ["label", "placeholder", "showError"]),
32
+ s(t).find((m) => m.isValid === !1) ? (r(), o("div", b, [
33
+ l(s(V), {
34
+ size: 16,
35
+ weight: "fill"
36
+ }),
37
+ i[0] || (i[0] = a("span", { class: "copy-mini-regular" }, "Bitte geben Sie einen Titel ein, bevor Sie fortfahren.", -1))
38
+ ])) : g("", !0)
39
+ ]));
40
+ }
41
+ }, S = /* @__PURE__ */ v(y, [["__scopeId", "data-v-8521a845"]]);
42
+ export {
43
+ S as default
44
+ };
@@ -0,0 +1,50 @@
1
+ import { computed as p, toValue as m, inject as f } from "vue";
2
+ import u from "axios";
3
+ const v = Symbol(
4
+ "autocomplete"
5
+ );
6
+ function $(r) {
7
+ const { envs: a, dpiContext: s } = r;
8
+ return {
9
+ name: "default",
10
+ adapter: {
11
+ requestFirstEntrySuggestions: async (t, e) => u.get(`${e}search?filter=vocabulary&vocabulary=${t}`),
12
+ requestAutocompleteSuggestions: async (t) => u.get(
13
+ `${t.base}search?filter=vocabulary&vocabulary=${t.voc}&q=${t.text}&limit=14`
14
+ ),
15
+ requestResourceName: async (t) => {
16
+ const { voc: e, uri: n } = t, l = p(
17
+ () => {
18
+ var o;
19
+ return (o = m(s)) == null ? void 0 : o.specification;
20
+ }
21
+ );
22
+ if (e === void 0 || e === "application") return;
23
+ let c = "";
24
+ if (e === "iana-media-types" || e === "spdx-checksum-algorithm")
25
+ c = `${a.api.baseUrl}vocabularies/${e}`;
26
+ else {
27
+ const o = n.replace(
28
+ l.value.vocabPrefixes[e],
29
+ ""
30
+ ), i = encodeURIComponent(o);
31
+ c = o !== i ? `${a.api.baseUrl}vocabularies/${e}/vocable?resource=${encodeURIComponent(n)}` : `${a.api.baseUrl}vocabularies/${e}/${i}`;
32
+ }
33
+ return u.get(c);
34
+ }
35
+ }
36
+ };
37
+ }
38
+ function g() {
39
+ const r = f(v);
40
+ if (!r)
41
+ throw new Error(
42
+ "[useAutocomplete] Autocomplete not found. Did you forget to inject it?"
43
+ );
44
+ return r;
45
+ }
46
+ export {
47
+ v as autocompleteKey,
48
+ $ as defaultAutocompleteAdapter,
49
+ g as useAutocomplete
50
+ };
@@ -0,0 +1,17 @@
1
+ import "@formkit/core";
2
+ import { provide as e, computed as n, toValue as i, inject as p } from "vue";
3
+ const o = Symbol("dpiContext");
4
+ function x() {
5
+ const t = p(o);
6
+ if (!t)
7
+ throw new Error("[useDpiContext] DPI Context not found. Did you forget to inject it?");
8
+ return t;
9
+ }
10
+ function c(t) {
11
+ e(o, n(() => i(t)));
12
+ }
13
+ export {
14
+ o as dpiContextKey,
15
+ c as setupDpiContext,
16
+ x as useDpiContext
17
+ };
@@ -0,0 +1,88 @@
1
+ import { useRoute as y } from "vue-router";
2
+ import { useDpiContext as j } from "./useDpiContext.js";
3
+ import { computed as o, toValue as n, watchEffect as R, watch as U } from "vue";
4
+ import { useStore as g } from "vuex";
5
+ import { useRuntimeEnv as A } from "../../composables/useRuntimeEnv.js";
6
+ import { useAsyncState as k } from "@vueuse/core";
7
+ import L from "axios";
8
+ import { useDpiSimpleLoader as Q } from "./useDpiSimpleLoader.js";
9
+ function _(u) {
10
+ const s = y(), a = g(), d = A(), m = o(() => {
11
+ var e, i;
12
+ return ((i = (e = n(u)) == null ? void 0 : e.edit) == null ? void 0 : i.enabled) ?? s.query.edit === "true";
13
+ }), l = o(() => {
14
+ var e, i;
15
+ return ((i = (e = n(u)) == null ? void 0 : e.edit) == null ? void 0 : i.id) ?? s.query.id;
16
+ }), c = o(() => {
17
+ var e, i;
18
+ return ((i = (e = n(u)) == null ? void 0 : e.edit) == null ? void 0 : i.fromDraft) ?? s.query.fromDraft ?? a.getters["auth/getIsDraft"];
19
+ });
20
+ m.value && (localStorage.setItem("dpi_editmode", "false"), a.dispatch("auth/setIsEditMode", !1));
21
+ const t = o(() => {
22
+ var v;
23
+ const e = c.value, i = (v = a.getters["auth/getUserData"]) == null ? void 0 : v.rtpToken, $ = s.params.property, M = s.params.id;
24
+ return { endpoint: e ? `${d.api.hubUrl}drafts/datasets/${l.value}.jsonld?catalogue=${s.query.catalog}` : s.params.property === "catalogues" ? `${d.api.hubUrl}catalogues/${s.query.catalog}.jsonld` : `${d.api.hubUrl}datasets/${l.value}.jsonld?useNormalizedId=true`, token: i, property: $, id: M };
25
+ }), { state: r, execute: D, isLoading: b, error: E } = k(
26
+ async () => (await L.get(t.value.endpoint, {
27
+ headers: {
28
+ Accept: "application/ld+json",
29
+ Authorization: `Bearer ${t.value.token}`
30
+ }
31
+ })).data,
32
+ void 0,
33
+ {
34
+ immediate: !1
35
+ }
36
+ );
37
+ R(() => {
38
+ r.value && console.log("the json.value = ", r.value);
39
+ });
40
+ const p = o(() => !!l.value && !!t.value.token);
41
+ U(p, () => {
42
+ if (!p.value) return;
43
+ const e = c.value;
44
+ a.dispatch("auth/setIsEditMode", !0), a.dispatch("auth/setIsDraft", e), D();
45
+ }, { immediate: !0 });
46
+ const { isReady: f, result: I, isMaterialized: h, errors: q } = Q(r, {
47
+ enabled: p,
48
+ hubSearchUrl: d.api.baseUrl
49
+ }), S = o(() => {
50
+ var e;
51
+ return (e = n(u).edit) != null && e.enabled ? !!a.getters["dpiStore/getSpecificationName"] && !b.value && f.value && h.value : !0;
52
+ });
53
+ return o(() => {
54
+ }), {
55
+ inEditModeAndRptAvailable: p,
56
+ isReady: S,
57
+ result: I,
58
+ isSimpleLoaderReady: f,
59
+ isMaterialized: h,
60
+ fetchError: E,
61
+ parsingErrors: q
62
+ };
63
+ }
64
+ function G() {
65
+ const u = y(), s = g(), a = j(), d = o(() => {
66
+ var t, r;
67
+ return ((r = (t = n(a)) == null ? void 0 : t.edit) == null ? void 0 : r.id) ?? u.query.id;
68
+ }), m = o(() => {
69
+ var t, r;
70
+ return ((r = (t = n(a)) == null ? void 0 : t.edit) == null ? void 0 : r.fromDraft) ?? u.query.fromDraft ?? s.getters["auth/getIsDraft"];
71
+ }), l = o(() => {
72
+ var t, r;
73
+ return ((r = (t = n(a)) == null ? void 0 : t.edit) == null ? void 0 : r.enabled) ?? u.query.edit;
74
+ }), c = o(() => {
75
+ var t;
76
+ return !!((t = n(a).edit) != null && t.enabled);
77
+ });
78
+ return {
79
+ editIdQuery: d,
80
+ editFromDraft: m,
81
+ editQuery: l,
82
+ isEditMode: c
83
+ };
84
+ }
85
+ export {
86
+ _ as useDpiEditMode,
87
+ G as useEditModeInfo
88
+ };
@@ -0,0 +1,8 @@
1
+ import { createSharedComposable as r } from "@vueuse/core";
2
+ import { ref as o } from "vue";
3
+ const t = r(() => ({
4
+ formValues: o({})
5
+ }));
6
+ export {
7
+ t as useFormValues
8
+ };