@a2simcode/ui 0.0.202 → 0.0.204

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.
@@ -1,4 +1,4 @@
1
- import { Fragment as ke, computed as H, createBlock as F, createCommentVNode as ee, createElementBlock as O, createElementVNode as B, createSlots as Vn, createTextVNode as on, createVNode as X, defineComponent as ge, getCurrentInstance as dc, guardReactiveProps as Mo, h as bi, inject as xd, mergeModels as Eo, mergeProps as We, nextTick as zt, normalizeClass as Ne, normalizeProps as na, normalizeStyle as le, onBeforeUnmount as jo, onMounted as Mt, onUnmounted as Po, openBlock as S, provide as Cd, reactive as aa, ref as z, render as _i, renderList as Oe, renderSlot as Ke, resolveComponent as $, resolveDirective as Bo, resolveDynamicComponent as Ta, shallowRef as Oi, toDisplayString as we, unref as Y, useModel as To, useSlots as Sd, useTemplateRef as ka, vShow as wi, watch as nt, watchEffect as fc, withCtx as J, withDirectives as $n, withKeys as pr, withModifiers as Ft } from "vue";
1
+ import { Fragment as ke, computed as H, createBlock as F, createCommentVNode as ee, createElementBlock as O, createElementVNode as B, createSlots as Vn, createTextVNode as sn, createVNode as X, defineComponent as ge, getCurrentInstance as dc, guardReactiveProps as Mo, h as bi, inject as xd, mergeModels as Eo, mergeProps as We, nextTick as It, normalizeClass as Ne, normalizeProps as na, normalizeStyle as le, onBeforeUnmount as jo, onMounted as Mt, onUnmounted as Po, openBlock as S, provide as Cd, reactive as aa, ref as z, render as _i, renderList as Oe, renderSlot as Ke, resolveComponent as $, resolveDirective as Bo, resolveDynamicComponent as Ta, shallowRef as Oi, toDisplayString as we, unref as Y, useModel as To, useSlots as Sd, useTemplateRef as ka, vShow as wi, watch as nt, watchEffect as fc, withCtx as J, withDirectives as $n, withKeys as pr, withModifiers as $t } from "vue";
2
2
  import { Icon as Pl, getIcon as Sa } from "@iconify/vue";
3
3
  import hc from "dayjs";
4
4
  import kd from "sortablejs";
@@ -28,8 +28,8 @@ import { useVirtualList as Ir } from "@vueuse/core";
28
28
  import rf from "async-validator";
29
29
  import { createEditor as lf, createToolbar as sf } from "@wangeditor/editor";
30
30
  import pc from "diagram-js";
31
- import { assignStyle as Ii, attr as _n, classes as nn, clear as gc, closest as zr, delegate as Qn, domify as rn, event as rt, matches as cf, query as Zt, queryAll as gr, remove as vr } from "min-dom";
32
- import { assign as Ve, bind as Lr, debounce as uf, every as Dr, filter as un, find as Pn, flatten as df, forEach as de, groupBy as $r, has as vc, isArray as st, isDefined as wn, isFunction as Bn, isNil as Hl, isNumber as It, isObject as dn, isString as yr, isUndefined as ff, map as Ho, matchPattern as xi, omit as hf, pick as Ci, reduce as mr, size as pf, some as gf, sortBy as Ao, uniqueBy as vf, values as Fr, without as yf } from "min-dash";
31
+ import { assignStyle as Ii, attr as _n, classes as nn, clear as gc, closest as zr, delegate as Qn, domify as on, event as rt, matches as cf, query as Zt, queryAll as gr, remove as vr } from "min-dom";
32
+ import { assign as Ve, bind as Lr, debounce as uf, every as Dr, filter as un, find as Pn, flatten as df, forEach as de, groupBy as $r, has as vc, isArray as st, isDefined as wn, isFunction as Bn, isNil as Hl, isNumber as Ot, isObject as dn, isString as yr, isUndefined as ff, map as Ho, matchPattern as xi, omit as hf, pick as Ci, reduce as mr, size as pf, some as gf, sortBy as Ao, uniqueBy as vf, values as Fr, without as yf } from "min-dash";
33
33
  import { append as qe, attr as Fe, classes as ht, clear as Vr, clone as yc, create as Ge, createTransform as xo, remove as cn, transform as Nr } from "tiny-svg";
34
34
  import Aa from "inherits";
35
35
  import mf from "diagram-js-direct-editing";
@@ -205,7 +205,7 @@ var Qt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
205
205
  "j-button-first-compact-item": e.firstCompactItem == !0
206
206
  }]),
207
207
  disabled: e.disabled,
208
- onClick: Ft(i, ["stop"])
208
+ onClick: $t(i, ["stop"])
209
209
  }, [
210
210
  d.value ? (S(), F(Ea, {
211
211
  key: 0,
@@ -494,7 +494,8 @@ var wc = (e, t, n, a) => {
494
494
  "j-slider-captcha",
495
495
  "j-slider",
496
496
  "j-barcode",
497
- "j-editor"
497
+ "j-editor",
498
+ "j-upload"
498
499
  ].includes(e) || e.indexOf("j-input") != -1, Ff = (e) => [
499
500
  "j-input",
500
501
  "j-textarea",
@@ -1404,18 +1405,18 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
1404
1405
  ]);
1405
1406
  },
1406
1407
  _doProcessBlock: function(h, p) {
1407
- for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low, ye = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Me = T, fe = A, Le = P, Ye = L, ne = I, Ee = j, Be = E, Ie = V, Et = q, bt = se, Xe = ye, Kt = W, ln = G, qt = Q, Bt = 0; Bt < 80; Bt++) {
1408
- var Ht, ut, Nt = f[Bt];
1409
- if (Bt < 16)
1410
- ut = Nt.high = h[p + Bt * 2] | 0, Ht = Nt.low = h[p + Bt * 2 + 1] | 0;
1408
+ for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low, ye = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Me = T, fe = A, Le = P, Ye = L, ne = I, Ee = j, Be = E, Ie = V, Et = q, bt = se, Xe = ye, qt = W, rn = G, Yt = Q, Vt = 0; Vt < 80; Vt++) {
1409
+ var Bt, ut, Nt = f[Vt];
1410
+ if (Vt < 16)
1411
+ ut = Nt.high = h[p + Vt * 2] | 0, Bt = Nt.low = h[p + Vt * 2 + 1] | 0;
1411
1412
  else {
1412
- var Cn = f[Bt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25), me = f[Bt - 2], Te = me.high, ze = me.low, at = (Te >>> 19 | ze << 13) ^ (Te << 3 | ze >>> 29) ^ Te >>> 6, Ct = (ze >>> 19 | Te << 13) ^ (ze << 3 | Te >>> 29) ^ (ze >>> 6 | Te << 26), dt = f[Bt - 7], Sn = dt.high, kn = dt.low, Gn = f[Bt - 16], ya = Gn.high, $a = Gn.low;
1413
- Ht = ie + kn, ut = ae + Sn + (Ht >>> 0 < ie >>> 0 ? 1 : 0), Ht = Ht + Ct, ut = ut + at + (Ht >>> 0 < Ct >>> 0 ? 1 : 0), Ht = Ht + $a, ut = ut + ya + (Ht >>> 0 < $a >>> 0 ? 1 : 0), Nt.high = ut, Nt.low = Ht;
1413
+ var Cn = f[Vt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25), me = f[Vt - 2], Te = me.high, ze = me.low, at = (Te >>> 19 | ze << 13) ^ (Te << 3 | ze >>> 29) ^ Te >>> 6, Ct = (ze >>> 19 | Te << 13) ^ (ze << 3 | Te >>> 29) ^ (ze >>> 6 | Te << 26), dt = f[Vt - 7], Sn = dt.high, kn = dt.low, Gn = f[Vt - 16], ya = Gn.high, $a = Gn.low;
1414
+ Bt = ie + kn, ut = ae + Sn + (Bt >>> 0 < ie >>> 0 ? 1 : 0), Bt = Bt + Ct, ut = ut + at + (Bt >>> 0 < Ct >>> 0 ? 1 : 0), Bt = Bt + $a, ut = ut + ya + (Bt >>> 0 < $a >>> 0 ? 1 : 0), Nt.high = ut, Nt.low = Bt;
1414
1415
  }
1415
- var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M & Me ^ M & Le ^ Me & Le, gt = ue & fe ^ ue & Ye ^ fe & Ye, Ot = (M >>> 28 | ue << 4) ^ (M << 30 | ue >>> 2) ^ (M << 25 | ue >>> 7), xe = (ue >>> 28 | M << 4) ^ (ue << 30 | M >>> 2) ^ (ue << 25 | M >>> 7), St = (Be >>> 14 | Ie << 18) ^ (Be >>> 18 | Ie << 14) ^ (Be << 23 | Ie >>> 9), Wt = (Ie >>> 14 | Be << 18) ^ (Ie >>> 18 | Be << 14) ^ (Ie << 23 | Be >>> 9), wt = d[Bt], Yt = wt.high, Ln = wt.low, vt = qt + Wt, De = ln + St + (vt >>> 0 < qt >>> 0 ? 1 : 0), vt = vt + be, De = De + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, De = De + Yt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Ht, De = De + ut + (vt >>> 0 < Ht >>> 0 ? 1 : 0), Rn = xe + gt, Dt = Ot + Re + (Rn >>> 0 < xe >>> 0 ? 1 : 0);
1416
- ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne + De + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Le, Ee = Ye, Le = Me, Ye = fe, Me = M, fe = ue, ue = vt + Rn | 0, M = De + Dt + (ue >>> 0 < vt >>> 0 ? 1 : 0) | 0;
1416
+ var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & qt, Re = M & Me ^ M & Le ^ Me & Le, gt = ue & fe ^ ue & Ye ^ fe & Ye, Ht = (M >>> 28 | ue << 4) ^ (M << 30 | ue >>> 2) ^ (M << 25 | ue >>> 7), xe = (ue >>> 28 | M << 4) ^ (ue << 30 | M >>> 2) ^ (ue << 25 | M >>> 7), St = (Be >>> 14 | Ie << 18) ^ (Be >>> 18 | Ie << 14) ^ (Be << 23 | Ie >>> 9), Wt = (Ie >>> 14 | Be << 18) ^ (Ie >>> 18 | Be << 14) ^ (Ie << 23 | Be >>> 9), wt = d[Vt], Jt = wt.high, Ln = wt.low, vt = Yt + Wt, De = rn + St + (vt >>> 0 < Yt >>> 0 ? 1 : 0), vt = vt + be, De = De + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, De = De + Jt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Bt, De = De + ut + (vt >>> 0 < Bt >>> 0 ? 1 : 0), Rn = xe + gt, Lt = Ht + Re + (Rn >>> 0 < xe >>> 0 ? 1 : 0);
1417
+ rn = Xe, Yt = qt, Xe = Et, qt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne + De + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Le, Ee = Ye, Le = Me, Ye = fe, Me = M, fe = ue, ue = vt + Rn | 0, M = De + Lt + (ue >>> 0 < vt >>> 0 ? 1 : 0) | 0;
1417
1418
  }
1418
- R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + fe, x.high = T + Me + (A >>> 0 < fe >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Le + (L >>> 0 < Ye >>> 0 ? 1 : 0), j = v.low = j + Ee, v.high = I + ne + (j >>> 0 < Ee >>> 0 ? 1 : 0), V = w.low = V + Ie, w.high = E + Be + (V >>> 0 < Ie >>> 0 ? 1 : 0), se = C.low = se + bt, C.high = q + Et + (se >>> 0 < bt >>> 0 ? 1 : 0), W = y.low = W + Kt, y.high = ye + Xe + (W >>> 0 < Kt >>> 0 ? 1 : 0), Q = _.low = Q + qt, _.high = G + ln + (Q >>> 0 < qt >>> 0 ? 1 : 0);
1419
+ R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + fe, x.high = T + Me + (A >>> 0 < fe >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Le + (L >>> 0 < Ye >>> 0 ? 1 : 0), j = v.low = j + Ee, v.high = I + ne + (j >>> 0 < Ee >>> 0 ? 1 : 0), V = w.low = V + Ie, w.high = E + Be + (V >>> 0 < Ie >>> 0 ? 1 : 0), se = C.low = se + bt, C.high = q + Et + (se >>> 0 < bt >>> 0 ? 1 : 0), W = y.low = W + qt, y.high = ye + Xe + (W >>> 0 < qt >>> 0 ? 1 : 0), Q = _.low = Q + Yt, _.high = G + rn + (Q >>> 0 < Yt >>> 0 ? 1 : 0);
1419
1420
  },
1420
1421
  _doFinalize: function() {
1421
1422
  var h = this._data, p = h.words, g = this._nDataBytes * 8, b = h.sigBytes * 8;
@@ -1518,7 +1519,7 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
1518
1519
  }, K1 = (e, t) => Tc(e, t).toString(ki);
1519
1520
  function hh(e, t) {
1520
1521
  function n() {
1521
- zt(() => {
1522
+ It(() => {
1522
1523
  e = Y(e), e && kd.create(e, {
1523
1524
  animation: 100,
1524
1525
  delay: 400,
@@ -1711,7 +1712,7 @@ var Sh = /* @__PURE__ */ ge({
1711
1712
  }, 100);
1712
1713
  }
1713
1714
  }, R = (L) => {
1714
- u.value = L?.name, a.value = L?.width || 600, o.value = L?.height || 400, i.value = L?.hasBtns !== !1, r.value = L?.hasSaveBtn !== !1, l.value = L?.hasHeader !== !1, L?.destroyOnClose !== !1 && (d.value = !0), h.value = L?.config || {}, c.value = L?.btnText || "保存", w = L?.afterOk || null, C = L?.afterClose || null, y = L?.afterCancel || null, n.value.open(L.title, L.type, L.subtitle), zt(async () => {
1715
+ u.value = L?.name, a.value = L?.width || 600, o.value = L?.height || 400, i.value = L?.hasBtns !== !1, r.value = L?.hasSaveBtn !== !1, l.value = L?.hasHeader !== !1, L?.destroyOnClose !== !1 && (d.value = !0), h.value = L?.config || {}, c.value = L?.btnText || "保存", w = L?.afterOk || null, C = L?.afterClose || null, y = L?.afterCancel || null, n.value.open(L.title, L.type, L.subtitle), It(async () => {
1715
1716
  n.value.showLoading("加载中"), await k(L.param || {});
1716
1717
  });
1717
1718
  }, T = async () => {
@@ -1818,7 +1819,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
1818
1819
  type: "text",
1819
1820
  label: g.label,
1820
1821
  size: e.size,
1821
- onClick: Ft((b) => o(g), ["stop"]),
1822
+ onClick: $t((b) => o(g), ["stop"]),
1822
1823
  style: {
1823
1824
  "text-align": "left",
1824
1825
  "justify-content": "flex-start"
@@ -1837,7 +1838,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
1837
1838
  compact: !0,
1838
1839
  "last-compact-item": p === f.length - 1,
1839
1840
  "first-compact-item": p === 0,
1840
- onClick: Ft((g) => o(h), ["stop"])
1841
+ onClick: $t((g) => o(h), ["stop"])
1841
1842
  }), null, 16, [
1842
1843
  "label",
1843
1844
  "size",
@@ -1874,7 +1875,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
1874
1875
  compact: !0,
1875
1876
  "last-compact-item": p === f.length - 1,
1876
1877
  "first-compact-item": p === 0,
1877
- onClick: Ft((g) => o(h), ["stop"])
1878
+ onClick: $t((g) => o(h), ["stop"])
1878
1879
  }), null, 16, [
1879
1880
  "label",
1880
1881
  "size",
@@ -2470,7 +2471,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
2470
2471
  set(r) {
2471
2472
  a("update:modelValue", r);
2472
2473
  }
2473
- }), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.map((r) => r.color) : []);
2474
+ }), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.map((r) => r.color || r) : []);
2474
2475
  return (r, l) => {
2475
2476
  const c = $("el-radio-button"), s = $("el-tag"), d = $("el-radio"), f = $("el-radio-group");
2476
2477
  return S(), F(f, {
@@ -2483,7 +2484,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
2483
2484
  value: u.value,
2484
2485
  size: e.size
2485
2486
  }, {
2486
- default: J(() => [on(we(u.label), 1)]),
2487
+ default: J(() => [sn(we(u.label), 1)]),
2487
2488
  _: 2
2488
2489
  }, 1032, ["value", "size"]))), 128)) : (S(!0), O(ke, { key: 1 }, Oe(e.options, (u, h) => (S(), F(d, {
2489
2490
  key: u.value,
@@ -2492,13 +2493,13 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
2492
2493
  }, {
2493
2494
  default: J(() => [e.isColor ? (S(), F(s, {
2494
2495
  key: 0,
2495
- color: i.value[h] || u.color || "",
2496
+ color: u.color || i.value[h] || "",
2496
2497
  size: e.size,
2497
2498
  hit: !1,
2498
2499
  effect: "dark",
2499
2500
  style: { "border-width": "0" }
2500
2501
  }, {
2501
- default: J(() => [on(we(u.label), 1)]),
2502
+ default: J(() => [sn(we(u.label), 1)]),
2502
2503
  _: 2
2503
2504
  }, 1032, ["color", "size"])) : (S(), O("span", Nh, we(u.label), 1))]),
2504
2505
  _: 2
@@ -2702,9 +2703,9 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
2702
2703
  content: r.value,
2703
2704
  placement: "top"
2704
2705
  }, {
2705
- default: J(() => [on(we(r.value), 1)]),
2706
+ default: J(() => [sn(we(r.value), 1)]),
2706
2707
  _: 1
2707
- }, 8, ["content"])) : (S(), O(ke, { key: 1 }, [on(we(r.value), 1)], 64))])])]),
2708
+ }, 8, ["content"])) : (S(), O(ke, { key: 1 }, [sn(we(r.value), 1)], 64))])])]),
2708
2709
  key: "0"
