@farris/ui-vue 1.2.6 → 1.2.7

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 (74) hide show
  1. package/components/accordion/index.esm.js +147 -139
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +11 -28
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/checkbox/index.esm.js +33 -50
  6. package/components/checkbox/index.umd.cjs +1 -1
  7. package/components/combo-list/index.esm.js +183 -171
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/condition/index.esm.js +236 -235
  10. package/components/condition/index.umd.cjs +1 -1
  11. package/components/data-grid/index.esm.js +1531 -1560
  12. package/components/data-grid/index.umd.cjs +1 -1
  13. package/components/data-view/index.esm.js +1299 -1300
  14. package/components/data-view/index.umd.cjs +1 -1
  15. package/components/date-picker/index.esm.js +235 -252
  16. package/components/date-picker/index.umd.cjs +1 -1
  17. package/components/dynamic-form/index.esm.js +127 -143
  18. package/components/dynamic-form/index.umd.cjs +1 -1
  19. package/components/dynamic-view/index.esm.js +206 -201
  20. package/components/dynamic-view/index.umd.cjs +1 -1
  21. package/components/external-container/index.esm.js +650 -647
  22. package/components/external-container/index.umd.cjs +1 -1
  23. package/components/field-selector/index.esm.js +1101 -1131
  24. package/components/field-selector/index.umd.cjs +1 -1
  25. package/components/filter-bar/index.esm.js +335 -332
  26. package/components/filter-bar/index.umd.cjs +1 -1
  27. package/components/input-group/index.esm.js +128 -145
  28. package/components/input-group/index.umd.cjs +1 -1
  29. package/components/list-view/index.esm.js +306 -303
  30. package/components/list-view/index.umd.cjs +1 -1
  31. package/components/lookup/index.esm.js +2470 -2469
  32. package/components/lookup/index.umd.cjs +1 -1
  33. package/components/mapping-editor/index.esm.js +1928 -1958
  34. package/components/mapping-editor/index.umd.cjs +1 -1
  35. package/components/order/index.esm.js +802 -788
  36. package/components/order/index.umd.cjs +1 -1
  37. package/components/page-header/index.esm.js +116 -137
  38. package/components/page-header/index.umd.cjs +1 -1
  39. package/components/property-editor/index.esm.js +533 -521
  40. package/components/property-editor/index.umd.cjs +2 -2
  41. package/components/property-panel/index.esm.js +178 -177
  42. package/components/property-panel/index.umd.cjs +1 -1
  43. package/components/radio-group/index.esm.js +56 -73
  44. package/components/radio-group/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +547 -518
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/response-toolbar/index.esm.js +260 -281
  48. package/components/response-toolbar/index.umd.cjs +1 -1
  49. package/components/schema-selector/index.esm.js +598 -617
  50. package/components/schema-selector/index.umd.cjs +2 -2
  51. package/components/switch/index.esm.js +137 -154
  52. package/components/switch/index.umd.cjs +1 -1
  53. package/components/tabs/index.esm.js +109 -130
  54. package/components/tabs/index.umd.cjs +1 -1
  55. package/components/textarea/index.esm.js +103 -120
  56. package/components/textarea/index.umd.cjs +1 -1
  57. package/components/time-picker/index.esm.js +172 -189
  58. package/components/time-picker/index.umd.cjs +1 -1
  59. package/components/transfer/index.esm.js +124 -122
  60. package/components/transfer/index.umd.cjs +1 -1
  61. package/components/tree-grid/index.esm.js +1600 -1630
  62. package/components/tree-grid/index.umd.cjs +1 -1
  63. package/components/tree-view/index.esm.js +245 -246
  64. package/components/tree-view/index.umd.cjs +1 -1
  65. package/farris.all.esm.js +4123 -4112
  66. package/farris.all.umd.cjs +8 -8
  67. package/package.json +1 -1
  68. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  69. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  70. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  71. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  72. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
  73. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
  74. package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
@@ -42,11 +42,11 @@ function Ot(t, e) {
42
42
  return o;
43
43
  }, {});
44
44
  }
