@piveau/dpi 0.2.0-alpha.34 → 0.2.0-alpha.35

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 (15) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +1 -0
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +37 -33
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +41 -37
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +69 -64
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +1 -1
  10. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +20 -14
  12. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +44 -41
  13. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +97 -95
  14. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +26 -19
  15. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./ActionCard.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-60f712a4"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a94ad48"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -16,6 +16,7 @@ const e = {
16
16
  "placeholder",
17
17
  "trailing_text",
18
18
  "trailing-text",
19
+ "inputStyle",
19
20
  "is-disabled"
20
21
  ]
21
22
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as j, computed as n, createBlock as K, openBlock as P, unref as a } from "vue";
1
+ import { defineComponent as j, computed as n, createBlock as K, openBlock as P, unref as l } from "vue";
2
2
  import C from "../InputField.vue.js";
3
3
  const M = /* @__PURE__ */ j({
4
4
  __name: "InputFieldFormKit",
5
5
  props: {
6
6
  context: {}
7
7
  },
8
- setup(_) {
9
- var c, p, x, u, d, m, f;
10
- const t = _, r = n({
8
+ setup(y) {
9
+ var c, p, u, x, d, m, f;
10
+ const t = y, s = n({
11
11
  get: () => {
12
12
  var e;
13
13
  return ((e = t.context) == null ? void 0 : e._value) || "";
@@ -16,59 +16,63 @@ const M = /* @__PURE__ */ j({
16
16
  var o;
17
17
  (o = t.context) == null || o.node.input(e);
18
18
  }
19
- }), b = n(() => {
19
+ }), _ = n(() => {
20
20
  var e;
21
21
  return (e = t.context) == null ? void 0 : e.textLabel;
22
- }), T = n(() => {
22
+ }), b = n(() => {
23
23
  var e;
24
24
  return (e = t.context) == null ? void 0 : e.name;
25
- }), k = n(() => {
25
+ }), T = n(() => {
26
26
  var e;
27
27
  return ((e = t.context) == null ? void 0 : e.placeholder) || "Enter text here";
28
- }), y = n(() => {
28
+ }), k = n(() => {
29
29
  var e;
30
30
  return ((e = t.context) == null ? void 0 : e.trailing_text) || "$";
31
31
  }), I = n(() => {
32
32
  var e;
33
33
  return ((e = t.context) == null ? void 0 : e.trailingText) || !1;
34
34
  }), w = n(() => {
35
+ var e;
36
+ return ((e = t.context) == null ? void 0 : e.inputStyle) || "";
37
+ }), E = n(() => {
35
38
  var e;
36
39
  return ((e = t.context) == null ? void 0 : e["is-disabled"]) || !1;
37
- }), i = n(() => {
40
+ }), r = n(() => {
38
41
  var e;
39
42
  return Object.keys((e = t.context) == null ? void 0 : e.messages).length > 0;
40
- }), s = n(() => {
41
- var o, l, g, h, v;
42
- if (!i.value)
43
+ }), i = n(() => {
44
+ var o, a, g, v, h;
45
+ if (!r.value)
43
46
  return "";
44
- const e = (l = Object.keys((o = t.context) == null ? void 0 : o.messages)) == null ? void 0 : l[0];
45
- return ((v = (h = (g = t.context) == null ? void 0 : g.messages) == null ? void 0 : h[e]) == null ? void 0 : v.value) || "";
46
- }), E = ((c = t.context) == null ? void 0 : c.inputType) || "text", O = ((p = t.context) == null ? void 0 : p.addOnText) || !1, B = ((x = t.context) == null ? void 0 : x.datePicker) || !1;
47
- (u = t.context) != null && u.infoIcon;
47
+ const e = (a = Object.keys((o = t.context) == null ? void 0 : o.messages)) == null ? void 0 : a[0];
48
+ return ((h = (v = (g = t.context) == null ? void 0 : g.messages) == null ? void 0 : v[e]) == null ? void 0 : h.value) || "";
49
+ }), O = ((c = t.context) == null ? void 0 : c.inputType) || "text", S = ((p = t.context) == null ? void 0 : p.addOnText) || !1, B = ((u = t.context) == null ? void 0 : u.datePicker) || !1;
50
+ (x = t.context) != null && x.infoIcon;
48
51
  const F = ((d = t.context) == null ? void 0 : d.preIcon) || !1;
49
52
  (m = t.context) == null || m.showEndIcon;
50
53
  const V = ((f = t.context) == null ? void 0 : f.tooltipText) || "This is helpful information";
51
54
  return (e, o) => (P(), K(C, {
52
- modelValue: r.value,
53
- "onUpdate:modelValue": o[0] || (o[0] = (l) => r.value = l),
54
- label: b.value,
55
- placeholder: k.value,
56
- "input-type": a(E),
57
- "add-on-text": a(O),
58
- "date-picker": a(B),
55
+ modelValue: s.value,
56
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
57
+ label: _.value,
58
+ placeholder: T.value,
59
+ "input-type": l(O),
60
+ "add-on-text": l(S),
61
+ "date-picker": l(B),
59
62
  "info-icon": !1,
60
- "pre-icon": a(F),
63
+ "pre-icon": l(F),
61
64
  "show-end-icon": !1,
62
- "tooltip-text": a(V),
63
- "show-error": i.value,
64
- "supporting-hint-message": s.value,
65
- "initial-hint-text": s.value,
66
- error_message: s.value,
67
- name: T.value,
65
+ "tooltip-text": l(V),
66
+ "show-error": r.value,
67
+ "supporting-hint-message": i.value,
68
+ "initial-hint-text": i.value,
69
+ error_message: i.value,
70
+ name: b.value,
68
71
  "trailing-text": I.value,
69
- trailing_text: y.value,
70
- "is-disabled": w.value
71
- }, 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", "is-disabled"]));
72
+ trailing_text: k.value,
73
+ inputStyle: w.value,
74
+ "is-disabled": E.value
75
+ }, 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", "inputStyle", "is-disabled"]));
72
76
  }
73
77
  });
74
78
  export {
@@ -1,6 +1,6 @@
1
1
  import { ref as f, watch as N, createElementBlock as u, openBlock as i, createCommentVNode as o, createElementVNode as d, createBlock as v, toDisplayString as h, unref as n, normalizeStyle as S, normalizeClass as p, withDirectives as M, vModelDynamic as F, createVNode as W, withKeys as w, withModifiers as k, isRef as r } from "vue";
2
- import { PhInfo as q, PhMagnifyingGlass as X, PhQuestion as O, PhWarningCircle as H, PhCaretDown as Y, PhCaretUp as Z, PhCalendar as _, PhClock as ee } from "@phosphor-icons/vue";
3
- import G from "./TextButtonSmall.vue.js";
2
+ import { PhInfo as j, PhMagnifyingGlass as X, PhQuestion as O, PhWarningCircle as H, PhCaretDown as Y, PhCaretUp as Z, PhCalendar as _, PhClock as ee } from "@phosphor-icons/vue";
3
+ import q from "./TextButtonSmall.vue.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -23,10 +23,10 @@ const le = { class: "dpiV3_input-field" }, ne = {
23
23
  }, pe = {
24
24
  key: 0,
25
25
  class: "dpiV3_hintText"
26
- }, xe = {
26
+ }, ye = {
27
27
  key: 1,
28
28
  class: "dpiV3_errorText"
29
- }, ye = {
29
+ }, xe = {
30
30
  key: 1,
31
31
  class: "dpiV3_InputFieldBase"
32
32
  }, Ve = { class: "dpiV3_Top_leading_text" }, be = { class: "dpiV3_Lebel" }, he = { class: "dpiV3_label" }, we = { class: "dpiV3_Input" }, ge = { class: "dpiV3_Text-Add-On" }, ke = { class: "dpiV3_Content-leading-Text" }, Te = ["type", "disabled", "placeholder"], me = { class: "dpiV3_Content-leading-Text" }, Ee = ["type", "disabled", "placeholder"], Be = { class: "dpiV3_Text-Add-On" }, Ie = {
@@ -127,24 +127,28 @@ const le = { class: "dpiV3_input-field" }, ne = {
127
127
  error_message: {
128
128
  type: String,
129
129
  default: "error"
130
+ },
131
+ inputStyle: {
132
+ type: Object,
133
+ default: () => ({})
130
134
  }
131
135
  },
132
136
  emits: ["update:modelValue", "deleteButtonClicked"],
133
- setup(e, { emit: Q }) {
134
- const c = e, L = Q;
135
- let K = f("var(--neutral-60)"), x = f(!1), l = f(!1), g = f(!1);
137
+ setup(e, { emit: G }) {
138
+ const c = e, L = G;
139
+ let K = f("var(--neutral-60)"), y = f(!1), l = f(!1), g = f(!1);
136
140
  const V = f(null);
137
141
  let T = f(!1), s = f("inset 0 0 0 1px var(--neutral-30, #687178)"), m = f(!1), C = f(!1), b = f();
138
- const $ = f(!1), y = f(c.modelValue);
142
+ const $ = f(!1), x = f(c.modelValue);
139
143
  N(
140
144
  () => c.modelValue,
141
145
  (D) => {
142
- y.value = D;
146
+ x.value = D;
143
147
  }
144
- ), N(y, (D) => {
148
+ ), N(x, (D) => {
145
149
  L("update:modelValue", D);
146
150
  });
147
- function j() {
151
+ function Q() {
148
152
  V.value && V.value.showPicker();
149
153
  }
150
154
  function J() {
@@ -154,13 +158,13 @@ const le = { class: "dpiV3_input-field" }, ne = {
154
158
  L("deleteButtonClicked");
155
159
  }
156
160
  function E() {
157
- T.value = !1, m.value = !0, x.value = !0, s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-60, #009FE3)", b.value = "none"), V.value;
161
+ T.value = !1, m.value = !0, y.value = !0, s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-60, #009FE3)", b.value = "none"), V.value;
158
162
  }
159
163
  function B() {
160
- m.value = !1, x.value = !1, s.value = "inset 0 0 0 1px var(--neutral-30, #687178)";
164
+ m.value = !1, y.value = !1, s.value = "inset 0 0 0 1px var(--neutral-30, #687178)";
161
165
  }
162
166
  function A() {
163
- T.value = !0, x.value = !1, C.value && (s.value = "inset 0 0 0 1px var(--neutral-60, #687178)");
167
+ T.value = !0, y.value = !1, C.value && (s.value = "inset 0 0 0 1px var(--neutral-60, #687178)");
164
168
  }
165
169
  function P() {
166
170
  C.value = !0, s.value = "inset 0 0 0 1px var(--neutral-60, #687178)", c.addOnText && (b.value = "none"), m.value && (s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-blue-60, #009FE3)", b.value = "none"));
@@ -169,7 +173,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
169
173
  C.value = !1, s.value = "inset 0 0 0 1px var(--neutral-30, #687178)", c.addOnText && (b.value = "none"), m.value && (s.value = "0 0 0 2px var(--Focused, #687178)", c.addOnText && (s.value = "0 0 0 2px var(--blue-blue-60, #009FE3)", b.value = "none"));
170
174
  }
171
175
  function R() {
172
- x.value && (s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-blue-60, #009FE3)", b.value = "none"));
176
+ y.value && (s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-blue-60, #009FE3)", b.value = "none"));
173
177
  }
174
178
  function I() {
175
179
  s.value = "0 0 0 2px var(--Focused)", c.addOnText && (s.value = "0 0 0 2px var(--blue-blue-60, #009FE3)", b.value = "none");
@@ -180,7 +184,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
180
184
  d("div", oe, [
181
185
  e.label ? (i(), u("label", ae, h(e.label), 1)) : o("", !0),
182
186
  d("span", de, [
183
- e.infoIcon ? (i(), v(n(q), {
187
+ e.infoIcon ? (i(), v(n(j), {
184
188
  key: 0,
185
189
  weight: "fill",
186
190
  class: "dpiV3_labelIcon",
@@ -192,7 +196,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
192
196
  $.value ? (i(), u("span", se, h(e.tooltip_text), 1)) : o("", !0)
193
197
  ])
194
198
  ]),
195
- e.defaultInput ? o("", !0) : (i(), v(G, {
199
+ e.defaultInput ? o("", !0) : (i(), v(q, {
196
200
  key: 0,
197
201
  "button-text": "löschen",
198
202
  class: "dpiV3_deleteButton",
@@ -204,8 +208,8 @@ const le = { class: "dpiV3_input-field" }, ne = {
204
208
  class: p(["dpiV3_Input_box", {
205
209
  dpiV3_disabled: e.isDisabled,
206
210
  "calendar-focused": n(T),
207
- "error-state": e.showError && !n(x) && !n(g),
208
- "focused-error-state": e.showError && n(x),
211
+ "error-state": e.showError && !n(y) && !n(g),
212
+ "focused-error-state": e.showError && n(y),
209
213
  "filled-error-state": e.showError && n(g)
210
214
  }]),
211
215
  style: S({ "box-shadow": n(s) }),
@@ -224,7 +228,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
224
228
  key: 1,
225
229
  ref_key: "inputRef",
226
230
  ref: V,
227
- "onUpdate:modelValue": t[3] || (t[3] = (a) => y.value = a),
231
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => x.value = a),
228
232
  type: e.inputType,
229
233
  class: p(["dpiV3_Text", {
230
234
  "error-state": e.showError,
@@ -236,13 +240,13 @@ const le = { class: "dpiV3_input-field" }, ne = {
236
240
  onBlur: B,
237
241
  onMousedown: I
238
242
  }, null, 42, re)), [
239
- [F, y.value]
243
+ [F, x.value]
240
244
  ]),
241
245
  e.dropdown_dpiV3 ? M((i(), u("input", {
242
246
  key: 2,
243
247
  ref_key: "inputRef",
244
248
  ref: V,
245
- "onUpdate:modelValue": t[4] || (t[4] = (a) => y.value = a),
249
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => x.value = a),
246
250
  type: e.inputType,
247
251
  class: p(["dpiV3_Text", {
248
252
  "error-state": e.showError,
@@ -255,7 +259,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
255
259
  onBlur: B,
256
260
  onMousedown: I
257
261
  }, null, 42, ve)), [
258
- [F, y.value]
262
+ [F, x.value]
259
263
  ]) : o("", !0),
260
264
  e.showEndIcon && !e.showError && !e.dropdown_dpiV3 ? (i(), v(n(O), {
261
265
  key: 3,
@@ -290,7 +294,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
290
294
  }, null, 8, ["color"]),
291
295
  d("div", {
292
296
  class: p(["dpiV3_Rectangle1", { dpiV3_Pressed: n(l) }]),
293
- onClick: j,
297
+ onClick: Q,
294
298
  onFocus: k(A, ["stop"]),
295
299
  onMousedown: t[5] || (t[5] = (a) => r(l) ? l.value = !0 : l = !0),
296
300
  onMouseup: t[6] || (t[6] = (a) => r(l) ? l.value = !1 : l = !1),
@@ -332,15 +336,15 @@ const le = { class: "dpiV3_input-field" }, ne = {
332
336
  !e.showError && e.initialHintText ? (i(), u("div", pe, [
333
337
  d("span", null, h(e.supportingHintMessage), 1)
334
338
  ])) : o("", !0),
335
- e.showError && e.initialHintText ? (i(), u("div", xe, [
339
+ e.showError && e.initialHintText ? (i(), u("div", ye, [
336
340
  d("span", null, h(e.error_message), 1)
337
341
  ])) : o("", !0)
338
342
  ])),
339
- e.addOnText ? (i(), u("div", ye, [
343
+ e.addOnText ? (i(), u("div", xe, [
340
344
  d("div", Ve, [
341
345
  d("div", be, [
342
346
  d("label", he, h(e.label), 1),
343
- e.infoIcon ? (i(), v(n(q), {
347
+ e.infoIcon ? (i(), v(n(j), {
344
348
  key: 0,
345
349
  weight: "fill",
346
350
  class: "dpiV3_labelIcon",
@@ -348,7 +352,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
348
352
  color: "var(--neutral-60, #3D4952)"
349
353
  })) : o("", !0)
350
354
  ]),
351
- e.defaultInput ? o("", !0) : (i(), v(G, {
355
+ e.defaultInput ? o("", !0) : (i(), v(q, {
352
356
  key: 0,
353
357
  "button-text": "löschen",
354
358
  class: "dpiV3_deleteButton",
@@ -370,8 +374,8 @@ const le = { class: "dpiV3_input-field" }, ne = {
370
374
  class: p(["dpiV3_Text_input", {
371
375
  dpiV3_input_disabled: e.isDisabled,
372
376
  "calendar-focused": n(T),
373
- "error-state": e.showError && !n(x) && !n(g),
374
- "focused-error-state": e.showError && n(x),
377
+ "error-state": e.showError && !n(y) && !n(g),
378
+ "focused-error-state": e.showError && n(y),
375
379
  "filled-error-state": e.showError && n(g)
376
380
  }]),
377
381
  style: S({
@@ -386,7 +390,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
386
390
  M(d("input", {
387
391
  ref_key: "inputRef",
388
392
  ref: V,
389
- "onUpdate:modelValue": t[20] || (t[20] = (a) => y.value = a),
393
+ "onUpdate:modelValue": t[20] || (t[20] = (a) => x.value = a),
390
394
  type: e.inputType,
391
395
  class: p(["dpiV3_Text", {
392
396
  "error-state": e.showError,
@@ -398,7 +402,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
398
402
  onBlur: B,
399
403
  onMousedown: I
400
404
  }, null, 42, Te), [
401
- [F, y.value]
405
+ [F, x.value]
402
406
  ])
403
407
  ]),
404
408
  e.showError ? (i(), v(n(H), {
@@ -419,8 +423,8 @@ const le = { class: "dpiV3_input-field" }, ne = {
419
423
  class: p(["dpiV3_Text_input-trailing", {
420
424
  dpiV3_input_disabled: e.isDisabled,
421
425
  "calendar-focused": n(T),
422
- "error-state": e.showError && !n(x) && !n(g),
423
- "focused-error-state": e.showError && n(x),
426
+ "error-state": e.showError && !n(y) && !n(g),
427
+ "focused-error-state": e.showError && n(y),
424
428
  "filled-error-state": e.showError && n(g)
425
429
  }]),
426
430
  style: S({
@@ -435,7 +439,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
435
439
  M(d("input", {
436
440
  ref_key: "inputRef",
437
441
  ref: V,
438
- "onUpdate:modelValue": t[21] || (t[21] = (a) => y.value = a),
442
+ "onUpdate:modelValue": t[21] || (t[21] = (a) => x.value = a),
439
443
  type: e.inputType,
440
444
  class: p(["dpiV3_Text", {
441
445
  "error-state": e.showError,
@@ -447,7 +451,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
447
451
  onBlur: B,
448
452
  onMousedown: I
449
453
  }, null, 42, Ee), [
450
- [F, y.value]
454
+ [F, x.value]
451
455
  ])
452
456
  ]),
453
457
  e.showError ? (i(), v(n(H), {
@@ -481,7 +485,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
481
485
  ])) : o("", !0)
482
486
  ]));
483
487
  }
484
- }, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-2de88bf7"]]);
488
+ }, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-6d2518f0"]]);
485
489
  export {
486
490
  Oe as default
487
491
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./OptionalDataStep.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6f7ed213"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c0f37be8"]]);
5
5
  export {
6
6
  e as default
7
7
  };