@piveau/dpi 0.2.0-alpha.67 → 0.2.0-alpha.71

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 (26) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/composables/useRuntimeEnv.js +3 -3
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +1 -1
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +80 -73
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +39 -39
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +1 -1
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +15 -10
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +90 -86
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +51 -49
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +549 -542
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +69 -67
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +152 -145
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +62 -60
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +559 -522
  22. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +69 -65
  24. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +29 -29
  25. package/dist/packages/dpi/src/data-provider-interface/plugins/userConfigShimPlugin.js +2 -3
  26. package/package.json +5 -1
@@ -1,25 +1,26 @@
1
- import { defineComponent as M, ref as p, computed as f, watch as W, toRef as q, createBlock as m, openBlock as r, withCtx as d, createVNode as c, createElementBlock as v, createElementVNode as h, unref as w, isRef as K, Fragment as k, renderList as g, createTextVNode as B, toDisplayString as L, createCommentVNode as D, nextTick as j } from "vue";
2
- import { FormKit as R } from "@formkit/vue";
3
- import { defineHubSearch as J } from "@piveau/sdk-vue";
4
- import Q from "zod";
5
- import X from "../../../components/StepActionsSection.vue.js";
6
- import Y from "../ActionCard.vue.js";
7
- import Z from "../Card.vue.js";
8
- import ee from "../Chip.vue.js";
9
- import te from "../DpiModalBase.vue.js";
10
- import ne from "../SummaryBox.vue.js";
11
- import oe from "./AreYouSureToSkipCard.vue.js";
12
- import ie from "./ProcessStepBase.vue.js";
1
+ import { defineComponent as q, ref as p, computed as f, watch as K, toRef as L, createBlock as m, openBlock as r, withCtx as d, createVNode as c, createElementBlock as v, createElementVNode as h, unref as w, isRef as j, Fragment as g, renderList as B, createTextVNode as R, toDisplayString as J, createCommentVNode as D, nextTick as Q } from "vue";
2
+ import { FormKit as I } from "@formkit/vue";
3
+ import { defineHubSearch as X } from "@piveau/sdk-vue";
4
+ import Y from "zod";
5
+ import { useRuntimeEnv as Z } from "../../../../composables/useRuntimeEnv.js";
6
+ import ee from "../../../components/StepActionsSection.vue.js";
7
+ import te from "../ActionCard.vue.js";
8
+ import ne from "../Card.vue.js";
9
+ import oe from "../Chip.vue.js";
10
+ import ie from "../DpiModalBase.vue.js";
11
+ import re from "../SummaryBox.vue.js";
12
+ import ae from "./AreYouSureToSkipCard.vue.js";
13
+ import le from "./ProcessStepBase.vue.js";
13
14
  /* empty css */
