@piveau/dpi 0.1.0-beta.59 → 0.1.0-beta.60
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/HappyFlowComponents/ui/Dropdown.vue.js +3 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +131 -126
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +47 -45
- package/dist/data-provider-interface/components/ContactPage.vue.js +49 -49
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +285 -315
- package/dist/data-provider-interface/components/HVDPage.vue.js +41 -42
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +218 -206
- package/dist/data-provider-interface/components/TempResPage.vue.js +2 -2
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.js +13 -14
- package/package.json +1 -1
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { ref as n, computed as y, watch as T, onMounted as $, createElementBlock as D, openBlock as
|
|
1
|
+
import { ref as n, computed as y, watch as T, onMounted as $, createElementBlock as D, openBlock as g, createElementVNode as s, createCommentVNode as B, createBlock as E, toDisplayString as v, createVNode as P, unref as f, getCurrentInstance as O } from "vue";
|
|
2
2
|
import { useI18n as W } from "vue-i18n";
|
|
3
|
-
import { getHvdCategories as
|
|
3
|
+
import { getHvdCategories as K } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { PhWarning as
|
|
9
|
-
import { useFormValues as
|
|
6
|
+
import N from "../HappyFlowComponents/ui/SwitchV3.vue.js";
|
|
7
|
+
import j from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
8
|
+
import { PhWarning as z } from "@phosphor-icons/vue";
|
|
9
|
+
import { useFormValues as L } from "../composables/useDpiFormValues.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
const
|
|
11
|
+
import M from "../../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const U = { class: "V3-typography" }, A = { class: "dpiV3_Frame_831" }, R = { class: "dpiV3_Frame_840" }, q = { class: "dpiV3_title" }, G = { class: "dpiV3_intro copy-large-regular" }, J = { class: "dpiV3_Frame_830" }, Q = { class: "dpiV3_Switch" }, X = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, Y = { class: "dpiV3_Sub_Info copy-large-regular" }, Z = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "dpiV3_errormsgWrapper"
|
|
15
|
-
},
|
|
15
|
+
}, ee = {
|
|
16
16
|
__name: "HVDPage",
|
|
17
17
|
props: {
|
|
18
18
|
context: Object
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const { t:
|
|
20
|
+
setup(ae, { expose: w }) {
|
|
21
|
+
const { t: le } = W(), { formValues: t } = L(), i = n(!1), o = n(""), S = n([]), H = n(null), u = n([]);
|
|
22
22
|
let l = n([{ isValid: !0 }]);
|
|
23
23
|
Object.keys(t.value.Discoverability.hvdPage).length === 0 && (t.value.Discoverability.hvdPage = l.value);
|
|
24
|
-
const C = y(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}))
|
|
29
|
-
), I = () => {
|
|
24
|
+
const C = y(() => u.value.map((a) => ({
|
|
25
|
+
"@value": a.label,
|
|
26
|
+
selected: !1
|
|
27
|
+
}))), k = () => {
|
|
30
28
|
i.value = !i.value, i.value ? (l.value[0] = { isValid: "unset" }, o.value = "", t.value.Discoverability.hvdPage = [{ isValid: "unset" }]) : (t.value.Discoverability.hvdPage = [{ isValid: !0 }], l.value[0] = { isValid: !0 }, o.value = ""), console.log("switchStateValue: ", i.value), console.log("validation state: ", l.value[0].isValid);
|
|
31
|
-
},
|
|
32
|
-
const a =
|
|
29
|
+
}, I = (e) => {
|
|
30
|
+
const a = u.value.find(
|
|
33
31
|
(r) => r.label === e.target.innerHTML
|
|
34
32
|
);
|
|
35
33
|
a && (l.value[0] = {
|
|
@@ -56,10 +54,10 @@ const M = { class: "V3-typography" }, U = { class: "dpiV3_Frame_831" }, A = { cl
|
|
|
56
54
|
});
|
|
57
55
|
const x = async () => {
|
|
58
56
|
try {
|
|
59
|
-
const e = O().appContext.app.config.globalProperties.$env, r = (await
|
|
60
|
-
(d,
|
|
57
|
+
const e = O().appContext.app.config.globalProperties.$env, r = (await K(e.api.baseUrl)).sort(
|
|
58
|
+
(d, c) => d.pref_label.de.localeCompare(c.pref_label.de, "de")
|
|
61
59
|
);
|
|
62
|
-
S.value = r,
|
|
60
|
+
S.value = r, u.value = r.map((d) => ({
|
|
63
61
|
label: d.pref_label.de,
|
|
64
62
|
uri: d.resource
|
|
65
63
|
}));
|
|
@@ -70,25 +68,26 @@ const M = { class: "V3-typography" }, U = { class: "dpiV3_Frame_831" }, A = { cl
|
|
|
70
68
|
return $(() => {
|
|
71
69
|
x();
|
|
72
70
|
}), (e, a) => {
|
|
73
|
-
var r, d,
|
|
74
|
-
return
|
|
75
|
-
s("div",
|
|
76
|
-
s("div",
|
|
77
|
-
s("h4",
|
|
78
|
-
s("div",
|
|
79
|
-
s("div",
|
|
80
|
-
s("div",
|
|
81
|
-
|
|
82
|
-
onSwitchToggled:
|
|
71
|
+
var r, d, c, h, V, m, _, b;
|
|
72
|
+
return g(), D("div", U, [
|
|
73
|
+
s("div", A, [
|
|
74
|
+
s("div", R, [
|
|
75
|
+
s("h4", q, v(e.$t("message.dataupload.datasets.hvdPage.title")), 1),
|
|
76
|
+
s("div", G, v(e.$t("message.dataupload.datasets.hvdPage.intro-text")), 1),
|
|
77
|
+
s("div", J, [
|
|
78
|
+
s("div", Q, [
|
|
79
|
+
P(N, {
|
|
80
|
+
onSwitchToggled: k,
|
|
83
81
|
hasIcon: !1,
|
|
84
82
|
defaultChecked: !1,
|
|
85
83
|
disabled: !1
|
|
86
84
|
})
|
|
87
85
|
]),
|
|
88
|
-
s("div",
|
|
86
|
+
s("div", X, v(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
|
|
89
87
|
]),
|
|
90
|
-
s("div",
|
|
91
|
-
|
|
88
|
+
s("div", Y, v(e.$t("message.dataupload.datasets.hvdPage.sub-info")), 1),
|
|
89
|
+
(g(), E(j, {
|
|
90
|
+
key: u.value.length,
|
|
92
91
|
dropdownWidth: "large",
|
|
93
92
|
isDisabled: !i.value,
|
|
94
93
|
type: "inputField",
|
|
@@ -106,24 +105,24 @@ const M = { class: "V3-typography" }, U = { class: "dpiV3_Frame_831" }, A = { cl
|
|
|
106
105
|
placeholder: "Wählen Sie eine HVD-Kategorie",
|
|
107
106
|
inputFieldSize: "large",
|
|
108
107
|
modelValue: o.value,
|
|
109
|
-
showError: ((h = (
|
|
108
|
+
showError: ((h = (c = (d = (r = f(t)) == null ? void 0 : r.Discoverability) == null ? void 0 : d.hvdPage) == null ? void 0 : c[0]) == null ? void 0 : h.isValid) === !1
|
|
110
109
|
},
|
|
111
110
|
data: C.value,
|
|
112
|
-
onClick: a[1] || (a[1] = (p) =>
|
|
113
|
-
}, null, 8, ["isDisabled", "modelValue", "inputFieldProps", "data"])
|
|
111
|
+
onClick: a[1] || (a[1] = (p) => I(p))
|
|
112
|
+
}, null, 8, ["isDisabled", "modelValue", "inputFieldProps", "data"]))
|
|
114
113
|
]),
|
|
115
|
-
((b = (_ = (m = (V =
|
|
116
|
-
f(
|
|
114
|
+
((b = (_ = (m = (V = f(t)) == null ? void 0 : V.Discoverability) == null ? void 0 : m.hvdPage) == null ? void 0 : _[0]) == null ? void 0 : b.isValid) === !1 ? (g(), D("div", Z, [
|
|
115
|
+
P(f(z), {
|
|
117
116
|
size: 16,
|
|
118
117
|
weight: "fill"
|
|
119
118
|
}),
|
|
120
119
|
a[2] || (a[2] = s("span", { class: "copy-mini-regular" }, "Bitte wählen Sie eine HVD-Kategorie aus, bevor Sie fortfahren.", -1))
|
|
121
|
-
])) :
|
|
120
|
+
])) : B("", !0)
|
|
122
121
|
])
|
|
123
122
|
]);
|
|
124
123
|
};
|
|
125
124
|
}
|
|
126
|
-
}, fe = /* @__PURE__ */
|
|
125
|
+
}, fe = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-456bbea4"]]);
|
|
127
126
|
export {
|
|
128
127
|
fe as default
|
|
129
128
|
};
|