@a2simcode/ui 0.0.117 → 0.0.118

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.
@@ -36,7 +36,7 @@ import Jd from "async-validator";
36
36
  import { createEditor as Xd, createToolbar as qd } from "@wangeditor/editor";
37
37
  import ac from "diagram-js";
38
38
  import { assignStyle as xo, attr as pn, classes as Kt, clear as oc, closest as Al, delegate as Fn, domify as qt, event as nt, matches as Zd, query as Wt, queryAll as ll, remove as rl } from "min-dom";
39
- import { assign as Le, bind as jl, debounce as Qd, every as Pl, filter as an, find as wn, flatten as ef, forEach as re, groupBy as Ol, has as ic, isArray as ot, isDefined as hn, isFunction as xn, isNil as kr, isNumber as Tt, isObject as on, isString as sl, isUndefined as tf, map as _o, matchPattern as di, omit as nf, pick as fi, reduce as cl, size as af, some as of, sortBy as mo, uniqueBy as lf, values as lc, without as rf } from "min-dash";
39
+ import { assign as Le, bind as jl, debounce as Qd, every as Pl, filter as an, find as wn, flatten as ef, forEach as le, groupBy as Ol, has as ic, isArray as ot, isDefined as hn, isFunction as xn, isNil as kr, isNumber as Tt, isObject as on, isString as sl, isUndefined as tf, map as _o, matchPattern as di, omit as nf, pick as fi, reduce as cl, size as af, some as of, sortBy as mo, uniqueBy as lf, values as lc, without as rf } from "min-dash";
40
40
  import { append as Ue, attr as je, classes as ft, clear as Hl, clone as rc, create as Fe, createTransform as uo, remove as Zt, transform as Il } from "tiny-svg";
41
41
  import pa from "inherits";
42
42
  import sf from "diagram-js-direct-editing";
