@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,96 @@
1
+ import { defineComponent as v, mergeModels as c, useModel as V, computed as f, createBlock as k, openBlock as _, unref as a, withCtx as i, createVNode as n, createElementVNode as o, renderSlot as d, createElementBlock as B, createCommentVNode as C } from "vue";
2
+ import { TransitionRoot as b, Dialog as y, TransitionChild as m, DialogPanel as M } from "@headlessui/vue";
3
+ import h from "./CrossOutButton.vue.js";
4
+ const $ = { class: "dpiV3_RapModalContainer" }, g = { class: "dpiV3_RapModalInner" }, R = { class: "dpiV3_modalHead" }, w = {
5
+ key: 0,
6
+ class: "dpiV3_closeButtonContainer"
7
+ }, D = { class: "dpiV3_modalBody" }, N = { class: "dpiV3_interactionWrap" }, P = /* @__PURE__ */ v({
8
+ __name: "DpiModalBase",
9
+ props: /* @__PURE__ */ c({
10
+ persistent: { type: Boolean }
11
+ }, {
12
+ modelValue: { type: Boolean },
13
+ modelModifiers: {}
14
+ }),
15
+ emits: ["update:modelValue"],
16
+ setup(s) {
17
+ const l = s, p = V(s, "modelValue"), r = f({
18
+ get() {
19
+ return p.value;
20
+ },
21
+ set(e) {
22
+ l.persistent && !e || (p.value = e);
23
+ }
24
+ });
25
+ return (e, t) => (_(), k(a(b), {
26
+ show: r.value,
27
+ as: "template"
28
+ }, {
29
+ default: i(() => [
30
+ n(a(y), {
31
+ onClose: t[1] || (t[1] = (u) => r.value = !1),
32
+ style: { position: "relative", "z-index": "10000" }
33
+ }, {
34
+ default: i(() => [
35
+ n(a(m), {
36
+ enter: "dpiV3__backdrop-transition--enter",
37
+ leave: "dpiV3__backdrop-transition--leave",
38
+ "enter-from": "dpiV3__backdrop-transition--enter-from",
39
+ "enter-to": "dpiV3__backdrop-transition--enter-to",
40
+ "leave-from": "dpiV3__backdrop-transition--leave-from",
41
+ "leave-to": "dpiV3__backdrop-transition--leave-to"
42
+ }, {
43
+ default: i(() => t[2] || (t[2] = [
44
+ o("div", { class: "dpiV3_backdrop" }, null, -1)
45
+ ])),
46
+ _: 1,
47
+ __: [2]
48
+ }),
49
+ o("div", $, [
50
+ n(a(m), {
51
+ enter: "dpiV3__modal-transition--enter",
52
+ leave: "dpiV3__modal-transition--leave",
53
+ "enter-from": "dpiV3__modal-transition--enter-from",
54
+ "enter-to": "dpiV3__modal-transition--enter-to",
55
+ "leave-from": "dpiV3__modal-transition--leave-from",
56
+ "leave-to": "dpiV3__modal-transition--leave-to"
57
+ }, {
58
+ default: i(() => [
59
+ n(a(M), { class: "dpiV3_RapModalOuter" }, {
60
+ default: i(() => [
61
+ o("div", g, [
62
+ o("div", R, [
63
+ d(e.$slots, "header", {}, void 0, !0),
64
+ l.persistent ? C("", !0) : (_(), B("div", w, [
65
+ n(h, {
66
+ onClick: t[0] || (t[0] = (u) => r.value = !1),
67
+ class: "dpiV3_closeButton",
68
+ type: "default"
69
+ })
70
+ ]))
71
+ ]),
72
+ o("div", D, [
73
+ d(e.$slots, "default", {}, void 0, !0)
74
+ ])
75
+ ]),
76
+ o("div", N, [
77
+ d(e.$slots, "footer", {}, void 0, !0)
78
+ ])
79
+ ]),
80
+ _: 3
81
+ })
82
+ ]),
83
+ _: 3
84
+ })
85
+ ])
86
+ ]),
87
+ _: 3
88
+ })
89
+ ]),
90
+ _: 3
91
+ }, 8, ["show"]));
92
+ }
93
+ });
94
+ export {
95
+ P as default
96
+ };
@@ -0,0 +1,231 @@
1
+ import { ref as p, computed as K, watch as C, createElementBlock as d, openBlock as r, createBlock as D, createCommentVNode as h, mergeProps as L, unref as B, withKeys as f, withModifiers as V, normalizeStyle as F, normalizeClass as T, createElementVNode as _, Fragment as x, renderList as E, toDisplayString as A, nextTick as N } from "vue";
2
+ import { onClickOutside as $ } from "@vueuse/core";
3
+ import J from "./TextButtonSmall.vue.js";
4
+ import Q from "./MoreButton.vue.js";
5
+ import X from "./InputField.vue.js";
6
+ import { useI18n as Y } from "vue-i18n";
7
+ /* empty css */
8
+ import Z from "../../../_virtual/_plugin-vue_export-helper.js";
9
+ const ee = { class: "dpiV3_dropdownV3" }, te = {
10
+ key: 0,
11
+ class: "dpiV3_loading"
12
+ }, le = {
13
+ key: 1,
14
+ class: "dpiV3_empty-state"
15
+ }, ae = {
16
+ key: 2,
17
+ class: "dpiV3_dropdown dpiV3_dropdownMulti"
18
+ }, oe = { class: "dpiV3_multiInnerWrap" }, ne = { class: "dpiV3_multiHeader" }, ue = { class: "dpiV3_btnWrap" }, re = ["onClick", "onKeydown", "onKeyup"], de = {
19
+ key: 0,
20
+ class: "dpiV3_multiSeperator"
21
+ }, se = {
22
+ key: 3,
23
+ class: "dpiV3_dropdown"
24
+ }, ie = ["onClick", "onKeydown", "onKeyup"], ce = {
25
+ __name: "Dropdown",
26
+ props: {
27
+ buttonText: {
28
+ type: String,
29
+ required: !0
30
+ },
31
+ text: {
32
+ type: String,
33
+ required: !0
34
+ },
35
+ type: {
36
+ type: String,
37
+ required: !0
38
+ },
39
+ data: {
40
+ type: Object,
41
+ required: !0
42
+ },
43
+ multi: {
44
+ type: Boolean
45
+ },
46
+ alignment: {
47
+ type: Boolean
48
+ },
49
+ inputFieldProps: {
50
+ type: Object,
51
+ default: () => ({})
52
+ },
53
+ dropdownWidth: {
54
+ type: String,
55
+ default: "medium",
56
+ validator: (k) => ["medium", "large"].includes(k)
57
+ },
58
+ isDisabled: {
59
+ type: Boolean,
60
+ default: !1
61
+ },
62
+ autocomplete: {
63
+ type: Boolean,
64
+ default: !1
65
+ },
66
+ modelValue: { type: String, default: "" },
67
+ loading: { type: Boolean, default: !1 }
68
+ // Loading prop from parent
69
+ },
70
+ emits: ["update:modelValue", "input", "deleteDropdownField", "valueSent", "chosenVocItem", "clickOutside"],
71
+ setup(k, { emit: I }) {
72
+ const { t: q } = Y(), w = p();
73
+ p("#0172AD");
74
+ let u = p(!1);
75
+ const v = p({});
76
+ p([]);
77
+ const n = p(0), b = p(!1), g = I, M = (t) => q("message.dataupload.datasets.dcatde:politicalGeocodingURI.titles." + t), a = k, S = K(() => {
78
+ if (a.multi) {
79
+ if (!a.data || !Array.isArray(a.data) || a.data.length === 0)
80
+ return !0;
81
+ for (const t of a.data)
82
+ if (t.list && t.list.length > 0)
83
+ return !1;
84
+ return !0;
85
+ } else
86
+ return !a.data || !Array.isArray(a.data) || a.data.length === 0;
87
+ });
88
+ C(() => a.loading, (t) => {
89
+ b.value = t;
90
+ });
91
+ const s = p(a.modelValue);
92
+ C(() => a.modelValue, (t) => {
93
+ s.value = t;
94
+ });
95
+ const U = () => {
96
+ y(), g("deleteDropdownField");
97
+ }, W = (t) => {
98
+ s.value = t.target.value, N(() => {
99
+ g("input", s.value);
100
+ }), a.autocomplete && s.value.length > 0 ? u.value = !0 : s.value.length === 0 && (u.value = !1);
101
+ }, O = K(() => {
102
+ if (!a.autocomplete)
103
+ return a.dropdownWidth === "large" ? "100%" : "161px";
104
+ }), y = (t) => {
105
+ a.autocomplete || a.isDisabled || (u.value = !u.value);
106
+ }, j = (t) => {
107
+ if (u.value && !b.value && !S.value) {
108
+ n.value--;
109
+ const e = Array.from(
110
+ document.querySelectorAll(".dpiV3_dropdown button")
111
+ );
112
+ e.length > 0 && (t.preventDefault(), n.value = (n.value + 1) % e.length, e[n.value].focus());
113
+ }
114
+ }, m = (t, e) => {
115
+ e.preventDefault(), (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (n.value = 0, v.value[t] || (v.value[t] = {}), v.value[t] = "var(--neutral-10, #fafafb)"), e.key === "Escape" && (n.value = 0, u.value = !u.value);
116
+ const l = Array.from(
117
+ document.querySelectorAll(".dpiV3_dropdownMulti .dpiV3_btnWrap button")
118
+ ), c = l.findIndex((o) => o === document.activeElement);
119
+ if (e.key === "ArrowDown") {
120
+ e.preventDefault();
121
+ const o = (c + 1) % l.length;
122
+ l[o].focus(), n.value = o;
123
+ } else if (e.key === "ArrowUp") {
124
+ e.preventDefault();
125
+ const o = (c - 1 + l.length) % l.length;
126
+ l[o].focus(), n.value = o;
127
+ }
128
+ }, P = (t, e) => {
129
+ e.preventDefault(), (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (a.data.forEach((l) => {
130
+ for (let c in l)
131
+ l[c].forEach((o) => {
132
+ o.selected = !1;
133
+ });
134
+ }), t.selected = !t.selected, s.value = t["@value"], u.value = !1);
135
+ }, R = (t, e) => {
136
+ e.preventDefault(), (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (v.value[t["@value"]] = "var(--neutral-10, #f1f1f3)", n.value = 0), e.key === "Escape" && (n.value = 0, u.value = !u.value);
137
+ const l = Array.from(document.querySelectorAll(".dpiV3_dropdown button"));
138
+ e.key === "ArrowDown" ? (e.preventDefault(), n.value = (n.value + 1) % l.length, l[n.value].focus()) : e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), n.value = (n.value - 1 + l.length) % l.length, l[n.value].focus()) : e.key === "Tab" && (e.preventDefault(), n.value = (n.value + 1) % l.length, l[n.value].focus());
139
+ }, z = (t, e) => {
140
+ e.preventDefault(), (e.key === "Enter" || e.key === " " || e.key === "Spacebar") && (a.data.forEach((l) => {
141
+ l.selected = !1;
142
+ }), t.selected = !t.selected, v.value[t["@value"]] = "var(--neutral-5, #fafafb)", s.value = t["@value"], u.value = !1);
143
+ }, G = (t, e, l) => {
144
+ g("valueSent", t, l), s.value = t.alt_label.de + " (" + l + ")", u.value = !1;
145
+ }, H = (t, e) => {
146
+ e.type === "keydown" && e.preventDefault(), e.type === "click" && (a.multi ? (a.data.forEach((l) => {
147
+ for (let c in l)
148
+ l[c].forEach((o) => {
149
+ o.selected = !1;
150
+ });
151
+ }), s.value = t["@value"], t.selected = !t.selected) : (a.data.forEach((l) => {
152
+ l.selected = !1;
153
+ }), t.selected = !t.selected, s.value = t["@value"]), u.value = !1, t["@value"] === void 0 && (s.value = t.pref_label.de || t.pref_label.en, g("chosenVocItem", t)), g("update:modelValue", t["@value"], t));
154
+ };
155
+ return $(w, (t) => {
156
+ u.value = !1;
157
+ }), (t, e) => (r(), d("div", ee, [
158
+ a.type === "textButtonSmall" ? (r(), D(J, {
159
+ key: 0,
160
+ buttonText: a.buttonText,
161
+ onClick: y,
162
+ ref_key: "accActive",
163
+ ref: w
164
+ }, null, 8, ["buttonText"])) : h("", !0),
165
+ a.type === "moreButton" ? (r(), D(Q, {
166
+ key: 1,
167
+ onClick: y,
168
+ ref_key: "accActive",
169
+ ref: w
170
+ }, null, 512)) : h("", !0),
171
+ a.type === "inputField" ? (r(), D(X, L({ key: 2 }, a.inputFieldProps, {
172
+ onClick: y,
173
+ onKeydown: [
174
+ f(V(y, ["prevent"]), ["space"]),
175
+ f(y, ["enter"]),
176
+ f(V(j, ["prevent"]), ["arrow-down"])
177
+ ],
178
+ onInput: W,
179
+ onDeleteButtonClicked: U,
180
+ modelValue: s.value,
181
+ dropDownExpanded: B(u),
182
+ ref_key: "accActive",
183
+ ref: w
184
+ }), null, 16, ["onKeydown", "modelValue", "dropDownExpanded"])) : h("", !0),
185
+ B(u) ? (r(), d("div", {
186
+ key: 3,
187
+ class: T(["dpiV3_dropdownWrapper", {
188
+ alignRight: a.alignment === "right"
189
+ }]),
190
+ style: F({ width: O.value })
191
+ }, [
192
+ b.value ? (r(), d("div", te, e[0] || (e[0] = [
193
+ _("div", { class: "dpiV3_loading-spinner" }, null, -1),
194
+ _("span", null, "Daten werden geladen...", -1)
195
+ ]))) : S.value ? (r(), d("div", le, e[1] || (e[1] = [
196
+ _("span", null, "Keine Ergebnisse gefunden", -1)
197
+ ]))) : a.multi ? (r(), d("ul", ae, [
198
+ (r(!0), d(x, null, E(k.data, (l, c) => (r(), d("div", oe, [
199
+ _("div", ne, A(t.$t("message.dataupload.datasets.dcatde:politicalGeocodingURI.titles." + l.headers)), 1),
200
+ (r(!0), d(x, null, E(l.list, (o, pe) => (r(), d("div", ue, [
201
+ _("button", {
202
+ onClick: (i) => G(o, i, M(l.headers)),
203
+ onKeydown: [
204
+ f((i) => m(o, i), ["enter"]),
205
+ f(V((i) => m(o, i), ["prevent"]), ["space"]),
206
+ f((i) => m(o, i), ["arrow-down"]),
207
+ f((i) => m(o, i), ["arrow-up"])
208
+ ],
209
+ onKeyup: (i) => P(o, i)
210
+ }, A(o.alt_label.de), 41, re)
211
+ ]))), 256)),
212
+ c - 1 != Object.values(l).length ? (r(), d("div", de)) : h("", !0)
213
+ ]))), 256))
214
+ ])) : (r(), d("ul", se, [
215
+ (r(!0), d(x, null, E(k.data, (l, c) => (r(), d("button", {
216
+ onClick: (o) => H(l, o),
217
+ onKeydown: (o) => R(l, o),
218
+ onKeyup: (o) => z(l, o),
219
+ class: T({ dpiV3_selected: l.selected }),
220
+ style: F({
221
+ background: v.value[l["@value"]] || "initial"
222
+ })
223
+ }, A(l["@value"] || l.pref_label.de), 47, ie))), 256))
224
+ ]))
225
+ ], 6)) : h("", !0)
226
+ ]));
227
+ }
228
+ }, me = /* @__PURE__ */ Z(ce, [["__scopeId", "data-v-ed0325fe"]]);
229
+ export {
230
+ me as default
231
+ };
@@ -0,0 +1,33 @@
1
+ import { createElementBlock as t, openBlock as e, createCommentVNode as o } from "vue";
2
+ import s from "../img/IllustrationCelebrate.svg.js";
3
+ import a from "../img/IllustrationStart.svg.js";
4
+ /* empty css */
5
+ import i from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const l = { class: "dpiV3_illustration-wrapper" }, c = {
7
+ key: 0,
8
+ class: "dpiV3_illustration-celebrate-svg",
9
+ src: s,
10
+ alt: "Celebrate Illustration"
11
+ }, n = {
12
+ key: 1,
13
+ class: "dpiV3_illustration-start-svg",
14
+ src: a,
15
+ alt: "Start Illustration"
16
+ }, m = {
17
+ __name: "Illustration",
18
+ props: {
19
+ illustrationName: {
20
+ type: String,
21
+ default: "celebrate"
22
+ }
23
+ },
24
+ setup(r) {
25
+ return (_, p) => (e(), t("div", l, [
26
+ r.illustrationName === "celebrate" ? (e(), t("img", c)) : o("", !0),
27
+ r.illustrationName === "start" ? (e(), t("img", n)) : o("", !0)
28
+ ]));
29
+ }
30
+ }, I = /* @__PURE__ */ i(m, [["__scopeId", "data-v-e7bfe795"]]);
31
+ export {
32
+ I as default
33
+ };