2709
2710
  }]), 1040, [
2710
2711
  "modelValue",
@@ -5883,10 +5884,10 @@ var Ip = { class: "j-table-footer" }, zp = {
5883
5884
  flexWrap: "nowrap"
5884
5885
  });
5885
5886
  if (et.forEach((_e, ft) => {
5886
- const Ue = _e.config?.disabled === !0, Lt = Ue ? "#c9cdd4" : _e.config?.danger ? "#f53f3f" : "#165dff", sn = new Z({
5887
+ const Ue = _e.config?.disabled === !0, zt = Ue ? "#c9cdd4" : _e.config?.danger ? "#f53f3f" : "#165dff", ln = new Z({
5887
5888
  text: _e.label,
5888
5889
  fontSize: 14,
5889
- fill: Lt,
5890
+ fill: zt,
5890
5891
  boundsPadding: [
5891
5892
  0,
5892
5893
  12,
@@ -5895,16 +5896,16 @@ var Ip = { class: "j-table-footer" }, zp = {
5895
5896
  ],
5896
5897
  cursor: Ue ? "not-allowed" : "pointer"
5897
5898
  });
5898
- sn.addEventListener("click", () => {
5899
+ ln.addEventListener("click", () => {
5899
5900
  !Ue && _e.click && _e.click({
5900
5901
  data: je,
5901
5902
  openLayer: u
5902
5903
  });
5903
- }), sn.addEventListener("mouseenter", (gn) => {
5904
- Ue || (gn.target.setAttribute("fill", ae(Lt, -20)), Se.scenegraph.stage.renderNextFrame());
5905
- }), sn.addEventListener("mouseleave", (gn) => {
5906
- Ue || (gn.target.setAttribute("fill", Lt), Se.scenegraph.stage.renderNextFrame());
5907
- }), tt.add(sn);
5904
+ }), ln.addEventListener("mouseenter", (gn) => {
5905
+ Ue || (gn.target.setAttribute("fill", ae(zt, -20)), Se.scenegraph.stage.renderNextFrame());
5906
+ }), ln.addEventListener("mouseleave", (gn) => {
5907
+ Ue || (gn.target.setAttribute("fill", zt), Se.scenegraph.stage.renderNextFrame());
5908
+ }), tt.add(ln);
5908
5909
  }), Qe && ct.length > 0) {
5909
5910
  const _e = "#1677ff", ft = new Z({
5910
5911
  text: "更多",
@@ -5920,8 +5921,8 @@ var Ip = { class: "j-table-footer" }, zp = {
5920
5921
  });
5921
5922
  ft.addEventListener("mouseenter", (Ue) => {
5922
5923
  Ue.target.setAttribute("fill", ae(_e, -20)), Se.scenegraph.stage.renderNextFrame();
5923
- const Lt = m.value?.getBoundingClientRect();
5924
- Lt && se(ct, je, Ze, Ue.canvasX + Lt.left - 64, Ue.canvasY + Lt.top + 8), q = !0, G();
5924
+ const zt = m.value?.getBoundingClientRect();
5925
+ zt && se(ct, je, Ze, Ue.canvasX + zt.left - 64, Ue.canvasY + zt.top + 8), q = !0, G();
5925
5926
  }), ft.addEventListener("mouseleave", (Ue) => {
5926
5927
  Ue.target.setAttribute("fill", _e), Se.scenegraph.stage.renderNextFrame(), q = !1, W();
5927
5928
  }), tt.add(ft);
@@ -6018,32 +6019,32 @@ var Ip = { class: "j-table-footer" }, zp = {
6018
6019
  formData: r || {},
6019
6020
  getTableData: be,
6020
6021
  row: pe
6021
- }) || {}, Ae = Number(Se.min) || 0, He = Number(Se.max) || 100, je = Number(Z) || 0, Ze = He - Ae, $e = Ze === 0 ? 0 : Math.max(0, Math.min(100, (je - Ae) / Ze * 100)), Pe = 4, Qe = 8, et = 8, ct = (oe.height - Pe) / 2, tt = String(je), _e = bn(tt) || 0, ft = Qe, Ue = ct, Lt = oe.width - Qe * 2 - _e - et, sn = Lt * $e / 100, gn = [], vn = (Jt, it, Tt) => {
6022
- const pt = Math.min(Tt, it / 2, Jt / 2);
6023
- return `M ${pt} 0 L ${Jt - pt} 0 Q ${Jt} 0 ${Jt} ${pt} L ${Jt} ${it - pt} Q ${Jt} ${it} ${Jt - pt} ${it} L ${pt} ${it} Q 0 ${it} 0 ${it - pt} L 0 ${pt} Q 0 0 ${pt} 0 Z`;
6024
- }, uo = (Jt, it, Tt) => {
6025
- const pt = Math.min(Tt, it / 2, Jt / 2);
6026
- return Jt <= pt * 2 ? vn(Jt, it, Tt) : `M ${pt} 0 L ${Jt} 0 L ${Jt} ${it} L ${pt} ${it} Q 0 ${it} 0 ${it - pt} L 0 ${pt} Q 0 0 ${pt} 0 Z`;
6027
- }, Xo = vn(Lt, Pe, Pe / 2);
6022
+ }) || {}, Ae = Number(Se.min) || 0, He = Number(Se.max) || 100, je = Number(Z) || 0, Ze = He - Ae, $e = Ze === 0 ? 0 : Math.max(0, Math.min(100, (je - Ae) / Ze * 100)), Pe = 4, Qe = 8, et = 8, ct = (oe.height - Pe) / 2, tt = String(je), _e = bn(tt) || 0, ft = Qe, Ue = ct, zt = oe.width - Qe * 2 - _e - et, ln = zt * $e / 100, gn = [], vn = (Gt, it, Tt) => {
6023
+ const pt = Math.min(Tt, it / 2, Gt / 2);
6024
+ return `M ${pt} 0 L ${Gt - pt} 0 Q ${Gt} 0 ${Gt} ${pt} L ${Gt} ${it - pt} Q ${Gt} ${it} ${Gt - pt} ${it} L ${pt} ${it} Q 0 ${it} 0 ${it - pt} L 0 ${pt} Q 0 0 ${pt} 0 Z`;
6025
+ }, uo = (Gt, it, Tt) => {
6026
+ const pt = Math.min(Tt, it / 2, Gt / 2);
6027
+ return Gt <= pt * 2 ? vn(Gt, it, Tt) : `M ${pt} 0 L ${Gt} 0 L ${Gt} ${it} L ${pt} ${it} Q 0 ${it} 0 ${it - pt} L 0 ${pt} Q 0 0 ${pt} 0 Z`;
6028
+ }, Xo = vn(zt, Pe, Pe / 2);
6028
6029
  if (gn.push({
6029
6030
  type: "icon",
6030
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Lt}" height="${Pe}" viewBox="0 0 ${Lt} ${Pe}"><path d="${Xo}" fill="#e5e6eb"/></svg>`,
6031
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${zt}" height="${Pe}" viewBox="0 0 ${zt} ${Pe}"><path d="${Xo}" fill="#e5e6eb"/></svg>`,
6031
6032
  x: ft,
6032
6033
  y: Ue,
6033
- width: Lt,
6034
+ width: zt,
6034
6035
  height: Pe
6035
- }), sn > 0) {
6036
- const Jt = uo(sn, Pe, Pe / 2);
6036
+ }), ln > 0) {
6037
+ const Gt = uo(ln, Pe, Pe / 2);
6037
6038
  gn.push({
6038
6039
  type: "icon",
6039
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${sn}" height="${Pe}" viewBox="0 0 ${sn} ${Pe}"><path d="${Jt}" fill="#165dff"/></svg>`,
6040
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${ln}" height="${Pe}" viewBox="0 0 ${ln} ${Pe}"><path d="${Gt}" fill="#165dff"/></svg>`,
6040
6041
  x: ft,
6041
6042
  y: Ue,
6042
- width: sn,
6043
+ width: ln,
6043
6044
  height: Pe
6044
6045
  });
6045
6046
  }
6046
- const Zo = ft + Lt + et, er = oe.height / 2;
6047
+ const Zo = ft + zt + et, er = oe.height / 2;
6047
6048
  return gn.push({
6048
6049
  type: "text",
6049
6050
  text: tt,
@@ -6115,7 +6116,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6115
6116
  }],
6116
6117
  expectedHeight: Math.max(yn, Ae)
6117
6118
  };
