@farris/ui-vue 1.7.0-beta.2 → 1.7.1-beta.0

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.
Files changed (34) hide show
  1. package/components/button-group/index.esm.js +62 -62
  2. package/components/button-group/index.umd.cjs +1 -1
  3. package/components/combo-list/index.esm.js +96 -92
  4. package/components/combo-list/index.umd.cjs +1 -1
  5. package/components/data-view/index.esm.js +823 -823
  6. package/components/data-view/index.umd.cjs +1 -1
  7. package/components/expression-editor/index.esm.js +7 -3
  8. package/components/expression-editor/index.umd.cjs +4 -4
  9. package/components/filter-condition-editor/index.esm.js +434 -430
  10. package/components/filter-condition-editor/index.umd.cjs +5 -5
  11. package/components/order/index.esm.js +7 -3
  12. package/components/order/index.umd.cjs +1 -1
  13. package/components/pagination/index.esm.js +70 -70
  14. package/components/pagination/index.umd.cjs +2 -2
  15. package/components/response-layout-editor/index.esm.js +8 -0
  16. package/components/response-layout-editor/index.umd.cjs +1 -1
  17. package/components/schema-selector/index.esm.js +460 -460
  18. package/components/schema-selector/index.umd.cjs +1 -1
  19. package/components/sort-condition-editor/index.esm.js +571 -567
  20. package/components/sort-condition-editor/index.umd.cjs +5 -5
  21. package/components/switch/index.esm.js +19 -15
  22. package/components/switch/index.umd.cjs +2 -2
  23. package/designer/checkbox-group/index.esm.js +48 -44
  24. package/designer/checkbox-group/index.umd.cjs +1 -1
  25. package/designer/data-grid/index.esm.js +14 -14
  26. package/designer/data-grid/index.umd.cjs +2 -2
  27. package/designer/data-view/index.esm.js +4 -3
  28. package/designer/data-view/index.umd.cjs +2 -2
  29. package/designer/farris-designer.all.esm.js +3 -3
  30. package/designer/farris-designer.all.umd.cjs +1 -1
  31. package/farris.all.esm.js +34 -24
  32. package/farris.all.umd.cjs +25 -25
  33. package/package.json +1 -1
  34. package/types/components.d.ts +1 -1
@@ -227,17 +227,17 @@ const $o = {
227
227
  backgroundColor: e.backgroundColor || "",
228
228
  pointerEvents: "auto"
229
229
  }));
230
- function l(u) {
231
- t.emit("click"), u.preventDefault(), u.stopPropagation();
230
+ function l(s) {
231
+ t.emit("click"), s.preventDefault(), s.stopPropagation();
232
232
  }
233
233
  I(() => {
234
- const u = a.value;
235
- if (u) {
236
- const s = u.getBoundingClientRect(), {
234
+ const s = a.value;
235
+ if (s) {
236
+ const u = s.getBoundingClientRect(), {
237
237
  left: c,
238
238
  top: g,
239
239
  height: m
240
- } = s;
240
+ } = u;
241
241
  return {
242
242
  left: c,
243
243
  top: g + m
@@ -254,14 +254,14 @@ const $o = {
254
254
  to: "body"
255
255
  }, {
256
256
  default: () => {
257
- var u, s;
257
+ var s, u;
258
258
  return [v("div", {
259
259
  class: "overlay-container",
260
260
  onClick: (c) => l(c),
261
261
  style: o.value
262
262
  }, [v("div", {
263
263
  style: i.value
264
- }, [(s = (u = t.slots).default) == null ? void 0 : s.call(u)])])];
264
+ }, [(u = (s = t.slots).default) == null ? void 0 : u.call(s)])])];
265
265
  }
266
266
  });
267
267
  }
@@ -605,19 +605,19 @@ class nt {
605
605
  }
606
606
  }
