@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.
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/dpi.css +1 -0
- package/dist/composables/useRuntimeEnv.js +11 -0
- package/dist/composables/useTed.js +9 -0
- package/dist/data-provider-interface/DPIMenu.vue.js +457 -0
- package/dist/data-provider-interface/DataProviderInterface.vue.js +43 -0
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +144 -0
- package/dist/data-provider-interface/HappyFlowComponents/BlogDPIHome.vue.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/CommunityDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1052 -0
- package/dist/data-provider-interface/HappyFlowComponents/ConsultingDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +26 -0
- package/dist/data-provider-interface/HappyFlowComponents/FAQDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +109 -0
- package/dist/data-provider-interface/HappyFlowComponents/ServiceDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CheckCircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Circle.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/DatenbereitstellerV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Error.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Published.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Warning.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/FurV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationCelebrate.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationStart.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/InfoFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/WarningFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/bydata_logo_blue_small.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/iconRight.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/x-circleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +135 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/eventBus.js +16 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +256 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CheckboxV3.vue.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +91 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CrossOutButton.vue.js +63 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DatasetStatus.vue.js +52 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +231 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Illustration.vue.js +33 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +477 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputV3.vue.js +182 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/LogoV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +123 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +566 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/MoreButton.vue.js +56 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +41 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +80 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +113 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +116 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +227 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +148 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +46 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +130 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +106 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +247 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +79 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +73 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +134 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +68 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +64 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SwitchV3.vue.js +195 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +207 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +115 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonLarge.vue.js +108 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +125 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +69 -0
- package/dist/data-provider-interface/components/AutocompleteInput.vue.js +279 -0
- package/dist/data-provider-interface/components/BasicInfosPage.vue.js +9 -0
- package/dist/data-provider-interface/components/ConditionalInput.vue.js +196 -0
- package/dist/data-provider-interface/components/ContactPage.vue.js +246 -0
- package/dist/data-provider-interface/components/CoveringPage.vue.js +9 -0
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.js +49 -0
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +60 -0
- package/dist/data-provider-interface/components/DistLicense.vue.js +160 -0
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1147 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.js +212 -0
- package/dist/data-provider-interface/components/Dropup.vue.js +62 -0
- package/dist/data-provider-interface/components/FileUpload.vue.js +278 -0
- package/dist/data-provider-interface/components/HVDPage.vue.js +106 -0
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +70 -0
- package/dist/data-provider-interface/components/InfoSlot.vue.js +81 -0
- package/dist/data-provider-interface/components/InputPageStep.vue.js +40 -0
- package/dist/data-provider-interface/components/InputPageStep.vue2.js +4 -0
- package/dist/data-provider-interface/components/LanguageSelector.vue.js +65 -0
- package/dist/data-provider-interface/components/Navigation.vue.js +256 -0
- package/dist/data-provider-interface/components/Navigation.vue2.js +1 -0
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +81 -0
- package/dist/data-provider-interface/components/PublisherPage.vue.js +176 -0
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +413 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.js +55 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue2.js +4 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.js +32 -0
- package/dist/data-provider-interface/components/SimpleInput.vue.js +35 -0
- package/dist/data-provider-interface/components/SimpleSelect.vue.js +111 -0
- package/dist/data-provider-interface/components/SpatialInput.vue.js +276 -0
- package/dist/data-provider-interface/components/TempResPage.vue.js +211 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue.js +90 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue2.js +4 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +52 -0
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.js +75 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +75 -0
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +44 -0
- package/dist/data-provider-interface/composables/aucotomplete.js +50 -0
- package/dist/data-provider-interface/composables/useDpiContext.js +17 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.js +88 -0
- package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +384 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +47 -0
- package/dist/data-provider-interface/composables/useDpiUtils.js +39 -0
- package/dist/data-provider-interface/composables/useErrorDialog.js +31 -0
- package/dist/data-provider-interface/composables/useFormSchema.js +56 -0
- package/dist/data-provider-interface/composables/useRequestUriName.js +58 -0
- package/dist/data-provider-interface/config/dcatap/format-types.js +256 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.js +1842 -0
- package/dist/data-provider-interface/config/dcatap/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatap/prefixes.js +25 -0
- package/dist/data-provider-interface/config/dcatap/vocab-prefixes.js +24 -0
- package/dist/data-provider-interface/config/dcatapde/format-types.js +274 -0
- package/dist/data-provider-interface/config/dcatapde/input-definition.js +2131 -0
- package/dist/data-provider-interface/config/dcatapde/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatapde/prefixes.js +27 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +33 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +161 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +2196 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +82 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.js +18 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dpi-spec-config.js +54 -0
- package/dist/data-provider-interface/config/selector-languages.json.js +57 -0
- package/dist/data-provider-interface/plugins/userConfigShimPlugin.js +10 -0
- package/dist/data-provider-interface/store/dpiStore.js +33 -0
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +94 -0
- package/dist/data-provider-interface/store/modules/navigationStore.js +24 -0
- package/dist/data-provider-interface/utils/general-helper.js +218 -0
- package/dist/data-provider-interface/utils/injectionKeys.js +5 -0
- package/dist/data-provider-interface/utils/translation-helper.js +31 -0
- package/dist/data-provider-interface/utils/useSteps.js +34 -0
- package/dist/data-provider-interface/views/DistributionInputPage.vue.js +100 -0
- package/dist/data-provider-interface/views/DistributionOverview.vue.js +201 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +278 -0
- package/dist/data-provider-interface/views/InputPage.vue.js +1182 -0
- package/dist/data-provider-interface/views/LinkedDataViewer.vue.js +105 -0
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js +86 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.js +214 -0
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.js +219 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.js +19 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.js +397 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.js +56 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.js +109 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.js +92 -0
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.js +103 -0
- package/dist/data-provider-interface/views/OverviewPage.vue.js +189 -0
- package/dist/data-provider-interface/views/PropertyChooser.vue.js +41 -0
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.js +74 -0
- package/dist/data-provider-interface/views/UserProfilePage.vue.js +83 -0
- package/dist/filters/dateFilters.js +39 -0
- package/dist/form/FormKitGroup.vue.js +55 -0
- package/dist/form/Repeatable.vue.js +7 -0
- package/dist/form/Repeatable.vue2.js +72 -0
- package/dist/form/inputDefinitions.js +131 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +124 -0
- package/dist/utils/helpers.js +32 -0
- package/dist/widgets/AppLink.vue.js +118 -0
- package/package.json +96 -0
|
@@ -0,0 +1,1182 @@
|
|
|
1
|
+
import { getNode as B } from "@formkit/core";
|
|
2
|
+
import "@formkit/vue";
|
|
3
|
+
import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as X } from "@phosphor-icons/vue";
|
|
4
|
+
import { useWindowScroll as Y } from "@vueuse/core";
|
|
5
|
+
import J from "jquery";
|
|
6
|
+
import { has as _, isNil as F } from "lodash-es";
|
|
7
|
+
import { defineComponent as N, resolveComponent as v, createElementBlock as o, openBlock as s, createCommentVNode as d, createElementVNode as a, createVNode as h, createBlock as b, withModifiers as Q, withCtx as U, Fragment as V, renderList as k, withDirectives as O, normalizeClass as C, toDisplayString as u, vShow as z, createTextVNode as M, ref as j, markRaw as x, computed as ee, getCurrentInstance as te } from "vue";
|
|
8
|
+
import { useI18n as ie } from "vue-i18n";
|
|
9
|
+
import { mapActions as H, mapGetters as W } from "vuex";
|
|
10
|
+
import se from "../components/InputPageStep.vue.js";
|
|
11
|
+
import ae from "../components/Navigation.vue.js";
|
|
12
|
+
import { useFormValues as oe } from "../composables/useDpiFormValues.js";
|
|
13
|
+
import { useDpiStepper as re } from "../composables/useDpiStepper.js";
|
|
14
|
+
import q from "../config/dcatapdeHappyFlow/converter.js";
|
|
15
|
+
import le from "../HappyFlowComponents/img/Circle.svg.js";
|
|
16
|
+
import de from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
17
|
+
import ne from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
18
|
+
import ce from "../HappyFlowComponents/img/Selected1_2.svg.js";
|
|
19
|
+
import pe from "../HappyFlowComponents/img/Selected2.svg.js";
|
|
20
|
+
import ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
|
|
21
|
+
import he from "../HappyFlowComponents/img/Selected3.svg.js";
|
|
22
|
+
import me from "../HappyFlowComponents/img/Selected3_2.svg.js";
|
|
23
|
+
import ge from "../HappyFlowComponents/img/Selected4.svg.js";
|
|
24
|
+
import ve from "../HappyFlowComponents/img/Selected4_2.svg.js";
|
|
25
|
+
import fe from "../HappyFlowComponents/img/Selected5.svg.js";
|
|
26
|
+
import be from "../HappyFlowComponents/img/Selected5_2.svg.js";
|
|
27
|
+
import { eventBus as Se } from "../HappyFlowComponents/services/eventBus.js";
|
|
28
|
+
import ye from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
29
|
+
import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
30
|
+
import Ve from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
31
|
+
import ke from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
32
|
+
import De from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
33
|
+
import Ie from "./DistributionInputPage.vue.js";
|
|
34
|
+
import _e from "./OverviewPage.vue.js";
|
|
35
|
+
import Te from "./PropertyChooser.vue.js";
|
|
36
|
+
/* empty css */
|
|
37
|
+
/* empty css */
|
|
38
|
+
/* empty css */
|
|
39
|
+
import Le from "../../_virtual/_plugin-vue_export-helper.js";
|
|
40
|
+
import { useDpiContext as Pe } from "../composables/useDpiContext.js";
|
|
41
|
+
import { useFormSchema as we } from "../composables/useFormSchema.js";
|
|
42
|
+
const Ae = N({
|
|
43
|
+
props: {
|
|
44
|
+
property: {
|
|
45
|
+
required: !0,
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
context: {},
|
|
49
|
+
id: {
|
|
50
|
+
type: String
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
circles: [le, de],
|
|
56
|
+
images: [ne, pe, he, ge, fe],
|
|
57
|
+
selectedImages: [
|
|
58
|
+
ce,
|
|
59
|
+
ue,
|
|
60
|
+
me,
|
|
61
|
+
ve,
|
|
62
|
+
be
|
|
63
|
+
],
|
|
64
|
+
instance: te(),
|
|
65
|
+
heightActiveSec: "10vh",
|
|
66
|
+
// formValues: {},
|
|
67
|
+
offsetTopStepper: "60px",
|
|
68
|
+
info: {},
|
|
69
|
+
catalogues: [],
|
|
70
|
+
substepCounter: 0,
|
|
71
|
+
stepCounter: 0,
|
|
72
|
+
byte: !0,
|
|
73
|
+
expandall: !0,
|
|
74
|
+
modalSimpleConf: {
|
|
75
|
+
button: "Ja, abbrechen",
|
|
76
|
+
header: "Wollen Sie wirklich abbrechen?",
|
|
77
|
+
text: "Beim Abbrechen gehen alle eingegebenen Daten unwiderruflich verloren und können nicht wiederhergestellt werden.",
|
|
78
|
+
action: "cancel"
|
|
79
|
+
},
|
|
80
|
+
// activeSubStep: "",
|
|
81
|
+
// steps:{},
|
|
82
|
+
camel2title: (e) => e.replace(/([A-Z])/g, (t) => ` ${t}`).replace(/^./, (t) => t.toUpperCase()).trim()
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
components: {
|
|
86
|
+
InputPageStep: se,
|
|
87
|
+
DistributionInputPage: Ie,
|
|
88
|
+
PropertyChooser: Te,
|
|
89
|
+
Navigation: ae,
|
|
90
|
+
LogoV3: Ve,
|
|
91
|
+
ButtonV3: ye,
|
|
92
|
+
TextButtonSmall: De,
|
|
93
|
+
Illustration: Ce,
|
|
94
|
+
PhLightbulb: X,
|
|
95
|
+
PhCheckCircle: G,
|
|
96
|
+
PhNumberCircleFive: Z,
|
|
97
|
+
ModalSimpleV3: ke
|
|
98
|
+
},
|
|
99
|
+
computed: {
|
|
100
|
+
...W("auth", [
|
|
101
|
+
"getIsEditMode",
|
|
102
|
+
"getUserCatalogIds",
|
|
103
|
+
"getUserData"
|
|
104
|
+
]),
|
|
105
|
+
...W("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
106
|
+
getTitleStep() {
|
|
107
|
+
return Object.keys(this.formValues).filter(
|
|
108
|
+
(e) => _(this.formValues[e], "dct:title")
|
|
109
|
+
)[0];
|
|
110
|
+
},
|
|
111
|
+
createIDFromTitle() {
|
|
112
|
+
const e = this.formValues[this.getTitleStep]["dct:title"][0]["@value"];
|
|
113
|
+
if (e != null)
|
|
114
|
+
return e.toLowerCase().replace(/ /g, "-");
|
|
115
|
+
},
|
|
116
|
+
getFirstTitleFromForm() {
|
|
117
|
+
try {
|
|
118
|
+
const e = this.formValues[this.getTitleStep];
|
|
119
|
+
return _(e, "dct:title") && e["dct:title"].length > 0 && _(e["dct:title"][0], "@value") && !F(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
120
|
+
} catch {
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
isInput() {
|
|
124
|
+
return this.$route.params.page !== "overview" && this.$route.params.page !== "distoverview";
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
...H("auth", ["setIsEditMode", "setIsDraft"]),
|
|
129
|
+
...H("dpiStore", [
|
|
130
|
+
"saveFormValues",
|
|
131
|
+
"saveLocalstorageValues",
|
|
132
|
+
"clearAll"
|
|
133
|
+
]),
|
|
134
|
+
update() {
|
|
135
|
+
this.$forceUpdate();
|
|
136
|
+
},
|
|
137
|
+
// Route to the RAP Page
|
|
138
|
+
goToRAP() {
|
|
139
|
+
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(B(this.activeStep).value)[0];
|
|
140
|
+
},
|
|
141
|
+
// Remove after DPI development is finished - just fills all fields with dummy Data
|
|
142
|
+
fillData() {
|
|
143
|
+
this.formValues = {
|
|
144
|
+
Landing: { happyFlowLandingPage: {} },
|
|
145
|
+
Discoverability: {
|
|
146
|
+
discoverabilityPage: [
|
|
147
|
+
{ isValid: !0 },
|
|
148
|
+
{
|
|
149
|
+
id: "SOCI",
|
|
150
|
+
uri: "http://publications.europa.eu/resource/authority/data-theme/SOCI",
|
|
151
|
+
label: "Bevölkerung und Gesellschaft"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "EDUC",
|
|
155
|
+
uri: "http://publications.europa.eu/resource/authority/data-theme/EDUC",
|
|
156
|
+
label: "Bildung, Kultur und Sport"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
hvdPage: [
|
|
160
|
+
{
|
|
161
|
+
isValid: !0,
|
|
162
|
+
label: "Erdbeobachtung und Umwelt",
|
|
163
|
+
uri: "http://data.europa.eu/bna/c_dd313021"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
BasicInfos: {
|
|
168
|
+
"dct:title": [
|
|
169
|
+
{
|
|
170
|
+
isValid: !0,
|
|
171
|
+
"@value": "Datensatz mit allen Props neu! Micha",
|
|
172
|
+
"@language": "de"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"dct:description": [
|
|
176
|
+
{
|
|
177
|
+
isValid: !0,
|
|
178
|
+
"@value": "Description Datensatz",
|
|
179
|
+
"@language": "de"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"dct:modified": [
|
|
183
|
+
{
|
|
184
|
+
isValid: !0,
|
|
185
|
+
"@type": "http://www.w3.org/2001/XMLSchema#date",
|
|
186
|
+
"@value": "2025-07-01"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"dct:publisher": [
|
|
190
|
+
{
|
|
191
|
+
isValid: !0,
|
|
192
|
+
"foaf:name": "OrgaName",
|
|
193
|
+
"foaf:mbox": "emailOrga@mail.de",
|
|
194
|
+
"foaf:homepage": "orgawebseite.de"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"dcat:contactPoint": [
|
|
198
|
+
{
|
|
199
|
+
isValid: !0,
|
|
200
|
+
"vcard:fn": "Mobilitätsreferat - Verkehrs- und Verhaltensdaten",
|
|
201
|
+
"vcard:hasEmail": "verkehrsdaten.mor@muenchen.de",
|
|
202
|
+
"vcard:hasTelephone": "0158727522505"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
Covering: {
|
|
207
|
+
"dcatde:politicalGeocodingURI": [{ isValid: !0 }],
|
|
208
|
+
"dcat:temporalResolution": [
|
|
209
|
+
{
|
|
210
|
+
isValid: !0,
|
|
211
|
+
type: "dct:PeriodOfTime",
|
|
212
|
+
"dct:temporal": [
|
|
213
|
+
{
|
|
214
|
+
dataType: "dateTime",
|
|
215
|
+
"dcat:startDate": "2025-07-03",
|
|
216
|
+
"dcat:endDate": "2025-07-18",
|
|
217
|
+
startTime: "12:08",
|
|
218
|
+
endTime: "12:08"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
DistributionSimple: {
|
|
225
|
+
"dcat:distribution": [
|
|
226
|
+
{
|
|
227
|
+
isValid: !0,
|
|
228
|
+
id: 1,
|
|
229
|
+
"dcat:accessURL": "https://linkzudaten.de",
|
|
230
|
+
"dct:format": {
|
|
231
|
+
label: "GDB",
|
|
232
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/GDB"
|
|
233
|
+
},
|
|
234
|
+
"dct:title": "Dist Titel",
|
|
235
|
+
documentations: [
|
|
236
|
+
{
|
|
237
|
+
id: 1,
|
|
238
|
+
"dcat:accessURL": "",
|
|
239
|
+
"dct:format": "STL",
|
|
240
|
+
"dct:title": "Dokumentation Titel",
|
|
241
|
+
"dct:description": "Dokumentation Description",
|
|
242
|
+
"dcat:downloadURL": "https://dloadURL.de"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
conformsToItems: [
|
|
246
|
+
{
|
|
247
|
+
id: 1,
|
|
248
|
+
"dcat:accessURL": "",
|
|
249
|
+
"dct:title": "Conforms To Titel",
|
|
250
|
+
"dcat:downloadURL": "https://konformsto.de"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
policyItems: [
|
|
254
|
+
{
|
|
255
|
+
id: 1,
|
|
256
|
+
"dcat:accessURL": "",
|
|
257
|
+
"dcat:downloadURL": "Https://regelwerk.de"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
accessServices: [
|
|
261
|
+
{
|
|
262
|
+
id: 1,
|
|
263
|
+
"dcat:accessURL": "",
|
|
264
|
+
"dct:title": "Ausliefernder Datenservice Titel",
|
|
265
|
+
"dct:description": "Ausliefernder Datenservice Beschreibung",
|
|
266
|
+
"dcat:downloadURL": "https://ausliefernderDatenservice.de"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"dct:modified": "2025-07-03",
|
|
270
|
+
"dct:issued": "2025-07-01",
|
|
271
|
+
"dct:description": "Dist Beschreibung",
|
|
272
|
+
"dcatde:licenseAttributionByText": "Namensnennungstext für By-Clauses",
|
|
273
|
+
"dct:accessRights": "https://zugaenglichkeit.url",
|
|
274
|
+
"dcatap:availability": {
|
|
275
|
+
label: "AVAILABLE",
|
|
276
|
+
uri: "http://publications.europa.eu/resource/authority/planned-availability/AVAILABLE"
|
|
277
|
+
},
|
|
278
|
+
"dct:language": {
|
|
279
|
+
label: "ABK (ABK)",
|
|
280
|
+
uri: "http://publications.europa.eu/resource/authority/language/ABK"
|
|
281
|
+
},
|
|
282
|
+
"dcat:byteSize": "51",
|
|
283
|
+
"dcat:mediaType": {
|
|
284
|
+
label: "CSS",
|
|
285
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/CSS"
|
|
286
|
+
},
|
|
287
|
+
"dcat:compressFormat": {
|
|
288
|
+
label: "DOC",
|
|
289
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/DOC"
|
|
290
|
+
},
|
|
291
|
+
"dcat:packageFormat": {
|
|
292
|
+
label: "FMX4_ZIP",
|
|
293
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/FMX4_ZIP"
|
|
294
|
+
},
|
|
295
|
+
"adms:status": "",
|
|
296
|
+
checksum: {
|
|
297
|
+
title: "31",
|
|
298
|
+
"spdx:checksum": "sha384",
|
|
299
|
+
uri: "http://spdx.org/rdf/terms#checksumAlgorithm_sha384"
|
|
300
|
+
},
|
|
301
|
+
changeLicense: { title: "", "dcterms:license": "" },
|
|
302
|
+
showErrorFormat: !1,
|
|
303
|
+
formatErrorMessage: "",
|
|
304
|
+
showErrorDownloadURL: !1
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
isValid: !0,
|
|
308
|
+
id: 1,
|
|
309
|
+
"dcat:accessURL": "https://linkzudatenZWEI.de",
|
|
310
|
+
"dct:format": {
|
|
311
|
+
label: "GDB",
|
|
312
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/GDB"
|
|
313
|
+
},
|
|
314
|
+
"dct:title": "Dist Titel ZWEI",
|
|
315
|
+
documentations: [
|
|
316
|
+
{
|
|
317
|
+
id: 1,
|
|
318
|
+
"dcat:accessURL": "",
|
|
319
|
+
"dct:format": "STL",
|
|
320
|
+
"dct:title": "Dokumentation Titel ZWEI",
|
|
321
|
+
"dct:description": "Dokumentation Description",
|
|
322
|
+
"dcat:downloadURL": "https://dloadURL.de"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
conformsToItems: [
|
|
326
|
+
{
|
|
327
|
+
id: 1,
|
|
328
|
+
"dcat:accessURL": "",
|
|
329
|
+
"dct:title": "Conforms To Titel",
|
|
330
|
+
"dcat:downloadURL": "https://konformsto.de"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
policyItems: [
|
|
334
|
+
{
|
|
335
|
+
id: 1,
|
|
336
|
+
"dcat:accessURL": "",
|
|
337
|
+
"dcat:downloadURL": "Https://regelwerk.de"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
accessServices: [
|
|
341
|
+
{
|
|
342
|
+
id: 1,
|
|
343
|
+
"dcat:accessURL": "",
|
|
344
|
+
"dct:title": "Ausliefernder Datenservice Titel",
|
|
345
|
+
"dct:description": "Ausliefernder Datenservice Beschreibung",
|
|
346
|
+
"dcat:downloadURL": "https://ausliefernderDatenservice.de"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"dct:modified": "2025-07-03",
|
|
350
|
+
"dct:issued": "2025-07-01",
|
|
351
|
+
"dct:description": "Dist BeschreibungZWEI",
|
|
352
|
+
"dcatde:licenseAttributionByText": "Namensnennungstext für By-Clauses ZWEI",
|
|
353
|
+
"dct:accessRights": "https://zugaenglichkeitZWEI.url",
|
|
354
|
+
"dcatap:availability": {
|
|
355
|
+
label: "AVAILABLE",
|
|
356
|
+
uri: "http://publications.europa.eu/resource/authority/planned-availability/AVAILABLE"
|
|
357
|
+
},
|
|
358
|
+
"dct:language": {
|
|
359
|
+
label: "ABK (ABK)",
|
|
360
|
+
uri: "http://publications.europa.eu/resource/authority/language/ABK"
|
|
361
|
+
},
|
|
362
|
+
"dcat:byteSize": "51",
|
|
363
|
+
"dcat:mediaType": {
|
|
364
|
+
label: "CSS",
|
|
365
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/CSS"
|
|
366
|
+
},
|
|
367
|
+
"dcat:compressFormat": {
|
|
368
|
+
label: "DOC",
|
|
369
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/DOC"
|
|
370
|
+
},
|
|
371
|
+
"dcat:packageFormat": {
|
|
372
|
+
label: "FMX4_ZIP",
|
|
373
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/FMX4_ZIP"
|
|
374
|
+
},
|
|
375
|
+
"adms:status": "",
|
|
376
|
+
checksum: {
|
|
377
|
+
title: "31",
|
|
378
|
+
"spdx:checksum": "sha384",
|
|
379
|
+
uri: "http://spdx.org/rdf/terms#checksumAlgorithm_sha384"
|
|
380
|
+
},
|
|
381
|
+
changeLicense: { title: "", "dcterms:license": "" },
|
|
382
|
+
showErrorFormat: !1,
|
|
383
|
+
formatErrorMessage: "",
|
|
384
|
+
showErrorDownloadURL: !1
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
isValid: !0,
|
|
388
|
+
id: 1,
|
|
389
|
+
"dcat:accessURL": "https://linkzudatenDREI.de",
|
|
390
|
+
"dct:format": {
|
|
391
|
+
label: "GDB",
|
|
392
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/GDB"
|
|
393
|
+
},
|
|
394
|
+
"dct:title": "Dist Titel DREI",
|
|
395
|
+
documentations: [
|
|
396
|
+
{
|
|
397
|
+
id: 1,
|
|
398
|
+
"dcat:accessURL": "",
|
|
399
|
+
"dct:format": "STL",
|
|
400
|
+
"dct:title": "Dokumentation Titel DREI",
|
|
401
|
+
"dct:description": "Dokumentation Description",
|
|
402
|
+
"dcat:downloadURL": "https://dloadURL.de"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
conformsToItems: [
|
|
406
|
+
{
|
|
407
|
+
id: 1,
|
|
408
|
+
"dcat:accessURL": "",
|
|
409
|
+
"dct:title": "Conforms To Titel",
|
|
410
|
+
"dcat:downloadURL": "https://konformsto.de"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
policyItems: [
|
|
414
|
+
{
|
|
415
|
+
id: 1,
|
|
416
|
+
"dcat:accessURL": "",
|
|
417
|
+
"dcat:downloadURL": "Https://regelwerk.de"
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
accessServices: [
|
|
421
|
+
{
|
|
422
|
+
id: 1,
|
|
423
|
+
"dcat:accessURL": "",
|
|
424
|
+
"dct:title": "Ausliefernder Datenservice Titel",
|
|
425
|
+
"dct:description": "Ausliefernder Datenservice Beschreibung",
|
|
426
|
+
"dcat:downloadURL": "https://ausliefernderDatenservice.de"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"dct:modified": "2025-07-03",
|
|
430
|
+
"dct:issued": "2025-07-01",
|
|
431
|
+
"dct:description": "Dist BeschreibungDREI",
|
|
432
|
+
"dcatde:licenseAttributionByText": "Namensnennungstext für By-Clauses DREI",
|
|
433
|
+
"dct:accessRights": "https://zugaenglichkeitDREI.url",
|
|
434
|
+
"dcatap:availability": {
|
|
435
|
+
label: "AVAILABLE",
|
|
436
|
+
uri: "http://publications.europa.eu/resource/authority/planned-availability/AVAILABLE"
|
|
437
|
+
},
|
|
438
|
+
"dct:language": {
|
|
439
|
+
label: "ABK (ABK)",
|
|
440
|
+
uri: "http://publications.europa.eu/resource/authority/language/ABK"
|
|
441
|
+
},
|
|
442
|
+
"dcat:byteSize": "51",
|
|
443
|
+
"dcat:mediaType": {
|
|
444
|
+
label: "CSS",
|
|
445
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/CSS"
|
|
446
|
+
},
|
|
447
|
+
"dcat:compressFormat": {
|
|
448
|
+
label: "DOC",
|
|
449
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/DOC"
|
|
450
|
+
},
|
|
451
|
+
"dcat:packageFormat": {
|
|
452
|
+
label: "FMX4_ZIP",
|
|
453
|
+
uri: "http://publications.europa.eu/resource/authority/file-type/FMX4_ZIP"
|
|
454
|
+
},
|
|
455
|
+
"adms:status": "",
|
|
456
|
+
checksum: {
|
|
457
|
+
title: "31",
|
|
458
|
+
"spdx:checksum": "sha384",
|
|
459
|
+
uri: "http://spdx.org/rdf/terms#checksumAlgorithm_sha384"
|
|
460
|
+
},
|
|
461
|
+
changeLicense: { title: "", "dcterms:license": "" },
|
|
462
|
+
showErrorFormat: !1,
|
|
463
|
+
formatErrorMessage: "",
|
|
464
|
+
showErrorDownloadURL: !1
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"dct:license": [
|
|
468
|
+
{
|
|
469
|
+
isValid: !0,
|
|
470
|
+
"dcterms:license": "CC_BY_3_0",
|
|
471
|
+
title: "Datenbereitsteller Lizenz",
|
|
472
|
+
uri: "http://publications.europa.eu/resource/authority/licence/CC_BY_3_0"
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
ReviewAndPublish: { reviewAndPublishPage: [{ isValid: !0 }] },
|
|
477
|
+
Additionals: {
|
|
478
|
+
"dcatde:geocodingDescription": [{ "@value": "Geocoding Desc" }],
|
|
479
|
+
"dct:identifier": [{ "@value": "Identifier" }],
|
|
480
|
+
"adms:versionNotes": [{ "@value": "sadsds" }],
|
|
481
|
+
"dcatde:legalBasis": [{ "@value": "sdfsdf" }],
|
|
482
|
+
"dct:relation": [{ "@id": "https://sdsdfljn.de" }],
|
|
483
|
+
"dcat:landingPage": [{ "@id": "https://dfdfgdfg.de" }],
|
|
484
|
+
"dct:language": [
|
|
485
|
+
{
|
|
486
|
+
"@value": "Rarotonganisch",
|
|
487
|
+
uri: "http://publications.europa.eu/resource/authority/language/RAR"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
"dct:conformsTo": [
|
|
491
|
+
{ "rdfs:label": "relatesto", "@id": "https://realtes.to" }
|
|
492
|
+
],
|
|
493
|
+
"dct:accessRights": [
|
|
494
|
+
{
|
|
495
|
+
"@value": "sensibel",
|
|
496
|
+
uri: "http://publications.europa.eu/resource/authority/access-right/SENSITIVE"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"dct:provenance": [{ "rdfs:label": "fdgfgd" }],
|
|
500
|
+
"dct:accrualPeriodicity": [
|
|
501
|
+
{
|
|
502
|
+
"@value": "niemals",
|
|
503
|
+
uri: "http://publications.europa.eu/resource/authority/frequency/NEVER"
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"dct:type": [
|
|
507
|
+
{
|
|
508
|
+
"@value": "Geodaten",
|
|
509
|
+
uri: "http://publications.europa.eu/resource/authority/dataset-type/GEOSPATIAL"
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"prov:wasGeneratedBy": [{ "@id": "https://dfdfgdfg.gr" }],
|
|
513
|
+
"dcat:spatialResolutionInMeters": [{ "@value": "121351" }],
|
|
514
|
+
"dcat:temporalResolution": [
|
|
515
|
+
{
|
|
516
|
+
Year: "2025",
|
|
517
|
+
Month: "11",
|
|
518
|
+
Day: "11",
|
|
519
|
+
Hour: "11",
|
|
520
|
+
Minute: "11",
|
|
521
|
+
Second: "1"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"prov:qualifiedAttribution": [{ "@id": "https://sdfsdf.de" }],
|
|
525
|
+
"dcat:qualifiedRelation": [{ "@id": "https://sdfsdfs.de" }],
|
|
526
|
+
"dct:isReferencedBy": [{ "@id": "https://asdasda.de" }],
|
|
527
|
+
"dct:source": [{ "@id": "https://asdijhdf.de" }],
|
|
528
|
+
"dct:hasVersion": [{ "@id": "https://asdasda.de" }],
|
|
529
|
+
"dct:isVersionOf": [{ "@id": "https://asdasd.de" }],
|
|
530
|
+
"dct:creator": [
|
|
531
|
+
{
|
|
532
|
+
"foaf:name": "asdasd",
|
|
533
|
+
"foaf:mbox": "asdasd@mail.de",
|
|
534
|
+
"foaf:homepage": "homepage.de"
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"dct:contributor": [
|
|
538
|
+
{
|
|
539
|
+
"foaf:mbox": "asdasdasd@mail.de",
|
|
540
|
+
"foaf:name": "kjabskdjabs",
|
|
541
|
+
"foaf:homepage": "kahsbdkhasbd.de"
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
}, console.log(this.$formkit.get("dpiForm"));
|
|
546
|
+
},
|
|
547
|
+
getCircles(e) {
|
|
548
|
+
return e === this.substepCounter ? this.circles[1] : this.circles[0];
|
|
549
|
+
},
|
|
550
|
+
handleDistributionsValidation(e) {
|
|
551
|
+
Se.emit("nextClicked", e);
|
|
552
|
+
},
|
|
553
|
+
gotToHome() {
|
|
554
|
+
window.location.href = this.$router.resolve({
|
|
555
|
+
name: "DPI-Home-HappyFlow"
|
|
556
|
+
}).href;
|
|
557
|
+
},
|
|
558
|
+
navTrigger(e, t) {
|
|
559
|
+
try {
|
|
560
|
+
let i = [];
|
|
561
|
+
if (Object.keys(this.steps).forEach((n, c) => {
|
|
562
|
+
let S = {
|
|
563
|
+
step: n,
|
|
564
|
+
substeps: this.subSteps[c],
|
|
565
|
+
substepCount: Object.keys(this.subSteps[c]).length
|
|
566
|
+
};
|
|
567
|
+
i.push(S);
|
|
568
|
+
}), e === "next" && (i[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === i[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = i[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
569
|
+
i[this.stepCounter].substeps
|
|
570
|
+
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
571
|
+
i[this.stepCounter].substeps
|
|
572
|
+
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (B(this.activeStep).value[this.activeSubStep][0].isValid = !0)) : this.stepCounter != i.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
|
|
573
|
+
i[this.stepCounter].substeps
|
|
574
|
+
)[0], this.activeStep = i[this.stepCounter].step)), e === "prev" && (i[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
|
|
575
|
+
i[this.stepCounter].substeps
|
|
576
|
+
)[this.substepCounter]) : (this.stepCounter--, this.activeStep = i[this.stepCounter].step, this.substepCounter = Object.keys(i[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
|
|
577
|
+
i[this.stepCounter].substeps
|
|
578
|
+
)[this.substepCounter]) : (this.substepCounter = Object.keys(i[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
|
|
579
|
+
i[this.stepCounter].substeps
|
|
580
|
+
)[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
|
|
581
|
+
let n = "auth/createDataset";
|
|
582
|
+
q(
|
|
583
|
+
this.formValues,
|
|
584
|
+
this.dpiContext,
|
|
585
|
+
this.getUserData,
|
|
586
|
+
this.$env.api.hubUrl
|
|
587
|
+
).then((c) => {
|
|
588
|
+
this.dispatchDataToDPI(
|
|
589
|
+
c.body,
|
|
590
|
+
n,
|
|
591
|
+
c.actionParams,
|
|
592
|
+
"publish"
|
|
593
|
+
);
|
|
594
|
+
}).catch((c) => {
|
|
595
|
+
console.error("Fehler beim Senden der Daten:", c);
|
|
596
|
+
}), setTimeout(() => {
|
|
597
|
+
window.location.href = this.$router.resolve({
|
|
598
|
+
name: "DPI-Home-HappyFlow"
|
|
599
|
+
}).href;
|
|
600
|
+
}, 1e3);
|
|
601
|
+
}
|
|
602
|
+
if (e === "draft") {
|
|
603
|
+
let n = "auth/createUserDraft";
|
|
604
|
+
q(
|
|
605
|
+
this.formValues,
|
|
606
|
+
this.dpiContext,
|
|
607
|
+
this.getUserData,
|
|
608
|
+
this.$env.api.hubUrl
|
|
609
|
+
).then((c) => {
|
|
610
|
+
this.dispatchDataToDPI(
|
|
611
|
+
c.body,
|
|
612
|
+
n,
|
|
613
|
+
c.actionParams,
|
|
614
|
+
"draft"
|
|
615
|
+
);
|
|
616
|
+
}).catch((c) => {
|
|
617
|
+
console.error("Fehler beim Senden der Daten:", c);
|
|
618
|
+
}), setTimeout(() => {
|
|
619
|
+
window.location.href = this.$router.resolve({
|
|
620
|
+
name: "DPI-Home-HappyFlow"
|
|
621
|
+
}).href;
|
|
622
|
+
}, 1e3);
|
|
623
|
+
}
|
|
624
|
+
} catch (i) {
|
|
625
|
+
console.log(i);
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
async dispatchDataToDPI(e, t, i, n) {
|
|
629
|
+
var c, S;
|
|
630
|
+
console.log("body:", e, t, "params:", i, n);
|
|
631
|
+
try {
|
|
632
|
+
n === "publish" && (i.token = this.getUserData.rtpToken, console.log(i.token), i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), n === "draft" && await this.$store.dispatch(t, i), (c = this.$Progress) == null || c.finish(), this.clearAll();
|
|
633
|
+
} catch (y) {
|
|
634
|
+
console.error(y), (S = this.$Progress) == null || S.fail();
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
dropdownCLick() {
|
|
638
|
+
const e = document.querySelectorAll(".formkitProperty h4");
|
|
639
|
+
this.expandall && e.forEach((t, i) => {
|
|
640
|
+
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
641
|
+
}), this.expandall || e.forEach((t, i) => {
|
|
642
|
+
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
643
|
+
});
|
|
644
|
+
},
|
|
645
|
+
clearForm() {
|
|
646
|
+
this.$formkit.reset("dpi");
|
|
647
|
+
},
|
|
648
|
+
scrollToTop() {
|
|
649
|
+
window.scrollTo(0, 0);
|
|
650
|
+
},
|
|
651
|
+
initInputPage() {
|
|
652
|
+
this.activeSubStep = this.activeSubStep || "Landing";
|
|
653
|
+
const e = this.getSchema(this.property).value, t = Object.keys(e).find(
|
|
654
|
+
(i) => e[i].map((n) => n.name).includes("dct:issued") || e[i].map((n) => n.name).includes("dct:modified")
|
|
655
|
+
);
|
|
656
|
+
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((i) => {
|
|
657
|
+
(i.identifier === "issued" || i.identifier === "modified") && (i.children[1].props.else.validation = "", i.children[1].props.else["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "");
|
|
658
|
+
}), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
|
|
659
|
+
J('[data-toggle="tooltip"]').tooltip({
|
|
660
|
+
container: "body"
|
|
661
|
+
}), setTimeout(() => {
|
|
662
|
+
document.querySelectorAll(".formkitProperty h4").forEach((n, c) => {
|
|
663
|
+
n.parentElement.parentElement.classList.contains(
|
|
664
|
+
"formkitWrapRepeatable"
|
|
665
|
+
) || (c != 0 && c != 1 && c != 2 && c != 3 && n.nextElementSibling.classList.toggle("d-none"), n.addEventListener("click", () => {
|
|
666
|
+
n.classList.toggle("dpiChevUp"), n.nextElementSibling.classList.toggle("d-none");
|
|
667
|
+
}));
|
|
668
|
+
}), document.querySelectorAll(".formkitProperty");
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
},
|
|
672
|
+
createDatasetID() {
|
|
673
|
+
const e = this.formValues[this.getTitleStep];
|
|
674
|
+
!_(e, "datasetID") || F(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
|
|
675
|
+
},
|
|
676
|
+
generateandTranslateSchema(e) {
|
|
677
|
+
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
678
|
+
this.createSchema({
|
|
679
|
+
property: e,
|
|
680
|
+
page: this.getNavSteps(
|
|
681
|
+
this.$env.content.dataProviderInterface.specification
|
|
682
|
+
)[e][t],
|
|
683
|
+
specification: this.$env.content.dataProviderInterface.specification
|
|
684
|
+
}), this.translateSchema({
|
|
685
|
+
property: e,
|
|
686
|
+
page: this.getNavSteps(
|
|
687
|
+
this.$env.content.dataProviderInterface.specification
|
|
688
|
+
)[e][t]
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
created() {
|
|
693
|
+
this.$route.query.edit === "false" && this.clearAll(), this.generateandTranslateSchema(this.property), this.property === "datasets" && this.generateandTranslateSchema("distributions");
|
|
694
|
+
},
|
|
695
|
+
mounted() {
|
|
696
|
+
this.initInputPage();
|
|
697
|
+
},
|
|
698
|
+
watch: {
|
|
699
|
+
activeStep: {
|
|
700
|
+
handler() {
|
|
701
|
+
this.scrollToTop();
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
getFirstTitleFromForm: {
|
|
705
|
+
handler(e, t) {
|
|
706
|
+
e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.isEditMode);
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
// the schema is a computed value which gets computed only once so on language change this value must be re-computed
|
|
710
|
+
"$i18n.locale": {
|
|
711
|
+
handler() {
|
|
712
|
+
this.generateandTranslateSchema(this.property), this.property === "datasets" && this.generateandTranslateSchema("distributions");
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
beforeRouteEnter(e, t, i) {
|
|
717
|
+
i((n) => {
|
|
718
|
+
t.name && !t.name.startsWith("DataProviderInterface") && n.clearAll();
|
|
719
|
+
});
|
|
720
|
+
},
|
|
721
|
+
setup() {
|
|
722
|
+
const e = Pe(), {
|
|
723
|
+
steps: t,
|
|
724
|
+
activeStep: i,
|
|
725
|
+
subSteps: n,
|
|
726
|
+
visitedSteps: c,
|
|
727
|
+
previousStep: S,
|
|
728
|
+
nextStep: y,
|
|
729
|
+
stepPlugin: g,
|
|
730
|
+
goToNextStep: D,
|
|
731
|
+
goToPreviousStep: T
|
|
732
|
+
} = re(), { formValues: I } = oe(), { t: L, te: P } = ie(), w = j(!1), { translateSchema: A, createSchema: $, getSchema: R } = we({
|
|
733
|
+
t: L,
|
|
734
|
+
te: P
|
|
735
|
+
}), E = () => {
|
|
736
|
+
let { x: m, y: K } = Y({ behavior: "smooth" });
|
|
737
|
+
K.value = 0;
|
|
738
|
+
}, r = (m) => (t[m].errorCount > 0 || t[m].blockingCount > 0) && c.value.includes(m), p = x({ OverviewPage: _e }), l = ee(() => {
|
|
739
|
+
var m;
|
|
740
|
+
return !!((m = e.value.edit) != null && m.enabled);
|
|
741
|
+
}), f = j("");
|
|
742
|
+
return l.value && (i.value = "ReviewAndPublish", f.value = "reviewAndPublishPage"), {
|
|
743
|
+
steps: t,
|
|
744
|
+
visitedSteps: c,
|
|
745
|
+
activeStep: i,
|
|
746
|
+
activeSubStep: f,
|
|
747
|
+
subSteps: n,
|
|
748
|
+
previousStep: S,
|
|
749
|
+
nextStep: y,
|
|
750
|
+
stepPlugin: g,
|
|
751
|
+
checkStepValidity: r,
|
|
752
|
+
goToNextStep: D,
|
|
753
|
+
goToPreviousStep: T,
|
|
754
|
+
scrollToTop: E,
|
|
755
|
+
library: p,
|
|
756
|
+
isEditMode: l,
|
|
757
|
+
translateSchema: A,
|
|
758
|
+
createSchema: $,
|
|
759
|
+
getSchema: R,
|
|
760
|
+
dpiContext: e,
|
|
761
|
+
formValues: I,
|
|
762
|
+
activeSimpleModal: w
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
}), $e = { class: "form-container V3-typography" }, Re = {
|
|
766
|
+
key: 0,
|
|
767
|
+
ref: "fkInputContainer",
|
|
768
|
+
class: "inputContainer"
|
|
769
|
+
}, Ee = { class: "formContainer formkit" }, Be = { key: 0 }, Fe = { class: "dpiV3_stepper draftStepper" }, Ue = {
|
|
770
|
+
key: 0,
|
|
771
|
+
class: "draftCTA"
|
|
772
|
+
}, Oe = {
|
|
773
|
+
key: 1,
|
|
774
|
+
class: "draftCTA"
|
|
775
|
+
}, ze = { key: 1 }, Me = {
|
|
776
|
+
key: 0,
|
|
777
|
+
class: "dpiV3_stepper"
|
|
778
|
+
}, je = { class: "dpiV3_steps" }, He = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ze = ["textContent"], Ge = { style: { "vertical-align": "middle" } }, Xe = { class: "dpiV3_subStepWrapper" }, Ye = {
|
|
779
|
+
key: 0,
|
|
780
|
+
class: "dpiV3_seperatorHorizontalStepper"
|
|
781
|
+
}, Je = {
|
|
782
|
+
key: 1,
|
|
783
|
+
class: "dpiV3_seperatorHorizontalStepperFat"
|
|
784
|
+
}, Ne = {
|
|
785
|
+
key: 2,
|
|
786
|
+
class: "dpiV3_subStep"
|
|
787
|
+
}, Qe = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } }, it = {
|
|
788
|
+
key: 0,
|
|
789
|
+
class: "dpiV3_step dpiV3_inactiveStep"
|
|
790
|
+
}, st = {
|
|
791
|
+
key: 1,
|
|
792
|
+
class: "dpiV3_stepperLanding"
|
|
793
|
+
}, at = { class: "dpiV3_bydata_logo_wordmark" }, ot = { class: "dpiV3_Illustration-Start" }, rt = {
|
|
794
|
+
key: 2,
|
|
795
|
+
class: "steps"
|
|
796
|
+
}, lt = ["data-step-active", "data-step-valid", "onClick"], dt = { class: "stepBubbleWrap" }, nt = { class: "circle stepCircle" }, ct = ["textContent"], pt = {
|
|
797
|
+
key: 0,
|
|
798
|
+
class: "seperatorHorizontalStepper"
|
|
799
|
+
}, ut = {
|
|
800
|
+
key: 0,
|
|
801
|
+
class: "step inactiveStep"
|
|
802
|
+
}, ht = { style: { width: "100%" } }, mt = {
|
|
803
|
+
key: 0,
|
|
804
|
+
class: "dpiV3_CTALanding"
|
|
805
|
+
}, gt = {
|
|
806
|
+
key: 1,
|
|
807
|
+
class: "dpiV3_CTA_RaP"
|
|
808
|
+
}, vt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
|
|
809
|
+
key: 3,
|
|
810
|
+
class: "dpiV3_Content_InputPage"
|
|
811
|
+
}, St = { class: "dpiV3_Card_Tips" }, yt = { class: "dpiV3_Icon_Title" }, Ct = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, kt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_hvd_frame3846" }, It = { class: "dpiV3_copy_large_semi_bold" }, _t = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Lt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular" }, wt = { class: "dpiV3_hvd_frame3846" }, At = { class: "dpiV3_copy_large_semi_bold" }, $t = { class: "dpiV3_copy_large_regular" }, Rt = { class: "dpiV3_hvd_frame3846" }, Et = { class: "dpiV3_copy_large_semi_bold" }, Bt = { class: "dpiV3_copy_large_regular" }, Ft = {
|
|
812
|
+
key: 5,
|
|
813
|
+
class: "p-1"
|
|
814
|
+
};
|
|
815
|
+
function Ut(e, t, i, n, c, S) {
|
|
816
|
+
const y = v("TextButtonSmall"), g = v("ButtonV3"), D = v("LogoV3"), T = v("PhNumberCircleFive"), I = v("PhCheckCircle"), L = v("Illustration"), P = v("FormKitSchema"), w = v("PhLightbulb"), A = v("DistributionInputPage"), $ = v("InputPageStep"), R = v("FormKit"), E = v("ModalSimpleV3");
|
|
817
|
+
return s(), o("div", $e, [
|
|
818
|
+
e.isInput ? (s(), o("div", Re, [
|
|
819
|
+
a("div", Ee, [
|
|
820
|
+
h(R, {
|
|
821
|
+
id: "dpiForm",
|
|
822
|
+
modelValue: e.formValues,
|
|
823
|
+
"onUpdate:modelValue": t[7] || (t[7] = (r) => e.formValues = r),
|
|
824
|
+
type: "form",
|
|
825
|
+
actions: !1,
|
|
826
|
+
plugins: [e.stepPlugin],
|
|
827
|
+
class: "d-flex",
|
|
828
|
+
onChange: t[8] || (t[8] = (r) => e.saveFormValues({
|
|
829
|
+
property: e.property,
|
|
830
|
+
page: e.page,
|
|
831
|
+
distid: e.id,
|
|
832
|
+
values: e.formValues
|
|
833
|
+
})),
|
|
834
|
+
onClick: t[9] || (t[9] = (r) => e.saveFormValues({
|
|
835
|
+
property: e.property,
|
|
836
|
+
page: e.page,
|
|
837
|
+
distid: e.id,
|
|
838
|
+
values: e.formValues
|
|
839
|
+
})),
|
|
840
|
+
onSubmit: t[10] || (t[10] = Q(() => {
|
|
841
|
+
}, ["prevent"]))
|
|
842
|
+
}, {
|
|
843
|
+
default: U(() => [
|
|
844
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", Be, [
|
|
845
|
+
a("div", Fe, [
|
|
846
|
+
h(y, {
|
|
847
|
+
"button-text": "Übersicht",
|
|
848
|
+
"icon-start": "CaretLeft",
|
|
849
|
+
"icon-name": "caretLeft",
|
|
850
|
+
onClick: e.gotToHome
|
|
851
|
+
}, null, 8, ["onClick"]),
|
|
852
|
+
a("div", null, [
|
|
853
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", Ue, [
|
|
854
|
+
h(g, {
|
|
855
|
+
"button-text": "Veröffentlichung aufheben",
|
|
856
|
+
size: "large",
|
|
857
|
+
onClick: e.todoHandler
|
|
858
|
+
}, null, 8, ["onClick"]),
|
|
859
|
+
h(g, {
|
|
860
|
+
"button-text": "Veröffentlicht ansehen",
|
|
861
|
+
variant: "secondary",
|
|
862
|
+
size: "large",
|
|
863
|
+
"icon-end": "Out",
|
|
864
|
+
onClick: e.todoHandler
|
|
865
|
+
}, null, 8, ["onClick"])
|
|
866
|
+
])) : (s(), o("div", Oe, [
|
|
867
|
+
h(g, {
|
|
868
|
+
"button-text": "Veröffentlichen",
|
|
869
|
+
size: "large",
|
|
870
|
+
onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
|
|
871
|
+
})
|
|
872
|
+
]))
|
|
873
|
+
])
|
|
874
|
+
])
|
|
875
|
+
])) : (s(), o("div", ze, [
|
|
876
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", Me, [
|
|
877
|
+
h(D),
|
|
878
|
+
a("ul", je, [
|
|
879
|
+
(s(!0), o(V, null, k(e.steps, (r, p, l) => O((s(), o("li", {
|
|
880
|
+
key: r,
|
|
881
|
+
class: C(["dpiV3_step", {
|
|
882
|
+
dpiV3_activeItem: e.activeStep === p,
|
|
883
|
+
inactiveStep: p != e.activeStep,
|
|
884
|
+
"has-errors": e.checkStepValidity(p)
|
|
885
|
+
}]),
|
|
886
|
+
"data-step-active": e.activeStep === p,
|
|
887
|
+
"data-step-valid": r.valid && r.errorCount === 0
|
|
888
|
+
}, [
|
|
889
|
+
a("div", We, [
|
|
890
|
+
a("div", {
|
|
891
|
+
class: C({
|
|
892
|
+
dpiV3_activeStepName: p === e.activeStep,
|
|
893
|
+
formerlyVisitedStep: e.stepCounter > l,
|
|
894
|
+
"copy-small-regular": e.stepCounter > l
|
|
895
|
+
})
|
|
896
|
+
}, [
|
|
897
|
+
e.activeStep === p && l < 5 ? (s(), o("img", {
|
|
898
|
+
key: 0,
|
|
899
|
+
class: "dpiV3_circle dpiV3_stepCircle",
|
|
900
|
+
src: e.selectedImages[l - 1],
|
|
901
|
+
alt: "Selected Icon"
|
|
902
|
+
}, null, 8, qe)) : d("", !0),
|
|
903
|
+
e.activeStep === p && l === 5 ? (s(), b(T, {
|
|
904
|
+
key: 1,
|
|
905
|
+
size: 28,
|
|
906
|
+
color: "#009FE3",
|
|
907
|
+
weight: "fill"
|
|
908
|
+
})) : d("", !0),
|
|
909
|
+
l < e.stepCounter ? (s(), b(I, {
|
|
910
|
+
key: 2,
|
|
911
|
+
size: 28,
|
|
912
|
+
color: "#70CC44",
|
|
913
|
+
weight: "fill"
|
|
914
|
+
})) : d("", !0),
|
|
915
|
+
l > e.stepCounter ? (s(), o("img", {
|
|
916
|
+
key: 3,
|
|
917
|
+
class: "dpiV3_circle dpiV3_stepCircle",
|
|
918
|
+
src: e.images[l - 1],
|
|
919
|
+
alt: "Selected Icon"
|
|
920
|
+
}, null, 8, Ke)) : d("", !0),
|
|
921
|
+
e.checkStepValidity(p) ? (s(), o("span", {
|
|
922
|
+
key: 4,
|
|
923
|
+
class: "dpiV3_step--errors",
|
|
924
|
+
textContent: u(r.errorCount + r.blockingCount)
|
|
925
|
+
}, null, 8, Ze)) : d("", !0),
|
|
926
|
+
a("span", Ge, u(e.$t(`message.dataupload.steps.${p}Step`)), 1)
|
|
927
|
+
], 2),
|
|
928
|
+
a("div", Xe, [
|
|
929
|
+
l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (s(), o("div", Ye)) : d("", !0),
|
|
930
|
+
l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (s(), o("div", Je)) : d("", !0),
|
|
931
|
+
e.activeStep === p ? (s(), o("div", Ne, [
|
|
932
|
+
e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
|
|
933
|
+
e.subSteps[l]
|
|
934
|
+
), (f, m) => (s(), o("div", Qe, [
|
|
935
|
+
a("div", xe, [
|
|
936
|
+
e.substepCounter > m ? (s(), b(I, {
|
|
937
|
+
key: 0,
|
|
938
|
+
size: 20,
|
|
939
|
+
color: "#009FE3"
|
|
940
|
+
})) : (s(), o("img", {
|
|
941
|
+
key: 1,
|
|
942
|
+
src: e.getCircles(m),
|
|
943
|
+
alt: "circle"
|
|
944
|
+
}, null, 8, et)),
|
|
945
|
+
m != Object.keys(e.subSteps[l]).length - 1 ? (s(), o("div", {
|
|
946
|
+
key: 2,
|
|
947
|
+
class: C(["dpiV3_seperatorHorizontalStepperInner", {
|
|
948
|
+
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > m
|
|
949
|
+
}])
|
|
950
|
+
}, null, 2)) : d("", !0)
|
|
951
|
+
]),
|
|
952
|
+
a("div", tt, [
|
|
953
|
+
a("span", {
|
|
954
|
+
class: C(["large-regular dpiV3_substepText", {
|
|
955
|
+
dpiV3_activeStepDesc: f === e.activeSubStep,
|
|
956
|
+
formerlyVisitedStep: e.substepCounter > m
|
|
957
|
+
}])
|
|
958
|
+
}, u(e.$t(
|
|
959
|
+
`message.dataupload.steps.${f.replace(/_\d+$/, "")}`
|
|
960
|
+
)), 3)
|
|
961
|
+
])
|
|
962
|
+
]))), 256)) : d("", !0)
|
|
963
|
+
])) : d("", !0)
|
|
964
|
+
])
|
|
965
|
+
])
|
|
966
|
+
], 10, He)), [
|
|
967
|
+
[z, p !== "Landing" && p !== "Additionals"]
|
|
968
|
+
])), 128)),
|
|
969
|
+
e.activeStep === "Overview" ? (s(), o("li", it, t[13] || (t[13] = [
|
|
970
|
+
a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
|
|
971
|
+
]))) : d("", !0)
|
|
972
|
+
])
|
|
973
|
+
])) : (s(), o("div", st, [
|
|
974
|
+
a("div", at, [
|
|
975
|
+
h(D)
|
|
976
|
+
]),
|
|
977
|
+
a("div", ot, [
|
|
978
|
+
h(L, { "illustration-name": "start" })
|
|
979
|
+
])
|
|
980
|
+
]))
|
|
981
|
+
])),
|
|
982
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", rt, [
|
|
983
|
+
(s(!0), o(V, null, k(e.steps, (r, p, l) => (s(), o("li", {
|
|
984
|
+
key: r,
|
|
985
|
+
class: C(["step", {
|
|
986
|
+
activeItem: e.activeStep === p,
|
|
987
|
+
inactiveStep: p != e.activeStep,
|
|
988
|
+
"has-errors": e.checkStepValidity(p)
|
|
989
|
+
}]),
|
|
990
|
+
"data-step-active": e.activeStep === p,
|
|
991
|
+
"data-step-valid": r.valid && r.errorCount === 0,
|
|
992
|
+
onClick: (f) => {
|
|
993
|
+
e.activeStep = p, e.update(), e.scrollToTop();
|
|
994
|
+
}
|
|
995
|
+
}, [
|
|
996
|
+
a("div", dt, [
|
|
997
|
+
a("div", nt, u(l + 1), 1),
|
|
998
|
+
e.checkStepValidity(p) ? (s(), o("span", {
|
|
999
|
+
key: 0,
|
|
1000
|
+
class: "step--errors",
|
|
1001
|
+
textContent: u(r.errorCount + r.blockingCount)
|
|
1002
|
+
}, null, 8, ct)) : d("", !0),
|
|
1003
|
+
M(u(e.$t(`message.dataupload.steps.${p}Step`)), 1)
|
|
1004
|
+
]),
|
|
1005
|
+
l != Object.keys(e.steps).length ? (s(), o("div", pt)) : d("", !0)
|
|
1006
|
+
], 10, lt))), 128)),
|
|
1007
|
+
e.activeStep === "Overview" ? (s(), o("li", ut, t[14] || (t[14] = [
|
|
1008
|
+
a("div", { class: "circle stepCircle" }, null, -1)
|
|
1009
|
+
]))) : d("", !0)
|
|
1010
|
+
])) : d("", !0),
|
|
1011
|
+
(s(!0), o(V, null, k(e.getNavSteps(
|
|
1012
|
+
e.$env.content.dataProviderInterface.specification
|
|
1013
|
+
)[e.property], (r, p) => (s(), b($, {
|
|
1014
|
+
key: p,
|
|
1015
|
+
name: r
|
|
1016
|
+
}, {
|
|
1017
|
+
default: U(() => [
|
|
1018
|
+
(s(!0), o(V, null, k(Object.keys(
|
|
1019
|
+
e.getSchema(e.property).value[r]
|
|
1020
|
+
).length, (l, f) => O((s(), o("div", ht, [
|
|
1021
|
+
r !== "Distributions" && r !== "Additionals" ? (s(), b(P, {
|
|
1022
|
+
key: 0,
|
|
1023
|
+
schema: e.getSchema(e.property).value[r][f],
|
|
1024
|
+
library: e.library,
|
|
1025
|
+
"final-values": e.formValues,
|
|
1026
|
+
onHandleNav: () => {
|
|
1027
|
+
}
|
|
1028
|
+
}, null, 8, ["schema", "library", "final-values"])) : d("", !0)
|
|
1029
|
+
], 512)), [
|
|
1030
|
+
[
|
|
1031
|
+
z,
|
|
1032
|
+
Object.values(
|
|
1033
|
+
e.getSchema(e.property).value[r][f]
|
|
1034
|
+
)[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
|
|
1035
|
+
]
|
|
1036
|
+
])), 256)),
|
|
1037
|
+
e.activeStep === "Landing" ? (s(), o("div", mt, [
|
|
1038
|
+
h(g, {
|
|
1039
|
+
"button-text": "Abbrechen",
|
|
1040
|
+
size: "large",
|
|
1041
|
+
variant: "tertiary",
|
|
1042
|
+
onClick: t[1] || (t[1] = (l) => e.activeSimpleModal = !0)
|
|
1043
|
+
}),
|
|
1044
|
+
h(g, {
|
|
1045
|
+
"button-text": "Datenbereitstellung starten",
|
|
1046
|
+
size: "large",
|
|
1047
|
+
onClick: t[2] || (t[2] = (l) => e.navTrigger("next"))
|
|
1048
|
+
})
|
|
1049
|
+
])) : d("", !0),
|
|
1050
|
+
e.activeStep === "ReviewAndPublish" ? (s(), o("div", gt, [
|
|
1051
|
+
a("div", vt, [
|
|
1052
|
+
h(g, {
|
|
1053
|
+
"button-text": "Als Entwurf speichern",
|
|
1054
|
+
size: "large",
|
|
1055
|
+
variant: "secondary",
|
|
1056
|
+
onClick: t[3] || (t[3] = (l) => e.navTrigger("draft"))
|
|
1057
|
+
}),
|
|
1058
|
+
h(g, {
|
|
1059
|
+
"button-text": "Veröffentlichen",
|
|
1060
|
+
size: "large",
|
|
1061
|
+
onClick: t[4] || (t[4] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
|
|
1062
|
+
})
|
|
1063
|
+
])
|
|
1064
|
+
])) : d("", !0),
|
|
1065
|
+
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
|
|
1066
|
+
key: 2,
|
|
1067
|
+
class: C(["dpiV3_CTA", {
|
|
1068
|
+
dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
|
|
1069
|
+
}])
|
|
1070
|
+
}, [
|
|
1071
|
+
h(g, {
|
|
1072
|
+
"button-text": "Abbrechen",
|
|
1073
|
+
size: "large",
|
|
1074
|
+
variant: "tertiary",
|
|
1075
|
+
onClick: e.cancelWizard
|
|
1076
|
+
}, null, 8, ["onClick"]),
|
|
1077
|
+
a("div", ft, [
|
|
1078
|
+
e.activeStep !== "Landing" ? (s(), b(g, {
|
|
1079
|
+
key: 0,
|
|
1080
|
+
"icon-start": "CaretLeft",
|
|
1081
|
+
"button-text": "Zurück",
|
|
1082
|
+
size: "large",
|
|
1083
|
+
variant: "secondary",
|
|
1084
|
+
onClick: t[5] || (t[5] = (l) => e.navTrigger("prev"))
|
|
1085
|
+
})) : d("", !0),
|
|
1086
|
+
h(g, {
|
|
1087
|
+
"icon-end": "CaretRight",
|
|
1088
|
+
"button-text": "Weiter",
|
|
1089
|
+
size: "large",
|
|
1090
|
+
onClick: t[6] || (t[6] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep)))
|
|
1091
|
+
})
|
|
1092
|
+
])
|
|
1093
|
+
], 2)) : d("", !0),
|
|
1094
|
+
e.activeSubStep.includes("hvdPage") ? (s(), o("div", bt, [
|
|
1095
|
+
a("div", St, [
|
|
1096
|
+
a("div", yt, [
|
|
1097
|
+
h(w, {
|
|
1098
|
+
size: 32,
|
|
1099
|
+
color: "#009fe3"
|
|
1100
|
+
}),
|
|
1101
|
+
a("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
1102
|
+
]),
|
|
1103
|
+
a("div", Vt, [
|
|
1104
|
+
a("div", kt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
1105
|
+
a("div", Dt, [
|
|
1106
|
+
a("div", It, " 1. " + u(e.$t(
|
|
1107
|
+
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
1108
|
+
)), 1),
|
|
1109
|
+
a("ul", _t, [
|
|
1110
|
+
a("li", null, u(e.$t(
|
|
1111
|
+
"message.dataupload.datasets.hvdPage.hvd-category-1"
|
|
1112
|
+
)), 1),
|
|
1113
|
+
a("li", null, u(e.$t(
|
|
1114
|
+
"message.dataupload.datasets.hvdPage.hvd-category-2"
|
|
1115
|
+
)), 1),
|
|
1116
|
+
a("li", null, u(e.$t(
|
|
1117
|
+
"message.dataupload.datasets.hvdPage.hvd-category-3"
|
|
1118
|
+
)), 1),
|
|
1119
|
+
a("li", null, u(e.$t(
|
|
1120
|
+
"message.dataupload.datasets.hvdPage.hvd-category-4"
|
|
1121
|
+
)), 1),
|
|
1122
|
+
a("li", null, u(e.$t(
|
|
1123
|
+
"message.dataupload.datasets.hvdPage.hvd-category-5"
|
|
1124
|
+
)), 1),
|
|
1125
|
+
a("li", null, u(e.$t(
|
|
1126
|
+
"message.dataupload.datasets.hvdPage.hvd-category-6"
|
|
1127
|
+
)), 1)
|
|
1128
|
+
])
|
|
1129
|
+
]),
|
|
1130
|
+
a("div", Tt, [
|
|
1131
|
+
a("div", Lt, " 2. " + u(e.$t(
|
|
1132
|
+
"message.dataupload.datasets.hvdPage.tips-question-2"
|
|
1133
|
+
)), 1),
|
|
1134
|
+
a("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
|
|
1135
|
+
]),
|
|
1136
|
+
a("div", wt, [
|
|
1137
|
+
a("div", At, " 3. " + u(e.$t(
|
|
1138
|
+
"message.dataupload.datasets.hvdPage.tips-question-3"
|
|
1139
|
+
)), 1),
|
|
1140
|
+
a("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
1141
|
+
]),
|
|
1142
|
+
a("div", Rt, [
|
|
1143
|
+
a("div", Et, " 4. " + u(e.$t(
|
|
1144
|
+
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
1145
|
+
)), 1),
|
|
1146
|
+
a("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
1147
|
+
])
|
|
1148
|
+
])
|
|
1149
|
+
])
|
|
1150
|
+
])) : d("", !0),
|
|
1151
|
+
r === "Distributions" ? (s(), b(A, {
|
|
1152
|
+
key: 4,
|
|
1153
|
+
schema: e.getSchema("distributions"),
|
|
1154
|
+
values: e.formValues
|
|
1155
|
+
}, null, 8, ["schema", "values"])) : d("", !0),
|
|
1156
|
+
r === "Mandatory" ? (s(), o("p", Ft, [
|
|
1157
|
+
t[15] || (t[15] = a("b", null, "*", -1)),
|
|
1158
|
+
M(" " + u(e.$t("message.dataupload.info.mandatory")), 1)
|
|
1159
|
+
])) : d("", !0)
|
|
1160
|
+
]),
|
|
1161
|
+
_: 2
|
|
1162
|
+
}, 1032, ["name"]))), 128))
|
|
1163
|
+
]),
|
|
1164
|
+
_: 1
|
|
1165
|
+
}, 8, ["modelValue", "plugins"]),
|
|
1166
|
+
e.activeSimpleModal ? (s(), b(E, {
|
|
1167
|
+
key: 0,
|
|
1168
|
+
buttons: e.modalSimpleConf.button,
|
|
1169
|
+
"header-text": e.modalSimpleConf.header,
|
|
1170
|
+
text: e.modalSimpleConf.text,
|
|
1171
|
+
action: e.modalSimpleConf.action,
|
|
1172
|
+
onClose: t[11] || (t[11] = (r) => e.activeSimpleModal = !1),
|
|
1173
|
+
onActionHandling: t[12] || (t[12] = (r) => e.gotToHome())
|
|
1174
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : d("", !0)
|
|
1175
|
+
])
|
|
1176
|
+
], 512)) : d("", !0)
|
|
1177
|
+
]);
|
|
1178
|
+
}
|
|
1179
|
+
const Ii = /* @__PURE__ */ Le(Ae, [["render", Ut]]);
|
|
1180
|
+
export {
|
|
1181
|
+
Ii as default
|
|
1182
|
+
};
|