45
- function Ft(t, e, n = /* @__PURE__ */ new Map()) {
45
+ function Rt(t, e, n = /* @__PURE__ */ new Map()) {
46
46
  const o = At(t, e);
47
47
  return Ot(o, n);
48
48
  }
49
- function Rt(t = {}) {
49
+ function Ft(t = {}) {
50
50
  function e(i, b, T, S) {
51
51
  if (typeof T == "number")
52
52
  return S[i].length === T;
@@ -212,10 +212,10 @@ const H = {
212
212
  ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
213
213
  /** 审批类 end */
214
214
  }, We = {}, Lt = {};
215
- Rt();
215
+ Ft();
216
216
  function ve(t, e, n = /* @__PURE__ */ new Map(), o = (r, f, v) => f, a = {}, s = (r) => r) {
217
217
  return je[e.title] = e, Ve[e.title] = o, We[e.title] = a, Lt[e.title] = s, (r = {}) => {
218
- const f = Ft(r, e, n), v = Object.keys(t).reduce((i, b) => (i[b] = t[b].default, i), {});
218
+ const f = Rt(r, e, n), v = Object.keys(t).reduce((i, b) => (i[b] = t[b].default, i), {});
219
219
  return Object.assign(v, f);
220
220
  };
221
221
  }
@@ -510,7 +510,7 @@ function Yt(t, e, n, o) {
510
510
  } = e, b = h("auto"), T = P(() => {
511
511
  var x, j;
512
512
  let c = [];
513
- return t.searchBoxVisible ? c = (x = r.value) == null ? void 0 : x.filter((R) => R.props.title.includes(i.value)) : c = (j = r.value) == null ? void 0 : j.slice(), c;
513
+ return t.searchBoxVisible ? c = (x = r.value) == null ? void 0 : x.filter((F) => F.props.title.includes(i.value)) : c = (j = r.value) == null ? void 0 : j.slice(), c;
514
514
  }), S = P(() => ({
515
515
  "dropdown-menu": !0,
516
516
  "tabs-pt28": t.searchBoxVisible,
@@ -628,8 +628,8 @@ function Ye(t, e, n, o) {
628
628
  return;
629
629
  const m = t.tabType === "pills" ? ".f-capsule-item" : ".nav-item", c = e.value.querySelectorAll(m), { parentElement: x } = e.value, j = c[d];
630
630
  if (j && x) {
631
- const R = x.getBoundingClientRect().left, N = x.getBoundingClientRect().right, C = j.getBoundingClientRect().left, k = j.getBoundingClientRect().right;
632
- C < R ? S(R - C, -1) : N < k && S(k - N, 1), t.tabType === "one-page" && n.scrollTo(d);
631
+ const F = x.getBoundingClientRect().left, N = x.getBoundingClientRect().right, C = j.getBoundingClientRect().left, k = j.getBoundingClientRect().right;
632
+ C < F ? S(F - C, -1) : N < k && S(k - N, 1), t.tabType === "one-page" && n.scrollTo(d);
633
633
  }
634
634
  }
635
635
  function y(d, m) {
@@ -695,7 +695,7 @@ const pe = /* @__PURE__ */ ne({
695
695
  previousButtonClass: c,
696
696
  nextButtonClass: x,
697
697
  nextButtonGroupClass: j,
698
- scrollTab: R,
698
+ scrollTab: F,
699
699
  updateNavigationLayout: N
700
700
  } = m, C = Ze(t, f), {
701
701
  hideDropDown: k
@@ -752,7 +752,7 @@ const pe = /* @__PURE__ */ ne({
752
752
  type: "button",
753
753
  class: c.value,
754
754
  onClick: () => {
755
- R(0, -1);
755
+ F(0, -1);
756
756
  }
757
757
  }, null);
758
758
  }
@@ -762,7 +762,7 @@ const pe = /* @__PURE__ */ ne({
762
762
  type: "button",
763
763
  class: x.value,
764
764
  onClick: () => {
765
- R(0, 1);
765
+ F(0, 1);
766
766
  }
767
767
  }, null);
768
768
  }
@@ -1440,7 +1440,7 @@ function jn(t, e) {
1440
1440
  const E = t.minHeight ? t.minHeight : 1, A = t.minWidth ? t.minWidth : 1;
1441
1441
  f.value && v.value && i.value && s.value && (f.value.height < E && (f.value.height = E, i.value.n && r.value && (v.value.y = r.value.y + (s.value.height - E))), f.value.width < A && (f.value.width = A, i.value.w && r.value && (v.value.x = r.value.x + (s.value.width - A))), t.maxHeight && f.value.height > t.maxHeight && (f.value.height = t.maxHeight, r.value && i.value.n && (v.value.y = r.value.y + (s.value.height - t.maxHeight))), t.maxWidth && f.value.width > t.maxWidth && (f.value.width = t.maxWidth, i.value.w && r.value && (v.value.x = r.value.x + (s.value.width - t.maxWidth))));
1442
1442
  }
1443
- function R() {
1443
+ function F() {
1444
1444
  if (o.value) {
1445
1445
  const E = T.value;
1446
1446
  if (v.value && f.value && i.value && s.value) {
@@ -1454,7 +1454,7 @@ function jn(t, e) {
1454
1454
  return;
1455
1455
  E.subtract(a.value);
1456
1456
  const A = E.x, L = E.y;
1457
- i.value.n ? (v.value.y = r.value.y + L, f.value.height = s.value.height - L) : i.value.s && (f.value.height = s.value.height + L), i.value.e ? f.value.width = s.value.width + A : i.value.w && (f.value.width = s.value.width - A, v.value.x = r.value.x + A), R(), j(), x();
1457
+ i.value.n ? (v.value.y = r.value.y + L, f.value.height = s.value.height - L) : i.value.s && (f.value.height = s.value.height + L), i.value.e ? f.value.width = s.value.width + A : i.value.w && (f.value.width = s.value.width - A, v.value.x = r.value.x + A), F(), j(), x();
1458
1458
  }
1459
1459
  function C(E) {
1460
1460
  if (!b.value)
@@ -1642,7 +1642,7 @@ function Dn(t, e) {
1642
1642
  }
1643
1643
  i.value.reset();
1644
1644
  }
1645
- function R(C) {
1645
+ function F(C) {
1646
1646
  if (C instanceof MouseEvent && C.button === 2)
1647
1647
  return;
1648
1648
  const k = C.target || C.srcElement;
@@ -1659,7 +1659,7 @@ function Dn(t, e) {
1659
1659
  }
1660
1660
  } else
1661
1661
  s.value = C;
1662
- n.value = k, r.value = D, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", R);
1662
+ n.value = k, r.value = D, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", F);
1663
1663
  }
1664
1664
  }
1665
1665
  return {
@@ -1679,23 +1679,23 @@ const et = /* @__PURE__ */ ne({
1679
1679
  props: Pn,
1680
1680
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc"],
1681
1681
  setup(t, e) {
1682
- const n = h(t.width || 300), o = h(t.height || 200), a = h(t.modelValue), s = h(""), r = h(t.class), f = h(t.fitContent), v = h(t.showHeader), i = h(""), b = h(t.showCloseButton), T = h(t.showMaxButton), S = h(!1), M = h(""), y = h(""), d = h(""), m = h(t.showButtons), c = h(t.title), x = h(t.reiszeable), j = h(t.containment || null), R = h();
1683
- function N(F, U) {
1684
- a.value = !1, e.emit("update:modelValue", !1), U != null && e.emit(U ? "accept" : "cancel"), e.emit("closed", F);
1682
+ const n = h(t.width || 300), o = h(t.height || 200), a = h(t.modelValue), s = h(""), r = h(t.class), f = h(t.fitContent), v = h(t.showHeader), i = h(""), b = h(t.showCloseButton), T = h(t.showMaxButton), S = h(!1), M = h(""), y = h(""), d = h(""), m = h(t.showButtons), c = h(t.title), x = h(t.reiszeable), j = h(t.containment || null), F = h();
1683
+ function N(R, U) {
1684
+ a.value = !1, e.emit("update:modelValue", !1), U != null && e.emit(U ? "accept" : "cancel"), e.emit("closed", R);
1685
1685
  }
1686
1686
  const C = [{
1687
1687
  name: "cancel",
1688
1688
  text: "取消",
1689
1689
  class: "btn btn-light",
1690
- handle: (F) => {
1691
- N(F, !1);
1690
+ handle: (R) => {
1691
+ N(R, !1);
1692
1692
  }
1693
1693
  }, {
1694
1694
  name: "accept",
1695
1695
  text: "确定",
1696
1696
  class: "btn btn-primary",
1697
- handle: (F) => {
1698
- N(F, !0);
1697
+ handle: (R) => {
1698
+ N(R, !0);
1699
1699
  }
1700
1700
  }], k = h(t.buttons && t.buttons.length ? t.buttons : C), D = P(() => !!i.value), z = P(() => !!m.value && !!k.value), B = h(), g = h(), p = h(!1), {
1701
1701
  renderResizeBar: l,
@@ -1708,38 +1708,38 @@ const et = /* @__PURE__ */ ne({
1708
1708
  } = jn(t), {
1709
1709
  registerDraggle: $
1710
1710
  } = Dn(t);
1711
- J(() => t.title, (F, U) => {
1712
- F !== U && (c.value = F);
1713
- }), J(() => t.modelValue, (F, U) => {
1714
- F !== U && (a.value = F);
1715
- }), J(() => t.showHeader, (F, U) => {
1716
- F !== U && (v.value = F);
1717
- }), J(() => t.showButtons, (F, U) => {
1718
- F !== U && (m.value = F);
1719
- }), J(() => E.value, (F, U) => {
1720
- const me = F || {}, ye = U || {};
1711
+ J(() => t.title, (R, U) => {
1712
+ R !== U && (c.value = R);
1713
+ }), J(() => t.modelValue, (R, U) => {
1714
+ R !== U && (a.value = R);
1715
+ }), J(() => t.showHeader, (R, U) => {
1716
+ R !== U && (v.value = R);
1717
+ }), J(() => t.showButtons, (R, U) => {
1718
+ R !== U && (m.value = R);
1719
+ }), J(() => E.value, (R, U) => {
1720
+ const me = R || {}, ye = U || {};
1721
1721
  JSON.stringify(me) !== JSON.stringify(ye) && e.emit("resize", {
1722
- newSize: F,
1722
+ newSize: R,
1723
1723
  oldSize: U
1724
1724
  });
1725
1725
  });
1726
1726
  function W() {
1727
- const F = document.querySelectorAll(".farris-modal").length;
1728
- (!F || F - 1 <= 0) && document.body.classList.remove("modal-open"), R.value && R.value.classList.remove("show");
1727
+ const R = document.querySelectorAll(".farris-modal").length;
1728
+ (!R || R - 1 <= 0) && document.body.classList.remove("modal-open"), F.value && F.value.classList.remove("show");
1729
1729
  }
1730
1730
  const Y = P(() => (a.value ? document.body.classList.add("modal-open") : W(), a.value)), ee = P(() => {
1731
- const F = {
1731
+ const R = {
1732
1732
  modal: !0,
1733
1733
  "farris-modal": !0,
1734
1734
  fade: !0
1735
1735
  };
1736
- return F["f-modal-fitContent"] = !!f.value, F.show = !!Y.value, F;
1736
+ return R["f-modal-fitContent"] = !!f.value, R.show = !!Y.value, R;
1737
1737
  }), re = P(() => {
1738
1738
  var me;
1739
- const F = {
1739
+ const R = {
1740
1740
  "modal-dialog": !0
1741
1741
  }, U = (me = r.value) == null ? void 0 : me.split(" ");
1742
- return U == null || U.reduce((ye, yt) => (ye[yt] = !0, ye), F), F;
1742
+ return U == null || U.reduce((ye, yt) => (ye[yt] = !0, ye), R), R;
1743
1743
  }), oe = P(() => ({
1744
1744
  position: "absolute",
1745
1745
  top: `${(window.innerHeight - o.value) / 2}px`,
@@ -1750,10 +1750,10 @@ const et = /* @__PURE__ */ ne({
1750
1750
  "modal-content": !0,
1751
1751
  "modal-content-has-header": v.value
1752
1752
  })), _ = P(() => {
1753
- const F = {
1753
+ const R = {
1754
1754
  display: v.value ? "" : "none"
1755
1755
  };
1756
- return F["pointer-events"] = A.value ? "auto" : "none", F;
1756
+ return R["pointer-events"] = A.value ? "auto" : "none", R;
1757
1757
  }), X = P(() => ({
1758
1758
  "f-icon": !0,
1759
1759
  modal_maximize: !0,
@@ -1766,23 +1766,23 @@ const et = /* @__PURE__ */ ne({
1766
1766
  return {};
1767
1767
  }
1768
1768
  const le = P(() => {
1769
- const F = {
1769
+ const R = {
1770
1770
  textAlgin: d.value
1771
1771
  }, U = G();
1772
- return Object.assign(F, U);
1772
+ return Object.assign(R, U);
1773
1773
  });
1774
- function he(F) {
1775
- if (F.stopPropagation(), p.value) {
1774
+ function he(R) {
1775
+ if (R.stopPropagation(), p.value) {
1776
1776
  p.value = !1, I();
1777
1777
  return;
1778
1778
  }
1779
1779
  w(), p.value = !0;
1780
1780
  }
1781
- async function ft(F, U) {
1782
- F.handle && await F.handle(U, F) && e.emit("closed", U);
1781
+ async function ft(R, U) {
1782
+ R.handle && await R.handle(U, R) && e.emit("closed", U);
1783
1783
  }
1784
- function mt(F) {
1785
- F.width && (n.value = F.width), F.height && (o.value = F.height), F.buttons && (k.value = F.buttons), F.title && (c.value = F.title);
1784
+ function mt(R) {
1785
+ R.width && (n.value = R.width), R.height && (o.value = R.height), R.buttons && (k.value = R.buttons), R.title && (c.value = R.title);
1786
1786
  }
1787
1787
  K(() => {
1788
1788
  g.value && !j.value && (j.value = g.value.parentElement, O.value = j.value, $(B.value, g.value, O.value)), Y.value && document.body.classList.add("modal-open"), En(t, e);
@@ -1806,7 +1806,7 @@ const et = /* @__PURE__ */ ne({
1806
1806
  class: X.value
1807
1807
  }, null)]), b.value && u("li", {
1808
1808
  class: "f-btn-icon f-bare",
1809
- onClick: (F) => N(F, !1),
1809
+ onClick: (R) => N(R, !1),
1810
1810
  style: "pointer-events: auto;"
1811
1811
  }, [u("span", {
1812
1812
  class: "f-icon modal_close"
@@ -1816,26 +1816,26 @@ const et = /* @__PURE__ */ ne({
1816
1816
  return u("div", {
1817
1817
  class: "modal-footer",
1818
1818
  style: le.value
1819
- }, [k.value && k.value.map((F) => u("button", {
1820
- name: F.name,
1819
+ }, [k.value && k.value.map((R) => u("button", {
1820
+ name: R.name,
1821
1821
  type: "button",
1822
- class: F.class + (F.iconClass ? " btn-icontext" : ""),
1822
+ class: R.class + (R.iconClass ? " btn-icontext" : ""),
1823
1823
  onClick: (U) => {
1824
- ft(F, U);
1824
+ ft(R, U);
1825
1825
  }
1826
- }, [!!F.iconClass && u("i", {
1827
- class: F.iconClass
1828
- }, null), F.text]))]);
1826
+ }, [!!R.iconClass && u("i", {
1827
+ class: R.iconClass
1828
+ }, null), R.text]))]);
1829
1829
  }
1830
1830
  return () => u(Tt, {
1831
1831
  to: "body"
1832
1832
  }, {
1833
1833
  default: () => {
1834
- var F, U;
1834
+ var R, U;
1835
1835
  return [Y.value && u("div", {
1836
1836
  class: ee.value,
1837
1837
  style: "display: block",
1838
- ref: R
1838
+ ref: F
1839
1839
  }, [u("div", {
1840
1840
  id: s.value,
1841
1841
  class: re.value,
@@ -1858,7 +1858,7 @@ const et = /* @__PURE__ */ ne({
1858
1858
  class: "actions"
1859
1859
  }, [vt()])]), u("div", {
1860
1860
  class: q.value
1861
- }, [(U = (F = e.slots).default) == null ? void 0 : U.call(F), M.value === "iframe" && u("iframe", {
1861
+ }, [(U = (R = e.slots).default) == null ? void 0 : U.call(R), M.value === "iframe" && u("iframe", {
1862
1862
  title: s.value,
1863
1863
  class: "f-utils-fill",
1864
1864
  width: "100%",
@@ -2146,7 +2146,7 @@ function On(t, e, n, o, a) {
2146
2146
  function j(D) {
2147
2147
  f(e.id), t.tabType === "one-page" && o.scrollToByPaggId(e.id);
2148
2148
  }
2149
- function R(D) {
2149
+ function F(D) {
2150
2150
  i(D, e.id);
2151
2151
  }
2152
2152
  function N(D) {
@@ -2171,7 +2171,7 @@ function On(t, e, n, o, a) {
2171
2171
  }, [u("div", null, [C()])]);
2172
2172
  }
2173
2173
  return u("li", {
2174
- onClick: (D) => R(D),
2174
+ onClick: (D) => F(D),
2175
2175
  class: T.value,
2176
2176
  style: S.value,
2177
2177
  id: `${e.id}-design-item`
@@ -2180,7 +2180,7 @@ function On(t, e, n, o, a) {
2180
2180
  onClick: j
2181
2181
  }, [m(e), c.value && x()])]);
2182
2182
  }
2183
- function Fn(t, e, n, o, a, s, r) {
2183
+ function Rn(t, e, n, o, a, s, r) {
2184
2184
  const {
2185
2185
  shouldShowNavigationButtons: f
2186
2186
  } = n, {
@@ -2303,7 +2303,7 @@ function nt(t, e, n) {
2303
2303
  }
2304
2304
  function j(C) {
2305
2305
  }
2306
- function R(...C) {
2306
+ function F(...C) {
2307
2307
  if (n && n.getPropsConfig)
2308
2308
  return n.getPropsConfig(...C);
2309
2309
  }
@@ -2322,7 +2322,7 @@ function nt(t, e, n) {
2322
2322
  getBelongedComponentInstance: T,
2323
2323
  getDraggableDesignItemElement: S,
2324
2324
  getDraggingDisplayText: y,
2325
- getPropConfig: R,
2325
+ getPropConfig: F,
2326
2326
  getDragScopeElement: d,
2327
2327
  onAcceptMovedChildElement: m,
2328
2328
  onAcceptNewChildElement: x,
@@ -2333,7 +2333,7 @@ function nt(t, e, n) {
2333
2333
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
2334
2334
  }, r;
2335
2335
  }
2336
- const Rn = "https://json-schema.org/draft/2020-12/schema", Ln = "https://farris-design.gitee.io/dragging-rules.schema.json", $n = "Dragging Rules", Hn = "The rules of designer canvas", Nn = "object", zn = {
2336
+ const Fn = "https://json-schema.org/draft/2020-12/schema", Ln = "https://farris-design.gitee.io/dragging-rules.schema.json", $n = "Dragging Rules", Hn = "The rules of designer canvas", Nn = "object", zn = {
2337
2337
  "f-page": {
2338
2338
  description: "The root class of page designed by farris.",
2339
2339
  type: "object",
@@ -2898,7 +2898,7 @@ const Rn = "https://json-schema.org/draft/2020-12/schema", Ln = "https://farris-
2898
2898
  type: "object"
2899
2899
  }
2900
2900
  }, Vn = [], Wn = {
2901
- $schema: Rn,
2901
+ $schema: Fn,
2902
2902
  $id: Ln,
2903
2903
  title: $n,
2904
2904
  description: Hn,
@@ -2906,19 +2906,19 @@ const Rn = "https://json-schema.org/draft/2020-12/schema", Ln = "https://farris-
2906
2906
  properties: zn,
2907
2907
  required: Vn
2908
2908
  }, Se = /* @__PURE__ */ new Map();
2909
- function Fe() {
2909
+ function Re() {
2910
2910
  function t(y, d, m, c) {
2911
2911
  var x;
2912
2912
  if (typeof m == "number")
2913
2913
  return ((x = c[y]) == null ? void 0 : x.length) === m;
2914
2914
  if (typeof m == "object") {
2915
- const j = Object.keys(m)[0], R = m[j];
2915
+ const j = Object.keys(m)[0], F = m[j];
2916
2916
  if (j === "not")
2917
- return Number(c[y].length) !== Number(R);
2917
+ return Number(c[y].length) !== Number(F);
2918
2918
  if (j === "moreThan")
2919
- return Number(c[y].length) >= Number(R);
2919
+ return Number(c[y].length) >= Number(F);
2920
2920
  if (j === "lessThan")
2921
- return Number(c[y].length) <= Number(R);
2921
+ return Number(c[y].length) <= Number(F);
2922
2922
  }
2923
2923
  return !1;
2924
2924
  }
@@ -2954,10 +2954,10 @@ function Fe() {
2954
2954
  return !1;
2955
2955
  }
2956
2956
  function f(y, d) {
2957
- return Object.keys(y).reduce((j, R) => {
2958
- const N = s(R, y[R]);
2957
+ return Object.keys(y).reduce((j, F) => {
2958
+ const N = s(F, y[F]);
2959
2959
  return j.push(...N), j;
2960
- }, []).reduce((j, R) => j && r(R, d), !0);
2960
+ }, []).reduce((j, F) => j && r(F, d), !0);
2961
2961
  }
2962
2962
  function v(y, d) {
2963
2963
  const m = Object.keys(y), c = m.includes("allOf"), x = m.includes("anyOf"), j = c || x, C = (j ? y[j ? c ? "allOf" : "anyOf" : "allOf"] : [y]).map((D) => f(D, d));
@@ -3069,7 +3069,7 @@ const qn = {
3069
3069
  }
3070
3070
  };
3071
3071
  function _n(t, e) {
3072
- const n = Fe();
3072
+ const n = Re();
3073
3073
  let o = !1, a, s = !1;
3074
3074
  function r(S) {
3075
3075
  return !1;
@@ -3084,7 +3084,7 @@ function _n(t, e) {
3084
3084
  return o;
3085
3085
  }
3086
3086
  function b() {
3087
- const S = t, M = S.appearance && S.appearance.class || "", y = M ? M.split(" ") : [], d = e == null ? void 0 : e.schema, m = d && d.appearance && d.appearance.class || "", c = m ? m.split(" ") : [], x = S.contents || [], j = x.length ? x[0] : null, R = j && j.appearance && j.appearance.class || "", N = R ? R.split(" ") : [], C = x.length ? x.reduce((p, l) => {
3087
+ const S = t, M = S.appearance && S.appearance.class || "", y = M ? M.split(" ") : [], d = e == null ? void 0 : e.schema, m = d && d.appearance && d.appearance.class || "", c = m ? m.split(" ") : [], x = S.contents || [], j = x.length ? x[0] : null, F = j && j.appearance && j.appearance.class || "", N = F ? F.split(" ") : [], C = x.length ? x.reduce((p, l) => {
3088
3088
  const w = l && l.appearance ? l.appearance.class : "", I = w ? w.split(" ") : [];
3089
3089
  return p.push(...I), p;
3090
3090
  }, []) : [], k = (e == null ? void 0 : e.parent) && e.parent.schema, D = k && k.appearance && k.appearance.class || "";
@@ -3093,7 +3093,7 @@ function _n(t, e) {
3093
3093
  componentClassList: y,
3094
3094
  childContents: x,
3095
3095
  firstChildContent: j,
3096
- firstChildClass: R,
3096
+ firstChildClass: F,
3097
3097
  firstChildClassList: N,
3098
3098
  parent,
3099
3099
  parentClass: m,
@@ -3174,7 +3174,7 @@ function Un(t, e, n, o) {
3174
3174
  function j(l) {
3175
3175
  x(l);
3176
3176
  }
3177
- function R(l) {
3177
+ function F(l) {
3178
3178
  a.value.findIndex((I) => I.props.id === l.props.id) === -1 && a.value.push(l);
3179
3179
  }
3180
3180
  function N(l) {
@@ -3215,7 +3215,7 @@ function Un(t, e, n, o) {
3215
3215
  }
3216
3216
  return {
3217
3217
  activeId: s,
3218
- addTab: R,
3218
+ addTab: F,
3219
3219
  changeTitleStyle: M,
3220
3220
  removeTab: m,
3221
3221
  selectTab: j,
@@ -3616,7 +3616,7 @@ function go(t, e) {
3616
3616
  function j(g, p) {
3617
3617
  T(g), S(), M(g), m(p.id);
3618
3618
  }
3619
- function R(g, p, l) {
3619
+ function F(g, p, l) {
3620
3620
  T(g);
3621
3621
  const w = p.id, I = l && l.id, {
3622
3622
  buttons: O = []
@@ -3676,7 +3676,7 @@ function go(t, e) {
3676
3676
  title: "删除",
3677
3677
  ref: "removeButton",
3678
3678
  style: "position:static;",
3679
- onClick: (l) => R(l, g, p)
3679
+ onClick: (l) => F(l, g, p)
3680
3680
  }, [u("i", {
3681
3681
  class: "f-icon f-icon-yxs_delete"
3682
3682
  }, null)]), u("div", {
@@ -3895,7 +3895,7 @@ function bo(t, e, n) {
3895
3895
  style: "font-size:13px;margin:auto"
3896
3896
  }, [we("新增子级")])])])]);
3897
3897
  }
3898
- function R() {
3898
+ function F() {
3899
3899
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((g) => g.classList.remove("dgComponentFocused"));
3900
3900
  const B = document.getElementsByClassName("dgComponentSelected");
3901
3901
  Array.from(B).forEach((g) => g.classList.remove("dgComponentSelected"));
@@ -3912,7 +3912,7 @@ function bo(t, e, n) {
3912
3912
  (w = r == null ? void 0 : r.setupContext) == null || w.emit("selectionChange", "response-toolbar-item", l);
3913
3913
  }
3914
3914
  function k(B, g) {
3915
- T(B), R(), N(B), T(B), S(B, g), C(g.id);
3915
+ T(B), F(), N(B), T(B), S(B, g), C(g.id);
3916
3916
  }
3917
3917
  function D(B) {
3918
3918
  return u("div", {
@@ -4021,7 +4021,7 @@ V(ct, "fieldControlTypeMapping", {
4021
4021
  { key: H.AdminOrganizationSelector.type, value: H.AdminOrganizationSelector.name }
4022
4022
  ]
4023
4023
  });
4024
- class Re {
4024
+ class Fe {
4025
4025
  constructor(e, n) {
4026
4026
  V(this, "componentId");
4027
4027
  V(this, "viewModelId");
@@ -4182,29 +4182,8 @@ class Re {
4182
4182
  return o;
4183
4183
  }
4184
4184
  }
4185
- getBindingFieldEditorOptions(e) {
4186
- const n = this.formSchemaUtils.getFormMetadataBasicInfo();
4187
- return {
4188
- type: "field-selector",
4189
- bindingType: { enable: !1 },
4190
- editorParams: {
4191
- propertyData: e,
4192
- formBasicInfo: n
4193
- },
4194
- columns: [
4195
- { field: "name", title: "字段名称" },
4196
- { field: "bindingField", title: "绑定字段" },
4197
- { field: "fieldType", title: "字段类型" }
4198
- ],
4199
- beforeOpenDialog: (o) => {
4200
- const a = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
4201
- o.instance.loadData(a);
4202
- },
4203
- textField: "bindingField"
4204
- };
4205
- }
4206
4185
  }
4207
- class Co extends Re {
4186
+ class Co extends Fe {
4208
4187
  constructor(e, n) {
4209
4188
  super(e, n);
4210
4189
  }
@@ -4274,7 +4253,7 @@ class Co extends Re {
4274
4253
  }
4275
4254
  }
4276
4255
  function wo(t, e, n, o) {
4277
- const a = Fe(), s = h(!1), r = h(!1);
4256
+ const a = Re(), s = h(!1), r = h(!1);
4278
4257
  let f = !0, v = !1, i;
4279
4258
  function b(C) {
4280
4259
  return i && i.componentClassList && i.componentClassList.includes("f-form-layout") && i.componentClassList.includes("farris-form") ? C.sourceType === "control" && C.controlCategory === "input" || C.sourceType === "move" && C.controlType === "form-group" : !0;
@@ -4329,7 +4308,7 @@ function wo(t, e, n, o) {
4329
4308
  function j() {
4330
4309
  return !0;
4331
4310
  }
4332
- function R() {
4311
+ function F() {
4333
4312
  return v;
4334
4313
  }
4335
4314
  function N(C) {
@@ -4341,7 +4320,7 @@ function wo(t, e, n, o) {
4341
4320
  checkCanDeleteComponent: x,
4342
4321
  checkCanMoveComponent: c,
4343
4322
  getStyles: y,
4344
- hideNestedPaddingInDesginerView: R,
4323
+ hideNestedPaddingInDesginerView: F,
4345
4324
  onAcceptNewChildElement: m,
4346
4325
  onAcceptMovedChildElement: M,
4347
4326
  onResolveNewComponentSchema: d,
@@ -4447,7 +4426,7 @@ function Mo(t, e, n) {
4447
4426
  }
4448
4427
  function j(C) {
4449
4428
  }
4450
- function R(...C) {
4429
+ function F(...C) {
4451
4430
  return [];
4452
4431
  }
4453
4432
  return s.value = {
@@ -4465,7 +4444,7 @@ function Mo(t, e, n) {
4465
4444
  getBelongedComponentInstance: T,
4466
4445
  getDraggableDesignItemElement: S,
4467
4446
  getDraggingDisplayText: y,
4468
- getPropConfig: R,
4447
+ getPropConfig: F,
4469
4448
  getDragScopeElement: d,
4470
4449
  onAcceptMovedChildElement: m,
4471
4450
  onAcceptNewChildElement: x,
@@ -4524,7 +4503,7 @@ const ut = /* @__PURE__ */ ne({
4524
4503
  i.value[r.value].push(w), e.emit("addComponent");
4525
4504
  }
4526
4505
  }
4527
- function R() {
4506
+ function F() {
4528
4507
  return o.value && u("div", {
4529
4508
  role: "button",
4530
4509
  class: "btn component-settings-button",
@@ -4563,7 +4542,7 @@ const ut = /* @__PURE__ */ ne({
4563
4542
  return u("div", {
4564
4543
  class: "component-btn-group",
4565
4544
  "data-noattach": "true"
4566
- }, [u("div", null, [R(), C(), N(p)])]);
4545
+ }, [u("div", null, [F(), C(), N(p)])]);
4567
4546
  }
4568
4547
  J(() => t.modelValue, (p) => {
4569
4548
  i.value = p, d.schema = p;
@@ -4611,7 +4590,7 @@ const ut = /* @__PURE__ */ ne({
4611
4590
  }, [k(i.value), e.slots.default && e.slots.default()]);
4612
4591
  }
4613
4592
  });
4614
- class Bo extends Re {
4593
+ class Bo extends Fe {
4615
4594
  constructor(e, n) {
4616
4595
  super(e, n);
4617
4596
  }
@@ -4695,7 +4674,7 @@ class Bo extends Re {
4695
4674
  };
4696
4675
  }
4697
4676
  }
4698
- class ko extends Re {
4677
+ class ko extends Fe {
4699
4678
  constructor(e, n) {
4700
4679
  super(e, n);
4701
4680
  }
@@ -4768,7 +4747,7 @@ class ko extends Re {
4768
4747
  }
4769
4748
  }
4770
4749
  function Po(t, e) {
4771
- Fe();
4750
+ Re();
4772
4751
  const n = h(!1), o = h(!1);
4773
4752
  let a = !1, s = !1;
4774
4753
  function r(m) {
@@ -4921,7 +4900,7 @@ const jo = /* @__PURE__ */ ne({
4921
4900
  B.expanded = !1;
4922
4901
  }), v.value.expanded = !1, x();
4923
4902
  }
4924
- const R = /* @__PURE__ */ new Map(), N = [];
4903
+ const F = /* @__PURE__ */ new Map(), N = [];
4925
4904
  function C(B) {
4926
4905
  const g = s.value;
4927
4906
  let p = B;
@@ -4933,7 +4912,7 @@ const jo = /* @__PURE__ */ ne({
4933
4912
  const I = l.filter((L) => L.id !== "__more_buttons__");
4934
4913
  for (const L of I) {
4935
4914
  const $ = L.computedStyleMap().get("margin-left"), W = L.computedStyleMap().get("margin-right"), Y = ($ ? $.value : 0) + L.getBoundingClientRect().width + (W ? W.value : 0);
4936
- p < Y ? (R.set(L.id, !0), N.push({
4915
+ p < Y ? (F.set(L.id, !0), N.push({
4937
4916
  id: L.id,
4938
4917
  width: Y
4939
4918
  })) : p -= Y;
@@ -4942,13 +4921,13 @@ const jo = /* @__PURE__ */ ne({
4942
4921
  for (let L = N.length - 1; L >= 0; L--) {
4943
4922
  const $ = N[L].width;
4944
4923
  if (p >= $)
4945
- p -= $, R.delete(N[L].id), N.pop();
4924
+ p -= $, F.delete(N[L].id), N.pop();
4946
4925
  else
4947
4926
  break;
4948
4927
  }
4949
4928
  const O = Object.assign({}, v.value);
4950
4929
  O.children = [];
4951
- const E = new Ce(O), A = n.value.reduce((L, $) => (R.has($.id) && E.children.push($), $.visible = !R.has($.id), L.push($), L), []);
4930
+ const E = new Ce(O), A = n.value.reduce((L, $) => (F.has($.id) && E.children.push($), $.visible = !F.has($.id), L.push($), L), []);
4952
4931
  v.value = E, n.value = A;
4953
4932
  }
4954
4933
  const k = new ResizeObserver((B) => {
@@ -5057,13 +5036,13 @@ const Io = /* @__PURE__ */ ne({
5057
5036
  toolbarItems: m
5058
5037
  } = i, c = Je(t, v, i), x = Ye(t, f, c, i), {
5059
5038
  previousButtonClass: j,
5060
- nextButtonClass: R,
5039
+ nextButtonClass: F,
5061
5040
  nextButtonGroupClass: N,
5062
5041
  scrollTab: C,
5063
5042
  updateNavigationLayout: k
5064
5043
  } = x, D = Ze(t, i), {
5065
5044
  hideDropDown: z
5066
- } = D, B = Fn(t, f, x, c, i, s, a), g = B, p = Qe(t, f, x, c, i), l = /* @__PURE__ */ new Map([["default", B], ["one-page", g], ["pills", p]]);
5045
+ } = D, B = Rn(t, f, x, c, i, s, a), g = B, p = Qe(t, f, x, c, i), l = /* @__PURE__ */ new Map([["default", B], ["one-page", g], ["pills", p]]);
5067
5046
  P(() => {
5068
5047
  const q = S.value.find((G) => G.props.id === b.value);
5069
5048
  return q == null ? void 0 : q.slots;
@@ -5129,7 +5108,7 @@ const Io = /* @__PURE__ */ ne({
5129
5108
  return u("button", {
5130
5109
  title: "right-arrow-button",
5131
5110
  type: "button",
5132
- class: R.value,
5111
+ class: F.value,
5133
5112
  onClick: () => {
5134
5113
  C(0, 1);
5135
5114
  }
@@ -5181,13 +5160,13 @@ function Oo(t, e) {
5181
5160
  buttonPosition: e.position
5182
5161
  };
5183
5162
  }
5184
- const Fo = /* @__PURE__ */ new Map([
5163
+ const Ro = /* @__PURE__ */ new Map([
5185
5164
  ["appearance", Ee],
5186
5165
  ["expanded", "expandStatus"],
5187
5166
  ["enableAccordion", Ao],
5188
5167
  ["toolbar", Oo]
5189
5168
  ]);
5190
- function Ro(t, e, n) {
5169
+ function Fo(t, e, n) {
5191
5170
  return e;
5192
5171
  }
5193
5172
  const Lo = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-design.gitee.io/section.schema.json", Ho = "section", No = "A Farris Container Component", zo = "object", Vo = {
@@ -5475,7 +5454,7 @@ const Lo = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
5475
5454
  // toolbarButtons: { type: Array<object>, default: [] },
5476
5455
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
5477
5456
  };
5478
- ve(dt, qo, Fo, Ro, Xo);
5457
+ ve(dt, qo, Ro, Fo, Xo);
5479
5458
  function Yo(t, e, n) {
5480
5459
  let o;
5481
5460
  function a() {
@@ -5545,7 +5524,7 @@ function Zo(t, e, n, o, a, s) {
5545
5524
  "f-btn-collapse-expand": !0,
5546
5525
  "f-btn-mx": !0,
5547
5526
  "f-state-expand": n.value
5548
- })), R = P(() => ({
5527
+ })), F = P(() => ({
5549
5528
  "f-icon": !0,
5550
5529
  "f-icon-maximize": !s.value,
5551
5530
  "f-icon-minimize": s.value
@@ -5553,7 +5532,7 @@ function Zo(t, e, n, o, a, s) {
5553
5532
  return u("div", {
5554
5533
  class: "f-max-accordion"
5555
5534
  }, [b.value ? u("span", {
5556
- class: R.value,
5535
+ class: F.value,
5557
5536
  onClick: v
5558
5537
  }, null) : "", T.value ? u("button", {
5559
5538
  class: j.value,
@@ -5575,10 +5554,10 @@ function Zo(t, e, n, o, a, s) {
5575
5554
  }
5576
5555
  function c() {
5577
5556
  const j = P(() => {
5578
- const R = {
5557
+ const F = {
5579
5558
  "f-content": !0
5580
5559
  };
5581
- return t.headerContentClass && t.headerContentClass.split(" ").reduce((C, k) => (C[k] = !0, C), R), R;
5560
+ return t.headerContentClass && t.headerContentClass.split(" ").reduce((C, k) => (C[k] = !0, C), F), F;
5582
5561
  });
5583
5562
  return e.slots.headerContent ? u("div", {
5584
5563
  class: j.value