607
607
  function ll(e, t) {
608
- const n = C(), a = C(), o = C(), l = C(), i = C(), u = C(), s = C(), c = C(), g = C(), m = C(), r = C(), f = C(e.resizeable), d = C(), b = C(e.draggable), p = C(!1);
608
+ const n = C(), a = C(), o = C(), l = C(), i = C(), s = C(), u = C(), c = C(), g = C(), m = C(), r = C(), f = C(e.resizeable), d = C(), b = C(e.draggable), p = C(!1);
609
609
  function w() {
610
610
  const R = a.value || document.body, j = window.getComputedStyle(R);
611
611
  if (!j || !n.value)
612
612
  return;
613
613
  const U = re.getTransformInfo(n.value), W = {};
614
- s.value && (W.deltaL = n.value.offsetLeft - s.value.x, W.deltaT = n.value.offsetTop - s.value.y);
614
+ u.value && (W.deltaL = n.value.offsetLeft - u.value.x, W.deltaT = n.value.offsetTop - u.value.y);
615
615
  const ee = j.getPropertyValue("position");
616
616
  W.width = R.clientWidth, W.height = R.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && (R.style.position = "relative"), W.translateX = U.x, W.translateY = U.y, m.value = W;
617
617
  }
618
618
  function k(R) {
619
619
  if (n.value) {
620
- l.value = nt.getCurrent(n.value), i.value = re.getCurrent(n.value), u.value = l.value ? nt.copy(l.value) : null, s.value = i.value ? re.copy(i.value) : null, w();
620
+ l.value = nt.getCurrent(n.value), i.value = re.getCurrent(n.value), s.value = l.value ? nt.copy(l.value) : null, u.value = i.value ? re.copy(i.value) : null, w();
621
621
  const j = R.target.getAttribute("type") || "";
622
622
  c.value = {
623
623
  n: !!j.match(/n/),
@@ -631,19 +631,19 @@ function ll(e, t) {
631
631
  var R, j, U, W;
632
632
  if (n.value) {
633
633
  const ee = n.value;
634
- c.value && ((c.value.n || c.value.s) && ((R = u.value) != null && R.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((U = s.value) != null && U.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
634
+ c.value && ((c.value.n || c.value.s) && ((R = s.value) != null && R.height) && (ee.style.height = s.value.height + "px"), (c.value.w || c.value.e) && ((j = s.value) != null && j.width) && (ee.style.width = s.value.width + "px"), u.value && ((U = u.value) != null && U.x && (ee.style.left = u.value.x + "px"), (W = u.value) != null && W.y && (ee.style.top = u.value.y + "px")));
635
635
  }
636
636
  }
637
637
  function S() {
638
638
  const R = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
639
- u.value && s.value && c.value && l.value && (u.value.height < R && (u.value.height = R, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - R))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
639
+ s.value && u.value && c.value && l.value && (s.value.height < R && (s.value.height = R, c.value.n && i.value && (u.value.y = i.value.y + (l.value.height - R))), s.value.width < j && (s.value.width = j, c.value.w && i.value && (u.value.x = i.value.x + (l.value.width - j))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, i.value && c.value.n && (u.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && s.value.width > e.maxWidth && (s.value.width = e.maxWidth, c.value.w && i.value && (u.value.x = i.value.x + (l.value.width - e.maxWidth))));
640
640
  }
641
641
  function h() {
642
642
  if (a.value) {
643
643
  const R = m.value;
644
- if (s.value && u.value && c.value && l.value) {
645
- const j = R.width - R.pr - R.deltaL - R.translateX - s.value.x, U = R.height - R.pb - R.deltaT - R.translateY - s.value.y;
646
- c.value.n && s.value.y + R.translateY < 0 && i.value && (s.value.y = -R.translateY, u.value.height = l.value.height + i.value.y + R.translateY), c.value.w && s.value.x + R.translateX < 0 && i.value && (s.value.x = -R.translateX, u.value.width = l.value.width + i.value.x + R.translateX), u.value.width > j && (u.value.width = j), u.value.height > U && (u.value.height = U);
644
+ if (u.value && s.value && c.value && l.value) {
645
+ const j = R.width - R.pr - R.deltaL - R.translateX - u.value.x, U = R.height - R.pb - R.deltaT - R.translateY - u.value.y;
646
+ c.value.n && u.value.y + R.translateY < 0 && i.value && (u.value.y = -R.translateY, s.value.height = l.value.height + i.value.y + R.translateY), c.value.w && u.value.x + R.translateX < 0 && i.value && (u.value.x = -R.translateX, s.value.width = l.value.width + i.value.x + R.translateX), s.value.width > j && (s.value.width = j), s.value.height > U && (s.value.height = U);
647
647
  }
648
648
  }
649
649
  }
@@ -652,7 +652,7 @@ function ll(e, t) {
652
652
  return;
653
653
  R.subtract(o.value);
654
654
  const j = R.x, U = R.y;
655
- c.value.n ? (s.value.y = i.value.y + U, u.value.height = l.value.height - U) : c.value.s && (u.value.height = l.value.height + U), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), h(), S(), B();
655
+ c.value.n ? (u.value.y = i.value.y + U, s.value.height = l.value.height - U) : c.value.s && (s.value.height = l.value.height + U), c.value.e ? s.value.width = l.value.width + j : c.value.w && (s.value.width = l.value.width - j, u.value.x = i.value.x + j), h(), S(), B();
656
656
  }
657
657
  function x(R) {
658
658
  if (!g.value)
@@ -686,7 +686,7 @@ function ll(e, t) {
686
686
  const j = M();
687
687
  r.value = j;
688
688
  }
689
- o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, g.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", D);
689
+ o.value = void 0, l.value = null, i.value = null, s.value = null, u.value = null, c.value = null, g.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", D);
690
690
  }
691
691
  function P() {
692
692
  document.addEventListener("mousemove", x), document.addEventListener("mouseup", D);
@@ -732,8 +732,8 @@ function ll(e, t) {
732
732
  function F(R = !0) {
733
733
  document.body.click();
734
734
  const j = a.value || document.body, U = nt.getCurrent(j), W = n.value;
735
- R && W && (d.value = M(), d.value.transform = W.style.transform), U && W && (u.value = U, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
736
- size: u.value,
735
+ R && W && (d.value = M(), d.value.transform = W.style.transform), U && W && (s.value = U, s.value.height -= 14, s.value.width -= 14, W.style.height = s.value.height + "px", W.style.width = s.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
736
+ size: s.value,
737
737
  position: {
738
738
  x: 0,
739
739
  y: 0
@@ -750,7 +750,7 @@ function ll(e, t) {
750
750
  x: (window.innerWidth - U.width) / 2,
751
751
  y: (window.innerHeight - U.height) / 2
752
752
  };
753
- (R = u.value) == null || R.set(U), (j = s.value) == null || j.set(W);
753
+ (R = s.value) == null || R.set(U), (j = u.value) == null || j.set(W);
754
754
  const ee = n.value;
755
755
  ee.style.height = U.height + "px", ee.style.width = U.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", r.value = {
756
756
  size: U,
@@ -792,7 +792,7 @@ function ll(e, t) {
792
792
  };
793
793
  }
794
794
  function il(e, t, n) {
795
- const a = C(), o = C(e.draggable), l = C(e.lockAxis), i = C(), u = C(), s = C(!1), c = C(new re(0, 0)), g = C(new re(0, 0)), m = C(new re(0, 0)), r = C(new re(0, 0));
795
+ const a = C(), o = C(e.draggable), l = C(e.lockAxis), i = C(), s = C(), u = C(!1), c = C(new re(0, 0)), g = C(new re(0, 0)), m = C(new re(0, 0)), r = C(new re(0, 0));
796
796
  Q(() => n.value, (x) => {
797
797
  i.value.style.cursor = x ? "move" : "default";
798
798
  });
@@ -814,9 +814,9 @@ function il(e, t, n) {
814
814
  a.value && (a.value.style.transform = D), r.value.x = x, r.value.y = M;
815
815
  }
816
816
  function b() {
817
- if (!u.value || !a.value)
817
+ if (!s.value || !a.value)
818
818
  return null;
819
- const x = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), D = {
819
+ const x = s.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), D = {
820
820
  top: x.top < M.top,
821
821
  right: x.right > M.right,
822
822
  bottom: x.bottom > M.bottom,
@@ -828,14 +828,14 @@ function il(e, t, n) {
828
828
  x && (c.value && x.subtract(c.value), m.value.set(x), d(), b());
829
829
  }
830
830
  function w(x) {
831
- s.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, i.value)));
831
+ u.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, i.value)));
832
832
  }
833
833
  function k() {
834
834
  var x;
835
- s.value && (s.value = !1, g.value.add(m.value), m.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
835
+ u.value && (u.value = !1, g.value.add(m.value), m.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
836
836
  }
837
837
  function B() {
838
- !s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
838
+ !u.value && i.value && (u.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
839
839
  }
840
840
  function S() {
841
841
  if (a.value) {
@@ -863,7 +863,7 @@ function il(e, t, n) {
863
863
  P && (i.value = P);
864
864
  }
865
865
  }
866
- a.value = M, u.value = D, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", h)) : o.value = !1;
866
+ a.value = M, s.value = D, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", h)) : o.value = !1;
867
867
  }
868
868
  }
869
869
  return {
@@ -904,7 +904,7 @@ const at = /* @__PURE__ */ ae({
904
904
  props: zn,
905
905
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
906
906
  setup(e, t) {
907
- const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), g = C(e.showCloseButton), m = C(e.showMaxButton), r = C(!1), f = C(e.dialogType), d = C(e.src), b = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
907
+ const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), s = C(e.fitContent), u = C(e.showHeader), c = C(""), g = C(e.showCloseButton), m = C(e.showMaxButton), r = C(!1), f = C(e.dialogType), d = C(e.src), b = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
908
908
  t: S
909
909
  } = Ft();
910
910
  w.value === "错误提示" && (w.value = S("messageBox.errorTitle"));
@@ -960,7 +960,7 @@ const at = /* @__PURE__ */ ae({
960
960
  O.value && !k.value && (k.value = O.value.parentElement, H.value = k.value, ee(T.value, O.value, H.value), W());
961
961
  }), $ || (k.value && (k.value = null), he())), o.value ? h.value = ce() : (F.value = !1, j.value = e.draggable);
962
962
  }), Q(() => e.showHeader, ($, Z) => {
963
- $ !== Z && (s.value = $);
963
+ $ !== Z && (u.value = $);
964
964
  }), Q(() => e.showButtons, ($, Z) => {
965
965
  $ !== Z && (p.value = $);
966
966
  }), Q(() => R.value, ($, Z) => {
@@ -978,7 +978,7 @@ const at = /* @__PURE__ */ ae({
978
978
  "farris-modal": !0,
979
979
  fade: !0
980
980
  };
981
- $["f-modal-fitContent"] = !!u.value, $.show = !!X.value;
981
+ $["f-modal-fitContent"] = !!s.value, $.show = !!X.value;
982
982
  const Z = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
983
983
  return Z == null || Z.reduce((fe, je) => (fe[je] = !0, fe), $), $;
984
984
  }), de = I(() => {
@@ -993,7 +993,7 @@ const at = /* @__PURE__ */ ae({
993
993
  top: `${(window.innerHeight - a.value) / 2}px`,
994
994
  left: `${(window.innerWidth - n.value) / 2}px`,
995
995
  width: `${n.value}px`,
996
- height: u.value ? "auto" : `${a.value}px`
996
+ height: s.value ? "auto" : `${a.value}px`
997
997
  };
998
998
  return e.mask || ($.pointerEvents = "auto"), $;
999
999
  }), _ = () => Ha() || 1040, oe = I(() => {
@@ -1004,10 +1004,10 @@ const at = /* @__PURE__ */ ae({
1004
1004
  return e.mask || ($.pointerEvents = "none", $.backgroundColor = "transparent"), h.value && ($.backgroundColor = "transparent"), $;
1005
1005
  }), Xe = I(() => ({
1006
1006
  "modal-content": !0,
1007
- "modal-content-has-header": s.value
1007
+ "modal-content-has-header": u.value
1008
1008
  })), $e = I(() => {
1009
1009
  const $ = {
1010
- display: s.value ? "" : "none"
1010
+ display: u.value ? "" : "none"
1011
1011
  };
1012
1012
  return $["pointer-events"] = j.value ? "auto" : "none", $;
1013
1013
  }), Oe = I(() => ({
@@ -1130,7 +1130,7 @@ const at = /* @__PURE__ */ ae({
1130
1130
  ref: O
1131
1131
  }, [v("div", {
1132
1132
  class: Xe.value
1133
- }, [s.value && Qe(), v("div", {
1133
+ }, [u.value && Qe(), v("div", {
1134
1134
  class: it.value
1135
1135
  }, [(Z = ($ = t.slots).default) == null ? void 0 : Z.call($), f.value === "iframe" && v("iframe", {
1136
1136
  title: l.value,
@@ -1138,7 +1138,7 @@ const at = /* @__PURE__ */ ae({
1138
1138
  width: "100%",
1139
1139
  frameborder: "0",
1140
1140
  src: d.value
1141
- }, null)]), Pe()]), !u.value && O.value && !F.value && E(O.value)]);
1141
+ }, null)]), Pe()]), !s.value && O.value && !F.value && E(O.value)]);
1142
1142
  }
1143
1143
  function ut($) {
1144
1144
  return $ || "body";
@@ -1174,7 +1174,7 @@ function ul(e) {
1174
1174
  kt(() => {
1175
1175
  document.body.removeChild(t);
1176
1176
  });
1177
- const l = C(), i = C(e.class || ""), u = C(!!e.showButtons), s = C(!!e.showHeader), c = C(e.showCloseButton == null ? !0 : e.showCloseButton), g = C(!0), m = C(e.title || ""), r = e.acceptCallback || (() => {
1177
+ const l = C(), i = C(e.class || ""), s = C(!!e.showButtons), u = C(!!e.showHeader), c = C(e.showCloseButton == null ? !0 : e.showCloseButton), g = C(!0), m = C(e.title || ""), r = e.acceptCallback || (() => {
1178
1178
  }), f = e.rejectCallback || (() => {
1179
1179
  }), d = e.closedCallback || ((B) => {
1180
1180
  }), b = e.resizeHandle || ((B) => {
@@ -1194,8 +1194,8 @@ function ul(e) {
1194
1194
  width: e.width,
1195
1195
  height: e.height,
1196
1196
  buttons: e.buttons,
1197
- "show-header": s.value,
1198
- "show-buttons": u.value,
1197
+ "show-header": u.value,
1198
+ "show-buttons": s.value,
1199
1199
  "show-close-button": c.value,
1200
1200
  "show-max-button": !1,
1201
1201
  onAccept: r,
@@ -1258,8 +1258,8 @@ class qn {
1258
1258
  showHeader: !0
1259
1259
  }, t)), o = C(!0), l = a.value.acceptCallback || (() => {
1260
1260
  }), i = a.value.rejectCallback || (() => {
1261
- }), u = a.value.closedCallback || ((h, y) => {
1262
- }), s = a.value.resizeHandle || ((h) => {
1261
+ }), s = a.value.closedCallback || ((h, y) => {
1262
+ }), u = a.value.resizeHandle || ((h) => {
1263
1263
  }), c = t.stopMoveHandle || ((h) => {
1264
1264
  });
1265
1265
  let g;
@@ -1267,7 +1267,7 @@ class qn {
1267
1267
  var x;
1268
1268
  o.value = !1;
1269
1269
  const y = (x = h == null ? void 0 : h.target) == null ? void 0 : x.classList.contains("modal_close");
1270
- u(h, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
1270
+ s(h, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
1271
1271
  }, f = (h) => {
1272
1272
  r(h), g && Ue(() => {
1273
1273
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Qt(null, n), g = null, this.modalRef.value = null, this.modalRefs) {
@@ -1292,7 +1292,7 @@ class qn {
1292
1292
  onAccept: l,
1293
1293
  onCancel: i,
1294
1294
  onClosed: f,
1295
- onResize: s,
1295
+ onResize: u,
1296
1296
  onEsc: d,
1297
1297
  onStopMove: c
1298
1298
  }), {
@@ -1364,14 +1364,14 @@ function cl(e = {}) {
1364
1364
  }
1365
1365
  return !1;
1366
1366
  }
1367
- function u(c, g) {
1367
+ function s(c, g) {
1368
1368
  return l(c).reduce((f, d) => f && i(d, g), !0);
1369
1369
  }
1370
- function s(c, g) {
1371
- const m = Object.keys(c), r = m.includes("allOf"), f = m.includes("anyOf"), d = r || f, w = (d ? c[d ? r ? "allOf" : "anyOf" : "allOf"] : [c]).map((B) => u(B, g));
1370
+ function u(c, g) {
1371
+ const m = Object.keys(c), r = m.includes("allOf"), f = m.includes("anyOf"), d = r || f, w = (d ? c[d ? r ? "allOf" : "anyOf" : "allOf"] : [c]).map((B) => s(B, g));
1372
1372
  return r ? !w.includes(!1) : w.includes(!0);
1373
1373
  }
1374
- return { parseValueSchema: s };
1374
+ return { parseValueSchema: u };
1375
1375
  }
1376
1376
  const dl = {
1377
1377
  convertTo: (e, t, n, a) => {
@@ -1727,10 +1727,10 @@ function Gn(e, t, n) {
1727
1727
  function i(d, b) {
1728
1728
  return () => l.parseValueSchema(d, b);
1729
1729
  }
1730
- function u(d, b, p) {
1730
+ function s(d, b, p) {
1731
1731
  return d.includes("visible") && b.visible !== void 0 ? typeof b.visible == "boolean" ? () => !!b.visible : b.visible === void 0 ? !0 : i(b.visible, p) : () => !0;
1732
1732
  }
1733
- function s(d, b, p) {
1733
+ function u(d, b, p) {
1734
1734
  return d.includes("readonly") && b.readonly !== void 0 ? typeof b.readonly == "boolean" ? () => !!b.readonly : i(b.readonly, p) : () => !1;
1735
1735
  }
1736
1736
  function c(d, b) {
@@ -1739,7 +1739,7 @@ function Gn(e, t, n) {
1739
1739
  }
1740
1740
  function g(d, b, p, w, k, B = "", S = "") {
1741
1741
  return Object.keys(d).map((y) => {
1742
- const x = C(1), M = y, D = d[y], P = Object.keys(D), T = D.title, O = D.type, F = o.get(O) || { type: "input-group", enableClear: !1 }, E = D.editor ? Object.assign({}, F, D.editor) : Object.assign({}, F), L = u(P, D, b), A = s(P, D, b);
1742
+ const x = C(1), M = y, D = d[y], P = Object.keys(D), T = D.title, O = D.type, F = o.get(O) || { type: "input-group", enableClear: !1 }, E = D.editor ? Object.assign({}, F, D.editor) : Object.assign({}, F), L = s(P, D, b), A = u(P, D, b);
1743
1743
  E.readonly = E.readonly === void 0 ? A() : E.readonly;
1744
1744
  const H = D.type === "cascade" ? g(D.properties, b, p, w, k, B, S) : [], R = !0;
1745
1745
  let j = c(D, S);
@@ -1839,7 +1839,7 @@ function Un(e, t) {
1839
1839
  const f = a(r);
1840
1840
  return Object.keys(f).reduce((d, b) => (Object.prototype.hasOwnProperty.call(m, b) && (d[b] && wn(d[b]) && wn(m[b] || !m[b]) ? Object.assign(d[b], m[b] || {}) : d[b] = m[b]), d), f), f;
1841
1841
  }
1842
- function u(m, r) {
1842
+ function s(m, r) {
1843
1843
  return Object.keys(m).filter((d) => m[d] != null).reduce((d, b) => {
1844
1844
  if (r.has(b)) {
1845
1845
  const p = r.get(b);
@@ -1854,9 +1854,9 @@ function Un(e, t) {
1854
1854
  return d;
1855
1855
  }, {});
1856
1856
  }
1857
- function s(m, r, f = /* @__PURE__ */ new Map()) {
1857
+ function u(m, r, f = /* @__PURE__ */ new Map()) {
1858
1858
  const d = i(m, r);
1859
- return u(d, f);
1859
+ return s(d, f);
1860
1860
  }
1861
1861
  function c(m) {
1862
1862
  var f;
@@ -1877,18 +1877,18 @@ function Un(e, t) {
1877
1877
  function g(m) {
1878
1878
  n = m;
1879
1879
  }
1880
- return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: g };
1880
+ return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: u, mappingSchemaToProps: s, setDesignerContext: g };
1881
1881
  }
1882
1882
  const _n = {}, Yn = {}, { getSchemaByType: jd, resolveSchemaWithDefaultValue: jl, resolveSchemaToProps: Nd, mappingSchemaToProps: Id, setDesignerContext: Rd } = Un(_n, Yn), Xn = {}, Jn = {};
1883
1883
  Gn(Xn, Jn, jl);
1884
1884
  const Qn = {}, Zn = {}, { getSchemaByType: Ld, resolveSchemaWithDefaultValue: Nl, resolveSchemaToProps: Il, mappingSchemaToProps: Rl, setDesignerContext: Vd } = Un(Qn, Zn), Kn = {}, ea = {};
1885
1885
  Gn(Kn, ea, Nl);
1886
- function Ve(e, t, n = /* @__PURE__ */ new Map(), a = (i, u, s, c) => u, o = {}, l = (i) => i) {
1887
- return Qn[t.title] = t, Zn[t.title] = a, Kn[t.title] = o, ea[t.title] = l, _n[t.title] = t, Yn[t.title] = a, Xn[t.title] = o, Jn[t.title] = l, (i = {}, u = !0) => {
1888
- if (!u)
1886
+ function Ve(e, t, n = /* @__PURE__ */ new Map(), a = (i, s, u, c) => s, o = {}, l = (i) => i) {
1887
+ return Qn[t.title] = t, Zn[t.title] = a, Kn[t.title] = o, ea[t.title] = l, _n[t.title] = t, Yn[t.title] = a, Xn[t.title] = o, Jn[t.title] = l, (i = {}, s = !0) => {
1888
+ if (!s)
1889
1889
  return Rl(i, n);
1890
- const s = Il(i, t, n), c = Object.keys(e).reduce((g, m) => (g[m] = e[m].default, g), {});
1891
- return Object.assign(c, s);
1890
+ const u = Il(i, t, n), c = Object.keys(e).reduce((g, m) => (g[m] = e[m].default, g), {});
1891
+ return Object.assign(c, u);
1892
1892
  };
1893
1893
  }
1894
1894
  function Rt(e, t) {
@@ -2118,7 +2118,7 @@ var Ul = { exports: {} };
2118
2118
  if (!a[c]) {
2119
2119
  var m = typeof Bt == "function" && Bt;
2120
2120
  if (!g && m) return m(c, !0);
2121
- if (u) return u(c, !0);
2121
+ if (s) return s(c, !0);
2122
2122
  var r = new Error("Cannot find module '" + c + "'");
2123
2123
  throw r.code = "MODULE_NOT_FOUND", r;
2124
2124
  }
@@ -2130,23 +2130,23 @@ var Ul = { exports: {} };
2130
2130
  }
2131
2131
  return o[c].exports;
2132
2132
  }
2133
- for (var u = typeof Bt == "function" && Bt, s = 0; s < l.length; s++) i(l[s]);
2133
+ for (var s = typeof Bt == "function" && Bt, u = 0; u < l.length; u++) i(l[u]);
2134
2134
  return i;
2135
2135
  }
2136
2136
  return n;
2137
2137
  }())({
2138
2138
  1: [function(n, a, o) {
2139
- var l = {}, i = "(?:^|\\s)", u = "(?:\\s|$)";
2140
- function s(m) {
2139
+ var l = {}, i = "(?:^|\\s)", s = "(?:\\s|$)";
2140
+ function u(m) {
2141
2141
  var r = l[m];
2142
- return r ? r.lastIndex = 0 : l[m] = r = new RegExp(i + m + u, "g"), r;
2142
+ return r ? r.lastIndex = 0 : l[m] = r = new RegExp(i + m + s, "g"), r;
2143
2143
  }
2144
2144
  function c(m, r) {
2145
2145
  var f = m.className;
2146
- f.length ? s(r).test(f) || (m.className += " " + r) : m.className = r;
2146
+ f.length ? u(r).test(f) || (m.className += " " + r) : m.className = r;
2147
2147
  }
2148
2148
  function g(m, r) {
2149
- m.className = m.className.replace(s(r), " ").trim();
2149
+ m.className = m.className.replace(u(r), " ").trim();
2150
2150
  }
2151
2151
  a.exports = {
2152
2152
  add: c,
@@ -2155,7 +2155,7 @@ var Ul = { exports: {} };
2155
2155
  }, {}],
2156
2156
  2: [function(n, a, o) {
2157
2157
  (function(l) {
2158
- var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, g = c.documentElement;
2158
+ var i = n("contra/emitter"), s = n("crossvent"), u = n("./classes"), c = document, g = c.documentElement;
2159
2159
  function m(T, O) {
2160
2160
  var F = arguments.length;
2161
2161
  F === 1 && Array.isArray(T) === !1 && (O = T, T = []);
@@ -2185,7 +2185,7 @@ var Ul = { exports: {} };
2185
2185
  }
2186
2186
  function it(N) {
2187
2187
  var z = N ? "remove" : "add";
2188
- u[z](g, "selectstart", rt), u[z](g, "click", rt);
2188
+ s[z](g, "selectstart", rt), s[z](g, "click", rt);
2189
2189
  }
2190
2190
  function Je() {
2191
2191
  $e(!0), We({});
@@ -2214,7 +2214,7 @@ var Ul = { exports: {} };
2214
2214
  return;
2215
2215
  }
2216
2216
  var K = he;
2217
- Oe(!0), it(), Qe(), He(K), s.add(W || A, "gu-transit"), Wt(), Ht(), de = 0, je(N);
2217
+ Oe(!0), it(), Qe(), He(K), u.add(W || A, "gu-transit"), Wt(), Ht(), de = 0, je(N);
2218
2218
  }
2219
2219
  }
2220
2220
  }
@@ -2280,7 +2280,7 @@ var Ul = { exports: {} };
2280
2280
  }
2281
2281
  function Z() {
2282
2282
  var N = W || A;
2283
- Pe(), qt(), Gt(), N && s.rm(N, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", N, ce, L), oe.emit("dragend", N, de), L = A = W = j = U = ee = ce = null;
2283
+ Pe(), qt(), Gt(), N && u.rm(N, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", N, ce, L), oe.emit("dragend", N, de), L = A = W = j = U = ee = ce = null;
2284
2284
  }
2285
2285
  function ue(N, z) {
2286
2286
  var q;
@@ -2335,23 +2335,23 @@ var Ul = { exports: {} };
2335
2335
  (N === z || N === M(z)) && (U = M(z)), (N === null && q || N !== z && N !== M(z)) && (U = N);
2336
2336
  }
2337
2337
  function At(N) {
2338
- s.rm(N, "gu-hide");
2338
+ u.rm(N, "gu-hide");
2339
2339
  }
2340
2340
  function zt(N) {
2341
- oe.dragging && s.add(N, "gu-hide");
2341
+ oe.dragging && u.add(N, "gu-hide");
2342
2342
  }
2343
2343
  function Ht() {
2344
- E || (E = document.createElement("div"), E.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", E.innerHTML = _.getMirrorText && _.getMirrorText(A) || "控件", s.add(E, "gu-mirror"), _.mirrorContainer.appendChild(E), d(g, "add", "mousemove", je), s.add(_.mirrorContainer, "gu-unselectable"), oe.emit("cloned", E, A, "mirror"));
2344
+ E || (E = document.createElement("div"), E.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", E.innerHTML = _.getMirrorText && _.getMirrorText(A) || "控件", u.add(E, "gu-mirror"), _.mirrorContainer.appendChild(E), d(g, "add", "mousemove", je), u.add(_.mirrorContainer, "gu-unselectable"), oe.emit("cloned", E, A, "mirror"));
2345
2345
  }
2346
2346
  function Wt() {
2347
- if (X = document.createElement("div"), s.add(X, "gu-insertion"), A) {
2347
+ if (X = document.createElement("div"), u.add(X, "gu-insertion"), A) {
2348
2348
  var N = A.getBoundingClientRect();
2349
2349
  X.style.left = N.left + "px", X.style.top = N.top + "px";
2350
2350
  }
2351
2351
  le = !1, _.mirrorContainer.appendChild(X);
2352
2352
  }
2353
2353
  function qt() {
2354
- E && (s.rm(_.mirrorContainer, "gu-unselectable"), d(g, "remove", "mousemove", je), h(E).removeChild(E), E = null);
2354
+ E && (u.rm(_.mirrorContainer, "gu-unselectable"), d(g, "remove", "mousemove", je), h(E).removeChild(E), E = null);
2355
2355
  }
2356
2356
  function Gt() {
2357
2357
  X && (h(X).removeChild(X), X = null);
@@ -2491,7 +2491,7 @@ var Ul = { exports: {} };
2491
2491
  mousedown: "MSPointerDown",
2492
2492
  mousemove: "MSPointerMove"
2493
2493
  };
2494
- l.navigator.pointerEnabled ? u[O](T, A[F], E) : l.navigator.msPointerEnabled ? u[O](T, H[F], E) : (u[O](T, L[F], E), u[O](T, F, E));
2494
+ l.navigator.pointerEnabled ? s[O](T, A[F], E) : l.navigator.msPointerEnabled ? s[O](T, H[F], E) : (s[O](T, L[F], E), s[O](T, F, E));
2495
2495
  }
2496
2496
  function b(T) {
2497
2497
  if (T.touches !== void 0)
@@ -2556,27 +2556,27 @@ var Ul = { exports: {} };
2556
2556
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
2557
2557
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
2558
2558
  3: [function(n, a, o) {
2559
- a.exports = function(i, u) {
2560
- return Array.prototype.slice.call(i, u);
2559
+ a.exports = function(i, s) {
2560
+ return Array.prototype.slice.call(i, s);
2561
2561
  };
2562
2562
  }, {}],
2563
2563
  4: [function(n, a, o) {
2564
2564
  var l = n("ticky");
2565
- a.exports = function(u, s, c) {
2566
- u && l(function() {
2567
- u.apply(c || null, s || []);
2565
+ a.exports = function(s, u, c) {
2566
+ s && l(function() {
2567
+ s.apply(c || null, u || []);
2568
2568
  });
2569
2569
  };
2570
2570
  }, { ticky: 10 }],
2571
2571
  5: [function(n, a, o) {
2572
2572
  var l = n("atoa"), i = n("./debounce");
2573
- a.exports = function(s, c) {
2573
+ a.exports = function(u, c) {
2574
2574
  var g = c || {}, m = {};
2575
- return s === void 0 && (s = {}), s.on = function(r, f) {
2576
- return m[r] ? m[r].push(f) : m[r] = [f], s;
2577
- }, s.once = function(r, f) {
2578
- return f._once = !0, s.on(r, f), s;
2579
- }, s.off = function(r, f) {
2575
+ return u === void 0 && (u = {}), u.on = function(r, f) {
2576
+ return m[r] ? m[r].push(f) : m[r] = [f], u;
2577
+ }, u.once = function(r, f) {
2578
+ return f._once = !0, u.on(r, f), u;
2579
+ }, u.off = function(r, f) {
2580
2580
  var d = arguments.length;
2581
2581
  if (d === 1)
2582
2582
  delete m[r];
@@ -2585,29 +2585,29 @@ var Ul = { exports: {} };
2585
2585
  else {
2586
2586
  var b = m[r];
2587
2587
  if (!b)
2588
- return s;
2588
+ return u;
2589
2589
  b.splice(b.indexOf(f), 1);
2590
2590
  }
2591
- return s;
2592
- }, s.emit = function() {
2591
+ return u;
2592
+ }, u.emit = function() {
2593
2593
  var r = l(arguments);
2594
- return s.emitterSnapshot(r.shift()).apply(this, r);
2595
- }, s.emitterSnapshot = function(r) {
2594
+ return u.emitterSnapshot(r.shift()).apply(this, r);
2595
+ }, u.emitterSnapshot = function(r) {
2596
2596
  var f = (m[r] || []).slice(0);
2597
2597
  return function() {
2598
- var d = l(arguments), b = this || s;
2598
+ var d = l(arguments), b = this || u;
2599
2599
  if (r === "error" && g.throws !== !1 && !f.length)
2600
2600
  throw d.length === 1 ? d[0] : d;
2601
2601
  return f.forEach(function(w) {
2602
- g.async ? i(w, d, b) : w.apply(b, d), w._once && s.off(r, w);
2603
- }), s;
2602
+ g.async ? i(w, d, b) : w.apply(b, d), w._once && u.off(r, w);
2603
+ }), u;
2604
2604
  };
2605
- }, s;
2605
+ }, u;
2606
2606
  };
2607
2607
  }, { "./debounce": 4, atoa: 3 }],
2608
2608
  6: [function(n, a, o) {
2609
2609
  (function(l) {
2610
- var i = n("custom-event"), u = n("./eventmap"), s = l.document, c = r, g = d, m = [];
2610
+ var i = n("custom-event"), s = n("./eventmap"), u = l.document, c = r, g = d, m = [];
2611
2611
  l.addEventListener || (c = f, g = b), a.exports = {
2612
2612
  add: c,
2613
2613
  remove: g,
@@ -2628,11 +2628,11 @@ var Ul = { exports: {} };
2628
2628
  return h.detachEvent("on" + y, M);
2629
2629
  }
2630
2630
  function p(h, y, x) {
2631
- var M = u.indexOf(y) === -1 ? P() : D();
2631
+ var M = s.indexOf(y) === -1 ? P() : D();
2632
2632
  h.dispatchEvent ? h.dispatchEvent(M) : h.fireEvent("on" + y, M);
2633
2633
  function D() {
2634
2634
  var T;
2635
- return s.createEvent ? (T = s.createEvent("Event"), T.initEvent(y, !0, !0)) : s.createEventObject && (T = s.createEventObject()), T;
2635
+ return u.createEvent ? (T = u.createEvent("Event"), T.initEvent(y, !0, !0)) : u.createEventObject && (T = u.createEventObject()), T;
2636
2636
  }
2637
2637
  function P() {
2638
2638
  return new i(y, { detail: x });
@@ -2674,24 +2674,24 @@ var Ul = { exports: {} };
2674
2674
  }, { "./eventmap": 7, "custom-event": 8 }],
2675
2675
  7: [function(n, a, o) {
2676
2676
  (function(l) {
2677
- var i = [], u = "", s = /^on/;
2678
- for (u in l)
2679
- s.test(u) && i.push(u.slice(2));
2677
+ var i = [], s = "", u = /^on/;
2678
+ for (s in l)
2679
+ u.test(s) && i.push(s.slice(2));
2680
2680
  a.exports = i;
2681
2681
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
2682
2682
  }, {}],
2683
2683
  8: [function(n, a, o) {
2684
2684
  (function(l) {
2685
2685
  var i = l.CustomEvent;
2686
- function u() {
2686
+ function s() {
2687
2687
  try {
2688
- var s = new i("cat", { detail: { foo: "bar" } });
2689
- return s.type === "cat" && s.detail.foo === "bar";
2688
+ var u = new i("cat", { detail: { foo: "bar" } });
2689
+ return u.type === "cat" && u.detail.foo === "bar";
2690
2690
  } catch {
2691
2691
  }
2692
2692
  return !1;
2693
2693
  }
2694
- a.exports = u() ? i : (
2694
+ a.exports = s() ? i : (
2695
2695
  // IE >= 9
2696
2696
  typeof document < "u" && typeof document.createEvent == "function" ? function(c, g) {
2697
2697
  var m = document.createEvent("CustomEvent");
@@ -2707,8 +2707,8 @@ var Ul = { exports: {} };
2707
2707
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
2708
2708
  }, {}],
2709
2709
  9: [function(n, a, o) {
2710
- var l = a.exports = {}, i, u;
2711
- function s() {
2710
+ var l = a.exports = {}, i, s;
2711
+ function u() {
2712
2712
  throw new Error("setTimeout has not been defined");
2713
2713
  }
2714
2714
  function c() {
@@ -2716,20 +2716,20 @@ var Ul = { exports: {} };
2716
2716
  }
2717
2717
  (function() {
2718
2718
  try {
2719
- typeof setTimeout == "function" ? i = setTimeout : i = s;
2719
+ typeof setTimeout == "function" ? i = setTimeout : i = u;
2720
2720
  } catch {
2721
- i = s;
2721
+ i = u;
2722
2722
  }
2723
2723
  try {
2724
- typeof clearTimeout == "function" ? u = clearTimeout : u = c;
2724
+ typeof clearTimeout == "function" ? s = clearTimeout : s = c;
2725
2725
  } catch {
2726
- u = c;
2726
+ s = c;
2727
2727
  }
2728
2728
  })();
2729
2729
  function g(S) {
2730
2730
  if (i === setTimeout)
2731
2731
  return setTimeout(S, 0);
2732
- if ((i === s || !i) && setTimeout)
2732
+ if ((i === u || !i) && setTimeout)
2733
2733
  return i = setTimeout, setTimeout(S, 0);
2734
2734
  try {
2735
2735
  return i(S, 0);
@@ -2742,17 +2742,17 @@ var Ul = { exports: {} };
2742
2742
  }
2743
2743
  }
2744
2744
  function m(S) {
2745
- if (u === clearTimeout)
2745
+ if (s === clearTimeout)
2746
2746
  return clearTimeout(S);
2747
- if ((u === c || !u) && clearTimeout)
2748
- return u = clearTimeout, clearTimeout(S);
2747
+ if ((s === c || !s) && clearTimeout)
2748
+ return s = clearTimeout, clearTimeout(S);
2749
2749
  try {
2750
- return u(S);
2750
+ return s(S);
2751
2751
  } catch {
2752
2752
  try {
2753
- return u.call(null, S);
2753
+ return s.call(null, S);
2754
2754
  } catch {
2755
- return u.call(this, S);
2755
+ return s.call(this, S);
2756
2756
  }
2757
2757
  }
2758
2758
  }
@@ -2801,21 +2801,21 @@ var Ul = { exports: {} };
2801
2801
  }, {}],
2802
2802
  10: [function(n, a, o) {
2803
2803
  (function(l) {
2804
- var i = typeof l == "function", u;
2805
- i ? u = function(s) {
2806
- l(s);
2807
- } : u = function(s) {
2808
- setTimeout(s, 0);
2809
- }, a.exports = u;
2804
+ var i = typeof l == "function", s;
2805
+ i ? s = function(u) {
2806
+ l(u);
2807
+ } : s = function(u) {
2808
+ setTimeout(u, 0);
2809
+ }, a.exports = s;
2810
2810
  }).call(this, n("timers").setImmediate);
2811
2811
  }, { timers: 11 }],
2812
2812
  11: [function(n, a, o) {
2813
2813
  (function(l, i) {
2814
- var u = n("process/browser.js").nextTick, s = Function.prototype.apply, c = Array.prototype.slice, g = {}, m = 0;
2814
+ var s = n("process/browser.js").nextTick, u = Function.prototype.apply, c = Array.prototype.slice, g = {}, m = 0;
2815
2815
  o.setTimeout = function() {
2816
- return new r(s.call(setTimeout, window, arguments), clearTimeout);
2816
+ return new r(u.call(setTimeout, window, arguments), clearTimeout);
2817
2817
  }, o.setInterval = function() {
2818
- return new r(s.call(setInterval, window, arguments), clearInterval);
2818
+ return new r(u.call(setInterval, window, arguments), clearInterval);
2819
2819
  }, o.clearTimeout = o.clearInterval = function(f) {
2820
2820
  f.close();
2821
2821
  };
@@ -2837,7 +2837,7 @@ var Ul = { exports: {} };
2837
2837
  }, d));
2838
2838
  }, o.setImmediate = typeof l == "function" ? l : function(f) {
2839
2839
  var d = m++, b = arguments.length < 2 ? !1 : c.call(arguments, 1);
2840
- return g[d] = !0, u(function() {
2840
+ return g[d] = !0, s(function() {
2841
2841
  g[d] && (b ? f.apply(null, b) : f.call(null), o.clearImmediate(d));
2842
2842
  }), d;
2843
2843
  }, o.clearImmediate = typeof i == "function" ? i : function(f) {
@@ -2873,13 +2873,13 @@ const _l = {
2873
2873
  const {
2874
2874
  locale: n,
2875
2875
  t: a
2876
- } = Ft(), o = C(e.animate), l = "fadeOut", i = I(() => e.options), u = C(!1), s = I(() => i.value.title && i.value.message), c = I(() => !i.value.title && i.value.message), g = I(() => {
2876
+ } = Ft(), o = C(e.animate), l = "fadeOut", i = I(() => e.options), s = C(!1), u = I(() => i.value.title && i.value.message), c = I(() => !i.value.title && i.value.message), g = I(() => {
2877
2877
  const S = {
2878
- animated: u.value,
2878
+ animated: s.value,
2879
2879
  toast: !0,
2880
- "toast--only-content": !s.value
2880
+ "toast--only-content": !u.value
2881
2881
  };
2882
- return S[e.animate] = !1, S[l] = u.value, S["toasty-type-" + i.value.type] = !0, i.value.theme && (S[i.value.theme] = !0), S;
2882
+ return S[e.animate] = !1, S[l] = s.value, S["toasty-type-" + i.value.type] = !0, i.value.theme && (S[i.value.theme] = !0), S;
2883
2883
  }), m = I(() => {
2884
2884
  const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
2885
2885
  "f-icon": !0
@@ -2890,7 +2890,7 @@ const _l = {
2890
2890
  overflowWrap: "break-word"
2891
2891
  } : {});
2892
2892
  function p(S) {
2893
- S.stopPropagation(), S.preventDefault(), u.value = !1, setTimeout(() => {
2893
+ S.stopPropagation(), S.preventDefault(), s.value = !1, setTimeout(() => {
2894
2894
  t.emit("close", i.value);
2895
2895
  }, 200);
2896
2896
  }
@@ -2922,13 +2922,13 @@ const _l = {
2922
2922
  class: "f-icon modal_close"
2923
2923
  }, null)]), r.value && v("section", {
2924
2924
  class: "modal-tips"
2925
- }, [!s.value && v("div", {
2925
+ }, [!u.value && v("div", {
2926
2926
  class: "float-left modal-tips-iconwrap"
2927
2927
  }, [v("span", {
2928
2928
  class: m.value
2929
2929
  }, null)]), v("div", {
2930
2930
  class: "modal-tips-content"
2931
- }, [s.value && v(ot, null, [v("h5", {
2931
+ }, [u.value && v(ot, null, [v("h5", {
2932
2932
  class: "toast-title modal-tips-title",
2933
2933
  innerHTML: i.value.title
2934
2934
  }, null), v("p", {
@@ -2961,25 +2961,25 @@ const _l = {
2961
2961
  right: 12,
2962
2962
  top: 20,
2963
2963
  bottom: 12
2964
- }, o = C(), l = C(e.options), i = C(e.showCloseButton), u = I(() => e.position || "bottom-right"), s = I(() => e.timeout != null ? e.timeout : 3e3), c = I(() => {
2964
+ }, o = C(), l = C(e.options), i = C(e.showCloseButton), s = I(() => e.position || "bottom-right"), u = I(() => e.timeout != null ? e.timeout : 3e3), c = I(() => {
2965
2965
  const r = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top, d = {
2966
2966
  transition: "all 0.2s ease",
2967
- left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
2968
- right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
2969
- top: u.value.indexOf("top") > -1 ? `${f}px` : "",
2970
- bottom: u.value.indexOf("bottom") > -1 ? `${r}px` : ""
2967
+ left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
2968
+ right: s.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
2969
+ top: s.value.indexOf("top") > -1 ? `${f}px` : "",
2970
+ bottom: s.value.indexOf("bottom") > -1 ? `${r}px` : ""
2971
2971
  };
2972
- return u.value.indexOf("center") > -1 && (d.left = "50%", d.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (d.top = "50%", d.transform = "translate(-50%, -50%)")), d;
2972
+ return s.value.indexOf("center") > -1 && (d.left = "50%", d.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (d.top = "50%", d.transform = "translate(-50%, -50%)")), d;
2973
2973
  });
2974
2974
  function g(r) {
2975
2975
  t.emit("close");
2976
2976
  }
2977
- s.value && setTimeout(() => {
2977
+ u.value && setTimeout(() => {
2978
2978
  g();
2979
- }, s.value), t.expose({
2979
+ }, u.value), t.expose({
2980
2980
  closeToast: g,
2981
2981
  container: o,
2982
- notifyPosition: u
2982
+ notifyPosition: s
2983
2983
  });
2984
2984
  function m(r, f) {
2985
2985
  g();
@@ -3020,10 +3020,10 @@ class Xl {
3020
3020
  const i = an({
3021
3021
  setup() {
3022
3022
  var c;
3023
- const u = C();
3024
- function s() {
3025
- u.value.container.style.transform = "scale(0)", setTimeout(() => {
3026
- n.updateNotifyPositionForClose(o, u), i.unmount();
3023
+ const s = C();
3024
+ function u() {
3025
+ s.value.container.style.transform = "scale(0)", setTimeout(() => {
3026
+ n.updateNotifyPositionForClose(o, s), i.unmount();
3027
3027
  }, 220);
3028
3028
  }
3029
3029
  if (o.position.indexOf("top") > -1) {
@@ -3036,16 +3036,16 @@ class Xl {
3036
3036
  return o.safeHtml && ((c = o.options) != null && c.message) && (o.options.message = n.escapeAllHtml(o.options.message)), kt(() => {
3037
3037
  document.body.removeChild(l);
3038
3038
  }), ve(() => {
3039
- n.updateNotifyPositionForCreate(o, u);
3039
+ n.updateNotifyPositionForCreate(o, s);
3040
3040
  }), () => v(Dn, {
3041
3041
  mode: "out-in",
3042
3042
  name: "fade",
3043
3043
  appear: !0
3044
3044
  }, {
3045
3045
  default: () => [v(Et, St({
3046
- ref: u
3046
+ ref: s
3047
3047
  }, o, {
3048
- onClose: s
3048
+ onClose: u
3049
3049
  }), null)]
3050
3050
  });
3051
3051
  }
@@ -3079,8 +3079,8 @@ class Xl {
3079
3079
  return this.createNotifyInstance(t);
3080
3080
  }
3081
3081
  buildNotifyProps(t, n) {
3082
- let a = "", o = "", l, i, u;
3083
- typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", i = n.position || null, u = n.showCloseButton != null ? n.showCloseButton : null, l = n.timeout != null ? n.timeout : null);
3082
+ let a = "", o = "", l, i, s;
3083
+ typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", i = n.position || null, s = n.showCloseButton != null ? n.showCloseButton : null, l = n.timeout != null ? n.timeout : null);
3084
3084
  const c = {
3085
3085
  options: {
3086
3086
  type: t,
@@ -3088,7 +3088,7 @@ class Xl {
3088
3088
  title: o
3089
3089
  }
3090
3090
  };
3091
- return i != null && (c.position = i), u != null && (c.showCloseButton = u), l != null && (c.timeout = l), c;
3091
+ return i != null && (c.position = i), s != null && (c.showCloseButton = s), l != null && (c.timeout = l), c;
3092
3092
  }
3093
3093
  info(t) {
3094
3094
  const n = this.buildNotifyProps("info", t);
@@ -3271,7 +3271,7 @@ const Jl = {
3271
3271
  }
3272
3272
  }
3273
3273
  };
3274
- function Ql(e, t, n, a, o, l, i, u, s, c, g, m, r, f, d, b, p) {
3274
+ function Ql(e, t, n, a, o, l, i, s, u, c, g, m, r, f, d, b, p) {
3275
3275
  const {
3276
3276
  calculateCellPositionInRow: w
3277
3277
  } = l, {
@@ -3284,7 +3284,7 @@ function Ql(e, t, n, a, o, l, i, u, s, c, g, m, r, f, d, b, p) {
3284
3284
  rightFixedGridDataStyle: x
3285
3285
  } = f, {
3286
3286
  renderDataRow: M
3287
- } = Qa(e, t, k, p, u, s, c, g, m, r, f, d, b), D = [M];
3287
+ } = Qa(e, t, k, p, s, u, c, g, m, r, f, d, b), D = [M];
3288
3288
  function P(L, A) {
3289
3289
  const H = w(L);
3290
3290
  return p.value.filter((R) => R.visible !== !1).map((R, j) => D[R.type](R, H, A, j));
@@ -3331,13 +3331,13 @@ const Zl = /* @__PURE__ */ ae({
3331
3331
  setup(e, t) {
3332
3332
  var vn, hn;
3333
3333
  const a = ((vn = e.rowOption) == null ? void 0 : vn.height) || 28, o = C(20), l = C(e.columns), i = Za(e), {
3334
- idField: u
3335
- } = i, s = C(), c = C(), g = C(), m = C(), r = C(), f = C([]), d = C(!1), b = C(((hn = e.rowOption) == null ? void 0 : hn.wrapContent) || !1), p = Ka(e, i), w = eo(e, t), k = to(e), {
3334
+ idField: s
3335
+ } = i, u = C(), c = C(), g = C(), m = C(), r = C(), f = C([]), d = C(!1), b = C(((hn = e.rowOption) == null ? void 0 : hn.wrapContent) || !1), p = Ka(e, i), w = eo(e, t), k = to(e), {
3336
3336
  collapseField: B
3337
3337
  } = k, {
3338
3338
  showLoading: S,
3339
3339
  renderLoading: h
3340
- } = no(e, s), y = ao(e, /* @__PURE__ */ new Map(), w, k, i), {
3340
+ } = no(e, u), y = ao(e, /* @__PURE__ */ new Map(), w, k, i), {
3341
3341
  dataView: x
3342
3342
  } = y, M = oo(e, y, i, f, t), {
3343
3343
  showSelection: D,
@@ -3435,7 +3435,7 @@ const Zl = /* @__PURE__ */ ae({
3435
3435
  y.insertNewChildDataItem(G), f.value = Oe(0, F.value + 0 - 1);
3436
3436
  }
3437
3437
  function Yt(G, J) {
3438
- const me = f.value.find((xe) => xe.raw[u.value] === J), be = me ? me.dataIndex - 1 : -1;
3438
+ const me = f.value.find((xe) => xe.raw[s.value] === J), be = me ? me.dataIndex - 1 : -1;
3439
3439
  y.insertNewChildDataItems(G, be);
3440
3440
  }
3441
3441
  function Xt() {
@@ -3492,7 +3492,7 @@ const Zl = /* @__PURE__ */ ae({
3492
3492
  return M.currentSelectedDataId.value;
3493
3493
  }
3494
3494
  function ht(G, J, me) {
3495
- const be = x.value.find((xe) => xe[u.value] === G);
3495
+ const be = x.value.find((xe) => xe[s.value] === G);
3496
3496
  if (be) {
3497
3497
  if (Object.keys(be).forEach((ye) => {
3498
3498
  Object.prototype.hasOwnProperty.call(J, ye) && (be[ye] = J[ye]);
@@ -3505,7 +3505,7 @@ const Zl = /* @__PURE__ */ ae({
3505
3505
  } = me;
3506
3506
  ye && !Ne(J[ye]) && (be.__fv_collapse__ = J[ye]), Ke && !Ne(J[Ke]) && (be.__fv_checked__ = J[Ke]), Ze && !Ne(J[Ze]) && (be.__fv_disabled__ = J[Ze]), et && !Ne(J[et]) && (be.__fv_visible__ = J[et]);
3507
3507
  }
3508
- const xe = f.value.find((ye) => ye.raw[u.value] === G), gn = f.value.findIndex((ye) => ye.raw[u.value] === G);
3508
+ const xe = f.value.find((ye) => ye.raw[s.value] === G), gn = f.value.findIndex((ye) => ye.raw[s.value] === G);
3509
3509
  if (xe) {
3510
3510
  if (xe.raw = be, Object.keys(xe.data).forEach((ye) => {
3511
3511
  xe.data[ye].updateData(be);
@@ -3526,7 +3526,7 @@ const Zl = /* @__PURE__ */ ae({
3526
3526
  return Object.prototype.hasOwnProperty.call(G, "raw") ? y.hasRealChildren(G.raw) : y.hasRealChildren(G);
3527
3527
  }
3528
3528
  function bt(G) {
3529
- const J = y.dataView.value.find((me) => me[u.value] === G);
3529
+ const J = y.dataView.value.find((me) => me[s.value] === G);
3530
3530
  return J ? J[B.value] : "";
3531
3531
  }
3532
3532
  function Fa() {
@@ -3594,7 +3594,7 @@ const Zl = /* @__PURE__ */ ae({
3594
3594
  renderDataGridSummary: Pa
3595
3595
  } = No(e, y, W);
3596
3596
  return () => v("div", {
3597
- ref: s,
3597
+ ref: u,
3598
3598
  class: $.value,
3599
3599
  style: Ma.value,
3600
3600
  onWheel: mt
@@ -3753,12 +3753,12 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
3753
3753
  props: cn,
3754
3754
  emits: ["click"],
3755
3755
  setup(e, t) {
3756
- const n = C(e.direction), a = C(e.fill), o = C(e.height), l = C(e.steps), i = C(e.activeIndex), u = I(() => ({
3756
+ const n = C(e.direction), a = C(e.fill), o = C(e.height), l = C(e.steps), i = C(e.activeIndex), s = I(() => ({
3757
3757
  "f-progress-step-list": n.value === "horizontal",
3758
3758
  "f-progress-step-list-block": n.value === "vertical",
3759
3759
  "f-progress-step-horizontal-fill": n.value === "horizontal" && a.value,
3760
3760
  "f-progress-step-vertical-fill": n.value === "vertical" && a.value
3761
- })), s = I(() => ({
3761
+ })), u = I(() => ({
3762
3762
  height: n.value === "vertical" ? `${o.value}px` : ""
3763
3763
  }));
3764
3764
  function c(S, h) {
@@ -3852,8 +3852,8 @@ const ti = "https://json-schema.org/draft/2020-12/schema", ni = "https://farris-
3852
3852
  }), () => v("div", {
3853
3853
  class: "f-progress-step"
3854
3854
  }, [v("ul", {
3855
- class: u.value,
3856
- style: s.value
3855
+ class: s.value,
3856
+ style: u.value
3857
3857
  }, [B()])]);
3858
3858
  }
3859
3859
  });
@@ -3861,10 +3861,10 @@ function dn(e, t, n) {
3861
3861
  var T;
3862
3862
  const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
3863
3863
  let i;
3864
- function u() {
3864
+ function s() {
3865
3865
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
3866
3866
  }
3867
- function s() {
3867
+ function u() {
3868
3868
  return !1;
3869
3869
  }
3870
3870
  function c() {
@@ -3986,8 +3986,8 @@ function dn(e, t, n) {
3986
3986
  return n.onPropertyChanged(O);
3987
3987
  }
3988
3988
  return l.value = {
3989
- canMove: u(),
3990
- canSelectParent: s(),
3989
+ canMove: s(),
3990
+ canSelectParent: u(),
3991
3991
  canDelete: c(),
3992
3992
  canNested: !g(),
3993
3993
  contents: t == null ? void 0 : t.schema.contents,
@@ -4019,7 +4019,7 @@ const mi = /* @__PURE__ */ ae({
4019
4019
  props: cn,
4020
4020
  emits: [],
4021
4021
  setup(e, t) {
4022
- const n = C(e.direction), a = C(e.fill), o = C(e.height), l = C(e.steps), i = C(0), u = C(e.clickable), s = C(0), c = C(), g = Ce("design-item-context"), m = dn(c, g);
4022
+ const n = C(e.direction), a = C(e.fill), o = C(e.height), l = C(e.steps), i = C(0), s = C(e.clickable), u = C(0), c = C(), g = Ce("design-item-context"), m = dn(c, g);
4023
4023
  ve(() => {
4024
4024
  c.value.componentInstance = m;
4025
4025
  }), t.expose(m.value);
@@ -4035,7 +4035,7 @@ const mi = /* @__PURE__ */ ae({
4035
4035
  const T = {
4036
4036
  step: !0,
4037
4037
  active: P === i.value,
4038
- clickable: u.value,
4038
+ clickable: s.value,
4039
4039
  "click-disable": D.disable,
4040
4040
  current: P === i.value
4041
4041
  };
@@ -4064,7 +4064,7 @@ const mi = /* @__PURE__ */ ae({
4064
4064
  const T = [];
4065
4065
  return D.icon ? T.push(v("span", {
4066
4066
  class: w(D, !1)
4067
- }, null)) : P >= i.value || P === s.value ? T.push(v("span", {
4067
+ }, null)) : P >= i.value || P === u.value ? T.push(v("span", {
4068
4068
  class: "step-icon"
4069
4069
  }, [P + 1])) : T.push(v("span", {
4070
4070
  class: w(D, !0)
@@ -4185,9 +4185,9 @@ class vi {
4185
4185
  contents: o
4186
4186
  }), n.contents = [a];
4187
4187
  const { selectedFields: l } = t;
4188
- l == null || l.forEach((u) => {
4189
- if (u.$type === bn.SimpleField) {
4190
- const s = Le(u), c = this.resolveControlClassByFormColumns(t), g = this.controlCreatorUtils.setFormFieldProperty(s, "", c);
4188
+ l == null || l.forEach((s) => {
4189
+ if (s.$type === bn.SimpleField) {
4190
+ const u = Le(s), c = this.resolveControlClassByFormColumns(t), g = this.controlCreatorUtils.setFormFieldProperty(u, "", c);
4191
4191
  g && o.push(g);
4192
4192
  }
4193
4193
  });
@@ -4255,12 +4255,12 @@ class vi {
4255
4255
  }
4256
4256
  }
4257
4257
  function hi(e, t, n, a) {
4258
- var l, i, u, s, c, g;
4258
+ var l, i, s, u, c, g;
4259
4259
  const o = n.parentComponentInstance;
4260
4260
  if (o && a) {
4261
4261
  const m = (l = o.schema) == null ? void 0 : l.type, f = {
4262
4262
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
4263
- componentName: ((i = n.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((s = (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : s.name) || "标题",
4263
+ componentName: ((i = n.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((u = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : u.name) || "标题",
4264
4264
  componentType: "form",
4265
4265
  formColumns: m === "splitter-pane" ? 1 : 4,
4266
4266
  parentContainerId: o.schema.id,
@@ -4465,14 +4465,14 @@ function Wi() {
4465
4465
  return { onCopy: e };
4466
4466
  }
4467
4467
  function qi(e, t, n, a) {
4468
- const o = C(14), l = C(140), i = C(""), u = C(a.value.length), s = I(() => a.value), c = I(() => ({
4468
+ const o = C(14), l = C(140), i = C(""), s = C(a.value.length), u = I(() => a.value), c = I(() => ({
4469
4469
  "font-size": `${o.value}px`,
4470
4470
  height: "100%"
4471
4471
  }));
4472
4472
  function g(m) {
4473
4473
  if (m.currentTarget) {
4474
4474
  const r = m.currentTarget.value || "";
4475
- u.value = r.length;
4475
+ s.value = r.length;
4476
4476
  }
4477
4477
  }
4478
4478
  return () => v(ot, null, [v("textarea", {
@@ -4483,16 +4483,16 @@ function qi(e, t, n, a) {
4483
4483
  rows: "4",
4484
4484
  maxlength: l.value,
4485
4485
  onInput: (m) => g(m)
4486
- }, [s.value]), v("span", {
4486
+ }, [u.value]), v("span", {
4487
4487
  class: "textarea-wordcount",
4488
4488
  title: i.value,
4489
4489
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
4490
- }, [u.value + " / " + l.value])]);
4490
+ }, [s.value + " / " + l.value])]);
4491
4491
  }
4492
4492
  function Gi(e, t, n, a) {
4493
4493
  const o = qi(e, t, n, a), l = /* @__PURE__ */ new Map([["text-area", o]]);
4494
- function i(u) {
4495
- return l.get(u) || null;
4494
+ function i(s) {
4495
+ return l.get(s) || null;
4496
4496
  }
4497
4497
  return { getEditorRender: i };
4498
4498
  }
@@ -4556,18 +4556,18 @@ function Yi(e, t) {
4556
4556
  const o = I(() => !!e.value && !!e.value.date), l = I(() => {
4557
4557
  const f = e.value && e.value.date || "";
4558
4558
  return `${t.exception.happend} : ${f}`;
4559
- }), i = I(() => !!e.value && !!e.value.detail), u = I(() => e.value ? n(e.value.detail) > 160 : !1), s = C(!1), c = I(() => s.value ? t.exception.collapse : t.exception.expand), g = I(() => {
4559
+ }), i = I(() => !!e.value && !!e.value.detail), s = I(() => e.value ? n(e.value.detail) > 160 : !1), u = C(!1), c = I(() => u.value ? t.exception.collapse : t.exception.expand), g = I(() => {
4560
4560
  const f = t.exception.detail + " : " + (e.value && e.value.detail) || "";
4561
- return s.value ? f : a(f, 160);
4561
+ return u.value ? f : a(f, 160);
4562
4562
  }), m = I(() => ({
4563
4563
  position: "absolute",
4564
4564
  right: 0,
4565
- bottom: s.value ? 0 : "2px",
4565
+ bottom: u.value ? 0 : "2px",
4566
4566
  color: "#2A87FF",
4567
4567
  cursor: "pointer"
4568
4568
  }));
4569
4569
  function r() {
4570
- s.value = !s.value;
4570
+ u.value = !u.value;
4571
4571
  }
4572
4572
  return () => v("div", {
4573
4573
  class: "toast-msg-detail"
@@ -4577,7 +4577,7 @@ function Yi(e, t) {
4577
4577
  class: "exception_error_msg"
4578
4578
  }, [v("div", {
4579
4579
  innerHTML: g.value
4580
- }, null), u.value && v("span", {
4580
+ }, null), s.value && v("span", {
4581
4581
  style: m.value,
4582
4582
  onClick: r
4583
4583
  }, [c.value])])])]);
@@ -4594,9 +4594,9 @@ function Ji(e, t, n, a, o) {
4594
4594
  "f-icon": !0
4595
4595
  }, p = `f-icon-${d}`;
4596
4596
  return b[p] = !0, b;
4597
- }), u = I(() => n.value || l.value && l.value.message), s = I(() => a.value), c = I(() => !!a.value), g = I(() => !!l.value);
4597
+ }), s = I(() => n.value || l.value && l.value.message), u = I(() => a.value), c = I(() => !!a.value), g = I(() => !!l.value);
4598
4598
  function m() {
4599
- return g.value ? Yi(l, o) : c.value ? Xi(s) : () => null;
4599
+ return g.value ? Yi(l, o) : c.value ? Xi(u) : () => null;
4600
4600
  }
4601
4601
  const r = m(), f = I(() => o.locale === "en" ? {
4602
4602
  wordBreak: "keep-all",
@@ -4610,7 +4610,7 @@ function Ji(e, t, n, a, o) {
4610
4610
  class: "modal-tips-content"
4611
4611
  }, [v("p", {
4612
4612
  class: "toast-msg-title",
4613
- innerHTML: u.value,
4613
+ innerHTML: s.value,
4614
4614
  style: f.value
4615
4615
  }, null), r()])]);
4616
4616
  }
@@ -4619,11 +4619,11 @@ function Qi(e, t, n, a) {
4619
4619
  onCopy: o
4620
4620
  } = t, {
4621
4621
  toShowFeedback: l
4622
- } = n, i = C(a.exception.copySuccess || "复制成功"), u = C(a.exception.copy || "复制详细信息"), s = C(e.exceptionInfo || {
4622
+ } = n, i = C(a.exception.copySuccess || "复制成功"), s = C(a.exception.copy || "复制详细信息"), u = C(e.exceptionInfo || {
4623
4623
  date: "",
4624
4624
  message: "",
4625
4625
  detail: ""
4626
- }), c = I(() => s.value && s.value.detail || "");
4626
+ }), c = I(() => u.value && u.value.detail || "");
4627
4627
  function g(m) {
4628
4628
  o(c.value).catch((r) => {
4629
4629
  i.value = a.exception.copyFailed || "复制失败";
@@ -4638,11 +4638,11 @@ function Qi(e, t, n, a) {
4638
4638
  }, [v("span", {
4639
4639
  onClick: g,
4640
4640
  style: "cursor: pointer;"
4641
- }, [u.value])]);
4641
+ }, [s.value])]);
4642
4642
  }
4643
4643
  function Zi(e, t, n, a, o) {
4644
- const l = C(e.type), i = C(e.buttons), u = C(e.exceptionInfo), s = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), g = C(e.showCancelButton), m = C(e.showOkButton), r = I(() => !!(i.value && i.value.length)), f = I(() => u.value && u.value.message && u.value.detail), d = I(() => !(i.value && i.value.length) && (m.value || g.value)), b = Qi(e, n, a, o);
4645
- s.value === "关闭" ? s.value = o.close : s.value === "知道了" && (s.value = o.exception.roger);
4644
+ const l = C(e.type), i = C(e.buttons), s = C(e.exceptionInfo), u = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), g = C(e.showCancelButton), m = C(e.showOkButton), r = I(() => !!(i.value && i.value.length)), f = I(() => s.value && s.value.message && s.value.detail), d = I(() => !(i.value && i.value.length) && (m.value || g.value)), b = Qi(e, n, a, o);
4645
+ u.value === "关闭" ? u.value = o.close : u.value === "知道了" && (u.value = o.exception.roger);
4646
4646
  function p(k) {
4647
4647
  l.value === "question" && t.emit("reject"), t.emit("close");
4648
4648
  }
@@ -4659,7 +4659,7 @@ function Zi(e, t, n, a, o) {
4659
4659
  type: "button",
4660
4660
  class: "btn btn-primary btn-lg",
4661
4661
  onClick: w
4662
- }, [s.value]), r.value && i.value.length && i.value.map((k) => v("button", {
4662
+ }, [u.value]), r.value && i.value.length && i.value.map((k) => v("button", {
4663
4663
  type: "button",
4664
4664
  onClick: k.handle,
4665
4665
  class: k.class
@@ -4705,12 +4705,12 @@ const Dt = /* @__PURE__ */ ae({
4705
4705
  "flex-row": !0
4706
4706
  }, k = `messager-type-${a.value}`;
4707
4707
  return w[k] = !0, w;
4708
- }), u = I(() => {
4708
+ }), s = I(() => {
4709
4709
  const w = {
4710
4710
  cursor: "default"
4711
4711
  };
4712
4712
  return a.value === "prompt" ? w.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (w.padding = "0.5rem 1.5rem 1rem 1.5rem"), w;
4713
- }), s = Wi(), c = Gi(e, a, o, l), g = Ui(), {
4713
+ }), u = Wi(), c = Gi(e, a, o, l), g = Ui(), {
4714
4714
  feedbackStyle: m,
4715
4715
  feedbackMessage: r
4716
4716
  } = g;
@@ -4728,7 +4728,7 @@ const Dt = /* @__PURE__ */ ae({
4728
4728
  return Ji(e, a, o, l, n);
4729
4729
  }
4730
4730
  }
4731
- const b = d(), p = Zi(e, t, s, g, n);
4731
+ const b = d(), p = Zi(e, t, u, g, n);
4732
4732
  return () => v("div", {
4733
4733
  class: "farris-messager"
4734
4734
  }, [!e.exceptionInfo && v("div", {
@@ -4736,7 +4736,7 @@ const Dt = /* @__PURE__ */ ae({
4736
4736
  class: "messager-draggable"
4737
4737
  }, null), v("section", {
4738
4738
  class: i.value,
4739
- style: u.value
4739
+ style: s.value
4740
4740
  }, [b()]), p(), f()]);
4741
4741
  }
4742
4742
  }), De = class De {
@@ -4744,13 +4744,13 @@ const Dt = /* @__PURE__ */ ae({
4744
4744
  const n = Ge({
4745
4745
  ...t
4746
4746
  }), a = !1, o = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", i = n.acceptCallback || (() => {
4747
- }), u = n.rejectCallback || (() => {
4747
+ }), s = n.rejectCallback || (() => {
4748
4748
  });
4749
- let s = null, c = new qn(De.app);
4749
+ let u = null, c = new qn(De.app);
4750
4750
  const g = () => {
4751
- s && (s == null || s.destroy(), c = null);
4751
+ u && (u == null || u.destroy(), c = null);
4752
4752
  };
4753
- return s = c == null ? void 0 : c.open({
4753
+ return u = c == null ? void 0 : c.open({
4754
4754
  class: "modal-message modal-message-type-info",
4755
4755
  title: l,
4756
4756
  showButtons: a,
@@ -4762,7 +4762,7 @@ const Dt = /* @__PURE__ */ ae({
4762
4762
  dragHandle: ".messager-draggable",
4763
4763
  render: () => v(Dt, St(n, {
4764
4764
  onAccept: i,
4765
- onReject: u,
4765
+ onReject: s,
4766
4766
  onClose: g
4767
4767
  }), null)
4768
4768
  }), c == null ? void 0 : c.getCurrentModal();
@@ -4863,12 +4863,12 @@ function oa(e, t) {
4863
4863
  return { judgeCanOpen: n };
4864
4864
  }
4865
4865
  function er(e, t, n, a, o) {
4866
- const l = C(e.buttonBehavior), i = C(e.popupOnInput), u = I(() => ({
4866
+ const l = C(e.buttonBehavior), i = C(e.popupOnInput), s = I(() => ({
4867
4867
  "input-group-append": !0,
4868
4868
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
4869
- })), { judgeCanOpen: s } = oa(e, o), c = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = Ce(aa, null), m = C();
4869
+ })), { judgeCanOpen: u } = oa(e, o), c = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = Ce(aa, null), m = C();
4870
4870
  async function r(b) {
4871
- if (await s() && c.value) {
4871
+ if (await u() && c.value) {
4872
4872
  const p = !!t.slots.default;
4873
4873
  if (l.value === "Modal") {
4874
4874
  const w = e.modalOptions, k = g == null ? void 0 : g.open({
@@ -4892,7 +4892,7 @@ function er(e, t, n, a, o) {
4892
4892
  t.emit("mouseLeaveIcon", b);
4893
4893
  }
4894
4894
  return {
4895
- buttonGroupClass: u,
4895
+ buttonGroupClass: s,
4896
4896
  onClickButton: r,
4897
4897
  onMouseEnterButton: f,
4898
4898
  onMouseLeaveButton: d,
@@ -4900,7 +4900,7 @@ function er(e, t, n, a, o) {
4900
4900
  };
4901
4901
  }
4902
4902
  function tr(e, t, n, a, o, l) {
4903
- const i = C(!1), u = I(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: s, hasClearClass: c } = l;
4903
+ const i = C(!1), s = I(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u, hasClearClass: c } = l;
4904
4904
  function g(d) {
4905
4905
  i.value = d, c.value = d;
4906
4906
  }
@@ -4909,10 +4909,10 @@ function tr(e, t, n, a, o, l) {
4909
4909
  });
4910
4910
  function m(d) {
4911
4911
  const b = !e.readonly && !e.disable && e.editable, p = !e.editable;
4912
- d.stopPropagation(), (b || p) && (s(""), o.value = "", g(!i.value), t.emit("clear"));
4912
+ d.stopPropagation(), (b || p) && (u(""), o.value = "", g(!i.value), t.emit("clear"));
4913
4913
  }
4914
4914
  function r(d) {
4915
- if (u.value) {
4915
+ if (s.value) {
4916
4916
  if (!n.value) {
4917
4917
  g(!1);
4918
4918
  return;
@@ -4921,10 +4921,10 @@ function tr(e, t, n, a, o, l) {
4921
4921
  }
4922
4922
  }
4923
4923
  function f(d) {
4924
- u.value && g(!1);
4924
+ s.value && g(!1);
4925
4925
  }
4926
4926
  return {
4927
- enableClearButton: u,
4927
+ enableClearButton: s,
4928
4928
  showClearButton: i,
4929
4929
  onClearValue: m,
4930
4930
  onMouseEnterTextBox: r,
@@ -4932,7 +4932,7 @@ function tr(e, t, n, a, o, l) {
4932
4932
  };
4933
4933
  }
4934
4934
  function nr(e, t, n, a, o) {
4935
- const l = I(() => e.popupOnInput), i = I(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: s } = o, c = C(!1), g = I(() => e.enableTitle ? n.value : ""), m = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), r = I(() => e.readonly || !e.editable), f = C(!1), d = I(() => !e.disable && f.value), b = I(() => ({
4935
+ const l = I(() => e.popupOnInput), i = I(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: u } = o, c = C(!1), g = I(() => e.enableTitle ? n.value : ""), m = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), r = I(() => e.readonly || !e.editable), f = C(!1), d = I(() => !e.disable && f.value), b = I(() => ({
4936
4936
  "text-left": e.textAlign === "left",
4937
4937
  "text-center": e.textAlign === "center",
4938
4938
  "text-right": e.textAlign === "right",
@@ -4950,7 +4950,7 @@ function nr(e, t, n, a, o) {
4950
4950
  n.value = T, O && (t.emit("change", T), t.emit("update:modelValue", T));
4951
4951
  }
4952
4952
  function k(T) {
4953
- u.value = !1, w(T, !0);
4953
+ s.value = !1, w(T, !0);
4954
4954
  }
4955
4955
  Q(
4956
4956
  () => e.modelValue,
@@ -4962,15 +4962,15 @@ function nr(e, t, n, a, o) {
4962
4962
  f.value = !1, t.emit("blur", T), T.stopPropagation();
4963
4963
  }
4964
4964
  function S(T) {
4965
- t.emit("click", T), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4965
+ t.emit("click", T), u(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
4966
4966
  }
4967
4967
  function h(T) {
4968
- !e.disable && !e.readonly && (f.value = !0, r.value || (t.emit("focus", T), i.value && !u.value && o.popup()));
4968
+ !e.disable && !e.readonly && (f.value = !0, r.value || (t.emit("focus", T), i.value && !s.value && o.popup()));
4969
4969
  }
4970
4970
  function y(T) {
4971
4971
  t.emit("input", T);
4972
4972
  const O = T.target.value;
4973
- a.value = O, n.value !== O && w(O, e.updateOn === "change"), l.value && !u.value && o.popup();
4973
+ a.value = O, n.value !== O && w(O, e.updateOn === "change"), l.value && !s.value && o.popup();
4974
4974
  }
4975
4975
  function x(T) {
4976
4976
  T.target.tagName !== "INPUT" && T.preventDefault(), T.stopPropagation();
@@ -5011,7 +5011,7 @@ function ar(e, t, n, a) {
5011
5011
  Q(() => o.value, (f, d) => {
5012
5012
  window[tt] = window[tt] || /* @__PURE__ */ new WeakMap(), f ? window[tt].set(n.value, f) : window[tt].delete(n.value);
5013
5013
  });
5014
- function u() {
5014
+ function s() {
5015
5015
  if (window[tt]) {
5016
5016
  const f = window[tt];
5017
5017
  document.querySelectorAll(".f-button-edit,.v-popover").forEach((d) => {
@@ -5020,7 +5020,7 @@ function ar(e, t, n, a) {
5020
5020
  });
5021
5021
  }
5022
5022
  }
5023
- function s() {
5023
+ function u() {
5024
5024
  const f = o.value;
5025
5025
  f && f.show(n.value);
5026
5026
  }
@@ -5028,14 +5028,14 @@ function ar(e, t, n, a) {
5028
5028
  if (!!t.slots.default) {
5029
5029
  if (!f && !l.value && !await i())
5030
5030
  return;
5031
- l.value = !l.value, await Ue(), s();
5031
+ l.value = !l.value, await Ue(), u();
5032
5032
  }
5033
5033
  }
5034
5034
  async function g(f = !1) {
5035
5035
  if (!!t.slots.default) {
5036
5036
  if (!f && !await i())
5037
5037
  return;
5038
- l.value = !0, await Ue(), s();
5038
+ l.value = !0, await Ue(), u();
5039
5039
  }
5040
5040
  }
5041
5041
  function m() {
@@ -5043,18 +5043,18 @@ function ar(e, t, n, a) {
5043
5043
  }
5044
5044
  function r() {
5045
5045
  l.value = !0, Ue(() => {
5046
- s();
5046
+ u();
5047
5047
  });
5048
5048
  }
5049
- return { hidePopup: m, showPopup: r, popup: g, shouldPopupContent: l, togglePopup: c, popoverRef: o, closeAllPopover: u };
5049
+ return { hidePopup: m, showPopup: r, popup: g, shouldPopupContent: l, togglePopup: c, popoverRef: o, closeAllPopover: s };
5050
5050
  }
5051
5051
  function or(e, t, n) {
5052
5052
  const a = C(), {
5053
5053
  isTextBoxReadonly: o,
5054
5054
  textBoxClass: l,
5055
5055
  textBoxPlaceholder: i,
5056
- textBoxTitle: u,
5057
- onBlurTextBox: s,
5056
+ textBoxTitle: s,
5057
+ onBlurTextBox: u,
5058
5058
  onClickTextBox: c,
5059
5059
  onFocusTextBox: g,
5060
5060
  onInput: m,
@@ -5095,10 +5095,10 @@ function or(e, t, n) {
5095
5095
  placeholder: i.value,
5096
5096
  readonly: o.value,
5097
5097
  tabindex: e.tabIndex,
5098
- title: u.value,
5098
+ title: s.value,
5099
5099
  type: e.inputType,
5100
5100
  value: t.value,
5101
- onBlur: s,
5101
+ onBlur: u,
5102
5102
  onChange: b,
5103
5103
  onClick: c,
5104
5104
  onFocus: g,
@@ -5114,8 +5114,8 @@ function lr(e, t, n) {
5114
5114
  const a = C(e.separator), o = I(() => e.readonly || e.disable), {
5115
5115
  changeTextBoxValue: l,
5116
5116
  onFocusTextBox: i,
5117
- onBlurTextBox: u,
5118
- onClickTextBox: s,
5117
+ onBlurTextBox: s,
5118
+ onClickTextBox: u,
5119
5119
  textBoxPlaceholder: c
5120
5120
  } = n, g = I(() => t.value ? t.value.split(a.value).map((d) => ({
5121
5121
  name: d,
@@ -5132,12 +5132,12 @@ function lr(e, t, n) {
5132
5132
  r.value = !d && !b;
5133
5133
  });
5134
5134
  function f(d) {
5135
- s(d);
5135
+ u(d);
5136
5136
  }
5137
5137
  return () => v(_a, {
5138
5138
  tabindex: e.tabIndex,
5139
5139
  onFocus: i,
5140
- onBlur: u,
5140
+ onBlur: s,
5141
5141
  id: `${e.id}-tag-editor`,
5142
5142
  class: "form-control",
5143
5143
  placeholder: c.value,
@@ -5154,9 +5154,9 @@ function ir(e, t, n, a) {
5154
5154
  buttonGroupClass: o,
5155
5155
  onClickButton: l,
5156
5156
  onMouseEnterButton: i,
5157
- onMouseLeaveButton: u
5157
+ onMouseLeaveButton: s
5158
5158
  } = n, {
5159
- enableClearButton: s,
5159
+ enableClearButton: u,
5160
5160
  showClearButton: c,
5161
5161
  onClearValue: g
5162
5162
  } = a, m = C(), r = Ln((d) => {
@@ -5168,7 +5168,7 @@ function ir(e, t, n, a) {
5168
5168
  renderButtonGroup: () => v("div", {
5169
5169
  id: e.id ? `${e.id}-button-group` : void 0,
5170
5170
  class: o.value
5171
- }, [s.value && Pn(v("span", {
5171
+ }, [u.value && Pn(v("span", {
5172
5172
  class: "input-group-text input-group-clear",
5173
5173
  onClick: g,
5174
5174
  onMousedown: f
@@ -5178,14 +5178,14 @@ function ir(e, t, n, a) {
5178
5178
  class: "input-group-text input-group-append-button",
5179
5179
  onClick: r,
5180
5180
  onMouseenter: i,
5181
- onMouseleave: u
5181
+ onMouseleave: s
5182
5182
  }, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
5183
5183
  class: "input-group-text input-group-append-button",
5184
5184
  innerHTML: e.buttonContent,
5185
5185
  ref: m,
5186
5186
  onClick: (d) => r(d),
5187
5187
  onMouseenter: i,
5188
- onMouseleave: u
5188
+ onMouseleave: s
5189
5189
  }, null) : null]),
5190
5190
  buttonHandleElement: m
5191
5191
  };
@@ -5214,8 +5214,8 @@ function rr(e, t, n) {
5214
5214
  limitContentBySpace: e.limitContentBySpace
5215
5215
  }, {
5216
5216
  default: () => {
5217
- var u, s;
5218
- return [(s = (u = t.slots).default) == null ? void 0 : s.call(u)];
5217
+ var s, u;
5218
+ return [(u = (s = t.slots).default) == null ? void 0 : u.call(s)];
5219
5219
  }
5220
5220
  });
5221
5221
  }
@@ -5226,8 +5226,8 @@ const Lt = /* @__PURE__ */ ae({
5226
5226
  setup(e, t) {
5227
5227
  const n = C(), a = C(e.customClass), o = C(e.modelValue), l = ar(e, t, n, o), {
5228
5228
  shouldPopupContent: i,
5229
- hidePopup: u,
5230
- showPopup: s,
5229
+ hidePopup: s,
5230
+ showPopup: u,
5231
5231
  togglePopup: c
5232
5232
  } = l, g = er(e, t, n, l, o), m = C(""), r = nr(e, t, o, m, l), {
5233
5233
  hasFocusedTextBox: f,
@@ -5279,8 +5279,8 @@ const Lt = /* @__PURE__ */ ae({
5279
5279
  displayText: m,
5280
5280
  commitValue: d,
5281
5281
  elementRef: n,
5282
- hidePopup: u,
5283
- showPopup: s,
5282
+ hidePopup: s,
5283
+ showPopup: u,
5284
5284
  popoverRef: l.popoverRef,
5285
5285
  shouldPopupContent: i,
5286
5286
  togglePopup: c,
@@ -5775,6 +5775,10 @@ const Lt = /* @__PURE__ */ ae({
5775
5775
  description: "清空事件",
5776
5776
  type: "string",
5777
5777
  default: ""
5778
+ },
5779
+ "onUpdate:modelValue": {
5780
+ description: "",
5781
+ type: "object"
5778
5782
  }
5779
5783
  }, Sr = [
5780
5784
  "type"
@@ -6002,7 +6006,7 @@ const pn = {
6002
6006
  props: Er,
6003
6007
  emits: ["selectionChange"],
6004
6008
  setup(e, t) {
6005
- const n = C(), a = C(e.dataSource), o = C([]), l = C(e.separator), i = C(e.width), u = C(e.maxHeight), s = C(String(e.selectedValues).split(l.value)), c = I(() => e.multiSelect), g = I(() => ({
6009
+ const n = C(), a = C(e.dataSource), o = C([]), l = C(e.separator), i = C(e.width), s = C(e.maxHeight), u = C(String(e.selectedValues).split(l.value)), c = I(() => e.multiSelect), g = I(() => ({
6006
6010
  enableSelectRow: !0,
6007
6011
  multiSelect: e.multiSelect,
6008
6012
  multiSelectMode: "OnCheckAndClick",
@@ -6015,13 +6019,13 @@ const pn = {
6015
6019
  }), I(() => e.enableSearch ? "SearchBar" : "ContentHeader");
6016
6020
  const m = I(() => {
6017
6021
  const p = {};
6018
- return i.value !== void 0 && (p.width = `${i.value}px`), u.value !== void 0 && u.value > 0 && (p.maxHeight = `${u.value}px`), p;
6022
+ return i.value !== void 0 && (p.width = `${i.value}px`), s.value !== void 0 && s.value > 0 && (p.maxHeight = `${s.value}px`), p;
6019
6023
  });
6020
6024
  function r(p) {
6021
6025
  n.value.search(p);
6022
6026
  }
6023
6027
  function f(p) {
6024
- o.value = p.map((w) => Object.assign({}, w)), s.value = p.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
6028
+ o.value = p.map((w) => Object.assign({}, w)), u.value = p.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
6025
6029
  }
6026
6030
  function d(p) {
6027
6031
  if (e.enableHighlightSearch)
@@ -6033,7 +6037,7 @@ const pn = {
6033
6037
  typeof k == "function" ? w = a.value.filter((B) => k(p, B)) : w = a.value.filter((B) => B[e.valueField].indexOf(p) > -1 || B[e.textField].indexOf(p) > -1), n.value.updateDataSource(w);
6034
6038
  }
6035
6039
  Q([() => e.selectedValues], ([p]) => {
6036
- e.multiSelect ? s.value = p.split(l.value) : s.value = [p];
6040
+ e.multiSelect ? u.value = p.split(l.value) : u.value = [p];
6037
6041
  });
6038
6042
  function b(p) {
6039
6043
  n.value.activeRowById(p);
@@ -6041,7 +6045,7 @@ const pn = {
6041
6045
  return ve(() => {
6042
6046
  var p, w;
6043
6047
  if (!e.multiSelect) {
6044
- const k = (p = s.value) == null ? void 0 : p[0];
6048
+ const k = (p = u.value) == null ? void 0 : p[0];
6045
6049
  let B = k;
6046
6050
  if (!Ne(k)) {
6047
6051
  const S = typeof k, h = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
@@ -6068,7 +6072,7 @@ const pn = {
6068
6072
  multiSelect: e.multiSelect,
6069
6073
  selection: g.value,
6070
6074
  enableHighlightSearch: e.enableHighlightSearch,
6071
- selectionValues: s.value,
6075
+ selectionValues: u.value,
6072
6076
  onSelectionUpdate: f,
6073
6077
  onAfterSearch: d
6074
6078
  }, null)]);
@@ -6083,11 +6087,11 @@ function Pr(e) {
6083
6087
  return B - S;
6084
6088
  });
6085
6089
  }
6086
- function u(r) {
6090
+ function s(r) {
6087
6091
  const f = i(r).map((d) => d[e.textField]).join(e.separator);
6088
6092
  n.value = l.value ? f || r : f;
6089
6093
  }
6090
- function s(r) {
6094
+ function u(r) {
6091
6095
  if (e.multiSelect) {
6092
6096
  const f = r.split(e.separator).map((b) => [b, !0]), d = new Map(f);
6093
6097
  return o.value.filter((b) => d.has(b[e.textField]));
@@ -6099,7 +6103,7 @@ function Pr(e) {
6099
6103
  return f[e.idField] = r, f[e.textField] = r, [f];
6100
6104
  }
6101
6105
  function g(r) {
6102
- let f = s(r);
6106
+ let f = u(r);
6103
6107
  const d = f && f.length > 0;
6104
6108
  return l.value && !d && (f = c(r)), f;
6105
6109
  }
@@ -6132,8 +6136,8 @@ function Pr(e) {
6132
6136
  f && (n.value = f[e.textField]);
6133
6137
  }
6134
6138
  }), Q(() => e.modelValue, (r) => {
6135
- a.value = r, u(r);
6136
- }), u(e.modelValue), { dataSource: o, displayText: n, editable: l, modelValue: a, getItemsByDisplayText: s, getItemsByValue: i, getSelectedItemsByDisplayText: g };
6139
+ a.value = r, s(r);
6140
+ }), s(e.modelValue), { dataSource: o, displayText: n, editable: l, modelValue: a, getItemsByDisplayText: u, getItemsByValue: i, getSelectedItemsByDisplayText: g };
6137
6141
  }
6138
6142
  const lt = /* @__PURE__ */ ae({
6139
6143
  name: "FComboList",
@@ -6142,7 +6146,7 @@ const lt = /* @__PURE__ */ ae({
6142
6146
  setup(e, t) {
6143
6147
  const {
6144
6148
  t: n
6145
- } = Ft(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), u = C(e.enableSearch), s = C(e.readonly), {
6149
+ } = Ft(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), s = C(e.enableSearch), u = C(e.readonly), {
6146
6150
  dataSource: c,
6147
6151
  displayText: g,
6148
6152
  editable: m,
@@ -6166,7 +6170,7 @@ const lt = /* @__PURE__ */ ae({
6166
6170
  S(H);
6167
6171
  }
6168
6172
  function y() {
6169
- s.value || g.value;
6173
+ u.value || g.value;
6170
6174
  }
6171
6175
  function x(H) {
6172
6176
  var R;
@@ -6214,12 +6218,12 @@ const lt = /* @__PURE__ */ ae({
6214
6218
  })).then((j) => typeof (j == null ? void 0 : j.canOpen) == "boolean" ? j == null ? void 0 : j.canOpen : !0);
6215
6219
  }
6216
6220
  return Q([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([H, R, j, U, W]) => {
6217
- l.value = H, m.value = R, i.value = j, u.value = U, s.value = W;
6221
+ l.value = H, m.value = R, i.value = j, s.value = U, u.value = W;
6218
6222
  }), () => v($n, {
6219
6223
  ref: o,
6220
6224
  id: e.id,
6221
6225
  disable: l.value,
6222
- readonly: s.value,
6226
+ readonly: u.value,
6223
6227
  forcePlaceholder: e.forcePlaceholder,
6224
6228
  editable: m.value,
6225
6229
  buttonContent: p.value,
@@ -6256,7 +6260,7 @@ const lt = /* @__PURE__ */ ae({
6256
6260
  selectedValues: r.value,
6257
6261
  separator: e.separator,
6258
6262
  multiSelect: e.multiSelect,
6259
- enableSearch: u.value,
6263
+ enableSearch: s.value,
6260
6264
  maxHeight: e.maxHeight,
6261
6265
  enableHighlightSearch: e.enableHighlightSearch,
6262
6266
  width: e.fitEditor ? k.value : void 0,
@@ -6277,7 +6281,7 @@ class jr extends Io {
6277
6281
  super(t, n);
6278
6282
  }
6279
6283
  getCommonEditorProperties(t) {
6280
- var n, a, o, l, i;
6284
+ var n, a, o, l, i, s;
6281
6285
  return {
6282
6286
  viewType: {
6283
6287
  visible: !!((n = t.editor) != null && n.multiSelect),
@@ -6311,10 +6315,10 @@ class jr extends Io {
6311
6315
  title: "允许编辑",
6312
6316
  type: "boolean",
6313
6317
  refreshPanelAfterChanged: !0,
6314
- readonly: !!((l = t.editor) != null && l.multiSelect)
6318
+ readonly: !!((l = t.editor) != null && l.multiSelect) && (((i = t.editor) == null ? void 0 : i.viewType) === "tag" || !t.editor.viewType)
6315
6319
  },
6316
6320
  enableHighlightSearch: {
6317
- visible: !!((i = t.editor) != null && i.editable),
6321
+ visible: !!((s = t.editor) != null && s.editable),
6318
6322
  description: "编辑状态下启用高亮搜索",
6319
6323
  title: "启用高亮搜索",
6320
6324
  type: "boolean"
@@ -6326,8 +6330,8 @@ class jr extends Io {
6326
6330
  const n = this;
6327
6331
  let a = "";
6328
6332
  if (((l = t == null ? void 0 : t.binding) == null ? void 0 : l.type) === "Form") {
6329
- const u = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
6330
- (i = u == null ? void 0 : u.schemaField) != null && i.type && (a = u.schemaField.type.$type);
6333
+ const s = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
6334
+ (i = s == null ? void 0 : s.schemaField) != null && i.type && (a = s.schemaField.type.$type);
6331
6335
  }
6332
6336
  return n.getComponentConfig(t, { type: "combo-list" }, {
6333
6337
  // enableSearch: {
@@ -6421,31 +6425,31 @@ class jr extends Io {
6421
6425
  }
6422
6426
  },
6423
6427
  ...this.getCommonEditorProperties(t)
6424
- }, (u, s) => {
6425
- if (!u || !s.editor)
6428
+ }, (s, u) => {
6429
+ if (!s || !u.editor)
6426
6430
  return;
6427
6431
  const c = this;
6428
- switch (u.propertyID) {
6432
+ switch (s.propertyID) {
6429
6433
  case "dataSourceType": {
6430
- u.propertyValue === "static" ? (s.editor.valueField = "value", s.editor.textField = "name", s.editor.remote = null) : u.propertyValue === "dynamic" && (s.editor.remote = { method: "GET" }, s.editor.valueField = "value", s.editor.textField = "name");
6434
+ s.propertyValue === "static" ? (u.editor.valueField = "value", u.editor.textField = "name", u.editor.remote = null) : s.propertyValue === "dynamic" && (u.editor.remote = { method: "GET" }, u.editor.valueField = "value", u.editor.textField = "name");
6431
6435
  break;
6432
6436
  }
6433
6437
  case "data": {
6434
- !c.checkEnumDataReadonly(s) && s.formatter && (s.formatter.data = [...u.propertyValue]);
6438
+ !c.checkEnumDataReadonly(u) && u.formatter && (u.formatter.data = [...s.propertyValue]);
6435
6439
  break;
6436
6440
  }
6437
6441
  case "viewType":
6438
- u.propertyValue === "tag" && (s.editor.editable = !1);
6442
+ s.propertyValue === "tag" && (u.editor.editable = !1);
6439
6443
  }
6440
6444
  });
6441
6445
  }
6442
6446
  getGridFieldEdtiorProperties(t, n) {
6443
- var i, u, s, c, g, m;
6447
+ var i, s, u, c, g, m;
6444
6448
  const a = this;
6445
6449
  let o = "";
6446
6450
  if (((i = t == null ? void 0 : t.binding) == null ? void 0 : i.type) === "Form") {
6447
6451
  const r = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
6448
- (u = r == null ? void 0 : r.schemaField) != null && u.type && (o = r.schemaField.type.$type);
6452
+ (s = r == null ? void 0 : r.schemaField) != null && s.type && (o = r.schemaField.type.$type);
6449
6453
  }
6450
6454
  return a.getComponentConfig(t, { type: "combo-list" }, {
6451
6455
  // editable: {
@@ -6476,7 +6480,7 @@ class jr extends Io {
6476
6480
  description: "",
6477
6481
  title: "数据",
6478
6482
  type: "array",
6479
- visible: !((s = t.editor) != null && s.dataSourceType) || ((c = t.editor) == null ? void 0 : c.dataSourceType) === "static",
6483
+ visible: !((u = t.editor) != null && u.dataSourceType) || ((c = t.editor) == null ? void 0 : c.dataSourceType) === "static",
6480
6484
  ...a.getItemCollectionEditor(t, (g = t.editor) == null ? void 0 : g.valueField, (m = t.editor) == null ? void 0 : m.textField),
6481
6485
  // 这个属性,标记当属性变更得时候触发重新更新属性
6482
6486
  refreshPanelAfterChanged: !0
@@ -6575,11 +6579,11 @@ class jr extends Io {
6575
6579
  }
6576
6580
  ];
6577
6581
  a && (i = i.concat(a)), this.appendFieldValueChangeEvents(t, i);
6578
- const u = l.eventsEditorUtils.formProperties(t, l.viewModelId, i);
6582
+ const s = l.eventsEditorUtils.formProperties(t, l.viewModelId, i);
6579
6583
  return {
6580
6584
  title: "事件",
6581
6585
  hideTitle: !0,
6582
- properties: l.createBaseEventProperty(u),
6586
+ properties: l.createBaseEventProperty(s),
6583
6587
  tabId: "commands",
6584
6588
  tabName: "交互",
6585
6589
  setPropertyRelates(g, m) {
@@ -6782,11 +6786,11 @@ const Lr = "https://json-schema.org/draft/2020-12/schema", Vr = "https://farris-
6782
6786
  customClass: { type: String, defaut: "" }
6783
6787
  }, ca = Ve(mn, qr, sa, ua, Xr);
6784
6788
  function da(e) {
6785
- const t = C(-1), n = C(-1), a = C(0), o = C(0), l = C(!1), i = C(!1), u = I(() => ({
6789
+ const t = C(-1), n = C(-1), a = C(0), o = C(0), l = C(!1), i = C(!1), s = I(() => ({
6786
6790
  display: l.value ? "block" : "none",
6787
6791
  left: `${a.value}px`,
6788
6792
  cursor: "e-resize"
6789
- })), s = I(() => ({
6793
+ })), u = I(() => ({
6790
6794
  display: i.value ? "block" : "none",
6791
6795
  top: `${o.value}px`,
6792
6796
  cursor: "n-resize"
@@ -6848,8 +6852,8 @@ function da(e) {
6848
6852
  }
6849
6853
  }
6850
6854
  return {
6851
- horizontalResizeHandleStyle: u,
6852
- verticalResizeHandleStyle: s,
6855
+ horizontalResizeHandleStyle: s,
6856
+ verticalResizeHandleStyle: u,
6853
6857
  resizeOverlayStyle: c,
6854
6858
  showHorizontalResizeHandle: l,
6855
6859
  showVerticalResizeHandle: i,
@@ -6876,12 +6880,12 @@ const _e = /* @__PURE__ */ ae({
6876
6880
  Nn("layout", {
6877
6881
  useResizeHandleComposition: a
6878
6882
  });
6879
- const u = I(() => Pt({
6883
+ const s = I(() => Pt({
6880
6884
  "f-layout": !0
6881
- }, e == null ? void 0 : e.customClass)), s = I(() => Ga({}, e == null ? void 0 : e.customStyle));
6885
+ }, e == null ? void 0 : e.customClass)), u = I(() => Ga({}, e == null ? void 0 : e.customStyle));
6882
6886
  return () => v("div", {
6883
- class: u.value,
6884
- style: s.value,
6887
+ class: s.value,
6888
+ style: u.value,
6885
6889
  ref: n
6886
6890
  }, [t.slots.default && t.slots.default(), v("div", {
6887
6891
  class: "f-layout-resize-overlay",
@@ -7093,8 +7097,8 @@ function pa(e, t, n, a, o) {
7093
7097
  const {
7094
7098
  horizontalResizeBarPosition: l,
7095
7099
  horizontalResizeHandleOffset: i,
7096
- showHorizontalResizeHandle: u,
7097
- showVerticalResizeHandle: s,
7100
+ showHorizontalResizeHandle: s,
7101
+ showVerticalResizeHandle: u,
7098
7102
  verticalResizeBarPosition: c,
7099
7103
  verticalResizeHandleOffset: g,
7100
7104
  draggingHorizontalResizeHandle: m,
@@ -7118,10 +7122,10 @@ function pa(e, t, n, a, o) {
7118
7122
  const T = f(b, a.value);
7119
7123
  T != null && (P = T > P ? P : T), t.value = P;
7120
7124
  }
7121
- i.value = 0, g.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", b = "", p = null, w = null;
7125
+ i.value = 0, g.value = 0, l.value = -1, c.value = -1, s.value = !1, u.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", b = "", p = null, w = null;
7122
7126
  }
7123
7127
  function S(y, x, M) {
7124
- if (b = x, p = M, u.value = !0, w = y.composedPath().find((P) => (P.className || "").split(" ")[0] === "f-layout"), w) {
7128
+ if (b = x, p = M, s.value = !0, w = y.composedPath().find((P) => (P.className || "").split(" ")[0] === "f-layout"), w) {
7125
7129
  const { left: P } = w.getBoundingClientRect(), T = y.clientX - P;
7126
7130
  i.value = T, l.value = T;
7127
7131
  const O = d(b, n.value) || 0;
@@ -7129,7 +7133,7 @@ function pa(e, t, n, a, o) {
7129
7133
  }
7130
7134
  }
7131
7135
  function h(y, x, M) {
7132
- if (b = x, p = M, s.value = !0, w = y.composedPath().find((P) => (P.className || "").split(" ")[0] === "f-layout"), w) {
7136
+ if (b = x, p = M, u.value = !0, w = y.composedPath().find((P) => (P.className || "").split(" ")[0] === "f-layout"), w) {
7133
7137
  const { top: P } = w.getBoundingClientRect();
7134
7138
  g.value = y.clientY - P, c.value = y.clientY - P;
7135
7139
  const T = f(b, a.value) || 0;
@@ -7143,13 +7147,13 @@ const Ie = /* @__PURE__ */ ae({
7143
7147
  props: yn,
7144
7148
  emits: [],
7145
7149
  setup(e, t) {
7146
- const n = C(e.minHeight <= 0 ? 100 : e.minHeight), a = C(e.minWidth <= 0 ? 100 : e.minWidth), o = C(e.width <= 0 ? 100 : e.width), l = C(e.height <= 0 ? 100 : e.height), i = C(Math.max(n.value, l.value)), u = C(Math.max(a.value, o.value)), s = C(), c = C(e.position), g = C(e.resizable);
7150
+ const n = C(e.minHeight <= 0 ? 100 : e.minHeight), a = C(e.minWidth <= 0 ? 100 : e.minWidth), o = C(e.width <= 0 ? 100 : e.width), l = C(e.height <= 0 ? 100 : e.height), i = C(Math.max(n.value, l.value)), s = C(Math.max(a.value, o.value)), u = C(), c = C(e.position), g = C(e.resizable);
7147
7151
  Q(() => e.resizable, (h) => {
7148
7152
  g.value = h;
7149
7153
  });
7150
7154
  const m = Ce("layout"), {
7151
7155
  useResizeHandleComposition: r
7152
- } = m, f = pa(u, i, a, n, r), {
7156
+ } = m, f = pa(s, i, a, n, r), {
7153
7157
  onClickHorizontalResizeBar: d,
7154
7158
  onClickVerticalResizeBar: b
7155
7159
  } = f, p = I(() => ({
@@ -7160,7 +7164,7 @@ const Ie = /* @__PURE__ */ ae({
7160
7164
  "f-layout-resize-bar-w": c.value === "right"
7161
7165
  })), w = I(() => c.value !== "center" && g.value);
7162
7166
  function k(h, y) {
7163
- (y === "left" || y === "right") && d(h, y, s.value), (y === "top" || y === "bottom") && b(h, y, s.value);
7167
+ (y === "left" || y === "right") && d(h, y, u.value), (y === "top" || y === "bottom") && b(h, y, u.value);
7164
7168
  }
7165
7169
  const B = I(() => {
7166
7170
  const h = {
@@ -7171,10 +7175,10 @@ const Ie = /* @__PURE__ */ ae({
7171
7175
  return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), h), h;
7172
7176
  }), S = I(() => {
7173
7177
  const h = {};
7174
- return (u.value && c.value === "left" || c.value === "right") && (h.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (h.height = `${i.value}px`), e.visible || (h.display = "none"), h;
7178
+ return (s.value && c.value === "left" || c.value === "right") && (h.width = `${s.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (h.height = `${i.value}px`), e.visible || (h.display = "none"), h;
7175
7179
  });
7176
7180
  return () => v("div", {
7177
- ref: s,
7181
+ ref: u,
7178
7182
  class: B.value,
7179
7183
  style: S.value,
7180
7184
  "data-position": c.value
@@ -7199,8 +7203,8 @@ const cs = /* @__PURE__ */ ae({
7199
7203
  const n = C(), a = Ce("design-item-context"), o = us(a.schema, (g = a.parent) == null ? void 0 : g.schema), l = dn(n, a, o);
7200
7204
  l.value.canNested = !1;
7201
7205
  const i = da(n), {
7202
- horizontalResizeHandleStyle: u,
7203
- verticalResizeHandleStyle: s,
7206
+ horizontalResizeHandleStyle: s,
7207
+ verticalResizeHandleStyle: u,
7204
7208
  resizeOverlayStyle: c
7205
7209
  } = i;
7206
7210
  return Nn("layout", {
@@ -7215,10 +7219,10 @@ const cs = /* @__PURE__ */ ae({
7215
7219
  style: c.value
7216
7220
  }, null), v("div", {
7217
7221
  class: "f-layout-horizontal-resize-proxy",
7218
- style: u.value
7222
+ style: s.value
7219
7223
  }, null), v("div", {
7220
7224
  class: "f-layout-vertical-resize-proxy",
7221
- style: s.value
7225
+ style: u.value
7222
7226
  }, null)]);
7223
7227
  }
7224
7228
  });
@@ -7244,9 +7248,9 @@ const fs = /* @__PURE__ */ ae({
7244
7248
  i.value.canNested = !1, i.value.canMove = !1, i.value.canDelete = !1, ve(() => {
7245
7249
  a.value.componentInstance = i;
7246
7250
  }), t.expose(i.value);
7247
- const u = C(Math.max(e.minHeight, e.height)), s = C(Math.max(e.minWidth, e.width)), c = C(e.minHeight), g = C(e.minWidth), m = C(e.position), r = Ce("layout"), {
7251
+ const s = C(Math.max(e.minHeight, e.height)), u = C(Math.max(e.minWidth, e.width)), c = C(e.minHeight), g = C(e.minWidth), m = C(e.position), r = Ce("layout"), {
7248
7252
  useResizeHandleComposition: f
7249
- } = r, d = pa(s, u, g, c, f), {
7253
+ } = r, d = pa(u, s, g, c, f), {
7250
7254
  onClickHorizontalResizeBar: b,
7251
7255
  onClickVerticalResizeBar: p
7252
7256
  } = d, w = I(() => ({
@@ -7270,7 +7274,7 @@ const fs = /* @__PURE__ */ ae({
7270
7274
  const h = {
7271
7275
  flex: "1"
7272
7276
  };
7273
- return (s.value && m.value === "left" || m.value === "right") && (h.width = `${s.value}px`), (u.value && m.value === "bottom" || m.value === "top") && (h.height = `${u.value}px`), h;
7277
+ return (u.value && m.value === "left" || m.value === "right") && (h.width = `${u.value}px`), (s.value && m.value === "bottom" || m.value === "top") && (h.height = `${s.value}px`), h;
7274
7278
  });
7275
7279
  return () => v("div", {
7276
7280
  ref: n,
@@ -9468,10 +9472,10 @@ function xs(e, t) {
9468
9472
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
9469
9473
  var n = [], a = !0, o = !1, l = void 0;
9470
9474
  try {
9471
- for (var i = e[Symbol.iterator](), u; !(a = (u = i.next()).done) && (n.push(u.value), !(t && n.length === t)); a = !0)
9475
+ for (var i = e[Symbol.iterator](), s; !(a = (s = i.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0)
9472
9476
  ;
9473
- } catch (s) {
9474
- o = !0, l = s;
9477
+ } catch (u) {
9478
+ o = !0, l = u;
9475
9479
  } finally {
9476
9480
  try {
9477
9481
  !a && i.return != null && i.return();
@@ -9542,9 +9546,9 @@ function Ct(e) {
9542
9546
  for (var n = this, a = arguments.length, o = new Array(a), l = 0; l < a; l++)
9543
9547
  o[l] = arguments[l];
9544
9548
  return o.length >= e.length ? e.apply(this, o) : function() {
9545
- for (var i = arguments.length, u = new Array(i), s = 0; s < i; s++)
9546
- u[s] = arguments[s];
9547
- return t.apply(n, [].concat(o, u));
9549
+ for (var i = arguments.length, s = new Array(i), u = 0; u < i; u++)
9550
+ s[u] = arguments[u];
9551
+ return t.apply(n, [].concat(o, s));
9548
9552
  };
9549
9553
  };
9550
9554
  }
@@ -9601,16 +9605,16 @@ function Vs(e) {
9601
9605
  var n = {
9602
9606
  current: e
9603
9607
  }, a = Ct(zs)(n, t), o = Ct(As)(n), l = Ct(Mt.changes)(e), i = Ct($s)(n);
9604
- function u() {
9608
+ function s() {
9605
9609
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(g) {
9606
9610
  return g;
9607
9611
  };
9608
9612
  return Mt.selector(c), c(n.current);
9609
9613
  }
9610
- function s(c) {
9614
+ function u(c) {
9611
9615
  Ms(a, o, l, i)(c);
9612
9616
  }
9613
- return [u, s];
9617
+ return [s, u];
9614
9618
  }
9615
9619
  function $s(e, t) {
9616
9620
  return wt(t) ? t(e.current) : t;
@@ -9636,9 +9640,9 @@ function qs(e) {
9636
9640
  for (var n = this, a = arguments.length, o = new Array(a), l = 0; l < a; l++)
9637
9641
  o[l] = arguments[l];
9638
9642
  return o.length >= e.length ? e.apply(this, o) : function() {
9639
- for (var i = arguments.length, u = new Array(i), s = 0; s < i; s++)
9640
- u[s] = arguments[s];
9641
- return t.apply(n, [].concat(o, u));
9643
+ for (var i = arguments.length, s = new Array(i), u = 0; u < i; u++)
9644
+ s[u] = arguments[u];
9645
+ return t.apply(n, [].concat(o, s));
9642
9646
  };
9643
9647
  };
9644
9648
  }
@@ -9825,7 +9829,7 @@ const iu = /* @__PURE__ */ ae({
9825
9829
  async function i() {
9826
9830
  return fetch(e.configPath).then((d) => d.json());
9827
9831
  }
9828
- async function u() {
9832
+ async function s() {
9829
9833
  if (n.value && !o) {
9830
9834
  const d = await i(), {
9831
9835
  vsPath: b
@@ -9870,13 +9874,13 @@ const iu = /* @__PURE__ */ ae({
9870
9874
  Q(() => e.modelValue, (d) => {
9871
9875
  l.value = d, o == null || o.setValue(d);
9872
9876
  });
9873
- const s = C(), c = new ResizeObserver((d) => {
9877
+ const u = C(), c = new ResizeObserver((d) => {
9874
9878
  o == null || o.layout();
9875
9879
  const {
9876
9880
  width: b,
9877
9881
  height: p
9878
9882
  } = d[0].contentRect;
9879
- s.value = {
9883
+ u.value = {
9880
9884
  width: `${b - 1}px`,
9881
9885
  height: `${p}px`
9882
9886
  };
@@ -9894,7 +9898,7 @@ const iu = /* @__PURE__ */ ae({
9894
9898
  }]);
9895
9899
  }
9896
9900
  ve(() => {
9897
- u(), n.value && c.observe(n.value.parentElement);
9901
+ s(), n.value && c.observe(n.value.parentElement);
9898
9902
  }), jn(() => {
9899
9903
  o && o.dispose(), c && n.value && (c.unobserve(n.value), c.disconnect());
9900
9904
  });
@@ -9911,7 +9915,7 @@ const iu = /* @__PURE__ */ ae({
9911
9915
  setContent: r
9912
9916
  }), () => v("div", {
9913
9917
  class: "expression-code-editor",
9914
- style: s.value,
9918
+ style: u.value,
9915
9919
  ref: n
9916
9920
  }, null);
9917
9921
  }
@@ -9946,13 +9950,13 @@ const iu = /* @__PURE__ */ ae({
9946
9950
  });
9947
9951
  const i = {
9948
9952
  customRowStatus: e.customRowStatus
9949
- }, u = I(() => [{
9953
+ }, s = I(() => [{
9950
9954
  field: e.textField,
9951
9955
  title: "",
9952
9956
  dataType: "string",
9953
9957
  formatter: e.formatter
9954
9958
  }]);
9955
- function s({
9959
+ function u({
9956
9960
  $event: m,
9957
9961
  node: r
9958
9962
  }) {
@@ -9986,13 +9990,13 @@ const iu = /* @__PURE__ */ ae({
9986
9990
  },
9987
9991
  data: n.value,
9988
9992
  idField: e.idField,
9989
- columns: u.value,
9993
+ columns: s.value,
9990
9994
  rowOption: i,
9991
9995
  columnOption: {
9992
9996
  fitColumns: !0,
9993
9997
  fitMode: "percentage"
9994
9998
  },
9995
- onDblclickNode: s,
9999
+ onDblclickNode: u,
9996
10000
  style: o.value,
9997
10001
  autoHeight: !0,
9998
10002
  onExpandNode: g
@@ -10006,7 +10010,7 @@ const iu = /* @__PURE__ */ ae({
10006
10010
  const n = C("dataEntity"), a = C(e.dataSource), {
10007
10011
  entities: o,
10008
10012
  variables: l
10009
- } = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (F, E) => {
10013
+ } = a.value, i = C(""), s = C((o == null ? void 0 : o.fields) || []), u = (F, E) => {
10010
10014
  F.stopPropagation(), t.emit("fieldClick", {
10011
10015
  $event: F,
10012
10016
  item: E.raw
@@ -10023,7 +10027,7 @@ const iu = /* @__PURE__ */ ae({
10023
10027
  title: "插入属性名称",
10024
10028
  class: "btn btn-link d-none",
10025
10029
  style: "width:24px;height:24px",
10026
- onClick: (A) => s(A, E),
10030
+ onClick: (A) => u(A, E),
10027
10031
  onDblclick: (A) => A.stopPropagation()
10028
10032
  }, [v("span", {
10029
10033
  class: "f-icon f-icon-new-edit",
@@ -10076,7 +10080,7 @@ const iu = /* @__PURE__ */ ae({
10076
10080
  }
10077
10081
  function h() {
10078
10082
  return v(uu, {
10079
- data: u.value,
10083
+ data: s.value,
10080
10084
  formatter: c,
10081
10085
  onDblclickNode: S
10082
10086
  }, null);
@@ -10136,10 +10140,10 @@ const iu = /* @__PURE__ */ ae({
10136
10140
  }
10137
10141
  function P() {
10138
10142
  const F = D((o == null ? void 0 : o.fields) || [], i.value);
10139
- u.value = F;
10143
+ s.value = F;
10140
10144
  }
10141
10145
  function T() {
10142
- u.value = (o == null ? void 0 : o.fields) || [];
10146
+ s.value = (o == null ? void 0 : o.fields) || [];
10143
10147
  }
10144
10148
  function O(F) {
10145
10149
  F.key === "Enter" && P();
@@ -10195,7 +10199,7 @@ const iu = /* @__PURE__ */ ae({
10195
10199
  props: du,
10196
10200
  emits: ["insertFunction", "search"],
10197
10201
  setup(e, t) {
10198
- const n = C(), a = C(""), o = C(), l = C({}), i = C(""), u = "没有与搜索条件匹配的项", s = C(e.functionItems), c = I(() => (h) => e.singleExpand ? {
10202
+ const n = C(), a = C(""), o = C(), l = C({}), i = C(""), s = "没有与搜索条件匹配的项", u = C(e.functionItems), c = I(() => (h) => e.singleExpand ? {
10199
10203
  "functions-type d-flex flex-column": !0,
10200
10204
  open: a.value === h,
10201
10205
  closed: a.value !== h
@@ -10215,9 +10219,9 @@ const iu = /* @__PURE__ */ ae({
10215
10219
  "functions-item pl-2": !0,
10216
10220
  selected: ((y = o.value) == null ? void 0 : y.key) === h.key
10217
10221
  };
10218
- }), r = C(Object.keys(s.value));
10222
+ }), r = C(Object.keys(u.value));
10219
10223
  Q(() => e.functionItems, (h) => {
10220
- s.value = h, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
10224
+ u.value = h, r.value = Object.keys(u.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
10221
10225
  });
10222
10226
  function f(h) {
10223
10227
  h || (h = a.value);
@@ -10274,9 +10278,9 @@ const iu = /* @__PURE__ */ ae({
10274
10278
  }
10275
10279
  }, [v("span", {
10276
10280
  class: g.value(h)
10277
- }, null), s.value[h].name]), v("ul", {
10281
+ }, null), u.value[h].name]), v("ul", {
10278
10282
  class: "pl-3 mr-2"
10279
- }, [s.value[h].items.map((y) => {
10283
+ }, [u.value[h].items.map((y) => {
10280
10284
  if (y.visible !== !1)
10281
10285
  return v("li", {
10282
10286
  class: m.value(y),
@@ -10285,7 +10289,7 @@ const iu = /* @__PURE__ */ ae({
10285
10289
  }, [h === "advanced" ? y.key : y.name]);
10286
10290
  })])])) : v("li", {
10287
10291
  class: "empty-message"
10288
- }, [u]);
10292
+ }, [s]);
10289
10293
  }
10290
10294
  return ve(() => {
10291
10295
  a.value = r.value[0], l.value = r.value.reduce((h, y) => (h[y] = a.value === y, h), {});
@@ -10345,39 +10349,39 @@ function pu(e) {
10345
10349
  }
10346
10350
  async function n() {
10347
10351
  if (window.esprima == null) {
10348
- const i = await t(), { path: u } = i;
10349
- return new Promise((s, c) => {
10352
+ const i = await t(), { path: s } = i;
10353
+ return new Promise((u, c) => {
10350
10354
  const g = document.createElement("script");
10351
- g.type = "text/javascript", g.src = u + "?v=" + Date.now(), g.onload = s, g.onerror = c, document.head.appendChild(g);
10355
+ g.type = "text/javascript", g.src = s + "?v=" + Date.now(), g.onload = u, g.onerror = c, document.head.appendChild(g);
10352
10356
  });
10353
10357
  }
10354
10358
  }
10355
10359
  function a(i) {
10356
- const u = [], s = window.esprima.tokenize(i);
10357
- for (let r = 0; r < s.length; r++)
10358
- u.push(s[r].value);
10360
+ const s = [], u = window.esprima.tokenize(i);
10361
+ for (let r = 0; r < u.length; r++)
10362
+ s.push(u[r].value);
10359
10363
  const c = [];
10360
- for (let r = 0; r < u.length; r++) {
10361
- const f = i.indexOf(u[r]);
10362
- f !== -1 ? c.push(i.substring(0, f)) : c.push(""), i = i.slice(f + u[r].length), r === u.length - 1 && c.push(i);
10364
+ for (let r = 0; r < s.length; r++) {
10365
+ const f = i.indexOf(s[r]);
10366
+ f !== -1 ? c.push(i.substring(0, f)) : c.push(""), i = i.slice(f + s[r].length), r === s.length - 1 && c.push(i);
10363
10367
  }
10364
- const g = [], m = u.length;
10368
+ const g = [], m = s.length;
10365
10369
  for (let r = 0; r < m; r++)
10366
- c[r] !== "" && g.push(c[r]), u[r] !== "" && g.push(u[r]), r === m - 1 && c[r + 1] !== "" && g.push(c[r + 1]);
10370
+ c[r] !== "" && g.push(c[r]), s[r] !== "" && g.push(s[r]), r === m - 1 && c[r + 1] !== "" && g.push(c[r + 1]);
10367
10371
  return g;
10368
10372
  }
10369
- function o(i, u = "key2name") {
10370
- const s = /* @__PURE__ */ new Map();
10373
+ function o(i, s = "key2name") {
10374
+ const u = /* @__PURE__ */ new Map();
10371
10375
  if (!i)
10372
- return s;
10376
+ return u;
10373
10377
  let g = Object.values(i).map((m) => m.items).flat();
10374
10378
  for (; g.length > 0; ) {
10375
10379
  const m = g.filter((r) => r.name === g[0].name);
10376
10380
  m.length > 1 ? g.filter((r) => r.name === g[0].name).forEach((r) => {
10377
- u === "key2name" ? s.set(r.key, r.key + "_" + r.name) : u === "name2key" && s.set(r.key + "_" + r.name, r.key);
10378
- }) : u === "key2name" ? s.set(m[0].key, m[0].name) : u === "name2key" && s.set(m[0].name, m[0].key), g = g.filter((r) => r.name !== g[0].name);
10381
+ s === "key2name" ? u.set(r.key, r.key + "_" + r.name) : s === "name2key" && u.set(r.key + "_" + r.name, r.key);
10382
+ }) : s === "key2name" ? u.set(m[0].key, m[0].name) : s === "name2key" && u.set(m[0].name, m[0].key), g = g.filter((r) => r.name !== g[0].name);
10379
10383
  }
10380
- return s;
10384
+ return u;
10381
10385
  }
10382
10386
  n();
10383
10387
  async function l(i) {
@@ -10392,7 +10396,7 @@ function pu(e) {
10392
10396
  }
10393
10397
  function mu(e, t, n) {
10394
10398
  const a = C(e.disabledFunctions), { getTokens: o, getVariableMaps: l, runWithEsprima: i } = pu(e);
10395
- function u() {
10399
+ function s() {
10396
10400
  const p = Le(t);
10397
10401
  if (a.value) {
10398
10402
  let w = Object.keys(p);
@@ -10405,7 +10409,7 @@ function mu(e, t, n) {
10405
10409
  }
10406
10410
  return p;
10407
10411
  }
10408
- function s(p) {
10412
+ function u(p) {
10409
10413
  const w = t.analytical.items.find((k) => k.key === "GetContextParameter");
10410
10414
  if (w)
10411
10415
  return w.name + '("' + p.name + '")';
@@ -10501,30 +10505,30 @@ function mu(e, t, n) {
10501
10505
  return await i(() => d(p));
10502
10506
  }
10503
10507
  return {
10504
- resetFunctionItems: u,
10508
+ resetFunctionItems: s,
10505
10509
  getFieldExpression: m,
10506
10510
  getFunctionExpression: g,
10507
- getContextVariableExpression: s,
10511
+ getContextVariableExpression: u,
10508
10512
  getExpressionCodeValue: r,
10509
10513
  getExpressionTextValue: b
10510
10514
  };
10511
10515
  }
10512
10516
  function yu(e, t) {
10513
- const n = C([]), a = Le(t.value), o = Object.values(a).map((u) => u.items).flat();
10514
- function l(u) {
10515
- const s = Le(a);
10516
- return Object.keys(s).forEach((c) => {
10517
- const g = s[c].items.filter((m) => u.includes(m.key));
10518
- g.length > 0 ? s[c].items = g : delete s[c];
10519
- }), s;
10520
- }
10521
- function i(u) {
10522
- if (!u) {
10517
+ const n = C([]), a = Le(t.value), o = Object.values(a).map((s) => s.items).flat();
10518
+ function l(s) {
10519
+ const u = Le(a);
10520
+ return Object.keys(u).forEach((c) => {
10521
+ const g = u[c].items.filter((m) => s.includes(m.key));
10522
+ g.length > 0 ? u[c].items = g : delete u[c];
10523
+ }), u;
10524
+ }
10525
+ function i(s) {
10526
+ if (!s) {
10523
10527
  t.value = a;
10524
10528
  return;
10525
10529
  }
10526
- const s = o.filter((c) => c.name.toLowerCase().includes(u.toLowerCase())).map((c) => c.key);
10527
- t.value = l(s);
10530
+ const u = o.filter((c) => c.name.toLowerCase().includes(s.toLowerCase())).map((c) => c.key);
10531
+ t.value = l(u);
10528
10532
  }
10529
10533
  return {
10530
10534
  searchResultList: n,
@@ -10538,7 +10542,7 @@ const vu = /* @__PURE__ */ ae({
10538
10542
  emits: [],
10539
10543
  setup(e, t) {
10540
10544
  var T;
10541
- const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
10545
+ const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), s = [{
10542
10546
  label: "提示",
10543
10547
  value: "info"
10544
10548
  }, {
@@ -10548,7 +10552,7 @@ const vu = /* @__PURE__ */ ae({
10548
10552
  label: "错误",
10549
10553
  value: "error"
10550
10554
  }], {
10551
- getFunctionExpression: s,
10555
+ getFunctionExpression: u,
10552
10556
  getContextVariableExpression: c,
10553
10557
  resetFunctionItems: g,
10554
10558
  getFieldExpression: m,
@@ -10562,7 +10566,7 @@ const vu = /* @__PURE__ */ ae({
10562
10566
  item: F
10563
10567
  }) {
10564
10568
  var L;
10565
- const E = s(F);
10569
+ const E = u(F);
10566
10570
  (L = i.value) == null || L.insertText(E);
10567
10571
  }
10568
10572
  function w({
@@ -10668,7 +10672,7 @@ const vu = /* @__PURE__ */ ae({
10668
10672
  class: "d-flex align-items-center py-1"
10669
10673
  }, [v("b", null, [ie("提示信息:")]), e.showMessageType && v(lt, {
10670
10674
  style: "width: 75px",
10671
- data: u,
10675
+ data: s,
10672
10676
  modelValue: o.value,
10673
10677
  "onUpdate:modelValue": (O) => o.value = O,
10674
10678
  textField: "label",
@@ -10910,13 +10914,13 @@ const xu = /* @__PURE__ */ ae({
10910
10914
  name: "f-expression-textbox",
10911
10915
  props: ga,
10912
10916
  setup(e, t) {
10913
- const n = Ce(un), a = Ce("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', l = C(e.modelValue), i = C(e.entities), u = C(e.variables), s = C(), c = C(e.validateMessage || ""), g = C("info");
10917
+ const n = Ce(un), a = Ce("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', l = C(e.modelValue), i = C(e.entities), s = C(e.variables), u = C(), c = C(e.validateMessage || ""), g = C("info");
10914
10918
  async function m() {
10915
10919
  const {
10916
10920
  value: b,
10917
10921
  message: p,
10918
10922
  messageType: w
10919
- } = s.value.getExpressionValue();
10923
+ } = u.value.getExpressionValue();
10920
10924
  if (c.value = p, g.value = w, e.beforeSubmit && typeof e.beforeSubmit == "function") {
10921
10925
  const k = await e.beforeSubmit({
10922
10926
  notifyService: n,
@@ -10963,7 +10967,7 @@ const xu = /* @__PURE__ */ ae({
10963
10967
  class: "btn btn-secondary mr-2",
10964
10968
  handle: (b) => {
10965
10969
  var p;
10966
- return (p = s.value) == null || p.resetExpression(), !1;
10970
+ return (p = u.value) == null || p.resetExpression(), !1;
10967
10971
  }
10968
10972
  }, {
10969
10973
  name: "cancel",
@@ -10985,7 +10989,7 @@ const xu = /* @__PURE__ */ ae({
10985
10989
  notifyService: n
10986
10990
  });
10987
10991
  if (b)
10988
- return i.value = b.entities || {}, u.value = b.variables || {}, c.value = b.message || "", g.value = b.messageType || "info", a == null || a.clearAll(), !0;
10992
+ return i.value = b.entities || {}, s.value = b.variables || {}, c.value = b.message || "", g.value = b.messageType || "info", a == null || a.clearAll(), !0;
10989
10993
  } catch {
10990
10994
  return n == null || n.error({
10991
10995
  message: "获取数据失败!"
@@ -11024,7 +11028,7 @@ const xu = /* @__PURE__ */ ae({
11024
11028
  default: () => [v("div", {
11025
11029
  class: "h-100 d-flex flex-column"
11026
11030
  }, [v(vu, {
11027
- ref: s,
11031
+ ref: u,
11028
11032
  validateMessage: c.value,
11029
11033
  showMessageType: e.showMessageType,
11030
11034
  messageType: g.value,
@@ -11033,7 +11037,7 @@ const xu = /* @__PURE__ */ ae({
11033
11037
  esprimaPath: e.esprimaPath,
11034
11038
  showMessage: e.showMessage,
11035
11039
  entities: i.value,
11036
- variables: u.value,
11040
+ variables: s.value,
11037
11041
  disabledFunctions: e.disabledFunctions,
11038
11042
  showDataPanel: e.showDataPanel,
11039
11043
  singleExpand: e.singleExpand,
@@ -11076,13 +11080,13 @@ function Ca(e) {
11076
11080
  { label: " ", value: 0 },
11077
11081
  { label: "并且", value: 1 },
11078
11082
  { label: "或者", value: 2 }
11079
- ], l = [{ label: "值", value: e != null && e.singleValue ? Re.Value : Re.Variable }], i = { label: "表达式", value: Re.Expression }, u = e != null && e.enableExpression ? [...l, i] : l;
11083
+ ], l = [{ label: "值", value: e != null && e.singleValue ? Re.Value : Re.Variable }], i = { label: "表达式", value: Re.Expression }, s = e != null && e.enableExpression ? [...l, i] : l;
11080
11084
  return {
11081
11085
  leftBracketItems: t,
11082
11086
  righttBracketItems: n,
11083
11087
  compareOperators: a,
11084
11088
  relationItems: o,
11085
- valueTypes: u,
11089
+ valueTypes: s,
11086
11090
  sortTypes: [
11087
11091
  { label: "升序", value: "asc" },
11088
11092
  { label: "降序", value: "desc" }
@@ -11449,11 +11453,11 @@ const wa = {
11449
11453
  props: $u,
11450
11454
  emits: ["selectionChange", "selectItem", "unSelectItem"],
11451
11455
  setup(e, t) {
11452
- const n = C(e.data), a = C([]), o = C(e.separator), l = C(e.width), i = C(e.height), u = C(e.maxHeight), s = C(String(e.selectedValues).split(o.value)), c = C(), g = {
11456
+ const n = C(e.data), a = C([]), o = C(e.separator), l = C(e.width), i = C(e.height), s = C(e.maxHeight), u = C(String(e.selectedValues).split(o.value)), c = C(), g = {
11453
11457
  customRowStatus: e.customRowStatus
11454
11458
  };
11455
11459
  Q(() => e.selectedValues, (p) => {
11456
- s.value = String(p).split(o.value);
11460
+ u.value = String(p).split(o.value);
11457
11461
  }), Q(() => e.data, (p) => {
11458
11462
  var w;
11459
11463
  n.value = p, (w = c.value) == null || w.updateDataSource(p);
@@ -11473,15 +11477,15 @@ const wa = {
11473
11477
  formatter: e.formatter
11474
11478
  }]), d = I(() => {
11475
11479
  const p = {};
11476
- return l.value !== void 0 && (p.width = `${l.value}px`), i.value !== void 0 && (p.height = `${i.value}px`), u.value !== void 0 && u.value > 0 && (p.maxHeight = `${u.value}px`, p.overflow = "auto"), n.value.length === 0 && (p.height = "200px"), p.position = "relative", p;
11480
+ return l.value !== void 0 && (p.width = `${l.value}px`), i.value !== void 0 && (p.height = `${i.value}px`), s.value !== void 0 && s.value > 0 && (p.maxHeight = `${s.value}px`, p.overflow = "auto"), n.value.length === 0 && (p.height = "200px"), p.position = "relative", p;
11477
11481
  });
11478
11482
  function b(p = []) {
11479
- p && p.length > 0 ? (a.value = [...p], s.value = a.value.map((w) => w[e.idField])) : (a.value = [], s.value = []), t.emit("selectionChange", a.value);
11483
+ p && p.length > 0 ? (a.value = [...p], u.value = a.value.map((w) => w[e.idField])) : (a.value = [], u.value = []), t.emit("selectionChange", a.value);
11480
11484
  }
11481
11485
  return ve(() => {
11482
11486
  r && r.getData(e.editorParams).then((p) => {
11483
11487
  n.value = p;
11484
- }), s.value && c.value.activeRowById(s.value[0]);
11488
+ }), u.value && c.value.activeRowById(u.value[0]);
11485
11489
  }), t.expose({
11486
11490
  treeInstance: c
11487
11491
  }), () => v("div", {
@@ -11503,7 +11507,7 @@ const wa = {
11503
11507
  data: n.value,
11504
11508
  idField: e.idField,
11505
11509
  columns: f.value,
11506
- "selection-values": s.value,
11510
+ "selection-values": u.value,
11507
11511
  onSelectionUpdate: b,
11508
11512
  columnOption: {
11509
11513
  fitColumns: !0,
@@ -11534,11 +11538,11 @@ function zu(e) {
11534
11538
  return k - B;
11535
11539
  });
11536
11540
  }
11537
- function u(m) {
11541
+ function s(m) {
11538
11542
  const r = i(m), f = e.displayFormatter ? e.displayFormatter(r) : r.map((d) => d[e.textField]).join(e.separator);
11539
11543
  t.value = o.value ? f || m : f;
11540
11544
  }
11541
- function s(m) {
11545
+ function u(m) {
11542
11546
  const r = m.split(e.separator).map((b) => [b, !0]), f = new Map(r);
11543
11547
  let d = [];
11544
11548
  return a.value[0].data ? l(a.value, d) : d = a.value, d = d.map((b) => b.data ? b.data : b), d.filter((b) => f.has(b[e.textField]) || f.has(b[e.valueField]));
@@ -11548,7 +11552,7 @@ function zu(e) {
11548
11552
  return r[e.idField] = m, r[e.textField] = m, [r];
11549
11553
  }
11550
11554
  function g(m) {
11551
- let r = s(m);
11555
+ let r = u(m);
11552
11556
  const f = r && r.length > 0;
11553
11557
  return o.value && !f && (r = c(m)), r;
11554
11558
  }
@@ -11560,15 +11564,15 @@ function zu(e) {
11560
11564
  r && (t.value = r[e.textField]);
11561
11565
  }
11562
11566
  }), Q(() => e.modelValue, (m, r) => {
11563
- m !== r && (n.value = m, u(m));
11564
- }), u(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: s, getItemsByValue: i, getSelectedItemsByDisplayText: g, flatTreeNodes: l };
11567
+ m !== r && (n.value = m, s(m));
11568
+ }), s(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: u, getItemsByValue: i, getSelectedItemsByDisplayText: g, flatTreeNodes: l };
11565
11569
  }
11566
11570
  function Hu(e, t) {
11567
- const { comboEditorRef: n, dataSource: a, searchFields: o, originalValue: l, showPopover: i, flatTreeNodes: u } = e;
11568
- function s(d, b) {
11571
+ const { comboEditorRef: n, dataSource: a, searchFields: o, originalValue: l, showPopover: i, flatTreeNodes: s } = e;
11572
+ function u(d, b) {
11569
11573
  d.forEach((p) => {
11570
11574
  const w = b.find((k) => k.id === p.id);
11571
- p.selectable = w.selectable != null ? !!w.selectable : !0, p.children && s(p.children, b);
11575
+ p.selectable = w.selectable != null ? !!w.selectable : !0, p.children && u(p.children, b);
11572
11576
  });
11573
11577
  }
11574
11578
  function c(d, b) {
@@ -11599,7 +11603,7 @@ function Hu(e, t) {
11599
11603
  const b = a.value.map((w) => c(w, d)).filter((w) => w !== null);
11600
11604
  if (b.length) {
11601
11605
  const w = [];
11602
- u(a.value, w), s(b, w);
11606
+ s(a.value, w), u(b, w);
11603
11607
  }
11604
11608
  l.value = Le(b);
11605
11609
  }
@@ -11623,7 +11627,7 @@ const Nt = /* @__PURE__ */ ae({
11623
11627
  props: wa,
11624
11628
  emits: ["clear", "update:modelValue", "change", "search"],
11625
11629
  setup(e, t) {
11626
- const n = C(), a = C(e.disabled), o = C(e.enableClear), l = C(e.enableSearch), i = C(e.readonly), u = C(e.searchFields || [e.textField]), s = C(), c = C(), g = {}, {
11630
+ const n = C(), a = C(e.disabled), o = C(e.enableClear), l = C(e.enableSearch), i = C(e.readonly), s = C(e.searchFields || [e.textField]), u = C(), c = C(), g = {}, {
11627
11631
  dataSource: m,
11628
11632
  displayText: r,
11629
11633
  editable: f,
@@ -11642,8 +11646,8 @@ const Nt = /* @__PURE__ */ ae({
11642
11646
  } = Hu({
11643
11647
  comboEditorRef: n,
11644
11648
  dataSource: m,
11645
- searchFields: u,
11646
- originalValue: s,
11649
+ searchFields: s,
11650
+ originalValue: u,
11647
11651
  showPopover: k,
11648
11652
  flatTreeNodes: p
11649
11653
  }, e.idField);
@@ -11674,7 +11678,7 @@ const Nt = /* @__PURE__ */ ae({
11674
11678
  a.value = O, f.value = F, o.value = E, l.value = L, i.value = A;
11675
11679
  });
11676
11680
  const T = () => {
11677
- if (s.value = Le(m.value), w.value && d.value) {
11681
+ if (u.value = Le(m.value), w.value && d.value) {
11678
11682
  const O = [];
11679
11683
  p(m.value, O), d.value.split(e.separator).reduce((F, E) => (F[E] = O.find((L) => L.id === E), F), g);
11680
11684
  }
@@ -11713,7 +11717,7 @@ const Nt = /* @__PURE__ */ ae({
11713
11717
  valueField: e.valueField,
11714
11718
  textField: e.textField,
11715
11719
  titleField: e.titleField,
11716
- data: s.value,
11720
+ data: u.value,
11717
11721
  selectedValues: d.value,
11718
11722
  onSelectionChange: x,
11719
11723
  formatter: e.formatter,
@@ -11761,11 +11765,11 @@ function Sa(e, t, n) {
11761
11765
  a.value = r;
11762
11766
  });
11763
11767
  const i = I(() => n.value.querySelector(`tr[index="${a.value}"]`));
11764
- function u() {
11768
+ function s() {
11765
11769
  const r = i.value;
11766
11770
  r && (r.scrollIntoView ? r.scrollIntoView({ block: "center", behavior: "smooth" }) : r.scrollIntoViewIfNeeded && r.scrollIntoViewIfNeeded(!1));
11767
11771
  }
11768
- const s = I(() => (r) => ({
11772
+ const u = I(() => (r) => ({
11769
11773
  "fv-grid-row-selected": r === a.value
11770
11774
  }));
11771
11775
  function c(r, f) {
@@ -11778,8 +11782,8 @@ function Sa(e, t, n) {
11778
11782
  t.emit("rowClick", { item: r, index: f });
11779
11783
  }
11780
11784
  return {
11781
- itemIntoView: u,
11782
- activeRowCls: s,
11785
+ itemIntoView: s,
11786
+ activeRowCls: u,
11783
11787
  fields: l,
11784
11788
  activeIndex: a,
11785
11789
  selectedRowRef: i,
@@ -11802,8 +11806,8 @@ const Wu = /* @__PURE__ */ ae({
11802
11806
  relationItems: l,
11803
11807
  righttBracketItems: i
11804
11808
  } = Ca(e), {
11805
- renderFieldsComboTree: u
11806
- } = ka(e), s = C(), {
11809
+ renderFieldsComboTree: s
11810
+ } = ka(e), u = C(), {
11807
11811
  conditions: c,
11808
11812
  fields: g,
11809
11813
  onInsert: m,
@@ -11811,7 +11815,7 @@ const Wu = /* @__PURE__ */ ae({
11811
11815
  onRowClick: f,
11812
11816
  activeRowCls: d,
11813
11817
  itemIntoView: b
11814
- } = Sa(e, t, s), p = C(e.expressionOptions || {});
11818
+ } = Sa(e, t, u), p = C(e.expressionOptions || {});
11815
11819
  function w(B) {
11816
11820
  var S, h;
11817
11821
  switch (B.expresstype) {
@@ -11879,7 +11883,7 @@ const Wu = /* @__PURE__ */ ae({
11879
11883
  }, [v("b", null, [ie("右括号")])]), v("th", {
11880
11884
  style: "width: 60px"
11881
11885
  }, [v("b", null, [ie("关系")])])])]), v("tbody", {
11882
- ref: s
11886
+ ref: u
11883
11887
  }, [c.value.map((B, S) => v("tr", {
11884
11888
  index: S,
11885
11889
  class: d.value(S),
@@ -11906,7 +11910,7 @@ const Wu = /* @__PURE__ */ ae({
11906
11910
  class: "px-1"
11907
11911
  }, [k(B, a, "lbracket")]), v("td", {
11908
11912
  class: "px-1"
11909
- }, [u(B, g.value, "filterField")]), v("td", {
11913
+ }, [s(B, g.value, "filterField")]), v("td", {
11910
11914
  class: "px-1"
11911
11915
  }, [k(B, n, "compare")]), v("td", {
11912
11916
  class: "px-1"
@@ -11939,10 +11943,10 @@ const Wu = /* @__PURE__ */ ae({
11939
11943
  function i() {
11940
11944
  t.emit("moveTop");
11941
11945
  }
11942
- function u() {
11946
+ function s() {
11943
11947
  t.emit("movePrev");
11944
11948
  }
11945
- function s() {
11949
+ function u() {
11946
11950
  t.emit("moveNext");
11947
11951
  }
11948
11952
  function c() {
@@ -11976,7 +11980,7 @@ const Wu = /* @__PURE__ */ ae({
11976
11980
  style: a
11977
11981
  }, null), ie("置顶")]), v("button", {
11978
11982
  type: "button",
11979
- onClick: u,
11983
+ onClick: s,
11980
11984
  disabled: !e.canMove.value("up"),
11981
11985
  class: "btn btn-default f-btn-ml"
11982
11986
  }, [v("span", {
@@ -11984,7 +11988,7 @@ const Wu = /* @__PURE__ */ ae({
11984
11988
  style: a
11985
11989
  }, null), ie("上移")]), v("button", {
11986
11990
  type: "button",
11987
- onClick: s,
11991
+ onClick: u,
11988
11992
  disabled: !e.canMove.value("down"),
11989
11993
  class: "btn btn-default f-btn-ml"
11990
11994
  }, [v("span", {
@@ -12012,8 +12016,8 @@ const Wu = /* @__PURE__ */ ae({
12012
12016
  } = ka(e), o = C(), {
12013
12017
  conditions: l,
12014
12018
  fields: i,
12015
- onInsert: u,
12016
- onRemove: s,
12019
+ onInsert: s,
12020
+ onRemove: u,
12017
12021
  onRowClick: c,
12018
12022
  activeRowCls: g,
12019
12023
  itemIntoView: m
@@ -12046,14 +12050,14 @@ const Wu = /* @__PURE__ */ ae({
12046
12050
  class: "px-1"
12047
12051
  }, [v("button", {
12048
12052
  title: "插入",
12049
- onClick: (d) => u(f, d),
12053
+ onClick: (d) => s(f, d),
12050
12054
  type: "button",
12051
12055
  class: "btn btn-link p-1 mr-0"
12052
12056
  }, [v("span", {
12053
12057
  class: "f-icon f-icon-plus"
12054
12058
  }, null)]), v("button", {
12055
12059
  title: "移除",
12056
- onClick: (d) => s(f, d),
12060
+ onClick: (d) => u(f, d),
12057
12061
  type: "button",
12058
12062
  class: "btn btn-link p-1 m-0"
12059
12063
  }, [v("span", {
@@ -12083,7 +12087,7 @@ function Uu(e, t) {
12083
12087
  function o() {
12084
12088
  t.value.length > 0 ? n.value = 0 : n.value = -1;
12085
12089
  }
12086
- const l = I(() => e.displayText ? e.displayText : typeof e.modelValue == "string" ? e.modelValue : ""), i = e.editorType !== "sort" ? "filterField" : "sortField", u = e.editorType !== "sort" ? {
12090
+ const l = I(() => e.displayText ? e.displayText : typeof e.modelValue == "string" ? e.modelValue : ""), i = e.editorType !== "sort" ? "filterField" : "sortField", s = e.editorType !== "sort" ? {
12087
12091
  filterField: "",
12088
12092
  value: "",
12089
12093
  lbracket: "",
@@ -12094,7 +12098,7 @@ function Uu(e, t) {
12094
12098
  } : {
12095
12099
  sortField: "",
12096
12100
  sortType: "asc"
12097
- }, s = I(() => t.value.length > 0), c = I(() => (y = "down") => t.value.length > 1 ? y === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
12101
+ }, u = I(() => t.value.length > 0), c = I(() => (y = "down") => t.value.length > 1 ? y === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
12098
12102
  function g() {
12099
12103
  if (e.editorType === "filter")
12100
12104
  for (let y = 0; y < t.value.length - 1; y++) {
@@ -12103,13 +12107,13 @@ function Uu(e, t) {
12103
12107
  }
12104
12108
  }
12105
12109
  function m() {
12106
- const y = Object.assign({}, u);
12110
+ const y = Object.assign({}, s);
12107
12111
  t.value = [...t.value, y];
12108
12112
  const x = t.value.length - 1;
12109
12113
  n.value = x, g();
12110
12114
  }
12111
12115
  function r({ index: y }) {
12112
- const x = Object.assign({}, u);
12116
+ const x = Object.assign({}, s);
12113
12117
  e.insertType === "above" ? y === 0 ? t.value.unshift(x) : t.value.splice(y, 0, x) : t.value.splice(y + 1, 0, x), t.value = [...t.value], g();
12114
12118
  }
12115
12119
  function f({ index: y }) {
@@ -12175,7 +12179,7 @@ function Uu(e, t) {
12175
12179
  return {
12176
12180
  displayText: l,
12177
12181
  activeRowIndex: n,
12178
- canClear: s,
12182
+ canClear: u,
12179
12183
  canMove: c,
12180
12184
  onAddFilter: m,
12181
12185
  onRemove: f,
@@ -12199,7 +12203,7 @@ const tn = /* @__PURE__ */ ae({
12199
12203
  a && (a.globalConfig = {
12200
12204
  position: "top-center"
12201
12205
  });
12202
- const l = C(e.expressionOptions || {}), i = C(e.formContextData || {}), u = C(e.fields || []), s = '<i class="f-icon f-icon-lookup"></i>', c = C([]), g = C([]), {
12206
+ const l = C(e.expressionOptions || {}), i = C(e.formContextData || {}), s = C(e.fields || []), u = '<i class="f-icon f-icon-lookup"></i>', c = C([]), g = C([]), {
12203
12207
  displayText: m,
12204
12208
  onAddFilter: r,
12205
12209
  onClear: f,
@@ -12219,7 +12223,7 @@ const tn = /* @__PURE__ */ ae({
12219
12223
  function T() {
12220
12224
  return e.editorType === "sort" ? v(Gu, {
12221
12225
  conditions: c.value,
12222
- fields: u.value,
12226
+ fields: s.value,
12223
12227
  activeIndex: S.value,
12224
12228
  onInsert: (j) => k(j),
12225
12229
  onRemove: (j) => B(j),
@@ -12230,7 +12234,7 @@ const tn = /* @__PURE__ */ ae({
12230
12234
  expressionOptions: l.value,
12231
12235
  enableExpression: e.enableExpression,
12232
12236
  conditions: c.value,
12233
- fields: u.value,
12237
+ fields: s.value,
12234
12238
  idField: e.idField,
12235
12239
  activeIndex: S.value,
12236
12240
  onInsert: (j) => k(j),
@@ -12300,7 +12304,7 @@ const tn = /* @__PURE__ */ ae({
12300
12304
  formContextData: he,
12301
12305
  isServerSide: X
12302
12306
  } = j;
12303
- return u.value = U || [], c.value = W || [], g.value = JSON.parse(JSON.stringify(c.value)), l.value = {
12307
+ return s.value = U || [], c.value = W || [], g.value = JSON.parse(JSON.stringify(c.value)), l.value = {
12304
12308
  entities: ee,
12305
12309
  variables: ce,
12306
12310
  isServerSide: X
@@ -12328,7 +12332,7 @@ const tn = /* @__PURE__ */ ae({
12328
12332
  readonly: e.readonly,
12329
12333
  inputType: "text",
12330
12334
  enableClear: e.enableClear,
12331
- buttonContent: s,
12335
+ buttonContent: u,
12332
12336
  buttonBehavior: "Modal",
12333
12337
  modalOptions: L,
12334
12338
  beforeOpen: A,