@a2simcode/ui 0.0.33 → 0.0.34
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/LICENSE +53 -53
- package/README.md +130 -130
- package/dist/simcode-ui.es.js +616 -620
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +22 -22
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as j, openBlock as b, createElementBlock as
|
|
1
|
+
import { defineComponent as ne, computed as j, openBlock as b, createElementBlock as L, mergeProps as _e, createVNode as J, unref as _, shallowRef as $t, ref as M, watch as Ee, withModifiers as Ke, normalizeClass as ae, createBlock as I, createCommentVNode as D, toDisplayString as he, renderSlot as Se, nextTick as Oe, inject as wt, provide as _a, resolveComponent as V, withCtx as N, resolveDynamicComponent as rt, getCurrentInstance as xt, render as ao, Fragment as Ce, renderList as $e, onMounted as Ve, createSlots as Yt, createTextVNode as jt, createElementVNode as R, useSlots as Dl, reactive as dn, onUnmounted as so, normalizeStyle as ke, watchEffect as Ma, readonly as Mu, getCurrentScope as hs, onScopeDispose as Nl, isRef as vs, warn as Au, toRef as ga, useAttrs as Bu, onBeforeUnmount as qt, Text as Iu, h as ms, markRaw as gl, toRefs as Pu, Transition as Lu, withDirectives as Dt, withKeys as Tn, vShow as Zn, isVNode as gs, resolveDirective as Aa, useTemplateRef as jn, useModel as jo, mergeModels as $o, toValue as Hl, normalizeProps as Ba, guardReactiveProps as Wl } from "vue";
|
|
2
2
|
import { getIcon as Kn, Icon as Pi } from "@iconify/vue";
|
|
3
3
|
import ys from "dayjs";
|
|
4
4
|
import Ou from "crypto-js/aes";
|
|
@@ -45,7 +45,7 @@ function wl(e) {
|
|
|
45
45
|
function Vd(e, t) {
|
|
46
46
|
return toString.call(e) === `[object ${t}]`;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function IC(e) {
|
|
49
49
|
return e !== null && Vd(e, "Object");
|
|
50
50
|
}
|
|
51
51
|
const un = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Mn = /* @__PURE__ */ ne({
|
|
@@ -71,7 +71,7 @@ const un = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
71
71
|
color: t.color,
|
|
72
72
|
icon: n.value
|
|
73
73
|
}));
|
|
74
|
-
return (a, l) => e.isDiv ? (b(),
|
|
74
|
+
return (a, l) => e.isDiv ? (b(), L("div", _e({ key: 0 }, a.$attrs, {
|
|
75
75
|
class: "j-icon jicon",
|
|
76
76
|
style: { height: `${e.size}px` }
|
|
77
77
|
}), [
|
|
@@ -81,7 +81,7 @@ const un = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
81
81
|
mode: "svg",
|
|
82
82
|
style: `transform:rotate(${e.rotate || 0}deg)`
|
|
83
83
|
}), null, 16, ["height", "width", "style"])
|
|
84
|
-
], 16)) : (b(),
|
|
84
|
+
], 16)) : (b(), L("span", _e({ key: 1 }, a.$attrs, { class: "jicon" }), [
|
|
85
85
|
J(_(Pi), _e(o.value, {
|
|
86
86
|
height: `${e.size}px`,
|
|
87
87
|
width: `${e.size}px`,
|
|
@@ -226,7 +226,7 @@ const un = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
226
226
|
{ immediate: !0 }
|
|
227
227
|
);
|
|
228
228
|
const u = j(() => o.label || "");
|
|
229
|
-
return t({ focus: r, blur: s }), (h, v) => (b(),
|
|
229
|
+
return t({ focus: r, blur: s }), (h, v) => (b(), L("button", {
|
|
230
230
|
ref_key: "buttonNodeRef",
|
|
231
231
|
ref: i,
|
|
232
232
|
type: "button",
|
|
@@ -265,7 +265,7 @@ const un = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
265
265
|
key: 1,
|
|
266
266
|
icon: e.icon
|
|
267
267
|
}, null, 8, ["icon"])) : D("", !0),
|
|
268
|
-
e.notLabel ? D("", !0) : (b(),
|
|
268
|
+
e.notLabel ? D("", !0) : (b(), L("div", Fd, he(u.value), 1)),
|
|
269
269
|
Se(h.$slots, "iconAfter")
|
|
270
270
|
], 10, zd));
|
|
271
271
|
}
|
|
@@ -348,10 +348,10 @@ function Hd(e, t, n) {
|
|
|
348
348
|
const qo = (e) => {
|
|
349
349
|
let t = parseFloat(e);
|
|
350
350
|
return isNaN(t) ? 0 : (t = Math.round(e * 100) / 100, t);
|
|
351
|
-
},
|
|
351
|
+
}, PC = function(e, t, n) {
|
|
352
352
|
const o = (e - 1) * t;
|
|
353
353
|
return o + t >= n.length ? n.slice(o, n.length) : n.slice(o, o + t);
|
|
354
|
-
},
|
|
354
|
+
}, LC = function(e, t) {
|
|
355
355
|
const n = (e.page - 1) * e.rows, o = n + e.rows >= t.length ? t.slice(n, t.length) : t.slice(n, n + e.rows);
|
|
356
356
|
return {
|
|
357
357
|
rows: o,
|
|
@@ -359,7 +359,7 @@ const qo = (e) => {
|
|
|
359
359
|
page: e.page,
|
|
360
360
|
records: o.length
|
|
361
361
|
};
|
|
362
|
-
},
|
|
362
|
+
}, OC = function(e) {
|
|
363
363
|
return e.filter(
|
|
364
364
|
(t, n, o) => (
|
|
365
365
|
// 当前元素,在原始数组中的第一个索引==当前索引值,否则返回当前元素
|
|
@@ -409,7 +409,7 @@ const qo = (e) => {
|
|
|
409
409
|
function Kd(e) {
|
|
410
410
|
return e == null || e === void 0 || e === "" ? "" : e === e.toUpperCase() ? e.split("_").map((o) => (o = o.toLowerCase(), o.slice(0, 1).toUpperCase() + o.slice(1))).join("") : e.slice(0, 1).toUpperCase() + e.slice(1);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function RC(e, t = !0) {
|
|
413
413
|
if (e == null || e === void 0 || e === "")
|
|
414
414
|
return "";
|
|
415
415
|
t && (e = Kd(e));
|
|
@@ -468,7 +468,7 @@ function Sl(e, t, n, o, a, l) {
|
|
|
468
468
|
)), i.push(r));
|
|
469
469
|
}), i;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function VC(e, t, n, o, a, l) {
|
|
472
472
|
if (e.length === 0 || !t && !e[0]._id)
|
|
473
473
|
return e;
|
|
474
474
|
const i = t || "_id";
|
|
@@ -509,7 +509,7 @@ const Ts = (e, t, n, o) => {
|
|
|
509
509
|
const s = i.children || [];
|
|
510
510
|
s.length > 0 && (r.children = [], js(r.children, s, n, o));
|
|
511
511
|
}
|
|
512
|
-
},
|
|
512
|
+
}, zC = (e, t, n) => {
|
|
513
513
|
const o = [];
|
|
514
514
|
return js(o, e, t || "value", n || "label"), o;
|
|
515
515
|
}, $s = (e, t, n, o = "", a) => {
|
|
@@ -713,7 +713,7 @@ class af {
|
|
|
713
713
|
return Jn.getInstance();
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
class
|
|
716
|
+
class FC {
|
|
717
717
|
static createMD5Hashing() {
|
|
718
718
|
return Yn.getInstance();
|
|
719
719
|
}
|
|
@@ -724,7 +724,7 @@ class DC {
|
|
|
724
724
|
return qn.getInstance();
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const DC = (e, t) => Ms(e, t).toString(wa);
|
|
728
728
|
function lf(e, t) {
|
|
729
729
|
function n() {
|
|
730
730
|
Oe(() => {
|
|
@@ -802,7 +802,7 @@ class As {
|
|
|
802
802
|
this.events.clear();
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
const
|
|
805
|
+
const NC = new As(), Mt = {
|
|
806
806
|
/** 应用相关注入(国际化等) */
|
|
807
807
|
APP_PROVIDE: "jcode_app_provide",
|
|
808
808
|
/** 表单相关注入 */
|
|
@@ -931,7 +931,7 @@ const Is = /* @__PURE__ */ ne({
|
|
|
931
931
|
h.value = Z?.name, o.value = Z?.width || 600, a.value = Z?.height || 400, l.value = Z?.hasBtns !== !1, i.value = Z?.hasSaveBtn !== !1, r.value = Z?.hasHeader !== !1, Z?.destroyOnClose !== !1 && (d.value = !0), v.value = Z?.config || {}, s.value = Z?.btnText || "保存", k = Z?.afterOk || null, $ = Z?.afterClose || null, w = Z?.afterCancel || null, n.value.open(Z.title, Z.type, Z.subtitle), Oe(async () => {
|
|
932
932
|
n.value.showLoading("加载中"), await x(Z.param || {});
|
|
933
933
|
});
|
|
934
|
-
},
|
|
934
|
+
}, P = async () => {
|
|
935
935
|
if (u.value?.ok) {
|
|
936
936
|
ko(!0);
|
|
937
937
|
const Z = await u.value.ok();
|
|
@@ -961,7 +961,7 @@ const Is = /* @__PURE__ */ ne({
|
|
|
961
961
|
"destroy-on-close": d.value,
|
|
962
962
|
"has-save-btn": i.value,
|
|
963
963
|
"has-header": r.value,
|
|
964
|
-
onOk:
|
|
964
|
+
onOk: P,
|
|
965
965
|
onClosed: A,
|
|
966
966
|
onCancel: K
|
|
967
967
|
}, {
|
|
@@ -1034,13 +1034,13 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1034
1034
|
size: e.isLink ? 0 : 8
|
|
1035
1035
|
}, {
|
|
1036
1036
|
default: N(() => [
|
|
1037
|
-
(b(!0),
|
|
1038
|
-
(b(!0),
|
|
1037
|
+
(b(!0), L(Ce, null, $e(n.value, (d, u) => (b(), L("div", _e({ key: u }, { ref_for: !0 }, l.$attrs), [
|
|
1038
|
+
(b(!0), L(Ce, null, $e(d, (h, v) => (b(), L(Ce, { key: v }, [
|
|
1039
1039
|
h.children?.length && h.children?.length > 0 ? (b(), I(c, { key: 0 }, {
|
|
1040
1040
|
dropdown: N(() => [
|
|
1041
1041
|
J(s, { direction: "vertical" }, {
|
|
1042
1042
|
default: N(() => [
|
|
1043
|
-
(b(!0),
|
|
1043
|
+
(b(!0), L(Ce, null, $e(h.children || [], (f) => (b(), I(r, _e({
|
|
1044
1044
|
key: f.id
|
|
1045
1045
|
}, { ref_for: !0 }, h.config, {
|
|
1046
1046
|
type: "text",
|
|
@@ -1283,7 +1283,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1283
1283
|
disabled: e.readonly
|
|
1284
1284
|
}, {
|
|
1285
1285
|
default: N(() => [
|
|
1286
|
-
e.isButton ? (b(!0),
|
|
1286
|
+
e.isButton ? (b(!0), L(Ce, { key: 0 }, $e(e.options, (u) => (b(), I(r, {
|
|
1287
1287
|
key: u.value,
|
|
1288
1288
|
value: u.value,
|
|
1289
1289
|
size: e.size
|
|
@@ -1292,7 +1292,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1292
1292
|
jt(he(u.label), 1)
|
|
1293
1293
|
]),
|
|
1294
1294
|
_: 2
|
|
1295
|
-
}, 1032, ["value", "size"]))), 128)) : (b(!0),
|
|
1295
|
+
}, 1032, ["value", "size"]))), 128)) : (b(!0), L(Ce, { key: 1 }, $e(e.options, (u, h) => (b(), I(c, {
|
|
1296
1296
|
key: u.value,
|
|
1297
1297
|
value: u.value,
|
|
1298
1298
|
size: e.size
|
|
@@ -1310,7 +1310,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1310
1310
|
jt(he(u.label), 1)
|
|
1311
1311
|
]),
|
|
1312
1312
|
_: 2
|
|
1313
|
-
}, 1032, ["color", "size"])) : (b(),
|
|
1313
|
+
}, 1032, ["color", "size"])) : (b(), L("span", kf, he(u.label), 1))
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 2
|
|
1316
1316
|
}, 1032, ["value", "size"]))), 128))
|
|
@@ -1422,12 +1422,12 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1422
1422
|
onChange: d
|
|
1423
1423
|
}), Yt({
|
|
1424
1424
|
default: N(() => [
|
|
1425
|
-
e.isGroup ? (b(!0),
|
|
1425
|
+
e.isGroup ? (b(!0), L(Ce, { key: 0 }, $e(c.value, (g) => (b(), I(p, {
|
|
1426
1426
|
key: g.label,
|
|
1427
1427
|
label: g.label
|
|
1428
1428
|
}, {
|
|
1429
1429
|
default: N(() => [
|
|
1430
|
-
(b(!0),
|
|
1430
|
+
(b(!0), L(Ce, null, $e(g.children, (y) => (b(), I(f, {
|
|
1431
1431
|
key: y.value,
|
|
1432
1432
|
label: y.label,
|
|
1433
1433
|
value: y.value || " ",
|
|
@@ -1447,7 +1447,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1447
1447
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
1448
1448
|
]),
|
|
1449
1449
|
_: 2
|
|
1450
|
-
}, 1032, ["label"]))), 128)) : (b(!0),
|
|
1450
|
+
}, 1032, ["label"]))), 128)) : (b(!0), L(Ce, { key: 1 }, $e(c.value, (g) => (b(), I(f, {
|
|
1451
1451
|
key: g.value,
|
|
1452
1452
|
label: g.label,
|
|
1453
1453
|
value: g.value + "",
|
|
@@ -1487,7 +1487,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1487
1487
|
jt(he(i.value), 1)
|
|
1488
1488
|
]),
|
|
1489
1489
|
_: 1
|
|
1490
|
-
}, 8, ["content"])) : (b(),
|
|
1490
|
+
}, 8, ["content"])) : (b(), L(Ce, { key: 1 }, [
|
|
1491
1491
|
jt(he(i.value), 1)
|
|
1492
1492
|
], 64))
|
|
1493
1493
|
])
|
|
@@ -1640,13 +1640,13 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
1640
1640
|
onChange: l
|
|
1641
1641
|
}, {
|
|
1642
1642
|
default: N(() => [
|
|
1643
|
-
e.type === "checkbox" ? (b(!0),
|
|
1643
|
+
e.type === "checkbox" ? (b(!0), L(Ce, { key: 0 }, $e(e.options, (u) => (b(), I(s, {
|
|
1644
1644
|
key: u.value,
|
|
1645
1645
|
value: u.value,
|
|
1646
1646
|
disabled: u.disabled,
|
|
1647
1647
|
size: e.size,
|
|
1648
1648
|
label: u.label
|
|
1649
|
-
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (b(!0),
|
|
1649
|
+
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (b(!0), L(Ce, { key: 1 }, $e(e.options, (u) => (b(), I(c, {
|
|
1650
1650
|
key: u.value,
|
|
1651
1651
|
class: ae({ "j-checkbox-notFillOrColor": !e.fill && !e.textColor }),
|
|
1652
1652
|
value: u.value,
|
|
@@ -2091,8 +2091,8 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2091
2091
|
break;
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
|
-
document.onmouseup = A, document.onmousemove =
|
|
2095
|
-
},
|
|
2094
|
+
document.onmouseup = A, document.onmousemove = P;
|
|
2095
|
+
}, P = (H) => {
|
|
2096
2096
|
if (u.isMove)
|
|
2097
2097
|
switch (u.type) {
|
|
2098
2098
|
case "left": {
|
|
@@ -2147,12 +2147,12 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2147
2147
|
}), Z.observe(o.value));
|
|
2148
2148
|
}), so(() => {
|
|
2149
2149
|
Z && Z.disconnect();
|
|
2150
|
-
}), (H, B) => (b(),
|
|
2150
|
+
}), (H, B) => (b(), L("div", {
|
|
2151
2151
|
ref_key: "layout",
|
|
2152
2152
|
ref: o,
|
|
2153
2153
|
class: ae(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
2154
2154
|
}, [
|
|
2155
|
-
m.value ? (b(),
|
|
2155
|
+
m.value ? (b(), L("div", {
|
|
2156
2156
|
key: 0,
|
|
2157
2157
|
class: "j-layout--left",
|
|
2158
2158
|
style: ke({ width: k.value })
|
|
@@ -2160,14 +2160,14 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2160
2160
|
R("div", Ff, [
|
|
2161
2161
|
Se(H.$slots, "left")
|
|
2162
2162
|
]),
|
|
2163
|
-
e.leftMove ? (b(),
|
|
2163
|
+
e.leftMove ? (b(), L("div", {
|
|
2164
2164
|
key: 0,
|
|
2165
2165
|
class: "j-layout--move",
|
|
2166
2166
|
onMousedown: B[0] || (B[0] = (C) => E("left", C))
|
|
2167
2167
|
}, null, 32)) : D("", !0)
|
|
2168
2168
|
], 4)) : D("", !0),
|
|
2169
|
-
d.value ? D("", !0) : (b(),
|
|
2170
|
-
y.value ? (b(),
|
|
2169
|
+
d.value ? D("", !0) : (b(), L("div", Df, [
|
|
2170
|
+
y.value ? (b(), L("div", {
|
|
2171
2171
|
key: 0,
|
|
2172
2172
|
class: "j-layout--top",
|
|
2173
2173
|
style: ke({ height: w.value })
|
|
@@ -2175,7 +2175,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2175
2175
|
R("div", Nf, [
|
|
2176
2176
|
Se(H.$slots, "top")
|
|
2177
2177
|
]),
|
|
2178
|
-
e.topMove ? (b(),
|
|
2178
|
+
e.topMove ? (b(), L("div", {
|
|
2179
2179
|
key: 0,
|
|
2180
2180
|
class: "j-layout--move",
|
|
2181
2181
|
onMousedown: B[1] || (B[1] = (C) => E("top", C))
|
|
@@ -2189,7 +2189,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2189
2189
|
}, [
|
|
2190
2190
|
Se(H.$slots, "default")
|
|
2191
2191
|
], 4),
|
|
2192
|
-
S.value ? (b(),
|
|
2192
|
+
S.value ? (b(), L("div", {
|
|
2193
2193
|
key: 1,
|
|
2194
2194
|
class: "j-layout--bottom",
|
|
2195
2195
|
style: ke({ height: T.value })
|
|
@@ -2197,14 +2197,14 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2197
2197
|
R("div", Hf, [
|
|
2198
2198
|
Se(H.$slots, "bottom")
|
|
2199
2199
|
]),
|
|
2200
|
-
e.bottomMove ? (b(),
|
|
2200
|
+
e.bottomMove ? (b(), L("div", {
|
|
2201
2201
|
key: 0,
|
|
2202
2202
|
class: "j-layout--move",
|
|
2203
2203
|
onMousedown: B[2] || (B[2] = (C) => E("bottom", C))
|
|
2204
2204
|
}, null, 32)) : D("", !0)
|
|
2205
2205
|
], 4)) : D("", !0)
|
|
2206
2206
|
])),
|
|
2207
|
-
g.value ? (b(),
|
|
2207
|
+
g.value ? (b(), L("div", {
|
|
2208
2208
|
key: 2,
|
|
2209
2209
|
class: "j-layout--right",
|
|
2210
2210
|
style: ke({ width: $.value })
|
|
@@ -2212,7 +2212,7 @@ const yf = ve(Is), bf = /* @__PURE__ */ ne({
|
|
|
2212
2212
|
R("div", Wf, [
|
|
2213
2213
|
Se(H.$slots, "right")
|
|
2214
2214
|
]),
|
|
2215
|
-
e.rightMove ? (b(),
|
|
2215
|
+
e.rightMove ? (b(), L("div", {
|
|
2216
2216
|
key: 0,
|
|
2217
2217
|
class: "j-layout--move",
|
|
2218
2218
|
onMousedown: B[3] || (B[3] = (C) => E("right", C))
|
|
@@ -3232,7 +3232,7 @@ const yv = (e) => {
|
|
|
3232
3232
|
"--color": l
|
|
3233
3233
|
};
|
|
3234
3234
|
});
|
|
3235
|
-
return (a, l) => (b(),
|
|
3235
|
+
return (a, l) => (b(), L(
|
|
3236
3236
|
"i",
|
|
3237
3237
|
_e({
|
|
3238
3238
|
class: _(n).b(),
|
|
@@ -3251,7 +3251,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3251
3251
|
name: "CircleCheck",
|
|
3252
3252
|
__name: "circle-check",
|
|
3253
3253
|
setup(e) {
|
|
3254
|
-
return (t, n) => (b(),
|
|
3254
|
+
return (t, n) => (b(), L("svg", {
|
|
3255
3255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3256
3256
|
viewBox: "0 0 1024 1024"
|
|
3257
3257
|
}, [
|
|
@@ -3269,7 +3269,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3269
3269
|
name: "CircleCloseFilled",
|
|
3270
3270
|
__name: "circle-close-filled",
|
|
3271
3271
|
setup(e) {
|
|
3272
|
-
return (t, n) => (b(),
|
|
3272
|
+
return (t, n) => (b(), L("svg", {
|
|
3273
3273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3274
3274
|
viewBox: "0 0 1024 1024"
|
|
3275
3275
|
}, [
|
|
@@ -3283,7 +3283,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3283
3283
|
name: "CircleClose",
|
|
3284
3284
|
__name: "circle-close",
|
|
3285
3285
|
setup(e) {
|
|
3286
|
-
return (t, n) => (b(),
|
|
3286
|
+
return (t, n) => (b(), L("svg", {
|
|
3287
3287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3288
3288
|
viewBox: "0 0 1024 1024"
|
|
3289
3289
|
}, [
|
|
@@ -3301,7 +3301,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3301
3301
|
name: "Close",
|
|
3302
3302
|
__name: "close",
|
|
3303
3303
|
setup(e) {
|
|
3304
|
-
return (t, n) => (b(),
|
|
3304
|
+
return (t, n) => (b(), L("svg", {
|
|
3305
3305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3306
3306
|
viewBox: "0 0 1024 1024"
|
|
3307
3307
|
}, [
|
|
@@ -3315,7 +3315,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3315
3315
|
name: "Hide",
|
|
3316
3316
|
__name: "hide",
|
|
3317
3317
|
setup(e) {
|
|
3318
|
-
return (t, n) => (b(),
|
|
3318
|
+
return (t, n) => (b(), L("svg", {
|
|
3319
3319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3320
3320
|
viewBox: "0 0 1024 1024"
|
|
3321
3321
|
}, [
|
|
@@ -3333,7 +3333,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3333
3333
|
name: "InfoFilled",
|
|
3334
3334
|
__name: "info-filled",
|
|
3335
3335
|
setup(e) {
|
|
3336
|
-
return (t, n) => (b(),
|
|
3336
|
+
return (t, n) => (b(), L("svg", {
|
|
3337
3337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3338
3338
|
viewBox: "0 0 1024 1024"
|
|
3339
3339
|
}, [
|
|
@@ -3347,7 +3347,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3347
3347
|
name: "Loading",
|
|
3348
3348
|
__name: "loading",
|
|
3349
3349
|
setup(e) {
|
|
3350
|
-
return (t, n) => (b(),
|
|
3350
|
+
return (t, n) => (b(), L("svg", {
|
|
3351
3351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3352
3352
|
viewBox: "0 0 1024 1024"
|
|
3353
3353
|
}, [
|
|
@@ -3361,7 +3361,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3361
3361
|
name: "SuccessFilled",
|
|
3362
3362
|
__name: "success-filled",
|
|
3363
3363
|
setup(e) {
|
|
3364
|
-
return (t, n) => (b(),
|
|
3364
|
+
return (t, n) => (b(), L("svg", {
|
|
3365
3365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3366
3366
|
viewBox: "0 0 1024 1024"
|
|
3367
3367
|
}, [
|
|
@@ -3375,7 +3375,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3375
3375
|
name: "View",
|
|
3376
3376
|
__name: "view",
|
|
3377
3377
|
setup(e) {
|
|
3378
|
-
return (t, n) => (b(),
|
|
3378
|
+
return (t, n) => (b(), L("svg", {
|
|
3379
3379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3380
3380
|
viewBox: "0 0 1024 1024"
|
|
3381
3381
|
}, [
|
|
@@ -3389,7 +3389,7 @@ var Cv = /* @__PURE__ */ ne({
|
|
|
3389
3389
|
name: "WarningFilled",
|
|
3390
3390
|
__name: "warning-filled",
|
|
3391
3391
|
setup(e) {
|
|
3392
|
-
return (t, n) => (b(),
|
|
3392
|
+
return (t, n) => (b(), L("svg", {
|
|
3393
3393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3394
3394
|
viewBox: "0 0 1024 1024"
|
|
3395
3395
|
}, [
|
|
@@ -3838,7 +3838,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
3838
3838
|
p.is("focus", E.value)
|
|
3839
3839
|
]), { form: d, formItem: u } = uc(), { inputId: h } = Qv(o, {
|
|
3840
3840
|
formItemContext: u
|
|
3841
|
-
}), v = fc(), f = ai(), p = Gt("input"), m = Gt("textarea"), g = $t(), y = $t(), S = M(!1), k = M(!1), $ = M(), w = $t(o.inputStyle), T = j(() => g.value || y.value), { wrapperRef: x, isFocused: E, handleFocus:
|
|
3841
|
+
}), v = fc(), f = ai(), p = Gt("input"), m = Gt("textarea"), g = $t(), y = $t(), S = M(!1), k = M(!1), $ = M(), w = $t(o.inputStyle), T = j(() => g.value || y.value), { wrapperRef: x, isFocused: E, handleFocus: P, handleBlur: A } = om(
|
|
3842
3842
|
T,
|
|
3843
3843
|
{
|
|
3844
3844
|
disabled: f,
|
|
@@ -3987,7 +3987,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
3987
3987
|
select: me,
|
|
3988
3988
|
clear: je,
|
|
3989
3989
|
resizeTextarea: Me
|
|
3990
|
-
}), (F, ie) => (b(),
|
|
3990
|
+
}), (F, ie) => (b(), L(
|
|
3991
3991
|
"div",
|
|
3992
3992
|
{
|
|
3993
3993
|
class: ae([
|
|
@@ -4003,12 +4003,12 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4003
4003
|
},
|
|
4004
4004
|
[
|
|
4005
4005
|
D(" input "),
|
|
4006
|
-
F.type !== "textarea" ? (b(),
|
|
4006
|
+
F.type !== "textarea" ? (b(), L(
|
|
4007
4007
|
Ce,
|
|
4008
4008
|
{ key: 0 },
|
|
4009
4009
|
[
|
|
4010
4010
|
D(" prepend slot "),
|
|
4011
|
-
F.$slots.prepend ? (b(),
|
|
4011
|
+
F.$slots.prepend ? (b(), L(
|
|
4012
4012
|
"div",
|
|
4013
4013
|
{
|
|
4014
4014
|
key: 0,
|
|
@@ -4028,7 +4028,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4028
4028
|
},
|
|
4029
4029
|
[
|
|
4030
4030
|
D(" prefix slot "),
|
|
4031
|
-
F.$slots.prefix || F.prefixIcon ? (b(),
|
|
4031
|
+
F.$slots.prefix || F.prefixIcon ? (b(), L(
|
|
4032
4032
|
"span",
|
|
4033
4033
|
{
|
|
4034
4034
|
key: 0,
|
|
@@ -4086,7 +4086,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4086
4086
|
onKeydown: oe
|
|
4087
4087
|
}), null, 16, rm),
|
|
4088
4088
|
D(" suffix slot "),
|
|
4089
|
-
ee.value ? (b(),
|
|
4089
|
+
ee.value ? (b(), L(
|
|
4090
4090
|
"span",
|
|
4091
4091
|
{
|
|
4092
4092
|
key: 1,
|
|
@@ -4099,7 +4099,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4099
4099
|
class: ae(_(p).e("suffix-inner"))
|
|
4100
4100
|
},
|
|
4101
4101
|
[
|
|
4102
|
-
!Q.value || !se.value || !pe.value ? (b(),
|
|
4102
|
+
!Q.value || !se.value || !pe.value ? (b(), L(
|
|
4103
4103
|
Ce,
|
|
4104
4104
|
{ key: 0 },
|
|
4105
4105
|
[
|
|
@@ -4139,7 +4139,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4139
4139
|
]),
|
|
4140
4140
|
_: 1
|
|
4141
4141
|
}, 8, ["class", "onMousedown", "onMouseup"])) : D("v-if", !0),
|
|
4142
|
-
pe.value ? (b(),
|
|
4142
|
+
pe.value ? (b(), L(
|
|
4143
4143
|
"span",
|
|
4144
4144
|
{
|
|
4145
4145
|
key: 3,
|
|
@@ -4183,7 +4183,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4183
4183
|
2
|
|
4184
4184
|
),
|
|
4185
4185
|
D(" append slot "),
|
|
4186
|
-
F.$slots.append ? (b(),
|
|
4186
|
+
F.$slots.append ? (b(), L(
|
|
4187
4187
|
"div",
|
|
4188
4188
|
{
|
|
4189
4189
|
key: 1,
|
|
@@ -4196,7 +4196,7 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4196
4196
|
)) : D("v-if", !0)
|
|
4197
4197
|
],
|
|
4198
4198
|
64
|
|
4199
|
-
)) : (b(),
|
|
4199
|
+
)) : (b(), L(
|
|
4200
4200
|
Ce,
|
|
4201
4201
|
{ key: 1 },
|
|
4202
4202
|
[
|
|
@@ -4225,12 +4225,12 @@ const rm = ["id", "name", "minlength", "maxlength", "type", "disabled", "readonl
|
|
|
4225
4225
|
onCompositionupdate: ie[4] || (ie[4] = (...Y) => _(ut) && _(ut)(...Y)),
|
|
4226
4226
|
onCompositionend: ie[5] || (ie[5] = (...Y) => _(ot) && _(ot)(...Y)),
|
|
4227
4227
|
onInput: Re,
|
|
4228
|
-
onFocus: ie[6] || (ie[6] = (...Y) => _(
|
|
4228
|
+
onFocus: ie[6] || (ie[6] = (...Y) => _(P) && _(P)(...Y)),
|
|
4229
4229
|
onBlur: ie[7] || (ie[7] = (...Y) => _(A) && _(A)(...Y)),
|
|
4230
4230
|
onChange: nt,
|
|
4231
4231
|
onKeydown: oe
|
|
4232
4232
|
}), null, 16, sm),
|
|
4233
|
-
pe.value ? (b(),
|
|
4233
|
+
pe.value ? (b(), L(
|
|
4234
4234
|
"span",
|
|
4235
4235
|
{
|
|
4236
4236
|
key: 0,
|
|
@@ -4414,9 +4414,9 @@ const pr = (e) => {
|
|
|
4414
4414
|
return;
|
|
4415
4415
|
const { altKey: p, ctrlKey: m, metaKey: g, currentTarget: y, shiftKey: S } = f, { loop: k } = e, w = si(f) === Ao.tab && !p && !m && !g, T = document.activeElement;
|
|
4416
4416
|
if (w && T) {
|
|
4417
|
-
const x = y, [E,
|
|
4418
|
-
if (E &&
|
|
4419
|
-
if (!S && T ===
|
|
4417
|
+
const x = y, [E, P] = mm(x);
|
|
4418
|
+
if (E && P) {
|
|
4419
|
+
if (!S && T === P) {
|
|
4420
4420
|
const K = ta({
|
|
4421
4421
|
focusReason: l.value
|
|
4422
4422
|
});
|
|
@@ -4425,7 +4425,7 @@ const pr = (e) => {
|
|
|
4425
4425
|
const K = ta({
|
|
4426
4426
|
focusReason: l.value
|
|
4427
4427
|
});
|
|
4428
|
-
t("focusout-prevented", K), K.defaultPrevented || (f.preventDefault(), k && an(
|
|
4428
|
+
t("focusout-prevented", K), K.defaultPrevented || (f.preventDefault(), k && an(P, !0));
|
|
4429
4429
|
}
|
|
4430
4430
|
} else if (T === x) {
|
|
4431
4431
|
const K = ta({
|
|
@@ -5273,7 +5273,7 @@ const Km = ne({
|
|
|
5273
5273
|
onClick: _(m)
|
|
5274
5274
|
}), {
|
|
5275
5275
|
default: N(() => [
|
|
5276
|
-
y.loading ? (b(),
|
|
5276
|
+
y.loading ? (b(), L(
|
|
5277
5277
|
Ce,
|
|
5278
5278
|
{ key: 0 },
|
|
5279
5279
|
[
|
|
@@ -5294,7 +5294,7 @@ const Km = ne({
|
|
|
5294
5294
|
]),
|
|
5295
5295
|
_: 3
|
|
5296
5296
|
})) : D("v-if", !0),
|
|
5297
|
-
y.$slots.default ? (b(),
|
|
5297
|
+
y.$slots.default ? (b(), L(
|
|
5298
5298
|
"span",
|
|
5299
5299
|
{
|
|
5300
5300
|
key: 2,
|
|
@@ -5333,7 +5333,7 @@ const Ym = {
|
|
|
5333
5333
|
})
|
|
5334
5334
|
);
|
|
5335
5335
|
const n = Gt("button");
|
|
5336
|
-
return (o, a) => (b(),
|
|
5336
|
+
return (o, a) => (b(), L(
|
|
5337
5337
|
"div",
|
|
5338
5338
|
{
|
|
5339
5339
|
class: ae([_(n).b("group"), _(n).bm("group", t.direction)])
|
|
@@ -5427,8 +5427,8 @@ const tg = eg, ng = (e, t, n, o) => {
|
|
|
5427
5427
|
offsetY: 0
|
|
5428
5428
|
}, l = M(!1), i = (h, v) => {
|
|
5429
5429
|
if (e.value) {
|
|
5430
|
-
const { offsetX: f, offsetY: p } = a, m = e.value.getBoundingClientRect(), g = m.left, y = m.top, S = m.width, k = m.height, $ = document.documentElement.clientWidth, w = document.documentElement.clientHeight, T = -g + f, x = -y + p, E = $ - g - S + f,
|
|
5431
|
-
o?.value || (h = Math.min(Math.max(h, T), E), v = Math.min(Math.max(v, x),
|
|
5430
|
+
const { offsetX: f, offsetY: p } = a, m = e.value.getBoundingClientRect(), g = m.left, y = m.top, S = m.width, k = m.height, $ = document.documentElement.clientWidth, w = document.documentElement.clientHeight, T = -g + f, x = -y + p, E = $ - g - S + f, P = w - y - (k < w ? k : 0) + p;
|
|
5431
|
+
o?.value || (h = Math.min(Math.max(h, T), E), v = Math.min(Math.max(v, x), P)), a.offsetX = h, a.offsetY = v, e.value.style.transform = `translate(${Tl(h)}, ${Tl(
|
|
5432
5432
|
v
|
|
5433
5433
|
)})`;
|
|
5434
5434
|
}
|
|
@@ -5652,7 +5652,7 @@ const tg = eg, ng = (e, t, n, o) => {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
const E = () => {
|
|
5654
5654
|
e.closeOnClickModal && K(c.distinguishCancelAndClose ? "close" : "cancel");
|
|
5655
|
-
},
|
|
5655
|
+
}, P = gc(E), A = (O) => {
|
|
5656
5656
|
if (c.inputType !== "textarea")
|
|
5657
5657
|
return O.preventDefault(), K("confirm");
|
|
5658
5658
|
}, K = (O) => {
|
|
@@ -5685,7 +5685,7 @@ const tg = eg, ng = (e, t, n, o) => {
|
|
|
5685
5685
|
return e.lockScroll && og(s, { ns: a }), {
|
|
5686
5686
|
...Pu(c),
|
|
5687
5687
|
ns: a,
|
|
5688
|
-
overlayEvent:
|
|
5688
|
+
overlayEvent: P,
|
|
5689
5689
|
visible: s,
|
|
5690
5690
|
hasMessage: f,
|
|
5691
5691
|
typeClass: d,
|
|
@@ -5759,7 +5759,7 @@ function ug(e, t, n, o, a, l) {
|
|
|
5759
5759
|
}, ["stop"]))
|
|
5760
5760
|
},
|
|
5761
5761
|
[
|
|
5762
|
-
e.title !== null && e.title !== void 0 ? (b(),
|
|
5762
|
+
e.title !== null && e.title !== void 0 ? (b(), L(
|
|
5763
5763
|
"div",
|
|
5764
5764
|
{
|
|
5765
5765
|
key: 0,
|
|
@@ -5791,7 +5791,7 @@ function ug(e, t, n, o, a, l) {
|
|
|
5791
5791
|
],
|
|
5792
5792
|
2
|
|
5793
5793
|
),
|
|
5794
|
-
e.showClose ? (b(),
|
|
5794
|
+
e.showClose ? (b(), L("button", {
|
|
5795
5795
|
key: 0,
|
|
5796
5796
|
type: "button",
|
|
5797
5797
|
class: ae(e.ns.e("headerbtn")),
|
|
@@ -5830,7 +5830,7 @@ function ug(e, t, n, o, a, l) {
|
|
|
5830
5830
|
]),
|
|
5831
5831
|
_: 1
|
|
5832
5832
|
}, 8, ["class"])) : D("v-if", !0),
|
|
5833
|
-
e.hasMessage ? (b(),
|
|
5833
|
+
e.hasMessage ? (b(), L(
|
|
5834
5834
|
"div",
|
|
5835
5835
|
{
|
|
5836
5836
|
key: 1,
|
|
@@ -6263,14 +6263,14 @@ const bg = ln, pl = {
|
|
|
6263
6263
|
if (h ? x = h[n.id] : a ? x = a[n.id] : x = n.modelValue, x === void 0 && g.value === "j-tabs") {
|
|
6264
6264
|
if (p.value?.defaultValue)
|
|
6265
6265
|
return p.value.defaultValue;
|
|
6266
|
-
const E = n.children.findIndex((
|
|
6266
|
+
const E = n.children.findIndex((P) => P.config?.active);
|
|
6267
6267
|
return E > -1 ? "_tab" + E : "_tab0";
|
|
6268
6268
|
}
|
|
6269
6269
|
if (x === void 0 && g.value === "j-collapse") {
|
|
6270
6270
|
if (p.value?.defaultValue)
|
|
6271
6271
|
return p.value.defaultValue;
|
|
6272
|
-
const E = n.children.map((
|
|
6273
|
-
return p.value?.accordion ? E.length > 0 ? "_collapse" + E[0].index : "" : E.map(({ index:
|
|
6272
|
+
const E = n.children.map((P, A) => ({ item: P, index: A })).filter(({ item: P }) => P.config?.active);
|
|
6273
|
+
return p.value?.accordion ? E.length > 0 ? "_collapse" + E[0].index : "" : E.map(({ index: P }) => "_collapse" + P);
|
|
6274
6274
|
}
|
|
6275
6275
|
return x;
|
|
6276
6276
|
},
|
|
@@ -6299,20 +6299,20 @@ const bg = ln, pl = {
|
|
|
6299
6299
|
if (g.value === "j-layer-form")
|
|
6300
6300
|
return {};
|
|
6301
6301
|
const x = {};
|
|
6302
|
-
return n.children.forEach((E,
|
|
6302
|
+
return n.children.forEach((E, P) => {
|
|
6303
6303
|
let A = E;
|
|
6304
6304
|
g.value === "j-tabs" && (A = {
|
|
6305
6305
|
...E,
|
|
6306
6306
|
type: "el-tab-pane",
|
|
6307
6307
|
config: {
|
|
6308
6308
|
...E.config || {},
|
|
6309
|
-
name: "_tab" +
|
|
6309
|
+
name: "_tab" + P
|
|
6310
6310
|
}
|
|
6311
6311
|
}), g.value === "j-collapse" && (A = {
|
|
6312
6312
|
...E,
|
|
6313
6313
|
config: {
|
|
6314
6314
|
...E.config || {},
|
|
6315
|
-
name: "_collapse" +
|
|
6315
|
+
name: "_collapse" + P
|
|
6316
6316
|
}
|
|
6317
6317
|
}), A.slot ? (x[A.slot] = x[A.slot] || [], x[A.slot].push(A)) : (x.default = x.default || [], x.default.push(A));
|
|
6318
6318
|
}), x;
|
|
@@ -6330,9 +6330,9 @@ const bg = ln, pl = {
|
|
|
6330
6330
|
}, $ = M(), w = M([]), T = () => {
|
|
6331
6331
|
if (w.value.forEach((E) => E()), w.value = [], !s || !n.id || !$.value) return;
|
|
6332
6332
|
const x = Object.entries($.value);
|
|
6333
|
-
for (const [E,
|
|
6334
|
-
if (typeof
|
|
6335
|
-
const A = s(n.id, E,
|
|
6333
|
+
for (const [E, P] of x)
|
|
6334
|
+
if (typeof P == "function" && !E.startsWith("_") && !E.startsWith("$")) {
|
|
6335
|
+
const A = s(n.id, E, P);
|
|
6336
6336
|
A && typeof A == "function" && w.value.push(A);
|
|
6337
6337
|
}
|
|
6338
6338
|
};
|
|
@@ -6346,7 +6346,7 @@ const bg = ln, pl = {
|
|
|
6346
6346
|
}), qt(() => {
|
|
6347
6347
|
w.value.forEach((x) => x()), w.value = [];
|
|
6348
6348
|
}), (x, E) => {
|
|
6349
|
-
const
|
|
6349
|
+
const P = V("JComp"), A = V("el-row");
|
|
6350
6350
|
return y.value.display != !1 && v.value ? (b(), I(rt(g.value), _e({
|
|
6351
6351
|
key: 0,
|
|
6352
6352
|
ref_key: "compRef",
|
|
@@ -6359,7 +6359,7 @@ const bg = ln, pl = {
|
|
|
6359
6359
|
$e(S.value, (K, Z) => ({
|
|
6360
6360
|
name: Z,
|
|
6361
6361
|
fn: N(() => [
|
|
6362
|
-
(b(!0),
|
|
6362
|
+
(b(!0), L(Ce, null, $e(K, (H) => (b(), I(P, _e({
|
|
6363
6363
|
key: H.id
|
|
6364
6364
|
}, { ref_for: !0 }, H), null, 16))), 128))
|
|
6365
6365
|
])
|
|
@@ -6377,14 +6377,14 @@ const bg = ln, pl = {
|
|
|
6377
6377
|
gutter: r.value
|
|
6378
6378
|
}, {
|
|
6379
6379
|
default: N(() => [
|
|
6380
|
-
y.value.needFormItem !== !1 ? (b(!0),
|
|
6380
|
+
y.value.needFormItem !== !1 ? (b(!0), L(Ce, { key: 0 }, $e(K, (H) => (b(), I(yc, _e({
|
|
6381
6381
|
key: H.id
|
|
6382
|
-
}, { ref_for: !0 }, H), null, 16))), 128)) : (b(!0),
|
|
6382
|
+
}, { ref_for: !0 }, H), null, 16))), 128)) : (b(!0), L(Ce, { key: 1 }, $e(K, (H) => (b(), I(P, _e({
|
|
6383
6383
|
key: H.id
|
|
6384
6384
|
}, { ref_for: !0 }, H), null, 16))), 128))
|
|
6385
6385
|
]),
|
|
6386
6386
|
_: 2
|
|
6387
|
-
}, 1032, ["gutter"])) : (b(!0),
|
|
6387
|
+
}, 1032, ["gutter"])) : (b(!0), L(Ce, { key: 1 }, $e(K, (H) => (b(), I(P, _e({
|
|
6388
6388
|
key: H.id
|
|
6389
6389
|
}, { ref_for: !0 }, H), null, 16))), 128))
|
|
6390
6390
|
])
|
|
@@ -6707,7 +6707,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
6707
6707
|
const y = M(0);
|
|
6708
6708
|
let S = a.records.length, k = 45;
|
|
6709
6709
|
const $ = M(!1), w = M({}), T = M([]), x = M(null), E = M(0);
|
|
6710
|
-
let
|
|
6710
|
+
let P = null, A = !1, K = !1;
|
|
6711
6711
|
const Z = (W, te, ue, fe, xe) => {
|
|
6712
6712
|
T.value = W, x.value = te, E.value = ue, w.value = {
|
|
6713
6713
|
left: `${fe}px`,
|
|
@@ -6716,11 +6716,11 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
6716
6716
|
}, H = () => {
|
|
6717
6717
|
$.value = !1, A = !1, K = !1, C(), document.removeEventListener("wheel", Q);
|
|
6718
6718
|
}, B = () => {
|
|
6719
|
-
C(),
|
|
6719
|
+
C(), P = setTimeout(() => {
|
|
6720
6720
|
!A && !K && H();
|
|
6721
6721
|
}, 100);
|
|
6722
6722
|
}, C = () => {
|
|
6723
|
-
|
|
6723
|
+
P && (clearTimeout(P), P = null);
|
|
6724
6724
|
}, O = () => {
|
|
6725
6725
|
A = !0, C();
|
|
6726
6726
|
}, z = () => {
|
|
@@ -7272,7 +7272,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7272
7272
|
setSelection: me
|
|
7273
7273
|
}), (W, te) => {
|
|
7274
7274
|
const ue = V("j-button"), fe = V("el-space"), xe = V("el-pagination");
|
|
7275
|
-
return b(),
|
|
7275
|
+
return b(), L("div", {
|
|
7276
7276
|
class: ae(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
7277
7277
|
style: ke(d.value)
|
|
7278
7278
|
}, [
|
|
@@ -7287,7 +7287,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7287
7287
|
}, null, 512)
|
|
7288
7288
|
], 4),
|
|
7289
7289
|
R("div", Eg, [
|
|
7290
|
-
e.isPage || !Ue.value && (ie.value || re.value) ? (b(),
|
|
7290
|
+
e.isPage || !Ue.value && (ie.value || re.value) ? (b(), L("div", Tg, [
|
|
7291
7291
|
J(fe, null, {
|
|
7292
7292
|
default: N(() => [
|
|
7293
7293
|
ie.value ? (b(), I(ue, {
|
|
@@ -7323,14 +7323,14 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7323
7323
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total"])) : D("", !0)
|
|
7324
7324
|
])) : D("", !0)
|
|
7325
7325
|
]),
|
|
7326
|
-
$.value ? (b(),
|
|
7326
|
+
$.value ? (b(), L("div", {
|
|
7327
7327
|
key: 0,
|
|
7328
7328
|
class: "j-table-dropdown",
|
|
7329
7329
|
style: ke(w.value),
|
|
7330
7330
|
onMouseenter: O,
|
|
7331
7331
|
onMouseleave: z
|
|
7332
7332
|
}, [
|
|
7333
|
-
(b(!0),
|
|
7333
|
+
(b(!0), L(Ce, null, $e(T.value, (be) => (b(), L("div", {
|
|
7334
7334
|
key: be.id,
|
|
7335
7335
|
class: "j-table-dropdown-item",
|
|
7336
7336
|
style: ke({
|
|
@@ -7552,7 +7552,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7552
7552
|
s.value = ee || "保存数据中...", r.value = !0;
|
|
7553
7553
|
}, E = () => {
|
|
7554
7554
|
r.value = !1;
|
|
7555
|
-
},
|
|
7555
|
+
}, P = () => {
|
|
7556
7556
|
o.beforeClose && o.beforeClose() === !1 || (i.value = !1, a("update:visible", !1), a("cancel"));
|
|
7557
7557
|
}, A = () => {
|
|
7558
7558
|
a("ok", x, E);
|
|
@@ -7664,7 +7664,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7664
7664
|
style: ke({ cursor: e.autoHeight ? "" : "move" })
|
|
7665
7665
|
}, [
|
|
7666
7666
|
R("span", null, he(_(l)(e.title || "")), 1),
|
|
7667
|
-
e.subtitle ? (b(),
|
|
7667
|
+
e.subtitle ? (b(), L("span", Ag, [
|
|
7668
7668
|
(b(), I(rt(e.subtitle())))
|
|
7669
7669
|
])) : D("", !0)
|
|
7670
7670
|
], 12, Mg),
|
|
@@ -7676,7 +7676,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7676
7676
|
J(Pe, {
|
|
7677
7677
|
type: "text",
|
|
7678
7678
|
icon: "mdi:close",
|
|
7679
|
-
onClick:
|
|
7679
|
+
onClick: P
|
|
7680
7680
|
})
|
|
7681
7681
|
]),
|
|
7682
7682
|
_: 1
|
|
@@ -7692,7 +7692,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7692
7692
|
height: e.autoHeight ? "auto" : (S.value > 0 ? S.value : k.value) + "px"
|
|
7693
7693
|
})
|
|
7694
7694
|
}, [
|
|
7695
|
-
e.isStep ? (b(),
|
|
7695
|
+
e.isStep ? (b(), L("div", Bg, [
|
|
7696
7696
|
R("div", {
|
|
7697
7697
|
style: ke({ maxWidth: `${200 * z.value.length}px`, width: "100%" })
|
|
7698
7698
|
}, [
|
|
@@ -7703,7 +7703,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7703
7703
|
"finish-status": "success"
|
|
7704
7704
|
}, {
|
|
7705
7705
|
default: N(() => [
|
|
7706
|
-
(b(!0),
|
|
7706
|
+
(b(!0), L(Ce, null, $e(z.value, (ce, ye) => (b(), I(Me, {
|
|
7707
7707
|
key: ye,
|
|
7708
7708
|
title: _(l)(ce.title)
|
|
7709
7709
|
}, null, 8, ["title"]))), 128))
|
|
@@ -7715,7 +7715,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7715
7715
|
R("div", Ig, [
|
|
7716
7716
|
Se(ee.$slots, "default")
|
|
7717
7717
|
]),
|
|
7718
|
-
e.hasBtns ? (b(),
|
|
7718
|
+
e.hasBtns ? (b(), L("div", Pg, [
|
|
7719
7719
|
J(ge, { size: 8 }, {
|
|
7720
7720
|
default: N(() => [
|
|
7721
7721
|
e.isStep ? (b(), I(Pe, {
|
|
@@ -7737,9 +7737,9 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7737
7737
|
key: 2,
|
|
7738
7738
|
size: "mini",
|
|
7739
7739
|
label: _(l)("取消"),
|
|
7740
|
-
onClick:
|
|
7740
|
+
onClick: P
|
|
7741
7741
|
}, null, 8, ["label"])) : D("", !0),
|
|
7742
|
-
(b(!0),
|
|
7742
|
+
(b(!0), L(Ce, null, $e(e.buttons, (ce) => (b(), I(Pe, _e({ ref_for: !0 }, ce.config, {
|
|
7743
7743
|
key: ce.id,
|
|
7744
7744
|
label: ce.label,
|
|
7745
7745
|
onClick: (ye) => Je(ce)
|
|
@@ -7927,7 +7927,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7927
7927
|
u.value = !1, h.value = !1;
|
|
7928
7928
|
break;
|
|
7929
7929
|
}
|
|
7930
|
-
}, E = j(() => o.steps.map((A) => ({ title: A, disabled: !0 }))),
|
|
7930
|
+
}, E = j(() => o.steps.map((A) => ({ title: A, disabled: !0 }))), P = async (A) => {
|
|
7931
7931
|
A.click && await A.click();
|
|
7932
7932
|
};
|
|
7933
7933
|
return t({ showLoading: S, hideLoading: k }), (A, K) => {
|
|
@@ -7945,13 +7945,13 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7945
7945
|
onClosed: y
|
|
7946
7946
|
}, {
|
|
7947
7947
|
default: N(() => [
|
|
7948
|
-
Dt((b(),
|
|
7948
|
+
Dt((b(), L("div", {
|
|
7949
7949
|
class: "j-block j-dialog-full-window",
|
|
7950
7950
|
"element-loading-text": _(i)(c.value)
|
|
7951
7951
|
}, [
|
|
7952
7952
|
R("div", Vg, [
|
|
7953
7953
|
R("div", zg, [
|
|
7954
|
-
_(l) ? (b(),
|
|
7954
|
+
_(l) ? (b(), L("img", {
|
|
7955
7955
|
key: 0,
|
|
7956
7956
|
class: "j-dialog-full-header-logo",
|
|
7957
7957
|
src: _(l)
|
|
@@ -7973,7 +7973,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
7973
7973
|
"finish-status": "success"
|
|
7974
7974
|
}, {
|
|
7975
7975
|
default: N(() => [
|
|
7976
|
-
(b(!0),
|
|
7976
|
+
(b(!0), L(Ce, null, $e(E.value, (se, pe) => (b(), I(Z, {
|
|
7977
7977
|
key: pe,
|
|
7978
7978
|
title: _(i)(se.title)
|
|
7979
7979
|
}, null, 8, ["title"]))), 128))
|
|
@@ -8001,7 +8001,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8001
8001
|
label: _(i)("下一步"),
|
|
8002
8002
|
onClick: w
|
|
8003
8003
|
}, null, 8, ["disabled", "loading", "label"])) : D("", !0),
|
|
8004
|
-
(b(!0),
|
|
8004
|
+
(b(!0), L(Ce, null, $e(e.buttons, (se) => (b(), L(Ce, {
|
|
8005
8005
|
key: se.id
|
|
8006
8006
|
}, [
|
|
8007
8007
|
se.config?.display !== !1 ? (b(), I(B, _e({
|
|
@@ -8009,7 +8009,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8009
8009
|
ref_for: !0
|
|
8010
8010
|
}, se.config, {
|
|
8011
8011
|
label: se.label,
|
|
8012
|
-
onClick: (pe) =>
|
|
8012
|
+
onClick: (pe) => P(se)
|
|
8013
8013
|
}), null, 16, ["label", "onClick"])) : D("", !0)
|
|
8014
8014
|
], 64))), 128)),
|
|
8015
8015
|
e.hasSaveBtn ? (b(), I(B, {
|
|
@@ -8261,7 +8261,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8261
8261
|
g.value = !1, y.value = !1;
|
|
8262
8262
|
break;
|
|
8263
8263
|
}
|
|
8264
|
-
},
|
|
8264
|
+
}, P = j(() => o.steps.map((A) => ({ title: A, disabled: !0 })));
|
|
8265
8265
|
return t({ showLoading: d, hideLoading: u }), (A, K) => {
|
|
8266
8266
|
const Z = V("el-input"), H = V("j-button"), B = V("el-space"), C = V("el-step"), O = V("el-steps"), z = V("el-drawer"), Q = Aa("loading");
|
|
8267
8267
|
return b(), I(z, {
|
|
@@ -8280,7 +8280,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8280
8280
|
onClosed: h
|
|
8281
8281
|
}, {
|
|
8282
8282
|
default: N(() => [
|
|
8283
|
-
Dt((b(),
|
|
8283
|
+
Dt((b(), L("div", {
|
|
8284
8284
|
class: ae(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
8285
8285
|
"element-loading-text": r.value
|
|
8286
8286
|
}, [
|
|
@@ -8294,7 +8294,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8294
8294
|
R("div", Yg, [
|
|
8295
8295
|
Se(A.$slots, "default")
|
|
8296
8296
|
]),
|
|
8297
|
-
e.hasBtns ? (b(),
|
|
8297
|
+
e.hasBtns ? (b(), L("div", Gg, [
|
|
8298
8298
|
J(B, { size: 8 }, {
|
|
8299
8299
|
default: N(() => [
|
|
8300
8300
|
e.isStep ? (b(), I(H, {
|
|
@@ -8318,7 +8318,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8318
8318
|
label: _(a)("取消"),
|
|
8319
8319
|
onClick: f
|
|
8320
8320
|
}, null, 8, ["label"])) : D("", !0),
|
|
8321
|
-
(b(!0),
|
|
8321
|
+
(b(!0), L(Ce, null, $e(e.buttons, (se) => (b(), I(H, _e({
|
|
8322
8322
|
key: se.id
|
|
8323
8323
|
}, { ref_for: !0 }, se.config, {
|
|
8324
8324
|
label: se.label,
|
|
@@ -8344,7 +8344,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8344
8344
|
e.subtitle ? (b(), I(rt(e.subtitle()), { key: 0 })) : D("", !0)
|
|
8345
8345
|
])
|
|
8346
8346
|
]),
|
|
8347
|
-
e.showCloseBtn ? (b(),
|
|
8347
|
+
e.showCloseBtn ? (b(), L("div", Qg, [
|
|
8348
8348
|
J(H, {
|
|
8349
8349
|
type: "text",
|
|
8350
8350
|
icon: "mdi:close",
|
|
@@ -8352,9 +8352,9 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8352
8352
|
})
|
|
8353
8353
|
])) : D("", !0)
|
|
8354
8354
|
]),
|
|
8355
|
-
e.isStep ? (b(),
|
|
8355
|
+
e.isStep ? (b(), L("div", ey, [
|
|
8356
8356
|
R("div", {
|
|
8357
|
-
style: ke({ maxWidth: `${200 *
|
|
8357
|
+
style: ke({ maxWidth: `${200 * P.value.length}px`, width: "100%" })
|
|
8358
8358
|
}, [
|
|
8359
8359
|
J(O, {
|
|
8360
8360
|
simple: "",
|
|
@@ -8363,7 +8363,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8363
8363
|
"finish-status": "success"
|
|
8364
8364
|
}, {
|
|
8365
8365
|
default: N(() => [
|
|
8366
|
-
(b(!0),
|
|
8366
|
+
(b(!0), L(Ce, null, $e(P.value, (se, pe) => (b(), I(C, {
|
|
8367
8367
|
key: pe,
|
|
8368
8368
|
title: _(a)(se.title)
|
|
8369
8369
|
}, null, 8, ["title"]))), 128))
|
|
@@ -8634,7 +8634,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8634
8634
|
prefix: N(() => [
|
|
8635
8635
|
J(f, null, {
|
|
8636
8636
|
default: N(() => [
|
|
8637
|
-
(b(!0),
|
|
8637
|
+
(b(!0), L(Ce, null, $e(l.value, (m, g) => (b(), I(v, {
|
|
8638
8638
|
key: g,
|
|
8639
8639
|
type: "info",
|
|
8640
8640
|
closable: !e.readonly,
|
|
@@ -8819,15 +8819,15 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8819
8819
|
const { t } = vt();
|
|
8820
8820
|
return (n, o) => {
|
|
8821
8821
|
const a = V("j-icon"), l = V("el-text"), i = V("j-button"), r = V("el-progress"), s = V("el-link");
|
|
8822
|
-
return b(),
|
|
8822
|
+
return b(), L("div", {
|
|
8823
8823
|
class: ae(["j-upload-list", { "j-upload-image-list": e.isUploadImg, "j-upload-drag-list": e.drag }])
|
|
8824
8824
|
}, [
|
|
8825
|
-
e.drag ? (b(),
|
|
8826
|
-
e.showFileList ? (b(!0),
|
|
8825
|
+
e.drag ? (b(), L(Ce, { key: 0 }, [
|
|
8826
|
+
e.showFileList ? (b(!0), L(Ce, { key: 0 }, $e(e.list, (c) => (b(), L("div", {
|
|
8827
8827
|
key: c.id,
|
|
8828
8828
|
class: "j-upload-dragItem"
|
|
8829
8829
|
}, [
|
|
8830
|
-
e.isUploadImg ? (b(),
|
|
8830
|
+
e.isUploadImg ? (b(), L("div", dy, [
|
|
8831
8831
|
R("img", {
|
|
8832
8832
|
src: c.url,
|
|
8833
8833
|
style: { width: "100%" },
|
|
@@ -8887,11 +8887,11 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8887
8887
|
}, null, 8, ["percent"])) : D("", !0)
|
|
8888
8888
|
]))), 128)) : D("", !0),
|
|
8889
8889
|
Se(n.$slots, "default")
|
|
8890
|
-
], 64)) : e.isUploadImg ? (b(!0),
|
|
8890
|
+
], 64)) : e.isUploadImg ? (b(!0), L(Ce, { key: 1 }, $e(e.list, (c) => (b(), L("div", {
|
|
8891
8891
|
key: c.id,
|
|
8892
8892
|
class: "j-upload-imgItem"
|
|
8893
8893
|
}, [
|
|
8894
|
-
c.status === "done" || c.status === "unUpload" ? (b(),
|
|
8894
|
+
c.status === "done" || c.status === "unUpload" ? (b(), L("img", {
|
|
8895
8895
|
key: 0,
|
|
8896
8896
|
src: c.url,
|
|
8897
8897
|
style: { width: "100%" },
|
|
@@ -8920,7 +8920,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
8920
8920
|
percent: c.percent,
|
|
8921
8921
|
"show-text": !1
|
|
8922
8922
|
}, null, 8, ["percent"])) : D("", !0)
|
|
8923
|
-
]))), 128)) : (b(!0),
|
|
8923
|
+
]))), 128)) : (b(!0), L(Ce, { key: 2 }, $e(e.list, (c) => (b(), L("div", {
|
|
8924
8924
|
key: c.id,
|
|
8925
8925
|
class: "j-upload-item"
|
|
8926
8926
|
}, [
|
|
@@ -9218,7 +9218,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9218
9218
|
X.status = n.autoUpload ? "uploading" : "unUpload", X.uploadSize = 0, X.icon = T(X.name, X.type), u || (X.icon = "file-text"), X.id = X.uid, X.url = window.URL.createObjectURL(X), X.date = Xo(), X.param = g.value;
|
|
9219
9219
|
}, E = (X) => {
|
|
9220
9220
|
o("start", { file: X, list: y.value });
|
|
9221
|
-
},
|
|
9221
|
+
}, P = (X, ce, ye) => {
|
|
9222
9222
|
X.percent = ye, X.uploadSize = ce, S();
|
|
9223
9223
|
}, A = (X) => {
|
|
9224
9224
|
X.status = "done", X.id += "1", X.uid += "1", S(), o("success", { file: X, list: y.value }), n.modelValue || (o("update:modelValue", m.value), o("change", { value: m.value }));
|
|
@@ -9231,7 +9231,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9231
9231
|
}
|
|
9232
9232
|
!n.isNotApi && n.upload ? n.upload(X) : !n.isNotApi && u ? u(X, {
|
|
9233
9233
|
onStart: E,
|
|
9234
|
-
onProgress:
|
|
9234
|
+
onProgress: P,
|
|
9235
9235
|
onSuccess: A,
|
|
9236
9236
|
onError: K,
|
|
9237
9237
|
uploadCallback: n.uploadCallback
|
|
@@ -9311,7 +9311,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9311
9311
|
};
|
|
9312
9312
|
return (X, ce) => {
|
|
9313
9313
|
const ye = V("j-icon"), Re = V("j-button"), nt = V("el-popover"), st = V("el-upload"), Ae = V("el-text"), ut = V("j-dialog-full"), ot = Aa("loading");
|
|
9314
|
-
return b(),
|
|
9314
|
+
return b(), L("div", yy, [
|
|
9315
9315
|
J(st, {
|
|
9316
9316
|
action: "",
|
|
9317
9317
|
drag: e.drag,
|
|
@@ -9330,7 +9330,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9330
9330
|
"on-exceed": Ye
|
|
9331
9331
|
}, {
|
|
9332
9332
|
default: N(() => [
|
|
9333
|
-
e.isUploadImg && !e.isLayer && !e.readonly ? (b(),
|
|
9333
|
+
e.isUploadImg && !e.isLayer && !e.readonly ? (b(), L("div", by, [
|
|
9334
9334
|
J(ye, { icon: "mdi:add" }),
|
|
9335
9335
|
R("div", wy, he(_(r)(e.placeholder)), 1)
|
|
9336
9336
|
])) : e.isLayer && e.showFileList && y.value.length > 0 && !Te.value ? (b(), I(nt, {
|
|
@@ -9367,7 +9367,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9367
9367
|
]),
|
|
9368
9368
|
_: 1
|
|
9369
9369
|
}, 8, ["drag", "disabled", "show-file-list", "list-type", "accept", "limit", "multiple", "file-list"]),
|
|
9370
|
-
e.isTip ? (b(),
|
|
9370
|
+
e.isTip ? (b(), L("div", xy, [
|
|
9371
9371
|
J(Ae, null, {
|
|
9372
9372
|
default: N(() => [
|
|
9373
9373
|
jt(he(`${_(r)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${v.value || ""}`)},${p.value}`), 1)
|
|
@@ -9394,14 +9394,14 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9394
9394
|
onOk: Me
|
|
9395
9395
|
}, {
|
|
9396
9396
|
default: N(() => [
|
|
9397
|
-
Q.value && pe.value ? (b(),
|
|
9397
|
+
Q.value && pe.value ? (b(), L("div", Cy, [
|
|
9398
9398
|
R("img", {
|
|
9399
9399
|
width: "100%",
|
|
9400
9400
|
style: { "max-width": "1024px" },
|
|
9401
9401
|
src: pe.value,
|
|
9402
9402
|
alt: ""
|
|
9403
9403
|
}, null, 8, Sy)
|
|
9404
|
-
])) : pe.value != "" ? Dt((b(),
|
|
9404
|
+
])) : pe.value != "" ? Dt((b(), L("div", ky, [
|
|
9405
9405
|
R("iframe", {
|
|
9406
9406
|
ref: "iframe",
|
|
9407
9407
|
src: pe.value,
|
|
@@ -9491,7 +9491,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9491
9491
|
clear: () => {
|
|
9492
9492
|
i.value?.clear();
|
|
9493
9493
|
}
|
|
9494
|
-
}), (f, p) => (b(),
|
|
9494
|
+
}), (f, p) => (b(), L("div", {
|
|
9495
9495
|
ref_key: "chartRef",
|
|
9496
9496
|
ref: l,
|
|
9497
9497
|
class: "j-echarts"
|
|
@@ -9502,7 +9502,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9502
9502
|
for (const [o, a] of t)
|
|
9503
9503
|
n[o] = a;
|
|
9504
9504
|
return n;
|
|
9505
|
-
}, _y = /* @__PURE__ */ xc($y, [["__scopeId", "data-v-
|
|
9505
|
+
}, _y = /* @__PURE__ */ xc($y, [["__scopeId", "data-v-37f9a80b"]]), My = ve(_y), Ay = ["innerHTML"], By = {
|
|
9506
9506
|
key: 1,
|
|
9507
9507
|
class: "j-barcode-error"
|
|
9508
9508
|
}, Iy = /* @__PURE__ */ ne({
|
|
@@ -9792,13 +9792,13 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9792
9792
|
let u = d.message || "条码数据或参数错误";
|
|
9793
9793
|
d.message && d.message.includes("Bad checksum") && t.bcid === "gs1-128" ? u = `GS1-128 校验位错误: ${d.message}。请确保 AI 01 的14位数字包含正确的校验位。` : d.message && d.message.includes("GS1badChecksum") ? u = `GS1 校验位错误: ${d.message}。请检查应用标识符 (AI) 的数据格式和校验位是否正确。` : d.message && d.message.includes("auspostBadFCC") && t.bcid === "auspost" ? u = `AUSPOST FCC 错误: ${d.message}。AUSPOST 条码必须以有效的 FCC (Format Control Code) 开头:11, 45, 59 或 62。如果值未以有效的 FCC 开头,系统会自动添加合适的 FCC。` : d.message && d.message.includes("auspostTooLong") && t.bcid === "auspost" ? u = `AUSPOST 长度错误: ${d.message}。AUSPOST 条码长度限制:FCC 11 (10位), FCC 59 (18位), FCC 62 (25位,最大容量)。如果值超过限制,系统会自动截断并使用合适的 FCC。` : d.message && d.message.includes("pznBadCheckDigit") && t.bcid === "pzn" && (u = `PZN 校验位错误: ${d.message}。PZN (德国医药产品编号) 必须是7位或8位数字,包含正确的校验位。如果校验位不正确,系统会自动修复。`), o.value = u, n.value = "";
|
|
9794
9794
|
}
|
|
9795
|
-
}), (d, u) => (b(),
|
|
9796
|
-
n.value ? (b(),
|
|
9795
|
+
}), (d, u) => (b(), L(Ce, null, [
|
|
9796
|
+
n.value ? (b(), L("div", {
|
|
9797
9797
|
key: 0,
|
|
9798
9798
|
class: "j-barcode",
|
|
9799
9799
|
innerHTML: n.value
|
|
9800
9800
|
}, null, 8, Ay)) : D("", !0),
|
|
9801
|
-
o.value ? (b(),
|
|
9801
|
+
o.value ? (b(), L("div", By, he(o.value), 1)) : D("", !0)
|
|
9802
9802
|
], 64));
|
|
9803
9803
|
}
|
|
9804
9804
|
}), Py = ve(Iy), Ly = /* @__PURE__ */ ne({
|
|
@@ -9828,12 +9828,12 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9828
9828
|
if (/[><=]/.test(T)) {
|
|
9829
9829
|
const E = T.match(/^([><=]+)(.+)$/);
|
|
9830
9830
|
if (E) {
|
|
9831
|
-
const
|
|
9831
|
+
const P = E[1], A = Number(E[2]);
|
|
9832
9832
|
for (let K = 0; K < w.length; K++)
|
|
9833
9833
|
try {
|
|
9834
9834
|
const Z = Number(w[K]);
|
|
9835
9835
|
let H = !1;
|
|
9836
|
-
switch (
|
|
9836
|
+
switch (P) {
|
|
9837
9837
|
case ">":
|
|
9838
9838
|
H = Z > A;
|
|
9839
9839
|
break;
|
|
@@ -9886,17 +9886,17 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9886
9886
|
for (let x = 0; x < w.length; x++)
|
|
9887
9887
|
T += Number(w[x]);
|
|
9888
9888
|
return T;
|
|
9889
|
-
}, m = (...w) => w[0].map((E,
|
|
9889
|
+
}, m = (...w) => w[0].map((E, P) => {
|
|
9890
9890
|
let A = E;
|
|
9891
9891
|
for (let K = 1; K < w.length; K++)
|
|
9892
|
-
A *= w[K][
|
|
9892
|
+
A *= w[K][P] || 0;
|
|
9893
9893
|
return A;
|
|
9894
|
-
}).reduce((E,
|
|
9894
|
+
}).reduce((E, P) => E + P, 0), g = t, { getValue: y } = co(), S = (w) => {
|
|
9895
9895
|
const T = y({ id: w });
|
|
9896
9896
|
if (wl(T)) {
|
|
9897
9897
|
const E = [];
|
|
9898
|
-
return T.forEach((
|
|
9899
|
-
const A = Number(
|
|
9898
|
+
return T.forEach((P) => {
|
|
9899
|
+
const A = Number(P);
|
|
9900
9900
|
Number.isNaN(A) ? E.push(0) : E.push(A);
|
|
9901
9901
|
}), E;
|
|
9902
9902
|
}
|
|
@@ -9907,8 +9907,8 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9907
9907
|
return "";
|
|
9908
9908
|
const w = JSON.parse(n.formatJson || "[]");
|
|
9909
9909
|
let T = "";
|
|
9910
|
-
for (let
|
|
9911
|
-
const A = w[
|
|
9910
|
+
for (let P = 0; P < w.length; P++) {
|
|
9911
|
+
const A = w[P];
|
|
9912
9912
|
if (A.type === "fun" && A.value !== "(" && A.value !== ")")
|
|
9913
9913
|
if (["abs", "max", "min", "sqrt"].includes(A.value))
|
|
9914
9914
|
T += `Math.${A.value}`;
|
|
@@ -9967,8 +9967,8 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
9967
9967
|
m,
|
|
9968
9968
|
S
|
|
9969
9969
|
);
|
|
9970
|
-
} catch (
|
|
9971
|
-
console.log(
|
|
9970
|
+
} catch (P) {
|
|
9971
|
+
console.log(P, "计算组件公式运行错误");
|
|
9972
9972
|
}
|
|
9973
9973
|
else
|
|
9974
9974
|
return console.log(E.msg), "";
|
|
@@ -10046,11 +10046,11 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10046
10046
|
update: (h) => {
|
|
10047
10047
|
l.value && l.value.update && l.value.update(h);
|
|
10048
10048
|
}
|
|
10049
|
-
}), (h, v) => (b(),
|
|
10049
|
+
}), (h, v) => (b(), L("span", {
|
|
10050
10050
|
ref_key: "el",
|
|
10051
10051
|
ref: a
|
|
10052
10052
|
}, [
|
|
10053
|
-
e.animation ? D("", !0) : (b(),
|
|
10053
|
+
e.animation ? D("", !0) : (b(), L("span", Ry, he(e.endValue), 1))
|
|
10054
10054
|
], 512));
|
|
10055
10055
|
}
|
|
10056
10056
|
}), zy = ve(Vy), Fy = { class: "j-block j-data-panel" }, Dy = {
|
|
@@ -10063,8 +10063,8 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10063
10063
|
title: { default: void 0 }
|
|
10064
10064
|
},
|
|
10065
10065
|
setup(e) {
|
|
10066
|
-
return (t, n) => (b(),
|
|
10067
|
-
e.title ? (b(),
|
|
10066
|
+
return (t, n) => (b(), L("div", Fy, [
|
|
10067
|
+
e.title ? (b(), L("div", Dy, [
|
|
10068
10068
|
R("div", Ny, he(e.title), 1),
|
|
10069
10069
|
R("div", Hy, [
|
|
10070
10070
|
Se(t.$slots, "titleRight")
|
|
@@ -10094,7 +10094,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10094
10094
|
}), o = j(() => ({
|
|
10095
10095
|
borderTopStyle: t.borderStyle
|
|
10096
10096
|
}));
|
|
10097
|
-
return (a, l) => (b(),
|
|
10097
|
+
return (a, l) => (b(), L("div", {
|
|
10098
10098
|
class: ae(`j-divider-container j-divider-${e.contentPosition}`),
|
|
10099
10099
|
style: ke(n.value)
|
|
10100
10100
|
}, [
|
|
@@ -10115,7 +10115,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10115
10115
|
name: "JHpanel",
|
|
10116
10116
|
__name: "hpanel",
|
|
10117
10117
|
setup(e) {
|
|
10118
|
-
return (t, n) => (b(),
|
|
10118
|
+
return (t, n) => (b(), L("div", qy, [
|
|
10119
10119
|
Se(t.$slots, "left"),
|
|
10120
10120
|
R("div", Xy, [
|
|
10121
10121
|
Se(t.$slots, "default")
|
|
@@ -10160,7 +10160,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10160
10160
|
{ immediate: !0 }
|
|
10161
10161
|
), (d, u) => {
|
|
10162
10162
|
const h = V("j-button"), v = V("j-layer");
|
|
10163
|
-
return b(),
|
|
10163
|
+
return b(), L(Ce, null, [
|
|
10164
10164
|
J(h, _e({ style: { width: "auto" } }, d.$attrs, {
|
|
10165
10165
|
type: e.type,
|
|
10166
10166
|
label: e.btnText,
|
|
@@ -10336,7 +10336,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10336
10336
|
}
|
|
10337
10337
|
}), (p, m) => {
|
|
10338
10338
|
const g = V("el-color-picker"), y = V("el-input");
|
|
10339
|
-
return b(),
|
|
10339
|
+
return b(), L("div", {
|
|
10340
10340
|
class: ae([
|
|
10341
10341
|
"j-input-color",
|
|
10342
10342
|
{ "j-input-color-only-button": e.onlyButton },
|
|
@@ -10402,7 +10402,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10402
10402
|
};
|
|
10403
10403
|
return t.color && (a.color = t.color), t.size && (typeof t.size == "number" ? a.fontSize = `${t.size}px` : a.fontSize = t.size), t.weight && (a.fontWeight = t.weight), a;
|
|
10404
10404
|
});
|
|
10405
|
-
return (a, l) => (b(),
|
|
10405
|
+
return (a, l) => (b(), L("div", {
|
|
10406
10406
|
class: ae(["j-title", n.value]),
|
|
10407
10407
|
style: ke(o.value)
|
|
10408
10408
|
}, he(e.title), 7));
|
|
@@ -10583,7 +10583,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10583
10583
|
* @public
|
|
10584
10584
|
*/
|
|
10585
10585
|
sqlFormatter: v
|
|
10586
|
-
}), (p, m) => (b(),
|
|
10586
|
+
}), (p, m) => (b(), L("div", {
|
|
10587
10587
|
ref_key: "codeWraperRef",
|
|
10588
10588
|
ref: l,
|
|
10589
10589
|
class: "j-code-mirror",
|
|
@@ -10616,7 +10616,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10616
10616
|
}
|
|
10617
10617
|
}), (r, s) => {
|
|
10618
10618
|
const c = V("j-icon");
|
|
10619
|
-
return b(),
|
|
10619
|
+
return b(), L("div", {
|
|
10620
10620
|
ref_key: "actionRef",
|
|
10621
10621
|
ref: o,
|
|
10622
10622
|
style: ke(l.value),
|
|
@@ -10660,7 +10660,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10660
10660
|
setWidth: (i) => {
|
|
10661
10661
|
a.value = i;
|
|
10662
10662
|
}
|
|
10663
|
-
}), (i, r) => (b(),
|
|
10663
|
+
}), (i, r) => (b(), L("div", {
|
|
10664
10664
|
ref_key: "barRef",
|
|
10665
10665
|
ref: o,
|
|
10666
10666
|
style: ke(l.value)
|
|
@@ -10702,7 +10702,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10702
10702
|
const l = j(() => ({
|
|
10703
10703
|
animation: `shine ${n.animationDuration}s linear ${n.animationIterationCount}`
|
|
10704
10704
|
}));
|
|
10705
|
-
return (i, r) => (b(),
|
|
10705
|
+
return (i, r) => (b(), L("div", {
|
|
10706
10706
|
ref_key: "contentRef",
|
|
10707
10707
|
ref: o,
|
|
10708
10708
|
class: ae([{ success: e.isPassing }, "j-slider-captcha-content"]),
|
|
@@ -10779,8 +10779,8 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10779
10779
|
o("end", g);
|
|
10780
10780
|
const $ = c.value, w = _(r);
|
|
10781
10781
|
if (!$ || !w) return;
|
|
10782
|
-
const T = d(g) - k, { actionWidth: x, offset: E, wrapperWidth:
|
|
10783
|
-
T < E ? m() : ($.setLeft(`${
|
|
10782
|
+
const T = d(g) - k, { actionWidth: x, offset: E, wrapperWidth: P } = h($.getEl());
|
|
10783
|
+
T < E ? m() : ($.setLeft(`${P - x}px`), w.setWidth(`${P - x / 2}px`), p()), l.isMoving = !1;
|
|
10784
10784
|
}
|
|
10785
10785
|
}
|
|
10786
10786
|
function p() {
|
|
@@ -10793,7 +10793,7 @@ const Eg = { class: "j-table-footer" }, Tg = {
|
|
|
10793
10793
|
l.toLeft = !1, g.setLeft("0"), y.setWidth("0");
|
|
10794
10794
|
}, 300));
|
|
10795
10795
|
}
|
|
10796
|
-
return (g, y) => (b(),
|
|
10796
|
+
return (g, y) => (b(), L("div", {
|
|
10797
10797
|
ref_key: "wrapperRef",
|
|
10798
10798
|
ref: i,
|
|
10799
10799
|
class: ae(["j-slider-captcha slider-border", n.class]),
|
|
@@ -11067,12 +11067,12 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11067
11067
|
}, { list: u, containerProps: h, wrapperProps: v } = ci(c, {
|
|
11068
11068
|
itemHeight: 44
|
|
11069
11069
|
});
|
|
11070
|
-
return (f, p) => (b(),
|
|
11070
|
+
return (f, p) => (b(), L("div", _e({
|
|
11071
11071
|
class: ["j-sub-menu-content", { "j-menu-dark": _(r) === "dark" }],
|
|
11072
11072
|
style: { "max-height": "calc(100vh - 80px)", "border-radius": "8px" }
|
|
11073
11073
|
}, _(h)), [
|
|
11074
11074
|
R("div", Ba(Wl(_(v))), [
|
|
11075
|
-
(b(!0),
|
|
11075
|
+
(b(!0), L(Ce, null, $e(_(u), (m) => (b(), I(Va, {
|
|
11076
11076
|
key: m.data.value,
|
|
11077
11077
|
"parent-actives": _(i)?.pid?.split(".") || [],
|
|
11078
11078
|
item: m.data,
|
|
@@ -11156,7 +11156,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11156
11156
|
size: 18
|
|
11157
11157
|
}, null, 8, ["icon"])) : D("", !0),
|
|
11158
11158
|
R("div", $0, he(_(n)(e.item.label)), 1),
|
|
11159
|
-
e.item.hasChildren ? (b(),
|
|
11159
|
+
e.item.hasChildren ? (b(), L("div", {
|
|
11160
11160
|
key: 1,
|
|
11161
11161
|
class: ae(["j-menu-item-arrow", { open: e.item.open }])
|
|
11162
11162
|
}, null, 2)) : D("", !0)
|
|
@@ -11192,7 +11192,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11192
11192
|
size: 18
|
|
11193
11193
|
}, null, 8, ["icon", "style"])) : D("", !0),
|
|
11194
11194
|
R("div", _0, he(_(n)(e.item.label)), 1),
|
|
11195
|
-
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (b(),
|
|
11195
|
+
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (b(), L("div", M0)) : D("", !0)
|
|
11196
11196
|
], 6)
|
|
11197
11197
|
], 2)
|
|
11198
11198
|
]),
|
|
@@ -11203,7 +11203,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11203
11203
|
}, null, 8, ["p-id"])
|
|
11204
11204
|
]),
|
|
11205
11205
|
_: 1
|
|
11206
|
-
}, 8, ["placement"])) : (b(),
|
|
11206
|
+
}, 8, ["placement"])) : (b(), L("div", {
|
|
11207
11207
|
key: 2,
|
|
11208
11208
|
class: ae(["j-menu-item", { collapsed: e.collapsed, sub: e.item.indent > 0 }]),
|
|
11209
11209
|
onClick: r[1] || (r[1] = Ke((u) => l(e.item), ["stop"]))
|
|
@@ -11226,7 +11226,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11226
11226
|
size: 18
|
|
11227
11227
|
}, null, 8, ["icon", "style"])) : D("", !0),
|
|
11228
11228
|
R("div", A0, he(_(n)(e.item.label)), 1),
|
|
11229
|
-
e.item.hasChildren ? (b(),
|
|
11229
|
+
e.item.hasChildren ? (b(), L("div", {
|
|
11230
11230
|
key: 1,
|
|
11231
11231
|
class: ae(["j-menu-item-arrow", { open: e.item.open }])
|
|
11232
11232
|
}, null, 2)) : D("", !0)
|
|
@@ -11257,11 +11257,11 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11257
11257
|
}, r = j(() => n.menuList), { list: s, containerProps: c, wrapperProps: d } = ci(r, {
|
|
11258
11258
|
itemHeight: 44
|
|
11259
11259
|
});
|
|
11260
|
-
return (u, h) => (b(),
|
|
11260
|
+
return (u, h) => (b(), L("div", _e({
|
|
11261
11261
|
class: ["j-menu", { collapsed: e.collapsed, "j-menu-dark": _(l) === "dark" }]
|
|
11262
11262
|
}, _(c)), [
|
|
11263
11263
|
R("div", Ba(Wl(_(d))), [
|
|
11264
|
-
(b(!0),
|
|
11264
|
+
(b(!0), L(Ce, null, $e(_(s), (v) => (b(), I(Va, {
|
|
11265
11265
|
key: v.data.value,
|
|
11266
11266
|
"parent-actives": _(a)?.pid?.split(".") || [],
|
|
11267
11267
|
item: v.data,
|
|
@@ -11327,12 +11327,12 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11327
11327
|
getHMoreMenus: d
|
|
11328
11328
|
}), so(() => {
|
|
11329
11329
|
s && i.value && (s.unobserve(i.value), s.disconnect(), s = null);
|
|
11330
|
-
}), (v, f) => (b(),
|
|
11330
|
+
}), (v, f) => (b(), L("div", {
|
|
11331
11331
|
ref_key: "menuRef",
|
|
11332
11332
|
ref: i,
|
|
11333
11333
|
class: ae(["j-menu-horizontal", { "j-menu-dark": _(l) === "dark" }])
|
|
11334
11334
|
}, [
|
|
11335
|
-
(b(!0),
|
|
11335
|
+
(b(!0), L(Ce, null, $e(c.value, (p) => (b(), I(Va, {
|
|
11336
11336
|
key: p.value,
|
|
11337
11337
|
"parent-actives": u.value,
|
|
11338
11338
|
item: p,
|
|
@@ -11366,11 +11366,11 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11366
11366
|
}, { list: d, containerProps: u, wrapperProps: h } = ci(r, {
|
|
11367
11367
|
itemHeight: 96
|
|
11368
11368
|
});
|
|
11369
|
-
return (v, f) => (b(),
|
|
11369
|
+
return (v, f) => (b(), L("div", _e({
|
|
11370
11370
|
class: ["j-menu-vertical", { "j-menu-dark": _(l) === "dark" }]
|
|
11371
11371
|
}, _(u)), [
|
|
11372
11372
|
R("div", Ba(Wl(_(h))), [
|
|
11373
|
-
(b(!0),
|
|
11373
|
+
(b(!0), L(Ce, null, $e(_(d), (p) => (b(), I(Va, {
|
|
11374
11374
|
key: p.data.value,
|
|
11375
11375
|
"parent-actives": s.value,
|
|
11376
11376
|
item: p.data,
|
|
@@ -11563,7 +11563,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11563
11563
|
}
|
|
11564
11564
|
}), (h, v) => {
|
|
11565
11565
|
const f = V("j-icon"), p = V("el-input"), m = V("j-checkbox");
|
|
11566
|
-
return b(),
|
|
11566
|
+
return b(), L("div", R0, [
|
|
11567
11567
|
R("div", {
|
|
11568
11568
|
class: ae(["range-item", { active: a.value }]),
|
|
11569
11569
|
onClick: c
|
|
@@ -11583,7 +11583,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11583
11583
|
icon: i.value ? "mdi:keyboard-arrow-up" : "mdi:keyboard-arrow-down"
|
|
11584
11584
|
}, null, 8, ["icon"])
|
|
11585
11585
|
]),
|
|
11586
|
-
i.value ? (b(),
|
|
11586
|
+
i.value ? (b(), L("div", V0, [
|
|
11587
11587
|
J(p, {
|
|
11588
11588
|
modelValue: r.value,
|
|
11589
11589
|
"onUpdate:modelValue": v[1] || (v[1] = (g) => r.value = g),
|
|
@@ -11598,7 +11598,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11598
11598
|
_: 1
|
|
11599
11599
|
}, 8, ["modelValue", "placeholder"])
|
|
11600
11600
|
])) : D("", !0),
|
|
11601
|
-
i.value ? (b(),
|
|
11601
|
+
i.value ? (b(), L("div", z0, [
|
|
11602
11602
|
J(m, {
|
|
11603
11603
|
modelValue: l.value,
|
|
11604
11604
|
"onUpdate:modelValue": v[2] || (v[2] = (g) => l.value = g),
|
|
@@ -11784,10 +11784,10 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11784
11784
|
getSearchFields: () => r.value
|
|
11785
11785
|
}), (y, S) => {
|
|
11786
11786
|
const k = V("j-icon"), $ = V("j-select"), w = V("j-button-select"), T = V("j-button"), x = V("j-input-rows"), E = V("el-tooltip");
|
|
11787
|
-
return b(),
|
|
11787
|
+
return b(), L("div", {
|
|
11788
11788
|
class: ae(["j-filter-panel", { "is-pin": i.value }])
|
|
11789
11789
|
}, [
|
|
11790
|
-
i.value ? (b(),
|
|
11790
|
+
i.value ? (b(), L("div", D0, [
|
|
11791
11791
|
J(k, { icon: "mdi:filter-outline" }),
|
|
11792
11792
|
R("div", null, he(_(o)("筛选")), 1)
|
|
11793
11793
|
])) : D("", !0),
|
|
@@ -11797,7 +11797,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11797
11797
|
R("div", W0, [
|
|
11798
11798
|
J($, {
|
|
11799
11799
|
modelValue: l.value,
|
|
11800
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
11800
|
+
"onUpdate:modelValue": S[0] || (S[0] = (P) => l.value = P),
|
|
11801
11801
|
teleported: !1,
|
|
11802
11802
|
"no-border": !0,
|
|
11803
11803
|
options: [
|
|
@@ -11826,7 +11826,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11826
11826
|
R("div", K0, [
|
|
11827
11827
|
J(x, {
|
|
11828
11828
|
modelValue: r.value,
|
|
11829
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
11829
|
+
"onUpdate:modelValue": S[1] || (S[1] = (P) => r.value = P),
|
|
11830
11830
|
columns: c,
|
|
11831
11831
|
"edit-config": { isAddBtn: !1 },
|
|
11832
11832
|
"is-wrap": i.value
|
|
@@ -11916,7 +11916,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11916
11916
|
};
|
|
11917
11917
|
return t({ init: u }), (f, p) => {
|
|
11918
11918
|
const m = V("j-button-select"), g = V("j-input-rows"), y = V("j-button");
|
|
11919
|
-
return b(),
|
|
11919
|
+
return b(), L("div", Y0, [
|
|
11920
11920
|
R("div", G0, [
|
|
11921
11921
|
R("div", q0, [
|
|
11922
11922
|
J(m, {
|
|
@@ -11971,11 +11971,11 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11971
11971
|
w.forEach((A) => {
|
|
11972
11972
|
E.set(A.id, A), s[A.id] = A;
|
|
11973
11973
|
});
|
|
11974
|
-
const
|
|
11974
|
+
const P = /* @__PURE__ */ new Set();
|
|
11975
11975
|
return T && T.length > 0 && T.forEach((A) => {
|
|
11976
11976
|
const K = E.get(A.id);
|
|
11977
11977
|
if (K) {
|
|
11978
|
-
|
|
11978
|
+
P.add(K.id);
|
|
11979
11979
|
const Z = {
|
|
11980
11980
|
id: K.id,
|
|
11981
11981
|
label: K.config?.label || K.id,
|
|
@@ -11985,7 +11985,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11985
11985
|
K.children && K.children.length > 0 && (Z.children = u(K.children, A.children)), x.push(Z);
|
|
11986
11986
|
}
|
|
11987
11987
|
}), w.forEach((A) => {
|
|
11988
|
-
if (!
|
|
11988
|
+
if (!P.has(A.id)) {
|
|
11989
11989
|
const K = {
|
|
11990
11990
|
id: A.id,
|
|
11991
11991
|
label: A.config?.label || A.id,
|
|
@@ -11998,10 +11998,10 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
11998
11998
|
}, h = (w, T) => T.length === 0 ? w : w.map((x) => {
|
|
11999
11999
|
const E = T.some(
|
|
12000
12000
|
(A) => x.label.toLowerCase().includes(A.toLowerCase())
|
|
12001
|
-
),
|
|
12002
|
-
return E ||
|
|
12001
|
+
), P = x.children ? h(x.children, T) : [];
|
|
12002
|
+
return E || P.length > 0 ? {
|
|
12003
12003
|
...x,
|
|
12004
|
-
children:
|
|
12004
|
+
children: P.length > 0 ? P : x.children
|
|
12005
12005
|
} : null;
|
|
12006
12006
|
}).filter(Boolean), v = j(() => {
|
|
12007
12007
|
if (!r.value)
|
|
@@ -12023,13 +12023,13 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12023
12023
|
const w = (T) => {
|
|
12024
12024
|
const x = [];
|
|
12025
12025
|
return T.forEach((E) => {
|
|
12026
|
-
let
|
|
12026
|
+
let P = !0;
|
|
12027
12027
|
if (p.value.size > 0) {
|
|
12028
12028
|
const A = p.value.get(E.id);
|
|
12029
|
-
A ?
|
|
12029
|
+
A ? P = A.display : P = E.config?.display !== !1;
|
|
12030
12030
|
} else
|
|
12031
|
-
|
|
12032
|
-
|
|
12031
|
+
P = E.config?.display !== !1;
|
|
12032
|
+
P && (x.push(E.id), E.children && x.push(...w(E.children)));
|
|
12033
12033
|
}), x;
|
|
12034
12034
|
};
|
|
12035
12035
|
f.value = w(a.columns);
|
|
@@ -12055,8 +12055,8 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12055
12055
|
return t({ init: () => {
|
|
12056
12056
|
m(), c.value = u(a.columns, a.columnConfig), d.value = JSON.parse(JSON.stringify(c.value));
|
|
12057
12057
|
} }), (w, T) => {
|
|
12058
|
-
const x = V("j-icon"), E = V("el-input"),
|
|
12059
|
-
return b(),
|
|
12058
|
+
const x = V("j-icon"), E = V("el-input"), P = V("j-tree"), A = V("j-button");
|
|
12059
|
+
return b(), L("div", eb, [
|
|
12060
12060
|
R("div", tb, [
|
|
12061
12061
|
R("div", nb, [
|
|
12062
12062
|
J(E, {
|
|
@@ -12073,7 +12073,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12073
12073
|
}, 8, ["modelValue", "placeholder"])
|
|
12074
12074
|
]),
|
|
12075
12075
|
R("div", ob, [
|
|
12076
|
-
J(
|
|
12076
|
+
J(P, {
|
|
12077
12077
|
ref_key: "treeRef",
|
|
12078
12078
|
ref: i,
|
|
12079
12079
|
list: v.value,
|
|
@@ -12268,7 +12268,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12268
12268
|
}), Qe.push(et);
|
|
12269
12269
|
}
|
|
12270
12270
|
}), Qe;
|
|
12271
|
-
}, $ = j(() => k(l.columns, Me.value)), w = j(() => Gd(l.columns, (Y) => Y.config.label)), T = M(""), x = j(() => w.value.some((Y) => Y.config?.filter?.isSearchKeyword)), E = M(),
|
|
12271
|
+
}, $ = j(() => k(l.columns, Me.value)), w = j(() => Gd(l.columns, (Y) => Y.config.label)), T = M(""), x = j(() => w.value.some((Y) => Y.config?.filter?.isSearchKeyword)), E = M(), P = M(!0), A = M([]), K = j(() => P.value ? "搜索全部" : `搜索范围:${w.value.filter((Y) => A.value.includes(Y.id)).map((Y) => Y.config?.label).join("、")}`), Z = () => {
|
|
12272
12272
|
E.value.init();
|
|
12273
12273
|
}, H = M(), B = M(!1), C = M(!1), O = M(!1), z = M([]), Q = M("and"), se = M(), pe = M(!1), Te = M([]), Je = () => {
|
|
12274
12274
|
se.value.init(Te.value);
|
|
@@ -12334,7 +12334,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12334
12334
|
const Qe = Te.value.map((de) => de.value + " " + de.sord).join(",");
|
|
12335
12335
|
if (T.value && (Y.keyword = {
|
|
12336
12336
|
value: T.value,
|
|
12337
|
-
fields:
|
|
12337
|
+
fields: P.value ? w.value.filter((de) => de.config?.filter?.isSearchKeyword).map((de) => de.id) : _(A)
|
|
12338
12338
|
}), l.loadData) {
|
|
12339
12339
|
if (l.isPage) {
|
|
12340
12340
|
Y.pagination = {
|
|
@@ -12394,7 +12394,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12394
12394
|
getInstance: F
|
|
12395
12395
|
}), (Y, re) => {
|
|
12396
12396
|
const Ue = V("j-buttons"), Qe = V("j-icon"), de = V("el-popover"), et = V("el-tooltip"), Fn = V("el-input"), Cn = V("j-button"), el = V("j-table");
|
|
12397
|
-
return b(),
|
|
12397
|
+
return b(), L("div", {
|
|
12398
12398
|
class: ae([
|
|
12399
12399
|
"j-table-panel-wrapper",
|
|
12400
12400
|
{ fullscreen: ye.value, "no-padding": e.noPadding || ye.value }
|
|
@@ -12409,7 +12409,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12409
12409
|
J(Ue, { list: Ae.value }, null, 8, ["list"])
|
|
12410
12410
|
]),
|
|
12411
12411
|
R("div", cb, [
|
|
12412
|
-
x.value && !g.value ? (b(),
|
|
12412
|
+
x.value && !g.value ? (b(), L("div", ub, [
|
|
12413
12413
|
J(Fn, {
|
|
12414
12414
|
modelValue: T.value,
|
|
12415
12415
|
"onUpdate:modelValue": re[2] || (re[2] = (W) => T.value = W),
|
|
@@ -12449,8 +12449,8 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12449
12449
|
J(F0, {
|
|
12450
12450
|
ref_key: "keywordPanelRef",
|
|
12451
12451
|
ref: E,
|
|
12452
|
-
"check-all":
|
|
12453
|
-
"onUpdate:checkAll": re[0] || (re[0] = (W) =>
|
|
12452
|
+
"check-all": P.value,
|
|
12453
|
+
"onUpdate:checkAll": re[0] || (re[0] = (W) => P.value = W),
|
|
12454
12454
|
"check-fields": A.value,
|
|
12455
12455
|
"onUpdate:checkFields": re[1] || (re[1] = (W) => A.value = W),
|
|
12456
12456
|
columns: w.value
|
|
@@ -12632,7 +12632,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12632
12632
|
}, null, 8, ["table-page", "columns", "records", "is-tree", "is-show-number", "is-multiple", "is-page", "page-sizes", "page-size", "page-total", "row-key", "actions", "actions-max-count", "actions-label", "highlight-mode"])
|
|
12633
12633
|
])
|
|
12634
12634
|
]),
|
|
12635
|
-
B.value && !g.value ? (b(),
|
|
12635
|
+
B.value && !g.value ? (b(), L("div", fb, [
|
|
12636
12636
|
J(xr, {
|
|
12637
12637
|
ref_key: "filterPanelRef",
|
|
12638
12638
|
ref: H,
|
|
@@ -12702,7 +12702,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12702
12702
|
}, 8, ["modelValue", "placeholder"])
|
|
12703
12703
|
]),
|
|
12704
12704
|
R("div", mb, [
|
|
12705
|
-
(b(!0),
|
|
12705
|
+
(b(!0), L(Ce, null, $e(i.value, (p) => (b(), L("div", {
|
|
12706
12706
|
key: p.value,
|
|
12707
12707
|
class: ae(["option-item", { active: r.value.includes(p.value) || p.disabled }]),
|
|
12708
12708
|
onClick: Ke((m) => s(p), ["stop"])
|
|
@@ -12986,7 +12986,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
12986
12986
|
}, x = (H) => {
|
|
12987
12987
|
const B = pn(o.treeButtons);
|
|
12988
12988
|
return H && o.filterButton ? o.filterButton({ buttons: B, node: H }) : B;
|
|
12989
|
-
}, { openLayer: E } = Ia(),
|
|
12989
|
+
}, { openLayer: E } = Ia(), P = (H, B) => {
|
|
12990
12990
|
H.config?.disabled || H.click && H.click({ data: B, openLayer: E });
|
|
12991
12991
|
}, A = M(""), K = (H, B) => {
|
|
12992
12992
|
A.value = H ? B.value : "", console.log(A.value, "row");
|
|
@@ -13013,7 +13013,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
13013
13013
|
getCheck: k
|
|
13014
13014
|
}), (H, B) => {
|
|
13015
13015
|
const C = V("j-icon"), O = V("j-button"), z = V("el-dropdown-item"), Q = V("el-dropdown-menu"), se = V("el-dropdown"), pe = V("el-tree"), Te = V("el-empty"), Je = Aa("loading");
|
|
13016
|
-
return Dt((b(),
|
|
13016
|
+
return Dt((b(), L("div", {
|
|
13017
13017
|
class: ae(["j-block", "j-tree", { "j-tree-menu": e.theme === "menu" }]),
|
|
13018
13018
|
style: { "min-height": "60px" }
|
|
13019
13019
|
}, [
|
|
@@ -13059,8 +13059,8 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
13059
13059
|
color: ee.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
13060
13060
|
}, null, 8, ["icon", "color"])) : D("", !0),
|
|
13061
13061
|
R("div", wb, he(ee.label), 1),
|
|
13062
|
-
x(ee.data).length ? (b(),
|
|
13063
|
-
(b(!0),
|
|
13062
|
+
x(ee.data).length ? (b(), L("div", xb, [
|
|
13063
|
+
(b(!0), L(Ce, null, $e(x(ee.data), (Ie, Pe) => (b(), I(se, {
|
|
13064
13064
|
key: Pe,
|
|
13065
13065
|
trigger: "click",
|
|
13066
13066
|
onVisibleChange: (ge) => K(ge, ee.data)
|
|
@@ -13068,11 +13068,11 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
13068
13068
|
dropdown: N(() => [
|
|
13069
13069
|
J(Q, null, {
|
|
13070
13070
|
default: N(() => [
|
|
13071
|
-
(b(!0),
|
|
13071
|
+
(b(!0), L(Ce, null, $e(Ie.children, (ge, Me) => (b(), I(z, {
|
|
13072
13072
|
key: Me,
|
|
13073
13073
|
disabled: ge.disabled,
|
|
13074
13074
|
divided: ge.divided,
|
|
13075
|
-
onClick: Ke((Ye) =>
|
|
13075
|
+
onClick: Ke((Ye) => P(ge, ee.data), ["stop"])
|
|
13076
13076
|
}, {
|
|
13077
13077
|
default: N(() => [
|
|
13078
13078
|
R("div", {
|
|
@@ -13106,7 +13106,7 @@ const j0 = /* @__PURE__ */ ne({
|
|
|
13106
13106
|
], 2)
|
|
13107
13107
|
]),
|
|
13108
13108
|
_: 1
|
|
13109
|
-
}, 8, ["node-key", "default-checked-keys", "default-expanded-keys", "current-node-key", "data", "default-expand-all", "show-checkbox", "highlight-current", "accordion", "filter-node-method", "render-after-expand", "draggable", "expand-on-click-node"])) : (b(),
|
|
13109
|
+
}, 8, ["node-key", "default-checked-keys", "default-expanded-keys", "current-node-key", "data", "default-expand-all", "show-checkbox", "highlight-current", "accordion", "filter-node-method", "render-after-expand", "draggable", "expand-on-click-node"])) : (b(), L("div", Cb, [
|
|
13110
13110
|
J(Te, {
|
|
13111
13111
|
description: _(i)(e.emptyDes)
|
|
13112
13112
|
}, null, 8, ["description"])
|
|
@@ -13215,7 +13215,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13215
13215
|
u && u(U);
|
|
13216
13216
|
}, m = M(!1), g = j(() => o.config?.gutter || 16), y = j(() => o.config?.span || 24), S = j(() => o.config?.labelWidth), k = j(() => o.config?.labelPosition || "right"), $ = j(
|
|
13217
13217
|
() => x.length === 1 && (x[0].type === "j-tabs" || x[0].type === "j-layout" || x[0].config?.isAutoWindow)
|
|
13218
|
-
), w = dn({}), T = M({}), x = [], E = {},
|
|
13218
|
+
), w = dn({}), T = M({}), x = [], E = {}, P = M({});
|
|
13219
13219
|
let A = {}, K = {}, Z = [], H = {};
|
|
13220
13220
|
const B = (U) => {
|
|
13221
13221
|
a("change", U);
|
|
@@ -13266,7 +13266,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13266
13266
|
}, Te = async (U, le) => {
|
|
13267
13267
|
m.value = !1;
|
|
13268
13268
|
const G = !!le;
|
|
13269
|
-
x.splice(0, x.length), A = {}, K = {}, Z = [], z = le, ba(w),
|
|
13269
|
+
x.splice(0, x.length), A = {}, K = {}, Z = [], z = le, ba(w), P.value = {}, G && Q(le, ""), pe(U, x, G), H = pn(w), Oe(() => {
|
|
13270
13270
|
m.value = !0, Oe(() => {
|
|
13271
13271
|
ot(o.config?.codeInit, {});
|
|
13272
13272
|
});
|
|
@@ -13336,7 +13336,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13336
13336
|
if (!oe)
|
|
13337
13337
|
return {};
|
|
13338
13338
|
const me = to({
|
|
13339
|
-
config: { ...oe.config || {}, ...
|
|
13339
|
+
config: { ...oe.config || {}, ...P.value[oe.id] || {} },
|
|
13340
13340
|
getCompConfig: oe.getCompConfig,
|
|
13341
13341
|
formData: w,
|
|
13342
13342
|
getTableData: G,
|
|
@@ -13481,11 +13481,11 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13481
13481
|
G && await q(ut(le));
|
|
13482
13482
|
}
|
|
13483
13483
|
}, Bt = (U, le) => {
|
|
13484
|
-
|
|
13484
|
+
P.value[U] = { ...P.value[U] || {}, ...le };
|
|
13485
13485
|
};
|
|
13486
13486
|
return o.schema && Te(o.schema), Bs({
|
|
13487
13487
|
formData: w,
|
|
13488
|
-
compsConfig:
|
|
13488
|
+
compsConfig: P,
|
|
13489
13489
|
errorFields: T,
|
|
13490
13490
|
isAutoWindow: $,
|
|
13491
13491
|
gutter: g,
|
|
@@ -13521,7 +13521,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13521
13521
|
gutter: g.value
|
|
13522
13522
|
}, {
|
|
13523
13523
|
default: N(() => [
|
|
13524
|
-
(b(),
|
|
13524
|
+
(b(), L(Ce, null, $e(x, (me) => J(G, _e({
|
|
13525
13525
|
key: me.id,
|
|
13526
13526
|
ref_for: !0
|
|
13527
13527
|
}, me), null, 16)), 64))
|
|
@@ -13594,8 +13594,8 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13594
13594
|
})
|
|
13595
13595
|
}), t({ init: v, call: c, on: d, off: u }), (f, p) => {
|
|
13596
13596
|
const m = V("j-comp");
|
|
13597
|
-
return b(),
|
|
13598
|
-
(b(!0),
|
|
13597
|
+
return b(), L("div", Ib, [
|
|
13598
|
+
(b(!0), L(Ce, null, $e(a, (g) => (b(), I(m, {
|
|
13599
13599
|
key: g.id,
|
|
13600
13600
|
id: g.id,
|
|
13601
13601
|
type: g.type,
|
|
@@ -13792,19 +13792,19 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13792
13792
|
rowChange: S
|
|
13793
13793
|
}), (k, $) => {
|
|
13794
13794
|
const w = V("j-comp"), T = V("j-icon"), x = V("j-button");
|
|
13795
|
-
return b(),
|
|
13795
|
+
return b(), L("div", Vb, [
|
|
13796
13796
|
R("div", {
|
|
13797
13797
|
ref_key: "inputRowsRef",
|
|
13798
13798
|
ref: v,
|
|
13799
13799
|
class: "j-input-rows-container"
|
|
13800
13800
|
}, [
|
|
13801
|
-
(b(!0),
|
|
13802
|
-
key: E._i +
|
|
13801
|
+
(b(!0), L(Ce, null, $e(p.value, (E, P) => (b(), L("div", {
|
|
13802
|
+
key: E._i + P,
|
|
13803
13803
|
class: ae([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
13804
13804
|
}, [
|
|
13805
|
-
e.showNum ? (b(),
|
|
13806
|
-
e.showChar ? (b(),
|
|
13807
|
-
(b(!0),
|
|
13805
|
+
e.showNum ? (b(), L("div", zb, he(P + 1), 1)) : D("", !0),
|
|
13806
|
+
e.showChar ? (b(), L("div", Fb, he(f[P % 26]), 1)) : D("", !0),
|
|
13807
|
+
(b(!0), L(Ce, null, $e(e.columns, (A) => (b(), I(w, _e({
|
|
13808
13808
|
key: A.id,
|
|
13809
13809
|
ref_for: !0
|
|
13810
13810
|
}, A, { row: E }), null, 16, ["row"]))), 128)),
|
|
@@ -13817,11 +13817,11 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13817
13817
|
key: 3,
|
|
13818
13818
|
icon: "mdi:delete-outline",
|
|
13819
13819
|
class: "j-input-rows-delete",
|
|
13820
|
-
onClick: (A) => y(
|
|
13820
|
+
onClick: (A) => y(P)
|
|
13821
13821
|
}, null, 8, ["onClick"])) : D("", !0)
|
|
13822
13822
|
], 2))), 128))
|
|
13823
13823
|
], 512),
|
|
13824
|
-
!d.value && i.value ? (b(),
|
|
13824
|
+
!d.value && i.value ? (b(), L("div", {
|
|
13825
13825
|
key: 0,
|
|
13826
13826
|
style: ke({ "text-align": s.value }),
|
|
13827
13827
|
class: "j-input-rows-actions"
|
|
@@ -13838,10 +13838,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13838
13838
|
]);
|
|
13839
13839
|
};
|
|
13840
13840
|
}
|
|
13841
|
-
}), Nb = ve(Db), Hb = { class: "j-input-layer" }, Wb = {
|
|
13842
|
-
key: 0,
|
|
13843
|
-
class: "j-input-layer-group"
|
|
13844
|
-
}, Ub = /* @__PURE__ */ ne({
|
|
13841
|
+
}), Nb = ve(Db), Hb = { class: "j-input-layer" }, Wb = /* @__PURE__ */ ne({
|
|
13845
13842
|
name: "JInputLayer",
|
|
13846
13843
|
__name: "input-layer",
|
|
13847
13844
|
props: {
|
|
@@ -13910,7 +13907,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13910
13907
|
f.forEach((g) => {
|
|
13911
13908
|
const y = g[o.labelKey], S = g[o.valueKey];
|
|
13912
13909
|
p.push(y != null ? String(y) : ""), S === 0 || S ? m.push(String(S)) : m.push("");
|
|
13913
|
-
}), r.value = p.join(","), s.value = m.join(","), a("change", { value:
|
|
13910
|
+
}), r.value = p.join(","), s.value = m.join(","), a("change", { value: m.join(","), data: f });
|
|
13914
13911
|
} else if (f.length > 0) {
|
|
13915
13912
|
const p = f[0], m = p[o.labelKey], g = p[o.valueKey];
|
|
13916
13913
|
r.value = m != null ? String(m) : "";
|
|
@@ -13924,7 +13921,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13924
13921
|
};
|
|
13925
13922
|
return (f, p) => {
|
|
13926
13923
|
const m = V("el-input");
|
|
13927
|
-
return b(),
|
|
13924
|
+
return b(), L("div", Hb, [
|
|
13928
13925
|
e.onlyButton ? (b(), I(_(xl), {
|
|
13929
13926
|
key: 1,
|
|
13930
13927
|
type: e.buttonType,
|
|
@@ -13932,29 +13929,28 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13932
13929
|
label: e.buttonLabel,
|
|
13933
13930
|
icon: e.icon,
|
|
13934
13931
|
onClick: d
|
|
13935
|
-
}, null, 8, ["type", "size", "label", "icon"])) : (b(),
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
])),
|
|
13932
|
+
}, null, 8, ["type", "size", "label", "icon"])) : (b(), I(m, {
|
|
13933
|
+
key: 0,
|
|
13934
|
+
modelValue: c.value,
|
|
13935
|
+
"onUpdate:modelValue": p[0] || (p[0] = (g) => c.value = g),
|
|
13936
|
+
placeholder: e.placeholder,
|
|
13937
|
+
readonly: !0,
|
|
13938
|
+
size: e.size,
|
|
13939
|
+
clearable: !e.readonly && e.clearable,
|
|
13940
|
+
onClick: d,
|
|
13941
|
+
onClear: u
|
|
13942
|
+
}, Yt({ _: 2 }, [
|
|
13943
|
+
e.readonly ? void 0 : {
|
|
13944
|
+
name: "append",
|
|
13945
|
+
fn: N(() => [
|
|
13946
|
+
J(_(xl), {
|
|
13947
|
+
icon: e.icon,
|
|
13948
|
+
onClick: d
|
|
13949
|
+
}, null, 8, ["icon"])
|
|
13950
|
+
]),
|
|
13951
|
+
key: "0"
|
|
13952
|
+
}
|
|
13953
|
+
]), 1032, ["modelValue", "placeholder", "size", "clearable"])),
|
|
13958
13954
|
J(_(wc), {
|
|
13959
13955
|
ref_key: "layerRef",
|
|
13960
13956
|
ref: l,
|
|
@@ -13984,7 +13980,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
13984
13980
|
]);
|
|
13985
13981
|
};
|
|
13986
13982
|
}
|
|
13987
|
-
}),
|
|
13983
|
+
}), Ub = ve(Wb), Kb = /* @__PURE__ */ ne({
|
|
13988
13984
|
name: "JLayerForm",
|
|
13989
13985
|
__name: "layer-form",
|
|
13990
13986
|
props: {
|
|
@@ -14063,7 +14059,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14063
14059
|
labelWidth: i
|
|
14064
14060
|
}), (u, h) => {
|
|
14065
14061
|
const v = V("j-button"), f = V("j-form-item"), p = V("el-row"), m = V("el-form"), g = V("j-dialog");
|
|
14066
|
-
return b(),
|
|
14062
|
+
return b(), L("div", null, [
|
|
14067
14063
|
J(v, _e(u.$attrs, {
|
|
14068
14064
|
type: e.type,
|
|
14069
14065
|
size: e.size,
|
|
@@ -14093,7 +14089,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14093
14089
|
gutter: a.value
|
|
14094
14090
|
}, {
|
|
14095
14091
|
default: N(() => [
|
|
14096
|
-
(b(!0),
|
|
14092
|
+
(b(!0), L(Ce, null, $e(e.schema, (y) => (b(), I(f, _e({
|
|
14097
14093
|
key: y.id,
|
|
14098
14094
|
ref_for: !0
|
|
14099
14095
|
}, y), null, 16))), 128))
|
|
@@ -14109,7 +14105,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14109
14105
|
]);
|
|
14110
14106
|
};
|
|
14111
14107
|
}
|
|
14112
|
-
}),
|
|
14108
|
+
}), Jb = ve(Kb), Yb = /* @__PURE__ */ ne({
|
|
14113
14109
|
name: "JSwitch",
|
|
14114
14110
|
inheritAttrs: !1,
|
|
14115
14111
|
__name: "switch",
|
|
@@ -14211,7 +14207,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14211
14207
|
]), 1040, ["id", "modelValue", "size", "width", "inline-prompt", "active-icon", "inactive-icon", "active-action-icon", "inactive-action-icon", "active-text", "inactive-text", "active-value", "inactive-value", "name", "validate-event", "before-change", "tabindex", "aria-label", "loading", "disabled"]);
|
|
14212
14208
|
};
|
|
14213
14209
|
}
|
|
14214
|
-
}),
|
|
14210
|
+
}), Gb = ve(Yb), qb = /* @__PURE__ */ ne({
|
|
14215
14211
|
name: "JTabs",
|
|
14216
14212
|
__name: "tabs",
|
|
14217
14213
|
props: {
|
|
@@ -14264,7 +14260,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14264
14260
|
}, 16, ["model-value", "type", "closable", "addable", "editable", "tab-position", "stretch", "before-leave"]);
|
|
14265
14261
|
};
|
|
14266
14262
|
}
|
|
14267
|
-
}),
|
|
14263
|
+
}), Xb = ve(qb), Zb = /* @__PURE__ */ ne({
|
|
14268
14264
|
name: "JCollapse",
|
|
14269
14265
|
__name: "collapse",
|
|
14270
14266
|
props: {
|
|
@@ -14293,7 +14289,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14293
14289
|
}, 16, ["model-value", "accordion"]);
|
|
14294
14290
|
};
|
|
14295
14291
|
}
|
|
14296
|
-
}),
|
|
14292
|
+
}), Qb = ve(Zb), ew = { class: "j-editor" }, tw = /* @__PURE__ */ ne({
|
|
14297
14293
|
name: "JEditor",
|
|
14298
14294
|
__name: "editor",
|
|
14299
14295
|
props: {
|
|
@@ -14393,7 +14389,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14393
14389
|
), qt(() => {
|
|
14394
14390
|
const u = i.value;
|
|
14395
14391
|
u?.destroy();
|
|
14396
|
-
}), (u, h) => (b(),
|
|
14392
|
+
}), (u, h) => (b(), L("div", ew, [
|
|
14397
14393
|
R("div", {
|
|
14398
14394
|
ref_key: "toolbarRef",
|
|
14399
14395
|
ref: l,
|
|
@@ -14407,10 +14403,10 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14407
14403
|
}, null, 4)
|
|
14408
14404
|
]));
|
|
14409
14405
|
}
|
|
14410
|
-
}),
|
|
14406
|
+
}), nw = /* @__PURE__ */ xc(tw, [["__scopeId", "data-v-179ac616"]]), ow = ve(nw), aw = {
|
|
14411
14407
|
key: 0,
|
|
14412
14408
|
class: "j-map-loading"
|
|
14413
|
-
},
|
|
14409
|
+
}, lw = /* @__PURE__ */ ne({
|
|
14414
14410
|
name: "JMap",
|
|
14415
14411
|
__name: "map",
|
|
14416
14412
|
props: {
|
|
@@ -14516,11 +14512,11 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14516
14512
|
}
|
|
14517
14513
|
}), Ve(() => {
|
|
14518
14514
|
u();
|
|
14519
|
-
}), (m, g) => (b(),
|
|
14515
|
+
}), (m, g) => (b(), L("div", {
|
|
14520
14516
|
class: "j-map",
|
|
14521
14517
|
style: ke({ height: e.height })
|
|
14522
14518
|
}, [
|
|
14523
|
-
l.value ? (b(),
|
|
14519
|
+
l.value ? (b(), L("div", aw, [
|
|
14524
14520
|
J(Mn, {
|
|
14525
14521
|
icon: "mdi:loading",
|
|
14526
14522
|
class: "is-loading",
|
|
@@ -14534,7 +14530,7 @@ const Mb = /* @__PURE__ */ ne({
|
|
|
14534
14530
|
}, null, 512)
|
|
14535
14531
|
], 4));
|
|
14536
14532
|
}
|
|
14537
|
-
}),
|
|
14533
|
+
}), iw = ve(lw);
|
|
14538
14534
|
function Cr(e) {
|
|
14539
14535
|
!e || typeof e.stopPropagation != "function" || e.stopPropagation();
|
|
14540
14536
|
}
|
|
@@ -14578,7 +14574,7 @@ function Bc(e, t, n) {
|
|
|
14578
14574
|
})(), this._findTargetGfx = function(i) {
|
|
14579
14575
|
var r, s;
|
|
14580
14576
|
if (i instanceof MouseEvent)
|
|
14581
|
-
return r = Io(i), s = document.elementFromPoint(r.x, r.y),
|
|
14577
|
+
return r = Io(i), s = document.elementFromPoint(r.x, r.y), rw(s);
|
|
14582
14578
|
};
|
|
14583
14579
|
}
|
|
14584
14580
|
Bc.$inject = [
|
|
@@ -14586,16 +14582,16 @@ Bc.$inject = [
|
|
|
14586
14582
|
"eventBus",
|
|
14587
14583
|
"injector"
|
|
14588
14584
|
];
|
|
14589
|
-
function
|
|
14585
|
+
function rw(e) {
|
|
14590
14586
|
return ws(e, "svg, .djs-element", !0);
|
|
14591
14587
|
}
|
|
14592
|
-
const
|
|
14588
|
+
const sw = {
|
|
14593
14589
|
__init__: [
|
|
14594
14590
|
"hoverFix"
|
|
14595
14591
|
],
|
|
14596
14592
|
hoverFix: ["type", Bc]
|
|
14597
14593
|
};
|
|
14598
|
-
function
|
|
14594
|
+
function cw() {
|
|
14599
14595
|
return /mac/i.test(navigator.platform);
|
|
14600
14596
|
}
|
|
14601
14597
|
function Ic(e, t) {
|
|
@@ -14604,27 +14600,27 @@ function Ic(e, t) {
|
|
|
14604
14600
|
function Fa(e) {
|
|
14605
14601
|
return Ic(e, 0);
|
|
14606
14602
|
}
|
|
14607
|
-
function
|
|
14603
|
+
function uw(e) {
|
|
14608
14604
|
return Ic(e, 1);
|
|
14609
14605
|
}
|
|
14610
|
-
function
|
|
14606
|
+
function dw(e) {
|
|
14611
14607
|
var t = za(e) || e;
|
|
14612
14608
|
return Fa(e) && t.shiftKey;
|
|
14613
14609
|
}
|
|
14614
14610
|
function Vo(e) {
|
|
14615
14611
|
return e.flat().join(",").replace(/,?([A-Za-z]),?/g, "$1");
|
|
14616
14612
|
}
|
|
14617
|
-
function
|
|
14613
|
+
function fw(e) {
|
|
14618
14614
|
return ["M", e.x, e.y];
|
|
14619
14615
|
}
|
|
14620
14616
|
function vl(e) {
|
|
14621
14617
|
return ["L", e.x, e.y];
|
|
14622
14618
|
}
|
|
14623
|
-
function
|
|
14619
|
+
function pw(e, t, n) {
|
|
14624
14620
|
return ["C", e.x, e.y, t.x, t.y, n.x, n.y];
|
|
14625
14621
|
}
|
|
14626
|
-
function
|
|
14627
|
-
const n = e.length, o = [
|
|
14622
|
+
function hw(e, t) {
|
|
14623
|
+
const n = e.length, o = [fw(e[0])];
|
|
14628
14624
|
for (let a = 1; a < n; a++) {
|
|
14629
14625
|
const l = e[a - 1], i = e[a], r = e[a + 1];
|
|
14630
14626
|
if (!r || !t) {
|
|
@@ -14641,7 +14637,7 @@ function vw(e, t) {
|
|
|
14641
14637
|
continue;
|
|
14642
14638
|
}
|
|
14643
14639
|
const c = la(i, l, s), d = la(i, l, s * 0.5), u = la(i, r, s), h = la(i, r, s * 0.5);
|
|
14644
|
-
o.push(vl(c)), o.push(
|
|
14640
|
+
o.push(vl(c)), o.push(pw(d, h, u));
|
|
14645
14641
|
}
|
|
14646
14642
|
return o;
|
|
14647
14643
|
}
|
|
@@ -14663,23 +14659,23 @@ function Pc(e, t, n) {
|
|
|
14663
14659
|
function Lc(e, t) {
|
|
14664
14660
|
const n = parseInt(e.dataset.cornerRadius, 10) || 0;
|
|
14665
14661
|
return Xe(e, {
|
|
14666
|
-
d: Vo(
|
|
14662
|
+
d: Vo(hw(t, n))
|
|
14667
14663
|
}), e;
|
|
14668
14664
|
}
|
|
14669
|
-
function
|
|
14665
|
+
function vw(e) {
|
|
14670
14666
|
return !0;
|
|
14671
14667
|
}
|
|
14672
14668
|
function ia(e) {
|
|
14673
|
-
return Fa(e) ||
|
|
14669
|
+
return Fa(e) || uw(e);
|
|
14674
14670
|
}
|
|
14675
14671
|
var kr = 500;
|
|
14676
14672
|
function Oc(e, t, n) {
|
|
14677
14673
|
var o = this;
|
|
14678
|
-
function a(x, E,
|
|
14674
|
+
function a(x, E, P) {
|
|
14679
14675
|
if (!r(x, E)) {
|
|
14680
14676
|
var A, K, Z;
|
|
14681
|
-
|
|
14682
|
-
element:
|
|
14677
|
+
P ? K = t.getGraphics(P) : (A = E.delegateTarget || E.target, A && (K = A, P = t.get(K))), !(!K || !P) && (Z = e.fire(x, {
|
|
14678
|
+
element: P,
|
|
14683
14679
|
gfx: K,
|
|
14684
14680
|
originalEvent: E
|
|
14685
14681
|
}), Z === !1 && (E.stopPropagation(), E.preventDefault()));
|
|
@@ -14690,8 +14686,8 @@ function Oc(e, t, n) {
|
|
|
14690
14686
|
return l[x];
|
|
14691
14687
|
}
|
|
14692
14688
|
function r(x, E) {
|
|
14693
|
-
var
|
|
14694
|
-
return !
|
|
14689
|
+
var P = c[x] || Fa;
|
|
14690
|
+
return !P(E);
|
|
14695
14691
|
}
|
|
14696
14692
|
var s = {
|
|
14697
14693
|
click: "element.click",
|
|
@@ -14703,37 +14699,37 @@ function Oc(e, t, n) {
|
|
|
14703
14699
|
mouseout: "element.out",
|
|
14704
14700
|
mouseup: "element.mouseup"
|
|
14705
14701
|
}, c = {
|
|
14706
|
-
"element.contextmenu":
|
|
14702
|
+
"element.contextmenu": vw,
|
|
14707
14703
|
"element.mousedown": ia,
|
|
14708
14704
|
"element.mouseup": ia,
|
|
14709
14705
|
"element.click": ia,
|
|
14710
14706
|
"element.dblclick": ia
|
|
14711
14707
|
};
|
|
14712
|
-
function d(x, E,
|
|
14708
|
+
function d(x, E, P) {
|
|
14713
14709
|
var A = s[x];
|
|
14714
14710
|
if (!A)
|
|
14715
14711
|
throw new Error("unmapped DOM event name <" + x + ">");
|
|
14716
|
-
return a(A, E,
|
|
14712
|
+
return a(A, E, P);
|
|
14717
14713
|
}
|
|
14718
14714
|
var u = "svg, .djs-element";
|
|
14719
|
-
function h(x, E,
|
|
14720
|
-
var K = l[
|
|
14721
|
-
a(
|
|
14715
|
+
function h(x, E, P, A) {
|
|
14716
|
+
var K = l[P] = function(Z) {
|
|
14717
|
+
a(P, Z);
|
|
14722
14718
|
};
|
|
14723
|
-
A && (c[
|
|
14719
|
+
A && (c[P] = A), K.$delegate = Oi.bind(x, u, E, K);
|
|
14724
14720
|
}
|
|
14725
|
-
function v(x, E,
|
|
14726
|
-
var A = i(
|
|
14721
|
+
function v(x, E, P) {
|
|
14722
|
+
var A = i(P);
|
|
14727
14723
|
A && Oi.unbind(x, E, A.$delegate);
|
|
14728
14724
|
}
|
|
14729
14725
|
function f(x) {
|
|
14730
|
-
we(s, function(E,
|
|
14731
|
-
h(x,
|
|
14726
|
+
we(s, function(E, P) {
|
|
14727
|
+
h(x, P, E);
|
|
14732
14728
|
});
|
|
14733
14729
|
}
|
|
14734
14730
|
function p(x) {
|
|
14735
|
-
we(s, function(E,
|
|
14736
|
-
v(x,
|
|
14731
|
+
we(s, function(E, P) {
|
|
14732
|
+
v(x, P, E);
|
|
14737
14733
|
});
|
|
14738
14734
|
}
|
|
14739
14735
|
e.on("canvas.destroy", function(x) {
|
|
@@ -14741,20 +14737,20 @@ function Oc(e, t, n) {
|
|
|
14741
14737
|
}), e.on("canvas.init", function(x) {
|
|
14742
14738
|
f(x.svg);
|
|
14743
14739
|
}), e.on(["shape.added", "connection.added"], function(x) {
|
|
14744
|
-
var E = x.element,
|
|
14745
|
-
e.fire("interactionEvents.createHit", { element: E, gfx:
|
|
14740
|
+
var E = x.element, P = x.gfx;
|
|
14741
|
+
e.fire("interactionEvents.createHit", { element: E, gfx: P });
|
|
14746
14742
|
}), e.on([
|
|
14747
14743
|
"shape.changed",
|
|
14748
14744
|
"connection.changed"
|
|
14749
14745
|
], kr, function(x) {
|
|
14750
|
-
var E = x.element,
|
|
14751
|
-
e.fire("interactionEvents.updateHit", { element: E, gfx:
|
|
14746
|
+
var E = x.element, P = x.gfx;
|
|
14747
|
+
e.fire("interactionEvents.updateHit", { element: E, gfx: P });
|
|
14752
14748
|
}), e.on("interactionEvents.createHit", kr, function(x) {
|
|
14753
|
-
var E = x.element,
|
|
14754
|
-
o.createDefaultHit(E,
|
|
14749
|
+
var E = x.element, P = x.gfx;
|
|
14750
|
+
o.createDefaultHit(E, P);
|
|
14755
14751
|
}), e.on("interactionEvents.updateHit", function(x) {
|
|
14756
|
-
var E = x.element,
|
|
14757
|
-
o.updateDefaultHit(E,
|
|
14752
|
+
var E = x.element, P = x.gfx;
|
|
14753
|
+
o.updateDefaultHit(E, P);
|
|
14758
14754
|
});
|
|
14759
14755
|
var m = $("djs-hit djs-hit-stroke"), g = $("djs-hit djs-hit-click-stroke"), y = $("djs-hit djs-hit-all"), S = $("djs-hit djs-hit-no-move"), k = {
|
|
14760
14756
|
all: y,
|
|
@@ -14769,10 +14765,10 @@ function Oc(e, t, n) {
|
|
|
14769
14765
|
}, E || {}), n.cls(x, ["no-fill", "no-border"], E);
|
|
14770
14766
|
}
|
|
14771
14767
|
function w(x, E) {
|
|
14772
|
-
var
|
|
14773
|
-
if (!
|
|
14768
|
+
var P = k[E];
|
|
14769
|
+
if (!P)
|
|
14774
14770
|
throw new Error("invalid hit type <" + E + ">");
|
|
14775
|
-
return Xe(x,
|
|
14771
|
+
return Xe(x, P), x;
|
|
14776
14772
|
}
|
|
14777
14773
|
function T(x, E) {
|
|
14778
14774
|
ft(x, E);
|
|
@@ -14781,28 +14777,28 @@ function Oc(e, t, n) {
|
|
|
14781
14777
|
var E = kd(".djs-hit", x);
|
|
14782
14778
|
we(E, ya);
|
|
14783
14779
|
}, this.createDefaultHit = function(x, E) {
|
|
14784
|
-
var
|
|
14785
|
-
return
|
|
14780
|
+
var P = x.waypoints, A = x.isFrame, K;
|
|
14781
|
+
return P ? this.createWaypointsHit(E, P) : (K = A ? "stroke" : "all", this.createBoxHit(E, K, {
|
|
14786
14782
|
width: x.width,
|
|
14787
14783
|
height: x.height
|
|
14788
14784
|
}));
|
|
14789
14785
|
}, this.createWaypointsHit = function(x, E) {
|
|
14790
|
-
var
|
|
14791
|
-
return w(
|
|
14792
|
-
}, this.createBoxHit = function(x, E,
|
|
14793
|
-
|
|
14786
|
+
var P = Pc(E);
|
|
14787
|
+
return w(P, "stroke"), T(x, P), P;
|
|
14788
|
+
}, this.createBoxHit = function(x, E, P) {
|
|
14789
|
+
P = Be({
|
|
14794
14790
|
x: 0,
|
|
14795
14791
|
y: 0
|
|
14796
|
-
},
|
|
14792
|
+
}, P);
|
|
14797
14793
|
var A = pt("rect");
|
|
14798
|
-
return w(A, E), Xe(A,
|
|
14794
|
+
return w(A, E), Xe(A, P), T(x, A), A;
|
|
14799
14795
|
}, this.updateDefaultHit = function(x, E) {
|
|
14800
|
-
var
|
|
14801
|
-
if (
|
|
14802
|
-
return x.waypoints ? Lc(
|
|
14796
|
+
var P = _o(".djs-hit", E);
|
|
14797
|
+
if (P)
|
|
14798
|
+
return x.waypoints ? Lc(P, x.waypoints) : Xe(P, {
|
|
14803
14799
|
width: x.width,
|
|
14804
14800
|
height: x.height
|
|
14805
|
-
}),
|
|
14801
|
+
}), P;
|
|
14806
14802
|
}, this.fire = a, this.triggerMouseEvent = d, this.mouseHandler = i, this.registerEvent = h, this.unregisterEvent = v;
|
|
14807
14803
|
}
|
|
14808
14804
|
Oc.$inject = [
|
|
@@ -14810,7 +14806,7 @@ Oc.$inject = [
|
|
|
14810
14806
|
"elementRegistry",
|
|
14811
14807
|
"styles"
|
|
14812
14808
|
];
|
|
14813
|
-
const
|
|
14809
|
+
const mw = {
|
|
14814
14810
|
__init__: ["interactionEvents"],
|
|
14815
14811
|
interactionEvents: ["type", Oc]
|
|
14816
14812
|
};
|
|
@@ -14887,7 +14883,7 @@ function Vc(e, t, n, o) {
|
|
|
14887
14883
|
if (i) {
|
|
14888
14884
|
if (c === !1)
|
|
14889
14885
|
return;
|
|
14890
|
-
_t(c) ? t.select(c) : t.select(r.filter(
|
|
14886
|
+
_t(c) ? t.select(c) : t.select(r.filter(gw));
|
|
14891
14887
|
}
|
|
14892
14888
|
}), e.on("connect.end", 500, function(a) {
|
|
14893
14889
|
var l = a.context, i = l.connection;
|
|
@@ -14901,7 +14897,7 @@ function Vc(e, t, n, o) {
|
|
|
14901
14897
|
if (Fa(a)) {
|
|
14902
14898
|
var l = a.element;
|
|
14903
14899
|
l === n.getRootElement() && (l = null);
|
|
14904
|
-
var i = t.isSelected(l), r = t.get().length > 1, s =
|
|
14900
|
+
var i = t.isSelected(l), r = t.get().length > 1, s = dw(a);
|
|
14905
14901
|
if (i && r)
|
|
14906
14902
|
return s ? t.deselect(l) : t.select(l);
|
|
14907
14903
|
i ? t.deselect(l) : t.select(l, s);
|
|
@@ -14914,33 +14910,33 @@ Vc.$inject = [
|
|
|
14914
14910
|
"canvas",
|
|
14915
14911
|
"elementRegistry"
|
|
14916
14912
|
];
|
|
14917
|
-
function
|
|
14913
|
+
function gw(e) {
|
|
14918
14914
|
return !e.hidden;
|
|
14919
14915
|
}
|
|
14920
14916
|
const Da = {
|
|
14921
14917
|
__init__: ["selectionVisuals", "selectionBehavior"],
|
|
14922
14918
|
__depends__: [
|
|
14923
|
-
|
|
14919
|
+
mw
|
|
14924
14920
|
],
|
|
14925
14921
|
selection: ["type", vo],
|
|
14926
14922
|
selectionVisuals: ["type", Rc],
|
|
14927
14923
|
selectionBehavior: ["type", Vc]
|
|
14928
14924
|
};
|
|
14929
|
-
var
|
|
14925
|
+
var yw = /^djs-cursor-.*$/;
|
|
14930
14926
|
function ui(e) {
|
|
14931
14927
|
var t = Ed(document.body);
|
|
14932
|
-
t.removeMatching(
|
|
14928
|
+
t.removeMatching(yw), e && t.add("djs-cursor-" + e);
|
|
14933
14929
|
}
|
|
14934
14930
|
function zc() {
|
|
14935
14931
|
ui(null);
|
|
14936
14932
|
}
|
|
14937
|
-
var
|
|
14933
|
+
var bw = 5e3;
|
|
14938
14934
|
function Fc(e, t) {
|
|
14939
14935
|
t = t || "element.click";
|
|
14940
14936
|
function n() {
|
|
14941
14937
|
return !1;
|
|
14942
14938
|
}
|
|
14943
|
-
return e.once(t,
|
|
14939
|
+
return e.once(t, bw, n), function() {
|
|
14944
14940
|
e.off(t, n);
|
|
14945
14941
|
};
|
|
14946
14942
|
}
|
|
@@ -14956,17 +14952,17 @@ function no(e, t) {
|
|
|
14956
14952
|
y: e.y - t.y
|
|
14957
14953
|
};
|
|
14958
14954
|
}
|
|
14959
|
-
function
|
|
14955
|
+
function ww(e, t) {
|
|
14960
14956
|
return e = _t(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
|
|
14961
14957
|
}
|
|
14962
14958
|
var Wn = Math.round, $r = "djs-drag-active";
|
|
14963
14959
|
function kn(e) {
|
|
14964
14960
|
e.preventDefault();
|
|
14965
14961
|
}
|
|
14966
|
-
function
|
|
14962
|
+
function xw(e) {
|
|
14967
14963
|
return typeof TouchEvent < "u" && e instanceof TouchEvent;
|
|
14968
14964
|
}
|
|
14969
|
-
function
|
|
14965
|
+
function Cw(e) {
|
|
14970
14966
|
return Math.sqrt(Math.pow(e.x, 2) + Math.pow(e.y, 2));
|
|
14971
14967
|
}
|
|
14972
14968
|
function Dc(e, t, n, o) {
|
|
@@ -15000,11 +14996,11 @@ function Dc(e, t, n, o) {
|
|
|
15000
14996
|
k.length && n.select(k);
|
|
15001
14997
|
}
|
|
15002
14998
|
function c(S, k) {
|
|
15003
|
-
var $ = l.payload, w = l.displacement, T = l.globalStart, x = Io(S), E = no(x, T),
|
|
15004
|
-
if (!l.active && (k ||
|
|
14999
|
+
var $ = l.payload, w = l.displacement, T = l.globalStart, x = Io(S), E = no(x, T), P = l.localStart, A = i(x), K = no(A, P);
|
|
15000
|
+
if (!l.active && (k || Cw(E) > l.threshold)) {
|
|
15005
15001
|
if (Be($, {
|
|
15006
|
-
x: Wn(
|
|
15007
|
-
y: Wn(
|
|
15002
|
+
x: Wn(P.x + w.x),
|
|
15003
|
+
y: Wn(P.y + w.y),
|
|
15008
15004
|
dx: 0,
|
|
15009
15005
|
dy: 0
|
|
15010
15006
|
}, { originalEvent: S }), r("start") === !1)
|
|
@@ -15023,7 +15019,7 @@ function Dc(e, t, n, o) {
|
|
|
15023
15019
|
l.active && (S && (l.payload.originalEvent = S, hl(S)), $ = r("end")), $ === !1 && r("rejected"), k = g($ !== !0), r("ended", k);
|
|
15024
15020
|
}
|
|
15025
15021
|
function u(S) {
|
|
15026
|
-
|
|
15022
|
+
ww("Escape", S) && (kn(S), m());
|
|
15027
15023
|
}
|
|
15028
15024
|
function h(S) {
|
|
15029
15025
|
var k;
|
|
@@ -15056,14 +15052,14 @@ function Dc(e, t, n, o) {
|
|
|
15056
15052
|
}
|
|
15057
15053
|
function y(S, k, $, w) {
|
|
15058
15054
|
l && m(!1), typeof k == "string" && (w = $, $ = k, k = null), w = Be({}, a, w || {});
|
|
15059
|
-
var T = w.data || {}, x, E,
|
|
15060
|
-
w.trapClick ? A = h : A = d, S ? (x = za(S) || S, E = Io(S), hl(S), x.type === "dragstart" && kn(x)) : (x = null, E = { x: 0, y: 0 }),
|
|
15055
|
+
var T = w.data || {}, x, E, P, A, K;
|
|
15056
|
+
w.trapClick ? A = h : A = d, S ? (x = za(S) || S, E = Io(S), hl(S), x.type === "dragstart" && kn(x)) : (x = null, E = { x: 0, y: 0 }), P = i(E), k || (k = P), K = xw(x), l = Be({
|
|
15061
15057
|
prefix: $,
|
|
15062
15058
|
data: T,
|
|
15063
15059
|
payload: {},
|
|
15064
15060
|
globalStart: E,
|
|
15065
|
-
displacement: no(k,
|
|
15066
|
-
localStart:
|
|
15061
|
+
displacement: no(k, P),
|
|
15062
|
+
localStart: P,
|
|
15067
15063
|
isTouch: K
|
|
15068
15064
|
}, w), w.manual || (K ? (Ge.bind(document, "touchstart", v, !0), Ge.bind(document, "touchcancel", m, !0), Ge.bind(document, "touchmove", c, !0), Ge.bind(document, "touchend", d, !0)) : (Ge.bind(document, "mousemove", c), Ge.bind(document, "dragstart", kn), Ge.bind(document, "selectstart", kn), Ge.bind(document, "mousedown", A, !0), Ge.bind(document, "mouseup", A, !0)), Ge.bind(document, "keyup", u), e.on("element.hover", f), e.on("element.out", p)), r("init"), w.autoActivate && c(S, !0);
|
|
15069
15065
|
}
|
|
@@ -15081,7 +15077,7 @@ Dc.$inject = [
|
|
|
15081
15077
|
];
|
|
15082
15078
|
const Nc = {
|
|
15083
15079
|
__depends__: [
|
|
15084
|
-
|
|
15080
|
+
sw,
|
|
15085
15081
|
Da
|
|
15086
15082
|
],
|
|
15087
15083
|
dragging: ["type", Dc]
|
|
@@ -15095,12 +15091,12 @@ function Hc(e) {
|
|
|
15095
15091
|
Hc.prototype.next = function() {
|
|
15096
15092
|
return this._prefix + ++this._counter;
|
|
15097
15093
|
};
|
|
15098
|
-
const
|
|
15099
|
-
var
|
|
15094
|
+
const Sw = new Hc("ps");
|
|
15095
|
+
var kw = [
|
|
15100
15096
|
"marker-start",
|
|
15101
15097
|
"marker-mid",
|
|
15102
15098
|
"marker-end"
|
|
15103
|
-
],
|
|
15099
|
+
], Ew = [
|
|
15104
15100
|
"circle",
|
|
15105
15101
|
"ellipse",
|
|
15106
15102
|
"line",
|
|
@@ -15147,37 +15143,37 @@ vn.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
|
|
|
15147
15143
|
var o = this;
|
|
15148
15144
|
e.childNodes && e.childNodes.forEach((a) => {
|
|
15149
15145
|
o._cloneMarkers(a, t, n);
|
|
15150
|
-
}),
|
|
15146
|
+
}), _w(e) && kw.forEach(function(a) {
|
|
15151
15147
|
if (Xe(e, a)) {
|
|
15152
|
-
var l =
|
|
15148
|
+
var l = Tw(e, a, o._canvas.getContainer());
|
|
15153
15149
|
l && o._cloneMarker(n, e, l, a, t);
|
|
15154
15150
|
}
|
|
15155
15151
|
});
|
|
15156
15152
|
};
|
|
15157
15153
|
vn.prototype._cloneMarker = function(e, t, n, o, a = "djs-dragger") {
|
|
15158
|
-
var l = [n.id, a,
|
|
15154
|
+
var l = [n.id, a, Sw.next()].join("-"), i = _o("marker#" + n.id, e);
|
|
15159
15155
|
e = e || this._canvas._svg;
|
|
15160
15156
|
var r = i || Ss(n);
|
|
15161
15157
|
r.id = l, ks(r).add(a);
|
|
15162
15158
|
var s = _o(":scope > defs", e);
|
|
15163
15159
|
s || (s = pt("defs"), ft(e, s)), ft(s, r);
|
|
15164
|
-
var c =
|
|
15160
|
+
var c = $w(r.id);
|
|
15165
15161
|
Xe(t, o, c);
|
|
15166
15162
|
};
|
|
15167
|
-
function
|
|
15168
|
-
var o =
|
|
15163
|
+
function Tw(e, t, n) {
|
|
15164
|
+
var o = jw(Xe(e, t));
|
|
15169
15165
|
return _o("marker#" + o, n || document);
|
|
15170
15166
|
}
|
|
15171
|
-
function
|
|
15167
|
+
function jw(e) {
|
|
15172
15168
|
return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1];
|
|
15173
15169
|
}
|
|
15174
|
-
function
|
|
15170
|
+
function $w(e) {
|
|
15175
15171
|
return "url(#" + e + ")";
|
|
15176
15172
|
}
|
|
15177
|
-
function
|
|
15178
|
-
return
|
|
15173
|
+
function _w(e) {
|
|
15174
|
+
return Ew.indexOf(e.nodeName) !== -1;
|
|
15179
15175
|
}
|
|
15180
|
-
const
|
|
15176
|
+
const Mw = {
|
|
15181
15177
|
__init__: ["previewSupport"],
|
|
15182
15178
|
previewSupport: ["type", vn]
|
|
15183
15179
|
};
|
|
@@ -15193,7 +15189,7 @@ const Wc = {
|
|
|
15193
15189
|
__init__: ["rules"],
|
|
15194
15190
|
rules: ["type", di]
|
|
15195
15191
|
};
|
|
15196
|
-
function
|
|
15192
|
+
function Aw(e) {
|
|
15197
15193
|
return lo(e, function(t) {
|
|
15198
15194
|
return !Qn(e, function(n) {
|
|
15199
15195
|
return n !== t && Uc(t, n);
|
|
@@ -15214,7 +15210,7 @@ function Kc(e, t, n) {
|
|
|
15214
15210
|
_t(l) && l.length && Kc(l, t, n + 1);
|
|
15215
15211
|
});
|
|
15216
15212
|
}
|
|
15217
|
-
function
|
|
15213
|
+
function Bw(e, t, n) {
|
|
15218
15214
|
jd(t) && (t = !0), fn(t) && (n = t, t = !0), n = n || {};
|
|
15219
15215
|
var o = xo(n.allShapes), a = xo(n.allConnections), l = xo(n.enclosedElements), i = xo(n.enclosedConnections), r = xo(
|
|
15220
15216
|
n.topLevel,
|
|
@@ -15263,7 +15259,7 @@ function Jt(e) {
|
|
|
15263
15259
|
function Jc(e) {
|
|
15264
15260
|
return fn(e) && xs(e, "labelTarget");
|
|
15265
15261
|
}
|
|
15266
|
-
var
|
|
15262
|
+
var Iw = "drop-ok", _r = "drop-not-ok", Mr = "attach-ok", Ar = "new-parent", Br = "create", Pw = 2e3;
|
|
15267
15263
|
function Yc(e, t, n, o, a) {
|
|
15268
15264
|
function l(s, c, d, u, h) {
|
|
15269
15265
|
if (!c)
|
|
@@ -15303,7 +15299,7 @@ function Yc(e, t, n, o, a) {
|
|
|
15303
15299
|
}) : m === null || f === null ? null : !1;
|
|
15304
15300
|
}
|
|
15305
15301
|
function i(s, c) {
|
|
15306
|
-
[Mr,
|
|
15302
|
+
[Mr, Iw, _r, Ar].forEach(function(d) {
|
|
15307
15303
|
d === c ? e.addMarker(s, d) : e.removeMarker(s, d);
|
|
15308
15304
|
});
|
|
15309
15305
|
}
|
|
@@ -15352,7 +15348,7 @@ function Yc(e, t, n, o, a) {
|
|
|
15352
15348
|
s && s.prefix === Br && t.cancel();
|
|
15353
15349
|
}
|
|
15354
15350
|
n.on("create.init", function() {
|
|
15355
|
-
n.on("elements.changed", r), n.once(["create.cancel", "create.end"],
|
|
15351
|
+
n.on("elements.changed", r), n.once(["create.cancel", "create.end"], Pw, function() {
|
|
15356
15352
|
n.off("elements.changed", r);
|
|
15357
15353
|
});
|
|
15358
15354
|
}), this.start = function(s, c, d) {
|
|
@@ -15411,7 +15407,7 @@ function Ll(e, t, n) {
|
|
|
15411
15407
|
var o = Od();
|
|
15412
15408
|
o.setTranslate(t, n), Rd(e, o);
|
|
15413
15409
|
}
|
|
15414
|
-
var
|
|
15410
|
+
var Lw = 750;
|
|
15415
15411
|
function Gc(e, t, n, o, a) {
|
|
15416
15412
|
function l(i) {
|
|
15417
15413
|
var r = pt("g");
|
|
@@ -15422,7 +15418,7 @@ function Gc(e, t, n, o, a) {
|
|
|
15422
15418
|
c.hidden || (c.waypoints ? (d = n._createContainer("connection", s), n.drawConnection(Pl(d), c)) : (d = n._createContainer("shape", s), n.drawShape(Pl(d), c), Ll(d, c.x, c.y)), o.addDragger(c, r, d));
|
|
15423
15419
|
}), r;
|
|
15424
15420
|
}
|
|
15425
|
-
t.on("create.move",
|
|
15421
|
+
t.on("create.move", Lw, function(i) {
|
|
15426
15422
|
var r = i.hover, s = i.context, c = s.elements, d = s.dragGroup;
|
|
15427
15423
|
d || (d = s.dragGroup = l(c));
|
|
15428
15424
|
var u;
|
|
@@ -15439,10 +15435,10 @@ Gc.$inject = [
|
|
|
15439
15435
|
"previewSupport",
|
|
15440
15436
|
"styles"
|
|
15441
15437
|
];
|
|
15442
|
-
const
|
|
15438
|
+
const Ow = {
|
|
15443
15439
|
__depends__: [
|
|
15444
15440
|
Nc,
|
|
15445
|
-
|
|
15441
|
+
Mw,
|
|
15446
15442
|
Wc,
|
|
15447
15443
|
Da
|
|
15448
15444
|
],
|
|
@@ -15458,13 +15454,13 @@ function pi(e, t) {
|
|
|
15458
15454
|
Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)
|
|
15459
15455
|
);
|
|
15460
15456
|
}
|
|
15461
|
-
function
|
|
15457
|
+
function Rw(e, t, n, o) {
|
|
15462
15458
|
if (!e || !t || !n)
|
|
15463
15459
|
return !1;
|
|
15464
15460
|
var a = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), l = pi(e, t);
|
|
15465
15461
|
return Math.abs(a / l) <= o;
|
|
15466
15462
|
}
|
|
15467
|
-
var
|
|
15463
|
+
var Vw = 2;
|
|
15468
15464
|
function Lr(e, t) {
|
|
15469
15465
|
var n = Array.from(arguments).flat();
|
|
15470
15466
|
const o = {
|
|
@@ -15472,49 +15468,49 @@ function Lr(e, t) {
|
|
|
15472
15468
|
y: "h"
|
|
15473
15469
|
};
|
|
15474
15470
|
for (const [a, l] of Object.entries(o))
|
|
15475
|
-
if (
|
|
15471
|
+
if (zw(a, n))
|
|
15476
15472
|
return l;
|
|
15477
15473
|
return !1;
|
|
15478
15474
|
}
|
|
15479
|
-
function
|
|
15475
|
+
function zw(e, t) {
|
|
15480
15476
|
const n = t[0];
|
|
15481
15477
|
return _d(t, function(o) {
|
|
15482
|
-
return Math.abs(n[e] - o[e]) <=
|
|
15478
|
+
return Math.abs(n[e] - o[e]) <= Vw;
|
|
15483
15479
|
});
|
|
15484
15480
|
}
|
|
15485
15481
|
function Or(e, t, n) {
|
|
15486
15482
|
return n = n || 0, e.x > t.x - n && e.y > t.y - n && e.x < t.x + t.width + n && e.y < t.y + t.height + n;
|
|
15487
15483
|
}
|
|
15488
|
-
var
|
|
15484
|
+
var Fw = /,?([a-z]),?/gi, Rr = parseFloat, tt = Math, en = tt.PI, Vt = tt.min, zt = tt.max, Vr = tt.pow, cn = tt.abs, Dw = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig, Nw = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig, zr = Array.isArray || function(e) {
|
|
15489
15485
|
return e instanceof Array;
|
|
15490
15486
|
};
|
|
15491
|
-
function
|
|
15487
|
+
function Hw(e, t) {
|
|
15492
15488
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
15493
15489
|
}
|
|
15494
|
-
function
|
|
15490
|
+
function Ww(e, t) {
|
|
15495
15491
|
for (var n = 0, o = e.length; n < o; n++) if (e[n] === t)
|
|
15496
15492
|
return e.push(e.splice(n, 1)[0]);
|
|
15497
15493
|
}
|
|
15498
|
-
function
|
|
15494
|
+
function Uw(e) {
|
|
15499
15495
|
function t() {
|
|
15500
15496
|
var n = Array.prototype.slice.call(arguments, 0), o = n.join("␀"), a = t.cache = t.cache || {}, l = t.count = t.count || [];
|
|
15501
|
-
return
|
|
15497
|
+
return Hw(a, o) ? (Ww(l, o), a[o]) : (l.length >= 1e3 && delete a[l.shift()], l.push(o), a[o] = e(...arguments), a[o]);
|
|
15502
15498
|
}
|
|
15503
15499
|
return t;
|
|
15504
15500
|
}
|
|
15505
|
-
function
|
|
15501
|
+
function Kw(e) {
|
|
15506
15502
|
if (!e)
|
|
15507
15503
|
return null;
|
|
15508
15504
|
var t = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, n = [];
|
|
15509
|
-
return String(e).replace(
|
|
15505
|
+
return String(e).replace(Dw, function(o, a, l) {
|
|
15510
15506
|
var i = [], r = a.toLowerCase();
|
|
15511
|
-
for (l.replace(
|
|
15507
|
+
for (l.replace(Nw, function(s, c) {
|
|
15512
15508
|
c && i.push(+c);
|
|
15513
15509
|
}), r == "m" && i.length > 2 && (n.push([a, ...i.splice(0, 2)]), r = "l", a = a == "m" ? "l" : "L"); i.length >= t[r] && (n.push([a, ...i.splice(0, t[r])]), !!t[r]); )
|
|
15514
15510
|
;
|
|
15515
15511
|
}), n.toString = hi, n;
|
|
15516
15512
|
}
|
|
15517
|
-
function
|
|
15513
|
+
function Jw(e) {
|
|
15518
15514
|
for (var t = 0, n = e.length; t < n; t++) {
|
|
15519
15515
|
var o = e[t][0];
|
|
15520
15516
|
if (typeof o == "string" && o !== o.toUpperCase())
|
|
@@ -15522,7 +15518,7 @@ function Yw(e) {
|
|
|
15522
15518
|
}
|
|
15523
15519
|
return !0;
|
|
15524
15520
|
}
|
|
15525
|
-
function
|
|
15521
|
+
function Yw(e) {
|
|
15526
15522
|
for (var t = 0, n = e.length; t < n; t++) {
|
|
15527
15523
|
var o = e[t][0];
|
|
15528
15524
|
if (o !== "M" && o !== "C")
|
|
@@ -15541,9 +15537,9 @@ function Ol(e, t, n, o) {
|
|
|
15541
15537
|
};
|
|
15542
15538
|
}
|
|
15543
15539
|
function hi() {
|
|
15544
|
-
return this.join(",").replace(
|
|
15540
|
+
return this.join(",").replace(Fw, "$1");
|
|
15545
15541
|
}
|
|
15546
|
-
function
|
|
15542
|
+
function Gw(e) {
|
|
15547
15543
|
for (var t = new Array(e.length), n = 0, o = e.length; n < o; n++)
|
|
15548
15544
|
for (var a = e[n], l = t[n] = new Array(a.length), i = 0, r = a.length; i < r; i++)
|
|
15549
15545
|
l[i] = a[i];
|
|
@@ -15557,7 +15553,7 @@ function Fr(e, t, n, o, a, l, i, r, s) {
|
|
|
15557
15553
|
};
|
|
15558
15554
|
}
|
|
15559
15555
|
function Dr(e) {
|
|
15560
|
-
var t =
|
|
15556
|
+
var t = n1(...e);
|
|
15561
15557
|
return Ol(
|
|
15562
15558
|
t.x0,
|
|
15563
15559
|
t.y0,
|
|
@@ -15568,7 +15564,7 @@ function Dr(e) {
|
|
|
15568
15564
|
function tn(e, t, n) {
|
|
15569
15565
|
return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height;
|
|
15570
15566
|
}
|
|
15571
|
-
function
|
|
15567
|
+
function qw(e, t) {
|
|
15572
15568
|
return e = Ol(e), t = Ol(t), tn(t, e.x, e.y) || tn(t, e.x2, e.y) || tn(t, e.x, e.y2) || tn(t, e.x2, e.y2) || tn(e, t.x, t.y) || tn(e, t.x2, t.y) || tn(e, t.x, t.y2) || tn(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y);
|
|
15573
15569
|
}
|
|
15574
15570
|
function Nr(e, t, n, o, a) {
|
|
@@ -15583,7 +15579,7 @@ function Hr(e, t, n, o, a, l, i, r, s) {
|
|
|
15583
15579
|
}
|
|
15584
15580
|
return c * v;
|
|
15585
15581
|
}
|
|
15586
|
-
function
|
|
15582
|
+
function Xw(e, t, n, o, a, l, i, r) {
|
|
15587
15583
|
if (!(zt(e, n) < Vt(a, i) || Vt(e, n) > zt(a, i) || zt(t, o) < Vt(l, r) || Vt(t, o) > zt(l, r))) {
|
|
15588
15584
|
var s = (e * o - t * n) * (a - i) - (e - n) * (a * r - l * i), c = (e * o - t * n) * (l - r) - (t - o) * (a * r - l * i), d = (e - n) * (l - r) - (t - o) * (a - i);
|
|
15589
15585
|
if (d) {
|
|
@@ -15596,9 +15592,9 @@ function Zw(e, t, n, o, a, l, i, r) {
|
|
|
15596
15592
|
function ja(e) {
|
|
15597
15593
|
return Math.round(e * 1e11) / 1e11;
|
|
15598
15594
|
}
|
|
15599
|
-
function
|
|
15595
|
+
function Zw(e, t, n) {
|
|
15600
15596
|
var o = Dr(e), a = Dr(t);
|
|
15601
|
-
if (!
|
|
15597
|
+
if (!qw(o, a))
|
|
15602
15598
|
return [];
|
|
15603
15599
|
var l = Hr(...e), i = Hr(...t), r = Wr(e) ? 1 : ~~(l / 5) || 1, s = Wr(t) ? 1 : ~~(i / 5) || 1, c = new Array(r + 1), d = new Array(s + 1), u = {}, h = [], v, f;
|
|
15604
15600
|
for (v = 0; v < r + 1; v++) {
|
|
@@ -15609,7 +15605,7 @@ function Qw(e, t, n) {
|
|
|
15609
15605
|
p = Fr(...t, v / s), d[v] = { x: p.x, y: p.y, t: v / s };
|
|
15610
15606
|
for (v = 0; v < r; v++)
|
|
15611
15607
|
for (f = 0; f < s; f++) {
|
|
15612
|
-
var m = c[v], g = c[v + 1], y = d[f], S = d[f + 1], k = cn(g.x - m.x) < 0.01 ? "y" : "x", $ = cn(S.x - y.x) < 0.01 ? "y" : "x", w =
|
|
15608
|
+
var m = c[v], g = c[v + 1], y = d[f], S = d[f + 1], k = cn(g.x - m.x) < 0.01 ? "y" : "x", $ = cn(S.x - y.x) < 0.01 ? "y" : "x", w = Xw(m.x, m.y, g.x, g.y, y.x, y.y, S.x, S.y), T;
|
|
15613
15609
|
if (w) {
|
|
15614
15610
|
if (T = w.x.toFixed(9) + "#" + w.y.toFixed(9), u[T])
|
|
15615
15611
|
continue;
|
|
@@ -15625,7 +15621,7 @@ function Qw(e, t, n) {
|
|
|
15625
15621
|
}
|
|
15626
15622
|
return h;
|
|
15627
15623
|
}
|
|
15628
|
-
function
|
|
15624
|
+
function Qw(e, t, n) {
|
|
15629
15625
|
e = Kr(e), t = Kr(t);
|
|
15630
15626
|
for (var o, a, l, i, r, s, c, d, u, h, v = [], f = 0, p = e.length; f < p; f++) {
|
|
15631
15627
|
var m = e[f];
|
|
@@ -15639,7 +15635,7 @@ function e1(e, t, n) {
|
|
|
15639
15635
|
l = c = S[1], i = d = S[2];
|
|
15640
15636
|
else {
|
|
15641
15637
|
S[0] == "C" ? (h = [l, i, ...S.slice(1)], l = h[6], i = h[7]) : (h = [l, i, l, i, c, d, c, d], l = c, i = d);
|
|
15642
|
-
var k =
|
|
15638
|
+
var k = Zw(u, h);
|
|
15643
15639
|
{
|
|
15644
15640
|
for (var $ = 0, w = k.length; $ < w; $++)
|
|
15645
15641
|
k[$].segment1 = f, k[$].segment2 = g, k[$].bez1 = u, k[$].bez2 = h;
|
|
@@ -15651,11 +15647,11 @@ function e1(e, t, n) {
|
|
|
15651
15647
|
}
|
|
15652
15648
|
return v;
|
|
15653
15649
|
}
|
|
15654
|
-
function
|
|
15650
|
+
function e1(e) {
|
|
15655
15651
|
return zr(e) && zr(e[0]);
|
|
15656
15652
|
}
|
|
15657
|
-
function
|
|
15658
|
-
if (
|
|
15653
|
+
function t1(e) {
|
|
15654
|
+
if (Jw(e))
|
|
15659
15655
|
return e;
|
|
15660
15656
|
var t = new Array(e.length), n = 0, o = 0, a = 0, l = 0, i = 0, r;
|
|
15661
15657
|
e[0][0] == "M" && (n = +e[0][1], o = +e[0][2], a = n, l = o, i++, t[0] = ["M", n, o]);
|
|
@@ -15723,7 +15719,7 @@ function Ur(e, t, n, o, a, l) {
|
|
|
15723
15719
|
];
|
|
15724
15720
|
}
|
|
15725
15721
|
function qc(e, t, n, o, a, l, i, r, s, c) {
|
|
15726
|
-
var d = en * 120 / 180, u = en / 180 * (+a || 0), h = [], v, f =
|
|
15722
|
+
var d = en * 120 / 180, u = en / 180 * (+a || 0), h = [], v, f = Uw(function(ge, Me, Ye) {
|
|
15727
15723
|
var X = ge * tt.cos(Ye) - Me * tt.sin(Ye), ce = ge * tt.sin(Ye) + Me * tt.cos(Ye);
|
|
15728
15724
|
return { x: X, y: ce };
|
|
15729
15725
|
});
|
|
@@ -15738,8 +15734,8 @@ function qc(e, t, n, o, a, l, i, r, s, c) {
|
|
|
15738
15734
|
}
|
|
15739
15735
|
var E = x - T;
|
|
15740
15736
|
if (cn(E) > d) {
|
|
15741
|
-
var
|
|
15742
|
-
x = T + d * (i && x > T ? 1 : -1), r = $ + n * tt.cos(x), s = w + o * tt.sin(x), h = qc(r, s, n, o, a, 0, i, A, K, [x,
|
|
15737
|
+
var P = x, A = r, K = s;
|
|
15738
|
+
x = T + d * (i && x > T ? 1 : -1), r = $ + n * tt.cos(x), s = w + o * tt.sin(x), h = qc(r, s, n, o, a, 0, i, A, K, [x, P, $, w]);
|
|
15743
15739
|
}
|
|
15744
15740
|
E = x - T;
|
|
15745
15741
|
var Z = tt.cos(T), H = tt.sin(T), B = tt.cos(x), C = tt.sin(x), O = tt.tan(E / 4), z = 4 / 3 * n * O, Q = 4 / 3 * o * O, se = [e, t], pe = [e + z * H, t - Q * Z], Te = [r + z * C, s - Q * B], Je = [r, s];
|
|
@@ -15750,7 +15746,7 @@ function qc(e, t, n, o, a, l, i, r, s, c) {
|
|
|
15750
15746
|
ee[Ie] = Ie % 2 ? f(h[Ie - 1], h[Ie], u).y : f(h[Ie], h[Ie + 1], u).x;
|
|
15751
15747
|
return ee;
|
|
15752
15748
|
}
|
|
15753
|
-
function
|
|
15749
|
+
function n1(e, t, n, o, a, l, i, r) {
|
|
15754
15750
|
for (var s = [], c = [[], []], d, u, h, v, f, p, m, g, y = 0; y < 2; ++y) {
|
|
15755
15751
|
if (y == 0 ? (u = 6 * e - 12 * n + 6 * a, d = -3 * e + 9 * n - 9 * a + 3 * i, h = 3 * n - 3 * e) : (u = 6 * t - 12 * o + 6 * l, d = -3 * t + 9 * o - 9 * l + 3 * r, h = 3 * o - 3 * t), cn(d) < 1e-12) {
|
|
15756
15752
|
if (cn(u) < 1e-12)
|
|
@@ -15770,9 +15766,9 @@ function o1(e, t, n, o, a, l, i, r) {
|
|
|
15770
15766
|
};
|
|
15771
15767
|
}
|
|
15772
15768
|
function Kr(e) {
|
|
15773
|
-
if (
|
|
15769
|
+
if (e1(e) || (e = Kw(e)), Yw(e))
|
|
15774
15770
|
return e;
|
|
15775
|
-
for (var t =
|
|
15771
|
+
for (var t = Gw(t1(e)), n = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }, o = function(h, v, f) {
|
|
15776
15772
|
var p, m;
|
|
15777
15773
|
if (!h)
|
|
15778
15774
|
return ["C", v.x, v.y, v.x, v.y, v.x, v.y];
|
|
@@ -15834,17 +15830,17 @@ function Jr(e) {
|
|
|
15834
15830
|
left: e.x
|
|
15835
15831
|
};
|
|
15836
15832
|
}
|
|
15837
|
-
function
|
|
15833
|
+
function o1(e) {
|
|
15838
15834
|
return To({
|
|
15839
15835
|
x: e.x + (e.width || 0) / 2,
|
|
15840
15836
|
y: e.y + (e.height || 0) / 2
|
|
15841
15837
|
});
|
|
15842
15838
|
}
|
|
15843
|
-
function
|
|
15839
|
+
function a1(e) {
|
|
15844
15840
|
for (var t = e.waypoints, n = t.reduce(function(c, d, u) {
|
|
15845
15841
|
var h = t[u - 1];
|
|
15846
15842
|
if (h) {
|
|
15847
|
-
var v = c[c.length - 1], f = v && v.endLength || 0, p =
|
|
15843
|
+
var v = c[c.length - 1], f = v && v.endLength || 0, p = r1(h, d);
|
|
15848
15844
|
c.push({
|
|
15849
15845
|
start: h,
|
|
15850
15846
|
end: d,
|
|
@@ -15865,24 +15861,24 @@ function l1(e) {
|
|
|
15865
15861
|
return s;
|
|
15866
15862
|
}
|
|
15867
15863
|
function Wt(e) {
|
|
15868
|
-
return Jt(e) ?
|
|
15864
|
+
return Jt(e) ? a1(e) : o1(e);
|
|
15869
15865
|
}
|
|
15870
15866
|
function zo(e, t, n) {
|
|
15871
15867
|
n = n || 0, fn(n) || (n = { x: n, y: n });
|
|
15872
15868
|
var o = Jr(e), a = Jr(t), l = o.bottom + n.y <= a.top, i = o.left - n.x >= a.right, r = o.top - n.y >= a.bottom, s = o.right + n.x <= a.left, c = l ? "top" : r ? "bottom" : null, d = s ? "left" : i ? "right" : null;
|
|
15873
15869
|
return d && c ? c + "-" + d : d || c || "intersect";
|
|
15874
15870
|
}
|
|
15875
|
-
function
|
|
15876
|
-
var o =
|
|
15871
|
+
function l1(e, t, n) {
|
|
15872
|
+
var o = i1(e, t);
|
|
15877
15873
|
return o.length === 1 || o.length === 2 && pi(o[0], o[1]) < 1 ? To(o[0]) : o.length > 1 ? (o = Cs(o, function(a) {
|
|
15878
15874
|
var l = Math.floor(a.t2 * 100) || 1;
|
|
15879
15875
|
return l = 100 - l, l = (l < 10 ? "0" : "") + l, a.segment2 + "#" + l;
|
|
15880
15876
|
}), To(o[n ? 0 : o.length - 1])) : null;
|
|
15881
15877
|
}
|
|
15882
|
-
function
|
|
15883
|
-
return
|
|
15878
|
+
function i1(e, t) {
|
|
15879
|
+
return Qw(e, t);
|
|
15884
15880
|
}
|
|
15885
|
-
function
|
|
15881
|
+
function r1(e, t) {
|
|
15886
15882
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
15887
15883
|
}
|
|
15888
15884
|
function Xc(e, t, n, o) {
|
|
@@ -15942,7 +15938,7 @@ function Rl(e) {
|
|
|
15942
15938
|
var t = e.hover, n = e.source, o = e.target;
|
|
15943
15939
|
return t && n && t === n && n !== o;
|
|
15944
15940
|
}
|
|
15945
|
-
var
|
|
15941
|
+
var s1 = 1100, c1 = 900, Yr = "connect-ok", Gr = "connect-not-ok";
|
|
15946
15942
|
function Zc(e, t, n) {
|
|
15947
15943
|
var o = e.get("connectionPreview", !1);
|
|
15948
15944
|
o && t.on("connect.move", function(a) {
|
|
@@ -15956,13 +15952,13 @@ function Zc(e, t, n) {
|
|
|
15956
15952
|
connectionStart: f,
|
|
15957
15953
|
connectionEnd: p
|
|
15958
15954
|
});
|
|
15959
|
-
}), t.on("connect.hover",
|
|
15955
|
+
}), t.on("connect.hover", c1, function(a) {
|
|
15960
15956
|
var l = a.context, i = a.hover, r = l.canExecute;
|
|
15961
15957
|
r !== null && n.addMarker(i, r ? Yr : Gr);
|
|
15962
15958
|
}), t.on([
|
|
15963
15959
|
"connect.out",
|
|
15964
15960
|
"connect.cleanup"
|
|
15965
|
-
],
|
|
15961
|
+
], s1, function(a) {
|
|
15966
15962
|
var l = a.hover;
|
|
15967
15963
|
l && (n.removeMarker(l, Yr), n.removeMarker(l, Gr));
|
|
15968
15964
|
}), o && t.on("connect.cleanup", function(a) {
|
|
@@ -15974,7 +15970,7 @@ Zc.$inject = [
|
|
|
15974
15970
|
"eventBus",
|
|
15975
15971
|
"canvas"
|
|
15976
15972
|
];
|
|
15977
|
-
const
|
|
15973
|
+
const u1 = {
|
|
15978
15974
|
__depends__: [
|
|
15979
15975
|
Da,
|
|
15980
15976
|
Wc,
|
|
@@ -15986,7 +15982,7 @@ const d1 = {
|
|
|
15986
15982
|
connect: ["type", Xc],
|
|
15987
15983
|
connectPreview: ["type", Zc]
|
|
15988
15984
|
};
|
|
15989
|
-
var
|
|
15985
|
+
var d1 = 15;
|
|
15990
15986
|
function Qc(e, t) {
|
|
15991
15987
|
var n;
|
|
15992
15988
|
function o(r) {
|
|
@@ -15997,7 +15993,7 @@ function Qc(e, t) {
|
|
|
15997
15993
|
});
|
|
15998
15994
|
function a(r) {
|
|
15999
15995
|
var s = n.start, c = n.button, d = Io(r), u = no(d, s);
|
|
16000
|
-
if (!n.dragging &&
|
|
15996
|
+
if (!n.dragging && f1(u) > d1 && (n.dragging = !0, c === 0 && Fc(e), ui("grab")), n.dragging) {
|
|
16001
15997
|
var h = n.last || n.start;
|
|
16002
15998
|
u = no(d, h), t.scroll({
|
|
16003
15999
|
dx: u.x,
|
|
@@ -16027,10 +16023,10 @@ Qc.$inject = [
|
|
|
16027
16023
|
"eventBus",
|
|
16028
16024
|
"canvas"
|
|
16029
16025
|
];
|
|
16030
|
-
function
|
|
16026
|
+
function f1(e) {
|
|
16031
16027
|
return Math.sqrt(Math.pow(e.x, 2) + Math.pow(e.y, 2));
|
|
16032
16028
|
}
|
|
16033
|
-
const
|
|
16029
|
+
const p1 = {
|
|
16034
16030
|
__init__: ["moveCanvas"],
|
|
16035
16031
|
moveCanvas: ["type", Qc]
|
|
16036
16032
|
};
|
|
@@ -16041,14 +16037,14 @@ function eu(e, t) {
|
|
|
16041
16037
|
var n = Vl(e.min), o = Vl(e.max), a = Math.abs(n) + Math.abs(o);
|
|
16042
16038
|
return a / t;
|
|
16043
16039
|
}
|
|
16044
|
-
function
|
|
16040
|
+
function h1(e, t) {
|
|
16045
16041
|
return Math.max(e.min, Math.min(e.max, t));
|
|
16046
16042
|
}
|
|
16047
|
-
var
|
|
16043
|
+
var v1 = Math.sign || function(e) {
|
|
16048
16044
|
return e >= 0 ? 1 : -1;
|
|
16049
|
-
}, vi = { min: 0.2, max: 4 }, tu = 10,
|
|
16045
|
+
}, vi = { min: 0.2, max: 4 }, tu = 10, m1 = 0.1, g1 = 0.75;
|
|
16050
16046
|
function Ut(e, t, n) {
|
|
16051
|
-
e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = Md(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale ||
|
|
16047
|
+
e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = Md(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || g1;
|
|
16052
16048
|
var o = this;
|
|
16053
16049
|
t.on("canvas.focus.changed", function(a) {
|
|
16054
16050
|
o._init(a.focused && e.enabled !== !1);
|
|
@@ -16067,13 +16063,13 @@ Ut.prototype.reset = function() {
|
|
|
16067
16063
|
};
|
|
16068
16064
|
Ut.prototype.zoom = function(t, n) {
|
|
16069
16065
|
var o = eu(vi, tu * 2);
|
|
16070
|
-
this._totalDelta += t, Math.abs(this._totalDelta) >
|
|
16066
|
+
this._totalDelta += t, Math.abs(this._totalDelta) > m1 && (this._zoom(t, n, o), this._totalDelta = 0);
|
|
16071
16067
|
};
|
|
16072
16068
|
Ut.prototype._handleWheel = function(t) {
|
|
16073
16069
|
if (this._canvas.isFocused()) {
|
|
16074
16070
|
var n = this._container;
|
|
16075
16071
|
t.preventDefault();
|
|
16076
|
-
var o = t.ctrlKey ||
|
|
16072
|
+
var o = t.ctrlKey || cw() && t.metaKey, a = t.shiftKey, l = -1 * this._scale, i;
|
|
16077
16073
|
if (o ? l *= t.deltaMode === 0 ? 0.02 : 0.32 : l *= t.deltaMode === 0 ? 1 : 16, o) {
|
|
16078
16074
|
var r = n.getBoundingClientRect(), s = {
|
|
16079
16075
|
x: t.clientX - r.left,
|
|
@@ -16081,7 +16077,7 @@ Ut.prototype._handleWheel = function(t) {
|
|
|
16081
16077
|
};
|
|
16082
16078
|
i = Math.sqrt(
|
|
16083
16079
|
Math.pow(t.deltaY, 2) + Math.pow(t.deltaX, 2)
|
|
16084
|
-
) *
|
|
16080
|
+
) * v1(t.deltaY) * l, this.zoom(i, s);
|
|
16085
16081
|
} else
|
|
16086
16082
|
a ? i = {
|
|
16087
16083
|
dx: l * t.deltaY,
|
|
@@ -16100,7 +16096,7 @@ Ut.prototype._zoom = function(e, t, n) {
|
|
|
16100
16096
|
var o = this._canvas, a = e > 0 ? 1 : -1, l = Vl(o.zoom()), i = Math.round(l / n) * n;
|
|
16101
16097
|
i += n * a;
|
|
16102
16098
|
var r = Math.pow(10, i);
|
|
16103
|
-
o.zoom(
|
|
16099
|
+
o.zoom(h1(vi, r), t);
|
|
16104
16100
|
};
|
|
16105
16101
|
Ut.prototype.toggle = function(t) {
|
|
16106
16102
|
var n = this._container, o = this._handleWheel, a = this._enabled;
|
|
@@ -16109,7 +16105,7 @@ Ut.prototype.toggle = function(t) {
|
|
|
16109
16105
|
Ut.prototype._init = function(e) {
|
|
16110
16106
|
this.toggle(e);
|
|
16111
16107
|
};
|
|
16112
|
-
const
|
|
16108
|
+
const y1 = {
|
|
16113
16109
|
__init__: ["zoomScroll"],
|
|
16114
16110
|
zoomScroll: ["type", Ut]
|
|
16115
16111
|
};
|
|
@@ -16250,7 +16246,7 @@ qe.prototype._setHandler = function(e, t) {
|
|
|
16250
16246
|
throw new Error("overriding handler for command <" + e + ">");
|
|
16251
16247
|
this._handlerMap[e] = t;
|
|
16252
16248
|
};
|
|
16253
|
-
const
|
|
16249
|
+
const b1 = {
|
|
16254
16250
|
commandStack: ["type", qe]
|
|
16255
16251
|
};
|
|
16256
16252
|
function mo(e, t) {
|
|
@@ -16289,18 +16285,18 @@ function oo(e, t) {
|
|
|
16289
16285
|
return e;
|
|
16290
16286
|
}
|
|
16291
16287
|
}
|
|
16292
|
-
var
|
|
16288
|
+
var w1 = 1e3;
|
|
16293
16289
|
function Ct(e) {
|
|
16294
16290
|
this._eventBus = e;
|
|
16295
16291
|
}
|
|
16296
16292
|
Ct.$inject = ["eventBus"];
|
|
16297
|
-
function
|
|
16293
|
+
function x1(e, t) {
|
|
16298
16294
|
return function(n) {
|
|
16299
16295
|
return e.call(t || null, n.context, n.command, n);
|
|
16300
16296
|
};
|
|
16301
16297
|
}
|
|
16302
16298
|
Ct.prototype.on = function(e, t, n, o, a, l) {
|
|
16303
|
-
if ((fa(t) || Ft(t)) && (l = a, a = o, o = n, n = t, t = null), fa(n) && (l = a, a = o, o = n, n =
|
|
16299
|
+
if ((fa(t) || Ft(t)) && (l = a, a = o, o = n, n = t, t = null), fa(n) && (l = a, a = o, o = n, n = w1), fn(a) && (l = a, a = !1), !fa(o))
|
|
16304
16300
|
throw new Error("handlerFn must be a function");
|
|
16305
16301
|
_t(e) || (e = [e]);
|
|
16306
16302
|
var i = this._eventBus;
|
|
@@ -16308,7 +16304,7 @@ Ct.prototype.on = function(e, t, n, o, a, l) {
|
|
|
16308
16304
|
var s = ["commandStack", r, t].filter(function(c) {
|
|
16309
16305
|
return c;
|
|
16310
16306
|
}).join(".");
|
|
16311
|
-
i.on(s, n, a ?
|
|
16307
|
+
i.on(s, n, a ? x1(o, l) : o, l);
|
|
16312
16308
|
});
|
|
16313
16309
|
};
|
|
16314
16310
|
Ct.prototype.canExecute = Xt("canExecute");
|
|
@@ -16325,14 +16321,14 @@ function Xt(e) {
|
|
|
16325
16321
|
(fa(n) || Ft(n)) && (i = l, l = a, a = o, o = n, n = null), this.on(n, e, o, a, l, i);
|
|
16326
16322
|
};
|
|
16327
16323
|
}
|
|
16328
|
-
var
|
|
16324
|
+
var C1 = 250, qr = 1400;
|
|
16329
16325
|
function gi(e, t, n) {
|
|
16330
16326
|
Ct.call(this, t);
|
|
16331
16327
|
var o = e.get("movePreview", !1);
|
|
16332
16328
|
t.on("shape.move.start", qr, function(a) {
|
|
16333
16329
|
var l = a.context, i = l.shapes, r = l.validatedShapes;
|
|
16334
16330
|
l.shapes = Xr(i), l.validatedShapes = Xr(r);
|
|
16335
|
-
}), o && t.on("shape.move.start",
|
|
16331
|
+
}), o && t.on("shape.move.start", C1, function(a) {
|
|
16336
16332
|
var l = a.context, i = l.shapes, r = [];
|
|
16337
16333
|
we(i, function(s) {
|
|
16338
16334
|
we(s.labels, function(c) {
|
|
@@ -16375,7 +16371,7 @@ function Xr(e) {
|
|
|
16375
16371
|
return e.indexOf(t.labelTarget) === -1;
|
|
16376
16372
|
});
|
|
16377
16373
|
}
|
|
16378
|
-
const
|
|
16374
|
+
const S1 = {
|
|
16379
16375
|
__init__: ["labelSupport"],
|
|
16380
16376
|
labelSupport: ["type", gi]
|
|
16381
16377
|
};
|
|
@@ -16394,7 +16390,7 @@ function ou(e, t) {
|
|
|
16394
16390
|
}
|
|
16395
16391
|
return e;
|
|
16396
16392
|
}
|
|
16397
|
-
function
|
|
16393
|
+
function k1(e, t, n, o) {
|
|
16398
16394
|
var a = n.inverse;
|
|
16399
16395
|
return Object.defineProperty(e, "remove", {
|
|
16400
16396
|
value: function(l) {
|
|
@@ -16419,14 +16415,14 @@ function E1(e, t, n, o) {
|
|
|
16419
16415
|
value: !0
|
|
16420
16416
|
}), e;
|
|
16421
16417
|
}
|
|
16422
|
-
function
|
|
16418
|
+
function E1(e) {
|
|
16423
16419
|
return e.__refs_collection === !0;
|
|
16424
16420
|
}
|
|
16425
|
-
function
|
|
16421
|
+
function T1(e, t) {
|
|
16426
16422
|
return Object.prototype.hasOwnProperty.call(e, t.name || t);
|
|
16427
16423
|
}
|
|
16428
16424
|
function au(e, t, n) {
|
|
16429
|
-
var o =
|
|
16425
|
+
var o = k1(n[t.name] || [], e, t, n);
|
|
16430
16426
|
Object.defineProperty(n, t.name, {
|
|
16431
16427
|
enumerable: t.enumerable,
|
|
16432
16428
|
value: o
|
|
@@ -16434,7 +16430,7 @@ function au(e, t, n) {
|
|
|
16434
16430
|
e.set(a, t.inverse, n);
|
|
16435
16431
|
});
|
|
16436
16432
|
}
|
|
16437
|
-
function
|
|
16433
|
+
function j1(e, t, n) {
|
|
16438
16434
|
var o = t.inverse, a = n[t.name];
|
|
16439
16435
|
Object.defineProperty(n, t.name, {
|
|
16440
16436
|
configurable: t.configurable,
|
|
@@ -16461,14 +16457,14 @@ It.prototype.bind = function(e, t) {
|
|
|
16461
16457
|
throw new Error("no property <" + t + "> in ref");
|
|
16462
16458
|
t = this.props[t];
|
|
16463
16459
|
}
|
|
16464
|
-
t.collection ? au(this, t, e) :
|
|
16460
|
+
t.collection ? au(this, t, e) : j1(this, t, e);
|
|
16465
16461
|
};
|
|
16466
16462
|
It.prototype.ensureRefsCollection = function(e, t) {
|
|
16467
16463
|
var n = e[t.name];
|
|
16468
|
-
return
|
|
16464
|
+
return E1(n) || au(this, t, e), n;
|
|
16469
16465
|
};
|
|
16470
16466
|
It.prototype.ensureBound = function(e, t) {
|
|
16471
|
-
|
|
16467
|
+
T1(e, t) || this.bind(e, t);
|
|
16472
16468
|
};
|
|
16473
16469
|
It.prototype.unset = function(e, t, n) {
|
|
16474
16470
|
e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).remove(n) : e[t.name] = void 0);
|
|
@@ -16506,19 +16502,19 @@ function uu() {
|
|
|
16506
16502
|
go.call(this), iu.bind(this, "source"), ru.bind(this, "target");
|
|
16507
16503
|
}
|
|
16508
16504
|
mo(uu, go);
|
|
16509
|
-
var
|
|
16505
|
+
var $1 = {
|
|
16510
16506
|
connection: uu,
|
|
16511
16507
|
shape: Fo,
|
|
16512
16508
|
label: cu,
|
|
16513
16509
|
root: su
|
|
16514
16510
|
};
|
|
16515
|
-
function
|
|
16516
|
-
var n =
|
|
16511
|
+
function _1(e, t) {
|
|
16512
|
+
var n = $1[e];
|
|
16517
16513
|
if (!n)
|
|
16518
16514
|
throw new Error("unknown type: <" + e + ">");
|
|
16519
16515
|
return Be(new n(), t);
|
|
16520
16516
|
}
|
|
16521
|
-
function
|
|
16517
|
+
function M1(e) {
|
|
16522
16518
|
return e instanceof go;
|
|
16523
16519
|
}
|
|
16524
16520
|
function gn() {
|
|
@@ -16537,9 +16533,9 @@ gn.prototype.createConnection = function(e) {
|
|
|
16537
16533
|
return this.create("connection", e);
|
|
16538
16534
|
};
|
|
16539
16535
|
gn.prototype.create = function(e, t) {
|
|
16540
|
-
return t = Be({}, t || {}), t.id || (t.id = e + "_" + this._uid++),
|
|
16536
|
+
return t = Be({}, t || {}), t.id || (t.id = e + "_" + this._uid++), _1(e, t);
|
|
16541
16537
|
};
|
|
16542
|
-
const
|
|
16538
|
+
const A1 = {
|
|
16543
16539
|
width: 90,
|
|
16544
16540
|
height: 20
|
|
16545
16541
|
};
|
|
@@ -16550,7 +16546,7 @@ Lo(On, gn);
|
|
|
16550
16546
|
On.$inject = [];
|
|
16551
16547
|
On.prototype.baseCreate = gn.prototype.create;
|
|
16552
16548
|
On.prototype.create = function(e, t) {
|
|
16553
|
-
return e === "label" ? this.baseCreate(e, Ot({ type: "label" },
|
|
16549
|
+
return e === "label" ? this.baseCreate(e, Ot({ type: "label" }, A1, t)) : this.createFlowElement(e, t);
|
|
16554
16550
|
};
|
|
16555
16551
|
On.prototype.createFlowElement = function(e, t) {
|
|
16556
16552
|
if (t == null || t === void 0 || t === "")
|
|
@@ -16625,9 +16621,9 @@ Wa.prototype.preExecute = function(e) {
|
|
|
16625
16621
|
};
|
|
16626
16622
|
Wa.prototype.postExecute = function(e) {
|
|
16627
16623
|
var t = e.hints || {};
|
|
16628
|
-
|
|
16624
|
+
B1(e.source, e.shape) || (t.connectionTarget === e.source ? this._modeling.connect(e.shape, e.source, e.connection) : this._modeling.connect(e.source, e.shape, e.connection));
|
|
16629
16625
|
};
|
|
16630
|
-
function
|
|
16626
|
+
function B1(e, t) {
|
|
16631
16627
|
return Bd(e.outgoing, function(n) {
|
|
16632
16628
|
return n.target === t;
|
|
16633
16629
|
});
|
|
@@ -16674,7 +16670,7 @@ bi.prototype.preExecute = function(e) {
|
|
|
16674
16670
|
y: sa(u.y - s.y - s.height / 2 + a.y)
|
|
16675
16671
|
});
|
|
16676
16672
|
});
|
|
16677
|
-
var c =
|
|
16673
|
+
var c = Aw(t), d = {};
|
|
16678
16674
|
we(t, function(u) {
|
|
16679
16675
|
if (Jt(u)) {
|
|
16680
16676
|
d[u.id] = Ft(o) ? i.createConnection(
|
|
@@ -16733,16 +16729,16 @@ function Do(e) {
|
|
|
16733
16729
|
}
|
|
16734
16730
|
mo(Do, yn);
|
|
16735
16731
|
Do.$inject = ["canvas"];
|
|
16736
|
-
var
|
|
16732
|
+
var I1 = yn.prototype.execute;
|
|
16737
16733
|
Do.prototype.execute = function(e) {
|
|
16738
16734
|
var t = e.shape;
|
|
16739
|
-
return
|
|
16735
|
+
return L1(t), t.labelTarget = e.labelTarget, I1.call(this, e);
|
|
16740
16736
|
};
|
|
16741
|
-
var
|
|
16737
|
+
var P1 = yn.prototype.revert;
|
|
16742
16738
|
Do.prototype.revert = function(e) {
|
|
16743
|
-
return e.shape.labelTarget = null,
|
|
16739
|
+
return e.shape.labelTarget = null, P1.call(this, e);
|
|
16744
16740
|
};
|
|
16745
|
-
function
|
|
16741
|
+
function L1(e) {
|
|
16746
16742
|
["width", "height"].forEach(function(t) {
|
|
16747
16743
|
typeof e[t] > "u" && (e[t] = 0);
|
|
16748
16744
|
});
|
|
@@ -16926,15 +16922,15 @@ function Ga(e) {
|
|
|
16926
16922
|
return t;
|
|
16927
16923
|
}
|
|
16928
16924
|
function fu(e, t) {
|
|
16929
|
-
var n = Po(e,
|
|
16925
|
+
var n = Po(e, R1);
|
|
16930
16926
|
return lo(n, function(o) {
|
|
16931
|
-
return
|
|
16927
|
+
return O1(o, t);
|
|
16932
16928
|
});
|
|
16933
16929
|
}
|
|
16934
|
-
function
|
|
16930
|
+
function O1(e, t) {
|
|
16935
16931
|
return zo(t, e, 1) === "intersect";
|
|
16936
16932
|
}
|
|
16937
|
-
function
|
|
16933
|
+
function R1(e) {
|
|
16938
16934
|
return e.original || e;
|
|
16939
16935
|
}
|
|
16940
16936
|
function Ti() {
|
|
@@ -16944,7 +16940,7 @@ Ti.prototype.add = function(e, t) {
|
|
|
16944
16940
|
return this.addAll([e], t);
|
|
16945
16941
|
};
|
|
16946
16942
|
Ti.prototype.addAll = function(e, t) {
|
|
16947
|
-
var n =
|
|
16943
|
+
var n = Bw(e, !!t, this);
|
|
16948
16944
|
return Be(this, n), this;
|
|
16949
16945
|
};
|
|
16950
16946
|
function Wo(e) {
|
|
@@ -17154,7 +17150,7 @@ Ko.prototype.revert = function(e) {
|
|
|
17154
17150
|
y: n.y
|
|
17155
17151
|
}), t;
|
|
17156
17152
|
};
|
|
17157
|
-
function
|
|
17153
|
+
function V1(e, t) {
|
|
17158
17154
|
var n = [];
|
|
17159
17155
|
return we(e.concat(t), function(o) {
|
|
17160
17156
|
var a = o.incoming, l = o.outgoing;
|
|
@@ -17167,7 +17163,7 @@ function z1(e, t) {
|
|
|
17167
17163
|
function Co(e, t) {
|
|
17168
17164
|
return e.indexOf(t) !== -1;
|
|
17169
17165
|
}
|
|
17170
|
-
function
|
|
17166
|
+
function z1(e, t, n) {
|
|
17171
17167
|
var o = e.x, a = e.y, l = e.width, i = e.height, r = n.x, s = n.y;
|
|
17172
17168
|
switch (t) {
|
|
17173
17169
|
case "n":
|
|
@@ -17209,9 +17205,9 @@ bn.$inject = ["modeling"];
|
|
|
17209
17205
|
bn.prototype.preExecute = function(e) {
|
|
17210
17206
|
var t = e.delta, n = e.direction, o = e.movingShapes, a = e.resizingShapes, l = e.start, i = {};
|
|
17211
17207
|
this.moveShapes(o, t), we(a, function(r) {
|
|
17212
|
-
i[r.id] =
|
|
17208
|
+
i[r.id] = D1(r);
|
|
17213
17209
|
}), this.resizeShapes(a, t, n), this.updateConnectionWaypoints(
|
|
17214
|
-
|
|
17210
|
+
V1(o, a),
|
|
17215
17211
|
t,
|
|
17216
17212
|
n,
|
|
17217
17213
|
l,
|
|
@@ -17237,7 +17233,7 @@ bn.prototype.moveShapes = function(e, t) {
|
|
|
17237
17233
|
bn.prototype.resizeShapes = function(e, t, n) {
|
|
17238
17234
|
var o = this;
|
|
17239
17235
|
we(e, function(a) {
|
|
17240
|
-
var l =
|
|
17236
|
+
var l = z1(a, n, t);
|
|
17241
17237
|
o._modeling.resizeShape(a, l, null, {
|
|
17242
17238
|
attachSupport: !1,
|
|
17243
17239
|
autoResize: !1,
|
|
@@ -17248,7 +17244,7 @@ bn.prototype.resizeShapes = function(e, t, n) {
|
|
|
17248
17244
|
bn.prototype.updateConnectionWaypoints = function(e, t, n, o, a, l, i) {
|
|
17249
17245
|
var r = this, s = a.concat(l);
|
|
17250
17246
|
we(e, function(c) {
|
|
17251
|
-
var d = c.source, u = c.target, h =
|
|
17247
|
+
var d = c.source, u = c.target, h = F1(c), v = pu(n), f = {};
|
|
17252
17248
|
nn(s, d) && nn(s, u) ? (h = Po(h, function(p) {
|
|
17253
17249
|
return os(p, o, n) && (p[v] = p[v] + t[v]), p.original && os(p.original, o, n) && (p.original[v] = p.original[v] + t[v]), p;
|
|
17254
17250
|
}), r._modeling.updateWaypoints(c, h, {
|
|
@@ -17267,7 +17263,7 @@ bn.prototype.updateConnectionWaypoints = function(e, t, n, o, a, l, i) {
|
|
|
17267
17263
|
function ns(e) {
|
|
17268
17264
|
return Be({}, e);
|
|
17269
17265
|
}
|
|
17270
|
-
function
|
|
17266
|
+
function F1(e) {
|
|
17271
17267
|
return Po(e.waypoints, function(t) {
|
|
17272
17268
|
return t = ns(t), t.original && (t.original = ns(t.original)), t;
|
|
17273
17269
|
});
|
|
@@ -17294,7 +17290,7 @@ function os(e, t, n) {
|
|
|
17294
17290
|
function nn(e, t) {
|
|
17295
17291
|
return e.indexOf(t) !== -1;
|
|
17296
17292
|
}
|
|
17297
|
-
function
|
|
17293
|
+
function D1(e) {
|
|
17298
17294
|
return {
|
|
17299
17295
|
x: e.x,
|
|
17300
17296
|
y: e.y,
|
|
@@ -17606,7 +17602,7 @@ ze.prototype.connect = function(e, t, n, o) {
|
|
|
17606
17602
|
return this.createConnection(e, t, n || {}, e.parent, o);
|
|
17607
17603
|
};
|
|
17608
17604
|
ze.prototype._create = function(e, t) {
|
|
17609
|
-
return
|
|
17605
|
+
return M1(t) ? t : this._elementFactory.create(e, t);
|
|
17610
17606
|
};
|
|
17611
17607
|
ze.prototype.toggleCollapse = function(e, t) {
|
|
17612
17608
|
var n = {
|
|
@@ -17618,7 +17614,7 @@ ze.prototype.toggleCollapse = function(e, t) {
|
|
|
17618
17614
|
function as(e) {
|
|
17619
17615
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
17620
17616
|
}
|
|
17621
|
-
function
|
|
17617
|
+
function N1(e, t) {
|
|
17622
17618
|
Array.isArray(e) && e.forEach(t);
|
|
17623
17619
|
}
|
|
17624
17620
|
function zl(e) {
|
|
@@ -17626,14 +17622,14 @@ function zl(e) {
|
|
|
17626
17622
|
if (t)
|
|
17627
17623
|
return t.name || "";
|
|
17628
17624
|
}
|
|
17629
|
-
function
|
|
17625
|
+
function H1(e, t) {
|
|
17630
17626
|
const n = e.businessObject;
|
|
17631
17627
|
return n.name = t, e;
|
|
17632
17628
|
}
|
|
17633
|
-
const
|
|
17629
|
+
const W1 = {
|
|
17634
17630
|
height: 20
|
|
17635
17631
|
}, ls = 15;
|
|
17636
|
-
function
|
|
17632
|
+
function U1(e) {
|
|
17637
17633
|
return [
|
|
17638
17634
|
"startEvent",
|
|
17639
17635
|
"myEvent",
|
|
@@ -17644,43 +17640,43 @@ function K1(e) {
|
|
|
17644
17640
|
"myline"
|
|
17645
17641
|
].includes(e.type);
|
|
17646
17642
|
}
|
|
17647
|
-
function
|
|
17643
|
+
function K1(e) {
|
|
17648
17644
|
return ma(e.label);
|
|
17649
17645
|
}
|
|
17650
|
-
function
|
|
17651
|
-
const t = e.length / 2 - 1, n = e[Math.floor(t)], o = e[Math.ceil(t + 0.01)], a =
|
|
17646
|
+
function J1(e) {
|
|
17647
|
+
const t = e.length / 2 - 1, n = e[Math.floor(t)], o = e[Math.ceil(t + 0.01)], a = Y1(e), l = Math.atan((o.y - n.y) / (o.x - n.x));
|
|
17652
17648
|
let { x: i, y: r } = a;
|
|
17653
17649
|
return Math.abs(l) < Math.PI / 2 ? r -= ls : i += ls, { x: i, y: r };
|
|
17654
17650
|
}
|
|
17655
|
-
function
|
|
17651
|
+
function Y1(e) {
|
|
17656
17652
|
const t = e.length / 2 - 1, n = e[Math.floor(t)], o = e[Math.ceil(t + 0.01)];
|
|
17657
17653
|
return {
|
|
17658
17654
|
x: n.x + (o.x - n.x) / 2,
|
|
17659
17655
|
y: n.y + (o.y - n.y) / 2
|
|
17660
17656
|
};
|
|
17661
17657
|
}
|
|
17662
|
-
function
|
|
17663
|
-
return e.waypoints ?
|
|
17658
|
+
function G1(e) {
|
|
17659
|
+
return e.waypoints ? J1(e.waypoints) : {
|
|
17664
17660
|
x: e.x + e.width / 2,
|
|
17665
|
-
y: e.y + e.height +
|
|
17661
|
+
y: e.y + e.height + W1.height / 2
|
|
17666
17662
|
};
|
|
17667
17663
|
}
|
|
17668
17664
|
function ma(e) {
|
|
17669
17665
|
return e && !!e.labelTarget;
|
|
17670
17666
|
}
|
|
17671
|
-
const
|
|
17667
|
+
const q1 = {
|
|
17672
17668
|
width: 0,
|
|
17673
17669
|
height: 0
|
|
17674
17670
|
};
|
|
17675
17671
|
function bu(e, t) {
|
|
17676
17672
|
function n(r, s) {
|
|
17677
17673
|
const c = r.label || r, d = r.labelTarget || r;
|
|
17678
|
-
return
|
|
17674
|
+
return H1(c, s), [c, d];
|
|
17679
17675
|
}
|
|
17680
17676
|
function o(r) {
|
|
17681
17677
|
const { element: s, newLabel: c } = r, { businessObject: d } = s;
|
|
17682
|
-
if (!ma(s) &&
|
|
17683
|
-
let h =
|
|
17678
|
+
if (!ma(s) && U1(s) && !K1(s) && !is(c)) {
|
|
17679
|
+
let h = G1(s);
|
|
17684
17680
|
h = {
|
|
17685
17681
|
x: h.x,
|
|
17686
17682
|
y: h.y + 7
|
|
@@ -17706,7 +17702,7 @@ function bu(e, t) {
|
|
|
17706
17702
|
return;
|
|
17707
17703
|
}
|
|
17708
17704
|
const v = zl(d);
|
|
17709
|
-
typeof h > "u" && (h = t.getExternalLabelBounds(d, v)), h && e.resizeShape(d, h,
|
|
17705
|
+
typeof h > "u" && (h = t.getExternalLabelBounds(d, v)), h && e.resizeShape(d, h, q1);
|
|
17710
17706
|
}
|
|
17711
17707
|
this.preExecute = o, this.execute = a, this.revert = l, this.postExecute = i;
|
|
17712
17708
|
}
|
|
@@ -17750,13 +17746,13 @@ wu.prototype.layoutConnection = function(e, t) {
|
|
|
17750
17746
|
t.connectionEnd || Wt(t.target || e.target)
|
|
17751
17747
|
];
|
|
17752
17748
|
};
|
|
17753
|
-
var ca = 20,
|
|
17749
|
+
var ca = 20, X1 = 5, $a = Math.round, rs = 20, Z1 = {
|
|
17754
17750
|
"h:h": 20,
|
|
17755
17751
|
"v:v": 20,
|
|
17756
17752
|
"h:v": -10,
|
|
17757
17753
|
"v:h": -10
|
|
17758
17754
|
};
|
|
17759
|
-
function
|
|
17755
|
+
function Q1(e, t) {
|
|
17760
17756
|
return !{
|
|
17761
17757
|
t: /top/,
|
|
17762
17758
|
r: /right/,
|
|
@@ -17766,7 +17762,7 @@ function ex(e, t) {
|
|
|
17766
17762
|
v: /./
|
|
17767
17763
|
}[t].test(e);
|
|
17768
17764
|
}
|
|
17769
|
-
function
|
|
17765
|
+
function ex(e, t) {
|
|
17770
17766
|
return {
|
|
17771
17767
|
t: /top/,
|
|
17772
17768
|
r: /right/,
|
|
@@ -17777,8 +17773,8 @@ function tx(e, t) {
|
|
|
17777
17773
|
}[e].test(t);
|
|
17778
17774
|
}
|
|
17779
17775
|
function xu(e, t, n) {
|
|
17780
|
-
var o = zo(t, e,
|
|
17781
|
-
return c ? (r = d ? { x: l, y: e.y } : { x: e.x, y: i }, s = d ? "h:h" : "v:v") : (u =
|
|
17776
|
+
var o = zo(t, e, X1), a = n.split(":")[0], l = $a((t.x - e.x) / 2 + e.x), i = $a((t.y - e.y) / 2 + e.y), r, s, c = ex(a, o), d = /h|r|l/.test(a), u = !1, h = !1;
|
|
17777
|
+
return c ? (r = d ? { x: l, y: e.y } : { x: e.x, y: i }, s = d ? "h:h" : "v:v") : (u = Q1(o, a), s = d ? "h:v" : "v:h", u ? d ? (h = i === e.y, r = {
|
|
17782
17778
|
x: e.x + ca * (/l/.test(a) ? -1 : 1),
|
|
17783
17779
|
y: h ? i + ca : i
|
|
17784
17780
|
}) : (h = l === e.x, r = {
|
|
@@ -17793,10 +17789,10 @@ function xu(e, t, n) {
|
|
|
17793
17789
|
turnNextDirections: h
|
|
17794
17790
|
};
|
|
17795
17791
|
}
|
|
17796
|
-
function
|
|
17792
|
+
function tx(e, t, n) {
|
|
17797
17793
|
return xu(e, t, n);
|
|
17798
17794
|
}
|
|
17799
|
-
function
|
|
17795
|
+
function nx(e, t, n) {
|
|
17800
17796
|
var o = xu(t, e, ss(n));
|
|
17801
17797
|
return {
|
|
17802
17798
|
waypoints: o.waypoints.slice().reverse(),
|
|
@@ -17804,7 +17800,7 @@ function ox(e, t, n) {
|
|
|
17804
17800
|
turnNextDirections: o.turnNextDirections
|
|
17805
17801
|
};
|
|
17806
17802
|
}
|
|
17807
|
-
function
|
|
17803
|
+
function ox(e, t) {
|
|
17808
17804
|
var n = e.directions.split(":")[1], o = t.directions.split(":")[0];
|
|
17809
17805
|
e.turnNextDirections && (n = n == "h" ? "v" : "h"), t.turnNextDirections && (o = o == "h" ? "v" : "h");
|
|
17810
17806
|
var a = n + ":" + o, l = _i(
|
|
@@ -17820,7 +17816,7 @@ function ax(e, t) {
|
|
|
17820
17816
|
function ss(e) {
|
|
17821
17817
|
return e.split(":").reverse().join(":");
|
|
17822
17818
|
}
|
|
17823
|
-
function
|
|
17819
|
+
function ax(e, t, n) {
|
|
17824
17820
|
var o = $a((t.x - e.x) / 2 + e.x), a = $a((t.y - e.y) / 2 + e.y);
|
|
17825
17821
|
if (n === "h:v")
|
|
17826
17822
|
return [{ x: t.x, y: e.y }];
|
|
@@ -17839,36 +17835,36 @@ function lx(e, t, n) {
|
|
|
17839
17835
|
throw new Error("invalid directions: can only handle varians of [hv]:[hv]");
|
|
17840
17836
|
}
|
|
17841
17837
|
function _i(e, t, n) {
|
|
17842
|
-
if (n = n || "h:h", !
|
|
17838
|
+
if (n = n || "h:h", !px(n))
|
|
17843
17839
|
throw new Error(
|
|
17844
17840
|
"unknown directions: <" + n + ">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }"
|
|
17845
17841
|
);
|
|
17846
17842
|
if (Cu(n)) {
|
|
17847
|
-
var o =
|
|
17843
|
+
var o = tx(e, t, n), a = nx(e, t, n), l = ox(o, a);
|
|
17848
17844
|
return [].concat(
|
|
17849
17845
|
o.waypoints,
|
|
17850
17846
|
l.waypoints,
|
|
17851
17847
|
a.waypoints
|
|
17852
17848
|
);
|
|
17853
17849
|
}
|
|
17854
|
-
return
|
|
17850
|
+
return ax(e, t, n);
|
|
17855
17851
|
}
|
|
17856
|
-
function
|
|
17852
|
+
function lx(e, t, n) {
|
|
17857
17853
|
var o = _i(e, t, n);
|
|
17858
17854
|
return o.unshift(e), o.push(t), Su(o);
|
|
17859
17855
|
}
|
|
17860
|
-
function
|
|
17861
|
-
var l = a && a.preferredLayouts || [], i = Ld(l, "straight")[0] || "h:h", r =
|
|
17856
|
+
function ix(e, t, n, o, a) {
|
|
17857
|
+
var l = a && a.preferredLayouts || [], i = Ld(l, "straight")[0] || "h:h", r = Z1[i] || 0, s = zo(e, t, r), c = fx(s, i);
|
|
17862
17858
|
n = n || Wt(e), o = o || Wt(t);
|
|
17863
|
-
var d = c.split(":"), u = us(n, e, d[0],
|
|
17864
|
-
return
|
|
17859
|
+
var d = c.split(":"), u = us(n, e, d[0], hx(s)), h = us(o, t, d[1], s);
|
|
17860
|
+
return lx(u, h, c);
|
|
17865
17861
|
}
|
|
17866
|
-
function
|
|
17862
|
+
function rx(e, t, n, o, a, l) {
|
|
17867
17863
|
_t(n) && (a = n, l = o, n = Wt(e), o = Wt(t)), l = Be({ preferredLayouts: [] }, l), a = a || [];
|
|
17868
17864
|
var i = l.preferredLayouts, r = i.indexOf("straight") !== -1, s;
|
|
17869
|
-
return s = r &&
|
|
17865
|
+
return s = r && cx(e, t, n, o, l), s || (s = l.connectionEnd && dx(t, e, o, a), s) || (s = l.connectionStart && ux(e, t, n, a), s) ? s : !l.connectionStart && !l.connectionEnd && a && a.length ? a : ix(e, t, n, o, l);
|
|
17870
17866
|
}
|
|
17871
|
-
function
|
|
17867
|
+
function sx(e, t, n) {
|
|
17872
17868
|
return e >= t && e <= n;
|
|
17873
17869
|
}
|
|
17874
17870
|
function cs(e, t, n) {
|
|
@@ -17876,9 +17872,9 @@ function cs(e, t, n) {
|
|
|
17876
17872
|
x: "width",
|
|
17877
17873
|
y: "height"
|
|
17878
17874
|
};
|
|
17879
|
-
return
|
|
17875
|
+
return sx(t[e], n[e], n[e] + n[o[e]]);
|
|
17880
17876
|
}
|
|
17881
|
-
function
|
|
17877
|
+
function cx(e, t, n, o, a) {
|
|
17882
17878
|
var l = {}, i, r;
|
|
17883
17879
|
return r = zo(e, t), /^(top|bottom|left|right)$/.test(r) ? (/top|bottom/.test(r) && (i = "x"), /left|right/.test(r) && (i = "y"), a.preserveDocking === "target" ? cs(i, o, e) ? (l[i] = o[i], [
|
|
17884
17880
|
{
|
|
@@ -17908,10 +17904,10 @@ function ux(e, t, n, o, a) {
|
|
|
17908
17904
|
}
|
|
17909
17905
|
]) : null) : null;
|
|
17910
17906
|
}
|
|
17911
|
-
function
|
|
17907
|
+
function ux(e, t, n, o) {
|
|
17912
17908
|
return Mi(e, t, n, o);
|
|
17913
17909
|
}
|
|
17914
|
-
function
|
|
17910
|
+
function dx(e, t, n, o) {
|
|
17915
17911
|
var a = o.slice().reverse();
|
|
17916
17912
|
return a = Mi(e, t, n, a), a ? a.reverse() : null;
|
|
17917
17913
|
}
|
|
@@ -17944,7 +17940,7 @@ function Mi(e, t, n, o) {
|
|
|
17944
17940
|
var r = o[0], s = o.slice(), c;
|
|
17945
17941
|
return s[0] = n, s[1] = l(s[1], r, n), c = i(s, e, t), c !== s && (s = Mi(e, t, n, c)), s && Lr(s) ? null : s;
|
|
17946
17942
|
}
|
|
17947
|
-
function
|
|
17943
|
+
function fx(e, t) {
|
|
17948
17944
|
if (Cu(t))
|
|
17949
17945
|
return t;
|
|
17950
17946
|
switch (e) {
|
|
@@ -17964,13 +17960,13 @@ function px(e, t) {
|
|
|
17964
17960
|
return t;
|
|
17965
17961
|
}
|
|
17966
17962
|
}
|
|
17967
|
-
function
|
|
17963
|
+
function px(e) {
|
|
17968
17964
|
return e && /^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e);
|
|
17969
17965
|
}
|
|
17970
17966
|
function Cu(e) {
|
|
17971
17967
|
return e && /t|r|b|l/.test(e);
|
|
17972
17968
|
}
|
|
17973
|
-
function
|
|
17969
|
+
function hx(e) {
|
|
17974
17970
|
return {
|
|
17975
17971
|
top: "bottom",
|
|
17976
17972
|
bottom: "top",
|
|
@@ -17996,7 +17992,7 @@ function us(e, t, n, o) {
|
|
|
17996
17992
|
function Su(e) {
|
|
17997
17993
|
return e.reduce(function(t, n, o) {
|
|
17998
17994
|
var a = t[t.length - 1], l = e[o + 1];
|
|
17999
|
-
return
|
|
17995
|
+
return Rw(a, l, n, 0) || t.push(n), t;
|
|
18000
17996
|
}, []);
|
|
18001
17997
|
}
|
|
18002
17998
|
function Ai() {
|
|
@@ -18008,7 +18004,7 @@ Ai.prototype.layoutConnection = function(e, t) {
|
|
|
18008
18004
|
const n = t.source || e.source, o = t.target || e.target, a = t.waypoints || e.waypoints;
|
|
18009
18005
|
let { connectionStart: l, connectionEnd: i } = t, r, s;
|
|
18010
18006
|
return i === void 0 && (l = ua(a && a[0], n), i = ua(a && a[a.length - 1], o)), l || (l = ua(a && a[0], n)), i || (i = ua(a && a[a.length - 1], o)), En(e, "myline") && (n === o ? r = {
|
|
18011
|
-
preferredLayouts:
|
|
18007
|
+
preferredLayouts: vx(n, e)
|
|
18012
18008
|
} : En(n, "gatewayAnd") || En(n, "gatewayXor") || En(n, "gatewayInclusive") ? r = {
|
|
18013
18009
|
preferredLayouts: ["v:h"]
|
|
18014
18010
|
} : En(o, "gatewayAnd") || En(o, "gatewayXor") || En(o, "gatewayInclusive") ? r = {
|
|
@@ -18016,13 +18012,13 @@ Ai.prototype.layoutConnection = function(e, t) {
|
|
|
18016
18012
|
} : r = {
|
|
18017
18013
|
preferredLayouts: ["h:h"]
|
|
18018
18014
|
}), r && (r = Ot(r, t), s = Su(
|
|
18019
|
-
|
|
18015
|
+
rx(n, o, l, i, a, r)
|
|
18020
18016
|
)), s || [l, i];
|
|
18021
18017
|
};
|
|
18022
18018
|
function ua(e, t) {
|
|
18023
18019
|
return e ? e.original || e : Wt(t);
|
|
18024
18020
|
}
|
|
18025
|
-
function
|
|
18021
|
+
function vx(e, t) {
|
|
18026
18022
|
const { waypoints: n } = t, o = n && n.length && zo(n[0], e);
|
|
18027
18023
|
return o === "top" ? ["t:r"] : o === "right" ? ["r:b"] : o === "left" ? ["l:t"] : ["b:l"];
|
|
18028
18024
|
}
|
|
@@ -18048,7 +18044,7 @@ wn.prototype.getDockingPoint = function(e, t, n) {
|
|
|
18048
18044
|
};
|
|
18049
18045
|
wn.prototype._getIntersection = function(e, t, n) {
|
|
18050
18046
|
var o = this._getShapePath(e), a = this._getConnectionPath(t);
|
|
18051
|
-
return
|
|
18047
|
+
return l1(o, a, n);
|
|
18052
18048
|
};
|
|
18053
18049
|
wn.prototype._getConnectionPath = function(e) {
|
|
18054
18050
|
return this._graphicsFactory.getConnectionPath(e);
|
|
@@ -18059,8 +18055,8 @@ wn.prototype._getShapePath = function(e) {
|
|
|
18059
18055
|
wn.prototype._getGfx = function(e) {
|
|
18060
18056
|
return this._elementRegistry.getGraphics(e);
|
|
18061
18057
|
};
|
|
18062
|
-
const
|
|
18063
|
-
__depends__: [
|
|
18058
|
+
const mx = {
|
|
18059
|
+
__depends__: [b1, S1, Da],
|
|
18064
18060
|
__init__: ["modeling", "elementUpdater"],
|
|
18065
18061
|
modeling: ["type", Jo],
|
|
18066
18062
|
layouter: ["type", Ai],
|
|
@@ -18068,10 +18064,10 @@ const gx = {
|
|
|
18068
18064
|
elementFactory: ["type", On],
|
|
18069
18065
|
connectionDocking: ["type", wn]
|
|
18070
18066
|
};
|
|
18071
|
-
var
|
|
18067
|
+
var gx = 1e3;
|
|
18072
18068
|
function Vn(e, t) {
|
|
18073
18069
|
var n = this;
|
|
18074
|
-
t = t ||
|
|
18070
|
+
t = t || gx, e.on(["render.shape", "render.connection"], t, function(o, a) {
|
|
18075
18071
|
var l = o.type, i = a.element, r = a.gfx, s = a.attrs;
|
|
18076
18072
|
if (n.canRender(i))
|
|
18077
18073
|
return l === "render.shape" ? n.drawShape(r, i, s) : n.drawConnection(r, i, s);
|
|
@@ -18090,7 +18086,7 @@ Vn.prototype.getShapePath = function(e) {
|
|
|
18090
18086
|
};
|
|
18091
18087
|
Vn.prototype.getConnectionPath = function(e) {
|
|
18092
18088
|
};
|
|
18093
|
-
function
|
|
18089
|
+
function yx(e) {
|
|
18094
18090
|
return e.businessObject;
|
|
18095
18091
|
}
|
|
18096
18092
|
function da(e, t) {
|
|
@@ -18102,7 +18098,7 @@ function Pt(e, t) {
|
|
|
18102
18098
|
function Ze(e, t) {
|
|
18103
18099
|
return e.businessObject.strokeColor || t || "var(--j-color-text)";
|
|
18104
18100
|
}
|
|
18105
|
-
function
|
|
18101
|
+
function bx(e) {
|
|
18106
18102
|
const t = e.x + e.width / 2, n = e.y + e.height / 2, o = e.width / 2, a = [
|
|
18107
18103
|
["M", t, n],
|
|
18108
18104
|
["m", 0, -o],
|
|
@@ -18112,7 +18108,7 @@ function wx(e) {
|
|
|
18112
18108
|
];
|
|
18113
18109
|
return Vo(a);
|
|
18114
18110
|
}
|
|
18115
|
-
function
|
|
18111
|
+
function wx(e, t) {
|
|
18116
18112
|
const { x: n, y: o, width: a, height: l } = e, i = [
|
|
18117
18113
|
["M", n + t, o],
|
|
18118
18114
|
["l", a - t * 2, 0],
|
|
@@ -18127,7 +18123,7 @@ function xx(e, t) {
|
|
|
18127
18123
|
];
|
|
18128
18124
|
return Vo(i);
|
|
18129
18125
|
}
|
|
18130
|
-
function
|
|
18126
|
+
function xx(e) {
|
|
18131
18127
|
const { x: t, y: n, width: o, height: a } = e, l = o / 2, i = a / 2, r = [
|
|
18132
18128
|
["M", t + l, n],
|
|
18133
18129
|
["l", l, i],
|
|
@@ -18137,7 +18133,7 @@ function Cx(e) {
|
|
|
18137
18133
|
];
|
|
18138
18134
|
return Vo(r);
|
|
18139
18135
|
}
|
|
18140
|
-
function
|
|
18136
|
+
function Cx(e) {
|
|
18141
18137
|
const { x: t, y: n, width: o, height: a } = e, l = [["M", t, n], ["l", o, 0], ["l", 0, a], ["l", -o, 0], ["z"]];
|
|
18142
18138
|
return Vo(l);
|
|
18143
18139
|
}
|
|
@@ -18248,7 +18244,7 @@ function zn(e, t, n, o, a, l, i) {
|
|
|
18248
18244
|
return ks(z).add("djs-label"), ft(B, z), z;
|
|
18249
18245
|
}
|
|
18250
18246
|
function w(B, C, O) {
|
|
18251
|
-
const z =
|
|
18247
|
+
const z = yx(C);
|
|
18252
18248
|
return $(B, z.name, {
|
|
18253
18249
|
box: C,
|
|
18254
18250
|
align: O,
|
|
@@ -18288,14 +18284,14 @@ function zn(e, t, n, o, a, l, i) {
|
|
|
18288
18284
|
compensation: -27,
|
|
18289
18285
|
loop: 0,
|
|
18290
18286
|
adhoc: 10
|
|
18291
|
-
},
|
|
18287
|
+
}, N1(O, (se) => {
|
|
18292
18288
|
u(se)(B, C, Q);
|
|
18293
18289
|
});
|
|
18294
18290
|
}
|
|
18295
18291
|
function E(B) {
|
|
18296
18292
|
return B.replace(/[^0-9a-zA-z]+/g, "_");
|
|
18297
18293
|
}
|
|
18298
|
-
function
|
|
18294
|
+
function P(B, C) {
|
|
18299
18295
|
const { ref: O = { x: 0, y: 0 }, scale: z = 1, element: Q, parentGfx: se = o._svg } = C, pe = pt("marker", {
|
|
18300
18296
|
id: B,
|
|
18301
18297
|
viewBox: "0 0 20 20",
|
|
@@ -18323,7 +18319,7 @@ function zn(e, t, n, o, a, l, i) {
|
|
|
18323
18319
|
strokeWidth: 1
|
|
18324
18320
|
})
|
|
18325
18321
|
});
|
|
18326
|
-
|
|
18322
|
+
P(C, {
|
|
18327
18323
|
element: se,
|
|
18328
18324
|
ref: { x: 11, y: 10 },
|
|
18329
18325
|
scale: 0.5,
|
|
@@ -18560,20 +18556,20 @@ zn.prototype.drawConnection = function(e, t) {
|
|
|
18560
18556
|
return o(e, t);
|
|
18561
18557
|
};
|
|
18562
18558
|
zn.prototype.getShapePath = function(e) {
|
|
18563
|
-
return on(e, "startEvent") || on(e, "endEvent") ?
|
|
18559
|
+
return on(e, "startEvent") || on(e, "endEvent") ? bx(e) : on(e, "userTask") || on(e, "scriptTask") || on(e, "subprocess") ? wx(e, Fl) : on(e, "gatewayAnd") || on(e, "gatewayXor") || on(e, "gatewayInclusive") ? xx(e) : Cx(e);
|
|
18564
18560
|
};
|
|
18565
|
-
var
|
|
18561
|
+
var Sx = 0, kx = {
|
|
18566
18562
|
width: 150,
|
|
18567
18563
|
height: 50
|
|
18568
18564
|
};
|
|
18569
|
-
function
|
|
18565
|
+
function Ex(e) {
|
|
18570
18566
|
var t = e.split("-");
|
|
18571
18567
|
return {
|
|
18572
18568
|
horizontal: t[0] || "center",
|
|
18573
18569
|
vertical: t[1] || "top"
|
|
18574
18570
|
};
|
|
18575
18571
|
}
|
|
18576
|
-
function
|
|
18572
|
+
function Tx(e) {
|
|
18577
18573
|
return fn(e) ? Be({ top: 0, left: 0, right: 0, bottom: 0 }, e) : {
|
|
18578
18574
|
top: e,
|
|
18579
18575
|
left: e,
|
|
@@ -18581,7 +18577,7 @@ function jx(e) {
|
|
|
18581
18577
|
bottom: e
|
|
18582
18578
|
};
|
|
18583
18579
|
}
|
|
18584
|
-
function
|
|
18580
|
+
function jx(e, t) {
|
|
18585
18581
|
t.textContent = e;
|
|
18586
18582
|
var n;
|
|
18587
18583
|
try {
|
|
@@ -18594,14 +18590,14 @@ function $x(e, t) {
|
|
|
18594
18590
|
return console.log(l), { width: 0, height: 0 };
|
|
18595
18591
|
}
|
|
18596
18592
|
}
|
|
18597
|
-
function
|
|
18593
|
+
function $x(e, t, n) {
|
|
18598
18594
|
for (var o = e.shift(), a = o, l; ; ) {
|
|
18599
|
-
if (l =
|
|
18600
|
-
return
|
|
18601
|
-
a =
|
|
18595
|
+
if (l = jx(a, n), l.width = a ? l.width : 0, a === " " || a === "" || l.width < Math.round(t) || a.length < 2)
|
|
18596
|
+
return _x(e, a, o, l);
|
|
18597
|
+
a = Ax(a, l.width, t);
|
|
18602
18598
|
}
|
|
18603
18599
|
}
|
|
18604
|
-
function
|
|
18600
|
+
function _x(e, t, n, o) {
|
|
18605
18601
|
if (t.length < n.length) {
|
|
18606
18602
|
var a = n.slice(t.length).trim();
|
|
18607
18603
|
e.unshift(a);
|
|
@@ -18613,7 +18609,7 @@ function Mx(e, t, n, o) {
|
|
|
18613
18609
|
};
|
|
18614
18610
|
}
|
|
18615
18611
|
var fs = "";
|
|
18616
|
-
function
|
|
18612
|
+
function Mx(e, t) {
|
|
18617
18613
|
var n = e.split(/(\s|-|\u00AD)/g), o, a = [], l = 0;
|
|
18618
18614
|
if (n.length > 1)
|
|
18619
18615
|
for (; o = n.shift(); )
|
|
@@ -18626,11 +18622,11 @@ function Ax(e, t) {
|
|
|
18626
18622
|
var i = a[a.length - 1];
|
|
18627
18623
|
return i && i === fs && (a[a.length - 1] = "-"), a.join("");
|
|
18628
18624
|
}
|
|
18629
|
-
function
|
|
18630
|
-
var o = Math.max(e.length * (n / t), 1), a =
|
|
18625
|
+
function Ax(e, t, n) {
|
|
18626
|
+
var o = Math.max(e.length * (n / t), 1), a = Mx(e, o);
|
|
18631
18627
|
return a || (a = e.slice(0, Math.max(Math.round(o - 1), 1))), a;
|
|
18632
18628
|
}
|
|
18633
|
-
function
|
|
18629
|
+
function Bx() {
|
|
18634
18630
|
var e = document.getElementById("helper-svg");
|
|
18635
18631
|
return e || (e = pt("svg"), Xe(e, {
|
|
18636
18632
|
id: "helper-svg"
|
|
@@ -18643,8 +18639,8 @@ function Ix() {
|
|
|
18643
18639
|
}
|
|
18644
18640
|
function Qa(e) {
|
|
18645
18641
|
this._config = Be({}, {
|
|
18646
|
-
size:
|
|
18647
|
-
padding:
|
|
18642
|
+
size: kx,
|
|
18643
|
+
padding: Sx,
|
|
18648
18644
|
style: {},
|
|
18649
18645
|
align: "center-top"
|
|
18650
18646
|
}, e || {});
|
|
@@ -18656,11 +18652,11 @@ Qa.prototype.getDimensions = function(e, t) {
|
|
|
18656
18652
|
return this.layoutText(e, t).dimensions;
|
|
18657
18653
|
};
|
|
18658
18654
|
Qa.prototype.layoutText = function(e, t) {
|
|
18659
|
-
var n = Be({}, this._config.size, t.box), o = Be({}, this._config.style, t.style), a =
|
|
18655
|
+
var n = Be({}, this._config.size, t.box), o = Be({}, this._config.style, t.style), a = Ex(t.align || this._config.align), l = Tx(t.padding !== void 0 ? t.padding : this._config.padding), i = t.fitBox || !1, r = Ix(o), s = e.split(/\u00AD?\r?\n/), c = [], d = n.width - l.left - l.right, u = pt("text");
|
|
18660
18656
|
Xe(u, { x: 0, y: 0 }), Xe(u, o);
|
|
18661
|
-
var h =
|
|
18657
|
+
var h = Bx();
|
|
18662
18658
|
for (ft(h, u); s.length; )
|
|
18663
|
-
c.push(
|
|
18659
|
+
c.push($x(s, d, u));
|
|
18664
18660
|
a.vertical === "middle" && (l.top = l.bottom = 0);
|
|
18665
18661
|
var v = Vi(c, function(y, S, k) {
|
|
18666
18662
|
return y + (r || S.height);
|
|
@@ -18693,18 +18689,18 @@ Qa.prototype.layoutText = function(e, t) {
|
|
|
18693
18689
|
element: m
|
|
18694
18690
|
};
|
|
18695
18691
|
};
|
|
18696
|
-
function
|
|
18692
|
+
function Ix(e) {
|
|
18697
18693
|
if ("fontSize" in e && "lineHeight" in e)
|
|
18698
18694
|
return e.lineHeight * parseInt(e.fontSize, 10);
|
|
18699
18695
|
}
|
|
18700
|
-
const
|
|
18696
|
+
const Px = 12, Lx = 1.2, Ox = 30;
|
|
18701
18697
|
function ku(e) {
|
|
18702
18698
|
const t = Ot(
|
|
18703
18699
|
{
|
|
18704
18700
|
fontFamily: "Arial, sans-serif",
|
|
18705
|
-
fontSize:
|
|
18701
|
+
fontSize: Px,
|
|
18706
18702
|
fontWeight: "normal",
|
|
18707
|
-
lineHeight:
|
|
18703
|
+
lineHeight: Lx
|
|
18708
18704
|
},
|
|
18709
18705
|
e && e.defaultStyle || {}
|
|
18710
18706
|
), n = parseInt(t.fontSize, 10) - 1, o = Ot(
|
|
@@ -18744,7 +18740,7 @@ function ku(e) {
|
|
|
18744
18740
|
x: l.x,
|
|
18745
18741
|
y: l.y,
|
|
18746
18742
|
width: l.width,
|
|
18747
|
-
height: Math.max(
|
|
18743
|
+
height: Math.max(Ox, Math.round(r.height))
|
|
18748
18744
|
};
|
|
18749
18745
|
}, this.createText = function(l, i) {
|
|
18750
18746
|
return a.createText(l, i || {});
|
|
@@ -18755,7 +18751,7 @@ function ku(e) {
|
|
|
18755
18751
|
};
|
|
18756
18752
|
}
|
|
18757
18753
|
ku.$inject = ["config.textRenderer"];
|
|
18758
|
-
function
|
|
18754
|
+
function Rx() {
|
|
18759
18755
|
this.pathMap = {
|
|
18760
18756
|
GATEWAY_EXCLUSIVE: {
|
|
18761
18757
|
d: "m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",
|
|
@@ -18816,28 +18812,28 @@ function Vx() {
|
|
|
18816
18812
|
for (let d = 0; d < l.widthElements.length; d++)
|
|
18817
18813
|
i["x" + d] = l.widthElements[d] * c;
|
|
18818
18814
|
}
|
|
18819
|
-
return
|
|
18815
|
+
return Dx(l.d, {
|
|
18820
18816
|
mx: o,
|
|
18821
18817
|
my: a,
|
|
18822
18818
|
e: i
|
|
18823
18819
|
});
|
|
18824
18820
|
};
|
|
18825
18821
|
}
|
|
18826
|
-
const
|
|
18827
|
-
function
|
|
18822
|
+
const Vx = /\{([^}]+)\}/g, zx = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;
|
|
18823
|
+
function Fx(e, t, n) {
|
|
18828
18824
|
let o = n;
|
|
18829
|
-
return t.replace(
|
|
18825
|
+
return t.replace(zx, (a, l, i, r, s) => {
|
|
18830
18826
|
l = l || r, o && (l in o && (o = o[l]), typeof o == "function" && s && (o = o()));
|
|
18831
18827
|
}), o = (o == null || o === n ? e : o) + "", o;
|
|
18832
18828
|
}
|
|
18833
|
-
function
|
|
18834
|
-
return String(e).replace(
|
|
18829
|
+
function Dx(e, t) {
|
|
18830
|
+
return String(e).replace(Vx, (n, o) => Fx(n, o, t));
|
|
18835
18831
|
}
|
|
18836
|
-
const
|
|
18832
|
+
const Nx = {
|
|
18837
18833
|
__init__: ["myRenderer"],
|
|
18838
18834
|
myRenderer: ["type", zn],
|
|
18839
18835
|
textRenderer: ["type", ku],
|
|
18840
|
-
pathMap: ["type",
|
|
18836
|
+
pathMap: ["type", Rx]
|
|
18841
18837
|
};
|
|
18842
18838
|
function ps(e, t) {
|
|
18843
18839
|
return Ot(
|
|
@@ -18849,7 +18845,7 @@ function ps(e, t) {
|
|
|
18849
18845
|
t
|
|
18850
18846
|
);
|
|
18851
18847
|
}
|
|
18852
|
-
function
|
|
18848
|
+
function Hx(e, t, n) {
|
|
18853
18849
|
const o = e.waypoint;
|
|
18854
18850
|
return !o || o.length < 2 ? [Wt(t), Wt(n)] : o.map((a) => ({ x: a.x, y: a.y }));
|
|
18855
18851
|
}
|
|
@@ -18873,7 +18869,7 @@ xn.prototype.add = function(e) {
|
|
|
18873
18869
|
ps(e, {
|
|
18874
18870
|
source: o,
|
|
18875
18871
|
target: a,
|
|
18876
|
-
waypoints:
|
|
18872
|
+
waypoints: Hx(e, o, a)
|
|
18877
18873
|
})
|
|
18878
18874
|
), this._canvas.addConnection(t);
|
|
18879
18875
|
} else {
|
|
@@ -18934,9 +18930,9 @@ xn.prototype._getTarget = function(e) {
|
|
|
18934
18930
|
xn.prototype._getElement = function(e) {
|
|
18935
18931
|
return this._elementRegistry.get(e);
|
|
18936
18932
|
};
|
|
18937
|
-
const
|
|
18933
|
+
const Wx = {
|
|
18938
18934
|
myImporter: ["type", xn]
|
|
18939
|
-
},
|
|
18935
|
+
}, Ux = (e) => {
|
|
18940
18936
|
const t = [];
|
|
18941
18937
|
return e.forEach((n) => {
|
|
18942
18938
|
if (n.type !== void 0) {
|
|
@@ -18956,14 +18952,14 @@ const Ux = {
|
|
|
18956
18952
|
}
|
|
18957
18953
|
}
|
|
18958
18954
|
}), t;
|
|
18959
|
-
},
|
|
18955
|
+
}, Kx = (e, t) => {
|
|
18960
18956
|
const n = t.get("myImporter"), o = e.filter((l) => l.type !== "myline"), a = e.filter((l) => l.type === "myline");
|
|
18961
18957
|
o.forEach((l) => {
|
|
18962
18958
|
n.add(l);
|
|
18963
18959
|
}), a.forEach((l) => {
|
|
18964
18960
|
n.add(l);
|
|
18965
18961
|
});
|
|
18966
|
-
},
|
|
18962
|
+
}, Jx = /* @__PURE__ */ ne({
|
|
18967
18963
|
name: "JWorkflowViewer",
|
|
18968
18964
|
__name: "workflow-viewer",
|
|
18969
18965
|
props: {
|
|
@@ -19048,14 +19044,14 @@ const Ux = {
|
|
|
19048
19044
|
container: l.value
|
|
19049
19045
|
},
|
|
19050
19046
|
modules: [
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19047
|
+
u1,
|
|
19048
|
+
Ow,
|
|
19049
|
+
mx,
|
|
19050
|
+
p1,
|
|
19051
|
+
y1,
|
|
19056
19052
|
w,
|
|
19057
|
-
|
|
19058
|
-
|
|
19053
|
+
Nx,
|
|
19054
|
+
Wx
|
|
19059
19055
|
]
|
|
19060
19056
|
});
|
|
19061
19057
|
const T = r.get("canvas"), x = r.get("elementFactory");
|
|
@@ -19072,10 +19068,10 @@ const Ux = {
|
|
|
19072
19068
|
}, f = () => {
|
|
19073
19069
|
r.get("canvas").zoom(1);
|
|
19074
19070
|
const w = r.get("elementRegistry").getAll();
|
|
19075
|
-
var T =
|
|
19071
|
+
var T = Ux(w);
|
|
19076
19072
|
return T;
|
|
19077
19073
|
}, p = (w) => {
|
|
19078
|
-
r.clear(), c(),
|
|
19074
|
+
r.clear(), c(), Kx(w, r);
|
|
19079
19075
|
}, m = (w) => {
|
|
19080
19076
|
r.get("myImporter").update(w.id, w);
|
|
19081
19077
|
};
|
|
@@ -19093,13 +19089,13 @@ const Ux = {
|
|
|
19093
19089
|
updateElemet: (w) => {
|
|
19094
19090
|
m(w);
|
|
19095
19091
|
}
|
|
19096
|
-
}), (w, T) => (b(),
|
|
19092
|
+
}), (w, T) => (b(), L("div", {
|
|
19097
19093
|
ref_key: "containerRef",
|
|
19098
19094
|
ref: l,
|
|
19099
19095
|
class: "j-work-flow"
|
|
19100
19096
|
}, null, 512));
|
|
19101
19097
|
}
|
|
19102
|
-
}),
|
|
19098
|
+
}), Yx = ve(Jx), Gx = [
|
|
19103
19099
|
xl,
|
|
19104
19100
|
wf,
|
|
19105
19101
|
Cf,
|
|
@@ -19144,25 +19140,25 @@ const Ux = {
|
|
|
19144
19140
|
O0,
|
|
19145
19141
|
Ac,
|
|
19146
19142
|
Nb,
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
],
|
|
19156
|
-
|
|
19143
|
+
Ub,
|
|
19144
|
+
Jb,
|
|
19145
|
+
Gb,
|
|
19146
|
+
Xb,
|
|
19147
|
+
Qb,
|
|
19148
|
+
ow,
|
|
19149
|
+
iw,
|
|
19150
|
+
Yx
|
|
19151
|
+
], qx = (e) => {
|
|
19152
|
+
Gx.forEach((t) => {
|
|
19157
19153
|
e.component(t.name, t);
|
|
19158
19154
|
});
|
|
19159
|
-
},
|
|
19160
|
-
install:
|
|
19155
|
+
}, HC = {
|
|
19156
|
+
install: qx
|
|
19161
19157
|
};
|
|
19162
19158
|
export {
|
|
19163
19159
|
af as EncryptionFactory,
|
|
19164
19160
|
As as EventBus,
|
|
19165
|
-
|
|
19161
|
+
FC as HashingFactory,
|
|
19166
19162
|
zf as JAutoComplete,
|
|
19167
19163
|
Py as JBarcode,
|
|
19168
19164
|
xl as JButton,
|
|
@@ -19171,7 +19167,7 @@ export {
|
|
|
19171
19167
|
If as JCascaderSelect,
|
|
19172
19168
|
Lf as JCheckbox,
|
|
19173
19169
|
c0 as JCodeMirror,
|
|
19174
|
-
|
|
19170
|
+
Qb as JCollapse,
|
|
19175
19171
|
Eb as JComp,
|
|
19176
19172
|
Oy as JCount,
|
|
19177
19173
|
zy as JCountUp,
|
|
@@ -19182,7 +19178,7 @@ export {
|
|
|
19182
19178
|
ny as JDrawer,
|
|
19183
19179
|
yf as JDynamicLayer,
|
|
19184
19180
|
My as JEcharts,
|
|
19185
|
-
|
|
19181
|
+
ow as JEditor,
|
|
19186
19182
|
Ab as JForm,
|
|
19187
19183
|
Bb as JFormItem,
|
|
19188
19184
|
Rb as JGuid,
|
|
@@ -19192,11 +19188,11 @@ export {
|
|
|
19192
19188
|
t0 as JInputButton,
|
|
19193
19189
|
o0 as JInputCode,
|
|
19194
19190
|
l0 as JInputColor,
|
|
19195
|
-
|
|
19191
|
+
Ub as JInputLayer,
|
|
19196
19192
|
Nb as JInputRows,
|
|
19197
19193
|
ly as JInputTag,
|
|
19198
19194
|
wc as JLayer,
|
|
19199
|
-
|
|
19195
|
+
Jb as JLayerForm,
|
|
19200
19196
|
Kf as JLayout,
|
|
19201
19197
|
O0 as JMenu,
|
|
19202
19198
|
Rf as JNumber,
|
|
@@ -19206,22 +19202,22 @@ export {
|
|
|
19206
19202
|
Af as JSelect,
|
|
19207
19203
|
cy as JSlider,
|
|
19208
19204
|
h0 as JSliderCaptcha,
|
|
19209
|
-
|
|
19205
|
+
Gb as JSwitch,
|
|
19210
19206
|
_g as JTable,
|
|
19211
19207
|
Ac as JTablePanel,
|
|
19212
|
-
|
|
19208
|
+
Xb as JTabs,
|
|
19213
19209
|
r0 as JTitle,
|
|
19214
19210
|
kb as JTree,
|
|
19215
19211
|
jy as JUpload,
|
|
19216
|
-
|
|
19212
|
+
Yx as JWorkflowViewer,
|
|
19217
19213
|
Ot as assign,
|
|
19218
19214
|
Ul as buildShortUUID,
|
|
19219
19215
|
eo as buildUUID,
|
|
19220
19216
|
ba as clearJson,
|
|
19221
19217
|
Cl as clone,
|
|
19222
19218
|
pn as deepClone,
|
|
19223
|
-
|
|
19224
|
-
|
|
19219
|
+
HC as default,
|
|
19220
|
+
NC as eventBus,
|
|
19225
19221
|
Xo as formatToDate,
|
|
19226
19222
|
ef as formatToDateTime,
|
|
19227
19223
|
ko as fullScreenLoading,
|
|
@@ -19236,22 +19232,22 @@ export {
|
|
|
19236
19232
|
Vd as is,
|
|
19237
19233
|
wl as isArray,
|
|
19238
19234
|
un as isNullOrEmpty,
|
|
19239
|
-
|
|
19235
|
+
IC as isObject,
|
|
19240
19236
|
rf as loadBMap,
|
|
19241
|
-
|
|
19242
|
-
|
|
19237
|
+
RC as lowerFirst,
|
|
19238
|
+
DC as myAesDecrypt,
|
|
19243
19239
|
Wd as numberToChinese,
|
|
19244
19240
|
Ud as numberToThousandSeparator,
|
|
19245
|
-
|
|
19246
|
-
|
|
19241
|
+
PC as pagination,
|
|
19242
|
+
LC as paginationEx,
|
|
19247
19243
|
Hd as set,
|
|
19248
19244
|
Jd as setGroupMap,
|
|
19249
19245
|
Yd as toArray,
|
|
19250
19246
|
qo as toDecimal,
|
|
19251
19247
|
Gd as toLeafArray,
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19248
|
+
zC as toSimpleTree,
|
|
19249
|
+
VC as toTree,
|
|
19250
|
+
OC as uniqueArray,
|
|
19255
19251
|
Kd as upFirst,
|
|
19256
19252
|
lf as useSortable
|
|
19257
19253
|
};
|