@farris/ui-vue 1.6.5 → 1.6.6

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 (108) hide show
  1. package/components/avatar/index.esm.js +1 -1
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/button-edit/index.esm.js +2 -2
  4. package/components/button-edit/index.umd.cjs +1 -1
  5. package/components/combo-list/index.esm.js +7 -5
  6. package/components/combo-list/index.umd.cjs +1 -1
  7. package/components/common/index.esm.js +1 -1
  8. package/components/common/index.umd.cjs +1 -1
  9. package/components/component/index.esm.js +1 -1
  10. package/components/component/index.umd.cjs +1 -1
  11. package/components/condition/index.esm.js +3 -2
  12. package/components/condition/index.umd.cjs +1 -1
  13. package/components/content-container/index.esm.js +1 -1
  14. package/components/content-container/index.umd.cjs +1 -1
  15. package/components/data-view/index.esm.js +498 -495
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/date-picker/index.esm.js +833 -832
  18. package/components/date-picker/index.umd.cjs +1 -1
  19. package/components/designer-canvas/index.esm.js +1 -1
  20. package/components/designer-canvas/index.umd.cjs +1 -1
  21. package/components/dynamic-form/index.esm.js +3 -2
  22. package/components/dynamic-form/index.umd.cjs +1 -1
  23. package/components/events-editor/index.esm.js +1 -1
  24. package/components/events-editor/index.umd.cjs +1 -1
  25. package/components/expression-editor/index.esm.js +256 -254
  26. package/components/expression-editor/index.umd.cjs +2 -2
  27. package/components/filter-bar/index.esm.js +416 -394
  28. package/components/filter-bar/index.umd.cjs +1 -1
  29. package/components/filter-condition-editor/index.esm.js +388 -386
  30. package/components/filter-condition-editor/index.umd.cjs +1 -1
  31. package/components/flow-canvas/index.esm.js +1 -1
  32. package/components/flow-canvas/index.umd.cjs +1 -1
  33. package/components/language-textbox/index.esm.js +77 -76
  34. package/components/language-textbox/index.umd.cjs +1 -1
  35. package/components/list-nav/index.esm.js +4 -2
  36. package/components/list-nav/index.umd.cjs +1 -1
  37. package/components/lookup/index.esm.js +118 -118
  38. package/components/lookup/index.umd.cjs +1 -1
  39. package/components/mapping-editor/index.esm.js +80 -81
  40. package/components/mapping-editor/index.umd.cjs +1 -1
  41. package/components/message-box/index.esm.js +237 -237
  42. package/components/message-box/index.umd.cjs +1 -1
  43. package/components/modal/index.esm.js +1 -1
  44. package/components/modal/index.umd.cjs +1 -1
  45. package/components/number-range/index.esm.js +1 -1
  46. package/components/number-range/index.umd.cjs +1 -1
  47. package/components/number-spinner/index.esm.js +9 -3
  48. package/components/number-spinner/index.umd.cjs +1 -1
  49. package/components/order/index.esm.js +114 -112
  50. package/components/order/index.umd.cjs +1 -1
  51. package/components/page-header/index.esm.js +1 -1
  52. package/components/page-header/index.umd.cjs +1 -1
  53. package/components/property-panel/index.esm.js +1 -1
  54. package/components/property-panel/index.umd.cjs +1 -1
  55. package/components/query-solution/index.esm.js +485 -463
  56. package/components/query-solution/index.umd.cjs +3 -3
  57. package/components/radio-group/index.esm.js +30 -30
  58. package/components/radio-group/index.umd.cjs +1 -1
  59. package/components/response-layout/index.esm.js +1 -1
  60. package/components/response-layout/index.umd.cjs +1 -1
  61. package/components/response-layout-editor/index.esm.js +544 -545
  62. package/components/response-layout-editor/index.umd.cjs +1 -1
  63. package/components/response-toolbar/index.esm.js +1 -1
  64. package/components/response-toolbar/index.umd.cjs +1 -1
  65. package/components/schema-selector/index.esm.js +6 -4
  66. package/components/schema-selector/index.umd.cjs +2 -2
  67. package/components/section/index.esm.js +1 -1
  68. package/components/section/index.umd.cjs +1 -1
  69. package/components/sort-condition-editor/index.esm.js +9 -7
  70. package/components/sort-condition-editor/index.umd.cjs +1 -1
  71. package/components/switch/index.esm.js +77 -78
  72. package/components/switch/index.umd.cjs +1 -1
  73. package/components/tabs/index.esm.js +5 -3
  74. package/components/tabs/index.umd.cjs +1 -1
  75. package/components/textarea/index.esm.js +1 -1
  76. package/components/textarea/index.umd.cjs +1 -1
  77. package/components/time-picker/index.esm.js +2 -2
  78. package/components/time-picker/index.umd.cjs +1 -1
  79. package/components/video/index.esm.js +1 -1
  80. package/components/video/index.umd.cjs +1 -1
  81. package/designer/button-edit/index.esm.js +211 -211
  82. package/designer/button-edit/index.umd.cjs +1 -1
  83. package/designer/checkbox/index.esm.js +1 -1
  84. package/designer/checkbox/index.umd.cjs +1 -1
  85. package/designer/checkbox-group/index.esm.js +25 -26
  86. package/designer/checkbox-group/index.umd.cjs +1 -1
  87. package/designer/data-grid/index.esm.js +15 -9
  88. package/designer/data-grid/index.umd.cjs +2 -2
  89. package/designer/farris-designer.all.esm.js +917 -916
  90. package/designer/farris-designer.all.umd.cjs +5 -5
  91. package/designer/input-group/index.esm.js +2 -1
  92. package/designer/input-group/index.umd.cjs +1 -1
  93. package/designer/list-view/index.esm.js +685 -689
  94. package/designer/list-view/index.umd.cjs +3 -3
  95. package/designer/radio-group/index.esm.js +7 -3
  96. package/designer/radio-group/index.umd.cjs +1 -1
  97. package/farris.all.esm.js +5641 -5603
  98. package/farris.all.umd.cjs +21 -21
  99. package/locales/data-grid/ui/en.json +2 -1
  100. package/locales/data-grid/ui/zh-CHS.json +2 -1
  101. package/locales/data-grid/ui/zh-CHT.json +2 -1
  102. package/locales/designer/en.json +2 -1
  103. package/locales/designer/zh-CHS.json +2 -1
  104. package/locales/designer/zh-CHT.json +2 -1
  105. package/locales/ui/en.json +2 -1
  106. package/locales/ui/zh-CHS.json +2 -1
  107. package/locales/ui/zh-CHT.json +2 -1
  108. package/package.json +1 -1
