@a2simcode/ui 0.0.222 → 0.0.224

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 Ae, computed as H, createBlock as N, createCommentVNode as te, createElementBlock as z, createElementVNode as B, createSlots as Wn, createTextVNode as Vn, createVNode as Z, defineComponent as me, getCurrentInstance as vc, guardReactiveProps as Ho, h as Si, inject as Md, mergeModels as jo, mergeProps as Ne, nextTick as Lt, normalizeClass as Ve, normalizeProps as Ta, normalizeStyle as ce, onBeforeUnmount as Oo, onMounted as Pt, onUnmounted as Io, openBlock as k, provide as jd, reactive as oa, ref as L, render as ki, renderList as Ie, renderSlot as Xe, resolveComponent as F, resolveDirective as Lo, resolveDynamicComponent as Ma, shallowRef as zo, toDisplayString as Se, unref as J, useModel as Po, useSlots as Pd, useTemplateRef as Ra, vShow as yr, watch as at, watchEffect as yc, withCtx as q, withDirectives as ia, withKeys as mr, withModifiers as Xt } from "vue";
1
+ import { Fragment as Ae, computed as H, createBlock as N, createCommentVNode as te, createElementBlock as z, createElementVNode as B, createSlots as Wn, createTextVNode as Vn, createVNode as Z, defineComponent as me, getCurrentInstance as vc, guardReactiveProps as Ho, h as Si, inject as Md, mergeModels as jo, mergeProps as Ne, nextTick as Lt, normalizeClass as Ve, normalizeProps as Ta, normalizeStyle as ce, onBeforeUnmount as Oo, onMounted as Pt, onUnmounted as Io, openBlock as k, provide as jd, reactive as oa, ref as L, render as ki, renderList as Ie, renderSlot as Xe, resolveComponent as F, resolveDirective as Lo, resolveDynamicComponent as Ma, shallowRef as zo, toDisplayString as Se, unref as J, useModel as Po, useSlots as Pd, useTemplateRef as Ra, vShow as yr, watch as ot, watchEffect as yc, withCtx as q, withDirectives as ia, withKeys as mr, withModifiers as Xt } from "vue";
2
2
  import { Icon as Il, getIcon as ka } from "@iconify/vue";
3
3
  import Xa from "dayjs";
4
4
  import Bd from "sortablejs";
@@ -28,9 +28,9 @@ import { useVirtualList as $r } from "@vueuse/core";
28
28
  import pf from "async-validator";
29
29
  import { createEditor as gf, createToolbar as vf } from "@wangeditor/editor";
30
30
  import mc from "diagram-js";
31
- import { assignStyle as Di, attr as Rn, classes as rn, clear as bc, closest as Fr, delegate as ta, domify as cn, event as lt, matches as yf, query as Zt, queryAll as br, remove as wr } from "min-dom";
32
- import { assign as Fe, bind as Vr, debounce as mf, every as Nr, filter as hn, find as Pn, flatten as bf, forEach as ye, groupBy as Wr, has as wc, isArray as ct, isDefined as kn, isFunction as Bn, isNil as zl, isNumber as It, isObject as pn, isString as _r, isUndefined as wf, map as Do, matchPattern as Ri, omit as _f, pick as Ei, reduce as xr, size as xf, some as Cf, sortBy as Bo, uniqueBy as Sf, values as Ur, without as kf } from "min-dash";
33
- import { append as et, attr as $e, classes as ht, clear as Yr, clone as _c, create as Ke, createTransform as Ro, remove as fn, transform as Jr } from "tiny-svg";
31
+ import { assignStyle as Di, attr as Rn, classes as rn, clear as bc, closest as Fr, delegate as ta, domify as cn, event as st, matches as yf, query as Zt, queryAll as br, remove as wr } from "min-dom";
32
+ import { assign as Fe, bind as Vr, debounce as mf, every as Nr, filter as hn, find as Pn, flatten as bf, forEach as ye, groupBy as Wr, has as wc, isArray as ut, isDefined as kn, isFunction as Bn, isNil as zl, isNumber as It, isObject as pn, isString as _r, isUndefined as wf, map as Do, matchPattern as Ri, omit as _f, pick as Ei, reduce as xr, size as xf, some as Cf, sortBy as Bo, uniqueBy as Sf, values as Ur, without as kf } from "min-dash";
33
+ import { append as et, attr as $e, classes as pt, clear as Yr, clone as _c, create as Ke, createTransform as Ro, remove as fn, transform as Jr } from "tiny-svg";
34
34
  import ja from "inherits";
35
35
  import Rf from "diagram-js-direct-editing";
36
36
  var Ef = Object.create, xc = Object.defineProperty, Tf = Object.getOwnPropertyDescriptor, Af = Object.getOwnPropertyNames, Mf = Object.getPrototypeOf, jf = Object.prototype.hasOwnProperty, ln = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Pf = (e, t, n, a) => {
@@ -162,7 +162,7 @@ var tn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
162
162
  }, c = () => {
163
163
  r.value?.blur();
164
164
  }, s = H(() => a.notLabel || !a.label), d = L(!1);
