@emporix/process-diagram 1.0.7 → 1.0.9
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/App.d.ts.map +1 -1
- package/dist/Row.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/condition/Condition.d.ts +6 -0
- package/dist/components/condition/Condition.d.ts.map +1 -0
- package/dist/components/curve/Curve.d.ts +6 -0
- package/dist/components/curve/Curve.d.ts.map +1 -0
- package/dist/components/row/Row.d.ts +6 -0
- package/dist/components/row/Row.d.ts.map +1 -0
- package/dist/components/steps/Steps.d.ts +14 -0
- package/dist/components/steps/Steps.d.ts.map +1 -0
- package/dist/components/triggers/Trigger.d.ts +2 -1
- package/dist/components/triggers/Trigger.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +429 -383
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const
|
|
5
|
-
container:
|
|
6
|
-
step:
|
|
7
|
-
selected:
|
|
8
|
-
selectedInvalid:
|
|
9
|
-
isSet:
|
|
10
|
-
invalid:
|
|
11
|
-
filterFlag:
|
|
12
|
-
title:
|
|
13
|
-
icon:
|
|
1
|
+
import { jsxs as C, Fragment as le, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import S, { forwardRef as ce, useState as N, useRef as z, useCallback as H, useImperativeHandle as ae, useEffect as W, createContext as de, useMemo as $, useContext as ue } from "react";
|
|
3
|
+
import { createPortal as pe } from "react-dom";
|
|
4
|
+
const he = "_container_ww84z_1", me = "_step_ww84z_7", ge = "_selected_ww84z_22", Ce = "_selectedInvalid_ww84z_28", fe = "_isSet_ww84z_34", ve = "_invalid_ww84z_38", _e = "_filterFlag_ww84z_44", we = "_title_ww84z_70", xe = "_icon_ww84z_87", ye = "_content_ww84z_105", ke = "_dotsButton_ww84z_111", v = {
|
|
5
|
+
container: he,
|
|
6
|
+
step: me,
|
|
7
|
+
selected: ge,
|
|
8
|
+
selectedInvalid: Ce,
|
|
9
|
+
isSet: fe,
|
|
10
|
+
invalid: ve,
|
|
11
|
+
filterFlag: _e,
|
|
12
|
+
title: we,
|
|
13
|
+
icon: xe,
|
|
14
14
|
content: ye,
|
|
15
|
-
dotsButton:
|
|
15
|
+
dotsButton: ke
|
|
16
16
|
};
|
|
17
|
-
var
|
|
17
|
+
var Q = {
|
|
18
18
|
color: void 0,
|
|
19
19
|
size: void 0,
|
|
20
20
|
className: void 0,
|
|
21
21
|
style: void 0,
|
|
22
22
|
attr: void 0
|
|
23
|
-
},
|
|
23
|
+
}, X = S.createContext && /* @__PURE__ */ S.createContext(Q), Ie = ["attr", "size", "title"];
|
|
24
24
|
function be(e, i) {
|
|
25
25
|
if (e == null) return {};
|
|
26
|
-
var n =
|
|
26
|
+
var n = Ne(e, i), r, l;
|
|
27
27
|
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var
|
|
29
|
-
for (
|
|
30
|
-
r =
|
|
28
|
+
var m = Object.getOwnPropertySymbols(e);
|
|
29
|
+
for (l = 0; l < m.length; l++)
|
|
30
|
+
r = m[l], !(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 Ne(e, i) {
|
|
35
35
|
if (e == null) return {};
|
|
36
36
|
var n = {};
|
|
37
37
|
for (var r in e)
|
|
@@ -41,45 +41,45 @@ function ke(e, i) {
|
|
|
41
41
|
}
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function A() {
|
|
45
|
+
return A = Object.assign ? Object.assign.bind() : function(e) {
|
|
46
46
|
for (var i = 1; i < arguments.length; i++) {
|
|
47
47
|
var n = arguments[i];
|
|
48
48
|
for (var r in n)
|
|
49
49
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
50
50
|
}
|
|
51
51
|
return e;
|
|
52
|
-
},
|
|
52
|
+
}, A.apply(this, arguments);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function q(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(l) {
|
|
59
|
+
return Object.getOwnPropertyDescriptor(e, l).enumerable;
|
|
60
60
|
})), n.push.apply(n, r);
|
|
61
61
|
}
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function V(e) {
|
|
65
65
|
for (var i = 1; i < arguments.length; i++) {
|
|
66
66
|
var n = arguments[i] != null ? arguments[i] : {};
|
|
67
|
-
i % 2 ?
|
|
68
|
-
|
|
69
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
67
|
+
i % 2 ? q(Object(n), !0).forEach(function(r) {
|
|
68
|
+
Pe(e, r, n[r]);
|
|
69
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q(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
|
|
76
|
-
return i =
|
|
75
|
+
function Pe(e, i, n) {
|
|
76
|
+
return i = Me(i), i in e ? Object.defineProperty(e, i, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = n, e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var i =
|
|
78
|
+
function Me(e) {
|
|
79
|
+
var i = Ee(e, "string");
|
|
80
80
|
return typeof i == "symbol" ? i : i + "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ee(e, i) {
|
|
83
83
|
if (typeof e != "object" || !e) return e;
|
|
84
84
|
var n = e[Symbol.toPrimitive];
|
|
85
85
|
if (n !== void 0) {
|
|
@@ -89,166 +89,166 @@ function Me(e, i) {
|
|
|
89
89
|
}
|
|
90
90
|
return (i === "string" ? String : Number)(e);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return e && e.map((i, n) => /* @__PURE__ */
|
|
92
|
+
function ee(e) {
|
|
93
|
+
return e && e.map((i, n) => /* @__PURE__ */ S.createElement(i.tag, V({
|
|
94
94
|
key: n
|
|
95
|
-
}, i.attr),
|
|
95
|
+
}, i.attr), ee(i.child)));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return (i) => /* @__PURE__ */
|
|
99
|
-
attr:
|
|
100
|
-
}, i),
|
|
97
|
+
function j(e) {
|
|
98
|
+
return (i) => /* @__PURE__ */ S.createElement(Le, A({
|
|
99
|
+
attr: V({}, e.attr)
|
|
100
|
+
}, i), ee(e.child));
|
|
101
101
|
}
|
|
102
102
|
function Le(e) {
|
|
103
103
|
var i = (n) => {
|
|
104
104
|
var {
|
|
105
105
|
attr: r,
|
|
106
|
-
size:
|
|
107
|
-
title:
|
|
108
|
-
} = e, d = be(e, Ie),
|
|
109
|
-
return n.className && (
|
|
106
|
+
size: l,
|
|
107
|
+
title: m
|
|
108
|
+
} = e, d = be(e, Ie), a = l || n.size || "1em", p;
|
|
109
|
+
return n.className && (p = n.className), e.className && (p = (p ? p + " " : "") + e.className), /* @__PURE__ */ S.createElement("svg", A({
|
|
110
110
|
stroke: "currentColor",
|
|
111
111
|
fill: "currentColor",
|
|
112
112
|
strokeWidth: "0"
|
|
113
113
|
}, n.attr, r, d, {
|
|
114
|
-
className:
|
|
115
|
-
style:
|
|
114
|
+
className: p,
|
|
115
|
+
style: V(V({
|
|
116
116
|
color: e.color || n.color
|
|
117
117
|
}, n.style), e.style),
|
|
118
|
-
height:
|
|
119
|
-
width:
|
|
118
|
+
height: a,
|
|
119
|
+
width: a,
|
|
120
120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
121
|
-
}),
|
|
121
|
+
}), m && /* @__PURE__ */ S.createElement("title", null, m), e.children);
|
|
122
122
|
};
|
|
123
|
-
return
|
|
123
|
+
return X !== void 0 ? /* @__PURE__ */ S.createElement(X.Consumer, null, (n) => i(n)) : i(Q);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
125
|
+
function Oe(e) {
|
|
126
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.52.359A.5.5 0 0 1 6 0h4a.5.5 0 0 1 .474.658L8.694 6H12.5a.5.5 0 0 1 .395.807l-7 9a.5.5 0 0 1-.873-.454L6.823 9.5H3.5a.5.5 0 0 1-.48-.641zM6.374 1 4.168 8.5H7.5a.5.5 0 0 1 .478.647L6.78 13.04 11.478 7H8a.5.5 0 0 1-.474-.658L9.306 1z" }, child: [] }] })(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function K(e) {
|
|
129
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" }, child: [] }] })(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function te(e) {
|
|
132
|
+
return j({ 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
|
|
135
|
-
panel:
|
|
136
|
-
panelExiting:
|
|
137
|
-
menuItem:
|
|
134
|
+
const Be = "_panel_19663_1", Se = "_panelExiting_19663_13", Te = "_menuItem_19663_37", He = "_disabled_19663_52", $e = "_menuItemIcon_19663_57", ze = "_menuItemText_19663_63", je = "_overlay_19663_69", I = {
|
|
135
|
+
panel: Be,
|
|
136
|
+
panelExiting: Se,
|
|
137
|
+
menuItem: Te,
|
|
138
138
|
disabled: He,
|
|
139
|
-
menuItemIcon:
|
|
140
|
-
menuItemText:
|
|
141
|
-
overlay:
|
|
142
|
-
},
|
|
139
|
+
menuItemIcon: $e,
|
|
140
|
+
menuItemText: ze,
|
|
141
|
+
overlay: je
|
|
142
|
+
}, Re = (e) => {
|
|
143
143
|
const n = e.currentTarget ?? e.target;
|
|
144
144
|
if (n?.getBoundingClientRect) {
|
|
145
|
-
const
|
|
146
|
-
return { top:
|
|
145
|
+
const l = n.getBoundingClientRect();
|
|
146
|
+
return { top: l.bottom + 2, left: l.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
|
-
},
|
|
154
|
-
const [d,
|
|
155
|
-
|
|
156
|
-
}, [
|
|
157
|
-
(
|
|
158
|
-
|
|
153
|
+
}, ne = ce(function({ model: i, popup: n = !0, onHide: r, onClick: l }, m) {
|
|
154
|
+
const [d, a] = N(!1), [p, c] = N(!1), [g, k] = N({ top: 0, left: 0 }), _ = z(null), f = H(() => {
|
|
155
|
+
p || c(!0);
|
|
156
|
+
}, [p]), P = H(
|
|
157
|
+
(o) => {
|
|
158
|
+
p && o.animationName.includes("menuOut") && (a(!1), c(!1), r?.());
|
|
159
159
|
},
|
|
160
|
-
[
|
|
161
|
-
),
|
|
162
|
-
|
|
163
|
-
}, []),
|
|
164
|
-
(
|
|
165
|
-
d ?
|
|
160
|
+
[p, r]
|
|
161
|
+
), M = H((o) => {
|
|
162
|
+
k(Re(o)), c(!1), a(!0);
|
|
163
|
+
}, []), T = H(
|
|
164
|
+
(o) => {
|
|
165
|
+
d ? f() : M(o);
|
|
166
166
|
},
|
|
167
|
-
[d,
|
|
167
|
+
[d, f, M]
|
|
168
168
|
);
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
ae(
|
|
170
|
+
m,
|
|
171
171
|
() => ({
|
|
172
|
-
show:
|
|
173
|
-
hide:
|
|
174
|
-
toggle:
|
|
172
|
+
show: M,
|
|
173
|
+
hide: f,
|
|
174
|
+
toggle: T
|
|
175
175
|
}),
|
|
176
|
-
[
|
|
176
|
+
[M, f, T]
|
|
177
177
|
), W(() => {
|
|
178
178
|
if (!d) return;
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
},
|
|
179
|
+
const o = (s) => {
|
|
180
|
+
s.key === "Escape" && f();
|
|
181
|
+
}, x = (s) => {
|
|
182
182
|
const h = _.current;
|
|
183
|
-
h && !h.contains(
|
|
183
|
+
h && !h.contains(s.target) && f();
|
|
184
184
|
};
|
|
185
|
-
return document.addEventListener("keydown",
|
|
186
|
-
document.removeEventListener("keydown",
|
|
185
|
+
return document.addEventListener("keydown", o), document.addEventListener("mousedown", x), () => {
|
|
186
|
+
document.removeEventListener("keydown", o), document.removeEventListener("mousedown", x);
|
|
187
187
|
};
|
|
188
|
-
}, [d,
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
const
|
|
193
|
-
return
|
|
188
|
+
}, [d, f]);
|
|
189
|
+
const y = (o, x) => {
|
|
190
|
+
x.stopPropagation(), o.command?.({ originalEvent: x, item: o }), f();
|
|
191
|
+
}, E = (o, x) => {
|
|
192
|
+
const s = (h) => y(o, h);
|
|
193
|
+
return o.template ? /* @__PURE__ */ t(S.Fragment, { children: o.template(o, { onClick: s }) }, x) : /* @__PURE__ */ C(
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
196
|
type: "button",
|
|
197
|
-
className: `${
|
|
197
|
+
className: `${I.menuItem} ${o.disabled && I.disabled}`,
|
|
198
198
|
onClick: (h) => {
|
|
199
|
-
|
|
199
|
+
o.disabled || s(h);
|
|
200
200
|
},
|
|
201
201
|
children: [
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ t("span", { className:
|
|
202
|
+
o.icon && /* @__PURE__ */ t("span", { className: I.menuItemIcon, children: o.icon }),
|
|
203
|
+
/* @__PURE__ */ t("span", { className: I.menuItemText, children: o.label })
|
|
204
204
|
]
|
|
205
205
|
},
|
|
206
|
-
|
|
206
|
+
x
|
|
207
207
|
);
|
|
208
208
|
};
|
|
209
|
-
return !d || !n ? null :
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
return !d || !n ? null : pe(
|
|
210
|
+
/* @__PURE__ */ C(le, { children: [
|
|
211
211
|
/* @__PURE__ */ t(
|
|
212
212
|
"div",
|
|
213
213
|
{
|
|
214
|
-
className:
|
|
214
|
+
className: I.overlay,
|
|
215
215
|
"aria-hidden": !0,
|
|
216
|
-
onClick: () =>
|
|
217
|
-
onMouseDown: (
|
|
216
|
+
onClick: () => f(),
|
|
217
|
+
onMouseDown: (o) => o.stopPropagation()
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
220
|
/* @__PURE__ */ t(
|
|
221
221
|
"div",
|
|
222
222
|
{
|
|
223
223
|
ref: _,
|
|
224
|
-
className: `${
|
|
224
|
+
className: `${I.panel} ${p ? I.panelExiting : ""}`,
|
|
225
225
|
role: "menu",
|
|
226
|
-
style: { top:
|
|
227
|
-
onAnimationEnd:
|
|
228
|
-
onClick: (
|
|
229
|
-
|
|
226
|
+
style: { top: g.top, left: g.left },
|
|
227
|
+
onAnimationEnd: P,
|
|
228
|
+
onClick: (o) => {
|
|
229
|
+
o.stopPropagation(), l?.(o);
|
|
230
230
|
},
|
|
231
|
-
children: i.map(
|
|
231
|
+
children: i.map(E)
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
] }),
|
|
235
235
|
document.body
|
|
236
236
|
);
|
|
237
|
-
}),
|
|
237
|
+
}), ie = () => (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
|
+
), U = ({
|
|
248
248
|
width: e = 16,
|
|
249
249
|
height: i = 16,
|
|
250
250
|
color: n = "#3B64A0"
|
|
251
|
-
}) => /* @__PURE__ */
|
|
251
|
+
}) => /* @__PURE__ */ C(
|
|
252
252
|
"svg",
|
|
253
253
|
{
|
|
254
254
|
width: e,
|
|
@@ -273,30 +273,30 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
273
273
|
)
|
|
274
274
|
]
|
|
275
275
|
}
|
|
276
|
-
),
|
|
276
|
+
), re = de(
|
|
277
277
|
void 0
|
|
278
|
-
),
|
|
279
|
-
const [i, n] =
|
|
280
|
-
n((
|
|
281
|
-
|
|
282
|
-
}), [])), d.current?.toggle(
|
|
283
|
-
}, []),
|
|
284
|
-
n((
|
|
285
|
-
}, []),
|
|
278
|
+
), xt = ({ children: e }) => {
|
|
279
|
+
const [i, n] = N([]), r = H((d, a) => {
|
|
280
|
+
n((p) => (p.forEach((c) => {
|
|
281
|
+
c.current && c !== d && c.current.hide(a);
|
|
282
|
+
}), [])), d.current?.toggle(a), n([d]);
|
|
283
|
+
}, []), l = H((d) => {
|
|
284
|
+
n((a) => a.filter((p) => p !== d));
|
|
285
|
+
}, []), m = $(
|
|
286
286
|
() => ({
|
|
287
287
|
openMenus: i,
|
|
288
288
|
openMenu: r,
|
|
289
|
-
closeMenu:
|
|
289
|
+
closeMenu: l
|
|
290
290
|
}),
|
|
291
|
-
[i, r,
|
|
291
|
+
[i, r, l]
|
|
292
292
|
);
|
|
293
|
-
return /* @__PURE__ */ t(
|
|
294
|
-
},
|
|
295
|
-
const e =
|
|
293
|
+
return /* @__PURE__ */ t(re.Provider, { value: m, children: e });
|
|
294
|
+
}, Fe = () => {
|
|
295
|
+
const e = ue(re);
|
|
296
296
|
if (e === void 0)
|
|
297
297
|
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
298
298
|
return e;
|
|
299
|
-
},
|
|
299
|
+
}, We = ({ color: e = "#E32012" }) => /* @__PURE__ */ C(
|
|
300
300
|
"svg",
|
|
301
301
|
{
|
|
302
302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -315,93 +315,93 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
315
315
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_3105_5367", children: /* @__PURE__ */ t("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
316
316
|
]
|
|
317
317
|
}
|
|
318
|
-
),
|
|
318
|
+
), oe = (e) => {
|
|
319
319
|
const {
|
|
320
320
|
isSet: i,
|
|
321
321
|
isSelected: n,
|
|
322
322
|
isFilter: r,
|
|
323
|
-
className:
|
|
324
|
-
title:
|
|
323
|
+
className: l,
|
|
324
|
+
title: m,
|
|
325
325
|
icon: d,
|
|
326
|
-
contextMenuItems:
|
|
327
|
-
onClick:
|
|
328
|
-
onDeleteStep:
|
|
329
|
-
onUpdateFilter:
|
|
330
|
-
subtitle:
|
|
326
|
+
contextMenuItems: a = void 0,
|
|
327
|
+
onClick: p,
|
|
328
|
+
onDeleteStep: c,
|
|
329
|
+
onUpdateFilter: g,
|
|
330
|
+
subtitle: k,
|
|
331
331
|
isInvalid: _,
|
|
332
|
-
idx:
|
|
333
|
-
} = e,
|
|
332
|
+
idx: f
|
|
333
|
+
} = e, P = z(null), { openMenu: M, closeMenu: T } = Fe(), y = ie(), E = $(() => [
|
|
334
334
|
{
|
|
335
335
|
label: "Add Step Filter",
|
|
336
|
-
icon: /* @__PURE__ */ t("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ t(
|
|
337
|
-
command: (
|
|
338
|
-
|
|
336
|
+
icon: /* @__PURE__ */ t("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ t(U, {}) }),
|
|
337
|
+
command: (u) => {
|
|
338
|
+
u?.originalEvent?.stopPropagation(), g && g(f);
|
|
339
339
|
},
|
|
340
|
-
template:
|
|
340
|
+
template: y
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
label: "Remove",
|
|
344
|
-
icon: /* @__PURE__ */ t(
|
|
345
|
-
command: (
|
|
346
|
-
|
|
344
|
+
icon: /* @__PURE__ */ t(te, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
345
|
+
command: (u) => {
|
|
346
|
+
u?.originalEvent?.stopPropagation(), c && c(f);
|
|
347
347
|
},
|
|
348
|
-
template:
|
|
348
|
+
template: y
|
|
349
349
|
}
|
|
350
|
-
], [
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
return /* @__PURE__ */ t("div", { className:
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */ t("div", { className: `${
|
|
357
|
-
/* @__PURE__ */ t("div", { className:
|
|
350
|
+
], [g, c, f]), o = $(() => a !== void 0 ? a : E, [a, E]), x = (u) => {
|
|
351
|
+
u.stopPropagation(), M(P, u);
|
|
352
|
+
}, s = $(() => n && _ ? v.step + " " + v.selectedInvalid : n ? v.step + " " + v.selected : i ? v.step + " " + v.isSet : _ ? v.step + " " + v.invalid : v.step, [i, n, _]), h = $(() => _ ? /* @__PURE__ */ t(We, { color: "#E32012" }) : d, [d, _]);
|
|
353
|
+
return /* @__PURE__ */ t("div", { className: v.container + " " + l, children: /* @__PURE__ */ C("div", { children: [
|
|
354
|
+
/* @__PURE__ */ C("div", { className: s, onClick: p, children: [
|
|
355
|
+
/* @__PURE__ */ C("div", { className: v.content, children: [
|
|
356
|
+
/* @__PURE__ */ t("div", { className: `${v.icon} ${_ && v.invalid}`, children: h }),
|
|
357
|
+
/* @__PURE__ */ t("div", { className: v.title, children: m })
|
|
358
358
|
] }),
|
|
359
359
|
/* @__PURE__ */ t(
|
|
360
360
|
"button",
|
|
361
361
|
{
|
|
362
|
-
className:
|
|
363
|
-
onClick:
|
|
362
|
+
className: v.dotsButton,
|
|
363
|
+
onClick: x,
|
|
364
364
|
"aria-haspopup": !0,
|
|
365
365
|
"aria-label": "Step options",
|
|
366
366
|
children: /* @__PURE__ */ t(
|
|
367
|
-
|
|
367
|
+
K,
|
|
368
368
|
{
|
|
369
|
-
className:
|
|
369
|
+
className: v.dots,
|
|
370
370
|
color: _ ? "#E32012" : "#3B64A0"
|
|
371
371
|
}
|
|
372
372
|
)
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
375
|
/* @__PURE__ */ t(
|
|
376
|
-
|
|
376
|
+
ne,
|
|
377
377
|
{
|
|
378
|
-
model:
|
|
378
|
+
model: o,
|
|
379
379
|
popup: !0,
|
|
380
|
-
ref:
|
|
381
|
-
onClick: (
|
|
382
|
-
onHide: () =>
|
|
380
|
+
ref: P,
|
|
381
|
+
onClick: (u) => u.stopPropagation(),
|
|
382
|
+
onHide: () => T(P)
|
|
383
383
|
}
|
|
384
384
|
)
|
|
385
385
|
] }),
|
|
386
|
-
r && /* @__PURE__ */
|
|
386
|
+
r && /* @__PURE__ */ C(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
389
|
-
className:
|
|
389
|
+
className: v.filterFlag,
|
|
390
390
|
role: "button",
|
|
391
391
|
tabIndex: 0,
|
|
392
392
|
onClick: () => {
|
|
393
|
-
|
|
393
|
+
g && g(f);
|
|
394
394
|
},
|
|
395
|
-
onKeyDown: (
|
|
396
|
-
(
|
|
395
|
+
onKeyDown: (u) => {
|
|
396
|
+
(u.key === "Enter" || u.key === " ") && g && (u.preventDefault(), g(f));
|
|
397
397
|
},
|
|
398
398
|
children: [
|
|
399
|
-
/* @__PURE__ */ t(
|
|
399
|
+
/* @__PURE__ */ t(U, { color: "#3B64A0" }),
|
|
400
400
|
/* @__PURE__ */ t("span", { children: "Filter" }),
|
|
401
401
|
/* @__PURE__ */ t(
|
|
402
|
-
|
|
402
|
+
K,
|
|
403
403
|
{
|
|
404
|
-
className:
|
|
404
|
+
className: v.dots,
|
|
405
405
|
color: _ ? "#E32012" : "#3B64A0",
|
|
406
406
|
style: { height: "10px" }
|
|
407
407
|
}
|
|
@@ -409,10 +409,10 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
409
409
|
]
|
|
410
410
|
}
|
|
411
411
|
),
|
|
412
|
-
|
|
412
|
+
k && /* @__PURE__ */ t("div", { className: v.subtitle, children: k })
|
|
413
413
|
] }) });
|
|
414
|
-
}, Ae = () => /* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
414
|
+
}, Ae = () => /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
415
|
+
/* @__PURE__ */ C("g", { clipPath: "url(#clip0_6551_9169)", children: [
|
|
416
416
|
/* @__PURE__ */ t("rect", { width: "24", height: "24", rx: "12", fill: "#0C971F" }),
|
|
417
417
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V11H18C18.5523 11 19 11.4477 19 12C19 12.5523 18.5523 13 18 13H13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11H11V6Z", fill: "white" })
|
|
418
418
|
] }),
|
|
@@ -420,20 +420,20 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_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
|
] }), Ve = "_multipleTriggersIcon_oxhdi_1", De = {
|
|
422
422
|
multipleTriggersIcon: Ve
|
|
423
|
-
},
|
|
424
|
-
trigger:
|
|
425
|
-
title:
|
|
423
|
+
}, Ze = () => /* @__PURE__ */ t("div", { className: De.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" }) }) }), Ye = "_trigger_kfg1y_1", Ge = "_title_kfg1y_7", Xe = "_empty_kfg1y_15", qe = "_triggerContainer_kfg1y_21", Ke = "_stepsContainer_kfg1y_25", Ue = "_stepItem_kfg1y_51", Je = "_curvesSvg_kfg1y_70", Qe = "_centralNode_kfg1y_78", et = "_iconWrapper_kfg1y_104", tt = "_fadeIn_kfg1y_127", nt = "_fadeOut_kfg1y_130", it = "_operationContainer_kfg1y_134", w = {
|
|
424
|
+
trigger: Ye,
|
|
425
|
+
title: Ge,
|
|
426
426
|
empty: Xe,
|
|
427
|
-
triggerContainer:
|
|
427
|
+
triggerContainer: qe,
|
|
428
428
|
stepsContainer: Ke,
|
|
429
429
|
stepItem: Ue,
|
|
430
|
-
curvesSvg:
|
|
431
|
-
centralNode:
|
|
432
|
-
iconWrapper:
|
|
433
|
-
fadeIn:
|
|
434
|
-
fadeOut:
|
|
435
|
-
operationContainer:
|
|
436
|
-
},
|
|
430
|
+
curvesSvg: Je,
|
|
431
|
+
centralNode: Qe,
|
|
432
|
+
iconWrapper: et,
|
|
433
|
+
fadeIn: tt,
|
|
434
|
+
fadeOut: nt,
|
|
435
|
+
operationContainer: it
|
|
436
|
+
}, rt = () => /* @__PURE__ */ t(
|
|
437
437
|
"div",
|
|
438
438
|
{
|
|
439
439
|
style: {
|
|
@@ -443,87 +443,89 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
443
443
|
borderTop: "1px solid #a1bbdc"
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
),
|
|
446
|
+
), ot = 80, R = 34, st = ({
|
|
447
447
|
steps: e,
|
|
448
448
|
title: i,
|
|
449
449
|
className: n,
|
|
450
450
|
onDeleteTrigger: r,
|
|
451
|
-
onAddTrigger:
|
|
452
|
-
onSelectStep:
|
|
451
|
+
onAddTrigger: l,
|
|
452
|
+
onSelectStep: m,
|
|
453
|
+
onCenterYUpdate: d
|
|
453
454
|
}) => {
|
|
454
|
-
const
|
|
455
|
-
|
|
455
|
+
const a = z(null), p = z([]), [c, g] = N([]), [k, _] = N({ width: 0, height: 0 }), [f, P] = N(!1), [M, T] = N(!1), y = z(null);
|
|
456
|
+
W(() => {
|
|
456
457
|
const s = () => {
|
|
457
|
-
if (!
|
|
458
|
-
const
|
|
459
|
-
if (
|
|
460
|
-
if (
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
id: e[
|
|
464
|
-
top:
|
|
465
|
-
right:
|
|
466
|
-
centerY:
|
|
458
|
+
if (!a.current) return;
|
|
459
|
+
const h = [];
|
|
460
|
+
if (p.current.forEach((u, L) => {
|
|
461
|
+
if (u && a.current) {
|
|
462
|
+
const O = a.current.getBoundingClientRect(), b = u.getBoundingClientRect();
|
|
463
|
+
h.push({
|
|
464
|
+
id: e[L]?.id || `step-${L}`,
|
|
465
|
+
top: b.top - O.top,
|
|
466
|
+
right: b.right - O.left,
|
|
467
|
+
centerY: b.top - O.top + b.height / 2
|
|
467
468
|
});
|
|
468
469
|
}
|
|
469
|
-
}),
|
|
470
|
-
const
|
|
471
|
-
...
|
|
472
|
-
),
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
}), g(h), a.current && h.length > 0) {
|
|
471
|
+
const u = a.current.getBoundingClientRect(), L = Math.min(...h.map((B) => B.top)), O = p.current.filter(Boolean).map((B) => B?.offsetHeight || 68), b = Math.max(
|
|
472
|
+
...h.map((B, se) => B.top + (O[se] || 68))
|
|
473
|
+
), D = Math.max(...h.map((B) => B.right)) + 0, Z = Math.max(
|
|
474
|
+
u.height,
|
|
475
|
+
b - L + 100
|
|
475
476
|
);
|
|
476
|
-
|
|
477
|
-
width:
|
|
478
|
-
height:
|
|
477
|
+
_({
|
|
478
|
+
width: D,
|
|
479
|
+
height: Z
|
|
479
480
|
});
|
|
480
481
|
}
|
|
481
482
|
};
|
|
482
483
|
return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
483
|
-
}, [e]), W(() => (
|
|
484
|
-
|
|
485
|
-
}, 0)) :
|
|
486
|
-
|
|
484
|
+
}, [e]), W(() => (f ? (y.current && (clearTimeout(y.current), y.current = null), setTimeout(() => {
|
|
485
|
+
T(!0);
|
|
486
|
+
}, 0)) : y.current = setTimeout(() => {
|
|
487
|
+
T(!1);
|
|
487
488
|
}, 140), () => {
|
|
488
|
-
|
|
489
|
-
}), [
|
|
490
|
-
|
|
489
|
+
y.current && clearTimeout(y.current);
|
|
490
|
+
}), [f]);
|
|
491
|
+
const E = c.length > 0 ? ot : 0, o = $(() => c.length > 1 ? c.reduce((s, h) => s + h.top + R, 0) / c.length : c.length === 1 ? c[0].top + R : 0, [c]);
|
|
492
|
+
if (W(() => {
|
|
493
|
+
d?.(o);
|
|
494
|
+
}, [o, d]), e.length === 0)
|
|
495
|
+
return /* @__PURE__ */ C("div", { className: `${w.trigger} ${n || ""}`, children: [
|
|
491
496
|
i && /* @__PURE__ */ t("h3", { className: w.title, children: i }),
|
|
492
497
|
/* @__PURE__ */ t("div", { className: w.empty, children: "No steps" })
|
|
493
498
|
] });
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
const c = (s, u, h, m) => {
|
|
498
|
-
const M = h - s, N = Math.min(M * 0.6, 60), Z = s + N, V = u, D = h - N;
|
|
499
|
-
return `M ${s} ${u} C ${Z} ${V}, ${D} ${m}, ${h} ${m}`;
|
|
499
|
+
const x = (s, h, u, L) => {
|
|
500
|
+
const O = u - s, b = Math.min(O * 0.6, 60), G = s + b, D = h, Z = u - b;
|
|
501
|
+
return `M ${s} ${h} C ${G} ${D}, ${Z} ${L}, ${u} ${L}`;
|
|
500
502
|
};
|
|
501
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ C("div", { className: `${w.trigger} ${n || ""}`, ref: a, children: [
|
|
502
504
|
i && /* @__PURE__ */ t("h3", { className: w.title, children: i }),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */ t("div", { className: w.stepsContainer, children: e.map((s,
|
|
505
|
+
/* @__PURE__ */ C("div", { className: w.triggerContainer, children: [
|
|
506
|
+
/* @__PURE__ */ t("div", { className: w.stepsContainer, children: e.map((s, h) => /* @__PURE__ */ t(
|
|
505
507
|
"div",
|
|
506
508
|
{
|
|
507
|
-
ref: (
|
|
508
|
-
|
|
509
|
+
ref: (u) => {
|
|
510
|
+
p.current[h] = u;
|
|
509
511
|
},
|
|
510
512
|
children: /* @__PURE__ */ t(
|
|
511
|
-
|
|
513
|
+
oe,
|
|
512
514
|
{
|
|
513
515
|
title: s.title,
|
|
514
516
|
className: w.stepItem,
|
|
515
|
-
idx:
|
|
517
|
+
idx: h,
|
|
516
518
|
isSet: s.isSet,
|
|
517
519
|
isSelected: s.isSelected,
|
|
518
520
|
isInvalid: s.isInvalid,
|
|
519
521
|
isFilter: s.isFilter,
|
|
520
522
|
icon: s.icon,
|
|
521
|
-
onClick:
|
|
523
|
+
onClick: m ? () => m(s.id) : () => {
|
|
522
524
|
},
|
|
523
525
|
contextMenuItems: [
|
|
524
526
|
{
|
|
525
527
|
label: "Delete",
|
|
526
|
-
icon: /* @__PURE__ */ t(
|
|
528
|
+
icon: /* @__PURE__ */ t(te, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
527
529
|
command: () => {
|
|
528
530
|
r?.(s.id);
|
|
529
531
|
},
|
|
@@ -531,13 +533,13 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
531
533
|
},
|
|
532
534
|
{
|
|
533
535
|
label: "",
|
|
534
|
-
template: () => /* @__PURE__ */ t(
|
|
536
|
+
template: () => /* @__PURE__ */ t(rt, {})
|
|
535
537
|
},
|
|
536
538
|
{
|
|
537
539
|
label: "Add More Triggers",
|
|
538
|
-
icon: /* @__PURE__ */ t(
|
|
540
|
+
icon: /* @__PURE__ */ t(Oe, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
539
541
|
command: () => {
|
|
540
|
-
|
|
542
|
+
l?.();
|
|
541
543
|
}
|
|
542
544
|
}
|
|
543
545
|
]
|
|
@@ -546,18 +548,18 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
546
548
|
},
|
|
547
549
|
s.id
|
|
548
550
|
)) }),
|
|
549
|
-
/* @__PURE__ */ t("div", { style: { position: "relative" }, children:
|
|
551
|
+
/* @__PURE__ */ t("div", { style: { position: "relative" }, children: c.length > 1 && /* @__PURE__ */ t(
|
|
550
552
|
"svg",
|
|
551
553
|
{
|
|
552
554
|
className: w.curvesSvg,
|
|
553
|
-
width:
|
|
554
|
-
height:
|
|
555
|
-
children:
|
|
556
|
-
const
|
|
555
|
+
width: k.width,
|
|
556
|
+
height: k.height,
|
|
557
|
+
children: c.map((s) => {
|
|
558
|
+
const u = c.length === 1 ? c[0].top + R : s.top + R;
|
|
557
559
|
return /* @__PURE__ */ t(
|
|
558
560
|
"path",
|
|
559
561
|
{
|
|
560
|
-
d:
|
|
562
|
+
d: x(0, u, E, o),
|
|
561
563
|
stroke: "#3b64a0",
|
|
562
564
|
strokeWidth: "2",
|
|
563
565
|
fill: "none",
|
|
@@ -568,22 +570,22 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
568
570
|
})
|
|
569
571
|
}
|
|
570
572
|
) }),
|
|
571
|
-
|
|
573
|
+
c.length > 1 ? /* @__PURE__ */ C("div", { style: { position: "relative", marginRight: "140px" }, children: [
|
|
572
574
|
/* @__PURE__ */ t(
|
|
573
575
|
"div",
|
|
574
576
|
{
|
|
575
577
|
className: w.centralNode,
|
|
576
578
|
style: {
|
|
577
|
-
"--node-x": `${
|
|
578
|
-
"--node-y": `${
|
|
579
|
+
"--node-x": `${E}px`,
|
|
580
|
+
"--node-y": `${o}px`
|
|
579
581
|
},
|
|
580
|
-
onMouseEnter: () =>
|
|
581
|
-
onMouseLeave: () =>
|
|
582
|
-
children:
|
|
582
|
+
onMouseEnter: () => P(!0),
|
|
583
|
+
onMouseLeave: () => P(!1),
|
|
584
|
+
children: M ? /* @__PURE__ */ t(
|
|
583
585
|
"div",
|
|
584
586
|
{
|
|
585
|
-
className: `${w.iconWrapper} ${
|
|
586
|
-
onClick:
|
|
587
|
+
className: `${w.iconWrapper} ${f ? w.fadeIn : w.fadeOut}`,
|
|
588
|
+
onClick: l,
|
|
587
589
|
children: /* @__PURE__ */ t(Ae, {})
|
|
588
590
|
}
|
|
589
591
|
) : null
|
|
@@ -594,16 +596,16 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
594
596
|
{
|
|
595
597
|
className: w.operationContainer,
|
|
596
598
|
style: {
|
|
597
|
-
"--op-x": `${
|
|
598
|
-
"--op-y": `${
|
|
599
|
+
"--op-x": `${E + 16}px`,
|
|
600
|
+
"--op-y": `${o}px`
|
|
599
601
|
},
|
|
600
|
-
children: /* @__PURE__ */ t(
|
|
602
|
+
children: /* @__PURE__ */ t(Ze, {})
|
|
601
603
|
}
|
|
602
604
|
)
|
|
603
605
|
] }) : null
|
|
604
606
|
] })
|
|
605
607
|
] });
|
|
606
|
-
},
|
|
608
|
+
}, lt = () => /* @__PURE__ */ C(
|
|
607
609
|
"svg",
|
|
608
610
|
{
|
|
609
611
|
width: "24",
|
|
@@ -632,26 +634,26 @@ const Oe = "_panel_19663_1", Be = "_panelExiting_19663_13", Se = "_menuItem_1966
|
|
|
632
634
|
)
|
|
633
635
|
]
|
|
634
636
|
}
|
|
635
|
-
),
|
|
636
|
-
stepLinkIcon:
|
|
637
|
-
stepLinkLine:
|
|
638
|
-
stepLinkContainer:
|
|
637
|
+
), ct = "_stepLinkIcon_a40q0_1", at = "_stepLinkLine_a40q0_17", dt = "_stepLinkContainer_a40q0_39", F = {
|
|
638
|
+
stepLinkIcon: ct,
|
|
639
|
+
stepLinkLine: at,
|
|
640
|
+
stepLinkContainer: dt
|
|
639
641
|
};
|
|
640
|
-
function dt(e) {
|
|
641
|
-
return z({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "4" }, child: [] }, { tag: "line", attr: { x1: "1.05", y1: "12", x2: "7", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "17.01", y1: "12", x2: "22.96", y2: "12" }, child: [] }] })(e);
|
|
642
|
-
}
|
|
643
642
|
function ut(e) {
|
|
644
|
-
return
|
|
643
|
+
return j({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "4" }, child: [] }, { tag: "line", attr: { x1: "1.05", y1: "12", x2: "7", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "17.01", y1: "12", x2: "22.96", y2: "12" }, child: [] }] })(e);
|
|
645
644
|
}
|
|
646
|
-
|
|
645
|
+
function pt(e) {
|
|
646
|
+
return j({ 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);
|
|
647
|
+
}
|
|
648
|
+
const Y = ({
|
|
647
649
|
onAddStep: e,
|
|
648
650
|
onAddTrigger: i,
|
|
649
651
|
index: n = 0
|
|
650
652
|
}) => {
|
|
651
|
-
const r =
|
|
653
|
+
const r = ie(), l = z(null), m = [
|
|
652
654
|
{
|
|
653
655
|
label: "Trigger",
|
|
654
|
-
icon: /* @__PURE__ */ t(
|
|
656
|
+
icon: /* @__PURE__ */ t(pt, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
655
657
|
command: () => {
|
|
656
658
|
i?.(n);
|
|
657
659
|
},
|
|
@@ -659,150 +661,194 @@ const U = ({
|
|
|
659
661
|
},
|
|
660
662
|
{
|
|
661
663
|
label: "Step",
|
|
662
|
-
icon: /* @__PURE__ */ t(
|
|
664
|
+
icon: /* @__PURE__ */ t(ut, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
663
665
|
command: () => {
|
|
664
666
|
e?.(n);
|
|
665
667
|
},
|
|
666
668
|
template: r
|
|
667
669
|
}
|
|
668
|
-
], d = (
|
|
669
|
-
|
|
670
|
+
], d = (a) => {
|
|
671
|
+
l.current?.show(a);
|
|
670
672
|
};
|
|
671
|
-
return /* @__PURE__ */
|
|
672
|
-
/* @__PURE__ */ t("div", { className:
|
|
673
|
+
return /* @__PURE__ */ C("div", { className: F.stepLinkContainer, children: [
|
|
674
|
+
/* @__PURE__ */ t("div", { className: F.stepLinkLine }),
|
|
673
675
|
/* @__PURE__ */ t(
|
|
674
676
|
"div",
|
|
675
677
|
{
|
|
676
|
-
className:
|
|
678
|
+
className: F.stepLinkIcon,
|
|
677
679
|
onClick: d,
|
|
678
680
|
"aria-haspopup": !0,
|
|
679
|
-
children: /* @__PURE__ */ t(
|
|
681
|
+
children: /* @__PURE__ */ t(lt, {})
|
|
680
682
|
}
|
|
681
683
|
),
|
|
682
684
|
/* @__PURE__ */ t(
|
|
683
|
-
|
|
685
|
+
ne,
|
|
684
686
|
{
|
|
685
|
-
model: n === 0 ?
|
|
687
|
+
model: n === 0 ? m.splice(1) : m,
|
|
686
688
|
popup: !0,
|
|
687
|
-
ref:
|
|
689
|
+
ref: l
|
|
688
690
|
}
|
|
689
691
|
),
|
|
690
|
-
/* @__PURE__ */ t("div", { className:
|
|
692
|
+
/* @__PURE__ */ t("div", { className: F.stepLinkLine })
|
|
691
693
|
] });
|
|
692
|
-
},
|
|
693
|
-
steps:
|
|
694
|
-
stepContainer:
|
|
695
|
-
},
|
|
694
|
+
}, ht = "_steps_k2je4_1", mt = "_stepContainer_k2je4_8", J = {
|
|
695
|
+
steps: ht,
|
|
696
|
+
stepContainer: mt
|
|
697
|
+
}, gt = ({
|
|
696
698
|
steps: e,
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
{
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
onAddTrigger: p,
|
|
719
|
-
index: 0
|
|
699
|
+
centerY: i,
|
|
700
|
+
className: n,
|
|
701
|
+
onDeleteStep: r,
|
|
702
|
+
onUpdateFilter: l,
|
|
703
|
+
onAddStep: m,
|
|
704
|
+
onAddTrigger: d,
|
|
705
|
+
onSelectStep: a
|
|
706
|
+
}) => {
|
|
707
|
+
const c = i !== void 0 ? { marginTop: Math.max(0, i - 37) } : void 0;
|
|
708
|
+
return e.length === 0 ? /* @__PURE__ */ C("div", { style: { width: "100%", marginTop: "23px", display: "flex", flexDirection: "row", flex: 1, minWidth: 0, ...c }, children: [
|
|
709
|
+
/* @__PURE__ */ t(
|
|
710
|
+
"div",
|
|
711
|
+
{
|
|
712
|
+
style: {
|
|
713
|
+
flexGrow: 1,
|
|
714
|
+
flexShrink: 0,
|
|
715
|
+
flexBasis: "auto",
|
|
716
|
+
minWidth: 0,
|
|
717
|
+
height: "2px",
|
|
718
|
+
marginTop: "13.5px",
|
|
719
|
+
borderTop: "2px solid #3B64A0"
|
|
720
720
|
}
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
}
|
|
722
|
+
),
|
|
723
|
+
/* @__PURE__ */ t(
|
|
724
|
+
Y,
|
|
725
|
+
{
|
|
726
|
+
onAddStep: m,
|
|
727
|
+
onAddTrigger: d,
|
|
728
|
+
index: 0
|
|
729
|
+
}
|
|
730
|
+
),
|
|
731
|
+
/* @__PURE__ */ t(
|
|
732
|
+
"div",
|
|
733
|
+
{
|
|
734
|
+
style: {
|
|
735
|
+
flexGrow: 1,
|
|
736
|
+
flexShrink: 0,
|
|
737
|
+
flexBasis: "auto",
|
|
738
|
+
minWidth: 0,
|
|
739
|
+
height: "2px",
|
|
740
|
+
marginTop: "13.5px",
|
|
741
|
+
borderTop: "2px solid #3B64A0"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
)
|
|
745
|
+
] }) : /* @__PURE__ */ t("div", { className: J.steps + (n ? " " + n : ""), style: c, children: /* @__PURE__ */ C(
|
|
746
|
+
"div",
|
|
747
|
+
{
|
|
748
|
+
style: {
|
|
749
|
+
display: "flex",
|
|
750
|
+
flexDirection: "row",
|
|
751
|
+
flex: 1,
|
|
752
|
+
minWidth: 0,
|
|
753
|
+
width: "100%"
|
|
754
|
+
},
|
|
755
|
+
children: [
|
|
723
756
|
/* @__PURE__ */ t(
|
|
724
|
-
|
|
757
|
+
Y,
|
|
725
758
|
{
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
isInvalid: l.isInvalid,
|
|
730
|
-
isFilter: l.isFilter,
|
|
731
|
-
isSelected: l.isSelected,
|
|
732
|
-
icon: l.icon,
|
|
733
|
-
onClick: () => {
|
|
734
|
-
d(l.id);
|
|
735
|
-
},
|
|
736
|
-
onDeleteStep: n ? (C) => n(e[C].id) : void 0,
|
|
737
|
-
onUpdateFilter: r ? (C) => r(e[C].id) : void 0
|
|
759
|
+
onAddStep: m,
|
|
760
|
+
onAddTrigger: d,
|
|
761
|
+
index: 0
|
|
738
762
|
}
|
|
739
763
|
),
|
|
764
|
+
e.map((g, k) => /* @__PURE__ */ C("div", { className: J.stepContainer, children: [
|
|
765
|
+
/* @__PURE__ */ t(
|
|
766
|
+
oe,
|
|
767
|
+
{
|
|
768
|
+
idx: k,
|
|
769
|
+
title: g.title,
|
|
770
|
+
isSet: g.isSet,
|
|
771
|
+
isInvalid: g.isInvalid,
|
|
772
|
+
isFilter: g.isFilter,
|
|
773
|
+
isSelected: g.isSelected,
|
|
774
|
+
icon: g.icon,
|
|
775
|
+
onClick: () => {
|
|
776
|
+
a(g.id);
|
|
777
|
+
},
|
|
778
|
+
onDeleteStep: r ? (_) => r(e[_].id) : void 0,
|
|
779
|
+
onUpdateFilter: l ? (_) => l(e[_].id) : void 0
|
|
780
|
+
}
|
|
781
|
+
),
|
|
782
|
+
/* @__PURE__ */ t(
|
|
783
|
+
Y,
|
|
784
|
+
{
|
|
785
|
+
onAddStep: m,
|
|
786
|
+
onAddTrigger: d,
|
|
787
|
+
index: k + 1
|
|
788
|
+
}
|
|
789
|
+
)
|
|
790
|
+
] }, g.id)),
|
|
740
791
|
/* @__PURE__ */ t(
|
|
741
|
-
|
|
792
|
+
"div",
|
|
742
793
|
{
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
794
|
+
style: {
|
|
795
|
+
flexGrow: 1,
|
|
796
|
+
flexShrink: 0,
|
|
797
|
+
flexBasis: "auto",
|
|
798
|
+
minWidth: 0,
|
|
799
|
+
height: "2px",
|
|
800
|
+
borderTop: "2px solid #3B64A0",
|
|
801
|
+
marginTop: "36.5px"
|
|
802
|
+
}
|
|
746
803
|
}
|
|
747
804
|
)
|
|
748
|
-
]
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
flex: 1,
|
|
754
|
-
minWidth: 0,
|
|
755
|
-
height: "2px",
|
|
756
|
-
borderTop: "2px solid #3B64A0",
|
|
757
|
-
marginTop: "34px"
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
)
|
|
761
|
-
]
|
|
762
|
-
}
|
|
763
|
-
) }), gt = "_container_12c1g_1", Ct = {
|
|
764
|
-
container: gt
|
|
805
|
+
]
|
|
806
|
+
}
|
|
807
|
+
) });
|
|
808
|
+
}, Ct = "_container_12c1g_1", ft = {
|
|
809
|
+
container: Ct
|
|
765
810
|
}, yt = ({
|
|
766
811
|
process: e,
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
/* @__PURE__ */ t(
|
|
787
|
-
mt,
|
|
788
|
-
{
|
|
789
|
-
steps: e.steps,
|
|
790
|
-
onDeleteStep: d,
|
|
791
|
-
onUpdateFilter: l,
|
|
792
|
-
onAddStep: r,
|
|
793
|
-
onAddTrigger: i,
|
|
794
|
-
onSelectStep: (C) => {
|
|
795
|
-
o(C);
|
|
812
|
+
addMultipleTriggers: i,
|
|
813
|
+
onAddStep: n,
|
|
814
|
+
onEditTrigger: r,
|
|
815
|
+
onDeleteTrigger: l,
|
|
816
|
+
onDeleteStep: m,
|
|
817
|
+
onUpdateFilter: d,
|
|
818
|
+
onSelectStep: a
|
|
819
|
+
}) => {
|
|
820
|
+
const [p, c] = N(0);
|
|
821
|
+
return /* @__PURE__ */ C("div", { className: ft.container, children: [
|
|
822
|
+
/* @__PURE__ */ t(
|
|
823
|
+
st,
|
|
824
|
+
{
|
|
825
|
+
steps: e.triggers,
|
|
826
|
+
onAddTrigger: i,
|
|
827
|
+
onDeleteTrigger: l,
|
|
828
|
+
onEditTrigger: r,
|
|
829
|
+
onSelectStep: a,
|
|
830
|
+
onCenterYUpdate: c
|
|
796
831
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
832
|
+
),
|
|
833
|
+
/* @__PURE__ */ t(
|
|
834
|
+
gt,
|
|
835
|
+
{
|
|
836
|
+
steps: e.steps,
|
|
837
|
+
centerY: p,
|
|
838
|
+
onAddStep: n,
|
|
839
|
+
onDeleteStep: m,
|
|
840
|
+
onUpdateFilter: d,
|
|
841
|
+
onSelectStep: a
|
|
842
|
+
}
|
|
843
|
+
)
|
|
844
|
+
] });
|
|
845
|
+
};
|
|
800
846
|
export {
|
|
801
|
-
|
|
802
|
-
|
|
847
|
+
ne as Menu,
|
|
848
|
+
xt as MenuProvider,
|
|
803
849
|
yt as ProcessDiagram,
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
850
|
+
oe as ProcessStep,
|
|
851
|
+
st as Trigger,
|
|
852
|
+
Fe as useMenuProvider
|
|
807
853
|
};
|
|
808
854
|
//# sourceMappingURL=index.mjs.map
|