@a2simcode/ui 0.0.298 → 0.0.300

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 je, computed as P, createBlock as W, createCommentVNode as ne, createElementBlock as I, createElementVNode as L, createSlots as qn, createTextVNode as Fn, createVNode as Q, defineComponent as xe, getCurrentInstance as nl, guardReactiveProps as Qo, h as Vi, inject as Fd, mergeModels as qo, mergeProps as et, nextTick as Pt, normalizeClass as Qe, normalizeProps as Na, normalizeStyle as he, onBeforeUnmount as ei, onMounted as Ft, onUnmounted as ti, openBlock as k, provide as Vd, reactive as Xn, ref as D, render as Ni, renderList as De, renderSlot as lt, resolveComponent as F, resolveDirective as _o, resolveDynamicComponent as Ua, shallowRef as ni, toDisplayString as Re, unref as G, useModel as Xo, useSlots as Nd, useTemplateRef as Fa, vShow as Pr, watch as st, watchEffect as Bc, withCtx as X, withDirectives as Zn, withKeys as Hr, withModifiers as Qt } from "vue";
1
+ import { Fragment as je, computed as P, createBlock as W, createCommentVNode as ne, createElementBlock as I, createElementVNode as L, createSlots as qn, createTextVNode as Fn, createVNode as Q, defineComponent as xe, getCurrentInstance as nl, guardReactiveProps as Qo, h as Vi, inject as Fd, mergeModels as qo, mergeProps as et, nextTick as Pt, normalizeClass as Qe, normalizeProps as Na, normalizeStyle as he, onBeforeUnmount as ei, onMounted as Ht, onUnmounted as ti, openBlock as k, provide as Vd, reactive as Xn, ref as D, render as Ni, renderList as De, renderSlot as lt, resolveComponent as F, resolveDirective as _o, resolveDynamicComponent as Ua, shallowRef as ni, toDisplayString as Re, unref as G, useModel as Xo, useSlots as Nd, useTemplateRef as Fa, vShow as Pr, watch as st, watchEffect as Bc, withCtx as X, withDirectives as Zn, withKeys as Hr, withModifiers as Qt } from "vue";
2
2
  import { Icon as Zl, getIcon as $a } from "@iconify/vue";
3
3
  import mo from "dayjs";
4
4
  import Wd from "sortablejs";
