@emporix/process-diagram 1.0.3 → 1.0.5
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.
- package/dist/Steps.d.ts.map +1 -1
- package/dist/components/ProcessDiagram.d.ts +1 -1
- package/dist/components/ProcessDiagram.d.ts.map +1 -1
- package/dist/components/plus-button/PlusButton.d.ts +1 -1
- package/dist/components/plus-button/PlusButton.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +245 -210
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as C, Fragment as s1, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import O, { forwardRef as
|
|
2
|
+
import O, { forwardRef as c1, useState as E, useRef as T, useCallback as H, useImperativeHandle as l1, useEffect as V, createContext as a1, useMemo as j, useContext as d1 } from "react";
|
|
3
3
|
import { createPortal as u1 } from "react-dom";
|
|
4
|
-
const p1 = "
|
|
4
|
+
const p1 = "_container_1rumk_1", m1 = "_step_1rumk_8", h1 = "_selected_1rumk_23", C1 = "_selectedInvalid_1rumk_29", g1 = "_isSet_1rumk_35", f1 = "_invalid_1rumk_39", v1 = "_filterFlag_1rumk_45", _1 = "_title_1rumk_71", y1 = "_icon_1rumk_88", w1 = "_content_1rumk_106", k1 = "_dotsButton_1rumk_112", f = {
|
|
5
5
|
container: p1,
|
|
6
|
-
step:
|
|
7
|
-
selected:
|
|
6
|
+
step: m1,
|
|
7
|
+
selected: h1,
|
|
8
8
|
selectedInvalid: C1,
|
|
9
9
|
isSet: g1,
|
|
10
10
|
invalid: f1,
|
|
11
11
|
filterFlag: v1,
|
|
12
12
|
title: _1,
|
|
13
|
-
icon:
|
|
13
|
+
icon: y1,
|
|
14
14
|
content: w1,
|
|
15
|
-
dotsButton:
|
|
15
|
+
dotsButton: k1
|
|
16
16
|
};
|
|
17
17
|
var J = {
|
|
18
18
|
color: void 0,
|
|
@@ -20,18 +20,18 @@ var J = {
|
|
|
20
20
|
className: void 0,
|
|
21
21
|
style: void 0,
|
|
22
22
|
attr: void 0
|
|
23
|
-
}, Y = O.createContext && /* @__PURE__ */ O.createContext(J),
|
|
24
|
-
function
|
|
23
|
+
}, Y = O.createContext && /* @__PURE__ */ O.createContext(J), x1 = ["attr", "size", "title"];
|
|
24
|
+
function I1(e, i) {
|
|
25
25
|
if (e == null) return {};
|
|
26
|
-
var n =
|
|
26
|
+
var n = b1(e, i), r, d;
|
|
27
27
|
if (Object.getOwnPropertySymbols) {
|
|
28
28
|
var p = Object.getOwnPropertySymbols(e);
|
|
29
|
-
for (
|
|
30
|
-
r = p[
|
|
29
|
+
for (d = 0; d < p.length; d++)
|
|
30
|
+
r = p[d], !(i.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
31
31
|
}
|
|
32
32
|
return n;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function b1(e, i) {
|
|
35
35
|
if (e == null) return {};
|
|
36
36
|
var n = {};
|
|
37
37
|
for (var r in e)
|
|
@@ -55,8 +55,8 @@ function X(e, i) {
|
|
|
55
55
|
var n = Object.keys(e);
|
|
56
56
|
if (Object.getOwnPropertySymbols) {
|
|
57
57
|
var r = Object.getOwnPropertySymbols(e);
|
|
58
|
-
i && (r = r.filter(function(
|
|
59
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
58
|
+
i && (r = r.filter(function(d) {
|
|
59
|
+
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
60
60
|
})), n.push.apply(n, r);
|
|
61
61
|
}
|
|
62
62
|
return n;
|
|
@@ -65,14 +65,14 @@ function z(e) {
|
|
|
65
65
|
for (var i = 1; i < arguments.length; i++) {
|
|
66
66
|
var n = arguments[i] != null ? arguments[i] : {};
|
|
67
67
|
i % 2 ? X(Object(n), !0).forEach(function(r) {
|
|
68
|
-
|
|
68
|
+
N1(e, r, n[r]);
|
|
69
69
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X(Object(n)).forEach(function(r) {
|
|
70
70
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
return e;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function N1(e, i, n) {
|
|
76
76
|
return i = L1(i), i in e ? Object.defineProperty(e, i, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = n, e;
|
|
77
77
|
}
|
|
78
78
|
function L1(e) {
|
|
@@ -103,20 +103,20 @@ function P1(e) {
|
|
|
103
103
|
var i = (n) => {
|
|
104
104
|
var {
|
|
105
105
|
attr: r,
|
|
106
|
-
size:
|
|
106
|
+
size: d,
|
|
107
107
|
title: p
|
|
108
|
-
} = e,
|
|
108
|
+
} = e, l = I1(e, x1), c = d || n.size || "1em", o;
|
|
109
109
|
return n.className && (o = n.className), e.className && (o = (o ? o + " " : "") + e.className), /* @__PURE__ */ O.createElement("svg", A({
|
|
110
110
|
stroke: "currentColor",
|
|
111
111
|
fill: "currentColor",
|
|
112
112
|
strokeWidth: "0"
|
|
113
|
-
}, n.attr, r,
|
|
113
|
+
}, n.attr, r, l, {
|
|
114
114
|
className: o,
|
|
115
115
|
style: z(z({
|
|
116
116
|
color: e.color || n.color
|
|
117
117
|
}, n.style), e.style),
|
|
118
|
-
height:
|
|
119
|
-
width:
|
|
118
|
+
height: c,
|
|
119
|
+
width: c,
|
|
120
120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
121
121
|
}), p && /* @__PURE__ */ O.createElement("title", null, p), e.children);
|
|
122
122
|
};
|
|
@@ -131,104 +131,104 @@ function G(e) {
|
|
|
131
131
|
function e1(e) {
|
|
132
132
|
return R({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z" }, child: [] }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z" }, child: [] }] })(e);
|
|
133
133
|
}
|
|
134
|
-
const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_19663_37", H1 = "_disabled_19663_52",
|
|
134
|
+
const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_19663_37", H1 = "_disabled_19663_52", T1 = "_menuItemIcon_19663_57", $1 = "_menuItemText_19663_63", j1 = "_overlay_19663_69", I = {
|
|
135
135
|
panel: O1,
|
|
136
136
|
panelExiting: B1,
|
|
137
137
|
menuItem: S1,
|
|
138
138
|
disabled: H1,
|
|
139
|
-
menuItemIcon:
|
|
140
|
-
menuItemText:
|
|
139
|
+
menuItemIcon: T1,
|
|
140
|
+
menuItemText: $1,
|
|
141
141
|
overlay: j1
|
|
142
142
|
}, R1 = (e) => {
|
|
143
143
|
const n = e.currentTarget ?? e.target;
|
|
144
144
|
if (n?.getBoundingClientRect) {
|
|
145
|
-
const
|
|
146
|
-
return { top:
|
|
145
|
+
const d = n.getBoundingClientRect();
|
|
146
|
+
return { top: d.bottom + 2, left: d.left };
|
|
147
147
|
}
|
|
148
148
|
const r = e;
|
|
149
149
|
return {
|
|
150
150
|
top: (r.clientY ?? 0) + 2,
|
|
151
151
|
left: r.clientX ?? 0
|
|
152
152
|
};
|
|
153
|
-
}, t1 =
|
|
154
|
-
const [
|
|
153
|
+
}, t1 = c1(function({ model: i, popup: n = !0, onHide: r, onClick: d }, p) {
|
|
154
|
+
const [l, c] = E(!1), [o, g] = E(!1), [w, S] = E({ top: 0, left: 0 }), _ = T(null), v = H(() => {
|
|
155
155
|
o || g(!0);
|
|
156
156
|
}, [o]), B = H(
|
|
157
|
-
(
|
|
158
|
-
o &&
|
|
157
|
+
(a) => {
|
|
158
|
+
o && a.animationName.includes("menuOut") && (c(!1), g(!1), r?.());
|
|
159
159
|
},
|
|
160
160
|
[o, r]
|
|
161
|
-
),
|
|
162
|
-
S(R1(
|
|
163
|
-
}, []),
|
|
164
|
-
(
|
|
165
|
-
|
|
161
|
+
), b = H((a) => {
|
|
162
|
+
S(R1(a)), g(!1), c(!0);
|
|
163
|
+
}, []), k = H(
|
|
164
|
+
(a) => {
|
|
165
|
+
l ? v() : b(a);
|
|
166
166
|
},
|
|
167
|
-
[
|
|
167
|
+
[l, v, b]
|
|
168
168
|
);
|
|
169
|
-
|
|
169
|
+
l1(
|
|
170
170
|
p,
|
|
171
171
|
() => ({
|
|
172
|
-
show:
|
|
172
|
+
show: b,
|
|
173
173
|
hide: v,
|
|
174
|
-
toggle:
|
|
174
|
+
toggle: k
|
|
175
175
|
}),
|
|
176
|
-
[
|
|
176
|
+
[b, v, k]
|
|
177
177
|
), V(() => {
|
|
178
|
-
if (!
|
|
179
|
-
const
|
|
178
|
+
if (!l) return;
|
|
179
|
+
const a = (u) => {
|
|
180
180
|
u.key === "Escape" && v();
|
|
181
181
|
}, s = (u) => {
|
|
182
|
-
const
|
|
183
|
-
|
|
182
|
+
const m = _.current;
|
|
183
|
+
m && !m.contains(u.target) && v();
|
|
184
184
|
};
|
|
185
|
-
return document.addEventListener("keydown",
|
|
186
|
-
document.removeEventListener("keydown",
|
|
185
|
+
return document.addEventListener("keydown", a), document.addEventListener("mousedown", s), () => {
|
|
186
|
+
document.removeEventListener("keydown", a), document.removeEventListener("mousedown", s);
|
|
187
187
|
};
|
|
188
|
-
}, [
|
|
189
|
-
const L = (
|
|
190
|
-
s.stopPropagation(),
|
|
191
|
-
},
|
|
192
|
-
const u = (
|
|
193
|
-
return
|
|
188
|
+
}, [l, v]);
|
|
189
|
+
const L = (a, s) => {
|
|
190
|
+
s.stopPropagation(), a.command?.({ originalEvent: s, item: a }), v();
|
|
191
|
+
}, x = (a, s) => {
|
|
192
|
+
const u = (m) => L(a, m);
|
|
193
|
+
return a.template ? /* @__PURE__ */ t(O.Fragment, { children: a.template(a, { onClick: u }) }, s) : /* @__PURE__ */ C(
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
196
|
type: "button",
|
|
197
|
-
className: `${
|
|
198
|
-
onClick: (
|
|
199
|
-
|
|
197
|
+
className: `${I.menuItem} ${a.disabled && I.disabled}`,
|
|
198
|
+
onClick: (m) => {
|
|
199
|
+
a.disabled || u(m);
|
|
200
200
|
},
|
|
201
201
|
children: [
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ t("span", { className:
|
|
202
|
+
a.icon && /* @__PURE__ */ t("span", { className: I.menuItemIcon, children: a.icon }),
|
|
203
|
+
/* @__PURE__ */ t("span", { className: I.menuItemText, children: a.label })
|
|
204
204
|
]
|
|
205
205
|
},
|
|
206
206
|
s
|
|
207
207
|
);
|
|
208
208
|
};
|
|
209
|
-
return !
|
|
209
|
+
return !l || !n ? null : u1(
|
|
210
210
|
/* @__PURE__ */ C(s1, { children: [
|
|
211
211
|
/* @__PURE__ */ t(
|
|
212
212
|
"div",
|
|
213
213
|
{
|
|
214
|
-
className:
|
|
214
|
+
className: I.overlay,
|
|
215
215
|
"aria-hidden": !0,
|
|
216
216
|
onClick: () => v(),
|
|
217
|
-
onMouseDown: (
|
|
217
|
+
onMouseDown: (a) => a.stopPropagation()
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
220
|
/* @__PURE__ */ t(
|
|
221
221
|
"div",
|
|
222
222
|
{
|
|
223
223
|
ref: _,
|
|
224
|
-
className: `${
|
|
224
|
+
className: `${I.panel} ${o ? I.panelExiting : ""}`,
|
|
225
225
|
role: "menu",
|
|
226
226
|
style: { top: w.top, left: w.left },
|
|
227
227
|
onAnimationEnd: B,
|
|
228
|
-
onClick: (
|
|
229
|
-
|
|
228
|
+
onClick: (a) => {
|
|
229
|
+
a.stopPropagation(), d?.(a);
|
|
230
230
|
},
|
|
231
|
-
children: i.map(
|
|
231
|
+
children: i.map(x)
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
] }),
|
|
@@ -237,11 +237,11 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
237
237
|
}), n1 = () => (e, i) => /* @__PURE__ */ C(
|
|
238
238
|
"button",
|
|
239
239
|
{
|
|
240
|
-
className:
|
|
240
|
+
className: I.menuItem,
|
|
241
241
|
onClick: (n) => i.onClick(n),
|
|
242
242
|
children: [
|
|
243
|
-
/* @__PURE__ */ t("span", { className:
|
|
244
|
-
/* @__PURE__ */ t("span", { className:
|
|
243
|
+
/* @__PURE__ */ t("span", { className: I.menuItemIcon, children: e.icon }),
|
|
244
|
+
/* @__PURE__ */ t("span", { className: I.menuItemText, children: e.label })
|
|
245
245
|
]
|
|
246
246
|
}
|
|
247
247
|
), K = ({
|
|
@@ -275,20 +275,20 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
275
275
|
}
|
|
276
276
|
), i1 = a1(
|
|
277
277
|
void 0
|
|
278
|
-
),
|
|
279
|
-
const [i, n] = E([]), r = H((
|
|
278
|
+
), we = ({ children: e }) => {
|
|
279
|
+
const [i, n] = E([]), r = H((l, c) => {
|
|
280
280
|
n((o) => (o.forEach((g) => {
|
|
281
|
-
g.current && g !==
|
|
282
|
-
}), [])),
|
|
283
|
-
}, []),
|
|
284
|
-
n((
|
|
281
|
+
g.current && g !== l && g.current.hide(c);
|
|
282
|
+
}), [])), l.current?.toggle(c), n([l]);
|
|
283
|
+
}, []), d = H((l) => {
|
|
284
|
+
n((c) => c.filter((o) => o !== l));
|
|
285
285
|
}, []), p = j(
|
|
286
286
|
() => ({
|
|
287
287
|
openMenus: i,
|
|
288
288
|
openMenu: r,
|
|
289
|
-
closeMenu:
|
|
289
|
+
closeMenu: d
|
|
290
290
|
}),
|
|
291
|
-
[i, r,
|
|
291
|
+
[i, r, d]
|
|
292
292
|
);
|
|
293
293
|
return /* @__PURE__ */ t(i1.Provider, { value: p, children: e });
|
|
294
294
|
}, F1 = () => {
|
|
@@ -320,40 +320,40 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
320
320
|
isSet: i,
|
|
321
321
|
isSelected: n,
|
|
322
322
|
isFilter: r,
|
|
323
|
-
className:
|
|
323
|
+
className: d,
|
|
324
324
|
title: p,
|
|
325
|
-
icon:
|
|
326
|
-
contextMenuItems:
|
|
325
|
+
icon: l,
|
|
326
|
+
contextMenuItems: c = void 0,
|
|
327
327
|
onClick: o,
|
|
328
328
|
onDeleteStep: g,
|
|
329
329
|
onUpdateFilter: w,
|
|
330
330
|
subtitle: S,
|
|
331
331
|
isInvalid: _,
|
|
332
332
|
idx: v
|
|
333
|
-
} = e, B =
|
|
333
|
+
} = e, B = T(null), { openMenu: b, closeMenu: k } = F1(), L = n1(), x = j(() => [
|
|
334
334
|
{
|
|
335
335
|
label: "Add Step Filter",
|
|
336
336
|
icon: /* @__PURE__ */ t("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ t(K, {}) }),
|
|
337
|
-
command: (
|
|
338
|
-
|
|
337
|
+
command: (h) => {
|
|
338
|
+
h?.originalEvent?.stopPropagation(), w && w(v);
|
|
339
339
|
},
|
|
340
340
|
template: L
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
label: "Remove",
|
|
344
344
|
icon: /* @__PURE__ */ t(e1, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
345
|
-
command: (
|
|
346
|
-
|
|
345
|
+
command: (h) => {
|
|
346
|
+
h?.originalEvent?.stopPropagation(), g && g(v);
|
|
347
347
|
},
|
|
348
348
|
template: L
|
|
349
349
|
}
|
|
350
|
-
], [w, g, v]),
|
|
351
|
-
|
|
352
|
-
}, u = j(() => n && _ ? f.step + " " + f.selectedInvalid : n ? f.step + " " + f.selected : i ? f.step + " " + f.isSet : _ ? f.step + " " + f.invalid : f.step, [i, n, _]),
|
|
353
|
-
return /* @__PURE__ */ t("div", { className: f.container + " " +
|
|
350
|
+
], [w, g, v]), a = j(() => c !== void 0 ? c : x, [c, x]), s = (h) => {
|
|
351
|
+
h.stopPropagation(), b(B, h);
|
|
352
|
+
}, u = j(() => n && _ ? f.step + " " + f.selectedInvalid : n ? f.step + " " + f.selected : i ? f.step + " " + f.isSet : _ ? f.step + " " + f.invalid : f.step, [i, n, _]), m = j(() => _ ? /* @__PURE__ */ t(A1, { color: "#E32012" }) : l, [l, _]);
|
|
353
|
+
return /* @__PURE__ */ t("div", { className: f.container + " " + d, children: /* @__PURE__ */ C("div", { children: [
|
|
354
354
|
/* @__PURE__ */ C("div", { className: u, onClick: o, children: [
|
|
355
355
|
/* @__PURE__ */ C("div", { className: f.content, children: [
|
|
356
|
-
/* @__PURE__ */ t("div", { className: `${f.icon} ${_ && f.invalid}`, children:
|
|
356
|
+
/* @__PURE__ */ t("div", { className: `${f.icon} ${_ && f.invalid}`, children: m }),
|
|
357
357
|
/* @__PURE__ */ t("div", { className: f.title, children: p })
|
|
358
358
|
] }),
|
|
359
359
|
/* @__PURE__ */ t(
|
|
@@ -375,11 +375,11 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
375
375
|
/* @__PURE__ */ t(
|
|
376
376
|
t1,
|
|
377
377
|
{
|
|
378
|
-
model:
|
|
378
|
+
model: a,
|
|
379
379
|
popup: !0,
|
|
380
380
|
ref: B,
|
|
381
|
-
onClick: (
|
|
382
|
-
onHide: () =>
|
|
381
|
+
onClick: (h) => h.stopPropagation(),
|
|
382
|
+
onHide: () => k(B)
|
|
383
383
|
}
|
|
384
384
|
)
|
|
385
385
|
] }),
|
|
@@ -392,8 +392,8 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
392
392
|
onClick: () => {
|
|
393
393
|
w && w(v);
|
|
394
394
|
},
|
|
395
|
-
onKeyDown: (
|
|
396
|
-
(
|
|
395
|
+
onKeyDown: (h) => {
|
|
396
|
+
(h.key === "Enter" || h.key === " ") && w && (h.preventDefault(), w(v));
|
|
397
397
|
},
|
|
398
398
|
children: [
|
|
399
399
|
/* @__PURE__ */ t(K, { color: "#3B64A0" }),
|
|
@@ -420,7 +420,7 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
420
420
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
|
|
421
421
|
] }), D1 = "_multipleTriggersIcon_oxhdi_1", W1 = {
|
|
422
422
|
multipleTriggersIcon: D1
|
|
423
|
-
}, V1 = () => /* @__PURE__ */ t("div", { className: W1.multipleTriggersIcon, children: /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 3.75C1.5 3.15326 1.73705 2.58097 2.15901 2.15901C2.58097 1.73705 3.15326 1.5 3.75 1.5H5.25C5.84674 1.5 6.41903 1.73705 6.84099 2.15901C7.26295 2.58097 7.5 3.15326 7.5 3.75L13.701 3.75C13.8661 3.46404 14.1209 3.24054 14.426 3.11418C14.7311 2.98782 15.0693 2.96565 15.3883 3.05111C15.7072 3.13657 15.9891 3.32489 16.1901 3.58686C16.3911 3.84882 16.5 4.1698 16.5 4.5C16.5 4.8302 16.3911 5.15118 16.1901 5.41314C15.9891 5.67511 15.7072 5.86343 15.3883 5.94889C15.0693 6.03435 14.7311 6.01218 14.426 5.88582C14.1209 5.75946 13.8661 5.53596 13.701 5.25H10.686C10.956 5.52 11.196 5.8215 11.412 6.1575C12.369 7.6455 12.75 9.6885 12.75 12C12.75 14.9895 13.1355 16.638 13.8195 17.55C14.3535 18.264 15.162 18.6315 16.5 18.726C16.5063 18.1334 16.7462 17.5673 17.1674 17.1505C17.5887 16.7337 18.1574 16.5 18.75 16.5H20.25C20.8467 16.5 21.419 16.7371 21.841 17.159C22.2629 17.581 22.5 18.1533 22.5 18.75V20.25C22.5 20.8467 22.2629 21.419 21.841 21.841C21.419 22.2629 20.8467 22.5 20.25 22.5H18.75C18.1533 22.5 17.581 22.2629 17.159 21.841C16.7371 21.419 16.5 20.8467 16.5 20.25H10.299C10.1339 20.536 9.87905 20.7595 9.57399 20.8858C9.26892 21.0122 8.93068 21.0344 8.61173 20.9489C8.29278 20.8634 8.01095 20.6751 7.80993 20.4131C7.60892 20.1512 7.49996 19.8302 7.49996 19.5C7.49996 19.1698 7.60892 18.8488 7.80993 18.5869C8.01095 18.3249 8.29278 18.1366 8.61173 18.0511C8.93068 17.9656 9.26892 17.9878 9.57399 18.1142C9.87905 18.2405 10.1339 18.464 10.299 18.75H12.8655C12.7785 18.6538 12.6959 18.5537 12.618 18.45C11.6145 17.1105 11.25 15.0105 11.25 12C11.25 9.81 10.881 8.1045 10.1505 6.9675C9.5655 6.06 8.7225 5.4675 7.5 5.2995C7.48706 5.88762 7.2443 6.44728 6.82374 6.85859C6.40318 7.2699 5.83826 7.50014 5.25 7.5H3.75C3.15326 7.5 2.58097 7.26295 2.15901 6.84099C1.73705 6.41903 1.5 5.84674 1.5 5.25V3.75ZM3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V5.25C3 5.44891 3.07902 5.63968 3.21967 5.78033C3.36032 5.92098 3.55109 6 3.75 6H5.25C5.44891 6 5.63968 5.92098 5.78033 5.78033C5.92098 5.63968 6 5.44891 6 5.25V3.75C6 3.55109 5.92098 3.36032 5.78033 3.21967C5.63968 3.07902 5.44891 3 5.25 3H3.75ZM18.75 18C18.5511 18 18.3603 18.079 18.2197 18.2197C18.079 18.3603 18 18.5511 18 18.75V20.25C18 20.4489 18.079 20.6397 18.2197 20.7803C18.3603 20.921 18.5511 21 18.75 21H20.25C20.4489 21 20.6397 20.921 20.7803 20.7803C20.921 20.6397 21 20.4489 21 20.25V18.75C21 18.5511 20.921 18.3603 20.7803 18.2197C20.6397 18.079 20.4489 18 20.25 18H18.75Z", fill: "white" }) }) }), Z1 = "
|
|
423
|
+
}, V1 = () => /* @__PURE__ */ t("div", { className: W1.multipleTriggersIcon, children: /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 3.75C1.5 3.15326 1.73705 2.58097 2.15901 2.15901C2.58097 1.73705 3.15326 1.5 3.75 1.5H5.25C5.84674 1.5 6.41903 1.73705 6.84099 2.15901C7.26295 2.58097 7.5 3.15326 7.5 3.75L13.701 3.75C13.8661 3.46404 14.1209 3.24054 14.426 3.11418C14.7311 2.98782 15.0693 2.96565 15.3883 3.05111C15.7072 3.13657 15.9891 3.32489 16.1901 3.58686C16.3911 3.84882 16.5 4.1698 16.5 4.5C16.5 4.8302 16.3911 5.15118 16.1901 5.41314C15.9891 5.67511 15.7072 5.86343 15.3883 5.94889C15.0693 6.03435 14.7311 6.01218 14.426 5.88582C14.1209 5.75946 13.8661 5.53596 13.701 5.25H10.686C10.956 5.52 11.196 5.8215 11.412 6.1575C12.369 7.6455 12.75 9.6885 12.75 12C12.75 14.9895 13.1355 16.638 13.8195 17.55C14.3535 18.264 15.162 18.6315 16.5 18.726C16.5063 18.1334 16.7462 17.5673 17.1674 17.1505C17.5887 16.7337 18.1574 16.5 18.75 16.5H20.25C20.8467 16.5 21.419 16.7371 21.841 17.159C22.2629 17.581 22.5 18.1533 22.5 18.75V20.25C22.5 20.8467 22.2629 21.419 21.841 21.841C21.419 22.2629 20.8467 22.5 20.25 22.5H18.75C18.1533 22.5 17.581 22.2629 17.159 21.841C16.7371 21.419 16.5 20.8467 16.5 20.25H10.299C10.1339 20.536 9.87905 20.7595 9.57399 20.8858C9.26892 21.0122 8.93068 21.0344 8.61173 20.9489C8.29278 20.8634 8.01095 20.6751 7.80993 20.4131C7.60892 20.1512 7.49996 19.8302 7.49996 19.5C7.49996 19.1698 7.60892 18.8488 7.80993 18.5869C8.01095 18.3249 8.29278 18.1366 8.61173 18.0511C8.93068 17.9656 9.26892 17.9878 9.57399 18.1142C9.87905 18.2405 10.1339 18.464 10.299 18.75H12.8655C12.7785 18.6538 12.6959 18.5537 12.618 18.45C11.6145 17.1105 11.25 15.0105 11.25 12C11.25 9.81 10.881 8.1045 10.1505 6.9675C9.5655 6.06 8.7225 5.4675 7.5 5.2995C7.48706 5.88762 7.2443 6.44728 6.82374 6.85859C6.40318 7.2699 5.83826 7.50014 5.25 7.5H3.75C3.15326 7.5 2.58097 7.26295 2.15901 6.84099C1.73705 6.41903 1.5 5.84674 1.5 5.25V3.75ZM3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V5.25C3 5.44891 3.07902 5.63968 3.21967 5.78033C3.36032 5.92098 3.55109 6 3.75 6H5.25C5.44891 6 5.63968 5.92098 5.78033 5.78033C5.92098 5.63968 6 5.44891 6 5.25V3.75C6 3.55109 5.92098 3.36032 5.78033 3.21967C5.63968 3.07902 5.44891 3 5.25 3H3.75ZM18.75 18C18.5511 18 18.3603 18.079 18.2197 18.2197C18.079 18.3603 18 18.5511 18 18.75V20.25C18 20.4489 18.079 20.6397 18.2197 20.7803C18.3603 20.921 18.5511 21 18.75 21H20.25C20.4489 21 20.6397 20.921 20.7803 20.7803C20.921 20.6397 21 20.4489 21 20.25V18.75C21 18.5511 20.921 18.3603 20.7803 18.2197C20.6397 18.079 20.4489 18 20.25 18H18.75Z", fill: "white" }) }) }), Z1 = "_trigger_kfg1y_1", Y1 = "_title_kfg1y_7", X1 = "_empty_kfg1y_15", G1 = "_triggerContainer_kfg1y_21", K1 = "_stepsContainer_kfg1y_25", U1 = "_stepItem_kfg1y_51", q1 = "_curvesSvg_kfg1y_70", J1 = "_centralNode_kfg1y_78", Q1 = "_iconWrapper_kfg1y_104", ee = "_fadeIn_kfg1y_127", te = "_fadeOut_kfg1y_130", ne = "_operationContainer_kfg1y_134", y = {
|
|
424
424
|
trigger: Z1,
|
|
425
425
|
title: Y1,
|
|
426
426
|
empty: X1,
|
|
@@ -448,30 +448,30 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
448
448
|
title: i,
|
|
449
449
|
className: n,
|
|
450
450
|
onDeleteTrigger: r,
|
|
451
|
-
onAddTrigger:
|
|
451
|
+
onAddTrigger: d,
|
|
452
452
|
onSelectStep: p
|
|
453
453
|
}) => {
|
|
454
|
-
const
|
|
454
|
+
const l = T(null), c = T([]), [o, g] = E([]), [w, S] = E({ width: 0, height: 0 }), [_, v] = E(!1), [B, b] = E(!1), k = T(null);
|
|
455
455
|
if (V(() => {
|
|
456
456
|
const s = () => {
|
|
457
|
-
if (!
|
|
457
|
+
if (!l.current) return;
|
|
458
458
|
const u = [];
|
|
459
|
-
if (
|
|
460
|
-
if (
|
|
461
|
-
const M =
|
|
459
|
+
if (c.current.forEach((m, h) => {
|
|
460
|
+
if (m && l.current) {
|
|
461
|
+
const M = l.current.getBoundingClientRect(), N = m.getBoundingClientRect();
|
|
462
462
|
u.push({
|
|
463
|
-
id: e[
|
|
464
|
-
top:
|
|
465
|
-
right:
|
|
466
|
-
centerY:
|
|
463
|
+
id: e[h]?.id || `step-${h}`,
|
|
464
|
+
top: N.top - M.top,
|
|
465
|
+
right: N.right - M.left,
|
|
466
|
+
centerY: N.top - M.top + N.height / 2
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
}), g(u),
|
|
470
|
-
const
|
|
469
|
+
}), g(u), l.current && u.length > 0) {
|
|
470
|
+
const m = l.current.getBoundingClientRect(), h = Math.min(...u.map((P) => P.top)), M = c.current.filter(Boolean).map((P) => P?.offsetHeight || 68), N = Math.max(
|
|
471
471
|
...u.map((P, o1) => P.top + (M[o1] || 68))
|
|
472
472
|
), D = Math.max(...u.map((P) => P.right)) + 0, W = Math.max(
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
m.height,
|
|
474
|
+
N - h + 100
|
|
475
475
|
);
|
|
476
476
|
S({
|
|
477
477
|
width: D,
|
|
@@ -480,38 +480,38 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
483
|
-
}, [e]), V(() => (_ ? (
|
|
484
|
-
|
|
485
|
-
}, 0)) :
|
|
486
|
-
|
|
483
|
+
}, [e]), V(() => (_ ? (k.current && (clearTimeout(k.current), k.current = null), setTimeout(() => {
|
|
484
|
+
b(!0);
|
|
485
|
+
}, 0)) : k.current = setTimeout(() => {
|
|
486
|
+
b(!1);
|
|
487
487
|
}, 140), () => {
|
|
488
|
-
|
|
488
|
+
k.current && clearTimeout(k.current);
|
|
489
489
|
}), [_]), e.length === 0)
|
|
490
|
-
return /* @__PURE__ */ C("div", { className: `${
|
|
491
|
-
i && /* @__PURE__ */ t("h3", { className:
|
|
492
|
-
/* @__PURE__ */ t("div", { className:
|
|
490
|
+
return /* @__PURE__ */ C("div", { className: `${y.trigger} ${n || ""}`, children: [
|
|
491
|
+
i && /* @__PURE__ */ t("h3", { className: y.title, children: i }),
|
|
492
|
+
/* @__PURE__ */ t("div", { className: y.empty, children: "No steps" })
|
|
493
493
|
] });
|
|
494
494
|
const L = o.length > 0 ? re : 0;
|
|
495
|
-
let
|
|
496
|
-
o.length > 1 ?
|
|
497
|
-
const
|
|
498
|
-
const M =
|
|
499
|
-
return `M ${s} ${u} C ${Z} ${D}, ${W} ${
|
|
495
|
+
let x = 0;
|
|
496
|
+
o.length > 1 ? x = o.reduce((s, u) => s + u.top + F, 0) / o.length : o.length === 1 && (x = o[0].top + F);
|
|
497
|
+
const a = (s, u, m, h) => {
|
|
498
|
+
const M = m - s, N = Math.min(M * 0.6, 60), Z = s + N, D = u, W = m - N;
|
|
499
|
+
return `M ${s} ${u} C ${Z} ${D}, ${W} ${h}, ${m} ${h}`;
|
|
500
500
|
};
|
|
501
|
-
return /* @__PURE__ */ C("div", { className: `${
|
|
502
|
-
i && /* @__PURE__ */ t("h3", { className:
|
|
503
|
-
/* @__PURE__ */ C("div", { className:
|
|
504
|
-
/* @__PURE__ */ t("div", { className:
|
|
501
|
+
return /* @__PURE__ */ C("div", { className: `${y.trigger} ${n || ""}`, ref: l, children: [
|
|
502
|
+
i && /* @__PURE__ */ t("h3", { className: y.title, children: i }),
|
|
503
|
+
/* @__PURE__ */ C("div", { className: y.triggerContainer, children: [
|
|
504
|
+
/* @__PURE__ */ t("div", { className: y.stepsContainer, children: e.map((s, u) => /* @__PURE__ */ t(
|
|
505
505
|
"div",
|
|
506
506
|
{
|
|
507
|
-
ref: (
|
|
508
|
-
|
|
507
|
+
ref: (m) => {
|
|
508
|
+
c.current[u] = m;
|
|
509
509
|
},
|
|
510
510
|
children: /* @__PURE__ */ t(
|
|
511
511
|
r1,
|
|
512
512
|
{
|
|
513
513
|
title: s.title,
|
|
514
|
-
className:
|
|
514
|
+
className: y.stepItem,
|
|
515
515
|
idx: u,
|
|
516
516
|
isSet: s.isSet,
|
|
517
517
|
isSelected: s.isSelected,
|
|
@@ -537,7 +537,7 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
537
537
|
label: "Add More Triggers",
|
|
538
538
|
icon: /* @__PURE__ */ t(E1, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
539
539
|
command: () => {
|
|
540
|
-
|
|
540
|
+
d?.();
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
]
|
|
@@ -549,15 +549,15 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
549
549
|
/* @__PURE__ */ t("div", { style: { position: "relative" }, children: o.length > 1 && /* @__PURE__ */ t(
|
|
550
550
|
"svg",
|
|
551
551
|
{
|
|
552
|
-
className:
|
|
552
|
+
className: y.curvesSvg,
|
|
553
553
|
width: w.width,
|
|
554
554
|
height: w.height,
|
|
555
555
|
children: o.map((s) => {
|
|
556
|
-
const
|
|
556
|
+
const m = o.length === 1 ? o[0].top + F : s.top + F;
|
|
557
557
|
return /* @__PURE__ */ t(
|
|
558
558
|
"path",
|
|
559
559
|
{
|
|
560
|
-
d:
|
|
560
|
+
d: a(0, m, L, x),
|
|
561
561
|
stroke: "#3b64a0",
|
|
562
562
|
strokeWidth: "2",
|
|
563
563
|
fill: "none",
|
|
@@ -572,18 +572,18 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
572
572
|
/* @__PURE__ */ t(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
|
-
className:
|
|
575
|
+
className: y.centralNode,
|
|
576
576
|
style: {
|
|
577
577
|
"--node-x": `${L}px`,
|
|
578
|
-
"--node-y": `${
|
|
578
|
+
"--node-y": `${x}px`
|
|
579
579
|
},
|
|
580
580
|
onMouseEnter: () => v(!0),
|
|
581
581
|
onMouseLeave: () => v(!1),
|
|
582
582
|
children: B ? /* @__PURE__ */ t(
|
|
583
583
|
"div",
|
|
584
584
|
{
|
|
585
|
-
className: `${
|
|
586
|
-
onClick:
|
|
585
|
+
className: `${y.iconWrapper} ${_ ? y.fadeIn : y.fadeOut}`,
|
|
586
|
+
onClick: d,
|
|
587
587
|
children: /* @__PURE__ */ t(z1, {})
|
|
588
588
|
}
|
|
589
589
|
) : null
|
|
@@ -592,10 +592,10 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
592
592
|
/* @__PURE__ */ t(
|
|
593
593
|
"div",
|
|
594
594
|
{
|
|
595
|
-
className:
|
|
595
|
+
className: y.operationContainer,
|
|
596
596
|
style: {
|
|
597
597
|
"--op-x": `${L + 16}px`,
|
|
598
|
-
"--op-y": `${
|
|
598
|
+
"--op-y": `${x}px`
|
|
599
599
|
},
|
|
600
600
|
children: /* @__PURE__ */ t(V1, {})
|
|
601
601
|
}
|
|
@@ -632,9 +632,9 @@ const O1 = "_panel_19663_1", B1 = "_panelExiting_19663_13", S1 = "_menuItem_1966
|
|
|
632
632
|
)
|
|
633
633
|
]
|
|
634
634
|
}
|
|
635
|
-
),
|
|
636
|
-
stepLink:
|
|
637
|
-
stepLinkIcon:
|
|
635
|
+
), ce = "_stepLink_1ugcc_1", le = "_stepLinkIcon_1ugcc_8", ae = "_stepLinkLine_1ugcc_24", de = "_stepLinkContainer_1ugcc_46", $ = {
|
|
636
|
+
stepLink: ce,
|
|
637
|
+
stepLinkIcon: le,
|
|
638
638
|
stepLinkLine: ae,
|
|
639
639
|
stepLinkContainer: de
|
|
640
640
|
};
|
|
@@ -644,15 +644,20 @@ function ue(e) {
|
|
|
644
644
|
function pe(e) {
|
|
645
645
|
return R({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polygon", attr: { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }, child: [] }] })(e);
|
|
646
646
|
}
|
|
647
|
-
const U = ({
|
|
648
|
-
|
|
647
|
+
const U = ({
|
|
648
|
+
style: e,
|
|
649
|
+
onAddStep: i,
|
|
650
|
+
onAddTrigger: n,
|
|
651
|
+
index: r = 0
|
|
652
|
+
}) => {
|
|
653
|
+
const d = n1(), p = T(null), l = [
|
|
649
654
|
{
|
|
650
655
|
label: "Trigger",
|
|
651
656
|
icon: /* @__PURE__ */ t(pe, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
652
657
|
command: () => {
|
|
653
658
|
n?.(r);
|
|
654
659
|
},
|
|
655
|
-
template:
|
|
660
|
+
template: d
|
|
656
661
|
},
|
|
657
662
|
{
|
|
658
663
|
label: "Step",
|
|
@@ -660,18 +665,18 @@ const U = ({ style: e, onAddStep: i, onAddTrigger: n, index: r = 0 }) => {
|
|
|
660
665
|
command: () => {
|
|
661
666
|
i?.(r);
|
|
662
667
|
},
|
|
663
|
-
template:
|
|
668
|
+
template: d
|
|
664
669
|
}
|
|
665
|
-
],
|
|
670
|
+
], c = (o) => {
|
|
666
671
|
p.current?.show(o);
|
|
667
672
|
};
|
|
668
|
-
return /* @__PURE__ */ t("div", { className:
|
|
669
|
-
/* @__PURE__ */ t("div", { className:
|
|
673
|
+
return /* @__PURE__ */ t("div", { className: $.stepLink, style: e, children: /* @__PURE__ */ C("main", { className: $.stepLinkContainer, children: [
|
|
674
|
+
/* @__PURE__ */ t("div", { className: $.stepLinkLine }),
|
|
670
675
|
/* @__PURE__ */ t(
|
|
671
676
|
"div",
|
|
672
677
|
{
|
|
673
|
-
className:
|
|
674
|
-
onClick:
|
|
678
|
+
className: $.stepLinkIcon,
|
|
679
|
+
onClick: c,
|
|
675
680
|
"aria-haspopup": !0,
|
|
676
681
|
children: /* @__PURE__ */ t(se, {})
|
|
677
682
|
}
|
|
@@ -679,83 +684,113 @@ const U = ({ style: e, onAddStep: i, onAddTrigger: n, index: r = 0 }) => {
|
|
|
679
684
|
/* @__PURE__ */ t(
|
|
680
685
|
t1,
|
|
681
686
|
{
|
|
682
|
-
model:
|
|
687
|
+
model: r === 0 ? l.splice(1) : l,
|
|
683
688
|
popup: !0,
|
|
684
689
|
ref: p
|
|
685
690
|
}
|
|
686
691
|
),
|
|
687
|
-
/* @__PURE__ */ t("div", { className:
|
|
692
|
+
/* @__PURE__ */ t("div", { className: $.stepLinkLine })
|
|
688
693
|
] }) });
|
|
689
|
-
},
|
|
690
|
-
steps:
|
|
691
|
-
stepContainer:
|
|
694
|
+
}, me = "_steps_1y1ls_1", he = "_stepContainer_1y1ls_9", q = {
|
|
695
|
+
steps: me,
|
|
696
|
+
stepContainer: he
|
|
692
697
|
}, Ce = ({
|
|
693
698
|
steps: e,
|
|
694
699
|
className: i,
|
|
695
700
|
onDeleteStep: n,
|
|
696
701
|
onUpdateFilter: r,
|
|
697
|
-
onAddStep:
|
|
702
|
+
onAddStep: d,
|
|
698
703
|
onAddTrigger: p,
|
|
699
|
-
onSelectStep:
|
|
700
|
-
}) =>
|
|
704
|
+
onSelectStep: l
|
|
705
|
+
}) => /* @__PURE__ */ t("div", { className: q.steps + (i ? " " + i : ""), children: /* @__PURE__ */ C(
|
|
706
|
+
"div",
|
|
707
|
+
{
|
|
708
|
+
style: {
|
|
709
|
+
display: "flex",
|
|
710
|
+
flexDirection: "row",
|
|
711
|
+
flex: 1,
|
|
712
|
+
minWidth: 0,
|
|
713
|
+
width: "100%"
|
|
714
|
+
},
|
|
715
|
+
children: [
|
|
716
|
+
/* @__PURE__ */ t(
|
|
717
|
+
U,
|
|
718
|
+
{
|
|
719
|
+
onAddStep: d,
|
|
720
|
+
onAddTrigger: p,
|
|
721
|
+
index: 0
|
|
722
|
+
}
|
|
723
|
+
),
|
|
724
|
+
e.map((c, o) => /* @__PURE__ */ C("div", { className: q.stepContainer, children: [
|
|
725
|
+
/* @__PURE__ */ t(
|
|
726
|
+
r1,
|
|
727
|
+
{
|
|
728
|
+
idx: o,
|
|
729
|
+
title: c.title,
|
|
730
|
+
isSet: c.isSet,
|
|
731
|
+
isInvalid: c.isInvalid,
|
|
732
|
+
isFilter: c.isFilter,
|
|
733
|
+
isSelected: c.isSelected,
|
|
734
|
+
icon: c.icon,
|
|
735
|
+
onClick: () => {
|
|
736
|
+
l(c.id);
|
|
737
|
+
},
|
|
738
|
+
onDeleteStep: n ? (g) => n(e[g].id) : void 0,
|
|
739
|
+
onUpdateFilter: r ? (g) => r(e[g].id) : void 0
|
|
740
|
+
}
|
|
741
|
+
),
|
|
742
|
+
/* @__PURE__ */ t(
|
|
743
|
+
U,
|
|
744
|
+
{
|
|
745
|
+
onAddStep: d,
|
|
746
|
+
onAddTrigger: p,
|
|
747
|
+
index: o + 1
|
|
748
|
+
}
|
|
749
|
+
)
|
|
750
|
+
] }, c.id)),
|
|
751
|
+
/* @__PURE__ */ t(
|
|
752
|
+
"div",
|
|
753
|
+
{
|
|
754
|
+
style: {
|
|
755
|
+
flex: 1,
|
|
756
|
+
minWidth: 0,
|
|
757
|
+
height: "2px",
|
|
758
|
+
borderTop: "2px solid #3B64A0",
|
|
759
|
+
marginTop: "34px"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
)
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
) }), ge = "_container_12c1g_1", fe = {
|
|
766
|
+
container: ge
|
|
767
|
+
}, ke = ({
|
|
768
|
+
process: e,
|
|
769
|
+
onAddTrigger: i,
|
|
770
|
+
addMultipleTriggers: n,
|
|
771
|
+
onAddStep: r,
|
|
772
|
+
onEditTrigger: d,
|
|
773
|
+
onDeleteTrigger: p,
|
|
774
|
+
onDeleteStep: l,
|
|
775
|
+
onUpdateFilter: c,
|
|
776
|
+
onSelectStep: o
|
|
777
|
+
}) => /* @__PURE__ */ C("div", { className: fe.container, children: [
|
|
701
778
|
/* @__PURE__ */ t(
|
|
702
|
-
|
|
779
|
+
oe,
|
|
703
780
|
{
|
|
704
|
-
|
|
705
|
-
onAddTrigger:
|
|
706
|
-
|
|
781
|
+
steps: e.triggers,
|
|
782
|
+
onAddTrigger: n,
|
|
783
|
+
onDeleteTrigger: p,
|
|
784
|
+
onEditTrigger: d,
|
|
785
|
+
onSelectStep: o
|
|
707
786
|
}
|
|
708
787
|
),
|
|
709
|
-
e.map((l, o) => /* @__PURE__ */ C("div", { className: q.stepContainer, children: [
|
|
710
|
-
/* @__PURE__ */ t(
|
|
711
|
-
r1,
|
|
712
|
-
{
|
|
713
|
-
idx: o,
|
|
714
|
-
title: l.title,
|
|
715
|
-
isSet: l.isSet,
|
|
716
|
-
isInvalid: l.isInvalid,
|
|
717
|
-
isFilter: l.isFilter,
|
|
718
|
-
isSelected: l.isSelected,
|
|
719
|
-
icon: l.icon,
|
|
720
|
-
onClick: () => {
|
|
721
|
-
d(l.id);
|
|
722
|
-
},
|
|
723
|
-
onDeleteStep: n ? (g) => n(e[g].id) : void 0,
|
|
724
|
-
onUpdateFilter: r ? (g) => r(e[g].id) : void 0
|
|
725
|
-
}
|
|
726
|
-
),
|
|
727
|
-
/* @__PURE__ */ t(
|
|
728
|
-
U,
|
|
729
|
-
{
|
|
730
|
-
onAddStep: a,
|
|
731
|
-
onAddTrigger: p,
|
|
732
|
-
index: o + 1
|
|
733
|
-
}
|
|
734
|
-
)
|
|
735
|
-
] }, l.id)),
|
|
736
|
-
/* @__PURE__ */ t(
|
|
737
|
-
"div",
|
|
738
|
-
{
|
|
739
|
-
style: {
|
|
740
|
-
flex: 1,
|
|
741
|
-
minWidth: 0,
|
|
742
|
-
height: "2px",
|
|
743
|
-
borderTop: "2px solid #3B64A0",
|
|
744
|
-
marginTop: "34px"
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
)
|
|
748
|
-
] }) })), ge = {}, fe = "_container_393c1_1", ve = {
|
|
749
|
-
container: fe
|
|
750
|
-
}, Ie = ({ process: e, onAddTrigger: i, addMultipleTriggers: n, onAddStep: r, onEditTrigger: a, onDeleteTrigger: p, onDeleteStep: d, onUpdateFilter: l, onSelectStep: o }) => /* @__PURE__ */ C("div", { className: ve.container, children: [
|
|
751
|
-
/* @__PURE__ */ t(oe, { steps: e.triggers, onAddTrigger: n, onDeleteTrigger: p, onEditTrigger: a, onSelectStep: o }),
|
|
752
788
|
/* @__PURE__ */ t(
|
|
753
789
|
Ce,
|
|
754
790
|
{
|
|
755
791
|
steps: e.steps,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
onUpdateFilter: l,
|
|
792
|
+
onDeleteStep: l,
|
|
793
|
+
onUpdateFilter: c,
|
|
759
794
|
onAddStep: r,
|
|
760
795
|
onAddTrigger: i,
|
|
761
796
|
onSelectStep: (g) => {
|
|
@@ -766,8 +801,8 @@ const U = ({ style: e, onAddStep: i, onAddTrigger: n, index: r = 0 }) => {
|
|
|
766
801
|
] });
|
|
767
802
|
export {
|
|
768
803
|
t1 as Menu,
|
|
769
|
-
|
|
770
|
-
|
|
804
|
+
we as MenuProvider,
|
|
805
|
+
ke as ProcessDiagram,
|
|
771
806
|
r1 as ProcessStep,
|
|
772
807
|
oe as Trigger,
|
|
773
808
|
F1 as useMenuProvider
|