@piveau/dpi 0.2.0-alpha.52 → 0.2.0-alpha.54
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/Organisation.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -44
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +76 -69
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +44 -42
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +3 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +7 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +58 -50
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +23 -22
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +110 -112
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +2 -1
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +2 -1
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +11 -10
- package/package.json +1 -1
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Organisation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d75553ee"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useOrganizationInfo as
|
|
3
|
-
import { useTwinbyUser as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as r, createElementBlock as t, openBlock as s, createElementVNode as a, unref as m, Fragment as f, toDisplayString as l } from "vue";
|
|
2
|
+
import { useOrganizationInfo as k } from "../composables/useOrganizationInfo.js";
|
|
3
|
+
import { useTwinbyUser as y } from "../composables/useTwinbyUser.js";
|
|
4
|
+
const b = { class: "dpiV3_organisation" }, V = { class: "dpiV3_organisationInfo" }, T = { key: 0 }, I = { key: 0 }, O = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "not-available"
|
|
7
|
-
},
|
|
7
|
+
}, E = { class: "dpiV3_organisationData" }, S = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "dpiV3_organisationTitle"
|
|
10
|
-
},
|
|
10
|
+
}, C = ["src"], D = { key: 1 }, F = { class: "info-wrapper" }, L = { class: "dpiV3_organisationTitle" }, w = { key: 0 }, x = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "not-available"
|
|
13
|
-
},
|
|
13
|
+
}, z = { key: 2 }, B = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "not-available"
|
|
16
|
-
},
|
|
16
|
+
}, N = { class: "dpiV3_organisationTitle" }, M = { key: 0 }, P = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "not-available"
|
|
19
|
-
},
|
|
19
|
+
}, A = /* @__PURE__ */ h({
|
|
20
20
|
__name: "Organisation",
|
|
21
|
-
setup(
|
|
22
|
-
const { organization:
|
|
23
|
-
|
|
24
|
-
const { resultEnhanced:
|
|
25
|
-
id:
|
|
26
|
-
authToken:
|
|
21
|
+
setup(U) {
|
|
22
|
+
const { organization: p, authToken: v, startFetchPermissions: u } = y();
|
|
23
|
+
u();
|
|
24
|
+
const { resultEnhanced: n, isLoading: g } = k({
|
|
25
|
+
id: p,
|
|
26
|
+
authToken: v
|
|
27
27
|
}), d = r(
|
|
28
28
|
() => {
|
|
29
|
-
var
|
|
30
|
-
return ((
|
|
29
|
+
var i, e;
|
|
30
|
+
return ((i = n.value) == null ? void 0 : i.title) || ((e = n.value) == null ? void 0 : e.id) || "";
|
|
31
31
|
}
|
|
32
32
|
), c = r(
|
|
33
33
|
() => {
|
|
34
|
-
var
|
|
35
|
-
return ((e = (
|
|
34
|
+
var i, e;
|
|
35
|
+
return ((e = (i = n.value) == null ? void 0 : i.catalogueFavIcon) == null ? void 0 : e[0]) || "";
|
|
36
36
|
}
|
|
37
|
-
),
|
|
38
|
-
var
|
|
39
|
-
return ((e = (
|
|
37
|
+
), o = r(() => {
|
|
38
|
+
var i, e;
|
|
39
|
+
return ((e = (i = n.value) == null ? void 0 : i.publisher) == null ? void 0 : e.address) || {};
|
|
40
40
|
}), _ = r(() => {
|
|
41
|
-
var
|
|
42
|
-
return ((
|
|
41
|
+
var i;
|
|
42
|
+
return ((i = n.value) == null ? void 0 : i.publisher) || {};
|
|
43
43
|
});
|
|
44
|
-
return (
|
|
45
|
-
e[2] || (e[2] =
|
|
46
|
-
e[3] || (e[3] =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
d.value ? (s(), t("p",
|
|
50
|
-
|
|
51
|
-
c.value ? (s(), t("div",
|
|
52
|
-
|
|
44
|
+
return (i, e) => (s(), t("div", b, [
|
|
45
|
+
e[2] || (e[2] = a("h3", { class: "dpiV3_organisationTitle" }, " Ihre Organisation ", -1)),
|
|
46
|
+
e[3] || (e[3] = a("p", { class: "dpiV3_organisationDescription" }, " Wenn Sie die Informationen Ihrer Organisation ändern möchten, kontaktieren Sie uns gerne. ", -1)),
|
|
47
|
+
a("div", V, [
|
|
48
|
+
m(g) ? (s(), t("p", T, "Lade Organisationsdaten...")) : (s(), t(f, { key: 1 }, [
|
|
49
|
+
d.value ? (s(), t("p", I, l(d.value), 1)) : (s(), t("p", O, " Name nicht verfügbar ")),
|
|
50
|
+
a("div", E, [
|
|
51
|
+
c.value ? (s(), t("div", S, [
|
|
52
|
+
a("img", {
|
|
53
53
|
src: c.value,
|
|
54
54
|
alt: ""
|
|
55
|
-
}, null, 8,
|
|
56
|
-
])) : (s(), t("div",
|
|
57
|
-
|
|
55
|
+
}, null, 8, C)
|
|
56
|
+
])) : (s(), t("div", D, e[0] || (e[0] = [
|
|
57
|
+
a("div", { class: "avatar-circle" }, null, -1)
|
|
58
58
|
]))),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
a("div", F, [
|
|
60
|
+
a("div", L, [
|
|
61
|
+
o.value.street ? (s(), t("p", w, l(o.value.street), 1)) : (s(), t("p", x, " Straße nicht verfügbar ")),
|
|
62
|
+
o.value.postalCode || o.value.locality ? (s(), t("p", z, l(o.value.postalCode || "") + " " + l(o.value.locality || ""), 1)) : (s(), t("p", B, " Ort nicht verfügbar "))
|
|
63
63
|
]),
|
|
64
|
-
|
|
65
|
-
e[1] || (e[1] =
|
|
66
|
-
_.value.email ? (s(), t("p",
|
|
64
|
+
a("div", N, [
|
|
65
|
+
e[1] || (e[1] = a("p", { class: "not-available" }, " Telefon nicht verfügbar ", -1)),
|
|
66
|
+
_.value.email ? (s(), t("p", M, l(_.value.email), 1)) : (s(), t("p", P, " E-Mail nicht verfügbar "))
|
|
67
67
|
])
|
|
68
68
|
])
|
|
69
69
|
])
|
|
@@ -73,5 +73,5 @@ const T = { class: "dpiV3_organisation" }, I = { class: "dpiV3_organisationInfo"
|
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
A as default
|
|
77
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Autocomplete.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a3b0d43e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Combobox as
|
|
3
|
-
import {
|
|
4
|
-
const j = { class: "autocomplete" },
|
|
1
|
+
import { defineComponent as x, mergeModels as I, useModel as k, computed as L, createElementBlock as u, openBlock as n, createVNode as i, unref as r, withCtx as c, createElementVNode as d, createBlock as _, createCommentVNode as p, renderSlot as g, createTextVNode as N, toDisplayString as y, normalizeClass as m, resolveDynamicComponent as P, Fragment as M, renderList as z } from "vue";
|
|
2
|
+
import { Combobox as E, ComboboxLabel as F, ComboboxButton as S, ComboboxInput as $, ComboboxOptions as A, ComboboxOption as O } from "@headlessui/vue";
|
|
3
|
+
import { PhMagnifyingGlass as U, PhCaretUp as G, PhCaretDown as K, PhCircleNotch as T } from "@phosphor-icons/vue";
|
|
4
|
+
const j = { class: "autocomplete" }, H = { class: "autocomplete__wrapper" }, J = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "autocomplete__input-icon autocomplete__input-icon--left"
|
|
7
|
+
}, Q = { class: "autocomplete__input-icon" }, R = {
|
|
5
8
|
key: 0,
|
|
6
9
|
class: "autocomplete__loading"
|
|
7
|
-
},
|
|
10
|
+
}, W = {
|
|
8
11
|
key: 0,
|
|
9
12
|
class: "autocomplete__no-results"
|
|
10
|
-
},
|
|
13
|
+
}, ee = /* @__PURE__ */ x({
|
|
11
14
|
__name: "Autocomplete",
|
|
12
|
-
props: /* @__PURE__ */
|
|
15
|
+
props: /* @__PURE__ */ I({
|
|
13
16
|
options: {},
|
|
14
17
|
label: { default: "" },
|
|
15
18
|
errorMessage: { default: "" },
|
|
16
19
|
placeholder: { default: "" },
|
|
17
20
|
name: { default: "" },
|
|
18
21
|
loading: { type: Boolean, default: !1 },
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
searchIcon: { type: Boolean, default: !1 },
|
|
23
|
+
optionLabel: { type: Function, default: (s) => s },
|
|
24
|
+
optionValue: { type: Function, default: (s) => s },
|
|
21
25
|
optionDisabled: { type: Function, default: () => !1 }
|
|
22
26
|
}, {
|
|
23
27
|
modelValue: { required: !0 },
|
|
@@ -26,121 +30,124 @@ const j = { class: "autocomplete" }, G = { class: "autocomplete__wrapper" }, H =
|
|
|
26
30
|
queryModifiers: {}
|
|
27
31
|
}),
|
|
28
32
|
emits: ["update:modelValue", "update:query"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
33
|
+
setup(s) {
|
|
34
|
+
const o = s, f = k(s, "modelValue"), b = k(s, "query"), v = L(() => !!o.errorMessage);
|
|
31
35
|
function B(e) {
|
|
32
36
|
e.open && e.event.stopPropagation();
|
|
33
37
|
}
|
|
34
38
|
function D(e) {
|
|
35
|
-
return typeof e == "string" ?
|
|
39
|
+
return typeof e == "string" ? o.optionLabel(e) : e.name || String(e.id);
|
|
36
40
|
}
|
|
37
|
-
function
|
|
38
|
-
return typeof e == "string" ?
|
|
41
|
+
function h(e) {
|
|
42
|
+
return typeof e == "string" ? o.optionValue(e) : String(e.id);
|
|
39
43
|
}
|
|
40
|
-
function
|
|
41
|
-
return typeof e == "string" ?
|
|
44
|
+
function C(e) {
|
|
45
|
+
return typeof e == "string" ? o.optionDisabled(e) : !!e.unavailable;
|
|
42
46
|
}
|
|
43
|
-
function q(e,
|
|
44
|
-
if (!e || !
|
|
47
|
+
function q(e, l) {
|
|
48
|
+
if (!e || !l)
|
|
45
49
|
return !1;
|
|
46
|
-
if (e ===
|
|
50
|
+
if (e === l)
|
|
47
51
|
return !0;
|
|
48
|
-
if (typeof e == "string" && typeof
|
|
49
|
-
return e ===
|
|
50
|
-
const t =
|
|
52
|
+
if (typeof e == "string" && typeof l == "string")
|
|
53
|
+
return e === l;
|
|
54
|
+
const t = h(e), a = h(l);
|
|
51
55
|
return t === a;
|
|
52
56
|
}
|
|
53
|
-
function
|
|
57
|
+
function w(e) {
|
|
54
58
|
return !e || typeof e == "string" ? "" : e.name || "";
|
|
55
59
|
}
|
|
56
|
-
return (e,
|
|
57
|
-
i(
|
|
58
|
-
modelValue:
|
|
59
|
-
"onUpdate:modelValue":
|
|
60
|
-
name:
|
|
60
|
+
return (e, l) => (n(), u("div", j, [
|
|
61
|
+
i(r(E), {
|
|
62
|
+
modelValue: f.value,
|
|
63
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => f.value = t),
|
|
64
|
+
name: o.name,
|
|
61
65
|
by: q,
|
|
62
66
|
nullable: ""
|
|
63
67
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
default: c(() => [
|
|
69
|
+
d("div", H, [
|
|
70
|
+
o.label ? (n(), _(r(F), {
|
|
67
71
|
key: 0,
|
|
68
72
|
class: "autocomplete__label",
|
|
69
73
|
as: "div"
|
|
70
74
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
label:
|
|
74
|
-
selected:
|
|
75
|
+
default: c(() => [
|
|
76
|
+
g(e.$slots, "label", {
|
|
77
|
+
label: o.label,
|
|
78
|
+
selected: f.value
|
|
75
79
|
}, () => [
|
|
76
|
-
|
|
80
|
+
N(y(o.label), 1)
|
|
77
81
|
], !0)
|
|
78
82
|
]),
|
|
79
83
|
_: 3
|
|
80
|
-
})) :
|
|
81
|
-
|
|
82
|
-
class:
|
|
84
|
+
})) : p("", !0),
|
|
85
|
+
d("div", {
|
|
86
|
+
class: m(["autocomplete__input-container", { "autocomplete__input-container--error": v.value }])
|
|
83
87
|
}, [
|
|
84
|
-
i(
|
|
88
|
+
i(r(S), {
|
|
85
89
|
as: "div",
|
|
86
90
|
class: "autocomplete__input-wrapper"
|
|
87
91
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
default: c(({ open: t }) => [
|
|
93
|
+
o.searchIcon ? (n(), u("div", J, [
|
|
94
|
+
i(r(U), { size: "1.5rem" })
|
|
95
|
+
])) : p("", !0),
|
|
96
|
+
i(r($), {
|
|
97
|
+
class: m(["autocomplete__input", { "autocomplete__input--with-left-icon": o.searchIcon }]),
|
|
98
|
+
"display-value": (a) => w(a),
|
|
99
|
+
placeholder: o.placeholder,
|
|
100
|
+
onChange: l[0] || (l[0] = (a) => b.value = a.target.value),
|
|
94
101
|
onClick: (a) => B({ event: a, open: t })
|
|
95
|
-
}, null, 8, ["display-value", "placeholder", "onClick"]),
|
|
96
|
-
|
|
97
|
-
(
|
|
102
|
+
}, null, 8, ["class", "display-value", "placeholder", "onClick"]),
|
|
103
|
+
d("div", Q, [
|
|
104
|
+
(n(), _(P(t ? r(G) : r(K)), { size: "1.5rem" }))
|
|
98
105
|
])
|
|
99
106
|
]),
|
|
100
107
|
_: 1
|
|
101
108
|
})
|
|
102
109
|
], 2),
|
|
103
|
-
e.errorMessage ? (
|
|
110
|
+
e.errorMessage ? (n(), u("div", {
|
|
104
111
|
key: 1,
|
|
105
|
-
class:
|
|
106
|
-
},
|
|
112
|
+
class: m(["autocomplete__message", { "autocomplete__message--error": v.value }])
|
|
113
|
+
}, y(e.errorMessage), 3)) : p("", !0)
|
|
107
114
|
]),
|
|
108
|
-
i(
|
|
115
|
+
i(r(A), {
|
|
109
116
|
class: "autocomplete__options",
|
|
110
117
|
as: "ul"
|
|
111
118
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
i(
|
|
119
|
+
default: c(() => [
|
|
120
|
+
o.loading ? (n(), u("div", R, [
|
|
121
|
+
g(e.$slots, "loading", {}, () => [
|
|
122
|
+
i(r(T), {
|
|
116
123
|
size: "24px",
|
|
117
124
|
color: "#0172AD",
|
|
118
125
|
weight: "bold",
|
|
119
126
|
class: "autocomplete__loading-spinner"
|
|
120
127
|
})
|
|
121
128
|
], !0)
|
|
122
|
-
])) : (
|
|
123
|
-
(
|
|
129
|
+
])) : (n(), u(M, { key: 1 }, [
|
|
130
|
+
(n(!0), u(M, null, z(o.options, (t) => (n(), _(r(O), {
|
|
124
131
|
key: typeof t == "string" ? t : t.id,
|
|
125
132
|
as: "template",
|
|
126
133
|
value: t,
|
|
127
|
-
disabled:
|
|
134
|
+
disabled: C(t)
|
|
128
135
|
}, {
|
|
129
|
-
default:
|
|
130
|
-
|
|
136
|
+
default: c(({ active: a, selected: V }) => [
|
|
137
|
+
g(e.$slots, "option", {
|
|
131
138
|
option: t,
|
|
132
139
|
active: a,
|
|
133
|
-
selected:
|
|
134
|
-
disabled:
|
|
140
|
+
selected: V,
|
|
141
|
+
disabled: C(t)
|
|
135
142
|
}, () => [
|
|
136
|
-
|
|
137
|
-
class:
|
|
138
|
-
},
|
|
143
|
+
d("li", {
|
|
144
|
+
class: m(["autocomplete__option", { "autocomplete__option--active": a, "autocomplete__option--selected": V }])
|
|
145
|
+
}, y(D(t)), 3)
|
|
139
146
|
], !0)
|
|
140
147
|
]),
|
|
141
148
|
_: 2
|
|
142
149
|
}, 1032, ["value", "disabled"]))), 128)),
|
|
143
|
-
|
|
150
|
+
o.options.length === 0 && b.value !== "" ? (n(), u("div", W, " Keine Ergebnisse gefunden. ")) : p("", !0)
|
|
144
151
|
], 64))
|
|
145
152
|
]),
|
|
146
153
|
_: 3
|
|
@@ -152,5 +159,5 @@ const j = { class: "autocomplete" }, G = { class: "autocomplete__wrapper" }, H =
|
|
|
152
159
|
}
|
|
153
160
|
});
|
|
154
161
|
export {
|
|
155
|
-
|
|
162
|
+
ee as default
|
|
156
163
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AutocompleteVocab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f30a37c8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as W, mergeModels as
|
|
2
|
-
import { PhSpinner as
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import { useDebounce as
|
|
1
|
+
import { defineComponent as W, mergeModels as B, computed as a, ref as F, toRef as X, useModel as Y, watch as P, createBlock as R, openBlock as k, unref as v, createSlots as Z, withCtx as I, createElementVNode as w, createTextVNode as ee, createCommentVNode as re, toDisplayString as oe, renderSlot as ae } from "vue";
|
|
2
|
+
import { PhSpinner as te } from "@phosphor-icons/vue";
|
|
3
|
+
import { defineHubSearch as le } from "@piveau/sdk-vue";
|
|
4
|
+
import { useDebounce as p } from "@vueuse/core";
|
|
5
5
|
import se from "zod";
|
|
6
6
|
import ue from "./Autocomplete.vue.js";
|
|
7
|
-
const ne = { class: "autocomplete-vocab__label" },
|
|
7
|
+
const ne = { class: "autocomplete-vocab__label" }, be = /* @__PURE__ */ W({
|
|
8
8
|
__name: "AutocompleteVocab",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ B({
|
|
10
10
|
by: { default: "" },
|
|
11
11
|
baseUrl: { default: "https://twin.bydata.de/api/hub/search" },
|
|
12
12
|
vocabulary: {},
|
|
@@ -20,27 +20,28 @@ const ne = { class: "autocomplete-vocab__label" }, pe = /* @__PURE__ */ W({
|
|
|
20
20
|
isAutocompleteDisabled: { type: Boolean, default: !1 },
|
|
21
21
|
postProcessFn: {},
|
|
22
22
|
sort: { default: "title.de+asc,name.de+asc,pref_label.de+asc,pref_label.en+asc,alt_label.de+asc,alt_label.en+asc" },
|
|
23
|
-
authToken: { default: "" }
|
|
23
|
+
authToken: { default: "" },
|
|
24
|
+
searchIcon: { type: Boolean, default: !1 }
|
|
24
25
|
}, {
|
|
25
26
|
modelValue: { default: "" },
|
|
26
27
|
modelModifiers: {}
|
|
27
28
|
}),
|
|
28
|
-
emits: /* @__PURE__ */
|
|
29
|
-
setup(
|
|
30
|
-
const r =
|
|
29
|
+
emits: /* @__PURE__ */ B(["select"], ["update:modelValue"]),
|
|
30
|
+
setup(b, { emit: M }) {
|
|
31
|
+
const r = b, A = M, u = a(() => !!r.vocabulary), m = a(() => r.by || u.value ? "vocabulary" : "resource"), D = a(() => r.resource === "dataset" ? "dataset" : u.value ? "vocabulary" : m.value), T = a(() => r.resource === "dataset" ? "datasets" : u.value ? "vocabularies" : m.value === "resource" ? `resources/${r.resource}` : "vocabularies"), U = a(() => !r.isAutocompleteDisabled && !!(r.resource || r.vocabulary)), { useSearch: $, useResource: E } = le({
|
|
31
32
|
baseUrl: r.baseUrl,
|
|
32
|
-
index:
|
|
33
|
+
index: D.value,
|
|
33
34
|
indexDetails: T.value,
|
|
34
35
|
schema: se.any()
|
|
35
36
|
}, (e) => {
|
|
36
37
|
var d, V, _;
|
|
37
|
-
const o = (d = r.setupFn) == null ? void 0 : d.call(r, e),
|
|
38
|
+
const o = (d = r.setupFn) == null ? void 0 : d.call(r, e), l = String((o == null ? void 0 : o.id) || (e == null ? void 0 : e.resource) || ""), n = String((o == null ? void 0 : o.name) || ((V = e == null ? void 0 : e.pref_label) == null ? void 0 : V.de) || ((_ = e == null ? void 0 : e.pref_label) == null ? void 0 : _.en) || "");
|
|
38
39
|
return {
|
|
39
40
|
...o,
|
|
40
|
-
id:
|
|
41
|
+
id: l,
|
|
41
42
|
name: n
|
|
42
43
|
};
|
|
43
|
-
}), f =
|
|
44
|
+
}), f = F(""), L = p(f, 300), z = a(() => r.vocabulary), C = a(() => ({
|
|
44
45
|
...r.authToken && { Authorization: `Bearer ${r.authToken}` }
|
|
45
46
|
})), { getSearchResultsEnhanced: N, isFetching: O } = $({
|
|
46
47
|
queryOptions: {
|
|
@@ -52,25 +53,25 @@ const ne = { class: "autocomplete-vocab__label" }, pe = /* @__PURE__ */ W({
|
|
|
52
53
|
// ...vocabularyRef.value
|
|
53
54
|
// ? { vocabulary: vocabularyRef }
|
|
54
55
|
// : { resource: props.resource },
|
|
55
|
-
vocabulary:
|
|
56
|
+
vocabulary: a(() => u.value ? z.value : ""),
|
|
56
57
|
// resource: computed(() => props.resource || ''),
|
|
57
58
|
sort: X(r.sort)
|
|
58
59
|
},
|
|
59
|
-
additionalParams:
|
|
60
|
+
additionalParams: a(() => ({
|
|
60
61
|
resource: m.value === "resource" ? r.resource : ""
|
|
61
62
|
})),
|
|
62
63
|
headers: C
|
|
63
|
-
}), x =
|
|
64
|
+
}), x = a(() => {
|
|
64
65
|
let e = N.value || [];
|
|
65
66
|
return r.postProcessFn && (e = r.postProcessFn(e)), e;
|
|
66
|
-
}),
|
|
67
|
+
}), t = Y(b, "modelValue"), y = a(() => !(!t.value || typeof t.value == "string")), j = a(() => typeof t.value == "string");
|
|
67
68
|
function i(e) {
|
|
68
69
|
return String(e ?? "").trim();
|
|
69
70
|
}
|
|
70
|
-
const c =
|
|
71
|
+
const c = a(() => {
|
|
71
72
|
var e;
|
|
72
|
-
return typeof
|
|
73
|
-
}), h =
|
|
73
|
+
return typeof t.value == "string" ? i(t.value) : i((e = t.value) == null ? void 0 : e.id);
|
|
74
|
+
}), h = a(() => j.value && !!c.value), H = a(() => h.value ? u.value ? `${r.vocabulary}/vocable` : c.value : ""), Q = a(() => u.value ? { resource: c.value } : {}), {
|
|
74
75
|
resultEnhanced: G,
|
|
75
76
|
isSuccess: ie,
|
|
76
77
|
isFetching: J
|
|
@@ -79,48 +80,49 @@ const ne = { class: "autocomplete-vocab__label" }, pe = /* @__PURE__ */ W({
|
|
|
79
80
|
queryOptions: {
|
|
80
81
|
enabled: h
|
|
81
82
|
}
|
|
82
|
-
}), g =
|
|
83
|
+
}), g = p(J, 350), K = p(O, 350), s = F(), S = a({
|
|
83
84
|
get: () => {
|
|
84
|
-
var
|
|
85
|
+
var l, n;
|
|
85
86
|
const e = c.value;
|
|
86
87
|
if (!e)
|
|
87
88
|
return { id: "", name: "" };
|
|
88
|
-
const o = typeof
|
|
89
|
+
const o = typeof t.value == "object" && t.value !== null ? t.value.name : i((l = s.value) == null ? void 0 : l.id) === e ? ((n = s.value) == null ? void 0 : n.name) ?? "" : "";
|
|
89
90
|
return { id: e, name: o };
|
|
90
91
|
},
|
|
91
92
|
set: (e) => {
|
|
92
93
|
if (!e) {
|
|
93
|
-
s.value = void 0,
|
|
94
|
+
s.value = void 0, t.value = "";
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
97
|
if (typeof e == "string") {
|
|
97
|
-
s.value = void 0,
|
|
98
|
+
s.value = void 0, t.value = e.trim();
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
|
-
s.value = e,
|
|
101
|
+
s.value = e, t.value = i(e.id);
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
|
-
return
|
|
104
|
-
e && (o && o.id === e.id || (s.value = e, y.value && (
|
|
105
|
-
}, { immediate: !0 }),
|
|
106
|
-
e &&
|
|
107
|
-
}, { immediate: !0 }), (e, o) => (
|
|
104
|
+
return P(G, (e, o) => {
|
|
105
|
+
e && (o && o.id === e.id || (s.value = e, y.value && (t.value = e), y.value || (t.value = i(e.id))));
|
|
106
|
+
}, { immediate: !0 }), P(s, (e) => {
|
|
107
|
+
e && A("select", e);
|
|
108
|
+
}, { immediate: !0 }), (e, o) => (k(), R(ue, {
|
|
108
109
|
modelValue: S.value,
|
|
109
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
110
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => S.value = l),
|
|
110
111
|
query: f.value,
|
|
111
|
-
"onUpdate:query": o[1] || (o[1] = (
|
|
112
|
+
"onUpdate:query": o[1] || (o[1] = (l) => f.value = l),
|
|
112
113
|
options: x.value || [],
|
|
113
114
|
label: e.label,
|
|
114
115
|
"error-message": e.errorMessage,
|
|
115
116
|
placeholder: e.placeholder,
|
|
116
117
|
name: e.name,
|
|
117
118
|
disabled: v(g) || r.disabled,
|
|
118
|
-
loading: v(K)
|
|
119
|
+
loading: v(K),
|
|
120
|
+
"search-icon": r.searchIcon
|
|
119
121
|
}, Z({
|
|
120
|
-
label:
|
|
122
|
+
label: I(() => [
|
|
121
123
|
w("div", ne, [
|
|
122
124
|
ee(oe(e.label) + " ", 1),
|
|
123
|
-
v(g) ? (
|
|
125
|
+
v(g) ? (k(), R(v(te), {
|
|
124
126
|
key: 0,
|
|
125
127
|
class: "animate-spin"
|
|
126
128
|
})) : re("", !0)
|
|
@@ -130,9 +132,9 @@ const ne = { class: "autocomplete-vocab__label" }, pe = /* @__PURE__ */ W({
|
|
|
130
132
|
}, [
|
|
131
133
|
e.$slots.option ? {
|
|
132
134
|
name: "option",
|
|
133
|
-
fn:
|
|
134
|
-
|
|
135
|
-
option:
|
|
135
|
+
fn: I(({ option: l, active: n, selected: q, disabled: d }) => [
|
|
136
|
+
ae(e.$slots, "option", {
|
|
137
|
+
option: l,
|
|
136
138
|
active: n,
|
|
137
139
|
selected: q,
|
|
138
140
|
disabled: d
|
|
@@ -140,9 +142,9 @@ const ne = { class: "autocomplete-vocab__label" }, pe = /* @__PURE__ */ W({
|
|
|
140
142
|
]),
|
|
141
143
|
key: "0"
|
|
142
144
|
} : void 0
|
|
143
|
-
]), 1032, ["modelValue", "query", "options", "label", "error-message", "placeholder", "name", "disabled", "loading"]));
|
|
145
|
+
]), 1032, ["modelValue", "query", "options", "label", "error-message", "placeholder", "name", "disabled", "loading", "search-icon"]));
|
|
144
146
|
}
|
|
145
147
|
});
|
|
146
148
|
export {
|
|
147
|
-
|
|
149
|
+
be as default
|
|
148
150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "./InputFieldFormKit.vue.js";
|
|
2
|
-
const
|
|
2
|
+
const i = {
|
|
3
3
|
type: "input",
|
|
4
4
|
schema: [],
|
|
5
5
|
component: t,
|
|
@@ -7,6 +7,7 @@ const e = {
|
|
|
7
7
|
"inputType",
|
|
8
8
|
"addOnText",
|
|
9
9
|
"datePicker",
|
|
10
|
+
"date-picker",
|
|
10
11
|
"infoIcon",
|
|
11
12
|
"preIcon",
|
|
12
13
|
"showEndIcon",
|
|
@@ -21,5 +22,5 @@ const e = {
|
|
|
21
22
|
]
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
i as default
|
|
25
26
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js
CHANGED
|
@@ -485,7 +485,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
|
|
|
485
485
|
])) : o("", !0)
|
|
486
486
|
]));
|
|
487
487
|
}
|
|
488
|
-
}, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-
|
|
488
|
+
}, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-3dd4351a"]]);
|
|
489
489
|
export {
|
|
490
490
|
Oe as default
|
|
491
491
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./OptionalDataStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(a, [["__scopeId", "data-v-a28ea0fa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|