@a2simcode/ui 0.0.258 → 0.0.259
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 +123 -123
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as je, computed as P, createBlock as N, createCommentVNode as te, createElementBlock as L, createElementVNode as O, createSlots as Xn, createTextVNode as Fn, createVNode as ee, defineComponent as we, getCurrentInstance as Cc, guardReactiveProps as Ko, h as Hi, inject as Md, mergeModels as Wo, mergeProps as Qe, nextTick as Lt, normalizeClass as Ze, normalizeProps as Fa, normalizeStyle as ce, onBeforeUnmount as Jo, onMounted as Ft, onUnmounted as Go, openBlock as k, provide as Bd, reactive as
|
|
1
|
+
import { Fragment as je, computed as P, createBlock as N, createCommentVNode as te, createElementBlock as L, createElementVNode as O, createSlots as Xn, createTextVNode as Fn, createVNode as ee, defineComponent as we, getCurrentInstance as Cc, guardReactiveProps as Ko, h as Hi, inject as Md, mergeModels as Wo, mergeProps as Qe, nextTick as Lt, normalizeClass as Ze, normalizeProps as Fa, normalizeStyle as ce, onBeforeUnmount as Jo, onMounted as Ft, onUnmounted as Go, openBlock as k, provide as Bd, reactive as Zn, ref as D, render as Oi, renderList as De, renderSlot as rt, resolveComponent as F, resolveDirective as go, resolveDynamicComponent as Na, shallowRef as qo, toDisplayString as Ee, unref as G, useModel as Uo, useSlots as Pd, useTemplateRef as Da, vShow as kr, watch as st, watchEffect as Sc, withCtx as Z, withDirectives as Qn, withKeys as Rr, withModifiers as Xt } from "vue";
|
|
2
2
|
import { Icon as Nl, getIcon as za } from "@iconify/vue";
|
|
3
3
|
import fo from "dayjs";
|
|
4
4
|
import Hd from "sortablejs";
|
|
@@ -28,7 +28,7 @@ import { useVirtualList as Jr } from "@vueuse/core";
|
|
|
28
28
|
import gf from "async-validator";
|
|
29
29
|
import { createEditor as vf, createToolbar as yf } from "@wangeditor/editor";
|
|
30
30
|
import kc from "diagram-js";
|
|
31
|
-
import { assignStyle as Gi, attr as Pn, classes as hn, clear as Rc, closest as Gr, delegate as
|
|
31
|
+
import { assignStyle as Gi, attr as Pn, classes as hn, clear as Rc, closest as Gr, delegate as fa, domify as wn, event as yt, matches as mf, query as ln, queryAll as Er, remove as Tr } from "min-dom";
|
|
32
32
|
import { assign as Ge, bind as qr, debounce as bf, every as Xr, filter as kn, find as Vn, flatten as wf, forEach as be, groupBy as Zr, has as Ec, isArray as bt, isDefined as Bn, isFunction as Nn, isNil as Ul, isNumber as Wt, isObject as Rn, isString as jr, isUndefined as _f, map as Xo, matchPattern as Li, omit as xf, pick as Ii, reduce as Ar, size as Cf, some as Sf, sortBy as Yo, uniqueBy as kf, values as Qr, without as Rf } from "min-dash";
|
|
33
33
|
import { append as lt, attr as Je, classes as _t, clear as el, clone as Tc, create as it, createTransform as Do, remove as Sn, transform as tl } from "tiny-svg";
|
|
34
34
|
import Wa from "inherits";
|
|
@@ -1429,7 +1429,7 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
1429
1429
|
var _n = f[Ue - 15], dt = _n.high, Ut = _n.low, Rt = (dt >>> 1 | Ut << 31) ^ (dt >>> 8 | Ut << 24) ^ dt >>> 7, Et = (Ut >>> 1 | dt << 31) ^ (Ut >>> 8 | dt << 24) ^ (Ut >>> 7 | dt << 25), on = f[Ue - 2], Bt = on.high, Pt = on.low, gn = (Bt >>> 19 | Pt << 13) ^ (Bt << 3 | Pt >>> 29) ^ Bt >>> 6, X = (Pt >>> 19 | Bt << 13) ^ (Pt << 3 | Bt >>> 29) ^ (Pt >>> 6 | Bt << 26), me = f[Ue - 7], re = me.high, le = me.low, Ce = f[Ue - 16], He = Ce.high, We = Ce.low;
|
|
1430
1430
|
gt = Et + le, zt = Rt + re + (gt >>> 0 < Et >>> 0 ? 1 : 0), gt = gt + X, zt = zt + gn + (gt >>> 0 < X >>> 0 ? 1 : 0), gt = gt + We, zt = zt + He + (gt >>> 0 < We >>> 0 ? 1 : 0), Jt.high = zt, Jt.low = gt;
|
|
1431
1431
|
}
|
|
1432
|
-
var ft = Se & Y ^ ~Se & ve, Tt = Ie & ke ^ ~Ie & Be, wt = I & Ve ^ I & Ne ^ Ve & Ne, Hn = Re & xe ^ Re & et ^ xe & et, Ta = (I >>> 28 | Re << 4) ^ (I << 30 | Re >>> 2) ^ (I << 25 | Re >>> 7), no = (Re >>> 28 | I << 4) ^ (Re << 30 | I >>> 2) ^ (Re << 25 | I >>> 7), ao = (Se >>> 14 | Ie << 18) ^ (Se >>> 18 | Ie << 14) ^ (Se << 23 | Ie >>> 9), vn = (Ie >>> 14 | Se << 18) ^ (Ie >>> 18 | Se << 14) ^ (Ie << 23 | Se >>> 9),
|
|
1432
|
+
var ft = Se & Y ^ ~Se & ve, Tt = Ie & ke ^ ~Ie & Be, wt = I & Ve ^ I & Ne ^ Ve & Ne, Hn = Re & xe ^ Re & et ^ xe & et, Ta = (I >>> 28 | Re << 4) ^ (I << 30 | Re >>> 2) ^ (I << 25 | Re >>> 7), no = (Re >>> 28 | I << 4) ^ (Re << 30 | I >>> 2) ^ (Re << 25 | I >>> 7), ao = (Se >>> 14 | Ie << 18) ^ (Se >>> 18 | Ie << 14) ^ (Se << 23 | Ie >>> 9), vn = (Ie >>> 14 | Se << 18) ^ (Ie >>> 18 | Se << 14) ^ (Ie << 23 | Se >>> 9), ia = d[Ue], ja = ia.high, ra = ia.low, Qt = Fe + vn, he = ot + ao + (Qt >>> 0 < Fe >>> 0 ? 1 : 0), Qt = Qt + Tt, he = he + ft + (Qt >>> 0 < Tt >>> 0 ? 1 : 0), Qt = Qt + ra, he = he + ja + (Qt >>> 0 < ra >>> 0 ? 1 : 0), Qt = Qt + gt, he = he + zt + (Qt >>> 0 < gt >>> 0 ? 1 : 0), de = no + Hn, $e = Ta + wt + (de >>> 0 < no >>> 0 ? 1 : 0);
|
|
1433
1433
|
ot = ve, Fe = Be, ve = Y, Be = ke, Y = Se, ke = Ie, Ie = ie + Qt | 0, Se = xt + he + (Ie >>> 0 < ie >>> 0 ? 1 : 0) | 0, xt = Ne, ie = et, Ne = Ve, et = xe, Ve = I, xe = Re, Re = Qt + de | 0, I = he + $e + (Re >>> 0 < Qt >>> 0 ? 1 : 0) | 0;
|
|
1434
1434
|
}
|
|
1435
1435
|
R = b.low = R + Re, b.high = S + I + (R >>> 0 < Re >>> 0 ? 1 : 0), T = x.low = T + xe, x.high = j + Ve + (T >>> 0 < xe >>> 0 ? 1 : 0), B = w.low = B + et, w.high = H + Ne + (B >>> 0 < et >>> 0 ? 1 : 0), A = m.low = A + ie, m.high = M + xt + (A >>> 0 < ie >>> 0 ? 1 : 0), z = y.low = z + Ie, y.high = E + Se + (z >>> 0 < Ie >>> 0 ? 1 : 0), ae = C.low = ae + ke, C.high = K + Y + (ae >>> 0 < ke >>> 0 ? 1 : 0), q = v.low = q + Be, v.high = _e + ve + (q >>> 0 < Be >>> 0 ? 1 : 0), U = _.low = U + Fe, _.high = Q + ot + (U >>> 0 < Fe >>> 0 ? 1 : 0);
|
|
@@ -1593,14 +1593,14 @@ var kh = async (e) => new Promise((t, n) => {
|
|
|
1593
1593
|
LAYER_PROVIDE: "jcode_layer_provide",
|
|
1594
1594
|
PAGE_PROVIDE: "jcode_page_provide"
|
|
1595
1595
|
};
|
|
1596
|
-
function
|
|
1596
|
+
function ea(e, t) {
|
|
1597
1597
|
return Md(e, t);
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function ta(e, t) {
|
|
1600
1600
|
Bd(e, t);
|
|
1601
1601
|
}
|
|
1602
1602
|
function St() {
|
|
1603
|
-
return
|
|
1603
|
+
return ea(Zt.APP_PROVIDE, {
|
|
1604
1604
|
t: (e, ...t) => {
|
|
1605
1605
|
if (!e) return "";
|
|
1606
1606
|
if (typeof e != "string") return e;
|
|
@@ -1633,55 +1633,55 @@ function St() {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
1635
|
function _S(e) {
|
|
1636
|
-
|
|
1636
|
+
ta(Zt.APP_PROVIDE, e);
|
|
1637
1637
|
}
|
|
1638
1638
|
function Ya() {
|
|
1639
|
-
return
|
|
1639
|
+
return ea(Zt.FORM_PROVIDE, {});
|
|
1640
1640
|
}
|
|
1641
1641
|
function Fc(e) {
|
|
1642
|
-
|
|
1642
|
+
ta(Zt.FORM_PROVIDE, e);
|
|
1643
1643
|
}
|
|
1644
1644
|
function Zo() {
|
|
1645
|
-
return
|
|
1645
|
+
return ea(Zt.TABLE_PROVIDE, {});
|
|
1646
1646
|
}
|
|
1647
1647
|
function vo(e) {
|
|
1648
|
-
|
|
1648
|
+
ta(Zt.TABLE_PROVIDE, e);
|
|
1649
1649
|
}
|
|
1650
1650
|
function Rh() {
|
|
1651
|
-
return
|
|
1651
|
+
return ea(Zt.COMP_PROVIDE, {});
|
|
1652
1652
|
}
|
|
1653
1653
|
function Vc(e) {
|
|
1654
|
-
|
|
1654
|
+
ta(Zt.COMP_PROVIDE, e);
|
|
1655
1655
|
}
|
|
1656
1656
|
function Qo() {
|
|
1657
|
-
return
|
|
1657
|
+
return ea(Zt.MENU_PROVIDE, {});
|
|
1658
1658
|
}
|
|
1659
1659
|
function Eh(e) {
|
|
1660
|
-
|
|
1660
|
+
ta(Zt.MENU_PROVIDE, e);
|
|
1661
1661
|
}
|
|
1662
1662
|
function Th() {
|
|
1663
|
-
return
|
|
1663
|
+
return ea(Zt.H_MENU_PROVIDE, {});
|
|
1664
1664
|
}
|
|
1665
1665
|
function jh(e) {
|
|
1666
|
-
|
|
1666
|
+
ta(Zt.H_MENU_PROVIDE, e);
|
|
1667
1667
|
}
|
|
1668
1668
|
function Ah() {
|
|
1669
|
-
return
|
|
1669
|
+
return ea(Zt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
|
|
1670
1670
|
}
|
|
1671
1671
|
function Mh(e) {
|
|
1672
|
-
|
|
1672
|
+
ta(Zt.AUTH_PAGE_PROVIDE, e);
|
|
1673
1673
|
}
|
|
1674
1674
|
function xS() {
|
|
1675
|
-
return
|
|
1675
|
+
return ea(Zt.LAYER_PROVIDE, {});
|
|
1676
1676
|
}
|
|
1677
1677
|
function Bh(e) {
|
|
1678
|
-
|
|
1678
|
+
ta(Zt.LAYER_PROVIDE, e);
|
|
1679
1679
|
}
|
|
1680
1680
|
function Ph() {
|
|
1681
|
-
return
|
|
1681
|
+
return ea(Zt.PAGE_PROVIDE, {});
|
|
1682
1682
|
}
|
|
1683
1683
|
function Hh(e) {
|
|
1684
|
-
|
|
1684
|
+
ta(Zt.PAGE_PROVIDE, e);
|
|
1685
1685
|
}
|
|
1686
1686
|
var Oh = /* @__PURE__ */ we({
|
|
1687
1687
|
name: "JDynamicLayer",
|
|
@@ -3401,7 +3401,7 @@ var Ih = Te(Nc), zh = /* @__PURE__ */ we({
|
|
|
3401
3401
|
}
|
|
3402
3402
|
},
|
|
3403
3403
|
setup(e) {
|
|
3404
|
-
const t = e, n = Pd(), a = D(), o = D(), i = D(-1), r = D(-1), l = D(-1), c = D(-1), s = D(0), d = D(!1), f =
|
|
3404
|
+
const t = e, n = Pd(), a = D(), o = D(), i = D(-1), r = D(-1), l = D(-1), c = D(-1), s = D(0), d = D(!1), f = Zn({
|
|
3405
3405
|
type: "",
|
|
3406
3406
|
isMove: !1,
|
|
3407
3407
|
pageX: 0,
|
|
@@ -6002,7 +6002,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6002
6002
|
"change"
|
|
6003
6003
|
],
|
|
6004
6004
|
setup(e, { expose: t, emit: n }) {
|
|
6005
|
-
const a = Cc(), o = e, i = n, { formData: r } = Ya(), { useData: l, t: c } = St(), { getLabel: s, getCode: d, loadDataState: f, getObjectList: u } = l(), { openLayer: h } = Ka(), p = P(() => o.heightMode === "auto" ? { height: "auto" } : {}), g =
|
|
6005
|
+
const a = Cc(), o = e, i = n, { formData: r } = Ya(), { useData: l, t: c } = St(), { getLabel: s, getCode: d, loadDataState: f, getObjectList: u } = l(), { openLayer: h } = Ka(), p = P(() => o.heightMode === "auto" ? { height: "auto" } : {}), g = Zn({}), b = () => {
|
|
6006
6006
|
Object.keys(g).forEach(($) => {
|
|
6007
6007
|
delete g[$];
|
|
6008
6008
|
});
|
|
@@ -6241,10 +6241,10 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6241
6241
|
}, bn = (tn, rn, Dt) => {
|
|
6242
6242
|
const ut = Math.min(Dt, rn / 2, tn / 2);
|
|
6243
6243
|
return tn <= ut * 2 ? jt(tn, rn, Dt) : `M ${ut} 0 L ${tn} 0 L ${tn} ${rn} L ${ut} ${rn} Q 0 ${rn} 0 ${rn - ut} L 0 ${ut} Q 0 0 ${ut} 0 Z`;
|
|
6244
|
-
},
|
|
6244
|
+
}, la = jt(Ht, Me, Me / 2);
|
|
6245
6245
|
if (mn.push({
|
|
6246
6246
|
type: "icon",
|
|
6247
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ht}" height="${Me}" viewBox="0 0 ${Ht} ${Me}"><path d="${
|
|
6247
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ht}" height="${Me}" viewBox="0 0 ${Ht} ${Me}"><path d="${la}" fill="#e5e6eb"/></svg>`,
|
|
6248
6248
|
x: ht,
|
|
6249
6249
|
y: at,
|
|
6250
6250
|
width: Ht,
|
|
@@ -6391,11 +6391,11 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6391
6391
|
needsWrap: Dt.length > 1
|
|
6392
6392
|
};
|
|
6393
6393
|
};
|
|
6394
|
-
let { lines: bn, needsWrap:
|
|
6395
|
-
Le !== 0 &&
|
|
6394
|
+
let { lines: bn, needsWrap: la } = jt();
|
|
6395
|
+
Le !== 0 && la && (Le = 0, ht = Math.max(0, oe.width - Le * 2), at = Math.max(0, ht - Xe * 2), { lines: bn, needsWrap: la } = jt());
|
|
6396
6396
|
const Ma = bn.length * Me + (bn.length > 1 ? (bn.length - 1) * Ct : 0);
|
|
6397
6397
|
let pi = Math.max(0, (oe.height - Ma) / 2);
|
|
6398
|
-
const tn =
|
|
6398
|
+
const tn = la;
|
|
6399
6399
|
for (let Dt = 0; Dt < bn.length; Dt++) {
|
|
6400
6400
|
const ut = bn[Dt];
|
|
6401
6401
|
let Ln = tn ? Le : Oe === "center" ? Le + Math.max(0, (ht - ut.lineWidth) / 2) : Oe === "right" ? Le + Math.max(0, ht - ut.lineWidth) : Le;
|
|
@@ -6691,8 +6691,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6691
6691
|
_getCompConfig: Oe,
|
|
6692
6692
|
_getCompType: Ae,
|
|
6693
6693
|
frozen: Ht
|
|
6694
|
-
}, bn = typeof Ae == "function",
|
|
6695
|
-
if ((
|
|
6694
|
+
}, bn = typeof Ae == "function", la = Kc(ue);
|
|
6695
|
+
if ((la || bn) && (jt.editor = la || "j-comp-editor", S = !0), bn ? jt.customRender = Ut : (ue === "j-switch" && (jt.customRender = Se), ue === "j-rate" && (jt.customRender = Ie), ue === "j-slider" && (jt.customRender = Y), (ue === "j-tag" || ue === "j-input-tag") && (jt.customRender = ot), ue === "j-icon" && (jt.customRender = Be)), ue === "link" && (jt.customLayout = Ue), (ue === "j-layerform" || ue === "j-layer-form") && (jt.customLayout = zt), ue === "checkbox" && (jt.customLayout = Jt), ue === "j-switch" && (jt.minWidth = jt.minWidth || Ye, jt.maxWidth = jt.maxWidth || Ye), qe && (jt.customLayout = _n), jt.fieldFormat = Rt, tt && tt.length > 0) {
|
|
6696
6696
|
const Ma = oe(tt, fe, se + 1);
|
|
6697
6697
|
if (Ma.length === 0) return;
|
|
6698
6698
|
jt.columns = Ma;
|
|
@@ -6980,21 +6980,21 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6980
6980
|
}), Jo(() => {
|
|
6981
6981
|
Hn(), U(), document.removeEventListener("wheel", Ve);
|
|
6982
6982
|
});
|
|
6983
|
-
const
|
|
6983
|
+
const ia = P({
|
|
6984
6984
|
get() {
|
|
6985
6985
|
return o.tablePage;
|
|
6986
6986
|
},
|
|
6987
6987
|
set($) {
|
|
6988
6988
|
i("update:tablePage", $);
|
|
6989
6989
|
}
|
|
6990
|
-
}), ja = D(0),
|
|
6990
|
+
}), ja = D(0), ra = P({
|
|
6991
6991
|
get() {
|
|
6992
6992
|
return ja.value !== 0 ? ja.value : o.pageSize;
|
|
6993
6993
|
},
|
|
6994
6994
|
set($) {
|
|
6995
6995
|
ja.value = $, i("update:pageSize", $);
|
|
6996
6996
|
}
|
|
6997
|
-
}), Qt = P(() => (
|
|
6997
|
+
}), Qt = P(() => (ia.value - 1) * ra.value), he = ($, V) => {
|
|
6998
6998
|
i("loadPageData", {
|
|
6999
6999
|
rows: V,
|
|
7000
7000
|
page: $
|
|
@@ -7227,10 +7227,10 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7227
7227
|
V[2] || (V[2] = O("div", null, null, -1)),
|
|
7228
7228
|
e.isPage ? (k(), N(W, {
|
|
7229
7229
|
key: 0,
|
|
7230
|
-
"current-page":
|
|
7231
|
-
"onUpdate:currentPage": V[0] || (V[0] = (ne) =>
|
|
7232
|
-
"page-size":
|
|
7233
|
-
"onUpdate:pageSize": V[1] || (V[1] = (ne) =>
|
|
7230
|
+
"current-page": ia.value,
|
|
7231
|
+
"onUpdate:currentPage": V[0] || (V[0] = (ne) => ia.value = ne),
|
|
7232
|
+
"page-size": ra.value,
|
|
7233
|
+
"onUpdate:pageSize": V[1] || (V[1] = (ne) => ra.value = ne),
|
|
7234
7234
|
"page-sizes": e.pageSizes || [
|
|
7235
7235
|
100,
|
|
7236
7236
|
200,
|
|
@@ -7369,7 +7369,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7369
7369
|
"closed"
|
|
7370
7370
|
],
|
|
7371
7371
|
setup(e, { expose: t, emit: n }) {
|
|
7372
|
-
const a = e, o = n, { t: i } = St(), r = D(!1), l = D(!1), c = D(""), s = D(!1), d = D(!0), f = D(!1), u = D(!0), h = D(-1), p =
|
|
7372
|
+
const a = e, o = n, { t: i } = St(), r = D(!1), l = D(!1), c = D(""), s = D(!1), d = D(!0), f = D(!1), u = D(!0), h = D(-1), p = Zn({
|
|
7373
7373
|
isMove: !1,
|
|
7374
7374
|
pageX: 0,
|
|
7375
7375
|
pageY: 0,
|
|
@@ -7744,7 +7744,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7744
7744
|
"destroy-on-close": e.destroyOnClose,
|
|
7745
7745
|
onClosed: w
|
|
7746
7746
|
}, {
|
|
7747
|
-
default: Z(() => [
|
|
7747
|
+
default: Z(() => [Qn((k(), L("div", {
|
|
7748
7748
|
class: "j-block j-dialog-full-window",
|
|
7749
7749
|
"element-loading-text": G(r)(s.value)
|
|
7750
7750
|
}, [e.hasHeader ? (k(), L("div", dg, [
|
|
@@ -8016,7 +8016,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8016
8016
|
"close-on-click-modal": !0,
|
|
8017
8017
|
onClosed: u
|
|
8018
8018
|
}, {
|
|
8019
|
-
default: Z(() => [
|
|
8019
|
+
default: Z(() => [Qn((k(), L("div", {
|
|
8020
8020
|
class: Ze(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
8021
8021
|
"element-loading-text": l.value
|
|
8022
8022
|
}, [
|
|
@@ -8643,7 +8643,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8643
8643
|
style: { width: "100%" },
|
|
8644
8644
|
alt: ""
|
|
8645
8645
|
}, null, 8, Ug)) : te("", !0),
|
|
8646
|
-
|
|
8646
|
+
Qn(O("div", Yg, [s.status === "done" || s.status === "unUpload" ? (k(), N(o, {
|
|
8647
8647
|
key: 0,
|
|
8648
8648
|
type: "link",
|
|
8649
8649
|
icon: "mdi:eye",
|
|
@@ -8692,7 +8692,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8692
8692
|
icon: "mdi:check-circle",
|
|
8693
8693
|
size: 24
|
|
8694
8694
|
})) : te("", !0),
|
|
8695
|
-
e.readonly ? te("", !0) :
|
|
8695
|
+
e.readonly ? te("", !0) : Qn((k(), N(r, {
|
|
8696
8696
|
key: 2,
|
|
8697
8697
|
class: "j-upload-item-error",
|
|
8698
8698
|
icon: "mdi:delete",
|
|
@@ -9091,7 +9091,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
9091
9091
|
style: { "max-width": "1024px" },
|
|
9092
9092
|
src: Q.value,
|
|
9093
9093
|
alt: ""
|
|
9094
|
-
}, null, 8, ev)])) : Q.value != "" ?
|
|
9094
|
+
}, null, 8, ev)])) : Q.value != "" ? Qn((k(), L("div", tv, [O("iframe", {
|
|
9095
9095
|
ref: "iframe",
|
|
9096
9096
|
src: Q.value,
|
|
9097
9097
|
style: {
|
|
@@ -10001,7 +10001,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
10001
10001
|
"示例:SUMPRODUCT([1,2,3],[0.1,0.2,0.3])返回1.4,也就是 1×0.1 + 2×0.2 + 3×0.3的值"
|
|
10002
10002
|
]
|
|
10003
10003
|
}
|
|
10004
|
-
], l = D(!1), c = D([]), s =
|
|
10004
|
+
], l = D(!1), c = D([]), s = Zn({
|
|
10005
10005
|
cells: [],
|
|
10006
10006
|
cursor: 0
|
|
10007
10007
|
}), d = P({
|
|
@@ -11189,7 +11189,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
11189
11189
|
"success"
|
|
11190
11190
|
], ["update:modelValue"]),
|
|
11191
11191
|
setup(e, { emit: t }) {
|
|
11192
|
-
const n = e, a = t, o = Uo(e, "modelValue"), i =
|
|
11192
|
+
const n = e, a = t, o = Uo(e, "modelValue"), i = Zn({
|
|
11193
11193
|
endTime: 0,
|
|
11194
11194
|
isMoving: !1,
|
|
11195
11195
|
isPassing: !1,
|
|
@@ -12829,7 +12829,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12829
12829
|
200,
|
|
12830
12830
|
500,
|
|
12831
12831
|
1e3
|
|
12832
|
-
]), vn = P(() => !!i.rowKey && !i.isMultiple),
|
|
12832
|
+
]), vn = P(() => !!i.rowKey && !i.isMultiple), ia = P(() => !!i.rowKey && i.isMultiple), ja = ({ buttons: he, row: de }) => {
|
|
12833
12833
|
if (!i.actionFilter) return;
|
|
12834
12834
|
const $e = s.value.findIndex((ze) => S(ze) === S(de));
|
|
12835
12835
|
he.forEach((ze) => {
|
|
@@ -12847,7 +12847,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12847
12847
|
}
|
|
12848
12848
|
pe && typeof pe == "object" && (pe.display !== void 0 && (ze.config = ze.config || {}, ze.config.display = pe.display), pe.disabled !== void 0 && (ze.config = ze.config || {}, ze.config.disabled = pe.disabled));
|
|
12849
12849
|
});
|
|
12850
|
-
},
|
|
12850
|
+
}, ra = ({ selections: he, rows: de }) => {
|
|
12851
12851
|
if (!i.isMultiple) {
|
|
12852
12852
|
const ze = de[0], pe = ze ? [ze] : [];
|
|
12853
12853
|
g.value = pe, r("select", {
|
|
@@ -13064,7 +13064,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13064
13064
|
}, null, 8, ["icon"])]),
|
|
13065
13065
|
_: 1
|
|
13066
13066
|
}, 8, ["content"])) : te("", !0)
|
|
13067
|
-
])]),
|
|
13067
|
+
])]), Qn((k(), L("div", Qm, [e.renderVNode ? (k(), L("div", {
|
|
13068
13068
|
key: 0,
|
|
13069
13069
|
class: Ze([
|
|
13070
13070
|
"j-block",
|
|
@@ -13113,7 +13113,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13113
13113
|
"max-btns": e.actionsMaxCount,
|
|
13114
13114
|
"row-key": e.rowKey,
|
|
13115
13115
|
"is-radio": vn.value,
|
|
13116
|
-
"is-multi-select":
|
|
13116
|
+
"is-multi-select": ia.value,
|
|
13117
13117
|
"background-color": e.cardBackgroundColor,
|
|
13118
13118
|
"show-big-edit-button": e.cardShowBigEditButton,
|
|
13119
13119
|
"card-width": e.cardWidth,
|
|
@@ -13121,7 +13121,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13121
13121
|
"image-fit": e.cardImageFit,
|
|
13122
13122
|
"set-button": ja,
|
|
13123
13123
|
onLoadPageData: X,
|
|
13124
|
-
onSelectionChange:
|
|
13124
|
+
onSelectionChange: ra
|
|
13125
13125
|
}, null, 8, [
|
|
13126
13126
|
"data-source",
|
|
13127
13127
|
"load-src",
|
|
@@ -13450,7 +13450,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13450
13450
|
getCheck: y
|
|
13451
13451
|
}), (M, A) => {
|
|
13452
13452
|
const E = F("j-icon"), z = F("j-button"), K = F("el-dropdown-item"), ae = F("el-dropdown-menu"), _e = F("el-dropdown"), q = F("el-tree"), Q = F("el-empty"), U = go("loading");
|
|
13453
|
-
return
|
|
13453
|
+
return Qn((k(), L("div", {
|
|
13454
13454
|
class: Ze([
|
|
13455
13455
|
"j-block",
|
|
13456
13456
|
"j-tree",
|
|
@@ -13739,7 +13739,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13739
13739
|
i && (p = i());
|
|
13740
13740
|
const g = (X) => {
|
|
13741
13741
|
f && f(X);
|
|
13742
|
-
}, b = D(!1), x = P(() => a.config?.gutter || 16), w = P(() => a.config?.span || 24), m = P(() => a.config?.labelWidth), y = P(() => a.config?.labelPosition || "right"), C = P(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), v =
|
|
13742
|
+
}, b = D(!1), x = P(() => a.config?.gutter || 16), w = P(() => a.config?.span || 24), m = P(() => a.config?.labelWidth), y = P(() => a.config?.labelPosition || "right"), C = P(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), v = Zn({}), _ = D({}), S = Zn([]), R = {};
|
|
13743
13743
|
let j = {}, T = {}, H = [], B = {}, M = {}, A = !1, E = 0, z;
|
|
13744
13744
|
const K = () => new Promise((X) => {
|
|
13745
13745
|
const me = globalThis.requestAnimationFrame;
|
|
@@ -14087,7 +14087,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14087
14087
|
key: 1,
|
|
14088
14088
|
gutter: x.value
|
|
14089
14089
|
}, {
|
|
14090
|
-
default: Z(() => [(k(), L(je, null, De(S, (He) =>
|
|
14090
|
+
default: Z(() => [(k(!0), L(je, null, De(S, (He) => (k(), N(re, Qe({ key: He.id }, { ref_for: !0 }, He), null, 16))), 128))]),
|
|
14091
14091
|
_: 1
|
|
14092
14092
|
}, 8, ["gutter"]))]),
|
|
14093
14093
|
_: 1
|
|
@@ -14117,7 +14117,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14117
14117
|
}
|
|
14118
14118
|
},
|
|
14119
14119
|
setup(e, { expose: t }) {
|
|
14120
|
-
const n = e, a = D(!1), o =
|
|
14120
|
+
const n = e, a = D(!1), o = Zn([]), i = {}, r = Zn({}), l = (w, m) => {
|
|
14121
14121
|
w.forEach((y) => {
|
|
14122
14122
|
y.id = y.id || nl("c");
|
|
14123
14123
|
const C = {
|
|
@@ -15624,11 +15624,11 @@ function eu(e, t, n) {
|
|
|
15624
15624
|
var j = i[S] = function(T) {
|
|
15625
15625
|
o(S, T);
|
|
15626
15626
|
};
|
|
15627
|
-
R && (s[S] = R), j.$delegate =
|
|
15627
|
+
R && (s[S] = R), j.$delegate = fa.bind(v, f, _, j);
|
|
15628
15628
|
}
|
|
15629
15629
|
function h(v, _, S) {
|
|
15630
15630
|
var R = r(S);
|
|
15631
|
-
R &&
|
|
15631
|
+
R && fa.unbind(v, _, R.$delegate);
|
|
15632
15632
|
}
|
|
15633
15633
|
function p(v) {
|
|
15634
15634
|
be(c, function(_, S) {
|
|
@@ -16401,7 +16401,7 @@ function fl(e, t, n, a) {
|
|
|
16401
16401
|
return Math.abs(o / i) <= a;
|
|
16402
16402
|
}
|
|
16403
16403
|
var tw = 2;
|
|
16404
|
-
function
|
|
16404
|
+
function ha(e, t) {
|
|
16405
16405
|
var n = Array.from(arguments).flat();
|
|
16406
16406
|
for (const [a, o] of Object.entries({
|
|
16407
16407
|
x: "v",
|
|
@@ -16424,7 +16424,7 @@ function Lr(e, t) {
|
|
|
16424
16424
|
y: Math.round(e.y + (t.y - e.y) / 2)
|
|
16425
16425
|
};
|
|
16426
16426
|
}
|
|
16427
|
-
var aw = /,?([a-z]),?/gi, bs = parseFloat, $t = Math,
|
|
16427
|
+
var aw = /,?([a-z]),?/gi, bs = parseFloat, $t = Math, sa = $t.PI, Dn = $t.min, $n = $t.max, ws = $t.pow, pa = $t.abs, ow = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, iw = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, _s = Array.isArray || function(e) {
|
|
16428
16428
|
return e instanceof Array;
|
|
16429
16429
|
};
|
|
16430
16430
|
function rw(e, t) {
|
|
@@ -16505,11 +16505,11 @@ function Cs(e) {
|
|
|
16505
16505
|
var t = mw(...e);
|
|
16506
16506
|
return Ir(t.x0, t.y0, t.x1 - t.x0, t.y1 - t.y0);
|
|
16507
16507
|
}
|
|
16508
|
-
function
|
|
16508
|
+
function ca(e, t, n) {
|
|
16509
16509
|
return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height;
|
|
16510
16510
|
}
|
|
16511
16511
|
function hw(e, t) {
|
|
16512
|
-
return e = Ir(e), t = Ir(t),
|
|
16512
|
+
return e = Ir(e), t = Ir(t), ca(t, e.x, e.y) || ca(t, e.x2, e.y) || ca(t, e.x, e.y2) || ca(t, e.x2, e.y2) || ca(e, t.x, t.y) || ca(e, t.x2, t.y) || ca(e, t.x, t.y2) || ca(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);
|
|
16513
16513
|
}
|
|
16514
16514
|
function Ss(e, t, n, a, o) {
|
|
16515
16515
|
return e * (e * (-3 * t + 9 * n - 9 * a + 3 * o) + 6 * t - 12 * n + 6 * a) - 3 * t + 3 * n;
|
|
@@ -16582,11 +16582,11 @@ function gw(e, t, n) {
|
|
|
16582
16582
|
t: f / r
|
|
16583
16583
|
};
|
|
16584
16584
|
for (f = 0; f < i; f++) for (u = 0; u < r; u++) {
|
|
16585
|
-
var p = l[f], g = l[f + 1], b = c[u], x = c[u + 1], w =
|
|
16585
|
+
var p = l[f], g = l[f + 1], b = c[u], x = c[u + 1], w = pa(g.x - p.x) < 0.01 ? "y" : "x", m = pa(x.x - b.x) < 0.01 ? "y" : "x", y = pw(p.x, p.y, g.x, g.y, b.x, b.y, x.x, x.y), C;
|
|
16586
16586
|
if (y) {
|
|
16587
16587
|
if (C = y.x.toFixed(9) + "#" + y.y.toFixed(9), s[C]) continue;
|
|
16588
16588
|
s[C] = !0;
|
|
16589
|
-
var v = p.t +
|
|
16589
|
+
var v = p.t + pa((y[w] - p[w]) / (g[w] - p[w])) * (g.t - p.t), _ = b.t + pa((y[m] - b[m]) / (x[m] - b[m])) * (x.t - b.t);
|
|
16590
16590
|
v >= 0 && v <= 1 && _ >= 0 && _ <= 1 && (n ? d++ : d.push({
|
|
16591
16591
|
x: y.x,
|
|
16592
16592
|
y: y.y,
|
|
@@ -16722,7 +16722,7 @@ function Es(e, t, n, a, o, i) {
|
|
|
16722
16722
|
];
|
|
16723
16723
|
}
|
|
16724
16724
|
function pu(e, t, n, a, o, i, r, l, c, s) {
|
|
16725
|
-
var d =
|
|
16725
|
+
var d = sa * 120 / 180, f = sa / 180 * (+o || 0), u = [], h, p = sw(function(xe, Ne, et) {
|
|
16726
16726
|
return {
|
|
16727
16727
|
x: xe * $t.cos(et) - Ne * $t.sin(et),
|
|
16728
16728
|
y: xe * $t.sin(et) + Ne * $t.cos(et)
|
|
@@ -16734,11 +16734,11 @@ function pu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16734
16734
|
h = p(e, t, -f), e = h.x, t = h.y, h = p(l, c, -f), l = h.x, c = h.y;
|
|
16735
16735
|
var g = (e - l) / 2, b = (t - c) / 2, x = g * g / (n * n) + b * b / (a * a);
|
|
16736
16736
|
x > 1 && (x = $t.sqrt(x), n = x * n, a = x * a);
|
|
16737
|
-
var w = n * n, m = a * a, y = (i == r ? -1 : 1) * $t.sqrt(
|
|
16738
|
-
_ = e < C ?
|
|
16737
|
+
var w = n * n, m = a * a, y = (i == r ? -1 : 1) * $t.sqrt(pa((w * m - w * b * b - m * g * g) / (w * b * b + m * g * g))), C = y * n * b / a + (e + l) / 2, v = y * -a * g / n + (t + c) / 2, _ = $t.asin(((t - v) / a).toFixed(9)), S = $t.asin(((c - v) / a).toFixed(9));
|
|
16738
|
+
_ = e < C ? sa - _ : _, S = l < C ? sa - S : S, _ < 0 && (_ = sa * 2 + _), S < 0 && (S = sa * 2 + S), r && _ > S && (_ = _ - sa * 2), !r && S > _ && (S = S - sa * 2);
|
|
16739
16739
|
}
|
|
16740
16740
|
var R = S - _;
|
|
16741
|
-
if (
|
|
16741
|
+
if (pa(R) > d) {
|
|
16742
16742
|
var j = S, T = l, H = c;
|
|
16743
16743
|
S = _ + d * (r && S > _ ? 1 : -1), l = C + n * $t.cos(S), c = v + a * $t.sin(S), u = pu(l, c, n, a, o, 0, r, T, H, [
|
|
16744
16744
|
S,
|
|
@@ -16764,8 +16764,8 @@ function pu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16764
16764
|
}
|
|
16765
16765
|
function mw(e, t, n, a, o, i, r, l) {
|
|
16766
16766
|
for (var c = [], s = [[], []], d, f, u, h, p, g, b, x, w = 0; w < 2; ++w) {
|
|
16767
|
-
if (w == 0 ? (f = 6 * e - 12 * n + 6 * o, d = -3 * e + 9 * n - 9 * o + 3 * r, u = 3 * n - 3 * e) : (f = 6 * t - 12 * a + 6 * i, d = -3 * t + 9 * a - 9 * i + 3 * l, u = 3 * a - 3 * t),
|
|
16768
|
-
if (
|
|
16767
|
+
if (w == 0 ? (f = 6 * e - 12 * n + 6 * o, d = -3 * e + 9 * n - 9 * o + 3 * r, u = 3 * n - 3 * e) : (f = 6 * t - 12 * a + 6 * i, d = -3 * t + 9 * a - 9 * i + 3 * l, u = 3 * a - 3 * t), pa(d) < 1e-12) {
|
|
16768
|
+
if (pa(f) < 1e-12) continue;
|
|
16769
16769
|
h = -u / f, 0 < h && h < 1 && c.push(h);
|
|
16770
16770
|
continue;
|
|
16771
16771
|
}
|
|
@@ -17353,16 +17353,16 @@ an.prototype.on = function(e, t, n, a, o, i) {
|
|
|
17353
17353
|
r.on(c, n, o ? Ow(a, i) : a, i);
|
|
17354
17354
|
});
|
|
17355
17355
|
};
|
|
17356
|
-
an.prototype.canExecute =
|
|
17357
|
-
an.prototype.preExecute =
|
|
17358
|
-
an.prototype.preExecuted =
|
|
17359
|
-
an.prototype.execute =
|
|
17360
|
-
an.prototype.executed =
|
|
17361
|
-
an.prototype.postExecute =
|
|
17362
|
-
an.prototype.postExecuted =
|
|
17363
|
-
an.prototype.revert =
|
|
17364
|
-
an.prototype.reverted =
|
|
17365
|
-
function
|
|
17356
|
+
an.prototype.canExecute = na("canExecute");
|
|
17357
|
+
an.prototype.preExecute = na("preExecute");
|
|
17358
|
+
an.prototype.preExecuted = na("preExecuted");
|
|
17359
|
+
an.prototype.execute = na("execute");
|
|
17360
|
+
an.prototype.executed = na("executed");
|
|
17361
|
+
an.prototype.postExecute = na("postExecute");
|
|
17362
|
+
an.prototype.postExecuted = na("postExecuted");
|
|
17363
|
+
an.prototype.revert = na("revert");
|
|
17364
|
+
an.prototype.reverted = na("reverted");
|
|
17365
|
+
function na(e) {
|
|
17366
17366
|
return function(n, a, o, i, r) {
|
|
17367
17367
|
(Nn(n) || Wt(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
|
|
17368
17368
|
};
|
|
@@ -18053,11 +18053,11 @@ li.prototype.revert = function(e) {
|
|
|
18053
18053
|
function Ls(e) {
|
|
18054
18054
|
return e.original || e;
|
|
18055
18055
|
}
|
|
18056
|
-
function
|
|
18056
|
+
function aa(e, t) {
|
|
18057
18057
|
this._modeling = e, this._rules = t;
|
|
18058
18058
|
}
|
|
18059
|
-
|
|
18060
|
-
|
|
18059
|
+
aa.$inject = ["modeling", "rules"];
|
|
18060
|
+
aa.prototype.preExecute = function(e) {
|
|
18061
18061
|
var t = this, n = this._modeling, a = this._rules, o = e.oldShape, i = e.newData, r = e.hints || {}, l;
|
|
18062
18062
|
function c(p, g, b) {
|
|
18063
18063
|
return a.allowed("connection.reconnect", {
|
|
@@ -18090,21 +18090,21 @@ na.prototype.preExecute = function(e) {
|
|
|
18090
18090
|
c(l, g, p) && t.reconnectStart(p, l, xl(p, l, d), r);
|
|
18091
18091
|
});
|
|
18092
18092
|
};
|
|
18093
|
-
|
|
18093
|
+
aa.prototype.postExecute = function(e) {
|
|
18094
18094
|
var t = e.oldShape;
|
|
18095
18095
|
this._modeling.removeShape(t);
|
|
18096
18096
|
};
|
|
18097
|
-
|
|
18097
|
+
aa.prototype.execute = function(e) {
|
|
18098
18098
|
};
|
|
18099
|
-
|
|
18099
|
+
aa.prototype.revert = function(e) {
|
|
18100
18100
|
};
|
|
18101
|
-
|
|
18101
|
+
aa.prototype.createShape = function(e, t, n, a) {
|
|
18102
18102
|
return this._modeling.createShape(e, t, n, a);
|
|
18103
18103
|
};
|
|
18104
|
-
|
|
18104
|
+
aa.prototype.reconnectStart = function(e, t, n, a) {
|
|
18105
18105
|
this._modeling.reconnectStart(e, t, n, a);
|
|
18106
18106
|
};
|
|
18107
|
-
|
|
18107
|
+
aa.prototype.reconnectEnd = function(e, t, n, a) {
|
|
18108
18108
|
this._modeling.reconnectEnd(e, t, n, a);
|
|
18109
18109
|
};
|
|
18110
18110
|
function si(e) {
|
|
@@ -18232,9 +18232,9 @@ _a.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, r) {
|
|
|
18232
18232
|
var l = this, c = o.concat(i);
|
|
18233
18233
|
be(e, function(s) {
|
|
18234
18234
|
var d = s.source, f = s.target, u = e_(s), h = Hu(n), p = {};
|
|
18235
|
-
|
|
18235
|
+
ua(c, d) && ua(c, f) ? (u = Xo(u, function(g) {
|
|
18236
18236
|
return zs(g, a, n) && (g[h] = g[h] + t[h]), g.original && zs(g.original, a, n) && (g.original[h] = g.original[h] + t[h]), g;
|
|
18237
|
-
}), l._modeling.updateWaypoints(s, u, { labelBehavior: !1 })) : (
|
|
18237
|
+
}), l._modeling.updateWaypoints(s, u, { labelBehavior: !1 })) : (ua(c, d) || ua(c, f)) && (ua(o, d) ? p.connectionStart = Sl(s, d, t) : ua(o, f) ? p.connectionEnd = kl(s, f, t) : ua(i, d) ? p.connectionStart = xl(s, d, r[d.id]) : ua(i, f) && (p.connectionEnd = Cl(s, f, r[f.id])), l._modeling.layoutConnection(s, p));
|
|
18238
18238
|
});
|
|
18239
18239
|
};
|
|
18240
18240
|
function Is(e) {
|
|
@@ -18262,7 +18262,7 @@ function zs(e, t, n) {
|
|
|
18262
18262
|
if (/e|s/.test(n)) return e[a] > t;
|
|
18263
18263
|
if (/n|w/.test(n)) return e[a] < t;
|
|
18264
18264
|
}
|
|
18265
|
-
function
|
|
18265
|
+
function ua(e, t) {
|
|
18266
18266
|
return e.indexOf(t) !== -1;
|
|
18267
18267
|
}
|
|
18268
18268
|
function t_(e) {
|
|
@@ -18355,7 +18355,7 @@ pt.prototype.getHandlers = function() {
|
|
|
18355
18355
|
"shape.delete": ii,
|
|
18356
18356
|
"shape.move": Xa,
|
|
18357
18357
|
"shape.resize": si,
|
|
18358
|
-
"shape.replace":
|
|
18358
|
+
"shape.replace": aa,
|
|
18359
18359
|
"shape.toggleCollapse": lr,
|
|
18360
18360
|
spaceTool: _a,
|
|
18361
18361
|
"label.create": ai,
|
|
@@ -18897,7 +18897,7 @@ function Bl(e, t, n, a) {
|
|
|
18897
18897
|
});
|
|
18898
18898
|
}
|
|
18899
18899
|
function i(d, f, u) {
|
|
18900
|
-
switch (
|
|
18900
|
+
switch (ha(f, d)) {
|
|
18901
18901
|
case "v":
|
|
18902
18902
|
return {
|
|
18903
18903
|
x: u.x,
|
|
@@ -18921,7 +18921,7 @@ function Bl(e, t, n, a) {
|
|
|
18921
18921
|
}
|
|
18922
18922
|
if (o(a)) return null;
|
|
18923
18923
|
var l = a[0], c = a.slice(), s;
|
|
18924
|
-
return c[0] = n, c[1] = i(c[1], l, n), s = r(c, e, t), s !== c && (c = Bl(e, t, n, s)), c &&
|
|
18924
|
+
return c[0] = n, c[1] = i(c[1], l, n), s = r(c, e, t), s !== c && (c = Bl(e, t, n, s)), c && ha(c) ? null : c;
|
|
18925
18925
|
}
|
|
18926
18926
|
function C_(e, t) {
|
|
18927
18927
|
if (Uu(t)) return t;
|
|
@@ -19237,7 +19237,7 @@ function B_(e) {
|
|
|
19237
19237
|
["z"]
|
|
19238
19238
|
]);
|
|
19239
19239
|
}
|
|
19240
|
-
var Fr = 10, mr = 0.95,
|
|
19240
|
+
var Fr = 10, mr = 0.95, da = (e, t) => e.type === t;
|
|
19241
19241
|
function Qa(e, t, n, a, o, i, r) {
|
|
19242
19242
|
Za.call(this, e, r);
|
|
19243
19243
|
const l = "var(--j-color-bg-container)", c = "var(--j-color-text)", s = {};
|
|
@@ -19715,7 +19715,7 @@ Qa.prototype.drawConnection = function(e, t) {
|
|
|
19715
19715
|
return a(e, t);
|
|
19716
19716
|
};
|
|
19717
19717
|
Qa.prototype.getShapePath = function(e) {
|
|
19718
|
-
return
|
|
19718
|
+
return da(e, "startEvent") || da(e, "endEvent") ? j_(e) : da(e, "userTask") || da(e, "scriptTask") || da(e, "subprocess") ? A_(e, Fr) : da(e, "gatewayAnd") || da(e, "gatewayXor") || da(e, "gatewayInclusive") ? M_(e) : B_(e);
|
|
19719
19719
|
};
|
|
19720
19720
|
var P_ = 0, H_ = {
|
|
19721
19721
|
width: 150,
|
|
@@ -20479,7 +20479,7 @@ function px(e, t, n, a) {
|
|
|
20479
20479
|
}), _t(f).add("djs-hit"), lt(o, f), Q0(o, a === "v" ? 90 : 0, 0, 0), o;
|
|
20480
20480
|
}
|
|
20481
20481
|
function od(e, t, n) {
|
|
20482
|
-
var a = it("g"), o = Lr(t, n), i =
|
|
20482
|
+
var a = it("g"), o = Lr(t, n), i = ha(t, n);
|
|
20483
20483
|
return lt(e, a), px(a, t, n, i), _t(a).add(ad), _t(a).add(i === "h" ? "horizontal" : "vertical"), Un(a, o.x, o.y), a;
|
|
20484
20484
|
}
|
|
20485
20485
|
function Wr(e) {
|
|
@@ -20505,14 +20505,14 @@ function Hl(e) {
|
|
|
20505
20505
|
function id(e, t, n, a, o) {
|
|
20506
20506
|
function i(m, y, C) {
|
|
20507
20507
|
var v = m.index, _ = m.point, S, R, j, T, H, B;
|
|
20508
|
-
return v <= 0 || m.bendpoint ? !1 : (S = y[v - 1], R = y[v], j = Lr(S, R), T =
|
|
20508
|
+
return v <= 0 || m.bendpoint ? !1 : (S = y[v - 1], R = y[v], j = Lr(S, R), T = ha(S, R), H = Math.abs(_.x - j.x), B = Math.abs(_.y - j.y), T && H <= C && B <= C);
|
|
20509
20509
|
}
|
|
20510
20510
|
function r(m, y) {
|
|
20511
20511
|
var C = m.waypoints, v, _, S, R;
|
|
20512
20512
|
return y.index <= 0 || y.bendpoint || (v = {
|
|
20513
20513
|
start: C[y.index - 1],
|
|
20514
20514
|
end: C[y.index]
|
|
20515
|
-
}, _ =
|
|
20515
|
+
}, _ = ha(v.start, v.end), !_) ? null : (_ === "h" ? S = v.end.x - v.start.x : S = v.end.y - v.start.y, R = Wr(S) / 2, R);
|
|
20516
20516
|
}
|
|
20517
20517
|
function l(m, y) {
|
|
20518
20518
|
var C = y.waypoints, v = Vr(t, C, m), _;
|
|
@@ -20539,7 +20539,7 @@ function id(e, t, n, a, o) {
|
|
|
20539
20539
|
}
|
|
20540
20540
|
function u(m, y) {
|
|
20541
20541
|
for (var C = y.waypoints, v, _, S, R = 1; R < C.length; R++)
|
|
20542
|
-
v = C[R - 1], _ = C[R],
|
|
20542
|
+
v = C[R - 1], _ = C[R], ha(v, _) && (S = od(m, v, _), Je(S, { "data-segment-idx": R }), c(S, "mousemove", y));
|
|
20543
20543
|
}
|
|
20544
20544
|
function h(m) {
|
|
20545
20545
|
be(Er("." + nd, m), function(y) {
|
|
@@ -20564,7 +20564,7 @@ function id(e, t, n, a, o) {
|
|
|
20564
20564
|
C && Un(C, v.x, v.y);
|
|
20565
20565
|
}
|
|
20566
20566
|
function w(m, y, C) {
|
|
20567
|
-
var v = d(y.index, m), _ = C[y.index - 1], S = C[y.index], R = y.point, j = Lr(_, S), T =
|
|
20567
|
+
var v = d(y.index, m), _ = C[y.index - 1], S = C[y.index], R = y.point, j = Lr(_, S), T = ha(_, S), H, B;
|
|
20568
20568
|
v && (H = mx(v), B = {
|
|
20569
20569
|
x: R.x - j.x,
|
|
20570
20570
|
y: R.y - j.y
|
|
@@ -20760,7 +20760,7 @@ function ic(e, t, n) {
|
|
|
20760
20760
|
function sd(e, t, n, a, o, i) {
|
|
20761
20761
|
var r = e.get("connectionDocking", !1);
|
|
20762
20762
|
this.start = function(f, u, h) {
|
|
20763
|
-
var p, g = n.getGraphics(u), b = h - 1, x = h, w = u.waypoints, m = w[b], y = w[x], C = Vr(n, w, f), v =
|
|
20763
|
+
var p, g = n.getGraphics(u), b = h - 1, x = h, w = u.waypoints, m = w[b], y = w[x], C = Vr(n, w, f), v = ha(m, y), _, S;
|
|
20764
20764
|
v && (_ = v === "v" ? "x" : "y", b === 0 && (m = ic(m, u.source, _)), x === w.length - 1 && (y = ic(y, u.target, _)), C ? S = C.point : S = {
|
|
20765
20765
|
x: (m.x + y.x) / 2,
|
|
20766
20766
|
y: (m.y + y.y) / 2
|
|
@@ -20978,16 +20978,16 @@ var Ex = {
|
|
|
20978
20978
|
connectionSegmentMove: ["type", sd],
|
|
20979
20979
|
bendpointSnapping: ["type", ud]
|
|
20980
20980
|
}, Tx = "djs-dragger";
|
|
20981
|
-
function
|
|
20981
|
+
function oa(e, t, n, a) {
|
|
20982
20982
|
this._canvas = t, this._graphicsFactory = n, this._elementFactory = a, this._connectionDocking = e.get("connectionDocking", !1), this._layouter = e.get("layouter", !1);
|
|
20983
20983
|
}
|
|
20984
|
-
|
|
20984
|
+
oa.$inject = [
|
|
20985
20985
|
"injector",
|
|
20986
20986
|
"canvas",
|
|
20987
20987
|
"graphicsFactory",
|
|
20988
20988
|
"elementFactory"
|
|
20989
20989
|
];
|
|
20990
|
-
|
|
20990
|
+
oa.prototype.drawPreview = function(e, t, n) {
|
|
20991
20991
|
n = n || {};
|
|
20992
20992
|
var a = e.connectionPreviewGfx, o = e.getConnection, i = n.source, r = n.target, l = n.waypoints, c = n.connectionStart, s = n.connectionEnd, d = n.noLayout, f = n.noCropping, u = n.noNoop, h, p = this;
|
|
20993
20993
|
if (a || (a = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), el(a), o || (o = e.getConnection = jx(function(g, b, x) {
|
|
@@ -21004,26 +21004,26 @@ aa.prototype.drawPreview = function(e, t, n) {
|
|
|
21004
21004
|
waypoints: n.waypoints || h.waypoints
|
|
21005
21005
|
})), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? It(i) : c, r ? It(r) : s]), this._connectionDocking && (i || r) && !f && (h.waypoints = this._connectionDocking.getCroppedWaypoints(h, i, r)), this._graphicsFactory.drawConnection(a, h, { stroke: "var(--element-dragger-color)" });
|
|
21006
21006
|
};
|
|
21007
|
-
|
|
21007
|
+
oa.prototype.drawNoopPreview = function(e, t) {
|
|
21008
21008
|
var n = t.source, a = t.target, o = t.connectionStart || It(n), i = t.connectionEnd || It(a), r = this.cropWaypoints(o, i, n, a);
|
|
21009
21009
|
lt(e, this.createNoopConnection(r[0], r[1]));
|
|
21010
21010
|
};
|
|
21011
|
-
|
|
21011
|
+
oa.prototype.cropWaypoints = function(e, t, n, a) {
|
|
21012
21012
|
var o = this._graphicsFactory, i = n && o.getShapePath(n), r = a && o.getShapePath(a), l = o.getConnectionPath({ waypoints: [e, t] });
|
|
21013
21013
|
return e = n && zr(i, l, !0) || e, t = a && zr(r, l, !1) || t, [e, t];
|
|
21014
21014
|
};
|
|
21015
|
-
|
|
21015
|
+
oa.prototype.cleanUp = function(e) {
|
|
21016
21016
|
e && e.connectionPreviewGfx && Sn(e.connectionPreviewGfx);
|
|
21017
21017
|
};
|
|
21018
|
-
|
|
21018
|
+
oa.prototype.getConnection = function(e) {
|
|
21019
21019
|
var t = Ax(e);
|
|
21020
21020
|
return this._elementFactory.createConnection(t);
|
|
21021
21021
|
};
|
|
21022
|
-
|
|
21022
|
+
oa.prototype.createConnectionPreviewGfx = function() {
|
|
21023
21023
|
var e = it("g");
|
|
21024
21024
|
return Je(e, { pointerEvents: "none" }), _t(e).add(Tx), lt(this._canvas.getActiveLayer(), e), e;
|
|
21025
21025
|
};
|
|
21026
|
-
|
|
21026
|
+
oa.prototype.createNoopConnection = function(e, t) {
|
|
21027
21027
|
return rl([e, t], {
|
|
21028
21028
|
stroke: "#333",
|
|
21029
21029
|
strokeDasharray: [1],
|
|
@@ -21043,7 +21043,7 @@ function Ax(e) {
|
|
|
21043
21043
|
}
|
|
21044
21044
|
var Mx = {
|
|
21045
21045
|
__init__: ["connectionPreview"],
|
|
21046
|
-
connectionPreview: ["type",
|
|
21046
|
+
connectionPreview: ["type", oa]
|
|
21047
21047
|
}, Bx = new Xi("ov"), Px = 500;
|
|
21048
21048
|
function Kt(e, t, n, a) {
|
|
21049
21049
|
this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = Bx, this._overlayDefaults = Ge({
|
|
@@ -21384,13 +21384,13 @@ Nt.prototype._updateAndOpen = function(e) {
|
|
|
21384
21384
|
};
|
|
21385
21385
|
Nt.prototype._createHtml = function(e) {
|
|
21386
21386
|
var t = this, n = wn('<div class="djs-context-pad"></div>');
|
|
21387
|
-
return
|
|
21387
|
+
return fa.bind(n, Ti, "click", function(a) {
|
|
21388
21388
|
t.trigger("click", a);
|
|
21389
|
-
}),
|
|
21389
|
+
}), fa.bind(n, Ti, "dragstart", function(a) {
|
|
21390
21390
|
t.trigger("dragstart", a);
|
|
21391
|
-
}),
|
|
21391
|
+
}), fa.bind(n, Ti, "mouseover", function(a) {
|
|
21392
21392
|
t.trigger("mouseover", a);
|
|
21393
|
-
}),
|
|
21393
|
+
}), fa.bind(n, Ti, "mouseout", function(a) {
|
|
21394
21394
|
t.trigger("mouseout", a);
|
|
21395
21395
|
}), yt.bind(n, "mousedown", function(a) {
|
|
21396
21396
|
a.stopPropagation();
|
|
@@ -22135,13 +22135,13 @@ Vt.prototype._rebuild = function() {
|
|
|
22135
22135
|
};
|
|
22136
22136
|
Vt.prototype._init = function() {
|
|
22137
22137
|
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = wn(Vt.HTML_MARKUP);
|
|
22138
|
-
n.appendChild(a), hn(n).add(Ur + dC),
|
|
22138
|
+
n.appendChild(a), hn(n).add(Ur + dC), fa.bind(a, uC, "click", function(o) {
|
|
22139
22139
|
var i = o.delegateTarget;
|
|
22140
22140
|
if (mf(i, md)) return e.toggle();
|
|
22141
22141
|
e.trigger("click", o);
|
|
22142
22142
|
}), yt.bind(a, "mousedown", function(o) {
|
|
22143
22143
|
o.stopPropagation();
|
|
22144
|
-
}),
|
|
22144
|
+
}), fa.bind(a, bd, "dragstart", function(o) {
|
|
22145
22145
|
e.trigger("dragstart", o);
|
|
22146
22146
|
}), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
|
|
22147
22147
|
};
|
|
@@ -23539,7 +23539,7 @@ var c1 = {
|
|
|
23539
23539
|
span: E.config?.span || e.span || 24,
|
|
23540
23540
|
style: ce({ "margin-bottom": (E.getInputType ? E.getInputType(M) : E.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
23541
23541
|
}, {
|
|
23542
|
-
default: Z(() => [
|
|
23542
|
+
default: Z(() => [Qn(ee(j, {
|
|
23543
23543
|
"label-width": y(E.config?.labelWidth),
|
|
23544
23544
|
label: G(i)(E.config?.label || ""),
|
|
23545
23545
|
extra: E.config?.labelExtra,
|
|
@@ -23766,7 +23766,7 @@ var c1 = {
|
|
|
23766
23766
|
paddingBottom: e.isPage ? "48px" : void 0,
|
|
23767
23767
|
backgroundColor: e.backgroundColor || "var(--j-color-bg)"
|
|
23768
23768
|
})
|
|
23769
|
-
}, [
|
|
23769
|
+
}, [Qn((k(), L("div", y1, [(k(!0), L(je, null, De(l.value, (Re, Ve) => (k(), L("div", {
|
|
23770
23770
|
key: h(Re, Ve),
|
|
23771
23771
|
style: ce([f.value, { padding: "4px" }])
|
|
23772
23772
|
}, [O("div", {
|
|
@@ -24080,7 +24080,7 @@ export {
|
|
|
24080
24080
|
Fc as useFormProvide,
|
|
24081
24081
|
Th as useHMenuInject,
|
|
24082
24082
|
jh as useHMenuProvide,
|
|
24083
|
-
|
|
24083
|
+
ea as useInject,
|
|
24084
24084
|
Ka as useLayer,
|
|
24085
24085
|
xS as useLayerInject,
|
|
24086
24086
|
Bh as useLayerProvide,
|
|
@@ -24088,7 +24088,7 @@ export {
|
|
|
24088
24088
|
Eh as useMenuProvide,
|
|
24089
24089
|
Ph as usePageInject,
|
|
24090
24090
|
Hh as usePageProvide,
|
|
24091
|
-
|
|
24091
|
+
ta as useProvide,
|
|
24092
24092
|
Sh as useSortable,
|
|
24093
24093
|
Zo as useTableInject,
|
|
24094
24094
|
vo as useTableProvide
|