@a2simcode/dui 0.0.18 → 0.0.19
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/dui.es.js +850 -854
- package/dist/dui.umd.js +3 -3
- package/package.json +1 -1
package/dist/dui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as _t, ref as de, onMounted as mt, nextTick as Ge, onUnmounted as Xr, defineComponent as Ee, shallowRef as $t, watch as Ne, h as Ae, computed as
|
|
1
|
+
import { inject as _t, ref as de, onMounted as mt, nextTick as Ge, onUnmounted as Xr, defineComponent as Ee, shallowRef as $t, watch as Ne, h as Ae, computed as fe, openBlock as ee, createElementBlock as ue, mergeProps as At, createVNode as he, unref as J, withModifiers as We, normalizeClass as bt, createBlock as Te, createCommentVNode as $e, toDisplayString as lt, renderSlot as Pe, resolveComponent as De, createElementVNode as le, withCtx as Ce, Fragment as Be, renderList as gt, resolveDynamicComponent as Et, normalizeStyle as Oe, getCurrentScope as sl, effectScope as al, provide as zt, useSlots as mu, createPropsRestProxy as vu, toRef as ze, useAttrs as yu, Teleport as bu, getCurrentInstance as Fn, reactive as $n, onScopeDispose as Vo, onBeforeMount as _u, onBeforeUnmount as qr, isMemoSame as wu, createTextVNode as En, isRef as Kr, toRefs as xu, customRef as Cu, toValue as Ie, markRaw as Go, readonly as Eu, withDirectives as ao, vShow as lo, normalizeProps as ll, guardReactiveProps as Su } from "vue";
|
|
2
2
|
const bn = (t, e) => (t.install = (n) => {
|
|
3
3
|
n.component(t.name, t), e && e.forEach((o) => {
|
|
4
4
|
n.component(o.name, o);
|
|
@@ -57,33 +57,33 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
57
57
|
copyComponent: S,
|
|
58
58
|
activedComponent: _,
|
|
59
59
|
top: g
|
|
60
|
-
} = _t("d-drag-design-provide", {}), w = [],
|
|
60
|
+
} = _t("d-drag-design-provide", {}), w = [], A = de(!1), $ = de(!1), F = de(!1), Y = de(!1), G = de(!1), E = { id: "", type: "" }, T = de(!1), C = de(!1);
|
|
61
61
|
let H = "", b = null;
|
|
62
62
|
const N = (X) => {
|
|
63
63
|
if (H === X)
|
|
64
64
|
return b;
|
|
65
65
|
H = X;
|
|
66
|
-
const { top: te, left: se, width:
|
|
66
|
+
const { top: te, left: se, width: ie, height: ge } = t.value.getBoundingClientRect();
|
|
67
67
|
return b = [
|
|
68
68
|
{ x: se, y: te },
|
|
69
|
-
{ x: se +
|
|
70
|
-
{ x: se +
|
|
71
|
-
{ x: se, y: te +
|
|
69
|
+
{ x: se + ie, y: te },
|
|
70
|
+
{ x: se + ie, y: te + ge },
|
|
71
|
+
{ x: se, y: te + ge }
|
|
72
72
|
], b;
|
|
73
73
|
}, v = (X, te, se) => {
|
|
74
|
-
let
|
|
75
|
-
re < 0 && (re = -re);
|
|
76
|
-
let pe = te - se[3].y;
|
|
77
|
-
pe < 0 && (pe = -pe);
|
|
78
|
-
let ie = X - se[0].x;
|
|
74
|
+
let ie = te - se[0].y;
|
|
79
75
|
ie < 0 && (ie = -ie);
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
let ge = te - se[3].y;
|
|
77
|
+
ge < 0 && (ge = -ge);
|
|
78
|
+
let re = X - se[0].x;
|
|
79
|
+
re < 0 && (re = -re);
|
|
80
|
+
let ae = X - se[1].x;
|
|
81
|
+
return ae < 0 && (ae = -ae), {
|
|
82
|
+
ly: ie > ge ? ge : ie,
|
|
83
|
+
typey: ie > ge ? "bottom" : "top",
|
|
84
|
+
lx: re > ae ? ae : re,
|
|
85
85
|
// typex: lx1 > lx2 ? 'bottom' : 'top',
|
|
86
|
-
lallx:
|
|
86
|
+
lallx: re + ae
|
|
87
87
|
};
|
|
88
88
|
}, x = (X, te, se) => X >= se[0].x && X <= se[1].x && te >= se[0].y && te <= se[3].y, D = () => {
|
|
89
89
|
if (i) {
|
|
@@ -122,7 +122,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
122
122
|
mouseEnterOrLeave: ({ id: X, type: te }) => {
|
|
123
123
|
te === "enter" ? w.push(X) : w.length > 0 && w.splice(w.length - 1, 1);
|
|
124
124
|
const se = w.length;
|
|
125
|
-
se > 0 && s === w[se - 1] ?
|
|
125
|
+
se > 0 && s === w[se - 1] ? A.value = !0 : A.value = !1;
|
|
126
126
|
},
|
|
127
127
|
dragAciveChild: ({ type: X, id: te }) => {
|
|
128
128
|
te === s ? X === "top" ? (T.value = !0, C.value = !1) : (C.value = !0, T.value = !1) : (C.value = !1, T.value = !1);
|
|
@@ -137,20 +137,20 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
137
137
|
dragY: te,
|
|
138
138
|
moveId: se
|
|
139
139
|
}) => {
|
|
140
|
-
const
|
|
141
|
-
return v(X, te,
|
|
140
|
+
const ie = N(se);
|
|
141
|
+
return v(X, te, ie);
|
|
142
142
|
};
|
|
143
143
|
const K = {
|
|
144
144
|
// 判断是否在当前容器里
|
|
145
|
-
isInContainer({ x: X, y: te, id: se, moveId:
|
|
145
|
+
isInContainer({ x: X, y: te, id: se, moveId: ie }) {
|
|
146
146
|
if (s === se || d(se, s))
|
|
147
147
|
return F.value = !1, { isIn: !1, level: a, id: s, groupId: r };
|
|
148
|
-
const
|
|
149
|
-
if (x(X, te,
|
|
148
|
+
const ge = N(ie);
|
|
149
|
+
if (x(X, te, ge))
|
|
150
150
|
return a === 0 && (G.value = !0), { isIn: !0, level: a, id: s, groupId: r };
|
|
151
151
|
if (a === 0) {
|
|
152
|
-
const { ly:
|
|
153
|
-
if (
|
|
152
|
+
const { ly: re, lx: ae } = v(X, te, ge);
|
|
153
|
+
if (re < 20 && ae < 20)
|
|
154
154
|
return G.value = !0, { isIn: !0, level: a, id: s, groupId: r };
|
|
155
155
|
G.value = !1;
|
|
156
156
|
}
|
|
@@ -161,12 +161,12 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
161
161
|
containerId: X,
|
|
162
162
|
containerGroupId: te,
|
|
163
163
|
dragX: se,
|
|
164
|
-
dragY:
|
|
165
|
-
moveId:
|
|
164
|
+
dragY: ie,
|
|
165
|
+
moveId: ge
|
|
166
166
|
}) => {
|
|
167
167
|
if (X === s && te === r)
|
|
168
168
|
if (F.value = !0, o && o.value.length > 0) {
|
|
169
|
-
let
|
|
169
|
+
let re = {
|
|
170
170
|
ly: 9999999,
|
|
171
171
|
lx: 0,
|
|
172
172
|
lallx: 0,
|
|
@@ -175,15 +175,15 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
175
175
|
// typex: '',
|
|
176
176
|
typey: ""
|
|
177
177
|
};
|
|
178
|
-
o?.value.forEach((
|
|
179
|
-
if (r &&
|
|
180
|
-
const
|
|
178
|
+
o?.value.forEach((ae) => {
|
|
179
|
+
if (r && ae.groupId !== r) return;
|
|
180
|
+
const P = je(`dragGetChildDistance_${ae.id}`, {
|
|
181
181
|
dragX: se,
|
|
182
|
-
dragY:
|
|
183
|
-
moveId:
|
|
182
|
+
dragY: ie,
|
|
183
|
+
moveId: ge
|
|
184
184
|
})[0];
|
|
185
|
-
|
|
186
|
-
}), E.id =
|
|
185
|
+
P && (re.ly > P.ly || re.ly === P.ly && (re.lx > P.lx || re.lx === P.lx && re.lallx > P.lallx)) && (re = P, re.id = ae.id);
|
|
186
|
+
}), E.id = re.id, E.type = re.typey, je("dragAciveChild", { id: re.id, type: re.typey });
|
|
187
187
|
} else
|
|
188
188
|
je("dragAciveChild", { id: "" });
|
|
189
189
|
else
|
|
@@ -199,8 +199,8 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
199
199
|
dragAddByClick: (X) => {
|
|
200
200
|
if (!_.value && s === g.id || _.value?.id === s || _.value?.containerId === s && _.value?.dragType !== "container") {
|
|
201
201
|
const te = o?.value.length || 0, se = f(X, s, te, r, !0);
|
|
202
|
-
se && X.config && Object.keys(X.config).forEach((
|
|
203
|
-
se.config[
|
|
202
|
+
se && X.config && Object.keys(X.config).forEach((ie) => {
|
|
203
|
+
se.config[ie] = X.config[ie];
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
},
|
|
@@ -209,7 +209,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
209
209
|
const te = c(X);
|
|
210
210
|
if (te.level = a + 1, E.id !== te.id) {
|
|
211
211
|
p(te.containerId, X);
|
|
212
|
-
let se = o?.value.findIndex((
|
|
212
|
+
let se = o?.value.findIndex((ie) => ie.id === E.id) || 0;
|
|
213
213
|
E.type === "bottom" && (se += 1), y(te, s, se, r);
|
|
214
214
|
}
|
|
215
215
|
F.value = !1, Ge(() => {
|
|
@@ -243,7 +243,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
243
243
|
copyComponent: S,
|
|
244
244
|
getParentComponents: m,
|
|
245
245
|
isBottomToolBar: Y,
|
|
246
|
-
isHover:
|
|
246
|
+
isHover: A,
|
|
247
247
|
isSelect: $,
|
|
248
248
|
isToContainer: F,
|
|
249
249
|
isMoveingInTopLevel: G,
|
|
@@ -996,7 +996,7 @@ function fd(t, e, n, o) {
|
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
998
|
if (G) {
|
|
999
|
-
c = Y, f.length || (s.length ?
|
|
999
|
+
c = Y, f.length || (s.length ? A() : _());
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (m(), g(), !t.random) {
|
|
@@ -1007,7 +1007,7 @@ function fd(t, e, n, o) {
|
|
|
1007
1007
|
E(Y);
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function A() {
|
|
1011
1011
|
if (u !== "pending")
|
|
1012
1012
|
return;
|
|
1013
1013
|
m();
|
|
@@ -1029,9 +1029,9 @@ function fd(t, e, n, o) {
|
|
|
1029
1029
|
w(F, Y, G);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
|
-
f.push(F), l++, d = setTimeout(
|
|
1032
|
+
f.push(F), l++, d = setTimeout(A, t.rotate), n($, e, F.callback);
|
|
1033
1033
|
}
|
|
1034
|
-
return setTimeout(
|
|
1034
|
+
return setTimeout(A), S;
|
|
1035
1035
|
}
|
|
1036
1036
|
function wl(t) {
|
|
1037
1037
|
const e = {
|
|
@@ -1516,13 +1516,13 @@ const kd = {
|
|
|
1516
1516
|
isDiv: { type: Boolean, default: !0 }
|
|
1517
1517
|
},
|
|
1518
1518
|
setup(t) {
|
|
1519
|
-
const e = t, n =
|
|
1519
|
+
const e = t, n = fe(() => {
|
|
1520
1520
|
const i = e.icon;
|
|
1521
1521
|
if (i.indexOf(":") === -1)
|
|
1522
1522
|
return As(`jcode:${e.icon}`) == null, `jcode:${e.icon}`;
|
|
1523
1523
|
const s = `jcode:${i.split(":")[1]}`;
|
|
1524
1524
|
return As(s) != null ? s : i;
|
|
1525
|
-
}), o =
|
|
1525
|
+
}), o = fe(() => ({
|
|
1526
1526
|
size: e.size,
|
|
1527
1527
|
color: e.color,
|
|
1528
1528
|
icon: n.value
|
|
@@ -1531,14 +1531,14 @@ const kd = {
|
|
|
1531
1531
|
class: "j-icon jicon",
|
|
1532
1532
|
style: { height: `${t.size}px` }
|
|
1533
1533
|
}), [
|
|
1534
|
-
|
|
1534
|
+
he(J(js), At(o.value, {
|
|
1535
1535
|
height: `${t.size}px`,
|
|
1536
1536
|
width: `${t.size}px`,
|
|
1537
1537
|
mode: "svg",
|
|
1538
1538
|
style: `transform:rotate(${t.rotate || 0}deg)`
|
|
1539
1539
|
}), null, 16, ["height", "width", "style"])
|
|
1540
1540
|
], 16)) : (ee(), ue("span", At({ key: 1 }, i.$attrs, { class: "jicon" }), [
|
|
1541
|
-
|
|
1541
|
+
he(J(js), At(o.value, {
|
|
1542
1542
|
height: `${t.size}px`,
|
|
1543
1543
|
width: `${t.size}px`,
|
|
1544
1544
|
mode: "svg",
|
|
@@ -1575,7 +1575,7 @@ const kd = {
|
|
|
1575
1575
|
s.value?.focus();
|
|
1576
1576
|
}, u = () => {
|
|
1577
1577
|
s.value?.blur();
|
|
1578
|
-
}, l =
|
|
1578
|
+
}, l = fe(() => o.notLabel || !o.label), c = de(!1);
|
|
1579
1579
|
Ne(
|
|
1580
1580
|
() => o.loading,
|
|
1581
1581
|
(f) => {
|
|
@@ -1592,7 +1592,7 @@ const kd = {
|
|
|
1592
1592
|
},
|
|
1593
1593
|
{ immediate: !0 }
|
|
1594
1594
|
);
|
|
1595
|
-
const d =
|
|
1595
|
+
const d = fe(() => o.label || "");
|
|
1596
1596
|
return e({ focus: a, blur: u }), (f, h) => (ee(), ue("button", {
|
|
1597
1597
|
ref_key: "buttonNodeRef",
|
|
1598
1598
|
ref: s,
|
|
@@ -1679,103 +1679,103 @@ const kd = {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
])
|
|
1681
1681
|
}, [
|
|
1682
|
-
g[11] || (g[11] =
|
|
1683
|
-
|
|
1682
|
+
g[11] || (g[11] = le("div", { class: "d-drag-line" }, null, -1)),
|
|
1683
|
+
le("div", {
|
|
1684
1684
|
class: "d-drag-btns",
|
|
1685
1685
|
onMouseenter: g[4] || (g[4] = //@ts-ignore
|
|
1686
|
-
(...
|
|
1686
|
+
(...A) => J(o) && J(o)(...A)),
|
|
1687
1687
|
onMouseleave: g[5] || (g[5] = //@ts-ignore
|
|
1688
|
-
(...
|
|
1688
|
+
(...A) => J(i) && J(i)(...A))
|
|
1689
1689
|
}, [
|
|
1690
|
-
|
|
1691
|
-
default:
|
|
1692
|
-
|
|
1690
|
+
he(w, { size: 4 }, {
|
|
1691
|
+
default: Ce(() => [
|
|
1692
|
+
le("div", {
|
|
1693
1693
|
class: "d-drag-btns-names",
|
|
1694
1694
|
onClick: We(() => {
|
|
1695
1695
|
}, ["stop"])
|
|
1696
1696
|
}, [
|
|
1697
|
-
|
|
1697
|
+
he(J(Sn), {
|
|
1698
1698
|
class: "d-drag-btn",
|
|
1699
1699
|
type: "primary",
|
|
1700
1700
|
size: "small",
|
|
1701
1701
|
label: t.componentData.name
|
|
1702
1702
|
}, null, 8, ["label"]),
|
|
1703
|
-
|
|
1704
|
-
(ee(!0), ue(Be, null, gt(J(l)(t.componentData.containerId), (
|
|
1705
|
-
key:
|
|
1703
|
+
le("div", Ad, [
|
|
1704
|
+
(ee(!0), ue(Be, null, gt(J(l)(t.componentData.containerId), (A) => (ee(), ue("div", {
|
|
1705
|
+
key: A.id
|
|
1706
1706
|
}, [
|
|
1707
|
-
|
|
1707
|
+
he(J(Sn), {
|
|
1708
1708
|
class: "d-drag-btn",
|
|
1709
1709
|
type: "primary",
|
|
1710
1710
|
size: "small",
|
|
1711
|
-
label:
|
|
1712
|
-
onClick: ($) => J(s)(
|
|
1711
|
+
label: A.name,
|
|
1712
|
+
onClick: ($) => J(s)(A.id)
|
|
1713
1713
|
}, null, 8, ["label", "onClick"])
|
|
1714
1714
|
]))), 128))
|
|
1715
1715
|
])
|
|
1716
1716
|
]),
|
|
1717
|
-
|
|
1717
|
+
he(J(Sn), {
|
|
1718
1718
|
class: "d-drag-btn",
|
|
1719
1719
|
type: "primary",
|
|
1720
1720
|
size: "small",
|
|
1721
1721
|
icon: "mdi:content-copy",
|
|
1722
|
-
onClick: g[0] || (g[0] = We((
|
|
1722
|
+
onClick: g[0] || (g[0] = We((A) => J(u)(t.componentData.id), ["stop"]))
|
|
1723
1723
|
}),
|
|
1724
|
-
|
|
1724
|
+
le("div", {
|
|
1725
1725
|
onContextmenu: g[1] || (g[1] = We(
|
|
1726
1726
|
//@ts-ignore
|
|
1727
|
-
(...
|
|
1727
|
+
(...A) => J(p) && J(p)(...A),
|
|
1728
1728
|
["stop"]
|
|
1729
1729
|
)),
|
|
1730
1730
|
onMousedown: g[2] || (g[2] = We(
|
|
1731
1731
|
//@ts-ignore
|
|
1732
|
-
(...
|
|
1732
|
+
(...A) => J(y) && J(y)(...A),
|
|
1733
1733
|
["stop"]
|
|
1734
1734
|
)),
|
|
1735
1735
|
style: { display: "flex" }
|
|
1736
1736
|
}, [
|
|
1737
|
-
|
|
1737
|
+
he(J(Sn), {
|
|
1738
1738
|
class: "d-drag-btn",
|
|
1739
1739
|
type: "primary",
|
|
1740
1740
|
size: "small",
|
|
1741
1741
|
icon: "mdi:drag"
|
|
1742
1742
|
})
|
|
1743
1743
|
], 32),
|
|
1744
|
-
|
|
1744
|
+
he(J(Sn), {
|
|
1745
1745
|
class: "d-drag-btn",
|
|
1746
1746
|
danger: "",
|
|
1747
1747
|
type: "primary",
|
|
1748
1748
|
size: "small",
|
|
1749
1749
|
icon: "mdi:delete",
|
|
1750
|
-
onClick: g[3] || (g[3] = We((
|
|
1750
|
+
onClick: g[3] || (g[3] = We((A) => J(a)(t.componentData.id), ["stop"]))
|
|
1751
1751
|
})
|
|
1752
1752
|
]),
|
|
1753
1753
|
_: 1
|
|
1754
1754
|
})
|
|
1755
1755
|
], 32),
|
|
1756
|
-
|
|
1756
|
+
le("div", {
|
|
1757
1757
|
ref_key: "refDrag",
|
|
1758
1758
|
ref: n,
|
|
1759
1759
|
class: "d-drag-body",
|
|
1760
1760
|
onClick: g[6] || (g[6] = We(
|
|
1761
1761
|
//@ts-ignore
|
|
1762
|
-
(...
|
|
1762
|
+
(...A) => J(r) && J(r)(...A),
|
|
1763
1763
|
["stop"]
|
|
1764
1764
|
)),
|
|
1765
1765
|
onContextmenu: g[7] || (g[7] = We(
|
|
1766
1766
|
//@ts-ignore
|
|
1767
|
-
(...
|
|
1767
|
+
(...A) => J(p) && J(p)(...A),
|
|
1768
1768
|
["stop"]
|
|
1769
1769
|
)),
|
|
1770
1770
|
onMousedown: g[8] || (g[8] = We(
|
|
1771
1771
|
//@ts-ignore
|
|
1772
|
-
(...
|
|
1772
|
+
(...A) => J(y) && J(y)(...A),
|
|
1773
1773
|
["stop"]
|
|
1774
1774
|
)),
|
|
1775
1775
|
onMouseenter: g[9] || (g[9] = //@ts-ignore
|
|
1776
|
-
(...
|
|
1776
|
+
(...A) => J(o) && J(o)(...A)),
|
|
1777
1777
|
onMouseleave: g[10] || (g[10] = //@ts-ignore
|
|
1778
|
-
(...
|
|
1778
|
+
(...A) => J(i) && J(i)(...A))
|
|
1779
1779
|
}, [
|
|
1780
1780
|
Pe(_.$slots, "default"),
|
|
1781
1781
|
t.isContainer ? $e("", !0) : (ee(), ue("div", Pd))
|
|
@@ -1830,7 +1830,7 @@ const kd = {
|
|
|
1830
1830
|
groupId: { default: void 0 }
|
|
1831
1831
|
},
|
|
1832
1832
|
setup(t) {
|
|
1833
|
-
const e = t, n = de(), o =
|
|
1833
|
+
const e = t, n = de(), o = fe(
|
|
1834
1834
|
() => e.componentData?.children || []
|
|
1835
1835
|
), {
|
|
1836
1836
|
onMouseenter: i,
|
|
@@ -1849,7 +1849,7 @@ const kd = {
|
|
|
1849
1849
|
o,
|
|
1850
1850
|
e.isComponentContainer,
|
|
1851
1851
|
e.groupId
|
|
1852
|
-
), h =
|
|
1852
|
+
), h = fe(() => !!(o.value.findIndex((m) => m.groupId === e.groupId) === -1 && l.value));
|
|
1853
1853
|
return (m, p) => (ee(), ue("div", {
|
|
1854
1854
|
ref_key: "refDrag",
|
|
1855
1855
|
ref: n,
|
|
@@ -1868,12 +1868,12 @@ const kd = {
|
|
|
1868
1868
|
}, [
|
|
1869
1869
|
t.isComponentContainer ? $e("", !0) : (ee(), ue("div", Od)),
|
|
1870
1870
|
t.isComponentContainer ? $e("", !0) : (ee(), ue("div", zd, [
|
|
1871
|
-
|
|
1871
|
+
le("div", {
|
|
1872
1872
|
class: "d-drag-btns-names",
|
|
1873
1873
|
onClick: We(() => {
|
|
1874
1874
|
}, ["stop"])
|
|
1875
1875
|
}, [
|
|
1876
|
-
|
|
1876
|
+
he(J(Sn), {
|
|
1877
1877
|
class: "d-drag-btn",
|
|
1878
1878
|
type: "primary",
|
|
1879
1879
|
size: "small",
|
|
@@ -1881,7 +1881,7 @@ const kd = {
|
|
|
1881
1881
|
}, null, 8, ["label"])
|
|
1882
1882
|
])
|
|
1883
1883
|
])),
|
|
1884
|
-
|
|
1884
|
+
le("div", {
|
|
1885
1885
|
class: "d-drag-body",
|
|
1886
1886
|
onClick: p[0] || (p[0] = We(
|
|
1887
1887
|
//@ts-ignore
|
|
@@ -1915,12 +1915,12 @@ const kd = {
|
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
span: r.config.span || 24
|
|
1917
1917
|
}, {
|
|
1918
|
-
default:
|
|
1919
|
-
|
|
1918
|
+
default: Ce(() => [
|
|
1919
|
+
he(ts, {
|
|
1920
1920
|
"is-container": r.dragType !== "component",
|
|
1921
1921
|
"component-data": r
|
|
1922
1922
|
}, {
|
|
1923
|
-
default:
|
|
1923
|
+
default: Ce(() => [
|
|
1924
1924
|
(ee(), Te(Et(J(e)), {
|
|
1925
1925
|
"component-data": r,
|
|
1926
1926
|
"global-config": t.globalConfig
|
|
@@ -1952,7 +1952,7 @@ const kd = {
|
|
|
1952
1952
|
"is-container": r.dragType !== "component",
|
|
1953
1953
|
"component-data": r
|
|
1954
1954
|
}, {
|
|
1955
|
-
default:
|
|
1955
|
+
default: Ce(() => [
|
|
1956
1956
|
(ee(), Te(Et(J(e)), {
|
|
1957
1957
|
"component-data": r,
|
|
1958
1958
|
"global-config": t.globalConfig
|
|
@@ -2078,8 +2078,8 @@ function Nr(t, e = !1) {
|
|
|
2078
2078
|
const g = [new Promise((w) => {
|
|
2079
2079
|
S = Ne(
|
|
2080
2080
|
[t, d],
|
|
2081
|
-
([
|
|
2082
|
-
e !== (
|
|
2081
|
+
([A, $]) => {
|
|
2082
|
+
e !== (A === $) && (S?.(), w(A));
|
|
2083
2083
|
},
|
|
2084
2084
|
{
|
|
2085
2085
|
flush: h,
|
|
@@ -2207,21 +2207,21 @@ function er(t, e, n, o = {}) {
|
|
|
2207
2207
|
};
|
|
2208
2208
|
if (u) {
|
|
2209
2209
|
const g = S(), w = de(g);
|
|
2210
|
-
let
|
|
2210
|
+
let A = !1;
|
|
2211
2211
|
return Ne(
|
|
2212
2212
|
() => t[e],
|
|
2213
2213
|
($) => {
|
|
2214
|
-
|
|
2214
|
+
A || (A = !0, w.value = y($), Ge(() => A = !1));
|
|
2215
2215
|
}
|
|
2216
2216
|
), Ne(
|
|
2217
2217
|
w,
|
|
2218
2218
|
($) => {
|
|
2219
|
-
!
|
|
2219
|
+
!A && ($ !== t[e] || c) && _($);
|
|
2220
2220
|
},
|
|
2221
2221
|
{ deep: c }
|
|
2222
2222
|
), w;
|
|
2223
2223
|
} else
|
|
2224
|
-
return
|
|
2224
|
+
return fe({
|
|
2225
2225
|
get() {
|
|
2226
2226
|
return S();
|
|
2227
2227
|
},
|
|
@@ -2466,11 +2466,11 @@ function xf(t, e) {
|
|
|
2466
2466
|
for (var r = i.length, s = new Array(r), a = new Array(r), u = new Array(r), l = 0; l < r; ++l) {
|
|
2467
2467
|
var c = o[l], d = i[l], f = d.length, h = Cf(t.call(c, c && c.__data__, l, o)), m = h.length, p = a[l] = new Array(m), y = s[l] = new Array(m), S = u[l] = new Array(f);
|
|
2468
2468
|
n(c, d, p, y, S, h, e);
|
|
2469
|
-
for (var _ = 0, g = 0, w,
|
|
2469
|
+
for (var _ = 0, g = 0, w, A; _ < m; ++_)
|
|
2470
2470
|
if (w = p[_]) {
|
|
2471
|
-
for (_ >= g && (g = _ + 1); !(
|
|
2471
|
+
for (_ >= g && (g = _ + 1); !(A = y[g]) && ++g < m; )
|
|
2472
2472
|
;
|
|
2473
|
-
w._next =
|
|
2473
|
+
w._next = A || null;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
2476
|
return s = new pt(s, o), s._enter = a, s._exit = u, s;
|
|
@@ -2974,43 +2974,43 @@ function Hh() {
|
|
|
2974
2974
|
function f(w) {
|
|
2975
2975
|
w.on("mousedown.drag", h).filter(o).on("touchstart.drag", y).on("touchmove.drag", S, Ah).on("touchend.drag touchcancel.drag", _).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
2976
2976
|
}
|
|
2977
|
-
function h(w,
|
|
2978
|
-
if (!(c || !t.call(this, w,
|
|
2979
|
-
var $ = g(this, e.call(this, w,
|
|
2977
|
+
function h(w, A) {
|
|
2978
|
+
if (!(c || !t.call(this, w, A))) {
|
|
2979
|
+
var $ = g(this, e.call(this, w, A), w, A, "mouse");
|
|
2980
2980
|
$ && (St(w.view).on("mousemove.drag", m, fo).on("mouseup.drag", p, fo), Vl(w.view), tr(w), l = !1, a = w.clientX, u = w.clientY, $("start", w));
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
2983
|
function m(w) {
|
|
2984
2984
|
if (Tn(w), !l) {
|
|
2985
|
-
var
|
|
2986
|
-
l =
|
|
2985
|
+
var A = w.clientX - a, $ = w.clientY - u;
|
|
2986
|
+
l = A * A + $ * $ > d;
|
|
2987
2987
|
}
|
|
2988
2988
|
i.mouse("drag", w);
|
|
2989
2989
|
}
|
|
2990
2990
|
function p(w) {
|
|
2991
2991
|
St(w.view).on("mousemove.drag mouseup.drag", null), Gl(w.view, l), Tn(w), i.mouse("end", w);
|
|
2992
2992
|
}
|
|
2993
|
-
function y(w,
|
|
2994
|
-
if (t.call(this, w,
|
|
2995
|
-
var $ = w.changedTouches, F = e.call(this, w,
|
|
2993
|
+
function y(w, A) {
|
|
2994
|
+
if (t.call(this, w, A)) {
|
|
2995
|
+
var $ = w.changedTouches, F = e.call(this, w, A), Y = $.length, G, E;
|
|
2996
2996
|
for (G = 0; G < Y; ++G)
|
|
2997
|
-
(E = g(this, F, w,
|
|
2997
|
+
(E = g(this, F, w, A, $[G].identifier, $[G])) && (tr(w), E("start", w, $[G]));
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
3000
|
function S(w) {
|
|
3001
|
-
var
|
|
3001
|
+
var A = w.changedTouches, $ = A.length, F, Y;
|
|
3002
3002
|
for (F = 0; F < $; ++F)
|
|
3003
|
-
(Y = i[
|
|
3003
|
+
(Y = i[A[F].identifier]) && (Tn(w), Y("drag", w, A[F]));
|
|
3004
3004
|
}
|
|
3005
3005
|
function _(w) {
|
|
3006
|
-
var
|
|
3006
|
+
var A = w.changedTouches, $ = A.length, F, Y;
|
|
3007
3007
|
for (c && clearTimeout(c), c = setTimeout(function() {
|
|
3008
3008
|
c = null;
|
|
3009
3009
|
}, 500), F = 0; F < $; ++F)
|
|
3010
|
-
(Y = i[
|
|
3010
|
+
(Y = i[A[F].identifier]) && (tr(w), Y("end", w, A[F]));
|
|
3011
3011
|
}
|
|
3012
|
-
function g(w,
|
|
3013
|
-
var E = r.copy(), T = kt(G || $,
|
|
3012
|
+
function g(w, A, $, F, Y, G) {
|
|
3013
|
+
var E = r.copy(), T = kt(G || $, A), C, H, b;
|
|
3014
3014
|
if ((b = n.call(w, new Ir("beforestart", {
|
|
3015
3015
|
sourceEvent: $,
|
|
3016
3016
|
target: f,
|
|
@@ -3031,7 +3031,7 @@ function Hh() {
|
|
|
3031
3031
|
case "end":
|
|
3032
3032
|
delete i[Y], --s;
|
|
3033
3033
|
case "drag":
|
|
3034
|
-
T = kt(D || x,
|
|
3034
|
+
T = kt(D || x, A), R = s;
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
3037
|
E.call(
|
|
@@ -3554,13 +3554,13 @@ const qo = (function t(e, n, o) {
|
|
|
3554
3554
|
];
|
|
3555
3555
|
};
|
|
3556
3556
|
else {
|
|
3557
|
-
var _ = Math.sqrt(p), g = (f * f - l * l + o * p) / (2 * l * n * _), w = (f * f - l * l - o * p) / (2 * f * n * _),
|
|
3558
|
-
S = ($ -
|
|
3559
|
-
var Y = F * S, G = ia(
|
|
3557
|
+
var _ = Math.sqrt(p), g = (f * f - l * l + o * p) / (2 * l * n * _), w = (f * f - l * l - o * p) / (2 * f * n * _), A = Math.log(Math.sqrt(g * g + 1) - g), $ = Math.log(Math.sqrt(w * w + 1) - w);
|
|
3558
|
+
S = ($ - A) / e, y = function(F) {
|
|
3559
|
+
var Y = F * S, G = ia(A), E = l / (n * _) * (G * hg(e * Y + A) - fg(A));
|
|
3560
3560
|
return [
|
|
3561
3561
|
a + E * h,
|
|
3562
3562
|
u + E * m,
|
|
3563
|
-
l * G / ia(e * Y +
|
|
3563
|
+
l * G / ia(e * Y + A)
|
|
3564
3564
|
];
|
|
3565
3565
|
};
|
|
3566
3566
|
}
|
|
@@ -4268,7 +4268,7 @@ function Mp() {
|
|
|
4268
4268
|
}
|
|
4269
4269
|
S.transform = function(b, N, v, x) {
|
|
4270
4270
|
var D = b.selection ? b.selection() : b;
|
|
4271
|
-
D.property("__zoom", ca), b !== D ?
|
|
4271
|
+
D.property("__zoom", ca), b !== D ? A(b, N, v, x) : D.interrupt().each(function() {
|
|
4272
4272
|
$(this, arguments).event(x).start().zoom(null, typeof N == "function" ? N.apply(this, arguments) : N).end();
|
|
4273
4273
|
});
|
|
4274
4274
|
}, S.scaleBy = function(b, N, v, x) {
|
|
@@ -4307,7 +4307,7 @@ function Mp() {
|
|
|
4307
4307
|
function w(b) {
|
|
4308
4308
|
return [(+b[0][0] + +b[1][0]) / 2, (+b[0][1] + +b[1][1]) / 2];
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function A(b, N, v, x) {
|
|
4311
4311
|
b.on("start.zoom", function() {
|
|
4312
4312
|
$(this, arguments).event(x).start();
|
|
4313
4313
|
}).on("interrupt.zoom end.zoom", function() {
|
|
@@ -4394,7 +4394,7 @@ function Mp() {
|
|
|
4394
4394
|
function E(b, ...N) {
|
|
4395
4395
|
if (t.apply(this, arguments)) {
|
|
4396
4396
|
var v = this.__zoom, x = kt(b.changedTouches ? b.changedTouches[0] : b, this), D = v.invert(x), z = v.k * (b.shiftKey ? 0.5 : 2), R = n(g(_(v, z), x, D), e.apply(this, N), s);
|
|
4397
|
-
Wn(b), a > 0 ? St(this).transition().duration(a).call(
|
|
4397
|
+
Wn(b), a > 0 ? St(this).transition().duration(a).call(A, R, x, b) : St(this).call(S.transform, R, x, b);
|
|
4398
4398
|
}
|
|
4399
4399
|
}
|
|
4400
4400
|
function T(b, ...N) {
|
|
@@ -4501,7 +4501,7 @@ function zp(t, e) {
|
|
|
4501
4501
|
return e.includes(t) ? "code" : "key";
|
|
4502
4502
|
}
|
|
4503
4503
|
function to(t, e) {
|
|
4504
|
-
const n =
|
|
4504
|
+
const n = fe(() => Ie(e?.target) ?? Ap), o = $t(Ie(t) === !0);
|
|
4505
4505
|
let i = !1;
|
|
4506
4506
|
const r = /* @__PURE__ */ new Set();
|
|
4507
4507
|
let s = u(Ie(t));
|
|
@@ -4975,7 +4975,7 @@ function nn(t, e = /* @__PURE__ */ new Set(), n = !1) {
|
|
|
4975
4975
|
}
|
|
4976
4976
|
const ba = () => {
|
|
4977
4977
|
};
|
|
4978
|
-
function
|
|
4978
|
+
function pe(t) {
|
|
4979
4979
|
const e = /* @__PURE__ */ new Set();
|
|
4980
4980
|
let n = ba, o = () => !1;
|
|
4981
4981
|
const i = () => e.size > 0 || o(), r = (f) => {
|
|
@@ -5297,8 +5297,8 @@ function Ca(t, {
|
|
|
5297
5297
|
toHandle: null
|
|
5298
5298
|
};
|
|
5299
5299
|
if (g) {
|
|
5300
|
-
const
|
|
5301
|
-
if (!$ || !
|
|
5300
|
+
const A = yc(void 0, g), $ = g.getAttribute("data-nodeid"), F = g.getAttribute("data-handleid"), Y = g.classList.contains("connectable"), G = g.classList.contains("connectableend");
|
|
5301
|
+
if (!$ || !A)
|
|
5302
5302
|
return w;
|
|
5303
5303
|
const E = {
|
|
5304
5304
|
source: m ? $ : o,
|
|
@@ -5307,13 +5307,13 @@ function Ca(t, {
|
|
|
5307
5307
|
targetHandle: m ? i : F
|
|
5308
5308
|
};
|
|
5309
5309
|
w.connection = E;
|
|
5310
|
-
const C = Y && G && (n === Kt.Strict ? m &&
|
|
5310
|
+
const C = Y && G && (n === Kt.Strict ? m && A === "source" || !m && A === "target" : $ !== o || F !== i);
|
|
5311
5311
|
w.isValid = C && l(E, {
|
|
5312
5312
|
nodes: d,
|
|
5313
5313
|
edges: c,
|
|
5314
5314
|
sourceNode: f(E.source),
|
|
5315
5315
|
targetNode: f(E.target)
|
|
5316
|
-
}), w.toHandle = bc($,
|
|
5316
|
+
}), w.toHandle = bc($, A, F, h, n, !0);
|
|
5317
5317
|
}
|
|
5318
5318
|
return w;
|
|
5319
5319
|
}
|
|
@@ -5500,21 +5500,21 @@ function Cc(t) {
|
|
|
5500
5500
|
addSelectedNodes: _,
|
|
5501
5501
|
updateNodePositions: g,
|
|
5502
5502
|
emits: w
|
|
5503
|
-
} = Re(), { onStart:
|
|
5503
|
+
} = Re(), { onStart: A, onDrag: $, onStop: F, onClick: Y, el: G, disabled: E, id: T, selectable: C, dragHandle: H } = t, b = $t(!1);
|
|
5504
5504
|
let N = [], v, x = null, D = { x: void 0, y: void 0 }, z = { x: 0, y: 0 }, R = null, M = !1, O = !1, L = 0, V = !1;
|
|
5505
|
-
const K = pm(), Q = ({ x:
|
|
5506
|
-
D = { x:
|
|
5507
|
-
let
|
|
5505
|
+
const K = pm(), Q = ({ x: re, y: ae }) => {
|
|
5506
|
+
D = { x: re, y: ae };
|
|
5507
|
+
let P = !1;
|
|
5508
5508
|
if (N = N.map((I) => {
|
|
5509
|
-
const B = { x:
|
|
5509
|
+
const B = { x: re - I.distance.x, y: ae - I.distance.y }, { computedPosition: U } = us(
|
|
5510
5510
|
I,
|
|
5511
5511
|
n.value ? ji(B, o.value) : B,
|
|
5512
5512
|
w.error,
|
|
5513
5513
|
s.value,
|
|
5514
5514
|
I.parentNode ? h(I.parentNode) : void 0
|
|
5515
5515
|
);
|
|
5516
|
-
return
|
|
5517
|
-
}), O = O ||
|
|
5516
|
+
return P = P || I.position.x !== U.x || I.position.y !== U.y, I.position = U, I;
|
|
5517
|
+
}), O = O || P, !!P && (g(N, !0, !0), b.value = !0, R)) {
|
|
5518
5518
|
const [I, B] = sr({
|
|
5519
5519
|
id: T,
|
|
5520
5520
|
dragItems: N,
|
|
@@ -5525,69 +5525,69 @@ function Cc(t) {
|
|
|
5525
5525
|
}, X = () => {
|
|
5526
5526
|
if (!x)
|
|
5527
5527
|
return;
|
|
5528
|
-
const [
|
|
5529
|
-
if (
|
|
5530
|
-
const
|
|
5531
|
-
x: (D.x ?? 0) -
|
|
5532
|
-
y: (D.y ?? 0) -
|
|
5528
|
+
const [re, ae] = mc(z, x, c.value);
|
|
5529
|
+
if (re !== 0 || ae !== 0) {
|
|
5530
|
+
const P = {
|
|
5531
|
+
x: (D.x ?? 0) - re / u.value.zoom,
|
|
5532
|
+
y: (D.y ?? 0) - ae / u.value.zoom
|
|
5533
5533
|
};
|
|
5534
|
-
f({ x:
|
|
5534
|
+
f({ x: re, y: ae }) && Q(P);
|
|
5535
5535
|
}
|
|
5536
5536
|
L = requestAnimationFrame(X);
|
|
5537
|
-
}, te = (
|
|
5537
|
+
}, te = (re, ae) => {
|
|
5538
5538
|
M = !0;
|
|
5539
|
-
const
|
|
5540
|
-
!y.value && !m.value &&
|
|
5541
|
-
|
|
5539
|
+
const P = h(T);
|
|
5540
|
+
!y.value && !m.value && P && (P.selected || S()), P && Ie(C) && y.value && Br(
|
|
5541
|
+
P,
|
|
5542
5542
|
m.value,
|
|
5543
5543
|
_,
|
|
5544
5544
|
S,
|
|
5545
5545
|
p,
|
|
5546
5546
|
!1,
|
|
5547
|
-
|
|
5547
|
+
ae
|
|
5548
5548
|
);
|
|
5549
|
-
const I = K(
|
|
5549
|
+
const I = K(re.sourceEvent);
|
|
5550
5550
|
if (D = I, N = Xp(r.value, d.value, I, T), N.length) {
|
|
5551
5551
|
const [B, U] = sr({
|
|
5552
5552
|
id: T,
|
|
5553
5553
|
dragItems: N,
|
|
5554
5554
|
findNode: h
|
|
5555
5555
|
});
|
|
5556
|
-
|
|
5556
|
+
A({ event: re.sourceEvent, node: B, nodes: U });
|
|
5557
5557
|
}
|
|
5558
|
-
}, se = (
|
|
5559
|
-
var
|
|
5560
|
-
|
|
5561
|
-
},
|
|
5562
|
-
const
|
|
5558
|
+
}, se = (re, ae) => {
|
|
5559
|
+
var P;
|
|
5560
|
+
re.sourceEvent.type === "touchmove" && re.sourceEvent.touches.length > 1 || (O = !1, a.value === 0 && te(re, ae), D = K(re.sourceEvent), x = ((P = e.value) == null ? void 0 : P.getBoundingClientRect()) || null, z = Mt(re.sourceEvent, x));
|
|
5561
|
+
}, ie = (re, ae) => {
|
|
5562
|
+
const P = K(re.sourceEvent);
|
|
5563
5563
|
if (!V && M && l.value && (V = !0, X()), !M) {
|
|
5564
|
-
const I =
|
|
5565
|
-
Math.sqrt(I * I + B * B) > a.value && te(
|
|
5564
|
+
const I = P.xSnapped - (D.x ?? 0), B = P.ySnapped - (D.y ?? 0);
|
|
5565
|
+
Math.sqrt(I * I + B * B) > a.value && te(re, ae);
|
|
5566
5566
|
}
|
|
5567
|
-
(D.x !==
|
|
5568
|
-
},
|
|
5569
|
-
let
|
|
5567
|
+
(D.x !== P.xSnapped || D.y !== P.ySnapped) && N.length && M && (R = re.sourceEvent, z = Mt(re.sourceEvent, x), Q(P));
|
|
5568
|
+
}, ge = (re) => {
|
|
5569
|
+
let ae = !1;
|
|
5570
5570
|
if (!M && !b.value && !m.value) {
|
|
5571
|
-
const
|
|
5572
|
-
k !== 0 && k <= a.value && (Y?.(
|
|
5571
|
+
const P = re.sourceEvent, I = K(P), B = I.xSnapped - (D.x ?? 0), U = I.ySnapped - (D.y ?? 0), k = Math.sqrt(B * B + U * U);
|
|
5572
|
+
k !== 0 && k <= a.value && (Y?.(P), ae = !0);
|
|
5573
5573
|
}
|
|
5574
|
-
if (N.length && !
|
|
5574
|
+
if (N.length && !ae) {
|
|
5575
5575
|
O && (g(N, !1, !1), O = !1);
|
|
5576
|
-
const [
|
|
5576
|
+
const [P, I] = sr({
|
|
5577
5577
|
id: T,
|
|
5578
5578
|
dragItems: N,
|
|
5579
5579
|
findNode: h
|
|
5580
5580
|
});
|
|
5581
|
-
F({ event:
|
|
5581
|
+
F({ event: re.sourceEvent, node: P, nodes: I });
|
|
5582
5582
|
}
|
|
5583
5583
|
N = [], b.value = !1, V = !1, M = !1, D = { x: void 0, y: void 0 }, cancelAnimationFrame(L);
|
|
5584
5584
|
};
|
|
5585
|
-
return Ne([() => Ie(E), G], ([
|
|
5586
|
-
if (
|
|
5587
|
-
const B = St(
|
|
5588
|
-
|
|
5585
|
+
return Ne([() => Ie(E), G], ([re, ae], P, I) => {
|
|
5586
|
+
if (ae) {
|
|
5587
|
+
const B = St(ae);
|
|
5588
|
+
re || (v = Hh().on("start", (U) => se(U, ae)).on("drag", (U) => ie(U, ae)).on("end", (U) => ge(U)).filter((U) => {
|
|
5589
5589
|
const k = U.target, W = Ie(H);
|
|
5590
|
-
return !U.button && (!i.value || !_a(k, `.${i.value}`,
|
|
5590
|
+
return !U.button && (!i.value || !_a(k, `.${i.value}`, ae) && (!W || _a(k, W, ae)));
|
|
5591
5591
|
}), B.call(v)), I(() => {
|
|
5592
5592
|
B.on(".drag", null), v && (v.on("start", null), v.on("drag", null), v.on("end", null));
|
|
5593
5593
|
});
|
|
@@ -5596,15 +5596,15 @@ function Cc(t) {
|
|
|
5596
5596
|
}
|
|
5597
5597
|
function hm() {
|
|
5598
5598
|
return {
|
|
5599
|
-
doubleClick:
|
|
5600
|
-
click:
|
|
5601
|
-
mouseEnter:
|
|
5602
|
-
mouseMove:
|
|
5603
|
-
mouseLeave:
|
|
5604
|
-
contextMenu:
|
|
5605
|
-
updateStart:
|
|
5606
|
-
update:
|
|
5607
|
-
updateEnd:
|
|
5599
|
+
doubleClick: pe(),
|
|
5600
|
+
click: pe(),
|
|
5601
|
+
mouseEnter: pe(),
|
|
5602
|
+
mouseMove: pe(),
|
|
5603
|
+
mouseLeave: pe(),
|
|
5604
|
+
contextMenu: pe(),
|
|
5605
|
+
updateStart: pe(),
|
|
5606
|
+
update: pe(),
|
|
5607
|
+
updateEnd: pe()
|
|
5608
5608
|
};
|
|
5609
5609
|
}
|
|
5610
5610
|
function gm(t, e) {
|
|
@@ -5680,7 +5680,7 @@ function Ec({
|
|
|
5680
5680
|
startConnection: _,
|
|
5681
5681
|
updateConnection: g,
|
|
5682
5682
|
endConnection: w,
|
|
5683
|
-
emits:
|
|
5683
|
+
emits: A,
|
|
5684
5684
|
viewport: $,
|
|
5685
5685
|
edges: F,
|
|
5686
5686
|
nodes: Y,
|
|
@@ -5693,8 +5693,8 @@ function Ec({
|
|
|
5693
5693
|
const D = Ie(n) === "target", z = ds(v), R = da(v.target), M = v.currentTarget;
|
|
5694
5694
|
if (M && (z && v.button === 0 || !z)) {
|
|
5695
5695
|
let O = function(oe) {
|
|
5696
|
-
|
|
5697
|
-
vo(
|
|
5696
|
+
P = Mt(oe, ge), Q = rm(
|
|
5697
|
+
vo(P, $.value, !1, [1, 1]),
|
|
5698
5698
|
c.value,
|
|
5699
5699
|
E.value,
|
|
5700
5700
|
U
|
|
@@ -5723,7 +5723,7 @@ function Ec({
|
|
|
5723
5723
|
// from stays the same
|
|
5724
5724
|
...q,
|
|
5725
5725
|
isValid: C,
|
|
5726
|
-
to: ne.toHandle && C ? mo({ x: ne.toHandle.x, y: ne.toHandle.y }, $.value) :
|
|
5726
|
+
to: ne.toHandle && C ? mo({ x: ne.toHandle.x, y: ne.toHandle.y }, $.value) : P,
|
|
5727
5727
|
toHandle: ne.toHandle,
|
|
5728
5728
|
toPosition: C && ne.toHandle ? ne.toHandle.position : Hr[U.position],
|
|
5729
5729
|
toNode: ne.toHandle ? E.value.get(ne.toHandle.nodeId) : null
|
|
@@ -5738,36 +5738,36 @@ function Ec({
|
|
|
5738
5738
|
y: _e.y
|
|
5739
5739
|
},
|
|
5740
5740
|
$.value
|
|
5741
|
-
) :
|
|
5741
|
+
) : P,
|
|
5742
5742
|
_e,
|
|
5743
5743
|
sm(!!_e, C)
|
|
5744
5744
|
), q = ye, !Q && !C && !H)
|
|
5745
|
-
return ar(
|
|
5746
|
-
T && T.source !== T.target && H && (ar(
|
|
5745
|
+
return ar(ae);
|
|
5746
|
+
T && T.source !== T.target && H && (ar(ae), ae = H, H.classList.add("connecting", "vue-flow__handle-connecting"), H.classList.toggle("valid", !!C), H.classList.toggle("vue-flow__handle-valid", !!C));
|
|
5747
5747
|
}, L = function(oe) {
|
|
5748
|
-
"touches" in oe && oe.touches.length > 0 || ((Q || H) && T && C && (r ? r(oe, T) :
|
|
5748
|
+
"touches" in oe && oe.touches.length > 0 || ((Q || H) && T && C && (r ? r(oe, T) : A.connect(T)), A.connectEnd(oe), i && s?.(oe), ar(ae), cancelAnimationFrame(X), w(oe), I = !1, C = !1, T = null, H = null, R.removeEventListener("mousemove", O), R.removeEventListener("mouseup", L), R.removeEventListener("touchmove", O), R.removeEventListener("touchend", L));
|
|
5749
5749
|
};
|
|
5750
5750
|
const V = y(Ie(e));
|
|
5751
5751
|
let K = Ie(o) || G.value || Po;
|
|
5752
5752
|
!K && V && (K = (D ? V.isValidSourcePos : V.isValidTargetPos) || Po);
|
|
5753
5753
|
let Q, X = 0;
|
|
5754
|
-
const { x: te, y: se } = Mt(v),
|
|
5755
|
-
if (!
|
|
5754
|
+
const { x: te, y: se } = Mt(v), ie = yc(Ie(i), M), ge = (x = u.value) == null ? void 0 : x.getBoundingClientRect();
|
|
5755
|
+
if (!ge || !ie)
|
|
5756
5756
|
return;
|
|
5757
|
-
const
|
|
5758
|
-
if (!
|
|
5757
|
+
const re = bc(Ie(e), ie, Ie(t), E.value, l.value);
|
|
5758
|
+
if (!re)
|
|
5759
5759
|
return;
|
|
5760
|
-
let
|
|
5760
|
+
let ae, P = Mt(v, ge), I = !1;
|
|
5761
5761
|
const B = () => {
|
|
5762
5762
|
if (!m.value)
|
|
5763
5763
|
return;
|
|
5764
|
-
const [oe, ne] = mc(
|
|
5764
|
+
const [oe, ne] = mc(P, ge, p.value);
|
|
5765
5765
|
S({ x: oe, y: ne }), X = requestAnimationFrame(B);
|
|
5766
5766
|
}, U = {
|
|
5767
|
-
...
|
|
5767
|
+
...re,
|
|
5768
5768
|
nodeId: Ie(e),
|
|
5769
|
-
type:
|
|
5770
|
-
position:
|
|
5769
|
+
type: ie,
|
|
5770
|
+
position: re.position
|
|
5771
5771
|
}, k = E.value.get(Ie(e)), j = {
|
|
5772
5772
|
inProgress: !0,
|
|
5773
5773
|
isValid: null,
|
|
@@ -5775,7 +5775,7 @@ function Ec({
|
|
|
5775
5775
|
fromHandle: U,
|
|
5776
5776
|
fromPosition: U.position,
|
|
5777
5777
|
fromNode: k,
|
|
5778
|
-
to:
|
|
5778
|
+
to: P,
|
|
5779
5779
|
toHandle: null,
|
|
5780
5780
|
toPosition: Hr[U.position],
|
|
5781
5781
|
toNode: null
|
|
@@ -5784,15 +5784,15 @@ function Ec({
|
|
|
5784
5784
|
{
|
|
5785
5785
|
nodeId: Ie(e),
|
|
5786
5786
|
id: Ie(t),
|
|
5787
|
-
type:
|
|
5787
|
+
type: ie,
|
|
5788
5788
|
position: M?.getAttribute("data-handlepos") || me.Top,
|
|
5789
|
-
...
|
|
5789
|
+
...P
|
|
5790
5790
|
},
|
|
5791
5791
|
{
|
|
5792
|
-
x: te -
|
|
5793
|
-
y: se -
|
|
5792
|
+
x: te - ge.left,
|
|
5793
|
+
y: se - ge.top
|
|
5794
5794
|
}
|
|
5795
|
-
),
|
|
5795
|
+
), A.connectStart({ event: v, nodeId: Ie(e), handleId: Ie(t), handleType: ie });
|
|
5796
5796
|
let q = j;
|
|
5797
5797
|
R.addEventListener("mousemove", O), R.addEventListener("mouseup", L), R.addEventListener("touchmove", O), R.addEventListener("touchend", L);
|
|
5798
5798
|
}
|
|
@@ -5803,7 +5803,7 @@ function Ec({
|
|
|
5803
5803
|
return;
|
|
5804
5804
|
const z = Ie(n) === "target";
|
|
5805
5805
|
if (!f.value) {
|
|
5806
|
-
|
|
5806
|
+
A.clickConnectStart({ event: v, nodeId: Ie(e), handleId: Ie(t) }), _(
|
|
5807
5807
|
{
|
|
5808
5808
|
nodeId: Ie(e),
|
|
5809
5809
|
type: Ie(n),
|
|
@@ -5845,7 +5845,7 @@ function Ec({
|
|
|
5845
5845
|
y,
|
|
5846
5846
|
E.value
|
|
5847
5847
|
), V = ((x = L.connection) == null ? void 0 : x.source) === ((D = L.connection) == null ? void 0 : D.target);
|
|
5848
|
-
L.isValid && L.connection && !V &&
|
|
5848
|
+
L.isValid && L.connection && !V && A.connect(L.connection), A.clickConnectEnd(v), w(v, !0);
|
|
5849
5849
|
}
|
|
5850
5850
|
return {
|
|
5851
5851
|
handlePointerDown: b,
|
|
@@ -5861,21 +5861,21 @@ function Sc(t) {
|
|
|
5861
5861
|
id: e,
|
|
5862
5862
|
nodeEl: n,
|
|
5863
5863
|
node: s,
|
|
5864
|
-
parentNode:
|
|
5865
|
-
connectedEdges:
|
|
5864
|
+
parentNode: fe(() => o(s.parentNode)),
|
|
5865
|
+
connectedEdges: fe(() => gc([s], i.value))
|
|
5866
5866
|
};
|
|
5867
5867
|
}
|
|
5868
5868
|
function vm() {
|
|
5869
5869
|
return {
|
|
5870
|
-
doubleClick:
|
|
5871
|
-
click:
|
|
5872
|
-
mouseEnter:
|
|
5873
|
-
mouseMove:
|
|
5874
|
-
mouseLeave:
|
|
5875
|
-
contextMenu:
|
|
5876
|
-
dragStart:
|
|
5877
|
-
drag:
|
|
5878
|
-
dragStop:
|
|
5870
|
+
doubleClick: pe(),
|
|
5871
|
+
click: pe(),
|
|
5872
|
+
mouseEnter: pe(),
|
|
5873
|
+
mouseMove: pe(),
|
|
5874
|
+
mouseLeave: pe(),
|
|
5875
|
+
contextMenu: pe(),
|
|
5876
|
+
dragStart: pe(),
|
|
5877
|
+
drag: pe(),
|
|
5878
|
+
dragStop: pe()
|
|
5879
5879
|
};
|
|
5880
5880
|
}
|
|
5881
5881
|
function ym(t, e) {
|
|
@@ -5979,7 +5979,7 @@ function wm(t) {
|
|
|
5979
5979
|
) : a(!1);
|
|
5980
5980
|
});
|
|
5981
5981
|
}
|
|
5982
|
-
return
|
|
5982
|
+
return fe(() => t.d3Zoom && t.d3Selection && t.dimensions.width && t.dimensions.height ? {
|
|
5983
5983
|
viewportInitialized: !0,
|
|
5984
5984
|
// todo: allow passing scale as option
|
|
5985
5985
|
zoomIn: (i) => e(1.2, i),
|
|
@@ -6248,59 +6248,59 @@ function xm(t, e, n) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
function Cm() {
|
|
6250
6250
|
return {
|
|
6251
|
-
edgesChange:
|
|
6252
|
-
nodesChange:
|
|
6253
|
-
nodeDoubleClick:
|
|
6254
|
-
nodeClick:
|
|
6255
|
-
nodeMouseEnter:
|
|
6256
|
-
nodeMouseMove:
|
|
6257
|
-
nodeMouseLeave:
|
|
6258
|
-
nodeContextMenu:
|
|
6259
|
-
nodeDragStart:
|
|
6260
|
-
nodeDrag:
|
|
6261
|
-
nodeDragStop:
|
|
6262
|
-
nodesInitialized:
|
|
6263
|
-
miniMapNodeClick:
|
|
6264
|
-
miniMapNodeDoubleClick:
|
|
6265
|
-
miniMapNodeMouseEnter:
|
|
6266
|
-
miniMapNodeMouseMove:
|
|
6267
|
-
miniMapNodeMouseLeave:
|
|
6268
|
-
connect:
|
|
6269
|
-
connectStart:
|
|
6270
|
-
connectEnd:
|
|
6271
|
-
clickConnectStart:
|
|
6272
|
-
clickConnectEnd:
|
|
6273
|
-
paneReady:
|
|
6274
|
-
init:
|
|
6275
|
-
move:
|
|
6276
|
-
moveStart:
|
|
6277
|
-
moveEnd:
|
|
6278
|
-
selectionDragStart:
|
|
6279
|
-
selectionDrag:
|
|
6280
|
-
selectionDragStop:
|
|
6281
|
-
selectionContextMenu:
|
|
6282
|
-
selectionStart:
|
|
6283
|
-
selectionEnd:
|
|
6284
|
-
viewportChangeStart:
|
|
6285
|
-
viewportChange:
|
|
6286
|
-
viewportChangeEnd:
|
|
6287
|
-
paneScroll:
|
|
6288
|
-
paneClick:
|
|
6289
|
-
paneContextMenu:
|
|
6290
|
-
paneMouseEnter:
|
|
6291
|
-
paneMouseMove:
|
|
6292
|
-
paneMouseLeave:
|
|
6293
|
-
edgeContextMenu:
|
|
6294
|
-
edgeMouseEnter:
|
|
6295
|
-
edgeMouseMove:
|
|
6296
|
-
edgeMouseLeave:
|
|
6297
|
-
edgeDoubleClick:
|
|
6298
|
-
edgeClick:
|
|
6299
|
-
edgeUpdateStart:
|
|
6300
|
-
edgeUpdate:
|
|
6301
|
-
edgeUpdateEnd:
|
|
6302
|
-
updateNodeInternals:
|
|
6303
|
-
error:
|
|
6251
|
+
edgesChange: pe(),
|
|
6252
|
+
nodesChange: pe(),
|
|
6253
|
+
nodeDoubleClick: pe(),
|
|
6254
|
+
nodeClick: pe(),
|
|
6255
|
+
nodeMouseEnter: pe(),
|
|
6256
|
+
nodeMouseMove: pe(),
|
|
6257
|
+
nodeMouseLeave: pe(),
|
|
6258
|
+
nodeContextMenu: pe(),
|
|
6259
|
+
nodeDragStart: pe(),
|
|
6260
|
+
nodeDrag: pe(),
|
|
6261
|
+
nodeDragStop: pe(),
|
|
6262
|
+
nodesInitialized: pe(),
|
|
6263
|
+
miniMapNodeClick: pe(),
|
|
6264
|
+
miniMapNodeDoubleClick: pe(),
|
|
6265
|
+
miniMapNodeMouseEnter: pe(),
|
|
6266
|
+
miniMapNodeMouseMove: pe(),
|
|
6267
|
+
miniMapNodeMouseLeave: pe(),
|
|
6268
|
+
connect: pe(),
|
|
6269
|
+
connectStart: pe(),
|
|
6270
|
+
connectEnd: pe(),
|
|
6271
|
+
clickConnectStart: pe(),
|
|
6272
|
+
clickConnectEnd: pe(),
|
|
6273
|
+
paneReady: pe(),
|
|
6274
|
+
init: pe(),
|
|
6275
|
+
move: pe(),
|
|
6276
|
+
moveStart: pe(),
|
|
6277
|
+
moveEnd: pe(),
|
|
6278
|
+
selectionDragStart: pe(),
|
|
6279
|
+
selectionDrag: pe(),
|
|
6280
|
+
selectionDragStop: pe(),
|
|
6281
|
+
selectionContextMenu: pe(),
|
|
6282
|
+
selectionStart: pe(),
|
|
6283
|
+
selectionEnd: pe(),
|
|
6284
|
+
viewportChangeStart: pe(),
|
|
6285
|
+
viewportChange: pe(),
|
|
6286
|
+
viewportChangeEnd: pe(),
|
|
6287
|
+
paneScroll: pe(),
|
|
6288
|
+
paneClick: pe(),
|
|
6289
|
+
paneContextMenu: pe(),
|
|
6290
|
+
paneMouseEnter: pe(),
|
|
6291
|
+
paneMouseMove: pe(),
|
|
6292
|
+
paneMouseLeave: pe(),
|
|
6293
|
+
edgeContextMenu: pe(),
|
|
6294
|
+
edgeMouseEnter: pe(),
|
|
6295
|
+
edgeMouseMove: pe(),
|
|
6296
|
+
edgeMouseLeave: pe(),
|
|
6297
|
+
edgeDoubleClick: pe(),
|
|
6298
|
+
edgeClick: pe(),
|
|
6299
|
+
edgeUpdateStart: pe(),
|
|
6300
|
+
edgeUpdate: pe(),
|
|
6301
|
+
edgeUpdateEnd: pe(),
|
|
6302
|
+
updateNodeInternals: pe(),
|
|
6303
|
+
error: pe((t) => Eo(t.message))
|
|
6304
6304
|
};
|
|
6305
6305
|
}
|
|
6306
6306
|
function Em(t, e) {
|
|
@@ -6433,23 +6433,23 @@ const Dm = [
|
|
|
6433
6433
|
"defaultEdgeOptions"
|
|
6434
6434
|
];
|
|
6435
6435
|
function Nm(t, e, n) {
|
|
6436
|
-
const o = wm(t), i = (
|
|
6437
|
-
const I =
|
|
6436
|
+
const o = wm(t), i = (P) => {
|
|
6437
|
+
const I = P ?? [];
|
|
6438
6438
|
t.hooks.updateNodeInternals.trigger(I);
|
|
6439
|
-
}, r = (
|
|
6439
|
+
}, r = (P) => Fp(P, t.nodes, t.edges), s = (P) => Lp(P, t.nodes, t.edges), a = (P) => gc(P, t.edges), u = ({ id: P, type: I, nodeId: B }) => {
|
|
6440
6440
|
var U;
|
|
6441
|
-
const k =
|
|
6441
|
+
const k = P ? `-${I}-${P}` : `-${I}`;
|
|
6442
6442
|
return Array.from(((U = t.connectionLookup.get(`${B}${k}`)) == null ? void 0 : U.values()) ?? []);
|
|
6443
|
-
}, l = (
|
|
6444
|
-
if (
|
|
6445
|
-
return e.value.get(
|
|
6446
|
-
}, c = (
|
|
6447
|
-
if (
|
|
6448
|
-
return n.value.get(
|
|
6449
|
-
}, d = (
|
|
6443
|
+
}, l = (P) => {
|
|
6444
|
+
if (P)
|
|
6445
|
+
return e.value.get(P);
|
|
6446
|
+
}, c = (P) => {
|
|
6447
|
+
if (P)
|
|
6448
|
+
return n.value.get(P);
|
|
6449
|
+
}, d = (P, I, B) => {
|
|
6450
6450
|
var U, k;
|
|
6451
6451
|
const W = [];
|
|
6452
|
-
for (const j of
|
|
6452
|
+
for (const j of P) {
|
|
6453
6453
|
const q = {
|
|
6454
6454
|
id: j.id,
|
|
6455
6455
|
type: "position",
|
|
@@ -6466,14 +6466,14 @@ function Nm(t, e, n) {
|
|
|
6466
6466
|
W.push(q);
|
|
6467
6467
|
}
|
|
6468
6468
|
W?.length && t.hooks.nodesChange.trigger(W);
|
|
6469
|
-
}, f = (
|
|
6469
|
+
}, f = (P) => {
|
|
6470
6470
|
if (!t.vueFlowRef)
|
|
6471
6471
|
return;
|
|
6472
6472
|
const I = t.vueFlowRef.querySelector(".vue-flow__transformationpane");
|
|
6473
6473
|
if (!I)
|
|
6474
6474
|
return;
|
|
6475
6475
|
const B = window.getComputedStyle(I), { m22: U } = new window.DOMMatrixReadOnly(B.transform), k = [];
|
|
6476
|
-
for (const W of
|
|
6476
|
+
for (const W of P) {
|
|
6477
6477
|
const j = W, q = l(j.id);
|
|
6478
6478
|
if (q) {
|
|
6479
6479
|
const oe = Gi(j.nodeElement);
|
|
@@ -6490,9 +6490,9 @@ function Nm(t, e, n) {
|
|
|
6490
6490
|
!t.fitViewOnInitDone && t.fitViewOnInit && o.value.fitView().then(() => {
|
|
6491
6491
|
t.fitViewOnInitDone = !0;
|
|
6492
6492
|
}), k.length && t.hooks.nodesChange.trigger(k);
|
|
6493
|
-
}, h = (
|
|
6493
|
+
}, h = (P, I) => {
|
|
6494
6494
|
const B = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set();
|
|
6495
|
-
for (const j of
|
|
6495
|
+
for (const j of P)
|
|
6496
6496
|
pn(j) ? B.add(j.id) : an(j) && U.add(j.id);
|
|
6497
6497
|
const k = nn(e.value, B, !0), W = nn(n.value, U);
|
|
6498
6498
|
if (t.multiSelectionActive) {
|
|
@@ -6502,32 +6502,32 @@ function Nm(t, e, n) {
|
|
|
6502
6502
|
W.push(tn(j, I));
|
|
6503
6503
|
}
|
|
6504
6504
|
k.length && t.hooks.nodesChange.trigger(k), W.length && t.hooks.edgesChange.trigger(W);
|
|
6505
|
-
}, m = (
|
|
6505
|
+
}, m = (P) => {
|
|
6506
6506
|
if (t.multiSelectionActive) {
|
|
6507
|
-
const I =
|
|
6507
|
+
const I = P.map((B) => tn(B.id, !0));
|
|
6508
6508
|
t.hooks.nodesChange.trigger(I);
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
|
-
t.hooks.nodesChange.trigger(nn(e.value, new Set(
|
|
6512
|
-
}, p = (
|
|
6511
|
+
t.hooks.nodesChange.trigger(nn(e.value, new Set(P.map((I) => I.id)), !0)), t.hooks.edgesChange.trigger(nn(n.value));
|
|
6512
|
+
}, p = (P) => {
|
|
6513
6513
|
if (t.multiSelectionActive) {
|
|
6514
|
-
const I =
|
|
6514
|
+
const I = P.map((B) => tn(B.id, !0));
|
|
6515
6515
|
t.hooks.edgesChange.trigger(I);
|
|
6516
6516
|
return;
|
|
6517
6517
|
}
|
|
6518
|
-
t.hooks.edgesChange.trigger(nn(n.value, new Set(
|
|
6519
|
-
}, y = (
|
|
6520
|
-
h(
|
|
6521
|
-
}, S = (
|
|
6522
|
-
const B = (
|
|
6518
|
+
t.hooks.edgesChange.trigger(nn(n.value, new Set(P.map((I) => I.id)))), t.hooks.nodesChange.trigger(nn(e.value, /* @__PURE__ */ new Set(), !0));
|
|
6519
|
+
}, y = (P) => {
|
|
6520
|
+
h(P, !0);
|
|
6521
|
+
}, S = (P) => {
|
|
6522
|
+
const B = (P || t.nodes).map((U) => (U.selected = !1, tn(U.id, !1)));
|
|
6523
6523
|
t.hooks.nodesChange.trigger(B);
|
|
6524
|
-
}, _ = (
|
|
6525
|
-
const B = (
|
|
6524
|
+
}, _ = (P) => {
|
|
6525
|
+
const B = (P || t.edges).map((U) => (U.selected = !1, tn(U.id, !1)));
|
|
6526
6526
|
t.hooks.edgesChange.trigger(B);
|
|
6527
|
-
}, g = (
|
|
6528
|
-
if (!
|
|
6527
|
+
}, g = (P) => {
|
|
6528
|
+
if (!P || !P.length)
|
|
6529
6529
|
return h([], !1);
|
|
6530
|
-
const I =
|
|
6530
|
+
const I = P.reduce(
|
|
6531
6531
|
(B, U) => {
|
|
6532
6532
|
const k = tn(U.id, !1);
|
|
6533
6533
|
return pn(U) ? B.nodes.push(k) : B.edges.push(k), B;
|
|
@@ -6535,27 +6535,27 @@ function Nm(t, e, n) {
|
|
|
6535
6535
|
{ nodes: [], edges: [] }
|
|
6536
6536
|
);
|
|
6537
6537
|
I.nodes.length && t.hooks.nodesChange.trigger(I.nodes), I.edges.length && t.hooks.edgesChange.trigger(I.edges);
|
|
6538
|
-
}, w = (
|
|
6538
|
+
}, w = (P) => {
|
|
6539
6539
|
var I;
|
|
6540
|
-
(I = t.d3Zoom) == null || I.scaleExtent([
|
|
6541
|
-
},
|
|
6540
|
+
(I = t.d3Zoom) == null || I.scaleExtent([P, t.maxZoom]), t.minZoom = P;
|
|
6541
|
+
}, A = (P) => {
|
|
6542
6542
|
var I;
|
|
6543
|
-
(I = t.d3Zoom) == null || I.scaleExtent([t.minZoom,
|
|
6544
|
-
}, $ = (
|
|
6543
|
+
(I = t.d3Zoom) == null || I.scaleExtent([t.minZoom, P]), t.maxZoom = P;
|
|
6544
|
+
}, $ = (P) => {
|
|
6545
6545
|
var I;
|
|
6546
|
-
(I = t.d3Zoom) == null || I.translateExtent(
|
|
6547
|
-
}, F = (
|
|
6548
|
-
t.nodeExtent =
|
|
6549
|
-
}, Y = (
|
|
6546
|
+
(I = t.d3Zoom) == null || I.translateExtent(P), t.translateExtent = P;
|
|
6547
|
+
}, F = (P) => {
|
|
6548
|
+
t.nodeExtent = P, i();
|
|
6549
|
+
}, Y = (P) => {
|
|
6550
6550
|
var I;
|
|
6551
|
-
(I = t.d3Zoom) == null || I.clickDistance(
|
|
6552
|
-
}, G = (
|
|
6553
|
-
t.nodesDraggable =
|
|
6554
|
-
}, E = (
|
|
6555
|
-
const I =
|
|
6551
|
+
(I = t.d3Zoom) == null || I.clickDistance(P);
|
|
6552
|
+
}, G = (P) => {
|
|
6553
|
+
t.nodesDraggable = P, t.nodesConnectable = P, t.elementsSelectable = P;
|
|
6554
|
+
}, E = (P) => {
|
|
6555
|
+
const I = P instanceof Function ? P(t.nodes) : P;
|
|
6556
6556
|
!t.initialized && !I.length || (t.nodes = Sa(I, l, t.hooks.error.trigger));
|
|
6557
|
-
}, T = (
|
|
6558
|
-
const I =
|
|
6557
|
+
}, T = (P) => {
|
|
6558
|
+
const I = P instanceof Function ? P(t.edges) : P;
|
|
6559
6559
|
if (!t.initialized && !I.length)
|
|
6560
6560
|
return;
|
|
6561
6561
|
const B = cr(
|
|
@@ -6569,18 +6569,18 @@ function Nm(t, e, n) {
|
|
|
6569
6569
|
t.edges
|
|
6570
6570
|
);
|
|
6571
6571
|
lr(t.connectionLookup, n.value, B), t.edges = B;
|
|
6572
|
-
}, C = (
|
|
6573
|
-
const I =
|
|
6572
|
+
}, C = (P) => {
|
|
6573
|
+
const I = P instanceof Function ? P([...t.nodes, ...t.edges]) : P;
|
|
6574
6574
|
!t.initialized && !I.length || (E(I.filter(pn)), T(I.filter(an)));
|
|
6575
|
-
}, H = (
|
|
6576
|
-
let I =
|
|
6575
|
+
}, H = (P) => {
|
|
6576
|
+
let I = P instanceof Function ? P(t.nodes) : P;
|
|
6577
6577
|
I = Array.isArray(I) ? I : [I];
|
|
6578
6578
|
const B = Sa(I, l, t.hooks.error.trigger), U = [];
|
|
6579
6579
|
for (const k of B)
|
|
6580
6580
|
U.push(ma(k));
|
|
6581
6581
|
U.length && t.hooks.nodesChange.trigger(U);
|
|
6582
|
-
}, b = (
|
|
6583
|
-
let I =
|
|
6582
|
+
}, b = (P) => {
|
|
6583
|
+
let I = P instanceof Function ? P(t.edges) : P;
|
|
6584
6584
|
I = Array.isArray(I) ? I : [I];
|
|
6585
6585
|
const B = cr(
|
|
6586
6586
|
I,
|
|
@@ -6595,8 +6595,8 @@ function Nm(t, e, n) {
|
|
|
6595
6595
|
for (const k of B)
|
|
6596
6596
|
U.push(ma(k));
|
|
6597
6597
|
U.length && t.hooks.edgesChange.trigger(U);
|
|
6598
|
-
}, N = (
|
|
6599
|
-
const U =
|
|
6598
|
+
}, N = (P, I = !0, B = !1) => {
|
|
6599
|
+
const U = P instanceof Function ? P(t.nodes) : P, k = Array.isArray(U) ? U : [U], W = [], j = [];
|
|
6600
6600
|
function q(ne) {
|
|
6601
6601
|
const ye = a(ne);
|
|
6602
6602
|
for (const _e of ye)
|
|
@@ -6619,8 +6619,8 @@ function Nm(t, e, n) {
|
|
|
6619
6619
|
ye && (qe(ye.deletable) && !ye.deletable || (W.push(va(ye.id)), I && q([ye]), B && oe(ye.id)));
|
|
6620
6620
|
}
|
|
6621
6621
|
j.length && t.hooks.edgesChange.trigger(j), W.length && t.hooks.nodesChange.trigger(W);
|
|
6622
|
-
}, v = (
|
|
6623
|
-
const I =
|
|
6622
|
+
}, v = (P) => {
|
|
6623
|
+
const I = P instanceof Function ? P(t.edges) : P, B = Array.isArray(I) ? I : [I], U = [];
|
|
6624
6624
|
for (const k of B) {
|
|
6625
6625
|
const W = typeof k == "string" ? c(k) : k;
|
|
6626
6626
|
W && (qe(W.deletable) && !W.deletable || U.push(
|
|
@@ -6634,11 +6634,11 @@ function Nm(t, e, n) {
|
|
|
6634
6634
|
));
|
|
6635
6635
|
}
|
|
6636
6636
|
t.hooks.edgesChange.trigger(U);
|
|
6637
|
-
}, x = (
|
|
6638
|
-
const U = c(
|
|
6637
|
+
}, x = (P, I, B = !0) => {
|
|
6638
|
+
const U = c(P.id);
|
|
6639
6639
|
if (!U)
|
|
6640
6640
|
return !1;
|
|
6641
|
-
const k = t.edges.indexOf(U), W = um(
|
|
6641
|
+
const k = t.edges.indexOf(U), W = um(P, I, U, B, t.hooks.error.trigger);
|
|
6642
6642
|
if (W) {
|
|
6643
6643
|
const [j] = cr(
|
|
6644
6644
|
[W],
|
|
@@ -6653,38 +6653,38 @@ function Nm(t, e, n) {
|
|
|
6653
6653
|
return t.edges = t.edges.map((q, oe) => oe === k ? j : q), lr(t.connectionLookup, n.value, [j]), j;
|
|
6654
6654
|
}
|
|
6655
6655
|
return !1;
|
|
6656
|
-
}, D = (
|
|
6657
|
-
const U = c(
|
|
6656
|
+
}, D = (P, I, B = { replace: !1 }) => {
|
|
6657
|
+
const U = c(P);
|
|
6658
6658
|
if (!U)
|
|
6659
6659
|
return;
|
|
6660
6660
|
const k = typeof I == "function" ? I(U) : I;
|
|
6661
6661
|
U.data = B.replace ? k : { ...U.data, ...k };
|
|
6662
|
-
}, z = (
|
|
6663
|
-
const I = pa(
|
|
6662
|
+
}, z = (P) => pa(P, t.nodes), R = (P) => {
|
|
6663
|
+
const I = pa(P, t.edges);
|
|
6664
6664
|
return lr(t.connectionLookup, n.value, I), I;
|
|
6665
|
-
}, M = (
|
|
6666
|
-
const U = l(
|
|
6665
|
+
}, M = (P, I, B = { replace: !1 }) => {
|
|
6666
|
+
const U = l(P);
|
|
6667
6667
|
if (!U)
|
|
6668
6668
|
return;
|
|
6669
6669
|
const k = typeof I == "function" ? I(U) : I;
|
|
6670
6670
|
B.replace ? t.nodes.splice(t.nodes.indexOf(U), 1, k) : Object.assign(U, k);
|
|
6671
|
-
}, O = (
|
|
6672
|
-
const U = l(
|
|
6671
|
+
}, O = (P, I, B = { replace: !1 }) => {
|
|
6672
|
+
const U = l(P);
|
|
6673
6673
|
if (!U)
|
|
6674
6674
|
return;
|
|
6675
6675
|
const k = typeof I == "function" ? I(U) : I;
|
|
6676
6676
|
U.data = B.replace ? k : { ...U.data, ...k };
|
|
6677
|
-
}, L = (
|
|
6678
|
-
B ? t.connectionClickStartHandle =
|
|
6679
|
-
}, V = (
|
|
6680
|
-
t.connectionStartHandle && (t.connectionPosition =
|
|
6681
|
-
}, K = (
|
|
6677
|
+
}, L = (P, I, B = !1) => {
|
|
6678
|
+
B ? t.connectionClickStartHandle = P : t.connectionStartHandle = P, t.connectionEndHandle = null, t.connectionStatus = null, I && (t.connectionPosition = I);
|
|
6679
|
+
}, V = (P, I = null, B = null) => {
|
|
6680
|
+
t.connectionStartHandle && (t.connectionPosition = P, t.connectionEndHandle = I, t.connectionStatus = B);
|
|
6681
|
+
}, K = (P, I) => {
|
|
6682
6682
|
t.connectionPosition = { x: Number.NaN, y: Number.NaN }, t.connectionEndHandle = null, t.connectionStatus = null, I ? t.connectionClickStartHandle = null : t.connectionStartHandle = null;
|
|
6683
|
-
}, Q = (
|
|
6684
|
-
const I = Hp(
|
|
6685
|
-
return !I && !B ? [null, null, I] : [I ?
|
|
6686
|
-
}, X = (
|
|
6687
|
-
const [U, k, W] = Q(
|
|
6683
|
+
}, Q = (P) => {
|
|
6684
|
+
const I = Hp(P), B = I ? null : Xn(P) ? P : l(P.id);
|
|
6685
|
+
return !I && !B ? [null, null, I] : [I ? P : Si(B), B, I];
|
|
6686
|
+
}, X = (P, I = !0, B = t.nodes) => {
|
|
6687
|
+
const [U, k, W] = Q(P);
|
|
6688
6688
|
if (!U)
|
|
6689
6689
|
return [];
|
|
6690
6690
|
const j = [];
|
|
@@ -6695,23 +6695,23 @@ function Nm(t, e, n) {
|
|
|
6695
6695
|
(I && ne > 0 || ne >= oe.width * oe.height || ne >= Number(U.width) * Number(U.height)) && j.push(q);
|
|
6696
6696
|
}
|
|
6697
6697
|
return j;
|
|
6698
|
-
}, te = (
|
|
6699
|
-
const [U] = Q(
|
|
6698
|
+
}, te = (P, I, B = !0) => {
|
|
6699
|
+
const [U] = Q(P);
|
|
6700
6700
|
if (!U)
|
|
6701
6701
|
return !1;
|
|
6702
6702
|
const k = Di(U, I);
|
|
6703
6703
|
return B && k > 0 || k >= Number(U.width) * Number(U.height);
|
|
6704
|
-
}, se = (
|
|
6704
|
+
}, se = (P) => {
|
|
6705
6705
|
const { viewport: I, dimensions: B, d3Zoom: U, d3Selection: k, translateExtent: W } = t;
|
|
6706
|
-
if (!U || !k || !
|
|
6706
|
+
if (!U || !k || !P.x && !P.y)
|
|
6707
6707
|
return !1;
|
|
6708
|
-
const j = Rn.translate(I.x +
|
|
6708
|
+
const j = Rn.translate(I.x + P.x, I.y + P.y).scale(I.zoom), q = [
|
|
6709
6709
|
[0, 0],
|
|
6710
6710
|
[B.width, B.height]
|
|
6711
6711
|
], oe = U.constrain()(j, q, W), ne = t.viewport.x !== oe.x || t.viewport.y !== oe.y || t.viewport.zoom !== oe.k;
|
|
6712
6712
|
return U.transform(k, oe), ne;
|
|
6713
|
-
},
|
|
6714
|
-
const I =
|
|
6713
|
+
}, ie = (P) => {
|
|
6714
|
+
const I = P instanceof Function ? P(t) : P, B = [
|
|
6715
6715
|
"d3Zoom",
|
|
6716
6716
|
"d3Selection",
|
|
6717
6717
|
"d3ZoomHandler",
|
|
@@ -6724,7 +6724,7 @@ function Nm(t, e, n) {
|
|
|
6724
6724
|
const U = I.modelValue || I.nodes || I.edges ? [] : void 0;
|
|
6725
6725
|
U && (I.modelValue && U.push(...I.modelValue), I.nodes && U.push(...I.nodes), I.edges && U.push(...I.edges), C(U));
|
|
6726
6726
|
const k = () => {
|
|
6727
|
-
qe(I.maxZoom) &&
|
|
6727
|
+
qe(I.maxZoom) && A(I.maxZoom), qe(I.minZoom) && w(I.minZoom), qe(I.translateExtent) && $(I.translateExtent);
|
|
6728
6728
|
};
|
|
6729
6729
|
for (const W of Object.keys(I)) {
|
|
6730
6730
|
const j = W, q = I[j];
|
|
@@ -6754,7 +6754,7 @@ function Nm(t, e, n) {
|
|
|
6754
6754
|
addSelectedNodes: m,
|
|
6755
6755
|
addSelectedEdges: p,
|
|
6756
6756
|
setMinZoom: w,
|
|
6757
|
-
setMaxZoom:
|
|
6757
|
+
setMaxZoom: A,
|
|
6758
6758
|
setTranslateExtent: $,
|
|
6759
6759
|
setNodeExtent: F,
|
|
6760
6760
|
setPaneClickDistance: Y,
|
|
@@ -6765,7 +6765,7 @@ function Nm(t, e, n) {
|
|
|
6765
6765
|
updateConnection: V,
|
|
6766
6766
|
endConnection: K,
|
|
6767
6767
|
setInteractive: G,
|
|
6768
|
-
setState:
|
|
6768
|
+
setState: ie,
|
|
6769
6769
|
getIntersectingNodes: X,
|
|
6770
6770
|
getIncomers: r,
|
|
6771
6771
|
getOutgoers: s,
|
|
@@ -6773,21 +6773,21 @@ function Nm(t, e, n) {
|
|
|
6773
6773
|
getHandleConnections: u,
|
|
6774
6774
|
isNodeIntersecting: te,
|
|
6775
6775
|
panBy: se,
|
|
6776
|
-
fitView: (
|
|
6777
|
-
zoomIn: (
|
|
6778
|
-
zoomOut: (
|
|
6779
|
-
zoomTo: (
|
|
6780
|
-
setViewport: (
|
|
6781
|
-
setTransform: (
|
|
6776
|
+
fitView: (P) => o.value.fitView(P),
|
|
6777
|
+
zoomIn: (P) => o.value.zoomIn(P),
|
|
6778
|
+
zoomOut: (P) => o.value.zoomOut(P),
|
|
6779
|
+
zoomTo: (P, I) => o.value.zoomTo(P, I),
|
|
6780
|
+
setViewport: (P, I) => o.value.setViewport(P, I),
|
|
6781
|
+
setTransform: (P, I) => o.value.setTransform(P, I),
|
|
6782
6782
|
getViewport: () => o.value.getViewport(),
|
|
6783
6783
|
getTransform: () => o.value.getTransform(),
|
|
6784
|
-
setCenter: (
|
|
6785
|
-
fitBounds: (
|
|
6786
|
-
project: (
|
|
6787
|
-
screenToFlowCoordinate: (
|
|
6788
|
-
flowToScreenCoordinate: (
|
|
6784
|
+
setCenter: (P, I, B) => o.value.setCenter(P, I, B),
|
|
6785
|
+
fitBounds: (P, I) => o.value.fitBounds(P, I),
|
|
6786
|
+
project: (P) => o.value.project(P),
|
|
6787
|
+
screenToFlowCoordinate: (P) => o.value.screenToFlowCoordinate(P),
|
|
6788
|
+
flowToScreenCoordinate: (P) => o.value.flowToScreenCoordinate(P),
|
|
6789
6789
|
toObject: () => {
|
|
6790
|
-
const
|
|
6790
|
+
const P = [], I = [];
|
|
6791
6791
|
for (const B of t.nodes) {
|
|
6792
6792
|
const {
|
|
6793
6793
|
computedPosition: U,
|
|
@@ -6800,7 +6800,7 @@ function Nm(t, e, n) {
|
|
|
6800
6800
|
events: ye,
|
|
6801
6801
|
..._e
|
|
6802
6802
|
} = B;
|
|
6803
|
-
|
|
6803
|
+
P.push(_e);
|
|
6804
6804
|
}
|
|
6805
6805
|
for (const B of t.edges) {
|
|
6806
6806
|
const { selected: U, sourceNode: k, targetNode: W, events: j, ...q } = B;
|
|
@@ -6808,7 +6808,7 @@ function Nm(t, e, n) {
|
|
|
6808
6808
|
}
|
|
6809
6809
|
return JSON.parse(
|
|
6810
6810
|
JSON.stringify({
|
|
6811
|
-
nodes:
|
|
6811
|
+
nodes: P,
|
|
6812
6812
|
edges: I,
|
|
6813
6813
|
position: [t.viewport.x, t.viewport.y],
|
|
6814
6814
|
zoom: t.viewport.zoom,
|
|
@@ -6816,8 +6816,8 @@ function Nm(t, e, n) {
|
|
|
6816
6816
|
})
|
|
6817
6817
|
);
|
|
6818
6818
|
},
|
|
6819
|
-
fromObject: (
|
|
6820
|
-
const { nodes: B, edges: U, position: k, zoom: W, viewport: j } =
|
|
6819
|
+
fromObject: (P) => new Promise((I) => {
|
|
6820
|
+
const { nodes: B, edges: U, position: k, zoom: W, viewport: j } = P;
|
|
6821
6821
|
B && E(B), U && T(U);
|
|
6822
6822
|
const [q, oe] = j?.x && j?.y ? [j.x, j.y] : k ?? [null, null];
|
|
6823
6823
|
if (q && oe) {
|
|
@@ -6837,15 +6837,15 @@ function Nm(t, e, n) {
|
|
|
6837
6837
|
updateNodeInternals: i,
|
|
6838
6838
|
viewportHelper: o,
|
|
6839
6839
|
$reset: () => {
|
|
6840
|
-
const
|
|
6840
|
+
const P = Nc();
|
|
6841
6841
|
if (t.edges = [], t.nodes = [], t.d3Zoom && t.d3Selection) {
|
|
6842
|
-
const I = Rn.translate(
|
|
6842
|
+
const I = Rn.translate(P.defaultViewport.x ?? 0, P.defaultViewport.y ?? 0).scale(yn(P.defaultViewport.zoom ?? 1, P.minZoom, P.maxZoom)), B = t.viewportRef.getBoundingClientRect(), U = [
|
|
6843
6843
|
[0, 0],
|
|
6844
6844
|
[B.width, B.height]
|
|
6845
|
-
], k = t.d3Zoom.constrain()(I, U,
|
|
6845
|
+
], k = t.d3Zoom.constrain()(I, U, P.translateExtent);
|
|
6846
6846
|
t.d3Zoom.transform(t.d3Selection, k);
|
|
6847
6847
|
}
|
|
6848
|
-
|
|
6848
|
+
ie(P);
|
|
6849
6849
|
},
|
|
6850
6850
|
$destroy: () => {
|
|
6851
6851
|
}
|
|
@@ -6880,7 +6880,7 @@ const Tm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], km = {
|
|
|
6880
6880
|
var T, C, H, b, N, v;
|
|
6881
6881
|
return ((T = s.value) == null ? void 0 : T.nodeId) === h && ((C = s.value) == null ? void 0 : C.id) === t.id && ((H = s.value) == null ? void 0 : H.type) === o.value || ((b = u.value) == null ? void 0 : b.nodeId) === h && ((N = u.value) == null ? void 0 : N.id) === t.id && ((v = u.value) == null ? void 0 : v.type) === o.value;
|
|
6882
6882
|
}
|
|
6883
|
-
),
|
|
6883
|
+
), A = ze(
|
|
6884
6884
|
() => {
|
|
6885
6885
|
var T, C, H;
|
|
6886
6886
|
return ((T = a.value) == null ? void 0 : T.nodeId) === h && ((C = a.value) == null ? void 0 : C.id) === t.id && ((H = a.value) == null ? void 0 : H.type) === o.value;
|
|
@@ -6890,7 +6890,7 @@ const Tm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], km = {
|
|
|
6890
6890
|
handleId: t.id,
|
|
6891
6891
|
isValidConnection: i,
|
|
6892
6892
|
type: o
|
|
6893
|
-
}), Y =
|
|
6893
|
+
}), Y = fe(() => typeof t.connectable == "string" && t.connectable === "single" ? !y.value.some((T) => {
|
|
6894
6894
|
const C = T[`${o.value}Handle`];
|
|
6895
6895
|
return T[o.value] !== h ? !1 : C ? C === t.id : !0;
|
|
6896
6896
|
}) : typeof t.connectable == "number" ? y.value.filter((T) => {
|
|
@@ -6945,7 +6945,7 @@ const Tm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], km = {
|
|
|
6945
6945
|
o.value,
|
|
6946
6946
|
{
|
|
6947
6947
|
connectable: Y.value,
|
|
6948
|
-
connecting:
|
|
6948
|
+
connecting: A.value,
|
|
6949
6949
|
connectablestart: _.value,
|
|
6950
6950
|
connectableend: g.value,
|
|
6951
6951
|
connectionindicator: Y.value && (_.value && !w.value || g.value && w.value)
|
|
@@ -7025,7 +7025,7 @@ const $m = Xi, Am = ["transform"], Pm = ["width", "height", "x", "y", "rx", "ry"
|
|
|
7025
7025
|
labelBgBorderRadius: { default: 2 }
|
|
7026
7026
|
},
|
|
7027
7027
|
setup(t) {
|
|
7028
|
-
const e = de({ x: 0, y: 0, width: 0, height: 0 }), n = de(null), o =
|
|
7028
|
+
const e = de({ x: 0, y: 0, width: 0, height: 0 }), n = de(null), o = fe(() => `translate(${t.x - e.value.width / 2} ${t.y - e.value.height / 2})`);
|
|
7029
7029
|
mt(i), Ne([() => t.x, () => t.y, n, () => t.label], i);
|
|
7030
7030
|
function i() {
|
|
7031
7031
|
if (!n.value)
|
|
@@ -7048,7 +7048,7 @@ const $m = Xi, Am = ["transform"], Pm = ["width", "height", "x", "y", "rx", "ry"
|
|
|
7048
7048
|
rx: r.labelBgBorderRadius,
|
|
7049
7049
|
ry: r.labelBgBorderRadius
|
|
7050
7050
|
}, null, 12, Pm)) : $e("", !0),
|
|
7051
|
-
|
|
7051
|
+
le("text", At(r.$attrs, {
|
|
7052
7052
|
ref_key: "el",
|
|
7053
7053
|
ref: n,
|
|
7054
7054
|
class: "vue-flow__edge-text",
|
|
@@ -7092,7 +7092,7 @@ const $m = Xi, Am = ["transform"], Pm = ["width", "height", "x", "y", "rx", "ry"
|
|
|
7092
7092
|
interactionEl: o,
|
|
7093
7093
|
labelEl: i
|
|
7094
7094
|
}), (s, a) => (ee(), ue(Be, null, [
|
|
7095
|
-
|
|
7095
|
+
le("path", At(J(r), {
|
|
7096
7096
|
id: s.id,
|
|
7097
7097
|
ref_key: "pathEl",
|
|
7098
7098
|
ref: n,
|
|
@@ -7293,7 +7293,7 @@ function Vm({
|
|
|
7293
7293
|
target: l
|
|
7294
7294
|
}), d = c.x !== 0 ? "x" : "y", f = c[d];
|
|
7295
7295
|
let h, m, p;
|
|
7296
|
-
const y = { x: 0, y: 0 }, S = { x: 0, y: 0 }, [_, g, w,
|
|
7296
|
+
const y = { x: 0, y: 0 }, S = { x: 0, y: 0 }, [_, g, w, A] = Tc({
|
|
7297
7297
|
sourceX: t.x,
|
|
7298
7298
|
sourceY: t.y,
|
|
7299
7299
|
targetX: n.x,
|
|
@@ -7331,7 +7331,7 @@ function Vm({
|
|
|
7331
7331
|
...h,
|
|
7332
7332
|
{ x: l.x + S.x, y: l.y + S.y },
|
|
7333
7333
|
n
|
|
7334
|
-
], m, p, w,
|
|
7334
|
+
], m, p, w, A];
|
|
7335
7335
|
}
|
|
7336
7336
|
function Gm(t, e, n, o) {
|
|
7337
7337
|
const i = Math.min($a(t, e) / 2, $a(e, n) / 2, o), { x: r, y: s } = e;
|
|
@@ -7553,7 +7553,7 @@ const Wm = Ee({
|
|
|
7553
7553
|
simplebezier: Qm
|
|
7554
7554
|
};
|
|
7555
7555
|
function nv(t, e, n) {
|
|
7556
|
-
const o =
|
|
7556
|
+
const o = fe(() => (p) => e.value.get(p)), i = fe(() => (p) => n.value.get(p)), r = fe(() => {
|
|
7557
7557
|
const p = {
|
|
7558
7558
|
...tv,
|
|
7559
7559
|
...t.edgeTypes
|
|
@@ -7561,7 +7561,7 @@ function nv(t, e, n) {
|
|
|
7561
7561
|
for (const S of t.edges)
|
|
7562
7562
|
S.type && !y.includes(S.type) && (p[S.type] = S.type);
|
|
7563
7563
|
return p;
|
|
7564
|
-
}), s =
|
|
7564
|
+
}), s = fe(() => {
|
|
7565
7565
|
const p = {
|
|
7566
7566
|
...ev,
|
|
7567
7567
|
...t.nodeTypes
|
|
@@ -7569,7 +7569,7 @@ function nv(t, e, n) {
|
|
|
7569
7569
|
for (const S of t.nodes)
|
|
7570
7570
|
S.type && !y.includes(S.type) && (p[S.type] = S.type);
|
|
7571
7571
|
return p;
|
|
7572
|
-
}), a =
|
|
7572
|
+
}), a = fe(() => t.onlyRenderVisibleElements ? hc(
|
|
7573
7573
|
t.nodes,
|
|
7574
7574
|
{
|
|
7575
7575
|
x: 0,
|
|
@@ -7579,7 +7579,7 @@ function nv(t, e, n) {
|
|
|
7579
7579
|
},
|
|
7580
7580
|
t.viewport,
|
|
7581
7581
|
!0
|
|
7582
|
-
) : t.nodes), u =
|
|
7582
|
+
) : t.nodes), u = fe(() => {
|
|
7583
7583
|
if (t.onlyRenderVisibleElements) {
|
|
7584
7584
|
const p = [];
|
|
7585
7585
|
for (const y of t.edges) {
|
|
@@ -7599,25 +7599,25 @@ function nv(t, e, n) {
|
|
|
7599
7599
|
return p;
|
|
7600
7600
|
}
|
|
7601
7601
|
return t.edges;
|
|
7602
|
-
}), l =
|
|
7602
|
+
}), l = fe(() => [...a.value, ...u.value]), c = fe(() => {
|
|
7603
7603
|
const p = [];
|
|
7604
7604
|
for (const y of t.nodes)
|
|
7605
7605
|
y.selected && p.push(y);
|
|
7606
7606
|
return p;
|
|
7607
|
-
}), d =
|
|
7607
|
+
}), d = fe(() => {
|
|
7608
7608
|
const p = [];
|
|
7609
7609
|
for (const y of t.edges)
|
|
7610
7610
|
y.selected && p.push(y);
|
|
7611
7611
|
return p;
|
|
7612
|
-
}), f =
|
|
7612
|
+
}), f = fe(() => [
|
|
7613
7613
|
...c.value,
|
|
7614
7614
|
...d.value
|
|
7615
|
-
]), h =
|
|
7615
|
+
]), h = fe(() => {
|
|
7616
7616
|
const p = [];
|
|
7617
7617
|
for (const y of t.nodes)
|
|
7618
7618
|
y.dimensions.width && y.dimensions.height && y.handleBounds !== void 0 && p.push(y);
|
|
7619
7619
|
return p;
|
|
7620
|
-
}), m =
|
|
7620
|
+
}), m = fe(
|
|
7621
7621
|
() => a.value.length > 0 && h.value.length === a.value.length
|
|
7622
7622
|
);
|
|
7623
7623
|
return {
|
|
@@ -7662,12 +7662,12 @@ class fn {
|
|
|
7662
7662
|
const s = {};
|
|
7663
7663
|
for (const [f, h] of Object.entries(i.hooks))
|
|
7664
7664
|
s[f] = h.trigger;
|
|
7665
|
-
const a =
|
|
7665
|
+
const a = fe(() => {
|
|
7666
7666
|
const f = /* @__PURE__ */ new Map();
|
|
7667
7667
|
for (const h of i.nodes)
|
|
7668
7668
|
f.set(h.id, h);
|
|
7669
7669
|
return f;
|
|
7670
|
-
}), u =
|
|
7670
|
+
}), u = fe(() => {
|
|
7671
7671
|
const f = /* @__PURE__ */ new Map();
|
|
7672
7672
|
for (const h of i.edges)
|
|
7673
7673
|
f.set(h.id, h);
|
|
@@ -7788,7 +7788,7 @@ const iv = {
|
|
|
7788
7788
|
var m;
|
|
7789
7789
|
r.value || (m = u.value) == null || m.focus({ preventScroll: !0 });
|
|
7790
7790
|
});
|
|
7791
|
-
const c =
|
|
7791
|
+
const c = fe(() => fc(o.value)), d = fe(() => ({
|
|
7792
7792
|
width: `${c.value.width}px`,
|
|
7793
7793
|
height: `${c.value.height}px`,
|
|
7794
7794
|
top: `${c.value.y}px`,
|
|
@@ -7811,7 +7811,7 @@ const iv = {
|
|
|
7811
7811
|
class: bt(["vue-flow__nodesselection vue-flow__container", J(i)]),
|
|
7812
7812
|
style: Oe({ transform: `translate(${J(n).x}px,${J(n).y}px) scale(${J(n).zoom})` })
|
|
7813
7813
|
}, [
|
|
7814
|
-
|
|
7814
|
+
le("div", {
|
|
7815
7815
|
ref_key: "el",
|
|
7816
7816
|
ref: u,
|
|
7817
7817
|
class: bt([{ dragging: J(l) }, "vue-flow__nodesselection-rect"]),
|
|
@@ -7860,7 +7860,7 @@ const uv = {
|
|
|
7860
7860
|
edgeLookup: _,
|
|
7861
7861
|
nodeLookup: g,
|
|
7862
7862
|
connectionLookup: w,
|
|
7863
|
-
defaultEdgeOptions:
|
|
7863
|
+
defaultEdgeOptions: A,
|
|
7864
7864
|
connectionStartHandle: $,
|
|
7865
7865
|
panOnDrag: F
|
|
7866
7866
|
} = Re(), Y = $t(null), G = $t(/* @__PURE__ */ new Set()), E = $t(/* @__PURE__ */ new Set()), T = $t(null), C = ze(() => u.value && (t.isSelecting || r.value)), H = ze(() => $.value !== null);
|
|
@@ -7899,14 +7899,14 @@ const uv = {
|
|
|
7899
7899
|
if (T.value = ((Q = e.value) == null ? void 0 : Q.getBoundingClientRect()) ?? null, !u.value || !t.isSelecting || K.button !== 0 || K.target !== Y.value || !T.value)
|
|
7900
7900
|
return;
|
|
7901
7901
|
(te = (X = K.target) == null ? void 0 : X.setPointerCapture) == null || te.call(X, K.pointerId);
|
|
7902
|
-
const { x: se, y:
|
|
7902
|
+
const { x: se, y: ie } = cv(K, T.value);
|
|
7903
7903
|
N = !0, b = !1, s(), a.value = {
|
|
7904
7904
|
width: 0,
|
|
7905
7905
|
height: 0,
|
|
7906
7906
|
startX: se,
|
|
7907
|
-
startY:
|
|
7907
|
+
startY: ie,
|
|
7908
7908
|
x: se,
|
|
7909
|
-
y:
|
|
7909
|
+
y: ie
|
|
7910
7910
|
}, i.selectionStart(K);
|
|
7911
7911
|
}
|
|
7912
7912
|
function L(K) {
|
|
@@ -7914,37 +7914,37 @@ const uv = {
|
|
|
7914
7914
|
if (!T.value || !a.value)
|
|
7915
7915
|
return;
|
|
7916
7916
|
b = !0;
|
|
7917
|
-
const { x: X, y: te } = Mt(K, T.value), { startX: se = 0, startY:
|
|
7917
|
+
const { x: X, y: te } = Mt(K, T.value), { startX: se = 0, startY: ie = 0 } = a.value, ge = {
|
|
7918
7918
|
startX: se,
|
|
7919
|
-
startY:
|
|
7919
|
+
startY: ie,
|
|
7920
7920
|
x: X < se ? X : se,
|
|
7921
|
-
y: te <
|
|
7921
|
+
y: te < ie ? te : ie,
|
|
7922
7922
|
width: Math.abs(X - se),
|
|
7923
|
-
height: Math.abs(te -
|
|
7924
|
-
},
|
|
7923
|
+
height: Math.abs(te - ie)
|
|
7924
|
+
}, re = G.value, ae = E.value;
|
|
7925
7925
|
G.value = new Set(
|
|
7926
|
-
hc(n.value,
|
|
7926
|
+
hc(n.value, ge, o.value, m.value === cs.Partial, !0).map(
|
|
7927
7927
|
(I) => I.id
|
|
7928
7928
|
)
|
|
7929
7929
|
), E.value = /* @__PURE__ */ new Set();
|
|
7930
|
-
const
|
|
7930
|
+
const P = ((Q = A.value) == null ? void 0 : Q.selectable) ?? !0;
|
|
7931
7931
|
for (const I of G.value) {
|
|
7932
7932
|
const B = w.value.get(I);
|
|
7933
7933
|
if (B)
|
|
7934
7934
|
for (const { edgeId: U } of B.values()) {
|
|
7935
7935
|
const k = _.value.get(U);
|
|
7936
|
-
k && (k.selectable ??
|
|
7936
|
+
k && (k.selectable ?? P) && E.value.add(U);
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
|
-
if (!Na(
|
|
7939
|
+
if (!Na(re, G.value)) {
|
|
7940
7940
|
const I = nn(g.value, G.value, !0);
|
|
7941
7941
|
i.nodesChange(I);
|
|
7942
7942
|
}
|
|
7943
|
-
if (!Na(
|
|
7943
|
+
if (!Na(ae, E.value)) {
|
|
7944
7944
|
const I = nn(_.value, E.value);
|
|
7945
7945
|
i.edgesChange(I);
|
|
7946
7946
|
}
|
|
7947
|
-
a.value =
|
|
7947
|
+
a.value = ge, r.value = !0, l.value = !1;
|
|
7948
7948
|
}
|
|
7949
7949
|
function V(K) {
|
|
7950
7950
|
var Q;
|
|
@@ -7977,7 +7977,7 @@ const uv = {
|
|
|
7977
7977
|
}, hv = /* @__PURE__ */ Ee({
|
|
7978
7978
|
...fv,
|
|
7979
7979
|
setup(t) {
|
|
7980
|
-
const { viewport: e, fitViewOnInit: n, fitViewOnInitDone: o } = Re(), i =
|
|
7980
|
+
const { viewport: e, fitViewOnInit: n, fitViewOnInitDone: o } = Re(), i = fe(() => n.value ? !o.value : !1), r = fe(() => `translate(${e.value.x}px,${e.value.y}px) scale(${e.value.zoom})`);
|
|
7981
7981
|
return (s, a) => (ee(), ue("div", {
|
|
7982
7982
|
class: "vue-flow__transformationpane vue-flow__container",
|
|
7983
7983
|
style: Oe({ transform: r.value, opacity: i.value ? 0 : void 0 })
|
|
@@ -8012,7 +8012,7 @@ const uv = {
|
|
|
8012
8012
|
emits: _,
|
|
8013
8013
|
connectionStartHandle: g,
|
|
8014
8014
|
userSelectionActive: w,
|
|
8015
|
-
paneDragging:
|
|
8015
|
+
paneDragging: A,
|
|
8016
8016
|
d3Zoom: $,
|
|
8017
8017
|
d3Selection: F,
|
|
8018
8018
|
d3ZoomHandler: Y,
|
|
@@ -8037,25 +8037,25 @@ const uv = {
|
|
|
8037
8037
|
Eo("Viewport element is missing");
|
|
8038
8038
|
return;
|
|
8039
8039
|
}
|
|
8040
|
-
const
|
|
8040
|
+
const ie = E.value, ge = ie.getBoundingClientRect(), re = Mp().clickDistance(T.value).scaleExtent([e.value, n.value]).translateExtent(i.value), ae = St(ie).call(re), P = ae.on("wheel.zoom"), I = Rn.translate(o.value.x ?? 0, o.value.y ?? 0).scale(yn(o.value.zoom ?? 1, e.value, n.value)), B = [
|
|
8041
8041
|
[0, 0],
|
|
8042
|
-
[
|
|
8043
|
-
], U =
|
|
8044
|
-
|
|
8042
|
+
[ge.width, ge.height]
|
|
8043
|
+
], U = re.constrain()(I, B, i.value);
|
|
8044
|
+
re.transform(ae, U), re.wheelDelta(ha), $.value = re, F.value = ae, Y.value = P, G.value = { x: U.x, y: U.y, zoom: U.k }, re.on("start", (k) => {
|
|
8045
8045
|
var W;
|
|
8046
8046
|
if (!k.sourceEvent)
|
|
8047
8047
|
return null;
|
|
8048
8048
|
v = k.sourceEvent.button, C.value = !0;
|
|
8049
8049
|
const j = te(k.transform);
|
|
8050
|
-
((W = k.sourceEvent) == null ? void 0 : W.type) === "mousedown" && (
|
|
8051
|
-
}),
|
|
8050
|
+
((W = k.sourceEvent) == null ? void 0 : W.type) === "mousedown" && (A.value = !0), x = j, _.viewportChangeStart(j), _.moveStart({ event: k, flowTransform: j });
|
|
8051
|
+
}), re.on("end", (k) => {
|
|
8052
8052
|
if (!k.sourceEvent)
|
|
8053
8053
|
return null;
|
|
8054
|
-
if (C.value = !1,
|
|
8054
|
+
if (C.value = !1, A.value = !1, Q(M.value, v ?? 0) && !N && _.paneContextMenu(k.sourceEvent), N = !1, X(x, k.transform)) {
|
|
8055
8055
|
const W = te(k.transform);
|
|
8056
8056
|
x = W, _.viewportChangeEnd(W), _.moveEnd({ event: k, flowTransform: W });
|
|
8057
8057
|
}
|
|
8058
|
-
}),
|
|
8058
|
+
}), re.filter((k) => {
|
|
8059
8059
|
var W;
|
|
8060
8060
|
const j = R.value || m.value, q = h.value && k.ctrlKey, oe = k.button, ne = k.type === "wheel";
|
|
8061
8061
|
if (oe === 1 && k.type === "mousedown" && (se(k, "vue-flow__node") || se(k, "vue-flow__edge")))
|
|
@@ -8071,7 +8071,7 @@ const uv = {
|
|
|
8071
8071
|
}), Ne(
|
|
8072
8072
|
[w, M],
|
|
8073
8073
|
() => {
|
|
8074
|
-
w.value && !C.value ?
|
|
8074
|
+
w.value && !C.value ? re.on("zoom", null) : w.value || re.on("zoom", (k) => {
|
|
8075
8075
|
G.value = { x: k.transform.x, y: k.transform.y, zoom: k.transform.k };
|
|
8076
8076
|
const W = te(k.transform);
|
|
8077
8077
|
N = Q(M.value, v ?? 0), _.viewportChange(W), _.move({ event: k, flowTransform: W });
|
|
@@ -8081,7 +8081,7 @@ const uv = {
|
|
|
8081
8081
|
), Ne(
|
|
8082
8082
|
[w, O, l, R, h, p, y],
|
|
8083
8083
|
() => {
|
|
8084
|
-
O.value && !R.value && !w.value ?
|
|
8084
|
+
O.value && !R.value && !w.value ? ae.on(
|
|
8085
8085
|
"wheel.zoom",
|
|
8086
8086
|
(k) => {
|
|
8087
8087
|
if (se(k, y.value))
|
|
@@ -8090,32 +8090,32 @@ const uv = {
|
|
|
8090
8090
|
if (!(!p.value || O.value || W || j))
|
|
8091
8091
|
return !1;
|
|
8092
8092
|
k.preventDefault(), k.stopImmediatePropagation();
|
|
8093
|
-
const oe =
|
|
8093
|
+
const oe = ae.property("__zoom").k || 1, ne = Ni();
|
|
8094
8094
|
if (!D.value && k.ctrlKey && h.value && ne) {
|
|
8095
8095
|
const vt = kt(k), He = ha(k), Bt = oe * 2 ** He;
|
|
8096
|
-
|
|
8096
|
+
re.scaleTo(ae, Bt, vt, k);
|
|
8097
8097
|
return;
|
|
8098
8098
|
}
|
|
8099
8099
|
const ye = k.deltaMode === 1 ? 20 : 1;
|
|
8100
8100
|
let _e = l.value === eo.Vertical ? 0 : k.deltaX * ye, Ye = l.value === eo.Horizontal ? 0 : k.deltaY * ye;
|
|
8101
|
-
!ne && k.shiftKey && l.value !== eo.Vertical && !_e && Ye && (_e = Ye, Ye = 0),
|
|
8102
|
-
|
|
8101
|
+
!ne && k.shiftKey && l.value !== eo.Vertical && !_e && Ye && (_e = Ye, Ye = 0), re.translateBy(
|
|
8102
|
+
ae,
|
|
8103
8103
|
-(_e / oe) * c.value,
|
|
8104
8104
|
-(Ye / oe) * c.value
|
|
8105
8105
|
);
|
|
8106
|
-
const Ue = te(
|
|
8106
|
+
const Ue = te(ae.property("__zoom"));
|
|
8107
8107
|
b && clearTimeout(b), H.value ? (_.move({ event: k, flowTransform: Ue }), _.viewportChange(Ue), b = setTimeout(() => {
|
|
8108
8108
|
_.moveEnd({ event: k, flowTransform: Ue }), _.viewportChangeEnd(Ue), H.value = !1;
|
|
8109
8109
|
}, 150)) : (H.value = !0, _.moveStart({ event: k, flowTransform: Ue }), _.viewportChangeStart(Ue));
|
|
8110
8110
|
},
|
|
8111
8111
|
{ passive: !1 }
|
|
8112
|
-
) : typeof
|
|
8112
|
+
) : typeof P < "u" && ae.on(
|
|
8113
8113
|
"wheel.zoom",
|
|
8114
8114
|
function(k, W) {
|
|
8115
8115
|
const j = !p.value && k.type === "wheel" && !k.ctrlKey, q = R.value || m.value, oe = h.value && k.ctrlKey;
|
|
8116
8116
|
if (!q && !u.value && !oe && k.type === "wheel" || j || se(k, y.value))
|
|
8117
8117
|
return null;
|
|
8118
|
-
k.preventDefault(),
|
|
8118
|
+
k.preventDefault(), P.call(this, k, W);
|
|
8119
8119
|
},
|
|
8120
8120
|
{ passive: !1 }
|
|
8121
8121
|
);
|
|
@@ -8123,40 +8123,40 @@ const uv = {
|
|
|
8123
8123
|
{ immediate: !0 }
|
|
8124
8124
|
);
|
|
8125
8125
|
});
|
|
8126
|
-
function Q(
|
|
8127
|
-
return
|
|
8126
|
+
function Q(ie, ge) {
|
|
8127
|
+
return ge === 2 && Array.isArray(ie) && ie.includes(2);
|
|
8128
8128
|
}
|
|
8129
|
-
function X(
|
|
8130
|
-
return
|
|
8129
|
+
function X(ie, ge) {
|
|
8130
|
+
return ie.x !== ge.x && !Number.isNaN(ge.x) || ie.y !== ge.y && !Number.isNaN(ge.y) || ie.zoom !== ge.k && !Number.isNaN(ge.k);
|
|
8131
8131
|
}
|
|
8132
|
-
function te(
|
|
8132
|
+
function te(ie) {
|
|
8133
8133
|
return {
|
|
8134
|
-
x:
|
|
8135
|
-
y:
|
|
8136
|
-
zoom:
|
|
8134
|
+
x: ie.x,
|
|
8135
|
+
y: ie.y,
|
|
8136
|
+
zoom: ie.k
|
|
8137
8137
|
};
|
|
8138
8138
|
}
|
|
8139
|
-
function se(
|
|
8140
|
-
return
|
|
8139
|
+
function se(ie, ge) {
|
|
8140
|
+
return ie.target.closest(`.${ge}`);
|
|
8141
8141
|
}
|
|
8142
|
-
return (
|
|
8142
|
+
return (ie, ge) => (ee(), ue("div", {
|
|
8143
8143
|
ref_key: "viewportRef",
|
|
8144
8144
|
ref: E,
|
|
8145
8145
|
class: "vue-flow__viewport vue-flow__container"
|
|
8146
8146
|
}, [
|
|
8147
|
-
|
|
8147
|
+
he(dv, {
|
|
8148
8148
|
"is-selecting": V.value,
|
|
8149
8149
|
"selection-key-pressed": J(z),
|
|
8150
8150
|
class: bt({
|
|
8151
8151
|
connecting: K.value,
|
|
8152
|
-
dragging: J(
|
|
8152
|
+
dragging: J(A),
|
|
8153
8153
|
draggable: J(d) === !0 || Array.isArray(J(d)) && J(d).includes(0)
|
|
8154
8154
|
})
|
|
8155
8155
|
}, {
|
|
8156
|
-
default:
|
|
8157
|
-
|
|
8158
|
-
default:
|
|
8159
|
-
Pe(
|
|
8156
|
+
default: Ce(() => [
|
|
8157
|
+
he(hv, null, {
|
|
8158
|
+
default: Ce(() => [
|
|
8159
|
+
Pe(ie.$slots, "default")
|
|
8160
8160
|
]),
|
|
8161
8161
|
_: 3
|
|
8162
8162
|
})
|
|
@@ -8173,11 +8173,11 @@ const uv = {
|
|
|
8173
8173
|
setup(t) {
|
|
8174
8174
|
const { id: e, disableKeyboardA11y: n, ariaLiveMessage: o } = Re();
|
|
8175
8175
|
return (i, r) => (ee(), ue(Be, null, [
|
|
8176
|
-
|
|
8176
|
+
le("div", {
|
|
8177
8177
|
id: `${J(ic)}-${J(e)}`,
|
|
8178
8178
|
style: { display: "none" }
|
|
8179
8179
|
}, " Press enter or space to select a node. " + lt(J(n) ? "" : "You can then use the arrow keys to move the node around.") + " You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ", 9, mv),
|
|
8180
|
-
|
|
8180
|
+
le("div", {
|
|
8181
8181
|
id: `${J(rc)}-${J(e)}`,
|
|
8182
8182
|
style: { display: "none" }
|
|
8183
8183
|
}, " Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ", 8, vv),
|
|
@@ -8250,11 +8250,11 @@ const Aa = hs, Ev = Ee({
|
|
|
8250
8250
|
edgesUpdatable: y,
|
|
8251
8251
|
edgesFocusable: S,
|
|
8252
8252
|
hooks: _
|
|
8253
|
-
} = Re(), g =
|
|
8253
|
+
} = Re(), g = fe(() => c(t.id)), { emit: w, on: A } = gm(g.value, r), $ = _t(Wi), F = Fn(), Y = de(!1), G = de(!1), E = de(""), T = de(null), C = de("source"), H = de(null), b = ze(
|
|
8254
8254
|
() => typeof g.value.selectable > "u" ? p.value : g.value.selectable
|
|
8255
8255
|
), N = ze(() => typeof g.value.updatable > "u" ? y.value : g.value.updatable), v = ze(() => typeof g.value.focusable > "u" ? S.value : g.value.focusable);
|
|
8256
8256
|
zt(dm, t.id), zt(fm, H);
|
|
8257
|
-
const x =
|
|
8257
|
+
const x = fe(() => g.value.class instanceof Function ? g.value.class(g.value) : g.value.class), D = fe(() => g.value.style instanceof Function ? g.value.style(g.value) : g.value.style), z = fe(() => {
|
|
8258
8258
|
const I = g.value.type || "default", B = $?.[`edge-${I}`];
|
|
8259
8259
|
if (B)
|
|
8260
8260
|
return B;
|
|
@@ -8317,9 +8317,9 @@ const Aa = hs, Ev = Ee({
|
|
|
8317
8317
|
onContextmenu: X,
|
|
8318
8318
|
onDblclick: te,
|
|
8319
8319
|
onMouseenter: se,
|
|
8320
|
-
onMousemove:
|
|
8321
|
-
onMouseleave:
|
|
8322
|
-
onKeyDown: v.value ?
|
|
8320
|
+
onMousemove: ie,
|
|
8321
|
+
onMouseleave: ge,
|
|
8322
|
+
onKeyDown: v.value ? P : void 0
|
|
8323
8323
|
},
|
|
8324
8324
|
[
|
|
8325
8325
|
G.value ? null : Ae(z.value === !1 ? u.value.default : z.value, {
|
|
@@ -8339,7 +8339,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8339
8339
|
labelBgPadding: g.value.labelBgPadding,
|
|
8340
8340
|
labelBgBorderRadius: g.value.labelBgBorderRadius,
|
|
8341
8341
|
data: g.value.data,
|
|
8342
|
-
events: { ...g.value.events, ...
|
|
8342
|
+
events: { ...g.value.events, ...A },
|
|
8343
8343
|
style: D.value,
|
|
8344
8344
|
markerStart: `url('#${yo(g.value.markerStart, e)}')`,
|
|
8345
8345
|
markerEnd: `url('#${yo(g.value.markerEnd, e)}')`,
|
|
@@ -8359,7 +8359,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8359
8359
|
Ae(
|
|
8360
8360
|
"g",
|
|
8361
8361
|
{
|
|
8362
|
-
onMousedown:
|
|
8362
|
+
onMousedown: re,
|
|
8363
8363
|
onMouseenter: M,
|
|
8364
8364
|
onMouseout: O
|
|
8365
8365
|
},
|
|
@@ -8377,7 +8377,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8377
8377
|
Ae(
|
|
8378
8378
|
"g",
|
|
8379
8379
|
{
|
|
8380
|
-
onMousedown:
|
|
8380
|
+
onMousedown: ae,
|
|
8381
8381
|
onMouseenter: M,
|
|
8382
8382
|
onMouseout: O
|
|
8383
8383
|
},
|
|
@@ -8424,19 +8424,19 @@ const Aa = hs, Ev = Ee({
|
|
|
8424
8424
|
function se(I) {
|
|
8425
8425
|
w.mouseEnter({ event: I, edge: g.value });
|
|
8426
8426
|
}
|
|
8427
|
-
function
|
|
8427
|
+
function ie(I) {
|
|
8428
8428
|
w.mouseMove({ event: I, edge: g.value });
|
|
8429
8429
|
}
|
|
8430
|
-
function
|
|
8430
|
+
function ge(I) {
|
|
8431
8431
|
w.mouseLeave({ event: I, edge: g.value });
|
|
8432
8432
|
}
|
|
8433
|
-
function
|
|
8433
|
+
function re(I) {
|
|
8434
8434
|
K(I, !0);
|
|
8435
8435
|
}
|
|
8436
|
-
function
|
|
8436
|
+
function ae(I) {
|
|
8437
8437
|
K(I, !1);
|
|
8438
8438
|
}
|
|
8439
|
-
function
|
|
8439
|
+
function P(I) {
|
|
8440
8440
|
var B;
|
|
8441
8441
|
!m.value && sc.includes(I.key) && b.value && (I.key === "Escape" ? ((B = H.value) == null || B.blur(), l([c(t.id)])) : n([c(t.id)]));
|
|
8442
8442
|
}
|
|
@@ -8458,25 +8458,25 @@ const Aa = hs, Ev = Ee({
|
|
|
8458
8458
|
connectionStatus: l,
|
|
8459
8459
|
viewport: c,
|
|
8460
8460
|
findNode: d
|
|
8461
|
-
} = Re(), f = (t = _t(Wi)) == null ? void 0 : t["connection-line"], h =
|
|
8461
|
+
} = Re(), f = (t = _t(Wi)) == null ? void 0 : t["connection-line"], h = fe(() => {
|
|
8462
8462
|
var _;
|
|
8463
8463
|
return d((_ = o.value) == null ? void 0 : _.nodeId);
|
|
8464
|
-
}), m =
|
|
8464
|
+
}), m = fe(() => {
|
|
8465
8465
|
var _;
|
|
8466
8466
|
return d((_ = i.value) == null ? void 0 : _.nodeId) ?? null;
|
|
8467
|
-
}), p =
|
|
8467
|
+
}), p = fe(() => ({
|
|
8468
8468
|
x: (r.value.x - c.value.x) / c.value.zoom,
|
|
8469
8469
|
y: (r.value.y - c.value.y) / c.value.zoom
|
|
8470
|
-
})), y =
|
|
8470
|
+
})), y = fe(
|
|
8471
8471
|
() => u.value.markerStart ? `url(#${yo(u.value.markerStart, e)})` : ""
|
|
8472
|
-
), S =
|
|
8472
|
+
), S = fe(
|
|
8473
8473
|
() => u.value.markerEnd ? `url(#${yo(u.value.markerEnd, e)})` : ""
|
|
8474
8474
|
);
|
|
8475
8475
|
return () => {
|
|
8476
8476
|
var _, g, w;
|
|
8477
8477
|
if (!h.value || !o.value)
|
|
8478
8478
|
return null;
|
|
8479
|
-
const
|
|
8479
|
+
const A = o.value.id, $ = o.value.type, F = h.value.handleBounds;
|
|
8480
8480
|
let Y = F?.[$] ?? [];
|
|
8481
8481
|
if (n.value === Kt.Loose) {
|
|
8482
8482
|
const D = F?.[$ === "source" ? "target" : "source"] ?? [];
|
|
@@ -8484,7 +8484,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8484
8484
|
}
|
|
8485
8485
|
if (!Y)
|
|
8486
8486
|
return null;
|
|
8487
|
-
const G = (
|
|
8487
|
+
const G = (A ? Y.find((D) => D.id === A) : Y[0]) ?? null, E = G?.position ?? me.Top, { x: T, y: C } = Hn(h.value, G, E);
|
|
8488
8488
|
let H = null;
|
|
8489
8489
|
m.value && (n.value === Kt.Strict ? H = ((_ = m.value.handleBounds[$ === "source" ? "target" : "source"]) == null ? void 0 : _.find(
|
|
8490
8490
|
(D) => {
|
|
@@ -8607,7 +8607,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8607
8607
|
}, Av = /* @__PURE__ */ Ee({
|
|
8608
8608
|
...$v,
|
|
8609
8609
|
setup(t) {
|
|
8610
|
-
const { id: e, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = Re(), r =
|
|
8610
|
+
const { id: e, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = Re(), r = fe(() => {
|
|
8611
8611
|
const s = /* @__PURE__ */ new Set(), a = [], u = (l) => {
|
|
8612
8612
|
if (l) {
|
|
8613
8613
|
const c = yo(l, e);
|
|
@@ -8622,7 +8622,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8622
8622
|
return a.sort((l, c) => l.id.localeCompare(c.id));
|
|
8623
8623
|
});
|
|
8624
8624
|
return (s, a) => (ee(), ue("svg", Mv, [
|
|
8625
|
-
|
|
8625
|
+
le("defs", null, [
|
|
8626
8626
|
(ee(!0), ue(Be, null, gt(r.value, (u) => (ee(), Te(Iv, {
|
|
8627
8627
|
id: u.id,
|
|
8628
8628
|
key: u.id,
|
|
@@ -8645,17 +8645,17 @@ const Aa = hs, Ev = Ee({
|
|
|
8645
8645
|
setup(t) {
|
|
8646
8646
|
const { findNode: e, getEdges: n, elevateEdgesOnSelect: o } = Re();
|
|
8647
8647
|
return (i, r) => (ee(), ue(Be, null, [
|
|
8648
|
-
|
|
8648
|
+
he(Av),
|
|
8649
8649
|
(ee(!0), ue(Be, null, gt(J(n), (s) => (ee(), ue("svg", {
|
|
8650
8650
|
key: s.id,
|
|
8651
8651
|
class: "vue-flow__edges vue-flow__container",
|
|
8652
8652
|
style: Oe({ zIndex: J(Qp)(s, J(e), J(o)) })
|
|
8653
8653
|
}, [
|
|
8654
|
-
|
|
8654
|
+
he(J(Sv), {
|
|
8655
8655
|
id: s.id
|
|
8656
8656
|
}, null, 8, ["id"])
|
|
8657
8657
|
], 4))), 128)),
|
|
8658
|
-
|
|
8658
|
+
he(J(Nv))
|
|
8659
8659
|
], 64));
|
|
8660
8660
|
}
|
|
8661
8661
|
}), zv = Ee({
|
|
@@ -8684,14 +8684,14 @@ const Aa = hs, Ev = Ee({
|
|
|
8684
8684
|
nodeDragThreshold: _,
|
|
8685
8685
|
nodesDraggable: g,
|
|
8686
8686
|
elementsSelectable: w,
|
|
8687
|
-
nodesConnectable:
|
|
8687
|
+
nodesConnectable: A,
|
|
8688
8688
|
nodesFocusable: $,
|
|
8689
8689
|
hooks: F
|
|
8690
8690
|
} = Re(), Y = de(null);
|
|
8691
8691
|
zt(xc, Y), zt(wc, t.id);
|
|
8692
|
-
const G = _t(Wi), E = Fn(), T = Dc(), { node: C, parentNode: H } = Sc(t.id), { emit: b, on: N } = ym(C, s), v = ze(() => typeof C.draggable > "u" ? g.value : C.draggable), x = ze(() => typeof C.selectable > "u" ? w.value : C.selectable), D = ze(() => typeof C.connectable > "u" ?
|
|
8692
|
+
const G = _t(Wi), E = Fn(), T = Dc(), { node: C, parentNode: H } = Sc(t.id), { emit: b, on: N } = ym(C, s), v = ze(() => typeof C.draggable > "u" ? g.value : C.draggable), x = ze(() => typeof C.selectable > "u" ? w.value : C.selectable), D = ze(() => typeof C.connectable > "u" ? A.value : C.connectable), z = ze(() => typeof C.focusable > "u" ? $.value : C.focusable), R = fe(
|
|
8693
8693
|
() => x.value || v.value || F.value.nodeClick.hasListeners() || F.value.nodeDoubleClick.hasListeners() || F.value.nodeMouseEnter.hasListeners() || F.value.nodeMouseMove.hasListeners() || F.value.nodeMouseLeave.hasListeners()
|
|
8694
|
-
), M = ze(() => !!C.dimensions.width && !!C.dimensions.height), O =
|
|
8694
|
+
), M = ze(() => !!C.dimensions.width && !!C.dimensions.height), O = fe(() => {
|
|
8695
8695
|
const B = C.type || "default", U = G?.[`node-${B}`];
|
|
8696
8696
|
if (U)
|
|
8697
8697
|
return U;
|
|
@@ -8717,9 +8717,9 @@ const Aa = hs, Ev = Ee({
|
|
|
8717
8717
|
b.dragStop(B);
|
|
8718
8718
|
},
|
|
8719
8719
|
onClick(B) {
|
|
8720
|
-
|
|
8720
|
+
P(B);
|
|
8721
8721
|
}
|
|
8722
|
-
}), V =
|
|
8722
|
+
}), V = fe(() => C.class instanceof Function ? C.class(C) : C.class), K = fe(() => {
|
|
8723
8723
|
const B = (C.style instanceof Function ? C.style(C) : C.style) || {}, U = C.width instanceof Function ? C.width(C) : C.width, k = C.height instanceof Function ? C.height(C) : C.height;
|
|
8724
8724
|
return !B.width && U && (B.width = typeof U == "string" ? U : `${U}px`), !B.height && k && (B.height = typeof k == "string" ? k : `${k}px`), B;
|
|
8725
8725
|
}), Q = ze(() => Number(C.zIndex ?? K.value.zIndex ?? 0));
|
|
@@ -8811,11 +8811,11 @@ const Aa = hs, Ev = Ee({
|
|
|
8811
8811
|
"aria-roledescription": "node",
|
|
8812
8812
|
...C.domAttributes,
|
|
8813
8813
|
onMouseenter: se,
|
|
8814
|
-
onMousemove:
|
|
8815
|
-
onMouseleave:
|
|
8816
|
-
onContextmenu:
|
|
8817
|
-
onClick:
|
|
8818
|
-
onDblclick:
|
|
8814
|
+
onMousemove: ie,
|
|
8815
|
+
onMouseleave: ge,
|
|
8816
|
+
onContextmenu: re,
|
|
8817
|
+
onClick: P,
|
|
8818
|
+
onDblclick: ae,
|
|
8819
8819
|
onKeydown: I
|
|
8820
8820
|
},
|
|
8821
8821
|
[
|
|
@@ -8859,19 +8859,19 @@ const Aa = hs, Ev = Ee({
|
|
|
8859
8859
|
function se(B) {
|
|
8860
8860
|
L?.value || b.mouseEnter({ event: B, node: C });
|
|
8861
8861
|
}
|
|
8862
|
-
function
|
|
8862
|
+
function ie(B) {
|
|
8863
8863
|
L?.value || b.mouseMove({ event: B, node: C });
|
|
8864
8864
|
}
|
|
8865
|
-
function
|
|
8865
|
+
function ge(B) {
|
|
8866
8866
|
L?.value || b.mouseLeave({ event: B, node: C });
|
|
8867
8867
|
}
|
|
8868
|
-
function
|
|
8868
|
+
function re(B) {
|
|
8869
8869
|
return b.contextMenu({ event: B, node: C });
|
|
8870
8870
|
}
|
|
8871
|
-
function
|
|
8871
|
+
function ae(B) {
|
|
8872
8872
|
return b.doubleClick({ event: B, node: C });
|
|
8873
8873
|
}
|
|
8874
|
-
function
|
|
8874
|
+
function P(B) {
|
|
8875
8875
|
x.value && (!o.value || !v.value || _.value > 0) && Br(
|
|
8876
8876
|
C,
|
|
8877
8877
|
r.value,
|
|
@@ -8931,7 +8931,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8931
8931
|
});
|
|
8932
8932
|
function Fv(t = { includeHiddenNodes: !1 }) {
|
|
8933
8933
|
const { nodes: e } = Re();
|
|
8934
|
-
return
|
|
8934
|
+
return fe(() => {
|
|
8935
8935
|
if (e.value.length === 0)
|
|
8936
8936
|
return !1;
|
|
8937
8937
|
for (const n of e.value)
|
|
@@ -8991,7 +8991,7 @@ function Wv() {
|
|
|
8991
8991
|
}
|
|
8992
8992
|
});
|
|
8993
8993
|
}
|
|
8994
|
-
const Yv = /* @__PURE__ */
|
|
8994
|
+
const Yv = /* @__PURE__ */ le("div", { class: "vue-flow__edge-labels" }, null, -1), Uv = {
|
|
8995
8995
|
name: "VueFlow",
|
|
8996
8996
|
compatConfig: { MODE: 3 }
|
|
8997
8997
|
}, Xv = /* @__PURE__ */ Ee({
|
|
@@ -9064,17 +9064,17 @@ const Yv = /* @__PURE__ */ ae("div", { class: "vue-flow__edge-labels" }, null, -
|
|
|
9064
9064
|
ref: J(u).vueFlowRef,
|
|
9065
9065
|
class: "vue-flow"
|
|
9066
9066
|
}, [
|
|
9067
|
-
|
|
9068
|
-
default:
|
|
9069
|
-
|
|
9067
|
+
he(pv, null, {
|
|
9068
|
+
default: Ce(() => [
|
|
9069
|
+
he(Ov),
|
|
9070
9070
|
Yv,
|
|
9071
|
-
|
|
9071
|
+
he(jv),
|
|
9072
9072
|
Pe(c.$slots, "zoom-pane")
|
|
9073
9073
|
]),
|
|
9074
9074
|
_: 3
|
|
9075
9075
|
}),
|
|
9076
9076
|
Pe(c.$slots, "default"),
|
|
9077
|
-
|
|
9077
|
+
he(_v)
|
|
9078
9078
|
], 512));
|
|
9079
9079
|
}
|
|
9080
9080
|
}), qv = {
|
|
@@ -9086,7 +9086,7 @@ const Yv = /* @__PURE__ */ ae("div", { class: "vue-flow__edge-labels" }, null, -
|
|
|
9086
9086
|
position: {}
|
|
9087
9087
|
},
|
|
9088
9088
|
setup(t) {
|
|
9089
|
-
const e = t, { userSelectionActive: n } = Re(), o =
|
|
9089
|
+
const e = t, { userSelectionActive: n } = Re(), o = fe(() => `${e.position}`.split("-"));
|
|
9090
9090
|
return (i, r) => (ee(), ue("div", {
|
|
9091
9091
|
class: bt(["vue-flow__panel", o.value]),
|
|
9092
9092
|
style: Oe({ pointerEvents: J(n) ? "none" : "all" })
|
|
@@ -9134,7 +9134,7 @@ const Zv = {
|
|
|
9134
9134
|
offset: { default: 0 }
|
|
9135
9135
|
},
|
|
9136
9136
|
setup(t) {
|
|
9137
|
-
const { id: e, viewport: n } = Re(), o =
|
|
9137
|
+
const { id: e, viewport: n } = Re(), o = fe(() => {
|
|
9138
9138
|
const s = n.value.zoom, [a, u] = Array.isArray(t.gap) ? t.gap : [t.gap, t.gap], l = [a * s || 1, u * s || 1], c = t.size * s, [d, f] = Array.isArray(t.offset) ? t.offset : [t.offset, t.offset], h = [d * s || 1 + l[0] / 2, f * s || 1 + l[1] / 2];
|
|
9139
9139
|
return {
|
|
9140
9140
|
scaledGap: l,
|
|
@@ -9150,7 +9150,7 @@ const Zv = {
|
|
|
9150
9150
|
})
|
|
9151
9151
|
}, [
|
|
9152
9152
|
Pe(s.$slots, "pattern-container", { id: i.value }, () => [
|
|
9153
|
-
|
|
9153
|
+
le("pattern", {
|
|
9154
9154
|
id: i.value,
|
|
9155
9155
|
x: J(n).x % o.value.scaledGap[0],
|
|
9156
9156
|
y: J(n).y % o.value.scaledGap[1],
|
|
@@ -9171,7 +9171,7 @@ const Zv = {
|
|
|
9171
9171
|
radius: o.value.size / 2
|
|
9172
9172
|
}, null, 8, ["color", "radius"])) : $e("", !0),
|
|
9173
9173
|
s.bgColor ? (ee(), ue("svg", Qv, [
|
|
9174
|
-
|
|
9174
|
+
le("rect", {
|
|
9175
9175
|
width: "100%",
|
|
9176
9176
|
height: "100%",
|
|
9177
9177
|
fill: s.bgColor
|
|
@@ -9180,7 +9180,7 @@ const Zv = {
|
|
|
9180
9180
|
])
|
|
9181
9181
|
], 8, Jv)
|
|
9182
9182
|
]),
|
|
9183
|
-
|
|
9183
|
+
le("rect", {
|
|
9184
9184
|
x: s.x,
|
|
9185
9185
|
y: s.y,
|
|
9186
9186
|
width: "100%",
|
|
@@ -9210,7 +9210,7 @@ function ay(t, e, n, o, i, r) {
|
|
|
9210
9210
|
const Ro = /* @__PURE__ */ ry(iy, [["render", ay]]), ly = {
|
|
9211
9211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9212
9212
|
viewBox: "0 0 32 32"
|
|
9213
|
-
}, cy = /* @__PURE__ */
|
|
9213
|
+
}, cy = /* @__PURE__ */ le("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" }, null, -1), uy = [
|
|
9214
9214
|
cy
|
|
9215
9215
|
];
|
|
9216
9216
|
function dy(t, e) {
|
|
@@ -9219,7 +9219,7 @@ function dy(t, e) {
|
|
|
9219
9219
|
const fy = { render: dy }, hy = {
|
|
9220
9220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9221
9221
|
viewBox: "0 0 32 5"
|
|
9222
|
-
}, gy = /* @__PURE__ */
|
|
9222
|
+
}, gy = /* @__PURE__ */ le("path", { d: "M0 0h32v4.2H0z" }, null, -1), py = [
|
|
9223
9223
|
gy
|
|
9224
9224
|
];
|
|
9225
9225
|
function my(t, e) {
|
|
@@ -9228,7 +9228,7 @@ function my(t, e) {
|
|
|
9228
9228
|
const vy = { render: my }, yy = {
|
|
9229
9229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9230
9230
|
viewBox: "0 0 32 30"
|
|
9231
|
-
}, by = /* @__PURE__ */
|
|
9231
|
+
}, by = /* @__PURE__ */ le("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" }, null, -1), _y = [
|
|
9232
9232
|
by
|
|
9233
9233
|
];
|
|
9234
9234
|
function wy(t, e) {
|
|
@@ -9237,7 +9237,7 @@ function wy(t, e) {
|
|
|
9237
9237
|
const xy = { render: wy }, Cy = {
|
|
9238
9238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9239
9239
|
viewBox: "0 0 25 32"
|
|
9240
|
-
}, Ey = /* @__PURE__ */
|
|
9240
|
+
}, Ey = /* @__PURE__ */ le("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z" }, null, -1), Sy = [
|
|
9241
9241
|
Ey
|
|
9242
9242
|
];
|
|
9243
9243
|
function Dy(t, e) {
|
|
@@ -9246,7 +9246,7 @@ function Dy(t, e) {
|
|
|
9246
9246
|
const Ny = { render: Dy }, Ty = {
|
|
9247
9247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9248
9248
|
viewBox: "0 0 25 32"
|
|
9249
|
-
}, ky = /* @__PURE__ */
|
|
9249
|
+
}, ky = /* @__PURE__ */ le("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z" }, null, -1), Iy = [
|
|
9250
9250
|
ky
|
|
9251
9251
|
];
|
|
9252
9252
|
function My(t, e) {
|
|
@@ -9294,16 +9294,16 @@ const $y = { render: My }, Ay = {
|
|
|
9294
9294
|
class: "vue-flow__controls",
|
|
9295
9295
|
position: g.position
|
|
9296
9296
|
}, {
|
|
9297
|
-
default:
|
|
9297
|
+
default: Ce(() => [
|
|
9298
9298
|
Pe(g.$slots, "top"),
|
|
9299
9299
|
g.showZoom ? (ee(), ue(Be, { key: 0 }, [
|
|
9300
9300
|
Pe(g.$slots, "control-zoom-in", {}, () => [
|
|
9301
|
-
|
|
9301
|
+
he(Ro, {
|
|
9302
9302
|
class: "vue-flow__controls-zoomin",
|
|
9303
9303
|
disabled: m.value,
|
|
9304
9304
|
onClick: p
|
|
9305
9305
|
}, {
|
|
9306
|
-
default:
|
|
9306
|
+
default: Ce(() => [
|
|
9307
9307
|
Pe(g.$slots, "icon-zoom-in", {}, () => [
|
|
9308
9308
|
(ee(), Te(Et(J(fy))))
|
|
9309
9309
|
])
|
|
@@ -9312,12 +9312,12 @@ const $y = { render: My }, Ay = {
|
|
|
9312
9312
|
}, 8, ["disabled"])
|
|
9313
9313
|
]),
|
|
9314
9314
|
Pe(g.$slots, "control-zoom-out", {}, () => [
|
|
9315
|
-
|
|
9315
|
+
he(Ro, {
|
|
9316
9316
|
class: "vue-flow__controls-zoomout",
|
|
9317
9317
|
disabled: h.value,
|
|
9318
9318
|
onClick: y
|
|
9319
9319
|
}, {
|
|
9320
|
-
default:
|
|
9320
|
+
default: Ce(() => [
|
|
9321
9321
|
Pe(g.$slots, "icon-zoom-out", {}, () => [
|
|
9322
9322
|
(ee(), Te(Et(J(vy))))
|
|
9323
9323
|
])
|
|
@@ -9327,11 +9327,11 @@ const $y = { render: My }, Ay = {
|
|
|
9327
9327
|
])
|
|
9328
9328
|
], 64)) : $e("", !0),
|
|
9329
9329
|
g.showFitView ? Pe(g.$slots, "control-fit-view", { key: 1 }, () => [
|
|
9330
|
-
|
|
9330
|
+
he(Ro, {
|
|
9331
9331
|
class: "vue-flow__controls-fitview",
|
|
9332
9332
|
onClick: S
|
|
9333
9333
|
}, {
|
|
9334
|
-
default:
|
|
9334
|
+
default: Ce(() => [
|
|
9335
9335
|
Pe(g.$slots, "icon-fit-view", {}, () => [
|
|
9336
9336
|
(ee(), Te(Et(J(xy))))
|
|
9337
9337
|
])
|
|
@@ -9345,7 +9345,7 @@ const $y = { render: My }, Ay = {
|
|
|
9345
9345
|
class: "vue-flow__controls-interactive",
|
|
9346
9346
|
onClick: _
|
|
9347
9347
|
}, {
|
|
9348
|
-
default:
|
|
9348
|
+
default: Ce(() => [
|
|
9349
9349
|
f.value ? Pe(g.$slots, "icon-unlock", { key: 0 }, () => [
|
|
9350
9350
|
(ee(), Te(Et(J($y))))
|
|
9351
9351
|
]) : $e("", !0),
|
|
@@ -9387,15 +9387,15 @@ const $y = { render: My }, Ay = {
|
|
|
9387
9387
|
class: "d-flow-node-menus-item",
|
|
9388
9388
|
onClick: (f) => s(c)
|
|
9389
9389
|
}, [
|
|
9390
|
-
|
|
9390
|
+
le("div", {
|
|
9391
9391
|
class: "d-flow-node-menus-item-icon",
|
|
9392
9392
|
style: Oe({ backgroundColor: c.iconColor || "var(--j-color-primary)" })
|
|
9393
9393
|
}, [
|
|
9394
|
-
|
|
9394
|
+
he(l, {
|
|
9395
9395
|
icon: c.icon || "mdi:source-branch"
|
|
9396
9396
|
}, null, 8, ["icon"])
|
|
9397
9397
|
], 4),
|
|
9398
|
-
|
|
9398
|
+
le("div", zy, lt(c.name), 1)
|
|
9399
9399
|
], 8, Oy))), 128))
|
|
9400
9400
|
]);
|
|
9401
9401
|
};
|
|
@@ -9421,7 +9421,7 @@ const $y = { render: My }, Ay = {
|
|
|
9421
9421
|
getEdges: u,
|
|
9422
9422
|
getNodes: l,
|
|
9423
9423
|
onNodesChange: c
|
|
9424
|
-
} = Re(), d = _t("d_flow_design_provide", {}), f =
|
|
9424
|
+
} = Re(), d = _t("d_flow_design_provide", {}), f = fe(
|
|
9425
9425
|
() => d.getFlowComponentMap?.value?.[e.data.type] || {}
|
|
9426
9426
|
), h = () => {
|
|
9427
9427
|
a(e.id), d.onRemoveNode?.(e.id);
|
|
@@ -9436,7 +9436,7 @@ const $y = { render: My }, Ay = {
|
|
|
9436
9436
|
});
|
|
9437
9437
|
const p = de(!1), y = (H) => {
|
|
9438
9438
|
H.indexOf("t") !== -1 && !S.value || (p.value = !0, m.value[H] = !0);
|
|
9439
|
-
}, S =
|
|
9439
|
+
}, S = fe(
|
|
9440
9440
|
() => u.value.findIndex((H) => H.target === e.id) === -1
|
|
9441
9441
|
), _ = de(!1), g = () => {
|
|
9442
9442
|
_.value = !0;
|
|
@@ -9448,7 +9448,7 @@ const $y = { render: My }, Ay = {
|
|
|
9448
9448
|
if (w(v[x].source, b))
|
|
9449
9449
|
return !0;
|
|
9450
9450
|
return !1;
|
|
9451
|
-
},
|
|
9451
|
+
}, A = (H) => _.value ? (_.value = !1, !1) : w(H.source, H.target) ? !1 : H.source !== H.target && H.sourceHandle !== H.targetHandle && H.sourceHandle.indexOf("s") !== -1 && H.targetHandle.indexOf("t") !== -1, $ = () => {
|
|
9452
9452
|
T(), Object.keys(m.value).forEach((H) => {
|
|
9453
9453
|
m.value[H] = !1;
|
|
9454
9454
|
});
|
|
@@ -9488,33 +9488,33 @@ const $y = { render: My }, Ay = {
|
|
|
9488
9488
|
class: "d-flow-step",
|
|
9489
9489
|
onContextmenu: We(C, ["stop"])
|
|
9490
9490
|
}, [
|
|
9491
|
-
|
|
9491
|
+
le("div", {
|
|
9492
9492
|
class: "d-flow-step-icon",
|
|
9493
9493
|
style: Oe({ backgroundColor: f.value.iconColor || "var(--j-color-primary)" })
|
|
9494
9494
|
}, [
|
|
9495
|
-
|
|
9495
|
+
he(Jn, {
|
|
9496
9496
|
icon: f.value.icon || "mdi:source-branch"
|
|
9497
9497
|
}, null, 8, ["icon"])
|
|
9498
9498
|
], 4),
|
|
9499
|
-
|
|
9499
|
+
le("div", Ry, lt(f.value.name), 1),
|
|
9500
9500
|
t.data.type !== "start" ? (ee(), Te(v, {
|
|
9501
9501
|
key: 0,
|
|
9502
9502
|
placement: "top",
|
|
9503
9503
|
"show-arrow": !1,
|
|
9504
9504
|
"popper-class": "d-flow-step-tooltip"
|
|
9505
9505
|
}, {
|
|
9506
|
-
content:
|
|
9506
|
+
content: Ce(() => [
|
|
9507
9507
|
S.value ? (ee(), ue("div", Hy, [...b[4] || (b[4] = [
|
|
9508
|
-
|
|
9508
|
+
le("span", { style: { color: "var(--j-color-text)", "font-weight": "bold" } }, "点击", -1),
|
|
9509
9509
|
En("添加节点 ", -1)
|
|
9510
9510
|
])])) : $e("", !0),
|
|
9511
|
-
b[5] || (b[5] =
|
|
9512
|
-
|
|
9511
|
+
b[5] || (b[5] = le("div", { style: { color: "var(--j-color-text-2)" } }, [
|
|
9512
|
+
le("span", { style: { color: "var(--j-color-text)", "font-weight": "bold" } }, "拖拽"),
|
|
9513
9513
|
En("连接节点 ")
|
|
9514
9514
|
], -1))
|
|
9515
9515
|
]),
|
|
9516
|
-
default:
|
|
9517
|
-
|
|
9516
|
+
default: Ce(() => [
|
|
9517
|
+
he(J(Bn), {
|
|
9518
9518
|
onClick: b[1] || (b[1] = (R) => y("t1")),
|
|
9519
9519
|
onMousedown: g,
|
|
9520
9520
|
id: "t1",
|
|
@@ -9524,9 +9524,9 @@ const $y = { render: My }, Ay = {
|
|
|
9524
9524
|
]),
|
|
9525
9525
|
type: "target",
|
|
9526
9526
|
position: J(me).Left,
|
|
9527
|
-
"is-valid-connection":
|
|
9527
|
+
"is-valid-connection": A
|
|
9528
9528
|
}, {
|
|
9529
|
-
default:
|
|
9529
|
+
default: Ce(() => [
|
|
9530
9530
|
S.value ? (ee(), Te(N, {
|
|
9531
9531
|
key: 0,
|
|
9532
9532
|
visible: m.value.t1,
|
|
@@ -9537,14 +9537,14 @@ const $y = { render: My }, Ay = {
|
|
|
9537
9537
|
"show-arrow": !1,
|
|
9538
9538
|
"popper-options": { strategy: "fixed" }
|
|
9539
9539
|
}, {
|
|
9540
|
-
reference:
|
|
9541
|
-
|
|
9540
|
+
reference: Ce(() => [
|
|
9541
|
+
he(Jn, {
|
|
9542
9542
|
class: "d-flow-step-handle-plus",
|
|
9543
9543
|
icon: "mdi:plus-circle"
|
|
9544
9544
|
})
|
|
9545
9545
|
]),
|
|
9546
|
-
default:
|
|
9547
|
-
|
|
9546
|
+
default: Ce(() => [
|
|
9547
|
+
he(Fr, {
|
|
9548
9548
|
"handle-id": "t1",
|
|
9549
9549
|
"from-node-id": t.id,
|
|
9550
9550
|
onAddNode: F
|
|
@@ -9558,33 +9558,33 @@ const $y = { render: My }, Ay = {
|
|
|
9558
9558
|
]),
|
|
9559
9559
|
_: 1
|
|
9560
9560
|
})) : $e("", !0),
|
|
9561
|
-
|
|
9561
|
+
he(v, {
|
|
9562
9562
|
placement: "top",
|
|
9563
9563
|
"show-arrow": !1,
|
|
9564
9564
|
"popper-class": "d-flow-step-tooltip"
|
|
9565
9565
|
}, {
|
|
9566
|
-
content:
|
|
9567
|
-
|
|
9568
|
-
|
|
9566
|
+
content: Ce(() => [...b[6] || (b[6] = [
|
|
9567
|
+
le("div", { style: { color: "var(--j-color-text-2)" } }, [
|
|
9568
|
+
le("span", { style: { color: "var(--j-color-text)", "font-weight": "bold" } }, "点击"),
|
|
9569
9569
|
En("添加节点 ")
|
|
9570
9570
|
], -1),
|
|
9571
|
-
|
|
9572
|
-
|
|
9571
|
+
le("div", { style: { color: "var(--j-color-text-2)" } }, [
|
|
9572
|
+
le("span", { style: { color: "var(--j-color-text)", "font-weight": "bold" } }, "拖拽"),
|
|
9573
9573
|
En("连接节点 ")
|
|
9574
9574
|
], -1)
|
|
9575
9575
|
])]),
|
|
9576
|
-
default:
|
|
9577
|
-
|
|
9576
|
+
default: Ce(() => [
|
|
9577
|
+
he(J(Bn), {
|
|
9578
9578
|
onClick: b[3] || (b[3] = (R) => y("s1")),
|
|
9579
9579
|
onMousedown: g,
|
|
9580
9580
|
id: "s1",
|
|
9581
9581
|
class: "d-flow-step-source-handle",
|
|
9582
9582
|
type: "source",
|
|
9583
9583
|
position: J(me).Right,
|
|
9584
|
-
"is-valid-connection":
|
|
9584
|
+
"is-valid-connection": A
|
|
9585
9585
|
}, {
|
|
9586
|
-
default:
|
|
9587
|
-
|
|
9586
|
+
default: Ce(() => [
|
|
9587
|
+
he(N, {
|
|
9588
9588
|
visible: m.value.s1,
|
|
9589
9589
|
"onUpdate:visible": b[2] || (b[2] = (R) => m.value.s1 = R),
|
|
9590
9590
|
placement: "right",
|
|
@@ -9593,14 +9593,14 @@ const $y = { render: My }, Ay = {
|
|
|
9593
9593
|
"show-arrow": !1,
|
|
9594
9594
|
"popper-options": { strategy: "fixed" }
|
|
9595
9595
|
}, {
|
|
9596
|
-
reference:
|
|
9597
|
-
|
|
9596
|
+
reference: Ce(() => [
|
|
9597
|
+
he(Jn, {
|
|
9598
9598
|
class: "d-flow-step-handle-plus",
|
|
9599
9599
|
icon: "mdi:plus-circle"
|
|
9600
9600
|
})
|
|
9601
9601
|
]),
|
|
9602
|
-
default:
|
|
9603
|
-
|
|
9602
|
+
default: Ce(() => [
|
|
9603
|
+
he(Fr, {
|
|
9604
9604
|
"handle-id": "s1",
|
|
9605
9605
|
"from-node-id": t.id,
|
|
9606
9606
|
onAddNode: F
|
|
@@ -9614,7 +9614,7 @@ const $y = { render: My }, Ay = {
|
|
|
9614
9614
|
]),
|
|
9615
9615
|
_: 1
|
|
9616
9616
|
}),
|
|
9617
|
-
|
|
9617
|
+
he(z, {
|
|
9618
9618
|
ref_key: "dropdownRef",
|
|
9619
9619
|
ref: Y,
|
|
9620
9620
|
"popper-class": "d-flow-step-dropdown",
|
|
@@ -9627,14 +9627,14 @@ const $y = { render: My }, Ay = {
|
|
|
9627
9627
|
trigger: "contextmenu",
|
|
9628
9628
|
placement: "bottom-start"
|
|
9629
9629
|
}, {
|
|
9630
|
-
dropdown:
|
|
9631
|
-
|
|
9632
|
-
default:
|
|
9630
|
+
dropdown: Ce(() => [
|
|
9631
|
+
he(D, null, {
|
|
9632
|
+
default: Ce(() => [
|
|
9633
9633
|
t.data.type != "start" ? (ee(), Te(x, {
|
|
9634
9634
|
key: 0,
|
|
9635
9635
|
onClick: h
|
|
9636
9636
|
}, {
|
|
9637
|
-
default:
|
|
9637
|
+
default: Ce(() => [...b[7] || (b[7] = [
|
|
9638
9638
|
En("删除", -1)
|
|
9639
9639
|
])]),
|
|
9640
9640
|
_: 1
|
|
@@ -9649,8 +9649,8 @@ const $y = { render: My }, Ay = {
|
|
|
9649
9649
|
"margin-top": t.data.type != "start" ? "4px" : void 0
|
|
9650
9650
|
})
|
|
9651
9651
|
}, [
|
|
9652
|
-
b[8] || (b[8] =
|
|
9653
|
-
|
|
9652
|
+
b[8] || (b[8] = le("div", { style: { "margin-bottom": "4px", color: "var(--j-color-text-2)" } }, "关于", -1)),
|
|
9653
|
+
le("div", By, lt(f.value.des), 1)
|
|
9654
9654
|
], 4)) : $e("", !0)
|
|
9655
9655
|
]),
|
|
9656
9656
|
_: 1
|
|
@@ -9684,7 +9684,7 @@ const $y = { render: My }, Ay = {
|
|
|
9684
9684
|
onMoveStart: s,
|
|
9685
9685
|
onConnectStart: a,
|
|
9686
9686
|
onNodeDragStart: u
|
|
9687
|
-
} = Re(), l =
|
|
9687
|
+
} = Re(), l = fe(() => fs(e)), c = de(!1), d = de(!1);
|
|
9688
9688
|
n(({ edge: y }) => {
|
|
9689
9689
|
y.id === e.id && (c.value = !0);
|
|
9690
9690
|
}), o(() => {
|
|
@@ -9712,15 +9712,15 @@ const $y = { render: My }, Ay = {
|
|
|
9712
9712
|
}), (y, S) => {
|
|
9713
9713
|
const _ = De("j-icon"), g = De("el-popover");
|
|
9714
9714
|
return ee(), ue(Be, null, [
|
|
9715
|
-
|
|
9715
|
+
he(J(So), {
|
|
9716
9716
|
id: t.id,
|
|
9717
9717
|
style: Oe(t.style),
|
|
9718
9718
|
path: l.value[0],
|
|
9719
9719
|
"marker-end": t.markerEnd
|
|
9720
9720
|
}, null, 8, ["id", "style", "path", "marker-end"]),
|
|
9721
|
-
|
|
9722
|
-
default:
|
|
9723
|
-
|
|
9721
|
+
he(J(Lv), null, {
|
|
9722
|
+
default: Ce(() => [
|
|
9723
|
+
le("div", {
|
|
9724
9724
|
style: Oe({
|
|
9725
9725
|
pointerEvents: "all",
|
|
9726
9726
|
position: "absolute",
|
|
@@ -9728,24 +9728,24 @@ const $y = { render: My }, Ay = {
|
|
|
9728
9728
|
}),
|
|
9729
9729
|
class: "nodrag nopan"
|
|
9730
9730
|
}, [
|
|
9731
|
-
|
|
9731
|
+
he(g, {
|
|
9732
9732
|
visible: f.value,
|
|
9733
9733
|
"show-arrow": !1,
|
|
9734
9734
|
placement: "right",
|
|
9735
9735
|
"popper-class": "d-flow-step-popper"
|
|
9736
9736
|
}, {
|
|
9737
|
-
reference:
|
|
9738
|
-
ao(
|
|
9737
|
+
reference: Ce(() => [
|
|
9738
|
+
ao(le("div", {
|
|
9739
9739
|
onClick: We(m, ["stop"]),
|
|
9740
9740
|
class: "d-flow-edge-button"
|
|
9741
9741
|
}, [
|
|
9742
|
-
|
|
9742
|
+
he(_, { icon: "mdi:plus-circle" })
|
|
9743
9743
|
], 512), [
|
|
9744
9744
|
[lo, c.value || d.value]
|
|
9745
9745
|
])
|
|
9746
9746
|
]),
|
|
9747
|
-
default:
|
|
9748
|
-
|
|
9747
|
+
default: Ce(() => [
|
|
9748
|
+
he(Fr, {
|
|
9749
9749
|
"handle-id": "line",
|
|
9750
9750
|
"from-node-id": t.id,
|
|
9751
9751
|
onAddNode: p
|
|
@@ -9776,8 +9776,8 @@ const $y = { render: My }, Ay = {
|
|
|
9776
9776
|
nodes: t.nodes,
|
|
9777
9777
|
edges: t.edges
|
|
9778
9778
|
}, {
|
|
9779
|
-
"edge-button":
|
|
9780
|
-
|
|
9779
|
+
"edge-button": Ce((o) => [
|
|
9780
|
+
he(Fy, {
|
|
9781
9781
|
id: o.id,
|
|
9782
9782
|
"source-x": o.sourceX,
|
|
9783
9783
|
"source-y": o.sourceY,
|
|
@@ -9789,12 +9789,12 @@ const $y = { render: My }, Ay = {
|
|
|
9789
9789
|
style: Oe(o.style)
|
|
9790
9790
|
}, null, 8, ["id", "source-x", "source-y", "target-x", "target-y", "source-position", "target-position", "marker-end", "style"])
|
|
9791
9791
|
]),
|
|
9792
|
-
"node-step":
|
|
9793
|
-
|
|
9792
|
+
"node-step": Ce((o) => [
|
|
9793
|
+
he(Ly, ll(Su(o)), null, 16)
|
|
9794
9794
|
]),
|
|
9795
|
-
default:
|
|
9796
|
-
|
|
9797
|
-
|
|
9795
|
+
default: Ce(() => [
|
|
9796
|
+
he(J(Py), { position: "bottom-left" }),
|
|
9797
|
+
he(J(oy))
|
|
9798
9798
|
]),
|
|
9799
9799
|
_: 1
|
|
9800
9800
|
}, 8, ["connection-mode", "nodes", "edges"]));
|
|
@@ -9824,7 +9824,7 @@ const $y = { render: My }, Ay = {
|
|
|
9824
9824
|
onEdgeClick: h,
|
|
9825
9825
|
getNodes: m,
|
|
9826
9826
|
getEdges: p
|
|
9827
|
-
} = Re(), y =
|
|
9827
|
+
} = Re(), y = fe(() => {
|
|
9828
9828
|
const z = {};
|
|
9829
9829
|
return o.components.forEach((R) => {
|
|
9830
9830
|
z[R.type] = R;
|
|
@@ -9860,7 +9860,7 @@ const $y = { render: My }, Ay = {
|
|
|
9860
9860
|
x: z.position.x - 100 - z.dimensions.width,
|
|
9861
9861
|
y: z.position.y
|
|
9862
9862
|
};
|
|
9863
|
-
},
|
|
9863
|
+
}, A = (z, R, M) => {
|
|
9864
9864
|
const O = m.value.find((V) => V.id === R);
|
|
9865
9865
|
if (!O)
|
|
9866
9866
|
return;
|
|
@@ -9942,7 +9942,7 @@ const $y = { render: My }, Ay = {
|
|
|
9942
9942
|
c((z) => {
|
|
9943
9943
|
console.log("onConnect", z), z.type = "button", z.markerEnd = Gt.Arrow, s(z), i("connect", z);
|
|
9944
9944
|
});
|
|
9945
|
-
const Y = () => o.components || [], G = de(), E =
|
|
9945
|
+
const Y = () => o.components || [], G = de(), E = fe(
|
|
9946
9946
|
() => G.value ? y.value[G.value.data.type] : void 0
|
|
9947
9947
|
);
|
|
9948
9948
|
d((z) => {
|
|
@@ -9991,7 +9991,7 @@ const $y = { render: My }, Ay = {
|
|
|
9991
9991
|
};
|
|
9992
9992
|
return zt("d_flow_design_provide", {
|
|
9993
9993
|
getFlowComponents: Y,
|
|
9994
|
-
addNode:
|
|
9994
|
+
addNode: A,
|
|
9995
9995
|
addNodeByLine: F,
|
|
9996
9996
|
onRemoveNode: T,
|
|
9997
9997
|
getFlowComponentMap: y
|
|
@@ -10044,26 +10044,26 @@ const $y = { render: My }, Ay = {
|
|
|
10044
10044
|
}), (z, R) => {
|
|
10045
10045
|
const M = De("j-icon"), O = De("j-form");
|
|
10046
10046
|
return ee(), ue("div", Gy, [
|
|
10047
|
-
|
|
10048
|
-
|
|
10047
|
+
le("div", jy, [
|
|
10048
|
+
he(Vy, {
|
|
10049
10049
|
nodes: _.value,
|
|
10050
10050
|
edges: g.value
|
|
10051
10051
|
}, null, 8, ["nodes", "edges"])
|
|
10052
10052
|
]),
|
|
10053
|
-
ao(
|
|
10054
|
-
|
|
10055
|
-
|
|
10053
|
+
ao(le("div", Wy, [
|
|
10054
|
+
le("div", Yy, [
|
|
10055
|
+
le("div", {
|
|
10056
10056
|
class: "d-flow-design-title-icon",
|
|
10057
10057
|
style: Oe({ backgroundColor: E.value?.iconColor || "var(--j-color-primary)" })
|
|
10058
10058
|
}, [
|
|
10059
|
-
|
|
10059
|
+
he(M, {
|
|
10060
10060
|
icon: E.value?.icon || "mdi:source-branch"
|
|
10061
10061
|
}, null, 8, ["icon"])
|
|
10062
10062
|
], 4),
|
|
10063
|
-
|
|
10063
|
+
le("div", Uy, lt(E.value?.name || ""), 1)
|
|
10064
10064
|
]),
|
|
10065
|
-
|
|
10066
|
-
|
|
10065
|
+
le("div", Xy, [
|
|
10066
|
+
he(O, {
|
|
10067
10067
|
config: {
|
|
10068
10068
|
labelPosition: "top"
|
|
10069
10069
|
},
|
|
@@ -10100,14 +10100,14 @@ const $y = { render: My }, Ay = {
|
|
|
10100
10100
|
},
|
|
10101
10101
|
emits: ["update:modelValue", "change"],
|
|
10102
10102
|
setup(t, { emit: e }) {
|
|
10103
|
-
const n = t, o = e, i = de(), r =
|
|
10103
|
+
const n = t, o = e, i = de(), r = fe({
|
|
10104
10104
|
get() {
|
|
10105
10105
|
return n.modelValue;
|
|
10106
10106
|
},
|
|
10107
10107
|
set(d) {
|
|
10108
10108
|
o("update:modelValue", d);
|
|
10109
10109
|
}
|
|
10110
|
-
}), s =
|
|
10110
|
+
}), s = fe(() => (n.modelValue?.trim(), n.btnText)), a = (d) => {
|
|
10111
10111
|
const f = typeof d == "string" ? d : void 0;
|
|
10112
10112
|
try {
|
|
10113
10113
|
i.value?.setData(JSON.parse(f || "[]"));
|
|
@@ -10144,9 +10144,9 @@ const $y = { render: My }, Ay = {
|
|
|
10144
10144
|
"onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p),
|
|
10145
10145
|
onChange: c
|
|
10146
10146
|
}), {
|
|
10147
|
-
default:
|
|
10148
|
-
|
|
10149
|
-
|
|
10147
|
+
default: Ce(() => [
|
|
10148
|
+
le("div", Zy, [
|
|
10149
|
+
he(h, {
|
|
10150
10150
|
ref_key: "flowRef",
|
|
10151
10151
|
ref: i,
|
|
10152
10152
|
components: t.flowComponents,
|
|
@@ -13490,8 +13490,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
13490
13490
|
const g = this._extraDragRow;
|
|
13491
13491
|
if (this.engine.collide(i, a)) {
|
|
13492
13492
|
const w = this.getRow();
|
|
13493
|
-
let
|
|
13494
|
-
this.opts.maxRow && w +
|
|
13493
|
+
let A = Math.max(0, a.y + i.h - w);
|
|
13494
|
+
this.opts.maxRow && w + A > this.opts.maxRow && (A = Math.max(0, this.opts.maxRow - w)), this._extraDragRow = A;
|
|
13495
13495
|
} else
|
|
13496
13496
|
this._extraDragRow = 0;
|
|
13497
13497
|
if (this._extraDragRow !== g && this._updateContainerHeight(), i.x === a.x && i.y === a.y)
|
|
@@ -13673,7 +13673,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13673
13673
|
}), p;
|
|
13674
13674
|
});
|
|
13675
13675
|
i("update:modelValue", h);
|
|
13676
|
-
}, d =
|
|
13676
|
+
}, d = fe(() => o.modelValue);
|
|
13677
13677
|
return Ne(
|
|
13678
13678
|
() => o.modelValue,
|
|
13679
13679
|
async () => {
|
|
@@ -13733,7 +13733,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13733
13733
|
/** 获取 GridStack 实例 */
|
|
13734
13734
|
getGrid: () => s
|
|
13735
13735
|
}), (f, h) => (ee(), ue("div", o0, [
|
|
13736
|
-
|
|
13736
|
+
le("div", {
|
|
13737
13737
|
ref_key: "gridContainerRef",
|
|
13738
13738
|
ref: r
|
|
13739
13739
|
}, [
|
|
@@ -13792,19 +13792,19 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13792
13792
|
{ classname: "top-right" },
|
|
13793
13793
|
{ classname: "bottom-left" },
|
|
13794
13794
|
{ classname: "bottom-right" }
|
|
13795
|
-
]), S =
|
|
13795
|
+
]), S = fe(() => o.scale), _ = fe(() => ({ left: Qe(S.value, "", o.isPt) })), g = fe(() => ({ left: Qe(-S.value, "", o.isPt) })), w = fe(() => ({
|
|
13796
13796
|
left: "auto",
|
|
13797
13797
|
right: Qe(-S.value, "", o.isPt)
|
|
13798
|
-
})),
|
|
13798
|
+
})), A = fe(() => ({ top: Qe(-S.value, "", o.isPt) })), $ = fe(() => ({
|
|
13799
13799
|
top: "auto",
|
|
13800
13800
|
bottom: Qe(-S.value, "", o.isPt)
|
|
13801
|
-
})), F =
|
|
13801
|
+
})), F = fe(() => {
|
|
13802
13802
|
const K = 8 * S.value;
|
|
13803
13803
|
return {
|
|
13804
13804
|
width: Qe(K, "", o.isPt),
|
|
13805
13805
|
height: Qe(K, "", o.isPt)
|
|
13806
13806
|
};
|
|
13807
|
-
}), Y =
|
|
13807
|
+
}), Y = fe(() => ({ fontSize: Qe(16 * S.value, "", o.isPt) })), G = fe(
|
|
13808
13808
|
() => Object.assign(
|
|
13809
13809
|
(() => {
|
|
13810
13810
|
if (p.value) {
|
|
@@ -13894,19 +13894,19 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13894
13894
|
};
|
|
13895
13895
|
}, M = (K, Q) => {
|
|
13896
13896
|
if (o.disabled || o.readonly) return;
|
|
13897
|
-
let X, te, se,
|
|
13897
|
+
let X, te, se, ie, ge, re;
|
|
13898
13898
|
m.value = !0, D();
|
|
13899
|
-
let
|
|
13899
|
+
let ae = K.clientX, P = K.clientY;
|
|
13900
13900
|
document.onmousemove = (I) => {
|
|
13901
|
-
f.value = !0, Q === "right" ? (X = !0, te = !1) : Q === "left" ? (X = !0, se = !0,
|
|
13902
|
-
const B = I.clientX -
|
|
13903
|
-
if (
|
|
13901
|
+
f.value = !0, Q === "right" ? (X = !0, te = !1) : Q === "left" ? (X = !0, se = !0, ge = !0, te = !1) : Q === "top" ? (X = !1, te = !0, ie = !0, re = !0) : Q === "bottom" ? (X = !1, te = !0) : Q === "bottom-right" ? (X = !0, te = !0) : Q === "bottom-left" ? (X = !0, te = !0, se = !0, ge = !0) : Q === "top-right" ? (X = !0, te = !0, ie = !0, re = !0) : Q === "top-left" && (X = !0, te = !0, se = !0, ge = !0, ie = !0, re = !0);
|
|
13902
|
+
const B = I.clientX - ae, U = I.clientY - P;
|
|
13903
|
+
if (ae = I.clientX, P = I.clientY, X) {
|
|
13904
13904
|
let k = B * o.step;
|
|
13905
|
-
|
|
13905
|
+
ge && (k = -k), se && (l.value = it(l.value - k)), a.value = it(a.value + k);
|
|
13906
13906
|
}
|
|
13907
13907
|
if (te) {
|
|
13908
13908
|
let k = U * o.step;
|
|
13909
|
-
|
|
13909
|
+
re && (k = -k), ie && (c.value = it(c.value - k)), u.value = it(u.value + k);
|
|
13910
13910
|
}
|
|
13911
13911
|
}, R();
|
|
13912
13912
|
}, O = () => {
|
|
@@ -13930,8 +13930,8 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13930
13930
|
p.value = !0, D();
|
|
13931
13931
|
let Q = K.clientX, X = K.clientY;
|
|
13932
13932
|
document.onmousemove = (te) => {
|
|
13933
|
-
const se = te.clientX - Q,
|
|
13934
|
-
Q = te.clientX, X = te.clientY, l.value = it(l.value + se * o.step), c.value = it(c.value +
|
|
13933
|
+
const se = te.clientX - Q, ie = te.clientY - X;
|
|
13934
|
+
Q = te.clientX, X = te.clientY, l.value = it(l.value + se * o.step), c.value = it(c.value + ie * o.step);
|
|
13935
13935
|
}, R();
|
|
13936
13936
|
};
|
|
13937
13937
|
return mt(() => {
|
|
@@ -13954,30 +13954,30 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13954
13954
|
onMouseout: We(O, ["stop"]),
|
|
13955
13955
|
style: Oe(G.value)
|
|
13956
13956
|
}, [
|
|
13957
|
-
|
|
13957
|
+
le("div", {
|
|
13958
13958
|
class: "d-draggable__wrapper",
|
|
13959
13959
|
ref_key: "wrapper",
|
|
13960
13960
|
ref: r
|
|
13961
13961
|
}, [
|
|
13962
13962
|
(p.value || h.value || f.value) && !t.readonly && !t.disabled ? (ee(), ue(Be, { key: 0 }, [
|
|
13963
|
-
|
|
13964
|
-
style: Oe({ ..._.value, ...
|
|
13963
|
+
le("div", {
|
|
13964
|
+
style: Oe({ ..._.value, ...A.value }),
|
|
13965
13965
|
class: "d-draggable__line d-draggable__line--left"
|
|
13966
13966
|
}, null, 4),
|
|
13967
|
-
|
|
13967
|
+
le("div", {
|
|
13968
13968
|
style: Oe({ ..._.value, ...g.value }),
|
|
13969
13969
|
class: "d-draggable__line d-draggable__line--top"
|
|
13970
13970
|
}, null, 4),
|
|
13971
13971
|
t.isPt ? (ee(), ue(Be, { key: 1 }, [
|
|
13972
|
-
|
|
13972
|
+
le("div", {
|
|
13973
13973
|
style: Oe({
|
|
13974
13974
|
..._.value,
|
|
13975
|
-
...
|
|
13975
|
+
...A.value,
|
|
13976
13976
|
transform: "none"
|
|
13977
13977
|
}),
|
|
13978
13978
|
class: "d-draggable__line d-draggable__line--left"
|
|
13979
13979
|
}, null, 4),
|
|
13980
|
-
|
|
13980
|
+
le("div", {
|
|
13981
13981
|
style: Oe({
|
|
13982
13982
|
..._.value,
|
|
13983
13983
|
...g.value,
|
|
@@ -13985,15 +13985,15 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13985
13985
|
}),
|
|
13986
13986
|
class: "d-draggable__line d-draggable__line--top"
|
|
13987
13987
|
}, null, 4),
|
|
13988
|
-
|
|
13988
|
+
le("div", {
|
|
13989
13989
|
style: Oe({ ..._.value, ...$.value }),
|
|
13990
13990
|
class: "d-draggable__line d-draggable__line--left"
|
|
13991
13991
|
}, null, 4),
|
|
13992
|
-
|
|
13992
|
+
le("div", {
|
|
13993
13993
|
style: Oe({ ..._.value, ...w.value }),
|
|
13994
13994
|
class: "d-draggable__line d-draggable__line--top"
|
|
13995
13995
|
}, null, 4),
|
|
13996
|
-
|
|
13996
|
+
le("div", {
|
|
13997
13997
|
style: Oe({
|
|
13998
13998
|
..._.value,
|
|
13999
13999
|
...$.value,
|
|
@@ -14001,7 +14001,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14001
14001
|
}),
|
|
14002
14002
|
class: "d-draggable__line d-draggable__line--left"
|
|
14003
14003
|
}, null, 4),
|
|
14004
|
-
|
|
14004
|
+
le("div", {
|
|
14005
14005
|
style: Oe({
|
|
14006
14006
|
..._.value,
|
|
14007
14007
|
...w.value,
|
|
@@ -14023,7 +14023,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14023
14023
|
onMousedown: We((se) => M(se, X.classname), ["stop"])
|
|
14024
14024
|
}, null, 46, c0)) : $e("", !0)
|
|
14025
14025
|
], 64))), 128)) : $e("", !0),
|
|
14026
|
-
|
|
14026
|
+
le("div", {
|
|
14027
14027
|
class: "d-draggable__item",
|
|
14028
14028
|
ref_key: "item",
|
|
14029
14029
|
ref: s
|
|
@@ -14254,13 +14254,13 @@ function b0() {
|
|
|
14254
14254
|
return { M: d, y: h, w: c, d: l, D: m, h: u, m: a, s, ms: r, Q: f }[b] || String(b || "").toLowerCase().replace(/s$/, "");
|
|
14255
14255
|
}, u: function(b) {
|
|
14256
14256
|
return b === void 0;
|
|
14257
|
-
} },
|
|
14258
|
-
$[
|
|
14257
|
+
} }, A = "en", $ = {};
|
|
14258
|
+
$[A] = _;
|
|
14259
14259
|
var F = "$isDayjsObject", Y = function(b) {
|
|
14260
14260
|
return b instanceof C || !(!b || !b[F]);
|
|
14261
14261
|
}, G = function b(N, v, x) {
|
|
14262
14262
|
var D;
|
|
14263
|
-
if (!N) return
|
|
14263
|
+
if (!N) return A;
|
|
14264
14264
|
if (typeof N == "string") {
|
|
14265
14265
|
var z = N.toLowerCase();
|
|
14266
14266
|
$[z] && (D = z), v && ($[z] = v, D = z);
|
|
@@ -14270,7 +14270,7 @@ function b0() {
|
|
|
14270
14270
|
var M = N.name;
|
|
14271
14271
|
$[M] = N, D = M;
|
|
14272
14272
|
}
|
|
14273
|
-
return !x && D && (
|
|
14273
|
+
return !x && D && (A = D), D || !x && A;
|
|
14274
14274
|
}, E = function(b, N) {
|
|
14275
14275
|
if (Y(b)) return b.clone();
|
|
14276
14276
|
var v = typeof N == "object" ? N : {};
|
|
@@ -14320,11 +14320,11 @@ function b0() {
|
|
|
14320
14320
|
}, N.valueOf = function() {
|
|
14321
14321
|
return this.$d.getTime();
|
|
14322
14322
|
}, N.startOf = function(v, x) {
|
|
14323
|
-
var D = this, z = !!T.u(x) || x, R = T.p(v), M = function(se,
|
|
14324
|
-
var
|
|
14325
|
-
return z ?
|
|
14326
|
-
}, O = function(se,
|
|
14327
|
-
return T.w(D.toDate()[se].apply(D.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
14323
|
+
var D = this, z = !!T.u(x) || x, R = T.p(v), M = function(se, ie) {
|
|
14324
|
+
var ge = T.w(D.$u ? Date.UTC(D.$y, ie, se) : new Date(D.$y, ie, se), D);
|
|
14325
|
+
return z ? ge : ge.endOf(l);
|
|
14326
|
+
}, O = function(se, ie) {
|
|
14327
|
+
return T.w(D.toDate()[se].apply(D.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), D);
|
|
14328
14328
|
}, L = this.$W, V = this.$M, K = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
14329
14329
|
switch (R) {
|
|
14330
14330
|
case h:
|
|
@@ -14377,17 +14377,17 @@ function b0() {
|
|
|
14377
14377
|
}, N.format = function(v) {
|
|
14378
14378
|
var x = this, D = this.$locale();
|
|
14379
14379
|
if (!this.isValid()) return D.invalidDate || p;
|
|
14380
|
-
var z = v || "YYYY-MM-DDTHH:mm:ssZ", R = T.z(this), M = this.$H, O = this.$m, L = this.$M, V = D.weekdays, K = D.months, Q = D.meridiem, X = function(
|
|
14381
|
-
return
|
|
14382
|
-
}, te = function(
|
|
14383
|
-
return T.s(M % 12 || 12,
|
|
14384
|
-
}, se = Q || function(
|
|
14385
|
-
var
|
|
14386
|
-
return
|
|
14380
|
+
var z = v || "YYYY-MM-DDTHH:mm:ssZ", R = T.z(this), M = this.$H, O = this.$m, L = this.$M, V = D.weekdays, K = D.months, Q = D.meridiem, X = function(ie, ge, re, ae) {
|
|
14381
|
+
return ie && (ie[ge] || ie(x, z)) || re[ge].slice(0, ae);
|
|
14382
|
+
}, te = function(ie) {
|
|
14383
|
+
return T.s(M % 12 || 12, ie, "0");
|
|
14384
|
+
}, se = Q || function(ie, ge, re) {
|
|
14385
|
+
var ae = ie < 12 ? "AM" : "PM";
|
|
14386
|
+
return re ? ae.toLowerCase() : ae;
|
|
14387
14387
|
};
|
|
14388
|
-
return z.replace(S, (function(
|
|
14389
|
-
return
|
|
14390
|
-
switch (
|
|
14388
|
+
return z.replace(S, (function(ie, ge) {
|
|
14389
|
+
return ge || (function(re) {
|
|
14390
|
+
switch (re) {
|
|
14391
14391
|
case "YY":
|
|
14392
14392
|
return String(x.$y).slice(-2);
|
|
14393
14393
|
case "YYYY":
|
|
@@ -14438,7 +14438,7 @@ function b0() {
|
|
|
14438
14438
|
return R;
|
|
14439
14439
|
}
|
|
14440
14440
|
return null;
|
|
14441
|
-
})(
|
|
14441
|
+
})(ie) || R.replace(":", "");
|
|
14442
14442
|
}));
|
|
14443
14443
|
}, N.utcOffset = function() {
|
|
14444
14444
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -14503,7 +14503,7 @@ function b0() {
|
|
|
14503
14503
|
return b.$i || (b(N, C, E), b.$i = !0), E;
|
|
14504
14504
|
}, E.locale = G, E.isDayjs = Y, E.unix = function(b) {
|
|
14505
14505
|
return E(1e3 * b);
|
|
14506
|
-
}, E.en = $[
|
|
14506
|
+
}, E.en = $[A], E.Ls = $, E.p = {}, E;
|
|
14507
14507
|
}));
|
|
14508
14508
|
})(Qo)), Qo.exports;
|
|
14509
14509
|
}
|
|
@@ -14680,15 +14680,15 @@ function wt() {
|
|
|
14680
14680
|
* wordArray1.concat(wordArray2);
|
|
14681
14681
|
*/
|
|
14682
14682
|
concat: function(_) {
|
|
14683
|
-
var g = this.words, w = _.words,
|
|
14684
|
-
if (this.clamp(),
|
|
14683
|
+
var g = this.words, w = _.words, A = this.sigBytes, $ = _.sigBytes;
|
|
14684
|
+
if (this.clamp(), A % 4)
|
|
14685
14685
|
for (var F = 0; F < $; F++) {
|
|
14686
14686
|
var Y = w[F >>> 2] >>> 24 - F % 4 * 8 & 255;
|
|
14687
|
-
g[
|
|
14687
|
+
g[A + F >>> 2] |= Y << 24 - (A + F) % 4 * 8;
|
|
14688
14688
|
}
|
|
14689
14689
|
else
|
|
14690
14690
|
for (var G = 0; G < $; G += 4)
|
|
14691
|
-
g[
|
|
14691
|
+
g[A + G >>> 2] = w[G >>> 2];
|
|
14692
14692
|
return this.sigBytes += $, this;
|
|
14693
14693
|
},
|
|
14694
14694
|
/**
|
|
@@ -14748,11 +14748,11 @@ function wt() {
|
|
|
14748
14748
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
14749
14749
|
*/
|
|
14750
14750
|
stringify: function(_) {
|
|
14751
|
-
for (var g = _.words, w = _.sigBytes,
|
|
14751
|
+
for (var g = _.words, w = _.sigBytes, A = [], $ = 0; $ < w; $++) {
|
|
14752
14752
|
var F = g[$ >>> 2] >>> 24 - $ % 4 * 8 & 255;
|
|
14753
|
-
|
|
14753
|
+
A.push((F >>> 4).toString(16)), A.push((F & 15).toString(16));
|
|
14754
14754
|
}
|
|
14755
|
-
return
|
|
14755
|
+
return A.join("");
|
|
14756
14756
|
},
|
|
14757
14757
|
/**
|
|
14758
14758
|
* Converts a hex string to a word array.
|
|
@@ -14768,8 +14768,8 @@ function wt() {
|
|
|
14768
14768
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
14769
14769
|
*/
|
|
14770
14770
|
parse: function(_) {
|
|
14771
|
-
for (var g = _.length, w = [],
|
|
14772
|
-
w[
|
|
14771
|
+
for (var g = _.length, w = [], A = 0; A < g; A += 2)
|
|
14772
|
+
w[A >>> 3] |= parseInt(_.substr(A, 2), 16) << 24 - A % 8 * 4;
|
|
14773
14773
|
return new d.init(w, g / 2);
|
|
14774
14774
|
}
|
|
14775
14775
|
}, m = f.Latin1 = {
|
|
@@ -14787,11 +14787,11 @@ function wt() {
|
|
|
14787
14787
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
14788
14788
|
*/
|
|
14789
14789
|
stringify: function(_) {
|
|
14790
|
-
for (var g = _.words, w = _.sigBytes,
|
|
14790
|
+
for (var g = _.words, w = _.sigBytes, A = [], $ = 0; $ < w; $++) {
|
|
14791
14791
|
var F = g[$ >>> 2] >>> 24 - $ % 4 * 8 & 255;
|
|
14792
|
-
|
|
14792
|
+
A.push(String.fromCharCode(F));
|
|
14793
14793
|
}
|
|
14794
|
-
return
|
|
14794
|
+
return A.join("");
|
|
14795
14795
|
},
|
|
14796
14796
|
/**
|
|
14797
14797
|
* Converts a Latin1 string to a word array.
|
|
@@ -14807,8 +14807,8 @@ function wt() {
|
|
|
14807
14807
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
14808
14808
|
*/
|
|
14809
14809
|
parse: function(_) {
|
|
14810
|
-
for (var g = _.length, w = [],
|
|
14811
|
-
w[
|
|
14810
|
+
for (var g = _.length, w = [], A = 0; A < g; A++)
|
|
14811
|
+
w[A >>> 2] |= (_.charCodeAt(A) & 255) << 24 - A % 4 * 8;
|
|
14812
14812
|
return new d.init(w, g);
|
|
14813
14813
|
}
|
|
14814
14814
|
}, p = f.Utf8 = {
|
|
@@ -14887,13 +14887,13 @@ function wt() {
|
|
|
14887
14887
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
14888
14888
|
*/
|
|
14889
14889
|
_process: function(_) {
|
|
14890
|
-
var g, w = this._data,
|
|
14890
|
+
var g, w = this._data, A = w.words, $ = w.sigBytes, F = this.blockSize, Y = F * 4, G = $ / Y;
|
|
14891
14891
|
_ ? G = o.ceil(G) : G = o.max((G | 0) - this._minBufferSize, 0);
|
|
14892
14892
|
var E = G * F, T = o.min(E * 4, $);
|
|
14893
14893
|
if (E) {
|
|
14894
14894
|
for (var C = 0; C < E; C += F)
|
|
14895
|
-
this._doProcessBlock(
|
|
14896
|
-
g =
|
|
14895
|
+
this._doProcessBlock(A, C);
|
|
14896
|
+
g = A.splice(0, E), w.sigBytes -= T;
|
|
14897
14897
|
}
|
|
14898
14898
|
return new d.init(g, T);
|
|
14899
14899
|
},
|
|
@@ -15119,39 +15119,39 @@ function Hc() {
|
|
|
15119
15119
|
var _ = y + S, g = p[_];
|
|
15120
15120
|
p[_] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
15121
15121
|
}
|
|
15122
|
-
var w = this._hash.words,
|
|
15123
|
-
M = d(M, O, L, V,
|
|
15122
|
+
var w = this._hash.words, A = p[y + 0], $ = p[y + 1], F = p[y + 2], Y = p[y + 3], G = p[y + 4], E = p[y + 5], T = p[y + 6], C = p[y + 7], H = p[y + 8], b = p[y + 9], N = p[y + 10], v = p[y + 11], x = p[y + 12], D = p[y + 13], z = p[y + 14], R = p[y + 15], M = w[0], O = w[1], L = w[2], V = w[3];
|
|
15123
|
+
M = d(M, O, L, V, A, 7, l[0]), V = d(V, M, O, L, $, 12, l[1]), L = d(L, V, M, O, F, 17, l[2]), O = d(O, L, V, M, Y, 22, l[3]), M = d(M, O, L, V, G, 7, l[4]), V = d(V, M, O, L, E, 12, l[5]), L = d(L, V, M, O, T, 17, l[6]), O = d(O, L, V, M, C, 22, l[7]), M = d(M, O, L, V, H, 7, l[8]), V = d(V, M, O, L, b, 12, l[9]), L = d(L, V, M, O, N, 17, l[10]), O = d(O, L, V, M, v, 22, l[11]), M = d(M, O, L, V, x, 7, l[12]), V = d(V, M, O, L, D, 12, l[13]), L = d(L, V, M, O, z, 17, l[14]), O = d(O, L, V, M, R, 22, l[15]), M = f(M, O, L, V, $, 5, l[16]), V = f(V, M, O, L, T, 9, l[17]), L = f(L, V, M, O, v, 14, l[18]), O = f(O, L, V, M, A, 20, l[19]), M = f(M, O, L, V, E, 5, l[20]), V = f(V, M, O, L, N, 9, l[21]), L = f(L, V, M, O, R, 14, l[22]), O = f(O, L, V, M, G, 20, l[23]), M = f(M, O, L, V, b, 5, l[24]), V = f(V, M, O, L, z, 9, l[25]), L = f(L, V, M, O, Y, 14, l[26]), O = f(O, L, V, M, H, 20, l[27]), M = f(M, O, L, V, D, 5, l[28]), V = f(V, M, O, L, F, 9, l[29]), L = f(L, V, M, O, C, 14, l[30]), O = f(O, L, V, M, x, 20, l[31]), M = h(M, O, L, V, E, 4, l[32]), V = h(V, M, O, L, H, 11, l[33]), L = h(L, V, M, O, v, 16, l[34]), O = h(O, L, V, M, z, 23, l[35]), M = h(M, O, L, V, $, 4, l[36]), V = h(V, M, O, L, G, 11, l[37]), L = h(L, V, M, O, C, 16, l[38]), O = h(O, L, V, M, N, 23, l[39]), M = h(M, O, L, V, D, 4, l[40]), V = h(V, M, O, L, A, 11, l[41]), L = h(L, V, M, O, Y, 16, l[42]), O = h(O, L, V, M, T, 23, l[43]), M = h(M, O, L, V, b, 4, l[44]), V = h(V, M, O, L, x, 11, l[45]), L = h(L, V, M, O, R, 16, l[46]), O = h(O, L, V, M, F, 23, l[47]), M = m(M, O, L, V, A, 6, l[48]), V = m(V, M, O, L, C, 10, l[49]), L = m(L, V, M, O, z, 15, l[50]), O = m(O, L, V, M, E, 21, l[51]), M = m(M, O, L, V, x, 6, l[52]), V = m(V, M, O, L, Y, 10, l[53]), L = m(L, V, M, O, N, 15, l[54]), O = m(O, L, V, M, $, 21, l[55]), M = m(M, O, L, V, H, 6, l[56]), V = m(V, M, O, L, R, 10, l[57]), L = m(L, V, M, O, T, 15, l[58]), O = m(O, L, V, M, D, 21, l[59]), M = m(M, O, L, V, G, 6, l[60]), V = m(V, M, O, L, v, 10, l[61]), L = m(L, V, M, O, F, 15, l[62]), O = m(O, L, V, M, b, 21, l[63]), w[0] = w[0] + M | 0, w[1] = w[1] + O | 0, w[2] = w[2] + L | 0, w[3] = w[3] + V | 0;
|
|
15124
15124
|
},
|
|
15125
15125
|
_doFinalize: function() {
|
|
15126
15126
|
var p = this._data, y = p.words, S = this._nDataBytes * 8, _ = p.sigBytes * 8;
|
|
15127
15127
|
y[_ >>> 5] |= 128 << 24 - _ % 32;
|
|
15128
15128
|
var g = o.floor(S / 4294967296), w = S;
|
|
15129
15129
|
y[(_ + 64 >>> 9 << 4) + 15] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360, y[(_ + 64 >>> 9 << 4) + 14] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, p.sigBytes = (y.length + 1) * 4, this._process();
|
|
15130
|
-
for (var
|
|
15130
|
+
for (var A = this._hash, $ = A.words, F = 0; F < 4; F++) {
|
|
15131
15131
|
var Y = $[F];
|
|
15132
15132
|
$[F] = (Y << 8 | Y >>> 24) & 16711935 | (Y << 24 | Y >>> 8) & 4278255360;
|
|
15133
15133
|
}
|
|
15134
|
-
return
|
|
15134
|
+
return A;
|
|
15135
15135
|
},
|
|
15136
15136
|
clone: function() {
|
|
15137
15137
|
var p = a.clone.call(this);
|
|
15138
15138
|
return p._hash = this._hash.clone(), p;
|
|
15139
15139
|
}
|
|
15140
15140
|
});
|
|
15141
|
-
function d(p, y, S, _, g, w,
|
|
15142
|
-
var $ = p + (y & S | ~y & _) + g +
|
|
15141
|
+
function d(p, y, S, _, g, w, A) {
|
|
15142
|
+
var $ = p + (y & S | ~y & _) + g + A;
|
|
15143
15143
|
return ($ << w | $ >>> 32 - w) + y;
|
|
15144
15144
|
}
|
|
15145
|
-
function f(p, y, S, _, g, w,
|
|
15146
|
-
var $ = p + (y & _ | S & ~_) + g +
|
|
15145
|
+
function f(p, y, S, _, g, w, A) {
|
|
15146
|
+
var $ = p + (y & _ | S & ~_) + g + A;
|
|
15147
15147
|
return ($ << w | $ >>> 32 - w) + y;
|
|
15148
15148
|
}
|
|
15149
|
-
function h(p, y, S, _, g, w,
|
|
15150
|
-
var $ = p + (y ^ S ^ _) + g +
|
|
15149
|
+
function h(p, y, S, _, g, w, A) {
|
|
15150
|
+
var $ = p + (y ^ S ^ _) + g + A;
|
|
15151
15151
|
return ($ << w | $ >>> 32 - w) + y;
|
|
15152
15152
|
}
|
|
15153
|
-
function m(p, y, S, _, g, w,
|
|
15154
|
-
var $ = p + (S ^ (y | ~_)) + g +
|
|
15153
|
+
function m(p, y, S, _, g, w, A) {
|
|
15154
|
+
var $ = p + (S ^ (y | ~_)) + g + A;
|
|
15155
15155
|
return ($ << w | $ >>> 32 - w) + y;
|
|
15156
15156
|
}
|
|
15157
15157
|
i.MD5 = a._createHelper(c), i.HmacMD5 = a._createHmacHelper(c);
|
|
@@ -15678,7 +15678,7 @@ function Lc() {
|
|
|
15678
15678
|
toString: function(E) {
|
|
15679
15679
|
return (E || this.formatter).stringify(this);
|
|
15680
15680
|
}
|
|
15681
|
-
}), w = i.format = {},
|
|
15681
|
+
}), w = i.format = {}, A = w.OpenSSL = {
|
|
15682
15682
|
/**
|
|
15683
15683
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
15684
15684
|
*
|
|
@@ -15720,7 +15720,7 @@ function Lc() {
|
|
|
15720
15720
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
15721
15721
|
*/
|
|
15722
15722
|
cfg: s.extend({
|
|
15723
|
-
format:
|
|
15723
|
+
format: A
|
|
15724
15724
|
}),
|
|
15725
15725
|
/**
|
|
15726
15726
|
* Encrypts a message.
|
|
@@ -15893,21 +15893,21 @@ function P0() {
|
|
|
15893
15893
|
(function() {
|
|
15894
15894
|
for (var g = [], w = 0; w < 256; w++)
|
|
15895
15895
|
w < 128 ? g[w] = w << 1 : g[w] = w << 1 ^ 283;
|
|
15896
|
-
for (var
|
|
15896
|
+
for (var A = 0, $ = 0, w = 0; w < 256; w++) {
|
|
15897
15897
|
var F = $ ^ $ << 1 ^ $ << 2 ^ $ << 3 ^ $ << 4;
|
|
15898
|
-
F = F >>> 8 ^ F & 255 ^ 99, a[
|
|
15899
|
-
var Y = g[
|
|
15900
|
-
l[
|
|
15901
|
-
var T = E * 16843009 ^ G * 65537 ^ Y * 257 ^
|
|
15902
|
-
h[F] = T << 24 | T >>> 8, m[F] = T << 16 | T >>> 16, p[F] = T << 8 | T >>> 24, y[F] = T,
|
|
15898
|
+
F = F >>> 8 ^ F & 255 ^ 99, a[A] = F, u[F] = A;
|
|
15899
|
+
var Y = g[A], G = g[Y], E = g[G], T = g[F] * 257 ^ F * 16843008;
|
|
15900
|
+
l[A] = T << 24 | T >>> 8, c[A] = T << 16 | T >>> 16, d[A] = T << 8 | T >>> 24, f[A] = T;
|
|
15901
|
+
var T = E * 16843009 ^ G * 65537 ^ Y * 257 ^ A * 16843008;
|
|
15902
|
+
h[F] = T << 24 | T >>> 8, m[F] = T << 16 | T >>> 16, p[F] = T << 8 | T >>> 24, y[F] = T, A ? (A = Y ^ g[g[g[E ^ Y]]], $ ^= g[g[$]]) : A = $ = 1;
|
|
15903
15903
|
}
|
|
15904
15904
|
})();
|
|
15905
15905
|
var S = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = s.AES = r.extend({
|
|
15906
15906
|
_doReset: function() {
|
|
15907
15907
|
var g;
|
|
15908
15908
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
15909
|
-
for (var w = this._keyPriorReset = this._key,
|
|
15910
|
-
E < $ ? G[E] =
|
|
15909
|
+
for (var w = this._keyPriorReset = this._key, A = w.words, $ = w.sigBytes / 4, F = this._nRounds = $ + 6, Y = (F + 1) * 4, G = this._keySchedule = [], E = 0; E < Y; E++)
|
|
15910
|
+
E < $ ? G[E] = A[E] : (g = G[E - 1], E % $ ? $ > 6 && E % $ == 4 && (g = a[g >>> 24] << 24 | a[g >>> 16 & 255] << 16 | a[g >>> 8 & 255] << 8 | a[g & 255]) : (g = g << 8 | g >>> 24, g = a[g >>> 24] << 24 | a[g >>> 16 & 255] << 16 | a[g >>> 8 & 255] << 8 | a[g & 255], g ^= S[E / $ | 0] << 24), G[E] = G[E - $] ^ g);
|
|
15911
15911
|
for (var T = this._invKeySchedule = [], C = 0; C < Y; C++) {
|
|
15912
15912
|
var E = Y - C;
|
|
15913
15913
|
if (C % 4)
|
|
@@ -15922,17 +15922,17 @@ function P0() {
|
|
|
15922
15922
|
this._doCryptBlock(g, w, this._keySchedule, l, c, d, f, a);
|
|
15923
15923
|
},
|
|
15924
15924
|
decryptBlock: function(g, w) {
|
|
15925
|
-
var
|
|
15926
|
-
g[w + 1] = g[w + 3], g[w + 3] =
|
|
15927
|
-
var
|
|
15928
|
-
g[w + 1] = g[w + 3], g[w + 3] =
|
|
15925
|
+
var A = g[w + 1];
|
|
15926
|
+
g[w + 1] = g[w + 3], g[w + 3] = A, this._doCryptBlock(g, w, this._invKeySchedule, h, m, p, y, u);
|
|
15927
|
+
var A = g[w + 1];
|
|
15928
|
+
g[w + 1] = g[w + 3], g[w + 3] = A;
|
|
15929
15929
|
},
|
|
15930
|
-
_doCryptBlock: function(g, w,
|
|
15931
|
-
for (var T = this._nRounds, C = g[w] ^
|
|
15932
|
-
var D = $[C >>> 24] ^ F[H >>> 16 & 255] ^ Y[b >>> 8 & 255] ^ G[N & 255] ^
|
|
15930
|
+
_doCryptBlock: function(g, w, A, $, F, Y, G, E) {
|
|
15931
|
+
for (var T = this._nRounds, C = g[w] ^ A[0], H = g[w + 1] ^ A[1], b = g[w + 2] ^ A[2], N = g[w + 3] ^ A[3], v = 4, x = 1; x < T; x++) {
|
|
15932
|
+
var D = $[C >>> 24] ^ F[H >>> 16 & 255] ^ Y[b >>> 8 & 255] ^ G[N & 255] ^ A[v++], z = $[H >>> 24] ^ F[b >>> 16 & 255] ^ Y[N >>> 8 & 255] ^ G[C & 255] ^ A[v++], R = $[b >>> 24] ^ F[N >>> 16 & 255] ^ Y[C >>> 8 & 255] ^ G[H & 255] ^ A[v++], M = $[N >>> 24] ^ F[C >>> 16 & 255] ^ Y[H >>> 8 & 255] ^ G[b & 255] ^ A[v++];
|
|
15933
15933
|
C = D, H = z, b = R, N = M;
|
|
15934
15934
|
}
|
|
15935
|
-
var D = (E[C >>> 24] << 24 | E[H >>> 16 & 255] << 16 | E[b >>> 8 & 255] << 8 | E[N & 255]) ^
|
|
15935
|
+
var D = (E[C >>> 24] << 24 | E[H >>> 16 & 255] << 16 | E[b >>> 8 & 255] << 8 | E[N & 255]) ^ A[v++], z = (E[H >>> 24] << 24 | E[b >>> 16 & 255] << 16 | E[N >>> 8 & 255] << 8 | E[C & 255]) ^ A[v++], R = (E[b >>> 24] << 24 | E[N >>> 16 & 255] << 16 | E[C >>> 8 & 255] << 8 | E[H & 255]) ^ A[v++], M = (E[N >>> 24] << 24 | E[C >>> 16 & 255] << 16 | E[H >>> 8 & 255] << 8 | E[b & 255]) ^ A[v++];
|
|
15936
15936
|
g[w] = D, g[w + 1] = z, g[w + 2] = R, g[w + 3] = M;
|
|
15937
15937
|
},
|
|
15938
15938
|
keySize: 256 / 32
|
|
@@ -15995,17 +15995,17 @@ function j0() {
|
|
|
15995
15995
|
this._hash = new s.init(l.slice(0));
|
|
15996
15996
|
},
|
|
15997
15997
|
_doProcessBlock: function(h, m) {
|
|
15998
|
-
for (var p = this._hash.words, y = p[0], S = p[1], _ = p[2], g = p[3], w = p[4],
|
|
15998
|
+
for (var p = this._hash.words, y = p[0], S = p[1], _ = p[2], g = p[3], w = p[4], A = p[5], $ = p[6], F = p[7], Y = 0; Y < 64; Y++) {
|
|
15999
15999
|
if (Y < 16)
|
|
16000
16000
|
d[Y] = h[m + Y] | 0;
|
|
16001
16001
|
else {
|
|
16002
16002
|
var G = d[Y - 15], E = (G << 25 | G >>> 7) ^ (G << 14 | G >>> 18) ^ G >>> 3, T = d[Y - 2], C = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
16003
16003
|
d[Y] = E + d[Y - 7] + C + d[Y - 16];
|
|
16004
16004
|
}
|
|
16005
|
-
var H = w &
|
|
16006
|
-
F = $, $ =
|
|
16005
|
+
var H = w & A ^ ~w & $, b = y & S ^ y & _ ^ S & _, N = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), v = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), x = F + v + H + c[Y] + d[Y], D = N + b;
|
|
16006
|
+
F = $, $ = A, A = w, w = g + x | 0, g = _, _ = S, S = y, y = x + D | 0;
|
|
16007
16007
|
}
|
|
16008
|
-
p[0] = p[0] + y | 0, p[1] = p[1] + S | 0, p[2] = p[2] + _ | 0, p[3] = p[3] + g | 0, p[4] = p[4] + w | 0, p[5] = p[5] +
|
|
16008
|
+
p[0] = p[0] + y | 0, p[1] = p[1] + S | 0, p[2] = p[2] + _ | 0, p[3] = p[3] + g | 0, p[4] = p[4] + w | 0, p[5] = p[5] + A | 0, p[6] = p[6] + $ | 0, p[7] = p[7] + F | 0;
|
|
16009
16009
|
},
|
|
16010
16010
|
_doFinalize: function() {
|
|
16011
16011
|
var h = this._data, m = h.words, p = this._nDataBytes * 8, y = h.sigBytes * 8;
|
|
@@ -16363,7 +16363,7 @@ function X0() {
|
|
|
16363
16363
|
]);
|
|
16364
16364
|
},
|
|
16365
16365
|
_doProcessBlock: function(m, p) {
|
|
16366
|
-
for (var y = this._hash.words, S = y[0], _ = y[1], g = y[2], w = y[3],
|
|
16366
|
+
for (var y = this._hash.words, S = y[0], _ = y[1], g = y[2], w = y[3], A = y[4], $ = y[5], F = y[6], Y = y[7], G = S.high, E = S.low, T = _.high, C = _.low, H = g.high, b = g.low, N = w.high, v = w.low, x = A.high, D = A.low, z = $.high, R = $.low, M = F.high, O = F.low, L = Y.high, V = Y.low, K = G, Q = E, X = T, te = C, se = H, ie = b, ge = N, re = v, ae = x, P = D, I = z, B = R, U = M, k = O, W = L, j = V, q = 0; q < 80; q++) {
|
|
16367
16367
|
var oe, ne, ye = f[q];
|
|
16368
16368
|
if (q < 16)
|
|
16369
16369
|
ne = ye.high = m[p + q * 2] | 0, oe = ye.low = m[p + q * 2 + 1] | 0;
|
|
@@ -16371,10 +16371,10 @@ function X0() {
|
|
|
16371
16371
|
var _e = f[q - 15], Ye = _e.high, Ue = _e.low, vt = (Ye >>> 1 | Ue << 31) ^ (Ye >>> 8 | Ue << 24) ^ Ye >>> 7, He = (Ue >>> 1 | Ye << 31) ^ (Ue >>> 8 | Ye << 24) ^ (Ue >>> 7 | Ye << 25), Bt = f[q - 2], Lt = Bt.high, Ft = Bt.low, Zi = (Lt >>> 19 | Ft << 13) ^ (Lt << 3 | Ft >>> 29) ^ Lt >>> 6, ws = (Ft >>> 19 | Lt << 13) ^ (Ft << 3 | Lt >>> 29) ^ (Ft >>> 6 | Lt << 26), xs = f[q - 7], ru = xs.high, su = xs.low, Cs = f[q - 16], au = Cs.high, Es = Cs.low;
|
|
16372
16372
|
oe = He + su, ne = vt + ru + (oe >>> 0 < He >>> 0 ? 1 : 0), oe = oe + ws, ne = ne + Zi + (oe >>> 0 < ws >>> 0 ? 1 : 0), oe = oe + Es, ne = ne + au + (oe >>> 0 < Es >>> 0 ? 1 : 0), ye.high = ne, ye.low = oe;
|
|
16373
16373
|
}
|
|
16374
|
-
var lu =
|
|
16375
|
-
W = U, j = k, U = I, k = B, I =
|
|
16374
|
+
var lu = ae & I ^ ~ae & U, Ss = P & B ^ ~P & k, cu = K & X ^ K & se ^ X & se, uu = Q & te ^ Q & ie ^ te & ie, du = (K >>> 28 | Q << 4) ^ (K << 30 | Q >>> 2) ^ (K << 25 | Q >>> 7), Ds = (Q >>> 28 | K << 4) ^ (Q << 30 | K >>> 2) ^ (Q << 25 | K >>> 7), fu = (ae >>> 14 | P << 18) ^ (ae >>> 18 | P << 14) ^ (ae << 23 | P >>> 9), hu = (P >>> 14 | ae << 18) ^ (P >>> 18 | ae << 14) ^ (P << 23 | ae >>> 9), Ns = d[q], gu = Ns.high, Ts = Ns.low, ct = j + hu, Qt = W + fu + (ct >>> 0 < j >>> 0 ? 1 : 0), ct = ct + Ss, Qt = Qt + lu + (ct >>> 0 < Ss >>> 0 ? 1 : 0), ct = ct + Ts, Qt = Qt + gu + (ct >>> 0 < Ts >>> 0 ? 1 : 0), ct = ct + oe, Qt = Qt + ne + (ct >>> 0 < oe >>> 0 ? 1 : 0), ks = Ds + uu, pu = du + cu + (ks >>> 0 < Ds >>> 0 ? 1 : 0);
|
|
16375
|
+
W = U, j = k, U = I, k = B, I = ae, B = P, P = re + ct | 0, ae = ge + Qt + (P >>> 0 < re >>> 0 ? 1 : 0) | 0, ge = se, re = ie, se = X, ie = te, X = K, te = Q, Q = ct + ks | 0, K = Qt + pu + (Q >>> 0 < ct >>> 0 ? 1 : 0) | 0;
|
|
16376
16376
|
}
|
|
16377
|
-
E = S.low = E + Q, S.high = G + K + (E >>> 0 < Q >>> 0 ? 1 : 0), C = _.low = C + te, _.high = T + X + (C >>> 0 < te >>> 0 ? 1 : 0), b = g.low = b +
|
|
16377
|
+
E = S.low = E + Q, S.high = G + K + (E >>> 0 < Q >>> 0 ? 1 : 0), C = _.low = C + te, _.high = T + X + (C >>> 0 < te >>> 0 ? 1 : 0), b = g.low = b + ie, g.high = H + se + (b >>> 0 < ie >>> 0 ? 1 : 0), v = w.low = v + re, w.high = N + ge + (v >>> 0 < re >>> 0 ? 1 : 0), D = A.low = D + P, A.high = x + ae + (D >>> 0 < P >>> 0 ? 1 : 0), R = $.low = R + B, $.high = z + I + (R >>> 0 < B >>> 0 ? 1 : 0), O = F.low = O + k, F.high = M + U + (O >>> 0 < k >>> 0 ? 1 : 0), V = Y.low = V + j, Y.high = L + W + (V >>> 0 < j >>> 0 ? 1 : 0);
|
|
16378
16378
|
},
|
|
16379
16379
|
_doFinalize: function() {
|
|
16380
16380
|
var m = this._data, p = m.words, y = this._nDataBytes * 8, S = m.sigBytes * 8;
|
|
@@ -16599,7 +16599,7 @@ function Qa(t, e, n) {
|
|
|
16599
16599
|
}
|
|
16600
16600
|
function Ln(t, e, n, o) {
|
|
16601
16601
|
for (var i = 0, r = 0, s = t.children; r < s.length; ) {
|
|
16602
|
-
if (s[r].style.display !== "none" && s[r] !==
|
|
16602
|
+
if (s[r].style.display !== "none" && s[r] !== xe.ghost && (o || s[r] !== xe.dragged) && Ct(s[r], n.draggable, t, !1)) {
|
|
16603
16603
|
if (i === e)
|
|
16604
16604
|
return s[r];
|
|
16605
16605
|
i++;
|
|
@@ -16609,7 +16609,7 @@ function Ln(t, e, n, o) {
|
|
|
16609
16609
|
return null;
|
|
16610
16610
|
}
|
|
16611
16611
|
function vs(t, e) {
|
|
16612
|
-
for (var n = t.lastElementChild; n && (n ===
|
|
16612
|
+
for (var n = t.lastElementChild; n && (n === xe.ghost || we(n, "display") === "none" || e && !Ai(n, e)); )
|
|
16613
16613
|
n = n.previousElementSibling;
|
|
16614
16614
|
return n || null;
|
|
16615
16615
|
}
|
|
@@ -16618,7 +16618,7 @@ function yt(t, e) {
|
|
|
16618
16618
|
if (!t || !t.parentNode)
|
|
16619
16619
|
return -1;
|
|
16620
16620
|
for (; t = t.previousElementSibling; )
|
|
16621
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !==
|
|
16621
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== xe.clone && (!e || Ai(t, e)) && n++;
|
|
16622
16622
|
return n;
|
|
16623
16623
|
}
|
|
16624
16624
|
function el(t) {
|
|
@@ -16701,7 +16701,7 @@ function ib() {
|
|
|
16701
16701
|
if (t = [], !!this.options.animation) {
|
|
16702
16702
|
var o = [].slice.call(this.el.children);
|
|
16703
16703
|
o.forEach(function(i) {
|
|
16704
|
-
if (!(we(i, "display") === "none" || i ===
|
|
16704
|
+
if (!(we(i, "display") === "none" || i === xe.ghost)) {
|
|
16705
16705
|
t.push({
|
|
16706
16706
|
target: i,
|
|
16707
16707
|
rect: Ke(i)
|
|
@@ -16826,7 +16826,7 @@ function ab(t) {
|
|
|
16826
16826
|
}
|
|
16827
16827
|
var lb = ["evt"], rt = function(e, n) {
|
|
16828
16828
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = K0(o, lb);
|
|
16829
|
-
No.pluginEvent.bind(
|
|
16829
|
+
No.pluginEvent.bind(xe)(e, n, Rt({
|
|
16830
16830
|
dragEl: ce,
|
|
16831
16831
|
parentEl: Ve,
|
|
16832
16832
|
ghostEl: Se,
|
|
@@ -16837,7 +16837,7 @@ var lb = ["evt"], rt = function(e, n) {
|
|
|
16837
16837
|
cloneHidden: rn,
|
|
16838
16838
|
dragStarted: qn,
|
|
16839
16839
|
putSortable: et,
|
|
16840
|
-
activeSortable:
|
|
16840
|
+
activeSortable: xe.active,
|
|
16841
16841
|
originalEvent: i,
|
|
16842
16842
|
oldIndex: Nn,
|
|
16843
16843
|
oldDraggableIndex: io,
|
|
@@ -16946,7 +16946,7 @@ var cn = function(e) {
|
|
|
16946
16946
|
}, fb = function(e) {
|
|
16947
16947
|
ce && ce.parentNode[st]._isOutsideThisEl(e.target);
|
|
16948
16948
|
};
|
|
16949
|
-
function
|
|
16949
|
+
function xe(t, e) {
|
|
16950
16950
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
16951
16951
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
16952
16952
|
this.el = t, this.options = e = Zt({}, e), t[st] = this;
|
|
@@ -16993,7 +16993,7 @@ function Ce(t, e) {
|
|
|
16993
16993
|
y: 0
|
|
16994
16994
|
},
|
|
16995
16995
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
16996
|
-
supportPointer:
|
|
16996
|
+
supportPointer: xe.supportPointer !== !1 && "PointerEvent" in window && (!no || ms),
|
|
16997
16997
|
emptyInsertThreshold: 5
|
|
16998
16998
|
};
|
|
16999
16999
|
No.initializePlugins(this, t, n);
|
|
@@ -17004,9 +17004,9 @@ function Ce(t, e) {
|
|
|
17004
17004
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
17005
17005
|
this.nativeDraggable = e.forceFallback ? !1 : cb, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? Me(t, "pointerdown", this._onTapStart) : (Me(t, "mousedown", this._onTapStart), Me(t, "touchstart", this._onTapStart)), this.nativeDraggable && (Me(t, "dragover", this), Me(t, "dragenter", this)), Oi.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Zt(this, ib());
|
|
17006
17006
|
}
|
|
17007
|
-
|
|
17007
|
+
xe.prototype = /** @lends Sortable.prototype */
|
|
17008
17008
|
{
|
|
17009
|
-
constructor:
|
|
17009
|
+
constructor: xe,
|
|
17010
17010
|
_isOutsideThisEl: function(e) {
|
|
17011
17011
|
!this.el.contains(e) && e !== this.el && (Cn = null);
|
|
17012
17012
|
},
|
|
@@ -17055,14 +17055,14 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17055
17055
|
var i = this, r = i.el, s = i.options, a = r.ownerDocument, u;
|
|
17056
17056
|
if (o && !ce && o.parentNode === r) {
|
|
17057
17057
|
var l = Ke(o);
|
|
17058
|
-
if (Le = r, ce = o, Ve = ce.parentNode, un = ce.nextSibling, hi = o, Ho = s.group,
|
|
17058
|
+
if (Le = r, ce = o, Ve = ce.parentNode, un = ce.nextSibling, hi = o, Ho = s.group, xe.dragged = ce, ln = {
|
|
17059
17059
|
target: ce,
|
|
17060
17060
|
clientX: (n || e).clientX,
|
|
17061
17061
|
clientY: (n || e).clientY
|
|
17062
17062
|
}, tl = ln.clientX - l.left, nl = ln.clientY - l.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, ce.style["will-change"] = "all", u = function() {
|
|
17063
17063
|
if (rt("delayEnded", i, {
|
|
17064
17064
|
evt: e
|
|
17065
|
-
}),
|
|
17065
|
+
}), xe.eventCanceled) {
|
|
17066
17066
|
i._onDrop();
|
|
17067
17067
|
return;
|
|
17068
17068
|
}
|
|
@@ -17076,7 +17076,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17076
17076
|
}), Me(a, "dragover", cn), Me(a, "mousemove", cn), Me(a, "touchmove", cn), s.supportPointer ? (Me(a, "pointerup", i._onDrop), !this.nativeDraggable && Me(a, "pointercancel", i._onDrop)) : (Me(a, "mouseup", i._onDrop), Me(a, "touchend", i._onDrop), Me(a, "touchcancel", i._onDrop)), Za && this.nativeDraggable && (this.options.touchStartThreshold = 4, ce.draggable = !0), rt("delayStart", this, {
|
|
17077
17077
|
evt: e
|
|
17078
17078
|
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Do || Jt))) {
|
|
17079
|
-
if (
|
|
17079
|
+
if (xe.eventCanceled) {
|
|
17080
17080
|
this._onDrop();
|
|
17081
17081
|
return;
|
|
17082
17082
|
}
|
|
@@ -17111,7 +17111,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17111
17111
|
evt: n
|
|
17112
17112
|
}), this.nativeDraggable && Me(document, "dragover", fb);
|
|
17113
17113
|
var o = this.options;
|
|
17114
|
-
!e && dt(ce, o.dragClass, !1), dt(ce, o.ghostClass, !0),
|
|
17114
|
+
!e && dt(ce, o.dragClass, !1), dt(ce, o.ghostClass, !0), xe.active = this, e && this._appendGhost(), ot({
|
|
17115
17115
|
sortable: this,
|
|
17116
17116
|
name: "start",
|
|
17117
17117
|
originalEvent: n
|
|
@@ -17144,7 +17144,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17144
17144
|
_onTouchMove: function(e) {
|
|
17145
17145
|
if (ln) {
|
|
17146
17146
|
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, s = Se && Mn(Se, !0), a = Se && s && s.a, u = Se && s && s.d, l = Lo && tt && el(tt), c = (r.clientX - ln.clientX + i.x) / (a || 1) + (l ? l[0] - vr[0] : 0) / (a || 1), d = (r.clientY - ln.clientY + i.y) / (u || 1) + (l ? l[1] - vr[1] : 0) / (u || 1);
|
|
17147
|
-
if (!
|
|
17147
|
+
if (!xe.active && !Dn) {
|
|
17148
17148
|
if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
|
|
17149
17149
|
return;
|
|
17150
17150
|
this._onDragStart(e, !0);
|
|
@@ -17172,19 +17172,19 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17172
17172
|
tt = tt.parentNode;
|
|
17173
17173
|
tt !== document.body && tt !== document.documentElement ? (tt === document && (tt = Ot()), n.top += tt.scrollTop, n.left += tt.scrollLeft) : tt = Ot(), vr = el(tt);
|
|
17174
17174
|
}
|
|
17175
|
-
Se = ce.cloneNode(!0), dt(Se, o.ghostClass, !1), dt(Se, o.fallbackClass, !0), dt(Se, o.dragClass, !0), we(Se, "transition", ""), we(Se, "transform", ""), we(Se, "box-sizing", "border-box"), we(Se, "margin", 0), we(Se, "top", n.top), we(Se, "left", n.left), we(Se, "width", n.width), we(Se, "height", n.height), we(Se, "opacity", "0.8"), we(Se, "position", Lo ? "absolute" : "fixed"), we(Se, "zIndex", "100000"), we(Se, "pointerEvents", "none"),
|
|
17175
|
+
Se = ce.cloneNode(!0), dt(Se, o.ghostClass, !1), dt(Se, o.fallbackClass, !0), dt(Se, o.dragClass, !0), we(Se, "transition", ""), we(Se, "transform", ""), we(Se, "box-sizing", "border-box"), we(Se, "margin", 0), we(Se, "top", n.top), we(Se, "left", n.left), we(Se, "width", n.width), we(Se, "height", n.height), we(Se, "opacity", "0.8"), we(Se, "position", Lo ? "absolute" : "fixed"), we(Se, "zIndex", "100000"), we(Se, "pointerEvents", "none"), xe.ghost = Se, e.appendChild(Se), we(Se, "transform-origin", tl / parseInt(Se.style.width) * 100 + "% " + nl / parseInt(Se.style.height) * 100 + "%");
|
|
17176
17176
|
}
|
|
17177
17177
|
},
|
|
17178
17178
|
_onDragStart: function(e, n) {
|
|
17179
17179
|
var o = this, i = e.dataTransfer, r = o.options;
|
|
17180
17180
|
if (rt("dragStart", this, {
|
|
17181
17181
|
evt: e
|
|
17182
|
-
}),
|
|
17182
|
+
}), xe.eventCanceled) {
|
|
17183
17183
|
this._onDrop();
|
|
17184
17184
|
return;
|
|
17185
17185
|
}
|
|
17186
|
-
rt("setupClone", this),
|
|
17187
|
-
rt("clone", o), !
|
|
17186
|
+
rt("setupClone", this), xe.eventCanceled || (Fe = Uc(ce), Fe.removeAttribute("id"), Fe.draggable = !1, Fe.style["will-change"] = "", this._hideClone(), dt(Fe, this.options.chosenClass, !1), xe.clone = Fe), o.cloneId = pi(function() {
|
|
17187
|
+
rt("clone", o), !xe.eventCanceled && (o.options.removeCloneOnHide || Le.insertBefore(Fe, ce), o._hideClone(), ot({
|
|
17188
17188
|
sortable: o,
|
|
17189
17189
|
name: "clone"
|
|
17190
17190
|
}));
|
|
@@ -17192,7 +17192,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17192
17192
|
},
|
|
17193
17193
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
17194
17194
|
_onDragOver: function(e) {
|
|
17195
|
-
var n = this.el, o = e.target, i, r, s, a = this.options, u = a.group, l =
|
|
17195
|
+
var n = this.el, o = e.target, i, r, s, a = this.options, u = a.group, l = xe.active, c = Ho === u, d = a.sort, f = et || l, h, m = this, p = !1;
|
|
17196
17196
|
if (jr) return;
|
|
17197
17197
|
function y(D, z) {
|
|
17198
17198
|
rt(D, m, Rt({
|
|
@@ -17218,7 +17218,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17218
17218
|
function _(D) {
|
|
17219
17219
|
return y("dragOverCompleted", {
|
|
17220
17220
|
insertion: D
|
|
17221
|
-
}), D && (c ? l._hideClone() : l._showClone(m), m !== f && (dt(ce, et ? et.options.ghostClass : l.options.ghostClass, !1), dt(ce, a.ghostClass, !0)), et !== m && m !==
|
|
17221
|
+
}), D && (c ? l._hideClone() : l._showClone(m), m !== f && (dt(ce, et ? et.options.ghostClass : l.options.ghostClass, !1), dt(ce, a.ghostClass, !0)), et !== m && m !== xe.active ? et = m : m === xe.active && et && (et = null), f === m && (m._ignoreWhileAnimating = o), m.animateAll(function() {
|
|
17222
17222
|
y("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
17223
17223
|
}), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (o === ce && !ce.animated || o === n && !o.animated) && (Cn = null), !a.dragoverBubble && !e.rootEl && o !== document && (ce.parentNode[st]._isOutsideThisEl(e.target), !D && cn(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), p = !0;
|
|
17224
17224
|
}
|
|
@@ -17232,13 +17232,13 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17232
17232
|
originalEvent: e
|
|
17233
17233
|
});
|
|
17234
17234
|
}
|
|
17235
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = Ct(o, a.draggable, n, !0), y("dragOver"),
|
|
17235
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = Ct(o, a.draggable, n, !0), y("dragOver"), xe.eventCanceled) return p;
|
|
17236
17236
|
if (ce.contains(e.target) || o.animated && o.animatingX && o.animatingY || m._ignoreWhileAnimating === o)
|
|
17237
17237
|
return _(!1);
|
|
17238
17238
|
if (Pi = !1, l && !a.disabled && (c ? d || (s = Ve !== Le) : et === this || (this.lastPutMode = Ho.checkPull(this, l, ce, e)) && u.checkPut(this, l, ce, e))) {
|
|
17239
|
-
if (h = this._getDirection(e, o) === "vertical", i = Ke(ce), y("dragOverValid"),
|
|
17239
|
+
if (h = this._getDirection(e, o) === "vertical", i = Ke(ce), y("dragOverValid"), xe.eventCanceled) return p;
|
|
17240
17240
|
if (s)
|
|
17241
|
-
return Ve = Le, S(), this._hideClone(), y("revert"),
|
|
17241
|
+
return Ve = Le, S(), this._hideClone(), y("revert"), xe.eventCanceled || (un ? Le.insertBefore(ce, un) : Le.appendChild(ce)), _(!0);
|
|
17242
17242
|
var w = vs(n, a.draggable);
|
|
17243
17243
|
if (!w || mb(e, h, this) && !w.animated) {
|
|
17244
17244
|
if (w === ce)
|
|
@@ -17246,11 +17246,11 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17246
17246
|
if (w && n === e.target && (o = w), o && (r = Ke(o)), Fo(Le, n, ce, i, o, r, e, !!o) !== !1)
|
|
17247
17247
|
return S(), w && w.nextSibling ? n.insertBefore(ce, w.nextSibling) : n.appendChild(ce), Ve = n, g(), _(!0);
|
|
17248
17248
|
} else if (w && pb(e, h, this)) {
|
|
17249
|
-
var
|
|
17250
|
-
if (
|
|
17249
|
+
var A = Ln(n, 0, a, !0);
|
|
17250
|
+
if (A === ce)
|
|
17251
17251
|
return _(!1);
|
|
17252
|
-
if (o =
|
|
17253
|
-
return S(), n.insertBefore(ce,
|
|
17252
|
+
if (o = A, r = Ke(o), Fo(Le, n, ce, i, o, r, e, !1) !== !1)
|
|
17253
|
+
return S(), n.insertBefore(ce, A), Ve = n, g(), _(!0);
|
|
17254
17254
|
} else if (o.parentNode === n) {
|
|
17255
17255
|
r = Ke(o);
|
|
17256
17256
|
var $ = 0, F, Y = ce.parentNode !== n, G = !ub(ce.animated && ce.toRect || i, o.animated && o.toRect || r, h), E = h ? "top" : "left", T = Qa(o, "top", "top") || Qa(ce, "top", "top"), C = T ? T.scrollTop : void 0;
|
|
@@ -17288,7 +17288,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17288
17288
|
var n = this.el, o = this.options;
|
|
17289
17289
|
if (ft = yt(ce), on = yt(ce, o.draggable), rt("drop", this, {
|
|
17290
17290
|
evt: e
|
|
17291
|
-
}), Ve = ce && ce.parentNode, ft = yt(ce), on = yt(ce, o.draggable),
|
|
17291
|
+
}), Ve = ce && ce.parentNode, ft = yt(ce), on = yt(ce, o.draggable), xe.eventCanceled) {
|
|
17292
17292
|
this._nulling();
|
|
17293
17293
|
return;
|
|
17294
17294
|
}
|
|
@@ -17331,7 +17331,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17331
17331
|
name: "sort",
|
|
17332
17332
|
toEl: Ve,
|
|
17333
17333
|
originalEvent: e
|
|
17334
|
-
})),
|
|
17334
|
+
})), xe.active && ((ft == null || ft === -1) && (ft = Nn, on = io), ot({
|
|
17335
17335
|
sortable: this,
|
|
17336
17336
|
name: "end",
|
|
17337
17337
|
toEl: Ve,
|
|
@@ -17339,7 +17339,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17339
17339
|
}), this.save()))), this._nulling();
|
|
17340
17340
|
},
|
|
17341
17341
|
_nulling: function() {
|
|
17342
|
-
rt("nulling", this), Le = ce = Ve = Se = un = Fe = hi = rn = ln = xt = qn = ft = on = Nn = io = Cn = ro = et = Ho =
|
|
17342
|
+
rt("nulling", this), Le = ce = Ve = Se = un = Fe = hi = rn = ln = xt = qn = ft = on = Nn = io = Cn = ro = et = Ho = xe.dragged = xe.ghost = xe.clone = xe.active = null;
|
|
17343
17343
|
var e = this.el;
|
|
17344
17344
|
zi.forEach(function(n) {
|
|
17345
17345
|
e.contains(n) && (n.checked = !0);
|
|
@@ -17423,7 +17423,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17423
17423
|
},
|
|
17424
17424
|
_hideClone: function() {
|
|
17425
17425
|
if (!rn) {
|
|
17426
|
-
if (rt("hideClone", this),
|
|
17426
|
+
if (rt("hideClone", this), xe.eventCanceled) return;
|
|
17427
17427
|
we(Fe, "display", "none"), this.options.removeCloneOnHide && Fe.parentNode && Fe.parentNode.removeChild(Fe), rn = !0;
|
|
17428
17428
|
}
|
|
17429
17429
|
},
|
|
@@ -17433,7 +17433,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
17433
17433
|
return;
|
|
17434
17434
|
}
|
|
17435
17435
|
if (rn) {
|
|
17436
|
-
if (rt("showClone", this),
|
|
17436
|
+
if (rt("showClone", this), xe.eventCanceled) return;
|
|
17437
17437
|
ce.parentNode == Le && !this.options.group.revertClone ? Le.insertBefore(Fe, ce) : un ? Le.insertBefore(Fe, un) : Le.appendChild(Fe), this.options.group.revertClone && this.animate(ce, Fe), we(Fe, "display", ""), rn = !1;
|
|
17438
17438
|
}
|
|
17439
17439
|
}
|
|
@@ -17497,9 +17497,9 @@ function Wr(t) {
|
|
|
17497
17497
|
return clearTimeout(t);
|
|
17498
17498
|
}
|
|
17499
17499
|
Ki && Me(document, "touchmove", function(t) {
|
|
17500
|
-
(
|
|
17500
|
+
(xe.active || Dn) && t.cancelable && t.preventDefault();
|
|
17501
17501
|
});
|
|
17502
|
-
|
|
17502
|
+
xe.utils = {
|
|
17503
17503
|
on: Me,
|
|
17504
17504
|
off: ke,
|
|
17505
17505
|
css: we,
|
|
@@ -17519,22 +17519,22 @@ Ce.utils = {
|
|
|
17519
17519
|
getChild: Ln,
|
|
17520
17520
|
expando: st
|
|
17521
17521
|
};
|
|
17522
|
-
|
|
17522
|
+
xe.get = function(t) {
|
|
17523
17523
|
return t[st];
|
|
17524
17524
|
};
|
|
17525
|
-
|
|
17525
|
+
xe.mount = function() {
|
|
17526
17526
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
17527
17527
|
e[n] = arguments[n];
|
|
17528
17528
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
17529
17529
|
if (!o.prototype || !o.prototype.constructor)
|
|
17530
17530
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
17531
|
-
o.utils && (
|
|
17531
|
+
o.utils && (xe.utils = Rt(Rt({}, xe.utils), o.utils)), No.mount(o);
|
|
17532
17532
|
});
|
|
17533
17533
|
};
|
|
17534
|
-
|
|
17535
|
-
return new
|
|
17534
|
+
xe.create = function(t, e) {
|
|
17535
|
+
return new xe(t, e);
|
|
17536
17536
|
};
|
|
17537
|
-
|
|
17537
|
+
xe.version = eb;
|
|
17538
17538
|
var Xe = [], Kn, Yr, Ur = !1, br, _r, Ri, Zn;
|
|
17539
17539
|
function wb() {
|
|
17540
17540
|
function t() {
|
|
@@ -17602,16 +17602,16 @@ var wr = Wc(function(t, e, n, o) {
|
|
|
17602
17602
|
Yr !== n && (Yr = n, mi(), Kn = e.scroll, c = e.scrollFn, Kn === !0 && (Kn = sn(n, !0)));
|
|
17603
17603
|
var d = 0, f = Kn;
|
|
17604
17604
|
do {
|
|
17605
|
-
var h = f, m = Ke(h), p = m.top, y = m.bottom, S = m.left, _ = m.right, g = m.width, w = m.height,
|
|
17606
|
-
h === u ? (
|
|
17607
|
-
var C =
|
|
17605
|
+
var h = f, m = Ke(h), p = m.top, y = m.bottom, S = m.left, _ = m.right, g = m.width, w = m.height, A = void 0, $ = void 0, F = h.scrollWidth, Y = h.scrollHeight, G = we(h), E = h.scrollLeft, T = h.scrollTop;
|
|
17606
|
+
h === u ? (A = g < F && (G.overflowX === "auto" || G.overflowX === "scroll" || G.overflowX === "visible"), $ = w < Y && (G.overflowY === "auto" || G.overflowY === "scroll" || G.overflowY === "visible")) : (A = g < F && (G.overflowX === "auto" || G.overflowX === "scroll"), $ = w < Y && (G.overflowY === "auto" || G.overflowY === "scroll"));
|
|
17607
|
+
var C = A && (Math.abs(_ - i) <= s && E + g < F) - (Math.abs(S - i) <= s && !!E), H = $ && (Math.abs(y - r) <= s && T + w < Y) - (Math.abs(p - r) <= s && !!T);
|
|
17608
17608
|
if (!Xe[d])
|
|
17609
17609
|
for (var b = 0; b <= d; b++)
|
|
17610
17610
|
Xe[b] || (Xe[b] = {});
|
|
17611
17611
|
(Xe[d].vx != C || Xe[d].vy != H || Xe[d].el !== h) && (Xe[d].el = h, Xe[d].vx = C, Xe[d].vy = H, clearInterval(Xe[d].pid), (C != 0 || H != 0) && (l = !0, Xe[d].pid = setInterval((function() {
|
|
17612
|
-
o && this.layer === 0 &&
|
|
17612
|
+
o && this.layer === 0 && xe.active._onTouchMove(Ri);
|
|
17613
17613
|
var N = Xe[this.layer].vy ? Xe[this.layer].vy * a : 0, v = Xe[this.layer].vx ? Xe[this.layer].vx * a : 0;
|
|
17614
|
-
typeof c == "function" && c.call(
|
|
17614
|
+
typeof c == "function" && c.call(xe.dragged.parentNode[st], v, N, t, Ri, Xe[this.layer].el) !== "continue" || Yc(Xe[this.layer].el, v, N);
|
|
17615
17615
|
}).bind({
|
|
17616
17616
|
layer: d
|
|
17617
17617
|
}), 24))), d++;
|
|
@@ -17661,10 +17661,10 @@ bs.prototype = {
|
|
|
17661
17661
|
Zt(bs, {
|
|
17662
17662
|
pluginName: "removeOnSpill"
|
|
17663
17663
|
});
|
|
17664
|
-
|
|
17665
|
-
|
|
17664
|
+
xe.mount(new wb());
|
|
17665
|
+
xe.mount(bs, ys);
|
|
17666
17666
|
const tu = (t, e, n, o, i, r, s, a) => {
|
|
17667
|
-
const u = de(), l = $n({}), c =
|
|
17667
|
+
const u = de(), l = $n({}), c = fe(() => {
|
|
17668
17668
|
const v = [];
|
|
17669
17669
|
return Object.keys(l).forEach((x) => {
|
|
17670
17670
|
const D = l[x];
|
|
@@ -17719,7 +17719,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17719
17719
|
return !1;
|
|
17720
17720
|
}, w = ({ name: v, type: x, dragType: D, isInput: z, componentName: R, runtimeType: M }, O, L, V, K = !1) => {
|
|
17721
17721
|
const Q = _(x);
|
|
17722
|
-
if (Q.id = An(), Q.span = 24, Q.componentType = x,
|
|
17722
|
+
if (Q.id = An(), Q.span = 24, Q.componentType = x, A(O, Q.componentType))
|
|
17723
17723
|
return;
|
|
17724
17724
|
g(O, V, Q, !0);
|
|
17725
17725
|
const X = {
|
|
@@ -17737,7 +17737,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17737
17737
|
groupId: V
|
|
17738
17738
|
};
|
|
17739
17739
|
return X.dragType === "container" && (X.children = []), l[X.id] = X, p(O).children?.splice(L, 0, X), X;
|
|
17740
|
-
},
|
|
17740
|
+
}, A = (v, x) => !!(p(v).config.componentType === "gridtable" && [
|
|
17741
17741
|
// 'gridtable',
|
|
17742
17742
|
"divider",
|
|
17743
17743
|
"label",
|
|
@@ -17862,7 +17862,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17862
17862
|
}
|
|
17863
17863
|
},
|
|
17864
17864
|
setup(t, { expose: e }) {
|
|
17865
|
-
const n = t, o =
|
|
17865
|
+
const n = t, o = fe(
|
|
17866
17866
|
() => n.tableList.map((l) => ({
|
|
17867
17867
|
label: l.comment ? `${l.name}(${l.comment})` : l.name,
|
|
17868
17868
|
value: l.name
|
|
@@ -18008,7 +18008,7 @@ const Sb = Ee({
|
|
|
18008
18008
|
}
|
|
18009
18009
|
},
|
|
18010
18010
|
setup(t) {
|
|
18011
|
-
const { t: e } = _s(), n =
|
|
18011
|
+
const { t: e } = _s(), n = fe(() => t.componentData.config?.notShowLabel ? "0px" : t.componentData.config?.labelWidth === void 0 && t.globalConfig.labelWidth !== void 0 ? `${t.globalConfig.labelWidth}px` : t.componentData.config?.labelWidth ? `${t.componentData.config?.labelWidth}px` : void 0), o = fe(() => {
|
|
18012
18012
|
const i = { ...t.componentData?.config };
|
|
18013
18013
|
return t.globalConfig.size === void 0 && (i.size = t.globalConfig.size), i.display = !0, i;
|
|
18014
18014
|
});
|
|
@@ -18032,8 +18032,8 @@ function Nb(t, e, n, o, i, r) {
|
|
|
18032
18032
|
label: t.t(t.componentData.config?.notShowLabel ? "" : t.componentData.config?.label || ""),
|
|
18033
18033
|
rules: t.componentData.config?.required ? [{ required: !0, message: "" }] : []
|
|
18034
18034
|
}, {
|
|
18035
|
-
default:
|
|
18036
|
-
|
|
18035
|
+
default: Ce(() => [
|
|
18036
|
+
he(s, {
|
|
18037
18037
|
type: t.componentData?.componentName || t.componentData?.type,
|
|
18038
18038
|
config: t.inputConfig,
|
|
18039
18039
|
modelValue: t.componentData?.config.defaultValue
|
|
@@ -18083,14 +18083,14 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18083
18083
|
for (let k = 0; k < u; k++)
|
|
18084
18084
|
a.value.push(k);
|
|
18085
18085
|
n.componentInit && (s.config = n.componentInit("form") || {});
|
|
18086
|
-
const l = de([]), c =
|
|
18086
|
+
const l = de([]), c = fe(
|
|
18087
18087
|
() => l.value.map((k) => ({
|
|
18088
18088
|
label: k.comment ? `${k.name}(${k.comment})` : k.name,
|
|
18089
18089
|
value: k.name
|
|
18090
18090
|
}))
|
|
18091
|
-
), d =
|
|
18091
|
+
), d = fe(() => {
|
|
18092
18092
|
if ($.value) {
|
|
18093
|
-
const k =
|
|
18093
|
+
const k = A.value.getFormData(!1);
|
|
18094
18094
|
if (k.table) {
|
|
18095
18095
|
const W = l.value.find((j) => j.name === k.table);
|
|
18096
18096
|
if (W)
|
|
@@ -18310,7 +18310,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18310
18310
|
const S = (k, W) => {
|
|
18311
18311
|
const { value: j } = W || {};
|
|
18312
18312
|
k.id === "componentType" && Y(j), $.value && n.componentConfigChange && (k.id === "field" && W.data?.coment && ($.value.config.label = W.data?.coment), n.componentConfigChange($.value.type, {
|
|
18313
|
-
configRef:
|
|
18313
|
+
configRef: A,
|
|
18314
18314
|
component: k,
|
|
18315
18315
|
configData: $.value.config,
|
|
18316
18316
|
...W
|
|
@@ -18318,19 +18318,19 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18318
18318
|
q.isInput && (q.config.table = j);
|
|
18319
18319
|
});
|
|
18320
18320
|
}, _ = (k, W) => {
|
|
18321
|
-
h[k]?.isInput && (n.notBindTable && (W.configData.csType ||
|
|
18321
|
+
h[k]?.isInput && (n.notBindTable && (W.configData.csType || A.value.setFormData({
|
|
18322
18322
|
main: {
|
|
18323
18323
|
csType: h[k]?.csType,
|
|
18324
18324
|
fieldLen: h[k]?.fieldLen
|
|
18325
18325
|
}
|
|
18326
|
-
})), c.value.length === 1 &&
|
|
18326
|
+
})), c.value.length === 1 && A.value.setFormData({
|
|
18327
18327
|
main: { table: c.value[0].value }
|
|
18328
|
-
})), n.componentConfigInit && n.componentConfigInit(k, { configRef:
|
|
18328
|
+
})), n.componentConfigInit && n.componentConfigInit(k, { configRef: A, ...W, notBindTable: n.notBindTable });
|
|
18329
18329
|
}, g = (k, W, j) => {
|
|
18330
18330
|
let q = !1;
|
|
18331
18331
|
const oe = h[k];
|
|
18332
18332
|
return W.container.type === "gridtable" ? (!W.configData.isSubTable || j) && (W.configData.isSubTable = !0, oe.isInput && (W.configData.table = W.container.config.table, W.configData.field = ""), q = !0) : W.configData.isSubTable && (q = !0, W.configData.isSubTable = !1, oe.isInput && (W.configData.table = "")), n.containerAddComponent && n.containerAddComponent(k, W), q;
|
|
18333
|
-
}, w = de(),
|
|
18333
|
+
}, w = de(), A = de(), {
|
|
18334
18334
|
activedComponent: $,
|
|
18335
18335
|
clearComponents: F,
|
|
18336
18336
|
changeComponent: Y,
|
|
@@ -18339,14 +18339,14 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18339
18339
|
designComponentList: T
|
|
18340
18340
|
} = tu(
|
|
18341
18341
|
w,
|
|
18342
|
-
|
|
18342
|
+
A,
|
|
18343
18343
|
s,
|
|
18344
18344
|
n.componentInit,
|
|
18345
18345
|
_,
|
|
18346
18346
|
y,
|
|
18347
18347
|
h,
|
|
18348
18348
|
g
|
|
18349
|
-
), C =
|
|
18349
|
+
), C = fe(
|
|
18350
18350
|
() => $.value ? `【${$.value.name}】` : ""
|
|
18351
18351
|
);
|
|
18352
18352
|
zt("dui-design-provide", {
|
|
@@ -18531,9 +18531,9 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18531
18531
|
const { formConfig: W, componentList: j } = h0(k);
|
|
18532
18532
|
O.formConfig = W, V(j);
|
|
18533
18533
|
});
|
|
18534
|
-
}, te = de(), se = de(),
|
|
18534
|
+
}, te = de(), se = de(), ie = () => {
|
|
18535
18535
|
te.value.open("快速添加组件");
|
|
18536
|
-
},
|
|
18536
|
+
}, ge = () => {
|
|
18537
18537
|
const { addList: k, table: W } = se.value?.ok() || {
|
|
18538
18538
|
addList: []
|
|
18539
18539
|
};
|
|
@@ -18550,7 +18550,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18550
18550
|
let j = $.value;
|
|
18551
18551
|
$.value.config.isSubTable && (j = G[$.value.containerId]), j.config.table = W, (j.children || []).forEach((q) => {
|
|
18552
18552
|
q.isInput && (q.config.table = W);
|
|
18553
|
-
}),
|
|
18553
|
+
}), A.value.setFormData({
|
|
18554
18554
|
main: { table: W }
|
|
18555
18555
|
});
|
|
18556
18556
|
}
|
|
@@ -18563,7 +18563,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18563
18563
|
}, E(q);
|
|
18564
18564
|
}), te.value.close();
|
|
18565
18565
|
}
|
|
18566
|
-
},
|
|
18566
|
+
}, re = () => {
|
|
18567
18567
|
se.value?.closed();
|
|
18568
18568
|
};
|
|
18569
18569
|
return e({
|
|
@@ -18577,32 +18577,32 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18577
18577
|
}), (k, W) => {
|
|
18578
18578
|
const j = De("j-icon"), q = De("d-drag-tool"), oe = De("el-collapse-item"), ne = De("el-collapse"), ye = De("j-button"), _e = De("d-drag-form-list"), Ye = De("el-row"), Ue = De("d-drag-container"), vt = De("j-form"), He = De("j-layer");
|
|
18579
18579
|
return ee(), ue("div", Tb, [
|
|
18580
|
-
|
|
18581
|
-
W[1] || (W[1] =
|
|
18582
|
-
|
|
18583
|
-
|
|
18580
|
+
le("div", kb, [
|
|
18581
|
+
W[1] || (W[1] = le("div", { class: "d-form-design-panel-title" }, "组件库", -1)),
|
|
18582
|
+
le("div", Ib, [
|
|
18583
|
+
he(ne, {
|
|
18584
18584
|
modelValue: a.value,
|
|
18585
18585
|
"onUpdate:modelValue": W[0] || (W[0] = (Bt) => a.value = Bt)
|
|
18586
18586
|
}, {
|
|
18587
|
-
default:
|
|
18587
|
+
default: Ce(() => [
|
|
18588
18588
|
(ee(!0), ue(Be, null, gt(t.components, (Bt, Lt) => (ee(), Te(oe, {
|
|
18589
18589
|
key: Lt,
|
|
18590
18590
|
title: Bt.name,
|
|
18591
18591
|
name: Lt
|
|
18592
18592
|
}, {
|
|
18593
|
-
default:
|
|
18593
|
+
default: Ce(() => [
|
|
18594
18594
|
(ee(!0), ue(Be, null, gt(Bt.children, (Ft, Zi) => (ee(), Te(q, {
|
|
18595
18595
|
key: Zi,
|
|
18596
18596
|
config: Ft
|
|
18597
18597
|
}, {
|
|
18598
|
-
default:
|
|
18599
|
-
|
|
18600
|
-
|
|
18598
|
+
default: Ce(() => [
|
|
18599
|
+
le("div", Mb, [
|
|
18600
|
+
he(j, {
|
|
18601
18601
|
class: "j-component-tool-icon",
|
|
18602
18602
|
icon: Ft.icon,
|
|
18603
18603
|
size: 14
|
|
18604
18604
|
}, null, 8, ["icon"]),
|
|
18605
|
-
|
|
18605
|
+
le("div", $b, lt(J(o)(Ft.name)), 1)
|
|
18606
18606
|
])
|
|
18607
18607
|
]),
|
|
18608
18608
|
_: 2
|
|
@@ -18615,40 +18615,40 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18615
18615
|
}, 8, ["modelValue"])
|
|
18616
18616
|
])
|
|
18617
18617
|
]),
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
ao(
|
|
18618
|
+
le("div", Ab, [
|
|
18619
|
+
le("div", Pb, [
|
|
18620
|
+
ao(he(ye, {
|
|
18621
18621
|
type: "primary",
|
|
18622
18622
|
label: "快速添加组件",
|
|
18623
|
-
onClick:
|
|
18623
|
+
onClick: ie
|
|
18624
18624
|
}, null, 512), [
|
|
18625
18625
|
[lo, !t.notBindTable]
|
|
18626
18626
|
]),
|
|
18627
|
-
|
|
18627
|
+
he(ye, {
|
|
18628
18628
|
type: "primary",
|
|
18629
18629
|
label: "清空",
|
|
18630
18630
|
onClick: H,
|
|
18631
18631
|
danger: ""
|
|
18632
18632
|
}),
|
|
18633
|
-
|
|
18633
|
+
he(ye, {
|
|
18634
18634
|
label: "预览",
|
|
18635
18635
|
onClick: X
|
|
18636
18636
|
})
|
|
18637
18637
|
]),
|
|
18638
|
-
|
|
18639
|
-
|
|
18638
|
+
le("div", Ob, [
|
|
18639
|
+
he(Ue, {
|
|
18640
18640
|
ref_key: "dragContainer",
|
|
18641
18641
|
ref: w,
|
|
18642
18642
|
class: "d-form-design-drag-container",
|
|
18643
18643
|
"is-component-container": !1,
|
|
18644
18644
|
"component-data": s
|
|
18645
18645
|
}, {
|
|
18646
|
-
default:
|
|
18646
|
+
default: Ce(() => [
|
|
18647
18647
|
!s.children || s.children.length === 0 ? (ee(), ue("div", zb, [...W[2] || (W[2] = [
|
|
18648
|
-
|
|
18648
|
+
le("div", null, "请从左侧拖拽组件到此处", -1)
|
|
18649
18649
|
])])) : (ee(), Te(Ye, { key: 1 }, {
|
|
18650
|
-
default:
|
|
18651
|
-
|
|
18650
|
+
default: Ce(() => [
|
|
18651
|
+
he(_e, {
|
|
18652
18652
|
"component-list": s.children,
|
|
18653
18653
|
"global-config": s.config
|
|
18654
18654
|
}, null, 8, ["component-list", "global-config"])
|
|
@@ -18660,12 +18660,12 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18660
18660
|
}, 8, ["component-data"])
|
|
18661
18661
|
])
|
|
18662
18662
|
]),
|
|
18663
|
-
ao(
|
|
18664
|
-
|
|
18665
|
-
|
|
18663
|
+
ao(le("div", Rb, [
|
|
18664
|
+
le("div", Hb, [
|
|
18665
|
+
le("span", Bb, lt(`${J(o)("属性配置")}${C.value}`), 1)
|
|
18666
18666
|
]),
|
|
18667
|
-
|
|
18668
|
-
|
|
18667
|
+
le("div", Lb, [
|
|
18668
|
+
he(vt, {
|
|
18669
18669
|
config: {
|
|
18670
18670
|
labelPosition: "top",
|
|
18671
18671
|
size: "small"
|
|
@@ -18673,14 +18673,14 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18673
18673
|
collapseAnimate: !1,
|
|
18674
18674
|
style: { padding: "0" },
|
|
18675
18675
|
ref_key: "configRef",
|
|
18676
|
-
ref:
|
|
18676
|
+
ref: A,
|
|
18677
18677
|
onChange: S
|
|
18678
18678
|
}, null, 512)
|
|
18679
18679
|
])
|
|
18680
18680
|
], 512), [
|
|
18681
18681
|
[lo, J($)]
|
|
18682
18682
|
]),
|
|
18683
|
-
|
|
18683
|
+
he(He, {
|
|
18684
18684
|
ref_key: "previewFormLayerRef",
|
|
18685
18685
|
ref: R,
|
|
18686
18686
|
width: O.width,
|
|
@@ -18688,8 +18688,8 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18688
18688
|
onOk: K,
|
|
18689
18689
|
onClosed: Q
|
|
18690
18690
|
}, {
|
|
18691
|
-
default:
|
|
18692
|
-
|
|
18691
|
+
default: Ce(() => [
|
|
18692
|
+
he(vt, {
|
|
18693
18693
|
config: O.formConfig,
|
|
18694
18694
|
"is-preview": !0,
|
|
18695
18695
|
ref_key: "previewFormRef",
|
|
@@ -18699,17 +18699,17 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18699
18699
|
]),
|
|
18700
18700
|
_: 1
|
|
18701
18701
|
}, 8, ["width", "height"]),
|
|
18702
|
-
|
|
18702
|
+
he(He, {
|
|
18703
18703
|
ref_key: "importFormLayerRef",
|
|
18704
18704
|
ref: te,
|
|
18705
18705
|
width: 800,
|
|
18706
18706
|
height: 600,
|
|
18707
18707
|
"btn-text": "确认",
|
|
18708
|
-
onOk:
|
|
18709
|
-
onClosed:
|
|
18708
|
+
onOk: ge,
|
|
18709
|
+
onClosed: re
|
|
18710
18710
|
}, {
|
|
18711
|
-
default:
|
|
18712
|
-
|
|
18711
|
+
default: Ce(() => [
|
|
18712
|
+
he(xb, {
|
|
18713
18713
|
"component-list": m,
|
|
18714
18714
|
"table-list": l.value,
|
|
18715
18715
|
ref_key: "importComponentRef",
|
|
@@ -18973,7 +18973,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18973
18973
|
u,
|
|
18974
18974
|
s,
|
|
18975
18975
|
o.containerAddComponent
|
|
18976
|
-
), S =
|
|
18976
|
+
), S = fe(
|
|
18977
18977
|
() => h.value ? `【${h.value.name}】` : ""
|
|
18978
18978
|
), _ = de([]), g = o.components.length;
|
|
18979
18979
|
for (let v = 0; v < g; v++)
|
|
@@ -18983,7 +18983,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18983
18983
|
});
|
|
18984
18984
|
const w = () => {
|
|
18985
18985
|
m();
|
|
18986
|
-
},
|
|
18986
|
+
}, A = () => {
|
|
18987
18987
|
o.componentInit && (r.config = o.componentInit("indexPage") || {}), m();
|
|
18988
18988
|
}, $ = () => (console.log("pValidate"), !0), F = () => rl(r.config, r.children || []), Y = (v) => {
|
|
18989
18989
|
const x = Wb(v, s);
|
|
@@ -19016,39 +19016,39 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19016
19016
|
});
|
|
19017
19017
|
};
|
|
19018
19018
|
return e({
|
|
19019
|
-
reset:
|
|
19019
|
+
reset: A,
|
|
19020
19020
|
validate: $,
|
|
19021
19021
|
getSchema: F,
|
|
19022
19022
|
setSchema: Y
|
|
19023
19023
|
}), (v, x) => {
|
|
19024
|
-
const D = De("j-icon"), z = De("d-drag-tool"), R = De("el-collapse-item"), M = De("el-collapse"), O = De("j-button"), L = De("el-tooltip"), V = De("el-divider"), K = De("el-empty"), Q = De("d-drag-index-list"), X = De("
|
|
19024
|
+
const D = De("j-icon"), z = De("d-drag-tool"), R = De("el-collapse-item"), M = De("el-collapse"), O = De("j-button"), L = De("el-tooltip"), V = De("el-divider"), K = De("el-empty"), Q = De("d-drag-index-list"), X = De("d-drag-container"), te = De("j-form"), se = De("j-page"), ie = De("j-layer");
|
|
19025
19025
|
return ee(), ue("div", Yb, [
|
|
19026
|
-
|
|
19027
|
-
x[1] || (x[1] =
|
|
19028
|
-
|
|
19029
|
-
|
|
19026
|
+
le("div", Ub, [
|
|
19027
|
+
x[1] || (x[1] = le("div", { class: "d-index-design-panel-title" }, "组件库", -1)),
|
|
19028
|
+
le("div", Xb, [
|
|
19029
|
+
he(M, {
|
|
19030
19030
|
modelValue: _.value,
|
|
19031
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
19031
|
+
"onUpdate:modelValue": x[0] || (x[0] = (ge) => _.value = ge)
|
|
19032
19032
|
}, {
|
|
19033
|
-
default:
|
|
19034
|
-
(ee(!0), ue(Be, null, gt(t.components, (
|
|
19035
|
-
key:
|
|
19036
|
-
title:
|
|
19037
|
-
name:
|
|
19033
|
+
default: Ce(() => [
|
|
19034
|
+
(ee(!0), ue(Be, null, gt(t.components, (ge, re) => (ee(), Te(R, {
|
|
19035
|
+
key: re,
|
|
19036
|
+
title: ge.name,
|
|
19037
|
+
name: re
|
|
19038
19038
|
}, {
|
|
19039
|
-
default:
|
|
19040
|
-
(ee(!0), ue(Be, null, gt(
|
|
19041
|
-
key:
|
|
19042
|
-
config:
|
|
19039
|
+
default: Ce(() => [
|
|
19040
|
+
(ee(!0), ue(Be, null, gt(ge.children, (ae, P) => (ee(), Te(z, {
|
|
19041
|
+
key: P,
|
|
19042
|
+
config: ae
|
|
19043
19043
|
}, {
|
|
19044
|
-
default:
|
|
19045
|
-
|
|
19046
|
-
|
|
19044
|
+
default: Ce(() => [
|
|
19045
|
+
le("div", qb, [
|
|
19046
|
+
he(D, {
|
|
19047
19047
|
class: "j-component-tool-icon",
|
|
19048
|
-
icon:
|
|
19048
|
+
icon: ae.icon,
|
|
19049
19049
|
size: 14
|
|
19050
19050
|
}, null, 8, ["icon"]),
|
|
19051
|
-
|
|
19051
|
+
le("div", Kb, lt(J(n)(ae.name)), 1)
|
|
19052
19052
|
])
|
|
19053
19053
|
]),
|
|
19054
19054
|
_: 2
|
|
@@ -19061,15 +19061,15 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19061
19061
|
}, 8, ["modelValue"])
|
|
19062
19062
|
])
|
|
19063
19063
|
]),
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
x[2] || (x[2] =
|
|
19067
|
-
|
|
19068
|
-
|
|
19064
|
+
le("div", Zb, [
|
|
19065
|
+
le("div", Jb, [
|
|
19066
|
+
x[2] || (x[2] = le("div", null, null, -1)),
|
|
19067
|
+
le("div", null, [
|
|
19068
|
+
he(L, {
|
|
19069
19069
|
content: J(n)("清空")
|
|
19070
19070
|
}, {
|
|
19071
|
-
default:
|
|
19072
|
-
|
|
19071
|
+
default: Ce(() => [
|
|
19072
|
+
he(O, {
|
|
19073
19073
|
danger: "",
|
|
19074
19074
|
type: "text",
|
|
19075
19075
|
onClick: w,
|
|
@@ -19078,12 +19078,12 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19078
19078
|
]),
|
|
19079
19079
|
_: 1
|
|
19080
19080
|
}, 8, ["content"]),
|
|
19081
|
-
|
|
19082
|
-
|
|
19081
|
+
he(V, { direction: "vertical" }),
|
|
19082
|
+
he(L, {
|
|
19083
19083
|
content: J(n)("预览")
|
|
19084
19084
|
}, {
|
|
19085
|
-
default:
|
|
19086
|
-
|
|
19085
|
+
default: Ce(() => [
|
|
19086
|
+
he(O, {
|
|
19087
19087
|
type: "text",
|
|
19088
19088
|
onClick: N,
|
|
19089
19089
|
icon: "mdi:play-circle-outline"
|
|
@@ -19093,40 +19093,36 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19093
19093
|
}, 8, ["content"])
|
|
19094
19094
|
])
|
|
19095
19095
|
]),
|
|
19096
|
-
|
|
19097
|
-
|
|
19096
|
+
le("div", Qb, [
|
|
19097
|
+
he(X, {
|
|
19098
19098
|
ref_key: "dragContainer",
|
|
19099
19099
|
ref: d,
|
|
19100
19100
|
class: "design-drag-container",
|
|
19101
19101
|
"is-component-container": !1,
|
|
19102
19102
|
"component-data": r
|
|
19103
19103
|
}, {
|
|
19104
|
-
default:
|
|
19104
|
+
default: Ce(() => [
|
|
19105
19105
|
!r.children || r.children.length === 0 ? (ee(), ue("div", e_, [
|
|
19106
|
-
|
|
19106
|
+
he(K, {
|
|
19107
19107
|
description: J(n)("请从左侧拖拽组件到此处"),
|
|
19108
19108
|
"image-size": 100
|
|
19109
19109
|
}, null, 8, ["description"])
|
|
19110
|
-
])) : (ee(), Te(
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
}, null, 8, ["component-list", "global-config"])
|
|
19116
|
-
]),
|
|
19117
|
-
_: 1
|
|
19118
|
-
}))
|
|
19110
|
+
])) : (ee(), Te(Q, {
|
|
19111
|
+
key: 1,
|
|
19112
|
+
"component-list": r.children,
|
|
19113
|
+
"global-config": r.config
|
|
19114
|
+
}, null, 8, ["component-list", "global-config"]))
|
|
19119
19115
|
]),
|
|
19120
19116
|
_: 1
|
|
19121
19117
|
}, 8, ["component-data"])
|
|
19122
19118
|
])
|
|
19123
19119
|
]),
|
|
19124
|
-
ao(
|
|
19125
|
-
|
|
19126
|
-
|
|
19120
|
+
ao(le("div", t_, [
|
|
19121
|
+
le("div", n_, [
|
|
19122
|
+
le("span", o_, lt(`${J(n)("属性配置")}${S.value}`), 1)
|
|
19127
19123
|
]),
|
|
19128
|
-
|
|
19129
|
-
|
|
19124
|
+
le("div", i_, [
|
|
19125
|
+
he(te, {
|
|
19130
19126
|
config: {
|
|
19131
19127
|
labelPosition: "top",
|
|
19132
19128
|
size: "small"
|
|
@@ -19141,15 +19137,15 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19141
19137
|
], 512), [
|
|
19142
19138
|
[lo, J(h) && u[J(h).type]]
|
|
19143
19139
|
]),
|
|
19144
|
-
|
|
19140
|
+
he(ie, {
|
|
19145
19141
|
ref_key: "previewLayerRef",
|
|
19146
19142
|
ref: G,
|
|
19147
19143
|
"has-btns": !1,
|
|
19148
19144
|
onOk: H,
|
|
19149
19145
|
onClosed: b
|
|
19150
19146
|
}, {
|
|
19151
|
-
default:
|
|
19152
|
-
|
|
19147
|
+
default: Ce(() => [
|
|
19148
|
+
he(se, {
|
|
19153
19149
|
ref_key: "previewRef",
|
|
19154
19150
|
ref: E
|
|
19155
19151
|
}, null, 512)
|