14
- import I from "./SoftwareForm.vue.js";
15
- import { useProcessStepResources as re } from "./utils.js";
16
- const ae = {
15
+ import z from "./SoftwareForm.vue.js";
16
+ import { useProcessStepResources as se } from "./utils.js";
17
+ const ue = {
17
18
  key: 0,
18
19
  class: "software-step__card-list--empty"
19
- }, le = {
20
+ }, de = {
20
21
  key: 1,
21
22
  class: "software-step__card-list"
22
- }, se = { class: "functionalities" }, ue = { class: "" }, ge = /* @__PURE__ */ M({
23
+ }, ce = { class: "functionalities" }, fe = { class: "" }, Ie = /* @__PURE__ */ q({
23
24
  __name: "SoftwareStep",
24
25
  props: {
25
26
  stepGroup: {},
@@ -27,12 +28,13 @@ const ae = {
27
28
  hideCloseBtn: { type: Boolean },
28
29
  title: {}
29
30
  },
30
- setup(z) {
31
- const b = z, a = p(!1), o = p([]), { useResources: C } = J({
32
- baseUrl: "https://twin.bydata.de/api/hub/search",
31
+ setup(C) {
32
+ var k;
33
+ const b = C, a = p(!1), o = p([]), T = Z(), { useResources: E } = X({
34
+ baseUrl: ((k = T.api) == null ? void 0 : k.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
33
35
  index: "resource",
34
36
  indexDetails: "resources/software",
35
- schema: Q.any()
37
+ schema: Y.any()
36
38
  }, (e) => {
37
39
  var s, u;
38
40
  const t = String((e == null ? void 0 : e.id) || ""), i = String(((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en) || "");
@@ -41,66 +43,66 @@ const ae = {
41
43
  id: t,
42
44
  name: i
43
45
  };
44
- }), T = C(f(() => o.value.map((e) => ({
46
+ }), U = E(f(() => o.value.map((e) => ({
45
47
  resourceId: e.id
46
48
  })))), S = f(() => o.value.map((e, t) => {
47
49
  var n, s;
48
- const i = (s = (n = T.value) == null ? void 0 : n[t]) == null ? void 0 : s.resultEnhanced;
50
+ const i = (s = (n = U.value) == null ? void 0 : n[t]) == null ? void 0 : s.resultEnhanced;
49
51
  return {
50
52
  id: e.id || (i == null ? void 0 : i.id),
51
53
  name: e.id === "--software-in-request--" && !(i != null && i.name) ? "Software in Beantragung" : (i == null ? void 0 : i.name) || e.id,
52
54
  functionalities: e.functionalities
53
55
  };
54
- })), l = p(""), E = f(() => {
56
+ })), l = p(""), F = f(() => {
55
57
  var e;
56
58
  return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
57
59
  }), y = p(0);
58
- W(a, (e, t) => {
60
+ K(a, (e, t) => {
59
61
  !e && t && y.value++;
60
62
  });
61
- function F(e) {
63
+ function H(e) {
62
64
  return o.value.find((t) => t.id === e);
63
65
  }
64
66
  function _(e) {
65
67
  return o.value.findIndex((t) => t.id === e);
66
68
  }
67
- function H(e) {
69
+ function N(e) {
68
70
  const t = _(e);
69
71
  t !== -1 && o.value.splice(t, 1);
70
72
  }
71
- async function N(e) {
72
- F(e) && (l.value = e, y.value++, await j(), a.value = !0);
73
+ async function G(e) {
74
+ H(e) && (l.value = e, y.value++, await Q(), a.value = !0);
73
75
  }
74
76
  function V(e) {
75
77
  o.value.push(e), a.value = !1, l.value = "";
76
78
  }
77
- function U(e) {
79
+ function O(e) {
78
80
  const t = _(e.id);
79
81
  t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
80
82
  }
81
- function G() {
83
+ function P() {
82
84
  a.value = !1;
83
85
  }
84
- const O = f(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = f(() => "primary"), $ = q(b, "edit"), { count: x, ensureHasOneResource: A } = re(b.stepGroup || "", $);
85
- return (e, t) => (r(), m(ie, {
86
+ const $ = f(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), A = f(() => "primary"), M = L(b, "edit"), { count: x, ensureHasOneResource: W } = se(b.stepGroup || "", M);
87
+ return (e, t) => (r(), m(le, {
86
88
  title: "Geben Sie Informationen zur verwendeten Software an",
87
89
  subtitle: "Die Software wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Software Sie verwendet haben. Sobald Sie eine Software zugeordnet haben, geben Sie bitte an, welche Funktionalitäten der Software Sie für diesen Schritt benötigt haben."
88
90
  }, {
89
91
  default: d(({ confirm: i }) => [
90
- c(w(R), {
92
+ c(w(I), {
91
93
  modelValue: w(x),
92
- "onUpdate:modelValue": t[0] || (t[0] = (n) => K(x) ? x.value = n : null),
94
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => j(x) ? x.value = n : null),
93
95
  sync: "",
94
96
  type: "hidden",
95
97
  name: "__resourceCount",
96
98
  hidden: "",
97
99
  "aria-hidden": "",
98
- "validation-rules": { ensureHasOneResource: w(A) },
100
+ "validation-rules": { ensureHasOneResource: w(W) },
99
101
  validation: "+ensureHasOneResource",
100
102
  "validation-visibility": "live",
101
103
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
102
104
  }, null, 8, ["modelValue", "validation-rules"]),
103
- c(w(R), {
105
+ c(w(I), {
104
106
  modelValue: o.value,
105
107
  "onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
106
108
  name: "selected",
@@ -108,25 +110,25 @@ const ae = {
108
110
  hidden: "",
109
111
  "aria-hidden": ""
110
112
  }, null, 8, ["modelValue"]),
111
- S.value.length ? (r(), v("section", le, [
112
- (r(!0), v(k, null, g(S.value, (n, s) => (r(), m(Y, {
113
+ S.value.length ? (r(), v("section", de, [
114
+ (r(!0), v(g, null, B(S.value, (n, s) => (r(), m(te, {
113
115
  key: s,
114
116
  spaced: "",
115
117
  class: "software-card",
116
- onEdit: (u) => N(n.id),
117
- onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: H })
118
+ onEdit: (u) => G(n.id),
119
+ onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
118
120
  }, {
119
121
  "sub-title": d(() => t[5] || (t[5] = [
120
- B(" Name ", -1)
122
+ R(" Name ", -1)
121
123
  ])),
122
124
  title: d(() => [
123
- B(L(n.name), 1)
125
+ R(J(n.name), 1)
124
126
  ]),
125
127
  default: d(() => [
126
- c(ne, { title: "Genutzte Funktionalitäten" }, {
128
+ c(re, { title: "Genutzte Funktionalitäten" }, {
127
129
  default: d(() => [
128
- h("div", se, [
129
- (r(!0), v(k, null, g(n.functionalities, (u) => (r(), m(ee, {
130
+ h("div", ce, [
131
+ (r(!0), v(g, null, B(n.functionalities, (u) => (r(), m(oe, {
130
132
  key: u,
131
133
  "no-border": "",
132
134
  text: u,
@@ -140,8 +142,8 @@ const ae = {
140
142
  ]),
141
143
  _: 2
142
144
  }, 1032, ["onEdit", "onDelete"]))), 128))
143
- ])) : (r(), v("section", ae, [
144
- c(Z, {
145
+ ])) : (r(), v("section", ue, [
146
+ c(ne, {
145
147
  small: "",
146
148
  class: "empty-card"
147
149
  }, {
@@ -152,23 +154,23 @@ const ae = {
152
154
  __: [4]
153
155
  })
154
156
  ])),
155
- c(I, {
157
+ c(z, {
156
158
  exclude: o.value.map((n) => n.id),
157
159
  onSubmit: V
158
160
  }, null, 8, ["exclude"]),
159
- h("section", ue, [
160
- c(X, {
161
+ h("section", fe, [
162
+ c(ee, {
161
163
  class: "software-step-actions",
162
- "next-text": O.value,
163
- "next-variant": P.value,
164
+ "next-text": $.value,
165
+ "next-variant": A.value,
164
166
  "show-detailed-error-summary": ""
165
167
  }, null, 8, ["next-text", "next-variant"]),
166
- S.value.length === 0 ? (r(), m(oe, {
168
+ S.value.length === 0 ? (r(), m(ae, {
167
169
  key: 0,
168
170
  "resource-label": "Software"
169
171
  })) : D("", !0)
170
172
  ]),
171
- c(te, {
173
+ c(ie, {
172
174
  modelValue: a.value,
173
175
  "onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
174
176
  "hide-close-btn": !0,
@@ -176,15 +178,15 @@ const ae = {
176
178
  title: "Software"
177
179
  }, {
178
180
  default: d(() => [
179
- l.value ? (r(), m(I, {
181
+ l.value ? (r(), m(z, {
180
182
  key: y.value,
181
183
  modelValue: l.value,
182
184
  "onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
183
- functionalities: E.value,
185
+ functionalities: F.value,
184
186
  exclude: o.value.map((n) => n.id),
185
187
  onSubmit: V,
186
- onPatch: U,
187
- onClose: G
188
+ onPatch: O,
189
+ onClose: P
188
190
  }, null, 8, ["modelValue", "functionalities", "exclude"])) : D("", !0)
189
191
  ]),
190
192
  _: 1
@@ -195,5 +197,5 @@ const ae = {
195
197
  }
196
198
  });
197
199
  export {
198
- ge as default
200
+ Ie as default
199
201
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ReviewStep.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-87304663"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c62bc51"]]);
5
5
  export {
6
- m as default
6
+ c as default
7
7
  };