@a2simcode/ui 0.0.197 → 0.0.199

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 Fn, createTextVNode as on, createVNode as X, defineComponent as pe, 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 ta, 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 at, 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 on, createVNode as X, defineComponent as pe, 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";
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,7 +28,7 @@ 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 Zn, domify as rn, event as rt, matches as cf, query as Zt, queryAll as gr, remove as vr } from "min-dom";
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
32
  import { assign as Fe, 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";
33
33
  import { append as qe, attr as $e, 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";
@@ -165,7 +165,7 @@ var Qt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
165
165
  }, c = () => {
166
166
  r.value?.blur();
167
167
  }, s = H(() => a.notLabel || !a.label), d = z(!1);
168
- at(() => a.loading, (u) => {
168
+ nt(() => a.loading, (u) => {
169
169
  if (typeof u == "boolean") d.value = u;
170
170
  else if (Qt(u?.delay))
171
171
  d.value = !1;
@@ -259,7 +259,7 @@ function Si(e, t, n = []) {
259
259
  n.indexOf(a) === -1 && (e[a] = t[a]);
260
260
  });
261
261
  }
262
- var na = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
262
+ var Fn = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
263
263
  const t = Math.random() * 16 | 0;
264
264
  return (e === "x" ? t : t & 3 | 8).toString(16);
265
265
  }), ar = 0;
@@ -1409,8 +1409,8 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
1409
1409
  if (Bt < 16)
1410
1410
  ut = Nt.high = h[p + Bt * 2] | 0, Ht = Nt.low = h[p + Bt * 2 + 1] | 0;
1411
1411
  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), ye = f[Bt - 2], Te = ye.high, ze = ye.low, nt = (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, Jn = f[Bt - 16], ya = Jn.high, $a = Jn.low;
1413
- Ht = ie + kn, ut = ae + Sn + (Ht >>> 0 < ie >>> 0 ? 1 : 0), Ht = Ht + Ct, ut = ut + nt + (Ht >>> 0 < Ct >>> 0 ? 1 : 0), Ht = Ht + $a, ut = ut + ya + (Ht >>> 0 < $a >>> 0 ? 1 : 0), Nt.high = ut, Nt.low = Ht;
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), ye = f[Bt - 2], Te = ye.high, ze = ye.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;
1414
1414
  }
1415
1415
  var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M & Ae ^ M & Ve ^ Ae & Ve, gt = ue & me ^ ue & Ye ^ me & 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, Le = ln + St + (vt >>> 0 < qt >>> 0 ? 1 : 0), vt = vt + be, Le = Le + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, Le = Le + Yt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Ht, Le = Le + ut + (vt >>> 0 < Ht >>> 0 ? 1 : 0), Rn = xe + gt, Dt = Ot + Re + (Rn >>> 0 < xe >>> 0 ? 1 : 0);
1416
1416
  ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne + Le + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Ve, Ee = Ye, Ve = Ae, Ye = me, Ae = M, me = ue, ue = vt + Rn | 0, M = Le + Dt + (ue >>> 0 < vt >>> 0 ? 1 : 0) | 0;
