@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,82 @@
1
+ const e = {
2
+ datasets: {
3
+ Landing: ["landingpage"],
4
+ Discoverability: ["discoverabilitypage", "hvd"],
5
+ BasicInfos: [
6
+ "titelpage",
7
+ "descriptionV3",
8
+ "updatedate",
9
+ "publisherV3",
10
+ "contactpage"
11
+ ],
12
+ Covering: ["geocodingURI", "temporalCoverage"],
13
+ DistributionSimple: ["distributionsimplepage", "distLicense"],
14
+ ReviewAndPublish: ["reviewandpublishpage"],
15
+ Additionals: [
16
+ "contributorID",
17
+ "geocodingDescription",
18
+ "identifier",
19
+ "admsIdentifier",
20
+ "versionInfo",
21
+ "versionNotes",
22
+ "legalBasis",
23
+ "relation",
24
+ "landingPage",
25
+ "language",
26
+ "conformsTo",
27
+ "accessRights",
28
+ "provenance",
29
+ "accrualPeriodicity",
30
+ "type",
31
+ "wasGeneratedBy",
32
+ "spatialResolutionInMeters",
33
+ "temporalResolution",
34
+ "qualifiedAttribution",
35
+ "qualifiedRelation",
36
+ "isReferencedBy",
37
+ "source",
38
+ "hasVersion",
39
+ "isVersionOf",
40
+ "creator",
41
+ "contributor"
42
+ ]
43
+ },
44
+ distributions: {
45
+ Recommended: ["dct:modified", "dct:description"],
46
+ Advanced: [
47
+ "dcatde:licenseAttributionByText",
48
+ "dcatap:availability",
49
+ "dcat:byteSize",
50
+ "dct:issued",
51
+ "dct:language",
52
+ "foaf:page",
53
+ "dct:accessRights",
54
+ "dct:conformsTo",
55
+ "dcat:mediaType",
56
+ "dcat:compressFormat",
57
+ "dcat:packageFormat",
58
+ "odrl:hasPolicy",
59
+ "adms:status",
60
+ "dcat:accessService",
61
+ "spdx:checksum",
62
+ "dcterms:license"
63
+ ]
64
+ },
65
+ catalogues: {
66
+ Mandatory: [
67
+ "title",
68
+ "availabilityCatDE",
69
+ "datasetID",
70
+ "description",
71
+ "publisher",
72
+ "language",
73
+ "homepage",
74
+ "licence"
75
+ ],
76
+ Advised: ["spatial", "hasPart", "isPartOf", "rights", "catalog", "creator"],
77
+ Overview: ["overview"]
78
+ }
79
+ };
80
+ export {
81
+ e as default
82
+ };
@@ -0,0 +1,5 @@
1
+ import e from "../dcatapde/prefixes.js";
2
+ const p = JSON.parse(JSON.stringify(e));
3
+ export {
4
+ p as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import e from "../dcatapde/vocab-prefixes.js";
2
+ const r = JSON.parse(JSON.stringify(e));
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import o from "../dcatapde/format-types.js";
2
+ const t = JSON.parse(JSON.stringify(o));
3
+ export {
4
+ t as default
5
+ };
@@ -0,0 +1,18 @@
1
+ import i from "../dcatapde/input-definition.js";
2
+ const e = JSON.parse(JSON.stringify(i));
3
+ e.distributions.accessURL = {
4
+ identifier: "accessUrl",
5
+ $formkit: "repeatable",
6
+ name: "dcat:accessURL",
7
+ class: "property inDistribution",
8
+ children: [
9
+ {
10
+ identifier: "accessUrl",
11
+ validationType: "url",
12
+ $formkit: "simpleAccessURLInput"
13
+ }
14
+ ]
15
+ };
16
+ export {
17
+ e as default
18
+ };
@@ -0,0 +1,5 @@
1
+ import o from "../dcatapde/page-content-config.js";
2
+ const n = JSON.parse(JSON.stringify(o));
3
+ export {
4
+ n as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import e from "../dcatapde/prefixes.js";
2
+ const p = JSON.parse(JSON.stringify(e));
3
+ export {
4
+ p as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import e from "../dcatapde/vocab-prefixes.js";
2
+ const r = JSON.parse(JSON.stringify(e));
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,54 @@
1
+ import o from "./dcatap/page-content-config.js";
2
+ import r from "./dcatap/input-definition.js";
3
+ import e from "./dcatap/prefixes.js";
4
+ import p from "./dcatap/format-types.js";
5
+ import i from "./dcatap/vocab-prefixes.js";
6
+ import t from "./dcatapde/page-content-config.js";
7
+ import f from "./dcatapde/input-definition.js";
8
+ import m from "./dcatapde/prefixes.js";
9
+ import a from "./dcatapde/format-types.js";
10
+ import n from "./dcatapde/vocab-prefixes.js";
11
+ import s from "./dcatapdeODB/page-content-config.js";
12
+ import c from "./dcatapdeODB/input-definition.js";
13
+ import x from "./dcatapdeODB/prefixes.js";
14
+ import y from "./dcatapdeODB/format-types.js";
15
+ import C from "./dcatapdeODB/vocab-prefixes.js";
16
+ import P from "./dcatapdeHappyFlow/page-content-config.js";
17
+ import d from "./dcatapdeHappyFlow/input-definition.js";
18
+ import g from "./dcatapdeHappyFlow/prefixes.js";
19
+ import D from "./dcatapdeHappyFlow/format-types.js";
20
+ import T from "./dcatapdeHappyFlow/vocab-prefixes.js";
21
+ const K = {
22
+ dcatap: {
23
+ pageConent: o,
24
+ inputDefinition: r,
25
+ formatTypes: p,
26
+ prefixes: e,
27
+ vocabPrefixes: i
28
+ },
29
+ dcatapde: {
30
+ pageConent: t,
31
+ inputDefinition: f,
32
+ formatTypes: a,
33
+ prefixes: m,
34
+ vocabPrefixes: n
35
+ },
36
+ dcatapdeODB: {
37
+ pageConent: s,
38
+ inputDefinition: c,
39
+ formatTypes: y,
40
+ prefixes: x,
41
+ vocabPrefixes: C
42
+ },
43
+ dcatapdeHappyFlow: {
44
+ pageConent: P,
45
+ inputDefinition: d,
46
+ formatTypes: D,
47
+ prefixes: g,
48
+ vocabPrefixes: T
49
+ }
50
+ };
51
+ export {
52
+ K as config,
53
+ K as default
54
+ };
@@ -0,0 +1,57 @@
1
+ const s = "Български (bg)", t = "čeština (cs)", n = "dansk (da)", o = "Deutsch (de)", c = "Ελληνικά (el)", e = "English (en)", a = "español (es)", l = "eesti (et)", i = "français (fr)", r = "Gaeilge (ga)", u = "Hrvatski (hr)", g = "Magyar (hu)", v = "italiano (it)", k = "lietuvių (lt)", d = "latviešu (lv)", p = "Malti (mt)", f = "Nederlands (nl)", h = "polski (pl)", m = "português (pt)", b = "română (ro)", M = "slovenčina (sk)", x = "slovenščina (sl)", y = "suomi (fi)", D = "svenska (sv)", E = "norsk (no)", G = "український (uk)", H = {
2
+ bg: s,
3
+ cs: t,
4
+ da: n,
5
+ de: o,
6
+ el: c,
7
+ en: e,
8
+ es: a,
9
+ et: l,
10
+ fr: i,
11
+ ga: r,
12
+ hr: u,
13
+ hu: g,
14
+ it: v,
15
+ lt: k,
16
+ lv: d,
17
+ mt: p,
18
+ nl: f,
19
+ pl: h,
20
+ pt: m,
21
+ ro: b,
22
+ sk: M,
23
+ sl: x,
24
+ fi: y,
25
+ sv: D,
26
+ no: E,
27
+ uk: G
28
+ };
29
+ export {
30
+ s as bg,
31
+ t as cs,
32
+ n as da,
33
+ o as de,
34
+ H as default,
35
+ c as el,
36
+ e as en,
37
+ a as es,
38
+ l as et,
39
+ y as fi,
40
+ i as fr,
41
+ r as ga,
42
+ u as hr,
43
+ g as hu,
44
+ v as it,
45
+ k as lt,
46
+ d as lv,
47
+ p as mt,
48
+ f as nl,
49
+ E as no,
50
+ h as pl,
51
+ m as pt,
52
+ b as ro,
53
+ M as sk,
54
+ x as sl,
55
+ D as sv,
56
+ G as uk
57
+ };
@@ -0,0 +1,10 @@
1
+ import "vue";
2
+ const n = Symbol("userConfig"), t = {
3
+ install(o, i) {
4
+ o.config.globalProperties.$env = i, o.provide(n, i);
5
+ }
6
+ };
7
+ export {
8
+ n as injectionKey,
9
+ t as userConfigShimPlugin
10
+ };
@@ -0,0 +1,33 @@
1
+ import e from "./modules/formSchemaStore.js";
2
+ import c from "./modules/navigationStore.js";
3
+ const o = {
4
+ // DPI specification as root state to be shared between all modules
5
+ specification: {},
6
+ specificationName: ""
7
+ }, a = {
8
+ getSpecification: (i) => i.specification,
9
+ getSpecificationName: (i) => i.specificationName
10
+ }, n = {
11
+ setSpecification: (i, t) => {
12
+ i.commit("setSpecification", t);
13
+ },
14
+ setSpecificationname: (i, t) => {
15
+ i.commit("setSpecificationName", t);
16
+ }
17
+ }, s = {
18
+ setSpecification: (i, t) => i.specification = t,
19
+ setSpecificationName: (i, t) => i.specificationName = t
20
+ }, p = {
21
+ namespaced: !0,
22
+ state: o,
23
+ actions: n,
24
+ mutations: s,
25
+ getters: a,
26
+ modules: {
27
+ formModule: e,
28
+ navigationModule: c
29
+ }
30
+ };
31
+ export {
32
+ p as default
33
+ };
@@ -0,0 +1,94 @@
1
+ import { isEmpty as l } from "lodash-es";
2
+ import r from "../../utils/translation-helper.js";
3
+ const m = {
4
+ schema: {
5
+ datasets: {},
6
+ distributions: {},
7
+ catalogues: {}
8
+ },
9
+ usersCatalogs: {}
10
+ }, h = {
11
+ getSchema: (e) => (t) => (console.log(e.schema[t]), e.schema[t])
12
+ }, d = {
13
+ /**
14
+ * Commits page properties and related DCATAP property definitions for current view for later building of schema
15
+ * @param {Object} param0
16
+ * @param {Object} param1 Object containing property (datasets/catalogues), page (step1/step2/step3) and subpage (distribution1/distribution2/distribution3) of current view
17
+ */
18
+ createSchema({ commit: e, state: t, rootGetters: a }, { property: n, page: c }) {
19
+ const s = a["dpiStore/getSpecification"], o = s.pageConent[n][c], i = s.inputDefinition[n];
20
+ e("extractSchema", { pageProperties: o, propertyDefinitions: i, property: n, page: c });
21
+ },
22
+ /**
23
+ * Calls mutation function for translating translatable properties of schema
24
+ * @param {*} param0
25
+ */
26
+ translateSchema({ commit: e }, { property: t, page: a }) {
27
+ e("translateSchemaProperties", { property: t, page: a });
28
+ },
29
+ /**
30
+ * Commits current property and users catalogs to mutation function
31
+ * @param {*} param0
32
+ * @param {*} param1 Object containing curren tproperty (datasets/catalogues) and all catalog options the user has permissions for
33
+ */
34
+ addCatalogOptions({ commit: e }, { property: t, catalogs: a }) {
35
+ e("saveCatalogOptions", { property: t, catalogs: a });
36
+ }
37
+ }, f = {
38
+ /**
39
+ * Builds schema based on given pageProperties and their definitions provided by propertyDefinition
40
+ * @param {Object} state
41
+ * @param {Object} param1 Object containing the properties which should be displayed within the view
42
+ * (pageProperties) and the form definitions of the properties defined by DCATAP (propertyDefinition)
43
+ */
44
+ extractSchema(e, { pageProperties: t, propertyDefinitions: a, property: n, page: c }) {
45
+ const s = [];
46
+ for (let o = 0; o < t.length; o += 1) {
47
+ const i = t[o];
48
+ try {
49
+ s.push(a[i]);
50
+ } catch {
51
+ console.warn(`DCATAP doens't include a property called: ${i}`);
52
+ }
53
+ }
54
+ e.schema[n][c] = s;
55
+ },
56
+ /**
57
+ * All translatable properties within the existing schema will be translated and added to the schema
58
+ * @param {*} state
59
+ * @param {String} property String defining current property (datasets/ distribution/ catalogues)
60
+ */
61
+ translateSchemaProperties(e, { property: t, page: a }) {
62
+ r(e.schema[t][a], t);
63
+ },
64
+ /**
65
+ * Saves all catalogs the current user has permissions for as options within the schema
66
+ * @param {*} state
67
+ * @param {*} param1 Object containing current property and the users catalog options
68
+ */
69
+ saveCatalogOptions(e, { property: t, catalogs: a }) {
70
+ if (t === "datasets") {
71
+ let n;
72
+ for (let c in e.schema[t]) {
73
+ const s = e.schema[t][c].filter((o) => o.name === "dcat:catalog");
74
+ l(s) || (n = s[0]);
75
+ }
76
+ if (!l(n)) {
77
+ const c = {};
78
+ for (let s = 0; s < a.length; s += 1) {
79
+ const o = a[s];
80
+ c[o] = o;
81
+ }
82
+ n.options = c;
83
+ }
84
+ }
85
+ }
86
+ }, p = {
87
+ state: m,
88
+ getters: h,
89
+ actions: d,
90
+ mutations: f
91
+ };
92
+ export {
93
+ p as default
94
+ };
@@ -0,0 +1,24 @@
1
+ const a = {
2
+ navigation: {
3
+ datasets: [],
4
+ distributions: [],
5
+ catalogues: []
6
+ }
7
+ }, o = {
8
+ getNavSteps: (t, c, u, n) => (d) => {
9
+ const e = n["dpiStore/getSpecification"];
10
+ return s(e), t.navigation;
11
+ }
12
+ };
13
+ function s(t) {
14
+ a.navigation.datasets = Object.keys(t.pageConent.datasets), a.navigation.distributions = Object.keys(t.pageConent.distributions), a.navigation.catalogues = Object.keys(t.pageConent.catalogues);
15
+ }
16
+ const i = {}, g = {}, r = {
17
+ state: a,
18
+ getters: o,
19
+ actions: i,
20
+ mutations: g
21
+ };
22
+ export {
23
+ r as default
24
+ };
@@ -0,0 +1,218 @@
1
+ import { isEmpty as f, isNil as m, cloneDeep as b, has as d } from "lodash-es";
2
+ import g from "axios";
3
+ function x(e, t, r) {
4
+ if (!e || m(e) || !isObject(e) && !isString(e)) return;
5
+ if (isString(e)) return e;
6
+ if (d(e, t)) return t;
7
+ if (r && isArray(r)) {
8
+ const s = r.find((i) => i && isString(i) && d(e, i.toLowerCase()));
9
+ if (s) return s;
10
+ }
11
+ const n = Object.keys(e)[0];
12
+ if (n) return n;
13
+ }
14
+ function v(e, t, r) {
15
+ const n = x(e, t, r);
16
+ return n ? e[n] : void 0;
17
+ }
18
+ function p(e) {
19
+ let t = {};
20
+ for (const r in e)
21
+ t = Object.assign(t, e[r]);
22
+ return t;
23
+ }
24
+ function O(e, t) {
25
+ let r;
26
+ const n = e.indexOf(":");
27
+ if (n !== -1) {
28
+ const s = e.substr(0, n), i = e.substr(n + 1);
29
+ r = `${t.prefixes[s]}${i}`;
30
+ } else
31
+ r = e;
32
+ return r;
33
+ }
34
+ function y(e, t) {
35
+ let r;
36
+ e.includes("#") ? r = e.lastIndexOf("#") : r = e.lastIndexOf("/");
37
+ const n = e.substr(r + 1), s = e.substr(0, r + 1);
38
+ return `${Object.keys(t.prefixes).find(
39
+ (c) => t.prefixes[c] === s
40
+ )}:${n}`;
41
+ }
42
+ function N(e, t) {
43
+ const r = [];
44
+ for (let n of e)
45
+ r.push(y(n.predicate.value, t));
46
+ return r;
47
+ }
48
+ function j(e) {
49
+ for (var t = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = r.length, s = 0; s < e; s++)
50
+ t += r.charAt(Math.floor(Math.random() * n));
51
+ return t;
52
+ }
53
+ function P(e) {
54
+ let t;
55
+ try {
56
+ t = new URL(e);
57
+ } catch {
58
+ return !1;
59
+ }
60
+ return t.protocol === "http:" || t.protocol === "https:";
61
+ }
62
+ async function $(e, t) {
63
+ let r, n;
64
+ t !== "" ? n = {
65
+ method: "GET",
66
+ headers: {
67
+ Authorization: `Bearer ${t}`
68
+ },
69
+ url: e
70
+ } : n = {
71
+ method: "GET",
72
+ url: e
73
+ };
74
+ try {
75
+ r = fetch(e, n).then((s) => {
76
+ var c;
77
+ const i = (c = s == null ? void 0 : s.body) == null ? void 0 : c.getReader();
78
+ return new ReadableStream({
79
+ start(a) {
80
+ function l() {
81
+ i == null || i.read().then(({ done: o, value: u }) => {
82
+ if (o) {
83
+ a.close();
84
+ return;
85
+ }
86
+ a.enqueue(u), l();
87
+ });
88
+ }
89
+ l();
90
+ }
91
+ });
92
+ }).then(
93
+ (s) => new Response(s, {
94
+ headers: { "Content-Type": "text/html" }
95
+ }).text()
96
+ );
97
+ } catch {
98
+ throw Error(`Error occured during fetching endpoint: ${e}`);
99
+ }
100
+ return r;
101
+ }
102
+ function I(e, t, r) {
103
+ var s, i;
104
+ const n = {
105
+ datasets: {},
106
+ distributions: {},
107
+ catalogues: {}
108
+ };
109
+ for (let c in r[e]) {
110
+ n[e][c] = [];
111
+ const a = r[e][c];
112
+ for (let l = 0; l < a.length; l++) {
113
+ const o = a[l];
114
+ console.log(t);
115
+ const u = ((i = (s = t[e]) == null ? void 0 : s[o]) == null ? void 0 : i.name) || void 0;
116
+ u !== void 0 && n[e][c].push(u);
117
+ }
118
+ }
119
+ return n;
120
+ }
121
+ function A({ accessUrl: e, fileUploadUrl: t }) {
122
+ const r = e.endsWith("/") ? e : `${e}/`, n = t.endsWith("/") ? t : `${t}/`;
123
+ if (r.startsWith(n)) {
124
+ const s = r.split("/");
125
+ return s[s.length - 2] || null;
126
+ }
127
+ return null;
128
+ }
129
+ function T(e, t, r, n) {
130
+ n[t][r].push(e);
131
+ }
132
+ function k(e, t, r, n) {
133
+ n[t][r].splice(
134
+ n[t][r].indexOf(e),
135
+ 1
136
+ );
137
+ }
138
+ function h(e) {
139
+ let t = !1;
140
+ if (!m(e) && !f(e)) {
141
+ let r = b(e);
142
+ d(r, "@language") && delete r["@language"];
143
+ const n = Object.values(r).filter((s) => s);
144
+ if (!f(n))
145
+ for (let s = 0; s < n.length; s++) {
146
+ const i = n[s];
147
+ if (Array.isArray(i))
148
+ for (let c = 0; c < i.length; c++)
149
+ h(i[c]) && (t = !0);
150
+ else typeof i == "object" ? h(i) && (t = !0) : t = !0;
151
+ }
152
+ }
153
+ return t;
154
+ }
155
+ function w(e) {
156
+ let t = !1;
157
+ if (e !== void 0 && e !== "" && !f(e) && !m(e))
158
+ if (Array.isArray(e)) {
159
+ if (e.every((r) => typeof r == "string"))
160
+ t = !f(e.filter((r) => r));
161
+ else if (e.every((r) => typeof r == "object"))
162
+ for (let r = 0; r < e.length; r++)
163
+ h(e[r]) && (t = !0);
164
+ } else typeof e == "object" ? t = h(e) : t = !0;
165
+ return t;
166
+ }
167
+ async function L(e, t, r) {
168
+ const n = Object.keys(t.vocabPrefixes).find(
169
+ (s) => e.includes(t.vocabPrefixes[s])
170
+ );
171
+ try {
172
+ let s;
173
+ if (n === "iana-media-types" || n === "spdx-checksum-algorithm")
174
+ s = `${r.api.baseUrl}vocabularies/${n}`;
175
+ else {
176
+ const i = e.replace(t.vocabPrefixes[n], "");
177
+ s = `${r.api.baseUrl}vocabularies/${n}/${i}`;
178
+ }
179
+ return new Promise((i, c) => {
180
+ g.get(s).then((a) => {
181
+ i(a);
182
+ }).catch((a) => {
183
+ c(a);
184
+ });
185
+ });
186
+ } catch {
187
+ }
188
+ }
189
+ async function S(e, t, r, n) {
190
+ let s;
191
+ const i = Object.keys(t.vocabPrefixes).find(
192
+ (a) => e.includes(t.vocabPrefixes[a])
193
+ );
194
+ let c = i === "iana-media-types" || i === "spdx-checksum-algorithm";
195
+ return await L(e, t, n).then((a) => {
196
+ s = c ? a.data.result.results.filter((o) => o.resource === e).map((o) => o.pref_label)[0].en : v(a.data.result.pref_label, r, []);
197
+ }), s;
198
+ }
199
+ const E = {
200
+ mergeNestedObjects: p,
201
+ addNamespace: O,
202
+ makeId: j,
203
+ isUrl: P,
204
+ fetchLinkedData: $,
205
+ getPagePrefixedNames: I,
206
+ getNestedKeys: N,
207
+ removeNamespace: y,
208
+ getFileIdByAccessUrl: A,
209
+ addKeyToFormatType: T,
210
+ removeKeyFromFormatType: k,
211
+ propertyHasValue: w,
212
+ getUriLabel: S
213
+ };
214
+ export {
215
+ E as default,
216
+ x as getRepresentativeLocaleOf,
217
+ v as getTranslationFor
218
+ };
@@ -0,0 +1,5 @@
1
+ import "vue";
2
+ const e = Symbol("dpiStepperKey");
3
+ export {
4
+ e as dpiStepperKey
5
+ };
@@ -0,0 +1,31 @@
1
+ import { has as m, isObject as h } from "lodash-es";
2
+ import "vue-i18n";
3
+ function u(s, l, o, n) {
4
+ if (m(s, "identifier")) {
5
+ const d = ["label", "info", "help", "placeholder", "add-label"], a = s.identifier;
6
+ for (let c = 0; c < d.length; c += 1) {
7
+ let t = a;
8
+ const e = d[c], C = n(`message.dataupload.${l}.${a}.${e}`), f = n(`message.dataupload.${l}.${a}.${e}`, "en");
9
+ m(l, e) || (C ? t = o(`message.dataupload.${l}.${a}.${e}`) : f ? t = o(`message.dataupload.${l}.${a}.${e}`, "en") : t = e, !!s.$cmp && !s.$formkit && h(s.props) && s.$cmp === "SelectControlledGroup" ? s.props[e] = t : s[e] = t), s.mandatory && e === "label" && (s[e] = `${t}*`);
10
+ }
11
+ }
12
+ }
13
+ function $(s, l, o, n) {
14
+ for (let d = 0; d < s.length; d += 1) {
15
+ const a = s[d];
16
+ if (m(a, "children"))
17
+ u(a, l, o, n), $(a.children, l, o, n);
18
+ else if (m(a, "data")) {
19
+ u(a, l, o, n);
20
+ const c = Object.keys(a.data);
21
+ for (let t = 0; t < c.length; t += 1) {
22
+ const e = c[t];
23
+ $(a.data[e], l, o, n);
24
+ }
25
+ } else
26
+ u(a, l, o, n);
27
+ }
28
+ }
29
+ export {
30
+ $ as default
31
+ };