@piveau/dpi 0.1.0-beta.8 → 0.1.0-twinby.0
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/data-provider-interface/DPIMenu.vue.js +7 -7
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +18 -17
- package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +122 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteInputDefinition.js +14 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue.js +75 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +29 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +19 -20
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +32 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +21 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +60 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +98 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +16 -21
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +83 -81
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +2 -4
- package/dist/data-provider-interface/components/DistLicense.vue.js +61 -63
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +791 -779
- package/dist/data-provider-interface/components/HVDPage.vue.js +45 -43
- package/dist/data-provider-interface/components/InputPageStep.vue.js +9 -11
- package/dist/data-provider-interface/components/ProgressSteps.vue.js +7 -0
- package/dist/data-provider-interface/components/ProgressSteps.vue2.js +106 -0
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +204 -204
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +211 -212
- package/dist/data-provider-interface/composables/useDpiStepper.js +80 -39
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +145 -105
- package/dist/data-provider-interface/store/modules/conversionStore.js +130 -0
- package/dist/data-provider-interface/store/modules/dpiStore.js +18 -16
- package/dist/data-provider-interface/utils/RDFconverter.js +226 -0
- package/dist/data-provider-interface/utils/inputConverter.js +255 -0
- package/dist/data-provider-interface/utils/useSteps.js +39 -30
- package/dist/data-provider-interface/views/InputPage.vue.js +80 -92
- package/dist/data-provider-interface/views/InputPageProject.vue.js +528 -0
- package/dist/index.js +31 -27
- package/dist/stories/components/DemoStep.vue.js +331 -0
- package/dist/stories/components/DemoStepper.vue.js +7 -0
- package/dist/stories/components/DemoStepper.vue2.js +160 -0
- package/dist/stories/components/PartnerCard.vue.js +7 -0
- package/dist/stories/components/PartnerCard.vue2.js +32 -0
- package/dist/stories/components/ReviewStepDemo.vue.js +7 -0
- package/dist/stories/components/ReviewStepDemo.vue2.js +98 -0
- package/package.json +11 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { PhLightbulb as
|
|
1
|
+
import { ref as d, watch as w, onMounted as C, getCurrentInstance as T, createElementBlock as b, openBlock as g, createElementVNode as a, createVNode as v, createCommentVNode as z, createBlock as $, toDisplayString as i, unref as o, isRef as F, createTextVNode as _ } from "vue";
|
|
2
|
+
import S from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
3
|
+
import B from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
4
|
+
import { PhLightbulb as P, PhArrowSquareOut as E } from "@phosphor-icons/vue";
|
|
5
5
|
import { getLicenses as M } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
6
6
|
import { useEditModeInfo as O } from "../composables/useDpiEditMode.js";
|
|
7
7
|
/* empty css */
|
|
@@ -16,56 +16,56 @@ const x = { class: "dpiV3InnerComponentWrap" }, H = { class: "copy-large-regular
|
|
|
16
16
|
changeLicenseText: { type: String, default: "" },
|
|
17
17
|
changeLicenseDropdownText: { type: String, default: "" }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const { isEditMode:
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
const
|
|
19
|
+
setup(I) {
|
|
20
|
+
const { isEditMode: D } = O();
|
|
21
|
+
let h = d(!1), r = d([]), c = d("");
|
|
22
|
+
const p = d(""), V = I;
|
|
23
|
+
let m = d({ 1: !1, 2: !1 });
|
|
24
|
+
const l = d([
|
|
25
25
|
{ isValid: "unset", "dcterms:license": "", title: "", uri: "" }
|
|
26
26
|
]);
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
27
|
+
D.value || V.context.node.input(l);
|
|
28
|
+
const N = (e, s, t) => {
|
|
29
|
+
f(e, s, t);
|
|
30
|
+
}, k = (e) => {
|
|
31
31
|
const s = typeof e == "object" && e.target ? e.target.value : e;
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
f(s, "dcterms:license", 1);
|
|
33
|
+
}, f = (e, s, t, u) => {
|
|
34
|
+
const y = e === "" || r.value.some((n) => n["@value"] === e);
|
|
35
|
+
let L = d();
|
|
36
|
+
r.value.some((n) => n["@value"] === e) && (L.value = r.value.find(
|
|
37
|
+
(n) => n["@value"] === e
|
|
38
|
+
).label), !y && e !== "" ? (p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", m.value[t] = !1, l.value[0].isValid = !1) : (p.value = "", h.value = e !== "", e !== "" ? (m.value[t] = !0, e !== "" && (l.value[0].isValid = !0)) : (m.value[t] = !1, l.value[0].isValid = !1), l.value = l.value.map((n) => s in n ? { ...n, [s]: e, uri: u, title: L } : n)), V.context.node.input(l.value);
|
|
39
39
|
};
|
|
40
|
-
return
|
|
41
|
-
let s =
|
|
40
|
+
return w(c, (e) => {
|
|
41
|
+
let s = r.value.find(
|
|
42
42
|
(t) => t["@value"] === e
|
|
43
43
|
).uri;
|
|
44
|
-
e !== void 0 &&
|
|
45
|
-
}),
|
|
46
|
-
const s =
|
|
44
|
+
e !== void 0 && f(e, "dcterms:license", 1, s);
|
|
45
|
+
}), C(async () => {
|
|
46
|
+
const s = T().appContext.app.config.globalProperties.$env;
|
|
47
47
|
try {
|
|
48
48
|
const t = await M(s.api.baseUrl);
|
|
49
|
-
|
|
50
|
-
"@value":
|
|
51
|
-
label:
|
|
52
|
-
uri:
|
|
49
|
+
r.value = t.map((u) => ({
|
|
50
|
+
"@value": u.value,
|
|
51
|
+
label: u.label,
|
|
52
|
+
uri: u.uri
|
|
53
53
|
}));
|
|
54
54
|
} catch (t) {
|
|
55
55
|
console.error("Failed to load licenses", t);
|
|
56
56
|
}
|
|
57
|
-
}), (e, s) => (
|
|
58
|
-
a("h4", null,
|
|
59
|
-
a("div", H,
|
|
60
|
-
|
|
57
|
+
}), (e, s) => (g(), b("div", x, [
|
|
58
|
+
a("h4", null, i(e.$t("message.dataupload.datasets.dct:license.title")), 1),
|
|
59
|
+
a("div", H, i(e.$t("message.dataupload.datasets.dct:license.description")), 1),
|
|
60
|
+
v(B, {
|
|
61
61
|
"onUpdate:modelValue": [
|
|
62
|
-
s[0] || (s[0] = (t) =>
|
|
63
|
-
s[1] || (s[1] = (t) =>
|
|
62
|
+
s[0] || (s[0] = (t) => N(t, "dcterms:license", 1)),
|
|
63
|
+
s[1] || (s[1] = (t) => F(c) ? c.value = t : c = t)
|
|
64
64
|
],
|
|
65
|
-
onInput:
|
|
65
|
+
onInput: k,
|
|
66
66
|
dropdownWidth: "large",
|
|
67
67
|
type: "inputField",
|
|
68
|
-
modelValue:
|
|
68
|
+
modelValue: o(c),
|
|
69
69
|
inputFieldProps: {
|
|
70
70
|
addOnText: !1,
|
|
71
71
|
initialHintText: !1,
|
|
@@ -76,20 +76,18 @@ const x = { class: "dpiV3InnerComponentWrap" }, H = { class: "copy-large-regular
|
|
|
76
76
|
dropdown_dpiV3: !0,
|
|
77
77
|
placeholder: "Lizenz wählen...",
|
|
78
78
|
inputFieldSize: "large",
|
|
79
|
-
modelValue:
|
|
79
|
+
modelValue: o(c),
|
|
80
80
|
defaultInput: !0,
|
|
81
|
-
showError:
|
|
81
|
+
showError: p.value !== "" || l.value[0].isValid === !1 && o(m)[1] === !1
|
|
82
82
|
},
|
|
83
|
-
data:
|
|
84
|
-
autocomplete: !0,
|
|
83
|
+
data: o(r),
|
|
85
84
|
onDeleteButtonClicked: e.deleteModifiedField
|
|
86
85
|
}, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
p.value ? (g(), b("div", W, i(p.value), 1)) : z("", !0),
|
|
87
|
+
o(h) ? (g(), $(S, {
|
|
89
88
|
key: 1,
|
|
90
|
-
|
|
91
|
-
modelValue:
|
|
92
|
-
"onUpdate:modelValue": s[3] || (s[3] = (t) => e.changeLicenseTitleText = t),
|
|
89
|
+
modelValue: l.value[0].title,
|
|
90
|
+
"onUpdate:modelValue": s[2] || (s[2] = (t) => l.value[0].title = t),
|
|
93
91
|
addOnText: !1,
|
|
94
92
|
datePicker: !1,
|
|
95
93
|
infoIcon: !1,
|
|
@@ -103,47 +101,47 @@ const x = { class: "dpiV3InnerComponentWrap" }, H = { class: "copy-large-regular
|
|
|
103
101
|
onDeleteButtonClicked: e.deleteModifiedField,
|
|
104
102
|
supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
|
|
105
103
|
error_message: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
|
|
106
|
-
|
|
107
|
-
}, null, 8, ["modelValue", "onDeleteButtonClicked"
|
|
104
|
+
isDisabled: !0
|
|
105
|
+
}, null, 8, ["modelValue", "onDeleteButtonClicked"])) : z("", !0),
|
|
108
106
|
a("div", j, [
|
|
109
107
|
a("div", R, [
|
|
110
108
|
a("div", q, [
|
|
111
|
-
|
|
109
|
+
v(o(P), {
|
|
112
110
|
size: 32,
|
|
113
111
|
color: "#009fe3"
|
|
114
112
|
}),
|
|
115
|
-
a("div", A,
|
|
113
|
+
a("div", A, i(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
|
|
116
114
|
]),
|
|
117
115
|
a("div", G, [
|
|
118
|
-
a("div", J,
|
|
116
|
+
a("div", J, i(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
|
|
119
117
|
a("div", K, [
|
|
120
118
|
a("div", Q, [
|
|
121
|
-
|
|
119
|
+
_(i(e.$t(
|
|
122
120
|
"message.dataupload.datasets.dct:license.advices.licenseName1"
|
|
123
121
|
)) + " ", 1),
|
|
124
|
-
a("span", X,
|
|
122
|
+
a("span", X, i(e.$t(
|
|
125
123
|
"message.dataupload.datasets.dct:license.advices.licenseName1_desc"
|
|
126
124
|
)), 1)
|
|
127
125
|
]),
|
|
128
126
|
a("div", Y, [
|
|
129
|
-
|
|
127
|
+
_(i(e.$t(
|
|
130
128
|
"message.dataupload.datasets.dct:license.advices.licenseName2"
|
|
131
129
|
)) + " ", 1),
|
|
132
|
-
a("span", Z,
|
|
130
|
+
a("span", Z, i(e.$t(
|
|
133
131
|
"message.dataupload.datasets.dct:license.advices.licenseName2_desc"
|
|
134
132
|
)), 1)
|
|
135
133
|
]),
|
|
136
134
|
a("div", ee, [
|
|
137
|
-
|
|
135
|
+
_(i(e.$t(
|
|
138
136
|
"message.dataupload.datasets.dct:license.advices.licenseName3"
|
|
139
137
|
)) + " ", 1),
|
|
140
|
-
a("span", se,
|
|
138
|
+
a("span", se, i(e.$t(
|
|
141
139
|
"message.dataupload.datasets.dct:license.advices.licenseName3_desc"
|
|
142
140
|
)), 1)
|
|
143
141
|
]),
|
|
144
142
|
a("div", te, [
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
v(o(E), { size: 24 }),
|
|
144
|
+
_(" " + i(e.$t(
|
|
147
145
|
"message.dataupload.datasets.dct:license.advices.linkToLicenses"
|
|
148
146
|
)), 1)
|
|
149
147
|
])
|
|
@@ -151,10 +149,10 @@ const x = { class: "dpiV3InnerComponentWrap" }, H = { class: "copy-large-regular
|
|
|
151
149
|
])
|
|
152
150
|
])
|
|
153
151
|
]),
|
|
154
|
-
s[
|
|
152
|
+
s[3] || (s[3] = a("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1))
|
|
155
153
|
]));
|
|
156
154
|
}
|
|
157
|
-
},
|
|
155
|
+
}, ue = /* @__PURE__ */ U(ae, [["__scopeId", "data-v-a9351459"]]);
|
|
158
156
|
export {
|
|
159
|
-
|
|
157
|
+
ue as default
|
|
160
158
|
};
|