@@ -468,22 +468,23 @@ var cc = (e, t, n, a) => {
468
468
  const a = [];
469
469
  return dc(a, e, t, "", n), a;
470
470
  }, Ll = (e) => [
471
+ "j-autocomplete",
472
+ "j-checkbox",
473
+ "j-count",
474
+ "j-cascader-select",
475
+ "j-date",
476
+ "j-guid",
471
477
  "j-input",
478
+ "j-number",
479
+ "j-radio",
480
+ "j-rate",
472
481
  "j-textarea",
473
- "j-select",
474
482
  "j-tree-select",
475
- "j-radio",
476
- "j-checkbox",
483
+ "j-time",
484
+ "j-select",
477
485
  "j-switch",
478
- "j-number",
479
486
  "j-slider-captcha",
480
- "j-cascader-select",
481
- "j-autocomplete",
482
- "j-rate",
483
- "j-slider",
484
- "j-date",
485
- "j-time",
486
- "j-count"
487
+ "j-slider"
487
488
  ].includes(e) || e.indexOf("j-input") != -1, Sf = (e) => [
488
489
  "j-input",
489
490
  "j-textarea",
@@ -704,7 +705,7 @@ var Lf = async (e) => new Promise((t, n) => {
704
705
  clear() {
705
706
  this.events.clear();
706
707
  }
707
- }, VC = new pc(), zt = {
708
+ }, VC = new pc(), Lt = {
708
709
  APP_PROVIDE: "jcode_app_provide",
709
710
  FORM_PROVIDE: "jcode_form_provide",
710
711
  TABLE_PROVIDE: "jcode_table_provide",
@@ -722,7 +723,7 @@ function jn(e, t) {
722
723
  sd(e, t);
723
724
  }
724
725
  function kt() {
725
- return An(zt.APP_PROVIDE, {
726
+ return An(Lt.APP_PROVIDE, {
726
727
  t: (e, ...t) => {
727
728
  if (!e) return "";
728
729
  if (typeof e != "string") return e;
@@ -755,55 +756,55 @@ function kt() {
755
756
  });
756
757
  }
757
758
  function NC(e) {
758
- jn(zt.APP_PROVIDE, e);
759
+ jn(Lt.APP_PROVIDE, e);
759
760
  }
760
761
  function ga() {
761
- return An(zt.FORM_PROVIDE, {});
762
+ return An(Lt.FORM_PROVIDE, {});
762
763
  }
763
764
  function gc(e) {
764
- jn(zt.FORM_PROVIDE, e);
765
+ jn(Lt.FORM_PROVIDE, e);
765
766
  }
766
767
  function zf() {
767
- return An(zt.TABLE_PROVIDE, {});
768
+ return An(Lt.TABLE_PROVIDE, {});
768
769
  }
769
770
  function Ei(e) {
770
- jn(zt.TABLE_PROVIDE, e);
771
+ jn(Lt.TABLE_PROVIDE, e);
771
772
  }
772
773
  function $f() {
773
- return An(zt.COMP_PROVIDE, {});
774
+ return An(Lt.COMP_PROVIDE, {});
774
775
  }
775
776
  function vc(e) {
776
- jn(zt.COMP_PROVIDE, e);
777
+ jn(Lt.COMP_PROVIDE, e);
777
778
  }
778
779
  function Co() {
779
- return An(zt.MENU_PROVIDE, {});
780
+ return An(Lt.MENU_PROVIDE, {});
780
781
  }
781
782
  function Df(e) {
782
- jn(zt.MENU_PROVIDE, e);
783
+ jn(Lt.MENU_PROVIDE, e);
783
784
  }
784
785
  function Ff() {
785
- return An(zt.H_MENU_PROVIDE, {});
786
+ return An(Lt.H_MENU_PROVIDE, {});
786
787
  }
787
788
  function Vf(e) {
788
- jn(zt.H_MENU_PROVIDE, e);
789
+ jn(Lt.H_MENU_PROVIDE, e);
789
790
  }
790
791
  function Nf() {
791
- return An(zt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
792
+ return An(Lt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
792
793
  }
793
794
  function Wf(e) {
794
- jn(zt.AUTH_PAGE_PROVIDE, e);
795
+ jn(Lt.AUTH_PAGE_PROVIDE, e);
795
796
  }
796
797
  function WC() {
797
- return An(zt.LAYER_PROVIDE, {});
798
+ return An(Lt.LAYER_PROVIDE, {});
798
799
  }
799
800
  function Uf(e) {
800
- jn(zt.LAYER_PROVIDE, e);
801
+ jn(Lt.LAYER_PROVIDE, e);
801
802
  }
802
803
  function Yf() {
803
- return An(zt.PAGE_PROVIDE, {});
804
+ return An(Lt.PAGE_PROVIDE, {});
804
805
  }
805
806
  function Kf(e) {
806
- jn(zt.PAGE_PROVIDE, e);
807
+ jn(Lt.PAGE_PROVIDE, e);
807
808
  }
808
809
  var Gf = /* @__PURE__ */ fe({
809
810
  name: "JDynamicLayer",
@@ -4470,19 +4471,19 @@ var Xh = class {
4470
4471
  "j-tree-select",
4471
4472
  "j-checkbox"
4472
4473
  ].includes(n.type)) {
4473
- const $ = { ...n.config || {} };
4474
- return !(n.type === "j-select" && !$.multiple || n.type === "j-tree-select" && !$.multiple);
4474
+ const D = { ...n.config || {} };
4475
+ return !(n.type === "j-select" && !D.multiple || n.type === "j-tree-select" && !D.multiple);
4475
4476
  }
4476
4477
  return !1;
4477
4478
  }), R = j({
4478
4479
  get() {
4479
- let $;
4480
- if (x ? $ = x[n.id] : c ? $ = c[n.id] : $ = n.modelValue, $ === void 0 && C.value === "j-tabs") {
4480
+ let D;
4481
+ if (x ? D = x[n.id] : c ? D = c[n.id] : D = n.modelValue, D === void 0 && C.value === "j-tabs") {
4481
4482
  if (y.value?.defaultValue) return y.value.defaultValue;
4482
4483
  const ee = n.children.findIndex((ge) => ge.config?.active);
4483
4484
  return ee > -1 ? "_tab" + ee : "_tab0";
4484
4485
  }
4485
- if ($ === void 0 && C.value === "j-collapse") {
4486
+ if (D === void 0 && C.value === "j-collapse") {
4486
4487
  if (y.value?.defaultValue) return y.value.defaultValue;
4487
4488
  const ee = n.children.map((ge, Se) => ({
4488
4489
  item: ge,
@@ -4490,10 +4491,10 @@ var Xh = class {
4490
4491
  })).filter(({ item: ge }) => ge.config?.active);
4491
4492
  return y.value?.accordion ? ee.length > 0 ? "_collapse" + ee[0].index : "" : ee.map(({ index: ge }) => "_collapse" + ge);
4492
4493
  }
4493
- return w.value ? $ ? $.split(",") : [] : $;
4494
+ return w.value ? D ? D.split(",") : [] : D;
4494
4495
  },
4495
- set($) {
4496
- $ && w.value && ($ = String($ || [])), x ? x[n.id] = $ : c && (c[n.id] = $), a("update:modelValue", $);
4496
+ set(D) {
4497
+ D && w.value && (D = String(D || [])), x ? x[n.id] = D : c && (c[n.id] = D), a("update:modelValue", D);
4497
4498
  }
4498
4499
  }), y = j(() => bn({
4499
4500
  config: n.config,
@@ -4508,46 +4509,46 @@ var Xh = class {
4508
4509
  formData: c || {},
4509
4510
  row: x,
4510
4511
  getTableData: g
4511
- })), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = ($) => r($, n.config || {}), M = ($, ee) => {
4512
- if (Object.prototype.hasOwnProperty.call(ee, $)) return ee[$];
4513
- if (ee.parentRow) return M($, ee.parentRow);
4514
- const ge = u[$];
4512
+ })), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = (D) => r(D, n.config || {}), M = (D, ee) => {
4513
+ if (Object.prototype.hasOwnProperty.call(ee, D)) return ee[D];
4514
+ if (ee.parentRow) return M(D, ee.parentRow);
4515
+ const ge = u[D];
4515
4516
  if (ge && ge.config?.field) return M(ge.config?.field, ee);
4516
- }, A = ($) => {
4517
- if ($)
4518
- return c && Object.prototype.hasOwnProperty.call(c, $) ? c[$] : M($, n.config?.row || {});
4519
- }, U = async ($) => {
4517
+ }, A = (D) => {
4518
+ if (D)
4519
+ return c && Object.prototype.hasOwnProperty.call(c, D) ? c[D] : M(D, n.config?.row || {});
4520
+ }, U = async (D) => {
4520
4521
  let ee = null;
4521
4522
  const ge = n.config?.dataCode, Se = n.config?.dataType;
4522
4523
  if (!ge) return;
4523
4524
  const ne = ln(n.config?.params) || {};
4524
4525
  if (Se === "dataItem" && i)
4525
- await i("dataItem", ge, void 0, !1), ee = l("dataItem", ge) || [], $.ids && (ee = ee.filter((Ce) => $.ids.split(",").includes(Ce[V.value.valueKey])));
4526
+ await i("dataItem", ge, void 0, !1), ee = l("dataItem", ge) || [], D.ids && (ee = ee.filter((Ce) => D.ids.split(",").includes(Ce[V.value.valueKey])));
4526
4527
  else if (n.config?.upCtrl) {
4527
4528
  const Ce = A(n.config?.upCtrl);
4528
4529
  ne[n.config?.upKey || "param"] = Ce;
4529
4530
  }
4530
4531
  return Se === "dataSource" ? (n.config?.layerSearchInputList?.length > 0 && n.config?.layerSearchInputList.forEach((Ce) => {
4531
- Qt($[Ce.id]) || (ne[Ce.id] = $[Ce.id]);
4532
+ Qt(D[Ce.id]) || (ne[Ce.id] = D[Ce.id]);
4532
4533
  }), n.config?.paramList?.length > 0 && n.config?.paramList.forEach((Ce) => {
4533
4534
  !Qt(Ce.upId) && !Qt(Ce.upKey) && (ne[Ce.upKey] = A(Ce.upId));
4534
- })) : Se === "dataItem" && n.config?.isKeyword && $.layerKeyword && (ee = ee.filter((Ce) => !!(Ce.f_ItemValue.toLowerCase().includes($.layerKeyword.toLowerCase()) || Ce.f_ItemName.toLowerCase().includes($.layerKeyword.toLowerCase())))), $.param = JSON.stringify(ne), n.config?.isPage ? Se === "dataItem" ? ee = vf($, ee) : (await i("dbsourcePages", ge, JSON.stringify($), !1), ee = l("dbsourcePages", ge, { param: JSON.stringify($) })) : Se === "dataSource" && (await i("dbsource", ge, JSON.stringify(ne), !1), ee = l("dbsource", ge, { param: JSON.stringify(ne) })), ee;
4535
+ })) : Se === "dataItem" && n.config?.isKeyword && D.layerKeyword && (ee = ee.filter((Ce) => !!(Ce.f_ItemValue.toLowerCase().includes(D.layerKeyword.toLowerCase()) || Ce.f_ItemName.toLowerCase().includes(D.layerKeyword.toLowerCase())))), D.param = JSON.stringify(ne), n.config?.isPage ? Se === "dataItem" ? ee = vf(D, ee) : (await i("dbsourcePages", ge, JSON.stringify(D), !1), ee = l("dbsourcePages", ge, { param: JSON.stringify(D) })) : Se === "dataSource" && (await i("dbsource", ge, JSON.stringify(ne), !1), ee = l("dbsource", ge, { param: JSON.stringify(ne) })), ee;
4535
4536
  }, V = j(() => {
4536
- const $ = { ...y.value };
4537
- return C.value === "j-layer-form" && ($.schema = n.children), C.value === "el-collapse-item" && $.label && ($.title = $.label, delete $.label), [
4537
+ const D = { ...y.value };
4538
+ return C.value === "j-layer-form" && (D.schema = n.children), C.value === "el-collapse-item" && D.label && (D.title = D.label, delete D.label), [
4538
4539
  "j-input-cards",
4539
4540
  "j-input-rows",
4540
4541
  "j-table"
4541
- ].includes(k.value) && (console.log(n.children), $.columns = n.children.map((ee) => {
4542
+ ].includes(k.value) && (console.log(n.children), D.columns = n.children.map((ee) => {
4542
4543
  const ge = ee.config?.parentTableId;
4543
4544
  return ge && ee.id && ee.id.startsWith(ge + ".") ? {
4544
4545
  ...ee,
4545
4546
  id: ee.id.slice(ge.length + 1)
4546
4547
  } : ee;
4547
- })), n.isTableCell && (k.value === "j-checkbox" && ($.multiple = !0), k.value === "j-select" && $.multiple && ($.collapseTags = !0, $.collapseTagsTooltip = !0), k.value === "j-switch" && ($.size = "small"), k.value === "j-textarea" && ($.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && ($.loadLayerData = U, $.getText = E), $;
4548
+ })), n.isTableCell && (k.value === "j-checkbox" && (D.multiple = !0), k.value === "j-select" && D.multiple && (D.collapseTags = !0, D.collapseTagsTooltip = !0), k.value === "j-switch" && (D.size = "small"), k.value === "j-textarea" && (D.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (D.loadLayerData = U, D.getText = E), D;
4548
4549
  }), W = j(() => {
4549
4550
  if (C.value === "j-layer-form" || C.value === "j-input-rows" || C.value === "j-input-cards") return {};
4550
- const $ = {};
4551
+ const D = {};
4551
4552
  return n.children.forEach((ee, ge) => {
4552
4553
  let Se = ee;
4553
4554
  C.value === "j-tabs" && (Se = {
@@ -4564,11 +4565,11 @@ var Xh = class {
4564
4565
  ...ee.config || {},
4565
4566
  name: "_collapse" + ge
4566
4567
  }
4567
- }, s == "form" && (Se.config.needRow = Se.config.needRow !== !1, Se.config.needFormItem = Se.config.needFormItem !== !1)), Se.slot ? ($[Se.slot] = $[Se.slot] || [], $[Se.slot].push(Se)) : ($.default = $.default || [], $.default.push(Se));
4568
- }), $;
4569
- }), T = ($) => {
4568
+ }, s == "form" && (Se.config.needRow = Se.config.needRow !== !1, Se.config.needFormItem = Se.config.needFormItem !== !1)), Se.slot ? (D[Se.slot] = D[Se.slot] || [], D[Se.slot].push(Se)) : (D.default = D.default || [], D.default.push(Se));
4569
+ }), D;
4570
+ }), T = (D) => {
4570
4571
  const ee = {
4571
- ...$,
4572
+ ...D,
4572
4573
  id: n.id,
4573
4574
  formData: c,
4574
4575
  row: x,
@@ -4579,21 +4580,21 @@ var Xh = class {
4579
4580
  rowNum: n.rowNum
4580
4581
  };
4581
4582
  y.value?.change && y.value?.change(ee), b && b(ee), f && f(ee), a("change", ee);
4582
- }, S = P(), F = P([]), J = ($, ...ee) => {
4583
- if (S.value && typeof S.value[$] == "function") return S.value[$](...ee);
4584
- console.warn(`方法 ${$} 不存在或不是函数`);
4585
- }, ue = () => {
4583
+ }, S = P(), F = P([]), J = (D, ...ee) => {
4584
+ if (S.value && typeof S.value[D] == "function") return S.value[D](...ee);
4585
+ console.warn(`方法 ${D} 不存在或不是函数`);
4586
+ }, de = () => {
4586
4587
  if (F.value.forEach((ee) => ee()), F.value = [], !p) return;
4587
- const $ = p(n.id, J);
4588
- F.value.push($);
4588
+ const D = p(n.id, J);
4589
+ F.value.push(D);
4589
4590
  };
4590
4591
  return st(() => S.value, () => {
4591
- ue();
4592
+ de();
4592
4593
  }), Ct(() => {
4593
- ue();
4594
+ de();
4594
4595
  }), bo(() => {
4595
- F.value.forEach(($) => $()), F.value = [];
4596
- }), ($, ee) => {
4596
+ F.value.forEach((D) => D()), F.value = [];
4597
+ }), (D, ee) => {
4597
4598
  const ge = B("JComp"), Se = B("el-row");
4598
4599
  return V.value.display != !1 && m.value ? (_(), I(Pa(C.value), Ne({
4599
4600
  key: 0,
@@ -4884,10 +4885,10 @@ var ap = { class: "j-table-footer" }, op = {
4884
4885
  let R = o.records.length, y = 45;
4885
4886
  const k = P(!1), C = P({}), E = P([]), M = P(null), A = P(0);
4886
4887
  let U = null, V = !1, W = !1;
4887
- const T = (H, L, Y, te, D) => {
4888
+ const T = (H, L, Y, te, $) => {
4888
4889
  E.value = H, M.value = L, A.value = Y, C.value = {
4889
4890
  left: `${te}px`,
4890
- top: `${D}px`
4891
+ top: `${$}px`
4891
4892
  }, k.value = !0, V = !1, document.addEventListener("wheel", ee, { passive: !1 });
4892
4893
  }, S = () => {
4893
4894
  k.value = !1, V = !1, W = !1, J(), document.removeEventListener("wheel", ee);
@@ -4897,9 +4898,9 @@ var ap = { class: "j-table-footer" }, op = {
4897
4898
  }, 100);
4898
4899
  }, J = () => {
4899
4900
  U && (clearTimeout(U), U = null);
4900
- }, ue = () => {
4901
+ }, de = () => {
4901
4902
  V = !0, J();
4902
- }, $ = () => {
4903
+ }, D = () => {
4903
4904
  V = !1, F();
4904
4905
  }, ee = (H) => {
4905
4906
  H.preventDefault();
@@ -4912,8 +4913,8 @@ var ap = { class: "j-table-footer" }, op = {
4912
4913
  let L = H.action.config?.display !== !1, Y = H.action.config?.disabled === !0;
4913
4914
  const te = o.actionFilter;
4914
4915
  if (te) try {
4915
- const D = te(H);
4916
- typeof D == "boolean" ? L = D : D && typeof D == "object" && (typeof D.display == "boolean" && (L = D.display), typeof D.disabled == "boolean" && (Y = D.disabled));
4916
+ const $ = te(H);
4917
+ typeof $ == "boolean" ? L = $ : $ && typeof $ == "object" && (typeof $.display == "boolean" && (L = $.display), typeof $.disabled == "boolean" && (Y = $.disabled));
4917
4918
  } catch {
4918
4919
  L = H.action.config?.display !== !1, Y = H.action.config?.disabled === !0;
4919
4920
  }
@@ -4928,26 +4929,26 @@ var ap = { class: "j-table-footer" }, op = {
4928
4929
  disabled: !0
4929
4930
  }
4930
4931
  } : H, Ce = (H) => {
4931
- const { Group: L, Text: Y } = Ve.CustomLayout, te = o.actionsMaxCount, D = H.filter((de) => de.config?.display !== !1), Z = D.length > te, ie = Z ? D.slice(0, te - 1) : D;
4932
- let se = 0;
4933
- if (ie.forEach((de, me) => {
4934
- const Ee = fn(de.config?.label || de.label || "") || 0;
4935
- se += Ee + (me === 0 ? 24 : 12);
4932
+ const { Group: L, Text: Y } = Ve.CustomLayout, te = o.actionsMaxCount, $ = H.filter((se) => se.config?.display !== !1), Z = $.length > te, ie = Z ? $.slice(0, te - 1) : $;
4933
+ let re = 0;
4934
+ if (ie.forEach((se, me) => {
4935
+ const Ee = fn(se.config?.label || se.label || "") || 0;
4936
+ re += Ee + (me === 0 ? 24 : 12);
4936
4937
  }), Z) {
4937
- const de = (fn("更多") || 0) + 12;
4938
- se += de;
4938
+ const se = (fn("更多") || 0) + 12;
4939
+ re += se;
4939
4940
  }
4940
- const le = Math.max(80, se) + "px";
4941
+ const ue = Math.max(80, re) + "px";
4941
4942
  return {
4942
4943
  field: "__actions__",
4943
4944
  title: o.actionsLabel,
4944
- width: le,
4945
- maxWidth: le,
4946
- minWidth: le,
4945
+ width: ue,
4946
+ maxWidth: ue,
4947
+ minWidth: ue,
4947
4948
  disableColumnResize: !0,
4948
4949
  disableSelect: !0,
4949
- customLayout: (de) => {
4950
- const { table: me, row: Ee, col: Ie } = de, Me = me.getCellOriginRecord(Ie, Ee), Ge = me.getRecordIndexByCell(Ie, Ee), Be = D.map((pe) => {
4950
+ customLayout: (se) => {
4951
+ const { table: me, row: Ee, col: Ie } = se, Me = me.getCellOriginRecord(Ie, Ee), Ge = me.getRecordIndexByCell(Ie, Ee), Be = $.map((pe) => {
4951
4952
  const ct = Se({
4952
4953
  action: pe,
4953
4954
  record: Me,
@@ -5019,20 +5020,20 @@ var ap = { class: "j-table-footer" }, op = {
5019
5020
  }
5020
5021
  };
5021
5022
  }, ze = (H, L) => {
5022
- const { dataValue: Y, table: te, col: D, row: Z, value: ie } = H, se = H.rect ?? te?.getCellRect?.(D, Z) ?? {
5023
+ const { dataValue: Y, table: te, col: $, row: Z, value: ie } = H, re = H.rect ?? te?.getCellRect?.($, Z) ?? {
5023
5024
  width: 0,
5024
5025
  height: 0
5025
- }, le = te?.getBodyField?.(D, Z), de = te?.options?.columns || [], me = (le ? Bt(de, le) : null)?.style?.textAlign || "left", Ee = 8, Ie = Math.max(0, se.width - Ee * 2);
5026
+ }, ue = te?.getBodyField?.($, Z), se = te?.options?.columns || [], me = (ue ? Bt(se, ue) : null)?.style?.textAlign || "left", Ee = 8, Ie = Math.max(0, re.width - Ee * 2);
5026
5027
  let Me = ie ?? Y;
5027
5028
  Me == null && (Me = "");
5028
5029
  const Ge = ke(typeof Me == "object" ? JSON.stringify(Me) : String(Me), Ie);
5029
5030
  let Be = Ee, _e = "left";
5030
- return me === "center" ? (Be = se.width / 2, _e = "center") : me === "right" && (Be = Math.max(Ee, se.width - Ee), _e = "right"), {
5031
+ return me === "center" ? (Be = re.width / 2, _e = "center") : me === "right" && (Be = Math.max(Ee, re.width - Ee), _e = "right"), {
5031
5032
  elements: [{
5032
5033
  type: "text",
5033
5034
  text: Ge,
5034
5035
  x: Be,
5035
- y: se.height / 2,
5036
+ y: re.height / 2,
5036
5037
  fontSize: 14,
5037
5038
  fill: "#1d2129",
5038
5039
  textAlign: _e,
@@ -5041,14 +5042,14 @@ var ap = { class: "j-table-footer" }, op = {
5041
5042
  expectedHeight: un
5042
5043
  };
5043
5044
  }, Oe = (H, L) => {
5044
- const { dataValue: Y, rect: te, table: D, col: Z, row: ie } = H;
5045
- let se = "mdi:toggle-switch", le = "#165dff";
5046
- Y || (se = "mdi:toggle-switch-off", le = "#e5e6eb");
5047
- const de = ua(se), me = de?.body?.replace(/currentColor/g, le), Ee = [], Ie = D?.getBodyField?.(Z, ie), Me = D?.options?.columns || [], Ge = Ie ? Bt(Me, Ie) : null, Be = 8, _e = 40;
5045
+ const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H;
5046
+ let re = "mdi:toggle-switch", ue = "#165dff";
5047
+ Y || (re = "mdi:toggle-switch-off", ue = "#e5e6eb");
5048
+ const se = ua(re), me = se?.body?.replace(/currentColor/g, ue), Ee = [], Ie = $?.getBodyField?.(Z, ie), Me = $?.options?.columns || [], Ge = Ie ? Bt(Me, Ie) : null, Be = 8, _e = 40;
5048
5049
  let Je = Be;
5049
5050
  return Ge?.style?.textAlign === "center" ? Je = Math.max(Be, (te.width - _e) / 2) : Ge?.style?.textAlign === "right" && (Je = Math.max(Be, te.width - _e - Be)), Ee.push({
5050
5051
  type: "icon",
5051
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${_e}" viewBox="0 0 ${de?.width} ${de?.height}" >${me}</svg>`,
5052
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${_e}" viewBox="0 0 ${se?.width} ${se?.height}" >${me}</svg>`,
5052
5053
  x: Je,
5053
5054
  y: (te.height - _e) / 2,
5054
5055
  width: _e,
@@ -5058,10 +5059,10 @@ var ap = { class: "j-table-footer" }, op = {
5058
5059
  expectedHeight: un
5059
5060
  };
5060
5061
  }, et = (H, L) => {
5061
- const { dataValue: Y, rect: te } = H, D = Number(Y) || 0, Z = 5, ie = 20, se = 4, le = 8, de = (te.height - ie) / 2, me = [], Ee = ua("mdi:star"), Ie = ua("mdi:star-half-full"), Me = ua("mdi:star-outline"), Ge = "#f7ba2a", Be = "#e5e6eb";
5062
+ const { dataValue: Y, rect: te } = H, $ = Number(Y) || 0, Z = 5, ie = 20, re = 4, ue = 8, se = (te.height - ie) / 2, me = [], Ee = ua("mdi:star"), Ie = ua("mdi:star-half-full"), Me = ua("mdi:star-outline"), Ge = "#f7ba2a", Be = "#e5e6eb";
5062
5063
  for (let _e = 0; _e < Z; _e++) {
5063
- const Je = le + _e * (ie + se), Xe = de;
5064
- if (D >= _e + 1) {
5064
+ const Je = ue + _e * (ie + re), Xe = se;
5065
+ if ($ >= _e + 1) {
5065
5066
  const rt = Ee?.body?.replace(/currentColor/g, Ge);
5066
5067
  me.push({
5067
5068
  type: "icon",
@@ -5071,7 +5072,7 @@ var ap = { class: "j-table-footer" }, op = {
5071
5072
  width: ie,
5072
5073
  height: ie
5073
5074
  });
5074
- } else if (D > _e && D < _e + 1) {
5075
+ } else if ($ > _e && $ < _e + 1) {
5075
5076
  const rt = Ie?.body?.replace(/currentColor/g, Ge);
5076
5077
  me.push({
5077
5078
  type: "icon",
@@ -5098,18 +5099,18 @@ var ap = { class: "j-table-footer" }, op = {
5098
5099
  expectedHeight: un
5099
5100
  };
5100
5101
  }, ut = (H, L) => {
5101
- const { dataValue: Y, rect: te, table: D, col: Z, row: ie } = H, se = D.getBodyField(Z, ie), le = Bt(D.options?.columns || [], se), de = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, me = L || bn({
5102
- config: le?._compConfig,
5103
- getCompConfig: le?._getCompConfig,
5102
+ const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H, re = $.getBodyField(Z, ie), ue = Bt($.options?.columns || [], re), se = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, me = L || bn({
5103
+ config: ue?._compConfig,
5104
+ getCompConfig: ue?._getCompConfig,
5104
5105
  formData: l || {},
5105
5106
  getTableData: Rn,
5106
- row: de
5107
- }) || {}, Ee = Number(me.min) || 0, Ie = Number(me.max) || 100, Me = Number(Y) || 0, Ge = Ie - Ee, Be = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Me - Ee) / Ge * 100)), _e = 4, Je = 8, Xe = 8, rt = (te.height - _e) / 2, qe = String(Me), pe = fn(qe) || 0, ct = Je, De = rt, At = te.width - Je * 2 - pe - Xe, tn = At * Be / 100, sn = [], cn = (Ft, tt, xt) => {
5108
- const dt = Math.min(xt, tt / 2, Ft / 2);
5109
- return `M ${dt} 0 L ${Ft - dt} 0 Q ${Ft} 0 ${Ft} ${dt} L ${Ft} ${tt - dt} Q ${Ft} ${tt} ${Ft - dt} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
5110
- }, qa = (Ft, tt, xt) => {
5111
- const dt = Math.min(xt, tt / 2, Ft / 2);
5112
- return Ft <= dt * 2 ? cn(Ft, tt, xt) : `M ${dt} 0 L ${Ft} 0 L ${Ft} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
5107
+ row: se
5108
+ }) || {}, Ee = Number(me.min) || 0, Ie = Number(me.max) || 100, Me = Number(Y) || 0, Ge = Ie - Ee, Be = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Me - Ee) / Ge * 100)), _e = 4, Je = 8, Xe = 8, rt = (te.height - _e) / 2, qe = String(Me), pe = fn(qe) || 0, ct = Je, De = rt, At = te.width - Je * 2 - pe - Xe, tn = At * Be / 100, sn = [], cn = (Dt, tt, xt) => {
5109
+ const dt = Math.min(xt, tt / 2, Dt / 2);
5110
+ return `M ${dt} 0 L ${Dt - dt} 0 Q ${Dt} 0 ${Dt} ${dt} L ${Dt} ${tt - dt} Q ${Dt} ${tt} ${Dt - dt} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
5111
+ }, qa = (Dt, tt, xt) => {
5112
+ const dt = Math.min(xt, tt / 2, Dt / 2);
5113
+ return Dt <= dt * 2 ? cn(Dt, tt, xt) : `M ${dt} 0 L ${Dt} 0 L ${Dt} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
5113
5114
  }, Vo = cn(At, _e, _e / 2);
5114
5115
  if (sn.push({
5115
5116
  type: "icon",
@@ -5119,10 +5120,10 @@ var ap = { class: "j-table-footer" }, op = {
5119
5120
  width: At,
5120
5121
  height: _e
5121
5122
  }), tn > 0) {
5122
- const Ft = qa(tn, _e, _e / 2);
5123
+ const Dt = qa(tn, _e, _e / 2);
5123
5124
  sn.push({
5124
5125
  type: "icon",
5125
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${tn}" height="${_e}" viewBox="0 0 ${tn} ${_e}"><path d="${Ft}" fill="#165dff"/></svg>`,
5126
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${tn}" height="${_e}" viewBox="0 0 ${tn} ${_e}"><path d="${Dt}" fill="#165dff"/></svg>`,
5126
5127
  x: ct,
5127
5128
  y: De,
5128
5129
  width: tn,
@@ -5148,24 +5149,24 @@ var ap = { class: "j-table-footer" }, op = {
5148
5149
  if ((fn(H) || 0) <= L) return H;
5149
5150
  const Y = "...", te = fn(Y) || 0;
5150
5151
  if (te >= L) return "";
5151
- let D = 0, Z = H.length;
5152
- for (; D < Z; ) {
5153
- const ie = Math.ceil((D + Z) / 2);
5154
- (fn(H.slice(0, ie)) || 0) + te <= L ? D = ie : Z = ie - 1;
5152
+ let $ = 0, Z = H.length;
5153
+ for (; $ < Z; ) {
5154
+ const ie = Math.ceil(($ + Z) / 2);
5155
+ (fn(H.slice(0, ie)) || 0) + te <= L ? $ = ie : Z = ie - 1;
5155
5156
  }
5156
- return H.slice(0, D) + Y;
5157
+ return H.slice(0, $) + Y;
5157
5158
  }, $e = (H, L) => {
5158
- const { value: Y, rect: te, table: D, col: Z, row: ie } = H;
5159
+ const { value: Y, rect: te, table: $, col: Z, row: ie } = H;
5159
5160
  if (!Y) return {
5160
5161
  elements: [],
5161
5162
  expectedHeight: un
5162
5163
  };
5163
- const se = D.getBodyField(Z, ie), le = Bt(D.options?.columns || [], se), de = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, me = L || bn({
5164
- config: le?._compConfig,
5165
- getCompConfig: le?._getCompConfig,
5164
+ const re = $.getBodyField(Z, ie), ue = Bt($.options?.columns || [], re), se = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, me = L || bn({
5165
+ config: ue?._compConfig,
5166
+ getCompConfig: ue?._getCompConfig,
5166
5167
  formData: l || {},
5167
5168
  getTableData: Rn,
5168
- row: de
5169
+ row: se
5169
5170
  }) || {}, Ee = Number(me.size) || 16, Ie = me.color, Me = (te.width - Ee) / 2, Ge = (te.height - Ee) / 2;
5170
5171
  let Be = String(Y).trim();
5171
5172
  if (!Be) return {
@@ -5202,16 +5203,16 @@ var ap = { class: "j-table-footer" }, op = {
5202
5203
  expectedHeight: Math.max(un, Ee)
5203
5204
  };
5204
5205
  }, Ye = (H, L) => {
5205
- const { dataValue: Y, rect: te, table: D, col: Z, row: ie, value: se } = H, le = D.getBodyField(Z, ie), de = Bt(D.options?.columns || [], le), me = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, Ee = L || bn({
5206
- config: de?._compConfig,
5207
- getCompConfig: de?._getCompConfig,
5206
+ const { dataValue: Y, rect: te, table: $, col: Z, row: ie, value: re } = H, ue = $.getBodyField(Z, ie), se = Bt($.options?.columns || [], ue), me = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, Ee = L || bn({
5207
+ config: se?._compConfig,
5208
+ getCompConfig: se?._getCompConfig,
5208
5209
  formData: l || {},
5209
5210
  getTableData: Rn,
5210
5211
  row: me
5211
- }) || {}, Ie = de?.style?.textAlign || "left", Me = c({
5212
+ }) || {}, Ie = se?.style?.textAlign || "left", Me = c({
5212
5213
  config: Ee,
5213
5214
  row: me,
5214
- value: de._fieldFormat ? se : Y
5215
+ value: se._fieldFormat ? re : Y
5215
5216
  });
5216
5217
  if (Me.length === 0) return {
5217
5218
  elements: [],
@@ -5239,7 +5240,7 @@ var ap = { class: "j-table-footer" }, op = {
5239
5240
  const vn = Me[gn], oa = vn.label, ia = At(oa), Wo = {
5240
5241
  label: oa,
5241
5242
  bg: vn.color || "#f2f3f5",
5242
- text: vn.textColor || $t(vn.color || "#f2f3f5"),
5243
+ text: vn.textColor || zt(vn.color || "#f2f3f5"),
5243
5244
  width: ia
5244
5245
  };
5245
5246
  xt.length > 0 && dt + Xe + ia > pe ? (tt.push({
@@ -5269,54 +5270,54 @@ var ap = { class: "j-table-footer" }, op = {
5269
5270
  }
5270
5271
  No += Be + (tt < cn.length - 1 ? rt : 0);
5271
5272
  }
5272
- const Ft = Math.min(te.width, Math.max(0, ...cn.map((tt) => tt.lineWidth)) + qe * 2);
5273
+ const Dt = Math.min(te.width, Math.max(0, ...cn.map((tt) => tt.lineWidth)) + qe * 2);
5273
5274
  return {
5274
5275
  elements: De,
5275
5276
  expectedHeight: Math.max(un, Vo),
5276
- expectedWidth: Ft
5277
+ expectedWidth: Dt
5277
5278
  };
5278
- }, $t = (H) => {
5279
+ }, zt = (H) => {
5279
5280
  if (!H) return "#1d2129";
5280
- H = H.replace("#", ""), H.length === 3 && (H = H.split("").map((D) => D + D).join(""));
5281
+ H = H.replace("#", ""), H.length === 3 && (H = H.split("").map(($) => $ + $).join(""));
5281
5282
  const L = parseInt(H.substring(0, 2), 16), Y = parseInt(H.substring(2, 4), 16), te = parseInt(H.substring(4, 6), 16);
5282
5283
  if ((L * 299 + Y * 587 + te * 114) / 1e3 >= 128) {
5283
- const D = L / 255, Z = Y / 255, ie = te / 255, se = Math.max(D, Z, ie), le = Math.min(D, Z, ie);
5284
- let de = 0, me = 0;
5285
- const Ee = (se + le) / 2;
5286
- if (se !== le) {
5287
- const Xe = se - le;
5288
- switch (me = Ee > 0.5 ? Xe / (2 - se - le) : Xe / (se + le), se) {
5289
- case D:
5290
- de = (Z - ie) / Xe + (Z < ie ? 6 : 0);
5284
+ const $ = L / 255, Z = Y / 255, ie = te / 255, re = Math.max($, Z, ie), ue = Math.min($, Z, ie);
5285
+ let se = 0, me = 0;
5286
+ const Ee = (re + ue) / 2;
5287
+ if (re !== ue) {
5288
+ const Xe = re - ue;
5289
+ switch (me = Ee > 0.5 ? Xe / (2 - re - ue) : Xe / (re + ue), re) {
5290
+ case $:
5291
+ se = (Z - ie) / Xe + (Z < ie ? 6 : 0);
5291
5292
  break;
5292
5293
  case Z:
5293
- de = (ie - D) / Xe + 2;
5294
+ se = (ie - $) / Xe + 2;
5294
5295
  break;
5295
5296
  case ie:
5296
- de = (D - Z) / Xe + 4;
5297
+ se = ($ - Z) / Xe + 4;
5297
5298
  break;
5298
5299
  }
5299
- de /= 6;
5300
+ se /= 6;
5300
5301
  }
5301
5302
  const Ie = 0.3, Me = me;
5302
5303
  let Ge, Be, _e;
5303
5304
  if (Me === 0) Ge = Be = _e = Ie;
5304
5305
  else {
5305
5306
  const Xe = (pe, ct, De) => (De < 0 && (De += 1), De > 1 && (De -= 1), De < 0.16666666666666666 ? pe + (ct - pe) * 6 * De : De < 0.5 ? ct : De < 0.6666666666666666 ? pe + (ct - pe) * (0.6666666666666666 - De) * 6 : pe), rt = Ie < 0.5 ? Ie * (1 + Me) : Ie + Me - Ie * Me, qe = 2 * Ie - rt;
5306
- Ge = Xe(qe, rt, de + 1 / 3), Be = Xe(qe, rt, de), _e = Xe(qe, rt, de - 1 / 3);
5307
+ Ge = Xe(qe, rt, se + 1 / 3), Be = Xe(qe, rt, se), _e = Xe(qe, rt, se - 1 / 3);
5307
5308
  }
5308
5309
  const Je = (Xe) => Math.round(Xe * 255).toString(16).padStart(2, "0");
5309
5310
  return `#${Je(Ge)}${Je(Be)}${Je(_e)}`;
5310
5311
  }
5311
5312
  return "#ffffff";
5312
- }, Nt = (H) => {
5313
- const { table: L, row: Y, col: te, rect: D, value: Z } = H, { Group: ie, Text: se } = Ve.CustomLayout, le = L.getBodyField(te, Y), de = Bt(L.options?.columns || [], le), me = de?._compConfig || {}, Ee = new ie({
5314
- height: D.height,
5315
- width: D.width,
5313
+ }, Vt = (H) => {
5314
+ const { table: L, row: Y, col: te, rect: $, value: Z } = H, { Group: ie, Text: re } = Ve.CustomLayout, ue = L.getBodyField(te, Y), se = Bt(L.options?.columns || [], ue), me = se?._compConfig || {}, Ee = new ie({
5315
+ height: $.height,
5316
+ width: $.width,
5316
5317
  display: "flex",
5317
5318
  alignItems: "center",
5318
- justifyContent: de.style?.textAlign === "center" ? "center" : de.style?.textAlign === "right" ? "flex-end" : "flex-start"
5319
- }), Ie = "#165dff", Me = new se({
5319
+ justifyContent: se.style?.textAlign === "center" ? "center" : se.style?.textAlign === "right" ? "flex-end" : "flex-start"
5320
+ }), Ie = "#165dff", Me = new re({
5320
5321
  text: String(Z ?? ""),
5321
5322
  fontSize: 14,
5322
5323
  fill: Ie,
@@ -5333,7 +5334,7 @@ var ap = { class: "j-table-footer" }, op = {
5333
5334
  const Ge = L.getCellOriginRecord(te, Y);
5334
5335
  me.click({
5335
5336
  row: Ge,
5336
- column: de,
5337
+ column: se,
5337
5338
  openLayer: u
5338
5339
  });
5339
5340
  }
@@ -5346,15 +5347,15 @@ var ap = { class: "j-table-footer" }, op = {
5346
5347
  renderDefault: !1
5347
5348
  };
5348
5349
  }, it = (H) => {
5349
- const { table: L, row: Y, col: te, rect: D } = H, { height: Z, width: ie } = D ?? L.getCellRect(te, Y), { Group: se, CheckBox: le } = Ve.CustomLayout, de = L.getBodyField(te, Y), me = Bt(L.options?.columns || [], de), Ee = L.getCellOriginRecord(te, Y) || {}, Ie = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Me = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Ge = (qe, pe) => {
5350
- const ct = Ee?.[de];
5351
- Ee[de] = (Array.isArray(ct) ? ct : []).map((De, At) => At !== qe ? De : De && typeof De == "object" ? {
5350
+ const { table: L, row: Y, col: te, rect: $ } = H, { height: Z, width: ie } = $ ?? L.getCellRect(te, Y), { Group: re, CheckBox: ue } = Ve.CustomLayout, se = L.getBodyField(te, Y), me = Bt(L.options?.columns || [], se), Ee = L.getCellOriginRecord(te, Y) || {}, Ie = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Me = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Ge = (qe, pe) => {
5351
+ const ct = Ee?.[se];
5352
+ Ee[se] = (Array.isArray(ct) ? ct : []).map((De, At) => At !== qe ? De : De && typeof De == "object" ? {
5352
5353
  ...De,
5353
5354
  ...pe
5354
5355
  } : { ...pe });
5355
5356
  }, Be = () => {
5356
5357
  L.renderWithRecreateCells();
5357
- }, _e = new se({
5358
+ }, _e = new re({
5358
5359
  width: ie,
5359
5360
  height: Math.max(Z || 0, 40),
5360
5361
  display: "flex",
@@ -5362,12 +5363,12 @@ var ap = { class: "j-table-footer" }, op = {
5362
5363
  alignItems: Ie,
5363
5364
  justifyContent: "center",
5364
5365
  flexWrap: "nowrap"
5365
- }), Je = Ee?.[de];
5366
+ }), Je = Ee?.[se];
5366
5367
  if (!Array.isArray(Je)) return {
5367
5368
  rootContainer: _e,
5368
5369
  renderDefault: !1
5369
5370
  };
5370
- const Xe = Je, rt = new se({
5371
+ const Xe = Je, rt = new re({
5371
5372
  width: ie,
5372
5373
  display: "flex",
5373
5374
  flexDirection: "row",
@@ -5383,7 +5384,7 @@ var ap = { class: "j-table-footer" }, op = {
5383
5384
  });
5384
5385
  _e.add(rt);
5385
5386
  for (let qe = 0; qe < Xe.length; qe++) {
5386
- const pe = Xe[qe], ct = pe && typeof pe == "object" ? pe.label ?? pe.value ?? "" : pe ?? "", De = new le({
5387
+ const pe = Xe[qe], ct = pe && typeof pe == "object" ? pe.label ?? pe.value ?? "" : pe ?? "", De = new ue({
5387
5388
  text: {
5388
5389
  text: String(ct),
5389
5390
  fontSize: 12
@@ -5408,7 +5409,7 @@ var ap = { class: "j-table-footer" }, op = {
5408
5409
  renderDefault: !1
5409
5410
  };
5410
5411
  }, aa = (H) => {
5411
- const { table: L, row: Y, col: te } = H, D = L.getBodyField(te, Y), Z = Bt(L.options?.columns || [], D), ie = Z?._compConfig || {};
5412
+ const { table: L, row: Y, col: te } = H, $ = L.getBodyField(te, Y), Z = Bt(L.options?.columns || [], $), ie = Z?._compConfig || {};
5412
5413
  if (Z?._customLayout) return Z._customLayout({
5413
5414
  ...H,
5414
5415
  config: ie,
@@ -5424,27 +5425,27 @@ var ap = { class: "j-table-footer" }, op = {
5424
5425
  }
5425
5426
  return null;
5426
5427
  }, en = (H) => {
5427
- const { table: L, col: Y, row: te } = H, D = L.getBodyField(Y, te), Z = Bt(L.options?.columns || [], D);
5428
+ const { table: L, col: Y, row: te } = H, $ = L.getBodyField(Y, te), Z = Bt(L.options?.columns || [], $);
5428
5429
  if (!Z) return {
5429
5430
  elements: [],
5430
5431
  expectedHeight: un
5431
5432
  };
5432
- const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {}, se = bn({
5433
+ const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {}, re = bn({
5433
5434
  config: Z._compConfig,
5434
5435
  getCompConfig: Z._getCompConfig,
5435
5436
  formData: l || {},
5436
5437
  getTableData: Rn,
5437
5438
  row: ie
5438
- }), le = zl({
5439
+ }), ue = zl({
5439
5440
  type: Z._compType,
5440
5441
  getCompType: Z._getCompType,
5441
- config: se,
5442
+ config: re,
5442
5443
  formData: l || {},
5443
5444
  getTableData: Rn,
5444
5445
  row: ie
5445
5446
  });
5446
- ie._compTypeByRender = le;
5447
- const de = {
5447
+ ie._compTypeByRender = ue;
5448
+ const se = {
5448
5449
  text: ze,
5449
5450
  "j-switch": Oe,
5450
5451
  "j-rate": et,
@@ -5452,19 +5453,19 @@ var ap = { class: "j-table-footer" }, op = {
5452
5453
  "j-tag": Ye,
5453
5454
  "j-input-tag": Ye,
5454
5455
  "j-icon": $e
5455
- }[le];
5456
- return de ? de(H, se) : {
5456
+ }[ue];
5457
+ return se ? se(H, re) : {
5457
5458
  elements: [],
5458
5459
  expectedHeight: un
5459
5460
  };
5460
5461
  }, q = (H, L, Y, te) => {
5461
- const D = te.getBodyField(L, Y), Z = Bt(te.options?.columns || [], D);
5462
+ const $ = te.getBodyField(L, Y), Z = Bt(te.options?.columns || [], $);
5462
5463
  if (Z._fieldFormat) return Z._fieldFormat(H, L, Y, te);
5463
5464
  if (Z._compType === "dateTime") {
5464
5465
  const ie = Z._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
5465
- return fc(H[D], ie);
5466
+ return fc(H[$], ie);
5466
5467
  }
5467
- return kf(H[D], s, {
5468
+ return kf(H[$], s, {
5468
5469
  type: Z._compType,
5469
5470
  getCompType: Z._getCompType,
5470
5471
  getCompConfig: Z._getCompConfig,
@@ -5475,7 +5476,7 @@ var ap = { class: "j-table-footer" }, op = {
5475
5476
  });
5476
5477
  }, he = (H) => {
5477
5478
  const L = H.filter((Y) => Y.config?.display !== !1).map((Y) => {
5478
- const { id: te, type: D, config: Z, getCompConfig: ie, getCompType: se, children: le, customLayout: de } = Y, { label: me, width: Ee, minWidth: Ie, maxWidth: Me, align: Ge, headerAlign: Be, fieldFormat: _e, editor: Je, frozen: Xe, ...rt } = Z || {}, qe = Be ?? Ge, pe = {
5479
+ const { id: te, type: $, config: Z, getCompConfig: ie, getCompType: re, children: ue, customLayout: se } = Y, { label: me, width: Ee, minWidth: Ie, maxWidth: Me, align: Ge, headerAlign: Be, fieldFormat: _e, editor: Je, frozen: Xe, ...rt } = Z || {}, qe = Be ?? Ge, pe = {
5479
5480
  field: te,
5480
5481
  title: me,
5481
5482
  width: Ee,
@@ -5483,31 +5484,31 @@ var ap = { class: "j-table-footer" }, op = {
5483
5484
  maxWidth: Me,
5484
5485
  ...qe ? { headerStyle: { textAlign: qe } } : {},
5485
5486
  style: { textAlign: Ge },
5486
- _customLayout: de,
5487
+ _customLayout: se,
5487
5488
  _fieldFormat: _e,
5488
- _compType: D,
5489
+ _compType: $,
5489
5490
  _compConfig: { ...rt },
5490
5491
  _getCompConfig: ie,
5491
- _getCompType: se,
5492
+ _getCompType: re,
5492
5493
  frozen: Xe
5493
- }, ct = typeof se == "function", De = xc(D);
5494
- return (De || ct) && (pe.editor = De, m = !0), ct ? pe.customRender = en : (D === "j-switch" && (pe.customRender = Oe), D === "j-rate" && (pe.customRender = et), D === "j-slider" && (pe.customRender = ut), (D === "j-tag" || D === "j-input-tag") && (pe.customRender = Ye), D === "j-icon" && (pe.customRender = $e)), D === "link" && (pe.customLayout = Nt), D === "checkbox" && (pe.customLayout = it), D === "j-switch" && (pe.minWidth = pe.minWidth || Ee, pe.maxWidth = pe.maxWidth || Ee), de && (pe.customLayout = aa), pe.fieldFormat = q, le && le.length > 0 && (pe.columns = he(le)), pe;
5494
+ }, ct = typeof re == "function", De = xc($);
5495
+ return (De || ct) && (pe.editor = De, m = !0), ct ? pe.customRender = en : ($ === "j-switch" && (pe.customRender = Oe), $ === "j-rate" && (pe.customRender = et), $ === "j-slider" && (pe.customRender = ut), ($ === "j-tag" || $ === "j-input-tag") && (pe.customRender = Ye), $ === "j-icon" && (pe.customRender = $e)), $ === "link" && (pe.customLayout = Vt), $ === "checkbox" && (pe.customLayout = it), $ === "j-switch" && (pe.minWidth = pe.minWidth || Ee, pe.maxWidth = pe.maxWidth || Ee), se && (pe.customLayout = aa), pe.fieldFormat = q, ue && ue.length > 0 && (pe.columns = he(ue)), pe;
5495
5496
  });
5496
5497
  return o.isTree && L.length > 0 && (L[0].tree = !0), L;
5497
5498
  }, Q = (H, L) => {
5498
- const Y = H.replace("#", ""), te = parseInt(Y, 16), D = Math.min(255, Math.max(0, (te >> 16) + L)), Z = Math.min(255, Math.max(0, (te >> 8 & 255) + L)), ie = Math.min(255, Math.max(0, (te & 255) + L));
5499
- return `#${(D << 16 | Z << 8 | ie).toString(16).padStart(6, "0")}`;
5499
+ const Y = H.replace("#", ""), te = parseInt(Y, 16), $ = Math.min(255, Math.max(0, (te >> 16) + L)), Z = Math.min(255, Math.max(0, (te >> 8 & 255) + L)), ie = Math.min(255, Math.max(0, (te & 255) + L));
5500
+ return `#${($ << 16 | Z << 8 | ie).toString(16).padStart(6, "0")}`;
5500
5501
  }, ae = () => {
5501
5502
  let H = R;
5502
5503
  o.isPage && (H = jt.value + R);
5503
5504
  let L = fn(String(H)) || 0;
5504
5505
  return o.subColumns && o.subColumns.length > 0 && (L = L + 32), Math.max(45, L + 18);
5505
5506
  }, ce = (H) => {
5506
- let L = (Y, te, D, Z) => {
5507
- const ie = Z.getRecordIndexByCell(te, D);
5507
+ let L = (Y, te, $, Z) => {
5508
+ const ie = Z.getRecordIndexByCell(te, $);
5508
5509
  return o.isPage && !H ? jt.value + ie + 1 : ie + 1;
5509
5510
  };
5510
- return H && (L = (Y, te, D, Z) => Z.getRecordIndexByCell(te, D) + 1), {
5511
+ return H && (L = (Y, te, $, Z) => Z.getRecordIndexByCell(te, $) + 1), {
5511
5512
  field: "__sequence__",
5512
5513
  title: "序号",
5513
5514
  width: y,
@@ -5548,17 +5549,17 @@ var ap = { class: "j-table-footer" }, op = {
5548
5549
  L.push(Y);
5549
5550
  return;
5550
5551
  }
5551
- const te = lt(Y.columns), D = [], Z = [], ie = [];
5552
- if (te.forEach((se) => {
5553
- const le = He(se);
5554
- le === "left" ? D.push(se) : le === "right" ? Z.push(se) : ie.push(se);
5555
- }), (D.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
5552
+ const te = lt(Y.columns), $ = [], Z = [], ie = [];
5553
+ if (te.forEach((re) => {
5554
+ const ue = He(re);
5555
+ ue === "left" ? $.push(re) : ue === "right" ? Z.push(re) : ie.push(re);
5556
+ }), ($.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
5556
5557
  Y.columns = te, L.push(Y);
5557
5558
  return;
5558
5559
  }
5559
- D.length && L.push({
5560
+ $.length && L.push({
5560
5561
  ...Y,
5561
- columns: D
5562
+ columns: $
5562
5563
  }), ie.length && L.push({
5563
5564
  ...Y,
5564
5565
  columns: ie
@@ -5571,8 +5572,8 @@ var ap = { class: "j-table-footer" }, op = {
5571
5572
  let L = 0, Y = 0;
5572
5573
  return H.forEach((te) => {
5573
5574
  if (te.columns && te.columns.length > 0) {
5574
- const D = Et(te.columns);
5575
- L += D.left, Y += D.right;
5575
+ const $ = Et(te.columns);
5576
+ L += $.left, Y += $.right;
5576
5577
  } else te.frozen === "left" ? L++ : te.frozen === "right" && Y++;
5577
5578
  }), {
5578
5579
  left: L,
@@ -5580,20 +5581,20 @@ var ap = { class: "j-table-footer" }, op = {
5580
5581
  };
5581
5582
  }, ht = (H, L, Y, te) => {
5582
5583
  b = 0, x = 0, m = !1;
5583
- const D = {};
5584
+ const $ = {};
5584
5585
  let Z = he(H);
5585
5586
  Z.length === 0 && (Z = [Te()]), Z = lt(Z);
5586
- const ie = [], se = [], le = [];
5587
+ const ie = [], re = [], ue = [];
5587
5588
  Z.forEach((Ie) => {
5588
5589
  const Me = He(Ie);
5589
- Me === "left" ? ie.push(Ie) : Me === "right" ? se.push(Ie) : le.push(Ie);
5590
+ Me === "left" ? ie.push(Ie) : Me === "right" ? re.push(Ie) : ue.push(Ie);
5590
5591
  });
5591
- const de = Et(ie), me = Et(se);
5592
- x += de.left, b += me.right, Z = [
5592
+ const se = Et(ie), me = Et(re);
5593
+ x += se.left, b += me.right, Z = [
5593
5594
  ...ie,
5594
- ...le,
5595
- ...se
5596
- ], L && (Z.unshift(ce(te)), x++), Y.length > 0 && (Z.push(Ce(Y)), b++), m && (D.editCellTrigger = "click", D.keyboardOptions = {
5595
+ ...ue,
5596
+ ...re
5597
+ ], L && (Z.unshift(ce(te)), x++), Y.length > 0 && (Z.push(Ce(Y)), b++), m && ($.editCellTrigger = "click", $.keyboardOptions = {
5597
5598
  copySelected: !0,
5598
5599
  cutSelected: !0,
5599
5600
  pasteValueToCell: !0,
@@ -5604,19 +5605,19 @@ var ap = { class: "j-table-footer" }, op = {
5604
5605
  if (Me?._compType === "checkbox" || Me?.customRender === en || Me?.customRender === Ye || Array.isArray(Me?.columns) && Ee(Me.columns)) return !0;
5605
5606
  return !1;
5606
5607
  };
5607
- return Ee(Z) && (D.defaultRowHeight = "auto", D.defaultHeaderRowHeight = 40), {
5608
+ return Ee(Z) && ($.defaultRowHeight = "auto", $.defaultHeaderRowHeight = 40), {
5608
5609
  columns: Z,
5609
- option: D
5610
+ option: $
5610
5611
  };
5611
5612
  }, In = () => {
5612
5613
  const H = ht(o.columns, o.isShowNumber && !o.isTree, o.actions);
5613
- Dt.value && x++;
5614
+ $t.value && x++;
5614
5615
  const L = {
5615
5616
  records: [],
5616
5617
  columns: H.columns,
5617
5618
  autoFillWidth: !0,
5618
- enableCheckboxCascade: Dt.value,
5619
- enableHeaderCheckboxCascade: Dt.value,
5619
+ enableCheckboxCascade: $t.value,
5620
+ enableHeaderCheckboxCascade: $t.value,
5620
5621
  rightFrozenColCount: b,
5621
5622
  frozenColCount: x,
5622
5623
  tooltip: { isShowOverflowTextTooltip: !0 },
@@ -5629,7 +5630,7 @@ var ap = { class: "j-table-footer" }, op = {
5629
5630
  delay: 0,
5630
5631
  type: "one-by-one",
5631
5632
  direction: "row"
5632
- }), Dt.value && (L.rowSeriesNumber = {
5633
+ }), $t.value && (L.rowSeriesNumber = {
5633
5634
  width: 40,
5634
5635
  minWidth: 40,
5635
5636
  maxWidth: 40,
@@ -5667,34 +5668,34 @@ var ap = { class: "j-table-footer" }, op = {
5667
5668
  const L = In(), Y = Xt();
5668
5669
  H && H.length >= 0 ? L.records = Bn(H) : Y.length > 0 ? L.records = Bn(Y) : (L.records = Bn(o.records), i("update:modelValue", L.records)), g = new Ve.ListTable(p.value, L), g._getAppContext = () => a?.appContext;
5669
5670
  const te = a?.provides;
5670
- g._getProvides = () => te, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (D) => {
5671
- if (D.hierarchyState === Ve.TYPES.HierarchyState.expand && D.originData?.children === !0) {
5672
- g.setLoadingHierarchyState(D.col, D.row);
5671
+ g._getProvides = () => te, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async ($) => {
5672
+ if ($.hierarchyState === Ve.TYPES.HierarchyState.expand && $.originData?.children === !0) {
5673
+ g.setLoadingHierarchyState($.col, $.row);
5673
5674
  try {
5674
- const Z = await o.loadChildren(D.originData);
5675
- o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z, D.col, D.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(Z, D.col, D.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(Z, D.col, D.row);
5675
+ const Z = await o.loadChildren($.originData);
5676
+ o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z, $.col, $.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(Z, $.col, $.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(Z, $.col, $.row);
5676
5677
  } catch (Z) {
5677
- console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState(D.col, D.row);
5678
+ console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState($.col, $.row);
5678
5679
  }
5679
5680
  }
5680
- }), g.on("click_cell", (D) => {
5681
- const { col: Z, cellType: ie, originData: se } = D;
5682
- if (Dt.value) {
5681
+ }), g.on("click_cell", ($) => {
5682
+ const { col: Z, cellType: ie, originData: re } = $, ue = re || { children: g.records };
5683
+ if (ue.__checkState = $.target.attribute.checked, $t.value) {
5683
5684
  if (ie === "checkbox" && Z == 0) {
5684
- const le = pt();
5685
- le.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = le.length, se.__checkState = le.find((de) => Lt(de) === Lt(se)) !== void 0, i("selectionChanged", {
5685
+ const se = pt();
5686
+ se.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = se.length, re.__checkState = $.target.attribute.checked, i("selectionChanged", {
5686
5687
  isMultiple: !0,
5687
- selections: le,
5688
- record: se,
5689
- checked: se.__checkState
5688
+ selections: se,
5689
+ record: re,
5690
+ checked: re.__checkState
5690
5691
  }), g.renderWithRecreateCells();
5691
5692
  }
5692
5693
  } else setTimeout(() => {
5693
- const le = pt();
5694
- w.value = le.length, i("selectionChanged", {
5694
+ const se = pt();
5695
+ w.value = se.length, i("selectionChanged", {
5695
5696
  isMultiple: !1,
5696
- selections: le,
5697
- record: se,
5697
+ selections: se,
5698
+ record: re,
5698
5699
  checked: !0
5699
5700
  });
5700
5701
  }, 0);
@@ -5741,7 +5742,7 @@ var ap = { class: "j-table-footer" }, op = {
5741
5742
  });
5742
5743
  }, pt = () => {
5743
5744
  if (!g) return [];
5744
- if (!Dt.value) {
5745
+ if (!$t.value) {
5745
5746
  const H = g.getSelectedCellInfos();
5746
5747
  if (H && H.length > 0) {
5747
5748
  const L = H[0][0];
@@ -5750,67 +5751,67 @@ var ap = { class: "j-table-footer" }, op = {
5750
5751
  return [];
5751
5752
  }
5752
5753
  if (g.stateManager && g.stateManager.checkedState) {
5753
- const H = [], L = /* @__PURE__ */ new Set(), Y = (se) => {
5754
- if (!se) return;
5755
- const le = Lt(se);
5756
- if (le) {
5757
- if (L.has(le)) return;
5758
- L.add(le);
5759
- const de = {};
5760
- hi(de, se, ["children"]), H.push(de);
5761
- }
5762
- }, te = (se) => {
5763
- const le = se?.children;
5764
- !Array.isArray(le) || le.length === 0 || le.forEach((de) => {
5765
- Y(de), te(de);
5754
+ const H = [], L = /* @__PURE__ */ new Set(), Y = (re) => {
5755
+ if (!re) return;
5756
+ const ue = Nt(re);
5757
+ if (ue) {
5758
+ if (L.has(ue)) return;
5759
+ L.add(ue);
5760
+ const se = {};
5761
+ hi(se, re, ["children"]), H.push(se);
5762
+ } else console.warn("key is empty");
5763
+ }, te = (re) => {
5764
+ const ue = re?.children;
5765
+ !Array.isArray(ue) || ue.length === 0 || ue.forEach((se) => {
5766
+ Y(se), te(se);
5766
5767
  });
5767
- }, D = g.stateManager.checkedState, Z = g.records, ie = (se, le, de) => {
5768
- const me = de[le[se]];
5769
- return se < le.length - 1 && me?.children && me.children.length > 0 ? ie(se + 1, le, me.children || []) : me;
5768
+ }, $ = g.stateManager.checkedState, Z = g.records, ie = (re, ue, se) => {
5769
+ const me = se[ue[re]];
5770
+ return re < ue.length - 1 && me?.children && me.children.length > 0 ? ie(re + 1, ue, me.children || []) : me;
5770
5771
  };
5771
- return D.forEach((se, le) => {
5772
- const de = se?._checkState;
5773
- if (de === "indeterminate" || de === !0) {
5774
- const me = ie(0, (le + "").split(",").map(Number), Z);
5775
- Y(me), de === !0 && te(me);
5772
+ return $.forEach((re, ue) => {
5773
+ const se = re?._checkState;
5774
+ if (se === "indeterminate" || se === !0) {
5775
+ const me = ie(0, (ue + "").split(",").map(Number), Z);
5776
+ Y(me), se === !0 && te(me);
5776
5777
  }
5777
5778
  }), H;
5778
5779
  }
5779
5780
  return [];
5780
- }, Lt = (H) => o.rowKey ? o.rowKey.split(",").map((L) => H[L.trim()]).join("::") : "", Pt = (H) => {
5781
+ }, Nt = (H) => o.rowKey ? o.rowKey.split(",").map((L) => H[L.trim()]).join("::") : "", Pt = (H) => {
5781
5782
  if (g)
5782
- if (Dt.value || g.clearSelected(), o.rowKey) {
5783
- const L = new Set(H.map(Lt)), Y = "__checkState";
5784
- if (!Dt.value) {
5785
- const se = g.records;
5786
- for (let le = 0; le < se.length; le++) {
5787
- const de = se[le];
5788
- if (!L.has(Lt(de))) continue;
5789
- const me = g.getTableIndexByRecordIndex(le);
5783
+ if ($t.value || g.clearSelected(), o.rowKey) {
5784
+ const L = new Set(H.map(Nt)), Y = "__checkState";
5785
+ if (!$t.value) {
5786
+ const re = g.records;
5787
+ for (let ue = 0; ue < re.length; ue++) {
5788
+ const se = re[ue];
5789
+ if (!L.has(Nt(se))) continue;
5790
+ const me = g.getTableIndexByRecordIndex(ue);
5790
5791
  g.selectRow(me);
5791
5792
  break;
5792
5793
  }
5793
5794
  return;
5794
5795
  }
5795
- const te = (se) => {
5796
- se.forEach((le) => {
5797
- if (Array.isArray(le?.children) && le.children.length > 0) {
5798
- te(le.children);
5799
- const de = le.children, me = de.filter((Ie) => Ie?.[Y] === !0), Ee = de.filter((Ie) => Ie?.[Y] === !1);
5800
- me.length == de.length ? le[Y] = !0 : Ee.length == de.length ? le[Y] = !1 : le[Y] = "indeterminate", le[Y] === "indeterminate" && (le.hierarchyState = "expand");
5801
- } else le[Y] = !!L.has(Lt(le));
5796
+ const te = (re) => {
5797
+ re.forEach((ue) => {
5798
+ if (Array.isArray(ue?.children) && ue.children.length > 0) {
5799
+ te(ue.children);
5800
+ const se = ue.children, me = se.filter((Ie) => Ie?.[Y] === !0), Ee = se.filter((Ie) => Ie?.[Y] === !1);
5801
+ me.length == se.length ? ue[Y] = !0 : Ee.length == se.length ? ue[Y] = !1 : ue[Y] = "indeterminate", ue[Y] === "indeterminate" && (ue.hierarchyState = "expand");
5802
+ } else ue[Y] = !!L.has(Nt(ue));
5802
5803
  });
5803
- }, D = g.records;
5804
- o.isTree ? te(D) : D.forEach((se) => {
5805
- se[Y] = L.has(Lt(se));
5804
+ }, $ = g.records;
5805
+ o.isTree ? te($) : $.forEach((re) => {
5806
+ re[Y] = L.has(Nt(re));
5806
5807
  });
5807
5808
  const Z = In();
5808
- Z.records = D, g.updateOption(Z, {
5809
+ Z.records = $, g.updateOption(Z, {
5809
5810
  clearColWidthCache: !1,
5810
5811
  clearRowHeightCache: !1
5811
5812
  }), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
5812
5813
  const ie = g.getAllBodyCells(1);
5813
- for (let se = 0; se < ie.length; se++) ie[se][0].originData[Y] == !0 && g.setCellCheckboxState(0, se + 1, !0);
5814
+ for (let re = 0; re < ie.length; re++) ie[re][0].originData[Y] == !0 && g.setCellCheckboxState(0, re + 1, !0);
5814
5815
  g.renderWithRecreateCells();
5815
5816
  } else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
5816
5817
  }, Gt = (H) => {
@@ -5829,7 +5830,7 @@ var ap = { class: "j-table-footer" }, op = {
5829
5830
  }), o.heightMode === "auto" && (d.value = g.getAllRowsHeight()), w.value = 0;
5830
5831
  }, Ga = () => {
5831
5832
  g.renderWithRecreateCells();
5832
- }, Ja = j(() => o.editConfig.isAddBtn), Do = j(() => o.editConfig.addBtnText || "添加"), Ot = j(() => o.editConfig.isRemoveBtn), Jt = j(() => o.editConfig.readonly), Dt = j(() => o.isMultiple || Ot.value), Xt = () => {
5833
+ }, Ja = j(() => o.editConfig.isAddBtn), Do = j(() => o.editConfig.addBtnText || "添加"), Ot = j(() => o.editConfig.isRemoveBtn), Jt = j(() => o.editConfig.readonly), $t = j(() => o.isMultiple || Ot.value), Xt = () => {
5833
5834
  const H = o.modelValue || [];
5834
5835
  return H.forEach((L) => {
5835
5836
  L._i || (L._i = Wn());
@@ -5870,12 +5871,12 @@ var ap = { class: "j-table-footer" }, op = {
5870
5871
  cancelButtonText: "取消",
5871
5872
  type: "warning"
5872
5873
  }).then(() => {
5873
- const L = g.records, Y = new Set(H.map((D) => D._i)), te = L.filter((D) => !Y.has(D._i));
5874
- Ze(te), i("update:modelValue", te), H.forEach((D) => {
5874
+ const L = g.records, Y = new Set(H.map(($) => $._i)), te = L.filter(($) => !Y.has($._i));
5875
+ Ze(te), i("update:modelValue", te), H.forEach(($) => {
5875
5876
  i("change", {
5876
5877
  id: o.id,
5877
- value: D,
5878
- data: D,
5878
+ value: $,
5879
+ data: $,
5879
5880
  formData: l,
5880
5881
  tableData: te,
5881
5882
  type: "delete"
@@ -5918,7 +5919,7 @@ var ap = { class: "j-table-footer" }, op = {
5918
5919
  setSelection: Pt,
5919
5920
  renderTable: Ga
5920
5921
  }), (H, L) => {
5921
- const Y = B("j-button"), te = B("el-space"), D = B("el-pagination");
5922
+ const Y = B("j-button"), te = B("el-space"), $ = B("el-pagination");
5922
5923
  return _(), O("div", {
5923
5924
  class: We(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
5924
5925
  style: Pe(f.value)
@@ -5951,7 +5952,7 @@ var ap = { class: "j-table-footer" }, op = {
5951
5952
  _: 1
5952
5953
  }),
5953
5954
  L[2] || (L[2] = z("div", null, null, -1)),
5954
- e.isPage ? (_(), I(D, {
5955
+ e.isPage ? (_(), I($, {
5955
5956
  key: 0,
5956
5957
  "current-page": xe.value,
5957
5958
  "onUpdate:currentPage": L[0] || (L[0] = (Z) => xe.value = Z),
@@ -5977,8 +5978,8 @@ var ap = { class: "j-table-footer" }, op = {
5977
5978
  key: 0,
5978
5979
  class: "j-table-dropdown",
5979
5980
  style: Pe(C.value),
5980
- onMouseenter: ue,
5981
- onMouseleave: $
5981
+ onMouseenter: de,
5982
+ onMouseleave: D
5982
5983
  }, [(_(!0), O(be, null, Ae(E.value, (Z) => (_(), O("div", {
5983
5984
  key: Z.id,
5984
5985
  class: "j-table-dropdown-item",
@@ -6169,9 +6170,9 @@ var ap = { class: "j-table-footer" }, op = {
6169
6170
  }, J = j(() => a.steps.map((ne) => ({
6170
6171
  title: ne,
6171
6172
  disabled: !0
6172
- }))), ue = function(ne) {
6173
- a.autoHeight || (p.pageX = ne.pageX, p.pageY = ne.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = $, document.onmousemove = ee));
6174
- }, $ = () => {
6173
+ }))), de = function(ne) {
6174
+ a.autoHeight || (p.pageX = ne.pageX, p.pageY = ne.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = D, document.onmousemove = ee));
6175
+ }, D = () => {
6175
6176
  p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
6176
6177
  }, ee = (ne) => {
6177
6178
  if (p.isMove) {
@@ -6190,9 +6191,9 @@ var ap = { class: "j-table-footer" }, op = {
6190
6191
  return;
6191
6192
  }
6192
6193
  v.value.onmousedown = (ke) => {
6193
- const { clientX: $e } = ke, { clientY: Ye } = ke, $t = p.left + R.value, Nt = p.top + y.value;
6194
- p._left = p.left, p._top = p.top, m.value || (m.value = ut), x.value || (x.value = Oe), $e > $t + 10 && $e < $t + Oe - 10 && Ye > Nt + 5 && Ye < Nt + 47 || (typeof document < "u" && (document.onmousemove = function(it) {
6195
- it.preventDefault(), $e > $t && $e < $t + 10 && ($e > it.clientX && (x.value = Oe + ($e - it.clientX), p.left = p._left - ($e - it.clientX)), $e < it.clientX && x.value > a.minWidth && (x.value = Oe - (it.clientX - $e), p.left = p._left + it.clientX - $e)), $e > $t + Oe - 10 && $e < $t + Oe && ($e > it.clientX && x.value > a.minWidth && (x.value = Oe - ($e - it.clientX)), $e < it.clientX && typeof document < "u" && document.body && R.value + p.left + x.value < document.body.clientWidth && (x.value = Oe + (it.clientX - $e))), Ye > Nt && Ye < Nt + 5 && (Ye > it.clientY && (m.value = ut + Ye - it.clientY, p.top = p._top - (Ye - it.clientY)), Ye < it.clientY && m.value > a.minHeight && (m.value = ut - (it.clientY - Ye), p.top = p._top + it.clientY - Ye)), oe + Ye > Nt + ut + 38 && oe + Ye < Nt + ut + 48 && (Ye > it.clientY && m.value > a.minHeight && (m.value = ut - (Ye - it.clientY)), Ye < it.clientY && typeof window < "u" && y.value + p.top + m.value + 48 < window.innerHeight && (m.value = ut + it.clientY - Ye));
6194
+ const { clientX: $e } = ke, { clientY: Ye } = ke, zt = p.left + R.value, Vt = p.top + y.value;
6195
+ p._left = p.left, p._top = p.top, m.value || (m.value = ut), x.value || (x.value = Oe), $e > zt + 10 && $e < zt + Oe - 10 && Ye > Vt + 5 && Ye < Vt + 47 || (typeof document < "u" && (document.onmousemove = function(it) {
6196
+ it.preventDefault(), $e > zt && $e < zt + 10 && ($e > it.clientX && (x.value = Oe + ($e - it.clientX), p.left = p._left - ($e - it.clientX)), $e < it.clientX && x.value > a.minWidth && (x.value = Oe - (it.clientX - $e), p.left = p._left + it.clientX - $e)), $e > zt + Oe - 10 && $e < zt + Oe && ($e > it.clientX && x.value > a.minWidth && (x.value = Oe - ($e - it.clientX)), $e < it.clientX && typeof document < "u" && document.body && R.value + p.left + x.value < document.body.clientWidth && (x.value = Oe + (it.clientX - $e))), Ye > Vt && Ye < Vt + 5 && (Ye > it.clientY && (m.value = ut + Ye - it.clientY, p.top = p._top - (Ye - it.clientY)), Ye < it.clientY && m.value > a.minHeight && (m.value = ut - (it.clientY - Ye), p.top = p._top + it.clientY - Ye)), oe + Ye > Vt + ut + 38 && oe + Ye < Vt + ut + 48 && (Ye > it.clientY && m.value > a.minHeight && (m.value = ut - (Ye - it.clientY)), Ye < it.clientY && typeof window < "u" && y.value + p.top + m.value + 48 < window.innerHeight && (m.value = ut + it.clientY - Ye));
6196
6197
  }), typeof document < "u" && (document.onmouseup = function() {
6197
6198
  typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
6198
6199
  }));
@@ -6227,7 +6228,7 @@ var ap = { class: "j-table-footer" }, op = {
6227
6228
  }, {
6228
6229
  default: N(() => [z("div", {
6229
6230
  class: "j-dialog-header",
6230
- onMousedown: ue
6231
+ onMousedown: de
6231
6232
  }, [z("div", {
6232
6233
  class: "j-dialog-header-left",
6233
6234
  title: X(i)(e.title || ""),
@@ -6450,10 +6451,10 @@ var ap = { class: "j-table-footer" }, op = {
6450
6451
  showLoading: m,
6451
6452
  hideLoading: w
6452
6453
  }), (A, U) => {
6453
- const V = B("el-step"), W = B("el-steps"), T = B("j-button"), S = B("el-space"), F = B("el-divider"), J = B("el-dialog"), ue = ki("loading");
6454
+ const V = B("el-step"), W = B("el-steps"), T = B("j-button"), S = B("el-space"), F = B("el-divider"), J = B("el-dialog"), de = ki("loading");
6454
6455
  return _(), I(J, {
6455
6456
  modelValue: r.value,
6456
- "onUpdate:modelValue": U[0] || (U[0] = ($) => r.value = $),
6457
+ "onUpdate:modelValue": U[0] || (U[0] = (D) => r.value = D),
6457
6458
  class: "j-dialog-full",
6458
6459
  width: "100%",
6459
6460
  "append-to-body": !0,
@@ -6486,9 +6487,9 @@ var ap = { class: "j-table-footer" }, op = {
6486
6487
  space: 160,
6487
6488
  "finish-status": "success"
6488
6489
  }, {
6489
- default: N(() => [(_(!0), O(be, null, Ae(E.value, ($, ee) => (_(), I(V, {
6490
+ default: N(() => [(_(!0), O(be, null, Ae(E.value, (D, ee) => (_(), I(V, {
6490
6491
  key: ee,
6491
- title: X(l)($.title)
6492
+ title: X(l)(D.title)
6492
6493
  }, null, 8, ["title"]))), 128))]),
6493
6494
  _: 1
6494
6495
  }, 8, ["active"])) : G("", !0)], 4),
@@ -6515,12 +6516,12 @@ var ap = { class: "j-table-footer" }, op = {
6515
6516
  "loading",
6516
6517
  "label"
6517
6518
  ])) : G("", !0),
6518
- (_(!0), O(be, null, Ae(e.buttons, ($) => (_(), O(be, { key: $.id }, [$.config?.display !== !1 ? (_(), I(T, Ne({
6519
+ (_(!0), O(be, null, Ae(e.buttons, (D) => (_(), O(be, { key: D.id }, [D.config?.display !== !1 ? (_(), I(T, Ne({
6519
6520
  key: 0,
6520
6521
  ref_for: !0
6521
- }, $.config, {
6522
- label: $.label,
6523
- onClick: (ee) => M($)
6522
+ }, D.config, {
6523
+ label: D.label,
6524
+ onClick: (ee) => M(D)
6524
6525
  }), null, 16, ["label", "onClick"])) : G("", !0)], 64))), 128)),
6525
6526
  e.hasSaveBtn ? (_(), I(T, {
6526
6527
  key: 2,
@@ -6547,7 +6548,7 @@ var ap = { class: "j-table-footer" }, op = {
6547
6548
  ]),
6548
6549
  _: 1
6549
6550
  })])
6550
- ]), z("div", Sp, [Ke(A.$slots, "default")])], 8, yp)), [[ue, s.value]])]),
6551
+ ]), z("div", Sp, [Ke(A.$slots, "default")])], 8, yp)), [[de, s.value]])]),
6551
6552
  _: 3
6552
6553
  }, 8, ["modelValue", "destroy-on-close"]);
6553
6554
  };
@@ -6712,10 +6713,10 @@ var ap = { class: "j-table-footer" }, op = {
6712
6713
  showLoading: u,
6713
6714
  hideLoading: f
6714
6715
  }), (A, U) => {
6715
- const V = B("el-input"), W = B("j-button"), T = B("el-space"), S = B("el-step"), F = B("el-steps"), J = B("el-drawer"), ue = ki("loading");
6716
+ const V = B("el-input"), W = B("j-button"), T = B("el-space"), S = B("el-step"), F = B("el-steps"), J = B("el-drawer"), de = ki("loading");
6716
6717
  return _(), I(J, {
6717
6718
  modelValue: c.value,
6718
- "onUpdate:modelValue": U[0] || (U[0] = ($) => c.value = $),
6719
+ "onUpdate:modelValue": U[0] || (U[0] = (D) => c.value = D),
6719
6720
  class: "j-drawer",
6720
6721
  "append-to-body": !0,
6721
6722
  direction: e.direction,
@@ -6768,9 +6769,9 @@ var ap = { class: "j-table-footer" }, op = {
6768
6769
  label: X(o)("取消"),
6769
6770
  onClick: p
6770
6771
  }, null, 8, ["label"])) : G("", !0),
6771
- (_(!0), O(be, null, Ae(e.buttons, ($) => (_(), I(W, Ne({ key: $.id }, { ref_for: !0 }, $.config, {
6772
- label: $.label,
6773
- onClick: (ee) => g($)
6772
+ (_(!0), O(be, null, Ae(e.buttons, (D) => (_(), I(W, Ne({ key: D.id }, { ref_for: !0 }, D.config, {
6773
+ label: D.label,
6774
+ onClick: (ee) => g(D)
6774
6775
  }), null, 16, ["label", "onClick"]))), 128)),
6775
6776
  e.hasSaveBtn ? (_(), I(W, {
6776
6777
  key: 3,
@@ -6798,13 +6799,13 @@ var ap = { class: "j-table-footer" }, op = {
6798
6799
  space: 160,
6799
6800
  "finish-status": "success"
6800
6801
  }, {
6801
- default: N(() => [(_(!0), O(be, null, Ae(M.value, ($, ee) => (_(), I(S, {
6802
+ default: N(() => [(_(!0), O(be, null, Ae(M.value, (D, ee) => (_(), I(S, {
6802
6803
  key: ee,
6803
- title: X(o)($.title)
6804
+ title: X(o)(D.title)
6804
6805
  }, null, 8, ["title"]))), 128))]),
6805
6806
  _: 1
6806
6807
  }, 8, ["active"])], 4)])) : G("", !0)
6807
- ], 10, Tp)), [[ue, l.value]])]),
6808
+ ], 10, Tp)), [[de, l.value]])]),
6808
6809
  _: 3
6809
6810
  }, 8, [
6810
6811
  "modelValue",
@@ -7720,7 +7721,7 @@ var ap = { class: "j-table-footer" }, op = {
7720
7721
  });
7721
7722
  }, J = async (oe) => {
7722
7723
  await S(oe) && F(oe);
7723
- }, ue = P(!1), $ = P(""), ee = P(""), ge = P(!1), Se = P(!1);
7724
+ }, de = P(!1), D = P(""), ee = P(""), ge = P(!1), Se = P(!1);
7724
7725
  let ne = null;
7725
7726
  const Ce = P(Yo(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ze = (oe) => {
7726
7727
  if (oe.isPreview === !1 && !n.isUploadImg) {
@@ -7728,14 +7729,14 @@ var ap = { class: "j-table-footer" }, op = {
7728
7729
  return;
7729
7730
  }
7730
7731
  const ke = oe.name.split(".")[oe.name.split(".").length - 1];
7731
- switch (ne = oe, ue.value = !1, $.value = oe.name, ke.toLowerCase()) {
7732
+ switch (ne = oe, de.value = !1, D.value = oe.name, ke.toLowerCase()) {
7732
7733
  case "jpg":
7733
7734
  case "gif":
7734
7735
  case "png":
7735
7736
  case "bmp":
7736
7737
  case "jpeg":
7737
7738
  case "svg":
7738
- ue.value = !0, ee.value = oe.url, Se.value = !1, ge.value = !0;
7739
+ de.value = !0, ee.value = oe.url, Se.value = !1, ge.value = !0;
7739
7740
  break;
7740
7741
  default:
7741
7742
  if (n.isNotApi) {
@@ -7766,9 +7767,9 @@ var ap = { class: "j-table-footer" }, op = {
7766
7767
  return o && o(`当前限制选择${n.limit}个文件`), !1;
7767
7768
  };
7768
7769
  return (oe, ke) => {
7769
- const $e = B("j-icon"), Ye = B("j-button"), $t = B("el-popover"), Nt = B("el-upload"), it = B("el-text"), aa = B("j-dialog-full"), Bt = ki("loading");
7770
+ const $e = B("j-icon"), Ye = B("j-button"), zt = B("el-popover"), Vt = B("el-upload"), it = B("el-text"), aa = B("j-dialog-full"), Bt = ki("loading");
7770
7771
  return _(), O("div", ig, [
7771
- K(Nt, {
7772
+ K(Vt, {
7772
7773
  action: "",
7773
7774
  drag: e.drag,
7774
7775
  disabled: e.readonly,
@@ -7785,7 +7786,7 @@ var ap = { class: "j-table-footer" }, op = {
7785
7786
  "on-preview": ze,
7786
7787
  "on-exceed": ut
7787
7788
  }, {
7788
- default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", lg, [K($e, { icon: "mdi:add" }), z("div", rg, we(X(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !ge.value ? (_(), I($t, {
7789
+ default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", lg, [K($e, { icon: "mdi:add" }), z("div", rg, we(X(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !ge.value ? (_(), I(zt, {
7789
7790
  key: 1,
7790
7791
  placement: "bottom",
7791
7792
  title: e.isUploadImg ? X(r)("图片列表") : X(r)("文件列表")
@@ -7857,12 +7858,12 @@ var ap = { class: "j-table-footer" }, op = {
7857
7858
  visible: ge.value,
7858
7859
  "onUpdate:visible": ke[1] || (ke[1] = (en) => ge.value = en),
7859
7860
  "btn-text": "下载",
7860
- title: `${X(r)("文件预览")}【${$.value}】`,
7861
+ title: `${X(r)("文件预览")}【${D.value}】`,
7861
7862
  "destroy-on-close": !0,
7862
7863
  "has-btns": !!X(s),
7863
7864
  onOk: et
7864
7865
  }, {
7865
- default: N(() => [ue.value && ee.value ? (_(), O("div", cg, [z("img", {
7866
+ default: N(() => [de.value && ee.value ? (_(), O("div", cg, [z("img", {
7866
7867
  width: "100%",
7867
7868
  style: { "max-width": "1024px" },
7868
7869
  src: ee.value,
@@ -10998,11 +10999,11 @@ var ap = { class: "j-table-footer" }, op = {
10998
10999
  const pt = vt.get(ve.id);
10999
11000
  if (pt) {
11000
11001
  if (ve.display) {
11001
- let Lt = pt;
11002
- pt.children && pt.children.length > 0 && (Lt = {
11002
+ let Nt = pt;
11003
+ pt.children && pt.children.length > 0 && (Nt = {
11003
11004
  ...pt,
11004
11005
  children: R(pt.children, ve.children)
11005
- }), jt.push(Lt);
11006
+ }), jt.push(Nt);
11006
11007
  }
11007
11008
  vt.delete(ve.id);
11008
11009
  }
@@ -11017,7 +11018,7 @@ var ap = { class: "j-table-footer" }, op = {
11017
11018
  }), jt;
11018
11019
  }, y = j(() => R(i.columns, ut.value)), k = j(() => Cf(i.columns, (xe) => xe.config.label)), C = P(""), E = j(() => k.value.some((xe) => xe.config?.filter?.isSearchKeyword)), M = P(), A = P(!0), U = P([]), V = j(() => A.value ? "搜索全部" : `搜索范围:${k.value.filter((xe) => U.value.includes(xe.id)).map((xe) => xe.config?.label).join("、")}`), W = () => {
11019
11020
  M.value.init();
11020
- }, T = P(), S = P(!1), F = P(!1), J = P(!1), ue = P([]), $ = P("and"), ee = P(), ge = P(!1), Se = P([]), ne = () => {
11021
+ }, T = P(), S = P(!1), F = P(!1), J = P(!1), de = P([]), D = P("and"), ee = P(), ge = P(!1), Se = P([]), ne = () => {
11021
11022
  ee.value.init(Se.value);
11022
11023
  }, Ce = (xe) => {
11023
11024
  Se.value = xe, ge.value = !1, He();
@@ -11027,9 +11028,9 @@ var ap = { class: "j-table-footer" }, op = {
11027
11028
  Oe.value?.init();
11028
11029
  }, $e = (xe) => {
11029
11030
  ut.value = xe, et.value = !1;
11030
- }, Ye = P(!1), $t = () => {
11031
+ }, Ye = P(!1), zt = () => {
11031
11032
  Ye.value = !Ye.value;
11032
- }, Nt = () => {
11033
+ }, Vt = () => {
11033
11034
  p.value = [], r.value && (r.value.setSelection?.([]), g.value && (g.value = !1, r.value.setRecords(s)));
11034
11035
  }, it = () => {
11035
11036
  g.value = !g.value, g.value ? r.value?.setRecords(p.value) : (console.log(s, "tableData"), r.value?.setRecords(s)), r.value?.setSelection?.(p.value);
@@ -11051,7 +11052,7 @@ var ap = { class: "j-table-footer" }, op = {
11051
11052
  id: "clear_selection",
11052
11053
  label: "清空选中",
11053
11054
  config: { type: "text" },
11054
- click: Nt
11055
+ click: Vt
11055
11056
  }
11056
11057
  ], Re = i.batchButtons.map((vt) => ({
11057
11058
  ...vt,
@@ -11087,17 +11088,17 @@ var ap = { class: "j-table-footer" }, op = {
11087
11088
  if (Re <= 0) return xe;
11088
11089
  const vt = Math.max(0, Re - 4), jt = (Ot, Jt) => Ot.groupId || `__auto_${Jt}`, ve = (Ot) => {
11089
11090
  if (Ot.config?.notLabel === !0 || !Ot.label) return 28;
11090
- const Jt = 24, Dt = fn(Ot.label || "") || 0, Xt = Ot.config?.icon ? 18 : 0;
11091
- return Math.ceil(Dt + Jt + Xt + 2);
11091
+ const Jt = 24, $t = fn(Ot.label || "") || 0, Xt = Ot.config?.icon ? 18 : 0;
11092
+ return Math.ceil($t + Jt + Xt + 2);
11092
11093
  };
11093
11094
  if (((Ot) => {
11094
- let Jt = 0, Dt = null;
11095
+ let Jt = 0, $t = null;
11095
11096
  return Ot.forEach((Xt, Xa) => {
11096
11097
  const Fo = jt(Xt, Xa);
11097
- Dt !== null && (Jt += Fo === Dt ? -1 : 8), Jt += ve(Xt), Dt = Fo;
11098
+ $t !== null && (Jt += Fo === $t ? -1 : 8), Jt += ve(Xt), $t = Fo;
11098
11099
  }), Jt;
11099
11100
  })(xe) <= vt) return xe;
11100
- const Lt = {
11101
+ const Nt = {
11101
11102
  id: "__table_panel_more__",
11102
11103
  label: "",
11103
11104
  config: {
@@ -11108,18 +11109,18 @@ var ap = { class: "j-table-footer" }, op = {
11108
11109
  }, Pt = 28, Gt = [];
11109
11110
  let Ze = 0, Ga = null;
11110
11111
  for (let Ot = 0; Ot < xe.length; Ot++) {
11111
- const Jt = xe[Ot], Dt = jt(Jt, Ot);
11112
+ const Jt = xe[Ot], $t = jt(Jt, Ot);
11112
11113
  let Xt = Ze;
11113
- Ga !== null && (Xt += Dt === Ga ? -1 : 8), Xt += ve(Jt);
11114
+ Ga !== null && (Xt += $t === Ga ? -1 : 8), Xt += ve(Jt);
11114
11115
  const Xa = xe.length - (Ot + 1) > 0 ? (Xt > 0 ? 8 : 0) + Pt : 0;
11115
11116
  if (Xt + Xa <= vt)
11116
- Gt.push(Jt), Ze = Xt, Ga = Dt;
11117
+ Gt.push(Jt), Ze = Xt, Ga = $t;
11117
11118
  else break;
11118
11119
  }
11119
11120
  const Ja = xe.slice(Gt.length);
11120
11121
  if (Ja.length === 0) return xe;
11121
11122
  const Do = {
11122
- ...Lt,
11123
+ ...Nt,
11123
11124
  children: Ja
11124
11125
  };
11125
11126
  return Gt.length === 0 ? [Do] : [...Gt, Do];
@@ -11131,7 +11132,7 @@ var ap = { class: "j-table-footer" }, op = {
11131
11132
  xe && (ce = xe), ce && (Re.query = ce);
11132
11133
  try {
11133
11134
  const vt = {};
11134
- vt.rel = $.value, vt.cond = (T.value?.getSearchFields?.() || ue.value).filter((ve) => ve.value !== void 0 && ve.value !== null && ve.value !== "" || ["empty", "not_empty"].includes(ve.method)).map((ve) => ({
11135
+ vt.rel = D.value, vt.cond = (T.value?.getSearchFields?.() || de.value).filter((ve) => ve.value !== void 0 && ve.value !== null && ve.value !== "" || ["empty", "not_empty"].includes(ve.method)).map((ve) => ({
11135
11136
  field: ve.field,
11136
11137
  method: ve.method,
11137
11138
  value: ve.value,
@@ -11183,11 +11184,11 @@ var ap = { class: "j-table-footer" }, op = {
11183
11184
  if (v.value) ve = xe;
11184
11185
  else if (!i.rowKey) ve = xe;
11185
11186
  else {
11186
- const pt = new Map(xe.map((Pt) => [w(Pt), Pt])), Lt = new Map(p.value.map((Pt) => [w(Pt), Pt]));
11187
+ const pt = new Map(xe.map((Pt) => [w(Pt), Pt])), Nt = new Map(p.value.map((Pt) => [w(Pt), Pt]));
11187
11188
  s.forEach((Pt) => {
11188
11189
  const Gt = w(Pt);
11189
- pt.has(Gt) ? Lt.set(Gt, pt.get(Gt)) : Lt.delete(Gt);
11190
- }), ve = Array.from(Lt.values());
11190
+ pt.has(Gt) ? Nt.set(Gt, pt.get(Gt)) : Nt.delete(Gt);
11191
+ }), ve = Array.from(Nt.values());
11191
11192
  }
11192
11193
  p.value = ve, l("select", {
11193
11194
  selections: ve,
@@ -11206,11 +11207,11 @@ var ap = { class: "j-table-footer" }, op = {
11206
11207
  getSelection: Ka,
11207
11208
  setSelection: Wi,
11208
11209
  clearSelection: () => {
11209
- Nt();
11210
+ Vt();
11210
11211
  },
11211
11212
  getTableRef: $o
11212
11213
  }), (xe, Re) => {
11213
- const vt = B("j-buttons"), jt = B("j-icon"), ve = B("el-popover"), pt = B("el-tooltip"), Lt = B("el-input"), Pt = B("j-button"), Gt = B("j-table");
11214
+ const vt = B("j-buttons"), jt = B("j-icon"), ve = B("el-popover"), pt = B("el-tooltip"), Nt = B("el-input"), Pt = B("j-button"), Gt = B("j-table");
11214
11215
  return _(), O("div", { class: We(["j-table-panel-wrapper", {
11215
11216
  fullscreen: Ye.value,
11216
11217
  "no-padding": e.noPadding || Ye.value
@@ -11219,7 +11220,7 @@ var ap = { class: "j-table-footer" }, op = {
11219
11220
  ref: en,
11220
11221
  class: "j-table-panel-top-left"
11221
11222
  }, [K(vt, { list: ae.value }, null, 8, ["list"])], 512), z("div", jy, [
11222
- E.value && !x.value ? (_(), O("div", Py, [K(Lt, {
11223
+ E.value && !x.value ? (_(), O("div", Py, [K(Nt, {
11223
11224
  modelValue: C.value,
11224
11225
  "onUpdate:modelValue": Re[2] || (Re[2] = (Ze) => C.value = Ze),
11225
11226
  modelModifiers: { trim: !0 },
@@ -11288,9 +11289,9 @@ var ap = { class: "j-table-footer" }, op = {
11288
11289
  ref: T,
11289
11290
  "is-pin": S.value,
11290
11291
  "onUpdate:isPin": Re[3] || (Re[3] = (Ze) => S.value = Ze),
11291
- relation: $.value,
11292
- "onUpdate:relation": Re[4] || (Re[4] = (Ze) => $.value = Ze),
11293
- "search-field-list": ue.value,
11292
+ relation: D.value,
11293
+ "onUpdate:relation": Re[4] || (Re[4] = (Ze) => D.value = Ze),
11294
+ "search-field-list": de.value,
11294
11295
  columns: k.value,
11295
11296
  onFilter: He,
11296
11297
  onClose: Re[5] || (Re[5] = (Ze) => F.value = !1)
@@ -11382,7 +11383,7 @@ var ap = { class: "j-table-footer" }, op = {
11382
11383
  default: N(() => [K(Pt, {
11383
11384
  type: "text",
11384
11385
  icon: Ye.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
11385
- onClick: $t
11386
+ onClick: zt
11386
11387
  }, null, 8, ["icon"])]),
11387
11388
  _: 1
11388
11389
  }, 8, ["content"])) : G("", !0)
@@ -11449,9 +11450,9 @@ var ap = { class: "j-table-footer" }, op = {
11449
11450
  ref: T,
11450
11451
  "is-pin": S.value,
11451
11452
  "onUpdate:isPin": Re[10] || (Re[10] = (Ze) => S.value = Ze),
11452
- relation: $.value,
11453
- "onUpdate:relation": Re[11] || (Re[11] = (Ze) => $.value = Ze),
11454
- "search-field-list": ue.value,
11453
+ relation: D.value,
11454
+ "onUpdate:relation": Re[11] || (Re[11] = (Ze) => D.value = Ze),
11455
+ "search-field-list": de.value,
11455
11456
  columns: k.value,
11456
11457
  onFilter: He
11457
11458
  }, null, 8, [
@@ -11709,7 +11710,7 @@ var ap = { class: "j-table-footer" }, op = {
11709
11710
  setCheck: m,
11710
11711
  getCheck: w
11711
11712
  }), (W, T) => {
11712
- const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), ue = B("el-dropdown-menu"), $ = B("el-dropdown"), ee = B("el-tree"), ge = B("el-empty"), Se = ki("loading");
11713
+ const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), de = B("el-dropdown-menu"), D = B("el-dropdown"), ee = B("el-tree"), ge = B("el-empty"), Se = ki("loading");
11713
11714
  return Tn((_(), O("div", {
11714
11715
  class: We([
11715
11716
  "j-block",
@@ -11756,12 +11757,12 @@ var ap = { class: "j-table-footer" }, op = {
11756
11757
  color: ne.data[e.iconColorKey] || e.defaultIconColor || ""
11757
11758
  }, null, 8, ["icon", "color"])) : G("", !0),
11758
11759
  z("div", Ky, we(ne.label), 1),
11759
- C(ne.data).length ? (_(), O("div", Gy, [(_(!0), O(be, null, Ae(C(ne.data), (Ce, ze) => (_(), I($, {
11760
+ C(ne.data).length ? (_(), O("div", Gy, [(_(!0), O(be, null, Ae(C(ne.data), (Ce, ze) => (_(), I(D, {
11760
11761
  key: ze,
11761
11762
  trigger: "click",
11762
11763
  onVisibleChange: (Oe) => U(Oe, ne.data)
11763
11764
  }, {
11764
- dropdown: N(() => [K(ue, null, {
11765
+ dropdown: N(() => [K(de, null, {
11765
11766
  default: N(() => [(_(!0), O(be, null, Ae(Ce.children, (Oe, et) => (_(), I(J, {
11766
11767
  key: et,
11767
11768
  disabled: Oe.disabled,
@@ -12011,17 +12012,17 @@ var rm = /* @__PURE__ */ fe({
12011
12012
  "j-input-cards"
12012
12013
  ].includes(E[q]?.type || "");
12013
12014
  let J;
12014
- const ue = (q, he) => {
12015
+ const de = (q, he) => {
12015
12016
  Object.keys(q).forEach((Q) => {
12016
12017
  const ae = q[Q];
12017
- he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !ul(ae) && ue(ae, Q), y[Q] = ae;
12018
+ he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !ul(ae) && de(ae, Q), y[Q] = ae;
12018
12019
  });
12019
- }, $ = (q, he) => {
12020
+ }, D = (q, he) => {
12020
12021
  let Q = q.id;
12021
12022
  return Q || (q.config?.table && q.config?.field ? Q = `${q.config.table}.${q.config.field}` : q.config?.table ? Q = q.config?.table : q.config?.field && (Q = q.config?.field), he && F(he) && (Q = `${he}.${Q}`)), Q || Bl("j");
12022
12023
  }, ee = (q, he, Q, ae = "") => {
12023
12024
  q.forEach((ce) => {
12024
- ce.id = $(ce, ae);
12025
+ ce.id = D(ce, ae);
12025
12026
  const Te = {
12026
12027
  id: ce.id,
12027
12028
  slot: ce.slot,
@@ -12054,7 +12055,7 @@ var rm = /* @__PURE__ */ fe({
12054
12055
  }, ge = async (q, he) => {
12055
12056
  v.value = !1;
12056
12057
  const Q = !!he;
12057
- C.splice(0, C.length), A = {}, U = {}, V = [], J = he, fo(y), fo(E), M.value = {}, Q && ue(he, ""), ee(q, C, Q), W = ln(y), Mt(() => {
12058
+ C.splice(0, C.length), A = {}, U = {}, V = [], J = he, fo(y), fo(E), M.value = {}, Q && de(he, ""), ee(q, C, Q), W = ln(y), Mt(() => {
12058
12059
  v.value = !0, Mt(() => {
12059
12060
  Bt(a.config?.codeInit, {});
12060
12061
  });
@@ -12177,7 +12178,7 @@ var rm = /* @__PURE__ */ fe({
12177
12178
  const ce = $e(q);
12178
12179
  ce && (ce.config.parentTableId ? y[ce.config.parentTableId][he][q] = Q : y[q] = Q);
12179
12180
  }
12180
- }, $t = ({ id: q, i: he }) => {
12181
+ }, zt = ({ id: q, i: he }) => {
12181
12182
  const Q = $e(q);
12182
12183
  if (Q) {
12183
12184
  if (Q.config.parentTableId) {
@@ -12197,8 +12198,8 @@ var rm = /* @__PURE__ */ fe({
12197
12198
  return y[Q.id || ""];
12198
12199
  }
12199
12200
  if (y[q]) return y[q];
12200
- }, Nt = async ({ id: q, i: he }) => {
12201
- const Q = $t({
12201
+ }, Vt = async ({ id: q, i: he }) => {
12202
+ const Q = zt({
12202
12203
  id: q,
12203
12204
  i: he
12204
12205
  }), ae = $e(q);
@@ -12230,7 +12231,7 @@ var rm = /* @__PURE__ */ fe({
12230
12231
  });
12231
12232
  }
12232
12233
  return Q;
12233
- }, it = async (q, he) => p?.loadViewDataList ? await p?.loadViewDataList(q, he, !1) : [], aa = (q) => (q.set = Ye, q.get = $t, q.setFormData = ne, q.getFormData = ze, q.getLabel = Nt, q.getViewData = it, q.getDateNow = (he) => fc(/* @__PURE__ */ new Date(), he || "YYYY-MM-DD HH:mm:ss"), q.httpGet = r || (() => {
12234
+ }, it = async (q, he) => p?.loadViewDataList ? await p?.loadViewDataList(q, he, !1) : [], aa = (q) => (q.set = Ye, q.get = zt, q.setFormData = ne, q.getFormData = ze, q.getLabel = Vt, q.getViewData = it, q.getDateNow = (he) => fc(/* @__PURE__ */ new Date(), he || "YYYY-MM-DD HH:mm:ss"), q.httpGet = r || (() => {
12234
12235
  console.log("当前状态不支持");
12235
12236
  }), q.httpPost = s || (() => {
12236
12237
  console.log("当前状态不支持");
@@ -12277,15 +12278,15 @@ var rm = /* @__PURE__ */ fe({
12277
12278
  span: x,
12278
12279
  labelWidth: m,
12279
12280
  labelPosition: w,
12280
- getValue: $t,
12281
+ getValue: zt,
12281
12282
  formChange: T
12282
12283
  }), vc({ contextType: "form" }), t({
12283
12284
  init: ge,
12284
12285
  reset: ke,
12285
12286
  validate: oe,
12286
12287
  setValue: Ye,
12287
- getValue: $t,
12288
- getLabel: Nt,
12288
+ getValue: zt,
12289
+ getLabel: Vt,
12289
12290
  setFormData: ne,
12290
12291
  getFormData: ze,
12291
12292
  setCompConfig: en
@@ -13626,12 +13627,12 @@ function Mc(e, t, n) {
13626
13627
  A && Fn.unbind(C, E, A.$delegate);
13627
13628
  }
13628
13629
  function p(C) {
13629
- re(s, function(E, M) {
13630
+ le(s, function(E, M) {
13630
13631
  d(C, M, E);
13631
13632
  });
13632
13633
  }
13633
13634
  function g(C) {
13634
- re(s, function(E, M) {
13635
+ le(s, function(E, M) {
13635
13636
  h(C, M, E);
13636
13637
  });
13637
13638
  }
@@ -13679,7 +13680,7 @@ function Mc(e, t, n) {
13679
13680
  Ue(C, E);
13680
13681
  }
13681
13682
  this.removeHits = function(C) {
13682
- re(ll(".djs-hit", C), Zt);
13683
+ le(ll(".djs-hit", C), Zt);
13683
13684
  }, this.createDefaultHit = function(C, E) {
13684
13685
  var M = C.waypoints, A = C.isFrame, U;
13685
13686
  return M ? this.createWaypointsHit(E, M) : (U = A ? "stroke" : "all", this.createBoxHit(E, U, {
@@ -13747,7 +13748,7 @@ Ba.prototype.select = function(e, t) {
13747
13748
  var o = this._canvas, i = o.getRootElement();
13748
13749
  e = e.filter(function(l) {
13749
13750
  return i === o.findRoot(l);
13750
- }), t ? re(e, function(l) {
13751
+ }), t ? le(e, function(l) {
13751
13752
  n.indexOf(l) === -1 && n.push(l);
13752
13753
  }) : this._selectedElements = n = e.slice(), this._eventBus.fire("selection.changed", {
13753
13754
  oldSelection: a,
@@ -13775,9 +13776,9 @@ function Ac(e, t) {
13775
13776
  n(c, Dr);
13776
13777
  }
13777
13778
  var r = o.oldSelection, s = o.newSelection;
13778
- re(r, function(c) {
13779
+ le(r, function(c) {
13779
13780
  s.indexOf(c) === -1 && i(c);
13780
- }), re(s, function(c) {
13781
+ }), le(s, function(c) {
13781
13782
  r.indexOf(c) === -1 && l(c);
13782
13783
  });
13783
13784
  });
@@ -14104,7 +14105,7 @@ function Nr(e, t, n) {
14104
14105
  return a && e.push(t), a;
14105
14106
  }
14106
14107
  function Wl(e, t, n) {
14107
- n = n || 0, ot(e) || (e = [e]), re(e, function(a, o) {
14108
+ n = n || 0, ot(e) || (e = [e]), le(e, function(a, o) {
14108
14109
  var i = t(a, o, n);
14109
14110
  ot(i) && i.length && Wl(i, t, n + 1);
14110
14111
  });
@@ -14132,7 +14133,7 @@ function Sb(e, t, n) {
14132
14133
  function c(u) {
14133
14134
  if (i[u.id] = u, u.waypoints) l[u.id] = o[u.id] = u;
14134
14135
  else
14135
- return a[u.id] = u, re(u.incoming, s), re(u.outgoing, s), u.children;
14136
+ return a[u.id] = u, le(u.incoming, s), le(u.outgoing, s), u.children;
14136
14137
  }
14137
14138
  return Wl(e, c), {
14138
14139
  allShapes: a,
@@ -14145,7 +14146,7 @@ function Sb(e, t, n) {
14145
14146
  function Cn(e, t) {
14146
14147
  t = !!t, ot(e) || (e = [e]);
14147
14148
  var n, a, o, i;
14148
- return re(e, function(l) {
14149
+ return le(e, function(l) {
14149
14150
  var r = l;
14150
14151
  l.waypoints && !t && (r = Cn(l.waypoints, !0));
14151
14152
  var s = r.x, c = r.y, u = r.height || 0, f = r.width || 0;
@@ -14159,7 +14160,7 @@ function Cn(e, t) {
14159
14160
  }
14160
14161
  function kb(e, t) {
14161
14162
  var n = {};
14162
- return re(e, function(a) {
14163
+ return le(e, function(a) {
14163
14164
  var o = a;
14164
14165
  o.waypoints && (o = Cn(o)), !Tt(t.y) && o.x > t.x && (n[a.id] = a), !Tt(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Tt(t.width) && Tt(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Tt(t.width) || !Tt(t.height)) && (n[a.id] = a);
14165
14166
  }), n;
@@ -14286,13 +14287,13 @@ function zc(e, t, n, a, o) {
14286
14287
  elements: c,
14287
14288
  hints: {},
14288
14289
  shape: f
14289
- }, u || {}), re(c, function(h) {
14290
+ }, u || {}), le(c, function(h) {
14290
14291
  Tt(h.x) || (h.x = 0), Tt(h.y) || (h.y = 0);
14291
14292
  });
14292
14293
  var d = Cn(an(c, function(h) {
14293
14294
  return !h.hidden;
14294
14295
  }));
14295
- re(c, function(h) {
14296
+ le(c, function(h) {
14296
14297
  Ut(h) && (h.waypoints = _o(h.waypoints, function(p) {
14297
14298
  return {
14298
14299
  x: p.x - d.x - d.width / 2,
@@ -14743,8 +14744,8 @@ function Vc(e, t, n, a, o, i, l, r, s, c) {
14743
14744
  ]);
14744
14745
  }
14745
14746
  E = C - k;
14746
- var V = _t.cos(k), W = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F, ue = 4 / 3 * a * F, $ = [e, t], ee = [e + J * W, t - ue * V], ge = [r + J * S, s - ue * T], Se = [r, s];
14747
- if (ee[0] = 2 * $[0] - ee[0], ee[1] = 2 * $[1] - ee[1], c) return [
14747
+ var V = _t.cos(k), W = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F, de = 4 / 3 * a * F, D = [e, t], ee = [e + J * W, t - de * V], ge = [r + J * S, s - de * T], Se = [r, s];
14748
+ if (ee[0] = 2 * D[0] - ee[0], ee[1] = 2 * D[1] - ee[1], c) return [
14748
14749
  ee,
14749
14750
  ge,
14750
14751
  Se
@@ -15324,20 +15325,20 @@ function Aa(e, t) {
15324
15325
  }
15325
15326
  }
15326
15327
  var fw = 1e3;
15327
- function Vt(e) {
15328
+ function Ft(e) {
15328
15329
  this._eventBus = e;
15329
15330
  }
15330
- Vt.$inject = ["eventBus"];
15331
+ Ft.$inject = ["eventBus"];
15331
15332
  function hw(e, t) {
15332
15333
  return function(n) {
15333
15334
  return e.call(t || null, n.context, n.command, n);
15334
15335
  };
15335
15336
  }
15336
- Vt.prototype.on = function(e, t, n, a, o, i) {
15337
+ Ft.prototype.on = function(e, t, n, a, o, i) {
15337
15338
  if ((xn(t) || Tt(t)) && (i = o, o = a, a = n, n = t, t = null), xn(n) && (i = o, o = a, a = n, n = fw), on(o) && (i = o, o = !1), !xn(a)) throw new Error("handlerFn must be a function");
15338
15339
  ot(e) || (e = [e]);
15339
15340
  var l = this._eventBus;
15340
- re(e, function(r) {
15341
+ le(e, function(r) {
15341
15342
  var s = [
15342
15343
  "commandStack",
15343
15344
  r,
@@ -15348,15 +15349,15 @@ Vt.prototype.on = function(e, t, n, a, o, i) {
15348
15349
  l.on(s, n, o ? hw(a, i) : a, i);
15349
15350
  });
15350
15351
  };
15351
- Vt.prototype.canExecute = Pn("canExecute");
15352
- Vt.prototype.preExecute = Pn("preExecute");
15353
- Vt.prototype.preExecuted = Pn("preExecuted");
15354
- Vt.prototype.execute = Pn("execute");
15355
- Vt.prototype.executed = Pn("executed");
15356
- Vt.prototype.postExecute = Pn("postExecute");
15357
- Vt.prototype.postExecuted = Pn("postExecuted");
15358
- Vt.prototype.revert = Pn("revert");
15359
- Vt.prototype.reverted = Pn("reverted");
15352
+ Ft.prototype.canExecute = Pn("canExecute");
15353
+ Ft.prototype.preExecute = Pn("preExecute");
15354
+ Ft.prototype.preExecuted = Pn("preExecuted");
15355
+ Ft.prototype.execute = Pn("execute");
15356
+ Ft.prototype.executed = Pn("executed");
15357
+ Ft.prototype.postExecute = Pn("postExecute");
15358
+ Ft.prototype.postExecuted = Pn("postExecuted");
15359
+ Ft.prototype.revert = Pn("revert");
15360
+ Ft.prototype.reverted = Pn("reverted");
15360
15361
  function Pn(e) {
15361
15362
  return function(n, a, o, i, l) {
15362
15363
  (xn(n) || Tt(n)) && (l = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, l);
@@ -15364,24 +15365,24 @@ function Pn(e) {
15364
15365
  }
15365
15366
  var pw = 250, cs = 1400;
15366
15367
  function Xl(e, t, n) {
15367
- Vt.call(this, t);
15368
+ Ft.call(this, t);
15368
15369
  var a = e.get("movePreview", !1);
15369
15370
  t.on("shape.move.start", cs, function(o) {
15370
15371
  var i = o.context, l = i.shapes, r = i.validatedShapes;
15371
15372
  i.shapes = us(l), i.validatedShapes = us(r);
15372
15373
  }), a && t.on("shape.move.start", pw, function(o) {
15373
15374
  var i = o.context, l = i.shapes, r = [];
15374
- re(l, function(s) {
15375
- re(s.labels, function(c) {
15375
+ le(l, function(s) {
15376
+ le(s.labels, function(c) {
15376
15377
  !c.hidden && i.shapes.indexOf(c) === -1 && r.push(c), s.labelTarget && r.push(s);
15377
15378
  });
15378
- }), re(r, function(s) {
15379
+ }), le(r, function(s) {
15379
15380
  a.makeDraggable(i, s, !0);
15380
15381
  });
15381
15382
  }), this.preExecuted("elements.move", cs, function(o) {
15382
15383
  var i = o.context.closure, l = i.enclosedElements, r = [];
15383
- re(l, function(s) {
15384
- re(s.labels, function(c) {
15384
+ le(l, function(s) {
15385
+ le(s.labels, function(c) {
15385
15386
  l[c.id] || r.push(c);
15386
15387
  });
15387
15388
  }), i.addAll(r);
@@ -15398,7 +15399,7 @@ function Xl(e, t, n) {
15398
15399
  r && (Gn(r.labels, l, s), l.labelTarget = r);
15399
15400
  });
15400
15401
  }
15401
- ya(Xl, Vt);
15402
+ ya(Xl, Ft);
15402
15403
  Xl.$inject = [
15403
15404
  "injector",
15404
15405
  "eventBus",
@@ -15639,7 +15640,7 @@ function ji(e, t) {
15639
15640
  ji.$inject = ["modeling", "canvas"];
15640
15641
  ji.prototype.preExecute = function(e) {
15641
15642
  var t = this._modeling, n = e.elements, a = e.alignment;
15642
- re(n, function(o) {
15643
+ le(n, function(o) {
15643
15644
  var i = {
15644
15645
  x: 0,
15645
15646
  y: 0
@@ -15689,13 +15690,13 @@ function Zl(e) {
15689
15690
  Zl.$inject = ["modeling"];
15690
15691
  Zl.prototype.preExecute = function(e) {
15691
15692
  var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, l = this._modeling;
15692
- re(t, function(u) {
15693
+ le(t, function(u) {
15693
15694
  Tt(u.x) || (u.x = 0), Tt(u.y) || (u.y = 0);
15694
15695
  });
15695
15696
  var r = Cn(an(t, function(u) {
15696
15697
  return !u.hidden;
15697
15698
  }));
15698
- re(t, function(u) {
15699
+ le(t, function(u) {
15699
15700
  Ut(u) && (u.waypoints = _o(u.waypoints, function(f) {
15700
15701
  return {
15701
15702
  x: Zo(f.x - r.x - r.width / 2 + o.x),
@@ -15707,7 +15708,7 @@ Zl.prototype.preExecute = function(e) {
15707
15708
  });
15708
15709
  });
15709
15710
  var s = xb(t), c = {};
15710
- re(t, function(u) {
15711
+ le(t, function(u) {
15711
15712
  if (Ut(u)) {
15712
15713
  c[u.id] = Tt(a) ? l.createConnection(c[u.source.id], c[u.target.id], a, u, u.parent || n, i) : l.createConnection(c[u.source.id], c[u.target.id], u, u.parent || n, i);
15713
15714
  return;
@@ -15789,7 +15790,7 @@ function Ql(e, t) {
15789
15790
  Ql.$inject = ["modeling", "elementRegistry"];
15790
15791
  Ql.prototype.postExecute = function(e) {
15791
15792
  var t = this._modeling, n = this._elementRegistry, a = e.elements;
15792
- re(a, function(o) {
15793
+ le(a, function(o) {
15793
15794
  n.get(o.id) && (o.waypoints ? t.removeConnection(o) : t.removeShape(o));
15794
15795
  });
15795
15796
  };
@@ -15842,13 +15843,13 @@ Hi.prototype.preExecute = function(e) {
15842
15843
  x[a] = v - l(b), x[a] && (x[hs[a]] = 0, t.moveElements([b], x, b.parent));
15843
15844
  }
15844
15845
  var u = n[0], f = r(n), d = n[f], h, p, g = 0;
15845
- re(n, function(v, b) {
15846
+ le(n, function(v, b) {
15846
15847
  var x, m, w;
15847
15848
  if (v.elements.length < 2) {
15848
15849
  b && b !== n.length - 1 && (i(v, v.elements[0]), g += s(v.range));
15849
15850
  return;
15850
15851
  }
15851
- x = mo(v.elements, a), m = x[0], b === f && (m = x[r(x)]), w = l(m), v.range = null, re(x, function(R) {
15852
+ x = mo(v.elements, a), m = x[0], b === f && (m = x[r(x)]), w = l(m), v.range = null, le(x, function(R) {
15852
15853
  if (c(w, R), v.range === null) {
15853
15854
  v.range = {
15854
15855
  min: R[a],
@@ -15858,9 +15859,9 @@ Hi.prototype.preExecute = function(e) {
15858
15859
  }
15859
15860
  i(v, R);
15860
15861
  }), b && b !== n.length - 1 && (g += s(v.range));
15861
- }), p = Math.abs(d.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && re(n, function(v, b) {
15862
+ }), p = Math.abs(d.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && le(n, function(v, b) {
15862
15863
  var x = {}, m;
15863
- v === u || v === d || (m = n[b - 1], v.range.max = 0, re(v.elements, function(w, R) {
15864
+ v === u || v === d || (m = n[b - 1], v.range.max = 0, le(v.elements, function(w, R) {
15864
15865
  x[hs[a]] = 0, x[a] = m.range.max - w[a] + h, v.range.min !== w[a] && (x[a] += w[a] - v.range.min), x[a] && t.moveElements([w], x, w.parent), v.range.max = Math.max(w[a] + w[o], R ? v.range.max : 0);
15865
15866
  }));
15866
15867
  });
@@ -15883,13 +15884,13 @@ function er() {
15883
15884
  }
15884
15885
  er.prototype.execute = function(e) {
15885
15886
  var t = e.connection, n = e.delta, a = e.newParent || t.parent, o = e.newParentIndex, i = t.parent;
15886
- return e.oldParent = i, e.oldParentIndex = Ai(i.children, t), Gn(a.children, t, o), t.parent = a, re(t.waypoints, function(l) {
15887
+ return e.oldParent = i, e.oldParentIndex = Ai(i.children, t), Gn(a.children, t, o), t.parent = a, le(t.waypoints, function(l) {
15887
15888
  l.x += n.x, l.y += n.y, l.original && (l.original.x += n.x, l.original.y += n.y);
15888
15889
  }), t;
15889
15890
  };
15890
15891
  er.prototype.revert = function(e) {
15891
15892
  var t = e.connection, n = t.parent, a = e.oldParent, o = e.oldParentIndex, i = e.delta;
15892
- return Ai(n.children, t), Gn(a.children, t, o), t.parent = a, re(t.waypoints, function(l) {
15893
+ return Ai(n.children, t), Gn(a.children, t, o), t.parent = a, le(t.waypoints, function(l) {
15893
15894
  l.x -= i.x, l.y -= i.y, l.original && (l.original.x -= i.x, l.original.y -= i.y);
15894
15895
  }), t;
15895
15896
  };
@@ -15961,12 +15962,12 @@ jo.prototype.moveRecursive = function(e, t, n) {
15961
15962
  };
15962
15963
  jo.prototype.moveClosure = function(e, t, n, a, o) {
15963
15964
  var i = this._modeling, l = e.allShapes, r = e.allConnections, s = e.enclosedConnections, c = e.topLevel, u = !1;
15964
- o && o.parent === n && (u = !0), re(l, function(f) {
15965
+ o && o.parent === n && (u = !0), le(l, function(f) {
15965
15966
  i.moveShape(f, t, c[f.id] && !u && n, {
15966
15967
  recurse: !1,
15967
15968
  layout: !1
15968
15969
  });
15969
- }), re(r, function(f) {
15970
+ }), le(r, function(f) {
15970
15971
  var d = !!l[f.source.id], h = !!l[f.target.id];
15971
15972
  s[f.id] && d && h ? i.moveConnection(f, t, c[f.id] && !u && n) : i.layoutConnection(f, {
15972
15973
  connectionStart: d && ar(f, f.source, t),
@@ -16007,9 +16008,9 @@ ba.prototype.execute = function(e) {
16007
16008
  };
16008
16009
  ba.prototype.postExecute = function(e) {
16009
16010
  var t = e.shape, n = e.delta, a = e.hints, o = this._modeling;
16010
- a.layout !== !1 && (re(t.incoming, function(i) {
16011
+ a.layout !== !1 && (le(t.incoming, function(i) {
16011
16012
  o.layoutConnection(i, { connectionEnd: or(i, t, n) });
16012
- }), re(t.outgoing, function(i) {
16013
+ }), le(t.outgoing, function(i) {
16013
16014
  o.layoutConnection(i, { connectionStart: ar(i, t, n) });
16014
16015
  })), a.recurse !== !1 && this.moveChildren(e);
16015
16016
  };
@@ -16077,10 +16078,10 @@ On.prototype.preExecute = function(e) {
16077
16078
  y: 0
16078
16079
  }, r, l));
16079
16080
  var d = o.incoming.slice(), h = o.outgoing.slice();
16080
- re(d, function(p) {
16081
+ le(d, function(p) {
16081
16082
  var g = p.source;
16082
16083
  s(g, r, p) && t.reconnectEnd(p, r, nr(p, r, u), l);
16083
- }), re(h, function(p) {
16084
+ }), le(h, function(p) {
16084
16085
  var g = p.target;
16085
16086
  s(r, g, p) && t.reconnectStart(p, r, tr(p, r, u), l);
16086
16087
  });
@@ -16125,9 +16126,9 @@ Oo.prototype.execute = function(e) {
16125
16126
  };
16126
16127
  Oo.prototype.postExecute = function(e) {
16127
16128
  var t = this._modeling, n = e.shape, a = e.oldBounds;
16128
- (e.hints || {}).layout !== !1 && (re(n.incoming, function(o) {
16129
+ (e.hints || {}).layout !== !1 && (le(n.incoming, function(o) {
16129
16130
  t.layoutConnection(o, { connectionEnd: nr(o, n, a) });
16130
- }), re(n.outgoing, function(o) {
16131
+ }), le(n.outgoing, function(o) {
16131
16132
  t.layoutConnection(o, { connectionStart: tr(o, n, a) });
16132
16133
  }));
16133
16134
  };
@@ -16142,9 +16143,9 @@ Oo.prototype.revert = function(e) {
16142
16143
  };
16143
16144
  function Aw(e, t) {
16144
16145
  var n = [];
16145
- return re(e.concat(t), function(a) {
16146
+ return le(e.concat(t), function(a) {
16146
16147
  var o = a.incoming, i = a.outgoing;
16147
- re(o.concat(i), function(l) {
16148
+ le(o.concat(i), function(l) {
16148
16149
  var r = l.source, s = l.target;
16149
16150
  (Qa(e, r) || Qa(e, s) || Qa(t, r) || Qa(t, s)) && (Qa(n, l) || n.push(l));
16150
16151
  });
@@ -16194,7 +16195,7 @@ function qn(e) {
16194
16195
  qn.$inject = ["modeling"];
16195
16196
  qn.prototype.preExecute = function(e) {
16196
16197
  var t = e.delta, n = e.direction, a = e.movingShapes, o = e.resizingShapes, i = e.start, l = {};
16197
- this.moveShapes(a, t), re(o, function(r) {
16198
+ this.moveShapes(a, t), le(o, function(r) {
16198
16199
  l[r.id] = Ow(r);
16199
16200
  }), this.resizeShapes(o, t, n), this.updateConnectionWaypoints(Aw(a, o), t, n, i, a, o, l);
16200
16201
  };
@@ -16204,7 +16205,7 @@ qn.prototype.revert = function() {
16204
16205
  };
16205
16206
  qn.prototype.moveShapes = function(e, t) {
16206
16207
  var n = this;
16207
- re(e, function(a) {
16208
+ le(e, function(a) {
16208
16209
  n._modeling.moveShape(a, t, null, {
16209
16210
  autoResize: !1,
16210
16211
  layout: !1,
@@ -16214,7 +16215,7 @@ qn.prototype.moveShapes = function(e, t) {
16214
16215
  };
16215
16216
  qn.prototype.resizeShapes = function(e, t, n) {
16216
16217
  var a = this;
16217
- re(e, function(o) {
16218
+ le(e, function(o) {
16218
16219
  var i = jw(o, n, t);
16219
16220
  a._modeling.resizeShape(o, i, null, {
16220
16221
  attachSupport: !1,
@@ -16225,7 +16226,7 @@ qn.prototype.resizeShapes = function(e, t, n) {
16225
16226
  };
16226
16227
  qn.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, l) {
16227
16228
  var r = this, s = o.concat(i);
16228
- re(e, function(c) {
16229
+ le(e, function(c) {
16229
16230
  var u = c.source, f = c.target, d = Pw(c), h = su(n), p = {};
16230
16231
  $n(s, u) && $n(s, f) ? (d = _o(d, function(g) {
16231
16232
  return vs(g, a, n) && (g[h] = g[h] + t[h]), g.original && vs(g.original, a, n) && (g.original[h] = g.original[h] + t[h]), g;
@@ -16284,19 +16285,19 @@ $i.prototype.revert = function(e) {
16284
16285
  };
16285
16286
  function cu(e) {
16286
16287
  var t = {};
16287
- return re(e, function(n) {
16288
+ return le(e, function(n) {
16288
16289
  t[n.id] = n.hidden, n.children && (t = Le({}, t, cu(n.children)));
16289
16290
  }), t;
16290
16291
  }
16291
16292
  function uu(e, t) {
16292
16293
  var n = [];
16293
- return re(e, function(a) {
16294
+ return le(e, function(a) {
16294
16295
  a.hidden = t, n = n.concat(a), a.children && (n = n.concat(uu(a.children, a.collapsed || t)));
16295
16296
  }), n;
16296
16297
  }
16297
16298
  function du(e, t) {
16298
16299
  var n = [];
16299
- return re(e, function(a) {
16300
+ return le(e, function(a) {
16300
16301
  a.hidden = t[a.id], n = n.concat(a), a.children && (n = n.concat(du(a.children, t)));
16301
16302
  }), n;
16302
16303
  }
@@ -16369,7 +16370,7 @@ Qe.prototype.getHandlers = function() {
16369
16370
  };
16370
16371
  };
16371
16372
  Qe.prototype.registerHandlers = function(e) {
16372
- re(this.getHandlers(), function(t, n) {
16373
+ le(this.getHandlers(), function(t, n) {
16373
16374
  e.registerHandler(n, t);
16374
16375
  });
16375
16376
  };
@@ -16708,7 +16709,7 @@ Ho.prototype.updateLabel = function(e, t, n, a) {
16708
16709
  });
16709
16710
  };
16710
16711
  function cr(e, t) {
16711
- Vt.call(this, e);
16712
+ Ft.call(this, e);
16712
16713
  function n(a) {
16713
16714
  const { context: o } = a, i = o.hints || {};
16714
16715
  let l;
@@ -16716,7 +16717,7 @@ function cr(e, t) {
16716
16717
  }
16717
16718
  this.executed(["connection.layout", "connection.create"], n);
16718
16719
  }
16719
- pa(cr, Vt);
16720
+ pa(cr, Ft);
16720
16721
  cr.$inject = ["eventBus", "connectionDocking"];
16721
16722
  function yu() {
16722
16723
  }
@@ -17263,40 +17264,40 @@ function xa(e, t, n, a, o, i, l) {
17263
17264
  }
17264
17265
  function p(T, S, F, J) {
17265
17266
  F = d(F);
17266
- const ue = $l(S, F, J);
17267
- return Ue(T, ue), ue;
17267
+ const de = $l(S, F, J);
17268
+ return Ue(T, de), de;
17268
17269
  }
17269
17270
  function g(T, S, F) {
17270
17271
  return p(T, S, F, 5);
17271
17272
  }
17272
- function v(T, S, F, J, ue) {
17273
- ys(J) && (ue = J, J = 0), J = J || 0, ue = u(ue, {
17273
+ function v(T, S, F, J, de) {
17274
+ ys(J) && (de = J, J = 0), J = J || 0, de = u(de, {
17274
17275
  stroke: s,
17275
17276
  strokeWidth: 2,
17276
17277
  fill: r
17277
- }), ue.fill === "none" && delete ue.fillOpacity;
17278
- const $ = S / 2, ee = F / 2, ge = Fe("circle");
17278
+ }), de.fill === "none" && delete de.fillOpacity;
17279
+ const D = S / 2, ee = F / 2, ge = Fe("circle");
17279
17280
  return je(ge, {
17280
- cx: $,
17281
+ cx: D,
17281
17282
  cy: ee,
17282
17283
  r: Math.round((S + F) / 4 - J)
17283
- }), je(ge, ue), Ue(T, ge), ge;
17284
+ }), je(ge, de), Ue(T, ge), ge;
17284
17285
  }
17285
- function b(T, S, F, J, ue, $) {
17286
- ys(ue) && ($ = ue, ue = 0), ue = ue || 0, $ = u($, {
17286
+ function b(T, S, F, J, de, D) {
17287
+ ys(de) && (D = de, de = 0), de = de || 0, D = u(D, {
17287
17288
  stroke: s,
17288
17289
  strokeWidth: 2,
17289
17290
  fill: r
17290
17291
  });
17291
17292
  const ee = Fe("rect");
17292
17293
  return je(ee, {
17293
- x: ue,
17294
- y: ue,
17295
- width: S - ue * 2,
17296
- height: F - ue * 2,
17294
+ x: de,
17295
+ y: de,
17296
+ width: S - de * 2,
17297
+ height: F - de * 2,
17297
17298
  rx: J,
17298
17299
  ry: J
17299
- }), je(ee, $), Ue(T, ee), ee;
17300
+ }), je(ee, D), Ue(T, ee), ee;
17300
17301
  }
17301
17302
  function x(T, S, F) {
17302
17303
  F = u(F, ["no-fill"], {
@@ -17307,22 +17308,22 @@ function xa(e, t, n, a, o, i, l) {
17307
17308
  return je(J, { d: S }), je(J, F), Ue(T, J), J;
17308
17309
  }
17309
17310
  function m(T, S, F, J) {
17310
- const ue = S / 2, $ = F / 2, ee = [
17311
+ const de = S / 2, D = F / 2, ee = [
17311
17312
  {
17312
- x: ue,
17313
+ x: de,
17313
17314
  y: 0
17314
17315
  },
17315
17316
  {
17316
17317
  x: S,
17317
- y: $
17318
+ y: D
17318
17319
  },
17319
17320
  {
17320
- x: ue,
17321
+ x: de,
17321
17322
  y: F
17322
17323
  },
17323
17324
  {
17324
17325
  x: 0,
17325
- y: $
17326
+ y: D
17326
17327
  }
17327
17328
  ].map((Se) => Se.x + "," + Se.y).join(" ");
17328
17329
  J = u(J, {
@@ -17364,21 +17365,21 @@ function xa(e, t, n, a, o, i, l) {
17364
17365
  }
17365
17366
  function C(T, S, F) {
17366
17367
  const J = F && F.indexOf("SubProcessMarker") !== -1;
17367
- let ue;
17368
- J ? ue = {
17368
+ let de;
17369
+ J ? de = {
17369
17370
  seq: -21,
17370
17371
  parallel: -22,
17371
17372
  compensation: -42,
17372
17373
  loop: -18,
17373
17374
  adhoc: 10
17374
- } : ue = {
17375
+ } : de = {
17375
17376
  seq: -3,
17376
17377
  parallel: -6,
17377
17378
  compensation: -27,
17378
17379
  loop: 0,
17379
17380
  adhoc: 10
17380
- }, Hw(F, ($) => {
17381
- f($)(T, S, ue);
17381
+ }, Hw(F, (D) => {
17382
+ f(D)(T, S, de);
17382
17383
  });
17383
17384
  }
17384
17385
  function E(T) {
@@ -17388,7 +17389,7 @@ function xa(e, t, n, a, o, i, l) {
17388
17389
  const { ref: F = {
17389
17390
  x: 0,
17390
17391
  y: 0
17391
- }, scale: J = 1, element: ue, parentGfx: $ = a._svg } = S, ee = Fe("marker", {
17392
+ }, scale: J = 1, element: de, parentGfx: D = a._svg } = S, ee = Fe("marker", {
17392
17393
  id: T,
17393
17394
  viewBox: "0 0 20 20",
17394
17395
  refX: F.x,
@@ -17397,21 +17398,21 @@ function xa(e, t, n, a, o, i, l) {
17397
17398
  markerHeight: 20 * J,
17398
17399
  orient: "auto"
17399
17400
  });
17400
- Ue(ee, ue);
17401
- let ge = Wt(":scope > defs", $);
17402
- ge || (ge = Fe("defs"), Ue($, ge)), Ue(ge, ee);
17401
+ Ue(ee, de);
17402
+ let ge = Wt(":scope > defs", D);
17403
+ ge || (ge = Fe("defs"), Ue(D, ge)), Ue(ge, ee);
17403
17404
  }
17404
17405
  function A(T, S, F, J) {
17405
- const ue = S + "-" + E(F) + "-" + E(J) + "-" + qc();
17406
- return U(T, ue, S, F, J), "url(#" + ue + ")";
17406
+ const de = S + "-" + E(F) + "-" + E(J) + "-" + qc();
17407
+ return U(T, de, S, F, J), "url(#" + de + ")";
17407
17408
  }
17408
- function U(T, S, F, J, ue) {
17409
+ function U(T, S, F, J, de) {
17409
17410
  F === "sequenceflow-end" && M(S, {
17410
17411
  element: Fe("path", {
17411
17412
  d: "M 1 5 L 11 10 L 1 15 Z",
17412
17413
  ...h({
17413
- fill: ue,
17414
- stroke: ue,
17414
+ fill: de,
17415
+ stroke: de,
17415
17416
  strokeWidth: 1
17416
17417
  })
17417
17418
  }),
@@ -17428,7 +17429,7 @@ function xa(e, t, n, a, o, i, l) {
17428
17429
  r: 3.5,
17429
17430
  ...h({
17430
17431
  fill: J,
17431
- stroke: ue,
17432
+ stroke: de,
17432
17433
  strokeWidth: 1,
17433
17434
  strokeDasharray: [1e4, 1]
17434
17435
  })
@@ -17443,7 +17444,7 @@ function xa(e, t, n, a, o, i, l) {
17443
17444
  d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
17444
17445
  ...h({
17445
17446
  fill: J,
17446
- stroke: ue,
17447
+ stroke: de,
17447
17448
  strokeWidth: 1,
17448
17449
  strokeDasharray: [1e4, 1]
17449
17450
  })
@@ -17458,7 +17459,7 @@ function xa(e, t, n, a, o, i, l) {
17458
17459
  d: "M 11 5 L 1 10 L 11 15",
17459
17460
  ...d({
17460
17461
  fill: "none",
17461
- stroke: ue,
17462
+ stroke: de,
17462
17463
  strokeWidth: 1.5,
17463
17464
  strokeDasharray: [1e4, 1]
17464
17465
  })
@@ -17474,7 +17475,7 @@ function xa(e, t, n, a, o, i, l) {
17474
17475
  d: "M 1 5 L 11 10 L 1 15",
17475
17476
  ...d({
17476
17477
  fill: "none",
17477
- stroke: ue,
17478
+ stroke: de,
17478
17479
  strokeWidth: 1.5,
17479
17480
  strokeDasharray: [1e4, 1]
17480
17481
  })
@@ -17490,7 +17491,7 @@ function xa(e, t, n, a, o, i, l) {
17490
17491
  d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
17491
17492
  ...h({
17492
17493
  fill: J,
17493
- stroke: ue
17494
+ stroke: de
17494
17495
  })
17495
17496
  }),
17496
17497
  ref: {
@@ -17503,7 +17504,7 @@ function xa(e, t, n, a, o, i, l) {
17503
17504
  element: Fe("path", {
17504
17505
  d: "M 6 4 L 10 16",
17505
17506
  ...h({
17506
- stroke: ue,
17507
+ stroke: de,
17507
17508
  fill: "none"
17508
17509
  })
17509
17510
  }),
@@ -17516,8 +17517,8 @@ function xa(e, t, n, a, o, i, l) {
17516
17517
  });
17517
17518
  }
17518
17519
  function V(T, S, F, J) {
17519
- const ue = c[S.type]?.icon || S.icon;
17520
- ue && x(T, n.getScaledPath(ue, { abspos: {
17520
+ const de = c[S.type]?.icon || S.icon;
17521
+ de && x(T, n.getScaledPath(de, { abspos: {
17521
17522
  x: F,
17522
17523
  y: J
17523
17524
  } }), {
@@ -17607,24 +17608,24 @@ function xa(e, t, n, a, o, i, l) {
17607
17608
  return y(T, S, "center-middle"), C(T, S), J;
17608
17609
  },
17609
17610
  userTask(T, S) {
17610
- const F = f("task")(T, S), J = 15, ue = 12;
17611
+ const F = f("task")(T, S), J = 15, de = 12;
17611
17612
  return x(T, n.getScaledPath("TASK_TYPE_USER_1", { abspos: {
17612
17613
  x: J,
17613
- y: ue
17614
+ y: de
17614
17615
  } }), {
17615
17616
  strokeWidth: 0.5,
17616
17617
  fill: dn(S, r),
17617
17618
  stroke: bt(S, s)
17618
17619
  }), x(T, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
17619
17620
  x: J,
17620
- y: ue
17621
+ y: de
17621
17622
  } }), {
17622
17623
  strokeWidth: 0.5,
17623
17624
  fill: dn(S, r),
17624
17625
  stroke: bt(S, s)
17625
17626
  }), x(T, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
17626
17627
  x: J,
17627
- y: ue
17628
+ y: de
17628
17629
  } }), {
17629
17630
  strokeWidth: 0.5,
17630
17631
  fill: bt(S, s),
@@ -17822,7 +17823,7 @@ Fi.prototype.layoutText = function(e, t) {
17822
17823
  }, 0), p = i.top;
17823
17824
  o.vertical === "middle" && (p += (n.height - d) / 2), p -= (r || c[0].height) / 4;
17824
17825
  var g = Fe("text");
17825
- return je(g, a), re(c, function(v) {
17826
+ return je(g, a), le(c, function(v) {
17826
17827
  var b;
17827
17828
  switch (p += r || v.height, o.horizontal) {
17828
17829
  case "left":
@@ -18292,7 +18293,7 @@ Da.prototype._alignmentPosition = function(e, t) {
18292
18293
  else if (this._isType(e, ["right", "bottom"]))
18293
18294
  u = Qi(t), i[e] = u[a] + u[o];
18294
18295
  else if (this._isType(e, ["center", "middle"])) {
18295
- if (re(t, function(d) {
18296
+ if (le(t, function(d) {
18296
18297
  var h = d[a] + Math.round(d[o] / 2);
18297
18298
  l[h] ? l[h].elements.push(d) : l[h] = {
18298
18299
  elements: [d],
@@ -18541,12 +18542,12 @@ function Pu(e, t, n, a, o) {
18541
18542
  y = R[E - 1], k = R[E], Vn(y, k) && (C = ju(m, y, k), je(C, { "data-segment-idx": E }), s(C, "mousemove", w));
18542
18543
  }
18543
18544
  function h(m) {
18544
- re(ll("." + Mu, m), function(w) {
18545
+ le(ll("." + Mu, m), function(w) {
18545
18546
  Zt(w);
18546
18547
  });
18547
18548
  }
18548
18549
  function p(m) {
18549
- re(ll("." + Au, m), function(w) {
18550
+ le(ll("." + Au, m), function(w) {
18550
18551
  Zt(w);
18551
18552
  });
18552
18553
  }
@@ -18914,7 +18915,7 @@ function Lu(e) {
18914
18915
  return f < 2 && g.unshift(n(s.source, i)), h > c.length - 3 && g.unshift(n(s.target, i)), l.snapPoints = r = {
18915
18916
  horizontal: [],
18916
18917
  vertical: []
18917
- }, re(g, function(v) {
18918
+ }, le(g, function(v) {
18918
18919
  v && (v = v.original || v, p === "y" && r.horizontal.push(v.y), p === "x" && r.vertical.push(v.x));
18919
18920
  }), r;
18920
18921
  }
@@ -18938,7 +18939,7 @@ function Lu(e) {
18938
18939
  return i.snapPoints = l = {
18939
18940
  horizontal: [],
18940
18941
  vertical: []
18941
- }, re(c, function(u) {
18942
+ }, le(c, function(u) {
18942
18943
  u && (u = u.original || u, l.horizontal.push(u.y), l.vertical.push(u.x));
18943
18944
  }), l;
18944
18945
  }
@@ -19078,7 +19079,7 @@ It.prototype.remove = function(e) {
19078
19079
  var t = this.get(e) || [];
19079
19080
  ot(t) || (t = [t]);
19080
19081
  var n = this;
19081
- re(t, function(a) {
19082
+ le(t, function(a) {
19082
19083
  var o = n._getOverlayContainer(a.element, !0);
19083
19084
  if (a && (rl(a.html), rl(a.htmlContainer), delete a.htmlContainer, delete a.element, delete n._overlays[a.id]), o) {
19084
19085
  var i = o.overlays.indexOf(a);
@@ -19161,7 +19162,7 @@ It.prototype._updateOverlayScale = function(e, t) {
19161
19162
  };
19162
19163
  It.prototype._updateOverlaysVisibilty = function(e) {
19163
19164
  var t = this;
19164
- re(this._overlays, function(n) {
19165
+ le(this._overlays, function(n) {
19165
19166
  t._updateOverlayVisibilty(n, e);
19166
19167
  });
19167
19168
  };
@@ -19176,7 +19177,7 @@ It.prototype._init = function() {
19176
19177
  n(a.viewbox);
19177
19178
  }), e.on(["shape.remove", "connection.remove"], function(a) {
19178
19179
  var o = a.element;
19179
- re(t.get({ element: o }), function(r) {
19180
+ le(t.get({ element: o }), function(r) {
19180
19181
  t.remove(r.id);
19181
19182
  });
19182
19183
  var i = t._getOverlayContainer(o);
@@ -19187,7 +19188,7 @@ It.prototype._init = function() {
19187
19188
  }
19188
19189
  }), e.on("element.changed", u0, function(a) {
19189
19190
  var o = a.element, i = t._getOverlayContainer(o, !0);
19190
- i && (re(i.overlays, function(l) {
19191
+ i && (le(i.overlays, function(l) {
19191
19192
  t._updateOverlay(l);
19192
19193
  }), t._updateOverlayContainer(i));
19193
19194
  }), e.on("element.marker.update", function(a) {
@@ -19320,10 +19321,10 @@ Rt.prototype.registerProvider = function(e, t) {
19320
19321
  };
19321
19322
  Rt.prototype.getEntries = function(e) {
19322
19323
  var t = this._getProviders(), n = ot(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
19323
- return re(t, function(o) {
19324
+ return le(t, function(o) {
19324
19325
  if (xn(o[n])) {
19325
19326
  var i = o[n](e);
19326
- xn(i) ? a = i(a) : re(i, function(l, r) {
19327
+ xn(i) ? a = i(a) : le(i, function(l, r) {
19327
19328
  a[r] = l;
19328
19329
  });
19329
19330
  }
@@ -19372,7 +19373,7 @@ Rt.prototype._getProviders = function() {
19372
19373
  };
19373
19374
  Rt.prototype._updateAndOpen = function(e) {
19374
19375
  var t = this.getEntries(e), n = this._createHtml(e), a;
19375
- re(t, function(o, i) {
19376
+ le(t, function(o, i) {
19376
19377
  var l = o.group || "default", r = qt(o.html || '<div class="entry" draggable="true"></div>'), s;
19377
19378
  pn(r, "data-action", i), s = Wt("[data-group=" + hr(l) + "]", n), s || (s = qt('<div class="group"></div>'), pn(s, "data-group", l), n.appendChild(s)), s.appendChild(r), o.className && b0(r, o.className), o.title && pn(r, "title", o.title), o.imageUrl && (a = qt("<img>"), pn(a, "src", o.imageUrl), a.style.width = "100%", a.style.height = "100%", r.appendChild(a));
19378
19379
  }), Kt(n).add("open"), this._current = {
@@ -19528,7 +19529,7 @@ _a.prototype.bindEvents = function(e, t) {
19528
19529
  return;
19529
19530
  }
19530
19531
  this.setActive(e);
19531
- }, this), re(t, function(o) {
19532
+ }, this), le(t, function(o) {
19532
19533
  a.push(o + ".ended"), a.push(o + ".canceled");
19533
19534
  }), n.on(a, C0, function(o) {
19534
19535
  this._active && (S0(o) || this.setActive(null));
@@ -19858,7 +19859,7 @@ function Sa(e, t) {
19858
19859
  }
19859
19860
  Sa.prototype.updateShapeOutline = function(e, t) {
19860
19861
  var n = !1, a = this._getProviders();
19861
- a.length && re(a, function(o) {
19862
+ a.length && le(a, function(o) {
19862
19863
  n = n || o.updateOutline(t, e);
19863
19864
  }), n || je(e, {
19864
19865
  x: -this.offset,
@@ -19890,7 +19891,7 @@ Sa.prototype._getProviders = function() {
19890
19891
  };
19891
19892
  Sa.prototype.getOutline = function(e) {
19892
19893
  var t;
19893
- return re(this._getProviders(), function(n) {
19894
+ return le(this._getProviders(), function(n) {
19894
19895
  xn(n.getOutline) && (t = t || n.getOutline(e));
19895
19896
  }), t;
19896
19897
  };
@@ -20049,7 +20050,7 @@ function Wu(e, t, n, a) {
20049
20050
  }
20050
20051
  d.forEach(function(p) {
20051
20052
  a.addDragger(p, c.dragGroup);
20052
- }), f ? f = ef([f, i(u)]) : f = i(u), re(f, function(p) {
20053
+ }), f ? f = ef([f, i(u)]) : f = i(u), le(f, function(p) {
20053
20054
  t.addMarker(p, al);
20054
20055
  }), c.allDraggedElements = f, c.differentParents = z0(u);
20055
20056
  }), e.on("shape.move.move", Ws, function(s) {
@@ -20060,7 +20061,7 @@ function Wu(e, t, n, a) {
20060
20061
  c && l(c, null);
20061
20062
  }), e.on("shape.move.cleanup", function(s) {
20062
20063
  var c = s.context, u = c.allDraggedElements, f = c.dragGroup;
20063
- re(u, function(d) {
20064
+ le(u, function(d) {
20064
20065
  t.removeMarker(d, al);
20065
20066
  }), f && Zt(f);
20066
20067
  }), this.makeDraggable = r;
@@ -20147,7 +20148,7 @@ St.prototype._toggleState = function(e) {
20147
20148
  };
20148
20149
  St.prototype._update = function() {
20149
20150
  var e = Wt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
20150
- oc(e), re(t, function(n, a) {
20151
+ oc(e), le(t, function(n, a) {
20151
20152
  var o = n.group || "default", i = Wt("[data-group=" + hr(o) + "]", e);
20152
20153
  i || (i = qt('<div class="group"></div>'), pn(i, "data-group", o), e.appendChild(i));
20153
20154
  var l = qt(n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'));
@@ -20196,7 +20197,7 @@ St.prototype.isActiveTool = function(e) {
20196
20197
  };
20197
20198
  St.prototype.updateToolHighlight = function(e) {
20198
20199
  var t, n;
20199
- this._toolsContainer || (t = Wt(".djs-palette-entries", this._container), this._toolsContainer = Wt("[data-group=tools]", t)), n = this._toolsContainer, re(n.children, function(a) {
20200
+ this._toolsContainer || (t = Wt(".djs-palette-entries", this._container), this._toolsContainer = Wt("[data-group=tools]", t)), n = this._toolsContainer, le(n.children, function(a) {
20200
20201
  var o = a.getAttribute("data-action");
20201
20202
  if (o) {
20202
20203
  var i = Kt(a);
@@ -20219,7 +20220,7 @@ function N0(e, t) {
20219
20220
  }
20220
20221
  function W0(e, t) {
20221
20222
  var n = t.getPaletteEntries();
20222
- return xn(n) ? n(e) : (re(n, function(a, o) {
20223
+ return xn(n) ? n(e) : (le(n, function(a, o) {
20223
20224
  e[o] = a;
20224
20225
  }), e);
20225
20226
  }
@@ -20429,7 +20430,7 @@ function ea(e, t, n, a) {
20429
20430
  var o = this;
20430
20431
  e.on("selection.changed", function(i) {
20431
20432
  var l = i.newSelection;
20432
- o.removeResizers(), l.length === 1 && re(l, jl(o.addResizer, o));
20433
+ o.removeResizers(), l.length === 1 && le(l, jl(o.addResizer, o));
20433
20434
  }), e.on("shape.changed", function(i) {
20434
20435
  var l = i.element;
20435
20436
  n.isSelected(l) && (o.removeResizers(), o.addResizer(l));
@@ -20466,7 +20467,7 @@ ea.prototype.createResizer = function(e, t) {
20466
20467
  };
20467
20468
  ea.prototype.addResizer = function(e) {
20468
20469
  var t = this;
20469
- Ut(e) || !this._resize.canResize({ shape: e }) || re(a_, function(n) {
20470
+ Ut(e) || !this._resize.canResize({ shape: e }) || le(a_, function(n) {
20470
20471
  t.createResizer(e, n);
20471
20472
  });
20472
20473
  };
@@ -20669,8 +20670,8 @@ Ni.prototype.snap = function(e, t, n, a) {
20669
20670
  };
20670
20671
  Ni.prototype.initDefaults = function(e) {
20671
20672
  var t = this;
20672
- re(e || {}, function(n, a) {
20673
- re(n, function(o) {
20673
+ le(e || {}, function(n, a) {
20674
+ le(n, function(o) {
20674
20675
  t.add(a, o);
20675
20676
  });
20676
20677
  });
@@ -20727,14 +20728,14 @@ kn.prototype.initSnap = function(e) {
20727
20728
  })), o;
20728
20729
  };
20729
20730
  kn.prototype.addSnapTargetPoints = function(e, t, n) {
20730
- return re(this.getSnapTargets(t, n), function(a) {
20731
+ return le(this.getSnapTargets(t, n), function(a) {
20731
20732
  if (Ha(a)) {
20732
20733
  Ha(t) && e.add("mid", ja(a));
20733
20734
  return;
20734
20735
  }
20735
20736
  if (Ut(a)) {
20736
20737
  if (a.waypoints.length < 3) return;
20737
- re(a.waypoints.slice(1, -1), function(o) {
20738
+ le(a.waypoints.slice(1, -1), function(o) {
20738
20739
  e.add("mid", o);
20739
20740
  });
20740
20741
  return;
@@ -20789,7 +20790,7 @@ Lo.prototype.initSnap = function(e) {
20789
20790
  }), o;
20790
20791
  };
20791
20792
  Lo.prototype.addSnapTargetPoints = function(e, t, n, a) {
20792
- return re(this.getSnapTargets(t, n), function(o) {
20793
+ return le(this.getSnapTargets(t, n), function(o) {
20793
20794
  e.add("corner", n0(o)), e.add("corner", t0(o));
20794
20795
  }), e.add("corner", Xu(t, a)), e;
20795
20796
  };
@@ -20828,19 +20829,19 @@ na.prototype.snap = function(e, t) {
20828
20829
  x: wi(e, "x"),
20829
20830
  y: wi(e, "y")
20830
20831
  };
20831
- re(a, function(i) {
20832
+ le(a, function(i) {
20832
20833
  var l = n.getSnapOrigin(i), r = {
20833
20834
  x: e.x + l.x,
20834
20835
  y: e.y + l.y
20835
20836
  };
20836
- if (re(["x", "y"], function(s) {
20837
+ if (le(["x", "y"], function(s) {
20837
20838
  var c;
20838
20839
  o[s] || (c = t.snap(r, i, s, g_), c !== void 0 && (o[s] = {
20839
20840
  value: c,
20840
20841
  originValue: c - l[s]
20841
20842
  }));
20842
20843
  }), o.x && o.y) return !1;
20843
- }), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), re(["x", "y"], function(i) {
20844
+ }), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), le(["x", "y"], function(i) {
20844
20845
  var l = o[i];
20845
20846
  on(l) && En(e, i, l.originValue);
20846
20847
  });
@@ -20871,7 +20872,7 @@ na.prototype.getSnapLine = function(e) {
20871
20872
  return this._snapLines || this._createSnapLines(), this._snapLines[e];
20872
20873
  };
20873
20874
  na.prototype.hide = function() {
20874
- re(this._snapLines, function(e) {
20875
+ le(this._snapLines, function(e) {
20875
20876
  e.update();
20876
20877
  });
20877
20878
  };
@@ -20890,10 +20891,10 @@ var y_ = {
20890
20891
  createMoveSnapping: ["type", Wa]
20891
20892
  };
20892
20893
  function Ua(e) {
20893
- Vt.call(this, e), this.init();
20894
+ Ft.call(this, e), this.init();
20894
20895
  }
20895
20896
  Ua.$inject = ["eventBus"];
20896
- ya(Ua, Vt);
20897
+ ya(Ua, Ft);
20897
20898
  Ua.prototype.addRule = function(e, t, n) {
20898
20899
  var a = this;
20899
20900
  typeof e == "string" && (e = [e]), e.forEach(function(o) {
@@ -21635,7 +21636,7 @@ export {
21635
21636
  If as EncryptionFactory,
21636
21637
  pc as EventBus,
21637
21638
  DC as HashingFactory,
21638
- zt as INJECT_KEYS,
21639
+ Lt as INJECT_KEYS,
21639
21640
  jh as JAutoComplete,
21640
21641
  Cg as JBarcode,
21641
21642
  dl as JButton,