@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
@@ -0,0 +1,4 @@
1
+ import f from "./ReviewStep.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./StepActionsSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-74ea6547"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b1aabda"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as P, inject as B, ref as p, watch as z, toRef as E, computed as F, createElementBlock as c, openBlock as r, createElementVNode as d, createBlock as M, createCommentVNode as _, renderSlot as g, createVNode as i, normalizeStyle as I, withDirectives as x, vShow as y, withCtx as f, Fragment as A, renderList as D, toDisplayString as L, createTextVNode as R, unref as $, nextTick as K } from "vue";
2
- import { getNode as W, isNode as j } from "@formkit/core";
3
- import { getValidationMessages as J } from "@formkit/validation";
4
- import { PhExclamationMark as O } from "@phosphor-icons/vue";
5
- import { useFormValues as Z } from "../composables/useDpiFormValues.js";
6
- import v from "../HappyFlowComponents/ui/ButtonV3.vue.js";
7
- import q from "../HappyFlowComponents/ui/Card.vue.js";
8
- import { dpiStepperKey as G } from "../utils/injectionKeys.js";
9
- const H = { class: "step-actions-container" }, Q = { class: "step-actions" }, U = { class: "step-actions__prev-and-next" }, X = { class: "validation-errors" }, le = /* @__PURE__ */ P({
1
+ import { defineComponent as z, inject as E, ref as d, watch as D, toRef as M, computed as A, createElementBlock as f, openBlock as r, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as L, withDirectives as y, vShow as C, withCtx as m, Fragment as R, renderList as _, toDisplayString as K, createTextVNode as $, unref as j, nextTick as U } from "vue";
2
+ import { getNode as W, isNode as Z } from "@formkit/core";
3
+ import { getValidationMessages as q } from "@formkit/validation";
4
+ import { PhExclamationMark as G } from "@phosphor-icons/vue";
5
+ import h from "../HappyFlowComponents/ui/ButtonV3.vue.js";
6
+ import H from "../HappyFlowComponents/ui/Card.vue.js";
7
+ import { dpiStepperKey as J } from "../utils/injectionKeys.js";
8
+ import O from "./TheCancelConfirmationDialog.vue.js";
9
+ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y = { class: "step-actions__prev-and-next" }, ee = { class: "validation-errors" }, ce = /* @__PURE__ */ z({
10
10
  __name: "StepActionsSection",
11
11
  props: {
12
12
  hideCancel: { type: Boolean, default: !1 },
@@ -18,123 +18,128 @@ const H = { class: "step-actions-container" }, Q = { class: "step-actions" }, U
18
18
  nextText: { default: "Weiter" },
19
19
  nextVariant: { default: "primary" }
20
20
  },
21
- setup(Y) {
22
- const { formValues: C } = Z(), e = B(G);
21
+ emits: ["submit"],
22
+ setup(te, { emit: V }) {
23
+ const S = V, e = E(J);
23
24
  e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
24
- function S(t) {
25
+ function T(t) {
25
26
  return t !== void 0;
26
27
  }
27
- const s = p(!1), a = p([]);
28
- function V(t) {
28
+ const l = d(!1), s = d(!1), a = d([]);
29
+ function N(t) {
29
30
  if (!t)
30
31
  return;
31
- const n = J(t);
32
- !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, k]) => k.map((w) => String(w.value))));
32
+ const o = q(t);
33
+ !o || o.size === 0 || (a.value = [...o.entries()].flatMap(([n, P]) => P.map((w) => String(w.value))));
33
34
  }
34
- e && z(e.activeStep, () => {
35
+ e && D(e.activeStep, () => {
35
36
  a.value.splice(0, a.value.length), s.value = !1;
36
37
  });
37
- const N = E(e == null ? void 0 : e.steps);
38
- function m(t) {
39
- var o;
40
- const n = (o = N.value) == null ? void 0 : o[t];
41
- return n ? n.valid : !1;
38
+ const b = M(e == null ? void 0 : e.steps);
39
+ function p(t) {
40
+ var n;
41
+ const o = (n = b.value) == null ? void 0 : n[t];
42
+ return o ? o.valid : !1;
42
43
  }
43
- function T() {
44
- m((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
44
+ function k() {
45
+ p((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
45
46
  }
46
- function h() {
47
- window.alert("WIP");
47
+ function g() {
48
+ l.value = !0;
48
49
  }
49
- function l() {
50
+ function u() {
50
51
  e == null || e.goToPreviousStep();
51
52
  }
52
- const b = F(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
53
- async function u() {
54
- if (!S(e))
53
+ const B = A(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
54
+ async function c() {
55
+ if (!T(e))
55
56
  return;
56
- e.triggerValidationCurrentStep(), await K();
57
- const t = b.value;
58
- if (t ? !m((e == null ? void 0 : e.activeStep.value) || "") : !1) {
59
- if (!j(t)) {
57
+ e.triggerValidationCurrentStep(), await U();
58
+ const t = B.value;
59
+ if (t ? !p((e == null ? void 0 : e.activeStep.value) || "") : !1) {
60
+ if (!Z(t)) {
60
61
  console.error("Current step node is not a FormKitNode", t);
61
62
  return;
62
63
  }
63
- V(t), s.value = !0;
64
+ N(t), s.value = !0;
64
65
  }
65
- e != null && e.isLast.value ? window.alert(`Form submitted: ${JSON.stringify(C.value, null, 2)}`) : T();
66
+ e != null && e.isLast.value ? S("submit") : k();
66
67
  }
67
- return (t, n) => (r(), c("div", H, [
68
- d("div", Q, [
69
- g(t.$slots, "default", {
70
- handleCancel: h,
71
- handlePrevious: l,
72
- handleSubmit: u
68
+ return (t, o) => (r(), f("div", Q, [
69
+ v("div", X, [
70
+ x(t.$slots, "default", {
71
+ handleCancel: g,
72
+ handlePrevious: u,
73
+ handleSubmit: c
73
74
  }, () => [
74
- i(v, {
75
- style: I({ opacity: t.hideCancel ? 0 : 1 }),
75
+ i(h, {
76
+ style: L({ opacity: t.hideCancel ? 0 : 1 }),
76
77
  variant: "tertiary",
77
78
  size: "large",
78
79
  type: "button",
79
80
  "button-text": t.cancelText,
80
- onClick: h
81
+ onClick: g
81
82
  }, null, 8, ["style", "button-text"]),
82
- d("div", U, [
83
- g(t.$slots, "prev-and-next", {
83
+ v("div", Y, [
84
+ x(t.$slots, "prev-and-next", {
84
85
  hidePrevious: t.hidePrevious,
85
86
  hideNext: t.hideNext,
86
87
  previousText: t.previousText,
87
88
  nextText: t.nextText,
88
- handlePrevious: l,
89
- handleSubmit: u
89
+ handlePrevious: u,
90
+ handleSubmit: c
90
91
  }, () => [
91
- x(i(v, {
92
+ y(i(h, {
92
93
  variant: "secondary",
93
94
  size: "large",
94
95
  type: "button",
95
96
  "button-text": t.previousText,
96
97
  "icon-start": "CaretLeft",
97
- onClick: l
98
+ onClick: u
98
99
  }, null, 8, ["button-text"]), [
99
- [y, !t.hidePrevious]
100
+ [C, !t.hidePrevious]
100
101
  ]),
101
- x(i(v, {
102
+ y(i(h, {
102
103
  size: "large",
103
104
  variant: t.nextVariant,
104
105
  type: "button",
105
106
  "button-text": t.nextText,
106
107
  "icon-end": "CaretRight",
107
- onClick: u
108
+ onClick: c
108
109
  }, null, 8, ["variant", "button-text"]), [
109
- [y, !t.hideNext]
110
+ [C, !t.hideNext]
110
111
  ])
111
112
  ], !0)
112
113
  ])
113
114
  ], !0)
114
115
  ]),
115
- s.value && a.value.length ? (r(), M(q, {
116
+ s.value && a.value.length ? (r(), F(H, {
116
117
  key: 0,
117
118
  variant: "error"
118
119
  }, {
119
- icon: f(() => [
120
- i($(O), {
120
+ icon: m(() => [
121
+ i(j(G), {
121
122
  size: 32,
122
123
  color: "currentColor"
123
124
  })
124
125
  ]),
125
- title: f(() => n[0] || (n[0] = [
126
- R(" Bitte korrigieren Sie die folgenden Fehler ", -1)
126
+ title: m(() => o[1] || (o[1] = [
127
+ $(" Bitte korrigieren Sie die folgenden Fehler ", -1)
127
128
  ])),
128
- default: f(() => [
129
- d("ul", X, [
130
- (r(!0), c(A, null, D(a.value, (o) => (r(), c("li", { key: o }, L(o), 1))), 128))
129
+ default: m(() => [
130
+ v("ul", ee, [
131
+ (r(!0), f(R, null, _(a.value, (n) => (r(), f("li", { key: n }, K(n), 1))), 128))
131
132
  ])
132
133
  ]),
133
134
  _: 1
134
- })) : _("", !0)
135
+ })) : I("", !0),
136
+ i(O, {
137
+ modelValue: l.value,
138
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n)
139
+ }, null, 8, ["modelValue"])
135
140
  ]));
136
141
  }
137
142
  });
138
143
  export {
139
- le as default
144
+ ce as default
140
145
  };
@@ -0,0 +1,7 @@
1
+ import o from "./TheCancelConfirmationDialog.vue2.js";
2
+ /* empty css */
3
+ import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f89364fa"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as u, mergeModels as s, useModel as p, createBlock as f, openBlock as v, withCtx as t, createElementVNode as i, createVNode as a } from "vue";
2
+ import r from "../HappyFlowComponents/ui/ButtonV3.vue.js";
3
+ import V from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
4
+ const k = /* @__PURE__ */ u({
5
+ __name: "TheCancelConfirmationDialog",
6
+ props: {
7
+ modelValue: { type: Boolean },
8
+ modelModifiers: {}
9
+ },
10
+ emits: /* @__PURE__ */ s(["closeWithoutSaving", "closeWithSaving"], ["update:modelValue"]),
11
+ setup(m, { emit: d }) {
12
+ const l = d, n = p(m, "modelValue");
13
+ return (C, e) => (v(), f(V, {
14
+ modelValue: n.value,
15
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => n.value = o)
16
+ }, {
17
+ header: t(() => e[3] || (e[3] = [
18
+ i("h4", null, "Title", -1)
19
+ ])),
20
+ footer: t(() => [
21
+ a(r, {
22
+ "button-text": "Cancel",
23
+ variant: "secondary",
24
+ onClick: e[0] || (e[0] = (o) => l("closeWithoutSaving"))
25
+ }),
26
+ a(r, {
27
+ "button-text": "Confirm",
28
+ variant: "primary",
29
+ onClick: e[1] || (e[1] = (o) => l("closeWithSaving"))
30
+ })
31
+ ]),
32
+ default: t(() => [
33
+ e[4] || (e[4] = i("div", null, " body ", -1))
34
+ ]),
35
+ _: 1,
36
+ __: [4]
37
+ }, 8, ["modelValue"]));
38
+ }
39
+ });
40
+ export {
41
+ k as default
42
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ProjectDpiDevTools.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c3b54f7a"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,249 @@
1
+ import { defineComponent as T, useModel as V, ref as f, createBlock as _, openBlock as v, withCtx as o, createElementVNode as n, createVNode as t, unref as l, createTextVNode as y, createElementBlock as N } from "vue";
2
+ import { TabGroup as w, TabList as E, Tab as g, TabPanels as A, TabPanel as O } from "@headlessui/vue";
3
+ import { PhStar as F, PhFloppyDisk as x } from "@phosphor-icons/vue";
4
+ import { useStorage as B } from "@vueuse/core";
5
+ import { decodeProject as M } from "../../composables/project-transformer/decodeProject.js";
6
+ import { encodeProject as G } from "../../composables/project-transformer/encodeProject.js";
7
+ import { useFormValues as z } from "../../composables/useDpiFormValues.js";
8
+ import u from "../../HappyFlowComponents/ui/ButtonV3.vue.js";
9
+ import b from "../../HappyFlowComponents/ui/Card.vue.js";
10
+ import I from "../../HappyFlowComponents/ui/DpiModalBase.vue.js";
11
+ import U from "../../HappyFlowComponents/ui/ListBox/Listbox.vue.js";
12
+ import H from "../../HappyFlowComponents/ui/TextAreaV3.vue.js";
13
+ import { fullProject as K } from "./fixtures.js";
14
+ const R = { class: "tab-wrapper" }, Y = { class: "hurry" }, q = { class: "hurry-actions" }, Q = {
15
+ key: 0,
16
+ class: "hurry-flurry"
17
+ }, W = {
18
+ key: 1,
19
+ class: "hurry-flurry-empty"
20
+ }, X = { class: "hurry" }, Z = { class: "hurry-actions" }, $ = "dpi:project:snapshots", me = /* @__PURE__ */ T({
21
+ __name: "ProjectDpiDevTools",
22
+ props: {
23
+ modelValue: { type: Boolean },
24
+ modelModifiers: {},
25
+ nonce: {
26
+ default: 0
27
+ },
28
+ nonceModifiers: {}
29
+ },
30
+ emits: ["update:modelValue", "update:nonce"],
31
+ setup(h) {
32
+ const S = V(h, "modelValue"), m = V(h, "nonce"), { formValues: p } = z(), c = f(""), i = f("");
33
+ function k() {
34
+ m.value++, p.value = K.formValuesFn();
35
+ }
36
+ const d = B($, []), s = f("");
37
+ function C(a) {
38
+ return new Date(a).toLocaleString();
39
+ }
40
+ function J() {
41
+ const a = Date.now(), e = {
42
+ id: String(a),
43
+ name: C(a),
44
+ createdAt: a,
45
+ // ensure we store a plain JSON object without references
46
+ data: JSON.parse(JSON.stringify(p.value))
47
+ };
48
+ d.value = [...d.value, e], s.value = e;
49
+ }
50
+ function L() {
51
+ !s.value || typeof s.value == "string" || (m.value++, p.value = JSON.parse(JSON.stringify(s.value.data)));
52
+ }
53
+ async function D() {
54
+ i.value = "";
55
+ try {
56
+ const a = JSON.parse(c.value), e = await M(a);
57
+ m.value++, p.value = JSON.parse(JSON.stringify(e));
58
+ } catch (a) {
59
+ i.value = a instanceof Error ? a.message : "Failed to load JSON-LD";
60
+ }
61
+ }
62
+ async function P() {
63
+ i.value = "";
64
+ try {
65
+ const a = G(p.value), e = JSON.stringify(a, null, 2);
66
+ c.value = e;
67
+ } catch (a) {
68
+ i.value = a instanceof Error ? a.message : "Failed to encode project";
69
+ }
70
+ }
71
+ function j() {
72
+ d.value = [], s.value = "";
73
+ }
74
+ return (a, e) => (v(), _(I, {
75
+ modelValue: S.value,
76
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => S.value = r)
77
+ }, {
78
+ header: o(() => e[3] || (e[3] = [
79
+ n("h4", null, "DPI Tools for Devs", -1)
80
+ ])),
81
+ default: o(() => [
82
+ n("div", R, [
83
+ t(l(w), null, {
84
+ default: o(() => [
85
+ t(l(E), { class: "tab-list" }, {
86
+ default: o(() => [
87
+ t(l(g), { as: "template" }, {
88
+ default: o(({ selected: r }) => [
89
+ t(u, {
90
+ variant: r ? "secondary" : "tertiary",
91
+ "button-text": "Form"
92
+ }, null, 8, ["variant"])
93
+ ]),
94
+ _: 1
95
+ }),
96
+ t(l(g), { as: "template" }, {
97
+ default: o(({ selected: r }) => [
98
+ t(u, {
99
+ variant: r ? "secondary" : "tertiary",
100
+ "button-text": "Edit Mode"
101
+ }, null, 8, ["variant"])
102
+ ]),
103
+ _: 1
104
+ })
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(l(A), { class: "tab-panels" }, {
109
+ default: o(() => [
110
+ t(l(O), null, {
111
+ default: o(() => [
112
+ e[9] || (e[9] = n("p", null, "Manage current state of the form data model", -1)),
113
+ t(b, null, {
114
+ title: o(() => e[4] || (e[4] = [
115
+ y(" Presets ", -1)
116
+ ])),
117
+ icon: o(() => [
118
+ t(l(F), {
119
+ size: 32,
120
+ color: "#009fe3"
121
+ })
122
+ ]),
123
+ default: o(() => [
124
+ n("div", null, [
125
+ t(u, {
126
+ "icon-start": "Check",
127
+ "button-text": "Autofill inputs and reload DPI",
128
+ variant: "primary",
129
+ onClick: k
130
+ }),
131
+ e[5] || (e[5] = n("p", { class: "mt-3" }, " Preset contains complete form values ", -1))
132
+ ])
133
+ ]),
134
+ _: 1
135
+ }),
136
+ t(b, { class: "mt-3" }, {
137
+ title: o(() => e[6] || (e[6] = [
138
+ y(" Snapshots ", -1)
139
+ ])),
140
+ icon: o(() => [
141
+ t(l(x), {
142
+ size: 32,
143
+ color: "#009fe3"
144
+ })
145
+ ]),
146
+ default: o(() => [
147
+ n("div", Y, [
148
+ e[8] || (e[8] = n("p", null, " Snapshots are stored locally in your browser ", -1)),
149
+ n("div", q, [
150
+ t(u, {
151
+ class: "mb-3",
152
+ "icon-start": "plus",
153
+ "button-text": "Save snapshot",
154
+ variant: "secondary",
155
+ onClick: J
156
+ }),
157
+ t(u, {
158
+ class: "mb-3",
159
+ "icon-start": "trash",
160
+ "button-text": "Clear all snapshots",
161
+ variant: "tertiary",
162
+ disabled: !l(d).length,
163
+ onClick: j
164
+ }, null, 8, ["disabled"])
165
+ ]),
166
+ l(d).length ? (v(), N("div", Q, [
167
+ t(U, {
168
+ modelValue: s.value,
169
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => s.value = r),
170
+ label: "Select snapshot",
171
+ placeholder: "Choose a snapshot",
172
+ options: l(d)
173
+ }, null, 8, ["modelValue", "options"]),
174
+ t(u, {
175
+ "icon-end": "Check",
176
+ "button-text": "Load snapshot",
177
+ variant: "tertiary",
178
+ disabled: !s.value,
179
+ onClick: L
180
+ }, null, 8, ["disabled"])
181
+ ])) : (v(), N("div", W, e[7] || (e[7] = [
182
+ n("span", { class: "copy-small-regular" }, "No snapshots saved", -1)
183
+ ])))
184
+ ])
185
+ ]),
186
+ _: 1
187
+ })
188
+ ]),
189
+ _: 1,
190
+ __: [9]
191
+ }),
192
+ t(l(O), null, {
193
+ default: o(() => [
194
+ t(b, null, {
195
+ title: o(() => e[10] || (e[10] = [
196
+ y(" Load from JSON-LD ", -1)
197
+ ])),
198
+ icon: o(() => [
199
+ t(l(x), {
200
+ size: 32,
201
+ color: "#009fe3"
202
+ })
203
+ ]),
204
+ default: o(() => [
205
+ n("div", X, [
206
+ t(H, {
207
+ modelValue: c.value,
208
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => c.value = r),
209
+ label: "JSON-LD",
210
+ placeholder: "Paste a JSON-LD document here (GraphObject or NodeObject)",
211
+ "show-error": !!i.value,
212
+ "error-message": i.value
213
+ }, null, 8, ["modelValue", "show-error", "error-message"]),
214
+ n("div", Z, [
215
+ t(u, {
216
+ "button-text": "Generate JSON-LD in textarea",
217
+ variant: "secondary",
218
+ onClick: P
219
+ }),
220
+ t(u, {
221
+ "icon-end": "Check",
222
+ "button-text": "Load from json-ld",
223
+ variant: "primary",
224
+ disabled: !c.value,
225
+ onClick: D
226
+ }, null, 8, ["disabled"])
227
+ ])
228
+ ])
229
+ ]),
230
+ _: 1
231
+ })
232
+ ]),
233
+ _: 1
234
+ })
235
+ ]),
236
+ _: 1
237
+ })
238
+ ]),
239
+ _: 1
240
+ })
241
+ ])
242
+ ]),
243
+ _: 1
244
+ }, 8, ["modelValue"]));
245
+ }
246
+ });
247
+ export {
248
+ me as default
249
+ };