@piveau/dpi 0.2.0-alpha.6 → 0.2.0-alpha.7
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/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +5 -5
- 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 +63 -61
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +47 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +33 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +59 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +32 -34
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +10 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +16 -16
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +13 -13
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +934 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +70 -65
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +394 -361
- package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
- package/package.json +5 -2
|
@@ -1,63 +1,72 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { PhLightbulb as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { ref as b, computed as v, createElementBlock as f, openBlock as g, createElementVNode as e, createStaticVNode as p, createVNode as a, unref as l, withCtx as o, createTextVNode as t } from "vue";
|
|
2
|
+
import { FormKit as m } from "@formkit/vue";
|
|
3
|
+
import { PhLightbulb as S } from "@phosphor-icons/vue";
|
|
4
|
+
import k from "../../../components/StepActionsSection.vue.js";
|
|
5
|
+
import y from "../Card.vue.js";
|
|
6
|
+
import _ from "../ListBox/ListBoxDefinition.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import z from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const I = { class: "dpiV3_page V3-typography" }, w = { class: "funny-section" }, V = { class: "funny-flex" }, x = { class: "funny-section" }, N = { class: "funny-section" }, O = {
|
|
10
10
|
__name: "DiscoverabilityStep",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
{ id: "
|
|
14
|
-
{ id: "
|
|
15
|
-
{ id: "
|
|
16
|
-
])
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
setup(P) {
|
|
12
|
+
const r = b([
|
|
13
|
+
{ id: "public", name: "Öffentlich", unavailable: !1 },
|
|
14
|
+
{ id: "restricted", name: "Eingeschränkt", unavailable: !1 },
|
|
15
|
+
{ id: "internal", name: "Intern", unavailable: !1 }
|
|
16
|
+
]), d = v(() => r.value.map((n) => String(n.id))), c = (n) => {
|
|
17
|
+
var i;
|
|
18
|
+
return ((i = r.value.find((s) => String(s.id) === String(n))) == null ? void 0 : i.name) ?? n;
|
|
19
|
+
}, u = (n) => String(n), h = (n) => {
|
|
20
|
+
var i;
|
|
21
|
+
return !!((i = r.value.find((s) => String(s.id) === String(n))) != null && i.unavailable);
|
|
22
|
+
};
|
|
23
|
+
return (n, i) => (g(), f("div", I, [
|
|
24
|
+
e("section", w, [
|
|
25
|
+
e("div", V, [
|
|
26
|
+
i[0] || (i[0] = p('<div data-v-b97995a8><h4 data-v-b97995a8> Legen Sie die Sichtbarkeit Ihres Projekts fest </h4><div class="visibility-description" data-v-b97995a8><span class="copy-large-regular" data-v-b97995a8> Sie können für jedes Projekt individuell entscheiden, wer Ihre Metadaten sehen soll. Wir freuen uns, wenn Sie Ihre Daten möglichst offen teilen, um den Austausch zwischen den Kommunen zu fördern und gemeinsam von Erfahrungen und Lösungen zu profitieren. Gleichzeitig verstehen wir, dass manche Informationen einen geschützten Raum benötigen. Deshalb können Sie zwischen drei Sichtbarkeitsstufen wählen: </span></div><ul class="visibility-variants" data-v-b97995a8><li data-v-b97995a8><div class="variant-content" data-v-b97995a8><p data-v-b97995a8><strong data-v-b97995a8>„öffentlich“</strong> (für alle Nutzer sichtbar) </p></div></li><li data-v-b97995a8><div class="variant-content" data-v-b97995a8><p data-v-b97995a8><strong data-v-b97995a8>„eingeschränkt“</strong> (für alle registrierten Nutzer sichtbar) </p></div></li><li data-v-b97995a8><div class="variant-content" data-v-b97995a8><p data-v-b97995a8><strong data-v-b97995a8>„intern“</strong> (für alle registrierten Nutzer Ihrer Organisation und Nutzer, denen Sie oder Ihre Organisation Sichtrechte erteilt haben, sichtbar) </p></div></li></ul></div>', 1)),
|
|
27
|
+
a(l(m), {
|
|
28
|
+
type: l(_),
|
|
23
29
|
name: "visibility",
|
|
24
30
|
label: "Sichtbarkeit",
|
|
25
31
|
placeholder: "Wählen Sie eine Sichtbarkeit.",
|
|
26
|
-
options:
|
|
32
|
+
options: d.value,
|
|
33
|
+
"option-label": c,
|
|
34
|
+
"option-value": u,
|
|
35
|
+
"option-disabled": h,
|
|
27
36
|
validation: "required"
|
|
28
37
|
}, null, 8, ["type", "options"])
|
|
29
38
|
])
|
|
30
39
|
]),
|
|
31
|
-
e("section",
|
|
32
|
-
|
|
40
|
+
e("section", x, [
|
|
41
|
+
a(k)
|
|
33
42
|
]),
|
|
34
|
-
e("section",
|
|
35
|
-
|
|
36
|
-
icon:
|
|
37
|
-
|
|
43
|
+
e("section", N, [
|
|
44
|
+
a(y, { variant: "default" }, {
|
|
45
|
+
icon: o(() => [
|
|
46
|
+
a(l(S), {
|
|
38
47
|
size: 32,
|
|
39
48
|
color: "#009fe3"
|
|
40
49
|
})
|
|
41
50
|
]),
|
|
42
|
-
title:
|
|
43
|
-
|
|
51
|
+
title: o(() => i[1] || (i[1] = [
|
|
52
|
+
t(" Information ", -1)
|
|
44
53
|
])),
|
|
45
|
-
default:
|
|
54
|
+
default: o(() => [
|
|
46
55
|
i[2] || (i[2] = e("div", { class: "visibility-information" }, [
|
|
47
56
|
e("p", null, [
|
|
48
|
-
|
|
57
|
+
t(" Wenn Sie Ihr Projekt "),
|
|
49
58
|
e("strong", null, "öffentlich"),
|
|
50
|
-
|
|
59
|
+
t(" zugänglich machen, sehen alle Besucher unserer Website alle Metadaten, die Sie hier angeben. ")
|
|
51
60
|
]),
|
|
52
61
|
e("p", null, [
|
|
53
|
-
|
|
62
|
+
t(" Bei einer "),
|
|
54
63
|
e("strong", null, "eingeschränkten"),
|
|
55
|
-
|
|
64
|
+
t(" Veröffentlichung sehen alle registrierten Besucher unserer Website, egal welcher Kommune oder Organisation sie angehören, alle Metadaten, die Sie hier angeben. ")
|
|
56
65
|
]),
|
|
57
66
|
e("p", null, [
|
|
58
|
-
|
|
67
|
+
t(" Für Projekte, die Sie exklusiv mit Ihrer eigenen Organisation teilen möchten, stellen Sie die Sichtbarkeit auf "),
|
|
59
68
|
e("strong", null, "intern"),
|
|
60
|
-
|
|
69
|
+
t(". ")
|
|
61
70
|
]),
|
|
62
71
|
e("p", null, " Ihr Organisations-Admin kann für Projekte mit diesem Sichtstatus zusätzliche Sichtrechte an einzelne Personen anderer Organisationen vergeben, sofern diese registriert sind. "),
|
|
63
72
|
e("p", null, " Sie können nicht nur für Projekte, sondern auch für Datensätze, die Sie über twin.bydata anlegen, die Sichtbarkeit Ihrer Daten (Metadaten und Rohdaten) einschränken. "),
|
|
@@ -70,7 +79,7 @@ const p = { class: "dpiV3_page V3-typography" }, m = { class: "funny-section" },
|
|
|
70
79
|
])
|
|
71
80
|
]));
|
|
72
81
|
}
|
|
73
|
-
},
|
|
82
|
+
}, K = /* @__PURE__ */ z(O, [["__scopeId", "data-v-b97995a8"]]);
|
|
74
83
|
export {
|
|
75
|
-
|
|
84
|
+
K as default
|
|
76
85
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as V, computed as o, createBlock as j, openBlock as K, unref as a } from "vue";
|
|
2
|
+
import P from "../InputField.vue.js";
|
|
3
|
+
const M = /* @__PURE__ */ V({
|
|
4
4
|
__name: "InputFieldFormKit",
|
|
5
5
|
props: {
|
|
6
6
|
context: {}
|
|
7
7
|
},
|
|
8
8
|
setup(_) {
|
|
9
9
|
var c, p, x, u, d, m, f;
|
|
10
|
-
const t = _,
|
|
10
|
+
const t = _, s = o({
|
|
11
11
|
get: () => {
|
|
12
12
|
var e;
|
|
13
13
|
return ((e = t.context) == null ? void 0 : e._value) || "";
|
|
@@ -22,47 +22,51 @@ const $ = /* @__PURE__ */ K({
|
|
|
22
22
|
}), k = o(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return (e = t.context) == null ? void 0 : e.name;
|
|
25
|
-
}),
|
|
25
|
+
}), y = o(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return ((e = t.context) == null ? void 0 : e.placeholder) || "Enter text here";
|
|
28
|
-
}),
|
|
28
|
+
}), b = o(() => {
|
|
29
29
|
var e;
|
|
30
30
|
return ((e = t.context) == null ? void 0 : e.trailing_text) || "$";
|
|
31
|
-
}),
|
|
31
|
+
}), I = o(() => {
|
|
32
32
|
var e;
|
|
33
33
|
return ((e = t.context) == null ? void 0 : e.trailingText) || !1;
|
|
34
|
-
}),
|
|
34
|
+
}), i = o(() => {
|
|
35
35
|
var e;
|
|
36
36
|
return Object.keys((e = t.context) == null ? void 0 : e.messages).length > 0;
|
|
37
|
-
}),
|
|
38
|
-
var n,
|
|
39
|
-
if (!
|
|
37
|
+
}), r = o(() => {
|
|
38
|
+
var n, l, g, h, v;
|
|
39
|
+
if (!i.value)
|
|
40
40
|
return "";
|
|
41
|
-
const e = (
|
|
41
|
+
const e = (l = Object.keys((n = t.context) == null ? void 0 : n.messages)) == null ? void 0 : l[0];
|
|
42
42
|
return ((v = (h = (g = t.context) == null ? void 0 : g.messages) == null ? void 0 : h[e]) == null ? void 0 : v.value) || "";
|
|
43
|
-
}), w = ((c = t.context) == null ? void 0 : c.inputType) || "text", E = ((p = t.context) == null ? void 0 : p.addOnText) || !1, O = ((x = t.context) == null ? void 0 : x.datePicker) || !1
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
}), w = ((c = t.context) == null ? void 0 : c.inputType) || "text", E = ((p = t.context) == null ? void 0 : p.addOnText) || !1, O = ((x = t.context) == null ? void 0 : x.datePicker) || !1;
|
|
44
|
+
(u = t.context) != null && u.infoIcon;
|
|
45
|
+
const B = ((d = t.context) == null ? void 0 : d.preIcon) || !1;
|
|
46
|
+
(m = t.context) == null || m.showEndIcon;
|
|
47
|
+
const F = ((f = t.context) == null ? void 0 : f.tooltipText) || "This is helpful information";
|
|
48
|
+
return (e, n) => (K(), j(P, {
|
|
49
|
+
modelValue: s.value,
|
|
50
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => s.value = l),
|
|
47
51
|
label: T.value,
|
|
48
|
-
placeholder:
|
|
52
|
+
placeholder: y.value,
|
|
49
53
|
"input-type": a(w),
|
|
50
54
|
"add-on-text": a(E),
|
|
51
55
|
"date-picker": a(O),
|
|
52
|
-
"info-icon":
|
|
53
|
-
"pre-icon": a(
|
|
54
|
-
"show-end-icon":
|
|
55
|
-
"tooltip-text": a(
|
|
56
|
-
"show-error":
|
|
57
|
-
"supporting-hint-message":
|
|
58
|
-
"initial-hint-text":
|
|
59
|
-
error_message:
|
|
56
|
+
"info-icon": !1,
|
|
57
|
+
"pre-icon": a(B),
|
|
58
|
+
"show-end-icon": !1,
|
|
59
|
+
"tooltip-text": a(F),
|
|
60
|
+
"show-error": i.value,
|
|
61
|
+
"supporting-hint-message": r.value,
|
|
62
|
+
"initial-hint-text": r.value,
|
|
63
|
+
error_message: r.value,
|
|
60
64
|
name: k.value,
|
|
61
|
-
trailing_text:
|
|
62
|
-
"trailing-text":
|
|
63
|
-
}, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "date-picker", "
|
|
65
|
+
trailing_text: b.value,
|
|
66
|
+
"trailing-text": I.value
|
|
67
|
+
}, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "date-picker", "pre-icon", "tooltip-text", "show-error", "supporting-hint-message", "initial-hint-text", "error_message", "name", "trailing_text", "trailing-text"]));
|
|
64
68
|
}
|
|
65
69
|
});
|
|
66
70
|
export {
|
|
67
|
-
|
|
71
|
+
M as default
|
|
68
72
|
};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import o from "./ListBoxFormKit.vue.js";
|
|
2
|
-
const
|
|
2
|
+
const t = {
|
|
3
3
|
type: "text",
|
|
4
4
|
schema: [],
|
|
5
5
|
component: o,
|
|
6
6
|
props: [
|
|
7
7
|
"label",
|
|
8
8
|
"options",
|
|
9
|
-
"placeholder"
|
|
9
|
+
"placeholder",
|
|
10
|
+
// pass-through customization hooks & flags
|
|
11
|
+
"optionLabel",
|
|
12
|
+
"optionValue",
|
|
13
|
+
"optionDisabled",
|
|
14
|
+
"disabled"
|
|
10
15
|
]
|
|
11
16
|
};
|
|
12
17
|
export {
|
|
13
|
-
|
|
18
|
+
t as default
|
|
14
19
|
};
|
|
@@ -1,54 +1,82 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as n, createBlock as L, openBlock as V } from "vue";
|
|
2
|
+
import _ from "./Listbox.vue.js";
|
|
3
|
+
const j = /* @__PURE__ */ B({
|
|
4
4
|
__name: "ListBoxFormKit",
|
|
5
5
|
props: {
|
|
6
6
|
context: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
8
|
+
setup(p) {
|
|
9
|
+
const t = p, s = n({
|
|
10
10
|
get: () => {
|
|
11
|
-
var
|
|
12
|
-
return ((
|
|
11
|
+
var o;
|
|
12
|
+
return String(((o = t.context) == null ? void 0 : o._value) || "");
|
|
13
13
|
},
|
|
14
|
-
set: (
|
|
15
|
-
var
|
|
16
|
-
(
|
|
14
|
+
set: (o) => {
|
|
15
|
+
var e;
|
|
16
|
+
(e = t.context) == null || e.node.input(o);
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
19
|
-
var
|
|
20
|
-
return String(((
|
|
18
|
+
}), d = n(() => {
|
|
19
|
+
var o;
|
|
20
|
+
return String(((o = t.context) == null ? void 0 : o.label) || "");
|
|
21
21
|
}), m = n(() => {
|
|
22
|
+
var o;
|
|
23
|
+
return String(((o = t.context) == null ? void 0 : o.name) || "");
|
|
24
|
+
}), l = n(() => {
|
|
22
25
|
var e;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return
|
|
26
|
+
const o = ((e = t.context) == null ? void 0 : e.options) || [];
|
|
27
|
+
return Array.isArray(o) ? o : [];
|
|
28
|
+
}), v = n(() => {
|
|
29
|
+
var o;
|
|
30
|
+
return String(((o = t.context) == null ? void 0 : o.placeholder) || "");
|
|
31
|
+
}), b = n(() => {
|
|
32
|
+
var o;
|
|
33
|
+
return Object.keys(((o = t.context) == null ? void 0 : o.messages) || {}).length > 0;
|
|
28
34
|
}), x = n(() => {
|
|
29
|
-
var e;
|
|
30
|
-
|
|
31
|
-
}), d = n(() => {
|
|
32
|
-
var e;
|
|
33
|
-
return Object.keys(((e = o.context) == null ? void 0 : e.messages) || {}).length > 0;
|
|
34
|
-
}), g = n(() => {
|
|
35
|
-
var t, r, a, l, c;
|
|
36
|
-
if (!d.value)
|
|
35
|
+
var e, a, i, u, c;
|
|
36
|
+
if (!b.value)
|
|
37
37
|
return "";
|
|
38
|
-
const
|
|
39
|
-
return String(((c = (
|
|
38
|
+
const o = (a = Object.keys(((e = t.context) == null ? void 0 : e.messages) || {})) == null ? void 0 : a[0];
|
|
39
|
+
return String(((c = (u = (i = t.context) == null ? void 0 : i.messages) == null ? void 0 : u[o]) == null ? void 0 : c.value) || "");
|
|
40
|
+
}), g = n(() => {
|
|
41
|
+
var o;
|
|
42
|
+
return (o = t.context) == null ? void 0 : o.optionLabel;
|
|
43
|
+
}), f = n(() => {
|
|
44
|
+
var o;
|
|
45
|
+
return (o = t.context) == null ? void 0 : o.optionValue;
|
|
46
|
+
}), h = n(() => {
|
|
47
|
+
var o;
|
|
48
|
+
return (o = t.context) == null ? void 0 : o.optionDisabled;
|
|
49
|
+
}), y = n(() => {
|
|
50
|
+
var o;
|
|
51
|
+
return !!((o = t.context) != null && o.disabled);
|
|
52
|
+
}), r = n({
|
|
53
|
+
get: () => {
|
|
54
|
+
const o = s.value;
|
|
55
|
+
return o ? l.value.find((a) => String(a.id) === String(o)) ?? o : "";
|
|
56
|
+
},
|
|
57
|
+
set: (o) => {
|
|
58
|
+
if (typeof o == "string") {
|
|
59
|
+
s.value = o;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
s.value = String((o == null ? void 0 : o.id) ?? "");
|
|
63
|
+
}
|
|
40
64
|
});
|
|
41
|
-
return (
|
|
42
|
-
modelValue:
|
|
43
|
-
"onUpdate:modelValue":
|
|
44
|
-
options:
|
|
45
|
-
label:
|
|
65
|
+
return (o, e) => (V(), L(_, {
|
|
66
|
+
modelValue: r.value,
|
|
67
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => r.value = a),
|
|
68
|
+
options: l.value,
|
|
69
|
+
label: d.value,
|
|
46
70
|
name: m.value,
|
|
47
|
-
"error-message":
|
|
48
|
-
placeholder:
|
|
49
|
-
|
|
71
|
+
"error-message": x.value,
|
|
72
|
+
placeholder: v.value,
|
|
73
|
+
"option-label": g.value,
|
|
74
|
+
"option-value": f.value,
|
|
75
|
+
"option-disabled": h.value,
|
|
76
|
+
disabled: y.value
|
|
77
|
+
}, null, 8, ["modelValue", "options", "label", "name", "error-message", "placeholder", "option-label", "option-value", "option-disabled", "disabled"]));
|
|
50
78
|
}
|
|
51
79
|
});
|
|
52
80
|
export {
|
|
53
|
-
|
|
81
|
+
j as default
|
|
54
82
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Listbox.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-0071f1d0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as h, useModel as B, computed as C, createElementBlock as _, openBlock as
|
|
1
|
+
import { defineComponent as L, mergeModels as h, useModel as B, computed as C, createElementBlock as _, openBlock as r, createVNode as u, unref as a, withCtx as i, normalizeClass as d, createElementVNode as b, createCommentVNode as M, renderSlot as D, createTextVNode as k, toDisplayString as c, createBlock as x, resolveDynamicComponent as S, Fragment as F, renderList as N } from "vue";
|
|
2
2
|
import { Listbox as E, ListboxButton as w, ListboxLabel as z, ListboxOptions as O, ListboxOption as P } from "@headlessui/vue";
|
|
3
3
|
import { PhCaretUp as U, PhCaretDown as q } from "@phosphor-icons/vue";
|
|
4
4
|
const T = { class: "listbox" }, $ = { class: "listbox__input" }, j = { class: "listbox__input-icon" }, I = /* @__PURE__ */ L({
|
|
@@ -9,8 +9,8 @@ const T = { class: "listbox" }, $ = { class: "listbox__input" }, j = { class: "l
|
|
|
9
9
|
errorMessage: { default: "" },
|
|
10
10
|
name: { default: "" },
|
|
11
11
|
placeholder: { default: "" },
|
|
12
|
-
optionLabel: { type: Function, default: (
|
|
13
|
-
optionValue: { type: Function, default: (
|
|
12
|
+
optionLabel: { type: Function, default: (s) => s },
|
|
13
|
+
optionValue: { type: Function, default: (s) => s },
|
|
14
14
|
optionDisabled: { type: Function, default: () => !1 },
|
|
15
15
|
disabled: { type: Boolean }
|
|
16
16
|
}, {
|
|
@@ -18,8 +18,8 @@ const T = { class: "listbox" }, $ = { class: "listbox__input" }, j = { class: "l
|
|
|
18
18
|
modelModifiers: {}
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(
|
|
22
|
-
const l =
|
|
21
|
+
setup(s) {
|
|
22
|
+
const l = s, o = B(s, "modelValue"), f = C(() => !!l.errorMessage);
|
|
23
23
|
function p(e) {
|
|
24
24
|
return e ? typeof e == "string" ? l.optionLabel(e) : String(e.name) || String(e.id) : "";
|
|
25
25
|
}
|
|
@@ -29,27 +29,26 @@ const T = { class: "listbox" }, $ = { class: "listbox__input" }, j = { class: "l
|
|
|
29
29
|
function g(e) {
|
|
30
30
|
return typeof e == "string" ? l.optionDisabled(e) : !!e.unavailable;
|
|
31
31
|
}
|
|
32
|
-
function V(e,
|
|
33
|
-
|
|
34
|
-
const t = v(e), m = v(r);
|
|
32
|
+
function V(e, n) {
|
|
33
|
+
const t = v(e), m = v(n);
|
|
35
34
|
return t === m;
|
|
36
35
|
}
|
|
37
|
-
return (e,
|
|
38
|
-
u(
|
|
36
|
+
return (e, n) => (r(), _("div", T, [
|
|
37
|
+
u(a(E), {
|
|
39
38
|
modelValue: o.value,
|
|
40
|
-
"onUpdate:modelValue":
|
|
39
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => o.value = t),
|
|
41
40
|
name: l.name,
|
|
42
41
|
by: V,
|
|
43
42
|
disabled: l.disabled
|
|
44
43
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
u(
|
|
44
|
+
default: i(() => [
|
|
45
|
+
u(a(w), {
|
|
47
46
|
as: "button",
|
|
48
47
|
class: d(["listbox__button", { "listbox__button--error": f.value, "listbox__button--disabled": l.disabled }])
|
|
49
48
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
u(
|
|
52
|
-
default:
|
|
49
|
+
default: i(({ open: t }) => [
|
|
50
|
+
u(a(z), { as: "div" }, {
|
|
51
|
+
default: i(() => [
|
|
53
52
|
D(e.$slots, "label", {
|
|
54
53
|
label: l.label,
|
|
55
54
|
selected: o.value
|
|
@@ -64,28 +63,28 @@ const T = { class: "listbox" }, $ = { class: "listbox__input" }, j = { class: "l
|
|
|
64
63
|
class: d(["listbox__input-label", { "listbox__input-label--placeholder": !o.value }])
|
|
65
64
|
}, c(p(o.value) || l.placeholder), 3),
|
|
66
65
|
b("div", j, [
|
|
67
|
-
(
|
|
66
|
+
(r(), x(S(t ? a(U) : a(q)), { size: "1.5rem" }))
|
|
68
67
|
])
|
|
69
68
|
]),
|
|
70
|
-
e.errorMessage ? (
|
|
69
|
+
e.errorMessage ? (r(), _("div", {
|
|
71
70
|
key: 0,
|
|
72
71
|
class: d(["listbox__message", { "listbox__message--error": f.value }])
|
|
73
72
|
}, c(e.errorMessage), 3)) : M("", !0)
|
|
74
73
|
]),
|
|
75
74
|
_: 3
|
|
76
75
|
}, 8, ["class"]),
|
|
77
|
-
u(
|
|
76
|
+
u(a(O), {
|
|
78
77
|
class: "listbox__options",
|
|
79
78
|
as: "ul"
|
|
80
79
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
(
|
|
80
|
+
default: i(() => [
|
|
81
|
+
(r(!0), _(F, null, N(e.options, (t) => (r(), x(a(P), {
|
|
83
82
|
key: typeof t == "string" ? t : t.id,
|
|
84
83
|
as: "template",
|
|
85
84
|
value: t,
|
|
86
85
|
disabled: g(t)
|
|
87
86
|
}, {
|
|
88
|
-
default:
|
|
87
|
+
default: i(({ active: m, selected: y }) => [
|
|
89
88
|
b("li", {
|
|
90
89
|
class: d(["listbox__option", { "listbox__option--active": m, "listbox__option--selected": y }])
|
|
91
90
|
}, c(p(t)), 3)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./DatasetStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = /* @__PURE__ */
|
|
3
|
+
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(e, [["__scopeId", "data-v-40ceeeee"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|