@piveau/dpi 0.2.0-alpha.20 → 0.2.0-alpha.22

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 (23) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/DataProviderInterface.vue.js +22 -16
  3. package/dist/packages/dpi/src/data-provider-interface/DataProviderInterface.vue2.js +34 -32
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +87 -71
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +2 -2
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +88 -73
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +70 -55
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +50 -49
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +115 -83
  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 +108 -105
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +111 -107
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +127 -122
  17. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +72 -68
  19. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +38 -38
  20. package/dist/packages/dpi/src/data-provider-interface/composables/useDebouncedLoading.js +11 -0
  21. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +37 -37
  22. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +218 -216
  23. package/package.json +1 -1
@@ -1,25 +1,26 @@
1
- import { PhPlus as c, PhArrowSquareOut as C, PhCopySimple as k, PhPencilSimple as b, PhArrowCounterClockwise as g, PhPlusSquare as B, PhTrash as K, PhPlusCircle as D, PhCaretLeft as w, PhCaretRight as T, PhMagnifyingGlass as V, PhCheck as $, PhX as M } from "@phosphor-icons/vue";
2
- import { defineComponent as U, resolveComponent as o, createElementBlock as l, openBlock as s, mergeProps as q, createCommentVNode as a, withKeys as n, normalizeStyle as v, normalizeClass as p, withModifiers as m, createElementVNode as E, createBlock as t, toDisplayString as G } from "vue";
1
+ import { PhCircleNotch as C, PhPlus as b, PhArrowSquareOut as k, PhCopySimple as B, PhPencilSimple as V, PhArrowCounterClockwise as D, PhPlusSquare as K, PhTrash as w, PhPlusCircle as $, PhCaretLeft as T, PhCaretRight as M, PhMagnifyingGlass as U, PhCheck as q, PhX as E } from "@phosphor-icons/vue";
2
+ import { defineComponent as G, resolveComponent as n, createElementBlock as t, openBlock as a, mergeProps as N, createCommentVNode as s, withKeys as l, normalizeStyle as m, normalizeClass as d, withModifiers as F, createElementVNode as L, createBlock as o, toDisplayString as O, createVNode as h } from "vue";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import L from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const O = U({
6
+ import R from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const I = G({
8
8
  name: "ButtonV3",
9
9
  components: {
10
- PhX: M,
11
- PhCheck: $,
12
- PhMagnifyingGlass: V,
13
- PhCaretRight: T,
14
- PhCaretLeft: w,
15
- PhPlusCircle: D,
16
- PhTrash: K,
17
- PhPlusSquare: B,
18
- PhArrowCounterClockwise: g,
19
- PhPencilSimple: b,
20
- PhCopySimple: k,
21
- PhArrowSquareOut: C,
22
- PhPlus: c
10
+ PhX: E,
11
+ PhCheck: q,
12
+ PhMagnifyingGlass: U,
13
+ PhCaretRight: M,
14
+ PhCaretLeft: T,
15
+ PhPlusCircle: $,
16
+ PhTrash: w,
17
+ PhPlusSquare: K,
18
+ PhArrowCounterClockwise: D,
19
+ PhPencilSimple: V,
20
+ PhCopySimple: B,
21
+ PhArrowSquareOut: k,
22
+ PhPlus: b,
23
+ PhCircleNotch: C
23
24
  },
24
25
  props: {
25
26
  buttonText: {
@@ -44,6 +45,10 @@ const O = U({
44
45
  type: Boolean,
45
46
  default: !1
46
47
  },
48
+ loading: {
49
+ type: Boolean,
50
+ default: !1
51
+ },
47
52
  variant: {
48
53
  type: String,
49
54
  default: "primary"
@@ -77,9 +82,12 @@ const O = U({
77
82
  return [
78
83
  `dpiV3_button-base-${this.variant}`,
79
84
  `dpiV3_button-${this.size}`,
80
- { "dpiV3_button-disabled": this.disabled }
85
+ { "dpiV3_button-disabled": this.disabled || this.loading }
81
86
  ];
82
87
  },
88
+ isButtonDisabled() {
89
+ return this.disabled || this.loading;
90
+ },
83
91
  iconSizeClass() {
84
92
  return [
85
93
  `dpiV3_icon-${this.size}`,
@@ -104,158 +112,182 @@ const O = U({
104
112
  this.disabled || (this.variant === "primary" ? this.isPrimaryActive = !0 : this.variant === "secondary" ? this.isSecondaryActive = !0 : this.variant === "tertiary" && (this.isTertiaryActive = !0));
105
113
  }
106
114
  }
107
- }), R = ["disabled"], N = ["disabled"], I = {
108
- key: 0,
115
+ }), X = ["disabled"], j = ["disabled"], H = {
116
+ key: 1,
109
117
  class: "dpiV3_icon"
110
118
  };
111
- function X(e, i, j, H, J, Q) {
112
- const F = o("PhArrowCounterClockwise"), A = o("PhPlusCircle"), d = o("PhTrash"), y = o("PhMagnifyingGlass"), u = o("PhCheck"), S = o("PhCaretLeft"), h = o("PhPlusSquare"), P = o("PhCaretRight"), f = o("PhArrowSquareOut"), z = o("PhPencilSimple");
113
- return s(), l("div", q({
119
+ function J(e, i, Q, W, Y, Z) {
120
+ const A = n("PhArrowCounterClockwise"), S = n("PhPlusCircle"), u = n("PhTrash"), p = n("PhMagnifyingGlass"), y = n("PhCheck"), P = n("PhCaretLeft"), z = n("PhPlusSquare"), v = n("PhCircleNotch"), f = n("PhCaretRight"), c = n("PhArrowSquareOut"), g = n("PhPencilSimple");
121
+ return a(), t("div", N({
114
122
  class: ["dpiV3_V3-typography", e.externalClass]
115
123
  }, e.$attrs), [
116
- e.buttonText ? (s(), l("button", {
124
+ e.buttonText ? (a(), t("button", {
117
125
  key: 0,
118
126
  tabindex: "0",
119
127
  type: "button",
120
- class: p([
128
+ class: d([
121
129
  e.dpiV3_buttonClass,
122
130
  { activeStatePrimary: e.isPrimaryActive && e.variant === "primary" },
123
131
  { activeStateSecondary: e.isSecondaryActive && e.variant === "secondary" },
124
- { activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" }
132
+ { activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" },
133
+ { "dpiV3_button-loading": e.loading }
125
134
  ]),
126
- disabled: e.disabled,
127
- style: v(e.focusStyle),
135
+ disabled: e.isButtonDisabled,
136
+ style: m(e.focusStyle),
128
137
  onMousedown: i[0] || (i[0] = (...r) => e.removeFocus && e.removeFocus(...r)),
129
138
  onMouseup: i[1] || (i[1] = (...r) => e.removeActiveState && e.removeActiveState(...r)),
130
139
  onFocus: i[2] || (i[2] = (r) => e.isFocused = !0),
131
140
  onBlur: i[3] || (i[3] = (r) => e.isFocused = !1),
132
141
  onKeydown: [
133
- i[4] || (i[4] = n((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
134
- i[5] || (i[5] = n(m((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
142
+ i[4] || (i[4] = l((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
143
+ i[5] || (i[5] = l(F((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
135
144
  ],
136
145
  onKeyup: [
137
- i[6] || (i[6] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
138
- i[7] || (i[7] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
146
+ i[6] || (i[6] = l((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
147
+ i[7] || (i[7] = l((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
139
148
  ]
140
149
  }, [
141
- e.iconStart ? (s(), l("span", {
150
+ e.iconStart ? (a(), t("span", {
142
151
  key: 0,
143
- class: p(["dpiV3_icon", e.iconSizeClass])
152
+ class: d(["dpiV3_icon", e.iconSizeClass])
144
153
  }, [
145
- e.iconStart === "reset" ? (s(), t(F, {
154
+ e.iconStart === "reset" ? (a(), o(A, {
146
155
  key: 0,
147
156
  size: e.size === "small" ? "16px" : "24px",
148
157
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
149
- }, null, 8, ["size", "color"])) : a("", !0),
150
- e.iconStart === "plus" ? (s(), t(A, {
158
+ }, null, 8, ["size", "color"])) : s("", !0),
159
+ e.iconStart === "plus" ? (a(), o(S, {
151
160
  key: 1,
152
161
  size: e.size === "small" ? "16px" : "24px",
153
162
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : e.disabled ? "#aedff8" : "#0172AD"
154
- }, null, 8, ["size", "color"])) : a("", !0),
155
- e.iconStart === "trash" ? (s(), t(d, {
163
+ }, null, 8, ["size", "color"])) : s("", !0),
164
+ e.iconStart === "trash" ? (a(), o(u, {
156
165
  key: 2,
157
166
  size: e.size === "small" ? "16px" : "24px",
158
167
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
159
- }, null, 8, ["size", "color"])) : a("", !0),
160
- e.iconStart === "MagnifyingGlass" ? (s(), t(y, {
168
+ }, null, 8, ["size", "color"])) : s("", !0),
169
+ e.iconStart === "MagnifyingGlass" ? (a(), o(p, {
161
170
  key: 3,
162
171
  size: e.size === "small" ? "16px" : "24px",
163
172
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
164
- }, null, 8, ["size", "color"])) : a("", !0),
165
- e.iconStart === "Check" ? (s(), t(u, {
173
+ }, null, 8, ["size", "color"])) : s("", !0),
174
+ e.iconStart === "Check" ? (a(), o(y, {
166
175
  key: 4,
167
176
  size: e.size === "small" ? "16px" : "24px",
168
177
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
169
- }, null, 8, ["size", "color"])) : a("", !0),
170
- e.iconStart === "CaretLeft" ? (s(), t(S, {
178
+ }, null, 8, ["size", "color"])) : s("", !0),
179
+ e.iconStart === "CaretLeft" ? (a(), o(P, {
171
180
  key: 5,
172
181
  size: e.size === "small" ? "16px" : "24px",
173
182
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
174
- }, null, 8, ["size", "color"])) : a("", !0),
175
- e.iconStart === "PlusSquare" ? (s(), t(h, {
183
+ }, null, 8, ["size", "color"])) : s("", !0),
184
+ e.iconStart === "PlusSquare" ? (a(), o(z, {
176
185
  key: 6,
177
186
  size: e.size === "small" ? "16px" : "24px",
178
187
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
179
- }, null, 8, ["size", "color"])) : a("", !0)
180
- ], 2)) : a("", !0),
181
- E("span", null, G(e.buttonText), 1),
182
- e.iconEnd ? (s(), l("span", {
188
+ }, null, 8, ["size", "color"])) : s("", !0)
189
+ ], 2)) : s("", !0),
190
+ L("span", null, O(e.buttonText), 1),
191
+ e.loading ? (a(), t("span", {
183
192
  key: 1,
184
- class: p(["dpiV3_icon", e.iconSizeClass])
193
+ class: d(["dpiV3_loading-overlay", `dpiV3_loading-overlay-${e.variant}`])
185
194
  }, [
186
- e.iconEnd === "MagnifyingGlass" ? (s(), t(y, {
195
+ h(v, {
196
+ size: e.size === "small" ? "16px" : "24px",
197
+ color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD",
198
+ weight: "bold",
199
+ class: "dpiV3_loading-spinner"
200
+ }, null, 8, ["size", "color"])
201
+ ], 2)) : s("", !0),
202
+ e.iconEnd ? (a(), t("span", {
203
+ key: 2,
204
+ class: d(["dpiV3_icon", e.iconSizeClass])
205
+ }, [
206
+ e.iconEnd === "MagnifyingGlass" ? (a(), o(p, {
187
207
  key: 0,
188
208
  size: e.size === "small" ? "16px" : "24px",
189
209
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
190
- }, null, 8, ["size", "color"])) : a("", !0),
191
- e.iconEnd === "Check" ? (s(), t(u, {
210
+ }, null, 8, ["size", "color"])) : s("", !0),
211
+ e.iconEnd === "Check" ? (a(), o(y, {
192
212
  key: 1,
193
213
  size: e.size === "small" ? "16px" : "24px",
194
214
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
195
- }, null, 8, ["size", "color"])) : a("", !0),
196
- e.iconEnd === "CaretRight" ? (s(), t(P, {
215
+ }, null, 8, ["size", "color"])) : s("", !0),
216
+ e.iconEnd === "CaretRight" ? (a(), o(f, {
197
217
  key: 2,
198
218
  size: e.size === "small" ? "16px" : "24px",
199
219
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
200
- }, null, 8, ["size", "color"])) : a("", !0),
201
- e.iconEnd === "Out" ? (s(), t(f, {
220
+ }, null, 8, ["size", "color"])) : s("", !0),
221
+ e.iconEnd === "Out" ? (a(), o(c, {
202
222
  key: 3,
203
223
  size: e.size === "small" ? "16px" : "24px",
204
224
  color: e.variant === "primary" ? "#0172AD" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
205
- }, null, 8, ["size", "color"])) : a("", !0)
206
- ], 2)) : a("", !0)
207
- ], 46, R)) : a("", !0),
208
- e.buttonText ? a("", !0) : (s(), l("div", {
225
+ }, null, 8, ["size", "color"])) : s("", !0)
226
+ ], 2)) : s("", !0)
227
+ ], 46, X)) : s("", !0),
228
+ e.buttonText ? s("", !0) : (a(), t("div", {
209
229
  key: 1,
210
230
  tabindex: "0",
211
- class: p(["dpiV3_button-icon-only", [
231
+ class: d(["dpiV3_button-icon-only", [
212
232
  e.iconSizeClass,
213
233
  { "dpiV3_button-icon-only-large": e.size === "large" },
214
234
  { activeStatePrimary: e.isPrimaryActive && e.variant === "primary" },
215
235
  { activeStateSecondary: e.isSecondaryActive && e.variant === "secondary" },
216
- { activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" }
236
+ { activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" },
237
+ { "dpiV3_button-loading": e.loading }
217
238
  ]]),
218
- disabled: e.disabled,
219
- style: v(e.focusStyle),
239
+ disabled: e.isButtonDisabled,
240
+ style: m(e.focusStyle),
220
241
  onMousedown: i[8] || (i[8] = (...r) => e.removeFocus && e.removeFocus(...r)),
221
242
  onMouseup: i[9] || (i[9] = (...r) => e.removeActiveState && e.removeActiveState(...r)),
222
243
  onFocus: i[10] || (i[10] = (r) => e.isFocused = !0),
223
244
  onBlur: i[11] || (i[11] = (r) => e.isFocused = !1),
224
245
  onKeydown: [
225
- i[12] || (i[12] = n((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
226
- i[13] || (i[13] = n(m((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
246
+ i[12] || (i[12] = l((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
247
+ i[13] || (i[13] = l(F((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
227
248
  ],
228
249
  onKeyup: [
229
- i[14] || (i[14] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
230
- i[15] || (i[15] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
250
+ i[14] || (i[14] = l((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
251
+ i[15] || (i[15] = l((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
231
252
  ]
232
253
  }, [
233
- e.buttonText ? a("", !0) : (s(), l("span", I, [
234
- e.iconStart === "MagnifyingGlass" ? (s(), t(y, {
254
+ e.loading ? (a(), t("span", {
255
+ key: 0,
256
+ class: d(["dpiV3_loading-overlay", `dpiV3_loading-overlay-${e.variant}`])
257
+ }, [
258
+ h(v, {
259
+ size: e.size === "small" ? "16px" : "24px",
260
+ color: e.variant === "primary" ? "#FFFFFF" : (e.variant === "secondary", "#0172AD"),
261
+ weight: "bold",
262
+ class: "dpiV3_loading-spinner"
263
+ }, null, 8, ["size", "color"])
264
+ ], 2)) : s("", !0),
265
+ e.buttonText ? s("", !0) : (a(), t("span", H, [
266
+ e.iconStart === "MagnifyingGlass" ? (a(), o(p, {
235
267
  key: 0,
236
268
  size: e.size === "small" ? "16px" : "24px",
237
269
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
238
- }, null, 8, ["size", "color"])) : a("", !0),
239
- e.iconStart === "Check" ? (s(), t(u, {
270
+ }, null, 8, ["size", "color"])) : s("", !0),
271
+ e.iconStart === "Check" ? (a(), o(y, {
240
272
  key: 1,
241
273
  size: e.size === "small" ? "16px" : "24px",
242
274
  color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
243
- }, null, 8, ["size", "color"])) : a("", !0),
244
- e.iconStart === "pen" ? (s(), t(z, {
275
+ }, null, 8, ["size", "color"])) : s("", !0),
276
+ e.iconStart === "pen" ? (a(), o(g, {
245
277
  key: 2,
246
278
  size: e.size === "small" ? "16px" : "24px",
247
279
  color: e.variant === "secondary" ? "#0172AD" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
248
- }, null, 8, ["size", "color"])) : a("", !0),
249
- e.iconStart === "Trash" ? (s(), t(d, {
280
+ }, null, 8, ["size", "color"])) : s("", !0),
281
+ e.iconStart === "Trash" ? (a(), o(u, {
250
282
  key: 3,
251
283
  size: e.size === "small" ? "16px" : "24px",
252
284
  color: e.variant === "secondary" ? "#0172AD" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
253
- }, null, 8, ["size", "color"])) : a("", !0)
285
+ }, null, 8, ["size", "color"])) : s("", !0)
254
286
  ]))
255
- ], 46, N))
287
+ ], 46, j))
256
288
  ], 16);
257
289
  }
258
- const ie = /* @__PURE__ */ L(O, [["render", X], ["__scopeId", "data-v-25e10506"]]);
290
+ const se = /* @__PURE__ */ R(I, [["render", J], ["__scopeId", "data-v-720acf5f"]]);
259
291
  export {
260
- ie as default
292
+ se as default
261
293
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./HardwareForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b946f96b"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6990414c"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };