@a2simcode/ui 0.0.111 → 0.0.112

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.
@@ -37,7 +37,7 @@ import { createEditor as Ud, createToolbar as Yd } from "@wangeditor/editor";
37
37
  import Zs from "diagram-js";
38
38
  import { assignStyle as mo, attr as un, classes as Gt, clear as Qs, closest as El, delegate as zn, domify as Xt, event as Qe, matches as Kd, query as Nt, queryAll as nl, remove as al } from "min-dom";
39
39
  import { assign as je, bind as Rl, debounce as Gd, every as Tl, filter as an, find as vn, flatten as Jd, forEach as ae, groupBy as Ml, has as ec, isArray as tt, isDefined as cn, isFunction as yn, isNil as wr, isNumber as Mt, isObject as on, isString as ol, isUndefined as Xd, map as bo, matchPattern as si, omit as qd, pick as ci, reduce as il, size as Zd, some as Qd, sortBy as go, uniqueBy as ef, values as tc, without as tf } from "min-dash";
40
- import { append as Ve, attr as Ee, classes as st, clear as Al, clone as nc, create as Ie, createTransform as ro, remove as qt, transform as jl } from "tiny-svg";
40
+ import { append as Ve, attr as Ee, classes as st, clear as Al, clone as nc, create as He, createTransform as ro, remove as qt, transform as jl } from "tiny-svg";
41
41
  import fa from "inherits";
42
42
  import nf from "diagram-js-direct-editing";