@@ -509,7 +509,10 @@ var Dc = (e, t, n, a) => {
509
509
  "j-cascader-select",
510
510
  "j-autocomplete",
511
511
  "j-rate",
512
- "j-slider"
512
+ "j-slider",
513
+ "j-date",
514
+ "j-time",
515
+ "j-tree-select"
513
516
  ].includes(e) || e.indexOf("j-input") != -1, Cn = (e) => {
514
517
  const t = { ...e.config || {} };
515
518
  if (e.getCompConfig) {
@@ -1425,7 +1428,7 @@ var hh = /* @__PURE__ */ mn(((e, t) => {
1425
1428
  ]);
1426
1429
  },
1427
1430
  _doProcessBlock: function(h, p) {
1428
- for (var g = this._hash.words, y = g[0], x = g[1], w = g[2], b = g[3], m = g[4], C = g[5], v = g[6], _ = g[7], S = y.high, R = y.low, T = x.high, j = x.low, H = w.high, B = w.low, A = b.high, M = b.low, E = m.high, N = m.low, U = C.high, re = C.low, be = v.high, J = v.low, Z = _.high, ae = _.low, z = S, ue = R, Ne = T, Se = j, Ue = H, it = B, wt = A, oe = M, Ce = E, $e = N, Tt = U, Ht = re, V = be, ke = J, Ee = Z, Ae = ae, Fe = 0; Fe < 80; Fe++) {
1431
+ for (var g = this._hash.words, y = g[0], x = g[1], w = g[2], b = g[3], m = g[4], C = g[5], v = g[6], _ = g[7], S = y.high, R = y.low, T = x.high, j = x.low, H = w.high, B = w.low, A = b.high, M = b.low, E = m.high, N = m.low, U = C.high, re = C.low, be = v.high, J = v.low, Z = _.high, ae = _.low, z = S, ue = R, Ne = T, Se = j, Ue = H, it = B, wt = A, oe = M, Ce = E, $e = N, Tt = U, Ot = re, V = be, ke = J, Ee = Z, Ae = ae, Fe = 0; Fe < 80; Fe++) {
1429
1432
  var ze, Ke, ut = f[Fe];
1430
1433
  if (Fe < 16)
1431
1434
  Ke = ut.high = h[p + Fe * 2] | 0, ze = ut.low = h[p + Fe * 2 + 1] | 0;
@@ -1433,10 +1436,10 @@ var hh = /* @__PURE__ */ mn(((e, t) => {
1433
1436
  var qt = f[Fe - 15], Kt = qt.high, fn = qt.low, hn = (Kt >>> 1 | fn << 31) ^ (Kt >>> 8 | fn << 24) ^ Kt >>> 7, Rt = (fn >>> 1 | Kt << 31) ^ (fn >>> 8 | Kt << 24) ^ (fn >>> 7 | Kt << 25), Mt = f[Fe - 2], pt = Mt.high, xt = Mt.low, an = (pt >>> 19 | xt << 13) ^ (pt << 3 | xt >>> 29) ^ pt >>> 6, q = (xt >>> 19 | pt << 13) ^ (xt << 3 | pt >>> 29) ^ (xt >>> 6 | pt << 26), we = f[Fe - 7], le = we.high, ce = we.low, me = f[Fe - 16], Oe = me.high, We = me.low;
1434
1437
  ze = Rt + ce, Ke = hn + le + (ze >>> 0 < Rt >>> 0 ? 1 : 0), ze = ze + q, Ke = Ke + an + (ze >>> 0 < q >>> 0 ? 1 : 0), ze = ze + We, Ke = Ke + Oe + (ze >>> 0 < We >>> 0 ? 1 : 0), ut.high = Ke, ut.low = ze;
1435
1438
  }
1436
- var ht = Ce & Tt ^ ~Ce & V, zt = $e & Ht ^ ~$e & ke, Ct = z & Ne ^ z & Ue ^ Ne & Ue, oa = ue & Se ^ ue & it ^ Se & it, Ta = (z >>> 28 | ue << 4) ^ (z << 30 | ue >>> 2) ^ (z << 25 | ue >>> 7), ia = (ue >>> 28 | z << 4) ^ (ue << 30 | z >>> 2) ^ (ue << 25 | z >>> 7), oo = (Ce >>> 14 | $e << 18) ^ (Ce >>> 18 | $e << 14) ^ (Ce << 23 | $e >>> 9), Ma = ($e >>> 14 | Ce << 18) ^ ($e >>> 18 | Ce << 14) ^ ($e << 23 | Ce >>> 9), ja = d[Fe], Aa = ja.high, Jn = ja.low, Yt = Ae + Ma, pn = Ee + oo + (Yt >>> 0 < Ae >>> 0 ? 1 : 0), Yt = Yt + zt, pn = pn + ht + (Yt >>> 0 < zt >>> 0 ? 1 : 0), Yt = Yt + Jn, pn = pn + Aa + (Yt >>> 0 < Jn >>> 0 ? 1 : 0), Yt = Yt + ze, pn = pn + Ke + (Yt >>> 0 < ze >>> 0 ? 1 : 0), io = ia + oa, Ho = Ta + Ct + (io >>> 0 < ia >>> 0 ? 1 : 0);
1437
- Ee = V, Ae = ke, V = Tt, ke = Ht, Tt = Ce, Ht = $e, $e = oe + Yt | 0, Ce = wt + pn + ($e >>> 0 < oe >>> 0 ? 1 : 0) | 0, wt = Ue, oe = it, Ue = Ne, it = Se, Ne = z, Se = ue, ue = Yt + io | 0, z = pn + Ho + (ue >>> 0 < Yt >>> 0 ? 1 : 0) | 0;
1439
+ var ht = Ce & Tt ^ ~Ce & V, Dt = $e & Ot ^ ~$e & ke, Ct = z & Ne ^ z & Ue ^ Ne & Ue, oa = ue & Se ^ ue & it ^ Se & it, Ta = (z >>> 28 | ue << 4) ^ (z << 30 | ue >>> 2) ^ (z << 25 | ue >>> 7), ia = (ue >>> 28 | z << 4) ^ (ue << 30 | z >>> 2) ^ (ue << 25 | z >>> 7), oo = (Ce >>> 14 | $e << 18) ^ (Ce >>> 18 | $e << 14) ^ (Ce << 23 | $e >>> 9), Ma = ($e >>> 14 | Ce << 18) ^ ($e >>> 18 | Ce << 14) ^ ($e << 23 | Ce >>> 9), ja = d[Fe], Aa = ja.high, Jn = ja.low, Yt = Ae + Ma, pn = Ee + oo + (Yt >>> 0 < Ae >>> 0 ? 1 : 0), Yt = Yt + Dt, pn = pn + ht + (Yt >>> 0 < Dt >>> 0 ? 1 : 0), Yt = Yt + Jn, pn = pn + Aa + (Yt >>> 0 < Jn >>> 0 ? 1 : 0), Yt = Yt + ze, pn = pn + Ke + (Yt >>> 0 < ze >>> 0 ? 1 : 0), io = ia + oa, Ho = Ta + Ct + (io >>> 0 < ia >>> 0 ? 1 : 0);
1440
+ Ee = V, Ae = ke, V = Tt, ke = Ot, Tt = Ce, Ot = $e, $e = oe + Yt | 0, Ce = wt + pn + ($e >>> 0 < oe >>> 0 ? 1 : 0) | 0, wt = Ue, oe = it, Ue = Ne, it = Se, Ne = z, Se = ue, ue = Yt + io | 0, z = pn + Ho + (ue >>> 0 < Yt >>> 0 ? 1 : 0) | 0;
1438
1441
  }
1439
- R = y.low = R + ue, y.high = S + z + (R >>> 0 < ue >>> 0 ? 1 : 0), j = x.low = j + Se, x.high = T + Ne + (j >>> 0 < Se >>> 0 ? 1 : 0), B = w.low = B + it, w.high = H + Ue + (B >>> 0 < it >>> 0 ? 1 : 0), M = b.low = M + oe, b.high = A + wt + (M >>> 0 < oe >>> 0 ? 1 : 0), N = m.low = N + $e, m.high = E + Ce + (N >>> 0 < $e >>> 0 ? 1 : 0), re = C.low = re + Ht, C.high = U + Tt + (re >>> 0 < Ht >>> 0 ? 1 : 0), J = v.low = J + ke, v.high = be + V + (J >>> 0 < ke >>> 0 ? 1 : 0), ae = _.low = ae + Ae, _.high = Z + Ee + (ae >>> 0 < Ae >>> 0 ? 1 : 0);
1442
+ R = y.low = R + ue, y.high = S + z + (R >>> 0 < ue >>> 0 ? 1 : 0), j = x.low = j + Se, x.high = T + Ne + (j >>> 0 < Se >>> 0 ? 1 : 0), B = w.low = B + it, w.high = H + Ue + (B >>> 0 < it >>> 0 ? 1 : 0), M = b.low = M + oe, b.high = A + wt + (M >>> 0 < oe >>> 0 ? 1 : 0), N = m.low = N + $e, m.high = E + Ce + (N >>> 0 < $e >>> 0 ? 1 : 0), re = C.low = re + Ot, C.high = U + Tt + (re >>> 0 < Ot >>> 0 ? 1 : 0), J = v.low = J + ke, v.high = be + V + (J >>> 0 < ke >>> 0 ? 1 : 0), ae = _.low = ae + Ae, _.high = Z + Ee + (ae >>> 0 < Ae >>> 0 ? 1 : 0);
1440
1443
  },
1441
1444
  _doFinalize: function() {
1442
1445
  var h = this._data, p = h.words, g = this._nDataBytes * 8, y = h.sigBytes * 8;
@@ -2005,7 +2008,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2005
2008
  }, d = (f) => {
2006
2009
  a("change", f);
2007
2010
  };
2008
- return Ft(() => {
2011
+ return Ht(() => {
2009
2012
  n.autoFocus && !n.readonly && o.value.focus();
2010
2013
  }), (f, u) => {
2011
2014
  const h = F("j-icon"), p = F("el-input");
@@ -2146,7 +2149,8 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2146
2149
  },
2147
2150
  prefixIcon: {},
2148
2151
  clearIcon: {},
2149
- id: { default: void 0 }
2152
+ id: { default: void 0 },
2153
+ autoFocus: { type: Boolean }
2150
2154
  },
2151
2155
  emits: [
2152
2156
  "update:modelValue",
@@ -2219,7 +2223,11 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2219
2223
  }, p = (g) => {
2220
2224
  o("visible-change", g);
2221
2225
  };
2222
- return t({ ref: i }), (g, y) => {
2226
+ return Ht(() => {
2227
+ a.autoFocus && !a.readonly && setTimeout(() => {
2228
+ i.value.focus();
2229
+ }, 50);
2230
+ }), t({ ref: i }), (g, y) => {
2223
2231
  const x = F("el-date-picker");
2224
2232
  return k(), W(x, et({
2225
2233
  ref_key: "dateRef",
@@ -2310,7 +2318,8 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2310
2318
  placeholder: { default: "" },
2311
2319
  startPlaceholder: { default: "" },
2312
2320
  endPlaceholder: { default: "" },
2313
- id: { default: void 0 }
2321
+ id: { default: void 0 },
2322
+ autoFocus: { type: Boolean }
2314
2323
  },
2315
2324
  emits: [
2316
2325
  "update:modelValue",
@@ -2356,15 +2365,19 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2356
2365
  o("focus", p);
2357
2366
  }, f = (p) => {
2358
2367
  o("visible-change", p);
2368
+ }, u = () => {
2369
+ i.value?.handleOpen();
2370
+ }, h = () => {
2371
+ i.value?.handleClose();
2359
2372
  };
2360
- return t({
2373
+ return Ht(() => {
2374
+ a.autoFocus && !a.readonly && setTimeout(() => {
2375
+ i.value.focus();
2376
+ }, 50);
2377
+ }), t({
2361
2378
  ref: i,
2362
- handleOpen: () => {
2363
- i.value?.handleOpen();
2364
- },
2365
- handleClose: () => {
2366
- i.value?.handleClose();
2367
- }
2379
+ handleOpen: u,
2380
+ handleClose: h
2368
2381
  }), (p, g) => {
2369
2382
  const y = F("el-time-picker");
2370
2383
  return k(), W(y, {
@@ -2659,7 +2672,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2659
2672
  });
2660
2673
  }
2661
2674
  };
2662
- return Ft(() => {
2675
+ return Ht(() => {
2663
2676
  n.autoFocus && !n.readonly && setTimeout(() => {
2664
2677
  o.value.toggleMenu();
2665
2678
  }, 50);
@@ -2869,7 +2882,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
2869
2882
  disabled: "disabled",
2870
2883
  leaf: "leaf"
2871
2884
  }));
2872
- return Ft(() => {
2885
+ return Ht(() => {
2873
2886
  a.autoFocus && !a.readonly && setTimeout(() => {
2874
2887
  o.value.togglePopperVisible();
2875
2888
  }, 50);
@@ -3079,7 +3092,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
3079
3092
  focus: () => {
3080
3093
  o.value?.focus();
3081
3094
  }
3082
- }), Ft(() => {
3095
+ }), Ht(() => {
3083
3096
  a.autoFocus && !a.readonly && o.value?.focus();
3084
3097
  }), (u, h) => {
3085
3098
  const p = F("j-icon"), g = F("el-input-number");
@@ -3254,7 +3267,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
3254
3267
  blur: () => {
3255
3268
  o.value?.blur();
3256
3269
  }
3257
- }), Ft(() => {
3270
+ }), Ht(() => {
3258
3271
  a.autoFocus && !a.readonly && setTimeout(() => {
3259
3272
  o.value.focus();
3260
3273
  }, 50);
@@ -3519,7 +3532,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
3519
3532
  d.value = s.value - A - M < t.midMinWidth;
3520
3533
  };
3521
3534
  let B = null;
3522
- return Ft(() => {
3535
+ return Ht(() => {
3523
3536
  t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (H(), B = new ResizeObserver(() => {
3524
3537
  H();
3525
3538
  }), B.observe(a.value));
@@ -5418,7 +5431,7 @@ var qp = class {
5418
5431
  get() {
5419
5432
  let V;
5420
5433
  const ke = j.value;
5421
- if (H ? V = n.modelValue : v ? V = v[ke] : s ? V = s[ke] : (console.warn("[comp] modelValue 未被外部显式传入", n.type, ke), V = void 0), V === void 0 && U.value === "j-tabs") {
5434
+ if (H ? V = n.modelValue : v ? V = v[ke] : s ? V = s[ke] : V = void 0, V === void 0 && U.value === "j-tabs") {
5422
5435
  if (M.value?.defaultValue) return M.value.defaultValue;
5423
5436
  const Ee = n.children.findIndex((Ae) => Ae.config?.active);
5424
5437
  return Ee > -1 ? "_tab" + Ee : "_tab0";
@@ -5632,12 +5645,12 @@ var qp = class {
5632
5645
  console.warn(`方法 ${V} 不存在或不是函数`);
5633
5646
  }, Tt = () => {
5634
5647
  Ce.value?.(), Ce.value = void 0;
5635
- }, Ht = () => {
5648
+ }, Ot = () => {
5636
5649
  Tt(), !(!g || !n.id || !oe.value) && (Ce.value = g(n.id, $e));
5637
5650
  };
5638
5651
  return st([() => n.id, () => oe.value], () => {
5639
- Ht();
5640
- }, { immediate: !0 }), Ft(() => {
5652
+ Ot();
5653
+ }, { immediate: !0 }), Ht(() => {
5641
5654
  n.id && h && h(n.id), n.id && x && x(n.id);
5642
5655
  }), ei(() => {
5643
5656
  Tt();
@@ -6243,7 +6256,7 @@ var ag = /* @__PURE__ */ xe({
6243
6256
  }],
6244
6257
  expectedHeight: Bn
6245
6258
  };
6246
- }, Ht = (O, $) => {
6259
+ }, Ot = (O, $) => {
6247
6260
  const { dataValue: Y, rect: ee, table: K, col: te, row: se } = O, ve = K?.options?.columns || [], ge = K?.getBodyField?.(te, se), ye = ge ? Rt(ve, ge) : null, pe = $ || ye?._compConfig || {};
6248
6261
  let Be = "mdi:toggle-switch", He = "#165dff";
6249
6262
  (Object.prototype.hasOwnProperty.call(pe, "inactiveValue") && pe.inactiveValue !== void 0 ? String(Y) === String(pe.inactiveValue) : !Y) && (Be = "mdi:toggle-switch-off", He = "#e5e6eb");
@@ -6310,7 +6323,7 @@ var ag = /* @__PURE__ */ xe({
6310
6323
  }) || {}, Be = Number(pe.min) || 0, He = Number(pe.max) || 100, Me = Number(Y) || 0, rt = He - Be, Je = rt === 0 ? 0 : Math.max(0, Math.min(100, (Me - Be) / rt * 100)), Le = 4, Ve = 8, at = 8, gt = (ee.height - Le) / 2, St = String(Me), Ye = Hn(St) || 0, ft = Ve, Ge = gt, jt = ee.width - Ve * 2 - Ye - at, un = jt * Je / 100, xn = [], Ba = (Zt, ln, co) => {
6311
6324
  const dt = Math.min(co, ln / 2, Zt / 2);
6312
6325
  return `M ${dt} 0 L ${Zt - dt} 0 Q ${Zt} 0 ${Zt} ${dt} L ${Zt} ${ln - dt} Q ${Zt} ${ln} ${Zt - dt} ${ln} L ${dt} ${ln} Q 0 ${ln} 0 ${ln - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
6313
- }, Ot = (Zt, ln, co) => {
6326
+ }, Lt = (Zt, ln, co) => {
6314
6327
  const dt = Math.min(co, ln / 2, Zt / 2);
6315
6328
  return Zt <= dt * 2 ? Ba(Zt, ln, co) : `M ${dt} 0 L ${Zt} 0 L ${Zt} ${ln} L ${dt} ${ln} Q 0 ${ln} 0 ${ln - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
6316
6329
  }, wn = Ba(jt, Le, Le / 2);
@@ -6322,7 +6335,7 @@ var ag = /* @__PURE__ */ xe({
6322
6335
  width: jt,
6323
6336
  height: Le
6324
6337
  }), un > 0) {
6325
- const Zt = Ot(un, Le, Le / 2);
6338
+ const Zt = Lt(un, Le, Le / 2);
6326
6339
  xn.push({
6327
6340
  type: "icon",
6328
6341
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${un}" height="${Le}" viewBox="0 0 ${un} ${Le}"><path d="${Zt}" fill="#165dff"/></svg>`,
@@ -6440,7 +6453,7 @@ var ag = /* @__PURE__ */ xe({
6440
6453
  width: uo,
6441
6454
  height: Ve
6442
6455
  }), { tagWidth: uo };
6443
- }, Ot = () => {
6456
+ }, Lt = () => {
6444
6457
  const dt = [];
6445
6458
  let tn = [], In = 0;
6446
6459
  for (let zn = 0; zn < Je.length; zn++) {
@@ -6463,8 +6476,8 @@ var ag = /* @__PURE__ */ xe({
6463
6476
  needsWrap: dt.length > 1
6464
6477
  };
6465
6478
  };
6466
- let { lines: wn, needsWrap: la } = Ot();
6467
- ft !== 0 && la && (ft = 0, Ge = Math.max(0, ee.width - ft * 2), jt = Math.max(0, Ge - gt * 2), { lines: wn, needsWrap: la } = Ot());
6479
+ let { lines: wn, needsWrap: la } = Lt();
6480
+ ft !== 0 && la && (ft = 0, Ge = Math.max(0, ee.width - ft * 2), jt = Math.max(0, Ge - gt * 2), { lines: wn, needsWrap: la } = Lt());
6468
6481
  const Pa = wn.length * Ve + (wn.length > 1 ? (wn.length - 1) * Ye : 0);
6469
6482
  let Zt = Math.max(0, (ee.height - Pa) / 2);
6470
6483
  const ln = la;
@@ -6703,7 +6716,7 @@ var ag = /* @__PURE__ */ xe({
6703
6716
  se._compTypeByRender = se._compTypeByRender || {}, se._compTypeByRender[K] = ge;
6704
6717
  const ye = {
6705
6718
  text: Tt,
6706
- "j-switch": Ht,
6719
+ "j-switch": Ot,
6707
6720
  "j-rate": V,
6708
6721
  "j-slider": ke,
6709
6722
  "j-tag": ze,
@@ -6756,7 +6769,7 @@ var ag = /* @__PURE__ */ xe({
6756
6769
  const ve = [];
6757
6770
  return K.forEach((ge) => {
6758
6771
  if (!Y(ge, te, se)) return;
6759
- const { id: ye, type: pe, config: Be, getCompConfig: He, getCompType: Me, children: rt, customLayout: Je } = ge, { label: Le, width: Ve, minWidth: at, maxWidth: gt, align: St, headerAlign: Ye, fieldFormat: ft, editor: Ge, frozen: jt, mergeCell: un, ...xn } = Be || {}, Ba = Ye ?? St, Ot = {
6772
+ const { id: ye, type: pe, config: Be, getCompConfig: He, getCompType: Me, children: rt, customLayout: Je } = ge, { label: Le, width: Ve, minWidth: at, maxWidth: gt, align: St, headerAlign: Ye, fieldFormat: ft, editor: Ge, frozen: jt, mergeCell: un, ...xn } = Be || {}, Ba = Ye ?? St, Lt = {
6760
6773
  field: ye,
6761
6774
  title: Le,
6762
6775
  width: Ve,
@@ -6773,12 +6786,12 @@ var ag = /* @__PURE__ */ xe({
6773
6786
  frozen: jt,
6774
6787
  mergeCell: un
6775
6788
  }, wn = typeof Me == "function", la = tu(pe);
6776
- if ((la || wn) && (Ot.editor = la || "j-comp-editor", S = !0), wn ? Ot.customRender = Mt : (pe === "j-switch" && (Ot.customRender = Ht), pe === "j-rate" && (Ot.customRender = V), pe === "j-slider" && (Ot.customRender = ke), (pe === "j-tag" || pe === "j-input-tag") && (Ot.customRender = ze), pe === "j-icon" && (Ot.customRender = Fe)), pe === "link" && (Ot.customLayout = ut), (pe === "j-layerform" || pe === "j-layer-form") && (Ot.customLayout = Kt), pe === "checkbox" && (Ot.customLayout = fn), pe === "j-switch" && (Ot.minWidth = Ot.minWidth || Ve, Ot.maxWidth = Ot.maxWidth || Ve), Je && (Ot.customLayout = hn), Ot.fieldFormat = pt, rt && rt.length > 0) {
6789
+ if ((la || wn) && (Lt.editor = la || "j-comp-editor", S = !0), wn ? Lt.customRender = Mt : (pe === "j-switch" && (Lt.customRender = Ot), pe === "j-rate" && (Lt.customRender = V), pe === "j-slider" && (Lt.customRender = ke), (pe === "j-tag" || pe === "j-input-tag") && (Lt.customRender = ze), pe === "j-icon" && (Lt.customRender = Fe)), pe === "link" && (Lt.customLayout = ut), (pe === "j-layerform" || pe === "j-layer-form") && (Lt.customLayout = Kt), pe === "checkbox" && (Lt.customLayout = fn), pe === "j-switch" && (Lt.minWidth = Lt.minWidth || Ve, Lt.maxWidth = Lt.maxWidth || Ve), Je && (Lt.customLayout = hn), Lt.fieldFormat = pt, rt && rt.length > 0) {
6777
6790
  const Pa = ee(rt, ge, se + 1);
6778
6791
  if (Pa.length === 0) return;
6779
- Ot.columns = Pa;
6792
+ Lt.columns = Pa;
6780
6793
  }
6781
- ve.push(Ot);
6794
+ ve.push(Lt);
6782
6795
  }), o.isTree && ve.length > 0 && (ve[0].tree = !0), ve;
6783
6796
  };
6784
6797
  return ee(O);
@@ -6816,7 +6829,7 @@ var ag = /* @__PURE__ */ xe({
6816
6829
  o.isPage && (O = Ie.value + T);
6817
6830
  let $ = Hn(String(O)) || 0;
6818
6831
  return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
6819
- }, zt = (O) => {
6832
+ }, Dt = (O) => {
6820
6833
  let $ = (Y, ee, K, te) => {
6821
6834
  const se = te.getRecordIndexByCell(ee, K);
6822
6835
  return o.isPage && !O ? Ie.value + se + 1 : se + 1;
@@ -6934,7 +6947,7 @@ var ag = /* @__PURE__ */ xe({
6934
6947
  ...se,
6935
6948
  ...ge,
6936
6949
  ...ve
6937
- ], $ && (te.unshift(zt(ee)), _++), Y.length > 0 && (te.push($e(Y)), v++), S && (K.editCellTrigger = "click", K.keyboardOptions = {
6950
+ ], $ && (te.unshift(Dt(ee)), _++), Y.length > 0 && (te.push($e(Y)), v++), S && (K.editCellTrigger = "click", K.keyboardOptions = {
6938
6951
  copySelected: !0,
6939
6952
  cutSelected: !0,
6940
6953
  pasteValueToCell: !0,
@@ -6951,13 +6964,13 @@ var ag = /* @__PURE__ */ xe({
6951
6964
  };
6952
6965
  }, Aa = () => {
6953
6966
  const O = ja(o.columns, o.isShowNumber && !o.isTree, o.actions);
6954
- (Dt.value || o.rowDrag) && _++;
6967
+ ($t.value || o.rowDrag) && _++;
6955
6968
  const $ = {
6956
6969
  records: [],
6957
6970
  columns: O.columns,
6958
6971
  autoFillWidth: !0,
6959
- enableCheckboxCascade: Dt.value,
6960
- enableHeaderCheckboxCascade: Dt.value,
6972
+ enableCheckboxCascade: $t.value,
6973
+ enableHeaderCheckboxCascade: $t.value,
6961
6974
  rightFrozenColCount: v,
6962
6975
  frozenColCount: _,
6963
6976
  tooltip: { isShowOverflowTextTooltip: !0 },
@@ -6970,7 +6983,7 @@ var ag = /* @__PURE__ */ xe({
6970
6983
  delay: 0,
6971
6984
  type: "one-by-one",
6972
6985
  direction: "row"
6973
- }), Dt.value ? $.rowSeriesNumber = oa() : o.rowDrag && ($.rowSeriesNumber = Ct()), $.theme = Ri, o.heightMode === "auto" && ($.theme = {
6986
+ }), $t.value ? $.rowSeriesNumber = oa() : o.rowDrag && ($.rowSeriesNumber = Ct()), $.theme = Ri, o.heightMode === "auto" && ($.theme = {
6974
6987
  ...Ri,
6975
6988
  scrollStyle: {
6976
6989
  ...Ri.scrollStyle,
@@ -7009,7 +7022,7 @@ var ag = /* @__PURE__ */ xe({
7009
7022
  }
7010
7023
  }), m.on("click_cell", (K) => {
7011
7024
  const { col: te, row: se, cellType: ve, originData: ge } = K, ye = ge || { children: m.records };
7012
- if (Dt.value) {
7025
+ if ($t.value) {
7013
7026
  if (ve === "checkbox" && te == 0) {
7014
7027
  if (ye.__checkState = K.target.attribute.checked, se === 0 && ye.__checkState === !1) {
7015
7028
  const Be = (He) => {
@@ -7082,7 +7095,7 @@ var ag = /* @__PURE__ */ xe({
7082
7095
  o.heightMode === "auto" && (x.value = m.getAllRowsHeight());
7083
7096
  }
7084
7097
  }, jn = () => m ? m.records : [];
7085
- Ft(() => {
7098
+ Ht(() => {
7086
7099
  Yt();
7087
7100
  }), ei(() => {
7088
7101
  pn(), Ne(), q(), document.removeEventListener("wheel", it);
@@ -7108,7 +7121,7 @@ var ag = /* @__PURE__ */ xe({
7108
7121
  });
7109
7122
  }, ie = () => {
7110
7123
  if (!m) return [];
7111
- if (!Dt.value) {
7124
+ if (!$t.value) {
7112
7125
  const O = m.getSelectedCellInfos();
7113
7126
  if (O && O.length > 0) {
7114
7127
  const $ = O[0][0];
@@ -7146,9 +7159,9 @@ var ag = /* @__PURE__ */ xe({
7146
7159
  return [];
7147
7160
  }, nt = (O) => o.editConfig.isRemoveBtn ? O._i : o.rowKey ? o.rowKey.split(",").map(($) => O[$.trim()]).join("::") : "", on = (O) => {
7148
7161
  if (m)
7149
- if (Dt.value || m.clearSelected(), o.rowKey) {
7162
+ if ($t.value || m.clearSelected(), o.rowKey) {
7150
7163
  const $ = new Set(O.map(nt)), Y = "__checkState";
7151
- if (!Dt.value) {
7164
+ if (!$t.value) {
7152
7165
  const ve = m.records;
7153
7166
  for (let ge = 0; ge < ve.length; ge++) {
7154
7167
  const ye = ve[ge];
@@ -7201,8 +7214,8 @@ var ag = /* @__PURE__ */ xe({
7201
7214
  }), o.heightMode === "auto" && (x.value = m.getAllRowsHeight()), R.value = 0;
7202
7215
  }, ro = () => {
7203
7216
  m.renderWithRecreateCells();
7204
- }, ra = P(() => o.editConfig.isAddBtn && !o.isRowFixed), lo = P(() => o.editConfig.addBtnText || "添加"), Ze = P(() => o.editConfig.isRemoveBtn && !o.isRowFixed), Xt = P(() => o.editConfig.readonly), Dt = P(() => o.isMultiple || Ze.value), cn = (O) => {
7205
- if (!Dt.value || !O || !o.multipleDisabled) return !1;
7217
+ }, ra = P(() => o.editConfig.isAddBtn && !o.isRowFixed), lo = P(() => o.editConfig.addBtnText || "添加"), Ze = P(() => o.editConfig.isRemoveBtn && !o.isRowFixed), Xt = P(() => o.editConfig.readonly), $t = P(() => o.isMultiple || Ze.value), cn = (O) => {
7218
+ if (!$t.value || !O || !o.multipleDisabled) return !1;
7206
7219
  try {
7207
7220
  return o.multipleDisabled(O) === !0;
7208
7221
  } catch ($) {
@@ -7578,9 +7591,9 @@ var ag = /* @__PURE__ */ xe({
7578
7591
  return;
7579
7592
  }
7580
7593
  y.value.onmousedown = (oe) => {
7581
- const { clientX: Ce } = oe, { clientY: $e } = oe, Tt = p.left + C.value, Ht = p.top + v.value;
7582
- p._left = p.left, p._top = p.top, b.value || (b.value = it), w.value || (w.value = Se), Ce > Tt + 10 && Ce < Tt + Se - 10 && $e > Ht + 5 && $e < Ht + 47 || (typeof document < "u" && (document.onmousemove = function(V) {
7583
- V.preventDefault(), Ce > Tt && Ce < Tt + 10 && (Ce > V.clientX && (w.value = Se + (Ce - V.clientX), p.left = p._left - (Ce - V.clientX)), Ce < V.clientX && w.value > a.minWidth && (w.value = Se - (V.clientX - Ce), p.left = p._left + V.clientX - Ce)), Ce > Tt + Se - 10 && Ce < Tt + Se && (Ce > V.clientX && w.value > a.minWidth && (w.value = Se - (Ce - V.clientX)), Ce < V.clientX && typeof document < "u" && document.body && C.value + p.left + w.value < document.body.clientWidth && (w.value = Se + (V.clientX - Ce))), $e > Ht && $e < Ht + 5 && ($e > V.clientY && (b.value = it + $e - V.clientY, p.top = p._top - ($e - V.clientY)), $e < V.clientY && b.value > a.minHeight && (b.value = it - (V.clientY - $e), p.top = p._top + V.clientY - $e)), wt + $e > Ht + it + 38 && wt + $e < Ht + it + 48 && ($e > V.clientY && b.value > a.minHeight && (b.value = it - ($e - V.clientY)), $e < V.clientY && typeof window < "u" && v.value + p.top + b.value + 48 < window.innerHeight && (b.value = it + V.clientY - $e));
7594
+ const { clientX: Ce } = oe, { clientY: $e } = oe, Tt = p.left + C.value, Ot = p.top + v.value;
7595
+ p._left = p.left, p._top = p.top, b.value || (b.value = it), w.value || (w.value = Se), Ce > Tt + 10 && Ce < Tt + Se - 10 && $e > Ot + 5 && $e < Ot + 47 || (typeof document < "u" && (document.onmousemove = function(V) {
7596
+ V.preventDefault(), Ce > Tt && Ce < Tt + 10 && (Ce > V.clientX && (w.value = Se + (Ce - V.clientX), p.left = p._left - (Ce - V.clientX)), Ce < V.clientX && w.value > a.minWidth && (w.value = Se - (V.clientX - Ce), p.left = p._left + V.clientX - Ce)), Ce > Tt + Se - 10 && Ce < Tt + Se && (Ce > V.clientX && w.value > a.minWidth && (w.value = Se - (Ce - V.clientX)), Ce < V.clientX && typeof document < "u" && document.body && C.value + p.left + w.value < document.body.clientWidth && (w.value = Se + (V.clientX - Ce))), $e > Ot && $e < Ot + 5 && ($e > V.clientY && (b.value = it + $e - V.clientY, p.top = p._top - ($e - V.clientY)), $e < V.clientY && b.value > a.minHeight && (b.value = it - (V.clientY - $e), p.top = p._top + V.clientY - $e)), wt + $e > Ot + it + 38 && wt + $e < Ot + it + 48 && ($e > V.clientY && b.value > a.minHeight && (b.value = it - ($e - V.clientY)), $e < V.clientY && typeof window < "u" && v.value + p.top + b.value + 48 < window.innerHeight && (b.value = it + V.clientY - $e));
7584
7597
  }), typeof document < "u" && (document.onmouseup = function() {
7585
7598
  typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
7586
7599
  }));
@@ -9117,7 +9130,7 @@ var ag = /* @__PURE__ */ xe({
9117
9130
  return o && o(`当前限制选择${n.limit}个文件`), !1;
9118
9131
  };
9119
9132
  return (oe, Ce) => {
9120
- const $e = F("j-icon"), Tt = F("el-popover"), Ht = F("j-button"), V = F("el-upload"), ke = F("el-text"), Ee = F("j-dialog-full"), Ae = _o("loading");
9133
+ const $e = F("j-icon"), Tt = F("el-popover"), Ot = F("j-button"), V = F("el-upload"), ke = F("el-text"), Ee = F("j-dialog-full"), Ae = _o("loading");
9121
9134
  return k(), I("div", rv, [
9122
9135
  Q(V, {
9123
9136
  action: "",
@@ -9155,7 +9168,7 @@ var ag = /* @__PURE__ */ xe({
9155
9168
  "readonly"
9156
9169
  ])]),
9157
9170
  _: 1
9158
- }, 8, ["title"])) : e.readonly ? ne("", !0) : (k(), W(Ht, {
9171
+ }, 8, ["title"])) : e.readonly ? ne("", !0) : (k(), W(Ot, {
9159
9172
  key: 2,
9160
9173
  icon: "mdi:tray-upload",
9161
9174
  type: e.drag ? "text" : e.btnType,
@@ -9270,7 +9283,7 @@ var ag = /* @__PURE__ */ xe({
9270
9283
  };
9271
9284
  return st(() => a.option, (p) => {
9272
9285
  d(p);
9273
- }, { deep: !0 }), Ft(() => {
9286
+ }, { deep: !0 }), Ht(() => {
9274
9287
  s();
9275
9288
  }), ti(() => {
9276
9289
  c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
@@ -10283,7 +10296,7 @@ var ag = /* @__PURE__ */ xe({
10283
10296
  },
10284
10297
  setup(e, { expose: t }) {
10285
10298
  const n = e, a = P(() => ({ ...n })), o = D(), i = D(null), r = P(() => n.options);
10286
- Ft(() => {
10299
+ Ht(() => {
10287
10300
  n.animation && l();
10288
10301
  }), st(() => n.decimals, () => {
10289
10302
  i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
@@ -11155,7 +11168,7 @@ var ag = /* @__PURE__ */ xe({
11155
11168
  }));
11156
11169
  }), st(() => a.mode, () => {
11157
11170
  l && f();
11158
- }), Ft(async () => {
11171
+ }), Ht(async () => {
11159
11172
  await Pt(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
11160
11173
  l && l.dispatch({ scrollIntoView: !0 });
11161
11174
  }), p.observe(i.value));
@@ -11602,7 +11615,7 @@ var ag = /* @__PURE__ */ xe({
11602
11615
  setup(e, { emit: t }) {
11603
11616
  const n = e, a = t, { activeMenu: o, theme: i } = ii(), r = D(), l = D(0);
11604
11617
  let c = null;
11605
- Ft(() => {
11618
+ Ht(() => {
11606
11619
  typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
11607
11620
  r.value && (l.value = r.value.offsetWidth);
11608
11621
  }), c.observe(r.value));
@@ -12167,7 +12180,7 @@ var ag = /* @__PURE__ */ xe({
12167
12180
  }
12168
12181
  }
12169
12182
  ];
12170
- Ft(() => {
12183
+ Ht(() => {
12171
12184
  c.value = o.searchFieldList, l.value = o.searchList;
12172
12185
  });
12173
12186
  const f = P(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
@@ -12742,7 +12755,7 @@ var ag = /* @__PURE__ */ xe({
12742
12755
  }, { immediate: !0 });
12743
12756
  const Tt = () => {
12744
12757
  it.value.init(oe.value);
12745
- }, Ht = (fe) => {
12758
+ }, Ot = (fe) => {
12746
12759
  oe.value = fe, wt.value = !1, me();
12747
12760
  }, V = () => {
12748
12761
  oe.value = [], me();
@@ -12821,7 +12834,7 @@ var ag = /* @__PURE__ */ xe({
12821
12834
  xt.value = pt.value?.clientWidth || 0;
12822
12835
  };
12823
12836
  let q;
12824
- Ft(() => {
12837
+ Ht(() => {
12825
12838
  Pt(an), q = new ResizeObserver(() => {
12826
12839
  an();
12827
12840
  }), pt.value && q.observe(pt.value);
@@ -12837,17 +12850,17 @@ var ag = /* @__PURE__ */ xe({
12837
12850
  if (fe.length === 0) return [];
12838
12851
  const de = xt.value;
12839
12852
  if (de <= 0) return fe;
12840
- const Ie = Math.max(0, de - 4), Pe = (Xt, Dt) => Xt.groupId || `__auto_${Dt}`, ie = (Xt) => {
12853
+ const Ie = Math.max(0, de - 4), Pe = (Xt, $t) => Xt.groupId || `__auto_${$t}`, ie = (Xt) => {
12841
12854
  if (Xt.config?.notLabel === !0 || !Xt.label) return 28;
12842
- const Dt = 24, cn = Hn(Xt.label || "") || 0, bn = Xt.config?.icon ? 18 : 0;
12843
- return Math.ceil(cn + Dt + bn + 2);
12855
+ const $t = 24, cn = Hn(Xt.label || "") || 0, bn = Xt.config?.icon ? 18 : 0;
12856
+ return Math.ceil(cn + $t + bn + 2);
12844
12857
  };
12845
12858
  if (((Xt) => {
12846
- let Dt = 0, cn = null;
12859
+ let $t = 0, cn = null;
12847
12860
  return Xt.forEach((bn, so) => {
12848
12861
  const xi = Pe(bn, so);
12849
- cn !== null && (Dt += xi === cn ? -1 : 8), Dt += ie(bn), cn = xi;
12850
- }), Dt;
12862
+ cn !== null && ($t += xi === cn ? -1 : 8), $t += ie(bn), cn = xi;
12863
+ }), $t;
12851
12864
  })(fe) <= Ie) return fe;
12852
12865
  const on = {
12853
12866
  id: "__table_panel_more__",
@@ -12860,12 +12873,12 @@ var ag = /* @__PURE__ */ xe({
12860
12873
  }, rn = 28, gn = [];
12861
12874
  let ro = 0, ra = null;
12862
12875
  for (let Xt = 0; Xt < fe.length; Xt++) {
12863
- const Dt = fe[Xt], cn = Pe(Dt, Xt);
12876
+ const $t = fe[Xt], cn = Pe($t, Xt);
12864
12877
  let bn = ro;
12865
- ra !== null && (bn += cn === ra ? -1 : 8), bn += ie(Dt);
12878
+ ra !== null && (bn += cn === ra ? -1 : 8), bn += ie($t);
12866
12879
  const so = fe.length - (Xt + 1) > 0 ? (bn > 0 ? 8 : 0) + rn : 0;
12867
12880
  if (bn + so <= Ie)
12868
- gn.push(Dt), ro = bn, ra = cn;
12881
+ gn.push($t), ro = bn, ra = cn;
12869
12882
  else break;
12870
12883
  }
12871
12884
  const lo = fe.slice(gn.length);
@@ -12934,12 +12947,12 @@ var ag = /* @__PURE__ */ xe({
12934
12947
  rows: fe,
12935
12948
  page: 1
12936
12949
  });
12937
- }, zt = async () => {
12950
+ }, Dt = async () => {
12938
12951
  y.value = [], x.value = !1, f.value = 1, le = void 0, await ce();
12939
12952
  }, Ct = async (fe) => {
12940
12953
  y.value = [], x.value = !1, await ce(fe);
12941
12954
  }, oa = async () => {
12942
- await zt();
12955
+ await Dt();
12943
12956
  }, Ta = (fe) => {
12944
12957
  r("ready", fe);
12945
12958
  }, ia = ({ selections: fe, record: de, checked: Ie, isMultiple: Pe }) => {
@@ -13049,11 +13062,11 @@ var ag = /* @__PURE__ */ xe({
13049
13062
  isMultiple: !0
13050
13063
  }), x.value && Ie.length === 0 && (x.value = !1);
13051
13064
  };
13052
- return Ft(async () => {
13065
+ return Ht(async () => {
13053
13066
  i.immediate && await Ct();
13054
13067
  }), t({
13055
13068
  refreshData: Ct,
13056
- resetData: zt,
13069
+ resetData: Dt,
13057
13070
  getSelection: ja,
13058
13071
  setSelection: Aa,
13059
13072
  setSelectionById: Jn,
@@ -13179,7 +13192,7 @@ var ag = /* @__PURE__ */ xe({
13179
13192
  ref_key: "orderPanelRef",
13180
13193
  ref: it,
13181
13194
  columns: M.value,
13182
- onSave: Ht,
13195
+ onSave: Ot,
13183
13196
  onClear: V
13184
13197
  }, null, 8, ["columns"])]),
13185
13198
  _: 1
@@ -13249,7 +13262,7 @@ var ag = /* @__PURE__ */ xe({
13249
13262
  ])
13250
13263
  }, [L("div", db, [(k(!0), I(je, null, De(R.value, (Ze, Xt) => (k(), W(Ua(e.renderVNode(Ze)), {
13251
13264
  key: T(Ze) || Xt,
13252
- onClick: (Dt) => Ma(Ze)
13265
+ onClick: ($t) => Ma(Ze)
13253
13266
  }, null, 8, ["onClick"]))), 128))]), _.value ? (k(), I("div", fb, [de[16] || (de[16] = L("div", null, null, -1)), Q(gn, {
13254
13267
  "current-page": f.value,
13255
13268
  "onUpdate:currentPage": de[9] || (de[9] = (Ze) => f.value = Ze),
@@ -13618,7 +13631,7 @@ var ag = /* @__PURE__ */ xe({
13618
13631
  }, j = D(""), H = (A, M) => {
13619
13632
  j.value = A ? M.value : "";
13620
13633
  }, B = (A, M, E) => a.allowDrop ? a.allowDrop(A, M, E) : !(E == "inner" && !M.data.canInner);
13621
- return Ft(async () => {
13634
+ return Ht(async () => {
13622
13635
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await y();
13623
13636
  }), st(() => a.dataCode || a.dataType, () => {
13624
13637
  y();
@@ -13980,12 +13993,12 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13980
13993
  we.push(Oe);
13981
13994
  const { children: We } = me;
13982
13995
  Ki(Oe, me, ["children", "config"]), Ki(Oe.config, me.config || {}, []), a.config.size && Oe.config.size === void 0 && (Oe.config.size = a.config.size), R[me.id] && console.warn("有重复的组件id:" + me.id), R[me.id] = Oe, a.readonly === !0 && (Oe.config.readonly = !0);
13983
- let ht = !1, zt;
13984
- ce !== "" && (ht = !0, Oe.config.parentTableId = ce, zt = R[ce]?.config?.table);
13996
+ let ht = !1, Dt;
13997
+ ce !== "" && (ht = !0, Oe.config.parentTableId = ce, Dt = R[ce]?.config?.table);
13985
13998
  const Ct = Oe.config || {};
13986
13999
  if (ae(me.id))
13987
- !le && ht === !1 && (Ct?.defaultValue === 0 ? v[me.id] = Ct?.defaultValue : v[me.id] = Ct?.defaultValue || void 0), Ct.table && Ct.field ? T[`${Ct.table}_${Ct.field}`.toLowerCase()] = me.id : Ct.field && (ht ? T[`${zt}_${Ct.field}`.toLowerCase()] = me.id : T[`${Ct.field}`.toLowerCase()] = me.id);
13988
- else if (ht && Ct.field) T[`${zt}_${Ct.field}`.toLowerCase()] = me.id;
14000
+ !le && ht === !1 && (Ct?.defaultValue === 0 ? v[me.id] = Ct?.defaultValue : v[me.id] = Ct?.defaultValue || void 0), Ct.table && Ct.field ? T[`${Ct.table}_${Ct.field}`.toLowerCase()] = me.id : Ct.field && (ht ? T[`${Dt}_${Ct.field}`.toLowerCase()] = me.id : T[`${Ct.field}`.toLowerCase()] = me.id);
14001
+ else if (ht && Ct.field) T[`${Dt}_${Ct.field}`.toLowerCase()] = me.id;
13989
14002
  else if (z(me.id))
13990
14003
  !le && !Ct.isSubTable && (v[me.id] = []), Ct.table && (T[Ct.table.toLowerCase() || ""] = me.id), Ct.isSubTable || H.push(Oe);
13991
14004
  else if (Ct?.defaultValue) v[me.id] = Ct?.defaultValue;
@@ -14020,8 +14033,8 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14020
14033
  const ht = Fe(We);
14021
14034
  if (ht?.type === "j-table" || ht?.type === "j-table-panel") Oe[ht?.id || ""] = wt(We, me[We], le);
14022
14035
  else {
14023
- let zt = T[`${q}_${We}`.toLowerCase()] || We;
14024
- zt = zt.indexOf(".") !== -1 ? zt.split(".")[1] : zt, Oe[zt] = me[We];
14036
+ let Dt = T[`${q}_${We}`.toLowerCase()] || We;
14037
+ Dt = Dt.indexOf(".") !== -1 ? Dt.split(".")[1] : Dt, Oe[Dt] = me[We];
14025
14038
  }
14026
14039
  }
14027
14040
  }), ce.push(Oe);
@@ -14062,13 +14075,13 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14062
14075
  if (we) We ? le[We] = q[ce] : le[ce] = q[ce];
14063
14076
  else if (z(ce)) {
14064
14077
  const ht = [];
14065
- q[ce].forEach((zt) => {
14066
- ht.push($e(zt, !0));
14078
+ q[ce].forEach((Dt) => {
14079
+ ht.push($e(Dt, !0));
14067
14080
  }), le[Oe || ce] = ht;
14068
14081
  } else Oe && We ? (le[Oe] = le[Oe] || {}, le[Oe][We] = q[ce]) : We && (le[We] = q[ce]);
14069
14082
  } else we ? ce !== "_X_ROW_KEY" && ce !== "_isHover" && (le[ce] = q[ce]) : j[ce] ? (le[j[ce]] = le[j[ce]] || {}, le[j[ce]][ce.replace(`${j[ce]}_`, "")] = q[ce]) : le[ce] = q[ce];
14070
14083
  }), le;
14071
- }, Tt = (q = !0) => q ? $e(v) : v, Ht = (q, we, le, ce) => {
14084
+ }, Tt = (q = !0) => q ? $e(v) : v, Ot = (q, we, le, ce) => {
14072
14085
  let me = R[q];
14073
14086
  if (me == null) {
14074
14087
  const We = q.split(".");
@@ -14085,17 +14098,17 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14085
14098
  });
14086
14099
  return Oe._componentId = me?.id, Oe;
14087
14100
  }, V = (q, we, le, ce) => {
14088
- const me = Ht(q, we, le, ce);
14101
+ const me = Ot(q, we, le, ce);
14089
14102
  if (me.isNotRule !== !0 && me.display !== !1) {
14090
14103
  const Oe = me.rule || [], We = Oe.find((ht) => ht.type === "only");
14091
- return We && (We.validator = async (ht, zt) => {
14092
- if (zt && !await r({
14104
+ return We && (We.validator = async (ht, Dt) => {
14105
+ if (Dt && !await r({
14093
14106
  table: ht.table,
14094
14107
  key: ht.key,
14095
14108
  keyName: ht.keyName,
14096
14109
  field: ht.field,
14097
14110
  keyValue: ht.getKeyValue ? ht.getKeyValue() : "",
14098
- value: zt,
14111
+ value: Dt,
14099
14112
  paramNames: ht.paramNames,
14100
14113
  getParams: ht.getParams,
14101
14114
  withProjectId: ht.withProjectId,
@@ -14602,7 +14615,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14602
14615
  }, m = (v) => {
14603
14616
  o("rowChange", v);
14604
14617
  };
14605
- Ft(() => {
14618
+ Ht(() => {
14606
14619
  if (!f.value || !h.value) return;
14607
14620
  const v = h.value, { initSortable: _ } = Hh(v, {
14608
14621
  handle: ".j-input-rows-drag",
@@ -15076,7 +15089,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15076
15089
  }), c = (s) => {
15077
15090
  a("change", s);
15078
15091
  };
15079
- return Ft(() => {
15092
+ return Ht(() => {
15080
15093
  n.autoFocus && !n.readonly && setTimeout(() => {
15081
15094
  const s = l.value === i.value ? r.value : i.value;
15082
15095
  l.value = s, c(s);
@@ -15320,7 +15333,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15320
15333
  }
15321
15334
  return u;
15322
15335
  };
15323
- return Ft(() => {
15336
+ return Ht(() => {
15324
15337
  const f = {
15325
15338
  placeholder: n.placeholder || "请输入内容...",
15326
15339
  readOnly: n.readonly,
@@ -15448,7 +15461,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15448
15461
  x(b);
15449
15462
  } })), p.search(y));
15450
15463
  }
15451
- }), Ft(() => {
15464
+ }), Ht(() => {
15452
15465
  f();
15453
15466
  }), (y, x) => (k(), I("div", {
15454
15467
  class: "j-map",
@@ -16618,7 +16631,7 @@ function Wr(e, t) {
16618
16631
  y: Math.round(e.y + (t.y - e.y) / 2)
16619
16632
  };
16620
16633
  }
16621
- var pw = /,?([a-z]),?/gi, Ts = parseFloat, $t = Math, sa = $t.PI, Dn = $t.min, $n = $t.max, Ms = $t.pow, pa = $t.abs, gw = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, vw = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, js = Array.isArray || function(e) {
16634
+ var pw = /,?([a-z]),?/gi, Ts = parseFloat, Ft = Math, sa = Ft.PI, Dn = Ft.min, $n = Ft.max, Ms = Ft.pow, pa = Ft.abs, gw = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, vw = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, js = Array.isArray || function(e) {
16622
16635
  return e instanceof Array;
16623
16636
  };
16624
16637
  function yw(e, t) {
@@ -16738,7 +16751,7 @@ function Hs(e, t, n, a, o, i, r, l, c) {
16738
16751
  0.0472
16739
16752
  ], h = 0, p = 0; p < d; p++) {
16740
16753
  var g = s * f[p] + s, y = Ps(g, e, n, o, r), x = Ps(g, t, a, i, l), w = y * y + x * x;
16741
- h += u[p] * $t.sqrt(w);
16754
+ h += u[p] * Ft.sqrt(w);
16742
16755
  }
16743
16756
  return s * h;
16744
16757
  }
@@ -16918,8 +16931,8 @@ function Ls(e, t, n, a, o, i) {
16918
16931
  function xu(e, t, n, a, o, i, r, l, c, s) {
16919
16932
  var d = sa * 120 / 180, f = sa / 180 * (+o || 0), u = [], h, p = bw(function(Se, Ue, it) {
16920
16933
  return {
16921
- x: Se * $t.cos(it) - Ue * $t.sin(it),
16922
- y: Se * $t.sin(it) + Ue * $t.cos(it)
16934
+ x: Se * Ft.cos(it) - Ue * Ft.sin(it),
16935
+ y: Se * Ft.sin(it) + Ue * Ft.cos(it)
16923
16936
  };
16924
16937
  });
16925
16938
  if (s)
@@ -16927,14 +16940,14 @@ function xu(e, t, n, a, o, i, r, l, c, s) {
16927
16940
  else {
16928
16941
  h = p(e, t, -f), e = h.x, t = h.y, h = p(l, c, -f), l = h.x, c = h.y;
16929
16942
  var g = (e - l) / 2, y = (t - c) / 2, x = g * g / (n * n) + y * y / (a * a);
16930
- x > 1 && (x = $t.sqrt(x), n = x * n, a = x * a);
16931
- var w = n * n, b = a * a, m = (i == r ? -1 : 1) * $t.sqrt(pa((w * b - w * y * y - b * g * g) / (w * y * y + b * g * g))), C = m * n * y / a + (e + l) / 2, v = m * -a * g / n + (t + c) / 2, _ = $t.asin(((t - v) / a).toFixed(9)), S = $t.asin(((c - v) / a).toFixed(9));
16943
+ x > 1 && (x = Ft.sqrt(x), n = x * n, a = x * a);
16944
+ var w = n * n, b = a * a, m = (i == r ? -1 : 1) * Ft.sqrt(pa((w * b - w * y * y - b * g * g) / (w * y * y + b * g * g))), C = m * n * y / a + (e + l) / 2, v = m * -a * g / n + (t + c) / 2, _ = Ft.asin(((t - v) / a).toFixed(9)), S = Ft.asin(((c - v) / a).toFixed(9));
16932
16945
  _ = 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);
16933
16946
  }
16934
16947
  var R = S - _;
16935
16948
  if (pa(R) > d) {
16936
16949
  var T = S, j = l, H = c;
16937
- S = _ + d * (r && S > _ ? 1 : -1), l = C + n * $t.cos(S), c = v + a * $t.sin(S), u = xu(l, c, n, a, o, 0, r, j, H, [
16950
+ S = _ + d * (r && S > _ ? 1 : -1), l = C + n * Ft.cos(S), c = v + a * Ft.sin(S), u = xu(l, c, n, a, o, 0, r, j, H, [
16938
16951
  S,
16939
16952
  T,
16940
16953
  C,
@@ -16942,7 +16955,7 @@ function xu(e, t, n, a, o, i, r, l, c, s) {
16942
16955
  ]);
16943
16956
  }
16944
16957
  R = S - _;
16945
- var B = $t.cos(_), A = $t.sin(_), M = $t.cos(S), E = $t.sin(S), N = $t.tan(R / 4), U = 4 / 3 * n * N, re = 4 / 3 * a * N, be = [e, t], J = [e + U * A, t - re * B], Z = [l + U * E, c - re * M], ae = [l, c];
16958
+ var B = Ft.cos(_), A = Ft.sin(_), M = Ft.cos(S), E = Ft.sin(S), N = Ft.tan(R / 4), U = 4 / 3 * n * N, re = 4 / 3 * a * N, be = [e, t], J = [e + U * A, t - re * B], Z = [l + U * E, c - re * M], ae = [l, c];
16946
16959
  if (J[0] = 2 * be[0] - J[0], J[1] = 2 * be[1] - J[1], s) return [
16947
16960
  J,
16948
16961
  Z,
@@ -16963,7 +16976,7 @@ function Mw(e, t, n, a, o, i, r, l) {
16963
16976
  h = -u / f, 0 < h && h < 1 && c.push(h);
16964
16977
  continue;
16965
16978
  }
16966
- y = f * f - 4 * u * d, x = $t.sqrt(y), !(y < 0) && (p = (-f + x) / (2 * d), 0 < p && p < 1 && c.push(p), g = (-f - x) / (2 * d), 0 < g && g < 1 && c.push(g));
16979
+ y = f * f - 4 * u * d, x = Ft.sqrt(y), !(y < 0) && (p = (-f + x) / (2 * d), 0 < p && p < 1 && c.push(p), g = (-f - x) / (2 * d), 0 < g && g < 1 && c.push(g));
16967
16980
  }
16968
16981
  for (var b = c.length, m = b, C; b--; )
16969
16982
  h = c[b], C = 1 - h, s[0][b] = C * C * C * e + 3 * C * C * h * n + 3 * C * h * h * o + h * h * h * r, s[1][b] = C * C * C * t + 3 * C * C * h * a + 3 * C * h * h * i + h * h * h * l;
@@ -17107,7 +17120,7 @@ function Bw(e) {
17107
17120
  y: i.start.y + (i.end.y - i.start.y) * r
17108
17121
  };
17109
17122
  }
17110
- function It(e) {
17123
+ function zt(e) {
17111
17124
  return dn(e) ? Bw(e) : Aw(e);
17112
17125
  }
17113
17126
  function ga(e, t, n) {
@@ -17171,7 +17184,7 @@ function Su(e, t, n, a) {
17171
17184
  };
17172
17185
  En(c) && (h = c), l.connection = n.connect(f, u, h, p);
17173
17186
  }), this.start = function(r, l, c, s) {
17174
- En(c) || (s = c, c = It(l)), t.init(r, "connect", {
17187
+ En(c) || (s = c, c = zt(l)), t.init(r, "connect", {
17175
17188
  autoActivate: s,
17176
17189
  data: {
17177
17190
  shape: l,
@@ -18920,7 +18933,7 @@ Dl.$inject = ["eventBus", "connectionDocking"];
18920
18933
  function Xu() {
18921
18934
  }
18922
18935
  Xu.prototype.layoutConnection = function(e, t) {
18923
- return t = t || {}, [t.connectionStart || It(t.source || e.source), t.connectionEnd || It(t.target || e.target)];
18936
+ return t = t || {}, [t.connectionStart || zt(t.source || e.source), t.connectionEnd || zt(t.target || e.target)];
18924
18937
  };
18925
18938
  var Ai = 20, b_ = 5, Xi = Math.round, qs = 20, w_ = {
18926
18939
  "h:h": 20,
@@ -19034,12 +19047,12 @@ function E_(e, t, n) {
19034
19047
  }
19035
19048
  function T_(e, t, n, a, o) {
19036
19049
  var i = Lf(o && o.preferredLayouts || [], "straight")[0] || "h:h", r = ga(e, t, w_[i] || 0), l = H_(r, i);
19037
- n = n || It(e), a = a || It(t);
19050
+ n = n || zt(e), a = a || zt(t);
19038
19051
  var c = l.split(":");
19039
19052
  return E_(Qs(n, e, c[0], L_(r)), Qs(a, t, c[1], r), l);
19040
19053
  }
19041
19054
  function M_(e, t, n, a, o, i) {
19042
- bt(n) && (o = n, i = a, n = It(e), a = It(t)), i = Xe({ preferredLayouts: [] }, i), o = o || [];
19055
+ bt(n) && (o = n, i = a, n = zt(e), a = zt(t)), i = Xe({ preferredLayouts: [] }, i), o = o || [];
19043
19056
  var r = i.preferredLayouts.indexOf("straight") !== -1 && A_(e, t, n, a, i);
19044
19057
  return r || (r = i.connectionEnd && P_(t, e, a, o), r) || (r = i.connectionStart && B_(e, t, n, o), r) ? r : !i.connectionStart && !i.connectionEnd && o && o.length ? o : T_(e, t, n, a, i);
19045
19058
  }
@@ -19190,7 +19203,7 @@ Vl.prototype.layoutConnection = function(e, t) {
19190
19203
  return r === void 0 && (i = Bi(o && o[0], n), r = Bi(o && o[o.length - 1], a)), i || (i = Bi(o && o[0], n)), r || (r = Bi(o && o[o.length - 1], a)), Ia(e, "myline") && (n === a ? l = { preferredLayouts: I_(n, e) } : Ia(n, "gatewayAnd") || Ia(n, "gatewayXor") || Ia(n, "gatewayInclusive") ? l = { preferredLayouts: ["v:h"] } : Ia(a, "gatewayAnd") || Ia(a, "gatewayXor") || Ia(a, "gatewayInclusive") ? l = { preferredLayouts: ["h:v"] } : l = { preferredLayouts: ["h:h"] }), l && (l = Bt(l, t), c = ed(M_(n, a, i, r, o, l))), c || [i, r];
19191
19204
  };
19192
19205
  function Bi(e, t) {
19193
- return e ? e.original || e : It(t);
19206
+ return e ? e.original || e : zt(t);
19194
19207
  }
19195
19208
  function I_(e, t) {
19196
19209
  const { waypoints: n } = t, a = n && n.length && ga(n[0], e);
@@ -19269,7 +19282,7 @@ function Pi(e, t) {
19269
19282
  function Pn(e, t) {
19270
19283
  return e.businessObject.fillColor || t || "var(--j-color-bg-container)";
19271
19284
  }
19272
- function Lt(e, t) {
19285
+ function It(e, t) {
19273
19286
  return e.businessObject.strokeColor || t || "var(--j-color-text)";
19274
19287
  }
19275
19288
  function $_(e) {
@@ -19545,7 +19558,7 @@ function to(e, t, n, a, o, i, r) {
19545
19558
  box: E,
19546
19559
  align: N,
19547
19560
  padding: 5,
19548
- style: { fill: Lt(E, c) }
19561
+ style: { fill: It(E, c) }
19549
19562
  });
19550
19563
  }
19551
19564
  function _(M, E) {
@@ -19558,7 +19571,7 @@ function to(e, t, n, a, o, i, r) {
19558
19571
  return C(M, qi(E), {
19559
19572
  box: N,
19560
19573
  fitBox: !0,
19561
- style: Bt({}, o.getExternalStyle(), { fill: Lt(E, c) })
19574
+ style: Bt({}, o.getExternalStyle(), { fill: It(E, c) })
19562
19575
  });
19563
19576
  }
19564
19577
  function S(M, E, N) {
@@ -19721,7 +19734,7 @@ function to(e, t, n, a, o, i, r) {
19721
19734
  y: U
19722
19735
  } }), {
19723
19736
  strokeWidth: 0,
19724
- fill: Lt(E, s[E.type]?.iconFill || E.iconFill)
19737
+ fill: It(E, s[E.type]?.iconFill || E.iconFill)
19725
19738
  });
19726
19739
  }
19727
19740
  const A = {
@@ -19731,7 +19744,7 @@ function to(e, t, n, a, o, i, r) {
19731
19744
  startEvent(M, E) {
19732
19745
  const N = {
19733
19746
  fill: Pn(E, s.startEvent?.fill || E.fill),
19734
- stroke: Lt(E, s.startEvent?.stroke || E.stroke),
19747
+ stroke: It(E, s.startEvent?.stroke || E.stroke),
19735
19748
  strokeWidth: Pi(E, s.startEvent?.strokeWidth || E.strokeWidth)
19736
19749
  }, U = f("event")(M, E, N);
19737
19750
  return B(M, E, 18, 18), U;
@@ -19740,7 +19753,7 @@ function to(e, t, n, a, o, i, r) {
19740
19753
  const N = f("event")(M, E, {
19741
19754
  strokeWidth: Pi(E, s.endEvent?.strokeWidth || E.strokeWidth || 4),
19742
19755
  fill: Pn(E, s.endEvent?.fill || E.fill),
19743
- stroke: Lt(E, s.endEvent?.stroke || E.stroke)
19756
+ stroke: It(E, s.endEvent?.stroke || E.stroke)
19744
19757
  });
19745
19758
  return B(M, E, 18, 18), N;
19746
19759
  },
@@ -19749,7 +19762,7 @@ function to(e, t, n, a, o, i, r) {
19749
19762
  fillOpacity: Rr,
19750
19763
  strokeWidth: Pi(E, s[E.type]?.strokeWidth || E.strokeWidth || 4),
19751
19764
  fill: Pn(E, s[E.type]?.fill || E.fill),
19752
- stroke: Lt(E, s[E.type]?.stroke || E.stroke)
19765
+ stroke: It(E, s[E.type]?.stroke || E.stroke)
19753
19766
  };
19754
19767
  return b(M, E.width, E.height, N);
19755
19768
  },
@@ -19766,8 +19779,8 @@ function to(e, t, n, a, o, i, r) {
19766
19779
  }
19767
19780
  }), {
19768
19781
  strokeWidth: 1,
19769
- fill: Lt(E, s[E.type]?.iconFill || E.iconFill),
19770
- stroke: Lt(E, s[E.type]?.iconFill || E.iconFill)
19782
+ fill: It(E, s[E.type]?.iconFill || E.iconFill),
19783
+ stroke: It(E, s[E.type]?.iconFill || E.iconFill)
19771
19784
  }), N;
19772
19785
  },
19773
19786
  gatewayXor(M, E) {
@@ -19783,16 +19796,16 @@ function to(e, t, n, a, o, i, r) {
19783
19796
  }
19784
19797
  }), {
19785
19798
  strokeWidth: 1,
19786
- fill: Lt(E, s[E.type]?.iconFill || E.iconFill),
19787
- stroke: Lt(E, s[E.type]?.iconFill || E.iconFill)
19799
+ fill: It(E, s[E.type]?.iconFill || E.iconFill),
19800
+ stroke: It(E, s[E.type]?.iconFill || E.iconFill)
19788
19801
  }), N;
19789
19802
  },
19790
19803
  gatewayInclusive(M, E) {
19791
19804
  const N = f("gateway")(M, E);
19792
19805
  return y(M, E.width, E.height, E.height * 0.24, {
19793
19806
  strokeWidth: 2.5,
19794
- fill: Lt(E, l),
19795
- stroke: Lt(E, s[E.type]?.iconFill || E.iconFill)
19807
+ fill: It(E, l),
19808
+ stroke: It(E, s[E.type]?.iconFill || E.iconFill)
19796
19809
  }), N;
19797
19810
  },
19798
19811
  activity(M, E, N) {
@@ -19801,7 +19814,7 @@ function to(e, t, n, a, o, i, r) {
19801
19814
  task(M, E) {
19802
19815
  const N = {
19803
19816
  fill: Pn(E, l),
19804
- stroke: Lt(E, c)
19817
+ stroke: It(E, c)
19805
19818
  }, U = f("activity")(M, E, N);
19806
19819
  return v(M, E, "center-middle"), S(M, E), U;
19807
19820
  },
@@ -19813,21 +19826,21 @@ function to(e, t, n, a, o, i, r) {
19813
19826
  } }), {
19814
19827
  strokeWidth: 0.5,
19815
19828
  fill: Pn(E, l),
19816
- stroke: Lt(E, c)
19829
+ stroke: It(E, c)
19817
19830
  }), w(M, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
19818
19831
  x: U,
19819
19832
  y: re
19820
19833
  } }), {
19821
19834
  strokeWidth: 0.5,
19822
19835
  fill: Pn(E, l),
19823
- stroke: Lt(E, c)
19836
+ stroke: It(E, c)
19824
19837
  }), w(M, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
19825
19838
  x: U,
19826
19839
  y: re
19827
19840
  } }), {
19828
19841
  strokeWidth: 0.5,
19829
- fill: Lt(E, c),
19830
- stroke: Lt(E, c)
19842
+ fill: It(E, c),
19843
+ stroke: It(E, c)
19831
19844
  }), N;
19832
19845
  },
19833
19846
  scriptTask(M, E) {
@@ -19837,14 +19850,14 @@ function to(e, t, n, a, o, i, r) {
19837
19850
  y: 20
19838
19851
  } }), {
19839
19852
  strokeWidth: 1,
19840
- stroke: Lt(E, c)
19853
+ stroke: It(E, c)
19841
19854
  }), N;
19842
19855
  },
19843
19856
  SubProcessMarker(M, E) {
19844
19857
  Wn(x(M, 14, 14, 0, {
19845
19858
  strokeWidth: 1,
19846
19859
  fill: Pn(E, l),
19847
- stroke: Lt(E, c)
19860
+ stroke: It(E, c)
19848
19861
  }), E.width / 2 - 7.5, E.height - 20), m("sub-process", M, n.getScaledPath("MARKER_SUB_PROCESS", {
19849
19862
  xScaleFactor: 1.5,
19850
19863
  yScaleFactor: 1.5,
@@ -19856,13 +19869,13 @@ function to(e, t, n, a, o, i, r) {
19856
19869
  }
19857
19870
  }), {
19858
19871
  fill: Pn(E, l),
19859
- stroke: Lt(E, c)
19872
+ stroke: It(E, c)
19860
19873
  });
19861
19874
  },
19862
19875
  subprocess(M, E, N) {
19863
19876
  N = Bt({
19864
19877
  fill: Pn(E, l),
19865
- stroke: Lt(E, c)
19878
+ stroke: It(E, c)
19866
19879
  }, N);
19867
19880
  const U = f("activity")(M, E, N);
19868
19881
  return v(M, E, "center-middle"), S(M, E, ["SubProcessMarker"]), U;
@@ -19871,7 +19884,7 @@ function to(e, t, n, a, o, i, r) {
19871
19884
  return _(M, E);
19872
19885
  },
19873
19886
  myline(M, E) {
19874
- const N = Pn(E, i.lineStroke || l), U = Lt(E, i.lineStroke || c);
19887
+ const N = Pn(E, i.lineStroke || l), U = It(E, i.lineStroke || c);
19875
19888
  return g(M, E.waypoints, {
19876
19889
  markerEnd: j(M, "sequenceflow-end", N, U),
19877
19890
  stroke: U
@@ -19881,7 +19894,7 @@ function to(e, t, n, a, o, i, r) {
19881
19894
  const N = {
19882
19895
  strokeWidth: Pi(E, s[E.type]?.strokeWidth || E.strokeWidth || 1),
19883
19896
  fill: Pn(E, s[E.type]?.fill || E.fill),
19884
- stroke: Lt(E, s[E.type]?.stroke || E.stroke)
19897
+ stroke: It(E, s[E.type]?.stroke || E.stroke)
19885
19898
  }, U = x(M, E.width, E.height, E.radius || Gr, N);
19886
19899
  return v(M, E, "center-middle"), S(M, E), B(M, E, E.iconX, E.iconY), U;
19887
19900
  }
@@ -20188,7 +20201,7 @@ function nc(e, t) {
20188
20201
  }
20189
20202
  function ux(e, t, n) {
20190
20203
  const a = e.waypoint;
20191
- return !a || a.length < 2 ? [It(t), It(n)] : a.map((o) => ({
20204
+ return !a || a.length < 2 ? [zt(t), zt(n)] : a.map((o) => ({
20192
20205
  x: o.x,
20193
20206
  y: o.y
20194
20207
  }));
@@ -20407,7 +20420,7 @@ var id = { myImporter: ["type", Ca] }, rd = (e) => {
20407
20420
  const R = S.createRoot();
20408
20421
  _.setRootElement(R), d();
20409
20422
  };
20410
- Ft(() => {
20423
+ Ht(() => {
20411
20424
  u();
20412
20425
  });
20413
20426
  const h = (v) => {
@@ -20949,7 +20962,7 @@ function gd(e) {
20949
20962
  }
20950
20963
  function pc(e, t, n) {
20951
20964
  var a, o;
20952
- return e.original ? e.original : (a = It(t), o = gd(n), Ul(e, o, a[o]));
20965
+ return e.original ? e.original : (a = zt(t), o = gd(n), Ul(e, o, a[o]));
20953
20966
  }
20954
20967
  function vd(e, t, n, a, o, i) {
20955
20968
  var r = e.get("connectionDocking", !1);
@@ -21196,10 +21209,10 @@ aa.prototype.drawPreview = function(e, t, n) {
21196
21209
  connectionStart: c,
21197
21210
  connectionEnd: s,
21198
21211
  waypoints: n.waypoints || h.waypoints
21199
- })), (!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)" });
21212
+ })), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? zt(i) : c, r ? zt(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)" });
21200
21213
  };
21201
21214
  aa.prototype.drawNoopPreview = function(e, t) {
21202
- var n = t.source, a = t.target, o = t.connectionStart || It(n), i = t.connectionEnd || It(a), r = this.cropWaypoints(o, i, n, a);
21215
+ var n = t.source, a = t.target, o = t.connectionStart || zt(n), i = t.connectionEnd || zt(a), r = this.cropWaypoints(o, i, n, a);
21203
21216
  ct(e, this.createNoopConnection(r[0], r[1]));
21204
21217
  };
21205
21218
  aa.prototype.cropWaypoints = function(e, t, n, a) {
@@ -22586,7 +22599,7 @@ function OC(e, t) {
22586
22599
  return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
22587
22600
  }
22588
22601
  function Md(e, t) {
22589
- var n = It(e), a = mt(e), o = {
22602
+ var n = zt(e), a = mt(e), o = {
22590
22603
  x: n.x,
22591
22604
  y: n.y
22592
22605
  };
@@ -23009,7 +23022,7 @@ mi.prototype.getSnapTargets = function(e, t) {
23009
23022
  });
23010
23023
  };
23011
23024
  function Ad(e, t) {
23012
- var n = It(e), a = mt(e), o = {
23025
+ var n = zt(e), a = mt(e), o = {
23013
23026
  x: n.x,
23014
23027
  y: n.y
23015
23028
  };
@@ -23230,7 +23243,7 @@ function a1(e, t) {
23230
23243
  var a = t.defaultDistance || 50, o = t.direction || "e", i = t.filter, r = t.getWeight || n, l = t.maxDistance || n1, c = t.reference || "start";
23231
23244
  i || (i = o1);
23232
23245
  function s(u, h) {
23233
- return o === "n" ? c === "start" ? mt(u).top - mt(h).bottom : c === "center" ? mt(u).top - It(h).y : mt(u).top - mt(h).top : o === "w" ? c === "start" ? mt(u).left - mt(h).right : c === "center" ? mt(u).left - It(h).x : mt(u).left - mt(h).left : o === "s" ? c === "start" ? mt(h).top - mt(u).bottom : c === "center" ? It(h).y - mt(u).bottom : mt(h).bottom - mt(u).bottom : c === "start" ? mt(h).left - mt(u).right : c === "center" ? It(h).x - mt(u).right : mt(h).right - mt(u).right;
23246
+ return o === "n" ? c === "start" ? mt(u).top - mt(h).bottom : c === "center" ? mt(u).top - zt(h).y : mt(u).top - mt(h).top : o === "w" ? c === "start" ? mt(u).left - mt(h).right : c === "center" ? mt(u).left - zt(h).x : mt(u).left - mt(h).left : o === "s" ? c === "start" ? mt(h).top - mt(u).bottom : c === "center" ? zt(h).y - mt(u).bottom : mt(h).bottom - mt(u).bottom : c === "start" ? mt(h).left - mt(u).right : c === "center" ? zt(h).x - mt(u).right : mt(h).right - mt(u).right;
23234
23247
  }
23235
23248
  var d = e.incoming.filter(i).map(function(u) {
23236
23249
  var h = r(u), p = h < 0 ? s(u.source, e) : s(e, u.source);
@@ -23286,7 +23299,7 @@ Bd.$inject = [
23286
23299
  ];
23287
23300
  function r1(e, t, n) {
23288
23301
  n || (n = {});
23289
- var a = n.defaultDistance || 50, o = It(e);
23302
+ var a = n.defaultDistance || 50, o = zt(e);
23290
23303
  return {
23291
23304
  x: mt(e).right + a + t.width / 2,
23292
23305
  y: o.y
@@ -23348,7 +23361,7 @@ function v1(e, t) {
23348
23361
  return y1(e, t);
23349
23362
  }
23350
23363
  function y1(e, t) {
23351
- const n = mt(e), a = It(e), o = a1(e, { filter: (l) => c1(l, "myline") }), i = 30, r = 80;
23364
+ const n = mt(e), a = zt(e), o = a1(e, { filter: (l) => c1(l, "myline") }), i = 30, r = 80;
23352
23365
  return p1(e, t, {
23353
23366
  x: n.right + o + t.width / 2,
23354
23367
  y: a.y + m1("left", r)
@@ -23569,7 +23582,7 @@ var w1 = {
23569
23582
  const B = H.createRoot();
23570
23583
  j.setRootElement(B), d();
23571
23584
  };
23572
- Ft(() => {
23585
+ Ht(() => {
23573
23586
  u();
23574
23587
  });
23575
23588
  const h = (T) => {