165
- at(() => a.loading, (u) => {
165
+ ot(() => a.loading, (u) => {
166
166
  if (typeof u == "boolean") d.value = u;
167
167
  else if (tn(u?.delay))
168
168
  d.value = !1;
@@ -1421,7 +1421,7 @@ var th = /* @__PURE__ */ ln(((e, t) => {
1421
1421
  ]);
1422
1422
  },
1423
1423
  _doProcessBlock: function(h, p) {
1424
- for (var g = this._hash.words, b = g[0], x = g[1], w = g[2], m = g[3], y = g[4], C = g[5], v = g[6], _ = g[7], S = b.high, R = b.low, T = x.high, A = x.low, j = w.high, D = w.low, O = m.high, M = m.low, E = y.high, V = y.low, X = C.high, ue = C.low, Ce = v.high, U = v.low, K = _.high, Q = _.low, P = S, Pe = R, Je = T, je = A, Ge = j, oe = D, Oe = O, ee = M, ie = E, _e = V, pt = X, tt = ue, Ze = Ce, an = U, Qt = K, qt = Q, vt = 0; vt < 80; vt++) {
1424
+ for (var g = this._hash.words, b = g[0], x = g[1], w = g[2], m = g[3], y = g[4], C = g[5], v = g[6], _ = g[7], S = b.high, R = b.low, T = x.high, A = x.low, j = w.high, D = w.low, O = m.high, M = m.low, E = y.high, V = y.low, X = C.high, ue = C.low, Ce = v.high, U = v.low, K = _.high, Q = _.low, P = S, Pe = R, Je = T, je = A, Ge = j, ae = D, Oe = O, ee = M, ie = E, _e = V, at = X, tt = ue, Ze = Ce, an = U, Qt = K, qt = Q, vt = 0; vt < 80; vt++) {
1425
1425
  var Rt, $t, yn = f[vt];
1426
1426
  if (vt < 16)
1427
1427
  $t = yn.high = h[p + vt * 2] | 0, Rt = yn.low = h[p + vt * 2 + 1] | 0;
@@ -1429,10 +1429,10 @@ var th = /* @__PURE__ */ ln(((e, t) => {
1429
1429
  var mn = f[vt - 15], yt = mn.high, Ft = mn.low, zn = (yt >>> 1 | Ft << 31) ^ (yt >>> 8 | Ft << 24) ^ yt >>> 7, qn = (Ft >>> 1 | yt << 31) ^ (Ft >>> 8 | yt << 24) ^ (Ft >>> 7 | yt << 25), Dn = f[vt - 2], Nt = Dn.high, zt = Dn.low, Va = (Nt >>> 19 | zt << 13) ^ (Nt << 3 | zt >>> 29) ^ Nt >>> 6, G = (zt >>> 19 | Nt << 13) ^ (zt << 3 | Nt >>> 29) ^ (zt >>> 6 | Nt << 26), ge = f[vt - 7], re = ge.high, le = ge.low, be = f[vt - 16], Be = be.high, ze = be.low;
1430
1430
  Rt = qn + le, $t = zn + re + (Rt >>> 0 < qn >>> 0 ? 1 : 0), Rt = Rt + G, $t = $t + Va + (Rt >>> 0 < G >>> 0 ? 1 : 0), Rt = Rt + ze, $t = $t + Be + (Rt >>> 0 < ze >>> 0 ? 1 : 0), yn.high = $t, yn.low = Rt;
1431
1431
  }
1432
- var ot = ie & pt ^ ~ie & Ze, fe = _e & tt ^ ~_e & an, pe = P & Je ^ P & Ge ^ Je & Ge, ut = Pe & je ^ Pe & oe ^ je & oe, Ot = (P >>> 28 | Pe << 4) ^ (P << 30 | Pe >>> 2) ^ (P << 25 | Pe >>> 7), ke = (Pe >>> 28 | P << 4) ^ (Pe << 30 | P >>> 2) ^ (Pe << 25 | P >>> 7), wt = (ie >>> 14 | _e << 18) ^ (ie >>> 18 | _e << 14) ^ (ie << 23 | _e >>> 9), Et = (_e >>> 14 | ie << 18) ^ (_e >>> 18 | ie << 14) ^ (_e << 23 | ie >>> 9), Tt = d[vt], Ut = Tt.high, bn = Tt.low, At = qt + Et, De = Qt + wt + (At >>> 0 < qt >>> 0 ? 1 : 0), At = At + fe, De = De + ot + (At >>> 0 < fe >>> 0 ? 1 : 0), At = At + bn, De = De + Ut + (At >>> 0 < bn >>> 0 ? 1 : 0), At = At + Rt, De = De + $t + (At >>> 0 < Rt >>> 0 ? 1 : 0), sn = ke + ut, Ct = Ot + pe + (sn >>> 0 < ke >>> 0 ? 1 : 0);
1433
- Qt = Ze, qt = an, Ze = pt, an = tt, pt = ie, tt = _e, _e = ee + At | 0, ie = Oe + De + (_e >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ge, ee = oe, Ge = Je, oe = je, Je = P, je = Pe, Pe = At + sn | 0, P = De + Ct + (Pe >>> 0 < At >>> 0 ? 1 : 0) | 0;
1432
+ var it = ie & at ^ ~ie & Ze, fe = _e & tt ^ ~_e & an, pe = P & Je ^ P & Ge ^ Je & Ge, dt = Pe & je ^ Pe & ae ^ je & ae, Ot = (P >>> 28 | Pe << 4) ^ (P << 30 | Pe >>> 2) ^ (P << 25 | Pe >>> 7), ke = (Pe >>> 28 | P << 4) ^ (Pe << 30 | P >>> 2) ^ (Pe << 25 | P >>> 7), wt = (ie >>> 14 | _e << 18) ^ (ie >>> 18 | _e << 14) ^ (ie << 23 | _e >>> 9), Et = (_e >>> 14 | ie << 18) ^ (_e >>> 18 | ie << 14) ^ (_e << 23 | ie >>> 9), Tt = d[vt], Ut = Tt.high, bn = Tt.low, At = qt + Et, De = Qt + wt + (At >>> 0 < qt >>> 0 ? 1 : 0), At = At + fe, De = De + it + (At >>> 0 < fe >>> 0 ? 1 : 0), At = At + bn, De = De + Ut + (At >>> 0 < bn >>> 0 ? 1 : 0), At = At + Rt, De = De + $t + (At >>> 0 < Rt >>> 0 ? 1 : 0), sn = ke + dt, Ct = Ot + pe + (sn >>> 0 < ke >>> 0 ? 1 : 0);
1433
+ Qt = Ze, qt = an, Ze = at, an = tt, at = ie, tt = _e, _e = ee + At | 0, ie = Oe + De + (_e >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ge, ee = ae, Ge = Je, ae = je, Je = P, je = Pe, Pe = At + sn | 0, P = De + Ct + (Pe >>> 0 < At >>> 0 ? 1 : 0) | 0;
1434
1434
  }
1435
- R = b.low = R + Pe, b.high = S + P + (R >>> 0 < Pe >>> 0 ? 1 : 0), A = x.low = A + je, x.high = T + Je + (A >>> 0 < je >>> 0 ? 1 : 0), D = w.low = D + oe, w.high = j + Ge + (D >>> 0 < oe >>> 0 ? 1 : 0), M = m.low = M + ee, m.high = O + Oe + (M >>> 0 < ee >>> 0 ? 1 : 0), V = y.low = V + _e, y.high = E + ie + (V >>> 0 < _e >>> 0 ? 1 : 0), ue = C.low = ue + tt, C.high = X + pt + (ue >>> 0 < tt >>> 0 ? 1 : 0), U = v.low = U + an, v.high = Ce + Ze + (U >>> 0 < an >>> 0 ? 1 : 0), Q = _.low = Q + qt, _.high = K + Qt + (Q >>> 0 < qt >>> 0 ? 1 : 0);
1435
+ R = b.low = R + Pe, b.high = S + P + (R >>> 0 < Pe >>> 0 ? 1 : 0), A = x.low = A + je, x.high = T + Je + (A >>> 0 < je >>> 0 ? 1 : 0), D = w.low = D + ae, w.high = j + Ge + (D >>> 0 < ae >>> 0 ? 1 : 0), M = m.low = M + ee, m.high = O + Oe + (M >>> 0 < ee >>> 0 ? 1 : 0), V = y.low = V + _e, y.high = E + ie + (V >>> 0 < _e >>> 0 ? 1 : 0), ue = C.low = ue + tt, C.high = X + at + (ue >>> 0 < tt >>> 0 ? 1 : 0), U = v.low = U + an, v.high = Ce + Ze + (U >>> 0 < an >>> 0 ? 1 : 0), Q = _.low = Q + qt, _.high = K + Qt + (Q >>> 0 < qt >>> 0 ? 1 : 0);
1436
1436
  },
1437
1437
  _doFinalize: function() {
1438
1438
  var h = this._data, p = h.words, g = this._nDataBytes * 8, b = h.sigBytes * 8;
@@ -2425,7 +2425,7 @@ var Oh = Re(Ic), Ih = /* @__PURE__ */ me({
2425
2425
  const n = e, a = t, o = L(""), i = (r) => {
2426
2426
  a("update:modelValue", r), a("change", { value: r });
2427
2427
  };
2428
- return at(() => n.modelValue, (r) => {
2428
+ return ot(() => n.modelValue, (r) => {
2429
2429
  if ((tn(r) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
2430
2430
  o.value = Xr(/* @__PURE__ */ new Date()), i(o.value);
2431
2431
  return;
@@ -5252,7 +5252,7 @@ var zp = class {
5252
5252
  "j-input-rows",
5253
5253
  "j-table"
5254
5254
  ]), n = e, { formData: a, errorFields: o, span: i, labelWidth: r } = Ba(), { getTableData: l, row: c, pRowData: s } = $i(), { t: d } = mt(), f = L(0);
5255
- a && at(a, () => {
5255
+ a && ot(a, () => {
5256
5256
  f.value++;
5257
5257
  }, { deep: !0 });
5258
5258
  const u = H(() => (f.value, (n.getCompType ? n.getCompType({
@@ -5387,20 +5387,20 @@ var zp = class {
5387
5387
  "j-tree-select",
5388
5388
  "j-checkbox"
5389
5389
  ].includes(n.type)) {
5390
- const oe = n.config || {};
5391
- return !(n.type === "j-select" && !oe.multiple || n.type === "j-tree-select" && !oe.multiple);
5390
+ const ae = n.config || {};
5391
+ return !(n.type === "j-select" && !ae.multiple || n.type === "j-tree-select" && !ae.multiple);
5392
5392
  }
5393
5393
  return !1;
5394
5394
  }), A = H(() => O.value.valueIdKey || n.id), j = H({
5395
5395
  get() {
5396
- let oe;
5396
+ let ae;
5397
5397
  const Oe = A.value;
5398
- if (v ? oe = v[Oe] : s ? oe = s[Oe] : oe = n.modelValue, oe === void 0 && V.value === "j-tabs") {
5398
+ if (v ? ae = v[Oe] : s ? ae = s[Oe] : ae = n.modelValue, ae === void 0 && V.value === "j-tabs") {
5399
5399
  if (O.value?.defaultValue) return O.value.defaultValue;
5400
5400
  const ee = n.children.findIndex((ie) => ie.config?.active);
5401
5401
  return ee > -1 ? "_tab" + ee : "_tab0";
5402
5402
  }
5403
- if (oe === void 0 && V.value === "j-collapse") {
5403
+ if (ae === void 0 && V.value === "j-collapse") {
5404
5404
  if (O.value?.defaultValue) return O.value.defaultValue;
5405
5405
  const ee = n.children.map((ie, _e) => ({
5406
5406
  item: ie,
@@ -5408,14 +5408,14 @@ var zp = class {
5408
5408
  })).filter(({ item: ie }) => ie.config?.active);
5409
5409
  return O.value?.accordion ? ee.length > 0 ? "_collapse" + ee[0].index : "" : ee.map(({ index: ie }) => "_collapse" + ie);
5410
5410
  }
5411
- return T.value ? oe ? oe.split(",") : [] : oe;
5411
+ return T.value ? ae ? ae.split(",") : [] : ae;
5412
5412
  },
5413
- set(oe) {
5413
+ set(ae) {
5414
5414
  const Oe = A.value;
5415
- oe && T.value && (oe = String(oe || [])), v ? v[Oe] = oe : s && (s[Oe] = oe), a("update:modelValue", oe);
5415
+ ae && T.value && (ae = String(ae || [])), v ? v[Oe] = ae : s && (s[Oe] = ae), a("update:modelValue", ae);
5416
5416
  }
5417
5417
  }), D = L(0);
5418
- at([() => s, () => v], () => D.value++, { deep: !0 });
5418
+ ot([() => s, () => v], () => D.value++, { deep: !0 });
5419
5419
  const O = H(() => (D.value, dn({
5420
5420
  config: n.config,
5421
5421
  getCompConfig: n.getCompConfig,
@@ -5440,44 +5440,49 @@ var zp = class {
5440
5440
  row: v,
5441
5441
  getTableData: w
5442
5442
  }) || [] : O.value.options || [];
5443
- }), V = H(() => n.isTableCell && (M.value === "j-radio" || M.value === "j-checkbox") ? "j-select" : M.value === "j-textarea" ? "j-input" : ((M.value == null || M.value === "") && console.warn("组件类型不能为空"), M.value)), X = (oe) => l({
5444
- value: oe,
5443
+ }), V = H(() => n.isTableCell && (M.value === "j-radio" || M.value === "j-checkbox") ? "j-select" : M.value === "j-textarea" ? "j-input" : ((M.value == null || M.value === "") && console.warn("组件类型不能为空"), M.value)), X = (ae) => l({
5444
+ value: ae,
5445
5445
  config: U.value || {},
5446
5446
  formData: S.value,
5447
5447
  row: v,
5448
5448
  getTableData: w
5449
- }), ue = async (oe) => i ? await i({
5449
+ }), ue = async (ae) => i ? await i({
5450
5450
  type: V.value,
5451
5451
  config: U.value,
5452
5452
  formData: S.value,
5453
5453
  row: v,
5454
5454
  getTableData: w,
5455
- params: oe
5456
- }) : [], Ce = (oe) => {
5457
- const Oe = oe.config?.parentTableId, ee = Oe && oe.id && oe.id.startsWith(Oe + ".") ? oe.id.slice(Oe.length + 1) : oe.id, ie = oe.children?.map(Ce) || [], _e = oe.type === "j-layer-form" ? {
5458
- ...oe.config,
5459
- schema: ie
5460
- } : oe.config;
5461
- return ie.length ? {
5462
- ...oe,
5455
+ params: ae
5456
+ }) : [], Ce = (ae) => {
5457
+ const Oe = ae.config?.parentTableId, ee = Oe && ae.id && ae.id.startsWith(Oe + ".") ? ae.id.slice(Oe.length + 1) : ae.id, ie = ae.type === "j-layer-form" || ae.type === "j-layerform", _e = ie ? ae.children || [] : ae.children?.map(Ce) || [], at = ie ? {
5458
+ ...ae.config,
5459
+ schema: _e
5460
+ } : ae.config;
5461
+ return ie ? {
5462
+ ...ae,
5463
5463
  id: ee,
5464
- children: ie,
5465
- config: _e
5466
- } : ee === oe.id && _e === oe.config ? oe : {
5467
- ...oe,
5464
+ children: void 0,
5465
+ config: at
5466
+ } : _e.length ? {
5467
+ ...ae,
5468
5468
  id: ee,
5469
- config: _e
5469
+ children: _e,
5470
+ config: at
5471
+ } : ee === ae.id && at === ae.config ? ae : {
5472
+ ...ae,
5473
+ id: ee,
5474
+ config: at
5470
5475
  };
5471
5476
  }, U = H(() => {
5472
- const oe = { ...O.value };
5473
- return V.value === "j-layer-form" && (oe.schema = n.children), V.value === "el-collapse-item" && oe.label && (oe.title = oe.label, delete oe.label), [
5477
+ const ae = { ...O.value };
5478
+ return V.value === "j-layer-form" && (ae.schema = n.children), V.value === "el-collapse-item" && ae.label && (ae.title = ae.label, delete ae.label), [
5474
5479
  "j-input-cards",
5475
5480
  "j-input-rows",
5476
5481
  "j-table"
5477
- ].includes(M.value) && (oe.columns = n.children.map(Ce)), n.isTableCell && (M.value === "j-checkbox" && (oe.multiple = !0), M.value === "j-select" && oe.multiple && (oe.collapseTags = !0, oe.collapseTagsTooltip = !0), M.value === "j-switch" && (oe.size = "small"), M.value === "j-textarea" && (oe.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (oe.loadLayerData = ue, oe.getText = X), oe.dataType && (oe.options = E.value), oe;
5482
+ ].includes(M.value) && (ae.columns = n.children.map(Ce)), n.isTableCell && (M.value === "j-checkbox" && (ae.multiple = !0), M.value === "j-select" && ae.multiple && (ae.collapseTags = !0, ae.collapseTagsTooltip = !0), M.value === "j-switch" && (ae.size = "small"), M.value === "j-textarea" && (ae.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (ae.loadLayerData = ue, ae.getText = X), ae.dataType && (ae.options = E.value), ae;
5478
5483
  }), K = H(() => {
5479
5484
  if (V.value === "j-layer-form" || V.value === "j-input-rows" || V.value === "j-input-cards") return {};
5480
- const oe = {};
5485
+ const ae = {};
5481
5486
  return n.children.forEach((Oe, ee) => {
5482
5487
  let ie = Oe;
5483
5488
  V.value === "j-tabs" && (ie = {
@@ -5494,36 +5499,36 @@ var zp = class {
5494
5499
  ...Oe.config || {},
5495
5500
  name: "_collapse" + ee
5496
5501
  }
5497
- }, c == "form" && (ie.config.needRow = ie.config.needRow !== !1, ie.config.needFormItem = ie.config.needFormItem !== !1)), ie.slot ? (oe[ie.slot] = oe[ie.slot] || [], oe[ie.slot].push(ie)) : (oe.default = oe.default || [], oe.default.push(ie));
5498
- }), oe;
5499
- }), Q = (oe) => {
5502
+ }, c == "form" && (ie.config.needRow = ie.config.needRow !== !1, ie.config.needFormItem = ie.config.needFormItem !== !1)), ie.slot ? (ae[ie.slot] = ae[ie.slot] || [], ae[ie.slot].push(ie)) : (ae.default = ae.default || [], ae.default.push(ie));
5503
+ }), ae;
5504
+ }), Q = (ae) => {
5500
5505
  const Oe = {
5501
- ...oe,
5506
+ ...ae,
5502
5507
  id: n.id,
5503
5508
  formData: s,
5504
5509
  row: v,
5505
5510
  getTableData: w,
5506
5511
  config: O.value,
5507
- type: oe?.type || "change",
5512
+ type: ae?.type || "change",
5508
5513
  colNum: n.colNum,
5509
5514
  rowNum: n.rowNum
5510
5515
  };
5511
5516
  O.value?.change && O.value?.change(Oe), y && y(Oe), d && d(Oe), a("change", Oe);
5512
- }, P = L(), Pe = L(), Je = (oe, ...Oe) => {
5513
- if (P.value && typeof P.value[oe] == "function") return P.value[oe](...Oe);
5514
- console.warn(`方法 ${oe} 不存在或不是函数`);
5517
+ }, P = L(), Pe = L(), Je = (ae, ...Oe) => {
5518
+ if (P.value && typeof P.value[ae] == "function") return P.value[ae](...Oe);
5519
+ console.warn(`方法 ${ae} 不存在或不是函数`);
5515
5520
  }, je = () => {
5516
5521
  Pe.value?.(), Pe.value = void 0;
5517
5522
  }, Ge = () => {
5518
5523
  je(), !(!g || !n.id || !P.value) && (Pe.value = g(n.id, Je));
5519
5524
  };
5520
- return at([() => n.id, () => P.value], () => {
5525
+ return ot([() => n.id, () => P.value], () => {
5521
5526
  Ge();
5522
5527
  }, { immediate: !0 }), Pt(() => {
5523
5528
  n.id && h && h(n.id), n.id && x && x(n.id);
5524
5529
  }), Oo(() => {
5525
5530
  je();
5526
- }), (oe, Oe) => {
5531
+ }), (ae, Oe) => {
5527
5532
  const ee = F("JComp"), ie = F("el-row");
5528
5533
  return U.value.display != !1 && R.value ? (k(), N(Ma(V.value), Ne({
5529
5534
  key: 0,
@@ -5534,8 +5539,8 @@ var zp = class {
5534
5539
  "onUpdate:modelValue": Oe[0] || (Oe[0] = (_e) => j.value = _e),
5535
5540
  "run-flow": J(u),
5536
5541
  onChange: Q
5537
- }), Wn({ _: 2 }, [Ie(K.value, (_e, pt) => ({
5538
- name: pt,
5542
+ }), Wn({ _: 2 }, [Ie(K.value, (_e, at) => ({
5543
+ name: at,
5539
5544
  fn: q(() => [(k(!0), z(Ae, null, Ie(_e, (tt) => (k(), N(ee, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128))])
5540
5545
  }))]), 1040, ["modelValue", "run-flow"])) : U.value.display != !1 ? (k(), N(Ma(V.value), Ne({
5541
5546
  key: 1,
@@ -5544,13 +5549,13 @@ var zp = class {
5544
5549
  }, U.value, {
5545
5550
  "run-flow": J(u) || J(b),
5546
5551
  onChange: Q
5547
- }), Wn({ _: 2 }, [Ie(K.value, (_e, pt) => ({
5548
- name: pt,
5549
- fn: q(() => [U.value.needRow === !0 || U.value.needRow?.[pt] === !0 ? (k(), N(ie, {
5552
+ }), Wn({ _: 2 }, [Ie(K.value, (_e, at) => ({
5553
+ name: at,
5554
+ fn: q(() => [U.value.needRow === !0 || U.value.needRow?.[at] === !0 ? (k(), N(ie, {
5550
5555
  key: 0,
5551
5556
  gutter: p.value
5552
5557
  }, {
5553
- default: q(() => [U.value.needFormItem === !0 || U.value.needFormItem?.[pt] === !0 ? (k(!0), z(Ae, { key: 0 }, Ie(_e, (tt) => (k(), N(zc, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128)) : (k(!0), z(Ae, { key: 1 }, Ie(_e, (tt) => (k(), N(ee, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128))]),
5558
+ default: q(() => [U.value.needFormItem === !0 || U.value.needFormItem?.[at] === !0 ? (k(!0), z(Ae, { key: 0 }, Ie(_e, (tt) => (k(), N(zc, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128)) : (k(!0), z(Ae, { key: 1 }, Ie(_e, (tt) => (k(), N(ee, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128))]),
5554
5559
  _: 2
5555
5560
  }, 1032, ["gutter"])) : (k(!0), z(Ae, { key: 1 }, Ie(_e, (tt) => (k(), N(ee, Ne({ key: tt.id }, { ref_for: !0 }, tt), null, 16))), 128))])
5556
5561
  }))]), 1040, ["run-flow"])) : te("", !0);
@@ -5910,9 +5915,9 @@ var Up = /* @__PURE__ */ me({
5910
5915
  let T = o.records.length, A = 45;
5911
5916
  const j = L(!1), D = L({}), O = L([]), M = L(null), E = L(0);
5912
5917
  let V = null, X = !1, ue = !1;
5913
- const Ce = (I, $, Y, ae, W) => {
5918
+ const Ce = (I, $, Y, oe, W) => {
5914
5919
  O.value = I, M.value = $, E.value = Y, D.value = {
5915
- left: `${ae}px`,
5920
+ left: `${oe}px`,
5916
5921
  top: `${W}px`
5917
5922
  }, j.value = !0, X = !1, document.addEventListener("wheel", Je, { passive: !1 });
5918
5923
  }, U = () => {
@@ -5936,9 +5941,9 @@ var Up = /* @__PURE__ */ me({
5936
5941
  }), U());
5937
5942
  }, Ge = (I) => {
5938
5943
  let $ = I.action.config?.display !== !1, Y = I.action.config?.disabled === !0;
5939
- const ae = o.actionFilter;
5940
- if (ae) try {
5941
- const W = ae(I);
5944
+ const oe = o.actionFilter;
5945
+ if (oe) try {
5946
+ const W = oe(I);
5942
5947
  typeof W == "boolean" ? $ = W : W && typeof W == "object" && (typeof W.display == "boolean" && ($ = W.display), typeof W.disabled == "boolean" && (Y = W.disabled));
5943
5948
  } catch {
5944
5949
  $ = I.action.config?.display !== !1, Y = I.action.config?.disabled === !0;
@@ -5947,14 +5952,14 @@ var Up = /* @__PURE__ */ me({
5947
5952
  display: $,
5948
5953
  disabled: Y
5949
5954
  };
5950
- }, oe = (I, $) => $.disabled ? {
5955
+ }, ae = (I, $) => $.disabled ? {
5951
5956
  ...I,
5952
5957
  config: {
5953
5958
  ...I.config || {},
5954
5959
  disabled: !0
5955
5960
  }
5956
5961
  } : I, Oe = (I) => {
5957
- const { Group: $, Text: Y } = Ye.CustomLayout, ae = o.actionsMaxCount, W = I.filter((he) => he.config?.display !== !1), ne = W.length > ae, se = ne ? W.slice(0, ae - 1) : W;
5962
+ const { Group: $, Text: Y } = Ye.CustomLayout, oe = o.actionsMaxCount, W = I.filter((he) => he.config?.display !== !1), ne = W.length > oe, se = ne ? W.slice(0, oe - 1) : W;
5958
5963
  let ve = 0;
5959
5964
  if (se.forEach((he, we) => {
5960
5965
  const Me = Sn(he.config?.label || he.label || "") || 0;
@@ -5974,7 +5979,7 @@ var Up = /* @__PURE__ */ me({
5974
5979
  disableSelect: !0,
5975
5980
  customLayout: (he) => {
5976
5981
  const { table: we, row: Me, col: He } = he, Ee = we.getCellOriginRecord(He, Me), qe = we.getRecordIndexByCell(He, Me), Le = W.map((xe) => {
5977
- const ft = Ge({
5982
+ const ht = Ge({
5978
5983
  action: xe,
5979
5984
  record: Ee,
5980
5985
  recordIndex: qe,
@@ -5983,10 +5988,10 @@ var Up = /* @__PURE__ */ me({
5983
5988
  table: we
5984
5989
  });
5985
5990
  return {
5986
- action: oe(xe, { disabled: ft.disabled }),
5987
- display: ft.display
5991
+ action: ae(xe, { disabled: ht.disabled }),
5992
+ display: ht.display
5988
5993
  };
5989
- }).filter((xe) => xe.display).map((xe) => xe.action), Te = o.actionsMaxCount, We = Le.length > Te, Qe = We ? Le.slice(0, Te - 1) : Le, dt = We ? Le.slice(Te - 1) : [], nt = new $({
5994
+ }).filter((xe) => xe.display).map((xe) => xe.action), Te = o.actionsMaxCount, We = Le.length > Te, Qe = We ? Le.slice(0, Te - 1) : Le, ft = We ? Le.slice(Te - 1) : [], nt = new $({
5990
5995
  height: 40,
5991
5996
  display: "flex",
5992
5997
  flexDirection: "row",
@@ -5994,7 +5999,7 @@ var Up = /* @__PURE__ */ me({
5994
5999
  justifyContent: "flex-start",
5995
6000
  flexWrap: "nowrap"
5996
6001
  });
5997
- if (Qe.forEach((xe, ft) => {
6002
+ if (Qe.forEach((xe, ht) => {
5998
6003
  const Ue = xe.config?.disabled === !0, Dt = Ue ? "#c9cdd4" : xe.config?.status === "danger" ? "#f53f3f" : "#165dff", un = new Y({
5999
6004
  text: xe.label,
6000
6005
  fontSize: 14,
@@ -6003,7 +6008,7 @@ var Up = /* @__PURE__ */ me({
6003
6008
  0,
6004
6009
  12,
6005
6010
  0,
6006
- ft == 0 ? 12 : 0
6011
+ ht == 0 ? 12 : 0
6007
6012
  ],
6008
6013
  cursor: Ue ? "not-allowed" : "pointer"
6009
6014
  });
@@ -6017,8 +6022,8 @@ var Up = /* @__PURE__ */ me({
6017
6022
  }), un.addEventListener("mouseleave", (wn) => {
6018
6023
  Ue || (wn.target.setAttribute("fill", Dt), we.scenegraph.stage.renderNextFrame());
6019
6024
  }), nt.add(un);
6020
- }), We && dt.length > 0) {
6021
- const xe = "#1677ff", ft = new Y({
6025
+ }), We && ft.length > 0) {
6026
+ const xe = "#1677ff", ht = new Y({
6022
6027
  text: "更多",
6023
6028
  fontSize: 14,
6024
6029
  fill: xe,
@@ -6030,13 +6035,13 @@ var Up = /* @__PURE__ */ me({
6030
6035
  ],
6031
6036
  cursor: "pointer"
6032
6037
  });
6033
- ft.addEventListener("mouseenter", (Ue) => {
6038
+ ht.addEventListener("mouseenter", (Ue) => {
6034
6039
  Ue.target.setAttribute("fill", Nt(xe, -20)), we.scenegraph.stage.renderNextFrame();
6035
6040
  const Dt = m.value?.getBoundingClientRect();
6036
- Dt && Ce(dt, Ee, qe, Ue.canvasX + Dt.left - 64, Ue.canvasY + Dt.top + 8), ue = !0, Q();
6037
- }), ft.addEventListener("mouseleave", (Ue) => {
6041
+ Dt && Ce(ft, Ee, qe, Ue.canvasX + Dt.left - 64, Ue.canvasY + Dt.top + 8), ue = !0, Q();
6042
+ }), ht.addEventListener("mouseleave", (Ue) => {
6038
6043
  Ue.target.setAttribute("fill", xe), we.scenegraph.stage.renderNextFrame(), ue = !1, K();
6039
- }), nt.add(ft);
6044
+ }), nt.add(ht);
6040
6045
  }
6041
6046
  return {
6042
6047
  rootContainer: nt,
@@ -6045,10 +6050,10 @@ var Up = /* @__PURE__ */ me({
6045
6050
  }
6046
6051
  };
6047
6052
  }, ee = (I, $) => {
6048
- const { dataValue: Y, table: ae, col: W, row: ne, value: se } = I, ve = I.rect ?? ae?.getCellRect?.(W, ne) ?? {
6053
+ const { dataValue: Y, table: oe, col: W, row: ne, value: se } = I, ve = I.rect ?? oe?.getCellRect?.(W, ne) ?? {
6049
6054
  width: 0,
6050
6055
  height: 0
6051
- }, de = ae?.getBodyField?.(W, ne), he = ae?.options?.columns || [], we = (de ? yt(he, de) : null)?.style?.textAlign || "left", Me = 8, He = Math.max(0, ve.width - Me * 2);
6056
+ }, de = oe?.getBodyField?.(W, ne), he = oe?.options?.columns || [], we = (de ? yt(he, de) : null)?.style?.textAlign || "left", Me = 8, He = Math.max(0, ve.width - Me * 2);
6052
6057
  let Ee = se ?? Y;
6053
6058
  Ee == null && (Ee = "");
6054
6059
  const qe = Ze(typeof Ee == "object" ? JSON.stringify(Ee) : String(Ee), He);
@@ -6067,16 +6072,16 @@ var Up = /* @__PURE__ */ me({
6067
6072
  expectedHeight: xn
6068
6073
  };
6069
6074
  }, ie = (I, $) => {
6070
- const { dataValue: Y, rect: ae, table: W, col: ne, row: se } = I;
6075
+ const { dataValue: Y, rect: oe, table: W, col: ne, row: se } = I;
6071
6076
  let ve = "mdi:toggle-switch", de = "#165dff";
6072
6077
  Y || (ve = "mdi:toggle-switch-off", de = "#e5e6eb");
6073
6078
  const he = ka(ve), we = he?.body?.replace(/currentColor/g, de), Me = [], He = W?.getBodyField?.(ne, se), Ee = W?.options?.columns || [], qe = He ? yt(Ee, He) : null, Le = 8, Te = 40;
6074
6079
  let We = Le;
6075
- return qe?.style?.textAlign === "center" ? We = Math.max(Le, (ae.width - Te) / 2) : qe?.style?.textAlign === "right" && (We = Math.max(Le, ae.width - Te - Le)), Me.push({
6080
+ return qe?.style?.textAlign === "center" ? We = Math.max(Le, (oe.width - Te) / 2) : qe?.style?.textAlign === "right" && (We = Math.max(Le, oe.width - Te - Le)), Me.push({
6076
6081
  type: "icon",
6077
6082
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Te}" height="${Te}" viewBox="0 0 ${he?.width} ${he?.height}" >${we}</svg>`,
6078
6083
  x: We,
6079
- y: (ae.height - Te) / 2,
6084
+ y: (oe.height - Te) / 2,
6080
6085
  width: Te,
6081
6086
  height: Te
6082
6087
  }), {
@@ -6084,34 +6089,34 @@ var Up = /* @__PURE__ */ me({
6084
6089
  expectedHeight: xn
6085
6090
  };
6086
6091
  }, _e = (I, $) => {
6087
- const { dataValue: Y, rect: ae } = I, W = Number(Y) || 0, ne = 5, se = 20, ve = 4, de = 8, he = (ae.height - se) / 2, we = [], Me = ka("mdi:star"), He = ka("mdi:star-half-full"), Ee = ka("mdi:star-outline"), qe = "#f7ba2a", Le = "#e5e6eb";
6092
+ const { dataValue: Y, rect: oe } = I, W = Number(Y) || 0, ne = 5, se = 20, ve = 4, de = 8, he = (oe.height - se) / 2, we = [], Me = ka("mdi:star"), He = ka("mdi:star-half-full"), Ee = ka("mdi:star-outline"), qe = "#f7ba2a", Le = "#e5e6eb";
6088
6093
  for (let Te = 0; Te < ne; Te++) {
6089
6094
  const We = de + Te * (se + ve), Qe = he;
6090
6095
  if (W >= Te + 1) {
6091
- const dt = Me?.body?.replace(/currentColor/g, qe);
6096
+ const ft = Me?.body?.replace(/currentColor/g, qe);
6092
6097
  we.push({
6093
6098
  type: "icon",
6094
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Me?.width} ${Me?.height}">${dt}</svg>`,
6099
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Me?.width} ${Me?.height}">${ft}</svg>`,
6095
6100
  x: We,
6096
6101
  y: Qe,
6097
6102
  width: se,
6098
6103
  height: se
6099
6104
  });
6100
6105
  } else if (W > Te && W < Te + 1) {
6101
- const dt = He?.body?.replace(/currentColor/g, qe);
6106
+ const ft = He?.body?.replace(/currentColor/g, qe);
6102
6107
  we.push({
6103
6108
  type: "icon",
6104
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${He?.width} ${He?.height}">${dt}</svg>`,
6109
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${He?.width} ${He?.height}">${ft}</svg>`,
6105
6110
  x: We,
6106
6111
  y: Qe,
6107
6112
  width: se,
6108
6113
  height: se
6109
6114
  });
6110
6115
  } else {
6111
- const dt = Ee?.body?.replace(/currentColor/g, Le);
6116
+ const ft = Ee?.body?.replace(/currentColor/g, Le);
6112
6117
  we.push({
6113
6118
  type: "icon",
6114
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Ee?.width} ${Ee?.height}">${dt}</svg>`,
6119
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Ee?.width} ${Ee?.height}">${ft}</svg>`,
6115
6120
  x: We,
6116
6121
  y: Qe,
6117
6122
  width: se,
@@ -6123,24 +6128,24 @@ var Up = /* @__PURE__ */ me({
6123
6128
  elements: we,
6124
6129
  expectedHeight: xn
6125
6130
  };
6126
- }, pt = (I, $) => {
6127
- const { dataValue: Y, rect: ae, table: W, col: ne, row: se } = I, ve = W.getBodyField(ne, se), de = yt(W.options?.columns || [], ve), he = W.getCellOriginRecord?.(ne, se) || W.getRecordByCell?.(ne, se) || {}, we = $ || dn({
6131
+ }, at = (I, $) => {
6132
+ const { dataValue: Y, rect: oe, table: W, col: ne, row: se } = I, ve = W.getBodyField(ne, se), de = yt(W.options?.columns || [], ve), he = W.getCellOriginRecord?.(ne, se) || W.getRecordByCell?.(ne, se) || {}, we = $ || dn({
6128
6133
  config: de?._compConfig,
6129
6134
  getCompConfig: de?._getCompConfig,
6130
6135
  formData: r || {},
6131
6136
  getTableData: Et,
6132
6137
  row: he
6133
- }) || {}, Me = Number(we.min) || 0, He = Number(we.max) || 100, Ee = Number(Y) || 0, qe = He - Me, Le = qe === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Me) / qe * 100)), Te = 4, We = 8, Qe = 8, dt = (ae.height - Te) / 2, nt = String(Ee), xe = Sn(nt) || 0, ft = We, Ue = dt, Dt = ae.width - We * 2 - xe - Qe, un = Dt * Le / 100, wn = [], _n = (Jt, rt, Mt) => {
6134
- const gt = Math.min(Mt, rt / 2, Jt / 2);
6135
- return `M ${gt} 0 L ${Jt - gt} 0 Q ${Jt} 0 ${Jt} ${gt} L ${Jt} ${rt - gt} Q ${Jt} ${rt} ${Jt - gt} ${rt} L ${gt} ${rt} Q 0 ${rt} 0 ${rt - gt} L 0 ${gt} Q 0 0 ${gt} 0 Z`;
6136
- }, go = (Jt, rt, Mt) => {
6137
- const gt = Math.min(Mt, rt / 2, Jt / 2);
6138
- return Jt <= gt * 2 ? _n(Jt, rt, Mt) : `M ${gt} 0 L ${Jt} 0 L ${Jt} ${rt} L ${gt} ${rt} Q 0 ${rt} 0 ${rt - gt} L 0 ${gt} Q 0 0 ${gt} 0 Z`;
6138
+ }) || {}, Me = Number(we.min) || 0, He = Number(we.max) || 100, Ee = Number(Y) || 0, qe = He - Me, Le = qe === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Me) / qe * 100)), Te = 4, We = 8, Qe = 8, ft = (oe.height - Te) / 2, nt = String(Ee), xe = Sn(nt) || 0, ht = We, Ue = ft, Dt = oe.width - We * 2 - xe - Qe, un = Dt * Le / 100, wn = [], _n = (Jt, lt, Mt) => {
6139
+ const gt = Math.min(Mt, lt / 2, Jt / 2);
6140
+ return `M ${gt} 0 L ${Jt - gt} 0 Q ${Jt} 0 ${Jt} ${gt} L ${Jt} ${lt - gt} Q ${Jt} ${lt} ${Jt - gt} ${lt} L ${gt} ${lt} Q 0 ${lt} 0 ${lt - gt} L 0 ${gt} Q 0 0 ${gt} 0 Z`;
6141
+ }, go = (Jt, lt, Mt) => {
6142
+ const gt = Math.min(Mt, lt / 2, Jt / 2);
6143
+ return Jt <= gt * 2 ? _n(Jt, lt, Mt) : `M ${gt} 0 L ${Jt} 0 L ${Jt} ${lt} L ${gt} ${lt} Q 0 ${lt} 0 ${lt - gt} L 0 ${gt} Q 0 0 ${gt} 0 Z`;
6139
6144
  }, ai = _n(Dt, Te, Te / 2);
6140
6145
  if (wn.push({
6141
6146
  type: "icon",
6142
6147
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Dt}" height="${Te}" viewBox="0 0 ${Dt} ${Te}"><path d="${ai}" fill="#e5e6eb"/></svg>`,
6143
- x: ft,
6148
+ x: ht,
6144
6149
  y: Ue,
6145
6150
  width: Dt,
6146
6151
  height: Te
@@ -6149,13 +6154,13 @@ var Up = /* @__PURE__ */ me({
6149
6154
  wn.push({
6150
6155
  type: "icon",
6151
6156
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${un}" height="${Te}" viewBox="0 0 ${un} ${Te}"><path d="${Jt}" fill="#165dff"/></svg>`,
6152
- x: ft,
6157
+ x: ht,
6153
6158
  y: Ue,
6154
6159
  width: un,
6155
6160
  height: Te
6156
6161
  });
6157
6162
  }
6158
- const oi = ft + Dt + Qe, ar = ae.height / 2;
6163
+ const oi = ht + Dt + Qe, ar = oe.height / 2;
6159
6164
  return wn.push({
6160
6165
  type: "text",
6161
6166
  text: nt,
@@ -6172,16 +6177,16 @@ var Up = /* @__PURE__ */ me({
6172
6177
  }, tt = (I) => String(I).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), Ze = (I, $) => {
6173
6178
  if (!I) return "";
6174
6179
  if ((Sn(I) || 0) <= $) return I;
6175
- const Y = "...", ae = Sn(Y) || 0;
6176
- if (ae >= $) return "";
6180
+ const Y = "...", oe = Sn(Y) || 0;
6181
+ if (oe >= $) return "";
6177
6182
  let W = 0, ne = I.length;
6178
6183
  for (; W < ne; ) {
6179
6184
  const se = Math.ceil((W + ne) / 2);
6180
- (Sn(I.slice(0, se)) || 0) + ae <= $ ? W = se : ne = se - 1;
6185
+ (Sn(I.slice(0, se)) || 0) + oe <= $ ? W = se : ne = se - 1;
6181
6186
  }
6182
6187
  return I.slice(0, W) + Y;
6183
6188
  }, an = (I, $) => {
6184
- const { value: Y, rect: ae, table: W, col: ne, row: se } = I;
6189
+ const { value: Y, rect: oe, table: W, col: ne, row: se } = I;
6185
6190
  if (!Y) return {
6186
6191
  elements: [],
6187
6192
  expectedHeight: xn
@@ -6192,7 +6197,7 @@ var Up = /* @__PURE__ */ me({
6192
6197
  formData: r || {},
6193
6198
  getTableData: Et,
6194
6199
  row: he
6195
- }) || {}, Me = Number(we.size) || 16, He = we.color, Ee = (ae.width - Me) / 2, qe = (ae.height - Me) / 2;
6200
+ }) || {}, Me = Number(we.size) || 16, He = we.color, Ee = (oe.width - Me) / 2, qe = (oe.height - Me) / 2;
6196
6201
  let Le = String(Y).trim();
6197
6202
  if (!Le) return {
6198
6203
  elements: [],
@@ -6202,18 +6207,18 @@ var Up = /* @__PURE__ */ me({
6202
6207
  const Te = Le.match(/<svg\b([^>]*)>([\s\S]*?)<\/svg>/i);
6203
6208
  if (Te) {
6204
6209
  const We = Te[1] || "", Qe = Te[2] || "";
6205
- let dt = We.match(/\bviewBox\s*=\s*["']([^"']+)["']/i)?.[1];
6206
- if (!dt) {
6210
+ let ft = We.match(/\bviewBox\s*=\s*["']([^"']+)["']/i)?.[1];
6211
+ if (!ft) {
6207
6212
  const nt = We.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], xe = We.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
6208
- dt = nt && xe ? `0 0 ${nt} ${xe}` : "0 0 24 24";
6213
+ ft = nt && xe ? `0 0 ${nt} ${xe}` : "0 0 24 24";
6209
6214
  }
6210
- Le = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="${dt}">${Qe}</svg>`;
6215
+ Le = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="${ft}">${Qe}</svg>`;
6211
6216
  } else Le = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 24 24"></svg>`;
6212
6217
  } else {
6213
6218
  const Te = ka(Le);
6214
6219
  if (Te) {
6215
- const { body: We, width: Qe, height: dt } = Te;
6216
- Le = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 ${Qe} ${dt}">${We}</svg>`;
6220
+ const { body: We, width: Qe, height: ft } = Te;
6221
+ Le = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 ${Qe} ${ft}">${We}</svg>`;
6217
6222
  }
6218
6223
  }
6219
6224
  return He && (Le = Le.replace(/currentColor/g, He)), {
@@ -6228,7 +6233,7 @@ var Up = /* @__PURE__ */ me({
6228
6233
  expectedHeight: Math.max(xn, Me)
6229
6234
  };
6230
6235
  }, Qt = (I, $) => {
6231
- const { dataValue: Y, rect: ae, table: W, col: ne, row: se, value: ve } = I, de = W.getBodyField(ne, se), he = yt(W.options?.columns || [], de), we = W.getCellOriginRecord?.(ne, se) || W.getRecordByCell?.(ne, se) || {}, Me = $ || dn({
6236
+ const { dataValue: Y, rect: oe, table: W, col: ne, row: se, value: ve } = I, de = W.getBodyField(ne, se), he = yt(W.options?.columns || [], de), we = W.getCellOriginRecord?.(ne, se) || W.getRecordByCell?.(ne, se) || {}, Me = $ || dn({
6232
6237
  config: he?._compConfig,
6233
6238
  getCompConfig: he?._getCompConfig,
6234
6239
  formData: r || {},
@@ -6243,23 +6248,23 @@ var Up = /* @__PURE__ */ me({
6243
6248
  elements: [],
6244
6249
  expectedHeight: xn
6245
6250
  };
6246
- const qe = 14, Le = 28, Te = 2, We = 12, Qe = 8, dt = 6;
6247
- let nt = 8, xe = Math.max(0, ae.width - nt * 2), ft = Math.max(0, xe - We * 2);
6248
- const Ue = [], Dt = (rt) => {
6249
- const Mt = Sn(Ze(rt, ft)) || 0;
6251
+ const qe = 14, Le = 28, Te = 2, We = 12, Qe = 8, ft = 6;
6252
+ let nt = 8, xe = Math.max(0, oe.width - nt * 2), ht = Math.max(0, xe - We * 2);
6253
+ const Ue = [], Dt = (lt) => {
6254
+ const Mt = Sn(Ze(lt, ht)) || 0;
6250
6255
  return Math.min(xe, Mt + We * 2);
6251
- }, un = (rt, Mt, gt, Tn, An) => {
6252
- const ba = Ze(gt, ft), wa = tt(ba), ii = Sn(ba) || 0, Wa = Math.min(xe, ii + We * 2), Rd = Tn || "#f2f3f5", Ed = An || "#1d2129", Td = Le / 2 + qe * 0.35, Ad = `<svg xmlns="http://www.w3.org/2000/svg" width="${Wa}" height="${Le}" viewBox="0 0 ${Wa} ${Le}"><rect x="0" y="0" width="${Wa}" height="${Le}" rx="${Te}" ry="${Te}" fill="${Rd}"/><text x="${Wa / 2}" y="${Td}" text-anchor="middle" font-size="${qe}" fill="${Ed}">${wa}</text></svg>`;
6256
+ }, un = (lt, Mt, gt, Tn, An) => {
6257
+ const ba = Ze(gt, ht), wa = tt(ba), ii = Sn(ba) || 0, Wa = Math.min(xe, ii + We * 2), Rd = Tn || "#f2f3f5", Ed = An || "#1d2129", Td = Le / 2 + qe * 0.35, Ad = `<svg xmlns="http://www.w3.org/2000/svg" width="${Wa}" height="${Le}" viewBox="0 0 ${Wa} ${Le}"><rect x="0" y="0" width="${Wa}" height="${Le}" rx="${Te}" ry="${Te}" fill="${Rd}"/><text x="${Wa / 2}" y="${Td}" text-anchor="middle" font-size="${qe}" fill="${Ed}">${wa}</text></svg>`;
6253
6258
  return Ue.push({
6254
6259
  type: "icon",
6255
6260
  svg: Ad,
6256
- x: rt,
6261
+ x: lt,
6257
6262
  y: Mt,
6258
6263
  width: Wa,
6259
6264
  height: Le
6260
6265
  }), { tagWidth: Wa };
6261
6266
  }, wn = () => {
6262
- const rt = [];
6267
+ const lt = [];
6263
6268
  let Mt = [], gt = 0;
6264
6269
  for (let Tn = 0; Tn < Ee.length; Tn++) {
6265
6270
  const An = Ee[Tn], ba = An.label, wa = Dt(ba), ii = {
@@ -6268,34 +6273,34 @@ var Up = /* @__PURE__ */ me({
6268
6273
  text: An.textColor || qt(An.color || "#f2f3f5"),
6269
6274
  width: wa
6270
6275
  };
6271
- Mt.length > 0 && gt + Qe + wa > xe ? (rt.push({
6276
+ Mt.length > 0 && gt + Qe + wa > xe ? (lt.push({
6272
6277
  items: Mt,
6273
6278
  lineWidth: gt
6274
6279
  }), Mt = [ii], gt = wa) : (Mt.push(ii), gt += Mt.length > 1 ? Qe + wa : wa);
6275
6280
  }
6276
- return Mt.length > 0 && rt.push({
6281
+ return Mt.length > 0 && lt.push({
6277
6282
  items: Mt,
6278
6283
  lineWidth: gt
6279
6284
  }), {
6280
- lines: rt,
6281
- needsWrap: rt.length > 1
6285
+ lines: lt,
6286
+ needsWrap: lt.length > 1
6282
6287
  };
6283
6288
  };
6284
6289
  let { lines: _n, needsWrap: go } = wn();
6285
- nt !== 0 && go && (nt = 0, xe = Math.max(0, ae.width - nt * 2), ft = Math.max(0, xe - We * 2), { lines: _n, needsWrap: go } = wn());
6286
- const ai = _n.length * Le + (_n.length > 1 ? (_n.length - 1) * dt : 0);
6287
- let oi = Math.max(0, (ae.height - ai) / 2);
6290
+ nt !== 0 && go && (nt = 0, xe = Math.max(0, oe.width - nt * 2), ht = Math.max(0, xe - We * 2), { lines: _n, needsWrap: go } = wn());
6291
+ const ai = _n.length * Le + (_n.length > 1 ? (_n.length - 1) * ft : 0);
6292
+ let oi = Math.max(0, (oe.height - ai) / 2);
6288
6293
  const ar = go;
6289
- for (let rt = 0; rt < _n.length; rt++) {
6290
- const Mt = _n[rt];
6294
+ for (let lt = 0; lt < _n.length; lt++) {
6295
+ const Mt = _n[lt];
6291
6296
  let gt = ar ? nt : He === "center" ? nt + Math.max(0, (xe - Mt.lineWidth) / 2) : He === "right" ? nt + Math.max(0, xe - Mt.lineWidth) : nt;
6292
6297
  for (let Tn = 0; Tn < Mt.items.length; Tn++) {
6293
6298
  const An = Mt.items[Tn], { tagWidth: ba } = un(gt, oi, An.label, An.bg, An.text);
6294
6299
  gt += ba + (Tn < Mt.items.length - 1 ? Qe : 0);
6295
6300
  }
6296
- oi += Le + (rt < _n.length - 1 ? dt : 0);
6301
+ oi += Le + (lt < _n.length - 1 ? ft : 0);
6297
6302
  }
6298
- const Jt = Math.min(ae.width, Math.max(0, ..._n.map((rt) => rt.lineWidth)) + nt * 2);
6303
+ const Jt = Math.min(oe.width, Math.max(0, ..._n.map((lt) => lt.lineWidth)) + nt * 2);
6299
6304
  return {
6300
6305
  elements: Ue,
6301
6306
  expectedHeight: Math.max(xn, ai),
@@ -6304,9 +6309,9 @@ var Up = /* @__PURE__ */ me({
6304
6309
  }, qt = (I) => {
6305
6310
  if (!I) return "#1d2129";
6306
6311
  I = I.replace("#", ""), I.length === 3 && (I = I.split("").map((W) => W + W).join(""));
6307
- const $ = parseInt(I.substring(0, 2), 16), Y = parseInt(I.substring(2, 4), 16), ae = parseInt(I.substring(4, 6), 16);
6308
- if (($ * 299 + Y * 587 + ae * 114) / 1e3 >= 128) {
6309
- const W = $ / 255, ne = Y / 255, se = ae / 255, ve = Math.max(W, ne, se), de = Math.min(W, ne, se);
6312
+ const $ = parseInt(I.substring(0, 2), 16), Y = parseInt(I.substring(2, 4), 16), oe = parseInt(I.substring(4, 6), 16);
6313
+ if (($ * 299 + Y * 587 + oe * 114) / 1e3 >= 128) {
6314
+ const W = $ / 255, ne = Y / 255, se = oe / 255, ve = Math.max(W, ne, se), de = Math.min(W, ne, se);
6310
6315
  let he = 0, we = 0;
6311
6316
  const Me = (ve + de) / 2;
6312
6317
  if (ve !== de) {
@@ -6328,15 +6333,15 @@ var Up = /* @__PURE__ */ me({
6328
6333
  let qe, Le, Te;
6329
6334
  if (Ee === 0) qe = Le = Te = He;
6330
6335
  else {
6331
- const Qe = (xe, ft, Ue) => (Ue < 0 && (Ue += 1), Ue > 1 && (Ue -= 1), Ue < 0.16666666666666666 ? xe + (ft - xe) * 6 * Ue : Ue < 0.5 ? ft : Ue < 0.6666666666666666 ? xe + (ft - xe) * (0.6666666666666666 - Ue) * 6 : xe), dt = He < 0.5 ? He * (1 + Ee) : He + Ee - He * Ee, nt = 2 * He - dt;
6332
- qe = Qe(nt, dt, he + 1 / 3), Le = Qe(nt, dt, he), Te = Qe(nt, dt, he - 1 / 3);
6336
+ const Qe = (xe, ht, Ue) => (Ue < 0 && (Ue += 1), Ue > 1 && (Ue -= 1), Ue < 0.16666666666666666 ? xe + (ht - xe) * 6 * Ue : Ue < 0.5 ? ht : Ue < 0.6666666666666666 ? xe + (ht - xe) * (0.6666666666666666 - Ue) * 6 : xe), ft = He < 0.5 ? He * (1 + Ee) : He + Ee - He * Ee, nt = 2 * He - ft;
6337
+ qe = Qe(nt, ft, he + 1 / 3), Le = Qe(nt, ft, he), Te = Qe(nt, ft, he - 1 / 3);
6333
6338
  }
6334
6339
  const We = (Qe) => Math.round(Qe * 255).toString(16).padStart(2, "0");
6335
6340
  return `#${We(qe)}${We(Le)}${We(Te)}`;
6336
6341
  }
6337
6342
  return "#ffffff";
6338
6343
  }, vt = (I) => {
6339
- const { table: $, row: Y, col: ae, rect: W, value: ne } = I, { Group: se, Text: ve } = Ye.CustomLayout, de = $.getBodyField(ae, Y), he = yt($.options?.columns || [], de), we = he?._compConfig || {}, Me = new se({
6344
+ const { table: $, row: Y, col: oe, rect: W, value: ne } = I, { Group: se, Text: ve } = Ye.CustomLayout, de = $.getBodyField(oe, Y), he = yt($.options?.columns || [], de), we = he?._compConfig || {}, Me = new se({
6340
6345
  height: W.height,
6341
6346
  width: W.width,
6342
6347
  display: "flex",
@@ -6356,7 +6361,7 @@ var Up = /* @__PURE__ */ me({
6356
6361
  });
6357
6362
  return Ee.addEventListener("click", () => {
6358
6363
  if (we.click) {
6359
- const qe = $.getCellOriginRecord(ae, Y);
6364
+ const qe = $.getCellOriginRecord(oe, Y);
6360
6365
  we.click({
6361
6366
  row: qe,
6362
6367
  column: he,
@@ -6372,7 +6377,7 @@ var Up = /* @__PURE__ */ me({
6372
6377
  renderDefault: !1
6373
6378
  };
6374
6379
  }, Rt = (I, $) => $ ? "#c9cdd4" : I === "danger" ? "#f53f3f" : I === "warning" ? "#ff7d00" : I === "success" ? "#00b42a" : "#165dff", $t = (I) => {
6375
- const { table: $, row: Y, col: ae, rect: W } = I, { Group: ne, Text: se } = Ye.CustomLayout, ve = $.getBodyField(ae, Y), de = yt($.options?.columns || [], ve), he = $.getCellOriginRecord?.(ae, Y) || $.getRecordByCell?.(ae, Y) || {}, we = dn({
6380
+ const { table: $, row: Y, col: oe, rect: W } = I, { Group: ne, Text: se } = Ye.CustomLayout, ve = $.getBodyField(oe, Y), de = yt($.options?.columns || [], ve), he = $.getCellOriginRecord?.(oe, Y) || $.getRecordByCell?.(oe, Y) || {}, we = dn({
6376
6381
  config: de?._compConfig,
6377
6382
  getCompConfig: de?._getCompConfig,
6378
6383
  formData: r || {},
@@ -6421,9 +6426,9 @@ var Up = /* @__PURE__ */ me({
6421
6426
  renderDefault: !1
6422
6427
  };
6423
6428
  }, yn = (I) => {
6424
- const { table: $, row: Y, col: ae, rect: W } = I, { height: ne, width: se } = W ?? $.getCellRect(ae, Y), { Group: ve, CheckBox: de } = Ye.CustomLayout, he = $.getBodyField(ae, Y), we = yt($.options?.columns || [], he), Me = $.getCellOriginRecord(ae, Y) || {}, He = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", Ee = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", qe = (nt, xe) => {
6425
- const ft = Me?.[he];
6426
- Me[he] = (Array.isArray(ft) ? ft : []).map((Ue, Dt) => Dt !== nt ? Ue : Ue && typeof Ue == "object" ? {
6429
+ const { table: $, row: Y, col: oe, rect: W } = I, { height: ne, width: se } = W ?? $.getCellRect(oe, Y), { Group: ve, CheckBox: de } = Ye.CustomLayout, he = $.getBodyField(oe, Y), we = yt($.options?.columns || [], he), Me = $.getCellOriginRecord(oe, Y) || {}, He = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", Ee = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", qe = (nt, xe) => {
6430
+ const ht = Me?.[he];
6431
+ Me[he] = (Array.isArray(ht) ? ht : []).map((Ue, Dt) => Dt !== nt ? Ue : Ue && typeof Ue == "object" ? {
6427
6432
  ...Ue,
6428
6433
  ...xe
6429
6434
  } : { ...xe });
@@ -6442,7 +6447,7 @@ var Up = /* @__PURE__ */ me({
6442
6447
  rootContainer: Te,
6443
6448
  renderDefault: !1
6444
6449
  };
6445
- const Qe = We, dt = new ve({
6450
+ const Qe = We, ft = new ve({
6446
6451
  width: se,
6447
6452
  display: "flex",
6448
6453
  flexDirection: "row",
@@ -6456,11 +6461,11 @@ var Up = /* @__PURE__ */ me({
6456
6461
  justifyContent: Ee,
6457
6462
  alignItems: "center"
6458
6463
  });
6459
- Te.add(dt);
6464
+ Te.add(ft);
6460
6465
  for (let nt = 0; nt < Qe.length; nt++) {
6461
- const xe = Qe[nt], ft = xe && typeof xe == "object" ? xe.label ?? xe.value ?? "" : xe ?? "", Ue = new de({
6466
+ const xe = Qe[nt], ht = xe && typeof xe == "object" ? xe.label ?? xe.value ?? "" : xe ?? "", Ue = new de({
6462
6467
  text: {
6463
- text: String(ft),
6468
+ text: String(ht),
6464
6469
  fontSize: 12
6465
6470
  },
6466
6471
  checked: !!(xe && typeof xe == "object" && xe.checked),
@@ -6473,7 +6478,7 @@ var Up = /* @__PURE__ */ me({
6473
6478
  4
6474
6479
  ]
6475
6480
  });
6476
- Ue.render?.(), dt.add(Ue), Ue.addEventListener("checkbox_state_change", () => {
6481
+ Ue.render?.(), ft.add(Ue), Ue.addEventListener("checkbox_state_change", () => {
6477
6482
  const Dt = !!Ue.attribute?.checked;
6478
6483
  qe(nt, { checked: Dt }), Le();
6479
6484
  });
@@ -6483,7 +6488,7 @@ var Up = /* @__PURE__ */ me({
6483
6488
  renderDefault: !1
6484
6489
  };
6485
6490
  }, mn = (I) => {
6486
- const { table: $, row: Y, col: ae } = I, W = $.getBodyField(ae, Y), ne = yt($.options?.columns || [], W), se = ne?._compConfig || {};
6491
+ const { table: $, row: Y, col: oe } = I, W = $.getBodyField(oe, Y), ne = yt($.options?.columns || [], W), se = ne?._compConfig || {};
6487
6492
  if (ne?._customLayout) return ne._customLayout({
6488
6493
  ...I,
6489
6494
  config: se,
@@ -6493,18 +6498,18 @@ var Up = /* @__PURE__ */ me({
6493
6498
  for (const Y of I) {
6494
6499
  if (Y.field === $) return Y;
6495
6500
  if (Y.columns) {
6496
- const ae = yt(Y.columns, $);
6497
- if (ae) return ae;
6501
+ const oe = yt(Y.columns, $);
6502
+ if (oe) return oe;
6498
6503
  }
6499
6504
  }
6500
6505
  return null;
6501
6506
  }, Ft = (I) => {
6502
- const { table: $, col: Y, row: ae } = I, W = $.getBodyField(Y, ae), ne = yt($.options?.columns || [], W);
6507
+ const { table: $, col: Y, row: oe } = I, W = $.getBodyField(Y, oe), ne = yt($.options?.columns || [], W);
6503
6508
  if (!ne) return {
6504
6509
  elements: [],
6505
6510
  expectedHeight: xn
6506
6511
  };
6507
- const se = $.getCellOriginRecord?.(Y, ae) || $.getRecordByCell?.(Y, ae) || {}, ve = dn({
6512
+ const se = $.getCellOriginRecord?.(Y, oe) || $.getRecordByCell?.(Y, oe) || {}, ve = dn({
6508
6513
  config: ne._compConfig,
6509
6514
  getCompConfig: ne._getCompConfig,
6510
6515
  formData: r || {},
@@ -6523,7 +6528,7 @@ var Up = /* @__PURE__ */ me({
6523
6528
  text: ee,
6524
6529
  "j-switch": ie,
6525
6530
  "j-rate": _e,
6526
- "j-slider": pt,
6531
+ "j-slider": at,
6527
6532
  "j-tag": Qt,
6528
6533
  "j-input-tag": Qt,
6529
6534
  "j-icon": an
@@ -6532,9 +6537,9 @@ var Up = /* @__PURE__ */ me({
6532
6537
  elements: [],
6533
6538
  expectedHeight: xn
6534
6539
  };
6535
- }, zn = (I, $, Y, ae) => {
6536
- const W = ae.getBodyField($, Y), ne = yt(ae.options?.columns || [], W);
6537
- if (ne._fieldFormat) return ne._fieldFormat(I, $, Y, ae);
6540
+ }, zn = (I, $, Y, oe) => {
6541
+ const W = oe.getBodyField($, Y), ne = yt(oe.options?.columns || [], W);
6542
+ if (ne._fieldFormat) return ne._fieldFormat(I, $, Y, oe);
6538
6543
  if (ne._compType === "dateTime") {
6539
6544
  const de = ne._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
6540
6545
  return Xr(I[W], de);
@@ -6558,13 +6563,13 @@ var Up = /* @__PURE__ */ me({
6558
6563
  const I = Object.keys(g);
6559
6564
  return I.length === 0 ? !1 : I.every(($) => f.value?.[$] === 9);
6560
6565
  };
6561
- at(() => qn(), (I) => {
6566
+ ot(() => qn(), (I) => {
6562
6567
  I && y && y.renderWithRecreateCells();
6563
6568
  });
6564
6569
  const Dn = (I) => {
6565
6570
  const $ = I.filter((Y) => Y.config?.display !== !1).map((Y) => {
6566
- const { id: ae, type: W, config: ne, getCompConfig: se, getCompType: ve, children: de, customLayout: he } = Y, { label: we, width: Me, minWidth: He, maxWidth: Ee, align: qe, headerAlign: Le, fieldFormat: Te, editor: We, frozen: Qe, ...dt } = ne || {}, nt = Le ?? qe, xe = {
6567
- field: ae,
6571
+ const { id: oe, type: W, config: ne, getCompConfig: se, getCompType: ve, children: de, customLayout: he } = Y, { label: we, width: Me, minWidth: He, maxWidth: Ee, align: qe, headerAlign: Le, fieldFormat: Te, editor: We, frozen: Qe, ...ft } = ne || {}, nt = Le ?? qe, xe = {
6572
+ field: oe,
6568
6573
  title: we,
6569
6574
  width: Me,
6570
6575
  minWidth: He,
@@ -6574,16 +6579,16 @@ var Up = /* @__PURE__ */ me({
6574
6579
  _customLayout: he,
6575
6580
  _fieldFormat: Te,
6576
6581
  _compType: W,
6577
- _compConfig: { ...dt },
6582
+ _compConfig: { ...ft },
6578
6583
  _getCompConfig: se,
6579
6584
  _getCompType: ve,
6580
6585
  frozen: Qe
6581
- }, ft = typeof ve == "function", Ue = $c(W);
6582
- return (Ue || ft) && (xe.editor = Ue || "j-comp-editor", S = !0), ft ? xe.customRender = Ft : (W === "j-switch" && (xe.customRender = ie), W === "j-rate" && (xe.customRender = _e), W === "j-slider" && (xe.customRender = pt), (W === "j-tag" || W === "j-input-tag") && (xe.customRender = Qt), W === "j-icon" && (xe.customRender = an)), W === "link" && (xe.customLayout = vt), (W === "j-layerform" || W === "j-layer-form") && (xe.customLayout = $t), W === "checkbox" && (xe.customLayout = yn), W === "j-switch" && (xe.minWidth = xe.minWidth || Me, xe.maxWidth = xe.maxWidth || Me), he && (xe.customLayout = mn), xe.fieldFormat = zn, de && de.length > 0 && (xe.columns = Dn(de)), xe;
6586
+ }, ht = typeof ve == "function", Ue = $c(W);
6587
+ return (Ue || ht) && (xe.editor = Ue || "j-comp-editor", S = !0), ht ? xe.customRender = Ft : (W === "j-switch" && (xe.customRender = ie), W === "j-rate" && (xe.customRender = _e), W === "j-slider" && (xe.customRender = at), (W === "j-tag" || W === "j-input-tag") && (xe.customRender = Qt), W === "j-icon" && (xe.customRender = an)), W === "link" && (xe.customLayout = vt), (W === "j-layerform" || W === "j-layer-form") && (xe.customLayout = $t), W === "checkbox" && (xe.customLayout = yn), W === "j-switch" && (xe.minWidth = xe.minWidth || Me, xe.maxWidth = xe.maxWidth || Me), he && (xe.customLayout = mn), xe.fieldFormat = zn, de && de.length > 0 && (xe.columns = Dn(de)), xe;
6583
6588
  });
6584
6589
  return o.isTree && $.length > 0 && ($[0].tree = !0), $;
6585
6590
  }, Nt = (I, $) => {
6586
- const Y = I.replace("#", ""), ae = parseInt(Y, 16), W = Math.min(255, Math.max(0, (ae >> 16) + $)), ne = Math.min(255, Math.max(0, (ae >> 8 & 255) + $)), se = Math.min(255, Math.max(0, (ae & 255) + $));
6591
+ const Y = I.replace("#", ""), oe = parseInt(Y, 16), W = Math.min(255, Math.max(0, (oe >> 16) + $)), ne = Math.min(255, Math.max(0, (oe >> 8 & 255) + $)), se = Math.min(255, Math.max(0, (oe & 255) + $));
6587
6592
  return `#${(W << 16 | ne << 8 | se).toString(16).padStart(6, "0")}`;
6588
6593
  }, zt = () => {
6589
6594
  let I = T;
@@ -6591,11 +6596,11 @@ var Up = /* @__PURE__ */ me({
6591
6596
  let $ = Sn(String(I)) || 0;
6592
6597
  return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
6593
6598
  }, Va = (I) => {
6594
- let $ = (Y, ae, W, ne) => {
6595
- const se = ne.getRecordIndexByCell(ae, W);
6599
+ let $ = (Y, oe, W, ne) => {
6600
+ const se = ne.getRecordIndexByCell(oe, W);
6596
6601
  return o.isPage && !I ? At.value + se + 1 : se + 1;
6597
6602
  };
6598
- return I && ($ = (Y, ae, W, ne) => ne.getRecordIndexByCell(ae, W) + 1), {
6603
+ return I && ($ = (Y, oe, W, ne) => ne.getRecordIndexByCell(oe, W) + 1), {
6599
6604
  field: "__sequence__",
6600
6605
  title: "序号",
6601
6606
  width: A,
@@ -6628,9 +6633,9 @@ var Up = /* @__PURE__ */ me({
6628
6633
  field: "_checkState",
6629
6634
  cellType: "checkbox",
6630
6635
  headerType: "checkbox",
6631
- disable: ({ col: $, row: Y, table: ae }) => {
6636
+ disable: ({ col: $, row: Y, table: oe }) => {
6632
6637
  if (Y === 0) return !1;
6633
- const W = ae?.getCellOriginRecord?.($, Y);
6638
+ const W = oe?.getCellOriginRecord?.($, Y);
6634
6639
  return Na(W);
6635
6640
  },
6636
6641
  headerStyle: { textAlign: "center" },
@@ -6663,12 +6668,12 @@ var Up = /* @__PURE__ */ me({
6663
6668
  $.push(Y);
6664
6669
  return;
6665
6670
  }
6666
- const ae = be(Y.columns), W = [], ne = [], se = [];
6667
- if (ae.forEach((ve) => {
6671
+ const oe = be(Y.columns), W = [], ne = [], se = [];
6672
+ if (oe.forEach((ve) => {
6668
6673
  const de = le(ve);
6669
6674
  de === "left" ? W.push(ve) : de === "right" ? ne.push(ve) : se.push(ve);
6670
6675
  }), (W.length > 0 ? 1 : 0) + (ne.length > 0 ? 1 : 0) + (se.length > 0 ? 1 : 0) <= 1) {
6671
- Y.columns = ae, $.push(Y);
6676
+ Y.columns = oe, $.push(Y);
6672
6677
  return;
6673
6678
  }
6674
6679
  W.length && $.push({
@@ -6684,16 +6689,16 @@ var Up = /* @__PURE__ */ me({
6684
6689
  }), $;
6685
6690
  }, Be = (I) => {
6686
6691
  let $ = 0, Y = 0;
6687
- return I.forEach((ae) => {
6688
- if (ae.columns && ae.columns.length > 0) {
6689
- const W = Be(ae.columns);
6692
+ return I.forEach((oe) => {
6693
+ if (oe.columns && oe.columns.length > 0) {
6694
+ const W = Be(oe.columns);
6690
6695
  $ += W.left, Y += W.right;
6691
- } else ae.frozen === "left" ? $++ : ae.frozen === "right" && Y++;
6696
+ } else oe.frozen === "left" ? $++ : oe.frozen === "right" && Y++;
6692
6697
  }), {
6693
6698
  left: $,
6694
6699
  right: Y
6695
6700
  };
6696
- }, ze = (I, $, Y, ae) => {
6701
+ }, ze = (I, $, Y, oe) => {
6697
6702
  v = 0, _ = 0, S = !1;
6698
6703
  const W = {};
6699
6704
  let ne = Dn(I);
@@ -6708,7 +6713,7 @@ var Up = /* @__PURE__ */ me({
6708
6713
  ...se,
6709
6714
  ...de,
6710
6715
  ...ve
6711
- ], $ && (ne.unshift(Va(ae)), _++), Y.length > 0 && (ne.push(Oe(Y)), v++), S && (W.editCellTrigger = "click", W.keyboardOptions = {
6716
+ ], $ && (ne.unshift(Va(oe)), _++), Y.length > 0 && (ne.push(Oe(Y)), v++), S && (W.editCellTrigger = "click", W.keyboardOptions = {
6712
6717
  copySelected: !0,
6713
6718
  cutSelected: !0,
6714
6719
  pasteValueToCell: !0,
@@ -6723,7 +6728,7 @@ var Up = /* @__PURE__ */ me({
6723
6728
  columns: ne,
6724
6729
  option: W
6725
6730
  };
6726
- }, ot = () => {
6731
+ }, it = () => {
6727
6732
  const I = ze(o.columns, o.isShowNumber && !o.isTree, o.actions);
6728
6733
  ($n.value || o.rowDrag) && _++;
6729
6734
  const $ = {
@@ -6768,10 +6773,10 @@ var Up = /* @__PURE__ */ me({
6768
6773
  }, fe = (I) => !o.isTree || !o.parentKey || I.some(($) => Array.isArray($?.children) && $.children.length > 0) ? I : Yf(I, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), pe = (I) => {
6769
6774
  if (!m.value) return;
6770
6775
  b(), A = zt(), Wp();
6771
- const $ = ot(), Y = Ol();
6776
+ const $ = it(), Y = Ol();
6772
6777
  I && I.length >= 0 ? $.records = fe(I) : Y.length > 0 ? $.records = fe(Y) : ($.records = fe(o.records), i("update:modelValue", $.records)), y = new Ye.ListTable(m.value, $), y._getAppContext = () => a?.appContext;
6773
- const ae = a?.provides;
6774
- y._getProvides = () => ae, o.loadChildren && y.on(Ye.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (W) => {
6778
+ const oe = a?.provides;
6779
+ y._getProvides = () => oe, o.loadChildren && y.on(Ye.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (W) => {
6775
6780
  if (W.hierarchyState === Ye.TYPES.HierarchyState.expand && W.originData?.children === !0) {
6776
6781
  y.setLoadingHierarchyState(W.col, W.row);
6777
6782
  try {
@@ -6813,16 +6818,16 @@ var Up = /* @__PURE__ */ me({
6813
6818
  }), o.rowDrag && y.on("change_header_position", (W) => {
6814
6819
  Ot(W);
6815
6820
  }), x.value = y.getAllRowsHeight(), i("ready", y);
6816
- }, ut = () => {
6821
+ }, dt = () => {
6817
6822
  y && (y.release(), y = null);
6818
6823
  }, Ot = (I) => {
6819
6824
  if (!y) return;
6820
6825
  const { source: $, target: Y } = I || {};
6821
6826
  if ($ && Y && $.col === Y.col && $.row === Y.row) return;
6822
- const ae = Gt(y.records || []), W = $ && typeof y.getRecordByCell == "function" ? y.getRecordByCell($.col, $.row) : null, ne = Y && typeof y.getRecordByCell == "function" ? y.getRecordByCell(Y.col, Y.row) : null;
6823
- i("update:modelValue", ae), i("change", {
6827
+ const oe = Gt(y.records || []), W = $ && typeof y.getRecordByCell == "function" ? y.getRecordByCell($.col, $.row) : null, ne = Y && typeof y.getRecordByCell == "function" ? y.getRecordByCell(Y.col, Y.row) : null;
6828
+ i("update:modelValue", oe), i("change", {
6824
6829
  id: o.id,
6825
- value: Gt(ne || W || ae),
6830
+ value: Gt(ne || W || oe),
6826
6831
  data: {
6827
6832
  source: $,
6828
6833
  target: Y,
@@ -6830,7 +6835,7 @@ var Up = /* @__PURE__ */ me({
6830
6835
  targetRecord: ne ? Gt(ne) : null
6831
6836
  },
6832
6837
  formData: r,
6833
- tableData: ae,
6838
+ tableData: oe,
6834
6839
  type: "sort"
6835
6840
  });
6836
6841
  }, ke = () => y, wt = (I) => {
@@ -6838,14 +6843,14 @@ var Up = /* @__PURE__ */ me({
6838
6843
  y.setScrollTop(0), T = I.length;
6839
6844
  const $ = fe(I);
6840
6845
  if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
6841
- ut(), pe($);
6846
+ dt(), pe($);
6842
6847
  });
6843
6848
  else {
6844
6849
  const Y = zt();
6845
- Y !== A ? (A = Y, o.subColumns && o.subColumns.length > 0 ? (ut(), pe($)) : Yt($)) : y.setRecords($);
6850
+ Y !== A ? (A = Y, o.subColumns && o.subColumns.length > 0 ? (dt(), pe($)) : Yt($)) : y.setRecords($);
6846
6851
  }
6847
6852
  if (o.selectStateKey && o.isMultiple) {
6848
- const Y = I.filter((ae) => ae[o.selectStateKey] && !Na(ae));
6853
+ const Y = I.filter((oe) => oe[o.selectStateKey] && !Na(oe));
6849
6854
  en(Y), R.value = Y.length, i("selectRecordsChanged", Y), i("selectionChanged", {
6850
6855
  isMultiple: !0,
6851
6856
  selections: Y,
@@ -6858,7 +6863,7 @@ var Up = /* @__PURE__ */ me({
6858
6863
  Pt(() => {
6859
6864
  pe();
6860
6865
  }), Oo(() => {
6861
- ut(), Q(), document.removeEventListener("wheel", Je);
6866
+ dt(), Q(), document.removeEventListener("wheel", Je);
6862
6867
  });
6863
6868
  const Tt = H({
6864
6869
  get() {
@@ -6899,10 +6904,10 @@ var Up = /* @__PURE__ */ me({
6899
6904
  const he = {};
6900
6905
  ve.__checkState = !0, Ti(he, ve, ["children"]), I.push(he);
6901
6906
  } else console.warn("key is empty");
6902
- }, ae = (ve) => {
6907
+ }, oe = (ve) => {
6903
6908
  const de = ve?.children;
6904
6909
  !Array.isArray(de) || de.length === 0 || de.forEach((he) => {
6905
- Y(he), ae(he);
6910
+ Y(he), oe(he);
6906
6911
  });
6907
6912
  }, W = y.stateManager.checkedState, ne = y.records, se = (ve, de, he) => {
6908
6913
  const we = he[de[ve]];
@@ -6912,7 +6917,7 @@ var Up = /* @__PURE__ */ me({
6912
6917
  const he = ve?._checkState;
6913
6918
  if (he === "indeterminate" || he === !0) {
6914
6919
  const we = se(0, (de + "").split(",").map(Number), ne);
6915
- Y(we), he === !0 && ae(we);
6920
+ Y(we), he === !0 && oe(we);
6916
6921
  }
6917
6922
  }), I;
6918
6923
  }
@@ -6932,10 +6937,10 @@ var Up = /* @__PURE__ */ me({
6932
6937
  }
6933
6938
  return;
6934
6939
  }
6935
- const ae = (ve) => {
6940
+ const oe = (ve) => {
6936
6941
  ve.forEach((de) => {
6937
6942
  if (Array.isArray(de?.children) && de.children.length > 0) {
6938
- ae(de.children);
6943
+ oe(de.children);
6939
6944
  const he = de.children.filter((He) => !Na(He)), we = he.filter((He) => He?.[Y] === !0), Me = he.filter((He) => He?.[Y] === !1);
6940
6945
  he.length === 0 ? de[Y] = !1 : we.length == he.length ? de[Y] = !0 : Me.length == he.length ? de[Y] = !1 : de[Y] = "indeterminate", de[Y] === "indeterminate" && (de.hierarchyState = "expand");
6941
6946
  } else {
@@ -6944,10 +6949,10 @@ var Up = /* @__PURE__ */ me({
6944
6949
  }
6945
6950
  });
6946
6951
  }, W = y.records;
6947
- o.isTree ? ae(W) : W.forEach((ve) => {
6952
+ o.isTree ? oe(W) : W.forEach((ve) => {
6948
6953
  ve[Y] = !Na(ve) && $.has(Ct(ve));
6949
6954
  });
6950
- const ne = ot();
6955
+ const ne = it();
6951
6956
  ne.records = W, y.updateOption(ne, {
6952
6957
  clearColWidthCache: !1,
6953
6958
  clearRowHeightCache: !1
@@ -6965,7 +6970,7 @@ var Up = /* @__PURE__ */ me({
6965
6970
  en($);
6966
6971
  return;
6967
6972
  }
6968
- const Y = ot();
6973
+ const Y = it();
6969
6974
  Y.records = I || y.records, y.updateOption(Y, {
6970
6975
  clearColWidthCache: !1,
6971
6976
  clearRowHeightCache: !1
@@ -6985,14 +6990,14 @@ var Up = /* @__PURE__ */ me({
6985
6990
  $._i || ($._i = Nn());
6986
6991
  }), I;
6987
6992
  };
6988
- at(() => o.modelValue, () => {
6993
+ ot(() => o.modelValue, () => {
6989
6994
  wt(Ol());
6990
6995
  });
6991
6996
  const xd = H(() => {
6992
6997
  const I = ($) => {
6993
6998
  const Y = [];
6994
- return $.forEach((ae) => {
6995
- ae.children && ae.children.length > 0 ? Y.push(...I(ae.children)) : Y.push(ae);
6999
+ return $.forEach((oe) => {
7000
+ oe.children && oe.children.length > 0 ? Y.push(...I(oe.children)) : Y.push(oe);
6996
7001
  }), Y;
6997
7002
  };
6998
7003
  return I(o.columns);
@@ -7020,23 +7025,23 @@ var Up = /* @__PURE__ */ me({
7020
7025
  cancelButtonText: "取消",
7021
7026
  type: "warning"
7022
7027
  }).then(() => {
7023
- const $ = y.records, Y = new Set(I.map((W) => W._i)), ae = $.filter((W) => !Y.has(W._i));
7024
- Yt(ae), i("update:modelValue", ae), I.forEach((W) => {
7028
+ const $ = y.records, Y = new Set(I.map((W) => W._i)), oe = $.filter((W) => !Y.has(W._i));
7029
+ Yt(oe), i("update:modelValue", oe), I.forEach((W) => {
7025
7030
  i("change", {
7026
7031
  id: o.id,
7027
7032
  value: W,
7028
7033
  data: W,
7029
7034
  formData: r,
7030
- tableData: ae,
7035
+ tableData: oe,
7031
7036
  type: "delete"
7032
7037
  });
7033
7038
  }), R.value = 0;
7034
7039
  }).catch(() => {
7035
7040
  });
7036
7041
  };
7037
- return at(() => o.columns, (I, $) => {
7042
+ return ot(() => o.columns, (I, $) => {
7038
7043
  JSON.stringify(I) !== JSON.stringify($) && Yt();
7039
- }), at(() => [
7044
+ }), ot(() => [
7040
7045
  o.isTree,
7041
7046
  o.defaultExpandAll,
7042
7047
  o.isMultiple,
@@ -7057,7 +7062,7 @@ var Up = /* @__PURE__ */ me({
7057
7062
  ni.value
7058
7063
  ], () => {
7059
7064
  Yt();
7060
- }), at(() => o.actions, () => {
7065
+ }), ot(() => o.actions, () => {
7061
7066
  Yt();
7062
7067
  }, { deep: !0 }), $o({
7063
7068
  getTableData: Et,
@@ -7070,7 +7075,7 @@ var Up = /* @__PURE__ */ me({
7070
7075
  setSelection: en,
7071
7076
  renderTable: ho
7072
7077
  }), (I, $) => {
7073
- const Y = F("j-button"), ae = F("el-space"), W = F("el-pagination");
7078
+ const Y = F("j-button"), oe = F("el-space"), W = F("el-pagination");
7074
7079
  return k(), z("div", {
7075
7080
  class: Ve(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
7076
7081
  style: ce(p.value)
@@ -7084,7 +7089,7 @@ var Up = /* @__PURE__ */ me({
7084
7089
  class: Ve("j-block")
7085
7090
  }, null, 512)], 4),
7086
7091
  B("div", Gp, [e.isPage || !_d.value && (po.value || ni.value) ? (k(), z("div", Kp, [
7087
- Z(ae, null, {
7092
+ Z(oe, null, {
7088
7093
  default: q(() => [po.value ? (k(), N(Y, {
7089
7094
  key: 0,
7090
7095
  type: "link",
@@ -7256,7 +7261,7 @@ var Up = /* @__PURE__ */ me({
7256
7261
  _left: 0,
7257
7262
  _top: 0
7258
7263
  }), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
7259
- at(() => a.visible, (P) => {
7264
+ ot(() => a.visible, (P) => {
7260
7265
  g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Lt(() => {
7261
7266
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
7262
7267
  });
@@ -7332,7 +7337,7 @@ var Up = /* @__PURE__ */ me({
7332
7337
  je + C.value < 0 && (je = -C.value), typeof document < "u" && document.body && (w.value ? je + w.value + C.value > document.body.clientWidth && (je = document.body.clientWidth - w.value - C.value) : je + _.value + C.value > document.body.clientWidth && (je = document.body.clientWidth - _.value - C.value)), Ge + v.value < 0 && (Ge = -v.value), typeof window < "u" && (m.value ? Ge + m.value + v.value + 40 > window.innerHeight && (Ge = window.innerHeight - m.value - v.value - 40) : Ge + y.value + v.value + 40 > window.innerHeight && (Ge = window.innerHeight - y.value - v.value - 40)), p.left = je, p.top = Ge;
7333
7338
  }
7334
7339
  }, K = (P) => {
7335
- const Pe = b.value.offsetLeft, Je = b.value.offsetTop, je = b.value.clientWidth, Ge = b.value.clientHeight, oe = Ge - x.value, Oe = b.value.scrollTop;
7340
+ const Pe = b.value.offsetLeft, Je = b.value.offsetTop, je = b.value.clientWidth, Ge = b.value.clientHeight, ae = Ge - x.value, Oe = b.value.scrollTop;
7336
7341
  if (P.clientX > Pe + je - 10 && Oe + P.clientY > Je + Ge - 10 || Oe + P.clientY < Je + 5 && Pe + 10 > P.clientX) b.value.style.cursor = "se-resize";
7337
7342
  else if (Pe + 10 > P.clientX && Oe + P.clientY > Je + Ge - 10 || P.clientX > Pe + je - 10 && Oe + P.clientY < Je + 5) b.value.style.cursor = "sw-resize";
7338
7343
  else if (P.clientX > Pe + je - 10 || Pe + 10 > P.clientX) b.value.style.cursor = "w-resize";
@@ -7342,9 +7347,9 @@ var Up = /* @__PURE__ */ me({
7342
7347
  return;
7343
7348
  }
7344
7349
  b.value.onmousedown = (ee) => {
7345
- const { clientX: ie } = ee, { clientY: _e } = ee, pt = p.left + C.value, tt = p.top + v.value;
7346
- p._left = p.left, p._top = p.top, m.value || (m.value = oe), w.value || (w.value = je), ie > pt + 10 && ie < pt + je - 10 && _e > tt + 5 && _e < tt + 47 || (typeof document < "u" && (document.onmousemove = function(Ze) {
7347
- Ze.preventDefault(), ie > pt && ie < pt + 10 && (ie > Ze.clientX && (w.value = je + (ie - Ze.clientX), p.left = p._left - (ie - Ze.clientX)), ie < Ze.clientX && w.value > a.minWidth && (w.value = je - (Ze.clientX - ie), p.left = p._left + Ze.clientX - ie)), ie > pt + je - 10 && ie < pt + je && (ie > Ze.clientX && w.value > a.minWidth && (w.value = je - (ie - Ze.clientX)), ie < Ze.clientX && typeof document < "u" && document.body && C.value + p.left + w.value < document.body.clientWidth && (w.value = je + (Ze.clientX - ie))), _e > tt && _e < tt + 5 && (_e > Ze.clientY && (m.value = oe + _e - Ze.clientY, p.top = p._top - (_e - Ze.clientY)), _e < Ze.clientY && m.value > a.minHeight && (m.value = oe - (Ze.clientY - _e), p.top = p._top + Ze.clientY - _e)), Oe + _e > tt + oe + 38 && Oe + _e < tt + oe + 48 && (_e > Ze.clientY && m.value > a.minHeight && (m.value = oe - (_e - Ze.clientY)), _e < Ze.clientY && typeof window < "u" && v.value + p.top + m.value + 48 < window.innerHeight && (m.value = oe + Ze.clientY - _e));
7350
+ const { clientX: ie } = ee, { clientY: _e } = ee, at = p.left + C.value, tt = p.top + v.value;
7351
+ p._left = p.left, p._top = p.top, m.value || (m.value = ae), w.value || (w.value = je), ie > at + 10 && ie < at + je - 10 && _e > tt + 5 && _e < tt + 47 || (typeof document < "u" && (document.onmousemove = function(Ze) {
7352
+ Ze.preventDefault(), ie > at && ie < at + 10 && (ie > Ze.clientX && (w.value = je + (ie - Ze.clientX), p.left = p._left - (ie - Ze.clientX)), ie < Ze.clientX && w.value > a.minWidth && (w.value = je - (Ze.clientX - ie), p.left = p._left + Ze.clientX - ie)), ie > at + je - 10 && ie < at + je && (ie > Ze.clientX && w.value > a.minWidth && (w.value = je - (ie - Ze.clientX)), ie < Ze.clientX && typeof document < "u" && document.body && C.value + p.left + w.value < document.body.clientWidth && (w.value = je + (Ze.clientX - ie))), _e > tt && _e < tt + 5 && (_e > Ze.clientY && (m.value = ae + _e - Ze.clientY, p.top = p._top - (_e - Ze.clientY)), _e < Ze.clientY && m.value > a.minHeight && (m.value = ae - (Ze.clientY - _e), p.top = p._top + Ze.clientY - _e)), Oe + _e > tt + ae + 38 && Oe + _e < tt + ae + 48 && (_e > Ze.clientY && m.value > a.minHeight && (m.value = ae - (_e - Ze.clientY)), _e < Ze.clientY && typeof window < "u" && v.value + p.top + m.value + 48 < window.innerHeight && (m.value = ae + Ze.clientY - _e));
7348
7353
  }), typeof document < "u" && (document.onmouseup = function() {
7349
7354
  typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
7350
7355
  }));
@@ -7356,7 +7361,7 @@ var Up = /* @__PURE__ */ me({
7356
7361
  showLoading: S,
7357
7362
  hideLoading: R
7358
7363
  }), (P, Pe) => {
7359
- const Je = F("j-button"), je = F("el-space"), Ge = F("el-step"), oe = F("el-steps"), Oe = F("el-dialog");
7364
+ const Je = F("j-button"), je = F("el-space"), Ge = F("el-step"), ae = F("el-steps"), Oe = F("el-dialog");
7360
7365
  return k(), N(Oe, {
7361
7366
  modelValue: r.value,
7362
7367
  "onUpdate:modelValue": Pe[0] || (Pe[0] = (ee) => r.value = ee),
@@ -7405,7 +7410,7 @@ var Up = /* @__PURE__ */ me({
7405
7410
  e.isStep ? (k(), z("div", ng, [B("div", { style: ce({
7406
7411
  maxWidth: `${200 * X.value.length}px`,
7407
7412
  width: "100%"
7408
- }) }, [Z(oe, {
7413
+ }) }, [Z(ae, {
7409
7414
  simple: "",
7410
7415
  active: D.value,
7411
7416
  space: 160,
@@ -7551,7 +7556,7 @@ var Up = /* @__PURE__ */ me({
7551
7556
  ],
7552
7557
  setup(e, { expose: t, emit: n }) {
7553
7558
  const a = e, o = n, { logoImg: i, t: r } = mt(), l = L(!1), c = L(!1), s = L(""), d = L(!1), f = L(!0), u = L(!1), h = L(!0), p = L(-1);
7554
- at(() => a.visible, (A) => {
7559
+ ot(() => a.visible, (A) => {
7555
7560
  l.value = A;
7556
7561
  }, { immediate: !0 });
7557
7562
  const g = H({
@@ -8870,14 +8875,14 @@ var Up = /* @__PURE__ */ me({
8870
8875
  if (!c) return "";
8871
8876
  const _e = li(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + ie;
8872
8877
  return `${c}/data/file/preview/${_h.createAesEncryption({ key: "jcode" }).encrypt(_e).replace(/\//g, "|")}?token=${s?.value}&&projectId=${d?.value.j_Id}`;
8873
- }, oe = () => {
8878
+ }, ae = () => {
8874
8879
  Pe.isDown === !1 && o && o("无权限下载!"), Vg(`${c}/data/file/${Pe.response?.fileId || Pe.id}?token=${s?.value}`);
8875
8880
  }, Oe = () => {
8876
8881
  if (n.limit !== -1 && n.limit <= m.value.length)
8877
8882
  return o && o(`当前限制选择${n.limit}个文件`), !1;
8878
8883
  };
8879
8884
  return (ee, ie) => {
8880
- const _e = F("j-icon"), pt = F("el-popover"), tt = F("j-button"), Ze = F("el-upload"), an = F("el-text"), Qt = F("j-dialog-full"), qt = Lo("loading");
8885
+ const _e = F("j-icon"), at = F("el-popover"), tt = F("j-button"), Ze = F("el-upload"), an = F("el-text"), Qt = F("j-dialog-full"), qt = Lo("loading");
8881
8886
  return k(), z("div", Jg, [
8882
8887
  Z(Ze, {
8883
8888
  action: "",
@@ -8896,7 +8901,7 @@ var Up = /* @__PURE__ */ me({
8896
8901
  "on-preview": je,
8897
8902
  "on-exceed": Oe
8898
8903
  }, {
8899
- default: q(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (k(), z("div", Gg, [Z(_e, { icon: "mdi:add" }), B("div", Kg, Se(J(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !Q.value ? (k(), N(pt, {
8904
+ default: q(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (k(), z("div", Gg, [Z(_e, { icon: "mdi:add" }), B("div", Kg, Se(J(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !Q.value ? (k(), N(at, {
8900
8905
  key: 1,
8901
8906
  placement: "bottom",
8902
8907
  title: e.isUploadImg ? J(l)("图片列表") : J(l)("文件列表")
@@ -8962,7 +8967,7 @@ var Up = /* @__PURE__ */ me({
8962
8967
  title: `${J(l)("文件预览")}【${U.value}】`,
8963
8968
  "destroy-on-close": !0,
8964
8969
  "has-btns": !!J(c),
8965
- onOk: oe
8970
+ onOk: ae
8966
8971
  }, {
8967
8972
  default: q(() => [Ce.value && K.value ? (k(), z("div", Xg, [B("img", {
8968
8973
  width: "100%",
@@ -9028,7 +9033,7 @@ var Up = /* @__PURE__ */ me({
9028
9033
  r.value?.setOption(p, a.notMerge);
9029
9034
  }, a.updateDelay) : r.value.setOption(p, a.notMerge));
9030
9035
  };
9031
- return at(() => a.option, (p) => {
9036
+ return ot(() => a.option, (p) => {
9032
9037
  d(p);
9033
9038
  }, { deep: !0 }), Pt(() => {
9034
9039
  s();
@@ -9527,7 +9532,7 @@ var Up = /* @__PURE__ */ me({
9527
9532
  let v = y.value;
9528
9533
  return n.thousandSeparator && (v = Nf(v)), n.isChinese && (v = Vf(v)), v;
9529
9534
  });
9530
- return at(y, (v) => {
9535
+ return ot(y, (v) => {
9531
9536
  x("update:modelValue", v), x("change", {
9532
9537
  value: v,
9533
9538
  data: C.value
@@ -10045,9 +10050,9 @@ var Up = /* @__PURE__ */ me({
10045
10050
  const n = e, a = H(() => ({ ...n })), o = L(), i = L(null), r = H(() => n.options);
10046
10051
  Pt(() => {
10047
10052
  n.animation && l();
10048
- }), at(() => n.decimals, () => {
10053
+ }), ot(() => n.decimals, () => {
10049
10054
  i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
10050
- }, { deep: !0 }), at(() => n.endValue, (u) => {
10055
+ }, { deep: !0 }), ot(() => n.endValue, (u) => {
10051
10056
  i.value && i.value.update && i.value.update(u);
10052
10057
  });
10053
10058
  const l = () => {
@@ -10178,7 +10183,7 @@ var Up = /* @__PURE__ */ me({
10178
10183
  n.open?.(i.value);
10179
10184
  }, 200);
10180
10185
  };
10181
- return at(() => n.modelValue, (d) => {
10186
+ return ot(() => n.modelValue, (d) => {
10182
10187
  i.value = d;
10183
10188
  }, { immediate: !0 }), (d, f) => {
10184
10189
  const u = F("j-button"), h = F("j-layer");
@@ -10903,11 +10908,11 @@ var Up = /* @__PURE__ */ me({
10903
10908
  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 });
10904
10909
  };
10905
10910
  let p = null;
10906
- return at(() => a.modelValue, (g) => {
10911
+ return ot(() => a.modelValue, (g) => {
10907
10912
  g !== r.value && (r.value = g, l && f(), setTimeout(() => {
10908
10913
  l && a.isScrollToBottom && u();
10909
10914
  }));
10910
- }), at(() => a.mode, () => {
10915
+ }), ot(() => a.mode, () => {
10911
10916
  l && f();
10912
10917
  }), Pt(async () => {
10913
10918
  await Lt(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
@@ -11069,7 +11074,7 @@ var Up = /* @__PURE__ */ me({
11069
11074
  startTime: 0,
11070
11075
  toLeft: !1
11071
11076
  }), r = Ra("wrapperRef"), l = Ra("barRef"), c = Ra("contentRef"), s = Ra("actionRef");
11072
- at(() => i.isPassing, (x) => {
11077
+ ot(() => i.isPassing, (x) => {
11073
11078
  if (x) {
11074
11079
  const { endTime: w, startTime: m } = i;
11075
11080
  a("success", {
@@ -11486,9 +11491,9 @@ var Up = /* @__PURE__ */ me({
11486
11491
  }
11487
11492
  c.value = l(n.menus, g);
11488
11493
  };
11489
- at(() => n.menus, () => {
11494
+ ot(() => n.menus, () => {
11490
11495
  d();
11491
- }, { immediate: !0 }), at(() => n.mode, () => {
11496
+ }, { immediate: !0 }), ot(() => n.mode, () => {
11492
11497
  d();
11493
11498
  });
11494
11499
  const f = () => {
@@ -11500,9 +11505,9 @@ var Up = /* @__PURE__ */ me({
11500
11505
  }
11501
11506
  }
11502
11507
  }, u = H(() => s.find((g) => g.value === i.value));
11503
- at(() => n.activeId, () => {
11508
+ ot(() => n.activeId, () => {
11504
11509
  i.value = n.activeId || "", f();
11505
- }), at(() => n.collapsed, () => {
11510
+ }), ot(() => n.collapsed, () => {
11506
11511
  if (n.collapsed) c.value = l(n.menus, []);
11507
11512
  else {
11508
11513
  const g = [];
@@ -12385,9 +12390,9 @@ var Up = /* @__PURE__ */ me({
12385
12390
  ...ke,
12386
12391
  children: C(ke.children)
12387
12392
  } : ke);
12388
- const ut = new Map(fe.map((ke) => [ke.id, ke])), Ot = [];
12393
+ const dt = new Map(fe.map((ke) => [ke.id, ke])), Ot = [];
12389
12394
  return pe.forEach((ke) => {
12390
- const wt = ut.get(ke.id);
12395
+ const wt = dt.get(ke.id);
12391
12396
  if (wt) {
12392
12397
  if (ke.display) {
12393
12398
  let Et = wt;
@@ -12396,10 +12401,10 @@ var Up = /* @__PURE__ */ me({
12396
12401
  children: C(wt.children, ke.children)
12397
12402
  }), Ot.push(Et);
12398
12403
  }
12399
- ut.delete(ke.id);
12404
+ dt.delete(ke.id);
12400
12405
  }
12401
12406
  }), fe.forEach((ke) => {
12402
- if (ut.has(ke.id) && ke.config?.display !== !1) {
12407
+ if (dt.has(ke.id) && ke.config?.display !== !1) {
12403
12408
  let wt = ke;
12404
12409
  ke.children && ke.children.length > 0 && (wt = {
12405
12410
  ...ke,
@@ -12407,7 +12412,7 @@ var Up = /* @__PURE__ */ me({
12407
12412
  }), Ot.push(wt);
12408
12413
  }
12409
12414
  }), Ot;
12410
- }, v = H(() => C(i.columns, oe.value)), _ = H(() => Gf(i.columns, (fe) => fe.config.label)), S = L(""), R = H(() => _.value.some((fe) => fe.config?.filter?.isSearchKeyword)), T = L(), A = L(!0), j = L([]), D = H(() => A.value ? "搜索全部" : `搜索范围:${_.value.filter((fe) => j.value.includes(fe.id)).map((fe) => fe.config?.label).join("、")}`), O = () => {
12415
+ }, v = H(() => C(i.columns, ae.value)), _ = H(() => Gf(i.columns, (fe) => fe.config.label)), S = L(""), R = H(() => _.value.some((fe) => fe.config?.filter?.isSearchKeyword)), T = L(), A = L(!0), j = L([]), D = H(() => A.value ? "搜索全部" : `搜索范围:${_.value.filter((fe) => j.value.includes(fe.id)).map((fe) => fe.config?.label).join("、")}`), O = () => {
12411
12416
  T.value.init();
12412
12417
  }, M = L(), E = L(!1), V = L(!1), X = L(!1), ue = L([]), Ce = L("and"), U = L(), K = L(!1), Q = L([]), P = () => {
12413
12418
  U.value.init(Q.value);
@@ -12415,11 +12420,11 @@ var Up = /* @__PURE__ */ me({
12415
12420
  Q.value = fe, K.value = !1, Ft();
12416
12421
  }, Je = () => {
12417
12422
  Q.value = [], Ft();
12418
- }, je = L(), Ge = L(!1), oe = L(), Oe = H(() => oe.value != null), ee = () => {
12423
+ }, je = L(), Ge = L(!1), ae = L(), Oe = H(() => ae.value != null), ee = () => {
12419
12424
  je.value?.init();
12420
12425
  }, ie = (fe) => {
12421
- oe.value = fe, Ge.value = !1;
12422
- }, _e = L(!1), pt = () => {
12426
+ ae.value = fe, Ge.value = !1;
12427
+ }, _e = L(!1), at = () => {
12423
12428
  _e.value = !_e.value;
12424
12429
  }, tt = () => {
12425
12430
  p.value = [], l.value && (l.value.setSelection?.([]), g.value && (g.value = !1, l.value.setRecords(c)));
@@ -12445,10 +12450,10 @@ var Up = /* @__PURE__ */ me({
12445
12450
  config: { type: "text" },
12446
12451
  click: tt
12447
12452
  }
12448
- ], pe = i.batchButtons.map((ut) => ({
12449
- ...ut,
12453
+ ], pe = i.batchButtons.map((dt) => ({
12454
+ ...dt,
12450
12455
  click: () => {
12451
- ut.click && ut.click({
12456
+ dt.click && dt.click({
12452
12457
  data: p.value,
12453
12458
  openLayer: o
12454
12459
  });
@@ -12467,9 +12472,9 @@ var Up = /* @__PURE__ */ me({
12467
12472
  }), qt.value && $t.observe(qt.value);
12468
12473
  }), Oo(() => {
12469
12474
  $t?.disconnect();
12470
- }), at(() => Qt.value, () => {
12475
+ }), ot(() => Qt.value, () => {
12471
12476
  Lt(Rt);
12472
- }, { deep: !0 }), at(_e, () => {
12477
+ }, { deep: !0 }), ot(_e, () => {
12473
12478
  Lt(Rt);
12474
12479
  });
12475
12480
  const yn = H(() => {
@@ -12477,7 +12482,7 @@ var Up = /* @__PURE__ */ me({
12477
12482
  if (fe.length === 0) return [];
12478
12483
  const pe = vt.value;
12479
12484
  if (pe <= 0) return fe;
12480
- const ut = Math.max(0, pe - 4), Ot = (Ct, en) => Ct.groupId || `__auto_${en}`, ke = (Ct) => {
12485
+ const dt = Math.max(0, pe - 4), Ot = (Ct, en) => Ct.groupId || `__auto_${en}`, ke = (Ct) => {
12481
12486
  if (Ct.config?.notLabel === !0 || !Ct.label) return 28;
12482
12487
  const en = 24, En = Sn(Ct.label || "") || 0, Yt = Ct.config?.icon ? 18 : 0;
12483
12488
  return Math.ceil(En + en + Yt + 2);
@@ -12488,7 +12493,7 @@ var Up = /* @__PURE__ */ me({
12488
12493
  const po = Ot(Yt, ho);
12489
12494
  En !== null && (en += po === En ? -1 : 8), en += ke(Yt), En = po;
12490
12495
  }), en;
12491
- })(fe) <= ut) return fe;
12496
+ })(fe) <= dt) return fe;
12492
12497
  const Et = {
12493
12498
  id: "__table_panel_more__",
12494
12499
  label: "",
@@ -12504,7 +12509,7 @@ var Up = /* @__PURE__ */ me({
12504
12509
  let Yt = bn;
12505
12510
  At !== null && (Yt += En === At ? -1 : 8), Yt += ke(en);
12506
12511
  const ho = fe.length - (Ct + 1) > 0 ? (Yt > 0 ? 8 : 0) + Tt : 0;
12507
- if (Yt + ho <= ut)
12512
+ if (Yt + ho <= dt)
12508
12513
  Ut.push(en), bn = Yt, At = En;
12509
12514
  else break;
12510
12515
  }
@@ -12522,13 +12527,13 @@ var Up = /* @__PURE__ */ me({
12522
12527
  const pe = {};
12523
12528
  fe && (mn = fe), mn && (pe.query = mn);
12524
12529
  try {
12525
- const ut = {};
12526
- ut.rel = Ce.value, ut.cond = (M.value?.getSearchFields?.() || ue.value).filter((ke) => ke.value !== void 0 && ke.value !== null && ke.value !== "" || ["empty", "not_empty"].includes(ke.method)).map((ke) => ({
12530
+ const dt = {};
12531
+ dt.rel = Ce.value, dt.cond = (M.value?.getSearchFields?.() || ue.value).filter((ke) => ke.value !== void 0 && ke.value !== null && ke.value !== "" || ["empty", "not_empty"].includes(ke.method)).map((ke) => ({
12527
12532
  field: ke.field,
12528
12533
  method: ke.method,
12529
12534
  value: ke.value,
12530
12535
  type: ke.type
12531
- })), ut.cond.length > 0 ? X.value = !0 : X.value = !1, pe.filter = ut;
12536
+ })), dt.cond.length > 0 ? X.value = !0 : X.value = !1, pe.filter = dt;
12532
12537
  const Ot = Q.value.map((ke) => ke.value + " " + ke.sord).join(",");
12533
12538
  if (S.value && (pe.keyword = {
12534
12539
  value: S.value,
@@ -12571,13 +12576,13 @@ var Up = /* @__PURE__ */ me({
12571
12576
  await Nt();
12572
12577
  }, G = (fe) => {
12573
12578
  r("ready", fe);
12574
- }, ge = ({ selections: fe, record: pe, checked: ut, isMultiple: Ot }) => {
12579
+ }, ge = ({ selections: fe, record: pe, checked: dt, isMultiple: Ot }) => {
12575
12580
  let ke = [];
12576
12581
  if (!i.isMultiple) {
12577
12582
  p.value = fe, r("select", {
12578
12583
  selections: fe,
12579
12584
  record: pe,
12580
- checked: ut,
12585
+ checked: dt,
12581
12586
  isMultiple: Ot
12582
12587
  });
12583
12588
  return;
@@ -12594,7 +12599,7 @@ var Up = /* @__PURE__ */ me({
12594
12599
  p.value = ke, r("select", {
12595
12600
  selections: ke,
12596
12601
  record: pe,
12597
- checked: ut,
12602
+ checked: dt,
12598
12603
  isMultiple: Ot
12599
12604
  }), g.value && ke.length === 0 ? (g.value = !1, l.value && l.value.setRecords(c)) : g.value && ke.length > 0 && l.value && (l.value.setRecords(ke), l.value.setSelection?.(ke));
12600
12605
  }, re = (fe) => {
@@ -12621,7 +12626,7 @@ var Up = /* @__PURE__ */ me({
12621
12626
  },
12622
12627
  getTableRef: ze
12623
12628
  }), (fe, pe) => {
12624
- const ut = F("j-buttons"), Ot = F("j-icon"), ke = F("el-popover"), wt = F("el-tooltip"), Et = F("el-input"), Tt = F("j-button"), Ut = F("el-pagination"), bn = F("j-table"), At = Lo("loading");
12629
+ const dt = F("j-buttons"), Ot = F("j-icon"), ke = F("el-popover"), wt = F("el-tooltip"), Et = F("el-input"), Tt = F("j-button"), Ut = F("el-pagination"), bn = F("j-table"), At = Lo("loading");
12625
12630
  return k(), z("div", { class: Ve(["j-table-panel-wrapper", {
12626
12631
  fullscreen: _e.value,
12627
12632
  "no-padding": e.noPadding || _e.value
@@ -12629,7 +12634,7 @@ var Up = /* @__PURE__ */ me({
12629
12634
  ref_key: "topLeftRef",
12630
12635
  ref: qt,
12631
12636
  class: "j-table-panel-top-left"
12632
- }, [Z(ut, { list: yn.value }, null, 8, ["list"])], 512), B("div", Km, [
12637
+ }, [Z(dt, { list: yn.value }, null, 8, ["list"])], 512), B("div", Km, [
12633
12638
  R.value && !w.value ? (k(), z("div", qm, [Z(Et, {
12634
12639
  modelValue: S.value,
12635
12640
  "onUpdate:modelValue": pe[2] || (pe[2] = (De) => S.value = De),
@@ -12768,7 +12773,7 @@ var Up = /* @__PURE__ */ me({
12768
12773
  ref_key: "columnPanelRef",
12769
12774
  ref: je,
12770
12775
  columns: e.columns,
12771
- "column-config": oe.value,
12776
+ "column-config": ae.value,
12772
12777
  onSave: ie
12773
12778
  }, null, 8, ["columns", "column-config"])]),
12774
12779
  _: 1
@@ -12795,7 +12800,7 @@ var Up = /* @__PURE__ */ me({
12795
12800
  default: q(() => [Z(Tt, {
12796
12801
  type: "text",
12797
12802
  icon: _e.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
12798
- onClick: pt
12803
+ onClick: at
12799
12804
  }, null, 8, ["icon"])]),
12800
12805
  _: 1
12801
12806
  }, 8, ["content"])) : te("", !0)
@@ -13123,7 +13128,7 @@ var Up = /* @__PURE__ */ me({
13123
13128
  }, D = (O, M, E) => a.allowDrop ? a.allowDrop(O, M, E) : !(E == "inner" && !M.data.canInner);
13124
13129
  return Pt(async () => {
13125
13130
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
13126
- }), at(() => a.dataCode || a.dataType, () => {
13131
+ }), ot(() => a.dataCode || a.dataType, () => {
13127
13132
  b();
13128
13133
  }), t({
13129
13134
  refreshData: b,
@@ -13189,7 +13194,7 @@ var Up = /* @__PURE__ */ me({
13189
13194
  key: Ge,
13190
13195
  disabled: je.disabled,
13191
13196
  divided: je.divided,
13192
- onClick: Xt((oe) => T(je, P.data), ["stop"])
13197
+ onClick: Xt((ae) => T(je, P.data), ["stop"])
13193
13198
  }, {
13194
13199
  default: q(() => [B("div", {
13195
13200
  class: "j-flex-item",
@@ -13468,24 +13473,24 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13468
13473
  ge.push(Be);
13469
13474
  const { children: ze } = be;
13470
13475
  Ti(Be, be, ["children", "config"]), Ti(Be.config, be.config || {}, []), a.config.size && Be.config.size === void 0 && (Be.config.size = a.config.size), R[be.id] && console.warn("有重复的组件id:" + be.id), R[be.id] = Be, a.readonly === !0 && (Be.config.readonly = !0);
13471
- let ot = !1, fe;
13472
- le !== "" && P(le) && (ot = !0, Be.config.parentTableId = le, fe = R[le]?.config?.table);
13476
+ let it = !1, fe;
13477
+ le !== "" && P(le) && (it = !0, Be.config.parentTableId = le, fe = R[le]?.config?.table);
13473
13478
  const pe = Be.config || {};
13474
13479
  if (Q(be.id))
13475
- !re && ot === !1 && (pe?.defaultValue === 0 ? v[be.id] = pe?.defaultValue : v[be.id] = pe?.defaultValue || void 0), pe.table && pe.field ? T[`${pe.table}_${pe.field}`.toLowerCase()] = be.id : pe.field && (ot ? T[`${fe}_${pe.field}`.toLowerCase()] = be.id : T[`${pe.field}`.toLowerCase()] = be.id);
13476
- else if (ot && pe.field) T[`${fe}_${pe.field}`.toLowerCase()] = be.id;
13480
+ !re && it === !1 && (pe?.defaultValue === 0 ? v[be.id] = pe?.defaultValue : v[be.id] = pe?.defaultValue || void 0), pe.table && pe.field ? T[`${pe.table}_${pe.field}`.toLowerCase()] = be.id : pe.field && (it ? T[`${fe}_${pe.field}`.toLowerCase()] = be.id : T[`${pe.field}`.toLowerCase()] = be.id);
13481
+ else if (it && pe.field) T[`${fe}_${pe.field}`.toLowerCase()] = be.id;
13477
13482
  else if (P(be.id))
13478
13483
  !re && !pe.isSubTable && (v[be.id] = []), pe.table && (T[pe.table.toLowerCase() || ""] = be.id), pe.isSubTable || j.push(Be);
13479
13484
  else if (pe?.defaultValue) v[be.id] = pe?.defaultValue;
13480
13485
  else if (be.type === "collapse" && pe?.isExpand) {
13481
- const ut = [];
13486
+ const dt = [];
13482
13487
  (pe?.groups || []).forEach((Ot) => {
13483
- ut.push(Ot.i);
13484
- }), v[be.id] = ut;
13488
+ dt.push(Ot.i);
13489
+ }), v[be.id] = dt;
13485
13490
  }
13486
13491
  ze && ze.length > 0 && Ge(ze, Be.children, re, Be.id);
13487
13492
  });
13488
- }, oe = async (G, ge) => {
13493
+ }, ae = async (G, ge) => {
13489
13494
  const re = ++E, le = b.value;
13490
13495
  b.value = !1, le && await Lt();
13491
13496
  const be = !!ge;
@@ -13505,8 +13510,8 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13505
13510
  const Be = {};
13506
13511
  Object.keys(be).forEach((ze) => {
13507
13512
  if (!re || re(ze, be[ze], G)) {
13508
- const ot = vt(ze);
13509
- if (ot?.type === "j-table") Be[ot?.id || ""] = Oe(ze, be[ze], re);
13513
+ const it = vt(ze);
13514
+ if (it?.type === "j-table") Be[it?.id || ""] = Oe(ze, be[ze], re);
13510
13515
  else {
13511
13516
  let fe = T[`${G}_${ze}`.toLowerCase()] || ze;
13512
13517
  fe = fe.indexOf(".") !== -1 ? fe.split(".")[1] : fe, Be[fe] = be[ze];
@@ -13549,14 +13554,14 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13549
13554
  const Be = be.config?.table, ze = be.config?.field;
13550
13555
  if (ge) ze ? re[ze] = G[le] : re[le] = G[le];
13551
13556
  else if (P(le)) {
13552
- const ot = [];
13557
+ const it = [];
13553
13558
  G[le].forEach((fe) => {
13554
- ot.push(_e(fe, !0));
13555
- }), re[Be || le] = ot;
13559
+ it.push(_e(fe, !0));
13560
+ }), re[Be || le] = it;
13556
13561
  } else Be && ze ? (re[Be] = re[Be] || {}, re[Be][ze] = G[le]) : ze && (re[ze] = G[le]);
13557
13562
  } else ge ? le !== "_X_ROW_KEY" && le !== "_isHover" && (re[le] = G[le]) : A[le] ? (re[A[le]] = re[A[le]] || {}, re[A[le]][le.replace(`${A[le]}_`, "")] = G[le]) : re[le] = G[le];
13558
13563
  }), re;
13559
- }, pt = (G = !0) => G ? _e(v) : v, tt = (G, ge, re, le) => {
13564
+ }, at = (G = !0) => G ? _e(v) : v, tt = (G, ge, re, le) => {
13560
13565
  let be = R[G];
13561
13566
  if (be == null) {
13562
13567
  const ze = G.split(".");
@@ -13575,22 +13580,22 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13575
13580
  }, Ze = (G, ge, re, le) => {
13576
13581
  const be = tt(G, ge, re, le);
13577
13582
  if (be.isNotRule !== !0 && be.display !== !1) {
13578
- const Be = be.rule || [], ze = Be.find((ot) => ot.type === "only");
13579
- return ze && (ze.validator = async (ot, fe) => {
13583
+ const Be = be.rule || [], ze = Be.find((it) => it.type === "only");
13584
+ return ze && (ze.validator = async (it, fe) => {
13580
13585
  if (fe && !await r({
13581
- table: ot.table,
13582
- key: ot.key,
13583
- keyName: ot.keyName,
13584
- field: ot.field,
13585
- keyValue: ot.getKeyValue ? ot.getKeyValue() : "",
13586
+ table: it.table,
13587
+ key: it.key,
13588
+ keyName: it.keyName,
13589
+ field: it.field,
13590
+ keyValue: it.getKeyValue ? it.getKeyValue() : "",
13586
13591
  value: fe,
13587
- paramNames: ot.paramNames,
13588
- getParams: ot.getParams,
13589
- withProjectId: ot.withProjectId,
13590
- getValue: ot.getValue,
13592
+ paramNames: it.paramNames,
13593
+ getParams: it.getParams,
13594
+ withProjectId: it.withProjectId,
13595
+ getValue: it.getValue,
13591
13596
  formData: v
13592
13597
  }))
13593
- throw h(ot.message) || h("数据值重复");
13598
+ throw h(it.message) || h("数据值重复");
13594
13599
  }), {
13595
13600
  rules: Be,
13596
13601
  myGridtableId: P(be._componentId) ? be._componentId : ""
@@ -13671,7 +13676,7 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13671
13676
  });
13672
13677
  }
13673
13678
  return re;
13674
- }, mn = async (G, ge) => p?.loadViewDataList ? await p?.loadViewDataList(G, ge, !1) : [], yt = (G) => (G.set = Rt, G.get = $t, G.setFormData = ee, G.getFormData = pt, G.getLabel = yn, G.getViewData = mn, G.getDateNow = (ge) => Xr(/* @__PURE__ */ new Date(), ge || "YYYY-MM-DD HH:mm:ss"), G.httpGet = l || (() => {
13679
+ }, mn = async (G, ge) => p?.loadViewDataList ? await p?.loadViewDataList(G, ge, !1) : [], yt = (G) => (G.set = Rt, G.get = $t, G.setFormData = ee, G.getFormData = at, G.getLabel = yn, G.getViewData = mn, G.getDateNow = (ge) => Xr(/* @__PURE__ */ new Date(), ge || "YYYY-MM-DD HH:mm:ss"), G.httpGet = l || (() => {
13675
13680
  console.log("当前状态不支持");
13676
13681
  }), G.httpPost = c || (() => {
13677
13682
  console.log("当前状态不支持");
@@ -13708,7 +13713,7 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13708
13713
  }, Dn = async () => {
13709
13714
  a.config?.codeAfterSave && await zt(JSON.parse(a.config?.codeAfterSave), { param: {} });
13710
13715
  };
13711
- a.schema && oe(a.schema);
13716
+ a.schema && ae(a.schema);
13712
13717
  const Nt = {}, zt = async (G, ge) => {
13713
13718
  const { run: re } = Vc({
13714
13719
  data: G,
@@ -13739,14 +13744,14 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13739
13744
  ge && (delete Nt[G], await zt(ge.data, ge.inputParams));
13740
13745
  }
13741
13746
  }), Oc({ contextType: "form" }), t({
13742
- init: oe,
13747
+ init: ae,
13743
13748
  reset: qt,
13744
13749
  validate: Qt,
13745
13750
  setValue: Rt,
13746
13751
  getValue: $t,
13747
13752
  getLabel: yn,
13748
13753
  setFormData: ee,
13749
- getFormData: pt,
13754
+ getFormData: at,
13750
13755
  afterSetData: zn,
13751
13756
  beforeSave: qn,
13752
13757
  afterSave: Dn
@@ -13885,7 +13890,7 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13885
13890
  emits: ["update:modelValue"],
13886
13891
  setup(e, { emit: t }) {
13887
13892
  const n = e, a = t, o = L("");
13888
- return at(() => n.modelValue, (i) => {
13893
+ return ot(() => n.modelValue, (i) => {
13889
13894
  i ? o.value = i : (o.value = Nn(), a("update:modelValue", o.value));
13890
13895
  }, { immediate: !0 }), (i, r) => {
13891
13896
  const l = F("el-input");
@@ -14056,7 +14061,7 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14056
14061
  ], g = L([]);
14057
14062
  a.modelValue && a.modelValue.length > 0 ? (g.value = a.modelValue || [], g.value.forEach((v) => {
14058
14063
  v._i || (v._i = Nn());
14059
- })) : (g.value = [], o("update:modelValue", g.value)), at(() => a.modelValue, (v) => {
14064
+ })) : (g.value = [], o("update:modelValue", g.value)), ot(() => a.modelValue, (v) => {
14060
14065
  g.value = a.modelValue || [], g.value = v || [], g.value.forEach((_) => {
14061
14066
  _._i || (_._i = Nn());
14062
14067
  });
@@ -14799,13 +14804,13 @@ var Vc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14799
14804
  selector: i.value,
14800
14805
  mode: "default"
14801
14806
  });
14802
- }), at(() => n.value, (f) => {
14807
+ }), ot(() => n.value, (f) => {
14803
14808
  const u = r.value;
14804
14809
  if (u) {
14805
14810
  const h = u.getHtml(), p = s(f);
14806
14811
  d(h) !== f && (c = !0, u.setHtml(p), c = !1);
14807
14812
  }
14808
- }), at(() => n.readonly, (f) => {
14813
+ }), ot(() => n.readonly, (f) => {
14809
14814
  const u = r.value;
14810
14815
  u && (f ? u.disable() : u.enable());
14811
14816
  }), Oo(() => {
@@ -15398,7 +15403,7 @@ no.prototype.isSelected = function(e) {
15398
15403
  };
15399
15404
  no.prototype.select = function(e, t) {
15400
15405
  var n = this._selectedElements, a = n.slice();
15401
- ct(e) || (e = e ? [e] : []);
15406
+ ut(e) || (e = e ? [e] : []);
15402
15407
  var o = this._canvas, i = o.getRootElement();
15403
15408
  e = e.filter(function(r) {
15404
15409
  return i === o.findRoot(r);
@@ -15443,7 +15448,7 @@ function Kc(e, t, n, a) {
15443
15448
  var i = o.context, r = i.canExecute, l = i.elements, c = (i.hints || {}).autoSelect;
15444
15449
  if (r) {
15445
15450
  if (c === !1) return;
15446
- ct(c) ? t.select(c) : t.select(l.filter(M0));
15451
+ ut(c) ? t.select(c) : t.select(l.filter(M0));
15447
15452
  }
15448
15453
  }), e.on("connect.end", 500, function(o) {
15449
15454
  var i = o.context.connection;
@@ -15512,7 +15517,7 @@ function Zc(e) {
15512
15517
  return e.altKey ? !1 : e.ctrlKey || e.metaKey;
15513
15518
  }
15514
15519
  function Qc(e, t) {
15515
- return e = ct(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
15520
+ return e = ut(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
15516
15521
  }
15517
15522
  var Ya = Math.round, as = "djs-drag-active";
15518
15523
  function _a(e) {
@@ -15597,7 +15602,7 @@ function eu(e, t, n, a) {
15597
15602
  }
15598
15603
  function x(m) {
15599
15604
  var y, C;
15600
- l("cleanup"), qc(), i.trapClick ? C = u : C = d, lt.unbind(document, "mousemove", s), lt.unbind(document, "dragstart", _a), lt.unbind(document, "selectstart", _a), lt.unbind(document, "mousedown", C, !0), lt.unbind(document, "mouseup", C, !0), lt.unbind(document, "keyup", f), lt.unbind(document, "touchstart", h, !0), lt.unbind(document, "touchcancel", b, !0), lt.unbind(document, "touchmove", s, !0), lt.unbind(document, "touchend", d, !0), e.off("element.hover", p), e.off("element.out", g), t.removeMarker(t.getRootElement(), as);
15605
+ l("cleanup"), qc(), i.trapClick ? C = u : C = d, st.unbind(document, "mousemove", s), st.unbind(document, "dragstart", _a), st.unbind(document, "selectstart", _a), st.unbind(document, "mousedown", C, !0), st.unbind(document, "mouseup", C, !0), st.unbind(document, "keyup", f), st.unbind(document, "touchstart", h, !0), st.unbind(document, "touchcancel", b, !0), st.unbind(document, "touchmove", s, !0), st.unbind(document, "touchend", d, !0), e.off("element.hover", p), e.off("element.out", g), t.removeMarker(t.getRootElement(), as);
15601
15606
  var v = i.payload.previousSelection;
15602
15607
  return m !== !1 && v && !n.get().length && c(v), y = i, i = null, y;
15603
15608
  }
@@ -15615,7 +15620,7 @@ function eu(e, t, n, a) {
15615
15620
  displacement: Ga(y, T),
15616
15621
  localStart: T,
15617
15622
  isTouch: j
15618
- }, v), v.manual || (j ? (lt.bind(document, "touchstart", h, !0), lt.bind(document, "touchcancel", b, !0), lt.bind(document, "touchmove", s, !0), lt.bind(document, "touchend", d, !0)) : (lt.bind(document, "mousemove", s), lt.bind(document, "dragstart", _a), lt.bind(document, "selectstart", _a), lt.bind(document, "mousedown", A, !0), lt.bind(document, "mouseup", A, !0)), lt.bind(document, "keyup", f), e.on("element.hover", p), e.on("element.out", g)), l("init"), v.autoActivate && s(m, !0);
15623
+ }, v), v.manual || (j ? (st.bind(document, "touchstart", h, !0), st.bind(document, "touchcancel", b, !0), st.bind(document, "touchmove", s, !0), st.bind(document, "touchend", d, !0)) : (st.bind(document, "mousemove", s), st.bind(document, "dragstart", _a), st.bind(document, "selectstart", _a), st.bind(document, "mousedown", A, !0), st.bind(document, "mouseup", A, !0)), st.bind(document, "keyup", f), e.on("element.hover", p), e.on("element.out", g)), l("init"), v.autoActivate && s(m, !0);
15619
15624
  }
15620
15625
  e.on("diagram.destroy", b), this.init = w, this.move = s, this.hover = p, this.out = g, this.end = d, this.cancel = b, this.context = function() {
15621
15626
  return i;
@@ -15708,7 +15713,7 @@ sa.prototype._cloneMarker = function(e, t, n, a, o = "djs-dragger") {
15708
15713
  ].join("-"), r = Zt("marker#" + n.id, e);
15709
15714
  e = e || this._canvas._svg;
15710
15715
  var l = r || _c(n);
15711
- l.id = i, ht(l).add(o);
15716
+ l.id = i, pt(l).add(o);
15712
15717
  var c = Zt(":scope > defs", e);
15713
15718
  c || (c = Ke("defs"), et(e, c)), et(c, l), $e(t, a, $0(l.id));
15714
15719
  };
@@ -15759,9 +15764,9 @@ function os(e, t, n) {
15759
15764
  return a && e.push(t), a;
15760
15765
  }
15761
15766
  function al(e, t, n) {
15762
- n = n || 0, ct(e) || (e = [e]), ye(e, function(a, o) {
15767
+ n = n || 0, ut(e) || (e = [e]), ye(e, function(a, o) {
15763
15768
  var i = t(a, o, n);
15764
- ct(i) && i.length && al(i, t, n + 1);
15769
+ ut(i) && i.length && al(i, t, n + 1);
15765
15770
  });
15766
15771
  }
15767
15772
  function N0(e, t, n) {
@@ -15798,7 +15803,7 @@ function U0(e, t, n) {
15798
15803
  };
15799
15804
  }
15800
15805
  function On(e, t) {
15801
- t = !!t, ct(e) || (e = [e]);
15806
+ t = !!t, ut(e) || (e = [e]);
15802
15807
  var n, a, o, i;
15803
15808
  return ye(e, function(r) {
15804
15809
  var l = r;
@@ -15932,7 +15937,7 @@ function au(e, t, n, a, o) {
15932
15937
  n.off("elements.changed", l);
15933
15938
  });
15934
15939
  }), this.start = function(c, s, d) {
15935
- ct(s) || (s = [s]);
15940
+ ut(s) || (s = [s]);
15936
15941
  var f = Pn(s, function(h) {
15937
15942
  return !nn(h);
15938
15943
  });
@@ -16372,10 +16377,10 @@ function ws(e, t, n, a, o, i) {
16372
16377
  ];
16373
16378
  }
16374
16379
  function lu(e, t, n, a, o, i, r, l, c, s) {
16375
- var d = Xn * 120 / 180, f = Xn / 180 * (+o || 0), u = [], h, p = rw(function(je, Ge, oe) {
16380
+ var d = Xn * 120 / 180, f = Xn / 180 * (+o || 0), u = [], h, p = rw(function(je, Ge, ae) {
16376
16381
  return {
16377
- x: je * jt.cos(oe) - Ge * jt.sin(oe),
16378
- y: je * jt.sin(oe) + Ge * jt.cos(oe)
16382
+ x: je * jt.cos(ae) - Ge * jt.sin(ae),
16383
+ y: je * jt.sin(ae) + Ge * jt.cos(ae)
16379
16384
  };
16380
16385
  });
16381
16386
  if (s)
@@ -16518,7 +16523,7 @@ function Ao(e) {
16518
16523
  y: Math.round(e.y)
16519
16524
  };
16520
16525
  }
16521
- function st(e) {
16526
+ function ct(e) {
16522
16527
  return {
16523
16528
  top: e.y,
16524
16529
  right: e.x + (e.width || 0),
@@ -16571,7 +16576,7 @@ function ra(e, t, n) {
16571
16576
  x: n,
16572
16577
  y: n
16573
16578
  });
16574
- var a = st(e), o = st(t), i = a.bottom + n.y <= o.top, r = a.left - n.x >= o.right, l = a.top - n.y >= o.bottom, c = a.right + n.x <= o.left, s = i ? "top" : l ? "bottom" : null, d = c ? "left" : r ? "right" : null;
16579
+ var a = ct(e), o = ct(t), i = a.bottom + n.y <= o.top, r = a.left - n.x >= o.right, l = a.top - n.y >= o.bottom, c = a.right + n.x <= o.left, s = i ? "top" : l ? "bottom" : null, d = c ? "left" : r ? "right" : null;
16575
16580
  return d && s ? s + "-" + d : d || s || "intersect";
16576
16581
  }
16577
16582
  function Mr(e, t, n) {
@@ -16704,7 +16709,7 @@ function du(e, t) {
16704
16709
  }), n.last = d), l.preventDefault();
16705
16710
  }
16706
16711
  function i(l) {
16707
- lt.unbind(document, "mousemove", o), lt.unbind(document, "mouseup", i), n = null, qc();
16712
+ st.unbind(document, "mousemove", o), st.unbind(document, "mouseup", i), n = null, qc();
16708
16713
  }
16709
16714
  function r(l) {
16710
16715
  if (!Fr(l.target, ".djs-draggable")) {
@@ -16713,7 +16718,7 @@ function du(e, t) {
16713
16718
  return n = {
16714
16719
  button: c,
16715
16720
  start: Za(l)
16716
- }, lt.bind(document, "mousemove", o), lt.bind(document, "mouseup", i), !0;
16721
+ }, st.bind(document, "mousemove", o), st.bind(document, "mouseup", i), !0;
16717
16722
  }
16718
16723
  }
16719
16724
  this.isActive = function() {
@@ -16801,7 +16806,7 @@ In.prototype._zoom = function(e, t, n) {
16801
16806
  };
16802
16807
  In.prototype.toggle = function(t) {
16803
16808
  var n = this._container, a = this._handleWheel, o = this._enabled;
16804
- return typeof t > "u" && (t = !o), o !== t && lt[t ? "bind" : "unbind"](n, "wheel", a, !1), this._enabled = t, t;
16809
+ return typeof t > "u" && (t = !o), o !== t && st[t ? "bind" : "unbind"](n, "wheel", a, !1), this._enabled = t, t;
16805
16810
  };
16806
16811
  In.prototype._init = function(e) {
16807
16812
  this.toggle(e);
@@ -16925,7 +16930,7 @@ bt.prototype._popAction = function() {
16925
16930
  };
16926
16931
  bt.prototype._markDirty = function(e) {
16927
16932
  const t = this._currentExecution;
16928
- e && (e = ct(e) ? e : [e], t.dirty = t.dirty.concat(e));
16933
+ e && (e = ut(e) ? e : [e], t.dirty = t.dirty.concat(e));
16929
16934
  };
16930
16935
  bt.prototype._executedAction = function(e, t) {
16931
16936
  const n = ++this._stackIdx;
@@ -16990,7 +16995,7 @@ function Bw(e, t) {
16990
16995
  }
16991
16996
  Kt.prototype.on = function(e, t, n, a, o, i) {
16992
16997
  if ((Bn(t) || It(t)) && (i = o, o = a, a = n, n = t, t = null), Bn(n) && (i = o, o = a, a = n, n = Pw), pn(o) && (i = o, o = !1), !Bn(a)) throw new Error("handlerFn must be a function");
16993
- ct(e) || (e = [e]);
16998
+ ut(e) || (e = [e]);
16994
16999
  var r = this._eventBus;
16995
17000
  ye(e, function(l) {
16996
17001
  var c = [
@@ -17690,11 +17695,11 @@ Ko.$inject = ["modeling"];
17690
17695
  Ko.prototype.execute = function(e) {
17691
17696
  var t = e.newSource, n = e.newTarget, a = e.connection, o = e.dockingOrPoints;
17692
17697
  if (!t && !n) throw new Error("newSource or newTarget required");
17693
- return ct(o) && (e.oldWaypoints = a.waypoints, a.waypoints = o), t && (e.oldSource = a.source, a.source = t), n && (e.oldTarget = a.target, a.target = n), a;
17698
+ return ut(o) && (e.oldWaypoints = a.waypoints, a.waypoints = o), t && (e.oldSource = a.source, a.source = t), n && (e.oldTarget = a.target, a.target = n), a;
17694
17699
  };
17695
17700
  Ko.prototype.postExecute = function(e) {
17696
17701
  var t = e.connection, n = e.newSource, a = e.newTarget, o = e.dockingOrPoints, i = e.hints || {}, r = {};
17697
- i.connectionStart && (r.connectionStart = i.connectionStart), i.connectionEnd && (r.connectionEnd = i.connectionEnd), i.layoutConnection !== !1 && (n && (!a || i.docking === "source") && (r.connectionStart = r.connectionStart || As(ct(o) ? o[0] : o)), a && (!n || i.docking === "target") && (r.connectionEnd = r.connectionEnd || As(ct(o) ? o[o.length - 1] : o)), i.newWaypoints && (r.waypoints = i.newWaypoints), this._modeling.layoutConnection(t, r));
17702
+ i.connectionStart && (r.connectionStart = i.connectionStart), i.connectionEnd && (r.connectionEnd = i.connectionEnd), i.layoutConnection !== !1 && (n && (!a || i.docking === "source") && (r.connectionStart = r.connectionStart || As(ut(o) ? o[0] : o)), a && (!n || i.docking === "target") && (r.connectionEnd = r.connectionEnd || As(ut(o) ? o[o.length - 1] : o)), i.newWaypoints && (r.waypoints = i.newWaypoints), this._modeling.layoutConnection(t, r));
17698
17703
  };
17699
17704
  Ko.prototype.revert = function(e) {
17700
17705
  var t = e.oldSource, n = e.oldTarget, a = e.oldWaypoints, o = e.connection;
@@ -17986,19 +17991,19 @@ bl.prototype.revert = function(e) {
17986
17991
  var t = e.connection;
17987
17992
  return t.waypoints = e.oldWaypoints, t;
17988
17993
  };
17989
- function it(e, t, n) {
17994
+ function rt(e, t, n) {
17990
17995
  this._eventBus = e, this._elementFactory = t, this._commandStack = n;
17991
17996
  var a = this;
17992
17997
  e.on("diagram.init", function() {
17993
17998
  a.registerHandlers(n);
17994
17999
  });
17995
18000
  }
17996
- it.$inject = [
18001
+ rt.$inject = [
17997
18002
  "eventBus",
17998
18003
  "elementFactory",
17999
18004
  "commandStack"
18000
18005
  ];
18001
- it.prototype.getHandlers = function() {
18006
+ rt.prototype.getHandlers = function() {
18002
18007
  return {
18003
18008
  "shape.append": Ui,
18004
18009
  "shape.create": da,
@@ -18023,12 +18028,12 @@ it.prototype.getHandlers = function() {
18023
18028
  "element.updateAttachment": Qi
18024
18029
  };
18025
18030
  };
18026
- it.prototype.registerHandlers = function(e) {
18031
+ rt.prototype.registerHandlers = function(e) {
18027
18032
  ye(this.getHandlers(), function(t, n) {
18028
18033
  e.registerHandler(n, t);
18029
18034
  });
18030
18035
  };
18031
- it.prototype.moveShape = function(e, t, n, a, o) {
18036
+ rt.prototype.moveShape = function(e, t, n, a, o) {
18032
18037
  typeof a == "object" && (o = a, a = null);
18033
18038
  var i = {
18034
18039
  shape: e,
@@ -18039,14 +18044,14 @@ it.prototype.moveShape = function(e, t, n, a, o) {
18039
18044
  };
18040
18045
  this._commandStack.execute("shape.move", i);
18041
18046
  };
18042
- it.prototype.updateAttachment = function(e, t) {
18047
+ rt.prototype.updateAttachment = function(e, t) {
18043
18048
  var n = {
18044
18049
  shape: e,
18045
18050
  newHost: t
18046
18051
  };
18047
18052
  this._commandStack.execute("element.updateAttachment", n);
18048
18053
  };
18049
- it.prototype.moveElements = function(e, t, n, a) {
18054
+ rt.prototype.moveElements = function(e, t, n, a) {
18050
18055
  a = a || {};
18051
18056
  var o = a.attach, i = n, r;
18052
18057
  o === !0 ? (r = n, i = n.parent) : o === !1 && (r = null);
@@ -18059,7 +18064,7 @@ it.prototype.moveElements = function(e, t, n, a) {
18059
18064
  };
18060
18065
  this._commandStack.execute("elements.move", l);
18061
18066
  };
18062
- it.prototype.moveConnection = function(e, t, n, a, o) {
18067
+ rt.prototype.moveConnection = function(e, t, n, a, o) {
18063
18068
  typeof a == "object" && (o = a, a = void 0);
18064
18069
  var i = {
18065
18070
  connection: e,
@@ -18070,14 +18075,14 @@ it.prototype.moveConnection = function(e, t, n, a, o) {
18070
18075
  };
18071
18076
  this._commandStack.execute("connection.move", i);
18072
18077
  };
18073
- it.prototype.layoutConnection = function(e, t) {
18078
+ rt.prototype.layoutConnection = function(e, t) {
18074
18079
  var n = {
18075
18080
  connection: e,
18076
18081
  hints: t || {}
18077
18082
  };
18078
18083
  this._commandStack.execute("connection.layout", n);
18079
18084
  };
18080
- it.prototype.createConnection = function(e, t, n, a, o, i) {
18085
+ rt.prototype.createConnection = function(e, t, n, a, o, i) {
18081
18086
  typeof n == "object" && (i = o, o = a, a = n, n = void 0), a = this._create("connection", a);
18082
18087
  var r = {
18083
18088
  source: e,
@@ -18089,7 +18094,7 @@ it.prototype.createConnection = function(e, t, n, a, o, i) {
18089
18094
  };
18090
18095
  return this._commandStack.execute("connection.create", r), r.connection;
18091
18096
  };
18092
- it.prototype.createShape = function(e, t, n, a, o) {
18097
+ rt.prototype.createShape = function(e, t, n, a, o) {
18093
18098
  typeof a != "number" && (o = a, a = void 0), o = o || {};
18094
18099
  var i = o.attach, r, l;
18095
18100
  e = this._create("shape", e), i ? (r = n.parent, l = n) : r = n;
@@ -18103,8 +18108,8 @@ it.prototype.createShape = function(e, t, n, a, o) {
18103
18108
  };
18104
18109
  return this._commandStack.execute("shape.create", c), c.shape;
18105
18110
  };
18106
- it.prototype.createElements = function(e, t, n, a, o) {
18107
- ct(e) || (e = [e]), typeof a != "number" && (o = a, a = void 0), o = o || {};
18111
+ rt.prototype.createElements = function(e, t, n, a, o) {
18112
+ ut(e) || (e = [e]), typeof a != "number" && (o = a, a = void 0), o = o || {};
18108
18113
  var i = {
18109
18114
  position: t,
18110
18115
  elements: e,
@@ -18114,7 +18119,7 @@ it.prototype.createElements = function(e, t, n, a, o) {
18114
18119
  };
18115
18120
  return this._commandStack.execute("elements.create", i), i.elements;
18116
18121
  };
18117
- it.prototype.createLabel = function(e, t, n, a) {
18122
+ rt.prototype.createLabel = function(e, t, n, a) {
18118
18123
  n = this._create("label", n);
18119
18124
  var o = {
18120
18125
  labelTarget: e,
@@ -18124,7 +18129,7 @@ it.prototype.createLabel = function(e, t, n, a) {
18124
18129
  };
18125
18130
  return this._commandStack.execute("label.create", o), o.shape;
18126
18131
  };
18127
- it.prototype.appendShape = function(e, t, n, a, o) {
18132
+ rt.prototype.appendShape = function(e, t, n, a, o) {
18128
18133
  o = o || {}, t = this._create("shape", t);
18129
18134
  var i = {
18130
18135
  source: e,
@@ -18137,11 +18142,11 @@ it.prototype.appendShape = function(e, t, n, a, o) {
18137
18142
  };
18138
18143
  return this._commandStack.execute("shape.append", i), i.shape;
18139
18144
  };
18140
- it.prototype.removeElements = function(e) {
18145
+ rt.prototype.removeElements = function(e) {
18141
18146
  var t = { elements: e };
18142
18147
  this._commandStack.execute("elements.delete", t);
18143
18148
  };
18144
- it.prototype.distributeElements = function(e, t, n) {
18149
+ rt.prototype.distributeElements = function(e, t, n) {
18145
18150
  var a = {
18146
18151
  groups: e,
18147
18152
  axis: t,
@@ -18149,21 +18154,21 @@ it.prototype.distributeElements = function(e, t, n) {
18149
18154
  };
18150
18155
  this._commandStack.execute("elements.distribute", a);
18151
18156
  };
18152
- it.prototype.removeShape = function(e, t) {
18157
+ rt.prototype.removeShape = function(e, t) {
18153
18158
  var n = {
18154
18159
  shape: e,
18155
18160
  hints: t || {}
18156
18161
  };
18157
18162
  this._commandStack.execute("shape.delete", n);
18158
18163
  };
18159
- it.prototype.removeConnection = function(e, t) {
18164
+ rt.prototype.removeConnection = function(e, t) {
18160
18165
  var n = {
18161
18166
  connection: e,
18162
18167
  hints: t || {}
18163
18168
  };
18164
18169
  this._commandStack.execute("connection.delete", n);
18165
18170
  };
18166
- it.prototype.replaceShape = function(e, t, n) {
18171
+ rt.prototype.replaceShape = function(e, t, n) {
18167
18172
  var a = {
18168
18173
  oldShape: e,
18169
18174
  newData: t,
@@ -18171,14 +18176,14 @@ it.prototype.replaceShape = function(e, t, n) {
18171
18176
  };
18172
18177
  return this._commandStack.execute("shape.replace", a), a.newShape;
18173
18178
  };
18174
- it.prototype.alignElements = function(e, t) {
18179
+ rt.prototype.alignElements = function(e, t) {
18175
18180
  var n = {
18176
18181
  elements: e,
18177
18182
  alignment: t
18178
18183
  };
18179
18184
  this._commandStack.execute("elements.align", n);
18180
18185
  };
18181
- it.prototype.resizeShape = function(e, t, n, a) {
18186
+ rt.prototype.resizeShape = function(e, t, n, a) {
18182
18187
  var o = {
18183
18188
  shape: e,
18184
18189
  newBounds: t,
@@ -18187,7 +18192,7 @@ it.prototype.resizeShape = function(e, t, n, a) {
18187
18192
  };
18188
18193
  this._commandStack.execute("shape.resize", o);
18189
18194
  };
18190
- it.prototype.createSpace = function(e, t, n, a, o) {
18195
+ rt.prototype.createSpace = function(e, t, n, a, o) {
18191
18196
  var i = {
18192
18197
  delta: n,
18193
18198
  direction: a,
@@ -18197,7 +18202,7 @@ it.prototype.createSpace = function(e, t, n, a, o) {
18197
18202
  };
18198
18203
  this._commandStack.execute("spaceTool", i);
18199
18204
  };
18200
- it.prototype.updateWaypoints = function(e, t, n) {
18205
+ rt.prototype.updateWaypoints = function(e, t, n) {
18201
18206
  var a = {
18202
18207
  connection: e,
18203
18208
  newWaypoints: t,
@@ -18205,7 +18210,7 @@ it.prototype.updateWaypoints = function(e, t, n) {
18205
18210
  };
18206
18211
  this._commandStack.execute("connection.updateWaypoints", a);
18207
18212
  };
18208
- it.prototype.reconnect = function(e, t, n, a, o) {
18213
+ rt.prototype.reconnect = function(e, t, n, a, o) {
18209
18214
  var i = {
18210
18215
  connection: e,
18211
18216
  newSource: t,
@@ -18215,19 +18220,19 @@ it.prototype.reconnect = function(e, t, n, a, o) {
18215
18220
  };
18216
18221
  this._commandStack.execute("connection.reconnect", i);
18217
18222
  };
18218
- it.prototype.reconnectStart = function(e, t, n, a) {
18223
+ rt.prototype.reconnectStart = function(e, t, n, a) {
18219
18224
  a || (a = {}), this.reconnect(e, t, e.target, n, Fe(a, { docking: "source" }));
18220
18225
  };
18221
- it.prototype.reconnectEnd = function(e, t, n, a) {
18226
+ rt.prototype.reconnectEnd = function(e, t, n, a) {
18222
18227
  a || (a = {}), this.reconnect(e, e.source, t, n, Fe(a, { docking: "target" }));
18223
18228
  };
18224
- it.prototype.connect = function(e, t, n, a) {
18229
+ rt.prototype.connect = function(e, t, n, a) {
18225
18230
  return this.createConnection(e, t, n || {}, e.parent, a);
18226
18231
  };
18227
- it.prototype._create = function(e, t) {
18232
+ rt.prototype._create = function(e, t) {
18228
18233
  return Vw(t) ? t : this._elementFactory.create(e, t);
18229
18234
  };
18230
- it.prototype.toggleCollapse = function(e, t) {
18235
+ rt.prototype.toggleCollapse = function(e, t) {
18231
18236
  var n = {
18232
18237
  shape: e,
18233
18238
  hints: t || {}
@@ -18342,16 +18347,16 @@ function Bs(e) {
18342
18347
  return !e || !e.trim();
18343
18348
  }
18344
18349
  function Xo(e, t, n) {
18345
- it.call(this, e, t, n);
18350
+ rt.call(this, e, t, n);
18346
18351
  }
18347
- ja(Xo, it);
18352
+ ja(Xo, rt);
18348
18353
  Xo.$inject = [
18349
18354
  "eventBus",
18350
18355
  "elementFactory",
18351
18356
  "commandStack"
18352
18357
  ];
18353
18358
  Xo.prototype.getHandlers = function() {
18354
- const e = it.prototype.getHandlers.call(this);
18359
+ const e = rt.prototype.getHandlers.call(this);
18355
18360
  return e["element.updateLabel"] = Ou, e;
18356
18361
  };
18357
18362
  Xo.prototype.updateLabel = function(e, t, n, a) {
@@ -18495,7 +18500,7 @@ function g_(e, t, n, a, o) {
18495
18500
  return p_(Ls(n, e, c[0], C_(r)), Ls(a, t, c[1], r), l);
18496
18501
  }
18497
18502
  function v_(e, t, n, a, o, i) {
18498
- ct(n) && (o = n, i = a, n = kt(e), a = kt(t)), i = Fe({ preferredLayouts: [] }, i), o = o || [];
18503
+ ut(n) && (o = n, i = a, n = kt(e), a = kt(t)), i = Fe({ preferredLayouts: [] }, i), o = o || [];
18499
18504
  var r = i.preferredLayouts.indexOf("straight") !== -1 && m_(e, t, n, a, i);
18500
18505
  return r || (r = i.connectionEnd && w_(t, e, a, o), r) || (r = i.connectionStart && b_(e, t, n, o), r) ? r : !i.connectionStart && !i.connectionEnd && o && o.length ? o : g_(e, t, n, a, i);
18501
18506
  }
@@ -18994,7 +18999,7 @@ function Da(e, t, n, a, o, i, r) {
18994
18999
  function C(M, E, V) {
18995
19000
  V = xt({ size: { width: 100 } }, V);
18996
19001
  const X = o.createText(E || "", V);
18997
- return ht(X).add("djs-label"), et(M, X), X;
19002
+ return pt(X).add("djs-label"), et(M, X), X;
18998
19003
  }
18999
19004
  function v(M, E, V) {
19000
19005
  return C(M, R_(E).name, {
@@ -19963,7 +19968,7 @@ ro.prototype.trigger = function(e, t) {
19963
19968
  var n = this._modeling, a, o = hn(e, function(c) {
19964
19969
  return !(c.waypoints || c.host || c.labelTarget);
19965
19970
  });
19966
- if (a = this._rules.allowed("elements.align", { elements: o }), ct(a) && (o = a), !(o.length < 2 || !a)) {
19971
+ if (a = this._rules.allowed("elements.align", { elements: o }), ut(a) && (o = a), !(o.length < 2 || !a)) {
19967
19972
  var i = ex[t], r = Bo(o, i), l = this._alignmentPosition(t, r);
19968
19973
  n.alignElements(r, l);
19969
19974
  }
@@ -20096,19 +20101,19 @@ function Hr(e, t, n) {
20096
20101
  }
20097
20102
  function Or(e, t) {
20098
20103
  var n = Ke("g");
20099
- ht(n).add(Ku), et(e, n);
20104
+ pt(n).add(Ku), et(e, n);
20100
20105
  var a = Ke("circle");
20101
20106
  $e(a, {
20102
20107
  cx: 0,
20103
20108
  cy: 0,
20104
20109
  r: 4
20105
- }), ht(a).add("djs-visual"), et(n, a);
20110
+ }), pt(a).add("djs-visual"), et(n, a);
20106
20111
  var o = Ke("circle");
20107
20112
  return $e(o, {
20108
20113
  cx: 0,
20109
20114
  cy: 0,
20110
20115
  r: 10
20111
- }), ht(o).add("djs-hit"), et(n, o), t && ht(n).add(t), n;
20116
+ }), pt(o).add("djs-hit"), et(n, o), t && pt(n).add(t), n;
20112
20117
  }
20113
20118
  function fx(e, t, n, a) {
20114
20119
  var o = Ke("g");
@@ -20119,18 +20124,18 @@ function fx(e, t, n, a) {
20119
20124
  y: -r / 2,
20120
20125
  width: i,
20121
20126
  height: r
20122
- }), ht(d).add("djs-visual"), et(o, d);
20127
+ }), pt(d).add("djs-visual"), et(o, d);
20123
20128
  var f = Ke("rect");
20124
20129
  return $e(f, {
20125
20130
  x: -c / 2,
20126
20131
  y: -s / 2,
20127
20132
  width: c,
20128
20133
  height: s
20129
- }), ht(f).add("djs-hit"), et(o, f), X0(o, a === "v" ? 90 : 0, 0, 0), o;
20134
+ }), pt(f).add("djs-hit"), et(o, f), X0(o, a === "v" ? 90 : 0, 0, 0), o;
20130
20135
  }
20131
20136
  function Xu(e, t, n) {
20132
20137
  var a = Ke("g"), o = Tr(t, n), i = na(t, n);
20133
- return et(e, a), fx(a, t, n, i), ht(a).add(qu), ht(a).add(i === "h" ? "horizontal" : "vertical"), Hn(a, o.x, o.y), a;
20138
+ return et(e, a), fx(a, t, n, i), pt(a).add(qu), pt(a).add(i === "h" ? "horizontal" : "vertical"), Hn(a, o.x, o.y), a;
20134
20139
  }
20135
20140
  function Ir(e) {
20136
20141
  return Math.abs(Math.round(e * 2 / 3));
@@ -20170,13 +20175,13 @@ function Zu(e, t, n, a, o) {
20170
20175
  return _ = r(y, v), i(v, C, _) ? o.start(m, y, v.index) : a.start(m, y, v.index, !v.bendpoint), !0;
20171
20176
  }
20172
20177
  function c(m, y, C) {
20173
- lt.bind(m, y, function(v) {
20178
+ st.bind(m, y, function(v) {
20174
20179
  n.triggerMouseEvent(y, v, C), v.stopPropagation();
20175
20180
  });
20176
20181
  }
20177
20182
  function s(m, y) {
20178
20183
  var C = t.getLayer("overlays"), v = Zt('.djs-bendpoints[data-element-id="' + Rl(m.id) + '"]', C);
20179
- return !v && y && (v = Ke("g"), $e(v, { "data-element-id": m.id }), ht(v).add("djs-bendpoints"), et(C, v), c(v, "mousedown", m), c(v, "click", m), c(v, "dblclick", m)), v;
20184
+ return !v && y && (v = Ke("g"), $e(v, { "data-element-id": m.id }), pt(v).add("djs-bendpoints"), et(C, v), c(v, "mousedown", m), c(v, "click", m), c(v, "dblclick", m)), v;
20180
20185
  }
20181
20186
  function d(m, y) {
20182
20187
  return Zt('.djs-segment-dragger[data-segment-idx="' + m + '"]', y);
@@ -20230,7 +20235,7 @@ function Zu(e, t, n, a, o) {
20230
20235
  y && fn(y);
20231
20236
  }), e.on("element.marker.update", function(m) {
20232
20237
  var y = m.element, C;
20233
- y.waypoints && (C = g(y), m.add ? ht(C).add(m.marker) : ht(C).remove(m.marker));
20238
+ y.waypoints && (C = g(y), m.add ? pt(C).add(m.marker) : pt(C).remove(m.marker));
20234
20239
  }), e.on("element.mousemove", function(m) {
20235
20240
  var y = m.element, C = y.waypoints, v, _;
20236
20241
  if (C) {
@@ -20359,7 +20364,7 @@ function Qu(e, t, n, a) {
20359
20364
  r.waypoints = d, s && f.splice(l, 0, {
20360
20365
  x: i.x,
20361
20366
  y: i.y
20362
- }), c.waypoints = f, ht(r.draggerGfx = Or(a.getLayer("overlays"))).add("djs-dragging"), a.addMarker(c, Js), a.addMarker(c, Ys);
20367
+ }), c.waypoints = f, pt(r.draggerGfx = Or(a.getLayer("overlays"))).add("djs-dragging"), a.addMarker(c, Js), a.addMarker(c, Ys);
20363
20368
  }), n.on("bendpoint.move.hover", function(i) {
20364
20369
  var r = i.context, l = r.allowed, c = r.hover, s = r.type;
20365
20370
  if (c) {
@@ -20454,7 +20459,7 @@ function td(e, t, n, a, o, i) {
20454
20459
  }
20455
20460
  t.on("connectionSegment.move.start", function(f) {
20456
20461
  var u = f.context, h = f.connection, p = n.getLayer("overlays");
20457
- u.originalWaypoints = h.waypoints.slice(), u.draggerGfx = Xu(p, u.segmentStart, u.segmentEnd), ht(u.draggerGfx).add("djs-dragging"), n.addMarker(h, qs);
20462
+ u.originalWaypoints = h.waypoints.slice(), u.draggerGfx = Xu(p, u.segmentStart, u.segmentEnd), pt(u.draggerGfx).add("djs-dragging"), n.addMarker(h, qs);
20458
20463
  }), t.on("connectionSegment.move.move", function(f) {
20459
20464
  var u = f.context, h = u.connection, p = u.segmentStartIndex, g = u.segmentEndIndex, b = u.segmentStart, x = u.segmentEnd, w = u.axis, m = u.originalWaypoints.slice(), y = Xs(b, w, f["d" + w]), C = Xs(x, w, f["d" + w]), v = m.length, _ = 0;
20460
20465
  m[p] = y, m[g] = C;
@@ -20536,7 +20541,7 @@ function nd(e) {
20536
20541
  var Sx = Math.abs, ec = Math.round, hr = 10;
20537
20542
  function ad(e) {
20538
20543
  function t(i, r) {
20539
- if (ct(i)) {
20544
+ if (ut(i)) {
20540
20545
  for (var l = i.length; l--; ) if (Sx(i[l] - r) <= hr) return i[l];
20541
20546
  } else {
20542
20547
  i = +i;
@@ -20671,7 +20676,7 @@ Kn.prototype.getConnection = function(e) {
20671
20676
  };
20672
20677
  Kn.prototype.createConnectionPreviewGfx = function() {
20673
20678
  var e = Ke("g");
20674
- return $e(e, { pointerEvents: "none" }), ht(e).add(Rx), et(this._canvas.getActiveLayer(), e), e;
20679
+ return $e(e, { pointerEvents: "none" }), pt(e).add(Rx), et(this._canvas.getActiveLayer(), e), e;
20675
20680
  };
20676
20681
  Kn.prototype.createNoopConnection = function(e, t) {
20677
20682
  return Zr([e, t], {
@@ -20727,7 +20732,7 @@ Vt.prototype.add = function(e, t, n) {
20727
20732
  };
20728
20733
  Vt.prototype.remove = function(e) {
20729
20734
  var t = this.get(e) || [];
20730
- ct(t) || (t = [t]);
20735
+ ut(t) || (t = [t]);
20731
20736
  var n = this;
20732
20737
  ye(t, function(a) {
20733
20738
  var o = n._getOverlayContainer(a.element, !0);
@@ -20940,7 +20945,7 @@ Ht.prototype._init = function() {
20940
20945
  }), this._eventBus.on("elements.changed", function(t) {
20941
20946
  var n = t.elements, a = e._current;
20942
20947
  if (a) {
20943
- var o = a.target, i = ct(o) ? o : [o];
20948
+ var o = a.target, i = ut(o) ? o : [o];
20944
20949
  if (i.filter(function(l) {
20945
20950
  return n.includes(l);
20946
20951
  }).length) {
@@ -20956,7 +20961,7 @@ Ht.prototype._init = function() {
20956
20961
  }), this._eventBus.on("element.marker.update", function(t) {
20957
20962
  if (e.isOpen()) {
20958
20963
  var n = t.element, a = e._current;
20959
- (ct(a.target) ? a.target : [a.target]).includes(n) && e._updateVisibility();
20964
+ (ut(a.target) ? a.target : [a.target]).includes(n) && e._updateVisibility();
20960
20965
  }
20961
20966
  }), this._container = this._createContainer();
20962
20967
  };
@@ -20970,7 +20975,7 @@ Ht.prototype.registerProvider = function(e, t) {
20970
20975
  });
20971
20976
  };
20972
20977
  Ht.prototype.getEntries = function(e) {
20973
- var t = this._getProviders(), n = ct(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
20978
+ var t = this._getProviders(), n = ut(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
20974
20979
  return ye(t, function(o) {
20975
20980
  if (Bn(o[n])) {
20976
20981
  var i = o[n](e);
@@ -21042,7 +21047,7 @@ Ht.prototype._createHtml = function(e) {
21042
21047
  t.trigger("mouseover", a);
21043
21048
  }), ta.bind(n, mi, "mouseout", function(a) {
21044
21049
  t.trigger("mouseout", a);
21045
- }), lt.bind(n, "mousedown", function(a) {
21050
+ }), st.bind(n, "mousedown", function(a) {
21046
21051
  a.stopPropagation();
21047
21052
  }), this._container.appendChild(n), this._eventBus.fire("contextPad.create", {
21048
21053
  target: e,
@@ -21062,7 +21067,7 @@ Ht.prototype.isOpen = function(e) {
21062
21067
  if (!t) return !1;
21063
21068
  if (!e) return !0;
21064
21069
  var n = t.target;
21065
- return ct(e) !== ct(n) ? !1 : ct(e) ? e.length === n.length && Nr(e, function(a) {
21070
+ return ut(e) !== ut(n) ? !1 : ut(e) ? e.length === n.length && Nr(e, function(a) {
21066
21071
  return n.includes(a);
21067
21072
  }) : n === e;
21068
21073
  };
@@ -21076,7 +21081,7 @@ Ht.prototype.hide = function() {
21076
21081
  this.isOpen() && (rn(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
21077
21082
  };
21078
21083
  Ht.prototype._getPosition = function(e) {
21079
- if (!ct(e) && nn(e)) {
21084
+ if (!ut(e) && nn(e)) {
21080
21085
  var t = this._canvas.viewbox(), n = Fx(e), a = n.x * t.scale - t.x * t.scale, o = n.y * t.scale - t.y * t.scale;
21081
21086
  return {
21082
21087
  left: a + tc * this._canvas.zoom(),
@@ -21109,7 +21114,7 @@ Ht.prototype._updateVisibility = function() {
21109
21114
  const e = () => {
21110
21115
  if (this.isOpen()) {
21111
21116
  var t = this, n = this._current.target;
21112
- (ct(n) ? n : [n]).some(function(a) {
21117
+ (ut(n) ? n : [n]).some(function(a) {
21113
21118
  return t._canvas.hasMarker(a, Lx);
21114
21119
  }) ? t.hide() : t.show();
21115
21120
  }
@@ -21118,7 +21123,7 @@ Ht.prototype._updateVisibility = function() {
21118
21123
  };
21119
21124
  Ht.prototype._getTargetBounds = function(e) {
21120
21125
  var t = this;
21121
- return (ct(e) ? e : [e]).map(function(n) {
21126
+ return (ut(e) ? e : [e]).map(function(n) {
21122
21127
  return t._canvas.getGraphics(n);
21123
21128
  }).reduce(function(n, a) {
21124
21129
  const o = a.getBoundingClientRect();
@@ -21132,7 +21137,7 @@ Ht.prototype._getTargetBounds = function(e) {
21132
21137
  };
21133
21138
  function $x(e, t) {
21134
21139
  var n = rn(e);
21135
- t = ct(t) ? t : t.split(/\s+/g), t.forEach(function(a) {
21140
+ t = ut(t) ? t : t.split(/\s+/g), t.forEach(function(a) {
21136
21141
  n.add(a);
21137
21142
  });
21138
21143
  }
@@ -21140,7 +21145,7 @@ function Fx(e) {
21140
21145
  return e.waypoints[e.waypoints.length - 1];
21141
21146
  }
21142
21147
  function Vx(e, t) {
21143
- return e = ct(e) ? e : [e], t = ct(t) ? t : [t], e.length === t.length && Nr(e, function(n) {
21148
+ return e = ut(e) ? e : [e], t = ut(t) ? t : [t], e.length === t.length && Nr(e, function(n) {
21144
21149
  return t.includes(n);
21145
21150
  });
21146
21151
  }
@@ -21325,7 +21330,7 @@ function ga(e, t, n, a, o, i, r) {
21325
21330
  }
21326
21331
  };
21327
21332
  function s(f) {
21328
- ht(t.getContainer()).toggle(Gx, f);
21333
+ pt(t.getContainer()).toggle(Gx, f);
21329
21334
  }
21330
21335
  function d(f) {
21331
21336
  var u = a.getAll();
@@ -21579,9 +21584,9 @@ Pl.prototype._updateMultiSelectionOutline = function(e) {
21579
21584
  var t = this._canvas.getLayer("selectionOutline");
21580
21585
  Yr(t);
21581
21586
  var n = e.length > 1;
21582
- if (ht(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
21587
+ if (pt(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
21583
21588
  var a = Qx(On(e)), o = Ke("rect");
21584
- $e(o, Fe({ rx: 3 }, a)), ht(o).add("djs-selection-outline"), et(t, o);
21589
+ $e(o, Fe({ rx: 3 }, a)), pt(o).add("djs-selection-outline"), et(t, o);
21585
21590
  }
21586
21591
  };
21587
21592
  Pl.$inject = [
@@ -21656,7 +21661,7 @@ function cd(e, t, n, a, o) {
21656
21661
  }
21657
21662
  });
21658
21663
  function r(l, c, s, d) {
21659
- if (pn(s) && (d = s, s = !1), !(c.waypoints || !c.parent) && !ht(l.target).has("djs-hit-no-move")) {
21664
+ if (pn(s) && (d = s, s = !1), !(c.waypoints || !c.parent) && !pt(l.target).has("djs-hit-no-move")) {
21660
21665
  var f = aC(c);
21661
21666
  return t.init(l, f, "shape.move", {
21662
21667
  cursor: "grabbing",
@@ -21789,7 +21794,7 @@ Bt.prototype._init = function() {
21789
21794
  var i = o.delegateTarget;
21790
21795
  if (yf(i, dd)) return e.toggle();
21791
21796
  e.trigger("click", o);
21792
- }), lt.bind(a, "mousedown", function(o) {
21797
+ }), st.bind(a, "mousedown", function(o) {
21793
21798
  o.stopPropagation();
21794
21799
  }), ta.bind(a, fd, "dragstart", function(o) {
21795
21800
  e.trigger("dragstart", o);
@@ -21878,7 +21883,7 @@ Bt.prototype._getParentContainer = function() {
21878
21883
  Bt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
21879
21884
  function dC(e, t) {
21880
21885
  var n = rn(e);
21881
- (ct(t) ? t : t.split(/\s+/g)).forEach(function(a) {
21886
+ (ut(t) ? t : t.split(/\s+/g)).forEach(function(a) {
21882
21887
  n.add(a);
21883
21888
  });
21884
21889
  }
@@ -21932,7 +21937,7 @@ function wi(e, t, n) {
21932
21937
  }
21933
21938
  function yC(e, t) {
21934
21939
  if (!t) return e;
21935
- var n = st(e);
21940
+ var n = ct(e);
21936
21941
  return su({
21937
21942
  top: wi("top", n, t),
21938
21943
  right: wi("right", n, t),
@@ -21941,12 +21946,12 @@ function yC(e, t) {
21941
21946
  });
21942
21947
  }
21943
21948
  function mC(e, t, n, a) {
21944
- var o = st(t), i = {
21949
+ var o = ct(t), i = {
21945
21950
  top: /n/.test(e) ? o.bottom - n.height : o.top,
21946
21951
  left: /w/.test(e) ? o.right - n.width : o.left,
21947
21952
  bottom: /s/.test(e) ? o.top + n.height : o.bottom,
21948
21953
  right: /e/.test(e) ? o.left + n.width : o.right
21949
- }, r = a ? st(a) : i;
21954
+ }, r = a ? ct(a) : i;
21950
21955
  return su({
21951
21956
  top: zi(i.top, r.top),
21952
21957
  left: zi(i.left, r.left),
@@ -21983,7 +21988,7 @@ function Zo(e, t, n, a) {
21983
21988
  }
21984
21989
  function r(c) {
21985
21990
  var s = c.resizeConstraints, d = c.minBounds;
21986
- s === void 0 && (d === void 0 && (d = o.computeMinResizeBox(c)), c.resizeConstraints = { min: st(d) });
21991
+ s === void 0 && (d === void 0 && (d = o.computeMinResizeBox(c)), c.resizeConstraints = { min: ct(d) });
21987
21992
  }
21988
21993
  function l(c) {
21989
21994
  var s = c.shape, d = c.canExecute, f = c.newBounds;
@@ -22042,7 +22047,7 @@ function xC(e, t) {
22042
22047
  return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
22043
22048
  }
22044
22049
  function pd(e, t) {
22045
- var n = kt(e), a = st(e), o = {
22050
+ var n = kt(e), a = ct(e), o = {
22046
22051
  x: n.x,
22047
22052
  y: n.y
22048
22053
  };
@@ -22062,7 +22067,7 @@ function gd(e, t, n) {
22062
22067
  }), l.height > 5 && $e(c, {
22063
22068
  y: l.y,
22064
22069
  height: l.height
22065
- }), i.canExecute ? ht(c).remove(gc) : ht(c).add(gc);
22070
+ }), i.canExecute ? pt(c).remove(gc) : pt(c).add(gc);
22066
22071
  }
22067
22072
  function o(i) {
22068
22073
  var r = i.shape;
@@ -22105,25 +22110,25 @@ va.prototype.makeDraggable = function(e, t, n) {
22105
22110
  function o(i) {
22106
22111
  la(i) && a.activate(i, e, n);
22107
22112
  }
22108
- lt.bind(t, "mousedown", o), lt.bind(t, "touchstart", o);
22113
+ st.bind(t, "mousedown", o), st.bind(t, "touchstart", o);
22109
22114
  };
22110
22115
  va.prototype._createResizer = function(e, t, n, a) {
22111
22116
  var o = this._getResizersParent(), i = RC(a), r = Ke("g");
22112
- ht(r).add(_o), ht(r).add(_o + "-" + e.id), ht(r).add(_o + "-" + a), et(o, r);
22117
+ pt(r).add(_o), pt(r).add(_o + "-" + e.id), pt(r).add(_o + "-" + a), et(o, r);
22113
22118
  var l = Ke("rect");
22114
22119
  $e(l, {
22115
22120
  x: -xi / 2 + i.x,
22116
22121
  y: -xi / 2 + i.y,
22117
22122
  width: xi,
22118
22123
  height: xi
22119
- }), ht(l).add(_o + "-visual"), et(r, l);
22124
+ }), pt(l).add(_o + "-visual"), et(r, l);
22120
22125
  var c = Ke("rect");
22121
22126
  return $e(c, {
22122
22127
  x: -Ci / 2 + i.x,
22123
22128
  y: -Ci / 2 + i.y,
22124
22129
  width: Ci,
22125
22130
  height: Ci
22126
- }), ht(c).add(_o + "-hit"), et(r, c), q0(r, t, n), r;
22131
+ }), pt(c).add(_o + "-hit"), et(r, c), q0(r, t, n), r;
22127
22132
  };
22128
22133
  va.prototype.createResizer = function(e, t) {
22129
22134
  var n = pd(e, t), a = this._createResizer(e, n.x, n.y, t);
@@ -22465,7 +22470,7 @@ ei.prototype.getSnapTargets = function(e, t) {
22465
22470
  });
22466
22471
  };
22467
22472
  function vd(e, t) {
22468
- var n = kt(e), a = st(e), o = {
22473
+ var n = kt(e), a = ct(e), o = {
22469
22474
  x: n.x,
22470
22475
  y: n.y
22471
22476
  };
@@ -22512,7 +22517,7 @@ ma.prototype.snap = function(e, t) {
22512
22517
  };
22513
22518
  ma.prototype._createLine = function(e) {
22514
22519
  var t = this._canvas.getLayer("snap"), n = Ke("path");
22515
- return $e(n, { d: "M0,0 L0,0" }), ht(n).add("djs-snap-line"), et(t, n), { update: function(a) {
22520
+ return $e(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), et(t, n), { update: function(a) {
22516
22521
  It(a) ? e === "horizontal" ? $e(n, {
22517
22522
  d: "M-100000," + a + " L+100000," + a,
22518
22523
  display: ""
@@ -22686,7 +22691,7 @@ function WC(e, t) {
22686
22691
  var a = t.defaultDistance || 50, o = t.direction || "e", i = t.filter, r = t.getWeight || n, l = t.maxDistance || NC, c = t.reference || "start";
22687
22692
  i || (i = UC);
22688
22693
  function s(u, h) {
22689
- return o === "n" ? c === "start" ? st(u).top - st(h).bottom : c === "center" ? st(u).top - kt(h).y : st(u).top - st(h).top : o === "w" ? c === "start" ? st(u).left - st(h).right : c === "center" ? st(u).left - kt(h).x : st(u).left - st(h).left : o === "s" ? c === "start" ? st(h).top - st(u).bottom : c === "center" ? kt(h).y - st(u).bottom : st(h).bottom - st(u).bottom : c === "start" ? st(h).left - st(u).right : c === "center" ? kt(h).x - st(u).right : st(h).right - st(u).right;
22694
+ return o === "n" ? c === "start" ? ct(u).top - ct(h).bottom : c === "center" ? ct(u).top - kt(h).y : ct(u).top - ct(h).top : o === "w" ? c === "start" ? ct(u).left - ct(h).right : c === "center" ? ct(u).left - kt(h).x : ct(u).left - ct(h).left : o === "s" ? c === "start" ? ct(h).top - ct(u).bottom : c === "center" ? kt(h).y - ct(u).bottom : ct(h).bottom - ct(u).bottom : c === "start" ? ct(h).left - ct(u).right : c === "center" ? kt(h).x - ct(u).right : ct(h).right - ct(u).right;
22690
22695
  }
22691
22696
  var d = e.incoming.filter(i).map(function(u) {
22692
22697
  var h = r(u), p = h < 0 ? s(u.source, e) : s(e, u.source);
@@ -22744,7 +22749,7 @@ function JC(e, t, n) {
22744
22749
  n || (n = {});
22745
22750
  var a = n.defaultDistance || 50, o = kt(e);
22746
22751
  return {
22747
- x: st(e).right + a + t.width / 2,
22752
+ x: ct(e).right + a + t.width / 2,
22748
22753
  y: o.y
22749
22754
  };
22750
22755
  }
@@ -22804,7 +22809,7 @@ function a1(e, t) {
22804
22809
  return o1(e, t);
22805
22810
  }
22806
22811
  function o1(e, t) {
22807
- const n = st(e), a = kt(e), o = WC(e, { filter: (l) => qC(l, "myline") }), i = 30, r = 80;
22812
+ const n = ct(e), a = kt(e), o = WC(e, { filter: (l) => qC(l, "myline") }), i = 30, r = 80;
22808
22813
  return t1(e, t, {
22809
22814
  x: n.right + o + t.width / 2,
22810
22815
  y: a.y + i1("left", r)
@@ -23156,7 +23161,7 @@ var l1 = {
23156
23161
  };
23157
23162
  a.modelValue && a.modelValue.length > 0 ? (h.value = a.modelValue || [], h.value.forEach((v) => {
23158
23163
  v._i || (v._i = Nn());
23159
- })) : (h.value = [], o("update:modelValue", h.value)), at(() => a.modelValue, (v) => {
23164
+ })) : (h.value = [], o("update:modelValue", h.value)), ot(() => a.modelValue, (v) => {
23160
23165
  h.value = a.modelValue || [], h.value = v || [], h.value.forEach((_) => {
23161
23166
  _._i || (_._i = Nn());
23162
23167
  });