@piveau/dpi 0.1.0-beta.10

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 (203) 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 +149 -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 +75 -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 +248 -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 +116 -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 +45 -0
  82. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +69 -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 +210 -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 +158 -0
  98. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1159 -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 +108 -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 +422 -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 +15 -0
  128. package/dist/data-provider-interface/composables/useDpiEditMode.js +90 -0
  129. package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
  130. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +383 -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 +201 -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/index.js +32 -0
  161. package/dist/data-provider-interface/store/modules/authStore.js +301 -0
  162. package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
  163. package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
  164. package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
  165. package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
  166. package/dist/data-provider-interface/store/modules/dpiStore.js +32 -0
  167. package/dist/data-provider-interface/store/modules/navigationStore.js +24 -0
  168. package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
  169. package/dist/data-provider-interface/utils/general-helper.js +218 -0
  170. package/dist/data-provider-interface/utils/injectionKeys.js +5 -0
  171. package/dist/data-provider-interface/utils/translation-helper.js +31 -0
  172. package/dist/data-provider-interface/utils/useSteps.js +34 -0
  173. package/dist/data-provider-interface/views/DistributionInputPage.vue.js +100 -0
  174. package/dist/data-provider-interface/views/DistributionOverview.vue.js +201 -0
  175. package/dist/data-provider-interface/views/DraftsPage.vue.js +278 -0
  176. package/dist/data-provider-interface/views/InputPage.vue.js +1168 -0
  177. package/dist/data-provider-interface/views/LinkedDataViewer.vue.js +105 -0
  178. package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js +86 -0
  179. package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.js +214 -0
  180. package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.js +219 -0
  181. package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.js +19 -0
  182. package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.js +397 -0
  183. package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.js +56 -0
  184. package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.js +109 -0
  185. package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.js +92 -0
  186. package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.js +103 -0
  187. package/dist/data-provider-interface/views/OverviewPage.vue.js +189 -0
  188. package/dist/data-provider-interface/views/PropertyChooser.vue.js +41 -0
  189. package/dist/data-provider-interface/views/UserCataloguesPage.vue.js +74 -0
  190. package/dist/data-provider-interface/views/UserProfilePage.vue.js +83 -0
  191. package/dist/filters/dateFilters.js +39 -0
  192. package/dist/form/FormKitGroup.vue.js +55 -0
  193. package/dist/form/Repeatable.vue.js +7 -0
  194. package/dist/form/Repeatable.vue2.js +72 -0
  195. package/dist/form/inputDefinitions.js +131 -0
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.js +124 -0
  198. package/dist/utils/draftApi.js +33 -0
  199. package/dist/utils/helpers.js +46 -0
  200. package/dist/utils/identifiersApi.js +16 -0
  201. package/dist/utils/jwt.js +7 -0
  202. package/dist/widgets/AppLink.vue.js +118 -0
  203. package/package.json +101 -0