@@ -1576,14 +1576,14 @@ var ph = async (e) => new Promise((t, n) => {
1576
1576
  LAYER_PROVIDE: "jcode_layer_provide",
1577
1577
  PAGE_PROVIDE: "jcode_page_provide"
1578
1578
  };
1579
- function Vn(e, t) {
1579
+ function Nn(e, t) {
1580
1580
  return xd(e, t);
1581
1581
  }
1582
- function Nn(e, t) {
1582
+ function Wn(e, t) {
1583
1583
  Cd(e, t);
1584
1584
  }
1585
1585
  function yt() {
1586
- return Vn(Ut.APP_PROVIDE, {
1586
+ return Nn(Ut.APP_PROVIDE, {
1587
1587
  t: (e, ...t) => {
1588
1588
  if (!e) return "";
1589
1589
  if (typeof e != "string") return e;
@@ -1616,55 +1616,55 @@ function yt() {
1616
1616
  });
1617
1617
  }
1618
1618
  function X1(e) {
1619
- Nn(Ut.APP_PROVIDE, e);
1619
+ Wn(Ut.APP_PROVIDE, e);
1620
1620
  }
1621
1621
  function ja() {
1622
- return Vn(Ut.FORM_PROVIDE, {});
1622
+ return Nn(Ut.FORM_PROVIDE, {});
1623
1623
  }
1624
1624
  function Mc(e) {
1625
- Nn(Ut.FORM_PROVIDE, e);
1625
+ Wn(Ut.FORM_PROVIDE, e);
1626
1626
  }
1627
1627
  function Gr() {
1628
- return Vn(Ut.TABLE_PROVIDE, {});
1628
+ return Nn(Ut.TABLE_PROVIDE, {});
1629
1629
  }
1630
1630
  function zi(e) {
1631
- Nn(Ut.TABLE_PROVIDE, e);
1631
+ Wn(Ut.TABLE_PROVIDE, e);
1632
1632
  }
1633
1633
  function gh() {
1634
- return Vn(Ut.COMP_PROVIDE, {});
1634
+ return Nn(Ut.COMP_PROVIDE, {});
1635
1635
  }
1636
1636
  function jc(e) {
1637
- Nn(Ut.COMP_PROVIDE, e);
1637
+ Wn(Ut.COMP_PROVIDE, e);
1638
1638
  }
1639
1639
  function Oo() {
1640
- return Vn(Ut.MENU_PROVIDE, {});
1640
+ return Nn(Ut.MENU_PROVIDE, {});
1641
1641
  }
1642
1642
  function vh(e) {
1643
- Nn(Ut.MENU_PROVIDE, e);
1643
+ Wn(Ut.MENU_PROVIDE, e);
1644
1644
  }
1645
1645
  function yh() {
1646
- return Vn(Ut.H_MENU_PROVIDE, {});
1646
+ return Nn(Ut.H_MENU_PROVIDE, {});
1647
1647
  }
1648
1648
  function mh(e) {
1649
- Nn(Ut.H_MENU_PROVIDE, e);
1649
+ Wn(Ut.H_MENU_PROVIDE, e);
1650
1650
  }
1651
1651
  function bh() {
1652
- return Vn(Ut.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
1652
+ return Nn(Ut.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
1653
1653
  }
1654
1654
  function wh(e) {
1655
- Nn(Ut.AUTH_PAGE_PROVIDE, e);
1655
+ Wn(Ut.AUTH_PAGE_PROVIDE, e);
1656
1656
  }
1657
1657
  function Z1() {
1658
- return Vn(Ut.LAYER_PROVIDE, {});
1658
+ return Nn(Ut.LAYER_PROVIDE, {});
1659
1659
  }
1660
1660
  function _h(e) {
1661
- Nn(Ut.LAYER_PROVIDE, e);
1661
+ Wn(Ut.LAYER_PROVIDE, e);
1662
1662
  }
1663
1663
  function xh() {
1664
- return Vn(Ut.PAGE_PROVIDE, {});
1664
+ return Nn(Ut.PAGE_PROVIDE, {});
1665
1665
  }
1666
1666
  function Ch(e) {
1667
- Nn(Ut.PAGE_PROVIDE, e);
1667
+ Wn(Ut.PAGE_PROVIDE, e);
1668
1668
  }
1669
1669
  var Sh = /* @__PURE__ */ pe({
1670
1670
  name: "JDynamicLayer",
@@ -2028,7 +2028,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
2028
2028
  onBlur: c,
2029
2029
  onClear: s,
2030
2030
  onChange: d
2031
- }), Fn({ _: 2 }, [
2031
+ }), Vn({ _: 2 }, [
2032
2032
  e.prefixIcon ? {
2033
2033
  name: "prefix",
2034
2034
  fn: J(() => [X(h, { icon: e.prefixIcon }, null, 8, ["icon"])]),
@@ -2408,7 +2408,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
2408
2408
  const n = e, a = t, o = z(""), i = (r) => {
2409
2409
  a("update:modelValue", r), a("change", { value: r });
2410
2410
  };
2411
- return at(() => n.modelValue, (r) => {
2411
+ return nt(() => n.modelValue, (r) => {
2412
2412
  if ((Qt(r) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
2413
2413
  o.value = Jr(/* @__PURE__ */ new Date()), i(o.value);
2414
2414
  return;
@@ -2650,7 +2650,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
2650
2650
  "collapse-tags-tooltip": e.collapseTagsTooltip,
2651
2651
  placeholder: e.placeholder,
2652
2652
  onChange: d
2653
- }), Fn({
2653
+ }), Vn({
2654
2654
  default: J(() => [e.isGroup ? (S(!0), O(ke, { key: 0 }, Oe(s.value, (x) => (S(), F(g, {
2655
2655
  key: x.label,
2656
2656
  label: x.label
@@ -3073,7 +3073,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
3073
3073
  onChange: l,
3074
3074
  onBlur: c,
3075
3075
  onFocus: s
3076
- }, Fn({
3076
+ }, Vn({
3077
3077
  "decrease-icon": J(() => [e.decreaseIcon ? (S(), F(p, {
3078
3078
  key: 0,
3079
3079
  icon: e.decreaseIcon
@@ -3252,7 +3252,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
3252
3252
  onChange: p,
3253
3253
  onFocus: g,
3254
3254
  onBlur: b
3255
- }, Fn({
3255
+ }, Vn({
3256
3256
  default: J(({ item: y }) => [Ke(v.$slots, "default", { item: y }, () => [B("div", null, we(y[e.valueKey] || ""), 1)])]),
3257
3257
  _: 2
3258
3258
  }, [
@@ -5235,7 +5235,7 @@ var Ap = class {
5235
5235
  "j-input-rows",
5236
5236
  "j-table"
5237
5237
  ]), n = e, { formData: a, errorFields: o, span: i, labelWidth: r } = ja(), { getTableData: l, row: c, pRowData: s } = Gr(), { t: d } = yt(), f = z(0);
5238
- at(a, () => {
5238
+ nt(a, () => {
5239
5239
  f.value++;
5240
5240
  }, { deep: !0 });
5241
5241
  const u = H(() => (f.value, (n.getCompType ? n.getCompType({
@@ -5281,7 +5281,7 @@ var Ap = class {
5281
5281
  error: Y(d)(w.value),
5282
5282
  class: Ne(`${u.value}-form-item`)
5283
5283
  }, {
5284
- default: J(() => [X(_, ta(Mo(g.value)), null, 16)]),
5284
+ default: J(() => [X(_, na(Mo(g.value)), null, 16)]),
5285
5285
  _: 1
5286
5286
  }, 8, [
5287
5287
  "label",
@@ -5290,13 +5290,13 @@ var Ap = class {
5290
5290
  "required",
5291
5291
  "error",
5292
5292
  "class"
5293
- ])) : (S(), F(_, ta(We({ key: 1 }, g.value)), null, 16))]),
5293
+ ])) : (S(), F(_, na(We({ key: 1 }, g.value)), null, 16))]),
5294
5294
  _: 1
5295
5295
  }, 8, [
5296
5296
  "span",
5297
5297
  "style",
5298
5298
  "class"
5299
- ])) : p.value ? (S(), F(_, ta(We({ key: 1 }, g.value)), null, 16)) : ee("", !0);
5299
+ ])) : p.value ? (S(), F(_, na(We({ key: 1 }, g.value)), null, 16)) : ee("", !0);
5300
5300
  };
5301
5301
  }
5302
5302
  }), Hc = Mp, jp = /* @__PURE__ */ pe({
@@ -5396,7 +5396,7 @@ var Ap = class {
5396
5396
  M && k.value && (M = String(M || [])), y ? y[n.id] = M : s && (s[n.id] = M), a("update:modelValue", M);
5397
5397
  }
5398
5398
  }), T = z(0);
5399
- at([() => s, () => y], () => T.value++, { deep: !0 });
5399
+ nt([() => s, () => y], () => T.value++, { deep: !0 });
5400
5400
  const A = H(() => (T.value, xn({
5401
5401
  config: n.config,
5402
5402
  getCompConfig: n.getCompConfig,
@@ -5489,7 +5489,7 @@ var Ap = class {
5489
5489
  const M = g(n.id, G);
5490
5490
  W.value.push(M);
5491
5491
  };
5492
- return at(() => ve.value, () => {
5492
+ return nt(() => ve.value, () => {
5493
5493
  Q();
5494
5494
  }), Mt(() => {
5495
5495
  Q(), n.id && h && h(n.id), n.id && x && x(n.id);
@@ -5506,7 +5506,7 @@ var Ap = class {
5506
5506
  "onUpdate:modelValue": ue[0] || (ue[0] = (Ve) => R.value = Ve),
5507
5507
  "run-flow": Y(u),
5508
5508
  onChange: se
5509
- }), Fn({ _: 2 }, [Oe(q.value, (Ve, Ye) => ({
5509
+ }), Vn({ _: 2 }, [Oe(q.value, (Ve, Ye) => ({
5510
5510
  name: Ye,
5511
5511
  fn: J(() => [(S(!0), O(ke, null, Oe(Ve, (ne) => (S(), F(Ae, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))])
5512
5512
  }))]), 1040, ["modelValue", "run-flow"])) : V.value.display != !1 ? (S(), F(Ta(I.value), We({
@@ -5516,7 +5516,7 @@ var Ap = class {
5516
5516
  }, V.value, {
5517
5517
  "run-flow": Y(u) || Y(b),
5518
5518
  onChange: se
5519
- }), Fn({ _: 2 }, [Oe(q.value, (Ve, Ye) => ({
5519
+ }), Vn({ _: 2 }, [Oe(q.value, (Ve, Ye) => ({
5520
5520
  name: Ye,
5521
5521
  fn: J(() => [V.value.needRow === !0 || V.value.needRow?.[Ye] === !0 ? (S(), F(me, {
5522
5522
  key: 0,
@@ -6395,7 +6395,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6395
6395
  const D = Object.keys(p);
6396
6396
  return D.length === 0 ? !1 : D.every((N) => d.value?.[N] === 9);
6397
6397
  };
6398
- at(() => K(), (D) => {
6398
+ nt(() => K(), (D) => {
6399
6399
  D && v && v.renderWithRecreateCells();
6400
6400
  });
6401
6401
  const ce = (D) => {
@@ -6462,7 +6462,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6462
6462
  const Z = ze(N);
6463
6463
  if (Z) return Z;
6464
6464
  }
6465
- }, nt = (D) => {
6465
+ }, at = (D) => {
6466
6466
  const N = [];
6467
6467
  return D.forEach((Z) => {
6468
6468
  if (Z.frozen) {
@@ -6473,7 +6473,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6473
6473
  N.push(Z);
6474
6474
  return;
6475
6475
  }
6476
- const oe = nt(Z.columns), U = [], te = [], re = [];
6476
+ const oe = at(Z.columns), U = [], te = [], re = [];
6477
6477
  if (oe.forEach((ge) => {
6478
6478
  const fe = ze(ge);
6479
6479
  fe === "left" ? U.push(ge) : fe === "right" ? te.push(ge) : re.push(ge);
@@ -6507,7 +6507,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6507
6507
  C = 0, y = 0, _ = !1;
6508
6508
  const U = {};
6509
6509
  let te = ce(D);
6510
- te.length === 0 && (te = [Te()]), te = nt(te);
6510
+ te.length === 0 && (te = [Te()]), te = at(te);
6511
6511
  const re = [], ge = [], fe = [];
6512
6512
  te.forEach((He) => {
6513
6513
  const je = ze(He);
@@ -6586,7 +6586,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6586
6586
  theme: ni,
6587
6587
  ...D.option
6588
6588
  } }), N.plugins = [w]), N;
6589
- }, kn = (D) => !o.isTree || !o.parentKey || D.some((N) => Array.isArray(N?.children) && N.children.length > 0) ? D : Lf(D, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Jn = (D) => {
6589
+ }, kn = (D) => !o.isTree || !o.parentKey || D.some((N) => Array.isArray(N?.children) && N.children.length > 0) ? D : Lf(D, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Gn = (D) => {
6590
6590
  if (!m.value) return;
6591
6591
  g(), T = ie(), Op();
6592
6592
  const N = Sn(), Z = Fa();
@@ -6639,11 +6639,11 @@ var Ip = { class: "j-table-footer" }, zp = {
6639
6639
  v.setScrollTop(0), R = D.length;
6640
6640
  const N = kn(D);
6641
6641
  if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
6642
- ya(), Jn(N);
6642
+ ya(), Gn(N);
6643
6643
  });
6644
6644
  else {
6645
6645
  const Z = ie();
6646
- Z !== T ? (T = Z, o.subColumns && o.subColumns.length > 0 ? (ya(), Jn(N)) : vt(N)) : v.setRecords(N);
6646
+ Z !== T ? (T = Z, o.subColumns && o.subColumns.length > 0 ? (ya(), Gn(N)) : vt(N)) : v.setRecords(N);
6647
6647
  }
6648
6648
  if (o.selectStateKey && o.isMultiple) {
6649
6649
  const Z = D.filter((oe) => oe[o.selectStateKey]);
@@ -6657,7 +6657,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6657
6657
  }
6658
6658
  }, be = () => v ? v.records : [];
6659
6659
  Mt(() => {
6660
- Jn();
6660
+ Gn();
6661
6661
  }), jo(() => {
6662
6662
  ya(), G(), document.removeEventListener("wheel", ue);
6663
6663
  });
@@ -6773,10 +6773,10 @@ var Ip = { class: "j-table-footer" }, zp = {
6773
6773
  }, 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 = () => {
6774
6774
  const D = o.modelValue || [];
6775
6775
  return D.forEach((N) => {
6776
- N._i || (N._i = na());
6776
+ N._i || (N._i = Fn());
6777
6777
  }), D;
6778
6778
  };
6779
- at(() => o.modelValue, () => {
6779
+ nt(() => o.modelValue, () => {
6780
6780
  co(Fa());
6781
6781
  });
6782
6782
  const qo = H(() => {
@@ -6789,7 +6789,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6789
6789
  return D(o.columns);
6790
6790
  }), gd = () => {
6791
6791
  const D = {};
6792
- D._i = na(), qo.value.forEach((N) => {
6792
+ D._i = Fn(), qo.value.forEach((N) => {
6793
6793
  const Z = N.config?.valueRowKey || N.id || "";
6794
6794
  Z && (D[Z] = fn(N.config?.defaultValue));
6795
6795
  }), v && (v.addRecord(D), o.heightMode === "auto" && vt(), v.scrollToCell({
@@ -6825,9 +6825,9 @@ var Ip = { class: "j-table-footer" }, zp = {
6825
6825
  }).catch(() => {
6826
6826
  });
6827
6827
  };
6828
- return at(() => o.columns, (D, N) => {
6828
+ return nt(() => o.columns, (D, N) => {
6829
6829
  JSON.stringify(D) !== JSON.stringify(N) && vt();
6830
- }), at(() => [
6830
+ }), nt(() => [
6831
6831
  o.isTree,
6832
6832
  o.defaultExpandAll,
6833
6833
  o.isMultiple,
@@ -6846,7 +6846,7 @@ var Ip = { class: "j-table-footer" }, zp = {
6846
6846
  Xt.value
6847
6847
  ], () => {
6848
6848
  vt();
6849
- }), at(() => o.actions, () => {
6849
+ }), nt(() => o.actions, () => {
6850
6850
  vt();
6851
6851
  }, { deep: !0 }), zi({
6852
6852
  getTableData: be,
@@ -7045,7 +7045,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7045
7045
  _left: 0,
7046
7046
  _top: 0
7047
7047
  }), g = z(0), b = z(), x = z(48), m = z(0), v = z(0);
7048
- at(() => a.visible, (M) => {
7048
+ nt(() => a.visible, (M) => {
7049
7049
  g.value = 1, g.value = 0, r.value = M, M === !0 && a.zoomControls && zt(() => {
7050
7050
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = G));
7051
7051
  });
@@ -7340,7 +7340,7 @@ var Ip = { class: "j-table-footer" }, zp = {
7340
7340
  ],
7341
7341
  setup(e, { expose: t, emit: n }) {
7342
7342
  const a = e, o = n, { logoImg: i, t: r } = yt(), l = z(!1), c = z(!1), s = z(""), d = z(!1), f = z(!0), u = z(!1), h = z(!0), p = z(-1);
7343
- at(() => a.visible, (A) => {
7343
+ nt(() => a.visible, (A) => {
7344
7344
  l.value = A;
7345
7345
  }, { immediate: !0 });
7346
7346
  const g = H({
@@ -8878,7 +8878,7 @@ var Ip = { class: "j-table-footer" }, zp = {
8878
8878
  r.value?.setOption(p, a.notMerge);
8879
8879
  }, a.updateDelay) : r.value.setOption(p, a.notMerge));
8880
8880
  };
8881
- return at(() => a.option, (p) => {
8881
+ return nt(() => a.option, (p) => {
8882
8882
  d(p);
8883
8883
  }, { deep: !0 }), Mt(() => {
8884
8884
  s();
@@ -9377,7 +9377,7 @@ var Ip = { class: "j-table-footer" }, zp = {
9377
9377
  let y = w.value;
9378
9378
  return n.thousandSeparator && (y = Of(y)), n.isChinese && (y = Hf(y)), y;
9379
9379
  });
9380
- return at(w, (y) => {
9380
+ return nt(w, (y) => {
9381
9381
  x("update:modelValue", y), x("change", {
9382
9382
  value: y,
9383
9383
  data: C.value
@@ -9895,9 +9895,9 @@ var Ip = { class: "j-table-footer" }, zp = {
9895
9895
  const n = e, a = H(() => ({ ...n })), o = z(), i = z(null), r = H(() => n.options);
9896
9896
  Mt(() => {
9897
9897
  n.animation && l();
9898
- }), at(() => n.decimals, () => {
9898
+ }), nt(() => n.decimals, () => {
9899
9899
  i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
9900
- }, { deep: !0 }), at(() => n.endValue, (u) => {
9900
+ }, { deep: !0 }), nt(() => n.endValue, (u) => {
9901
9901
  i.value && i.value.update && i.value.update(u);
9902
9902
  });
9903
9903
  const l = () => {
@@ -10028,7 +10028,7 @@ var Ip = { class: "j-table-footer" }, zp = {
10028
10028
  n.open?.(i.value);
10029
10029
  }, 200);
10030
10030
  };
10031
- return at(() => n.modelValue, (d) => {
10031
+ return nt(() => n.modelValue, (d) => {
10032
10032
  i.value = d;
10033
10033
  }, { immediate: !0 }), (d, f) => {
10034
10034
  const u = $("j-button"), h = $("j-layer");
@@ -10112,7 +10112,7 @@ var Ip = { class: "j-table-footer" }, zp = {
10112
10112
  default: J(() => [X(p, {
10113
10113
  "right-move": !1,
10114
10114
  right: 560
10115
- }, Fn({
10115
+ }, Vn({
10116
10116
  default: J(() => [X(h, {
10117
10117
  modelValue: i.value,
10118
10118
  "onUpdate:modelValue": u[0] || (u[0] = (b) => i.value = b),
@@ -10753,11 +10753,11 @@ var Ip = { class: "j-table-footer" }, zp = {
10753
10753
  g = g.replace(/{ JCODE_SASSID }/g, "{JCODE_SASSID}").replace(/{ JCODE_SASSID_NOTT }/g, "{JCODE_SASSID_NOTT}").replace(/{ JCODE_SASSID_NOTA }/g, "{JCODE_SASSID_NOTA}").replace(/@ /g, "@"), o("update:modelValue", g), o("change", { value: g });
10754
10754
  };
10755
10755
  let p = null;
10756
- return at(() => a.modelValue, (g) => {
10756
+ return nt(() => a.modelValue, (g) => {
10757
10757
  g !== r.value && (r.value = g, l && f(), setTimeout(() => {
10758
10758
  l && a.isScrollToBottom && u();
10759
10759
  }));
10760
- }), at(() => a.mode, () => {
10760
+ }), nt(() => a.mode, () => {
10761
10761
  l && f();
10762
10762
  }), Mt(async () => {
10763
10763
  await zt(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
@@ -10919,7 +10919,7 @@ var Ip = { class: "j-table-footer" }, zp = {
10919
10919
  startTime: 0,
10920
10920
  toLeft: !1
10921
10921
  }), r = ka("wrapperRef"), l = ka("barRef"), c = ka("contentRef"), s = ka("actionRef");
10922
- at(() => i.isPassing, (x) => {
10922
+ nt(() => i.isPassing, (x) => {
10923
10923
  if (x) {
10924
10924
  const { endTime: m, startTime: v } = i;
10925
10925
  a("success", {
@@ -11033,7 +11033,7 @@ var Ip = { class: "j-table-footer" }, zp = {
11033
11033
  "max-height": "calc(100vh - 80px)",
11034
11034
  "border-radius": "8px"
11035
11035
  }
11036
- }, Y(u)), [B("div", ta(Mo(Y(h))), [(S(!0), O(ke, null, Oe(Y(f), (b) => (S(), F(Li, {
11036
+ }, Y(u)), [B("div", na(Mo(Y(h))), [(S(!0), O(ke, null, Oe(Y(f), (b) => (S(), F(Li, {
11037
11037
  key: b.data.value,
11038
11038
  "parent-actives": Y(r)?.pid?.split(".") || [],
11039
11039
  item: b.data,
@@ -11178,7 +11178,7 @@ var Ip = { class: "j-table-footer" }, zp = {
11178
11178
  return (d, f) => (S(), O("div", We({ class: ["j-menu", {
11179
11179
  collapsed: e.collapsed,
11180
11180
  "j-menu-dark": Y(i) === "dark"
11181
- }] }, Y(c)), [B("div", ta(Mo(Y(s))), [(S(!0), O(ke, null, Oe(Y(l), (u) => (S(), F(Li, {
11181
+ }] }, Y(c)), [B("div", na(Mo(Y(s))), [(S(!0), O(ke, null, Oe(Y(l), (u) => (S(), F(Li, {
11182
11182
  key: u.data.value,
11183
11183
  "parent-actives": Y(o)?.pid?.split(".") || [],
11184
11184
  item: u.data,
@@ -11276,7 +11276,7 @@ var Ip = { class: "j-table-footer" }, zp = {
11276
11276
  }), n.menuList)), c = H(() => o.value?.pid?.split(".") || []), s = (h) => {
11277
11277
  a("click", h);
11278
11278
  }, { list: d, containerProps: f, wrapperProps: u } = Ir(l, { itemHeight: 96 });
11279
- return (h, p) => (S(), O("div", We({ class: ["j-menu-vertical", { "j-menu-dark": Y(i) === "dark" }] }, Y(f)), [B("div", ta(Mo(Y(u))), [(S(!0), O(ke, null, Oe(Y(d), (g) => (S(), F(Li, {
11279
+ return (h, p) => (S(), O("div", We({ class: ["j-menu-vertical", { "j-menu-dark": Y(i) === "dark" }] }, Y(f)), [B("div", na(Mo(Y(u))), [(S(!0), O(ke, null, Oe(Y(d), (g) => (S(), F(Li, {
11280
11280
  key: g.data.value,
11281
11281
  "parent-actives": c.value,
11282
11282
  item: g.data,
@@ -11336,9 +11336,9 @@ var Ip = { class: "j-table-footer" }, zp = {
11336
11336
  }
11337
11337
  c.value = l(n.menus, g);
11338
11338
  };
11339
- at(() => n.menus, () => {
11339
+ nt(() => n.menus, () => {
11340
11340
  d();
11341
- }, { immediate: !0 }), at(() => n.mode, () => {
11341
+ }, { immediate: !0 }), nt(() => n.mode, () => {
11342
11342
  d();
11343
11343
  });
11344
11344
  const f = () => {
@@ -11350,9 +11350,9 @@ var Ip = { class: "j-table-footer" }, zp = {
11350
11350
  }
11351
11351
  }
11352
11352
  }, u = H(() => s.find((g) => g.value === i.value));
11353
- at(() => n.activeId, () => {
11353
+ nt(() => n.activeId, () => {
11354
11354
  i.value = n.activeId || "", f();
11355
- }), at(() => n.collapsed, () => {
11355
+ }), nt(() => n.collapsed, () => {
11356
11356
  if (n.collapsed) c.value = l(n.menus, []);
11357
11357
  else {
11358
11358
  const g = [];
@@ -12290,9 +12290,9 @@ var Ip = { class: "j-table-footer" }, zp = {
12290
12290
  }), qt.value && ut.observe(qt.value);
12291
12291
  }), jo(() => {
12292
12292
  ut?.disconnect();
12293
- }), at(() => ln.value, () => {
12293
+ }), nt(() => ln.value, () => {
12294
12294
  zt(Ht);
12295
- }, { deep: !0 }), at(Ie, () => {
12295
+ }, { deep: !0 }), nt(Ie, () => {
12296
12296
  zt(Ht);
12297
12297
  });
12298
12298
  const Nt = H(() => {
@@ -12390,7 +12390,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12390
12390
  p.value = [], g.value = !1, d.value = 1, Cn = void 0, await K();
12391
12391
  }, ze = async (be) => {
12392
12392
  p.value = [], g.value = !1, await K(be);
12393
- }, nt = async () => {
12393
+ }, at = async () => {
12394
12394
  await Te();
12395
12395
  }, Ct = (be) => {
12396
12396
  r("ready", be);
@@ -12429,7 +12429,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12429
12429
  checked: !0,
12430
12430
  isMultiple: !1
12431
12431
  });
12432
- }, Jn = () => p.value || [], ya = (be) => {
12432
+ }, Gn = () => p.value || [], ya = (be) => {
12433
12433
  p.value = be, l.value?.setSelection?.(be);
12434
12434
  }, $a = () => l.value;
12435
12435
  return Mt(async () => {
@@ -12437,7 +12437,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12437
12437
  }), t({
12438
12438
  refreshData: ze,
12439
12439
  resetData: Te,
12440
- getSelection: Jn,
12440
+ getSelection: Gn,
12441
12441
  setSelection: ya,
12442
12442
  clearSelection: () => {
12443
12443
  bt();
@@ -12604,7 +12604,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12604
12604
  default: J(() => [X(wt, {
12605
12605
  type: "text",
12606
12606
  icon: "mdi:refresh",
12607
- onClick: nt
12607
+ onClick: at
12608
12608
  })]),
12609
12609
  _: 1
12610
12610
  }, 8, ["content"])) : ee("", !0),
@@ -12940,7 +12940,7 @@ var Ip = { class: "j-table-footer" }, zp = {
12940
12940
  }, L = (I, j, E) => a.allowDrop ? a.allowDrop(I, j, E) : !(E == "inner" && !j.data.canInner);
12941
12941
  return Mt(async () => {
12942
12942
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
12943
- }), at(() => a.dataCode || a.dataType, () => {
12943
+ }), nt(() => a.dataCode || a.dataType, () => {
12944
12944
  b();
12945
12945
  }), t({
12946
12946
  refreshData: b,
@@ -13271,13 +13271,13 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13271
13271
  };
13272
13272
  ce.push(Te);
13273
13273
  const { children: ze } = ye;
13274
- Si(Te, ye, ["children", "config"]), Si(Te.config, ye.config || {}, []), a.config.size && Te.config.size === void 0 && (Te.config.size = a.config.size), console.log("runtimeItem.config", Te.config), R[ye.id] && console.warn("有重复的组件id:" + ye.id), R[ye.id] = Te, a.readonly === !0 && (Te.config.readonly = !0);
13275
- let nt = !1, Ct;
13276
- ie !== "" && E(ie) && (nt = !0, Te.config = ye.config || {}, Te.config.parentTableId = ie, Ct = R[ie]?.config?.table);
13274
+ Si(Te, ye, ["children", "config"]), Si(Te.config, ye.config || {}, []), a.config.size && Te.config.size === void 0 && (Te.config.size = a.config.size), R[ye.id] && console.warn("有重复的组件id:" + ye.id), R[ye.id] = Te, a.readonly === !0 && (Te.config.readonly = !0);
13275
+ let at = !1, Ct;
13276
+ ie !== "" && E(ie) && (at = !0, Te.config = ye.config || {}, Te.config.parentTableId = ie, Ct = R[ie]?.config?.table);
13277
13277
  const dt = Te.config || {};
13278
13278
  if (j(ye.id))
13279
- !ae && nt === !1 && (dt?.defaultValue === 0 ? y[ye.id] = dt?.defaultValue : y[ye.id] = dt?.defaultValue || void 0), dt.table && dt.field ? T[`${dt.table}_${dt.field}`.toLowerCase()] = ye.id : dt.field && (nt ? T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id : T[`${dt.field}`.toLowerCase()] = ye.id);
13280
- else if (nt && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id;
13279
+ !ae && at === !1 && (dt?.defaultValue === 0 ? y[ye.id] = dt?.defaultValue : y[ye.id] = dt?.defaultValue || void 0), dt.table && dt.field ? T[`${dt.table}_${dt.field}`.toLowerCase()] = ye.id : dt.field && (at ? T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id : T[`${dt.field}`.toLowerCase()] = ye.id);
13280
+ else if (at && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id;
13281
13281
  else if (E(ye.id))
13282
13282
  !ae && !dt.isSubTable && (y[ye.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = ye.id), dt.isSubTable || P.push(Te);
13283
13283
  else if (dt?.defaultValue) y[ye.id] = dt?.defaultValue;
@@ -13299,8 +13299,8 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13299
13299
  const Te = {};
13300
13300
  Object.keys(ye).forEach((ze) => {
13301
13301
  if (!ae || ae(ze, ye[ze], K)) {
13302
- const nt = Be(ze);
13303
- if (nt?.type === "j-table") Te[nt?.id || ""] = G(ze, ye[ze], ae);
13302
+ const at = Be(ze);
13303
+ if (at?.type === "j-table") Te[at?.id || ""] = G(ze, ye[ze], ae);
13304
13304
  else {
13305
13305
  let Ct = T[`${K}_${ze}`.toLowerCase()] || ze;
13306
13306
  Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct, Te[Ct] = ye[ze];
@@ -13343,10 +13343,10 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13343
13343
  const Te = ye.config?.table, ze = ye.config?.field;
13344
13344
  if (ce) ze ? ae[ze] = K[ie] : ae[ie] = K[ie];
13345
13345
  else if (E(ie)) {
13346
- const nt = [];
13346
+ const at = [];
13347
13347
  K[ie].forEach((Ct) => {
13348
- nt.push(ue(Ct, !0));
13349
- }), ae[Te || ie] = nt;
13348
+ at.push(ue(Ct, !0));
13349
+ }), ae[Te || ie] = at;
13350
13350
  } else Te && ze ? (ae[Te] = ae[Te] || {}, ae[Te][ze] = K[ie]) : ze && (ae[ze] = K[ie]);
13351
13351
  } else ce ? ie !== "_X_ROW_KEY" && ie !== "_isHover" && (ae[ie] = K[ie]) : A[ie] ? (ae[A[ie]] = ae[A[ie]] || {}, ae[A[ie]][ie.replace(`${A[ie]}_`, "")] = K[ie]) : ae[ie] = K[ie];
13352
13352
  }), ae;
@@ -13369,22 +13369,22 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13369
13369
  }, Ve = (K, ce, ae, ie) => {
13370
13370
  const ye = me(K, ce, ae, ie);
13371
13371
  if (ye.isNotRule !== !0 && ye.display !== !1) {
13372
- const Te = ye.rule || [], ze = Te.find((nt) => nt.type === "only");
13373
- return ze && (ze.validator = async (nt, Ct) => {
13372
+ const Te = ye.rule || [], ze = Te.find((at) => at.type === "only");
13373
+ return ze && (ze.validator = async (at, Ct) => {
13374
13374
  if (Ct && !await r({
13375
- table: nt.table,
13376
- key: nt.key,
13377
- keyName: nt.keyName,
13378
- field: nt.field,
13379
- keyValue: nt.getKeyValue ? nt.getKeyValue() : "",
13375
+ table: at.table,
13376
+ key: at.key,
13377
+ keyName: at.keyName,
13378
+ field: at.field,
13379
+ keyValue: at.getKeyValue ? at.getKeyValue() : "",
13380
13380
  value: Ct,
13381
- paramNames: nt.paramNames,
13382
- getParams: nt.getParams,
13383
- withProjectId: nt.withProjectId,
13384
- getValue: nt.getValue,
13381
+ paramNames: at.paramNames,
13382
+ getParams: at.getParams,
13383
+ withProjectId: at.withProjectId,
13384
+ getValue: at.getValue,
13385
13385
  formData: y
13386
13386
  }))
13387
- throw h(nt.message) || h("数据值重复");
13387
+ throw h(at.message) || h("数据值重复");
13388
13388
  }), {
13389
13389
  rules: Te,
13390
13390
  myGridtableId: E(ye._componentId) ? ye._componentId : ""
@@ -13680,8 +13680,8 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13680
13680
  emits: ["update:modelValue"],
13681
13681
  setup(e, { emit: t }) {
13682
13682
  const n = e, a = t, o = z("");
13683
- return at(() => n.modelValue, (i) => {
13684
- i ? o.value = i : (o.value = na(), a("update:modelValue", o.value));
13683
+ return nt(() => n.modelValue, (i) => {
13684
+ i ? o.value = i : (o.value = Fn(), a("update:modelValue", o.value));
13685
13685
  }, { immediate: !0 }), (i, r) => {
13686
13686
  const l = $("el-input");
13687
13687
  return S(), F(l, {
@@ -13850,17 +13850,17 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13850
13850
  "Z"
13851
13851
  ], g = z([]);
13852
13852
  a.modelValue && a.modelValue.length > 0 ? (g.value = a.modelValue || [], g.value.forEach((y) => {
13853
- y._i || (y._i = na());
13854
- })) : (g.value = [], o("update:modelValue", g.value)), at(() => a.modelValue, (y) => {
13853
+ y._i || (y._i = Fn());
13854
+ })) : (g.value = [], o("update:modelValue", g.value)), nt(() => a.modelValue, (y) => {
13855
13855
  g.value = a.modelValue || [], g.value = y || [], g.value.forEach((_) => {
13856
- _._i || (_._i = na());
13856
+ _._i || (_._i = Fn());
13857
13857
  });
13858
13858
  }, { deep: !0 });
13859
13859
  const x = (y) => {
13860
13860
  const _ = {};
13861
13861
  return !a.isCompact && y.config?.colWidth && (_.width = `${y.config.colWidth}px`), _;
13862
13862
  }, m = () => {
13863
- const y = { _i: na() };
13863
+ const y = { _i: Fn() };
13864
13864
  a.columns.forEach((_) => {
13865
13865
  const k = _.config?.valueRowKey || _.id || "";
13866
13866
  _.type === "j-layer-form" ? _.config?.defaultValue && Object.prototype.toString.call(_.config.defaultValue) === "[object Object]" && Object.assign(y, fn(_.config?.defaultValue)) : k && (y[k] = fn(_.config?.defaultValue));
@@ -14104,7 +14104,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14104
14104
  clearable: !e.readonly && e.clearable,
14105
14105
  onClick: u,
14106
14106
  onClear: h
14107
- }, Fn({ _: 2 }, [e.readonly ? void 0 : {
14107
+ }, Vn({ _: 2 }, [e.readonly ? void 0 : {
14108
14108
  name: "append",
14109
14109
  fn: J(() => [X(w, {
14110
14110
  icon: e.icon,
@@ -14236,7 +14236,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14236
14236
  onSubmit: u[0] || (u[0] = Ft(() => {
14237
14237
  }, ["prevent"]))
14238
14238
  }, {
14239
- default: J(() => [c.value ? (S(), F(p, ta(We({ key: 0 }, e.schema[0])), null, 16)) : (S(), F(g, {
14239
+ default: J(() => [c.value ? (S(), F(p, na(We({ key: 0 }, e.schema[0])), null, 16)) : (S(), F(g, {
14240
14240
  key: 1,
14241
14241
  gutter: o.value
14242
14242
  }, {
@@ -14370,7 +14370,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14370
14370
  loading: e.loading,
14371
14371
  disabled: e.disabled || e.readonly,
14372
14372
  onChange: i
14373
- }), Fn({ _: 2 }, [
14373
+ }), Vn({ _: 2 }, [
14374
14374
  r.$slots["active-action"] ? {
14375
14375
  name: "active-action",
14376
14376
  fn: J(() => [Ke(r.$slots, "active-action")]),
@@ -14607,13 +14607,13 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14607
14607
  selector: i.value,
14608
14608
  mode: "default"
14609
14609
  });
14610
- }), at(() => n.value, (f) => {
14610
+ }), nt(() => n.value, (f) => {
14611
14611
  const u = r.value;
14612
14612
  if (u) {
14613
14613
  const h = u.getHtml(), p = s(f);
14614
14614
  d(h) !== f && (c = !0, u.setHtml(p), c = !1);
14615
14615
  }
14616
- }), at(() => n.readonly, (f) => {
14616
+ }), nt(() => n.readonly, (f) => {
14617
14617
  const u = r.value;
14618
14618
  u && (f ? u.disable() : u.enable());
14619
14619
  }), jo(() => {
@@ -14861,7 +14861,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14861
14861
  "size",
14862
14862
  "clearable"
14863
14863
  ]),
14864
- B("div", ta(Mo(w.$attrs)), null, 16),
14864
+ B("div", na(Mo(w.$attrs)), null, 16),
14865
14865
  X(R, {
14866
14866
  ref_key: "layerRef",
14867
14867
  ref: i,
@@ -15082,11 +15082,11 @@ function Vc(e, t, n) {
15082
15082
  var T = i[k] = function(A) {
15083
15083
  o(k, A);
15084
15084
  };
15085
- R && (s[k] = R), T.$delegate = Zn.bind(y, f, _, T);
15085
+ R && (s[k] = R), T.$delegate = Qn.bind(y, f, _, T);
15086
15086
  }
15087
15087
  function h(y, _, k) {
15088
15088
  var R = r(k);
15089
- R && Zn.unbind(y, _, R.$delegate);
15089
+ R && Qn.unbind(y, _, R.$delegate);
15090
15090
  }
15091
15091
  function p(y) {
15092
15092
  de(c, function(_, k) {
@@ -15859,7 +15859,7 @@ function tl(e, t, n, a) {
15859
15859
  return Math.abs(o / i) <= a;
15860
15860
  }
15861
15861
  var W0 = 2;
15862
- function Qn(e, t) {
15862
+ function ea(e, t) {
15863
15863
  var n = Array.from(arguments).flat();
15864
15864
  for (const [a, o] of Object.entries({
15865
15865
  x: "v",
@@ -15882,7 +15882,7 @@ function Sr(e, t) {
15882
15882
  y: Math.round(e.y + (t.y - e.y) / 2)
15883
15883
  };
15884
15884
  }
15885
- var Y0 = /,?([a-z]),?/gi, ls = parseFloat, At = Math, Gn = At.PI, Mn = At.min, jn = At.max, ss = At.pow, ea = At.abs, J0 = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, G0 = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, cs = Array.isArray || function(e) {
15885
+ var Y0 = /,?([a-z]),?/gi, ls = parseFloat, At = Math, Kn = At.PI, Mn = At.min, jn = At.max, ss = At.pow, ta = At.abs, J0 = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, G0 = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, cs = Array.isArray || function(e) {
15886
15886
  return e instanceof Array;
15887
15887
  };
15888
15888
  function K0(e, t) {
@@ -15963,11 +15963,11 @@ function ds(e) {
15963
15963
  var t = lw(...e);
15964
15964
  return kr(t.x0, t.y0, t.x1 - t.x0, t.y1 - t.y0);
15965
15965
  }
15966
- function Kn(e, t, n) {
15966
+ function qn(e, t, n) {
15967
15967
  return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height;
15968
15968
  }
15969
15969
  function nw(e, t) {
15970
- return e = kr(e), t = kr(t), Kn(t, e.x, e.y) || Kn(t, e.x2, e.y) || Kn(t, e.x, e.y2) || Kn(t, e.x2, e.y2) || Kn(e, t.x, t.y) || Kn(e, t.x2, t.y) || Kn(e, t.x, t.y2) || Kn(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y);
15970
+ return e = kr(e), t = kr(t), qn(t, e.x, e.y) || qn(t, e.x2, e.y) || qn(t, e.x, e.y2) || qn(t, e.x2, e.y2) || qn(e, t.x, t.y) || qn(e, t.x2, t.y) || qn(e, t.x, t.y2) || qn(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y);
15971
15971
  }
15972
15972
  function fs(e, t, n, a, o) {
15973
15973
  return e * (e * (-3 * t + 9 * n - 9 * a + 3 * o) + 6 * t - 12 * n + 6 * a) - 3 * t + 3 * n;
@@ -16040,11 +16040,11 @@ function ow(e, t, n) {
16040
16040
  t: f / r
16041
16041
  };
16042
16042
  for (f = 0; f < i; f++) for (u = 0; u < r; u++) {
16043
- var p = l[f], g = l[f + 1], b = c[u], x = c[u + 1], m = ea(g.x - p.x) < 0.01 ? "y" : "x", v = ea(x.x - b.x) < 0.01 ? "y" : "x", w = aw(p.x, p.y, g.x, g.y, b.x, b.y, x.x, x.y), C;
16043
+ var p = l[f], g = l[f + 1], b = c[u], x = c[u + 1], m = ta(g.x - p.x) < 0.01 ? "y" : "x", v = ta(x.x - b.x) < 0.01 ? "y" : "x", w = aw(p.x, p.y, g.x, g.y, b.x, b.y, x.x, x.y), C;
16044
16044
  if (w) {
16045
16045
  if (C = w.x.toFixed(9) + "#" + w.y.toFixed(9), s[C]) continue;
16046
16046
  s[C] = !0;
16047
- var y = p.t + ea((w[m] - p[m]) / (g[m] - p[m])) * (g.t - p.t), _ = b.t + ea((w[v] - b[v]) / (x[v] - b[v])) * (x.t - b.t);
16047
+ var y = p.t + ta((w[m] - p[m]) / (g[m] - p[m])) * (g.t - p.t), _ = b.t + ta((w[v] - b[v]) / (x[v] - b[v])) * (x.t - b.t);
16048
16048
  y >= 0 && y <= 1 && _ >= 0 && _ <= 1 && (n ? d++ : d.push({
16049
16049
  x: w.x,
16050
16050
  y: w.y,
@@ -16180,7 +16180,7 @@ function gs(e, t, n, a, o, i) {
16180
16180
  ];
16181
16181
  }
16182
16182
  function nu(e, t, n, a, o, i, r, l, c, s) {
16183
- var d = Gn * 120 / 180, f = Gn / 180 * (+o || 0), u = [], h, p = X0(function(me, Ve, Ye) {
16183
+ var d = Kn * 120 / 180, f = Kn / 180 * (+o || 0), u = [], h, p = X0(function(me, Ve, Ye) {
16184
16184
  return {
16185
16185
  x: me * At.cos(Ye) - Ve * At.sin(Ye),
16186
16186
  y: me * At.sin(Ye) + Ve * At.cos(Ye)
@@ -16192,11 +16192,11 @@ function nu(e, t, n, a, o, i, r, l, c, s) {
16192
16192
  h = p(e, t, -f), e = h.x, t = h.y, h = p(l, c, -f), l = h.x, c = h.y;
16193
16193
  var g = (e - l) / 2, b = (t - c) / 2, x = g * g / (n * n) + b * b / (a * a);
16194
16194
  x > 1 && (x = At.sqrt(x), n = x * n, a = x * a);
16195
- var m = n * n, v = a * a, w = (i == r ? -1 : 1) * At.sqrt(ea((m * v - m * b * b - v * g * g) / (m * b * b + v * g * g))), C = w * n * b / a + (e + l) / 2, y = w * -a * g / n + (t + c) / 2, _ = At.asin(((t - y) / a).toFixed(9)), k = At.asin(((c - y) / a).toFixed(9));
16196
- _ = e < C ? Gn - _ : _, k = l < C ? Gn - k : k, _ < 0 && (_ = Gn * 2 + _), k < 0 && (k = Gn * 2 + k), r && _ > k && (_ = _ - Gn * 2), !r && k > _ && (k = k - Gn * 2);
16195
+ var m = n * n, v = a * a, w = (i == r ? -1 : 1) * At.sqrt(ta((m * v - m * b * b - v * g * g) / (m * b * b + v * g * g))), C = w * n * b / a + (e + l) / 2, y = w * -a * g / n + (t + c) / 2, _ = At.asin(((t - y) / a).toFixed(9)), k = At.asin(((c - y) / a).toFixed(9));
16196
+ _ = e < C ? Kn - _ : _, k = l < C ? Kn - k : k, _ < 0 && (_ = Kn * 2 + _), k < 0 && (k = Kn * 2 + k), r && _ > k && (_ = _ - Kn * 2), !r && k > _ && (k = k - Kn * 2);
16197
16197
  }
16198
16198
  var R = k - _;
16199
- if (ea(R) > d) {
16199
+ if (ta(R) > d) {
16200
16200
  var T = k, A = l, P = c;
16201
16201
  k = _ + d * (r && k > _ ? 1 : -1), l = C + n * At.cos(k), c = y + a * At.sin(k), u = nu(l, c, n, a, o, 0, r, A, P, [
16202
16202
  k,
@@ -16222,8 +16222,8 @@ function nu(e, t, n, a, o, i, r, l, c, s) {
16222
16222
  }
16223
16223
  function lw(e, t, n, a, o, i, r, l) {
16224
16224
  for (var c = [], s = [[], []], d, f, u, h, p, g, b, x, m = 0; m < 2; ++m) {
16225
- if (m == 0 ? (f = 6 * e - 12 * n + 6 * o, d = -3 * e + 9 * n - 9 * o + 3 * r, u = 3 * n - 3 * e) : (f = 6 * t - 12 * a + 6 * i, d = -3 * t + 9 * a - 9 * i + 3 * l, u = 3 * a - 3 * t), ea(d) < 1e-12) {
16226
- if (ea(f) < 1e-12) continue;
16225
+ if (m == 0 ? (f = 6 * e - 12 * n + 6 * o, d = -3 * e + 9 * n - 9 * o + 3 * r, u = 3 * n - 3 * e) : (f = 6 * t - 12 * a + 6 * i, d = -3 * t + 9 * a - 9 * i + 3 * l, u = 3 * a - 3 * t), ta(d) < 1e-12) {
16226
+ if (ta(f) < 1e-12) continue;
16227
16227
  h = -u / f, 0 < h && h < 1 && c.push(h);
16228
16228
  continue;
16229
16229
  }
@@ -16811,16 +16811,16 @@ Gt.prototype.on = function(e, t, n, a, o, i) {
16811
16811
  r.on(c, n, o ? Sw(a, i) : a, i);
16812
16812
  });
16813
16813
  };
16814
- Gt.prototype.canExecute = Wn("canExecute");
16815
- Gt.prototype.preExecute = Wn("preExecute");
16816
- Gt.prototype.preExecuted = Wn("preExecuted");
16817
- Gt.prototype.execute = Wn("execute");
16818
- Gt.prototype.executed = Wn("executed");
16819
- Gt.prototype.postExecute = Wn("postExecute");
16820
- Gt.prototype.postExecuted = Wn("postExecuted");
16821
- Gt.prototype.revert = Wn("revert");
16822
- Gt.prototype.reverted = Wn("reverted");
16823
- function Wn(e) {
16814
+ Gt.prototype.canExecute = Un("canExecute");
16815
+ Gt.prototype.preExecute = Un("preExecute");
16816
+ Gt.prototype.preExecuted = Un("preExecuted");
16817
+ Gt.prototype.execute = Un("execute");
16818
+ Gt.prototype.executed = Un("executed");
16819
+ Gt.prototype.postExecute = Un("postExecute");
16820
+ Gt.prototype.postExecuted = Un("postExecuted");
16821
+ Gt.prototype.revert = Un("revert");
16822
+ Gt.prototype.reverted = Un("reverted");
16823
+ function Un(e) {
16824
16824
  return function(n, a, o, i, r) {
16825
16825
  (Bn(n) || It(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
16826
16826
  };
@@ -17511,11 +17511,11 @@ No.prototype.revert = function(e) {
17511
17511
  function Ss(e) {
17512
17512
  return e.original || e;
17513
17513
  }
17514
- function Un(e, t) {
17514
+ function Yn(e, t) {
17515
17515
  this._modeling = e, this._rules = t;
17516
17516
  }
17517
- Un.$inject = ["modeling", "rules"];
17518
- Un.prototype.preExecute = function(e) {
17517
+ Yn.$inject = ["modeling", "rules"];
17518
+ Yn.prototype.preExecute = function(e) {
17519
17519
  var t = this, n = this._modeling, a = this._rules, o = e.oldShape, i = e.newData, r = e.hints || {}, l;
17520
17520
  function c(p, g, b) {
17521
17521
  return a.allowed("connection.reconnect", {
@@ -17548,21 +17548,21 @@ Un.prototype.preExecute = function(e) {
17548
17548
  c(l, g, p) && t.reconnectStart(p, l, dl(p, l, d), r);
17549
17549
  });
17550
17550
  };
17551
- Un.prototype.postExecute = function(e) {
17551
+ Yn.prototype.postExecute = function(e) {
17552
17552
  var t = e.oldShape;
17553
17553
  this._modeling.removeShape(t);
17554
17554
  };
17555
- Un.prototype.execute = function(e) {
17555
+ Yn.prototype.execute = function(e) {
17556
17556
  };
17557
- Un.prototype.revert = function(e) {
17557
+ Yn.prototype.revert = function(e) {
17558
17558
  };
17559
- Un.prototype.createShape = function(e, t, n, a) {
17559
+ Yn.prototype.createShape = function(e, t, n, a) {
17560
17560
  return this._modeling.createShape(e, t, n, a);
17561
17561
  };
17562
- Un.prototype.reconnectStart = function(e, t, n, a) {
17562
+ Yn.prototype.reconnectStart = function(e, t, n, a) {
17563
17563
  this._modeling.reconnectStart(e, t, n, a);
17564
17564
  };
17565
- Un.prototype.reconnectEnd = function(e, t, n, a) {
17565
+ Yn.prototype.reconnectEnd = function(e, t, n, a) {
17566
17566
  this._modeling.reconnectEnd(e, t, n, a);
17567
17567
  };
17568
17568
  function Wo(e) {
@@ -17690,9 +17690,9 @@ ua.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, r) {
17690
17690
  var l = this, c = o.concat(i);
17691
17691
  de(e, function(s) {
17692
17692
  var d = s.source, f = s.target, u = Nw(s), h = xu(n), p = {};
17693
- qn(c, d) && qn(c, f) ? (u = Ho(u, function(g) {
17693
+ Xn(c, d) && Xn(c, f) ? (u = Ho(u, function(g) {
17694
17694
  return Rs(g, a, n) && (g[h] = g[h] + t[h]), g.original && Rs(g.original, a, n) && (g.original[h] = g.original[h] + t[h]), g;
17695
- }), l._modeling.updateWaypoints(s, u, { labelBehavior: !1 })) : (qn(c, d) || qn(c, f)) && (qn(o, d) ? p.connectionStart = hl(s, d, t) : qn(o, f) ? p.connectionEnd = pl(s, f, t) : qn(i, d) ? p.connectionStart = dl(s, d, r[d.id]) : qn(i, f) && (p.connectionEnd = fl(s, f, r[f.id])), l._modeling.layoutConnection(s, p));
17695
+ }), l._modeling.updateWaypoints(s, u, { labelBehavior: !1 })) : (Xn(c, d) || Xn(c, f)) && (Xn(o, d) ? p.connectionStart = hl(s, d, t) : Xn(o, f) ? p.connectionEnd = pl(s, f, t) : Xn(i, d) ? p.connectionStart = dl(s, d, r[d.id]) : Xn(i, f) && (p.connectionEnd = fl(s, f, r[f.id])), l._modeling.layoutConnection(s, p));
17696
17696
  });
17697
17697
  };
17698
17698
  function ks(e) {
@@ -17720,7 +17720,7 @@ function Rs(e, t, n) {
17720
17720
  if (/e|s/.test(n)) return e[a] > t;
17721
17721
  if (/n|w/.test(n)) return e[a] < t;
17722
17722
  }
17723
- function qn(e, t) {
17723
+ function Xn(e, t) {
17724
17724
  return e.indexOf(t) !== -1;
17725
17725
  }
17726
17726
  function Ww(e) {
@@ -17813,7 +17813,7 @@ ot.prototype.getHandlers = function() {
17813
17813
  "shape.delete": Fo,
17814
17814
  "shape.move": Oa,
17815
17815
  "shape.resize": Wo,
17816
- "shape.replace": Un,
17816
+ "shape.replace": Yn,
17817
17817
  "shape.toggleCollapse": Ki,
17818
17818
  spaceTool: ua,
17819
17819
  "label.create": Do,
@@ -18355,7 +18355,7 @@ function _l(e, t, n, a) {
18355
18355
  });
18356
18356
  }
18357
18357
  function i(d, f, u) {
18358
- switch (Qn(f, d)) {
18358
+ switch (ea(f, d)) {
18359
18359
  case "v":
18360
18360
  return {
18361
18361
  x: u.x,
@@ -18379,7 +18379,7 @@ function _l(e, t, n, a) {
18379
18379
  }
18380
18380
  if (o(a)) return null;
18381
18381
  var l = a[0], c = a.slice(), s;
18382
- return c[0] = n, c[1] = i(c[1], l, n), s = r(c, e, t), s !== c && (c = _l(e, t, n, s)), c && Qn(c) ? null : c;
18382
+ return c[0] = n, c[1] = i(c[1], l, n), s = r(c, e, t), s !== c && (c = _l(e, t, n, s)), c && ea(c) ? null : c;
18383
18383
  }
18384
18384
  function f_(e, t) {
18385
18385
  if (Bu(t)) return t;
@@ -18695,7 +18695,7 @@ function __(e) {
18695
18695
  ["z"]
18696
18696
  ]);
18697
18697
  }
18698
- var Ar = 10, lr = 0.95, Xn = (e, t) => e.type === t;
18698
+ var Ar = 10, lr = 0.95, Zn = (e, t) => e.type === t;
18699
18699
  function za(e, t, n, a, o, i, r) {
18700
18700
  Ia.call(this, e, r);
18701
18701
  const l = "var(--j-color-bg-container)", c = "var(--j-color-text)", s = {};
@@ -19173,7 +19173,7 @@ za.prototype.drawConnection = function(e, t) {
19173
19173
  return a(e, t);
19174
19174
  };
19175
19175
  za.prototype.getShapePath = function(e) {
19176
- return Xn(e, "startEvent") || Xn(e, "endEvent") ? m_(e) : Xn(e, "userTask") || Xn(e, "scriptTask") || Xn(e, "subprocess") ? b_(e, Ar) : Xn(e, "gatewayAnd") || Xn(e, "gatewayXor") || Xn(e, "gatewayInclusive") ? w_(e) : __(e);
19176
+ return Zn(e, "startEvent") || Zn(e, "endEvent") ? m_(e) : Zn(e, "userTask") || Zn(e, "scriptTask") || Zn(e, "subprocess") ? b_(e, Ar) : Zn(e, "gatewayAnd") || Zn(e, "gatewayXor") || Zn(e, "gatewayInclusive") ? w_(e) : __(e);
19177
19177
  };
19178
19178
  var x_ = 0, C_ = {
19179
19179
  width: 150,
@@ -19937,7 +19937,7 @@ function ax(e, t, n, a) {
19937
19937
  }), ht(f).add("djs-hit"), qe(o, f), V0(o, a === "v" ? 90 : 0, 0, 0), o;
19938
19938
  }
19939
19939
  function Yu(e, t, n) {
19940
- var a = Ge("g"), o = Sr(t, n), i = Qn(t, n);
19940
+ var a = Ge("g"), o = Sr(t, n), i = ea(t, n);
19941
19941
  return qe(e, a), ax(a, t, n, i), ht(a).add(Uu), ht(a).add(i === "h" ? "horizontal" : "vertical"), Hn(a, o.x, o.y), a;
19942
19942
  }
19943
19943
  function Pr(e) {
@@ -19963,14 +19963,14 @@ function Cl(e) {
19963
19963
  function Ju(e, t, n, a, o) {
19964
19964
  function i(v, w, C) {
19965
19965
  var y = v.index, _ = v.point, k, R, T, A, P, L;
19966
- return y <= 0 || v.bendpoint ? !1 : (k = w[y - 1], R = w[y], T = Sr(k, R), A = Qn(k, R), P = Math.abs(_.x - T.x), L = Math.abs(_.y - T.y), A && P <= C && L <= C);
19966
+ return y <= 0 || v.bendpoint ? !1 : (k = w[y - 1], R = w[y], T = Sr(k, R), A = ea(k, R), P = Math.abs(_.x - T.x), L = Math.abs(_.y - T.y), A && P <= C && L <= C);
19967
19967
  }
19968
19968
  function r(v, w) {
19969
19969
  var C = v.waypoints, y, _, k, R;
19970
19970
  return w.index <= 0 || w.bendpoint || (y = {
19971
19971
  start: C[w.index - 1],
19972
19972
  end: C[w.index]
19973
- }, _ = Qn(y.start, y.end), !_) ? null : (_ === "h" ? k = y.end.x - y.start.x : k = y.end.y - y.start.y, R = Pr(k) / 2, R);
19973
+ }, _ = ea(y.start, y.end), !_) ? null : (_ === "h" ? k = y.end.x - y.start.x : k = y.end.y - y.start.y, R = Pr(k) / 2, R);
19974
19974
  }
19975
19975
  function l(v, w) {
19976
19976
  var C = w.waypoints, y = Mr(t, C, v), _;
@@ -19997,7 +19997,7 @@ function Ju(e, t, n, a, o) {
19997
19997
  }
19998
19998
  function u(v, w) {
19999
19999
  for (var C = w.waypoints, y, _, k, R = 1; R < C.length; R++)
20000
- y = C[R - 1], _ = C[R], Qn(y, _) && (k = Yu(v, y, _), $e(k, { "data-segment-idx": R }), c(k, "mousemove", w));
20000
+ y = C[R - 1], _ = C[R], ea(y, _) && (k = Yu(v, y, _), $e(k, { "data-segment-idx": R }), c(k, "mousemove", w));
20001
20001
  }
20002
20002
  function h(v) {
20003
20003
  de(gr("." + Wu, v), function(w) {
@@ -20022,7 +20022,7 @@ function Ju(e, t, n, a, o) {
20022
20022
  C && Hn(C, y.x, y.y);
20023
20023
  }
20024
20024
  function m(v, w, C) {
20025
- var y = d(w.index, v), _ = C[w.index - 1], k = C[w.index], R = w.point, T = Sr(_, k), A = Qn(_, k), P, L;
20025
+ var y = d(w.index, v), _ = C[w.index - 1], k = C[w.index], R = w.point, T = Sr(_, k), A = ea(_, k), P, L;
20026
20026
  y && (P = lx(y), L = {
20027
20027
  x: R.x - T.x,
20028
20028
  y: R.y - T.y
@@ -20218,7 +20218,7 @@ function Js(e, t, n) {
20218
20218
  function qu(e, t, n, a, o, i) {
20219
20219
  var r = e.get("connectionDocking", !1);
20220
20220
  this.start = function(f, u, h) {
20221
- var p, g = n.getGraphics(u), b = h - 1, x = h, m = u.waypoints, v = m[b], w = m[x], C = Mr(n, m, f), y = Qn(v, w), _, k;
20221
+ var p, g = n.getGraphics(u), b = h - 1, x = h, m = u.waypoints, v = m[b], w = m[x], C = Mr(n, m, f), y = ea(v, w), _, k;
20222
20222
  y && (_ = y === "v" ? "x" : "y", b === 0 && (v = Js(v, u.source, _)), x === m.length - 1 && (w = Js(w, u.target, _)), C ? k = C.point : k = {
20223
20223
  x: (v.x + w.x) / 2,
20224
20224
  y: (v.y + w.y) / 2
@@ -20436,16 +20436,16 @@ var vx = {
20436
20436
  connectionSegmentMove: ["type", qu],
20437
20437
  bendpointSnapping: ["type", Zu]
20438
20438
  }, yx = "djs-dragger";
20439
- function Yn(e, t, n, a) {
20439
+ function Jn(e, t, n, a) {
20440
20440
  this._canvas = t, this._graphicsFactory = n, this._elementFactory = a, this._connectionDocking = e.get("connectionDocking", !1), this._layouter = e.get("layouter", !1);
20441
20441
  }
20442
- Yn.$inject = [
20442
+ Jn.$inject = [
20443
20443
  "injector",
20444
20444
  "canvas",
20445
20445
  "graphicsFactory",
20446
20446
  "elementFactory"
20447
20447
  ];
20448
- Yn.prototype.drawPreview = function(e, t, n) {
20448
+ Jn.prototype.drawPreview = function(e, t, n) {
20449
20449
  n = n || {};
20450
20450
  var a = e.connectionPreviewGfx, o = e.getConnection, i = n.source, r = n.target, l = n.waypoints, c = n.connectionStart, s = n.connectionEnd, d = n.noLayout, f = n.noCropping, u = n.noNoop, h, p = this;
20451
20451
  if (a || (a = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), Vr(a), o || (o = e.getConnection = mx(function(g, b, x) {
@@ -20462,26 +20462,26 @@ Yn.prototype.drawPreview = function(e, t, n) {
20462
20462
  waypoints: n.waypoints || h.waypoints
20463
20463
  })), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? Rt(i) : c, r ? Rt(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)" });
20464
20464
  };
20465
- Yn.prototype.drawNoopPreview = function(e, t) {
20465
+ Jn.prototype.drawNoopPreview = function(e, t) {
20466
20466
  var n = t.source, a = t.target, o = t.connectionStart || Rt(n), i = t.connectionEnd || Rt(a), r = this.cropWaypoints(o, i, n, a);
20467
20467
  qe(e, this.createNoopConnection(r[0], r[1]));
20468
20468
  };
20469
- Yn.prototype.cropWaypoints = function(e, t, n, a) {
20469
+ Jn.prototype.cropWaypoints = function(e, t, n, a) {
20470
20470
  var o = this._graphicsFactory, i = n && o.getShapePath(n), r = a && o.getShapePath(a), l = o.getConnectionPath({ waypoints: [e, t] });
20471
20471
  return e = n && Rr(i, l, !0) || e, t = a && Rr(r, l, !1) || t, [e, t];
20472
20472
  };
20473
- Yn.prototype.cleanUp = function(e) {
20473
+ Jn.prototype.cleanUp = function(e) {
20474
20474
  e && e.connectionPreviewGfx && cn(e.connectionPreviewGfx);
20475
20475
  };
20476
- Yn.prototype.getConnection = function(e) {
20476
+ Jn.prototype.getConnection = function(e) {
20477
20477
  var t = bx(e);
20478
20478
  return this._elementFactory.createConnection(t);
20479
20479
  };
20480
- Yn.prototype.createConnectionPreviewGfx = function() {
20480
+ Jn.prototype.createConnectionPreviewGfx = function() {
20481
20481
  var e = Ge("g");
20482
20482
  return $e(e, { pointerEvents: "none" }), ht(e).add(yx), qe(this._canvas.getActiveLayer(), e), e;
20483
20483
  };
20484
- Yn.prototype.createNoopConnection = function(e, t) {
20484
+ Jn.prototype.createNoopConnection = function(e, t) {
20485
20485
  return Kr([e, t], {
20486
20486
  stroke: "#333",
20487
20487
  strokeDasharray: [1],
@@ -20501,7 +20501,7 @@ function bx(e) {
20501
20501
  }
20502
20502
  var wx = {
20503
20503
  __init__: ["connectionPreview"],
20504
- connectionPreview: ["type", Yn]
20504
+ connectionPreview: ["type", Jn]
20505
20505
  }, _x = new Di("ov"), xx = 500;
20506
20506
  function Vt(e, t, n, a) {
20507
20507
  this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = _x, this._overlayDefaults = Fe({
@@ -20842,13 +20842,13 @@ Pt.prototype._updateAndOpen = function(e) {
20842
20842
  };
20843
20843
  Pt.prototype._createHtml = function(e) {
20844
20844
  var t = this, n = rn('<div class="djs-context-pad"></div>');
20845
- return Zn.bind(n, hi, "click", function(a) {
20845
+ return Qn.bind(n, hi, "click", function(a) {
20846
20846
  t.trigger("click", a);
20847
- }), Zn.bind(n, hi, "dragstart", function(a) {
20847
+ }), Qn.bind(n, hi, "dragstart", function(a) {
20848
20848
  t.trigger("dragstart", a);
20849
- }), Zn.bind(n, hi, "mouseover", function(a) {
20849
+ }), Qn.bind(n, hi, "mouseover", function(a) {
20850
20850
  t.trigger("mouseover", a);
20851
- }), Zn.bind(n, hi, "mouseout", function(a) {
20851
+ }), Qn.bind(n, hi, "mouseout", function(a) {
20852
20852
  t.trigger("mouseout", a);
20853
20853
  }), rt.bind(n, "mousedown", function(a) {
20854
20854
  a.stopPropagation();
@@ -21593,13 +21593,13 @@ jt.prototype._rebuild = function() {
21593
21593
  };
21594
21594
  jt.prototype._init = function() {
21595
21595
  var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = rn(jt.HTML_MARKUP);
21596
- n.appendChild(a), nn(n).add(Br + eC), Zn.bind(a, Qx, "click", function(o) {
21596
+ n.appendChild(a), nn(n).add(Br + eC), Qn.bind(a, Qx, "click", function(o) {
21597
21597
  var i = o.delegateTarget;
21598
21598
  if (cf(i, rd)) return e.toggle();
21599
21599
  e.trigger("click", o);
21600
21600
  }), rt.bind(a, "mousedown", function(o) {
21601
21601
  o.stopPropagation();
21602
- }), Zn.bind(a, ld, "dragstart", function(o) {
21602
+ }), Qn.bind(a, ld, "dragstart", function(o) {
21603
21603
  e.trigger("dragstart", o);
21604
21604
  }), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
21605
21605
  };
@@ -22914,7 +22914,7 @@ var ZC = {
22914
22914
  const a = e, o = n, { t: i } = yt(), { formData: r } = ja(), l = H(() => a.editConfig.isAddBtn !== !1), c = H(() => a.editConfig.addBtnText || "添加"), s = H(() => a.editConfig.buttonsAlign || "left"), d = H(() => a.editConfig.isRemoveBtn !== !1), f = H(() => a.editConfig.readonly), u = H(() => a.editConfig.isNullValue !== !1), h = z([]), p = (y) => {
22915
22915
  o("rowChange", y);
22916
22916
  }, g = () => {
22917
- const y = { _i: na() };
22917
+ const y = { _i: Fn() };
22918
22918
  a.columns.forEach((_) => {
22919
22919
  const k = _.config?.valueRowKey || _.id || "";
22920
22920
  k && (y[k] = fn(_.config?.defaultValue));
@@ -22963,8 +22963,12 @@ var ZC = {
22963
22963
  return y;
22964
22964
  };
22965
22965
  a.modelValue && a.modelValue.length > 0 ? (h.value = a.modelValue || [], h.value.forEach((y) => {
22966
- y._i || (y._i = na());
22967
- })) : (h.value = [], o("update:modelValue", h.value));
22966
+ y._i || (y._i = Fn());
22967
+ })) : (h.value = [], o("update:modelValue", h.value)), nt(() => a.modelValue, (y) => {
22968
+ h.value = a.modelValue || [], h.value = y || [], h.value.forEach((_) => {
22969
+ _._i || (_._i = Fn());
22970
+ });
22971
+ }, { deep: !0 });
22968
22972
  const v = (y, _) => xn({
22969
22973
  config: y.config || {},
22970
22974
  getCompConfig: y.getCompConfig,
@@ -23169,7 +23173,7 @@ export {
23169
23173
  t1 as JWorkflowViewer,
23170
23174
  xt as assign,
23171
23175
  Wr as buildShortUUID,
23172
- na as buildUUID,
23176
+ Fn as buildUUID,
23173
23177
  Co as clearJson,
23174
23178
  Si as clone,
23175
23179
  fn as deepClone,
@@ -23217,7 +23221,7 @@ export {
23217
23221
  Mc as useFormProvide,
23218
23222
  yh as useHMenuInject,
23219
23223
  mh as useHMenuProvide,
23220
- Vn as useInject,
23224
+ Nn as useInject,
23221
23225
  Xa as useLayer,
23222
23226
  Z1 as useLayerInject,
23223
23227
  _h as useLayerProvide,
@@ -23225,7 +23229,7 @@ export {
23225
23229
  vh as useMenuProvide,
23226
23230
  xh as usePageInject,
23227
23231
  Ch as usePageProvide,
23228
- Nn as useProvide,
23232
+ Wn as useProvide,
23229
23233
  hh as useSortable,
23230
23234
  Gr as useTableInject,
23231
23235
  zi as useTableProvide