@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,46 @@
1
+ import { ref as r, watch as c, createBlock as p, openBlock as f } from "vue";
2
+ import m from "../InputField.vue.js";
3
+ import { useI18n as B } from "vue-i18n";
4
+ const b = {
5
+ __name: "LicenseAttributionByText",
6
+ props: {
7
+ distributionId: { type: Number, required: !1 },
8
+ showDeleteButton: { type: Boolean, default: !1 },
9
+ nameTextByClauses: { type: String, default: "" }
10
+ },
11
+ emits: ["addLicenseAttrByText", "deleteButtonClicked"],
12
+ setup(d, { emit: i }) {
13
+ const { t: y } = B(), l = d, a = r(l.nameTextByClauses), o = i, s = (e, t) => {
14
+ o("addLicenseAttrByText", e.target.value, l.distributionId);
15
+ };
16
+ c(() => l.nameTextByClauses, (e) => {
17
+ a.value = e;
18
+ });
19
+ const u = () => {
20
+ console.log("delete clicked"), o("deleteButtonClicked", l.distributionId);
21
+ };
22
+ return (e, t) => (f(), p(m, {
23
+ onInput: t[0] || (t[0] = (n) => s(n)),
24
+ modelValue: a.value,
25
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => a.value = n),
26
+ addOnText: !1,
27
+ datePicker: !1,
28
+ infoIcon: !1,
29
+ placeholder: e.$t(
30
+ "message.dataupload.datasets.dcat:distribution.advanced.licenseAttrByText-placeholder"
31
+ ),
32
+ preIcon: !1,
33
+ inputFieldSize: "large",
34
+ initialHintText: !1,
35
+ label: e.$t(
36
+ "message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
37
+ ) + " (optional)",
38
+ showEndIcon: !1,
39
+ defaultInput: !d.showDeleteButton,
40
+ onDeleteButtonClicked: u
41
+ }, null, 8, ["modelValue", "placeholder", "label", "defaultInput"]));
42
+ }
43
+ };
44
+ export {
45
+ b as default
46
+ };
@@ -0,0 +1,43 @@
1
+ import { ref as r, watch as f, createBlock as m, openBlock as p } from "vue";
2
+ import c from "../InputField.vue.js";
3
+ import { useI18n as I } from "vue-i18n";
4
+ const k = {
5
+ __name: "ModifiedDateV3",
6
+ props: {
7
+ distributionId: { type: Number, required: !1 },
8
+ showDeleteButton: { type: Boolean, default: !1 },
9
+ modelValue: { type: String, default: "" }
10
+ },
11
+ emits: ["addModifiedDate", "deleteButtonClicked"],
12
+ setup(a, { emit: n }) {
13
+ const { t: b } = I(), d = a, l = r(d.modelValue), i = n, u = (e, t) => {
14
+ i("addModifiedDate", e.target.value, d.distributionId);
15
+ }, s = () => {
16
+ i("deleteButtonClicked", d.distributionId);
17
+ };
18
+ return f(() => d.modelValue, (e) => {
19
+ l.value = e;
20
+ }), (e, t) => (p(), m(c, {
21
+ onInput: t[0] || (t[0] = (o) => u(o)),
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => l.value = o),
24
+ defaultInput: !a.showDeleteButton,
25
+ addOnText: !1,
26
+ eraseable: !1,
27
+ datePicker: !0,
28
+ infoIcon: !1,
29
+ placeholder: "TT/MM/JJJJ",
30
+ label: e.$t(
31
+ "message.dataupload.datasets.dcat:distribution.recommended.dct:modified"
32
+ ) + " (optional)",
33
+ preIcon: !1,
34
+ initialHintText: !1,
35
+ showEndIcon: !1,
36
+ inputType: "date",
37
+ onDeleteButtonClicked: s
38
+ }, null, 8, ["modelValue", "defaultInput", "label"]));
39
+ }
40
+ };
41
+ export {
42
+ k as default
43
+ };
@@ -0,0 +1,130 @@
1
+ import { ref as m, onMounted as w, createElementBlock as c, openBlock as d, normalizeClass as g, createCommentVNode as f, createBlock as R, Fragment as L, renderList as U, createElementVNode as A, createVNode as y, unref as s, isRef as S } from "vue";
2
+ import h from "../ButtonV3.vue.js";
3
+ import P from "../ModalSimpleV3.vue.js";
4
+ import M from "../InputField.vue.js";
5
+ /* empty css */
6
+ import T from "../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const B = { class: "dpiV3_LinkAndMetadata" }, z = {
8
+ key: 0,
9
+ class: "copy-mini-regular dpiV3_text_error"
10
+ }, E = {
11
+ key: 0,
12
+ class: "dpiV3_tempAddMore"
13
+ }, N = {
14
+ __name: "PolicyV3",
15
+ props: {
16
+ policyItems: { type: Array, required: !0 },
17
+ distributionId: { type: Number, required: !0 },
18
+ asCard: { type: Boolean, required: !1, default: !1 }
19
+ },
20
+ emits: ["update"],
21
+ setup(n, { emit: V }) {
22
+ let i = m({});
23
+ const a = n, u = V, I = m(!1), v = m(null);
24
+ let r = m(!1);
25
+ w(() => {
26
+ console.log(
27
+ "Component Mounted: policyItems received for distributionId:",
28
+ a.distributionId
29
+ ), a.policyItems.length === 0 && u("update", [
30
+ {
31
+ id: 1,
32
+ "dcat:downloadURL": ""
33
+ }
34
+ ]);
35
+ });
36
+ const x = (t) => {
37
+ switch (t) {
38
+ case "delete":
39
+ _();
40
+ break;
41
+ }
42
+ }, k = () => {
43
+ const o = {
44
+ id: (a.policyItems.length ? Math.max(...a.policyItems.map((e) => e.id)) : 0) + 1,
45
+ "dcat:downloadURL": ""
46
+ };
47
+ u("update", [...a.policyItems, o]);
48
+ }, b = (t, o, e) => {
49
+ const l = a.policyItems.map(
50
+ (p) => p.id === e ? { ...p, [o]: t.target.value } : p
51
+ );
52
+ u("update", l);
53
+ }, C = (t) => {
54
+ i.value = {
55
+ button: "Löschen",
56
+ header: "Regelwerk löschen",
57
+ text: "Sind Sie sicher, dass Sie dieses Regelwerk löschen wollen?",
58
+ action: "delete",
59
+ optionalString_1: t["dcat:downloadURL"]
60
+ }, r.value = !0, v.value = t;
61
+ }, _ = () => {
62
+ if (a.policyItems.length === 1) {
63
+ I.value = !0;
64
+ return;
65
+ }
66
+ const t = a.policyItems.filter(
67
+ (o) => o.id !== v.value.id
68
+ );
69
+ u("update", t);
70
+ };
71
+ return (t, o) => (d(), c("div", {
72
+ class: g(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: n.asCard }])
73
+ }, [
74
+ (d(!0), c(L, null, U(n.policyItems, (e) => (d(), c("div", {
75
+ key: e.id,
76
+ class: g(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: n.asCard }])
77
+ }, [
78
+ A("div", B, [
79
+ y(M, {
80
+ onInput: (l) => b(l, "dcat:downloadURL", e.id),
81
+ addOnText: !1,
82
+ datePicker: !1,
83
+ infoIcon: !1,
84
+ placeholder: "Bitte URL eingeben...",
85
+ preIcon: !1,
86
+ inputFieldSize: "large",
87
+ initialHintText: !1,
88
+ label: "URL",
89
+ showEndIcon: !1,
90
+ modelValue: e["dcat:downloadURL"],
91
+ "onUpdate:modelValue": (l) => e["dcat:downloadURL"] = l
92
+ }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
93
+ I.value && n.policyItems.length === 1 ? (d(), c("p", z, " Mindestens eine URL muss vorhanden sein. ")) : f("", !0)
94
+ ]),
95
+ y(h, {
96
+ class: "dpiV3_tempAddMore",
97
+ buttonText: t.$t(
98
+ "message.dataupload.datasets.dcat:distribution.advanced.documentation.delete"
99
+ ),
100
+ size: "small",
101
+ iconStart: "trash",
102
+ variant: "tertiary",
103
+ onClick: (l) => C(e)
104
+ }, null, 8, ["buttonText", "onClick"])
105
+ ], 2))), 128)),
106
+ n.asCard ? f("", !0) : (d(), c("div", E, [
107
+ y(h, {
108
+ buttonText: "Weiteres Regelwerk hinzufügen",
109
+ size: "small",
110
+ iconStart: "plus",
111
+ variant: "tertiary",
112
+ onClick: k
113
+ })
114
+ ])),
115
+ s(r) ? (d(), R(P, {
116
+ key: 1,
117
+ buttons: s(i).button,
118
+ headerText: s(i).header,
119
+ text: s(i).text,
120
+ onClose: o[0] || (o[0] = (e) => S(r) ? r.value = !1 : r = !1),
121
+ action: s(i).action,
122
+ onActionHandling: o[1] || (o[1] = (e) => x(e)),
123
+ optionalString_1: s(i).optionalString_1
124
+ }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1"])) : f("", !0)
125
+ ], 2));
126
+ }
127
+ }, O = /* @__PURE__ */ T(N, [["__scopeId", "data-v-0c42c576"]]);
128
+ export {
129
+ O as default
130
+ };
@@ -0,0 +1,67 @@
1
+ import { ref as i, onMounted as f, getCurrentInstance as m, watch as v, createBlock as S, openBlock as b } from "vue";
2
+ import { getDatasetStatus as x } from "../../services/dpiV3_apis.js";
3
+ import w from "../Dropdown.vue.js";
4
+ const V = {
5
+ __name: "StatusV3",
6
+ props: {
7
+ distributionId: { type: Number, required: !1 },
8
+ showDeleteButton: { type: Boolean, default: !1 },
9
+ statusText: { type: String, default: "" }
10
+ },
11
+ emits: ["addStatus", "deleteButtonClicked"],
12
+ setup(n, { emit: r }) {
13
+ const s = i([]);
14
+ f(async () => {
15
+ const e = m().appContext.app.config.globalProperties.$env;
16
+ try {
17
+ const t = await x(e.api.baseUrl);
18
+ s.value = t.map((u) => ({
19
+ "@value": u.label,
20
+ value: u.value,
21
+ selected: !1
22
+ }));
23
+ } catch (t) {
24
+ console.error("Failed to load dataset status data:", t);
25
+ }
26
+ });
27
+ const o = n, l = i(o.statusText), d = r, p = (a) => {
28
+ d("addStatus", a, o.distributionId);
29
+ };
30
+ v(
31
+ () => o.statusText,
32
+ (a) => {
33
+ l.value = a;
34
+ }
35
+ );
36
+ const c = () => {
37
+ d("deleteButtonClicked", o.distributionId);
38
+ };
39
+ return (a, e) => (b(), S(w, {
40
+ "onUpdate:modelValue": [
41
+ e[0] || (e[0] = (t) => p(t)),
42
+ e[1] || (e[1] = (t) => l.value = t)
43
+ ],
44
+ dropdownWidth: "large",
45
+ type: "inputField",
46
+ modelValue: l.value,
47
+ inputFieldProps: {
48
+ addOnText: !1,
49
+ initialHintText: !1,
50
+ datePicker: !1,
51
+ infoIcon: !1,
52
+ preIcon: !1,
53
+ label: "Status (optional)",
54
+ dropdown_dpiV3: !0,
55
+ placeholder: "Geben Sie den Status ein...",
56
+ inputFieldSize: "large",
57
+ modelValue: l.value,
58
+ defaultInput: !n.showDeleteButton
59
+ },
60
+ data: s.value,
61
+ onDeleteDropdownField: c
62
+ }, null, 8, ["modelValue", "inputFieldProps", "data"]));
63
+ }
64
+ };
65
+ export {
66
+ V as default
67
+ };
@@ -0,0 +1,157 @@
1
+ import { ref as M, computed as O, resolveComponent as p, createElementBlock as g, openBlock as c, createElementVNode as m, createBlock as v, createCommentVNode as r, createVNode as i, toDisplayString as T, withCtx as _, unref as y } from "vue";
2
+ import $ from "./CrossOutButton.vue.js";
3
+ import C from "./ButtonV3.vue.js";
4
+ import z from "./SectionItems/FindabilityChips.vue.js";
5
+ import F from "./SectionItems/HVDSwitch.vue.js";
6
+ import I from "./SectionItems/EssentialsModal.vue.js";
7
+ import W from "./SectionItems/DistributionModal.vue.js";
8
+ import H from "./SectionItems/CoverageModal.vue.js";
9
+ import L from "./SectionItems/AdditionalsModal.vue.js";
10
+ import "@formkit/core";
11
+ import { useFormValues as J } from "../../composables/useDpiFormValues.js";
12
+ /* empty css */
13
+ import j from "../../../_virtual/_plugin-vue_export-helper.js";
14
+ const q = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalOuter" }, U = { class: "dpiV3_RapModalInner" }, Z = { class: "dpiV3_modalHead" }, A = { class: "dpiV3_closeButtonContainer" }, G = { class: "dpiV3_modalBody" }, K = { key: 0 }, Q = {
15
+ key: 2,
16
+ id: "essentials"
17
+ }, X = { class: "dpiV3_actionButtonWrap" }, Y = {
18
+ __name: "RapModal",
19
+ props: {
20
+ isVisible: {
21
+ type: Boolean,
22
+ required: !0
23
+ },
24
+ context: Object,
25
+ activeSection: String
26
+ },
27
+ emits: ["close"],
28
+ setup(s, { emit: P }) {
29
+ const l = s;
30
+ let h = M();
31
+ const { formValues: V } = J(), S = P, x = () => {
32
+ S("close");
33
+ }, n = O(() => V.value.BasicInfos), k = (t, e) => {
34
+ var a;
35
+ return ((a = t == null ? void 0 : t.find((u) => u["@language"] === e)) == null ? void 0 : a["@value"]) || "";
36
+ }, d = (t, e) => {
37
+ var a;
38
+ return ((a = t == null ? void 0 : t[0]) == null ? void 0 : a[e]) || "";
39
+ }, w = (t) => {
40
+ var e;
41
+ return ((e = t == null ? void 0 : t[0]) == null ? void 0 : e["@value"]) || "";
42
+ }, o = M({
43
+ title: k(n.value["dct:title"], "de"),
44
+ description: k(n.value["dct:description"], "de"),
45
+ modified: w(n.value["dct:modified"]),
46
+ publisherName: d(n.value["dct:publisher"], "foaf:name"),
47
+ publisherMail: d(n.value["dct:publisher"], "foaf:mbox"),
48
+ publisherWebsite: d(n.value["dct:publisher"], "foaf:homepage"),
49
+ contactPointName: d(n.value["dcat:contactPoint"], "vcard:fn"),
50
+ contactPointMail: d(n.value["dcat:contactPoint"], "vcard:hasEmail"),
51
+ contactPointPhone: d(n.value["dcat:contactPoint"], "vcard:hasTelephone")
52
+ }), B = (t, e, a, u) => {
53
+ t[e] || (t[e] = []);
54
+ const f = t[e].find((b) => b["@language"] === u);
55
+ f ? f["@value"] = a : t[e].push({ "@value": a, "@language": u });
56
+ }, R = () => {
57
+ const t = JSON.parse(JSON.stringify(V.value.BasicInfos));
58
+ B(t, "dct:title", o.value.title, "de"), B(t, "dct:description", o.value.description, "de"), t["dct:publisher"] = [{
59
+ "foaf:name": o.value.publisherName,
60
+ "foaf:mbox": o.value.publisherMail,
61
+ "foaf:homepage": o.value.publisherWebsite
62
+ }], t["dcat:contactPoint"] = [{
63
+ "vcard:fn": o.value.contactPointName,
64
+ "vcard:hasEmail": o.value.contactPointMail,
65
+ "vcard:hasTelephone": o.value.contactPointPhone
66
+ }], t["dct:modified"] = [{ "@value": o.value.modified }], V.value.BasicInfos = t, S("close");
67
+ };
68
+ return (t, e) => {
69
+ const a = p("findability"), u = p("coverage"), f = p("distributionRap"), b = p("additionals"), E = p("interaction");
70
+ return c(), g("div", q, [
71
+ m("div", D, [
72
+ m("div", U, [
73
+ m("div", Z, [
74
+ m("div", A, [
75
+ i($, {
76
+ onClick: x,
77
+ class: "dpiV3_closeButton",
78
+ type: "default"
79
+ })
80
+ ])
81
+ ]),
82
+ m("div", G, [
83
+ l.activeSection === "findabilityHvd" ? (c(), g("span", K, T(t.$t("message.metadata.categories")), 1)) : r("", !0),
84
+ l.activeSection === "findabilityHvd" ? (c(), v(a, { key: 1 }, {
85
+ default: _(() => [
86
+ i(z, { context: s.context }, null, 8, ["context"]),
87
+ i(F, { context: s.context }, null, 8, ["context"])
88
+ ]),
89
+ _: 1
90
+ })) : r("", !0),
91
+ l.activeSection === "essentials" ? (c(), g("div", Q, [
92
+ i(I, {
93
+ context: s.context,
94
+ newValues: y(h),
95
+ modelValue: o.value,
96
+ "onUpdate:modelValue": e[0] || (e[0] = (N) => o.value = N)
97
+ }, null, 8, ["context", "newValues", "modelValue"])
98
+ ])) : r("", !0),
99
+ l.activeSection === "coverage" ? (c(), v(u, { key: 3 }, {
100
+ default: _(() => [
101
+ i(H, {
102
+ context: s.context,
103
+ newValues: y(h)
104
+ }, null, 8, ["context", "newValues"])
105
+ ]),
106
+ _: 1
107
+ })) : r("", !0),
108
+ l.activeSection === "distributions" ? (c(), v(f, { key: 4 }, {
109
+ default: _(() => [
110
+ i(W, {
111
+ context: s.context,
112
+ newValues: y(h)
113
+ }, null, 8, ["context", "newValues"])
114
+ ]),
115
+ _: 1
116
+ })) : r("", !0),
117
+ l.activeSection === "additionals" ? (c(), v(b, { key: 5 }, {
118
+ default: _(() => [
119
+ i(L, {
120
+ context: s.context,
121
+ onCloseModal: x
122
+ }, null, 8, ["context"])
123
+ ]),
124
+ _: 1
125
+ })) : r("", !0)
126
+ ])
127
+ ]),
128
+ l.activeSection != "additionals" ? (c(), v(E, {
129
+ key: 0,
130
+ class: "dpiV3_interactionWrap"
131
+ }, {
132
+ default: _(() => [
133
+ m("div", X, [
134
+ i(C, {
135
+ onClick: x,
136
+ buttonText: "Zurück",
137
+ size: "large",
138
+ iconStart: "CaretLeft",
139
+ variant: "tertiary"
140
+ }),
141
+ i(C, {
142
+ onClick: R,
143
+ buttonText: "Speichern",
144
+ size: "large"
145
+ })
146
+ ])
147
+ ]),
148
+ _: 1
149
+ })) : r("", !0)
150
+ ])
151
+ ]);
152
+ };
153
+ }
154
+ }, pt = /* @__PURE__ */ j(Y, [["__scopeId", "data-v-dcb88501"]]);
155
+ export {
156
+ pt as default
157
+ };
@@ -0,0 +1,106 @@
1
+ import { ref as r, resolveComponent as v, createElementBlock as s, openBlock as i, Fragment as f, createCommentVNode as S, createElementVNode as a, createVNode as l, withCtx as u, withDirectives as b, unref as o, isRef as W, renderList as w, toDisplayString as h, vShow as y } from "vue";
2
+ import A from "../CloseOpenButtonV3.vue.js";
3
+ import O from "./AdditionalsSubModal.vue.js";
4
+ /* empty css */
5
+ import { useFormSchema as z } from "../../../composables/useFormSchema.js";
6
+ const j = { key: 0 }, G = ["onClick"], L = ["onClick"], R = { key: 1 }, q = { class: "headline-4" }, T = {
7
+ __name: "AdditionalsModal",
8
+ props: {
9
+ context: Object
10
+ },
11
+ setup(B, { emit: V }) {
12
+ const I = V, { getSchema: N } = z(), c = r(N("datasets")), m = r(!1);
13
+ let _ = r([]), g = r([]), n = r("recommended"), p = r();
14
+ const D = r("");
15
+ function E(e) {
16
+ I("closeModal", e);
17
+ }
18
+ for (let e = 0; e < c.value.Additionals.length; e++)
19
+ e < 4 ? _.value.push(c.value.Additionals[e]) : g.value.push(c.value.Additionals[e]);
20
+ const k = (e) => {
21
+ p.value = e, m.value = !0;
22
+ }, F = (e) => {
23
+ m.value = e, D.value = e;
24
+ };
25
+ return (e, t) => {
26
+ const C = v("headlineWrapper"), x = v("itemWrapper"), $ = v("outerItemWrapper");
27
+ return i(), s(f, null, [
28
+ m.value ? S("", !0) : (i(), s("div", j, [
29
+ t[4] || (t[4] = a("h4", { class: "headline-4" }, "Optionale Informationen hinzufügen", -1)),
30
+ t[5] || (t[5] = a("hr", null, null, -1)),
31
+ l($, null, {
32
+ default: u(() => [
33
+ l(C, null, {
34
+ default: u(() => [
35
+ t[2] || (t[2] = a("h5", { class: "headline-5" }, "Empfohlen", -1)),
36
+ l(A, {
37
+ onClick: t[0] || (t[0] = (d) => W(n) ? n.value = "recommended" : n = "recommended"),
38
+ expanded: o(n) != "recommended"
39
+ }, null, 8, ["expanded"])
40
+ ]),
41
+ _: 1,
42
+ __: [2]
43
+ }),
44
+ b(l(x, null, {
45
+ default: u(() => [
46
+ (i(!0), s(f, null, w(o(_), (d) => (i(), s("div", null, [
47
+ a("span", {
48
+ onClick: (M) => k(d),
49
+ class: "copy-large-regular"
50
+ }, h(e.$t("message.dataupload.datasets." + d.identifier + ".label")), 9, G)
51
+ ]))), 256))
52
+ ]),
53
+ _: 1
54
+ }, 512), [
55
+ [y, o(n) === "recommended"]
56
+ ])
57
+ ]),
58
+ _: 1
59
+ }),
60
+ t[6] || (t[6] = a("hr", null, null, -1)),
61
+ l($, null, {
62
+ default: u(() => [
63
+ l(C, null, {
64
+ default: u(() => [
65
+ t[3] || (t[3] = a("h5", { class: "headline-5" }, "Fortgeschrittene", -1)),
66
+ l(A, {
67
+ onClick: t[1] || (t[1] = (d) => W(n) ? n.value = "advanced" : n = "advanced"),
68
+ expanded: o(n) != "advanced"
69
+ }, null, 8, ["expanded"])
70
+ ]),
71
+ _: 1,
72
+ __: [3]
73
+ }),
74
+ b(l(x, null, {
75
+ default: u(() => [
76
+ (i(!0), s(f, null, w(o(g), (d) => (i(), s("div", null, [
77
+ a("span", {
78
+ onClick: (M) => k(d),
79
+ class: "copy-large-regular"
80
+ }, h(e.$t("message.dataupload.datasets." + d.identifier + ".label")), 9, L)
81
+ ]))), 256))
82
+ ]),
83
+ _: 1
84
+ }, 512), [
85
+ [y, o(n) === "advanced"]
86
+ ])
87
+ ]),
88
+ _: 1
89
+ })
90
+ ])),
91
+ m.value ? (i(), s("div", R, [
92
+ a("h4", q, h(e.$t("message.dataupload.datasets." + o(p).identifier + ".label")) + " hinzufügen ", 1),
93
+ l(O, {
94
+ context: B.context,
95
+ item: o(p),
96
+ onGoBack: F,
97
+ onSst: E
98
+ }, null, 8, ["context", "item"])
99
+ ])) : S("", !0)
100
+ ], 64);
101
+ };
102
+ }
103
+ };
104
+ export {
105
+ T as default
106
+ };