@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.
Files changed (44) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +5 -5
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +63 -61
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +47 -38
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +33 -29
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +59 -56
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +1 -1
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +32 -34
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +17 -17
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +10 -10
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +16 -16
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +13 -13
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +934 -0
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +4 -0
  29. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  30. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +70 -65
  31. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
  32. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
  33. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
  34. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
  35. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
  36. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
  37. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
  38. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
  39. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
  40. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
  41. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +394 -361
  42. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
  43. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
  44. package/package.json +5 -2
@@ -1,63 +1,72 @@
1
- import { ref as l, createElementBlock as o, openBlock as d, createElementVNode as e, createStaticVNode as c, createVNode as t, unref as a, withCtx as r, createTextVNode as n } from "vue";
2
- import { FormKit as f } from "@formkit/vue";
3
- import { PhLightbulb as h } from "@phosphor-icons/vue";
4
- import b from "../../../components/StepActionsSection.vue.js";
5
- import u from "../Card.vue.js";
6
- import v from "../ListBox/ListBoxDefinition.js";
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 g from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
9
- const p = { class: "dpiV3_page V3-typography" }, m = { class: "funny-section" }, S = { class: "funny-flex" }, k = { class: "funny-section" }, _ = { class: "funny-section" }, y = {
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(z) {
12
- const s = l([
13
- { id: "1", name: "Öffentlich", unavailable: !1 },
14
- { id: "2", name: "Eingeschränkt", unavailable: !1 },
15
- { id: "3", name: "Intern", unavailable: !1 }
16
- ]);
17
- return (I, i) => (d(), o("div", p, [
18
- e("section", m, [
19
- e("div", S, [
20
- i[0] || (i[0] = c('<div data-v-4f1b28b3><h4 data-v-4f1b28b3> Legen Sie die Sichtbarkeit Ihres Projekts fest </h4><div class="visibility-description" data-v-4f1b28b3><span class="copy-large-regular" data-v-4f1b28b3> 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-4f1b28b3><li data-v-4f1b28b3><div class="variant-content" data-v-4f1b28b3><p data-v-4f1b28b3><strong data-v-4f1b28b3>„öffentlich“</strong> (für alle Nutzer sichtbar) </p></div></li><li data-v-4f1b28b3><div class="variant-content" data-v-4f1b28b3><p data-v-4f1b28b3><strong data-v-4f1b28b3>„eingeschränkt“</strong> (für alle registrierten Nutzer sichtbar) </p></div></li><li data-v-4f1b28b3><div class="variant-content" data-v-4f1b28b3><p data-v-4f1b28b3><strong data-v-4f1b28b3>„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)),
21
- t(a(f), {
22
- type: a(v),
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: s.value,
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", k, [
32
- t(b)
40
+ e("section", x, [
41
+ a(k)
33
42
  ]),
34
- e("section", _, [
35
- t(u, { variant: "default" }, {
36
- icon: r(() => [
37
- t(a(h), {
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: r(() => i[1] || (i[1] = [
43
- n(" Information ", -1)
51
+ title: o(() => i[1] || (i[1] = [
52
+ t(" Information ", -1)
44
53
  ])),
45
- default: r(() => [
54
+ default: o(() => [
46
55
  i[2] || (i[2] = e("div", { class: "visibility-information" }, [
47
56
  e("p", null, [
48
- n(" Wenn Sie Ihr Projekt "),
57
+ t(" Wenn Sie Ihr Projekt "),
49
58
  e("strong", null, "öffentlich"),
50
- n(" zugänglich machen, sehen alle Besucher unserer Website alle Metadaten, die Sie hier angeben. ")
59
+ t(" zugänglich machen, sehen alle Besucher unserer Website alle Metadaten, die Sie hier angeben. ")
51
60
  ]),
52
61
  e("p", null, [
53
- n(" Bei einer "),
62
+ t(" Bei einer "),
54
63
  e("strong", null, "eingeschränkten"),
55
- n(" Veröffentlichung sehen alle registrierten Besucher unserer Website, egal welcher Kommune oder Organisation sie angehören, alle Metadaten, die Sie hier angeben. ")
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
- n(" Für Projekte, die Sie exklusiv mit Ihrer eigenen Organisation teilen möchten, stellen Sie die Sichtbarkeit auf "),
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
- n(". ")
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
- }, B = /* @__PURE__ */ g(y, [["__scopeId", "data-v-4f1b28b3"]]);
82
+ }, K = /* @__PURE__ */ z(O, [["__scopeId", "data-v-b97995a8"]]);
74
83
  export {
75
- B as default
84
+ K as default
76
85
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as K, computed as o, createBlock as P, openBlock as C, unref as a } from "vue";
2
- import L from "../InputField.vue.js";
3
- const $ = /* @__PURE__ */ K({
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 = _, i = o({
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
- }), I = o(() => {
25
+ }), y = o(() => {
26
26
  var e;
27
27
  return ((e = t.context) == null ? void 0 : e.placeholder) || "Enter text here";
28
- }), y = o(() => {
28
+ }), b = o(() => {
29
29
  var e;
30
30
  return ((e = t.context) == null ? void 0 : e.trailing_text) || "$";
31
- }), b = o(() => {
31
+ }), I = o(() => {
32
32
  var e;
33
33
  return ((e = t.context) == null ? void 0 : e.trailingText) || !1;
34
- }), s = o(() => {
34
+ }), i = o(() => {
35
35
  var e;
36
36
  return Object.keys((e = t.context) == null ? void 0 : e.messages).length > 0;
37
- }), l = o(() => {
38
- var n, r, g, h, v;
39
- if (!s.value)
37
+ }), r = o(() => {
38
+ var n, l, g, h, v;
39
+ if (!i.value)
40
40
  return "";
41
- const e = (r = Object.keys((n = t.context) == null ? void 0 : n.messages)) == null ? void 0 : r[0];
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, B = ((u = t.context) == null ? void 0 : u.infoIcon) || !1, F = ((d = t.context) == null ? void 0 : d.preIcon) || !1, V = ((m = t.context) == null ? void 0 : m.showEndIcon) !== !1, j = ((f = t.context) == null ? void 0 : f.tooltipText) || "This is helpful information";
44
- return (e, n) => (C(), P(L, {
45
- modelValue: i.value,
46
- "onUpdate:modelValue": n[0] || (n[0] = (r) => i.value = r),
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: I.value,
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": a(B),
53
- "pre-icon": a(F),
54
- "show-end-icon": V,
55
- "tooltip-text": a(j),
56
- "show-error": s.value,
57
- "supporting-hint-message": l.value,
58
- "initial-hint-text": l.value,
59
- error_message: l.value,
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: y.value,
62
- "trailing-text": b.value
63
- }, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "date-picker", "info-icon", "pre-icon", "tooltip-text", "show-error", "supporting-hint-message", "initial-hint-text", "error_message", "name", "trailing_text", "trailing-text"]));
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
- $ as default
71
+ M as default
68
72
  };
@@ -1,14 +1,19 @@
1
1
  import o from "./ListBoxFormKit.vue.js";
2
- const e = {
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
- e as default
18
+ t as default
14
19
  };
@@ -1,54 +1,82 @@
1
- import { defineComponent as v, computed as n, createBlock as b, openBlock as f } from "vue";
2
- import h from "./Listbox.vue.js";
3
- const k = /* @__PURE__ */ v({
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(u) {
9
- const o = u, s = n({
8
+ setup(p) {
9
+ const t = p, s = n({
10
10
  get: () => {
11
- var e;
12
- return ((e = o.context) == null ? void 0 : e._value) || "";
11
+ var o;
12
+ return String(((o = t.context) == null ? void 0 : o._value) || "");
13
13
  },
14
- set: (e) => {
15
- var t;
16
- (t = o.context) == null || t.node.input(e);
14
+ set: (o) => {
15
+ var e;
16
+ (e = t.context) == null || e.node.input(o);
17
17
  }
18
- }), p = n(() => {
19
- var e;
20
- return String(((e = o.context) == null ? void 0 : e.label) || "");
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
- return String(((e = o.context) == null ? void 0 : e.name) || "");
24
- }), i = n(() => {
25
- var t;
26
- const e = ((t = o.context) == null ? void 0 : t.options) || [];
27
- return Array.isArray(e) ? e : [];
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
- return String(((e = o.context) == null ? void 0 : e.placeholder) || "");
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 e = (r = Object.keys(((t = o.context) == null ? void 0 : t.messages) || {})) == null ? void 0 : r[0];
39
- return String(((c = (l = (a = o.context) == null ? void 0 : a.messages) == null ? void 0 : l[e]) == null ? void 0 : c.value) || "");
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 (e, t) => (f(), b(h, {
42
- modelValue: s.value,
43
- "onUpdate:modelValue": t[0] || (t[0] = (r) => s.value = r),
44
- options: i.value,
45
- label: p.value,
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": g.value,
48
- placeholder: x.value
49
- }, null, 8, ["modelValue", "options", "label", "name", "error-message", "placeholder"]));
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
- k as default
81
+ j as default
54
82
  };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e664b9ea"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0071f1d0"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, mergeModels as h, useModel as B, computed as C, createElementBlock as _, openBlock as i, createVNode as u, unref as s, withCtx as n, 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";
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: (a) => a },
13
- optionValue: { type: Function, default: (a) => a },
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(a) {
22
- const l = a, o = B(a, "modelValue"), f = C(() => !!l.errorMessage);
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, r) {
33
- console.log(e, r);
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, r) => (i(), _("div", T, [
38
- u(s(E), {
36
+ return (e, n) => (r(), _("div", T, [
37
+ u(a(E), {
39
38
  modelValue: o.value,
40
- "onUpdate:modelValue": r[0] || (r[0] = (t) => o.value = t),
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: n(() => [
46
- u(s(w), {
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: n(({ open: t }) => [
51
- u(s(z), { as: "div" }, {
52
- default: n(() => [
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
- (i(), x(S(t ? s(U) : s(q)), { size: "1.5rem" }))
66
+ (r(), x(S(t ? a(U) : a(q)), { size: "1.5rem" }))
68
67
  ])
69
68
  ]),
70
- e.errorMessage ? (i(), _("div", {
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(s(O), {
76
+ u(a(O), {
78
77
  class: "listbox__options",
79
78
  as: "ul"
80
79
  }, {
81
- default: n(() => [
82
- (i(!0), _(F, null, N(e.options, (t) => (i(), x(s(P), {
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: n(({ active: m, selected: y }) => [
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 t from "./DatasetStep.vue2.js";
1
+ import e from "./DatasetStep.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-df1f1d4a"]]);
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
  };