43
43
  var he = (e) => (e.install = (t) => {
@@ -4724,10 +4724,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
4724
4724
  let R = o.records.length, m = 45;
4725
4725
  const k = j(!1), C = j({}), T = j([]), A = j(null), E = j(0);
4726
4726
  let B = null, z = !1, V = !1;
4727
- const M = (I, $, W, ne, U) => {
4728
- T.value = I, A.value = $, E.value = W, C.value = {
4729
- left: `${ne}px`,
4730
- top: `${U}px`
4727
+ const M = (I, $, U, te, W) => {
4728
+ T.value = I, A.value = $, E.value = U, C.value = {
4729
+ left: `${te}px`,
4730
+ top: `${W}px`
4731
4731
  }, k.value = !0, z = !1, document.addEventListener("wheel", Te, { passive: !1 });
4732
4732
  }, S = () => {
4733
4733
  k.value = !1, z = !1, V = !1, X(), document.removeEventListener("wheel", Te);
@@ -4749,17 +4749,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
4749
4749
  openLayer: u
4750
4750
  }), S());
4751
4751
  }, dt = (I) => {
4752
- let $ = I.action.config?.display !== !1, W = I.action.config?.disabled === !0;
4753
- const ne = o.actionFilter;
4754
- if (ne) try {
4755
- const U = ne(I);
4756
- typeof U == "boolean" ? $ = U : U && typeof U == "object" && (typeof U.display == "boolean" && ($ = U.display), typeof U.disabled == "boolean" && (W = U.disabled));
4752
+ let $ = I.action.config?.display !== !1, U = I.action.config?.disabled === !0;
4753
+ const te = o.actionFilter;
4754
+ if (te) try {
4755
+ const W = te(I);
4756
+ typeof W == "boolean" ? $ = W : W && typeof W == "object" && (typeof W.display == "boolean" && ($ = W.display), typeof W.disabled == "boolean" && (U = W.disabled));
4757
4757
  } catch {
4758
- $ = I.action.config?.display !== !1, W = I.action.config?.disabled === !0;
4758
+ $ = I.action.config?.display !== !1, U = I.action.config?.disabled === !0;
4759
4759
  }
4760
4760
  return {
4761
4761
  display: $,
4762
- disabled: W
4762
+ disabled: U
4763
4763
  };
4764
4764
  }, oe = (I, $) => $.disabled ? {
4765
4765
  ...I,
@@ -4768,44 +4768,44 @@ var Jh = { class: "j-table-footer" }, Xh = {
4768
4768
  disabled: !0
4769
4769
  }
4770
4770
  } : I, Ge = (I) => {
4771
- const { Group: $, Text: W } = Le.CustomLayout, ne = o.actionsMaxCount, U = I.filter((de) => de.config?.display !== !1), q = U.length > ne, pe = q ? U.slice(0, ne - 1) : U;
4771
+ const { Group: $, Text: U } = Le.CustomLayout, te = o.actionsMaxCount, W = I.filter((de) => de.config?.display !== !1), q = W.length > te, pe = q ? W.slice(0, te - 1) : W;
4772
4772
  let ue = 0;
4773
4773
  if (pe.forEach((de, we) => {
4774
- const Pe = sn(de.config?.label || de.label || "") || 0;
4775
- ue += Pe + (we === 0 ? 24 : 12);
4774
+ const Be = sn(de.config?.label || de.label || "") || 0;
4775
+ ue += Be + (we === 0 ? 24 : 12);
4776
4776
  }), q) {
4777
4777
  const de = (sn("更多") || 0) + 12;
4778
4778
  ue += de;
4779
4779
  }
4780
- const Q = Math.max(80, ue) + "px";
4780
+ const ne = Math.max(80, ue) + "px";
4781
4781
  return {
4782
4782
  field: "__actions__",
4783
4783
  title: o.actionsLabel,
4784
- width: Q,
4785
- maxWidth: Q,
4786
- minWidth: Q,
4784
+ width: ne,
4785
+ maxWidth: ne,
4786
+ minWidth: ne,
4787
4787
  disableColumnResize: !0,
4788
4788
  disableSelect: !0,
4789
4789
  customLayout: (de) => {
4790
- const { table: we, row: Pe, col: xe } = de, fe = we.getCellOriginRecord(xe, Pe), We = we.getRecordIndexByCell(xe, Pe), Ye = (() => {
4790
+ const { table: we, row: Be, col: xe } = de, fe = we.getCellOriginRecord(xe, Be), We = we.getRecordIndexByCell(xe, Be), Ye = (() => {
4791
4791
  if (!o.actionFilter) return !1;
4792
- const He = re(fe);
4793
- return He ? gt().some((Fe) => re(Fe) === He) : !1;
4794
- })(), $e = U.map((He) => {
4792
+ const Oe = re(fe);
4793
+ return Oe ? gt().some((Fe) => re(Fe) === Oe) : !1;
4794
+ })(), $e = W.map((Oe) => {
4795
4795
  const Fe = dt({
4796
- action: He,
4796
+ action: Oe,
4797
4797
  record: fe,
4798
4798
  recordIndex: We,
4799
4799
  col: xe,
4800
- row: Pe,
4800
+ row: Be,
4801
4801
  table: we,
4802
4802
  selected: Ye
4803
4803
  });
4804
4804
  return {
4805
- action: oe(He, { disabled: Fe.disabled }),
4805
+ action: oe(Oe, { disabled: Fe.disabled }),
4806
4806
  display: Fe.display
4807
4807
  };
4808
- }).filter((He) => He.display).map((He) => He.action), ut = o.actionsMaxCount, Ue = $e.length > ut, mt = Ue ? $e.slice(0, ut - 1) : $e, Ct = Ue ? $e.slice(ut - 1) : [], _e = new $({
4808
+ }).filter((Oe) => Oe.display).map((Oe) => Oe.action), ut = o.actionsMaxCount, Ue = $e.length > ut, mt = Ue ? $e.slice(0, ut - 1) : $e, Ct = Ue ? $e.slice(ut - 1) : [], _e = new $({
4809
4809
  height: 40,
4810
4810
  display: "flex",
4811
4811
  flexDirection: "row",
@@ -4813,9 +4813,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
4813
4813
  justifyContent: "flex-start",
4814
4814
  flexWrap: "nowrap"
4815
4815
  });
4816
- if (mt.forEach((He, Fe) => {
4817
- const Xe = He.config?.disabled === !0, zt = Xe ? "#c9cdd4" : He.config?.danger ? "#f53f3f" : "#165dff", tn = new W({
4818
- text: He.label,
4816
+ if (mt.forEach((Oe, Fe) => {
4817
+ const Xe = Oe.config?.disabled === !0, zt = Xe ? "#c9cdd4" : Oe.config?.danger ? "#f53f3f" : "#165dff", tn = new U({
4818
+ text: Oe.label,
4819
4819
  fontSize: 14,
4820
4820
  fill: zt,
4821
4821
  boundsPadding: [
@@ -4827,7 +4827,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
4827
4827
  cursor: Xe ? "not-allowed" : "pointer"
4828
4828
  });
4829
4829
  tn.addEventListener("click", () => {
4830
- !Xe && He.click && He.click({
4830
+ !Xe && Oe.click && Oe.click({
4831
4831
  data: fe,
4832
4832
  openLayer: u
4833
4833
  });
@@ -4837,10 +4837,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
4837
4837
  Xe || (na.target.setAttribute("fill", zt), we.scenegraph.stage.renderNextFrame());
4838
4838
  }), _e.add(tn);
4839
4839
  }), Ue && Ct.length > 0) {
4840
- const He = "#1677ff", Fe = new W({
4840
+ const Oe = "#1677ff", Fe = new U({
4841
4841
  text: "更多",
4842
4842
  fontSize: 14,
4843
- fill: He,
4843
+ fill: Oe,
4844
4844
  boundsPadding: [
4845
4845
  0,
4846
4846
  0,
@@ -4850,11 +4850,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
4850
4850
  cursor: "pointer"
4851
4851
  });
4852
4852
  Fe.addEventListener("mouseenter", (Xe) => {
4853
- Xe.target.setAttribute("fill", J(He, -20)), we.scenegraph.stage.renderNextFrame();
4853
+ Xe.target.setAttribute("fill", J(Oe, -20)), we.scenegraph.stage.renderNextFrame();
4854
4854
  const zt = p.value?.getBoundingClientRect();
4855
4855
  zt && M(Ct, fe, We, Xe.canvasX + zt.left - 64, Xe.canvasY + zt.top + 8), V = !0, X();
4856
4856
  }), Fe.addEventListener("mouseleave", (Xe) => {
4857
- Xe.target.setAttribute("fill", He), we.scenegraph.stage.renderNextFrame(), V = !1, D();
4857
+ Xe.target.setAttribute("fill", Oe), we.scenegraph.stage.renderNextFrame(), V = !1, D();
4858
4858
  }), _e.add(Fe);
4859
4859
  }
4860
4860
  return {
@@ -4864,24 +4864,24 @@ var Jh = { class: "j-table-footer" }, Xh = {
4864
4864
  }
4865
4865
  };
4866
4866
  }, Ze = (I) => {
4867
- const { dataValue: $, rect: W, table: ne, col: U, row: q } = I;
4867
+ const { dataValue: $, rect: U, table: te, col: W, row: q } = I;
4868
4868
  let pe = "mdi:toggle-switch", ue = "#165dff";
4869
4869
  $ || (pe = "mdi:toggle-switch-off", ue = "#e5e6eb");
4870
- const Q = sa(pe), de = Q?.body?.replace(/currentColor/g, ue), we = [], Pe = ne?.getBodyField?.(U, q), xe = ne?.options?.columns || [], fe = Pe ? Wt(xe, Pe) : null, We = 8, Ye = 40;
4870
+ const ne = sa(pe), de = ne?.body?.replace(/currentColor/g, ue), we = [], Be = te?.getBodyField?.(W, q), xe = te?.options?.columns || [], fe = Be ? Wt(xe, Be) : null, We = 8, Ye = 40;
4871
4871
  let $e = We;
4872
- return fe?.style?.textAlign === "center" ? $e = Math.max(We, (W.width - Ye) / 2) : fe?.style?.textAlign === "right" && ($e = Math.max(We, W.width - Ye - We)), we.push({
4872
+ return fe?.style?.textAlign === "center" ? $e = Math.max(We, (U.width - Ye) / 2) : fe?.style?.textAlign === "right" && ($e = Math.max(We, U.width - Ye - We)), we.push({
4873
4873
  type: "icon",
4874
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ye}" height="${Ye}" viewBox="0 0 ${Q?.width} ${Q?.height}" >${de}</svg>`,
4874
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ye}" height="${Ye}" viewBox="0 0 ${ne?.width} ${ne?.height}" >${de}</svg>`,
4875
4875
  x: $e,
4876
- y: (W.height - Ye) / 2,
4876
+ y: (U.height - Ye) / 2,
4877
4877
  width: Ye,
4878
4878
  height: Ye
4879
4879
  }), { elements: we };
4880
4880
  }, Ae = (I) => {
4881
- const { dataValue: $, rect: W } = I, ne = Number($) || 0, U = 5, q = 20, pe = 4, ue = 8, Q = (W.height - q) / 2, de = [], we = sa("mdi:star"), Pe = sa("mdi:star-half-full"), xe = sa("mdi:star-outline"), fe = "#f7ba2a", We = "#e5e6eb";
4882
- for (let Ye = 0; Ye < U; Ye++) {
4883
- const $e = ue + Ye * (q + pe), ut = Q;
4884
- if (ne >= Ye + 1) {
4881
+ const { dataValue: $, rect: U } = I, te = Number($) || 0, W = 5, q = 20, pe = 4, ue = 8, ne = (U.height - q) / 2, de = [], we = sa("mdi:star"), Be = sa("mdi:star-half-full"), xe = sa("mdi:star-outline"), fe = "#f7ba2a", We = "#e5e6eb";
4882
+ for (let Ye = 0; Ye < W; Ye++) {
4883
+ const $e = ue + Ye * (q + pe), ut = ne;
4884
+ if (te >= Ye + 1) {
4885
4885
  const Ue = we?.body?.replace(/currentColor/g, fe);
4886
4886
  de.push({
4887
4887
  type: "icon",
@@ -4891,11 +4891,11 @@ var Jh = { class: "j-table-footer" }, Xh = {
4891
4891
  width: q,
4892
4892
  height: q
4893
4893
  });
4894
- } else if (ne > Ye && ne < Ye + 1) {
4895
- const Ue = Pe?.body?.replace(/currentColor/g, fe);
4894
+ } else if (te > Ye && te < Ye + 1) {
4895
+ const Ue = Be?.body?.replace(/currentColor/g, fe);
4896
4896
  de.push({
4897
4897
  type: "icon",
4898
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${q}" height="${q}" viewBox="0 0 ${Pe?.width} ${Pe?.height}">${Ue}</svg>`,
4898
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${q}" height="${q}" viewBox="0 0 ${Be?.width} ${Be?.height}">${Ue}</svg>`,
4899
4899
  x: $e,
4900
4900
  y: ut,
4901
4901
  width: q,
@@ -4915,12 +4915,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
4915
4915
  }
4916
4916
  return { elements: de };
4917
4917
  }, nt = (I) => {
4918
- const { dataValue: $, rect: W, table: ne, col: U, row: q } = I, pe = ne.getBodyField(U, q), ue = Wt(ne.options?.columns || [], pe)?._compConfig || {}, Q = Number(ue.min) || 0, de = Number(ue.max) || 100, we = Number($) || 0, Pe = de - Q, xe = Pe === 0 ? 0 : Math.max(0, Math.min(100, (we - Q) / Pe * 100)), fe = 4, We = 8, Ye = 8, $e = (W.height - fe) / 2, ut = String(we), Ue = sn(ut) || 0, mt = We, Ct = $e, _e = W.width - We * 2 - Ue - Ye, He = _e * xe / 100, Fe = [], Xe = (It, Ft, aa) => {
4919
- const Oe = Math.min(aa, Ft / 2, It / 2);
4920
- return `M ${Oe} 0 L ${It - Oe} 0 Q ${It} 0 ${It} ${Oe} L ${It} ${Ft - Oe} Q ${It} ${Ft} ${It - Oe} ${Ft} L ${Oe} ${Ft} Q 0 ${Ft} 0 ${Ft - Oe} L 0 ${Oe} Q 0 0 ${Oe} 0 Z`;
4918
+ const { dataValue: $, rect: U, table: te, col: W, row: q } = I, pe = te.getBodyField(W, q), ue = Wt(te.options?.columns || [], pe)?._compConfig || {}, ne = Number(ue.min) || 0, de = Number(ue.max) || 100, we = Number($) || 0, Be = de - ne, xe = Be === 0 ? 0 : Math.max(0, Math.min(100, (we - ne) / Be * 100)), fe = 4, We = 8, Ye = 8, $e = (U.height - fe) / 2, ut = String(we), Ue = sn(ut) || 0, mt = We, Ct = $e, _e = U.width - We * 2 - Ue - Ye, Oe = _e * xe / 100, Fe = [], Xe = (It, Ft, aa) => {
4919
+ const Pe = Math.min(aa, Ft / 2, It / 2);
4920
+ return `M ${Pe} 0 L ${It - Pe} 0 Q ${It} 0 ${It} ${Pe} L ${It} ${Ft - Pe} Q ${It} ${Ft} ${It - Pe} ${Ft} L ${Pe} ${Ft} Q 0 ${Ft} 0 ${Ft - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
4921
4921
  }, zt = (It, Ft, aa) => {
4922
- const Oe = Math.min(aa, Ft / 2, It / 2);
4923
- return It <= Oe * 2 ? Xe(It, Ft, aa) : `M ${Oe} 0 L ${It} 0 L ${It} ${Ft} L ${Oe} ${Ft} Q 0 ${Ft} 0 ${Ft - Oe} L 0 ${Oe} Q 0 0 ${Oe} 0 Z`;
4922
+ const Pe = Math.min(aa, Ft / 2, It / 2);
4923
+ return It <= Pe * 2 ? Xe(It, Ft, aa) : `M ${Pe} 0 L ${It} 0 L ${It} ${Ft} L ${Pe} ${Ft} Q 0 ${Ft} 0 ${Ft - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
4924
4924
  }, tn = Xe(_e, fe, fe / 2);
4925
4925
  if (Fe.push({
4926
4926
  type: "icon",
@@ -4929,18 +4929,18 @@ var Jh = { class: "j-table-footer" }, Xh = {
4929
4929
  y: Ct,
4930
4930
  width: _e,
4931
4931
  height: fe
4932
- }), He > 0) {
4933
- const It = zt(He, fe, fe / 2);
4932
+ }), Oe > 0) {
4933
+ const It = zt(Oe, fe, fe / 2);
4934
4934
  Fe.push({
4935
4935
  type: "icon",
4936
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${He}" height="${fe}" viewBox="0 0 ${He} ${fe}"><path d="${It}" fill="#165dff"/></svg>`,
4936
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Oe}" height="${fe}" viewBox="0 0 ${Oe} ${fe}"><path d="${It}" fill="#165dff"/></svg>`,
4937
4937
  x: mt,
4938
4938
  y: Ct,
4939
- width: He,
4939
+ width: Oe,
4940
4940
  height: fe
4941
4941
  });
4942
4942
  }
4943
- const na = mt + _e + Ye, Do = W.height / 2;
4943
+ const na = mt + _e + Ye, Do = U.height / 2;
4944
4944
  return Fe.push({
4945
4945
  type: "text",
4946
4946
  text: ut,
@@ -4951,21 +4951,21 @@ var Jh = { class: "j-table-footer" }, Xh = {
4951
4951
  textAlign: "left",
4952
4952
  textBaseline: "middle"
4953
4953
  }), { elements: Fe };
4954
- }, ct = (I) => String(I).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), te = (I, $) => {
4954
+ }, ct = (I) => String(I).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), ee = (I, $) => {
4955
4955
  if (!I) return "";
4956
4956
  if ((sn(I) || 0) <= $) return I;
4957
- const W = "...", ne = sn(W) || 0;
4958
- if (ne >= $) return "";
4959
- let U = 0, q = I.length;
4960
- for (; U < q; ) {
4961
- const pe = Math.ceil((U + q) / 2);
4962
- (sn(I.slice(0, pe)) || 0) + ne <= $ ? U = pe : q = pe - 1;
4957
+ const U = "...", te = sn(U) || 0;
4958
+ if (te >= $) return "";
4959
+ let W = 0, q = I.length;
4960
+ for (; W < q; ) {
4961
+ const pe = Math.ceil((W + q) / 2);
4962
+ (sn(I.slice(0, pe)) || 0) + te <= $ ? W = pe : q = pe - 1;
4963
4963
  }
4964
- return I.slice(0, U) + W;
4964
+ return I.slice(0, W) + U;
4965
4965
  }, Ce = (I) => {
4966
- const { value: $, rect: W, table: ne, col: U, row: q } = I;
4966
+ const { value: $, rect: U, table: te, col: W, row: q } = I;
4967
4967
  if (!$) return { elements: [] };
4968
- const pe = ne.getBodyField(U, q), ue = Wt(ne.options?.columns || [], pe)?._compConfig || {}, Q = Number(ue.size) || 16, de = ue.color, we = (W.width - Q) / 2, Pe = (W.height - Q) / 2;
4968
+ const pe = te.getBodyField(W, q), ue = Wt(te.options?.columns || [], pe)?._compConfig || {}, ne = Number(ue.size) || 16, de = ue.color, we = (U.width - ne) / 2, Be = (U.height - ne) / 2;
4969
4969
  let xe = String($).trim();
4970
4970
  if (!xe) return { elements: [] };
4971
4971
  if (xe.startsWith("<svg")) {
@@ -4977,47 +4977,47 @@ var Jh = { class: "j-table-footer" }, Xh = {
4977
4977
  const ut = We.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], Ue = We.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
4978
4978
  $e = ut && Ue ? `0 0 ${ut} ${Ue}` : "0 0 24 24";
4979
4979
  }
4980
- xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${Q}" height="${Q}" viewBox="${$e}">${Ye}</svg>`;
4981
- } else xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${Q}" height="${Q}" viewBox="0 0 24 24"></svg>`;
4980
+ xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${ne}" height="${ne}" viewBox="${$e}">${Ye}</svg>`;
4981
+ } else xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${ne}" height="${ne}" viewBox="0 0 24 24"></svg>`;
4982
4982
  } else {
4983
4983
  const fe = sa(xe);
4984
4984
  if (fe) {
4985
4985
  const { body: We, width: Ye, height: $e } = fe;
4986
- xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${Q}" height="${Q}" viewBox="0 0 ${Ye} ${$e}">${We}</svg>`;
4986
+ xe = `<svg xmlns="http://www.w3.org/2000/svg" width="${ne}" height="${ne}" viewBox="0 0 ${Ye} ${$e}">${We}</svg>`;
4987
4987
  }
4988
4988
  }
4989
4989
  return de && (xe = xe.replace(/currentColor/g, de)), { elements: [{
4990
4990
  type: "icon",
4991
4991
  svg: xe,
4992
4992
  x: we,
4993
- y: Pe,
4994
- width: Q,
4995
- height: Q
4993
+ y: Be,
4994
+ width: ne,
4995
+ height: ne
4996
4996
  }] };
4997
- }, Be = (I) => {
4998
- const { dataValue: $, rect: W, table: ne, col: U, row: q, value: pe } = I, ue = ne.getBodyField(U, q), Q = Wt(ne.options?.columns || [], ue), de = Q?._compConfig || {}, we = Q?.style?.textAlign || "left", Pe = c({
4997
+ }, Ie = (I) => {
4998
+ const { dataValue: $, rect: U, table: te, col: W, row: q, value: pe } = I, ue = te.getBodyField(W, q), ne = Wt(te.options?.columns || [], ue), de = ne?._compConfig || {}, we = ne?.style?.textAlign || "left", Be = c({
4999
4999
  config: de,
5000
- row: ne.getRecordByCell?.(U, q) || ne.getCellOriginRecord?.(U, q),
5001
- value: Q._fieldFormat ? pe : $
5000
+ row: te.getRecordByCell?.(W, q) || te.getCellOriginRecord?.(W, q),
5001
+ value: ne._fieldFormat ? pe : $
5002
5002
  });
5003
- if (Pe.length === 0) return { elements: [] };
5004
- const xe = 14, fe = 28, We = 2, Ye = 12, $e = 8, ut = 6, Ue = 8, mt = Math.max(0, W.width - Ue * 2), Ct = Math.max(0, mt - Ye * 2), _e = [], He = (Oe) => {
5005
- const Pt = sn(te(Oe, Ct)) || 0;
5003
+ if (Be.length === 0) return { elements: [] };
5004
+ const xe = 14, fe = 28, We = 2, Ye = 12, $e = 8, ut = 6, Ue = 8, mt = Math.max(0, U.width - Ue * 2), Ct = Math.max(0, mt - Ye * 2), _e = [], Oe = (Pe) => {
5005
+ const Pt = sn(ee(Pe, Ct)) || 0;
5006
5006
  return Math.min(mt, Pt + Ye * 2);
5007
- }, Fe = (Oe, Pt, hn, Vt, On) => {
5008
- const Fo = te(hn, Ct), Ju = ct(Fo), Xu = sn(Fo) || 0, Ca = Math.min(mt, Xu + Ye * 2), qu = Vt || "#f2f3f5", Zu = On || "#1d2129", Qu = fe / 2 + xe * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ca}" height="${fe}" viewBox="0 0 ${Ca} ${fe}"><rect x="0" y="0" width="${Ca}" height="${fe}" rx="${We}" ry="${We}" fill="${qu}"/><text x="${Ca / 2}" y="${Qu}" text-anchor="middle" font-size="${xe}" fill="${Zu}">${Ju}</text></svg>`;
5007
+ }, Fe = (Pe, Pt, hn, Vt, On) => {
5008
+ const Fo = ee(hn, Ct), Ju = ct(Fo), Xu = sn(Fo) || 0, Ca = Math.min(mt, Xu + Ye * 2), qu = Vt || "#f2f3f5", Zu = On || "#1d2129", Qu = fe / 2 + xe * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ca}" height="${fe}" viewBox="0 0 ${Ca} ${fe}"><rect x="0" y="0" width="${Ca}" height="${fe}" rx="${We}" ry="${We}" fill="${qu}"/><text x="${Ca / 2}" y="${Qu}" text-anchor="middle" font-size="${xe}" fill="${Zu}">${Ju}</text></svg>`;
5009
5009
  return _e.push({
5010
5010
  type: "icon",
5011
5011
  svg: ed,
5012
- x: Oe,
5012
+ x: Pe,
5013
5013
  y: Pt,
5014
5014
  width: Ca,
5015
5015
  height: fe
5016
5016
  }), { tagWidth: Ca };
5017
5017
  }, Xe = [];
5018
5018
  let zt = [], tn = 0;
5019
- for (let Oe = 0; Oe < Pe.length; Oe++) {
5020
- const Pt = Pe[Oe], hn = Pt.label, Vt = He(hn), On = {
5019
+ for (let Pe = 0; Pe < Be.length; Pe++) {
5020
+ const Pt = Be[Pe], hn = Pt.label, Vt = Oe(hn), On = {
5021
5021
  label: hn,
5022
5022
  bg: Pt.color || "#f2f3f5",
5023
5023
  text: Pt.textColor || Je(Pt.color || "#f2f3f5"),
@@ -5032,54 +5032,54 @@ var Jh = { class: "j-table-footer" }, Xh = {
5032
5032
  items: zt,
5033
5033
  lineWidth: tn
5034
5034
  });
5035
- const na = W.height;
5035
+ const na = U.height;
5036
5036
  let Do = Math.max(1, Math.floor((na + ut) / (fe + ut))), It = !1;
5037
5037
  if (Xe.length > Do && (It = !0, Xe.length = Do), It) {
5038
- const Oe = Xe[Xe.length - 1], Pt = He("...");
5039
- let hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
5040
- for (; hn > mt && Oe.items.length > 0; ) {
5041
- const Vt = Oe.items.pop();
5038
+ const Pe = Xe[Xe.length - 1], Pt = Oe("...");
5039
+ let hn = Pe.lineWidth + (Pe.items.length > 0 ? $e : 0) + Pt;
5040
+ for (; hn > mt && Pe.items.length > 0; ) {
5041
+ const Vt = Pe.items.pop();
5042
5042
  if (!Vt) break;
5043
- Oe.items.length > 0 ? Oe.lineWidth -= $e + Vt.width : Oe.lineWidth -= Vt.width, hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
5043
+ Pe.items.length > 0 ? Pe.lineWidth -= $e + Vt.width : Pe.lineWidth -= Vt.width, hn = Pe.lineWidth + (Pe.items.length > 0 ? $e : 0) + Pt;
5044
5044
  }
5045
- Oe.items.push({
5045
+ Pe.items.push({
5046
5046
  label: "...",
5047
5047
  bg: "#f2f3f5",
5048
5048
  text: "#1d2129",
5049
5049
  width: Pt
5050
- }), Oe.lineWidth += Oe.items.length > 1 ? $e + Pt : Pt;
5050
+ }), Pe.lineWidth += Pe.items.length > 1 ? $e + Pt : Pt;
5051
5051
  }
5052
5052
  const Ft = Xe.length * fe + (Xe.length > 1 ? (Xe.length - 1) * ut : 0);
5053
- let aa = Math.max(0, (W.height - Ft) / 2);
5054
- for (let Oe = 0; Oe < Xe.length; Oe++) {
5055
- const Pt = Xe[Oe];
5053
+ let aa = Math.max(0, (U.height - Ft) / 2);
5054
+ for (let Pe = 0; Pe < Xe.length; Pe++) {
5055
+ const Pt = Xe[Pe];
5056
5056
  let hn = we === "center" ? Ue + Math.max(0, (mt - Pt.lineWidth) / 2) : we === "right" ? Ue + Math.max(0, mt - Pt.lineWidth) : Ue;
5057
5057
  for (let Vt = 0; Vt < Pt.items.length; Vt++) {
5058
5058
  const On = Pt.items[Vt], { tagWidth: Fo } = Fe(hn, aa, On.label, On.bg, On.text);
5059
5059
  hn += Fo + (Vt < Pt.items.length - 1 ? $e : 0);
5060
5060
  }
5061
- aa += fe + (Oe < Xe.length - 1 ? ut : 0);
5061
+ aa += fe + (Pe < Xe.length - 1 ? ut : 0);
5062
5062
  }
5063
5063
  return { elements: _e };
5064
5064
  }, Je = (I) => {
5065
5065
  if (!I) return "#1d2129";
5066
- I = I.replace("#", ""), I.length === 3 && (I = I.split("").map((U) => U + U).join(""));
5067
- const $ = parseInt(I.substring(0, 2), 16), W = parseInt(I.substring(2, 4), 16), ne = parseInt(I.substring(4, 6), 16);
5068
- if (($ * 299 + W * 587 + ne * 114) / 1e3 >= 128) {
5069
- const U = $ / 255, q = W / 255, pe = ne / 255, ue = Math.max(U, q, pe), Q = Math.min(U, q, pe);
5066
+ I = I.replace("#", ""), I.length === 3 && (I = I.split("").map((W) => W + W).join(""));
5067
+ const $ = parseInt(I.substring(0, 2), 16), U = parseInt(I.substring(2, 4), 16), te = parseInt(I.substring(4, 6), 16);
5068
+ if (($ * 299 + U * 587 + te * 114) / 1e3 >= 128) {
5069
+ const W = $ / 255, q = U / 255, pe = te / 255, ue = Math.max(W, q, pe), ne = Math.min(W, q, pe);
5070
5070
  let de = 0, we = 0;
5071
- const Pe = (ue + Q) / 2;
5072
- if (ue !== Q) {
5073
- const Ue = ue - Q;
5074
- switch (we = Pe > 0.5 ? Ue / (2 - ue - Q) : Ue / (ue + Q), ue) {
5075
- case U:
5071
+ const Be = (ue + ne) / 2;
5072
+ if (ue !== ne) {
5073
+ const Ue = ue - ne;
5074
+ switch (we = Be > 0.5 ? Ue / (2 - ue - ne) : Ue / (ue + ne), ue) {
5075
+ case W:
5076
5076
  de = (q - pe) / Ue + (q < pe ? 6 : 0);
5077
5077
  break;
5078
5078
  case q:
5079
- de = (pe - U) / Ue + 2;
5079
+ de = (pe - W) / Ue + 2;
5080
5080
  break;
5081
5081
  case pe:
5082
- de = (U - q) / Ue + 4;
5082
+ de = (W - q) / Ue + 4;
5083
5083
  break;
5084
5084
  }
5085
5085
  de /= 6;
@@ -5088,7 +5088,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5088
5088
  let We, Ye, $e;
5089
5089
  if (fe === 0) We = Ye = $e = xe;
5090
5090
  else {
5091
- const Ue = (_e, He, Fe) => (Fe < 0 && (Fe += 1), Fe > 1 && (Fe -= 1), Fe < 0.16666666666666666 ? _e + (He - _e) * 6 * Fe : Fe < 0.5 ? He : Fe < 0.6666666666666666 ? _e + (He - _e) * (0.6666666666666666 - Fe) * 6 : _e), mt = xe < 0.5 ? xe * (1 + fe) : xe + fe - xe * fe, Ct = 2 * xe - mt;
5091
+ const Ue = (_e, Oe, Fe) => (Fe < 0 && (Fe += 1), Fe > 1 && (Fe -= 1), Fe < 0.16666666666666666 ? _e + (Oe - _e) * 6 * Fe : Fe < 0.5 ? Oe : Fe < 0.6666666666666666 ? _e + (Oe - _e) * (0.6666666666666666 - Fe) * 6 : _e), mt = xe < 0.5 ? xe * (1 + fe) : xe + fe - xe * fe, Ct = 2 * xe - mt;
5092
5092
  We = Ue(Ct, mt, de + 1 / 3), Ye = Ue(Ct, mt, de), $e = Ue(Ct, mt, de - 1 / 3);
5093
5093
  }
5094
5094
  const ut = (Ue) => Math.round(Ue * 255).toString(16).padStart(2, "0");
@@ -5096,9 +5096,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
5096
5096
  }
5097
5097
  return "#ffffff";
5098
5098
  }, Lt = (I) => {
5099
- const { table: $, row: W, col: ne, rect: U, value: q } = I, { Group: pe, Text: ue } = Le.CustomLayout, Q = $.getBodyField(ne, W), de = Wt($.options?.columns || [], Q), we = de?._compConfig || {}, Pe = new pe({
5100
- height: U.height,
5101
- width: U.width,
5099
+ const { table: $, row: U, col: te, rect: W, value: q } = I, { Group: pe, Text: ue } = Le.CustomLayout, ne = $.getBodyField(te, U), de = Wt($.options?.columns || [], ne), we = de?._compConfig || {}, Be = new pe({
5100
+ height: W.height,
5101
+ width: W.width,
5102
5102
  display: "flex",
5103
5103
  alignItems: "center",
5104
5104
  justifyContent: de.style?.textAlign === "center" ? "center" : de.style?.textAlign === "right" ? "flex-end" : "flex-start"
@@ -5116,7 +5116,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5116
5116
  });
5117
5117
  return fe.addEventListener("click", () => {
5118
5118
  if (we.click) {
5119
- const We = $.getCellOriginRecord(ne, W);
5119
+ const We = $.getCellOriginRecord(te, U);
5120
5120
  we.click({
5121
5121
  row: We,
5122
5122
  column: de,
@@ -5127,14 +5127,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
5127
5127
  We.target.setAttribute("fill", J(xe, -20)), $.scenegraph.stage.renderNextFrame();
5128
5128
  }), fe.addEventListener("mouseleave", (We) => {
5129
5129
  We.target.setAttribute("fill", xe), $.scenegraph.stage.renderNextFrame();
5130
- }), Pe.add(fe), {
5131
- rootContainer: Pe,
5130
+ }), Be.add(fe), {
5131
+ rootContainer: Be,
5132
5132
  renderDefault: !1
5133
5133
  };
5134
5134
  }, Dt = (I) => {
5135
- const { table: $, row: W, col: ne, rect: U } = I, { height: q, width: pe } = U ?? $.getCellRect(ne, W), { Group: ue, CheckBox: Q } = Le.CustomLayout, de = $.getBodyField(ne, W), we = Wt($.options?.columns || [], de), Pe = $.getCellOriginRecord(ne, W) || {}, xe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", fe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", We = (Ct, _e) => {
5136
- const He = Pe?.[de];
5137
- Pe[de] = (Array.isArray(He) ? He : []).map((Fe, Xe) => Xe !== Ct ? Fe : Fe && typeof Fe == "object" ? {
5135
+ const { table: $, row: U, col: te, rect: W } = I, { height: q, width: pe } = W ?? $.getCellRect(te, U), { Group: ue, CheckBox: ne } = Le.CustomLayout, de = $.getBodyField(te, U), we = Wt($.options?.columns || [], de), Be = $.getCellOriginRecord(te, U) || {}, xe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", fe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", We = (Ct, _e) => {
5136
+ const Oe = Be?.[de];
5137
+ Be[de] = (Array.isArray(Oe) ? Oe : []).map((Fe, Xe) => Xe !== Ct ? Fe : Fe && typeof Fe == "object" ? {
5138
5138
  ...Fe,
5139
5139
  ..._e
5140
5140
  } : { ..._e });
@@ -5148,7 +5148,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5148
5148
  alignItems: xe,
5149
5149
  justifyContent: "center",
5150
5150
  flexWrap: "nowrap"
5151
- }), ut = Pe?.[de];
5151
+ }), ut = Be?.[de];
5152
5152
  if (!Array.isArray(ut)) return {
5153
5153
  rootContainer: $e,
5154
5154
  renderDefault: !1
@@ -5169,9 +5169,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
5169
5169
  });
5170
5170
  $e.add(mt);
5171
5171
  for (let Ct = 0; Ct < Ue.length; Ct++) {
5172
- const _e = Ue[Ct], He = _e && typeof _e == "object" ? _e.label ?? _e.value ?? "" : _e ?? "", Fe = new Q({
5172
+ const _e = Ue[Ct], Oe = _e && typeof _e == "object" ? _e.label ?? _e.value ?? "" : _e ?? "", Fe = new ne({
5173
5173
  text: {
5174
- text: String(He),
5174
+ text: String(Oe),
5175
5175
  fontSize: 12
5176
5176
  },
5177
5177
  checked: !!(_e && typeof _e == "object" && _e.checked),
@@ -5194,29 +5194,29 @@ var Jh = { class: "j-table-footer" }, Xh = {
5194
5194
  renderDefault: !1
5195
5195
  };
5196
5196
  }, at = (I) => {
5197
- const { table: $, row: W, col: ne } = I, U = $.getBodyField(ne, W), q = Wt($.options?.columns || [], U), pe = q?._compConfig || {};
5197
+ const { table: $, row: U, col: te } = I, W = $.getBodyField(te, U), q = Wt($.options?.columns || [], W), pe = q?._compConfig || {};
5198
5198
  if (q?._customLayout) return q._customLayout({
5199
5199
  ...I,
5200
5200
  config: pe,
5201
5201
  customLayout: Le.CustomLayout
5202
5202
  });
5203
5203
  }, Wt = (I, $) => {
5204
- for (const W of I) {
5205
- if (W.field === $) return W;
5206
- if (W.columns) {
5207
- const ne = Wt(W.columns, $);
5208
- if (ne) return ne;
5204
+ for (const U of I) {
5205
+ if (U.field === $) return U;
5206
+ if (U.columns) {
5207
+ const te = Wt(U.columns, $);
5208
+ if (te) return te;
5209
5209
  }
5210
5210
  }
5211
5211
  return null;
5212
- }, jn = (I, $, W, ne) => {
5213
- const U = ne.getBodyField($, W), q = Wt(ne.options?.columns || [], U);
5214
- if (q._fieldFormat) return q._fieldFormat(I, $, W, ne);
5212
+ }, jn = (I, $, U, te) => {
5213
+ const W = te.getBodyField($, U), q = Wt(te.options?.columns || [], W);
5214
+ if (q._fieldFormat) return q._fieldFormat(I, $, U, te);
5215
5215
  if (q._compType === "dateTime") {
5216
5216
  const pe = q._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
5217
- return sc(I[U], pe);
5217
+ return sc(I[W], pe);
5218
5218
  }
5219
- return bf(I[U], s, {
5219
+ return bf(I[W], s, {
5220
5220
  type: q._compType,
5221
5221
  getCompType: q._getCompType,
5222
5222
  getCompConfig: q._getCompConfig,
@@ -5226,40 +5226,40 @@ var Jh = { class: "j-table-footer" }, Xh = {
5226
5226
  row: I
5227
5227
  });
5228
5228
  }, Zt = (I) => {
5229
- const $ = I.filter((W) => W.config?.display !== !1).map((W) => {
5230
- const { id: ne, type: U, config: q, getCompConfig: pe, getCompType: ue, children: Q, customLayout: de } = W, { label: we, width: Pe, minWidth: xe, maxWidth: fe, align: We, headerAlign: Ye, fieldFormat: $e, editor: ut, frozen: Ue, ...mt } = q || {}, Ct = Ye ?? We, _e = {
5231
- field: ne,
5229
+ const $ = I.filter((U) => U.config?.display !== !1).map((U) => {
5230
+ const { id: te, type: W, config: q, getCompConfig: pe, getCompType: ue, children: ne, customLayout: de } = U, { label: we, width: Be, minWidth: xe, maxWidth: fe, align: We, headerAlign: Ye, fieldFormat: $e, editor: ut, frozen: Ue, ...mt } = q || {}, Ct = Ye ?? We, _e = {
5231
+ field: te,
5232
5232
  title: we,
5233
- width: Pe,
5233
+ width: Be,
5234
5234
  minWidth: xe,
5235
5235
  maxWidth: fe,
5236
5236
  ...Ct ? { headerStyle: { textAlign: Ct } } : {},
5237
5237
  style: { textAlign: We },
5238
5238
  _customLayout: de,
5239
5239
  _fieldFormat: $e,
5240
- _compType: U,
5240
+ _compType: W,
5241
5241
  _compConfig: { ...mt },
5242
5242
  _getCompConfig: pe,
5243
5243
  _getCompType: ue,
5244
5244
  frozen: Ue
5245
- }, He = Kh(U);
5246
- return He && (_e.editor = He, y = !0), U === "j-switch" && (_e.customRender = Ze, _e.minWidth = _e.minWidth || Pe, _e.maxWidth = _e.maxWidth || Pe), U === "j-rate" && (_e.customRender = Ae), U === "j-slider" && (_e.customRender = nt), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Be), U === "j-icon" && (_e.customRender = Ce), U === "link" && (_e.customLayout = Lt), U === "checkbox" && (_e.customLayout = Dt), de && (_e.customLayout = at), _e.fieldFormat = jn, Q && Q.length > 0 && (_e.columns = Zt(Q)), _e;
5245
+ }, Oe = Kh(W);
5246
+ return Oe && (_e.editor = Oe, y = !0), W === "j-switch" && (_e.customRender = Ze, _e.minWidth = _e.minWidth || Be, _e.maxWidth = _e.maxWidth || Be), W === "j-rate" && (_e.customRender = Ae), W === "j-slider" && (_e.customRender = nt), (W === "j-tag" || W === "j-input-tag") && (_e.customRender = Ie), W === "j-icon" && (_e.customRender = Ce), W === "link" && (_e.customLayout = Lt), W === "checkbox" && (_e.customLayout = Dt), de && (_e.customLayout = at), _e.fieldFormat = jn, ne && ne.length > 0 && (_e.columns = Zt(ne)), _e;
5247
5247
  });
5248
5248
  return o.isTree && $.length > 0 && ($[0].tree = !0), $;
5249
5249
  }, J = (I, $) => {
5250
- const W = I.replace("#", ""), ne = parseInt(W, 16), U = Math.min(255, Math.max(0, (ne >> 16) + $)), q = Math.min(255, Math.max(0, (ne >> 8 & 255) + $)), pe = Math.min(255, Math.max(0, (ne & 255) + $));
5251
- return `#${(U << 16 | q << 8 | pe).toString(16).padStart(6, "0")}`;
5250
+ const U = I.replace("#", ""), te = parseInt(U, 16), W = Math.min(255, Math.max(0, (te >> 16) + $)), q = Math.min(255, Math.max(0, (te >> 8 & 255) + $)), pe = Math.min(255, Math.max(0, (te & 255) + $));
5251
+ return `#${(W << 16 | q << 8 | pe).toString(16).padStart(6, "0")}`;
5252
5252
  }, ce = () => {
5253
5253
  let I = R;
5254
5254
  o.isPage && (I = be.value + R);
5255
5255
  let $ = sn(String(I)) || 0;
5256
5256
  return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
5257
5257
  }, Z = (I) => {
5258
- let $ = (W, ne, U, q) => {
5259
- const pe = q.getRecordIndexByCell(ne, U);
5258
+ let $ = (U, te, W, q) => {
5259
+ const pe = q.getRecordIndexByCell(te, W);
5260
5260
  return o.isPage && !I ? be.value + pe + 1 : pe + 1;
5261
5261
  };
5262
- return I && ($ = (W, ne, U, q) => q.getRecordIndexByCell(ne, U) + 1), {
5262
+ return I && ($ = (U, te, W, q) => q.getRecordIndexByCell(te, W) + 1), {
5263
5263
  field: "__sequence__",
5264
5264
  title: "序号",
5265
5265
  width: m,
@@ -5272,7 +5272,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5272
5272
  _getCompConfig: void 0,
5273
5273
  _getCompType: void 0
5274
5274
  };
5275
- }, ee = () => ({
5275
+ }, Q = () => ({
5276
5276
  field: "__placeholder__",
5277
5277
  title: "",
5278
5278
  width: "auto",
@@ -5286,79 +5286,79 @@ var Jh = { class: "j-table-footer" }, Xh = {
5286
5286
  }), ie = (I) => {
5287
5287
  if (I.frozen) return I.frozen;
5288
5288
  if (I.columns) for (const $ of I.columns) {
5289
- const W = ie($);
5290
- if (W) return W;
5289
+ const U = ie($);
5290
+ if (U) return U;
5291
5291
  }
5292
5292
  }, Se = (I) => {
5293
5293
  const $ = [];
5294
- return I.forEach((W) => {
5295
- if (W.frozen) {
5296
- $.push(W);
5294
+ return I.forEach((U) => {
5295
+ if (U.frozen) {
5296
+ $.push(U);
5297
5297
  return;
5298
5298
  }
5299
- if (!W.columns || W.columns.length === 0) {
5300
- $.push(W);
5299
+ if (!U.columns || U.columns.length === 0) {
5300
+ $.push(U);
5301
5301
  return;
5302
5302
  }
5303
- const ne = Se(W.columns), U = [], q = [], pe = [];
5304
- if (ne.forEach((ue) => {
5305
- const Q = ie(ue);
5306
- Q === "left" ? U.push(ue) : Q === "right" ? q.push(ue) : pe.push(ue);
5307
- }), (U.length > 0 ? 1 : 0) + (q.length > 0 ? 1 : 0) + (pe.length > 0 ? 1 : 0) <= 1) {
5308
- W.columns = ne, $.push(W);
5303
+ const te = Se(U.columns), W = [], q = [], pe = [];
5304
+ if (te.forEach((ue) => {
5305
+ const ne = ie(ue);
5306
+ ne === "left" ? W.push(ue) : ne === "right" ? q.push(ue) : pe.push(ue);
5307
+ }), (W.length > 0 ? 1 : 0) + (q.length > 0 ? 1 : 0) + (pe.length > 0 ? 1 : 0) <= 1) {
5308
+ U.columns = te, $.push(U);
5309
5309
  return;
5310
5310
  }
5311
- U.length && $.push({
5312
- ...W,
5313
- columns: U
5311
+ W.length && $.push({
5312
+ ...U,
5313
+ columns: W
5314
5314
  }), pe.length && $.push({
5315
- ...W,
5315
+ ...U,
5316
5316
  columns: pe
5317
5317
  }), q.length && $.push({
5318
- ...W,
5318
+ ...U,
5319
5319
  columns: q
5320
5320
  });
5321
5321
  }), $;
5322
5322
  }, Me = (I) => {
5323
- let $ = 0, W = 0;
5324
- return I.forEach((ne) => {
5325
- if (ne.columns && ne.columns.length > 0) {
5326
- const U = Me(ne.columns);
5327
- $ += U.left, W += U.right;
5328
- } else ne.frozen === "left" ? $++ : ne.frozen === "right" && W++;
5323
+ let $ = 0, U = 0;
5324
+ return I.forEach((te) => {
5325
+ if (te.columns && te.columns.length > 0) {
5326
+ const W = Me(te.columns);
5327
+ $ += W.left, U += W.right;
5328
+ } else te.frozen === "left" ? $++ : te.frozen === "right" && U++;
5329
5329
  }), {
5330
5330
  left: $,
5331
- right: W
5331
+ right: U
5332
5332
  };
5333
- }, ot = (I, $, W, ne) => {
5333
+ }, ot = (I, $, U, te) => {
5334
5334
  b = 0, x = 0, y = !1;
5335
- const U = {};
5335
+ const W = {};
5336
5336
  let q = Zt(I);
5337
- q.length === 0 && (q = [ee()]), q = Se(q);
5338
- const pe = [], ue = [], Q = [];
5337
+ q.length === 0 && (q = [Q()]), q = Se(q);
5338
+ const pe = [], ue = [], ne = [];
5339
5339
  q.forEach((xe) => {
5340
5340
  const fe = ie(xe);
5341
- fe === "left" ? pe.push(xe) : fe === "right" ? ue.push(xe) : Q.push(xe);
5341
+ fe === "left" ? pe.push(xe) : fe === "right" ? ue.push(xe) : ne.push(xe);
5342
5342
  });
5343
5343
  const de = Me(pe), we = Me(ue);
5344
5344
  x += de.left, b += we.right, q = [
5345
5345
  ...pe,
5346
- ...Q,
5346
+ ...ne,
5347
5347
  ...ue
5348
- ], $ && (q.unshift(Z(ne)), x++), W.length > 0 && (q.push(Ge(W)), b++), y && (U.editCellTrigger = "click", U.keyboardOptions = {
5348
+ ], $ && (q.unshift(Z(te)), x++), U.length > 0 && (q.push(Ge(U)), b++), y && (W.editCellTrigger = "click", W.keyboardOptions = {
5349
5349
  copySelected: !0,
5350
5350
  cutSelected: !0,
5351
5351
  pasteValueToCell: !0,
5352
5352
  selectAllOnCtrlA: !0
5353
5353
  });
5354
- const Pe = (xe) => {
5354
+ const Be = (xe) => {
5355
5355
  for (const fe of xe)
5356
- if (fe?._compType === "checkbox" || Array.isArray(fe?.columns) && Pe(fe.columns)) return !0;
5356
+ if (fe?._compType === "checkbox" || Array.isArray(fe?.columns) && Be(fe.columns)) return !0;
5357
5357
  return !1;
5358
5358
  };
5359
- return Pe(q) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
5359
+ return Be(q) && (W.defaultRowHeight = "auto", W.defaultHeaderRowHeight = 40), {
5360
5360
  columns: q,
5361
- option: U
5361
+ option: W
5362
5362
  };
5363
5363
  }, Tt = () => {
5364
5364
  const I = ot(o.columns, o.isShowNumber && !o.isTree, o.actions);
@@ -5416,36 +5416,36 @@ var Jh = { class: "j-table-footer" }, Xh = {
5416
5416
  }, lt = (I) => !o.isTree || !o.parentKey || I.some(($) => Array.isArray($?.children) && $.children.length > 0) ? I : gf(I, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Pn = (I) => {
5417
5417
  if (!p.value) return;
5418
5418
  m = ce(), Gh();
5419
- const $ = Tt(), W = Yt();
5420
- I && I.length >= 0 ? $.records = lt(I) : W.length > 0 ? $.records = lt(W) : ($.records = lt(o.records), i("update:modelValue", $.records)), g = new Le.ListTable(p.value, $), g._getAppContext = () => a?.appContext;
5421
- const ne = a?.provides;
5422
- g._getProvides = () => ne, o.loadChildren && g.on(Le.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (U) => {
5423
- if (U.hierarchyState === Le.TYPES.HierarchyState.expand && U.originData?.children === !0) {
5424
- g.setLoadingHierarchyState(U.col, U.row);
5419
+ const $ = Tt(), U = Yt();
5420
+ I && I.length >= 0 ? $.records = lt(I) : U.length > 0 ? $.records = lt(U) : ($.records = lt(o.records), i("update:modelValue", $.records)), g = new Le.ListTable(p.value, $), g._getAppContext = () => a?.appContext;
5421
+ const te = a?.provides;
5422
+ g._getProvides = () => te, o.loadChildren && g.on(Le.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (W) => {
5423
+ if (W.hierarchyState === Le.TYPES.HierarchyState.expand && W.originData?.children === !0) {
5424
+ g.setLoadingHierarchyState(W.col, W.row);
5425
5425
  try {
5426
- const q = await o.loadChildren(U.originData);
5427
- o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(q, U.col, U.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(q, U.col, U.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(q, U.col, U.row);
5426
+ const q = await o.loadChildren(W.originData);
5427
+ o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(q, W.col, W.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(q, W.col, W.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(q, W.col, W.row);
5428
5428
  } catch (q) {
5429
- console.error("Failed to load detail data:", q), g.setLoadingHierarchyState(U.col, U.row);
5429
+ console.error("Failed to load detail data:", q), g.setLoadingHierarchyState(W.col, W.row);
5430
5430
  }
5431
5431
  }
5432
- }), g.on("click_cell", (U) => {
5433
- const { col: q, cellType: pe, originData: ue } = U;
5432
+ }), g.on("click_cell", (W) => {
5433
+ const { col: q, cellType: pe, originData: ue } = W;
5434
5434
  if (yt.value) {
5435
5435
  if (pe === "checkbox" && q == 0) {
5436
- const Q = gt();
5437
- Q.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = Q.length, i("selectionChanged", {
5436
+ const ne = gt();
5437
+ ne.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = ne.length, i("selectionChanged", {
5438
5438
  isMultiple: !0,
5439
- selections: Q,
5439
+ selections: ne,
5440
5440
  record: ue,
5441
- checked: Q.find((de) => re(de) === re(ue)) !== void 0
5441
+ checked: ne.find((de) => re(de) === re(ue)) !== void 0
5442
5442
  }), g.renderWithRecreateCells();
5443
5443
  }
5444
5444
  } else setTimeout(() => {
5445
- const Q = gt();
5446
- w.value = Q.length, i("selectionChanged", {
5445
+ const ne = gt();
5446
+ w.value = ne.length, i("selectionChanged", {
5447
5447
  isMultiple: !1,
5448
- selections: Q,
5448
+ selections: ne,
5449
5449
  record: ue,
5450
5450
  checked: !0
5451
5451
  });
@@ -5461,10 +5461,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
5461
5461
  ea(), Pn($);
5462
5462
  });
5463
5463
  else {
5464
- const W = ce();
5465
- W !== m ? (m = W, o.subColumns && o.subColumns.length > 0 ? (ea(), Pn($)) : _t($)) : g.setRecords($);
5464
+ const U = ce();
5465
+ U !== m ? (m = U, o.subColumns && o.subColumns.length > 0 ? (ea(), Pn($)) : _t($)) : g.setRecords($);
5466
5466
  }
5467
- o.selectStateKey && o.isMultiple && vt(I.filter((W) => W[o.selectStateKey]));
5467
+ o.selectStateKey && o.isMultiple && vt(I.filter((U) => U[o.selectStateKey]));
5468
5468
  }
5469
5469
  }, Ua = () => g ? g.records : [];
5470
5470
  kt(() => {
@@ -5502,29 +5502,29 @@ var Jh = { class: "j-table-footer" }, Xh = {
5502
5502
  return [];
5503
5503
  }
5504
5504
  if (g.stateManager && g.stateManager.checkedState) {
5505
- const I = [], $ = /* @__PURE__ */ new Set(), W = (ue) => {
5505
+ const I = [], $ = /* @__PURE__ */ new Set(), U = (ue) => {
5506
5506
  if (!ue) return;
5507
- const Q = re(ue);
5508
- if (Q) {
5509
- if ($.has(Q)) return;
5510
- $.add(Q);
5507
+ const ne = re(ue);
5508
+ if (ne) {
5509
+ if ($.has(ne)) return;
5510
+ $.add(ne);
5511
5511
  const de = {};
5512
5512
  ui(de, ue, ["children"]), I.push(de);
5513
5513
  }
5514
- }, ne = (ue) => {
5515
- const Q = ue?.children;
5516
- !Array.isArray(Q) || Q.length === 0 || Q.forEach((de) => {
5517
- W(de), ne(de);
5514
+ }, te = (ue) => {
5515
+ const ne = ue?.children;
5516
+ !Array.isArray(ne) || ne.length === 0 || ne.forEach((de) => {
5517
+ U(de), te(de);
5518
5518
  });
5519
- }, U = g.stateManager.checkedState, q = g.records, pe = (ue, Q, de) => {
5520
- const we = de[Q[ue]];
5521
- return ue < Q.length - 1 && we?.children && we.children.length > 0 ? pe(ue + 1, Q, we.children || []) : we;
5519
+ }, W = g.stateManager.checkedState, q = g.records, pe = (ue, ne, de) => {
5520
+ const we = de[ne[ue]];
5521
+ return ue < ne.length - 1 && we?.children && we.children.length > 0 ? pe(ue + 1, ne, we.children || []) : we;
5522
5522
  };
5523
- return U.forEach((ue, Q) => {
5523
+ return W.forEach((ue, ne) => {
5524
5524
  const de = ue?._checkState;
5525
5525
  if (de === "indeterminate" || de === !0) {
5526
- const we = (Q + "").split(",").map(Number), Pe = pe(0, we, q);
5527
- console.log(Pe, we, de), W(Pe), de === !0 && ne(Pe);
5526
+ const we = pe(0, (ne + "").split(",").map(Number), q);
5527
+ U(we), de === !0 && te(we);
5528
5528
  }
5529
5529
  }), I;
5530
5530
  }
@@ -5532,40 +5532,37 @@ var Jh = { class: "j-table-footer" }, Xh = {
5532
5532
  }, re = (I) => o.rowKey ? o.rowKey.split(",").map(($) => I[$.trim()]).join("::") : "", vt = (I) => {
5533
5533
  if (g)
5534
5534
  if (yt.value || g.clearSelected(), o.rowKey) {
5535
- const $ = new Set(I.map(re)), W = "__checkState";
5535
+ const $ = new Set(I.map(re)), U = "__checkState";
5536
5536
  if (!yt.value) {
5537
5537
  const ue = g.records;
5538
- for (let Q = 0; Q < ue.length; Q++) {
5539
- const de = ue[Q];
5538
+ for (let ne = 0; ne < ue.length; ne++) {
5539
+ const de = ue[ne];
5540
5540
  if (!$.has(re(de))) continue;
5541
- const we = g.getTableIndexByRecordIndex(Q);
5541
+ const we = g.getTableIndexByRecordIndex(ne);
5542
5542
  g.selectRow(we);
5543
5543
  break;
5544
5544
  }
5545
5545
  return;
5546
5546
  }
5547
- const ne = (ue) => {
5548
- ue.forEach((Q) => {
5549
- if (Array.isArray(Q?.children) && Q.children.length > 0) {
5550
- ne(Q.children);
5551
- const de = Q.children, we = de.filter((xe) => xe?.[W] === !0), Pe = de.filter((xe) => xe?.[W] === !1);
5552
- we.length == de.length ? Q[W] = !0 : Pe.length == de.length ? Q[W] = !1 : Q[W] = "indeterminate", Q[W] === "indeterminate" && (Q.hierarchyState = "expand");
5553
- } else Q[W] = !!$.has(re(Q));
5547
+ const te = (ue) => {
5548
+ ue.forEach((ne) => {
5549
+ if (Array.isArray(ne?.children) && ne.children.length > 0) {
5550
+ te(ne.children);
5551
+ const de = ne.children, we = de.filter((xe) => xe?.[U] === !0), Be = de.filter((xe) => xe?.[U] === !1);
5552
+ we.length == de.length ? ne[U] = !0 : Be.length == de.length ? ne[U] = !1 : ne[U] = "indeterminate", ne[U] === "indeterminate" && (ne.hierarchyState = "expand");
5553
+ } else ne[U] = !!$.has(re(ne));
5554
5554
  });
5555
- }, U = g.records;
5556
- o.isTree ? ne(U) : U.forEach((ue) => {
5557
- ue[W] = $.has(re(ue));
5555
+ }, W = g.records;
5556
+ o.isTree ? te(W) : W.forEach((ue) => {
5557
+ ue[U] = $.has(re(ue));
5558
5558
  });
5559
5559
  const q = Tt();
5560
- q.records = U, g.updateOption(q, {
5560
+ q.records = W, g.updateOption(q, {
5561
5561
  clearColWidthCache: !1,
5562
5562
  clearRowHeightCache: !1
5563
5563
  }), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
5564
5564
  const pe = g.getAllBodyCells(1);
5565
- for (let ue = 0; ue < pe.length; ue++) {
5566
- const Q = pe[ue][0];
5567
- Q.originData[W] == !0 && (console.log(ue, Q, Q.originData[W]), g.setCellCheckboxState(0, ue + 1, !0));
5568
- }
5565
+ for (let ue = 0; ue < pe.length; ue++) pe[ue][0].originData[U] == !0 && g.setCellCheckboxState(0, ue + 1, !0);
5569
5566
  g.renderWithRecreateCells();
5570
5567
  } else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
5571
5568
  }, Qt = (I) => {
@@ -5577,8 +5574,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
5577
5574
  vt($);
5578
5575
  return;
5579
5576
  }
5580
- const W = Tt();
5581
- W.records = I || g.records, g.updateOption(W, {
5577
+ const U = Tt();
5578
+ U.records = I || g.records, g.updateOption(U, {
5582
5579
  clearColWidthCache: !1,
5583
5580
  clearRowHeightCache: !1
5584
5581
  }), o.heightMode === "auto" && (d.value = g.getAllRowsHeight()), w.value = 0;
@@ -5595,17 +5592,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
5595
5592
  });
5596
5593
  const fn = P(() => {
5597
5594
  const I = ($) => {
5598
- const W = [];
5599
- return $.forEach((ne) => {
5600
- ne.children && ne.children.length > 0 ? W.push(...I(ne.children)) : W.push(ne);
5601
- }), W;
5595
+ const U = [];
5596
+ return $.forEach((te) => {
5597
+ te.children && te.children.length > 0 ? U.push(...I(te.children)) : U.push(te);
5598
+ }), U;
5602
5599
  };
5603
5600
  return I(o.columns);
5604
5601
  }), en = () => {
5605
5602
  const I = {};
5606
5603
  I._i = Fn(), fn.value.forEach(($) => {
5607
- const W = $.config?.valueRowKey || $.id || "";
5608
- W && (I[W] = dn($.config?.defaultValue));
5604
+ const U = $.config?.valueRowKey || $.id || "";
5605
+ U && (I[U] = dn($.config?.defaultValue));
5609
5606
  }), g && (g.addRecord(I), o.heightMode === "auto" && _t(), g.scrollToCell({
5610
5607
  col: 0,
5611
5608
  row: g.records.length
@@ -5625,14 +5622,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
5625
5622
  cancelButtonText: "取消",
5626
5623
  type: "warning"
5627
5624
  }).then(() => {
5628
- const $ = g.records, W = new Set(I.map((U) => U._i)), ne = $.filter((U) => !W.has(U._i));
5629
- _t(ne), i("update:modelValue", ne), I.forEach((U) => {
5625
+ const $ = g.records, U = new Set(I.map((W) => W._i)), te = $.filter((W) => !U.has(W._i));
5626
+ _t(te), i("update:modelValue", te), I.forEach((W) => {
5630
5627
  i("change", {
5631
5628
  id: o.id,
5632
- value: U,
5633
- data: U,
5629
+ value: W,
5630
+ data: W,
5634
5631
  formData: l,
5635
- tableData: ne,
5632
+ tableData: te,
5636
5633
  type: "delete"
5637
5634
  });
5638
5635
  }), w.value = 0;
@@ -5673,7 +5670,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5673
5670
  setSelection: vt,
5674
5671
  renderTable: Jt
5675
5672
  }), (I, $) => {
5676
- const W = L("j-button"), ne = L("el-space"), U = L("el-pagination");
5673
+ const U = L("j-button"), te = L("el-space"), W = L("el-pagination");
5677
5674
  return _(), O("div", {
5678
5675
  class: De(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
5679
5676
  style: Re(f.value)
@@ -5687,14 +5684,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
5687
5684
  class: De("j-block")
5688
5685
  }, null, 512)], 4),
5689
5686
  F("div", Jh, [e.isPage || !zo.value && (rt.value || ta.value) ? (_(), O("div", Xh, [
5690
- Y(ne, null, {
5691
- default: N(() => [rt.value ? (_(), H(W, {
5687
+ Y(te, null, {
5688
+ default: N(() => [rt.value ? (_(), H(U, {
5692
5689
  key: 0,
5693
5690
  type: "link",
5694
5691
  label: Ka.value,
5695
5692
  icon: "mdi:add",
5696
5693
  onClick: en
5697
- }, null, 8, ["label"])) : K("", !0), ta.value ? (_(), H(W, {
5694
+ }, null, 8, ["label"])) : K("", !0), ta.value ? (_(), H(U, {
5698
5695
  key: 1,
5699
5696
  type: "link",
5700
5697
  label: "删除",
@@ -5706,7 +5703,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
5706
5703
  _: 1
5707
5704
  }),
5708
5705
  $[2] || ($[2] = F("div", null, null, -1)),
5709
- e.isPage ? (_(), H(U, {
5706
+ e.isPage ? (_(), H(W, {
5710
5707
  key: 0,
5711
5708
  "current-page": Ya.value,
5712
5709
  "onUpdate:currentPage": $[0] || ($[0] = (q) => Ya.value = q),
@@ -5935,19 +5932,19 @@ var Jh = { class: "j-table-footer" }, Xh = {
5935
5932
  Ae + R.value < 0 && (Ae = -R.value), typeof document < "u" && document.body && (x.value ? Ae + x.value + R.value > document.body.clientWidth && (Ae = document.body.clientWidth - x.value - R.value) : Ae + k.value + R.value > document.body.clientWidth && (Ae = document.body.clientWidth - k.value - R.value)), nt + m.value < 0 && (nt = -m.value), typeof window < "u" && (y.value ? nt + y.value + m.value + 40 > window.innerHeight && (nt = window.innerHeight - y.value - m.value - 40) : nt + w.value + m.value + 40 > window.innerHeight && (nt = window.innerHeight - w.value - m.value - 40)), p.left = Ae, p.top = nt;
5936
5933
  }
5937
5934
  }, Ne = (oe) => {
5938
- const Ge = v.value.offsetLeft, Ze = v.value.offsetTop, Ae = v.value.clientWidth, nt = v.value.clientHeight, ct = nt - b.value, te = v.value.scrollTop;
5939
- if (oe.clientX > Ge + Ae - 10 && te + oe.clientY > Ze + nt - 10 || te + oe.clientY < Ze + 5 && Ge + 10 > oe.clientX) v.value.style.cursor = "se-resize";
5940
- else if (Ge + 10 > oe.clientX && te + oe.clientY > Ze + nt - 10 || oe.clientX > Ge + Ae - 10 && te + oe.clientY < Ze + 5) v.value.style.cursor = "sw-resize";
5935
+ const Ge = v.value.offsetLeft, Ze = v.value.offsetTop, Ae = v.value.clientWidth, nt = v.value.clientHeight, ct = nt - b.value, ee = v.value.scrollTop;
5936
+ if (oe.clientX > Ge + Ae - 10 && ee + oe.clientY > Ze + nt - 10 || ee + oe.clientY < Ze + 5 && Ge + 10 > oe.clientX) v.value.style.cursor = "se-resize";
5937
+ else if (Ge + 10 > oe.clientX && ee + oe.clientY > Ze + nt - 10 || oe.clientX > Ge + Ae - 10 && ee + oe.clientY < Ze + 5) v.value.style.cursor = "sw-resize";
5941
5938
  else if (oe.clientX > Ge + Ae - 10 || Ge + 10 > oe.clientX) v.value.style.cursor = "w-resize";
5942
- else if (te + oe.clientY > Ze + nt - 10 || te + oe.clientY < Ze + 5) v.value.style.cursor = "s-resize";
5939
+ else if (ee + oe.clientY > Ze + nt - 10 || ee + oe.clientY < Ze + 5) v.value.style.cursor = "s-resize";
5943
5940
  else {
5944
5941
  v.value.style.cursor = "default", v.value.onmousedown = null;
5945
5942
  return;
5946
5943
  }
5947
5944
  v.value.onmousedown = (Ce) => {
5948
- const { clientX: Be } = Ce, { clientY: Je } = Ce, Lt = p.left + R.value, Dt = p.top + m.value;
5949
- p._left = p.left, p._top = p.top, y.value || (y.value = ct), x.value || (x.value = Ae), Be > Lt + 10 && Be < Lt + Ae - 10 && Je > Dt + 5 && Je < Dt + 47 || (typeof document < "u" && (document.onmousemove = function(at) {
5950
- at.preventDefault(), Be > Lt && Be < Lt + 10 && (Be > at.clientX && (x.value = Ae + (Be - at.clientX), p.left = p._left - (Be - at.clientX)), Be < at.clientX && x.value > a.minWidth && (x.value = Ae - (at.clientX - Be), p.left = p._left + at.clientX - Be)), Be > Lt + Ae - 10 && Be < Lt + Ae && (Be > at.clientX && x.value > a.minWidth && (x.value = Ae - (Be - at.clientX)), Be < at.clientX && typeof document < "u" && document.body && R.value + p.left + x.value < document.body.clientWidth && (x.value = Ae + (at.clientX - Be))), Je > Dt && Je < Dt + 5 && (Je > at.clientY && (y.value = ct + Je - at.clientY, p.top = p._top - (Je - at.clientY)), Je < at.clientY && y.value > a.minHeight && (y.value = ct - (at.clientY - Je), p.top = p._top + at.clientY - Je)), te + Je > Dt + ct + 38 && te + Je < Dt + ct + 48 && (Je > at.clientY && y.value > a.minHeight && (y.value = ct - (Je - at.clientY)), Je < at.clientY && typeof window < "u" && m.value + p.top + y.value + 48 < window.innerHeight && (y.value = ct + at.clientY - Je));
5945
+ const { clientX: Ie } = Ce, { clientY: Je } = Ce, Lt = p.left + R.value, Dt = p.top + m.value;
5946
+ p._left = p.left, p._top = p.top, y.value || (y.value = ct), x.value || (x.value = Ae), Ie > Lt + 10 && Ie < Lt + Ae - 10 && Je > Dt + 5 && Je < Dt + 47 || (typeof document < "u" && (document.onmousemove = function(at) {
5947
+ at.preventDefault(), Ie > Lt && Ie < Lt + 10 && (Ie > at.clientX && (x.value = Ae + (Ie - at.clientX), p.left = p._left - (Ie - at.clientX)), Ie < at.clientX && x.value > a.minWidth && (x.value = Ae - (at.clientX - Ie), p.left = p._left + at.clientX - Ie)), Ie > Lt + Ae - 10 && Ie < Lt + Ae && (Ie > at.clientX && x.value > a.minWidth && (x.value = Ae - (Ie - at.clientX)), Ie < at.clientX && typeof document < "u" && document.body && R.value + p.left + x.value < document.body.clientWidth && (x.value = Ae + (at.clientX - Ie))), Je > Dt && Je < Dt + 5 && (Je > at.clientY && (y.value = ct + Je - at.clientY, p.top = p._top - (Je - at.clientY)), Je < at.clientY && y.value > a.minHeight && (y.value = ct - (at.clientY - Je), p.top = p._top + at.clientY - Je)), ee + Je > Dt + ct + 38 && ee + Je < Dt + ct + 48 && (Je > at.clientY && y.value > a.minHeight && (y.value = ct - (Je - at.clientY)), Je < at.clientY && typeof window < "u" && m.value + p.top + y.value + 48 < window.innerHeight && (y.value = ct + at.clientY - Je));
5951
5948
  }), typeof document < "u" && (document.onmouseup = function() {
5952
5949
  typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
5953
5950
  }));
@@ -5959,8 +5956,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
5959
5956
  showLoading: C,
5960
5957
  hideLoading: T
5961
5958
  }), (oe, Ge) => {
5962
- const Ze = L("j-button"), Ae = L("el-space"), nt = L("el-step"), ct = L("el-steps"), te = L("el-dialog");
5963
- return _(), H(te, {
5959
+ const Ze = L("j-button"), Ae = L("el-space"), nt = L("el-step"), ct = L("el-steps"), ee = L("el-dialog");
5960
+ return _(), H(ee, {
5964
5961
  modelValue: l.value,
5965
5962
  "onUpdate:modelValue": Ge[0] || (Ge[0] = (Ce) => l.value = Ce),
5966
5963
  class: "j-dialog",
@@ -6014,8 +6011,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
6014
6011
  space: 160,
6015
6012
  "finish-status": "success"
6016
6013
  }, {
6017
- default: N(() => [(_(!0), O(ge, null, ke(X.value, (Ce, Be) => (_(), H(nt, {
6018
- key: Be,
6014
+ default: N(() => [(_(!0), O(ge, null, ke(X.value, (Ce, Ie) => (_(), H(nt, {
6015
+ key: Ie,
6019
6016
  title: G(i)(Ce.title)
6020
6017
  }, null, 8, ["title"]))), 128))]),
6021
6018
  _: 1
@@ -6051,7 +6048,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
6051
6048
  (_(!0), O(ge, null, ke(e.buttons, (Ce) => (_(), H(Ze, ze({ ref_for: !0 }, Ce.config, {
6052
6049
  key: Ce.id,
6053
6050
  label: Ce.label,
6054
- onClick: (Be) => dt(Ce)
6051
+ onClick: (Ie) => dt(Ce)
6055
6052
  }), null, 16, ["label", "onClick"]))), 128)),
6056
6053
  e.hasSaveBtn ? (_(), H(Ze, {
6057
6054
  key: 3,
@@ -7368,9 +7365,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
7368
7365
  sizeType: n.sizeType
7369
7366
  })), x = j([]), y = () => {
7370
7367
  x.value = [...x.value];
7371
- }, w = (te) => {
7368
+ }, w = (ee) => {
7372
7369
  if (n.maxSize && n.sizeType) {
7373
- let Ce = te;
7370
+ let Ce = ee;
7374
7371
  switch (n.sizeType) {
7375
7372
  case "GB":
7376
7373
  Ce = 1024 * 1024 * 1024 * n.maxSize;
@@ -7385,7 +7382,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
7385
7382
  Ce = n.maxSize;
7386
7383
  break;
7387
7384
  }
7388
- if (Ce < te) return !1;
7385
+ if (Ce < ee) return !1;
7389
7386
  }
7390
7387
  return !0;
7391
7388
  }, R = {
@@ -7397,15 +7394,15 @@ var Jh = { class: "j-table-footer" }, Xh = {
7397
7394
  image: "file-image",
7398
7395
  txt: "file-txt",
7399
7396
  json: "file-json"
7400
- }, m = (te) => {
7401
- if (te) {
7402
- const Ce = te.split(".");
7397
+ }, m = (ee) => {
7398
+ if (ee) {
7399
+ const Ce = ee.split(".");
7403
7400
  return Ce[Ce.length - 1];
7404
7401
  }
7405
7402
  return "";
7406
- }, k = (te, Ce) => {
7403
+ }, k = (ee, Ce) => {
7407
7404
  if (Ce && Ce.indexOf("image") > -1) return "file-image";
7408
- const Be = m(te);
7405
+ const Ie = m(ee);
7409
7406
  return [
7410
7407
  "webp",
7411
7408
  "bmp",
@@ -7415,93 +7412,93 @@ var Jh = { class: "j-table-footer" }, Xh = {
7415
7412
  "tif",
7416
7413
  "gif",
7417
7414
  "svg"
7418
- ].includes(Be) ? "file-image" : R[Be] || "file-ufo";
7419
- }, C = (te) => {
7420
- te.status = n.autoUpload ? "uploading" : "unUpload", te.uploadSize = 0, te.icon = k(te.name, te.type), f || (te.icon = "file-text"), te.id = te.uid, te.url = window.URL.createObjectURL(te), te.date = No(), te.param = b.value;
7421
- }, T = (te) => {
7415
+ ].includes(Ie) ? "file-image" : R[Ie] || "file-ufo";
7416
+ }, C = (ee) => {
7417
+ ee.status = n.autoUpload ? "uploading" : "unUpload", ee.uploadSize = 0, ee.icon = k(ee.name, ee.type), f || (ee.icon = "file-text"), ee.id = ee.uid, ee.url = window.URL.createObjectURL(ee), ee.date = No(), ee.param = b.value;
7418
+ }, T = (ee) => {
7422
7419
  a("start", {
7423
- file: te,
7420
+ file: ee,
7424
7421
  list: x.value
7425
7422
  });
7426
- }, A = (te, Ce, Be) => {
7427
- te.percent = Be, te.uploadSize = Ce, y();
7428
- }, E = (te) => {
7429
- te.status = "done", te.id += "1", te.uid += "1", y(), a("success", {
7430
- file: te,
7423
+ }, A = (ee, Ce, Ie) => {
7424
+ ee.percent = Ie, ee.uploadSize = Ce, y();
7425
+ }, E = (ee) => {
7426
+ ee.status = "done", ee.id += "1", ee.uid += "1", y(), a("success", {
7427
+ file: ee,
7431
7428
  list: x.value
7432
7429
  }), n.modelValue || (a("update:modelValue", v.value), a("change", { value: v.value }));
7433
- }, B = (te, Ce) => {
7434
- console.error(Ce, "简搭提醒您:文件上传错误!"), te.status = "error", y(), a("error", {
7435
- file: te,
7430
+ }, B = (ee, Ce) => {
7431
+ console.error(Ce, "简搭提醒您:文件上传错误!"), ee.status = "error", y(), a("error", {
7432
+ file: ee,
7436
7433
  list: x.value
7437
7434
  });
7438
- }, z = (te) => {
7439
- if (x.value.push(te), te.status === "unUpload") {
7440
- a("notUploadChange", { value: te.url });
7435
+ }, z = (ee) => {
7436
+ if (x.value.push(ee), ee.status === "unUpload") {
7437
+ a("notUploadChange", { value: ee.url });
7441
7438
  return;
7442
7439
  }
7443
- !n.isNotApi && n.upload ? n.upload(te) : !n.isNotApi && f ? f(te, {
7440
+ !n.isNotApi && n.upload ? n.upload(ee) : !n.isNotApi && f ? f(ee, {
7444
7441
  onStart: T,
7445
7442
  onProgress: A,
7446
7443
  onSuccess: E,
7447
7444
  onError: B,
7448
7445
  uploadCallback: n.uploadCallback
7449
- }) : E(te);
7450
- }, V = (te) => {
7451
- if (!w(te.size))
7446
+ }) : E(ee);
7447
+ }, V = (ee) => {
7448
+ if (!w(ee.size))
7452
7449
  return i && i("上传文件超出大小了"), !1;
7453
- }, M = (te) => {
7454
- C(te.file), z(te.file);
7455
- }, S = (te) => new Promise((Ce) => {
7450
+ }, M = (ee) => {
7451
+ C(ee.file), z(ee.file);
7452
+ }, S = (ee) => new Promise((Ce) => {
7456
7453
  l ? l({
7457
7454
  title: "提示",
7458
7455
  iconType: "warning",
7459
- content: `您确定删除【${te.name}】?`,
7456
+ content: `您确定删除【${ee.name}】?`,
7460
7457
  onOk: () => {
7461
7458
  Ce(!0);
7462
7459
  },
7463
7460
  onCancel: () => {
7464
7461
  Ce(!1);
7465
7462
  }
7466
- }) : (D(te), Ce(!0));
7467
- }), D = (te) => {
7463
+ }) : (D(ee), Ce(!0));
7464
+ }), D = (ee) => {
7468
7465
  if (!n.isNotApi) {
7469
- const Ce = te.response?.fileId || te.id;
7466
+ const Ce = ee.response?.fileId || ee.id;
7470
7467
  d && d(Ce);
7471
7468
  }
7472
- x.value = x.value.filter((Ce) => Ce.id !== te.id), x.value.length === 0 && (a("update:modelValue", ""), a("change", { value: "" })), a("delete", {
7473
- file: te,
7469
+ x.value = x.value.filter((Ce) => Ce.id !== ee.id), x.value.length === 0 && (a("update:modelValue", ""), a("change", { value: "" })), a("delete", {
7470
+ file: ee,
7474
7471
  list: x.value
7475
7472
  });
7476
- }, X = async (te) => {
7477
- await S(te) && D(te);
7473
+ }, X = async (ee) => {
7474
+ await S(ee) && D(ee);
7478
7475
  }, le = j(!1), me = j(""), Te = j(""), Ne = j(!1), dt = j(!1);
7479
7476
  let oe = null;
7480
- const Ge = j(No(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ze = (te) => {
7481
- if (te.isPreview === !1 && !n.isUploadImg) {
7477
+ const Ge = j(No(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ze = (ee) => {
7478
+ if (ee.isPreview === !1 && !n.isUploadImg) {
7482
7479
  o && o("无权限预览!");
7483
7480
  return;
7484
7481
  }
7485
- const Ce = te.name.split(".")[te.name.split(".").length - 1];
7486
- switch (oe = te, le.value = !1, me.value = te.name, Ce.toLowerCase()) {
7482
+ const Ce = ee.name.split(".")[ee.name.split(".").length - 1];
7483
+ switch (oe = ee, le.value = !1, me.value = ee.name, Ce.toLowerCase()) {
7487
7484
  case "jpg":
7488
7485
  case "gif":
7489
7486
  case "png":
7490
7487
  case "bmp":
7491
7488
  case "jpeg":
7492
7489
  case "svg":
7493
- le.value = !0, Te.value = te.url, dt.value = !1, Ne.value = !0;
7490
+ le.value = !0, Te.value = ee.url, dt.value = !1, Ne.value = !0;
7494
7491
  break;
7495
7492
  default:
7496
7493
  if (n.isNotApi) {
7497
7494
  o && o("预览表单中,不支持预览!");
7498
7495
  return;
7499
7496
  }
7500
- if (te.status !== "done") {
7497
+ if (ee.status !== "done") {
7501
7498
  o && o("当前文件还没上传成功,不支持预览!");
7502
7499
  return;
7503
7500
  }
7504
- if (Te.value = Ae(te), Te.value === "") {
7501
+ if (Te.value = Ae(ee), Te.value === "") {
7505
7502
  o && o("当前文件不支持预览!");
7506
7503
  return;
7507
7504
  }
@@ -7509,19 +7506,19 @@ var Jh = { class: "j-table-footer" }, Xh = {
7509
7506
  break;
7510
7507
  }
7511
7508
  Ge.value = No(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
7512
- }, Ae = (te) => {
7513
- const Ce = te.response?.fileId || te.id;
7509
+ }, Ae = (ee) => {
7510
+ const Ce = ee.response?.fileId || ee.id;
7514
7511
  if (!s) return "";
7515
- const Be = No(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + Ce;
7516
- return `${s}/system/annexesfile/preview/${Mf.createAesEncryption({ key: "jianda" }).encrypt(Be).replace(/\//g, "|")}?token=${c?.value}`;
7512
+ const Ie = No(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + Ce;
7513
+ return `${s}/system/annexesfile/preview/${Mf.createAesEncryption({ key: "jianda" }).encrypt(Ie).replace(/\//g, "|")}?token=${c?.value}`;
7517
7514
  }, nt = () => {
7518
7515
  oe.isDown === !1 && o && o("无权限下载!"), Vp(`${s}/system/annexesfile/${oe.response?.fileId || oe.id}?token=${c?.value}`);
7519
7516
  }, ct = () => {
7520
7517
  if (n.limit !== -1 && n.limit <= x.value.length)
7521
7518
  return o && o(`当前限制选择${n.limit}个文件`), !1;
7522
7519
  };
7523
- return (te, Ce) => {
7524
- const Be = L("j-icon"), Je = L("j-button"), Lt = L("el-popover"), Dt = L("el-upload"), at = L("el-text"), Wt = L("j-dialog-full"), jn = _i("loading");
7520
+ return (ee, Ce) => {
7521
+ const Ie = L("j-icon"), Je = L("j-button"), Lt = L("el-popover"), Dt = L("el-upload"), at = L("el-text"), Wt = L("j-dialog-full"), jn = _i("loading");
7525
7522
  return _(), O("div", qp, [
7526
7523
  Y(Dt, {
7527
7524
  action: "",
@@ -7540,7 +7537,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
7540
7537
  "on-preview": Ze,
7541
7538
  "on-exceed": ct
7542
7539
  }, {
7543
- default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", Zp, [Y(Be, { icon: "mdi:add" }), F("div", Qp, ve(G(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !Ne.value ? (_(), H(Lt, {
7540
+ default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", Zp, [Y(Ie, { icon: "mdi:add" }), F("div", Qp, ve(G(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !Ne.value ? (_(), H(Lt, {
7544
7541
  key: 1,
7545
7542
  placement: "bottom",
7546
7543
  title: e.isUploadImg ? G(r)("图片列表") : G(r)("文件列表")
@@ -10778,9 +10775,9 @@ var Jh = { class: "j-table-footer" }, Xh = {
10778
10775
  dt.value = ye, Ne.value = !1, Me();
10779
10776
  }, Ze = () => {
10780
10777
  dt.value = [], Me();
10781
- }, Ae = j(), nt = j(!1), ct = j(), te = P(() => ct.value != null), Ce = () => {
10778
+ }, Ae = j(), nt = j(!1), ct = j(), ee = P(() => ct.value != null), Ce = () => {
10782
10779
  Ae.value?.init();
10783
- }, Be = (ye) => {
10780
+ }, Ie = (ye) => {
10784
10781
  ct.value = ye, nt.value = !1;
10785
10782
  }, Je = j(!1), Lt = () => {
10786
10783
  Je.value = !Je.value;
@@ -10835,7 +10832,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
10835
10832
  }, { deep: !0 }), it(Je, () => {
10836
10833
  At(ce);
10837
10834
  });
10838
- const ee = P(() => {
10835
+ const Q = P(() => {
10839
10836
  const ye = jn.value;
10840
10837
  if (ye.length === 0) return [];
10841
10838
  const be = J.value;
@@ -10973,7 +10970,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
10973
10970
  ref_key: "topLeftRef",
10974
10971
  ref: Zt,
10975
10972
  class: "j-table-panel-top-left"
10976
- }, [Y(xt, { list: ee.value }, null, 8, ["list"])], 512), F("div", Cy, [
10973
+ }, [Y(xt, { list: Q.value }, null, 8, ["list"])], 512), F("div", Cy, [
10977
10974
  T.value && !x.value ? (_(), O("div", Sy, [Y(Qt, {
10978
10975
  modelValue: C.value,
10979
10976
  "onUpdate:modelValue": be[2] || (be[2] = (rt) => C.value = rt),
@@ -11102,7 +11099,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
11102
11099
  onShow: Ce
11103
11100
  }, {
11104
11101
  reference: N(() => [Y(_t, {
11105
- class: De({ active: te.value }),
11102
+ class: De({ active: ee.value }),
11106
11103
  type: "text",
11107
11104
  icon: "mdi:table-headers-eye"
11108
11105
  }, null, 8, ["class"])]),
@@ -11111,7 +11108,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
11111
11108
  ref: Ae,
11112
11109
  columns: e.columns,
11113
11110
  "column-config": ct.value,
11114
- onSave: Be
11111
+ onSave: Ie
11115
11112
  }, null, 8, ["columns", "column-config"])]),
11116
11113
  _: 1
11117
11114
  }, 8, ["visible"])])]),
@@ -11768,15 +11765,15 @@ var Qy = /* @__PURE__ */ se({
11768
11765
  let X;
11769
11766
  const le = (J, ce) => {
11770
11767
  Object.keys(J).forEach((Z) => {
11771
- const ee = J[Z];
11772
- ce && (Z = ce + "." + Z), ee != null && typeof ee == "object" && !ll(ee) && le(ee, Z), m[Z] = ee;
11768
+ const Q = J[Z];
11769
+ ce && (Z = ce + "." + Z), Q != null && typeof Q == "object" && !ll(Q) && le(Q, Z), m[Z] = Q;
11773
11770
  });
11774
11771
  }, me = (J, ce) => {
11775
11772
  let Z = J.id;
11776
11773
  return Z || (J.config?.table && J.config?.field ? Z = `${J.config.table}.${J.config.field}` : J.config?.table ? Z = J.config?.table : J.config?.field && (Z = J.config?.field), ce && D(ce) && (Z = `${ce}.${Z}`)), Z || Pl("j");
11777
- }, Te = (J, ce, Z, ee = "") => {
11774
+ }, Te = (J, ce, Z, Q = "") => {
11778
11775
  J.forEach((ie) => {
11779
- ie.id = me(ie, ee);
11776
+ ie.id = me(ie, Q);
11780
11777
  const Se = {
11781
11778
  id: ie.id,
11782
11779
  slot: ie.slot,
@@ -11790,7 +11787,7 @@ var Qy = /* @__PURE__ */ se({
11790
11787
  const { children: Me } = ie;
11791
11788
  ui(Se, ie, ["children", "config"]), ui(Se.config, ie.config || {}, []), T[ie.id] && console.warn("有重复的组件id:" + ie.id), T[ie.id] = Se, a.readonly === !0 && (Se.config.readonly = !0);
11792
11789
  let ot = !1, Tt;
11793
- ee !== "" && D(ee) && (ot = !0, Se.config = ie.config || {}, Se.config.parentTableId = ee, Tt = T[ee]?.config?.table);
11790
+ Q !== "" && D(Q) && (ot = !0, Se.config = ie.config || {}, Se.config.parentTableId = Q, Tt = T[Q]?.config?.table);
11794
11791
  const lt = Se.config || {};
11795
11792
  if (S(ie.id))
11796
11793
  !Z && ot === !1 && (lt?.defaultValue === 0 ? m[ie.id] = lt?.defaultValue : m[ie.id] = lt?.defaultValue || void 0), lt.table && lt.field ? E[`${lt.table}_${lt.field}`.toLowerCase()] = ie.id : lt.field && (ot ? E[`${Tt}_${lt.field}`.toLowerCase()] = ie.id : E[`${lt.field}`.toLowerCase()] = ie.id);
@@ -11815,59 +11812,59 @@ var Qy = /* @__PURE__ */ se({
11815
11812
  });
11816
11813
  });
11817
11814
  }, dt = (J, ce, Z) => {
11818
- const ee = [];
11815
+ const Q = [];
11819
11816
  return ce.forEach((ie) => {
11820
11817
  const Se = {};
11821
11818
  Object.keys(ie).forEach((Me) => {
11822
11819
  if (!Z || Z(Me, ie[Me], J)) {
11823
- const ot = Be(Me);
11820
+ const ot = Ie(Me);
11824
11821
  if (ot?.type === "j-table") Se[ot?.id || ""] = dt(Me, ie[Me], Z);
11825
11822
  else {
11826
11823
  let Tt = E[`${J}_${Me}`.toLowerCase()] || Me;
11827
11824
  Tt = Tt.indexOf(".") !== -1 ? Tt.split(".")[1] : Tt, Se[Tt] = ie[Me];
11828
11825
  }
11829
11826
  }
11830
- }), ee.push(Se);
11831
- }), ee;
11827
+ }), Q.push(Se);
11828
+ }), Q;
11832
11829
  }, oe = (J, ce) => {
11833
11830
  Object.keys(J || {}).forEach((Z) => {
11834
- let ee = J[Z];
11835
- const ie = Be(Z);
11831
+ let Q = J[Z];
11832
+ const ie = Ie(Z);
11836
11833
  if (ie === void 0)
11837
- ee && (ll(ee) && (ee = ee[0] || {}), typeof ee == "object" ? Object.keys(ee).forEach((Se) => {
11838
- if (!ce || ce(Z, ee[Se], Z)) {
11834
+ Q && (ll(Q) && (Q = Q[0] || {}), typeof Q == "object" ? Object.keys(Q).forEach((Se) => {
11835
+ if (!ce || ce(Z, Q[Se], Z)) {
11839
11836
  let Me = Se;
11840
- Z !== "main" && (Me = `${Z}_${Se}`), B[Me] = Z, m[E[Me.toLowerCase()] || Se] = ee[Se];
11837
+ Z !== "main" && (Me = `${Z}_${Se}`), B[Me] = Z, m[E[Me.toLowerCase()] || Se] = Q[Se];
11841
11838
  }
11842
- }) : m[Z] = ee);
11839
+ }) : m[Z] = Q);
11843
11840
  else if (D(ie.id || "")) {
11844
- if (!Array.isArray(ee)) {
11841
+ if (!Array.isArray(Q)) {
11845
11842
  console.warn("表格数据不是数组:" + Z);
11846
11843
  return;
11847
11844
  }
11848
- ee?.length > 0 ? m[E[Z.toLowerCase()] || Z] = dt(Z, ee, ce) : m[E[Z.toLowerCase()] || Z] = [];
11849
- } else (!ce || ce(Z, ee, Z)) && (m[E[Z.toLowerCase()] || Z] = ee);
11845
+ Q?.length > 0 ? m[E[Z.toLowerCase()] || Z] = dt(Z, Q, ce) : m[E[Z.toLowerCase()] || Z] = [];
11846
+ } else (!ce || ce(Z, Q, Z)) && (m[E[Z.toLowerCase()] || Z] = Q);
11850
11847
  }), X && Object.keys(m).forEach((Z) => {
11851
- const ee = Be(Z);
11852
- (ee === void 0 || !["tabs", "collapse"].includes(ee.type || "")) && xr(X, Z, m[Z]);
11848
+ const Q = Ie(Z);
11849
+ (Q === void 0 || !["tabs", "collapse"].includes(Q.type || "")) && xr(X, Z, m[Z]);
11853
11850
  });
11854
11851
  }, Ge = (J, ce = !1) => {
11855
11852
  const Z = {};
11856
- return Object.keys(J).forEach((ee) => {
11857
- if (ee === "parentRow") return;
11858
- const ie = T[ee];
11853
+ return Object.keys(J).forEach((Q) => {
11854
+ if (Q === "parentRow") return;
11855
+ const ie = T[Q];
11859
11856
  if (ie) {
11860
11857
  const Se = ie.config?.table, Me = ie.config?.field;
11861
- if (ce) Me ? Z[Me] = J[ee] : Z[ee] = J[ee];
11862
- else if (D(ee)) {
11858
+ if (ce) Me ? Z[Me] = J[Q] : Z[Q] = J[Q];
11859
+ else if (D(Q)) {
11863
11860
  const ot = [];
11864
- J[ee].forEach((Tt) => {
11861
+ J[Q].forEach((Tt) => {
11865
11862
  ot.push(Ge(Tt, !0));
11866
- }), Z[Se || ee] = ot;
11867
- } else Se && Me ? (Z[Se] = Z[Se] || {}, Z[Se][Me] = J[ee]) : Me && (Z[Me] = J[ee]);
11868
- } else ce ? ee !== "_X_ROW_KEY" && ee !== "_isHover" && (Z[ee] = J[ee]) : B[ee] ? (Z[B[ee]] = Z[B[ee]] || {}, Z[B[ee]][ee.replace(`${B[ee]}_`, "")] = J[ee]) : Z[ee] = J[ee];
11863
+ }), Z[Se || Q] = ot;
11864
+ } else Se && Me ? (Z[Se] = Z[Se] || {}, Z[Se][Me] = J[Q]) : Me && (Z[Me] = J[Q]);
11865
+ } else ce ? Q !== "_X_ROW_KEY" && Q !== "_isHover" && (Z[Q] = J[Q]) : B[Q] ? (Z[B[Q]] = Z[B[Q]] || {}, Z[B[Q]][Q.replace(`${B[Q]}_`, "")] = J[Q]) : Z[Q] = J[Q];
11869
11866
  }), Z;
11870
- }, Ze = (J = !0) => J ? Ge(m) : m, Ae = (J, ce, Z, ee) => {
11867
+ }, Ze = (J = !0) => J ? Ge(m) : m, Ae = (J, ce, Z, Q) => {
11871
11868
  let ie = T[J];
11872
11869
  if (ie == null) {
11873
11870
  const Me = J.split(".");
@@ -11883,11 +11880,11 @@ var Qy = /* @__PURE__ */ se({
11883
11880
  formData: m,
11884
11881
  getTableData: Z,
11885
11882
  row: ce,
11886
- pRowData: ee
11883
+ pRowData: Q
11887
11884
  });
11888
11885
  return Se._componentId = ie?.id, Se;
11889
- }, nt = (J, ce, Z, ee) => {
11890
- const ie = Ae(J, ce, Z, ee);
11886
+ }, nt = (J, ce, Z, Q) => {
11887
+ const ie = Ae(J, ce, Z, Q);
11891
11888
  if (ie.isNotRule !== !0 && ie.display !== !1) {
11892
11889
  const Se = ie.rule || [], Me = Se.find((ot) => ot.type === "only");
11893
11890
  return Me && (Me.validator = async (ot, Tt) => {
@@ -11914,7 +11911,7 @@ var Qy = /* @__PURE__ */ se({
11914
11911
  rules: [],
11915
11912
  myGridtableId: ""
11916
11913
  };
11917
- }, { validateForm: ct } = Zy(m, nt), te = async () => {
11914
+ }, { validateForm: ct } = Zy(m, nt), ee = async () => {
11918
11915
  k.value = {};
11919
11916
  const J = await ct();
11920
11917
  return Object.keys(J).length > 0 ? (k.value = J, g(`${h(T[Object.keys(J)[0]]?.config?.label)}:${h(J[Object.keys(J)[0]].msg)}`), !1) : !0;
@@ -11922,32 +11919,32 @@ var Qy = /* @__PURE__ */ se({
11922
11919
  k.value = {}, so(m), Object.keys(V || {}).forEach((J) => {
11923
11920
  m[J] = V[J];
11924
11921
  });
11925
- }, Be = (J) => {
11922
+ }, Ie = (J) => {
11926
11923
  let ce = T[J];
11927
11924
  return ce === void 0 && E[J.toLowerCase()] && (ce = T[E[J.toLowerCase()]]), ce;
11928
- }, Je = ({ id: J, i: ce, value: Z, type: ee }) => {
11929
- if (ee === "add") m[J].push(Z);
11930
- else if (ee === "delete") m[J].splice(ce, 1);
11925
+ }, Je = ({ id: J, i: ce, value: Z, type: Q }) => {
11926
+ if (Q === "add") m[J].push(Z);
11927
+ else if (Q === "delete") m[J].splice(ce, 1);
11931
11928
  else {
11932
- const ie = Be(J);
11929
+ const ie = Ie(J);
11933
11930
  ie && (ie.config.parentTableId ? m[ie.config.parentTableId][ce][J] = Z : m[J] = Z);
11934
11931
  }
11935
11932
  }, Lt = ({ id: J, i: ce }) => {
11936
- const Z = Be(J);
11933
+ const Z = Ie(J);
11937
11934
  if (Z) {
11938
11935
  if (Z.config.parentTableId) {
11939
- const ee = m[Z.config.parentTableId], ie = Z.id ? Z.id.replace(`${Z.config.parentTableId}.`, "") : "";
11940
- if (ce != null) return (ee[ce] || {})[ie || ""];
11936
+ const Q = m[Z.config.parentTableId], ie = Z.id ? Z.id.replace(`${Z.config.parentTableId}.`, "") : "";
11937
+ if (ce != null) return (Q[ce] || {})[ie || ""];
11941
11938
  const Se = [];
11942
- return ee && ee.forEach((Me) => {
11939
+ return Q && Q.forEach((Me) => {
11943
11940
  Se.push(Me[ie || ""]);
11944
11941
  }), Se;
11945
11942
  }
11946
11943
  if (D(Z.id || "")) {
11947
- const ee = [];
11944
+ const Q = [];
11948
11945
  return m[Z.id || ""].forEach((ie) => {
11949
- ee.push(Ge(ie, !0));
11950
- }), ee;
11946
+ Q.push(Ge(ie, !0));
11947
+ }), Q;
11951
11948
  }
11952
11949
  return m[Z.id || ""];
11953
11950
  }
@@ -11956,26 +11953,26 @@ var Qy = /* @__PURE__ */ se({
11956
11953
  const Z = Lt({
11957
11954
  id: J,
11958
11955
  i: ce
11959
- }), ee = Be(J);
11960
- if (ee && p?.getLabel) if (ce !== void 0) {
11961
- const ie = Z[ce], Se = m[ee.config.parentTableId || ""][ce], Me = Ra({
11962
- config: ee.config,
11963
- getCompConfig: ee.getCompConfig,
11956
+ }), Q = Ie(J);
11957
+ if (Q && p?.getLabel) if (ce !== void 0) {
11958
+ const ie = Z[ce], Se = m[Q.config.parentTableId || ""][ce], Me = Ra({
11959
+ config: Q.config,
11960
+ getCompConfig: Q.getCompConfig,
11964
11961
  formData: m,
11965
- tableData: m[ee.config.parentTableId || ""],
11962
+ tableData: m[Q.config.parentTableId || ""],
11966
11963
  row: Se
11967
11964
  });
11968
11965
  return await p?.getLabel({
11969
11966
  value: ie,
11970
11967
  config: Me,
11971
11968
  formData: m,
11972
- tableData: m[ee.config.parentTableId || ""],
11969
+ tableData: m[Q.config.parentTableId || ""],
11973
11970
  row: Se
11974
11971
  });
11975
11972
  } else {
11976
11973
  const ie = Ra({
11977
- config: ee.config,
11978
- getCompConfig: ee.getCompConfig,
11974
+ config: Q.config,
11975
+ getCompConfig: Q.getCompConfig,
11979
11976
  formData: m
11980
11977
  });
11981
11978
  return await p?.getLabel({
@@ -12013,8 +12010,8 @@ var Qy = /* @__PURE__ */ se({
12013
12010
  }, J), jn = async (J, ce) => {
12014
12011
  if (J && J.trim()) {
12015
12012
  J = `async (jcode) => {${J}}`;
12016
- const { res: Z, fn: ee } = ac(J);
12017
- Z && await ee(Wt(ce));
12013
+ const { res: Z, fn: Q } = ac(J);
12014
+ Z && await Q(Wt(ce));
12018
12015
  }
12019
12016
  }, Zt = (J, ce) => {
12020
12017
  A.value[J] = {
@@ -12036,7 +12033,7 @@ var Qy = /* @__PURE__ */ se({
12036
12033
  }), fc({ contextType: "form" }), t({
12037
12034
  init: Ne,
12038
12035
  reset: Ce,
12039
- validate: te,
12036
+ validate: ee,
12040
12037
  setValue: Je,
12041
12038
  getValue: Lt,
12042
12039
  getLabel: Dt,
@@ -12044,7 +12041,7 @@ var Qy = /* @__PURE__ */ se({
12044
12041
  getFormData: Ze,
12045
12042
  setCompConfig: Zt
12046
12043
  }), (J, ce) => {
12047
- const Z = L("j-form-item"), ee = L("el-row"), ie = L("el-form");
12044
+ const Z = L("j-form-item"), Q = L("el-row"), ie = L("el-form");
12048
12045
  return v.value ? (_(), H(ie, {
12049
12046
  key: 0,
12050
12047
  class: De([
@@ -12058,7 +12055,7 @@ var Qy = /* @__PURE__ */ se({
12058
12055
  onSubmit: ce[0] || (ce[0] = Ot(() => {
12059
12056
  }, ["prevent"]))
12060
12057
  }, {
12061
- default: N(() => [R.value ? (_(), H(Z, ze({ key: 0 }, C[0], { "is-not-col": "" }), null, 16)) : (_(), H(ee, {
12058
+ default: N(() => [R.value ? (_(), H(Z, ze({ key: 0 }, C[0], { "is-not-col": "" }), null, 16)) : (_(), H(Q, {
12062
12059
  key: 1,
12063
12060
  gutter: b.value
12064
12061
  }, {
@@ -13315,7 +13312,7 @@ function ul(e, t) {
13315
13312
  }
13316
13313
  function Hl(e, t, n) {
13317
13314
  Mt(t) && (n = t, t = null), t || (t = {});
13318
- const a = Ie("path", t);
13315
+ const a = He("path", t);
13319
13316
  return Mt(n) && (a.dataset.cornerRadius = String(n)), Cc(a, e);
13320
13317
  }
13321
13318
  function Cc(e, t) {
@@ -13448,7 +13445,7 @@ function Sc(e, t, n) {
13448
13445
  x: 0,
13449
13446
  y: 0
13450
13447
  }, A);
13451
- var E = Ie("rect");
13448
+ var E = He("rect");
13452
13449
  return m(E, T), Ee(E, A), k(C, E), E;
13453
13450
  }, this.updateDefaultHit = function(C, T) {
13454
13451
  var A = Nt(".djs-hit", T);
@@ -13779,7 +13776,7 @@ Wn.prototype.addDragger = function(e, t, n, a = "djs-dragger") {
13779
13776
  })), Ve(t, o), Ee(o, "data-preview-support-element-id", e.id), o;
13780
13777
  };
13781
13778
  Wn.prototype.addFrame = function(e, t) {
13782
- var n = Ie("rect", {
13779
+ var n = He("rect", {
13783
13780
  class: "djs-resize-overlay",
13784
13781
  width: e.width,
13785
13782
  height: e.height,
@@ -13809,7 +13806,7 @@ Wn.prototype._cloneMarker = function(e, t, n, a, o = "djs-dragger") {
13809
13806
  var r = l || nc(n);
13810
13807
  r.id = i, st(r).add(o);
13811
13808
  var s = Nt(":scope > defs", e);
13812
- s || (s = Ie("defs"), Ve(e, s)), Ve(s, r), Ee(t, a, db(r.id));
13809
+ s || (s = He("defs"), Ve(e, s)), Ve(s, r), Ee(t, a, db(r.id));
13813
13810
  };
13814
13811
  function cb(e, t, n) {
13815
13812
  return Nt("marker#" + ub(Ee(e, t)), n || document);
@@ -14105,9 +14102,9 @@ function Cb(e, t) {
14105
14102
  var Sb = 750;
14106
14103
  function Hc(e, t, n, a, o) {
14107
14104
  function i(l) {
14108
- var r = Ie("g");
14105
+ var r = He("g");
14109
14106
  Ee(r, o.cls("djs-drag-group", ["no-events"]));
14110
- var s = Ie("g");
14107
+ var s = He("g");
14111
14108
  return l.forEach(function(c) {
14112
14109
  var u;
14113
14110
  c.hidden || (c.waypoints ? (u = n._createContainer("connection", s), n.drawConnection(dl(u), c)) : (u = n._createContainer("shape", s), n.drawShape(dl(u), c), bn(u, c.x, c.y)), a.addDragger(c, r, u));
@@ -17029,7 +17026,7 @@ function ba(e, t, n, a, o, i, l) {
17029
17026
  strokeWidth: 2,
17030
17027
  fill: r
17031
17028
  }), le.fill === "none" && delete le.fillOpacity;
17032
- const me = S / 2, Te = D / 2, Ne = Ie("circle");
17029
+ const me = S / 2, Te = D / 2, Ne = He("circle");
17033
17030
  return Ee(Ne, {
17034
17031
  cx: me,
17035
17032
  cy: Te,
@@ -17042,7 +17039,7 @@ function ba(e, t, n, a, o, i, l) {
17042
17039
  strokeWidth: 2,
17043
17040
  fill: r
17044
17041
  });
17045
- const Te = Ie("rect");
17042
+ const Te = He("rect");
17046
17043
  return Ee(Te, {
17047
17044
  x: le,
17048
17045
  y: le,
@@ -17057,7 +17054,7 @@ function ba(e, t, n, a, o, i, l) {
17057
17054
  strokeWidth: 2,
17058
17055
  stroke: s
17059
17056
  });
17060
- const X = Ie("path");
17057
+ const X = He("path");
17061
17058
  return Ee(X, { d: S }), Ee(X, D), Ve(M, X), X;
17062
17059
  }
17063
17060
  function y(M, S, D, X) {
@@ -17084,7 +17081,7 @@ function ba(e, t, n, a, o, i, l) {
17084
17081
  strokeWidth: 2,
17085
17082
  fill: r
17086
17083
  });
17087
- const Ne = Ie("polygon");
17084
+ const Ne = He("polygon");
17088
17085
  return Ee(Ne, { points: Te }), Ee(Ne, X), Ve(M, Ne), Ne;
17089
17086
  }
17090
17087
  function w(M, S, D, X) {
@@ -17142,7 +17139,7 @@ function ba(e, t, n, a, o, i, l) {
17142
17139
  const { ref: D = {
17143
17140
  x: 0,
17144
17141
  y: 0
17145
- }, scale: X = 1, element: le, parentGfx: me = a._svg } = S, Te = Ie("marker", {
17142
+ }, scale: X = 1, element: le, parentGfx: me = a._svg } = S, Te = He("marker", {
17146
17143
  id: M,
17147
17144
  viewBox: "0 0 20 20",
17148
17145
  refX: D.x,
@@ -17153,7 +17150,7 @@ function ba(e, t, n, a, o, i, l) {
17153
17150
  });
17154
17151
  Ve(Te, le);
17155
17152
  let Ne = Nt(":scope > defs", me);
17156
- Ne || (Ne = Ie("defs"), Ve(me, Ne)), Ve(Ne, Te);
17153
+ Ne || (Ne = He("defs"), Ve(me, Ne)), Ve(Ne, Te);
17157
17154
  }
17158
17155
  function E(M, S, D, X) {
17159
17156
  const le = S + "-" + T(D) + "-" + T(X) + "-" + Yc();
@@ -17161,7 +17158,7 @@ function ba(e, t, n, a, o, i, l) {
17161
17158
  }
17162
17159
  function B(M, S, D, X, le) {
17163
17160
  D === "sequenceflow-end" && A(S, {
17164
- element: Ie("path", {
17161
+ element: He("path", {
17165
17162
  d: "M 1 5 L 11 10 L 1 15 Z",
17166
17163
  ...h({
17167
17164
  fill: le,
@@ -17176,7 +17173,7 @@ function ba(e, t, n, a, o, i, l) {
17176
17173
  scale: 0.5,
17177
17174
  parentGfx: M
17178
17175
  }), D === "messageflow-start" && A(S, {
17179
- element: Ie("circle", {
17176
+ element: He("circle", {
17180
17177
  cx: 6,
17181
17178
  cy: 6,
17182
17179
  r: 3.5,
@@ -17193,7 +17190,7 @@ function ba(e, t, n, a, o, i, l) {
17193
17190
  },
17194
17191
  parentGfx: M
17195
17192
  }), D === "messageflow-end" && A(S, {
17196
- element: Ie("path", {
17193
+ element: He("path", {
17197
17194
  d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
17198
17195
  ...h({
17199
17196
  fill: X,
@@ -17208,7 +17205,7 @@ function ba(e, t, n, a, o, i, l) {
17208
17205
  },
17209
17206
  parentGfx: M
17210
17207
  }), D === "association-start" && A(S, {
17211
- element: Ie("path", {
17208
+ element: He("path", {
17212
17209
  d: "M 11 5 L 1 10 L 11 15",
17213
17210
  ...d({
17214
17211
  fill: "none",
@@ -17224,7 +17221,7 @@ function ba(e, t, n, a, o, i, l) {
17224
17221
  scale: 0.5,
17225
17222
  parentGfx: M
17226
17223
  }), D === "association-end" && A(S, {
17227
- element: Ie("path", {
17224
+ element: He("path", {
17228
17225
  d: "M 1 5 L 11 10 L 1 15",
17229
17226
  ...d({
17230
17227
  fill: "none",
@@ -17240,7 +17237,7 @@ function ba(e, t, n, a, o, i, l) {
17240
17237
  scale: 0.5,
17241
17238
  parentGfx: M
17242
17239
  }), D === "conditional-flow-marker" && A(S, {
17243
- element: Ie("path", {
17240
+ element: He("path", {
17244
17241
  d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
17245
17242
  ...h({
17246
17243
  fill: X,
@@ -17254,7 +17251,7 @@ function ba(e, t, n, a, o, i, l) {
17254
17251
  scale: 0.5,
17255
17252
  parentGfx: M
17256
17253
  }), D === "conditional-default-flow-marker" && A(S, {
17257
- element: Ie("path", {
17254
+ element: He("path", {
17258
17255
  d: "M 6 4 L 10 16",
17259
17256
  ...h({
17260
17257
  stroke: le,
@@ -17541,7 +17538,7 @@ function dx(e, t, n) {
17541
17538
  }
17542
17539
  function fx() {
17543
17540
  var e = document.getElementById("helper-svg");
17544
- return e || (e = Ie("svg"), Ee(e, { id: "helper-svg" }), mo(e, {
17541
+ return e || (e = He("svg"), Ee(e, { id: "helper-svg" }), mo(e, {
17545
17542
  visibility: "hidden",
17546
17543
  position: "fixed",
17547
17544
  width: 0,
@@ -17563,7 +17560,7 @@ zi.prototype.getDimensions = function(e, t) {
17563
17560
  return this.layoutText(e, t).dimensions;
17564
17561
  };
17565
17562
  zi.prototype.layoutText = function(e, t) {
17566
- var n = je({}, this._config.size, t.box), a = je({}, this._config.style, t.style), o = ix(t.align || this._config.align), i = lx(t.padding !== void 0 ? t.padding : this._config.padding), l = t.fitBox || !1, r = hx(a), s = e.split(/\u00AD?\r?\n/), c = [], u = n.width - i.left - i.right, f = Ie("text");
17563
+ var n = je({}, this._config.size, t.box), a = je({}, this._config.style, t.style), o = ix(t.align || this._config.align), i = lx(t.padding !== void 0 ? t.padding : this._config.padding), l = t.fitBox || !1, r = hx(a), s = e.split(/\u00AD?\r?\n/), c = [], u = n.width - i.left - i.right, f = He("text");
17567
17564
  for (Ee(f, {
17568
17565
  x: 0,
17569
17566
  y: 0
@@ -17575,7 +17572,7 @@ zi.prototype.layoutText = function(e, t) {
17575
17572
  return b.width > v ? b.width : v;
17576
17573
  }, 0), p = i.top;
17577
17574
  o.vertical === "middle" && (p += (n.height - d) / 2), p -= (r || c[0].height) / 4;
17578
- var g = Ie("text");
17575
+ var g = He("text");
17579
17576
  return Ee(g, a), ae(c, function(v) {
17580
17577
  var b;
17581
17578
  switch (p += r || v.height, o.horizontal) {
@@ -17588,7 +17585,7 @@ zi.prototype.layoutText = function(e, t) {
17588
17585
  default:
17589
17586
  b = Math.max(((l ? h : u) - v.width) / 2 + i.left, 0);
17590
17587
  }
17591
- var x = Ie("tspan");
17588
+ var x = He("tspan");
17592
17589
  Ee(x, {
17593
17590
  x: b,
17594
17591
  y: p
@@ -18198,15 +18195,15 @@ function ml(e, t, n) {
18198
18195
  return Px(t, Bx(e, n));
18199
18196
  }
18200
18197
  function bl(e, t) {
18201
- var n = Ie("g");
18198
+ var n = He("g");
18202
18199
  st(n).add(Su), Ve(e, n);
18203
- var a = Ie("circle");
18200
+ var a = He("circle");
18204
18201
  Ee(a, {
18205
18202
  cx: 0,
18206
18203
  cy: 0,
18207
18204
  r: 4
18208
18205
  }), st(a).add("djs-visual"), Ve(n, a);
18209
- var o = Ie("circle");
18206
+ var o = He("circle");
18210
18207
  return Ee(o, {
18211
18208
  cx: 0,
18212
18209
  cy: 0,
@@ -18214,16 +18211,16 @@ function bl(e, t) {
18214
18211
  }), st(o).add("djs-hit"), Ve(n, o), t && st(n).add(t), n;
18215
18212
  }
18216
18213
  function Lx(e, t, n, a) {
18217
- var o = Ie("g");
18214
+ var o = He("g");
18218
18215
  Ve(e, o);
18219
- var i = 18, l = 6, r = 11, s = $x(t, n, a), c = l + r, u = Ie("rect");
18216
+ var i = 18, l = 6, r = 11, s = $x(t, n, a), c = l + r, u = He("rect");
18220
18217
  Ee(u, {
18221
18218
  x: -i / 2,
18222
18219
  y: -l / 2,
18223
18220
  width: i,
18224
18221
  height: l
18225
18222
  }), st(u).add("djs-visual"), Ve(o, u);
18226
- var f = Ie("rect");
18223
+ var f = He("rect");
18227
18224
  return Ee(f, {
18228
18225
  x: -s / 2,
18229
18226
  y: -c / 2,
@@ -18232,7 +18229,7 @@ function Lx(e, t, n, a) {
18232
18229
  }), st(f).add("djs-hit"), Ve(o, f), Cb(o, a === "v" ? 90 : 0, 0, 0), o;
18233
18230
  }
18234
18231
  function Eu(e, t, n) {
18235
- var a = Ie("g"), o = fl(t, n), i = $n(t, n);
18232
+ var a = He("g"), o = fl(t, n), i = $n(t, n);
18236
18233
  return Ve(e, a), Lx(a, t, n, i), st(a).add(ku), st(a).add(i === "h" ? "horizontal" : "vertical"), bn(a, o.x, o.y), a;
18237
18234
  }
18238
18235
  function wl(e) {
@@ -18279,7 +18276,7 @@ function Ru(e, t, n, a, o) {
18279
18276
  }
18280
18277
  function c(y, w) {
18281
18278
  var R = t.getLayer("overlays"), m = Nt('.djs-bendpoints[data-element-id="' + sr(y.id) + '"]', R);
18282
- return !m && w && (m = Ie("g"), Ee(m, { "data-element-id": y.id }), st(m).add("djs-bendpoints"), Ve(R, m), s(m, "mousedown", y), s(m, "click", y), s(m, "dblclick", y)), m;
18279
+ return !m && w && (m = He("g"), Ee(m, { "data-element-id": y.id }), st(m).add("djs-bendpoints"), Ve(R, m), s(m, "mousedown", y), s(m, "click", y), s(m, "dblclick", y)), m;
18283
18280
  }
18284
18281
  function u(y, w) {
18285
18282
  return Nt('.djs-segment-dragger[data-segment-idx="' + y + '"]', w);
@@ -18773,7 +18770,7 @@ An.prototype.getConnection = function(e) {
18773
18770
  return this._elementFactory.createConnection(t);
18774
18771
  };
18775
18772
  An.prototype.createConnectionPreviewGfx = function() {
18776
- var e = Ie("g");
18773
+ var e = He("g");
18777
18774
  return Ee(e, { pointerEvents: "none" }), st(e).add(qx), Ve(this._canvas.getActiveLayer(), e), e;
18778
18775
  };
18779
18776
  An.prototype.createNoopConnection = function(e, t) {
@@ -19400,7 +19397,7 @@ function xa(e, t, n, a, o, i, l) {
19400
19397
  this._selection = o, this._dragging = n, this._mouse = l;
19401
19398
  var r = this, s = {
19402
19399
  create: function(c) {
19403
- var u = t.getActiveLayer(), f = c.frame = Ie("rect");
19400
+ var u = t.getActiveLayer(), f = c.frame = He("rect");
19404
19401
  Ee(f, {
19405
19402
  class: "djs-lasso-overlay",
19406
19403
  width: 1,
@@ -19593,7 +19590,7 @@ function _a(e, t) {
19593
19590
  this._eventBus = e, this.offset = 5;
19594
19591
  var n = t.cls("djs-outline", ["no-fill"]), a = this;
19595
19592
  function o(i) {
19596
- var l = Ie("rect");
19593
+ var l = He("rect");
19597
19594
  return Ee(l, je({
19598
19595
  x: 0,
19599
19596
  y: 0,
@@ -19669,7 +19666,7 @@ pr.prototype._updateMultiSelectionOutline = function(e) {
19669
19666
  Al(t);
19670
19667
  var n = e.length > 1;
19671
19668
  if (st(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
19672
- var a = C0(wn(e)), o = Ie("rect");
19669
+ var a = C0(wn(e)), o = He("rect");
19673
19670
  Ee(o, je({ rx: 3 }, a)), st(o).add("djs-selection-outline"), Ve(t, o);
19674
19671
  }
19675
19672
  };
@@ -19798,7 +19795,7 @@ function $u(e, t, n, a) {
19798
19795
  e.on("shape.move.start", $s, function(s) {
19799
19796
  var c = s.context, u = c.shapes, f = c.allDraggedElements, d = o(u);
19800
19797
  if (!c.dragGroup) {
19801
- var h = Ie("g");
19798
+ var h = He("g");
19802
19799
  Ee(h, n.cls("djs-drag-group", ["no-events"])), Ve(t.getActiveLayer(), h), c.dragGroup = h;
19803
19800
  }
19804
19801
  d.forEach(function(p) {
@@ -20197,16 +20194,16 @@ qn.prototype.makeDraggable = function(e, t, n) {
20197
20194
  Qe.bind(t, "mousedown", o), Qe.bind(t, "touchstart", o);
20198
20195
  };
20199
20196
  qn.prototype._createResizer = function(e, t, n, a) {
20200
- var o = this._getResizersParent(), i = X0(a), l = Ie("g");
20197
+ var o = this._getResizersParent(), i = X0(a), l = He("g");
20201
20198
  st(l).add(eo), st(l).add(eo + "-" + e.id), st(l).add(eo + "-" + a), Ve(o, l);
20202
- var r = Ie("rect");
20199
+ var r = He("rect");
20203
20200
  Ee(r, {
20204
20201
  x: -ii / 2 + i.x,
20205
20202
  y: -ii / 2 + i.y,
20206
20203
  width: ii,
20207
20204
  height: ii
20208
20205
  }), st(r).add(eo + "-visual"), Ve(l, r);
20209
- var s = Ie("rect");
20206
+ var s = He("rect");
20210
20207
  return Ee(s, {
20211
20208
  x: -li / 2 + i.x,
20212
20209
  y: -li / 2 + i.y,
@@ -20600,7 +20597,7 @@ Qn.prototype.snap = function(e, t) {
20600
20597
  });
20601
20598
  };
20602
20599
  Qn.prototype._createLine = function(e) {
20603
- var t = this._canvas.getLayer("snap"), n = Ie("path");
20600
+ var t = this._canvas.getLayer("snap"), n = He("path");
20604
20601
  return Ee(n, { d: "M0,0 L0,0" }), st(n).add("djs-snap-line"), Ve(t, n), { update: function(a) {
20605
20602
  Mt(a) ? e === "horizontal" ? Ee(n, {
20606
20603
  d: "M-100000," + a + " L+100000," + a,