@@ -0,0 +1,108 @@
1
+ import { defineComponent as a, resolveComponent as d, createElementBlock as t, openBlock as r, mergeProps as p, createCommentVNode as n, createVNode as l, toDisplayString as u } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { PhTrash as f } from "@phosphor-icons/vue";
5
+ /* empty css */
6
+ import y from "../../../_virtual/_plugin-vue_export-helper.js";
7
+ const b = a({
8
+ name: "TextButtonLarge",
9
+ components: {
10
+ PhTrash: f
11
+ },
12
+ props: {
13
+ buttonText: {
14
+ type: String,
15
+ required: !1
16
+ },
17
+ size: {
18
+ type: String,
19
+ default: "large"
20
+ },
21
+ iconStart: {
22
+ type: String,
23
+ default: null
24
+ },
25
+ iconEnd: {
26
+ type: String,
27
+ default: null
28
+ },
29
+ disabled: {
30
+ type: Boolean,
31
+ default: !1
32
+ }
33
+ },
34
+ data() {
35
+ return {
36
+ isHovered: !1,
37
+ isPressed: !1
38
+ };
39
+ },
40
+ computed: {
41
+ dpiV3_buttonClass() {
42
+ const e = this.$attrs.class || "";
43
+ return [
44
+ "dpiV3_text-button-large",
45
+ { "dpiV3_text-button-disabled": this.disabled },
46
+ e
47
+ ];
48
+ },
49
+ iconSizeClass() {
50
+ return ["dpiV3_icon-large", this.$attrs.class || ""];
51
+ },
52
+ iconColor() {
53
+ return this.disabled ? "#67C5F0" : this.isPressed ? "#009FE3" : this.isHovered ? "#003F6F" : "#0172AD";
54
+ }
55
+ },
56
+ methods: {
57
+ async onPress(e) {
58
+ e.preventDefault(), this.isPressed = !0;
59
+ },
60
+ onKeyPress(e) {
61
+ (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !0);
62
+ },
63
+ onKeyRelease(e) {
64
+ (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !1, this.disabled || this.$emit("click", e));
65
+ }
66
+ }
67
+ }), m = ["disabled"], P = {
68
+ key: 0,
69
+ class: "dpiV3_icon-large"
70
+ }, g = { key: 1 }, C = {
71
+ key: 2,
72
+ class: "dpiV3_icon-large"
73
+ };
74
+ function k(e, s, h, S, V, $) {
75
+ const i = d("PhTrash");
76
+ return r(), t("button", p({
77
+ type: "button",
78
+ tabindex: "0",
79
+ class: [e.dpiV3_buttonClass, { "dpiV3_text-button-pressed": e.isPressed }],
80
+ disabled: e.disabled,
81
+ onMousedown: s[0] || (s[0] = (...o) => e.onPress && e.onPress(...o)),
82
+ onMouseup: s[1] || (s[1] = (o) => e.isPressed = !1),
83
+ onKeydown: s[2] || (s[2] = (...o) => e.onKeyPress && e.onKeyPress(...o)),
84
+ onKeyup: s[3] || (s[3] = (...o) => e.onKeyRelease && e.onKeyRelease(...o)),
85
+ onMouseover: s[4] || (s[4] = (o) => e.isHovered = !0),
86
+ onMouseleave: s[5] || (s[5] = () => {
87
+ e.isHovered = !1, e.isPressed = !1;
88
+ })
89
+ }, e.$attrs), [
90
+ e.iconStart ? (r(), t("span", P, [
91
+ l(i, {
92
+ size: 24,
93
+ color: e.iconColor
94
+ }, null, 8, ["color"])
95
+ ])) : n("", !0),
96
+ e.buttonText ? (r(), t("span", g, u(e.buttonText), 1)) : n("", !0),
97
+ e.iconEnd ? (r(), t("span", C, [
98
+ l(i, {
99
+ size: 24,
100
+ color: e.iconColor
101
+ }, null, 8, ["color"])
102
+ ])) : n("", !0)
103
+ ], 16, m);
104
+ }
105
+ const D = /* @__PURE__ */ y(b, [["render", k], ["__scopeId", "data-v-fb03843e"]]);
106
+ export {
107
+ D as default
108
+ };
@@ -0,0 +1,125 @@
1
+ import { defineComponent as u, resolveComponent as l, createElementBlock as n, openBlock as t, mergeProps as m, createCommentVNode as r, createBlock as i, toDisplayString as f, createVNode as y } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { PhCaretLeft as P, PhCopySimple as b, PhTrash as C } from "@phosphor-icons/vue";
5
+ /* empty css */
6
+ import c from "../../../_virtual/_plugin-vue_export-helper.js";
7
+ const h = u({
8
+ name: "TextButtonSmall",
9
+ components: {
10
+ PhTrash: C,
11
+ PhCopySimple: b,
12
+ PhCaretLeft: P
13
+ },
14
+ props: {
15
+ buttonText: {
16
+ type: String,
17
+ required: !1
18
+ },
19
+ size: {
20
+ type: String,
21
+ default: "small"
22
+ },
23
+ iconStart: {
24
+ type: Boolean,
25
+ default: null
26
+ },
27
+ iconEnd: {
28
+ type: Boolean,
29
+ default: null
30
+ },
31
+ disabled: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ iconName: {
36
+ type: String,
37
+ default: "trash"
38
+ }
39
+ },
40
+ data() {
41
+ return {
42
+ isHovered: !1,
43
+ isPressed: !1
44
+ };
45
+ },
46
+ computed: {
47
+ buttonClass() {
48
+ const e = this.$attrs.class || "";
49
+ return [
50
+ "dpiV3_text-button-small",
51
+ { "dpiV3_text-button-disabled": this.disabled },
52
+ e
53
+ ];
54
+ },
55
+ iconSizeClass() {
56
+ return ["dpiV3_icon-small", this.$attrs.class || ""];
57
+ },
58
+ iconColor() {
59
+ return this.disabled ? "#67C5F0" : this.isPressed ? "#009FE3" : this.isHovered ? "#003F6F" : "#0172AD";
60
+ }
61
+ },
62
+ methods: {
63
+ async onPress(e) {
64
+ e.preventDefault(), this.isPressed = !0;
65
+ },
66
+ onKeyPress(e) {
67
+ (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !0);
68
+ },
69
+ onKeyRelease(e) {
70
+ (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), this.isPressed = !1, this.disabled || this.$emit("click", e));
71
+ }
72
+ }
73
+ }), k = ["disabled"], S = {
74
+ key: 0,
75
+ class: "dpiV3_icon-small"
76
+ }, $ = { key: 1 }, B = {
77
+ key: 2,
78
+ class: "dpiV3_icon-small"
79
+ };
80
+ function K(e, s, T, V, v, z) {
81
+ const a = l("PhTrash"), d = l("PhCopySimple"), p = l("PhCaretLeft");
82
+ return t(), n("button", m({
83
+ type: "button",
84
+ tabindex: "0",
85
+ class: [e.buttonClass, { "dpiV3_text-button-pressed": e.isPressed }],
86
+ disabled: e.disabled,
87
+ onMousedown: s[0] || (s[0] = (...o) => e.onPress && e.onPress(...o)),
88
+ onMouseup: s[1] || (s[1] = (o) => e.isPressed = !1),
89
+ onKeydown: s[2] || (s[2] = (...o) => e.onKeyPress && e.onKeyPress(...o)),
90
+ onKeyup: s[3] || (s[3] = (...o) => e.onKeyRelease && e.onKeyRelease(...o)),
91
+ onMouseover: s[4] || (s[4] = (o) => e.isHovered = !0),
92
+ onMouseleave: s[5] || (s[5] = () => {
93
+ e.isHovered = !1, e.isPressed = !1;
94
+ })
95
+ }, e.$attrs), [
96
+ e.iconStart ? (t(), n("span", S, [
97
+ e.iconName === "trash" ? (t(), i(a, {
98
+ key: 0,
99
+ size: 24,
100
+ color: e.iconColor
101
+ }, null, 8, ["color"])) : r("", !0),
102
+ e.iconName === "copy" ? (t(), i(d, {
103
+ key: 1,
104
+ size: 24,
105
+ color: e.iconColor
106
+ }, null, 8, ["color"])) : r("", !0),
107
+ e.iconName === "caretLeft" ? (t(), i(p, {
108
+ key: 2,
109
+ size: 24,
110
+ color: e.iconColor
111
+ }, null, 8, ["color"])) : r("", !0)
112
+ ])) : r("", !0),
113
+ e.buttonText ? (t(), n("span", $, f(e.buttonText), 1)) : r("", !0),
114
+ e.iconEnd ? (t(), n("span", B, [
115
+ y(a, {
116
+ size: 24,
117
+ color: e.iconColor
118
+ }, null, 8, ["color"])
119
+ ])) : r("", !0)
120
+ ], 16, k);
121
+ }
122
+ const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-5d413fe3"]]);
123
+ export {
124
+ L as default
125
+ };
@@ -0,0 +1,69 @@
1
+ import { ref as i, createElementBlock as g, openBlock as v, normalizeClass as u, createElementVNode as s, toDisplayString as S, createVNode as c, unref as p } from "vue";
2
+ import x from "../img/x-circleFill.svg.js";
3
+ import _ from "../img/InfoFill.svg.js";
4
+ import T from "../img/CheckCircleFill.svg.js";
5
+ import B from "../img/WarningFill.svg.js";
6
+ import b from "./TextButtonSmall.vue.js";
7
+ import w from "./CrossOutButton.vue.js";
8
+ /* empty css */
9
+ const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" }, $ = {
10
+ __name: "Toast",
11
+ props: {
12
+ text: {
13
+ type: String,
14
+ required: !0
15
+ },
16
+ type: {
17
+ type: String,
18
+ required: !0
19
+ },
20
+ button: String,
21
+ action: String
22
+ },
23
+ setup(f) {
24
+ const o = i();
25
+ let n = i(!1), a = i(!1);
26
+ const e = f;
27
+ e.type === "info" && (o.value = _), e.type === "success" && (o.value = T), e.type === "warning" && (o.value = B), e.type === "error" && (o.value = x);
28
+ const l = (t) => {
29
+ t === "in" ? a.value = !0 : a.value = !1;
30
+ }, d = (t) => {
31
+ (t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
32
+ }, m = (t) => {
33
+ (t.code === "Space" || t.code === "Enter") && (n.value = !1);
34
+ };
35
+ return (t, r) => (v(), g("div", {
36
+ class: u(["toastBody", {
37
+ error: e.type === "error",
38
+ warning: e.type === "warning",
39
+ info: e.type === "info",
40
+ success: e.type === "success"
41
+ }])
42
+ }, [
43
+ s("div", E, [
44
+ s("img", {
45
+ src: o.value,
46
+ alt: ""
47
+ }, null, 8, K),
48
+ s("span", null, S(e.text), 1)
49
+ ]),
50
+ s("div", h, [
51
+ c(b, {
52
+ buttonText: e.button,
53
+ style: { margin: "auto" }
54
+ }, null, 8, ["buttonText"]),
55
+ c(w, {
56
+ onKeydown: d,
57
+ onKeyup: m,
58
+ onFocus: r[0] || (r[0] = (y) => l("in")),
59
+ onBlur: r[1] || (r[1] = (y) => l()),
60
+ type: "inToast",
61
+ class: u(["crossout", { pressed: p(n), focused: p(a) }])
62
+ }, null, 8, ["class"])
63
+ ])
64
+ ], 2));
65
+ }
66
+ };
67
+ export {
68
+ $ as default
69
+ };
@@ -0,0 +1,279 @@
1
+ import { getCurrentInstance as te, computed as I, ref as g, onMounted as ne, watch as W, watchEffect as ae, createElementBlock as r, openBlock as i, createCommentVNode as O, createElementVNode as s, unref as c, toDisplayString as m, withDirectives as B, isRef as $, vModelText as le, Fragment as L, renderList as T, vShow as oe, normalizeClass as se } from "vue";
2
+ import { useStore as re } from "vuex";
3
+ import { getTranslationFor as M } from "../../utils/helpers.js";
4
+ import { getNode as ie } from "@formkit/core";
5
+ import { onClickOutside as N } from "@vueuse/core";
6
+ import { useI18n as ce } from "vue-i18n";
7
+ import ue from "qs";
8
+ import de from "axios";
9
+ import { useAutocomplete as fe } from "../composables/aucotomplete.js";
10
+ const pe = { class: "formkitProperty" }, me = {
11
+ key: 0,
12
+ class: "formkitHeader"
13
+ }, ve = ["innerHTML"], he = { class: "formkitCmpWrap" }, ge = { class: "formkit-outer" }, ye = {
14
+ key: 0,
15
+ class: "d-flex formkit-inner"
16
+ }, xe = { class: "autocompleteInputSingleValue" }, _e = { key: 1 }, ke = { class: "d-flex align-items-center justify-content-center formkit-inner mb-2" }, be = ["placeholder"], we = ["onClick"], Ce = {
17
+ key: 0,
18
+ class: "d-flex flex-wrap"
19
+ }, Ie = { class: "activeResultsAutocompleteWrapper" }, Le = ["onClick"], Te = ["onClick"], Ae = { class: "w-100 mt-4" }, Se = { class: "d-flex justify-content-between align-items-center flex-wrap" }, Ve = {
20
+ key: 0,
21
+ class: "annifresultContainer"
22
+ }, Pe = ["onClick"], Oe = { class: "d-flex" }, $e = {
23
+ key: 1,
24
+ class: "d-flex flex-wrap"
25
+ }, Me = ["onClick"], Ne = ["innerHTML"], Be = {
26
+ __name: "AutocompleteInput",
27
+ props: {
28
+ context: Object
29
+ },
30
+ setup(X) {
31
+ let x = te().appContext.app.config.globalProperties.$env;
32
+ const { requestAutocompleteSuggestions: J, requestResourceName: z } = fe(), a = X;
33
+ re();
34
+ const { t: R, locale: A } = ce();
35
+ let v = I(() => a.context.value), u, _ = a.context.attrs.voc, G = I(() => R("message.dataupload.info.searchVocabulary")), K = I(() => R("message.dataupload.info.matchesNothingFound")), b = g({
36
+ value: { name: G }
37
+ }), f = g(), j = g(null), D = g(null), y = g({}), p = [], w = [], E = g({
38
+ value: !1
39
+ });
40
+ g();
41
+ let S = g({});
42
+ ne(async () => {
43
+ y.value = "";
44
+ });
45
+ let H = I(() => {
46
+ try {
47
+ if (a.context.attrs.class.includes("inDistribution"))
48
+ return !0;
49
+ } catch {
50
+ }
51
+ });
52
+ W(b, async () => {
53
+ }), W(S, async () => {
54
+ });
55
+ const q = async (t) => {
56
+ if (t != null) {
57
+ let n = _ === "iana-media-types" || _ === "spdx-checksum-algorithm", e;
58
+ return await z({ voc: _, uri: t, envs: x }).then(
59
+ (o) => {
60
+ a.context.attrs.property === "dcatde:politicalGeocodingURI" ? o != null && (e = n ? o.data.result.results.filter((l) => l.resource === t).map((l) => l.alt_label)[0].en : M(o.data.result.alt_label, A.value, [])) : o != null && (e = n ? o.data.result.results.filter((l) => l.resource === t).map((l) => l.pref_label)[0].en : M(o.data.result.pref_label, A.value, []));
61
+ }
62
+ ), e;
63
+ }
64
+ };
65
+ ae(async () => {
66
+ const t = v.value;
67
+ if (t.hasOwnProperty("name") && t.name === t.resource) {
68
+ let n;
69
+ a.context.attrs.multiple || (n = q(t.resource), a.context.node.input({ name: await n, resource: t.resource }));
70
+ }
71
+ if (t.length >= 1) {
72
+ let n = [];
73
+ for (let e = 0; e < t.length; e++)
74
+ t[e].name === t[e].resource && (n.push({ name: await q(t[e].resource), resource: t[e].resource }), a.context.node.input(n));
75
+ }
76
+ });
77
+ function V(t) {
78
+ let n = { step: "", prop: a.context.node.name }, e = JSON.parse(localStorage.getItem("dpi_datasets"));
79
+ for (let o = 0; o < Object.keys(e).length; o++)
80
+ for (let d = 0; d < Object.keys(e)[o].length; d++) {
81
+ let l = Object.entries(e);
82
+ try {
83
+ Object.keys(l[o][d]).filter((k) => {
84
+ k === a.context.node.name && (n.step = l[o][0], t === "erase" && (u = {}, e[n.step][n.prop] = u), e[n.step][n.prop] = u, localStorage.setItem("dpi_datasets", JSON.stringify(e)));
85
+ });
86
+ } catch {
87
+ }
88
+ }
89
+ window.removeEventListener("click", N);
90
+ }
91
+ N(j, (t) => f.value = !1), N(D, (t) => y.value = "");
92
+ let U = async (t, n) => {
93
+ let e = 10;
94
+ n != null && (e = e + 10);
95
+ let o = ue.stringify({
96
+ text: t,
97
+ limit: e
98
+ });
99
+ var d = {
100
+ method: "post",
101
+ url: _ == "eurovoc" ? x.content.dataProviderInterface.annifLinkSubject : x.content.dataProviderInterface.annifLinkTheme,
102
+ headers: {
103
+ "Content-Type": "application/x-www-form-urlencoded",
104
+ Accept: "application/json"
105
+ },
106
+ data: o
107
+ };
108
+ de(d).then(async (l) => {
109
+ for (let h = 0; h < l.data.results.length; h++)
110
+ w[h] = { name: l.data.results[h].label, resource: l.data.results[h].uri, activeValue: !1 };
111
+ let k = [];
112
+ v.value.length > 0 && v.value.forEach((h) => {
113
+ k.push({ name: h.name, resource: h.resource, activeValue: !0 });
114
+ }), l.data.results.length > 9 && (w[w.length + 1] = { name: "...", resource: "invalid", activeValue: !1 }), S.value = Y(k, w);
115
+ }).catch(function(l) {
116
+ console.log(l);
117
+ });
118
+ };
119
+ async function Q(t) {
120
+ t.resource === "invalid" ? C(5) : (P({ name: t.name, resource: t.resource }), C());
121
+ }
122
+ function Y(t, n) {
123
+ let e = t.concat(n), o = [], d = /* @__PURE__ */ new Set();
124
+ return e.forEach((l) => {
125
+ d.has(l.resource) || (d.add(l.resource), l.activeValue || o.push(l));
126
+ }), o;
127
+ }
128
+ const C = async (t) => {
129
+ let n = ie("Mandatory").value["dct:description"];
130
+ for (let e = 0; e < n.length; e++)
131
+ n[e]["@language"] === "en" && (t != null ? await U(n[e]["@value"], 5) : await U(n[e]["@value"]));
132
+ };
133
+ a.context.classes.outer += " autocompleteInput " + a.context.attrs.identifier;
134
+ const P = async (t) => {
135
+ if (y.value = "", Object.keys(t).length !== 1) {
136
+ if (v.value.length > 0 && (p = v.value), a.context.attrs.multiple)
137
+ if (p.length != 0) {
138
+ let n = { name: t.name, resource: t.resource }, e = p.filter((o) => o.name != t.name);
139
+ e.push(n), u = e, await a.context.node.input(u);
140
+ } else
141
+ p.push({ name: t.name, resource: t.resource }), u = p, await a.context.node.input(u);
142
+ else {
143
+ if (t.resource === "invalid") return;
144
+ t === "erase" ? (await a.context.node.input({}), V(t)) : (u = { name: t.name, resource: t.resource }, await a.context.node.input(u));
145
+ }
146
+ V();
147
+ }
148
+ }, Z = async (t) => {
149
+ let n = t.target.value;
150
+ await J({ voc: _, text: n, base: x.api.baseUrl }).then((e) => {
151
+ const d = e.data.result.results.filter((l) => l.id !== "OP_DATPRO").map((l) => ({
152
+ name: M(l.pref_label, A.value, []) + " (" + l.id + ")",
153
+ resource: l.resource
154
+ }));
155
+ d.length === 0 ? b.value = { value: { name: K } } : b.value = d;
156
+ });
157
+ };
158
+ function ee(t) {
159
+ a.context.node.input({}), P("erase");
160
+ }
161
+ function F(t) {
162
+ x.content.dataProviderInterface.annifIntegration && C(), v.value.length > 0 && (p = v.value), p.splice(p.findIndex((n) => n.name == t.name), 1), u = p, a.context.node.input(u), V();
163
+ }
164
+ return (t, n) => (i(), r("div", pe, [
165
+ c(H) ? (i(), r("h4", me, m(t.$t("message.dataupload.distributions." + a.context.attrs.identifier + ".label")), 1)) : O("", !0),
166
+ a.context.attrs.identifier != "licence" && !c(H) ? (i(), r("h4", {
167
+ key: 1,
168
+ innerHTML: t.$t("message.dataupload.datasets." + a.context.attrs.identifier + ".label")
169
+ }, null, 8, ve)) : O("", !0),
170
+ s("div", he, [
171
+ s("div", ge, [
172
+ !a.context.attrs.multiple && a.context.value.name ? (i(), r("div", ye, [
173
+ s("a", xe, m(a.context.value.name), 1),
174
+ s("div", {
175
+ class: "removeX",
176
+ onClick: ee
177
+ })
178
+ ])) : (i(), r("div", _e, [
179
+ s("div", ke, [
180
+ B(s("input", {
181
+ ref_key: "acInput",
182
+ ref: D,
183
+ class: "autocompleteInputfield",
184
+ placeholder: a.context.attrs.placeholder,
185
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => $(y) ? y.value = e : y = e),
186
+ type: "text",
187
+ onKeyup: n[1] || (n[1] = (e) => Z(e)),
188
+ onClick: n[2] || (n[2] = (e) => $(f) ? f.value = !c(f) : f = !c(f))
189
+ }, null, 40, be), [
190
+ [le, c(y)]
191
+ ])
192
+ ]),
193
+ B(s("ul", {
194
+ ref_key: "dropdownList",
195
+ ref: j,
196
+ class: "autocompleteResultList"
197
+ }, [
198
+ (i(!0), r(L, null, T(c(b), (e) => (i(), r("li", {
199
+ key: e,
200
+ onClick: (o) => {
201
+ P(e), $(f) ? f.value = !c(f) : f = !c(f);
202
+ },
203
+ class: "p-2 border-b border-gray-200 data-[selected=true]:bg-blue-100 choosableItemsAC"
204
+ }, m(e.name), 9, we))), 128))
205
+ ], 512), [
206
+ [oe, c(f)]
207
+ ]),
208
+ c(x).content.dataProviderInterface.annifIntegration && a.context.attrs.annifTheme ? (i(), r("div", Ce, [
209
+ (i(!0), r(L, null, T(c(v), (e) => (i(), r("div", { key: e }, [
210
+ s("div", Ie, [
211
+ s("div", {
212
+ class: "d-flex",
213
+ onClick: (o) => {
214
+ e.activeValue = !e.activeValue;
215
+ }
216
+ }, [
217
+ s("span", null, m(e.name), 1),
218
+ s("div", {
219
+ class: "removeX",
220
+ onClick: (o) => F(e)
221
+ }, null, 8, Te)
222
+ ], 8, Le)
223
+ ])
224
+ ]))), 128)),
225
+ s("div", Ae, [
226
+ s("div", Se, [
227
+ s("h3", null, m(t.$t("message.dataupload.info.suggestions")), 1),
228
+ s("span", null, m(t.$t("message.dataupload.info.suggestionText")), 1),
229
+ s("button", {
230
+ class: "navlikeButton",
231
+ type: "button",
232
+ onClick: n[3] || (n[3] = (e) => {
233
+ C(), c(E).value = !0;
234
+ })
235
+ }, m(t.$t("message.dataupload.info.tryIt")), 1)
236
+ ]),
237
+ c(E).value ? (i(), r("div", Ve, [
238
+ (i(!0), r(L, null, T(c(S), (e) => (i(), r("div", {
239
+ key: e,
240
+ class: "d-flex"
241
+ }, [
242
+ s("div", {
243
+ class: se(["activeResultsAutocompleteWrapper annifResults", { loadMore: e.resource === "invalid" }]),
244
+ onClick: (o) => {
245
+ e.activeValue = !e.activeValue, Q(e);
246
+ }
247
+ }, [
248
+ s("div", Oe, [
249
+ s("span", null, m(e.name), 1)
250
+ ])
251
+ ], 10, Pe)
252
+ ]))), 128))
253
+ ])) : O("", !0)
254
+ ])
255
+ ])) : (i(), r("div", $e, [
256
+ (i(!0), r(L, null, T(a.context.value, (e) => (i(), r("div", {
257
+ class: "activeResultsAutocompleteWrapper",
258
+ key: e
259
+ }, [
260
+ s("span", null, m(e.name), 1),
261
+ s("div", {
262
+ class: "removeX",
263
+ onClick: (o) => F(e)
264
+ }, null, 8, Me)
265
+ ]))), 128))
266
+ ])),
267
+ s("div", {
268
+ innerHTML: a.context.attrs.info,
269
+ class: "formkit-help"
270
+ }, null, 8, Ne)
271
+ ]))
272
+ ])
273
+ ])
274
+ ]));
275
+ }
276
+ };
277
+ export {
278
+ Be as default
279
+ };
@@ -0,0 +1,9 @@
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
+ const n = {};
3
+ function r(c, t) {
4
+ return "Grundlegende INFOS";
5
+ }
6
+ const s = /* @__PURE__ */ e(n, [["render", r]]);
7
+ export {
8
+ s as default
9
+ };