@@ -608,10 +608,10 @@ function da(e, t) {
608
608
  const C = o.value || document.body, I = window.getComputedStyle(C);
609
609
  if (!I || !n.value)
610
610
  return;
611
- const X = we.getTransformInfo(n.value), N = {};
611
+ const U = we.getTransformInfo(n.value), N = {};
612
612
  r.value && (N.deltaL = n.value.offsetLeft - r.value.x, N.deltaT = n.value.offsetTop - r.value.y);
613
613
  const ee = I.getPropertyValue("position");
614
- N.width = C.clientWidth, N.height = C.clientHeight, N.pr = parseInt(I.getPropertyValue("padding-right"), 10), N.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), N.position = I.getPropertyValue("position"), ee === "static" && (C.style.position = "relative"), N.translateX = X.x, N.translateY = X.y, d.value = N;
614
+ N.width = C.clientWidth, N.height = C.clientHeight, N.pr = parseInt(I.getPropertyValue("padding-right"), 10), N.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), N.position = I.getPropertyValue("position"), ee === "static" && (C.style.position = "relative"), N.translateX = U.x, N.translateY = U.y, d.value = N;
615
615
  }
616
616
  function O(C) {
617
617
  if (n.value) {
@@ -626,10 +626,10 @@ function da(e, t) {
626
626
  }
627
627
  }
628
628
  function L() {
629
- var C, I, X, N;
629
+ var C, I, U, N;
630
630
  if (n.value) {
631
631
  const ee = n.value;
632
- s.value && ((s.value.n || s.value.s) && ((C = u.value) != null && C.height) && (ee.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), r.value && ((X = r.value) != null && X.x && (ee.style.left = r.value.x + "px"), (N = r.value) != null && N.y && (ee.style.top = r.value.y + "px")));
632
+ s.value && ((s.value.n || s.value.s) && ((C = u.value) != null && C.height) && (ee.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), r.value && ((U = r.value) != null && U.x && (ee.style.left = r.value.x + "px"), (N = r.value) != null && N.y && (ee.style.top = r.value.y + "px")));
633
633
  }
634
634
  }
635
635
  function k() {
@@ -640,8 +640,8 @@ function da(e, t) {
640
640
  if (o.value) {
641
641
  const C = d.value;
642
642
  if (r.value && u.value && s.value && l.value) {
643
- const I = C.width - C.pr - C.deltaL - C.translateX - r.value.x, X = C.height - C.pb - C.deltaT - C.translateY - r.value.y;
644
- s.value.n && r.value.y + C.translateY < 0 && i.value && (r.value.y = -C.translateY, u.value.height = l.value.height + i.value.y + C.translateY), s.value.w && r.value.x + C.translateX < 0 && i.value && (r.value.x = -C.translateX, u.value.width = l.value.width + i.value.x + C.translateX), u.value.width > I && (u.value.width = I), u.value.height > X && (u.value.height = X);
643
+ const I = C.width - C.pr - C.deltaL - C.translateX - r.value.x, U = C.height - C.pb - C.deltaT - C.translateY - r.value.y;
644
+ s.value.n && r.value.y + C.translateY < 0 && i.value && (r.value.y = -C.translateY, u.value.height = l.value.height + i.value.y + C.translateY), s.value.w && r.value.x + C.translateX < 0 && i.value && (r.value.x = -C.translateX, u.value.width = l.value.width + i.value.x + C.translateX), u.value.width > I && (u.value.width = I), u.value.height > U && (u.value.height = U);
645
645
  }
646
646
  }
647
647
  }
@@ -649,8 +649,8 @@ function da(e, t) {
649
649
  if (!a.value || !l.value || !i.value || !s.value)
650
650
  return;
651
651
  C.subtract(a.value);
652
- const I = C.x, X = C.y;
653
- s.value.n ? (r.value.y = i.value.y + X, u.value.height = l.value.height - X) : s.value.s && (u.value.height = l.value.height + X), s.value.e ? u.value.width = l.value.width + I : s.value.w && (u.value.width = l.value.width - I, r.value.x = i.value.x + I), T(), k(), L();
652
+ const I = C.x, U = C.y;
653
+ s.value.n ? (r.value.y = i.value.y + U, u.value.height = l.value.height - U) : s.value.s && (u.value.height = l.value.height + U), s.value.e ? u.value.width = l.value.width + I : s.value.w && (u.value.width = l.value.width - I, r.value.x = i.value.x + I), T(), k(), L();
654
654
  }
655
655
  function x(C) {
656
656
  if (!p.value)
@@ -663,7 +663,7 @@ function da(e, t) {
663
663
  const {
664
664
  width: C,
665
665
  height: I,
666
- x: X,
666
+ x: U,
667
667
  y: N
668
668
  } = n.value.getBoundingClientRect(), ee = we.getTransformInfo(n.value);
669
669
  return {
@@ -672,7 +672,7 @@ function da(e, t) {
672
672
  height: I
673
673
  },
674
674
  position: {
675
- x: X - ee.x,
675
+ x: U - ee.x,
676
676
  y: N - ee.y
677
677
  }
678
678
  };
@@ -729,8 +729,8 @@ function da(e, t) {
729
729
  }
730
730
  function W(C = !0) {
731
731
  document.body.click();
732
- const I = o.value || document.body, X = ft.getCurrent(I), N = n.value;
733
- C && N && (c.value = F(), c.value.transform = N.style.transform), X && N && (u.value = X, u.value.height -= 14, u.value.width -= 14, N.style.height = u.value.height + "px", N.style.width = u.value.width + "px", N.style.left = "7px", N.style.top = "7px", N.style.transform = "", m.value = {
732
+ const I = o.value || document.body, U = ft.getCurrent(I), N = n.value;
733
+ C && N && (c.value = F(), c.value.transform = N.style.transform), U && N && (u.value = U, u.value.height -= 14, u.value.width -= 14, N.style.height = u.value.height + "px", N.style.width = u.value.width + "px", N.style.left = "7px", N.style.top = "7px", N.style.transform = "", m.value = {
734
734
  size: u.value,
735
735
  position: {
736
736
  x: 0,
@@ -741,17 +741,17 @@ function da(e, t) {
741
741
  function $() {
742
742
  var C, I;
743
743
  if (document.body.click(), c.value) {
744
- const X = {
744
+ const U = {
745
745
  width: c.value.size.width || 0,
746
746
  height: c.value.size.height || 0
747
747
  }, N = {
748
- x: (window.innerWidth - X.width) / 2,
749
- y: (window.innerHeight - X.height) / 2
748
+ x: (window.innerWidth - U.width) / 2,
749
+ y: (window.innerHeight - U.height) / 2
750
750
  };
751
- (C = u.value) == null || C.set(X), (I = r.value) == null || I.set(N);
751
+ (C = u.value) == null || C.set(U), (I = r.value) == null || I.set(N);
752
752
  const ee = n.value;
753
- ee.style.height = X.height + "px", ee.style.width = X.width + "px", ee.style.left = `${N.x}px`, ee.style.top = `${N.y}px`, ee.style.transform = "", m.value = {
754
- size: X,
753
+ ee.style.height = U.height + "px", ee.style.width = U.width + "px", ee.style.left = `${N.x}px`, ee.style.top = `${N.y}px`, ee.style.transform = "", m.value = {
754
+ size: U,
755
755
  position: N
756
756
  }, v.value = e.draggable, B.value = !1;
757
757
  }
@@ -762,9 +762,9 @@ function da(e, t) {
762
762
  if (C) {
763
763
  const {
764
764
  width: I,
765
- height: X
765
+ height: U
766
766
  } = C;
767
- n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight - X) / 2}px`, n.value.style.transform = "";
767
+ n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight - U) / 2}px`, n.value.style.transform = "";
768
768
  }
769
769
  }
770
770
  }
@@ -939,7 +939,7 @@ const pt = /* @__PURE__ */ tt({
939
939
  boundingElement: j,
940
940
  resizedEventParam: C,
941
941
  allowDrag: I,
942
- unWindowResizeHandle: X,
942
+ unWindowResizeHandle: U,
943
943
  moveToCenter: N
944
944
  } = da(e), {
945
945
  registerDraggle: ee
@@ -994,10 +994,10 @@ const pt = /* @__PURE__ */ tt({
994
994
  height: u.value ? "auto" : `${o.value}px`
995
995
  };
996
996
  return e.mask || (M.pointerEvents = "auto"), M;
997
- }), U = () => Eo() || 1040, se = R(() => {
997
+ }), X = () => Eo() || 1040, se = R(() => {
998
998
  const M = {
999
999
  display: "block",
1000
- zIndex: U()
1000
+ zIndex: X()
1001
1001
  };
1002
1002
  return e.mask || (M.pointerEvents = "none", M.backgroundColor = "transparent"), T.value && (M.backgroundColor = "transparent"), M;
1003
1003
  }), Ne = R(() => ({
@@ -1047,7 +1047,7 @@ const pt = /* @__PURE__ */ tt({
1047
1047
  }), vt(() => {
1048
1048
  G.value && !O.value && (O.value = G.value.parentElement, j.value = O.value, ee(y.value, G.value, j.value)), Z.value && document.body.classList.add("modal-open"), Ge = ma(e, t), Oe = pa(e, t);
1049
1049
  }), bt(() => {
1050
- X && X(), Ge && Ge.remove(), Oe && Oe.remove();
1050
+ U && U(), Ge && Ge.remove(), Oe && Oe.remove();
1051
1051
  }), t.expose({
1052
1052
  modalElementRef: G,
1053
1053
  updateModalOptions: de,
@@ -1679,7 +1679,7 @@ function Qn(e, t, n) {
1679
1679
  $.readonly = $.readonly === void 0 ? _() : $.readonly;
1680
1680
  const j = D.type === "cascade" ? p(D.properties, v, B, E, O, L, k) : [], C = !0;
1681
1681
  let I = s(D, k);
1682
- const X = R({
1682
+ const U = R({
1683
1683
  get() {
1684
1684
  if (x.value) {
1685
1685
  if (["class", "style"].find((ye) => ye === F) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
@@ -1692,7 +1692,7 @@ function Qn(e, t, n) {
1692
1692
  set(ae) {
1693
1693
  x.value += 1, I && I.convertTo ? (I.convertTo(E, b, ae, O, L), I.convertTo(B, b, ae, O, L)) : (E[b] = ae, B[b] = ae);
1694
1694
  }
1695
- }), { refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe } = D, Z = { propertyID: F, propertyName: y, propertyType: G, propertyValue: X, editor: $, visible: J, readonly: _, cascadeConfig: j, hideCascadeTitle: C, refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe };
1695
+ }), { refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe } = D, Z = { propertyID: F, propertyName: y, propertyType: G, propertyValue: U, editor: $, visible: J, readonly: _, cascadeConfig: j, hideCascadeTitle: C, refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe };
1696
1696
  return v[F] = Z, Z;
1697
1697
  });
1698
1698
  }
@@ -2092,10 +2092,10 @@ var Qa = { exports: {} };
2092
2092
  function d(y, G) {
2093
2093
  var W = arguments.length;
2094
2094
  W === 1 && Array.isArray(y) === !1 && (G = y, y = []);
2095
- var $, J, _, j, C, I, X, N, ee, le = null, fe, Z, ae = !1, ye = 0, oe, U = G || {};
2096
- U.moves === void 0 && (U.moves = O), U.accepts === void 0 && (U.accepts = O), U.invalid === void 0 && (U.invalid = We), U.containers === void 0 && (U.containers = y || []), U.isContainer === void 0 && (U.isContainer = E), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = s.body);
2095
+ var $, J, _, j, C, I, U, N, ee, le = null, fe, Z, ae = !1, ye = 0, oe, X = G || {};
2096
+ X.moves === void 0 && (X.moves = O), X.accepts === void 0 && (X.accepts = O), X.invalid === void 0 && (X.invalid = We), X.containers === void 0 && (X.containers = y || []), X.isContainer === void 0 && (X.isContainer = E), X.copy === void 0 && (X.copy = !1), X.copySortSource === void 0 && (X.copySortSource = !1), X.revertOnSpill === void 0 && (X.revertOnSpill = !1), X.removeOnSpill === void 0 && (X.removeOnSpill = !1), X.direction === void 0 && (X.direction = "vertical"), X.ignoreInputTextSelection === void 0 && (X.ignoreInputTextSelection = !0), X.mirrorContainer === void 0 && (X.mirrorContainer = s.body);
2097
2097
  var se = i({
2098
- containers: U.containers,
2098
+ containers: X.containers,
2099
2099
  start: Oe,
2100
2100
  end: Fe,
2101
2101
  cancel: M,
@@ -2104,9 +2104,9 @@ var Qa = { exports: {} };
2104
2104
  canMove: Ge,
2105
2105
  dragging: !1
2106
2106
  });
2107
- return U.removeOnSpill === !0 && se.on("over", K).on("out", ce), De(), se;
2107
+ return X.removeOnSpill === !0 && se.on("over", K).on("out", ce), De(), se;
2108
2108
  function Ne(S) {
2109
- return se.containers.indexOf(S) !== -1 || U.isContainer(S);
2109
+ return se.containers.indexOf(S) !== -1 || X.isContainer(S);
2110
2110
  }
2111
2111
  function De(S) {
2112
2112
  var P = S ? "remove" : "add";
@@ -2140,8 +2140,8 @@ var Qa = { exports: {} };
2140
2140
  Re({});
2141
2141
  return;
2142
2142
  }
2143
- if (!(S.clientX !== void 0 && Math.abs(S.clientX - j) <= (U.slideFactorX || 0) && S.clientY !== void 0 && Math.abs(S.clientY - C) <= (U.slideFactorY || 0))) {
2144
- if (U.ignoreInputTextSelection) {
2143
+ if (!(S.clientX !== void 0 && Math.abs(S.clientX - j) <= (X.slideFactorX || 0) && S.clientY !== void 0 && Math.abs(S.clientY - C) <= (X.slideFactorY || 0))) {
2144
+ if (X.ignoreInputTextSelection) {
2145
2145
  var P = q("clientX", S) || 0, V = q("clientY", S) || 0, Q = s.elementFromPoint(P, V);
2146
2146
  if (b(Q))
2147
2147
  return;
@@ -2154,11 +2154,11 @@ var Qa = { exports: {} };
2154
2154
  function de(S) {
2155
2155
  if (!(se.dragging && $) && !Ne(S)) {
2156
2156
  for (var P = S; T(S) && Ne(T(S)) === !1; )
2157
- if (U.invalid(S, P) || (S = T(S), !S))
2157
+ if (X.invalid(S, P) || (S = T(S), !S))
2158
2158
  return;
2159
2159
  var V = T(S);
2160
- if (V && !U.invalid(S, P)) {
2161
- var Q = U.moves(S, V, P, F(S));
2160
+ if (V && !X.invalid(S, P)) {
2161
+ var Q = X.moves(S, V, P, F(S));
2162
2162
  if (Q)
2163
2163
  return {
2164
2164
  item: S,
@@ -2175,7 +2175,7 @@ var Qa = { exports: {} };
2175
2175
  P && He(P);
2176
2176
  }
2177
2177
  function He(S) {
2178
- Tt(S.item, S.source) && (N = S.item.cloneNode(!0), se.emit("cloned", N, S.item, "copy")), J = S.source, _ = S.item, I = X = F(S.item), se.dragging = !0, se.emit("drag", _, J);
2178
+ Tt(S.item, S.source) && (N = S.item.cloneNode(!0), se.emit("cloned", N, S.item, "copy")), J = S.source, _ = S.item, I = U = F(S.item), se.dragging = !0, se.emit("drag", _, J);
2179
2179
  }
2180
2180
  function We() {
2181
2181
  return !1;
@@ -2192,12 +2192,12 @@ var Qa = { exports: {} };
2192
2192
  function Re(S) {
2193
2193
  if ($e(), !!se.dragging) {
2194
2194
  var P = N || _, V = q("clientX", S) || 0, Q = q("clientY", S) || 0, re = B($, V, Q), ie = he(re, V, Q);
2195
- ie && (N && U.copySortSource || !N || ie !== J) ? _e(P, ie) : U.removeOnSpill ? Le() : M();
2195
+ ie && (N && X.copySortSource || !N || ie !== J) ? _e(P, ie) : X.removeOnSpill ? Le() : M();
2196
2196
  }
2197
2197
  }
2198
2198
  function _e(S, P) {
2199
2199
  var V = T(S);
2200
- N && U.copySortSource && P === J && V.removeChild(_), ge(P) ? se.emit("cancel", S, J) : se.emit("drop", S, P, J, X), ne();
2200
+ N && X.copySortSource && P === J && V.removeChild(_), ge(P) ? se.emit("cancel", S, J) : se.emit("drop", S, P, J, U), ne();
2201
2201
  }
2202
2202
  function Le() {
2203
2203
  if (se.dragging) {
@@ -2207,17 +2207,17 @@ var Qa = { exports: {} };
2207
2207
  }
2208
2208
  function M(S) {
2209
2209
  if (se.dragging) {
2210
- var P = arguments.length > 0 ? S : U.revertOnSpill, V = N || _, Q = T(V), re = ge(Q);
2211
- re === !1 && P && (N ? Q && Q.removeChild(N) : J.insertBefore(V, I)), re || P ? se.emit("cancel", V, J, J) : se.emit("drop", V, Q, J, X), ne();
2210
+ var P = arguments.length > 0 ? S : X.revertOnSpill, V = N || _, Q = T(V), re = ge(Q);
2211
+ re === !1 && P && (N ? Q && Q.removeChild(N) : J.insertBefore(V, I)), re || P ? se.emit("cancel", V, J, J) : se.emit("drop", V, Q, J, U), ne();
2212
2212
  }
2213
2213
  }
2214
2214
  function ne() {
2215
2215
  var S = N || _;
2216
- $e(), Je(), nt(), S && r.rm(S, "gu-transit"), ee && clearTimeout(ee), se.dragging = !1, le && se.emit("out", S, le, J), se.emit("dragend", S, ye), J = _ = N = I = X = ee = le = null;
2216
+ $e(), Je(), nt(), S && r.rm(S, "gu-transit"), ee && clearTimeout(ee), se.dragging = !1, le && se.emit("out", S, le, J), se.emit("dragend", S, ye), J = _ = N = I = U = ee = le = null;
2217
2217
  }
2218
2218
  function ge(S, P) {
2219
2219
  var V;
2220
- return P !== void 0 ? V = P : $ ? V = X : V = F(N || _), S === J && V === I;
2220
+ return P !== void 0 ? V = P : $ ? V = U : V = F(N || _), S === J && V === I;
2221
2221
  }
2222
2222
  function he(S, P, V) {
2223
2223
  for (var Q = S; Q && !re(); )
@@ -2228,7 +2228,7 @@ var Qa = { exports: {} };
2228
2228
  if (ie === !1)
2229
2229
  return !1;
2230
2230
  var Pe = Qe(Q, S), Be = gt(Q, Pe, P, V), Ee = ge(Q, Be);
2231
- return Ee ? !0 : U.accepts(_, Q, J, Be);
2231
+ return Ee ? !0 : X.accepts(_, Q, J, Be);
2232
2232
  }
2233
2233
  }
2234
2234
  function Ve(S) {
@@ -2240,14 +2240,14 @@ var Qa = { exports: {} };
2240
2240
  var Q = N || _, re = B($, P, V), ie = he(re, P, V), Pe = ie !== null && ie !== le;
2241
2241
  (Pe || ie === null) && (Me(), le = ie, Ue()), St(re, V);
2242
2242
  var Be = T(Q);
2243
- if (ie === J && N && !U.copySortSource) {
2243
+ if (ie === J && N && !X.copySortSource) {
2244
2244
  Be && Be.removeChild(Q);
2245
2245
  return;
2246
2246
  }
2247
2247
  var Ee, qe = Qe(ie, re);
2248
2248
  if (ae = it(qe, ie), qe !== null)
2249
2249
  Ee = gt(ie, qe, P, V);
2250
- else if (U.revertOnSpill === !0 && !N)
2250
+ else if (X.revertOnSpill === !0 && !N)
2251
2251
  Ee = I, ie = J;
2252
2252
  else {
2253
2253
  N && Be && Be.removeChild(Q), N && Z && (Z.style.display = "none");
@@ -2265,7 +2265,7 @@ var Qa = { exports: {} };
2265
2265
  }
2266
2266
  }
2267
2267
  function w(S, P, V) {
2268
- (S === P || S === F(P)) && (X = F(P)), (S === null && V || S !== P && S !== F(P)) && (X = S);
2268
+ (S === P || S === F(P)) && (U = F(P)), (S === null && V || S !== P && S !== F(P)) && (U = S);
2269
2269
  }
2270
2270
  function K(S) {
2271
2271
  r.rm(S, "gu-hide");
@@ -2274,17 +2274,17 @@ var Qa = { exports: {} };
2274
2274
  se.dragging && r.add(S, "gu-hide");
2275
2275
  }
2276
2276
  function Y() {
2277
- $ || ($ = document.createElement("div"), $.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;", $.innerHTML = U.getMirrorText && U.getMirrorText(_) || "控件", r.add($, "gu-mirror"), U.mirrorContainer.appendChild($), c(p, "add", "mousemove", Ve), r.add(U.mirrorContainer, "gu-unselectable"), se.emit("cloned", $, _, "mirror"));
2277
+ $ || ($ = document.createElement("div"), $.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;", $.innerHTML = X.getMirrorText && X.getMirrorText(_) || "控件", r.add($, "gu-mirror"), X.mirrorContainer.appendChild($), c(p, "add", "mousemove", Ve), r.add(X.mirrorContainer, "gu-unselectable"), se.emit("cloned", $, _, "mirror"));
2278
2278
  }
2279
2279
  function pe() {
2280
2280
  if (Z = document.createElement("div"), r.add(Z, "gu-insertion"), _) {
2281
2281
  var S = _.getBoundingClientRect();
2282
2282
  Z.style.left = S.left + "px", Z.style.top = S.top + "px";
2283
2283
  }
2284
- ae = !1, U.mirrorContainer.appendChild(Z);
2284
+ ae = !1, X.mirrorContainer.appendChild(Z);
2285
2285
  }
2286
2286
  function Je() {
2287
- $ && (r.rm(U.mirrorContainer, "gu-unselectable"), c(p, "remove", "mousemove", Ve), T($).removeChild($), $ = null);
2287
+ $ && (r.rm(X.mirrorContainer, "gu-unselectable"), c(p, "remove", "mousemove", Ve), T($).removeChild($), $ = null);
2288
2288
  }
2289
2289
  function nt() {
2290
2290
  Z && (T(Z).removeChild(Z), Z = null);
@@ -2343,7 +2343,7 @@ var Qa = { exports: {} };
2343
2343
  P === _ && _ && (Z.style.display = "none");
2344
2344
  }
2345
2345
  function xt(S) {
2346
- X = null;
2346
+ U = null;
2347
2347
  var P = S.lastElementChild;
2348
2348
  if (P) {
2349
2349
  var V = P.getBoundingClientRect();
@@ -2352,7 +2352,7 @@ var Qa = { exports: {} };
2352
2352
  Z.style.display = "none";
2353
2353
  }
2354
2354
  function St(S, P) {
2355
- if (!U.mirrorContainer.contains(S) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (oe = m(S), !oe || !oe.contains(S)))
2355
+ if (!X.mirrorContainer.contains(S) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (oe = m(S), !oe || !oe.contains(S)))
2356
2356
  return;
2357
2357
  const V = document.querySelector(".dgComponentSelected"), Q = oe.getBoundingClientRect();
2358
2358
  if (P - 30 < Q.top && oe.scrollTop > 0) {
@@ -2366,7 +2366,7 @@ var Qa = { exports: {} };
2366
2366
  }
2367
2367
  }
2368
2368
  function gt(S, P, V, Q) {
2369
- var re = U.direction === "horizontal", ie = U.direction === "mixed", Pe = P !== S ? Ee() : Be();
2369
+ var re = X.direction === "horizontal", ie = X.direction === "mixed", Pe = P !== S ? Ee() : Be();
2370
2370
  return Pe;
2371
2371
  function Be() {
2372
2372
  var be = S.children.length, Ue, Me, xe;
@@ -2388,7 +2388,7 @@ var Qa = { exports: {} };
2388
2388
  }
2389
2389
  }
2390
2390
  function Tt(S, P) {
2391
- return typeof U.copy == "boolean" ? U.copy : U.copy(S, P);
2391
+ return typeof X.copy == "boolean" ? X.copy : X.copy(S, P);
2392
2392
  }
2393
2393
  }
2394
2394
  function m(y) {
@@ -3285,7 +3285,7 @@ const ol = /* @__PURE__ */ tt({
3285
3285
  C(l);
3286
3286
  const {
3287
3287
  applyColumnSetting: I,
3288
- removeColumnSetting: X
3288
+ removeColumnSetting: U
3289
3289
  } = xn(e);
3290
3290
  e.showSetting && I(l);
3291
3291
  const N = Sn(e, t), ee = Tn(e), {
@@ -3294,7 +3294,7 @@ const ol = /* @__PURE__ */ tt({
3294
3294
  updateColumnRenderContext: Z
3295
3295
  } = N;
3296
3296
  le(b, ee);
3297
- const ae = Bn(e, fe), ye = Fn(e, t, F, i), oe = kn(e, t, i, ye, f), U = In(e), se = On(e, oe, U), Ne = En(e, b, oe, O, i, U, se), De = Mn(e, l, b, W, 0, Ne), {
3297
+ const ae = Bn(e, fe), ye = Fn(e, t, F, i), oe = kn(e, t, i, ye, f), X = In(e), se = On(e, oe, X), Ne = En(e, b, oe, O, i, X, se), De = Mn(e, l, b, W, 0, Ne), {
3298
3298
  getVisualData: Ie
3299
3299
  } = De, Ye = Dn(e, fe), Xe = Rn(e, F), {
3300
3300
  sidebarWidth: Ae
@@ -3321,7 +3321,7 @@ const ol = /* @__PURE__ */ tt({
3321
3321
  "fv-grid-wrap-content": v.value
3322
3322
  })), {
3323
3323
  renderDataArea: ge
3324
- } = nl(e, t, p, d, m, Ye, N, b, oe, O, ye, F, y, ve, De, U, f), {
3324
+ } = nl(e, t, p, d, m, Ye, N, b, oe, O, ye, F, y, ve, De, X, f), {
3325
3325
  renderGridHeader: he,
3326
3326
  renderGridColumnResizeOverlay: Ve,
3327
3327
  shouldShowHeader: w
@@ -3466,7 +3466,7 @@ const ol = /* @__PURE__ */ tt({
3466
3466
  return L.value;
3467
3467
  }
3468
3468
  me(() => e.showSetting, (A, te) => {
3469
- A !== te && (A ? I(l) : X(l), P(l.value));
3469
+ A !== te && (A ? I(l) : U(l), P(l.value));
3470
3470
  });
3471
3471
  function Vt(A) {
3472
3472
  return f.value.filter((te) => A.includes(te.raw[e.idField]));
@@ -4180,7 +4180,7 @@ function ti(e, t, n, o) {
4180
4180
  }, [u.value])]);
4181
4181
  }
4182
4182
  function ni(e, t, n, o, a) {
4183
- const l = h(e.type), i = h(e.buttons), u = h(e.exceptionInfo), r = h(a.ok || e.okButtonText), s = h(a.cancel || e.cancelButtonText), p = h(e.showCancelButton), d = h(e.showOkButton), m = R(() => !!(i.value && i.value.length)), f = R(() => u.value && u.value.message && u.value.detail), c = R(() => !(i.value && i.value.length) && (d.value || p.value)), v = ti(e, n, o, a);
4183
+ const l = h(e.type), i = h(e.buttons), u = h(e.exceptionInfo), r = h(a.ok || e.okButtonText), s = h(a.cancel || e.cancelButtonText), p = h(e.showCancelButton), d = h(e.showOkButton), m = R(() => !!(i.value && i.value.length)), f = R(() => !!(u.value && u.value.detail)), c = R(() => !(i.value && i.value.length) && (d.value || p.value)), v = ti(e, n, o, a);
4184
4184
  r.value === "关闭" ? r.value = a.close : r.value === "知道了" && (r.value = a.exception.roger);
4185
4185
  function B(O) {
4186
4186
  l.value === "question" && t.emit("reject"), t.emit("close");
@@ -4567,7 +4567,7 @@ function ri(e, t, n, o) {
4567
4567
  if (!!t.slots.default) {
4568
4568
  if (!f && !l.value && !await i())
4569
4569
  return;
4570
- l.value = !l.value, await mt(), r();
4570
+ l.value = !l.value, l.value && (await mt(), r());
4571
4571
  }
4572
4572
  }
4573
4573
  async function p(f = !1) {
@@ -5037,7 +5037,7 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
5037
5037
  gridRowClass: j,
5038
5038
  onClickRow: C,
5039
5039
  onMouseoverRow: I,
5040
- onMouseoutRow: X
5040
+ onMouseoutRow: U
5041
5041
  } = d, {
5042
5042
  onClickCell: N
5043
5043
  } = r, {
@@ -5049,7 +5049,7 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
5049
5049
  } = u, {
5050
5050
  navigateOnKeyUp: ae,
5051
5051
  navigateOnKeyDown: ye
5052
- } = p, oe = (w) => (w || []).some((K) => Fo(K) ? !(K.type === ko || K.type === lt && !oe(K.children)) : !0) ? w : null, U = (w) => {
5052
+ } = p, oe = (w) => (w || []).some((K) => Fo(K) ? !(K.type === ko || K.type === lt && !oe(K.children)) : !0) ? w : null, X = (w) => {
5053
5053
  var K, ce, Y;
5054
5054
  return ((ce = (K = w.column) == null ? void 0 : K.editor) == null ? void 0 : ce.type) === "switch" || ((Y = w.column) == null ? void 0 : Y.dataType) === "boolean" ? {
5055
5055
  display: "flex",
@@ -5157,7 +5157,7 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
5157
5157
  }
5158
5158
  function $e(w, K) {
5159
5159
  return !B(w.data) && !E(w.data) ? w.data.toString() : w.data, w.mode === Ho.editing ? g("div", {
5160
- style: U(w)
5160
+ style: X(w)
5161
5161
  }, [w.getEditor(w)]) : w.column.columnTemplate ? w.column.columnTemplate(w, K) : w.formatter ? We(w, K) : Fe(w);
5162
5162
  }
5163
5163
  function Re(w, K, ce) {
@@ -5168,7 +5168,7 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
5168
5168
  style: F(w),
5169
5169
  onClick: (Y) => C(Y, w),
5170
5170
  onMouseover: (Y) => I(Y, w),
5171
- onMouseout: (Y) => X(Y, w)
5171
+ onMouseout: (Y) => U(Y, w)
5172
5172
  }, [Object.values(w.data).filter((Y) => K[Y.field] && Y.rowSpan === 1).map((Y) => {
5173
5173
  var Je, nt;
5174
5174
  const pe = t.slots.cellTemplate && oe(t.slots.cellTemplate({
@@ -5278,13 +5278,13 @@ const po = /* @__PURE__ */ tt({
5278
5278
  removeColumnSetting: C
5279
5279
  } = xn(e);
5280
5280
  e.showSetting && j(l);
5281
- const I = Sn(e, t), X = Tn(e), {
5281
+ const I = Sn(e, t), U = Tn(e), {
5282
5282
  applyColumnSorter: N,
5283
5283
  columnContext: ee,
5284
5284
  updateColumnRenderContext: le
5285
5285
  } = I;
5286
- N(k, X);
5287
- const fe = Bn(e, ee), Z = Fn(e, t, x, i), ae = kn(e, t, i, Z, m), ye = In(e), oe = On(e, ae, ye), U = En(e, k, ae, E, i, ye, oe), se = $o(e, i, oe, U), Ne = Lo(e, i, oe, U), De = Mn(e, l, k, W, n, U, se, Ne), {
5286
+ N(k, U);
5287
+ const fe = Bn(e, ee), Z = Fn(e, t, x, i), ae = kn(e, t, i, Z, m), ye = In(e), oe = On(e, ae, ye), X = En(e, k, ae, E, i, ye, oe), se = $o(e, i, oe, X), Ne = Lo(e, i, oe, X), De = Mn(e, l, k, W, n, X, se, Ne), {
5288
5288
  getVisualData: Ie
5289
5289
  } = De, Ye = Vo(ee), Xe = Dn(e, ee), Ae = Rn(e, x), {
5290
5290
  sidebarWidth: ve,
@@ -5317,7 +5317,7 @@ const po = /* @__PURE__ */ tt({
5317
5317
  renderGridHeader: w,
5318
5318
  renderGridColumnResizeOverlay: K,
5319
5319
  shouldShowHeader: ce
5320
- } = Ln(e, t, r, p, d, I, k, ne, M, B, Le, Re, fe, x, Ae, X, de, We, m), {
5320
+ } = Ln(e, t, r, p, d, I, k, ne, M, B, Le, Re, fe, x, Ae, U, de, We, m), {
5321
5321
  renderDataGridPagination: Y
5322
5322
  } = _n(e, t, k, de, T, x), {
5323
5323
  renderDataGridSidebar: pe
@@ -5376,7 +5376,7 @@ const po = /* @__PURE__ */ tt({
5376
5376
  });
5377
5377
  }
5378
5378
  function ie(z) {
5379
- z && (l.value = z, re(l.value), _(l), e.showSetting && j(l), le(l.value), N(k, X), _e());
5379
+ z && (l.value = z, re(l.value), _(l), e.showSetting && j(l), le(l.value), N(k, U), _e());
5380
5380
  }
5381
5381
  me(() => e.showSetting, (z, ue) => {
5382
5382
  z !== ue && ie(l.value);
@@ -5499,7 +5499,7 @@ const po = /* @__PURE__ */ tt({
5499
5499
  dataView: k,
5500
5500
  useFilterComposition: B,
5501
5501
  useFitColumnComposition: Re,
5502
- useSortComposition: X,
5502
+ useSortComposition: U,
5503
5503
  useVirtualScrollComposition: de
5504
5504
  }), () => g("div", {
5505
5505
  ref: u,
@@ -5593,9 +5593,9 @@ const Ut = /* @__PURE__ */ tt({
5593
5593
  props: vo,
5594
5594
  emits: ["submitModal", "update:modelValue"],
5595
5595
  setup(e, t) {
5596
- const n = '<i class="f-icon f-icon-lookup"></i>', o = h(), a = h(e.modelValue || {}), l = h([]), i = h(e.fromData.dataSource || []), u = h([]), r = e.fromData.repositoryToken ? Rt(e.fromData.repositoryToken) : null, s = e.toData.repositoryToken ? Rt(e.toData.repositoryToken) : null, p = Rt(uo), d = (j) => ((j.raw.$type !== "SimpleField" || j.raw.selectable === !1) && (j.disabled = !0), j), m = R(() => Yt(i.value)), f = R(() => Yt(u.value)), c = (j, C, I, X) => {
5596
+ const n = '<i class="f-icon f-icon-lookup"></i>', o = h(), a = h(e.modelValue || {}), l = h([]), i = h(e.fromData.dataSource || []), u = h([]), r = e.fromData.repositoryToken ? Rt(e.fromData.repositoryToken) : null, s = e.toData.repositoryToken ? Rt(e.toData.repositoryToken) : null, p = Rt(uo), d = (j) => ((j.raw.$type !== "SimpleField" || j.raw.selectable === !1) && (j.disabled = !0), j), m = R(() => Yt(i.value)), f = R(() => Yt(u.value)), c = (j, C, I, U) => {
5597
5597
  var le, fe;
5598
- const N = ((le = j.value.find((Z) => Z[X] === C)) == null ? void 0 : le[I || "name"]) || "", ee = ((fe = j.value.find((Z) => Z[X] === C)) == null ? void 0 : fe[X || "code"]) || "";
5598
+ const N = ((le = j.value.find((Z) => Z[U] === C)) == null ? void 0 : le[I || "name"]) || "", ee = ((fe = j.value.find((Z) => Z[U] === C)) == null ? void 0 : fe[U || "code"]) || "";
5599
5599
  return N && ee ? `${N}[${ee}]` : "";
5600
5600
  }, v = [{
5601
5601
  field: "sourceField",
@@ -5634,7 +5634,7 @@ const Ut = /* @__PURE__ */ tt({
5634
5634
  customRowStatus: d,
5635
5635
  displayFormatter: e.toData.displayFormatter
5636
5636
  },
5637
- formatter: (j, C) => C.raw.targetField ? (C.raw.targetField.indexOf(",") > -1 ? C.raw.targetField.split(",") : [C.raw.targetField]).map((X) => c(f, X, e.toData.textField, e.toData.valueField)).join(",") : ""
5637
+ formatter: (j, C) => C.raw.targetField ? (C.raw.targetField.indexOf(",") > -1 ? C.raw.targetField.split(",") : [C.raw.targetField]).map((U) => c(f, U, e.toData.textField, e.toData.valueField)).join(",") : ""
5638
5638
  }];
5639
5639
  function B() {
5640
5640
  return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@@ -5662,7 +5662,6 @@ const Ut = /* @__PURE__ */ tt({
5662
5662
  };
5663
5663
  }
5664
5664
  function b() {
5665
- var N;
5666
5665
  if (!l.value.length) {
5667
5666
  p.warning("请选择要删除的映射字段!");
5668
5667
  return;
@@ -5674,8 +5673,8 @@ const Ut = /* @__PURE__ */ tt({
5674
5673
  const C = l.value[0].id;
5675
5674
  if (o.value.removeDataItemById(C), l.value = [], !O.value.length)
5676
5675
  return;
5677
- const I = Math.min(j, O.value.length - 1), X = (N = O.value[I]) == null ? void 0 : N.id;
5678
- X && o.value.selectItemById(X);
5676
+ const I = Math.min(j, O.value.length - 1), U = O.value[I], N = U == null ? void 0 : U.id;
5677
+ N && (o.value.selectItemById(N), l.value = [U]);
5679
5678
  }
5680
5679
  function x() {
5681
5680
  Ft.question("确定要清空所有映射字段吗?", "", () => {
@@ -5743,8 +5742,8 @@ const Ut = /* @__PURE__ */ tt({
5743
5742
  }), !1;
5744
5743
  const C = [], I = r ? r.getData(e.editorParams) : Promise.resolve(i.value);
5745
5744
  C.push(I), typeof e.toData.dataSource == "function" ? u.value = e.toData.dataSource() : u.value = e.toData.dataSource;
5746
- const X = s ? s.getData(e.editorParams) : Promise.resolve(u.value);
5747
- return C.push(X), Promise.all(C).then(([le, fe]) => (i.value = le, u.value = fe, v[0].editor.data = le, v[1].editor.data = fe, !0));
5745
+ const U = s ? s.getData(e.editorParams) : Promise.resolve(u.value);
5746
+ return C.push(U), Promise.all(C).then(([le, fe]) => (i.value = le, u.value = fe, v[0].editor.data = le, v[1].editor.data = fe, !0));
5748
5747
  }
5749
5748
  function W(j, C) {
5750
5749
  j.forEach((I) => {
@@ -5756,10 +5755,10 @@ const Ut = /* @__PURE__ */ tt({
5756
5755
  column: C,
5757
5756
  rawData: I
5758
5757
  } = j, {
5759
- field: X,
5758
+ field: U,
5760
5759
  editor: N
5761
5760
  } = C;
5762
- if (X === "sourceField" && N) {
5761
+ if (U === "sourceField" && N) {
5763
5762
  const ee = O.value.filter((le) => le.sourceField !== I.sourceField).map((le) => le.sourceField);
5764
5763
  W(i.value, ee), N.data = Nt(i.value);
5765
5764
  }
@@ -5817,7 +5816,7 @@ const Ut = /* @__PURE__ */ tt({
5817
5816
  columns: v,
5818
5817
  data: O.value,
5819
5818
  newDataItem: T,
5820
- onSelectionUpdate: y,
5819
+ onSelectionChange: y,
5821
5820
  beforeEditCell: $
5822
5821
  }, null)])])]
5823
5822
  });