@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.51
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 +2 -2
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +153 -102
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +34 -56
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +153 -105
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +856 -790
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
- package/dist/index.js +4 -4
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +36 -22
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/package.json +12 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
|
@@ -1,99 +1,129 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { PhWarning as
|
|
1
|
+
import { ref as m, computed as P, getCurrentInstance as S, watch as B, createElementBlock as d, openBlock as f, createElementVNode as o, createCommentVNode as v, toDisplayString as c, createVNode as u, Fragment as D, renderList as O, unref as h } from "vue";
|
|
2
|
+
import k from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
3
|
+
import W from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
4
|
+
import { PhWarning as g } from "@phosphor-icons/vue";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { useEditModeInfo as
|
|
8
|
-
const
|
|
6
|
+
import A from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
import { useEditModeInfo as C } from "../composables/useDpiEditMode.js";
|
|
8
|
+
const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular" }, N = { class: "dpiV3AutoCompleteWrap" }, U = { class: "firstRow" }, Z = { class: "secondRow" }, H = { class: "copy-small-regular" }, L = { class: "input-container" }, M = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "dpiV3_errormsgWrapper"
|
|
11
|
-
},
|
|
11
|
+
}, j = { class: "copy-mini-regular" }, K = { class: "input-container" }, q = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "dpiV3_errormsgWrapper"
|
|
14
|
-
},
|
|
14
|
+
}, G = { class: "copy-mini-regular" }, J = { class: "input-container" }, Q = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "dpiV3_errormsgWrapper"
|
|
17
|
-
},
|
|
17
|
+
}, X = { class: "copy-mini-regular" }, Y = { class: "copy-large-regular" }, ee = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "form-error-message"
|
|
20
|
-
},
|
|
20
|
+
}, ae = {
|
|
21
21
|
__name: "PublisherPage",
|
|
22
22
|
props: {
|
|
23
23
|
context: Object
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
const n =
|
|
29
|
-
var a,
|
|
30
|
-
const e = (
|
|
25
|
+
setup(z) {
|
|
26
|
+
const b = z, { isEditMode: I } = C();
|
|
27
|
+
let s = m({ 1: !1, 2: !1, 3: !1 });
|
|
28
|
+
const w = m(null), _ = m(null), n = P(() => {
|
|
29
|
+
var a, l;
|
|
30
|
+
const e = (l = (a = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : a.idTokenParsed) == null ? void 0 : l.contact;
|
|
31
31
|
if (e) {
|
|
32
|
-
const
|
|
32
|
+
const r = {
|
|
33
33
|
organization: e.organization
|
|
34
34
|
};
|
|
35
|
-
return e.email && (
|
|
35
|
+
return e.email && (r.email = e.email), e.website && (r.website = `https://${e.website}`), r;
|
|
36
36
|
}
|
|
37
37
|
return {};
|
|
38
|
-
}),
|
|
38
|
+
}), i = m([
|
|
39
39
|
{ isValid: "unset", "foaf:name": "", "foaf:mbox": "", "foaf:homepage": "" }
|
|
40
|
-
]),
|
|
40
|
+
]), t = m({
|
|
41
41
|
1: { show: !1, message: "Bitte geben Sie einen gültigen Organisationsnamen ein." },
|
|
42
42
|
2: { show: !1, message: "Bitte geben Sie eine gültige E-Mail-Adresse ein." },
|
|
43
43
|
3: { show: !1, message: "Bitte geben Sie eine gültige URL ein." }
|
|
44
|
-
}),
|
|
45
|
-
I.value ||
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
let i = !1;
|
|
44
|
+
}), y = (e) => e.trim().length >= 2, T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), E = (e) => /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(e);
|
|
45
|
+
I.value || b.context.node.input(i);
|
|
46
|
+
const V = (e, a, l) => {
|
|
47
|
+
let r = !1;
|
|
49
48
|
if (e.trim() === "")
|
|
50
|
-
|
|
49
|
+
t.value[l].show = !1, s.value[l] = !1;
|
|
51
50
|
else {
|
|
52
51
|
switch (a) {
|
|
53
52
|
case "foaf:name":
|
|
54
|
-
|
|
53
|
+
r = y(e);
|
|
55
54
|
break;
|
|
56
55
|
case "foaf:mbox":
|
|
57
|
-
|
|
56
|
+
r = T(e);
|
|
58
57
|
break;
|
|
59
58
|
case "foaf:homepage":
|
|
60
|
-
|
|
59
|
+
r = E(e);
|
|
61
60
|
break;
|
|
62
61
|
default:
|
|
63
|
-
|
|
62
|
+
r = e.trim() !== "";
|
|
64
63
|
}
|
|
65
|
-
|
|
64
|
+
t.value[l].show = !r, s.value[l] = r;
|
|
66
65
|
}
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
66
|
+
s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
|
|
67
|
+
}, p = (e, a, l) => {
|
|
68
|
+
i.value = i.value.map((r) => a in r ? { ...r, [a]: e } : r), b.context.node.value.length === 0 && b.context.node.input(i.value), l === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
|
|
69
|
+
V(e, a, l);
|
|
70
|
+
}, 800)) : l === 3 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
71
|
+
V(e, a, l);
|
|
72
|
+
}, 800)) : V(e, a, l);
|
|
73
|
+
}, $ = () => {
|
|
74
|
+
const e = i.value[0];
|
|
75
|
+
if (e["foaf:name"].trim() === "")
|
|
76
|
+
t.value[1].show = !0, s.value[1] = !1;
|
|
77
|
+
else {
|
|
78
|
+
const a = y(e["foaf:name"]);
|
|
79
|
+
t.value[1].show = !a, s.value[1] = a;
|
|
80
|
+
}
|
|
81
|
+
if (e["foaf:mbox"].trim() === "")
|
|
82
|
+
t.value[2].show = !0, s.value[2] = !1;
|
|
83
|
+
else {
|
|
84
|
+
const a = T(e["foaf:mbox"]);
|
|
85
|
+
t.value[2].show = !a, s.value[2] = a;
|
|
86
|
+
}
|
|
87
|
+
if (e["foaf:homepage"].trim() === "")
|
|
88
|
+
t.value[3].show = !0, s.value[3] = !1;
|
|
89
|
+
else {
|
|
90
|
+
const a = E(e["foaf:homepage"]);
|
|
91
|
+
t.value[3].show = !a, s.value[3] = a;
|
|
92
|
+
}
|
|
93
|
+
s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = !1, console.log("Validation states:", s.value), console.log("Validation errors:", t.value);
|
|
94
|
+
};
|
|
95
|
+
B(() => i.value[0].isValid, (e) => {
|
|
96
|
+
console.log("Overall validity changed:", e), e === !1 && $();
|
|
97
|
+
});
|
|
98
|
+
const x = () => {
|
|
99
|
+
if (n.value && (n.value.organization && p(n.value.organization, "foaf:name", 1), n.value.email && p(n.value.email, "foaf:mbox", 2), n.value.website)) {
|
|
70
100
|
let e = n.value.website;
|
|
71
|
-
e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)),
|
|
101
|
+
e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)), p(e, "foaf:homepage", 3);
|
|
72
102
|
}
|
|
73
103
|
};
|
|
74
|
-
return (e, a) => (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
a[3] || (a[3] =
|
|
80
|
-
|
|
104
|
+
return (e, a) => (f(), d("div", R, [
|
|
105
|
+
o("h4", null, c(e.$t("message.dataupload.datasets.dct:publisher.title")), 1),
|
|
106
|
+
o("div", F, c(e.$t("message.dataupload.datasets.dct:publisher.description")), 1),
|
|
107
|
+
o("div", N, [
|
|
108
|
+
o("div", U, [
|
|
109
|
+
a[3] || (a[3] = o("div", null, [
|
|
110
|
+
o("span", { class: "copy-small-semi-bold" }, "Konto")
|
|
81
111
|
], -1)),
|
|
82
|
-
|
|
112
|
+
u(W, {
|
|
83
113
|
buttonText: "Diese Details verwenden",
|
|
84
114
|
iconStart: "true",
|
|
85
115
|
iconName: "copy",
|
|
86
|
-
onClick:
|
|
116
|
+
onClick: x
|
|
87
117
|
})
|
|
88
118
|
]),
|
|
89
|
-
|
|
90
|
-
(
|
|
119
|
+
o("div", Z, [
|
|
120
|
+
(f(!0), d(D, null, O(Object.values(n.value), (l) => (f(), d("span", H, c(l), 1))), 256))
|
|
91
121
|
])
|
|
92
122
|
]),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
modelValue:
|
|
96
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
123
|
+
o("div", L, [
|
|
124
|
+
u(k, {
|
|
125
|
+
modelValue: i.value[0]["foaf:name"],
|
|
126
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => p(l, "foaf:name", 1)),
|
|
97
127
|
addOnText: !1,
|
|
98
128
|
datePicker: !1,
|
|
99
129
|
infoIcon: !1,
|
|
@@ -103,20 +133,20 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
|
|
|
103
133
|
initialHintText: !1,
|
|
104
134
|
label: e.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
|
|
105
135
|
showEndIcon: !1,
|
|
106
|
-
showError:
|
|
136
|
+
showError: t.value[1].show
|
|
107
137
|
}, null, 8, ["modelValue", "placeholder", "label", "showError"]),
|
|
108
|
-
|
|
109
|
-
|
|
138
|
+
t.value[1].show ? (f(), d("div", M, [
|
|
139
|
+
u(h(g), {
|
|
110
140
|
size: 16,
|
|
111
141
|
weight: "fill"
|
|
112
142
|
}),
|
|
113
|
-
|
|
114
|
-
])) :
|
|
143
|
+
o("span", j, c(t.value[1].message), 1)
|
|
144
|
+
])) : v("", !0)
|
|
115
145
|
]),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
modelValue:
|
|
119
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
146
|
+
o("div", K, [
|
|
147
|
+
u(k, {
|
|
148
|
+
modelValue: i.value[0]["foaf:mbox"],
|
|
149
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => p(l, "foaf:mbox", 2)),
|
|
120
150
|
addOnText: !1,
|
|
121
151
|
datePicker: !1,
|
|
122
152
|
infoIcon: !1,
|
|
@@ -124,22 +154,22 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
|
|
|
124
154
|
preIcon: !1,
|
|
125
155
|
inputFieldSize: "large",
|
|
126
156
|
initialHintText: !1,
|
|
127
|
-
showError:
|
|
157
|
+
showError: t.value[2].show,
|
|
128
158
|
label: e.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
|
|
129
159
|
showEndIcon: !1
|
|
130
160
|
}, null, 8, ["modelValue", "placeholder", "showError", "label"]),
|
|
131
|
-
|
|
132
|
-
|
|
161
|
+
t.value[2].show ? (f(), d("div", q, [
|
|
162
|
+
u(h(g), {
|
|
133
163
|
size: 16,
|
|
134
164
|
weight: "fill"
|
|
135
165
|
}),
|
|
136
|
-
|
|
137
|
-
])) :
|
|
166
|
+
o("span", G, c(t.value[2].message), 1)
|
|
167
|
+
])) : v("", !0)
|
|
138
168
|
]),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
modelValue:
|
|
142
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
169
|
+
o("div", J, [
|
|
170
|
+
u(k, {
|
|
171
|
+
modelValue: i.value[0]["foaf:homepage"],
|
|
172
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => p(l, "foaf:homepage", 3)),
|
|
143
173
|
addOnText: !0,
|
|
144
174
|
datePicker: !1,
|
|
145
175
|
infoIcon: !1,
|
|
@@ -150,27 +180,27 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
|
|
|
150
180
|
addOnLeadingText: "https://",
|
|
151
181
|
label: e.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
|
|
152
182
|
showEndIcon: !1,
|
|
153
|
-
showError:
|
|
183
|
+
showError: t.value[3].show
|
|
154
184
|
}, null, 8, ["modelValue", "placeholder", "label", "showError"]),
|
|
155
|
-
|
|
156
|
-
|
|
185
|
+
t.value[3].show ? (f(), d("div", Q, [
|
|
186
|
+
u(h(g), {
|
|
157
187
|
size: 16,
|
|
158
188
|
weight: "fill"
|
|
159
189
|
}),
|
|
160
|
-
|
|
161
|
-
])) :
|
|
190
|
+
o("span", X, c(t.value[3].message), 1)
|
|
191
|
+
])) : v("", !0)
|
|
162
192
|
]),
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
193
|
+
o("div", Y, c(e.$t("message.dataupload.datasets.dct:publisher.descriptionBottom")), 1),
|
|
194
|
+
i.value.find((l) => l.isValid === !1) ? (f(), d("div", ee, [
|
|
195
|
+
u(h(g), {
|
|
166
196
|
size: 16,
|
|
167
197
|
weight: "fill"
|
|
168
198
|
}),
|
|
169
|
-
a[4] || (a[4] =
|
|
170
|
-
])) :
|
|
199
|
+
a[4] || (a[4] = o("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
200
|
+
])) : v("", !0)
|
|
171
201
|
]));
|
|
172
202
|
}
|
|
173
|
-
},
|
|
203
|
+
}, ue = /* @__PURE__ */ A(ae, [["__scopeId", "data-v-c2988908"]]);
|
|
174
204
|
export {
|
|
175
|
-
|
|
205
|
+
ue as default
|
|
176
206
|
};
|