6118
- }, Kt = (D, N) => {
6119
+ }, qt = (D, N) => {
6119
6120
  const { dataValue: Z, rect: oe, table: U, col: te, row: re, value: ve } = D, he = U.getBodyField(te, re), pe = ut(U.options?.columns || [], he), Se = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {}, Ae = N || xn({
6120
6121
  config: pe?._compConfig,
6121
6122
  getCompConfig: pe?._getCompConfig,
@@ -6133,10 +6134,10 @@ var Ip = { class: "j-table-footer" }, zp = {
6133
6134
  };
6134
6135
  const Ze = 14, $e = 28, Pe = 2, Qe = 12, et = 8, ct = 6;
6135
6136
  let tt = 8, _e = Math.max(0, oe.width - tt * 2), ft = Math.max(0, _e - Qe * 2);
6136
- const Ue = [], Lt = (it) => {
6137
+ const Ue = [], zt = (it) => {
6137
6138
  const Tt = bn(bt(it, ft)) || 0;
6138
6139
  return Math.min(_e, Tt + Qe * 2);
6139
- }, sn = (it, Tt, pt, Tn, An) => {
6140
+ }, ln = (it, Tt, pt, Tn, An) => {
6140
6141
  const ma = bt(pt, ft), ba = Et(ma), Qo = bn(ma) || 0, Va = Math.min(_e, Qo + Qe * 2), md = Tn || "#f2f3f5", bd = An || "#1d2129", wd = $e / 2 + Ze * 0.35, _d = `<svg xmlns="http://www.w3.org/2000/svg" width="${Va}" height="${$e}" viewBox="0 0 ${Va} ${$e}"><rect x="0" y="0" width="${Va}" height="${$e}" rx="${Pe}" ry="${Pe}" fill="${md}"/><text x="${Va / 2}" y="${wd}" text-anchor="middle" font-size="${Ze}" fill="${bd}">${ba}</text></svg>`;
6141
6142
  return Ue.push({
6142
6143
  type: "icon",
@@ -6150,10 +6151,10 @@ var Ip = { class: "j-table-footer" }, zp = {
6150
6151
  const it = [];
6151
6152
  let Tt = [], pt = 0;
6152
6153
  for (let Tn = 0; Tn < je.length; Tn++) {
6153
- const An = je[Tn], ma = An.label, ba = Lt(ma), Qo = {
6154
+ const An = je[Tn], ma = An.label, ba = zt(ma), Qo = {
6154
6155
  label: ma,
6155
6156
  bg: An.color || "#f2f3f5",
6156
- text: An.textColor || ln(An.color || "#f2f3f5"),
6157
+ text: An.textColor || rn(An.color || "#f2f3f5"),
6157
6158
  width: ba
6158
6159
  };
6159
6160
  Tt.length > 0 && pt + et + ba > _e ? (it.push({
@@ -6178,18 +6179,18 @@ var Ip = { class: "j-table-footer" }, zp = {
6178
6179
  const Tt = vn[it];
6179
6180
  let pt = er ? tt : He === "center" ? tt + Math.max(0, (_e - Tt.lineWidth) / 2) : He === "right" ? tt + Math.max(0, _e - Tt.lineWidth) : tt;
6180
6181
  for (let Tn = 0; Tn < Tt.items.length; Tn++) {
6181
- const An = Tt.items[Tn], { tagWidth: ma } = sn(pt, Zo, An.label, An.bg, An.text);
6182
+ const An = Tt.items[Tn], { tagWidth: ma } = ln(pt, Zo, An.label, An.bg, An.text);
6182
6183
  pt += ma + (Tn < Tt.items.length - 1 ? et : 0);
6183
6184
  }
6184
6185
  Zo += $e + (it < vn.length - 1 ? ct : 0);
6185
6186
  }
6186
- const Jt = Math.min(oe.width, Math.max(0, ...vn.map((it) => it.lineWidth)) + tt * 2);
6187
+ const Gt = Math.min(oe.width, Math.max(0, ...vn.map((it) => it.lineWidth)) + tt * 2);
6187
6188
  return {
6188
6189
  elements: Ue,
6189
6190
  expectedHeight: Math.max(yn, Xo),
6190
- expectedWidth: Jt
6191
+ expectedWidth: Gt
6191
6192
  };
6192
- }, ln = (D) => {
6193
+ }, rn = (D) => {
6193
6194
  if (!D) return "#1d2129";
6194
6195
  D = D.replace("#", ""), D.length === 3 && (D = D.split("").map((U) => U + U).join(""));
6195
6196
  const N = parseInt(D.substring(0, 2), 16), Z = parseInt(D.substring(2, 4), 16), oe = parseInt(D.substring(4, 6), 16);
@@ -6223,7 +6224,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6223
6224
  return `#${Qe(Ze)}${Qe($e)}${Qe(Pe)}`;
6224
6225
  }
6225
6226
  return "#ffffff";
6226
- }, qt = (D) => {
6227
+ }, Yt = (D) => {
6227
6228
  const { table: N, row: Z, col: oe, rect: U, value: te } = D, { Group: re, Text: ve } = Je.CustomLayout, he = N.getBodyField(oe, Z), pe = ut(N.options?.columns || [], he), Se = pe?._compConfig || {}, Ae = new re({
6228
6229
  height: U.height,
6229
6230
  width: U.width,
@@ -6259,10 +6260,10 @@ var Ip = { class: "j-table-footer" }, zp = {
6259
6260
  rootContainer: Ae,
6260
6261
  renderDefault: !1
6261
6262
  };
6262
- }, Bt = (D) => {
6263
+ }, Vt = (D) => {
6263
6264
  const { table: N, row: Z, col: oe, rect: U } = D, { height: te, width: re } = U ?? N.getCellRect(oe, Z), { Group: ve, CheckBox: he } = Je.CustomLayout, pe = N.getBodyField(oe, Z), Se = ut(N.options?.columns || [], pe), Ae = N.getCellOriginRecord(oe, Z) || {}, He = Se?.style?.textAlign === "right" ? "flex-end" : Se?.style?.textAlign === "center" ? "center" : "flex-start", je = Se?.style?.textAlign === "right" ? "flex-end" : Se?.style?.textAlign === "center" ? "center" : "flex-start", Ze = (tt, _e) => {
6264
6265
  const ft = Ae?.[pe];
6265
- Ae[pe] = (Array.isArray(ft) ? ft : []).map((Ue, Lt) => Lt !== tt ? Ue : Ue && typeof Ue == "object" ? {
6266
+ Ae[pe] = (Array.isArray(ft) ? ft : []).map((Ue, zt) => zt !== tt ? Ue : Ue && typeof Ue == "object" ? {
6266
6267
  ...Ue,
6267
6268
  ..._e
6268
6269
  } : { ..._e });
@@ -6313,15 +6314,15 @@ var Ip = { class: "j-table-footer" }, zp = {
6313
6314
  ]
6314
6315
  });
6315
6316
  Ue.render?.(), ct.add(Ue), Ue.addEventListener("checkbox_state_change", () => {
6316
- const Lt = !!Ue.attribute?.checked;
6317
- Ze(tt, { checked: Lt }), $e();
6317
+ const zt = !!Ue.attribute?.checked;
6318
+ Ze(tt, { checked: zt }), $e();
6318
6319
  });
6319
6320
  }
6320
6321
  return {
6321
6322
  rootContainer: Pe,
6322
6323
  renderDefault: !1
6323
6324
  };
6324
- }, Ht = (D) => {
6325
+ }, Bt = (D) => {
6325
6326
  const { table: N, row: Z, col: oe } = D, U = N.getBodyField(oe, Z), te = ut(N.options?.columns || [], U), re = te?._compConfig || {};
6326
6327
  if (te?._customLayout) return te._customLayout({
6327
6328
  ...D,
@@ -6363,8 +6364,8 @@ var Ip = { class: "j-table-footer" }, zp = {
6363
6364
  "j-switch": Ee,
6364
6365
  "j-rate": Be,
6365
6366
  "j-slider": Ie,
6366
- "j-tag": Kt,
6367
- "j-input-tag": Kt,
6367
+ "j-tag": qt,
6368
+ "j-input-tag": qt,
6368
6369
  "j-icon": Xe
6369
6370
  }[he] || ne;
6370
6371
  return pe ? pe(D, ve) : {
@@ -6418,7 +6419,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6418
6419
  _getCompType: ve,
6419
6420
  frozen: et
6420
6421
  }, ft = typeof ve == "function", Ue = Ic(U);
6421
- return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender = Ee), U === "j-rate" && (_e.customRender = Be), U === "j-slider" && (_e.customRender = Ie), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Kt), U === "j-icon" && (_e.customRender = Xe)), U === "link" && (_e.customLayout = qt), U === "checkbox" && (_e.customLayout = Bt), U === "j-switch" && (_e.minWidth = _e.minWidth || Ae, _e.maxWidth = _e.maxWidth || Ae), pe && (_e.customLayout = Ht), _e.fieldFormat = Cn, he && he.length > 0 && (_e.columns = ce(he)), _e;
6422
+ return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender = Ee), U === "j-rate" && (_e.customRender = Be), U === "j-slider" && (_e.customRender = Ie), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = qt), U === "j-icon" && (_e.customRender = Xe)), U === "link" && (_e.customLayout = Yt), U === "checkbox" && (_e.customLayout = Vt), U === "j-switch" && (_e.minWidth = _e.minWidth || Ae, _e.maxWidth = _e.maxWidth || Ae), pe && (_e.customLayout = Bt), _e.fieldFormat = Cn, he && he.length > 0 && (_e.columns = ce(he)), _e;
6422
6423
  });
6423
6424
  return o.isTree && N.length > 0 && (N[0].tree = !0), N;
6424
6425
  }, ae = (D, N) => {
@@ -6528,7 +6529,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6528
6529
  });
6529
6530
  const Ae = (He) => {
6530
6531
  for (const je of He)
6531
- if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === Kt || Array.isArray(je?.columns) && Ae(je.columns)) return !0;
6532
+ if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === qt || Array.isArray(je?.columns) && Ae(je.columns)) return !0;
6532
6533
  return !1;
6533
6534
  };
6534
6535
  return Ae(te) && !(o.subColumns && o.subColumns.length > 0) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
@@ -6537,13 +6538,13 @@ var Ip = { class: "j-table-footer" }, zp = {
6537
6538
  };
6538
6539
  }, Sn = () => {
6539
6540
  const D = dt(o.columns, o.isShowNumber && !o.isTree, o.actions);
6540
- $t.value && y++;
6541
+ Dt.value && y++;
6541
6542
  const N = {
6542
6543
  records: [],
6543
6544
  columns: D.columns,
6544
6545
  autoFillWidth: !0,
6545
- enableCheckboxCascade: $t.value,
6546
- enableHeaderCheckboxCascade: $t.value,
6546
+ enableCheckboxCascade: Dt.value,
6547
+ enableHeaderCheckboxCascade: Dt.value,
6547
6548
  rightFrozenColCount: C,
6548
6549
  frozenColCount: y,
6549
6550
  tooltip: { isShowOverflowTextTooltip: !0 },
@@ -6556,7 +6557,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6556
6557
  delay: 0,
6557
6558
  type: "one-by-one",
6558
6559
  direction: "row"
6559
- }), $t.value && (N.rowSeriesNumber = {
6560
+ }), Dt.value && (N.rowSeriesNumber = {
6560
6561
  width: 40,
6561
6562
  minWidth: 40,
6562
6563
  maxWidth: 40,
@@ -6606,7 +6607,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6606
6607
  }
6607
6608
  }), v.on("click_cell", (U) => {
6608
6609
  const { col: te, row: re, cellType: ve, originData: he } = U, pe = he || { children: v.records };
6609
- if ($t.value) {
6610
+ if (Dt.value) {
6610
6611
  if (ve === "checkbox" && te == 0) {
6611
6612
  if (pe.__checkState = U.target.attribute.checked, re === 0 && pe.__checkState === !1) {
6612
6613
  const Ae = (He) => {
@@ -6649,7 +6650,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6649
6650
  }
6650
6651
  if (o.selectStateKey && o.isMultiple) {
6651
6652
  const Z = D.filter((oe) => oe[o.selectStateKey]);
6652
- Yt(Z), k.value = Z.length, i("selectRecordsChanged", Z), i("selectionChanged", {
6653
+ Jt(Z), k.value = Z.length, i("selectRecordsChanged", Z), i("selectionChanged", {
6653
6654
  isMultiple: !0,
6654
6655
  selections: Z,
6655
6656
  record: { children: v.records },
@@ -6670,21 +6671,21 @@ var Ip = { class: "j-table-footer" }, zp = {
6670
6671
  set(D) {
6671
6672
  i("update:tablePage", D);
6672
6673
  }
6673
- }), gt = z(0), Ot = H({
6674
+ }), gt = z(0), Ht = H({
6674
6675
  get() {
6675
6676
  return gt.value !== 0 ? gt.value : o.pageSize;
6676
6677
  },
6677
6678
  set(D) {
6678
6679
  gt.value = D, i("update:pageSize", D);
6679
6680
  }
6680
- }), xe = H(() => (Re.value - 1) * Ot.value), St = (D, N) => {
6681
+ }), xe = H(() => (Re.value - 1) * Ht.value), St = (D, N) => {
6681
6682
  i("loadPageData", {
6682
6683
  rows: N,
6683
6684
  page: D
6684
6685
  });
6685
6686
  }, Wt = () => {
6686
6687
  if (!v) return [];
6687
- if (!$t.value) {
6688
+ if (!Dt.value) {
6688
6689
  const D = v.getSelectedCellInfos();
6689
6690
  if (D && D.length > 0) {
6690
6691
  const N = D[0][0];
@@ -6720,11 +6721,11 @@ var Ip = { class: "j-table-footer" }, zp = {
6720
6721
  }), D;
6721
6722
  }
6722
6723
  return [];
6723
- }, wt = (D) => o.editConfig.isRemoveBtn ? D._i : o.rowKey ? o.rowKey.split(",").map((N) => D[N.trim()]).join("::") : "", Yt = (D) => {
6724
+ }, wt = (D) => o.editConfig.isRemoveBtn ? D._i : o.rowKey ? o.rowKey.split(",").map((N) => D[N.trim()]).join("::") : "", Jt = (D) => {
6724
6725
  if (v)
6725
- if ($t.value || v.clearSelected(), o.rowKey) {
6726
+ if (Dt.value || v.clearSelected(), o.rowKey) {
6726
6727
  const N = new Set(D.map(wt)), Z = "__checkState";
6727
- if (!$t.value) {
6728
+ if (!Dt.value) {
6728
6729
  const ve = v.records;
6729
6730
  for (let he = 0; he < ve.length; he++) {
6730
6731
  const pe = ve[he];
@@ -6762,7 +6763,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6762
6763
  if (!v) return;
6763
6764
  const N = Wt();
6764
6765
  if (N.length > 0) {
6765
- Yt(N);
6766
+ Jt(N);
6766
6767
  return;
6767
6768
  }
6768
6769
  const Z = Sn();
@@ -6772,7 +6773,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6772
6773
  }), o.heightMode === "auto" && (b.value = v.getAllRowsHeight()), k.value = 0;
6773
6774
  }, De = () => {
6774
6775
  v.renderWithRecreateCells();
6775
- }, Rn = H(() => o.editConfig.isAddBtn), Dt = H(() => o.editConfig.addBtnText || "添加"), Xt = H(() => o.editConfig.isRemoveBtn), En = H(() => o.editConfig.readonly), $t = H(() => o.isMultiple || Xt.value), Fa = () => {
6776
+ }, Rn = H(() => o.editConfig.isAddBtn), Lt = H(() => o.editConfig.addBtnText || "添加"), Xt = H(() => o.editConfig.isRemoveBtn), En = H(() => o.editConfig.readonly), Dt = H(() => o.isMultiple || Xt.value), Fa = () => {
6776
6777
  const D = o.modelValue || [];
6777
6778
  return D.forEach((N) => {
6778
6779
  N._i || (N._i = Fn());
@@ -6858,7 +6859,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6858
6859
  setRecords: co,
6859
6860
  getRecords: be,
6860
6861
  getSelection: Wt,
6861
- setSelection: Yt,
6862
+ setSelection: Jt,
6862
6863
  renderTable: De
6863
6864
  }), (D, N) => {
6864
6865
  const Z = $("j-button"), oe = $("el-space"), U = $("el-pagination");
@@ -6879,7 +6880,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6879
6880
  default: J(() => [Rn.value ? (S(), F(Z, {
6880
6881
  key: 0,
6881
6882
  type: "link",
6882
- label: Dt.value,
6883
+ label: Lt.value,
6883
6884
  icon: "mdi:add",
6884
6885
  onClick: gd
6885
6886
  }, null, 8, ["label"])) : ee("", !0), Xt.value ? (S(), F(Z, {
@@ -6898,8 +6899,8 @@ var Ip = { class: "j-table-footer" }, zp = {
6898
6899
  key: 0,
6899
6900
  "current-page": Re.value,
6900
6901
  "onUpdate:currentPage": N[0] || (N[0] = (te) => Re.value = te),
6901
- "page-size": Ot.value,
6902
- "onUpdate:pageSize": N[1] || (N[1] = (te) => Ot.value = te),
6902
+ "page-size": Ht.value,
6903
+ "onUpdate:pageSize": N[1] || (N[1] = (te) => Ht.value = te),
6903
6904
  "page-sizes": e.pageSizes || [
6904
6905
  100,
6905
6906
  200,
@@ -7048,7 +7049,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7048
7049
  _top: 0
7049
7050
  }), g = z(0), b = z(), x = z(48), m = z(0), v = z(0);
7050
7051
  nt(() => a.visible, (M) => {
7051
- g.value = 1, g.value = 0, r.value = M, M === !0 && a.zoomControls && zt(() => {
7052
+ g.value = 1, g.value = 0, r.value = M, M === !0 && a.zoomControls && It(() => {
7052
7053
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = G));
7053
7054
  });
7054
7055
  }, { immediate: !0 });
@@ -7073,7 +7074,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7073
7074
  }, A = () => {
7074
7075
  o("ok", k, R);
7075
7076
  }, P = () => {
7076
- p.left = 0, p.top = 0, v.value = 0, m.value = 0, a.isStep && (L.value = 0, zt(() => {
7077
+ p.left = 0, p.top = 0, v.value = 0, m.value = 0, a.isStep && (L.value = 0, It(() => {
7077
7078
  V();
7078
7079
  })), o("closed");
7079
7080
  }, L = H({
@@ -7084,11 +7085,11 @@ var Ip = { class: "j-table-footer" }, zp = {
7084
7085
  h.value = M, o("update:stepActive", M);
7085
7086
  }
7086
7087
  }), I = () => {
7087
- L.value > 0 && L.value--, zt(() => {
7088
+ L.value > 0 && L.value--, It(() => {
7088
7089
  V();
7089
7090
  });
7090
7091
  }, j = async () => {
7091
- await E() && (L.value < a.steps.length - 1 && (L.value += 1), zt(() => {
7092
+ await E() && (L.value < a.steps.length - 1 && (L.value += 1), It(() => {
7092
7093
  V();
7093
7094
  }));
7094
7095
  }, E = async () => {
@@ -7357,7 +7358,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7357
7358
  }, x = () => {
7358
7359
  o("ok", v, w);
7359
7360
  }, m = () => {
7360
- a.isStep && (g.value = 0, zt(() => {
7361
+ a.isStep && (g.value = 0, It(() => {
7361
7362
  k();
7362
7363
  })), o("closed");
7363
7364
  }, v = (A) => {
@@ -7365,11 +7366,11 @@ var Ip = { class: "j-table-footer" }, zp = {
7365
7366
  }, w = () => {
7366
7367
  c.value = !1;
7367
7368
  }, C = () => {
7368
- g.value > 0 && g.value--, zt(() => {
7369
+ g.value > 0 && g.value--, It(() => {
7369
7370
  k();
7370
7371
  });
7371
7372
  }, y = async () => {
7372
- await _() && (g.value < a.steps.length - 1 && (g.value += 1), zt(() => {
7373
+ await _() && (g.value < a.steps.length - 1 && (g.value += 1), It(() => {
7373
7374
  k();
7374
7375
  }));
7375
7376
  }, _ = async () => {
@@ -7619,7 +7620,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7619
7620
  }, f = () => {
7620
7621
  r.value = !1;
7621
7622
  }, u = () => {
7622
- a.isStep && (C.value = 0, zt(() => {
7623
+ a.isStep && (C.value = 0, It(() => {
7623
7624
  R();
7624
7625
  })), i("closed");
7625
7626
  }, h = () => {
@@ -7636,11 +7637,11 @@ var Ip = { class: "j-table-footer" }, zp = {
7636
7637
  w.value = A, i("update:stepActive", A);
7637
7638
  }
7638
7639
  }), y = () => {
7639
- C.value > 0 && C.value--, zt(() => {
7640
+ C.value > 0 && C.value--, It(() => {
7640
7641
  R();
7641
7642
  });
7642
7643
  }, _ = async () => {
7643
- await k() && (C.value < a.steps.length - 1 && (C.value += 1), zt(() => {
7644
+ await k() && (C.value < a.steps.length - 1 && (C.value += 1), It(() => {
7644
7645
  R();
7645
7646
  }));
7646
7647
  }, k = async () => {
@@ -8034,24 +8035,26 @@ var Ip = { class: "j-table-footer" }, zp = {
8034
8035
  placeholder: e.placeholder,
8035
8036
  size: e.size,
8036
8037
  onSelect: l,
8037
- onKeyup: pr(Ft(s, ["stop"]), ["enter"]),
8038
- onKeydown: pr(Ft(c, ["stop"]), ["enter"])
8038
+ onKeyup: pr($t(s, ["stop"]), ["enter"]),
8039
+ onKeydown: pr($t(c, ["stop"]), ["enter"])
8039
8040
  }, {
8040
- prefix: J(() => [X(p, null, {
8041
+ prefix: J(() => [X(p, { size: 4 }, {
8041
8042
  default: J(() => [(S(!0), O(ke, null, Oe(i.value, (b, x) => (S(), F(h, {
8042
8043
  key: x,
8043
- type: "info",
8044
+ type: r.value[x]?.color ? "primary" : "info",
8045
+ effect: r.value[x]?.color ? "dark" : void 0,
8044
8046
  closable: !e.readonly,
8045
8047
  style: le(r.value[x] || {}),
8046
- size: e.size,
8047
- onClose: Ft((m) => d(x), ["prevent"])
8048
+ size: "small",
8049
+ onClose: $t((m) => d(x), ["prevent"])
8048
8050
  }, {
8049
- default: J(() => [on(we(b), 1)]),
8051
+ default: J(() => [sn(we(b), 1)]),
8050
8052
  _: 2
8051
8053
  }, 1032, [
8054
+ "type",
8055
+ "effect",
8052
8056
  "closable",
8053
8057
  "style",
8054
- "size",
8055
8058
  "onClose"
8056
8059
  ]))), 128))]),
8057
8060
  _: 1
@@ -8326,26 +8329,26 @@ var Ip = { class: "j-table-footer" }, zp = {
8326
8329
  size: 72
8327
8330
  }, null, 8, ["style"])),
8328
8331
  B("div", Bg, [X(i, { ellipsis: "" }, {
8329
- default: J(() => [on(we(`${Y(t)(s.name)}${s.status === "unUpload" ? "(" + Y(t)("未传") + ")" : ""}`), 1)]),
8332
+ default: J(() => [sn(we(`${Y(t)(s.name)}${s.status === "unUpload" ? "(" + Y(t)("未传") + ")" : ""}`), 1)]),
8330
8333
  _: 2
8331
8334
  }, 1024), B("div", null, [s.status === "uploading" ? (S(), F(i, { key: 0 }, {
8332
- default: J(() => [on(we(Y(ai)(s.uploadSize)) + "/", 1)]),
8335
+ default: J(() => [sn(we(Y(ai)(s.uploadSize)) + "/", 1)]),
8333
8336
  _: 2
8334
8337
  }, 1024)) : ee("", !0), X(i, null, {
8335
- default: J(() => [on(we(Y(ai)(s.size)), 1)]),
8338
+ default: J(() => [sn(we(Y(ai)(s.size)), 1)]),
8336
8339
  _: 2
8337
8340
  }, 1024)])]),
8338
8341
  $n(B("div", Hg, [s.status === "done" || s.status === "unUpload" ? (S(), F(r, {
8339
8342
  key: 0,
8340
8343
  icon: "mdi:eye",
8341
8344
  type: "link",
8342
- onClick: Ft((d) => e.previewFile(s), ["stop"])
8345
+ onClick: $t((d) => e.previewFile(s), ["stop"])
8343
8346
  }, null, 8, ["onClick"])) : ee("", !0), !e.readonly && (s.status === "done" || s.status === "unUpload") ? (S(), F(r, {
8344
8347
  key: 1,
8345
8348
  icon: "mdi:delete",
8346
8349
  type: "link",
8347
8350
  danger: "",
8348
- onClick: Ft((d) => e.deleteFile(s), ["stop", "prevent"])
8351
+ onClick: $t((d) => e.deleteFile(s), ["stop", "prevent"])
8349
8352
  }, null, 8, ["onClick"])) : ee("", !0)], 512), [[wi, s.status === "error"]]),
8350
8353
  s.status === "uploading" ? (S(), F(l, {
8351
8354
  key: 2,
@@ -8373,13 +8376,13 @@ var Ip = { class: "j-table-footer" }, zp = {
8373
8376
  key: 0,
8374
8377
  type: "link",
8375
8378
  icon: "mdi:eye",
8376
- onClick: Ft((d) => e.previewFile(s), ["stop"])
8379
+ onClick: $t((d) => e.previewFile(s), ["stop"])
8377
8380
  }, null, 8, ["onClick"])) : ee("", !0), !e.readonly && (s.status === "done" || s.status === "unUpload") ? (S(), F(r, {
8378
8381
  key: 1,
8379
8382
  type: "link",
8380
8383
  danger: "",
8381
8384
  icon: "mdi:delete",
8382
- onClick: Ft((d) => e.deleteFile(s), ["stop", "prevent"])
8385
+ onClick: $t((d) => e.deleteFile(s), ["stop", "prevent"])
8383
8386
  }, null, 8, ["onClick"])) : ee("", !0)], 512), [[wi, s.status === "error"]]),
8384
8387
  s.status === "uploading" ? (S(), F(l, {
8385
8388
  key: 1,
@@ -8399,17 +8402,17 @@ var Ip = { class: "j-table-footer" }, zp = {
8399
8402
  B("div", zg, [X(c, {
8400
8403
  type: "primary",
8401
8404
  underline: "never",
8402
- onClick: Ft((d) => e.previewFile(s), ["stop"])
8405
+ onClick: $t((d) => e.previewFile(s), ["stop"])
8403
8406
  }, {
8404
- default: J(() => [on(we(`${Y(t)(s.name)}${s.status === "unUpload" ? "(" + Y(t)("未传") + ")" : ""}`), 1)]),
8407
+ default: J(() => [sn(we(`${Y(t)(s.name)}${s.status === "unUpload" ? "(" + Y(t)("未传") + ")" : ""}`), 1)]),
8405
8408
  _: 2
8406
8409
  }, 1032, ["onClick"])]),
8407
8410
  s.status === "uploading" ? (S(), F(i, { key: 0 }, {
8408
- default: J(() => [on(we(Y(ai)(s.uploadSize)) + "/", 1)]),
8411
+ default: J(() => [sn(we(Y(ai)(s.uploadSize)) + "/", 1)]),
8409
8412
  _: 2
8410
8413
  }, 1024)) : ee("", !0),
8411
8414
  X(i, null, {
8412
- default: J(() => [on(we(Y(ai)(s.size)), 1)]),
8415
+ default: J(() => [sn(we(Y(ai)(s.size)), 1)]),
8413
8416
  _: 2
8414
8417
  }, 1024),
8415
8418
  s.status === "done" && e.isShowSuccessIcon ? (S(), F(o, {
@@ -8423,7 +8426,7 @@ var Ip = { class: "j-table-footer" }, zp = {
8423
8426
  class: "j-upload-item-error",
8424
8427
  icon: "delete",
8425
8428
  size: 24,
8426
- onClick: Ft((d) => e.deleteFile(s), ["stop", "prevent"])
8429
+ onClick: $t((d) => e.deleteFile(s), ["stop", "prevent"])
8427
8430
  }, null, 8, ["onClick"])), [[wi, s.status === "error"]]),
8428
8431
  s.status === "uploading" ? (S(), F(l, {
8429
8432
  key: 3,
@@ -8723,9 +8726,9 @@ var Ip = { class: "j-table-footer" }, zp = {
8723
8726
  return o && o(`当前限制选择${n.limit}个文件`), !1;
8724
8727
  };
8725
8728
  return (ne, Ee) => {
8726
- const Be = $("j-icon"), Ie = $("j-button"), Et = $("el-popover"), bt = $("el-button"), Xe = $("el-upload"), Kt = $("el-text"), ln = $("j-dialog-full"), qt = Bo("loading");
8729
+ const Be = $("j-icon"), Ie = $("el-popover"), Et = $("j-button"), bt = $("el-upload"), Xe = $("el-text"), qt = $("j-dialog-full"), rn = Bo("loading");
8727
8730
  return S(), O("div", Dg, [
8728
- X(Xe, {
8731
+ X(bt, {
8729
8732
  action: "",
8730
8733
  drag: e.drag,
8731
8734
  disabled: e.readonly,
@@ -8742,7 +8745,7 @@ var Ip = { class: "j-table-footer" }, zp = {
8742
8745
  "on-preview": Me,
8743
8746
  "on-exceed": Ye
8744
8747
  }, {
8745
- default: J(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (S(), O("div", $g, [X(Be, { icon: "mdi:add" }), B("div", Fg, we(Y(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !G.value ? (S(), F(Et, {
8748
+ default: J(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (S(), O("div", $g, [X(Be, { icon: "mdi:add" }), B("div", Fg, we(Y(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !G.value ? (S(), F(Ie, {
8746
8749
  key: 1,
8747
8750
  placement: "bottom",
8748
8751
  title: e.isUploadImg ? Y(l)("图片列表") : Y(l)("文件列表")
@@ -8760,25 +8763,18 @@ var Ip = { class: "j-table-footer" }, zp = {
8760
8763
  "is-upload-img",
8761
8764
  "readonly"
8762
8765
  ])]),
8763
- default: J(() => [X(Ie, {
8764
- type: e.btnType,
8765
- size: e.btnSize,
8766
- icon: "mdi:tray-upload",
8767
- label: e.readonly ? Y(l)(e.btnText) : e.placeholder
8768
- }, null, 8, [
8769
- "type",
8770
- "size",
8771
- "label"
8772
- ])]),
8773
8766
  _: 1
8774
- }, 8, ["title"])) : e.readonly ? ee("", !0) : (S(), F(bt, {
8767
+ }, 8, ["title"])) : e.readonly ? ee("", !0) : (S(), F(Et, {
8775
8768
  key: 2,
8776
- type: e.btnType,
8777
- size: e.btnSize
8778
- }, {
8779
- default: J(() => [X(Be, { icon: "mdi:tray-upload" }), on(" " + we(e.placeholder), 1)]),
8780
- _: 1
8781
- }, 8, ["type", "size"]))]),
8769
+ icon: "mdi:tray-upload",
8770
+ type: e.drag ? "text" : e.btnType,
8771
+ size: e.btnSize,
8772
+ label: e.readonly ? e.btnText : e.placeholder
8773
+ }, null, 8, [
8774
+ "type",
8775
+ "size",
8776
+ "label"
8777
+ ]))]),
8782
8778
  _: 1
8783
8779
  }, 8, [
8784
8780
  "drag",
@@ -8790,8 +8786,8 @@ var Ip = { class: "j-table-footer" }, zp = {
8790
8786
  "multiple",
8791
8787
  "file-list"
8792
8788
  ]),
8793
- e.isTip ? (S(), O("div", Vg, [X(Kt, null, {
8794
- default: J(() => [on(we(`${Y(l)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)]),
8789
+ e.isTip ? (S(), O("div", Vg, [X(Xe, null, {
8790
+ default: J(() => [sn(we(`${Y(l)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)]),
8795
8791
  _: 1
8796
8792
  })])) : ee("", !0),
8797
8793
  !e.isLayer && !e.isUploadImg && e.showFileList && m.value.length > 0 ? (S(), F(Nl, {
@@ -8807,9 +8803,9 @@ var Ip = { class: "j-table-footer" }, zp = {
8807
8803
  "readonly",
8808
8804
  "is-show-success-icon"
8809
8805
  ])) : ee("", !0),
8810
- X(ln, {
8806
+ X(qt, {
8811
8807
  visible: G.value,
8812
- "onUpdate:visible": Ee[1] || (Ee[1] = (Bt) => G.value = Bt),
8808
+ "onUpdate:visible": Ee[1] || (Ee[1] = (Yt) => G.value = Yt),
8813
8809
  "btn-text": "下载",
8814
8810
  title: `${Y(l)("文件预览")}【${ye.value}】`,
8815
8811
  "destroy-on-close": !0,
@@ -8829,8 +8825,8 @@ var Ip = { class: "j-table-footer" }, zp = {
8829
8825
  height: "100%"
8830
8826
  },
8831
8827
  frameborder: "0",
8832
- onLoad: Ee[0] || (Ee[0] = (Bt) => Q.value = !1)
8833
- }, null, 40, Yg)])), [[qt, Q.value]]) : ee("", !0)]),
8828
+ onLoad: Ee[0] || (Ee[0] = (Yt) => Q.value = !1)
8829
+ }, null, 40, Yg)])), [[rn, Q.value]]) : ee("", !0)]),
8834
8830
  _: 1
8835
8831
  }, 8, [
8836
8832
  "visible",
@@ -10762,7 +10758,7 @@ var Ip = { class: "j-table-footer" }, zp = {
10762
10758
  }), nt(() => a.mode, () => {
10763
10759
  l && f();
10764
10760
  }), Mt(async () => {
10765
- await zt(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10761
+ await It(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10766
10762
  l && l.dispatch({ scrollIntoView: !0 });
10767
10763
  }), p.observe(i.value));
10768
10764
  }), Po(() => {
@@ -11077,7 +11073,7 @@ var Ip = { class: "j-table-footer" }, zp = {
11077
11073
  content: J(() => [B("span", null, we(Y(n)(e.item.label)), 1)]),
11078
11074
  default: J(() => [B("div", {
11079
11075
  class: Ne(["j-menu-item", { collapsed: e.collapsed }]),
11080
- onClick: l[0] || (l[0] = Ft((f) => i(e.item), ["stop"]))
11076
+ onClick: l[0] || (l[0] = $t((f) => i(e.item), ["stop"]))
11081
11077
  }, [B("div", {
11082
11078
  class: Ne(["j-menu-item-content", {
11083
11079
  active: e.item.value === Y(a),
@@ -11136,7 +11132,7 @@ var Ip = { class: "j-table-footer" }, zp = {
11136
11132
  collapsed: e.collapsed,
11137
11133
  sub: e.item.indent > 0
11138
11134
  }]),
11139
- onClick: l[1] || (l[1] = Ft((f) => i(e.item), ["stop"]))
11135
+ onClick: l[1] || (l[1] = $t((f) => i(e.item), ["stop"]))
11140
11136
  }, [B("div", {
11141
11137
  class: Ne(["j-menu-item-content", {
11142
11138
  active: e.item.value === Y(a),
@@ -12210,7 +12206,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12210
12206
  ...xe,
12211
12207
  children: C(xe.children)
12212
12208
  } : xe);
12213
- const gt = new Map(be.map((xe) => [xe.id, xe])), Ot = [];
12209
+ const gt = new Map(be.map((xe) => [xe.id, xe])), Ht = [];
12214
12210
  return Re.forEach((xe) => {
12215
12211
  const St = gt.get(xe.id);
12216
12212
  if (St) {
@@ -12219,7 +12215,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12219
12215
  St.children && St.children.length > 0 && (Wt = {
12220
12216
  ...St,
12221
12217
  children: C(St.children, xe.children)
12222
- }), Ot.push(Wt);
12218
+ }), Ht.push(Wt);
12223
12219
  }
12224
12220
  gt.delete(xe.id);
12225
12221
  }
@@ -12229,9 +12225,9 @@ var Ip = { class: "j-table-footer" }, zp = {
12229
12225
  xe.children && xe.children.length > 0 && (St = {
12230
12226
  ...xe,
12231
12227
  children: C(xe.children)
12232
- }), Ot.push(St);
12228
+ }), Ht.push(St);
12233
12229
  }
12234
- }), Ot;
12230
+ }), Ht;
12235
12231
  }, y = H(() => C(i.columns, Ye.value)), _ = H(() => $f(i.columns, (be) => be.config.label)), k = z(""), R = H(() => _.value.some((be) => be.config?.filter?.isSearchKeyword)), T = z(), A = z(!0), P = z([]), L = H(() => A.value ? "搜索全部" : `搜索范围:${_.value.filter((be) => P.value.includes(be.id)).map((be) => be.config?.label).join("、")}`), I = () => {
12236
12232
  T.value.init();
12237
12233
  }, j = z(), E = z(!1), V = z(!1), q = z(!1), se = z([]), ye = z("and"), W = z(), G = z(!1), Q = z([]), M = () => {
@@ -12250,7 +12246,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12250
12246
  p.value = [], l.value && (l.value.setSelection?.([]), g.value && (g.value = !1, l.value.setRecords(c)));
12251
12247
  }, Xe = () => {
12252
12248
  g.value = !g.value, g.value ? l.value?.setRecords(p.value) : l.value?.setRecords(c), l.value?.setSelection?.(p.value);
12253
- }, Kt = H(() => {
12249
+ }, qt = H(() => {
12254
12250
  if (p.value.length > 0 && i.isMultiple) {
12255
12251
  const be = [
12256
12252
  {
@@ -12282,36 +12278,36 @@ var Ip = { class: "j-table-footer" }, zp = {
12282
12278
  return [...be, ...Re];
12283
12279
  }
12284
12280
  return i.buttons;
12285
- }), ln = H(() => Kt.value.filter((be) => be.config?.display !== !1)), qt = z(null), Bt = z(0), Ht = () => {
12286
- Bt.value = qt.value?.clientWidth || 0;
12281
+ }), rn = H(() => qt.value.filter((be) => be.config?.display !== !1)), Yt = z(null), Vt = z(0), Bt = () => {
12282
+ Vt.value = Yt.value?.clientWidth || 0;
12287
12283
  };
12288
12284
  let ut;
12289
12285
  Mt(() => {
12290
- zt(Ht), ut = new ResizeObserver(() => {
12291
- Ht();
12292
- }), qt.value && ut.observe(qt.value);
12286
+ It(Bt), ut = new ResizeObserver(() => {
12287
+ Bt();
12288
+ }), Yt.value && ut.observe(Yt.value);
12293
12289
  }), jo(() => {
12294
12290
  ut?.disconnect();
12295
- }), nt(() => ln.value, () => {
12296
- zt(Ht);
12291
+ }), nt(() => rn.value, () => {
12292
+ It(Bt);
12297
12293
  }, { deep: !0 }), nt(Ie, () => {
12298
- zt(Ht);
12294
+ It(Bt);
12299
12295
  });
12300
12296
  const Nt = H(() => {
12301
- const be = ln.value;
12297
+ const be = rn.value;
12302
12298
  if (be.length === 0) return [];
12303
- const Re = Bt.value;
12299
+ const Re = Vt.value;
12304
12300
  if (Re <= 0) return be;
12305
- const gt = Math.max(0, Re - 4), Ot = (Dt, Xt) => Dt.groupId || `__auto_${Xt}`, xe = (Dt) => {
12306
- if (Dt.config?.notLabel === !0 || !Dt.label) return 28;
12307
- const Xt = 24, En = bn(Dt.label || "") || 0, $t = Dt.config?.icon ? 18 : 0;
12308
- return Math.ceil(En + Xt + $t + 2);
12301
+ const gt = Math.max(0, Re - 4), Ht = (Lt, Xt) => Lt.groupId || `__auto_${Xt}`, xe = (Lt) => {
12302
+ if (Lt.config?.notLabel === !0 || !Lt.label) return 28;
12303
+ const Xt = 24, En = bn(Lt.label || "") || 0, Dt = Lt.config?.icon ? 18 : 0;
12304
+ return Math.ceil(En + Xt + Dt + 2);
12309
12305
  };
12310
- if (((Dt) => {
12306
+ if (((Lt) => {
12311
12307
  let Xt = 0, En = null;
12312
- return Dt.forEach(($t, Fa) => {
12313
- const qo = Ot($t, Fa);
12314
- En !== null && (Xt += qo === En ? -1 : 8), Xt += xe($t), En = qo;
12308
+ return Lt.forEach((Dt, Fa) => {
12309
+ const qo = Ht(Dt, Fa);
12310
+ En !== null && (Xt += qo === En ? -1 : 8), Xt += xe(Dt), En = qo;
12315
12311
  }), Xt;
12316
12312
  })(be) <= gt) return be;
12317
12313
  const Wt = {
@@ -12322,24 +12318,24 @@ var Ip = { class: "j-table-footer" }, zp = {
12322
12318
  notLabel: !0
12323
12319
  },
12324
12320
  children: []
12325
- }, wt = 28, Yt = [];
12321
+ }, wt = 28, Jt = [];
12326
12322
  let Ln = 0, vt = null;
12327
- for (let Dt = 0; Dt < be.length; Dt++) {
12328
- const Xt = be[Dt], En = Ot(Xt, Dt);
12329
- let $t = Ln;
12330
- vt !== null && ($t += En === vt ? -1 : 8), $t += xe(Xt);
12331
- const Fa = be.length - (Dt + 1) > 0 ? ($t > 0 ? 8 : 0) + wt : 0;
12332
- if ($t + Fa <= gt)
12333
- Yt.push(Xt), Ln = $t, vt = En;
12323
+ for (let Lt = 0; Lt < be.length; Lt++) {
12324
+ const Xt = be[Lt], En = Ht(Xt, Lt);
12325
+ let Dt = Ln;
12326
+ vt !== null && (Dt += En === vt ? -1 : 8), Dt += xe(Xt);
12327
+ const Fa = be.length - (Lt + 1) > 0 ? (Dt > 0 ? 8 : 0) + wt : 0;
12328
+ if (Dt + Fa <= gt)
12329
+ Jt.push(Xt), Ln = Dt, vt = En;
12334
12330
  else break;
12335
12331
  }
12336
- const De = be.slice(Yt.length);
12332
+ const De = be.slice(Jt.length);
12337
12333
  if (De.length === 0) return be;
12338
12334
  const Rn = {
12339
12335
  ...Wt,
12340
12336
  children: De
12341
12337
  };
12342
- return Yt.length === 0 ? [Rn] : [...Yt, Rn];
12338
+ return Jt.length === 0 ? [Rn] : [...Jt, Rn];
12343
12339
  });
12344
12340
  let Cn;
12345
12341
  const K = async (be) => {
@@ -12354,7 +12350,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12354
12350
  value: xe.value,
12355
12351
  type: xe.type
12356
12352
  })), gt.cond.length > 0 ? q.value = !0 : q.value = !1, Re.filter = gt;
12357
- const Ot = Q.value.map((xe) => xe.value + " " + xe.sord).join(",");
12353
+ const Ht = Q.value.map((xe) => xe.value + " " + xe.sord).join(",");
12358
12354
  if (k.value && (Re.keyword = {
12359
12355
  value: k.value,
12360
12356
  fields: A.value ? _.value.filter((xe) => xe.config?.filter?.isSearchKeyword).map((xe) => xe.id) : Y(P)
@@ -12363,12 +12359,12 @@ var Ip = { class: "j-table-footer" }, zp = {
12363
12359
  Re.pagination = {
12364
12360
  rows: Y(f),
12365
12361
  page: d.value,
12366
- sort: Ot || i.sort || i.rowKey
12362
+ sort: Ht || i.sort || i.rowKey
12367
12363
  };
12368
12364
  const xe = await i.loadData(Re) || {};
12369
12365
  c = xe.rows || [], s.value = xe.records || 0;
12370
12366
  } else
12371
- Re.sort = Ot, c = await i.loadData(Re) || [], s.value = c.length;
12367
+ Re.sort = Ht, c = await i.loadData(Re) || [], s.value = c.length;
12372
12368
  l.value?.setRecords(c), b.value ? (p.value = [], g.value = !1) : i.rowKey && p.value.length > 0 && l.value?.setSelection?.(p.value);
12373
12369
  }
12374
12370
  } finally {
@@ -12396,14 +12392,14 @@ var Ip = { class: "j-table-footer" }, zp = {
12396
12392
  await Te();
12397
12393
  }, Ct = (be) => {
12398
12394
  r("ready", be);
12399
- }, dt = ({ selections: be, record: Re, checked: gt, isMultiple: Ot }) => {
12395
+ }, dt = ({ selections: be, record: Re, checked: gt, isMultiple: Ht }) => {
12400
12396
  let xe = [];
12401
12397
  if (!i.isMultiple) {
12402
12398
  p.value = be, r("select", {
12403
12399
  selections: be,
12404
12400
  record: Re,
12405
12401
  checked: gt,
12406
- isMultiple: Ot
12402
+ isMultiple: Ht
12407
12403
  });
12408
12404
  return;
12409
12405
  }
@@ -12412,15 +12408,15 @@ var Ip = { class: "j-table-footer" }, zp = {
12412
12408
  else {
12413
12409
  const St = new Map(be.map((wt) => [w(wt), wt])), Wt = new Map(p.value.map((wt) => [w(wt), wt]));
12414
12410
  c.forEach((wt) => {
12415
- const Yt = w(wt);
12416
- St.has(Yt) ? Wt.set(Yt, St.get(Yt)) : Wt.delete(Yt);
12411
+ const Jt = w(wt);
12412
+ St.has(Jt) ? Wt.set(Jt, St.get(Jt)) : Wt.delete(Jt);
12417
12413
  }), xe = Array.from(Wt.values());
12418
12414
  }
12419
12415
  p.value = xe, r("select", {
12420
12416
  selections: xe,
12421
12417
  record: Re,
12422
12418
  checked: gt,
12423
- isMultiple: Ot
12419
+ isMultiple: Ht
12424
12420
  }), g.value && xe.length === 0 ? (g.value = !1, l.value && l.value.setRecords(c)) : g.value && xe.length > 0 && l.value && (l.value.setRecords(xe), l.value.setSelection?.(xe));
12425
12421
  }, Sn = (be) => {
12426
12422
  p.value = be;
@@ -12446,13 +12442,13 @@ var Ip = { class: "j-table-footer" }, zp = {
12446
12442
  },
12447
12443
  getTableRef: $a
12448
12444
  }), (be, Re) => {
12449
- const gt = $("j-buttons"), Ot = $("j-icon"), xe = $("el-popover"), St = $("el-tooltip"), Wt = $("el-input"), wt = $("j-button"), Yt = $("el-pagination"), Ln = $("j-table"), vt = Bo("loading");
12445
+ const gt = $("j-buttons"), Ht = $("j-icon"), xe = $("el-popover"), St = $("el-tooltip"), Wt = $("el-input"), wt = $("j-button"), Jt = $("el-pagination"), Ln = $("j-table"), vt = Bo("loading");
12450
12446
  return S(), O("div", { class: Ne(["j-table-panel-wrapper", {
12451
12447
  fullscreen: Ie.value,
12452
12448
  "no-padding": e.noPadding || Ie.value
12453
12449
  }]) }, [B("div", { class: Ne(["j-table-panel", { "j-table-panel-fullscreen": Ie.value }]) }, [B("div", Lm, [B("div", Dm, [B("div", {
12454
12450
  ref_key: "topLeftRef",
12455
- ref: qt,
12451
+ ref: Yt,
12456
12452
  class: "j-table-panel-top-left"
12457
12453
  }, [X(gt, { list: Nt.value }, null, 8, ["list"])], 512), B("div", $m, [
12458
12454
  R.value && !m.value ? (S(), O("div", Fm, [X(Wt, {
@@ -12465,7 +12461,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12465
12461
  onKeyup: pr(ce, ["enter"]),
12466
12462
  onClear: ce
12467
12463
  }, {
12468
- prefix: J(() => [X(Ot, { icon: "mdi:search" })]),
12464
+ prefix: J(() => [X(Ht, { icon: "mdi:search" })]),
12469
12465
  suffix: J(() => [X(St, {
12470
12466
  placement: "bottom",
12471
12467
  content: L.value
@@ -12479,7 +12475,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12479
12475
  onShow: I,
12480
12476
  onHide: ce
12481
12477
  }, {
12482
- reference: J(() => [X(Ot, {
12478
+ reference: J(() => [X(Ht, {
12483
12479
  icon: "mdi:keyboard-arrow-down",
12484
12480
  style: { cursor: "pointer" }
12485
12481
  })]),
@@ -12631,8 +12627,8 @@ var Ip = { class: "j-table-footer" }, zp = {
12631
12627
  ])
12632
12628
  }, [B("div", Nm, [(S(!0), O(ke, null, Oe(Y(c), (De, Rn) => (S(), F(Ta(e.renderVNode(De)), {
12633
12629
  key: w(De) || Rn,
12634
- onClick: (Dt) => kn(De)
12635
- }, null, 8, ["onClick"]))), 128))]), e.isPage ? (S(), O("div", Wm, [Re[14] || (Re[14] = B("div", null, null, -1)), X(Yt, {
12630
+ onClick: (Lt) => kn(De)
12631
+ }, null, 8, ["onClick"]))), 128))]), e.isPage ? (S(), O("div", Wm, [Re[14] || (Re[14] = B("div", null, null, -1)), X(Jt, {
12636
12632
  "current-page": d.value,
12637
12633
  "onUpdate:currentPage": Re[9] || (Re[9] = (De) => d.value = De),
12638
12634
  "page-size": f.value,
@@ -12779,7 +12775,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12779
12775
  }, 8, ["modelValue", "placeholder"])]), B("div", Xm, [(S(!0), O(ke, null, Oe(r.value, (g) => (S(), O("div", {
12780
12776
  key: g.value,
12781
12777
  class: Ne(["option-item", { active: l.value.includes(g.value) || g.disabled }]),
12782
- onClick: Ft((b) => c(g), ["stop"])
12778
+ onClick: $t((b) => c(g), ["stop"])
12783
12779
  }, [g.icon ? (S(), F(u, {
12784
12780
  key: 0,
12785
12781
  class: "j-button-select-icon",
@@ -12904,7 +12900,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12904
12900
  d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
12905
12901
  type: "j-tree",
12906
12902
  config: a
12907
- }), d.value = !1, zt(() => {
12903
+ }), d.value = !1, It(() => {
12908
12904
  a.afterLoadData && a.afterLoadData(g.value || []);
12909
12905
  });
12910
12906
  }, x = (I, j = !0) => {
@@ -13008,7 +13004,7 @@ var Ip = { class: "j-table-footer" }, zp = {
13008
13004
  key: Le,
13009
13005
  disabled: fe.disabled,
13010
13006
  divided: fe.divided,
13011
- onClick: Ft((Ye) => T(fe, M.data), ["stop"])
13007
+ onClick: $t((Ye) => T(fe, M.data), ["stop"])
13012
13008
  }, {
13013
13009
  default: J(() => [B("div", {
13014
13010
  class: "j-flex-item",
@@ -13294,7 +13290,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13294
13290
  }, W = async (K, ce) => {
13295
13291
  b.value = !1;
13296
13292
  const ae = !!ce;
13297
- k.splice(0, k.length), T = {}, A = {}, P = [], V = ce, Co(y), Co(R), ae && q(ce, ""), ye(K, k, ae), L = fn(y), await zt(), b.value = !0, await zt(), a.config?.codeInit && await Nt(JSON.parse(a.config?.codeInit), { param: {} });
13293
+ k.splice(0, k.length), T = {}, A = {}, P = [], V = ce, Co(y), Co(R), ae && q(ce, ""), ye(K, k, ae), L = fn(y), await It(), b.value = !0, await It(), a.config?.codeInit && await Nt(JSON.parse(a.config?.codeInit), { param: {} });
13298
13294
  }, G = (K, ce, ae) => {
13299
13295
  const ie = [];
13300
13296
  return ce.forEach((me) => {
@@ -13467,7 +13463,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13467
13463
  });
13468
13464
  }
13469
13465
  return ae;
13470
- }, Xe = async (K, ce) => p?.loadViewDataList ? await p?.loadViewDataList(K, ce, !1) : [], Kt = (K) => (K.set = Ie, K.get = Et, K.setFormData = Q, K.getFormData = Me, K.getLabel = bt, K.getViewData = Xe, K.getDateNow = (ce) => Jr(/* @__PURE__ */ new Date(), ce || "YYYY-MM-DD HH:mm:ss"), K.httpGet = l || (() => {
13466
+ }, Xe = async (K, ce) => p?.loadViewDataList ? await p?.loadViewDataList(K, ce, !1) : [], qt = (K) => (K.set = Ie, K.get = Et, K.setFormData = Q, K.getFormData = Me, K.getLabel = bt, K.getViewData = Xe, K.getDateNow = (ce) => Jr(/* @__PURE__ */ new Date(), ce || "YYYY-MM-DD HH:mm:ss"), K.httpGet = l || (() => {
13471
13467
  console.log("当前状态不支持");
13472
13468
  }), K.httpPost = c || (() => {
13473
13469
  console.log("当前状态不支持");
@@ -13491,17 +13487,17 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13491
13487
  u && u(ce);
13492
13488
  break;
13493
13489
  }
13494
- }, K), ln = async (K, ce) => {
13490
+ }, K), rn = async (K, ce) => {
13495
13491
  if (K && K.trim()) {
13496
13492
  K = `async (jcode) => {${K}}`;
13497
13493
  const { res: ae, fn: ie } = bc(K);
13498
- ae && await ie(Kt(ce));
13494
+ ae && await ie(qt(ce));
13499
13495
  }
13500
- }, qt = async () => {
13496
+ }, Yt = async () => {
13501
13497
  a.config?.codeAfterSetData && await Nt(JSON.parse(a.config?.codeAfterSetData), { param: {} });
13502
- }, Bt = async () => {
13498
+ }, Vt = async () => {
13503
13499
  a.config?.codeBeforeSave && await Nt(JSON.parse(a.config?.codeBeforeSave), { param: {} });
13504
- }, Ht = async () => {
13500
+ }, Bt = async () => {
13505
13501
  a.config?.codeAfterSave && await Nt(JSON.parse(a.config?.codeAfterSave), { param: {} });
13506
13502
  };
13507
13503
  a.schema && W(a.schema);
@@ -13511,7 +13507,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13511
13507
  actions: a.actions,
13512
13508
  utils: {
13513
13509
  showLoading: Ra,
13514
- executeEvent: ln
13510
+ executeEvent: rn
13515
13511
  },
13516
13512
  inputParams: ce,
13517
13513
  notRunActions: ut
@@ -13543,9 +13539,9 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13543
13539
  getLabel: bt,
13544
13540
  setFormData: Q,
13545
13541
  getFormData: Me,
13546
- afterSetData: qt,
13547
- beforeSave: Bt,
13548
- afterSave: Ht
13542
+ afterSetData: Yt,
13543
+ beforeSave: Vt,
13544
+ afterSave: Bt
13549
13545
  }), (K, ce) => {
13550
13546
  const ae = $("j-form-item"), ie = $("el-row"), me = $("el-form");
13551
13547
  return b.value ? (S(), F(me, {
@@ -13558,7 +13554,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13558
13554
  "label-position": w.value,
13559
13555
  "label-width": v.value,
13560
13556
  size: e.config?.size,
13561
- onSubmit: ce[0] || (ce[0] = Ft(() => {
13557
+ onSubmit: ce[0] || (ce[0] = $t(() => {
13562
13558
  }, ["prevent"]))
13563
13559
  }, {
13564
13560
  default: J(() => [C.value ? (S(), F(ae, We({ key: 0 }, k[0], { "is-not-col": "" }), null, 16)) : (S(), F(ie, {
@@ -13608,7 +13604,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13608
13604
  i[w.id] = C, C.config = [], Si(C.config, w.config || {}, ["defaultValue"]), w?.config?.defaultValue !== void 0 && (r[w.id] = w.config.defaultValue), v.push(C), y && y.length > 0 && (C.children = [], l(y, C.children));
13609
13605
  });
13610
13606
  }, c = (m) => {
13611
- a.value = !1, o.splice(0, o.length), Co(i), Co(r), l(m, o), zt(() => {
13607
+ a.value = !1, o.splice(0, o.length), Co(i), Co(r), l(m, o), It(() => {
13612
13608
  a.value = !0;
13613
13609
  });
13614
13610
  };
@@ -14045,7 +14041,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14045
14041
  data: void 0
14046
14042
  });
14047
14043
  }, p = async ({ checked: m }) => {
14048
- s.value && m && (await zt(), await g());
14044
+ s.value && m && (await It(), await g());
14049
14045
  }, g = async () => {
14050
14046
  if (!l.value) return;
14051
14047
  const m = l.value.getSelection();
@@ -14234,7 +14230,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14234
14230
  "label-position": l.value,
14235
14231
  "label-width": r.value,
14236
14232
  size: e.formConfig?.size,
14237
- onSubmit: u[0] || (u[0] = Ft(() => {
14233
+ onSubmit: u[0] || (u[0] = $t(() => {
14238
14234
  }, ["prevent"]))
14239
14235
  }, {
14240
14236
  default: J(() => [c.value ? (S(), F(p, na(We({ key: 0 }, e.schema[0])), null, 16)) : (S(), F(g, {
@@ -15024,9 +15020,9 @@ function xr(e, t) {
15024
15020
  return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
15025
15021
  }
15026
15022
  function Kr(e, t, n) {
15027
- It(t) && (n = t, t = null), t || (t = {});
15023
+ Ot(t) && (n = t, t = null), t || (t = {});
15028
15024
  const a = Ge("path", t);
15029
- return It(n) && (a.dataset.cornerRadius = String(n)), Fc(a, e);
15025
+ return Ot(n) && (a.dataset.cornerRadius = String(n)), Fc(a, e);
15030
15026
  }
15031
15027
  function Fc(e, t) {
15032
15028
  return Fe(e, { d: Io(b0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
@@ -15625,7 +15621,7 @@ function Xc(e, t) {
15625
15621
  var n = {};
15626
15622
  return de(e, function(a) {
15627
15623
  var o = a;
15628
- o.waypoints && (o = On(o)), !It(t.y) && o.x > t.x && (n[a.id] = a), !It(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (It(t.width) && It(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !It(t.width) || !It(t.height)) && (n[a.id] = a);
15624
+ o.waypoints && (o = On(o)), !Ot(t.y) && o.x > t.x && (n[a.id] = a), !Ot(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Ot(t.width) && Ot(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ot(t.width) || !Ot(t.height)) && (n[a.id] = a);
15629
15625
  }), n;
15630
15626
  }
15631
15627
  function z0(e) {
@@ -15751,7 +15747,7 @@ function Zc(e, t, n, a, o) {
15751
15747
  hints: {},
15752
15748
  shape: f
15753
15749
  }, d || {}), de(s, function(h) {
15754
- It(h.x) || (h.x = 0), It(h.y) || (h.y = 0);
15750
+ Ot(h.x) || (h.x = 0), Ot(h.y) || (h.y = 0);
15755
15751
  });
15756
15752
  var u = On(un(s, function(h) {
15757
15753
  return !h.hidden;
@@ -16788,17 +16784,17 @@ function Ja(e, t) {
16788
16784
  }
16789
16785
  }
16790
16786
  var Cw = 1e3;
16791
- function Gt(e) {
16787
+ function Kt(e) {
16792
16788
  this._eventBus = e;
16793
16789
  }
16794
- Gt.$inject = ["eventBus"];
16790
+ Kt.$inject = ["eventBus"];
16795
16791
  function Sw(e, t) {
16796
16792
  return function(n) {
16797
16793
  return e.call(t || null, n.context, n.command, n);
16798
16794
  };
16799
16795
  }
16800
- Gt.prototype.on = function(e, t, n, a, o, i) {
16801
- if ((Bn(t) || It(t)) && (i = o, o = a, a = n, n = t, t = null), Bn(n) && (i = o, o = a, a = n, n = Cw), dn(o) && (i = o, o = !1), !Bn(a)) throw new Error("handlerFn must be a function");
16796
+ Kt.prototype.on = function(e, t, n, a, o, i) {
16797
+ if ((Bn(t) || Ot(t)) && (i = o, o = a, a = n, n = t, t = null), Bn(n) && (i = o, o = a, a = n, n = Cw), dn(o) && (i = o, o = !1), !Bn(a)) throw new Error("handlerFn must be a function");
16802
16798
  st(e) || (e = [e]);
16803
16799
  var r = this._eventBus;
16804
16800
  de(e, function(l) {
@@ -16812,23 +16808,23 @@ Gt.prototype.on = function(e, t, n, a, o, i) {
16812
16808
  r.on(c, n, o ? Sw(a, i) : a, i);
16813
16809
  });
16814
16810
  };
16815
- Gt.prototype.canExecute = Un("canExecute");
16816
- Gt.prototype.preExecute = Un("preExecute");
16817
- Gt.prototype.preExecuted = Un("preExecuted");
16818
- Gt.prototype.execute = Un("execute");
16819
- Gt.prototype.executed = Un("executed");
16820
- Gt.prototype.postExecute = Un("postExecute");
16821
- Gt.prototype.postExecuted = Un("postExecuted");
16822
- Gt.prototype.revert = Un("revert");
16823
- Gt.prototype.reverted = Un("reverted");
16811
+ Kt.prototype.canExecute = Un("canExecute");
16812
+ Kt.prototype.preExecute = Un("preExecute");
16813
+ Kt.prototype.preExecuted = Un("preExecuted");
16814
+ Kt.prototype.execute = Un("execute");
16815
+ Kt.prototype.executed = Un("executed");
16816
+ Kt.prototype.postExecute = Un("postExecute");
16817
+ Kt.prototype.postExecuted = Un("postExecuted");
16818
+ Kt.prototype.revert = Un("revert");
16819
+ Kt.prototype.reverted = Un("reverted");
16824
16820
  function Un(e) {
16825
16821
  return function(n, a, o, i, r) {
16826
- (Bn(n) || It(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
16822
+ (Bn(n) || Ot(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
16827
16823
  };
16828
16824
  }
16829
16825
  var kw = 250, bs = 1400;
16830
16826
  function rl(e, t, n) {
16831
- Gt.call(this, t);
16827
+ Kt.call(this, t);
16832
16828
  var a = e.get("movePreview", !1);
16833
16829
  t.on("shape.move.start", bs, function(o) {
16834
16830
  var i = o.context, r = i.shapes, l = i.validatedShapes;
@@ -16862,7 +16858,7 @@ function rl(e, t, n) {
16862
16858
  l && (la(l.labels, r, c), r.labelTarget = l);
16863
16859
  });
16864
16860
  }
16865
- Ba(rl, Gt);
16861
+ Ba(rl, Kt);
16866
16862
  rl.$inject = [
16867
16863
  "injector",
16868
16864
  "eventBus",
@@ -17154,7 +17150,7 @@ sl.$inject = ["modeling"];
17154
17150
  sl.prototype.preExecute = function(e) {
17155
17151
  var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
17156
17152
  de(t, function(d) {
17157
- It(d.x) || (d.x = 0), It(d.y) || (d.y = 0);
17153
+ Ot(d.x) || (d.x = 0), Ot(d.y) || (d.y = 0);
17158
17154
  });
17159
17155
  var l = On(un(t, function(d) {
17160
17156
  return !d.hidden;
@@ -17173,11 +17169,11 @@ sl.prototype.preExecute = function(e) {
17173
17169
  var c = B0(t), s = {};
17174
17170
  de(t, function(d) {
17175
17171
  if (en(d)) {
17176
- s[d.id] = It(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
17172
+ s[d.id] = Ot(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
17177
17173
  return;
17178
17174
  }
17179
17175
  var f = Ve({}, i);
17180
- c.indexOf(d) === -1 && (f.autoResize = !1), qa(d) && (f = hf(f, ["attach"])), s[d.id] = It(a) ? r.createShape(d, Ci(d, [
17176
+ c.indexOf(d) === -1 && (f.autoResize = !1), qa(d) && (f = hf(f, ["attach"])), s[d.id] = Ot(a) ? r.createShape(d, Ci(d, [
17181
17177
  "x",
17182
17178
  "y",
17183
17179
  "width",
@@ -18172,7 +18168,7 @@ Uo.prototype.updateLabel = function(e, t, n, a) {
18172
18168
  });
18173
18169
  };
18174
18170
  function bl(e, t) {
18175
- Gt.call(this, e);
18171
+ Kt.call(this, e);
18176
18172
  function n(a) {
18177
18173
  const { context: o } = a, i = o.hints || {};
18178
18174
  let r;
@@ -18180,7 +18176,7 @@ function bl(e, t) {
18180
18176
  }
18181
18177
  this.executed(["connection.layout", "connection.create"], n);
18182
18178
  }
18183
- Aa(bl, Gt);
18179
+ Aa(bl, Kt);
18184
18180
  bl.$inject = ["eventBus", "connectionDocking"];
18185
18181
  function ju() {
18186
18182
  }
@@ -20504,25 +20500,25 @@ var wx = {
20504
20500
  __init__: ["connectionPreview"],
20505
20501
  connectionPreview: ["type", Jn]
20506
20502
  }, _x = new Di("ov"), xx = 500;
20507
- function Vt(e, t, n, a) {
20503
+ function Ft(e, t, n, a) {
20508
20504
  this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = _x, this._overlayDefaults = Ve({
20509
20505
  show: null,
20510
20506
  scale: !0
20511
20507
  }, e && e.defaults), this._overlays = {}, this._overlayContainers = [], this._overlayRoot = Cx(n.getContainer()), this._init();
20512
20508
  }
20513
- Vt.$inject = [
20509
+ Ft.$inject = [
20514
20510
  "config.overlays",
20515
20511
  "eventBus",
20516
20512
  "canvas",
20517
20513
  "elementRegistry"
20518
20514
  ];
20519
- Vt.prototype.get = function(e) {
20515
+ Ft.prototype.get = function(e) {
20520
20516
  if (yr(e) && (e = { id: e }), yr(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
20521
20517
  var t = this._getOverlayContainer(e.element, !0);
20522
20518
  return t ? e.type ? un(t.overlays, xi({ type: e.type })) : t.overlays.slice() : [];
20523
20519
  } else return e.type ? un(this._overlays, xi({ type: e.type })) : e.id ? this._overlays[e.id] : null;
20524
20520
  };
20525
- Vt.prototype.add = function(e, t, n) {
20521
+ Ft.prototype.add = function(e, t, n) {
20526
20522
  if (dn(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position) throw new Error("must specifiy overlay position");
20527
20523
  if (!n.html) throw new Error("must specifiy overlay html");
20528
20524
  if (!e) throw new Error("invalid element specified");
@@ -20534,7 +20530,7 @@ Vt.prototype.add = function(e, t, n) {
20534
20530
  html: n.html
20535
20531
  }), this._addOverlay(n), a;
20536
20532
  };
20537
- Vt.prototype.remove = function(e) {
20533
+ Ft.prototype.remove = function(e) {
20538
20534
  var t = this.get(e) || [];
20539
20535
  st(t) || (t = [t]);
20540
20536
  var n = this;
@@ -20546,19 +20542,19 @@ Vt.prototype.remove = function(e) {
20546
20542
  }
20547
20543
  });
20548
20544
  };
20549
- Vt.prototype.isShown = function() {
20545
+ Ft.prototype.isShown = function() {
20550
20546
  return this._overlayRoot.style.display !== "none";
20551
20547
  };
20552
- Vt.prototype.show = function() {
20548
+ Ft.prototype.show = function() {
20553
20549
  Zi(this._overlayRoot);
20554
20550
  };
20555
- Vt.prototype.hide = function() {
20551
+ Ft.prototype.hide = function() {
20556
20552
  Zi(this._overlayRoot, !1);
20557
20553
  };
20558
- Vt.prototype.clear = function() {
20554
+ Ft.prototype.clear = function() {
20559
20555
  this._overlays = {}, this._overlayContainers = [], gc(this._overlayRoot);
20560
20556
  };
20561
- Vt.prototype._updateOverlayContainer = function(e) {
20557
+ Ft.prototype._updateOverlayContainer = function(e) {
20562
20558
  var t = e.element, n = e.html, a = t.x, o = t.y;
20563
20559
  if (t.waypoints) {
20564
20560
  var i = On(t);
@@ -20566,7 +20562,7 @@ Vt.prototype._updateOverlayContainer = function(e) {
20566
20562
  }
20567
20563
  Qu(n, a, o), _n(e.html, "data-container-id", t.id);
20568
20564
  };
20569
- Vt.prototype._updateOverlay = function(e) {
20565
+ Ft.prototype._updateOverlay = function(e) {
20570
20566
  var t = e.position, n = e.htmlContainer, a = e.element, o = t.left, i = t.top;
20571
20567
  if (t.right !== void 0) {
20572
20568
  var r;
@@ -20578,8 +20574,8 @@ Vt.prototype._updateOverlay = function(e) {
20578
20574
  }
20579
20575
  Qu(n, o || 0, i || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
20580
20576
  };
20581
- Vt.prototype._createOverlayContainer = function(e) {
20582
- var t = rn('<div class="djs-overlays" />');
20577
+ Ft.prototype._createOverlayContainer = function(e) {
20578
+ var t = on('<div class="djs-overlays" />');
20583
20579
  Ii(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
20584
20580
  var n = {
20585
20581
  html: t,
@@ -20588,7 +20584,7 @@ Vt.prototype._createOverlayContainer = function(e) {
20588
20584
  };
20589
20585
  return this._updateOverlayContainer(n), this._overlayContainers.push(n), n;
20590
20586
  };
20591
- Vt.prototype._updateRoot = function(e) {
20587
+ Ft.prototype._updateRoot = function(e) {
20592
20588
  var t = e.scale || 1, n = "matrix(" + [
20593
20589
  t,
20594
20590
  0,
@@ -20599,33 +20595,33 @@ Vt.prototype._updateRoot = function(e) {
20599
20595
  ].join(",") + ")";
20600
20596
  ed(this._overlayRoot, n);
20601
20597
  };
20602
- Vt.prototype._getOverlayContainer = function(e, t) {
20598
+ Ft.prototype._getOverlayContainer = function(e, t) {
20603
20599
  var n = Pn(this._overlayContainers, function(a) {
20604
20600
  return a.element === e;
20605
20601
  });
20606
20602
  return !n && !t ? this._createOverlayContainer(e) : n;
20607
20603
  };
20608
- Vt.prototype._addOverlay = function(e) {
20604
+ Ft.prototype._addOverlay = function(e) {
20609
20605
  var t = e.id, n = e.element, a = e.html, o, i;
20610
- a.get && a.constructor.prototype.jquery && (a = a.get(0)), yr(a) && (a = rn(a)), i = this._getOverlayContainer(n), o = rn('<div class="djs-overlay" data-overlay-id="' + t + '">'), Ii(o, { position: "absolute" }), o.appendChild(a), e.type && nn(o).add("djs-overlay-" + e.type);
20606
+ a.get && a.constructor.prototype.jquery && (a = a.get(0)), yr(a) && (a = on(a)), i = this._getOverlayContainer(n), o = on('<div class="djs-overlay" data-overlay-id="' + t + '">'), Ii(o, { position: "absolute" }), o.appendChild(a), e.type && nn(o).add("djs-overlay-" + e.type);
20611
20607
  var r = this._canvas.findRoot(n), l = this._canvas.getRootElement();
20612
20608
  Zi(o, r === l), e.htmlContainer = o, i.overlays.push(e), i.html.appendChild(o), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
20613
20609
  };
20614
- Vt.prototype._updateOverlayVisibilty = function(e, t) {
20610
+ Ft.prototype._updateOverlayVisibilty = function(e, t) {
20615
20611
  var n = e.show, a = this._canvas.findRoot(e.element), o = n && n.minZoom, i = n && n.maxZoom, r = e.htmlContainer, l = this._canvas.getRootElement(), c = !0;
20616
20612
  (a !== l || n && (wn(o) && o > t.scale || wn(i) && i < t.scale)) && (c = !1), Zi(r, c), this._updateOverlayScale(e, t);
20617
20613
  };
20618
- Vt.prototype._updateOverlayScale = function(e, t) {
20614
+ Ft.prototype._updateOverlayScale = function(e, t) {
20619
20615
  var n = e.scale, a, o, i = e.htmlContainer, r, l = "";
20620
20616
  n !== !0 && (n === !1 ? (a = 1, o = 1) : (a = n.min, o = n.max), wn(a) && t.scale < a && (r = (1 / t.scale || 1) * a), wn(o) && t.scale > o && (r = (1 / t.scale || 1) * o)), wn(r) && (l = "scale(" + r + "," + r + ")"), ed(i, l);
20621
20617
  };
20622
- Vt.prototype._updateOverlaysVisibilty = function(e) {
20618
+ Ft.prototype._updateOverlaysVisibilty = function(e) {
20623
20619
  var t = this;
20624
20620
  de(this._overlays, function(n) {
20625
20621
  t._updateOverlayVisibilty(n, e);
20626
20622
  });
20627
20623
  };
20628
- Vt.prototype._init = function() {
20624
+ Ft.prototype._init = function() {
20629
20625
  var e = this._eventBus, t = this;
20630
20626
  function n(a) {
20631
20627
  t._updateRoot(a), t._updateOverlaysVisibilty(a), t.show();
@@ -20658,7 +20654,7 @@ Vt.prototype._init = function() {
20658
20654
  }), e.on("diagram.clear", this.clear, this);
20659
20655
  };
20660
20656
  function Cx(e) {
20661
- var t = rn('<div class="djs-overlay-container" />');
20657
+ var t = on('<div class="djs-overlay-container" />');
20662
20658
  return Ii(t, {
20663
20659
  position: "absolute",
20664
20660
  width: 0,
@@ -20685,7 +20681,7 @@ function ed(e, t) {
20685
20681
  }
20686
20682
  var Sx = {
20687
20683
  __init__: ["overlays"],
20688
- overlays: ["type", Vt]
20684
+ overlays: ["type", Ft]
20689
20685
  }, kx = new Di();
20690
20686
  function oo(e) {
20691
20687
  this._scheduled = {}, e.on("diagram.destroy", () => {
@@ -20770,7 +20766,7 @@ Pt.prototype._init = function() {
20770
20766
  }), this._container = this._createContainer();
20771
20767
  };
20772
20768
  Pt.prototype._createContainer = function() {
20773
- var e = rn('<div class="djs-context-pad-parent"></div>');
20769
+ var e = on('<div class="djs-context-pad-parent"></div>');
20774
20770
  return this._canvas.getContainer().appendChild(e), e;
20775
20771
  };
20776
20772
  Pt.prototype.registerProvider = function(e, t) {
@@ -20833,8 +20829,8 @@ Pt.prototype._getProviders = function() {
20833
20829
  Pt.prototype._updateAndOpen = function(e) {
20834
20830
  var t = this.getEntries(e), n = this._createHtml(e), a;
20835
20831
  de(t, function(o, i) {
20836
- var r = o.group || "default", l = rn(o.html || '<div class="entry" draggable="true"></div>'), c;
20837
- _n(l, "data-action", i), c = Zt("[data-group=" + Cl(r) + "]", n), c || (c = rn('<div class="group"></div>'), _n(c, "data-group", r), n.appendChild(c)), c.appendChild(l), o.className && jx(l, o.className), o.title && _n(l, "title", o.title), o.imageUrl && (a = rn("<img>"), _n(a, "src", o.imageUrl), a.style.width = "100%", a.style.height = "100%", l.appendChild(a));
20832
+ var r = o.group || "default", l = on(o.html || '<div class="entry" draggable="true"></div>'), c;
20833
+ _n(l, "data-action", i), c = Zt("[data-group=" + Cl(r) + "]", n), c || (c = on('<div class="group"></div>'), _n(c, "data-group", r), n.appendChild(c)), c.appendChild(l), o.className && jx(l, o.className), o.title && _n(l, "title", o.title), o.imageUrl && (a = on("<img>"), _n(a, "src", o.imageUrl), a.style.width = "100%", a.style.height = "100%", l.appendChild(a));
20838
20834
  }), nn(n).add("open"), this._current = {
20839
20835
  entries: t,
20840
20836
  html: n,
@@ -20842,7 +20838,7 @@ Pt.prototype._updateAndOpen = function(e) {
20842
20838
  }, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
20843
20839
  };
20844
20840
  Pt.prototype._createHtml = function(e) {
20845
- var t = this, n = rn('<div class="djs-context-pad"></div>');
20841
+ var t = this, n = on('<div class="djs-context-pad"></div>');
20846
20842
  return Qn.bind(n, hi, "click", function(a) {
20847
20843
  t.trigger("click", a);
20848
20844
  }), Qn.bind(n, hi, "dragstart", function(a) {
@@ -21593,7 +21589,7 @@ jt.prototype._rebuild = function() {
21593
21589
  this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
21594
21590
  };
21595
21591
  jt.prototype._init = function() {
21596
- var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = rn(jt.HTML_MARKUP);
21592
+ var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = on(jt.HTML_MARKUP);
21597
21593
  n.appendChild(a), nn(n).add(Br + eC), Qn.bind(a, Qx, "click", function(o) {
21598
21594
  var i = o.delegateTarget;
21599
21595
  if (cf(i, rd)) return e.toggle();
@@ -21623,10 +21619,10 @@ jt.prototype._update = function() {
21623
21619
  var e = Zt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
21624
21620
  gc(e), de(t, function(n, a) {
21625
21621
  var o = n.group || "default", i = Zt("[data-group=" + Cl(o) + "]", e);
21626
- i || (i = rn('<div class="group"></div>'), _n(i, "data-group", o), e.appendChild(i));
21627
- var r = rn(n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'));
21622
+ i || (i = on('<div class="group"></div>'), _n(i, "data-group", o), e.appendChild(i));
21623
+ var r = on(n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'));
21628
21624
  if (i.appendChild(r), !n.separator && (_n(r, "data-action", a), n.title && _n(r, "title", n.title), n.className && nC(r, n.className), n.imageUrl)) {
21629
- var l = rn("<img>");
21625
+ var l = on("<img>");
21630
21626
  _n(l, "src", n.imageUrl), r.appendChild(l);
21631
21627
  }
21632
21628
  }), this.open();
@@ -21737,7 +21733,7 @@ function lC(e, t, n) {
21737
21733
  }
21738
21734
  function gi(e, t, n) {
21739
21735
  var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
21740
- return It(o) && (a = (/top|left/.test(e) ? Hi : Bi)(a, o)), It(i) && (a = (/top|left/.test(e) ? Bi : Hi)(a, i)), a;
21736
+ return Ot(o) && (a = (/top|left/.test(e) ? Hi : Bi)(a, o)), Ot(i) && (a = (/top|left/.test(e) ? Bi : Hi)(a, i)), a;
21741
21737
  }
21742
21738
  function sC(e, t) {
21743
21739
  if (!t) return e;
@@ -22214,7 +22210,7 @@ zn.prototype.addSnapTargetPoints = function(e, t, n) {
22214
22210
  return;
22215
22211
  }
22216
22212
  e.add("mid", Ga(a));
22217
- }), !It(t.x) || !It(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Ga(t)), e;
22213
+ }), !Ot(t.x) || !Ot(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Ga(t)), e;
22218
22214
  };
22219
22215
  zn.prototype.getSnapTargets = function(e, t) {
22220
22216
  return Xu(t).filter(function(n) {
@@ -22322,7 +22318,7 @@ va.prototype.snap = function(e, t) {
22322
22318
  va.prototype._createLine = function(e) {
22323
22319
  var t = this._canvas.getLayer("snap"), n = Ge("path");
22324
22320
  return Fe(n, { d: "M0,0 L0,0" }), ht(n).add("djs-snap-line"), qe(t, n), { update: function(a) {
22325
- It(a) ? e === "horizontal" ? Fe(n, {
22321
+ Ot(a) ? e === "horizontal" ? Fe(n, {
22326
22322
  d: "M-100000," + a + " L+100000," + a,
22327
22323
  display: ""
22328
22324
  }) : Fe(n, {
@@ -22364,10 +22360,10 @@ var MC = {
22364
22360
  createMoveSnapping: ["type", lo]
22365
22361
  };
22366
22362
  function so(e) {
22367
- Gt.call(this, e), this.init();
22363
+ Kt.call(this, e), this.init();
22368
22364
  }
22369
22365
  so.$inject = ["eventBus"];
22370
- Ba(so, Gt);
22366
+ Ba(so, Kt);
22371
22367
  so.prototype.addRule = function(e, t, n) {
22372
22368
  var a = this;
22373
22369
  typeof e == "string" && (e = [e]), e.forEach(function(o) {