@a2simcode/ui 0.0.320 → 0.0.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/simcode-ui.es.js +44 -44
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -59,7 +59,7 @@ function Kf(e, t) {
|
|
|
59
59
|
function _S(e) {
|
|
60
60
|
return e !== null && Kf(e, "Object");
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var Lt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Yf = /* @__PURE__ */ xe({
|
|
63
63
|
name: "JIcon",
|
|
64
64
|
inheritAttrs: !1,
|
|
65
65
|
__name: "icon",
|
|
@@ -164,7 +164,7 @@ var Dt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
164
164
|
}, s = H(() => a.notLabel || !a.label), d = D(!1);
|
|
165
165
|
st(() => a.loading, (u) => {
|
|
166
166
|
if (typeof u == "boolean") d.value = u;
|
|
167
|
-
else if (
|
|
167
|
+
else if (Lt(u?.delay))
|
|
168
168
|
d.value = !1;
|
|
169
169
|
else {
|
|
170
170
|
const h = setTimeout(() => {
|
|
@@ -2451,7 +2451,7 @@ var Jh = Be(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2451
2451
|
a("update:modelValue", l), a("change", { value: l });
|
|
2452
2452
|
};
|
|
2453
2453
|
return st(() => n.modelValue, (l) => {
|
|
2454
|
-
if ((
|
|
2454
|
+
if ((Lt(l) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
|
|
2455
2455
|
o.value = pr(/* @__PURE__ */ new Date()), i(o.value);
|
|
2456
2456
|
return;
|
|
2457
2457
|
}
|
|
@@ -2503,7 +2503,7 @@ var Jh = Be(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2503
2503
|
const n = e, a = t, o = H({
|
|
2504
2504
|
get() {
|
|
2505
2505
|
let l = n.options;
|
|
2506
|
-
if (!
|
|
2506
|
+
if (!Lt(n.modelValue) && l && l.length > 0) {
|
|
2507
2507
|
let r = n.modelValue + "", c = n.options.find((s) => s.value + "" === r);
|
|
2508
2508
|
if (c) return c.value;
|
|
2509
2509
|
}
|
|
@@ -2512,7 +2512,7 @@ var Jh = Be(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2512
2512
|
set(l) {
|
|
2513
2513
|
a("update:modelValue", l);
|
|
2514
2514
|
}
|
|
2515
|
-
}), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.map((l) => typeof l == "string" ? l : l.color) : []);
|
|
2515
|
+
}), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.filter((l) => !Lt(typeof l == "string" ? l : l?.color)).map((l) => typeof l == "string" ? l : l.color) : []);
|
|
2516
2516
|
return (l, r) => {
|
|
2517
2517
|
const c = F("el-radio-button"), s = F("el-tag"), d = F("el-radio"), f = F("el-radio-group");
|
|
2518
2518
|
return k(), K(f, {
|
|
@@ -2670,8 +2670,8 @@ var Jh = Be(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2670
2670
|
backgroundColor: C,
|
|
2671
2671
|
color: y.textColor || l(C)
|
|
2672
2672
|
};
|
|
2673
|
-
}, c = H(() => !
|
|
2674
|
-
if (!
|
|
2673
|
+
}, c = H(() => !Lt(i.value) && !n.multiple && n.options.filter((y) => i.value == y.value).map((y) => y.label).join(",") || ""), s = H(() => !Lt(i.value) && !n.multiple ? n.options.find((y) => y.value === i.value)?.icon : ""), d = H(() => {
|
|
2674
|
+
if (!Lt(i.value) && !n.multiple) return n.options.find((y) => y.value === i.value);
|
|
2675
2675
|
}), f = H(() => !!(d.value?.color || d.value?.textColor)), u = H(() => r(d.value || {})), h = H(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), p = H(() => {
|
|
2676
2676
|
let y = [];
|
|
2677
2677
|
if (n.isSelectOnlyone ? y = n.options.map((C) => ({
|
|
@@ -2912,14 +2912,14 @@ var Jh = Be(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2912
2912
|
});
|
|
2913
2913
|
const c = H({
|
|
2914
2914
|
get() {
|
|
2915
|
-
return
|
|
2915
|
+
return Lt(a.modelValue) ? [] : a.modelValue?.split(",") || [];
|
|
2916
2916
|
},
|
|
2917
2917
|
set(f) {
|
|
2918
|
-
i("update:modelValue",
|
|
2918
|
+
i("update:modelValue", Lt(f) ? "" : f.join(","));
|
|
2919
2919
|
}
|
|
2920
2920
|
}), s = (f, u) => {
|
|
2921
2921
|
c.value = f, i("change", {
|
|
2922
|
-
value:
|
|
2922
|
+
value: Lt(f) ? "" : f.join(","),
|
|
2923
2923
|
data: u
|
|
2924
2924
|
});
|
|
2925
2925
|
}, d = H(() => ({
|
|
@@ -5552,7 +5552,7 @@ var Xp = class {
|
|
|
5552
5552
|
if (!i) return [];
|
|
5553
5553
|
let Se = {};
|
|
5554
5554
|
fe.value.paramList && fe.value.paramList.length > 0 && fe.value.paramList.forEach((De) => {
|
|
5555
|
-
!
|
|
5555
|
+
!Lt(De.upId) && !Lt(De.upKey) && (Se[De.upKey] = J(De.upId));
|
|
5556
5556
|
});
|
|
5557
5557
|
const Ae = N.fixedFilter || {};
|
|
5558
5558
|
Object.keys(Ae).forEach((De) => {
|
|
@@ -6300,7 +6300,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6300
6300
|
width: 0,
|
|
6301
6301
|
height: 0
|
|
6302
6302
|
}, se = te?.getBodyField?.(Y, ae), ye = te?.options?.columns || [], de = (se ? Et(ye, se) : null)?.style?.textAlign || "left", Te = 8, je = Math.max(0, ve.width - Te * 2);
|
|
6303
|
-
let Me =
|
|
6303
|
+
let Me = Lt(re) ? U : re;
|
|
6304
6304
|
Me == null && (Me = "");
|
|
6305
6305
|
const tt = Oe(typeof Me == "object" ? JSON.stringify(Me) : String(Me), je);
|
|
6306
6306
|
let Je = Te, ze = "left";
|
|
@@ -6485,7 +6485,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6485
6485
|
formData: l || {},
|
|
6486
6486
|
getTableData: Ln,
|
|
6487
6487
|
row: de
|
|
6488
|
-
}) || {}, je = ye?.style?.textAlign || "left", Me =
|
|
6488
|
+
}) || {}, je = ye?.style?.textAlign || "left", Me = Lt(ye._fieldFormat) ? U : ve, tt = Lt(Me) ? "" : Me + "", Je = u({
|
|
6489
6489
|
config: Te,
|
|
6490
6490
|
row: de,
|
|
6491
6491
|
value: tt
|
|
@@ -6518,7 +6518,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6518
6518
|
const ft = [];
|
|
6519
6519
|
let rn = [], zn = 0;
|
|
6520
6520
|
for (let Dn = 0; Dn < Je.length; Dn++) {
|
|
6521
|
-
const An = Je[Dn], Ia =
|
|
6521
|
+
const An = Je[Dn], Ia = Lt(An.label) ? "" : An.label + "", La = wn(Ia), _i = {
|
|
6522
6522
|
label: Ia,
|
|
6523
6523
|
bg: An.color || "#f2f3f5",
|
|
6524
6524
|
text: An.textColor || Ye(An.color || "#f2f3f5"),
|
|
@@ -8556,7 +8556,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8556
8556
|
"search"
|
|
8557
8557
|
],
|
|
8558
8558
|
setup(e, { emit: t }) {
|
|
8559
|
-
const n = e, a = t, o = D(), i = H(() =>
|
|
8559
|
+
const n = e, a = t, o = D(), i = H(() => Lt(n.modelValue) ? [] : n.modelValue?.split(",") || []), l = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
|
|
8560
8560
|
let h = n.colors[u % n.colors.length] || {};
|
|
8561
8561
|
return h = {
|
|
8562
8562
|
...h,
|
|
@@ -15702,7 +15702,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15702
15702
|
setup(e, { emit: t }) {
|
|
15703
15703
|
const n = e, a = t, { t: o } = Rt(), i = D(), l = D(), r = D(), c = D(""), s = D(0), d = D(0), f = D(""), u = H(() => {
|
|
15704
15704
|
let m = n.modelValue || "";
|
|
15705
|
-
if (n.modelValue === null && (m = q(f)),
|
|
15705
|
+
if (n.modelValue === null && (m = q(f)), Lt(m)) return {
|
|
15706
15706
|
address: "",
|
|
15707
15707
|
lng: 0,
|
|
15708
15708
|
lat: 0
|
|
@@ -15781,7 +15781,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15781
15781
|
}
|
|
15782
15782
|
}]
|
|
15783
15783
|
}], w = () => {
|
|
15784
|
-
!
|
|
15784
|
+
!Lt(c.value) && !Lt(s.value) && !Lt(d.value) ? (f.value = `${c.value},${s.value},${d.value}`, a("update:modelValue", f.value), a("change", f.value)) : (a("update:modelValue", void 0), a("change", void 0)), i.value.close();
|
|
15785
15785
|
}, b = () => {
|
|
15786
15786
|
};
|
|
15787
15787
|
return (m, _) => {
|
|
@@ -16834,7 +16834,7 @@ function Wl(e, t) {
|
|
|
16834
16834
|
y: Math.round(e.y + (t.y - e.y) / 2)
|
|
16835
16835
|
};
|
|
16836
16836
|
}
|
|
16837
|
-
var gw = /,?([a-z]),?/gi, Ts = parseFloat,
|
|
16837
|
+
var gw = /,?([a-z]),?/gi, Ts = parseFloat, Dt = Math, da = Dt.PI, $n = Dt.min, Fn = Dt.max, Ms = Dt.pow, ya = Dt.abs, vw = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, yw = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, js = Array.isArray || function(e) {
|
|
16838
16838
|
return e instanceof Array;
|
|
16839
16839
|
};
|
|
16840
16840
|
function mw(e, t) {
|
|
@@ -16954,7 +16954,7 @@ function Hs(e, t, n, a, o, i, l, r, c) {
|
|
|
16954
16954
|
0.0472
|
|
16955
16955
|
], h = 0, p = 0; p < d; p++) {
|
|
16956
16956
|
var g = s * f[p] + s, y = Ps(g, e, n, o, l), C = Ps(g, t, a, i, r), w = y * y + C * C;
|
|
16957
|
-
h += u[p] *
|
|
16957
|
+
h += u[p] * Dt.sqrt(w);
|
|
16958
16958
|
}
|
|
16959
16959
|
return s * h;
|
|
16960
16960
|
}
|
|
@@ -17134,8 +17134,8 @@ function Is(e, t, n, a, o, i) {
|
|
|
17134
17134
|
function _u(e, t, n, a, o, i, l, r, c, s) {
|
|
17135
17135
|
var d = da * 120 / 180, f = da / 180 * (+o || 0), u = [], h, p = ww(function(ke, We, lt) {
|
|
17136
17136
|
return {
|
|
17137
|
-
x: ke *
|
|
17138
|
-
y: ke *
|
|
17137
|
+
x: ke * Dt.cos(lt) - We * Dt.sin(lt),
|
|
17138
|
+
y: ke * Dt.sin(lt) + We * Dt.cos(lt)
|
|
17139
17139
|
};
|
|
17140
17140
|
});
|
|
17141
17141
|
if (s)
|
|
@@ -17143,14 +17143,14 @@ function _u(e, t, n, a, o, i, l, r, c, s) {
|
|
|
17143
17143
|
else {
|
|
17144
17144
|
h = p(e, t, -f), e = h.x, t = h.y, h = p(r, c, -f), r = h.x, c = h.y;
|
|
17145
17145
|
var g = (e - r) / 2, y = (t - c) / 2, C = g * g / (n * n) + y * y / (a * a);
|
|
17146
|
-
C > 1 && (C =
|
|
17147
|
-
var w = n * n, b = a * a, m = (i == l ? -1 : 1) *
|
|
17146
|
+
C > 1 && (C = Dt.sqrt(C), n = C * n, a = C * a);
|
|
17147
|
+
var w = n * n, b = a * a, m = (i == l ? -1 : 1) * Dt.sqrt(ya((w * b - w * y * y - b * g * g) / (w * y * y + b * g * g))), _ = m * n * y / a + (e + r) / 2, v = m * -a * g / n + (t + c) / 2, x = Dt.asin(((t - v) / a).toFixed(9)), S = Dt.asin(((c - v) / a).toFixed(9));
|
|
17148
17148
|
x = e < _ ? da - x : x, S = r < _ ? da - S : S, x < 0 && (x = da * 2 + x), S < 0 && (S = da * 2 + S), l && x > S && (x = x - da * 2), !l && S > x && (S = S - da * 2);
|
|
17149
17149
|
}
|
|
17150
17150
|
var R = S - x;
|
|
17151
17151
|
if (ya(R) > d) {
|
|
17152
17152
|
var T = S, j = r, P = c;
|
|
17153
|
-
S = x + d * (l && S > x ? 1 : -1), r = _ + n *
|
|
17153
|
+
S = x + d * (l && S > x ? 1 : -1), r = _ + n * Dt.cos(S), c = v + a * Dt.sin(S), u = _u(r, c, n, a, o, 0, l, j, P, [
|
|
17154
17154
|
S,
|
|
17155
17155
|
T,
|
|
17156
17156
|
_,
|
|
@@ -17158,7 +17158,7 @@ function _u(e, t, n, a, o, i, l, r, c, s) {
|
|
|
17158
17158
|
]);
|
|
17159
17159
|
}
|
|
17160
17160
|
R = S - x;
|
|
17161
|
-
var A =
|
|
17161
|
+
var A = Dt.cos(x), B = Dt.sin(x), M = Dt.cos(S), E = Dt.sin(S), W = Dt.tan(R / 4), V = 4 / 3 * n * W, ie = 4 / 3 * a * W, me = [e, t], J = [e + V * B, t - ie * A], ee = [r + V * E, c - ie * M], Z = [r, c];
|
|
17162
17162
|
if (J[0] = 2 * me[0] - J[0], J[1] = 2 * me[1] - J[1], s) return [
|
|
17163
17163
|
J,
|
|
17164
17164
|
ee,
|
|
@@ -17179,7 +17179,7 @@ function jw(e, t, n, a, o, i, l, r) {
|
|
|
17179
17179
|
h = -u / f, 0 < h && h < 1 && c.push(h);
|
|
17180
17180
|
continue;
|
|
17181
17181
|
}
|
|
17182
|
-
y = f * f - 4 * u * d, C =
|
|
17182
|
+
y = f * f - 4 * u * d, C = Dt.sqrt(y), !(y < 0) && (p = (-f + C) / (2 * d), 0 < p && p < 1 && c.push(p), g = (-f - C) / (2 * d), 0 < g && g < 1 && c.push(g));
|
|
17183
17183
|
}
|
|
17184
17184
|
for (var b = c.length, m = b, _; b--; )
|
|
17185
17185
|
h = c[b], _ = 1 - h, s[0][b] = _ * _ * _ * e + 3 * _ * _ * h * n + 3 * _ * h * h * o + h * h * h * l, s[1][b] = _ * _ * _ * t + 3 * _ * _ * h * a + 3 * _ * h * h * i + h * h * h * r;
|
|
@@ -17323,7 +17323,7 @@ function Pw(e) {
|
|
|
17323
17323
|
y: i.start.y + (i.end.y - i.start.y) * l
|
|
17324
17324
|
};
|
|
17325
17325
|
}
|
|
17326
|
-
function
|
|
17326
|
+
function zt(e) {
|
|
17327
17327
|
return fn(e) ? Pw(e) : Bw(e);
|
|
17328
17328
|
}
|
|
17329
17329
|
function ma(e, t, n) {
|
|
@@ -17387,7 +17387,7 @@ function Su(e, t, n, a) {
|
|
|
17387
17387
|
};
|
|
17388
17388
|
Tn(c) && (h = c), r.connection = n.connect(f, u, h, p);
|
|
17389
17389
|
}), this.start = function(l, r, c, s) {
|
|
17390
|
-
Tn(c) || (s = c, c =
|
|
17390
|
+
Tn(c) || (s = c, c = zt(r)), t.init(l, "connect", {
|
|
17391
17391
|
autoActivate: s,
|
|
17392
17392
|
data: {
|
|
17393
17393
|
shape: r,
|
|
@@ -19136,7 +19136,7 @@ Dr.$inject = ["eventBus", "connectionDocking"];
|
|
|
19136
19136
|
function Xu() {
|
|
19137
19137
|
}
|
|
19138
19138
|
Xu.prototype.layoutConnection = function(e, t) {
|
|
19139
|
-
return t = t || {}, [t.connectionStart ||
|
|
19139
|
+
return t = t || {}, [t.connectionStart || zt(t.source || e.source), t.connectionEnd || zt(t.target || e.target)];
|
|
19140
19140
|
};
|
|
19141
19141
|
var ji = 20, wx = 5, qi = Math.round, qs = 20, xx = {
|
|
19142
19142
|
"h:h": 20,
|
|
@@ -19250,12 +19250,12 @@ function Tx(e, t, n) {
|
|
|
19250
19250
|
}
|
|
19251
19251
|
function Mx(e, t, n, a, o) {
|
|
19252
19252
|
var i = Lf(o && o.preferredLayouts || [], "straight")[0] || "h:h", l = ma(e, t, xx[i] || 0), r = Ox(l, i);
|
|
19253
|
-
n = n ||
|
|
19253
|
+
n = n || zt(e), a = a || zt(t);
|
|
19254
19254
|
var c = r.split(":");
|
|
19255
19255
|
return Tx(Qs(n, e, c[0], Lx(l)), Qs(a, t, c[1], l), r);
|
|
19256
19256
|
}
|
|
19257
19257
|
function jx(e, t, n, a, o, i) {
|
|
19258
|
-
bt(n) && (o = n, i = a, n =
|
|
19258
|
+
bt(n) && (o = n, i = a, n = zt(e), a = zt(t)), i = Xe({ preferredLayouts: [] }, i), o = o || [];
|
|
19259
19259
|
var l = i.preferredLayouts.indexOf("straight") !== -1 && Bx(e, t, n, a, i);
|
|
19260
19260
|
return l || (l = i.connectionEnd && Hx(t, e, a, o), l) || (l = i.connectionStart && Px(e, t, n, o), l) ? l : !i.connectionStart && !i.connectionEnd && o && o.length ? o : Mx(e, t, n, a, i);
|
|
19261
19261
|
}
|
|
@@ -19406,7 +19406,7 @@ Vr.prototype.layoutConnection = function(e, t) {
|
|
|
19406
19406
|
return l === void 0 && (i = Ai(o && o[0], n), l = Ai(o && o[o.length - 1], a)), i || (i = Ai(o && o[0], n)), l || (l = Ai(o && o[o.length - 1], a)), Da(e, "myline") && (n === a ? r = { preferredLayouts: zx(n, e) } : Da(n, "gatewayAnd") || Da(n, "gatewayXor") || Da(n, "gatewayInclusive") ? r = { preferredLayouts: ["v:h"] } : Da(a, "gatewayAnd") || Da(a, "gatewayXor") || Da(a, "gatewayInclusive") ? r = { preferredLayouts: ["h:v"] } : r = { preferredLayouts: ["h:h"] }), r && (r = Bt(r, t), c = ed(jx(n, a, i, l, o, r))), c || [i, l];
|
|
19407
19407
|
};
|
|
19408
19408
|
function Ai(e, t) {
|
|
19409
|
-
return e ? e.original || e :
|
|
19409
|
+
return e ? e.original || e : zt(t);
|
|
19410
19410
|
}
|
|
19411
19411
|
function zx(e, t) {
|
|
19412
19412
|
const { waypoints: n } = t, a = n && n.length && ma(n[0], e);
|
|
@@ -20404,7 +20404,7 @@ function nc(e, t) {
|
|
|
20404
20404
|
}
|
|
20405
20405
|
function d_(e, t, n) {
|
|
20406
20406
|
const a = e.waypoint;
|
|
20407
|
-
return !a || a.length < 2 ? [
|
|
20407
|
+
return !a || a.length < 2 ? [zt(t), zt(n)] : a.map((o) => ({
|
|
20408
20408
|
x: o.x,
|
|
20409
20409
|
y: o.y
|
|
20410
20410
|
}));
|
|
@@ -21165,7 +21165,7 @@ function gd(e) {
|
|
|
21165
21165
|
}
|
|
21166
21166
|
function pc(e, t, n) {
|
|
21167
21167
|
var a, o;
|
|
21168
|
-
return e.original ? e.original : (a =
|
|
21168
|
+
return e.original ? e.original : (a = zt(t), o = gd(n), Ur(e, o, a[o]));
|
|
21169
21169
|
}
|
|
21170
21170
|
function vd(e, t, n, a, o, i) {
|
|
21171
21171
|
var l = e.get("connectionDocking", !1);
|
|
@@ -21412,10 +21412,10 @@ ia.prototype.drawPreview = function(e, t, n) {
|
|
|
21412
21412
|
connectionStart: c,
|
|
21413
21413
|
connectionEnd: s,
|
|
21414
21414
|
waypoints: n.waypoints || h.waypoints
|
|
21415
|
-
})), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ?
|
|
21415
|
+
})), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? zt(i) : c, l ? zt(l) : s]), this._connectionDocking && (i || l) && !f && (h.waypoints = this._connectionDocking.getCroppedWaypoints(h, i, l)), this._graphicsFactory.drawConnection(a, h, { stroke: "var(--element-dragger-color)" });
|
|
21416
21416
|
};
|
|
21417
21417
|
ia.prototype.drawNoopPreview = function(e, t) {
|
|
21418
|
-
var n = t.source, a = t.target, o = t.connectionStart ||
|
|
21418
|
+
var n = t.source, a = t.target, o = t.connectionStart || zt(n), i = t.connectionEnd || zt(a), l = this.cropWaypoints(o, i, n, a);
|
|
21419
21419
|
ct(e, this.createNoopConnection(l[0], l[1]));
|
|
21420
21420
|
};
|
|
21421
21421
|
ia.prototype.cropWaypoints = function(e, t, n, a) {
|
|
@@ -22802,7 +22802,7 @@ function IC(e, t) {
|
|
|
22802
22802
|
return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
|
|
22803
22803
|
}
|
|
22804
22804
|
function Md(e, t) {
|
|
22805
|
-
var n =
|
|
22805
|
+
var n = zt(e), a = mt(e), o = {
|
|
22806
22806
|
x: n.x,
|
|
22807
22807
|
y: n.y
|
|
22808
22808
|
};
|
|
@@ -23225,7 +23225,7 @@ bi.prototype.getSnapTargets = function(e, t) {
|
|
|
23225
23225
|
});
|
|
23226
23226
|
};
|
|
23227
23227
|
function Ad(e, t) {
|
|
23228
|
-
var n =
|
|
23228
|
+
var n = zt(e), a = mt(e), o = {
|
|
23229
23229
|
x: n.x,
|
|
23230
23230
|
y: n.y
|
|
23231
23231
|
};
|
|
@@ -23446,7 +23446,7 @@ function o1(e, t) {
|
|
|
23446
23446
|
var a = t.defaultDistance || 50, o = t.direction || "e", i = t.filter, l = t.getWeight || n, r = t.maxDistance || a1, c = t.reference || "start";
|
|
23447
23447
|
i || (i = i1);
|
|
23448
23448
|
function s(u, h) {
|
|
23449
|
-
return o === "n" ? c === "start" ? mt(u).top - mt(h).bottom : c === "center" ? mt(u).top -
|
|
23449
|
+
return o === "n" ? c === "start" ? mt(u).top - mt(h).bottom : c === "center" ? mt(u).top - zt(h).y : mt(u).top - mt(h).top : o === "w" ? c === "start" ? mt(u).left - mt(h).right : c === "center" ? mt(u).left - zt(h).x : mt(u).left - mt(h).left : o === "s" ? c === "start" ? mt(h).top - mt(u).bottom : c === "center" ? zt(h).y - mt(u).bottom : mt(h).bottom - mt(u).bottom : c === "start" ? mt(h).left - mt(u).right : c === "center" ? zt(h).x - mt(u).right : mt(h).right - mt(u).right;
|
|
23450
23450
|
}
|
|
23451
23451
|
var d = e.incoming.filter(i).map(function(u) {
|
|
23452
23452
|
var h = l(u), p = h < 0 ? s(u.source, e) : s(e, u.source);
|
|
@@ -23502,7 +23502,7 @@ Bd.$inject = [
|
|
|
23502
23502
|
];
|
|
23503
23503
|
function r1(e, t, n) {
|
|
23504
23504
|
n || (n = {});
|
|
23505
|
-
var a = n.defaultDistance || 50, o =
|
|
23505
|
+
var a = n.defaultDistance || 50, o = zt(e);
|
|
23506
23506
|
return {
|
|
23507
23507
|
x: mt(e).right + a + t.width / 2,
|
|
23508
23508
|
y: o.y
|
|
@@ -23564,7 +23564,7 @@ function y1(e, t) {
|
|
|
23564
23564
|
return m1(e, t);
|
|
23565
23565
|
}
|
|
23566
23566
|
function m1(e, t) {
|
|
23567
|
-
const n = mt(e), a =
|
|
23567
|
+
const n = mt(e), a = zt(e), o = o1(e, { filter: (r) => u1(r, "myline") }), i = 30, l = 80;
|
|
23568
23568
|
return g1(e, t, {
|
|
23569
23569
|
x: n.right + o + t.width / 2,
|
|
23570
23570
|
y: a.y + b1("left", l)
|
|
@@ -23904,9 +23904,9 @@ var x1 = {
|
|
|
23904
23904
|
const M = B.rule.length;
|
|
23905
23905
|
for (let E = 0; E < M; E++) {
|
|
23906
23906
|
const W = B.rule[E];
|
|
23907
|
-
if (W.pattern = W.pattern ? W.pattern + "" : "", W.pattern && !
|
|
23907
|
+
if (W.pattern = W.pattern ? W.pattern + "" : "", W.pattern && !Lt(P[B.prop || ""]) && !new RegExp(W.pattern.substring(1, W.pattern.length - 1)).test(P[B.prop || ""]))
|
|
23908
23908
|
return x.info = `${i("第")}${j + 1}${i("行")},${i("第")}${A + 1}${i("列")},${i(B.label)}:${i(W.message)}`, x.isOk = !1, x;
|
|
23909
|
-
if (W.required &&
|
|
23909
|
+
if (W.required && Lt(P[B.prop || ""]))
|
|
23910
23910
|
return x.isOk = !1, x.info = `${i("第")}${j + 1}${i("行")},${i("第")}${A + 1}${i("列")},${i(B.label)}:${i("不能为空")}`, x;
|
|
23911
23911
|
}
|
|
23912
23912
|
}
|
|
@@ -24462,7 +24462,7 @@ export {
|
|
|
24462
24462
|
Hn as getTextWidth,
|
|
24463
24463
|
Kf as is,
|
|
24464
24464
|
Dl as isArray,
|
|
24465
|
-
|
|
24465
|
+
Lt as isNullOrEmpty,
|
|
24466
24466
|
_S as isObject,
|
|
24467
24467
|
Ih as loadBMap,
|
|
24468
24468
|
kS as lowerFirst,
|