@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.15
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/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +18 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +337 -337
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +53 -55
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { getNode as
|
|
1
|
+
import { getNode as pe } from "@formkit/core";
|
|
2
2
|
import "@formkit/vue";
|
|
3
|
-
import { PhNumberCircleFive as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import ae from "
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
3
|
+
import { PhNumberCircleFive as ue, PhCheckCircle as he, PhLightbulb as me } from "@phosphor-icons/vue";
|
|
4
|
+
import { putDataset as ge } from "@piveau/sdk-core/hubRepo";
|
|
5
|
+
import { useWindowScroll as ve } from "@vueuse/core";
|
|
6
|
+
import fe from "jquery";
|
|
7
|
+
import { has as $, isNil as x } from "lodash-es";
|
|
8
|
+
import { defineComponent as be, resolveComponent as g, createElementBlock as o, openBlock as s, createCommentVNode as n, createElementVNode as i, createVNode as h, createBlock as b, withModifiers as Se, withCtx as ee, Fragment as V, renderList as k, withDirectives as te, normalizeClass as y, toDisplayString as l, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as Ce } from "vue";
|
|
9
|
+
import { useI18n as Ve } from "vue-i18n";
|
|
10
|
+
import { useRoute as ke } from "vue-router";
|
|
11
|
+
import { mapActions as ae, mapGetters as oe } from "vuex";
|
|
12
|
+
import { useRuntimeEnv as _e } from "../../composables/useRuntimeEnv.js";
|
|
13
|
+
import De from "../components/InputPageStep.vue.js";
|
|
14
|
+
import Ie from "../components/Navigation.vue.js";
|
|
15
|
+
import { useFormValues as Te } from "../composables/useDpiFormValues.js";
|
|
16
|
+
import { useDpiStepper as Pe } from "../composables/useDpiStepper.js";
|
|
17
|
+
import { useTwinbyUser as Le } from "../composables/useTwinbyUser.js";
|
|
18
|
+
import re from "../config/dcatapdeHappyFlow/converter.js";
|
|
19
|
+
import we from "../HappyFlowComponents/img/Circle.svg.js";
|
|
20
|
+
import Ae from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
21
|
+
import $e from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
22
|
+
import Re from "../HappyFlowComponents/img/Selected1_2.svg.js";
|
|
23
|
+
import Ee from "../HappyFlowComponents/img/Selected2.svg.js";
|
|
24
|
+
import Ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
|
|
25
|
+
import Be from "../HappyFlowComponents/img/Selected3.svg.js";
|
|
26
|
+
import Fe from "../HappyFlowComponents/img/Selected3_2.svg.js";
|
|
27
|
+
import Oe from "../HappyFlowComponents/img/Selected4.svg.js";
|
|
28
|
+
import ze from "../HappyFlowComponents/img/Selected4_2.svg.js";
|
|
29
|
+
import Me from "../HappyFlowComponents/img/Selected5.svg.js";
|
|
30
|
+
import je from "../HappyFlowComponents/img/Selected5_2.svg.js";
|
|
31
|
+
import { eventBus as He } from "../HappyFlowComponents/services/eventBus.js";
|
|
32
|
+
import We from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
33
|
+
import qe from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
34
|
+
import Ke from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
35
|
+
import Ze from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
36
|
+
import Ge from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
37
|
+
import Xe from "./DistributionInputPage.vue.js";
|
|
38
|
+
import Ne from "./OverviewPage.vue.js";
|
|
39
|
+
import Ye from "./PropertyChooser.vue.js";
|
|
36
40
|
/* empty css */
|
|
37
41
|
/* empty css */
|
|
38
42
|
/* empty css */
|
|
39
|
-
import
|
|
40
|
-
import { useDpiContext as
|
|
41
|
-
import { useEditModeInfo as
|
|
42
|
-
import { useFormSchema as
|
|
43
|
-
const
|
|
43
|
+
import Je from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
44
|
+
import { useDpiContext as Qe } from "../composables/useDpiContext.js";
|
|
45
|
+
import { useEditModeInfo as xe } from "../composables/useDpiEditMode.js";
|
|
46
|
+
import { useFormSchema as et } from "../composables/useFormSchema.js";
|
|
47
|
+
const tt = be({
|
|
44
48
|
props: {
|
|
45
49
|
property: {
|
|
46
50
|
required: !0,
|
|
@@ -53,16 +57,16 @@ const $e = Q({
|
|
|
53
57
|
},
|
|
54
58
|
data() {
|
|
55
59
|
return {
|
|
56
|
-
circles: [
|
|
57
|
-
images: [
|
|
60
|
+
circles: [we, Ae],
|
|
61
|
+
images: [$e, Ee, Be, Oe, Me],
|
|
58
62
|
selectedImages: [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
Re,
|
|
64
|
+
Ue,
|
|
65
|
+
Fe,
|
|
66
|
+
ze,
|
|
67
|
+
je
|
|
64
68
|
],
|
|
65
|
-
instance:
|
|
69
|
+
instance: Ce(),
|
|
66
70
|
heightActiveSec: "10vh",
|
|
67
71
|
// formValues: {},
|
|
68
72
|
offsetTopStepper: "60px",
|
|
@@ -84,29 +88,29 @@ const $e = Q({
|
|
|
84
88
|
};
|
|
85
89
|
},
|
|
86
90
|
components: {
|
|
87
|
-
InputPageStep:
|
|
88
|
-
DistributionInputPage:
|
|
89
|
-
PropertyChooser:
|
|
90
|
-
Navigation:
|
|
91
|
-
LogoV3:
|
|
92
|
-
ButtonV3:
|
|
93
|
-
TextButtonSmall:
|
|
94
|
-
Illustration:
|
|
95
|
-
PhLightbulb:
|
|
96
|
-
PhCheckCircle:
|
|
97
|
-
PhNumberCircleFive:
|
|
98
|
-
ModalSimpleV3:
|
|
91
|
+
InputPageStep: De,
|
|
92
|
+
DistributionInputPage: Xe,
|
|
93
|
+
PropertyChooser: Ye,
|
|
94
|
+
Navigation: Ie,
|
|
95
|
+
LogoV3: Ke,
|
|
96
|
+
ButtonV3: We,
|
|
97
|
+
TextButtonSmall: Ge,
|
|
98
|
+
Illustration: qe,
|
|
99
|
+
PhLightbulb: me,
|
|
100
|
+
PhCheckCircle: he,
|
|
101
|
+
PhNumberCircleFive: ue,
|
|
102
|
+
ModalSimpleV3: Ze
|
|
99
103
|
},
|
|
100
104
|
computed: {
|
|
101
|
-
...
|
|
105
|
+
...oe("auth", [
|
|
102
106
|
"getIsEditMode",
|
|
103
107
|
"getUserCatalogIds",
|
|
104
108
|
"getUserData"
|
|
105
109
|
]),
|
|
106
|
-
...
|
|
110
|
+
...oe("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
107
111
|
getTitleStep() {
|
|
108
112
|
return Object.keys(this.formValues).filter(
|
|
109
|
-
(e) =>
|
|
113
|
+
(e) => $(this.formValues[e], "dct:title")
|
|
110
114
|
)[0];
|
|
111
115
|
},
|
|
112
116
|
createIDFromTitle() {
|
|
@@ -117,7 +121,7 @@ const $e = Q({
|
|
|
117
121
|
getFirstTitleFromForm() {
|
|
118
122
|
try {
|
|
119
123
|
const e = this.formValues[this.getTitleStep];
|
|
120
|
-
return
|
|
124
|
+
return $(e, "dct:title") && e["dct:title"].length > 0 && $(e["dct:title"][0], "@value") && !x(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
121
125
|
} catch {
|
|
122
126
|
}
|
|
123
127
|
},
|
|
@@ -126,8 +130,8 @@ const $e = Q({
|
|
|
126
130
|
}
|
|
127
131
|
},
|
|
128
132
|
methods: {
|
|
129
|
-
...
|
|
130
|
-
...
|
|
133
|
+
...ae("auth", ["setIsEditMode", "setIsDraft"]),
|
|
134
|
+
...ae("dpiStore", [
|
|
131
135
|
"saveFormValues",
|
|
132
136
|
"saveLocalstorageValues",
|
|
133
137
|
"clearAll"
|
|
@@ -137,7 +141,7 @@ const $e = Q({
|
|
|
137
141
|
},
|
|
138
142
|
// Route to the RAP Page
|
|
139
143
|
goToRAP() {
|
|
140
|
-
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(
|
|
144
|
+
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(pe(this.activeStep).value)[0];
|
|
141
145
|
},
|
|
142
146
|
// Remove after DPI development is finished - just fills all fields with dummy Data
|
|
143
147
|
fillData() {
|
|
@@ -549,7 +553,7 @@ const $e = Q({
|
|
|
549
553
|
return e === this.substepCounter ? this.circles[1] : this.circles[0];
|
|
550
554
|
},
|
|
551
555
|
handleDistributionsValidation(e) {
|
|
552
|
-
|
|
556
|
+
He.emit("nextClicked", e);
|
|
553
557
|
},
|
|
554
558
|
gotToHome() {
|
|
555
559
|
window.location.href = this.$router.resolve({
|
|
@@ -558,29 +562,29 @@ const $e = Q({
|
|
|
558
562
|
},
|
|
559
563
|
navTrigger(e, t) {
|
|
560
564
|
try {
|
|
561
|
-
let
|
|
562
|
-
if (Object.keys(this.steps).forEach((
|
|
563
|
-
let
|
|
564
|
-
step:
|
|
565
|
+
let a = [];
|
|
566
|
+
if (Object.keys(this.steps).forEach((p, u) => {
|
|
567
|
+
let D = {
|
|
568
|
+
step: p,
|
|
565
569
|
substeps: this.subSteps[u],
|
|
566
570
|
substepCount: Object.keys(this.subSteps[u]).length
|
|
567
571
|
};
|
|
568
|
-
|
|
569
|
-
}), e === "next" && (
|
|
570
|
-
|
|
572
|
+
a.push(D);
|
|
573
|
+
}), e === "next" && (a[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === a[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = a[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
574
|
+
a[this.stepCounter].substeps
|
|
571
575
|
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
572
|
-
|
|
573
|
-
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter !=
|
|
574
|
-
|
|
575
|
-
)[0], this.activeStep =
|
|
576
|
-
|
|
577
|
-
)[this.substepCounter]) : (this.stepCounter--, this.activeStep =
|
|
578
|
-
|
|
579
|
-
)[this.substepCounter]) : (this.substepCounter = Object.keys(
|
|
580
|
-
|
|
581
|
-
)[this.substepCounter], this.activeStep =
|
|
582
|
-
let
|
|
583
|
-
|
|
576
|
+
a[this.stepCounter].substeps
|
|
577
|
+
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != a.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
|
|
578
|
+
a[this.stepCounter].substeps
|
|
579
|
+
)[0], this.activeStep = a[this.stepCounter].step)), e === "prev" && (a[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
|
|
580
|
+
a[this.stepCounter].substeps
|
|
581
|
+
)[this.substepCounter]) : (this.stepCounter--, this.activeStep = a[this.stepCounter].step, this.substepCounter = Object.keys(a[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
|
|
582
|
+
a[this.stepCounter].substeps
|
|
583
|
+
)[this.substepCounter]) : (this.substepCounter = Object.keys(a[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
|
|
584
|
+
a[this.stepCounter].substeps
|
|
585
|
+
)[this.substepCounter], this.activeStep = a[this.stepCounter].step)), e === "publish") {
|
|
586
|
+
let p = "auth/createDataset";
|
|
587
|
+
re(
|
|
584
588
|
this.formValues,
|
|
585
589
|
this.dpiContext,
|
|
586
590
|
this.getUserData,
|
|
@@ -588,7 +592,7 @@ const $e = Q({
|
|
|
588
592
|
).then((u) => {
|
|
589
593
|
this.dispatchDataToDPI(
|
|
590
594
|
u.body,
|
|
591
|
-
|
|
595
|
+
p,
|
|
592
596
|
u.actionParams,
|
|
593
597
|
"publish"
|
|
594
598
|
);
|
|
@@ -601,8 +605,8 @@ const $e = Q({
|
|
|
601
605
|
}, 1e3);
|
|
602
606
|
}
|
|
603
607
|
if (e === "draft") {
|
|
604
|
-
let
|
|
605
|
-
|
|
608
|
+
let p = "auth/createUserDraft";
|
|
609
|
+
re(
|
|
606
610
|
this.formValues,
|
|
607
611
|
this.dpiContext,
|
|
608
612
|
this.getUserData,
|
|
@@ -610,7 +614,7 @@ const $e = Q({
|
|
|
610
614
|
).then((u) => {
|
|
611
615
|
this.dispatchDataToDPI(
|
|
612
616
|
u.body,
|
|
613
|
-
|
|
617
|
+
p,
|
|
614
618
|
u.actionParams,
|
|
615
619
|
"draft"
|
|
616
620
|
);
|
|
@@ -622,24 +626,15 @@ const $e = Q({
|
|
|
622
626
|
}).href;
|
|
623
627
|
}, 1e3);
|
|
624
628
|
}
|
|
625
|
-
} catch (
|
|
626
|
-
console.log(
|
|
627
|
-
}
|
|
628
|
-
},
|
|
629
|
-
async dispatchDataToDPI(e, t, s, c) {
|
|
630
|
-
var u, b;
|
|
631
|
-
console.log("body:", e, t, "params:", s, c);
|
|
632
|
-
try {
|
|
633
|
-
c === "publish" && (s.token = this.getUserData.rtpToken, console.log(s.token), s.url = `${this.$env.api.hubUrl}catalogues/${s.catalog}/datasets/origin?originalId=${s.id}`, await this.$store.dispatch(t, s)), c === "draft" && await this.$store.dispatch(t, s), (u = this.$Progress) == null || u.finish(), this.clearAll();
|
|
634
|
-
} catch (y) {
|
|
635
|
-
console.error(y), (b = this.$Progress) == null || b.fail();
|
|
629
|
+
} catch (a) {
|
|
630
|
+
console.log(a);
|
|
636
631
|
}
|
|
637
632
|
},
|
|
638
633
|
dropdownCLick() {
|
|
639
634
|
const e = document.querySelectorAll(".formkitProperty h4");
|
|
640
|
-
this.expandall && e.forEach((t,
|
|
635
|
+
this.expandall && e.forEach((t, a) => {
|
|
641
636
|
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
642
|
-
}), this.expandall || e.forEach((t,
|
|
637
|
+
}), this.expandall || e.forEach((t, a) => {
|
|
643
638
|
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
644
639
|
});
|
|
645
640
|
},
|
|
@@ -652,19 +647,19 @@ const $e = Q({
|
|
|
652
647
|
initInputPage() {
|
|
653
648
|
this.activeSubStep = this.activeSubStep || "Landing";
|
|
654
649
|
const e = this.getSchema(this.property).value, t = Object.keys(e).find(
|
|
655
|
-
(
|
|
650
|
+
(a) => e[a].map((p) => p.name).includes("dct:issued") || e[a].map((p) => p.name).includes("dct:modified")
|
|
656
651
|
);
|
|
657
|
-
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((
|
|
658
|
-
(
|
|
652
|
+
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((a) => {
|
|
653
|
+
(a.identifier === "issued" || a.identifier === "modified") && (a.children[1].props.else.validation = "", a.children[1].props.else["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "");
|
|
659
654
|
}), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
|
|
660
|
-
|
|
655
|
+
fe('[data-bs-toggle="tooltip"]').tooltip({
|
|
661
656
|
container: "body"
|
|
662
657
|
}), setTimeout(() => {
|
|
663
|
-
document.querySelectorAll(".formkitProperty h4").forEach((
|
|
664
|
-
|
|
658
|
+
document.querySelectorAll(".formkitProperty h4").forEach((p, u) => {
|
|
659
|
+
p.parentElement.parentElement.classList.contains(
|
|
665
660
|
"formkitWrapRepeatable"
|
|
666
|
-
) || (u != 0 && u != 1 && u != 2 && u != 3 &&
|
|
667
|
-
|
|
661
|
+
) || (u != 0 && u != 1 && u != 2 && u != 3 && p.nextElementSibling.classList.toggle("d-none"), p.addEventListener("click", () => {
|
|
662
|
+
p.classList.toggle("dpiChevUp"), p.nextElementSibling.classList.toggle("d-none");
|
|
668
663
|
}));
|
|
669
664
|
}), document.querySelectorAll(".formkitProperty");
|
|
670
665
|
});
|
|
@@ -672,7 +667,7 @@ const $e = Q({
|
|
|
672
667
|
},
|
|
673
668
|
createDatasetID() {
|
|
674
669
|
const e = this.formValues[this.getTitleStep];
|
|
675
|
-
|
|
670
|
+
!$(e, "datasetID") || x(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);
|
|
676
671
|
},
|
|
677
672
|
generateandTranslateSchema(e) {
|
|
678
673
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -714,111 +709,141 @@ const $e = Q({
|
|
|
714
709
|
}
|
|
715
710
|
}
|
|
716
711
|
},
|
|
717
|
-
beforeRouteEnter(e, t,
|
|
718
|
-
|
|
719
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
712
|
+
beforeRouteEnter(e, t, a) {
|
|
713
|
+
a((p) => {
|
|
714
|
+
t.name && !t.name.startsWith("DataProviderInterface") && p.clearAll();
|
|
720
715
|
});
|
|
721
716
|
},
|
|
722
717
|
setup() {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
718
|
+
var j, H, W, q;
|
|
719
|
+
const e = Qe(), { isEditMode: t } = xe(), a = _e(), {
|
|
720
|
+
steps: p,
|
|
721
|
+
activeStep: u,
|
|
722
|
+
subSteps: D,
|
|
723
|
+
visitedSteps: I,
|
|
724
|
+
previousStep: m,
|
|
725
|
+
nextStep: T,
|
|
726
|
+
stepPlugin: R,
|
|
727
|
+
goToNextStep: P,
|
|
728
|
+
goToPreviousStep: E
|
|
729
|
+
} = Pe(), { formValues: L } = Te(), { t: w, te: U } = Ve(), B = se(!1), { translateSchema: F, createSchema: O, getSchema: r } = et({
|
|
730
|
+
t: w,
|
|
731
|
+
te: U
|
|
732
|
+
}), c = () => {
|
|
733
|
+
let { x: S, y: z } = ve({ behavior: "smooth" });
|
|
734
|
+
z.value = 0;
|
|
735
|
+
}, d = (S) => (p[S].errorCount > 0 || p[S].blockingCount > 0) && I.value.includes(S), v = ye({ OverviewPage: Ne }), f = se("");
|
|
736
|
+
t.value && (u.value = "ReviewAndPublish", f.value = "reviewAndPublishPage");
|
|
737
|
+
const { organization: A, catalogDataset: C, startFetchPermissions: le, authToken: de } = Le({
|
|
738
|
+
keycloak: ((H = (j = a.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
|
|
739
|
+
realm: ((q = (W = a.authentication) == null ? void 0 : W.keycloak) == null ? void 0 : q.realm) || "piveau",
|
|
740
|
+
audience: "piveau-hub-repo"
|
|
741
|
+
});
|
|
742
|
+
le();
|
|
743
|
+
const ne = ke();
|
|
744
|
+
async function ce(S, z, M, K) {
|
|
745
|
+
var Z, G, X, N, Y, J;
|
|
746
|
+
console.log("body:", S, z, "params:", M, K);
|
|
747
|
+
try {
|
|
748
|
+
await ge({
|
|
749
|
+
baseUrl: a.api.hubUrl,
|
|
750
|
+
id: M.id,
|
|
751
|
+
catalogId: C.value || M.catalog || "",
|
|
752
|
+
data: S,
|
|
753
|
+
authToken: de.value,
|
|
754
|
+
publicationStatus: K === "publish" ? "published" : "draft",
|
|
755
|
+
visibility: ((N = (X = (G = (Z = L.value) == null ? void 0 : Z.Discoverability) == null ? void 0 : G.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || ne.query.visibility || "public",
|
|
756
|
+
type: "dataset"
|
|
757
|
+
}), (Y = this.$Progress) == null || Y.finish(), this.clearAll();
|
|
758
|
+
} catch (Q) {
|
|
759
|
+
console.error(Q), (J = this.$Progress) == null || J.fail();
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return {
|
|
763
|
+
steps: p,
|
|
764
|
+
visitedSteps: I,
|
|
765
|
+
activeStep: u,
|
|
766
|
+
activeSubStep: f,
|
|
767
|
+
subSteps: D,
|
|
768
|
+
previousStep: m,
|
|
769
|
+
nextStep: T,
|
|
770
|
+
stepPlugin: R,
|
|
771
|
+
checkStepValidity: d,
|
|
772
|
+
goToNextStep: P,
|
|
773
|
+
goToPreviousStep: E,
|
|
774
|
+
scrollToTop: c,
|
|
775
|
+
library: v,
|
|
754
776
|
isEditMode: t,
|
|
755
|
-
translateSchema:
|
|
756
|
-
createSchema:
|
|
757
|
-
getSchema:
|
|
777
|
+
translateSchema: F,
|
|
778
|
+
createSchema: O,
|
|
779
|
+
getSchema: r,
|
|
758
780
|
dpiContext: e,
|
|
759
|
-
formValues:
|
|
760
|
-
activeSimpleModal:
|
|
781
|
+
formValues: L,
|
|
782
|
+
activeSimpleModal: B,
|
|
783
|
+
organization: A,
|
|
784
|
+
catalogDataset: C,
|
|
785
|
+
dispatchDataToDPI: ce
|
|
761
786
|
};
|
|
762
787
|
}
|
|
763
|
-
}),
|
|
788
|
+
}), it = { class: "form-container V3-typography" }, st = {
|
|
764
789
|
key: 0,
|
|
765
790
|
ref: "fkInputContainer",
|
|
766
791
|
class: "inputContainer"
|
|
767
|
-
},
|
|
792
|
+
}, at = { class: "formContainer formkit" }, ot = { key: 0 }, rt = { class: "dpiV3_stepper draftStepper" }, lt = {
|
|
768
793
|
key: 0,
|
|
769
794
|
class: "draftCTA"
|
|
770
|
-
},
|
|
795
|
+
}, dt = {
|
|
771
796
|
key: 1,
|
|
772
797
|
class: "draftCTA"
|
|
773
|
-
},
|
|
798
|
+
}, nt = { key: 1 }, ct = {
|
|
774
799
|
key: 0,
|
|
775
800
|
class: "dpiV3_stepper"
|
|
776
|
-
},
|
|
801
|
+
}, pt = { class: "dpiV3_steps" }, ut = ["data-step-active", "data-step-valid"], ht = { class: "dpiV3_stepBubbleWrap" }, mt = ["src"], gt = ["src"], vt = ["textContent"], ft = { style: { "vertical-align": "middle" } }, bt = { class: "dpiV3_subStepWrapper" }, St = {
|
|
777
802
|
key: 0,
|
|
778
803
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
779
|
-
},
|
|
804
|
+
}, yt = {
|
|
780
805
|
key: 1,
|
|
781
806
|
class: "dpiV3_seperatorHorizontalStepperFat"
|
|
782
|
-
},
|
|
807
|
+
}, Ct = {
|
|
783
808
|
key: 2,
|
|
784
809
|
class: "dpiV3_subStep"
|
|
785
|
-
},
|
|
810
|
+
}, Vt = { class: "dpiV3_subStepInner" }, kt = { class: "dpiV3_subStepCircleWrap" }, _t = ["src"], Dt = { style: { height: "20px", display: "flex", "align-items": "center" } }, It = {
|
|
786
811
|
key: 0,
|
|
787
812
|
class: "dpiV3_step dpiV3_inactiveStep"
|
|
788
|
-
},
|
|
813
|
+
}, Tt = {
|
|
789
814
|
key: 1,
|
|
790
815
|
class: "dpiV3_stepperLanding"
|
|
791
|
-
},
|
|
816
|
+
}, Pt = { class: "dpiV3_bydata_logo_wordmark" }, Lt = { class: "dpiV3_Illustration-Start" }, wt = {
|
|
792
817
|
key: 2,
|
|
793
818
|
class: "steps"
|
|
794
|
-
},
|
|
819
|
+
}, At = ["data-step-active", "data-step-valid", "onClick"], $t = { class: "stepBubbleWrap" }, Rt = { class: "circle stepCircle" }, Et = ["textContent"], Ut = {
|
|
795
820
|
key: 0,
|
|
796
821
|
class: "seperatorHorizontalStepper"
|
|
797
|
-
},
|
|
822
|
+
}, Bt = {
|
|
798
823
|
key: 0,
|
|
799
824
|
class: "step inactiveStep"
|
|
800
|
-
},
|
|
825
|
+
}, Ft = { style: { width: "100%" } }, Ot = {
|
|
801
826
|
key: 0,
|
|
802
827
|
class: "dpiV3_CTALanding"
|
|
803
|
-
},
|
|
828
|
+
}, zt = {
|
|
804
829
|
key: 1,
|
|
805
830
|
class: "dpiV3_CTA_RaP"
|
|
806
|
-
},
|
|
831
|
+
}, Mt = { class: "dpiV3_CTANav" }, jt = { class: "dpiV3_CTANav" }, Ht = {
|
|
807
832
|
key: 3,
|
|
808
833
|
class: "dpiV3_Content_InputPage"
|
|
809
|
-
},
|
|
834
|
+
}, Wt = { class: "dpiV3_Card_Tips" }, qt = { class: "dpiV3_Icon_Title" }, Kt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Zt = { class: "dpiV3_CT-Content" }, Gt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Xt = { class: "dpiV3_hvd_frame3846" }, Nt = { class: "dpiV3_copy_large_semi_bold" }, Yt = { class: "dpiV3_copy_large_regular" }, Jt = { class: "dpiV3_hvd_frame3846" }, Qt = { class: "dpiV3_copy_large_semi_bold" }, xt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ei = { class: "dpiV3_hvd_frame3846" }, ti = { class: "dpiV3_copy_large_semi_bold" }, ii = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, si = { class: "dpiV3_hvd_frame3846" }, ai = { class: "dpiV3_copy_large_semi_bold" }, oi = { class: "dpiV3_copy_large_regular" }, ri = {
|
|
810
835
|
key: 4,
|
|
811
836
|
class: "dpiV3_Content_InputPage"
|
|
812
|
-
},
|
|
837
|
+
}, li = { class: "dpiV3_Card_Tips" }, di = { class: "dpiV3_Icon_Title" }, ni = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ci = { class: "dpiV3_CT-Content" }, pi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ui = { class: "dpiV3_Info-Text" }, hi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, mi = { class: "dpiV3_Info-Text" }, gi = {
|
|
813
838
|
key: 6,
|
|
814
839
|
class: "p-1"
|
|
815
840
|
};
|
|
816
|
-
function
|
|
817
|
-
const
|
|
818
|
-
return
|
|
819
|
-
e.isInput ? (
|
|
820
|
-
i("div",
|
|
821
|
-
h(
|
|
841
|
+
function vi(e, t, a, p, u, D) {
|
|
842
|
+
const I = g("TextButtonSmall"), m = g("ButtonV3"), T = g("LogoV3"), R = g("PhNumberCircleFive"), P = g("PhCheckCircle"), E = g("Illustration"), L = g("FormKitSchema"), w = g("PhLightbulb"), U = g("DistributionInputPage"), B = g("InputPageStep"), F = g("FormKit"), O = g("ModalSimpleV3");
|
|
843
|
+
return s(), o("div", it, [
|
|
844
|
+
e.isInput ? (s(), o("div", st, [
|
|
845
|
+
i("div", at, [
|
|
846
|
+
h(F, {
|
|
822
847
|
id: "dpiForm",
|
|
823
848
|
modelValue: e.formValues,
|
|
824
849
|
"onUpdate:modelValue": t[8] || (t[8] = (r) => e.formValues = r),
|
|
@@ -826,34 +851,34 @@ function Gt(e, t, s, c, u, b) {
|
|
|
826
851
|
actions: !1,
|
|
827
852
|
plugins: [e.stepPlugin],
|
|
828
853
|
class: "d-flex",
|
|
829
|
-
onSubmit: t[9] || (t[9] =
|
|
854
|
+
onSubmit: t[9] || (t[9] = Se(() => {
|
|
830
855
|
}, ["prevent"]))
|
|
831
856
|
}, {
|
|
832
|
-
default:
|
|
833
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (
|
|
834
|
-
i("div",
|
|
835
|
-
h(
|
|
857
|
+
default: ee(() => [
|
|
858
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", ot, [
|
|
859
|
+
i("div", rt, [
|
|
860
|
+
h(I, {
|
|
836
861
|
"button-text": "Übersicht",
|
|
837
862
|
"icon-start": "CaretLeft",
|
|
838
863
|
"icon-name": "caretLeft",
|
|
839
864
|
onClick: e.gotToHome
|
|
840
865
|
}, null, 8, ["onClick"]),
|
|
841
866
|
i("div", null, [
|
|
842
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
843
|
-
h(
|
|
867
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", lt, [
|
|
868
|
+
h(m, {
|
|
844
869
|
"button-text": "Veröffentlichung aufheben",
|
|
845
870
|
size: "large",
|
|
846
871
|
onClick: e.todoHandler
|
|
847
872
|
}, null, 8, ["onClick"]),
|
|
848
|
-
h(
|
|
873
|
+
h(m, {
|
|
849
874
|
"button-text": "Veröffentlicht ansehen",
|
|
850
875
|
variant: "secondary",
|
|
851
876
|
size: "large",
|
|
852
877
|
"icon-end": "Out",
|
|
853
878
|
onClick: e.todoHandler
|
|
854
879
|
}, null, 8, ["onClick"])
|
|
855
|
-
])) : (
|
|
856
|
-
h(
|
|
880
|
+
])) : (s(), o("div", dt, [
|
|
881
|
+
h(m, {
|
|
857
882
|
"button-text": "Veröffentlichen",
|
|
858
883
|
size: "large",
|
|
859
884
|
onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
|
|
@@ -861,88 +886,88 @@ function Gt(e, t, s, c, u, b) {
|
|
|
861
886
|
]))
|
|
862
887
|
])
|
|
863
888
|
])
|
|
864
|
-
])) : (
|
|
865
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (
|
|
866
|
-
h(
|
|
867
|
-
i("ul",
|
|
868
|
-
(
|
|
889
|
+
])) : (s(), o("div", nt, [
|
|
890
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", ct, [
|
|
891
|
+
h(T),
|
|
892
|
+
i("ul", pt, [
|
|
893
|
+
(s(!0), o(V, null, k(e.steps, (r, c, d) => te((s(), o("li", {
|
|
869
894
|
key: r,
|
|
870
|
-
class:
|
|
871
|
-
dpiV3_activeItem: e.activeStep ===
|
|
872
|
-
inactiveStep:
|
|
873
|
-
"has-errors": e.checkStepValidity(
|
|
895
|
+
class: y(["dpiV3_step", {
|
|
896
|
+
dpiV3_activeItem: e.activeStep === c,
|
|
897
|
+
inactiveStep: c != e.activeStep,
|
|
898
|
+
"has-errors": e.checkStepValidity(c)
|
|
874
899
|
}]),
|
|
875
|
-
"data-step-active": e.activeStep ===
|
|
900
|
+
"data-step-active": e.activeStep === c,
|
|
876
901
|
"data-step-valid": r.valid && r.errorCount === 0
|
|
877
902
|
}, [
|
|
878
|
-
i("div",
|
|
903
|
+
i("div", ht, [
|
|
879
904
|
i("div", {
|
|
880
|
-
class:
|
|
881
|
-
dpiV3_activeStepName:
|
|
905
|
+
class: y(["firstRowWrapper", {
|
|
906
|
+
dpiV3_activeStepName: c === e.activeStep,
|
|
882
907
|
formerlyVisitedStep: e.stepCounter > d,
|
|
883
908
|
"copy-small-regular": e.stepCounter > d
|
|
884
909
|
}])
|
|
885
910
|
}, [
|
|
886
|
-
e.activeStep ===
|
|
911
|
+
e.activeStep === c && d < 5 ? (s(), o("img", {
|
|
887
912
|
key: 0,
|
|
888
913
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
889
914
|
src: e.selectedImages[d - 1],
|
|
890
915
|
alt: "Selected Icon"
|
|
891
|
-
}, null, 8,
|
|
892
|
-
e.activeStep ===
|
|
916
|
+
}, null, 8, mt)) : n("", !0),
|
|
917
|
+
e.activeStep === c && d === 5 ? (s(), b(R, {
|
|
893
918
|
key: 1,
|
|
894
919
|
size: 28,
|
|
895
920
|
color: "#009FE3",
|
|
896
921
|
weight: "fill"
|
|
897
922
|
})) : n("", !0),
|
|
898
|
-
d < e.stepCounter ? (
|
|
923
|
+
d < e.stepCounter ? (s(), b(P, {
|
|
899
924
|
key: 2,
|
|
900
925
|
size: 28,
|
|
901
926
|
color: "#70CC44",
|
|
902
927
|
weight: "fill"
|
|
903
928
|
})) : n("", !0),
|
|
904
|
-
d > e.stepCounter ? (
|
|
929
|
+
d > e.stepCounter ? (s(), o("img", {
|
|
905
930
|
key: 3,
|
|
906
931
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
907
932
|
src: e.images[d - 1],
|
|
908
933
|
alt: "Selected Icon"
|
|
909
|
-
}, null, 8,
|
|
910
|
-
e.checkStepValidity(
|
|
934
|
+
}, null, 8, gt)) : n("", !0),
|
|
935
|
+
e.checkStepValidity(c) ? (s(), o("span", {
|
|
911
936
|
key: 4,
|
|
912
937
|
class: "dpiV3_step--errors",
|
|
913
938
|
textContent: l(r.errorCount + r.blockingCount)
|
|
914
|
-
}, null, 8,
|
|
915
|
-
i("span",
|
|
939
|
+
}, null, 8, vt)) : n("", !0),
|
|
940
|
+
i("span", ft, l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
916
941
|
], 2),
|
|
917
|
-
i("div",
|
|
918
|
-
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (
|
|
919
|
-
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (
|
|
920
|
-
e.activeStep ===
|
|
921
|
-
e.stepCounter < 5 ? (
|
|
942
|
+
i("div", bt, [
|
|
943
|
+
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), o("div", St)) : n("", !0),
|
|
944
|
+
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), o("div", yt)) : n("", !0),
|
|
945
|
+
e.activeStep === c ? (s(), o("div", Ct, [
|
|
946
|
+
e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
|
|
922
947
|
e.subSteps[d]
|
|
923
|
-
), (v,
|
|
924
|
-
i("div",
|
|
925
|
-
e.substepCounter >
|
|
948
|
+
), (v, f) => (s(), o("div", Vt, [
|
|
949
|
+
i("div", kt, [
|
|
950
|
+
e.substepCounter > f ? (s(), b(P, {
|
|
926
951
|
key: 0,
|
|
927
952
|
size: 20,
|
|
928
953
|
color: "#009FE3"
|
|
929
|
-
})) : (
|
|
954
|
+
})) : (s(), o("img", {
|
|
930
955
|
key: 1,
|
|
931
|
-
src: e.getCircles(
|
|
956
|
+
src: e.getCircles(f),
|
|
932
957
|
alt: "circle"
|
|
933
|
-
}, null, 8,
|
|
934
|
-
|
|
958
|
+
}, null, 8, _t)),
|
|
959
|
+
f != Object.keys(e.subSteps[d]).length - 1 ? (s(), o("div", {
|
|
935
960
|
key: 2,
|
|
936
|
-
class:
|
|
937
|
-
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter >
|
|
961
|
+
class: y(["dpiV3_seperatorHorizontalStepperInner", {
|
|
962
|
+
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
|
|
938
963
|
}])
|
|
939
964
|
}, null, 2)) : n("", !0)
|
|
940
965
|
]),
|
|
941
|
-
i("div",
|
|
966
|
+
i("div", Dt, [
|
|
942
967
|
i("span", {
|
|
943
|
-
class:
|
|
968
|
+
class: y(["large-regular dpiV3_substepText", {
|
|
944
969
|
dpiV3_activeStepDesc: v === e.activeSubStep,
|
|
945
|
-
formerlyVisitedStep: e.substepCounter >
|
|
970
|
+
formerlyVisitedStep: e.substepCounter > f
|
|
946
971
|
}])
|
|
947
972
|
}, l(e.$t(
|
|
948
973
|
`message.dataupload.steps.${v.replace(/_\d+$/, "")}`
|
|
@@ -952,62 +977,62 @@ function Gt(e, t, s, c, u, b) {
|
|
|
952
977
|
])) : n("", !0)
|
|
953
978
|
])
|
|
954
979
|
])
|
|
955
|
-
], 10,
|
|
956
|
-
[
|
|
980
|
+
], 10, ut)), [
|
|
981
|
+
[ie, c !== "Landing" && c !== "Additionals"]
|
|
957
982
|
])), 128)),
|
|
958
|
-
e.activeStep === "Overview" ? (
|
|
983
|
+
e.activeStep === "Overview" ? (s(), o("li", It, t[12] || (t[12] = [
|
|
959
984
|
i("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
|
|
960
985
|
]))) : n("", !0)
|
|
961
986
|
])
|
|
962
|
-
])) : (
|
|
963
|
-
i("div",
|
|
964
|
-
h(
|
|
987
|
+
])) : (s(), o("div", Tt, [
|
|
988
|
+
i("div", Pt, [
|
|
989
|
+
h(T)
|
|
965
990
|
]),
|
|
966
|
-
i("div",
|
|
967
|
-
h(
|
|
991
|
+
i("div", Lt, [
|
|
992
|
+
h(E, { "illustration-name": "start" })
|
|
968
993
|
])
|
|
969
994
|
]))
|
|
970
995
|
])),
|
|
971
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (
|
|
972
|
-
(
|
|
996
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", wt, [
|
|
997
|
+
(s(!0), o(V, null, k(e.steps, (r, c, d) => (s(), o("li", {
|
|
973
998
|
key: r,
|
|
974
|
-
class:
|
|
975
|
-
activeItem: e.activeStep ===
|
|
976
|
-
inactiveStep:
|
|
977
|
-
"has-errors": e.checkStepValidity(
|
|
999
|
+
class: y(["step", {
|
|
1000
|
+
activeItem: e.activeStep === c,
|
|
1001
|
+
inactiveStep: c != e.activeStep,
|
|
1002
|
+
"has-errors": e.checkStepValidity(c)
|
|
978
1003
|
}]),
|
|
979
|
-
"data-step-active": e.activeStep ===
|
|
1004
|
+
"data-step-active": e.activeStep === c,
|
|
980
1005
|
"data-step-valid": r.valid && r.errorCount === 0,
|
|
981
1006
|
onClick: (v) => {
|
|
982
|
-
e.activeStep =
|
|
1007
|
+
e.activeStep = c, e.update(), e.scrollToTop();
|
|
983
1008
|
}
|
|
984
1009
|
}, [
|
|
985
|
-
i("div",
|
|
986
|
-
i("div",
|
|
987
|
-
e.checkStepValidity(
|
|
1010
|
+
i("div", $t, [
|
|
1011
|
+
i("div", Rt, l(d + 1), 1),
|
|
1012
|
+
e.checkStepValidity(c) ? (s(), o("span", {
|
|
988
1013
|
key: 0,
|
|
989
1014
|
class: "step--errors",
|
|
990
1015
|
textContent: l(r.errorCount + r.blockingCount)
|
|
991
|
-
}, null, 8,
|
|
992
|
-
|
|
1016
|
+
}, null, 8, Et)) : n("", !0),
|
|
1017
|
+
_(l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
993
1018
|
]),
|
|
994
|
-
d != Object.keys(e.steps).length ? (
|
|
995
|
-
], 10,
|
|
996
|
-
e.activeStep === "Overview" ? (
|
|
1019
|
+
d != Object.keys(e.steps).length ? (s(), o("div", Ut)) : n("", !0)
|
|
1020
|
+
], 10, At))), 128)),
|
|
1021
|
+
e.activeStep === "Overview" ? (s(), o("li", Bt, t[13] || (t[13] = [
|
|
997
1022
|
i("div", { class: "circle stepCircle" }, null, -1)
|
|
998
1023
|
]))) : n("", !0)
|
|
999
1024
|
])) : n("", !0),
|
|
1000
|
-
(
|
|
1025
|
+
(s(!0), o(V, null, k(e.getNavSteps(
|
|
1001
1026
|
e.$env.content.dataProviderInterface.specification
|
|
1002
|
-
)[e.property], (r,
|
|
1003
|
-
key:
|
|
1027
|
+
)[e.property], (r, c) => (s(), b(B, {
|
|
1028
|
+
key: c,
|
|
1004
1029
|
name: r
|
|
1005
1030
|
}, {
|
|
1006
|
-
default:
|
|
1007
|
-
(
|
|
1031
|
+
default: ee(() => [
|
|
1032
|
+
(s(!0), o(V, null, k(Object.keys(
|
|
1008
1033
|
e.getSchema(e.property).value[r]
|
|
1009
|
-
).length, (d, v) =>
|
|
1010
|
-
r !== "Distributions" && r !== "Additionals" ? (
|
|
1034
|
+
).length, (d, v) => te((s(), o("div", Ft, [
|
|
1035
|
+
r !== "Distributions" && r !== "Additionals" ? (s(), b(L, {
|
|
1011
1036
|
key: 0,
|
|
1012
1037
|
schema: e.getSchema(e.property).value[r][v],
|
|
1013
1038
|
library: e.library,
|
|
@@ -1017,14 +1042,14 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1017
1042
|
}, null, 8, ["schema", "library", "final-values"])) : n("", !0)
|
|
1018
1043
|
], 512)), [
|
|
1019
1044
|
[
|
|
1020
|
-
|
|
1045
|
+
ie,
|
|
1021
1046
|
Object.values(
|
|
1022
1047
|
e.getSchema(e.property).value[r][v]
|
|
1023
1048
|
)[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
|
|
1024
1049
|
]
|
|
1025
1050
|
])), 256)),
|
|
1026
|
-
e.activeStep === "Landing" ? (
|
|
1027
|
-
h(
|
|
1051
|
+
e.activeStep === "Landing" ? (s(), o("div", Ot, [
|
|
1052
|
+
h(m, {
|
|
1028
1053
|
"button-text": "Abbrechen",
|
|
1029
1054
|
size: "large",
|
|
1030
1055
|
variant: "tertiary",
|
|
@@ -1032,41 +1057,41 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1032
1057
|
e.activeSimpleModal = !0, console.log(e.activeSimpleModal);
|
|
1033
1058
|
})
|
|
1034
1059
|
}),
|
|
1035
|
-
h(
|
|
1060
|
+
h(m, {
|
|
1036
1061
|
"button-text": "Datenbereitstellung starten",
|
|
1037
1062
|
size: "large",
|
|
1038
1063
|
onClick: t[2] || (t[2] = (d) => e.navTrigger("next"))
|
|
1039
1064
|
})
|
|
1040
1065
|
])) : n("", !0),
|
|
1041
|
-
e.activeStep === "ReviewAndPublish" ? (
|
|
1042
|
-
i("div",
|
|
1043
|
-
h(
|
|
1066
|
+
e.activeStep === "ReviewAndPublish" ? (s(), o("div", zt, [
|
|
1067
|
+
i("div", Mt, [
|
|
1068
|
+
h(m, {
|
|
1044
1069
|
"button-text": "Als Entwurf speichern",
|
|
1045
1070
|
size: "large",
|
|
1046
1071
|
variant: "secondary",
|
|
1047
1072
|
onClick: t[3] || (t[3] = (d) => e.navTrigger("draft"))
|
|
1048
1073
|
}),
|
|
1049
|
-
h(
|
|
1074
|
+
h(m, {
|
|
1050
1075
|
"button-text": "Veröffentlichen",
|
|
1051
1076
|
size: "large",
|
|
1052
1077
|
onClick: t[4] || (t[4] = (d) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
|
|
1053
1078
|
})
|
|
1054
1079
|
])
|
|
1055
1080
|
])) : n("", !0),
|
|
1056
|
-
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (
|
|
1081
|
+
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
|
|
1057
1082
|
key: 2,
|
|
1058
|
-
class:
|
|
1083
|
+
class: y(["dpiV3_CTA", {
|
|
1059
1084
|
dpiV3_activeInfobox: ["hvdPage", "visibilityPage"].includes(e.activeSubStep)
|
|
1060
1085
|
}])
|
|
1061
1086
|
}, [
|
|
1062
|
-
h(
|
|
1087
|
+
h(m, {
|
|
1063
1088
|
"button-text": "Abbrechen",
|
|
1064
1089
|
size: "large",
|
|
1065
1090
|
variant: "tertiary",
|
|
1066
1091
|
onClick: t[5] || (t[5] = (d) => e.activeSimpleModal = !0)
|
|
1067
1092
|
}),
|
|
1068
|
-
i("div",
|
|
1069
|
-
e.activeStep !== "Landing" ? (
|
|
1093
|
+
i("div", jt, [
|
|
1094
|
+
e.activeStep !== "Landing" ? (s(), b(m, {
|
|
1070
1095
|
key: 0,
|
|
1071
1096
|
"icon-start": "CaretLeft",
|
|
1072
1097
|
"button-text": "Zurück",
|
|
@@ -1074,33 +1099,33 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1074
1099
|
variant: "secondary",
|
|
1075
1100
|
onClick: t[6] || (t[6] = (d) => e.navTrigger("prev"))
|
|
1076
1101
|
})) : n("", !0),
|
|
1077
|
-
h(
|
|
1102
|
+
h(m, {
|
|
1078
1103
|
"icon-end": "CaretRight",
|
|
1079
1104
|
"button-text": "Weiter",
|
|
1080
1105
|
size: "large",
|
|
1081
1106
|
onClick: t[7] || (t[7] = (d) => {
|
|
1082
|
-
var v,
|
|
1083
|
-
return ((
|
|
1107
|
+
var v, f, A, C;
|
|
1108
|
+
return ((A = (f = (v = e.formValues[e.activeStep]) == null ? void 0 : v[e.activeSubStep]) == null ? void 0 : f[0]) == null ? void 0 : A.isValid) === !0 || ((C = e.formValues[e.activeStep][e.activeSubStep]) == null ? void 0 : C.isValid) === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep));
|
|
1084
1109
|
})
|
|
1085
1110
|
})
|
|
1086
1111
|
])
|
|
1087
1112
|
], 2)) : n("", !0),
|
|
1088
|
-
e.activeSubStep.includes("hvdPage") ? (
|
|
1089
|
-
i("div",
|
|
1090
|
-
i("div",
|
|
1091
|
-
h(
|
|
1113
|
+
e.activeSubStep.includes("hvdPage") ? (s(), o("div", Ht, [
|
|
1114
|
+
i("div", Wt, [
|
|
1115
|
+
i("div", qt, [
|
|
1116
|
+
h(w, {
|
|
1092
1117
|
size: 32,
|
|
1093
1118
|
color: "#009fe3"
|
|
1094
1119
|
}),
|
|
1095
|
-
i("div",
|
|
1120
|
+
i("div", Kt, l(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
1096
1121
|
]),
|
|
1097
|
-
i("div",
|
|
1098
|
-
i("div",
|
|
1099
|
-
i("div",
|
|
1100
|
-
i("div",
|
|
1122
|
+
i("div", Zt, [
|
|
1123
|
+
i("div", Gt, l(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
1124
|
+
i("div", Xt, [
|
|
1125
|
+
i("div", Nt, " 1. " + l(e.$t(
|
|
1101
1126
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
1102
1127
|
)), 1),
|
|
1103
|
-
i("ul",
|
|
1128
|
+
i("ul", Yt, [
|
|
1104
1129
|
i("li", null, l(e.$t(
|
|
1105
1130
|
"message.dataupload.datasets.hvdPage.hvd-category-1"
|
|
1106
1131
|
)), 1),
|
|
@@ -1121,57 +1146,57 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1121
1146
|
)), 1)
|
|
1122
1147
|
])
|
|
1123
1148
|
]),
|
|
1124
|
-
i("div",
|
|
1125
|
-
i("div",
|
|
1149
|
+
i("div", Jt, [
|
|
1150
|
+
i("div", Qt, " 2. " + l(e.$t(
|
|
1126
1151
|
"message.dataupload.datasets.hvdPage.tips-question-2"
|
|
1127
1152
|
)), 1),
|
|
1128
|
-
i("p",
|
|
1153
|
+
i("p", xt, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
|
|
1129
1154
|
]),
|
|
1130
|
-
i("div",
|
|
1131
|
-
i("div",
|
|
1155
|
+
i("div", ei, [
|
|
1156
|
+
i("div", ti, " 3. " + l(e.$t(
|
|
1132
1157
|
"message.dataupload.datasets.hvdPage.tips-question-3"
|
|
1133
1158
|
)), 1),
|
|
1134
|
-
i("p",
|
|
1159
|
+
i("p", ii, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
1135
1160
|
]),
|
|
1136
|
-
i("div",
|
|
1137
|
-
i("div",
|
|
1161
|
+
i("div", si, [
|
|
1162
|
+
i("div", ai, " 4. " + l(e.$t(
|
|
1138
1163
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
1139
1164
|
)), 1),
|
|
1140
|
-
i("p",
|
|
1165
|
+
i("p", oi, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
1141
1166
|
])
|
|
1142
1167
|
])
|
|
1143
1168
|
])
|
|
1144
1169
|
])) : n("", !0),
|
|
1145
|
-
e.activeSubStep.includes("visibilityPage") ? (
|
|
1146
|
-
i("div",
|
|
1147
|
-
i("div",
|
|
1148
|
-
h(
|
|
1170
|
+
e.activeSubStep.includes("visibilityPage") ? (s(), o("div", ri, [
|
|
1171
|
+
i("div", li, [
|
|
1172
|
+
i("div", di, [
|
|
1173
|
+
h(w, {
|
|
1149
1174
|
size: 32,
|
|
1150
1175
|
color: "#009fe3"
|
|
1151
1176
|
}),
|
|
1152
|
-
i("div",
|
|
1177
|
+
i("div", ni, l(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
|
|
1153
1178
|
]),
|
|
1154
|
-
i("div",
|
|
1155
|
-
i("p",
|
|
1156
|
-
i("span",
|
|
1157
|
-
|
|
1179
|
+
i("div", ci, [
|
|
1180
|
+
i("p", pi, [
|
|
1181
|
+
i("span", ui, l(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
|
|
1182
|
+
_(" " + l(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
|
|
1158
1183
|
]),
|
|
1159
|
-
i("p",
|
|
1160
|
-
|
|
1161
|
-
i("span",
|
|
1162
|
-
|
|
1184
|
+
i("p", hi, [
|
|
1185
|
+
_(l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
|
|
1186
|
+
i("span", mi, l(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
|
|
1187
|
+
_(" " + l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
|
|
1163
1188
|
])
|
|
1164
1189
|
])
|
|
1165
1190
|
])
|
|
1166
1191
|
])) : n("", !0),
|
|
1167
|
-
r === "Distributions" ? (
|
|
1192
|
+
r === "Distributions" ? (s(), b(U, {
|
|
1168
1193
|
key: 5,
|
|
1169
1194
|
schema: e.getSchema("distributions"),
|
|
1170
1195
|
values: e.formValues
|
|
1171
1196
|
}, null, 8, ["schema", "values"])) : n("", !0),
|
|
1172
|
-
r === "Mandatory" ? (
|
|
1197
|
+
r === "Mandatory" ? (s(), o("p", gi, [
|
|
1173
1198
|
t[14] || (t[14] = i("b", null, "*", -1)),
|
|
1174
|
-
|
|
1199
|
+
_(" " + l(e.$t("message.dataupload.info.mandatory")), 1)
|
|
1175
1200
|
])) : n("", !0)
|
|
1176
1201
|
]),
|
|
1177
1202
|
_: 2
|
|
@@ -1179,7 +1204,7 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1179
1204
|
]),
|
|
1180
1205
|
_: 1
|
|
1181
1206
|
}, 8, ["modelValue", "plugins"]),
|
|
1182
|
-
e.activeSimpleModal ? (
|
|
1207
|
+
e.activeSimpleModal ? (s(), b(O, {
|
|
1183
1208
|
key: 0,
|
|
1184
1209
|
buttons: e.modalSimpleConf.button,
|
|
1185
1210
|
"header-text": e.modalSimpleConf.header,
|
|
@@ -1192,7 +1217,7 @@ function Gt(e, t, s, c, u, b) {
|
|
|
1192
1217
|
], 512)) : n("", !0)
|
|
1193
1218
|
]);
|
|
1194
1219
|
}
|
|
1195
|
-
const
|
|
1220
|
+
const ns = /* @__PURE__ */ Je(tt, [["render", vi]]);
|
|
1196
1221
|
export {
|
|
1197
|
-
|
|
1222
|
+
ns as default
|
|
1198
1223
|
};
|