@form-create/element-ui 2.7.25 → 2.7.26

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v2.7.25
3
+ * @form-create/element-ui v2.7.26
4
4
  * (c) 2018-2026 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -126,8 +126,8 @@ const Or = "fcCheckbox", Fr = {
126
126
  function G(t) {
127
127
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
128
128
  }
129
- const kr = "fcFrame", Er = {
130
- name: kr,
129
+ const Er = "fcFrame", kr = {
130
+ name: Er,
131
131
  props: {
132
132
  formCreateInject: {
133
133
  type: Object,
@@ -912,7 +912,7 @@ const Pr = "fcUpload", Tr = {
912
912
  }), this.$emit("fc.el", this.$refs.upload);
913
913
  }
914
914
  };
915
- function k(t, e, r) {
915
+ function E(t, e, r) {
916
916
  be.set(t, e, r);
917
917
  }
918
918
  function ie(t, e) {
@@ -926,19 +926,19 @@ function Fe(t, e = {}, r) {
926
926
  if ((i = Array.isArray(n)) || h.Object(n)) {
927
927
  let o = t[s] === void 0;
928
928
  if (i)
929
- i = !1, o && k(t, s, []);
929
+ i = !1, o && E(t, s, []);
930
930
  else if (n._clone && r !== void 0)
931
931
  if (r)
932
- n = n.getRule(), o && k(t, s, {});
932
+ n = n.getRule(), o && E(t, s, {});
933
933
  else {
934
- k(t, s, n._clone());
934
+ E(t, s, n._clone());
935
935
  continue;
936
936
  }
937
937
  else
938
- o && k(t, s, {});
938
+ o && E(t, s, {});
939
939
  t[s] = Fe(t[s], n, r);
940
940
  } else
941
- k(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
941
+ E(t, s, n), h.Undef(n) || (h.Undef(n.__json) || (t[s].__json = n.__json), h.Undef(n.__origin) || (t[s].__origin = n.__origin));
942
942
  }
943
943
  return r !== void 0 && Array.isArray(t) ? t.filter((s) => !s || !s.__ctrl) : t;
944
944
  }
@@ -948,7 +948,7 @@ function Y(t) {
948
948
  const Br = Object.assign || function(t) {
949
949
  for (let e, r = 1; r < arguments.length; r++)
950
950
  for (let i in e = arguments[r], e)
951
- Object.prototype.hasOwnProperty.call(e, i) && k(t, i, e[i]);
951
+ Object.prototype.hasOwnProperty.call(e, i) && E(t, i, e[i]);
952
952
  return t;
953
953
  };
954
954
  function C() {
@@ -963,7 +963,7 @@ function se(t, e) {
963
963
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
964
964
  };
965
965
  }
966
- function Et(t) {
966
+ function kt(t) {
967
967
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
968
968
  }
969
969
  function Lr(t) {
@@ -988,7 +988,7 @@ function Ye(t, e) {
988
988
  function Mr(t) {
989
989
  Ye(t.toString()), console.error(t);
990
990
  }
991
- const We = "[[FORM-CREATE-PREFIX-", ze = "-FORM-CREATE-SUFFIX]]";
991
+ const We = "[[FORM-CREATE-PREFIX-", xe = "-FORM-CREATE-SUFFIX]]";
992
992
  function Oe(t, e) {
993
993
  return JSON.stringify(Fe(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
994
994
  if (!(i && i._isVue === !0)) {
@@ -997,19 +997,19 @@ function Oe(t, e) {
997
997
  if (i.__json)
998
998
  return i.__json;
999
999
  if (i.__origin && (i = i.__origin), !i.__emit)
1000
- return We + i + ze;
1000
+ return We + i + xe;
1001
1001
  }
1002
1002
  }, e);
1003
1003
  }
1004
1004
  function Le(t) {
1005
1005
  return new Function("return " + t)();
1006
1006
  }
1007
- function z(t, e) {
1007
+ function x(t, e) {
1008
1008
  if (t && h.String(t) && t.length > 4) {
1009
1009
  let r = t.trim(), i = !1;
1010
1010
  try {
1011
- if (r.indexOf(ze) > 0 && r.indexOf(We) === 0)
1012
- r = r.replace(ze, "").replace(We, ""), i = !0;
1011
+ if (r.indexOf(xe) > 0 && r.indexOf(We) === 0)
1012
+ r = r.replace(xe, "").replace(We, ""), i = !0;
1013
1013
  else if (r.indexOf("$FN:") === 0)
1014
1014
  r = r.substring(4), i = !0;
1015
1015
  else if (r.indexOf("$EXEC:") === 0)
@@ -1047,7 +1047,7 @@ err: ${s}`);
1047
1047
  }
1048
1048
  function St(t, e) {
1049
1049
  return JSON.parse(t, function(r, i) {
1050
- return h.Undef(i) || !i.indexOf ? i : z(i, e);
1050
+ return h.Undef(i) || !i.indexOf ? i : x(i, e);
1051
1051
  });
1052
1052
  }
1053
1053
  let qr = 0;
@@ -1058,8 +1058,8 @@ function Ie() {
1058
1058
  function oe(t, e, r) {
1059
1059
  let i = t, s;
1060
1060
  return (e || "").split(".").forEach((n) => {
1061
- s && ((!i[s] || typeof i[s] != "object") && k(i, s, {}), i = i[s]), s = n;
1062
- }), k(i, s, r), i;
1061
+ s && ((!i[s] || typeof i[s] != "object") && E(i, s, {}), i = i[s]), s = n;
1062
+ }), E(i, s, r), i;
1063
1063
  }
1064
1064
  const Ur = "fcGroup", Hr = {
1065
1065
  name: Ur,
@@ -1345,9 +1345,9 @@ const Ur = "fcGroup", Hr = {
1345
1345
  key: o
1346
1346
  }, {
1347
1347
  on: {
1348
- "update:value": (p) => this.formData(o, p),
1349
- "emit-event": (p, ...d) => this.emitEvent(p, d, a, o),
1350
- input: (p) => this.add$f(a, o, p)
1348
+ "update:value": (d) => this.formData(o, d),
1349
+ "emit-event": (d, ...p) => this.emitEvent(d, p, a, o),
1350
+ input: (d) => this.add$f(a, o, d)
1351
1351
  }
1352
1352
  }, {}, {
1353
1353
  props: {
@@ -1457,7 +1457,7 @@ const Ur = "fcGroup", Hr = {
1457
1457
  }
1458
1458
  }, Kr = [
1459
1459
  Fr,
1460
- Er,
1460
+ kr,
1461
1461
  Sr,
1462
1462
  Dr,
1463
1463
  Ar,
@@ -1474,13 +1474,13 @@ const Ur = "fcGroup", Hr = {
1474
1474
  else if (i.indexOf(u) > -1)
1475
1475
  a[u] = _(_({}, a[u]), l[u]);
1476
1476
  else if (s.indexOf(u) > -1) {
1477
- const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1478
- a[u] = [...f, ...p];
1477
+ const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1478
+ a[u] = [...f, ...d];
1479
1479
  } else if (n.indexOf(u) > -1)
1480
1480
  for (const f in l[u])
1481
1481
  if (a[u][f]) {
1482
- const p = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], d = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1483
- a[u][f] = [...p, ...d];
1482
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], p = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1483
+ a[u][f] = [...d, ...p];
1484
1484
  } else
1485
1485
  a[u][f] = l[u][f];
1486
1486
  else if (u === "hook")
@@ -1498,7 +1498,7 @@ const Ur = "fcGroup", Hr = {
1498
1498
  function It() {
1499
1499
  return [...At, ...jt, ...Dt, ...Vt, ...et, ...tt];
1500
1500
  }
1501
- function xe(t, e) {
1501
+ function ze(t, e) {
1502
1502
  return {
1503
1503
  value: t,
1504
1504
  enumerable: !1,
@@ -1519,7 +1519,7 @@ function ht(t) {
1519
1519
  const e = h.Function(t.getRule) ? t.getRule() : t;
1520
1520
  return e.type || (e.type = "input"), e;
1521
1521
  }
1522
- function zr(t, e) {
1522
+ function xr(t, e) {
1523
1523
  return t ? (Object.keys(e || {}).forEach((r) => {
1524
1524
  e[r] && (t[r] = ee(t[r] || {}, e[r]));
1525
1525
  }), t) : e;
@@ -1550,7 +1550,7 @@ function Xe(t, e) {
1550
1550
  });
1551
1551
  }), r;
1552
1552
  }
1553
- function xr(t, e) {
1553
+ function zr(t, e) {
1554
1554
  if (h.Object(t)) {
1555
1555
  const r = {};
1556
1556
  return Object.keys(t).forEach((i) => {
@@ -1575,7 +1575,7 @@ function Se() {
1575
1575
  const n = s();
1576
1576
  Array.isArray(n) ? i.push(...n) : i.push(n);
1577
1577
  } else h.Undef(s) || i.push(s);
1578
- }), xr(i, r);
1578
+ }), zr(i, r);
1579
1579
  },
1580
1580
  getSlots() {
1581
1581
  let r = [];
@@ -1733,41 +1733,41 @@ function Zr(t, e, r) {
1733
1733
  a = a.parent;
1734
1734
  else
1735
1735
  a = n;
1736
- const { rule: l, value: u, subForm: f, inFor: p } = ut(s), d = ne({
1736
+ const { rule: l, value: u, subForm: f, inFor: d } = ut(s), p = ne({
1737
1737
  ctxInject: {},
1738
1738
  destroyed: !1,
1739
1739
  isShow: !0,
1740
1740
  unique: 1,
1741
1741
  renderRule: [...l.value || []],
1742
1742
  updateValue: JSON.stringify(u.value || {})
1743
- }), m = new t(n), $ = m.api(), v = p.value, F = () => {
1743
+ }), m = new t(n), $ = m.api(), v = d.value, F = () => {
1744
1744
  if (o) {
1745
- const E = De(n, o);
1746
- if (E) {
1745
+ const k = De(n, o);
1746
+ if (k) {
1747
1747
  let S;
1748
- v ? (S = G(E.getSubForm()), S.push($)) : S = $, E.subForm(S);
1748
+ v ? (S = G(k.getSubForm()), S.push($)) : S = $, k.subForm(S);
1749
1749
  }
1750
1750
  }
1751
1751
  }, J = () => {
1752
- const E = De(n, o);
1753
- if (E)
1752
+ const k = De(n, o);
1753
+ if (k)
1754
1754
  if (v) {
1755
- const S = G(E.getSubForm()), M = S.indexOf($);
1755
+ const S = G(k.getSubForm()), M = S.indexOf($);
1756
1756
  M > -1 && S.splice(M, 1);
1757
1757
  } else
1758
- E.subForm();
1758
+ k.subForm();
1759
1759
  };
1760
1760
  let A = null;
1761
1761
  hr(() => {
1762
1762
  N(() => {
1763
- let E = "";
1763
+ let k = "";
1764
1764
  const S = s.option && s.option.globalClass || {};
1765
1765
  Object.keys(S).forEach((M) => {
1766
1766
  let ge = "";
1767
1767
  S[M].style && Object.keys(S[M].style).forEach((K) => {
1768
1768
  ge += ve(K) + ":" + S[M].style[K] + ";";
1769
- }), S[M].content && (ge += S[M].content + ";"), ge && (E += `.${M}{${ge}}`);
1770
- }), s.option && s.option.style && (E += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = E || "";
1769
+ }), S[M].content && (ge += S[M].content + ";"), ge && (k += `.${M}{${ge}}`);
1770
+ }), s.option && s.option.style && (k += s.option.style), A || (A = document.createElement("style"), A.type = "text/css", document.head.appendChild(A)), A.innerHTML = k || "";
1771
1771
  }, () => {
1772
1772
  });
1773
1773
  });
@@ -1777,25 +1777,25 @@ function Zr(t, e, r) {
1777
1777
  m.bus.$emit("$loadData.$scopeForm");
1778
1778
  }, 100), Pe = se(() => {
1779
1779
  m.bus.$emit("$loadData.$form");
1780
- }, 100), me = (E) => {
1781
- m.bus.$emit("change-$form." + E);
1780
+ }, 100), me = (k) => {
1781
+ m.bus.$emit("change-$form." + k);
1782
1782
  };
1783
1783
  return dr(() => {
1784
1784
  o && ($.top.bus.$on("$loadData.$form", L), $.top.bus.$on("change", me)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", pe), m.mounted();
1785
1785
  }), pr(() => {
1786
- o && ($.top.bus.$off("$loadData.$form", L), $.top.bus.$off("change", me)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", pe), J(), d.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1786
+ o && ($.top.bus.$off("$loadData.$form", L), $.top.bus.$off("change", me)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", pe), J(), p.destroyed = !0, m.unmount(), A && (A.parentNode || A.parentElement) && document.head.removeChild(A);
1787
1787
  }), mr(() => {
1788
1788
  m.updated();
1789
- }), N(f, (E) => {
1790
- E ? F() : J();
1789
+ }), N(f, (k) => {
1790
+ k ? F() : J();
1791
1791
  }, { immediate: !0 }), N(() => s.option, () => {
1792
1792
  m.initOptions(), $.refresh();
1793
- }, { deep: !0, flush: "sync" }), N(() => [...l.value], (E) => {
1794
- m.$handle.isBreakWatch() || E.length === d.renderRule.length && E.every((S) => d.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1793
+ }, { deep: !0, flush: "sync" }), N(() => [...l.value], (k) => {
1794
+ m.$handle.isBreakWatch() || k.length === p.renderRule.length && k.every((S) => p.renderRule.indexOf(S) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1795
1795
  }), N(() => [s.disabled, s.preview], () => {
1796
1796
  $.refresh();
1797
- }), N(u, (E) => {
1798
- Oe(E || {}) !== d.updateValue && ($.config.forceCoverValue ? $.coverValue(E || {}) : $.setValue(E || {}));
1797
+ }), N(u, (k) => {
1798
+ Oe(k || {}) !== p.updateValue && ($.config.forceCoverValue ? $.coverValue(k || {}) : $.setValue(k || {}));
1799
1799
  }, { deep: !0, flush: "post" }), N(() => s.index, () => {
1800
1800
  $.coverValue({}), m.$handle.updateAppendData(), P(() => {
1801
1801
  P(() => {
@@ -1807,18 +1807,18 @@ function Zr(t, e, r) {
1807
1807
  parent: o && ye(o),
1808
1808
  top: ye(a),
1809
1809
  fapi: ye($)
1810
- }, ut(d)), {
1810
+ }, ut(p)), {
1811
1811
  getGroupInject: () => De(n, o),
1812
1812
  refresh() {
1813
- ++d.unique;
1813
+ ++p.unique;
1814
1814
  },
1815
1815
  renderRule() {
1816
- d.renderRule = [...l.value || []];
1816
+ p.renderRule = [...l.value || []];
1817
1817
  },
1818
- updateValue(E) {
1819
- if (d.destroyed) return;
1820
- const S = Oe(E);
1821
- d.updateValue !== S && (d.updateValue = S, n.$emit("update:value", E), P(() => {
1818
+ updateValue(k) {
1819
+ if (p.destroyed) return;
1820
+ const S = Oe(k);
1821
+ p.updateValue !== S && (p.updateValue = S, n.$emit("update:value", k), P(() => {
1822
1822
  Pe(), o ? f.value || pe() : (L(), pe());
1823
1823
  }));
1824
1824
  }
@@ -1855,7 +1855,7 @@ C(rt.prototype, {
1855
1855
  return this._data;
1856
1856
  },
1857
1857
  setProp(t, e) {
1858
- return k(this._data, t, e), this;
1858
+ return E(this._data, t, e), this;
1859
1859
  },
1860
1860
  _clone() {
1861
1861
  const t = new this.constructor();
@@ -1933,7 +1933,7 @@ function yt(t, e, r) {
1933
1933
  (e || Ut)(q(_({}, t), {
1934
1934
  onSuccess(n) {
1935
1935
  let o = (l) => l;
1936
- const a = z(t.parse);
1936
+ const a = x(t.parse);
1937
1937
  h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), Ae(o(n, t.targetRule, r)).then((l) => {
1938
1938
  i(l);
1939
1939
  });
@@ -1955,7 +1955,7 @@ function ti(t) {
1955
1955
  h.Undef(n) ? n = Object.keys(_(_({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1956
1956
  const u = t.fieldCtx[l] || t.nameCtx[l];
1957
1957
  u && u.forEach((f) => {
1958
- k(f.rule, o, a), t.$render.clearCache(f);
1958
+ E(f.rule, o, a), t.$render.clearCache(f);
1959
1959
  });
1960
1960
  });
1961
1961
  }
@@ -2048,7 +2048,7 @@ function ti(t) {
2048
2048
  if (l) {
2049
2049
  const u = j(n, a);
2050
2050
  l.forEach((f) => {
2051
- k(f.rule, "value", u ? n[a] : void 0);
2051
+ E(f.rule, "value", u ? n[a] : void 0);
2052
2052
  }), delete o[a];
2053
2053
  }
2054
2054
  }), C(t.appendData, o);
@@ -2061,7 +2061,7 @@ function ti(t) {
2061
2061
  const l = t.fieldCtx[a];
2062
2062
  if (!l) return t.appendData[a] = o[a];
2063
2063
  l.forEach((u) => {
2064
- k(u.rule, "value", o[a]);
2064
+ E(u.rule, "value", o[a]);
2065
2065
  });
2066
2066
  });
2067
2067
  }, !0);
@@ -2125,7 +2125,7 @@ function ti(t) {
2125
2125
  disabled(n, o) {
2126
2126
  e(o).forEach((a) => {
2127
2127
  t.getCtxs(a).forEach((l) => {
2128
- k(l.rule.props, "disabled", !!n);
2128
+ E(l.rule.props, "disabled", !!n);
2129
2129
  });
2130
2130
  }), t.refresh();
2131
2131
  },
@@ -2183,7 +2183,7 @@ function ti(t) {
2183
2183
  t.$manager.updateOptions(t.options), s.refresh();
2184
2184
  },
2185
2185
  hideForm: (n) => {
2186
- k(t.vm, "isShow", !n);
2186
+ E(t.vm, "isShow", !n);
2187
2187
  },
2188
2188
  changeStatus: () => t.changeStatus,
2189
2189
  clearChangeStatus: () => {
@@ -2242,7 +2242,7 @@ function ti(t) {
2242
2242
  },
2243
2243
  setEffect(n, o, a) {
2244
2244
  const l = t.getCtx(n);
2245
- l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && k(l.rule, "$" + o, a), j(l.rule, "effect") || k(l.rule, "effect", {}), k(l.rule.effect, o, a));
2245
+ l && o && (o[0] === "$" && (o = o.substr(1)), j(l.rule, "$" + o) && E(l.rule, "$" + o, a), j(l.rule, "effect") || E(l.rule, "effect", {}), E(l.rule.effect, o, a));
2246
2246
  },
2247
2247
  clearEffectData(n, o) {
2248
2248
  const a = t.getCtx(n);
@@ -2292,6 +2292,26 @@ function ti(t) {
2292
2292
  const o = t.getCtx(n);
2293
2293
  if (o) return o.exportEl || o.el || t.vm.$refs[o.ref];
2294
2294
  },
2295
+ scrollTo(n, o = { block: "center", inline: "nearest", behavior: "smooth" }) {
2296
+ const a = s.el(n);
2297
+ if (!a) return;
2298
+ const l = a.$el !== void 0 ? a.$el : a;
2299
+ if (!l) return;
2300
+ const u = l.nodeType === 1 ? l : l.firstElementChild;
2301
+ u && typeof u.scrollIntoView == "function" && u.scrollIntoView(o);
2302
+ },
2303
+ focus(n) {
2304
+ const o = s.el(n);
2305
+ if (!o) return;
2306
+ const a = (d) => !d || typeof d.focus != "function" ? !1 : (O(() => d.focus()), !0);
2307
+ if (a(o)) return;
2308
+ const l = o.$el !== void 0 ? o.$el : o;
2309
+ if (a(l)) return;
2310
+ const u = l && (l.nodeType === 1 ? l : l.firstElementChild);
2311
+ if (a(u) || !u || !u.querySelector) return;
2312
+ const f = u.querySelector('input:not([type=hidden]):not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])');
2313
+ a(f);
2314
+ },
2295
2315
  closeModal: (n) => {
2296
2316
  const o = s.el(n);
2297
2317
  o && o.$emit && o.$emit("close-modal");
@@ -2305,9 +2325,9 @@ function ti(t) {
2305
2325
  if (!l)
2306
2326
  return [];
2307
2327
  const u = [];
2308
- return ((p) => {
2309
- p && p.forEach((d) => {
2310
- typeof d == "object" && (d.field && u.push(d), u.push(...s.getChildrenRuleList(d)));
2328
+ return ((d) => {
2329
+ d && d.forEach((p) => {
2330
+ typeof p == "object" && (p.field && u.push(p), u.push(...s.getChildrenRuleList(p)));
2311
2331
  });
2312
2332
  })(a ? a.loadChildrenPending() : l.children), u;
2313
2333
  },
@@ -2329,14 +2349,14 @@ function ti(t) {
2329
2349
  const l = s.getChildrenRuleList(n);
2330
2350
  t.deferSyncValue(() => {
2331
2351
  l.forEach((u) => {
2332
- j(o, u.field) ? k(u, "value", o[u.field]) : a && k(u, "value", void 0);
2352
+ j(o, u.field) ? E(u, "value", o[u.field]) : a && E(u, "value", void 0);
2333
2353
  });
2334
2354
  });
2335
2355
  },
2336
2356
  getGlobalEvent(n) {
2337
2357
  let o = s.options.globalEvent[n];
2338
2358
  if (o)
2339
- return typeof o == "object" && (o = o.handle), z(o);
2359
+ return typeof o == "object" && (o = o.handle), x(o);
2340
2360
  },
2341
2361
  getGlobalData(n) {
2342
2362
  return new Promise((o, a) => {
@@ -2402,17 +2422,17 @@ function ti(t) {
2402
2422
  },
2403
2423
  watchFetch(n, o, a, l) {
2404
2424
  return t.fc.watchLoadData((u, f) => {
2405
- let p = _({}, n);
2406
- p = t.loadFetchVar(p, u);
2407
- const d = (m) => {
2408
- O(() => p.onError && p.onError(m)), a && a(m);
2425
+ let d = _({}, n);
2426
+ d = t.loadFetchVar(d, u);
2427
+ const p = (m) => {
2428
+ O(() => d.onError && d.onError(m)), a && a(m);
2409
2429
  };
2410
- l && l(p, f) === !1 || t.beforeFetch(p).then(() => yt(p, t.fc.create.fetch, s).then((m) => {
2411
- O(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2430
+ l && l(d, f) === !1 || t.beforeFetch(d).then(() => yt(d, t.fc.create.fetch, s).then((m) => {
2431
+ O(() => d.onSuccess && d.onSuccess(m)), o && o(m, f);
2412
2432
  }).catch((m) => {
2413
- d(m);
2433
+ p(m);
2414
2434
  })).catch((m) => {
2415
- d(m);
2435
+ p(m);
2416
2436
  });
2417
2437
  }, n.wait == null ? 1e3 : n.wait);
2418
2438
  },
@@ -2565,8 +2585,8 @@ function ii(t) {
2565
2585
  };
2566
2586
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2567
2587
  let f = [];
2568
- const p = e.loadChildrenPending();
2569
- e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach((v) => {
2588
+ const d = e.loadChildrenPending();
2589
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach((v) => {
2570
2590
  f.push(this.renderRule({
2571
2591
  type: "template",
2572
2592
  slot: v
@@ -2577,9 +2597,9 @@ function ii(t) {
2577
2597
  return this.renderRule(F);
2578
2598
  })()));
2579
2599
  });
2580
- const d = this.getTypeSlot(e);
2600
+ const p = this.getTypeSlot(e);
2581
2601
  let m;
2582
- return d ? (u.children = f, m = d(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), (!(!e.input && h.Undef(n.native)) || (($ = n.col) == null ? void 0 : $.show) === !0) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((v) => !v || !v.tag ? v : this.none(v)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2602
+ return p ? (u.children = f, m = p(u)) : m = a ? e.parser.preview(Ke(f), e) : e.parser.render(Ke(f), e), m = this.renderSides(m, e), (!(!e.input && h.Undef(n.native)) || (($ = n.col) == null ? void 0 : $.show) === !0) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map((v) => !v || !v.tag ? v : this.none(v)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2583
2603
  }, this.setCache(e, s, r);
2584
2604
  }
2585
2605
  return (...s) => {
@@ -2621,7 +2641,7 @@ function ii(t) {
2621
2641
  },
2622
2642
  injectProp(e) {
2623
2643
  const r = this.vm;
2624
- r.ctxInject[e.id] || k(r.ctxInject, e.id, {
2644
+ r.ctxInject[e.id] || E(r.ctxInject, e.id, {
2625
2645
  api: this.$handle.api,
2626
2646
  form: this.fc.create,
2627
2647
  subForm: (n) => {
@@ -2652,7 +2672,7 @@ function ii(t) {
2652
2672
  children: e.loadChildrenPending()
2653
2673
  };
2654
2674
  return Object.keys(s).forEach((n) => {
2655
- k(i, n, s[n]);
2675
+ E(i, n, s[n]);
2656
2676
  }), i;
2657
2677
  },
2658
2678
  ctxProp(e) {
@@ -2812,7 +2832,7 @@ function si(t) {
2812
2832
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2813
2833
  return this.parseEventLst(e, r, i, !0);
2814
2834
  if (h.String(r)) {
2815
- const n = z(r);
2835
+ const n = x(r);
2816
2836
  if (n && r !== n)
2817
2837
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2818
2838
  }
@@ -2821,16 +2841,16 @@ function si(t) {
2821
2841
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2822
2842
  return h.trueArray(u) && u.forEach((f) => {
2823
2843
  if (!f) return;
2824
- let p, d = n || o || a;
2825
- if (h.Object(f) && (p = f.inject, f = f.name, d = f.prefix || d), d) {
2826
- r || (d = `native-${d}`);
2827
- const m = ve(`${d}-${f}`), $ = (...v) => {
2844
+ let d, p = n || o || a;
2845
+ if (h.Object(f) && (d = f.inject, f = f.name, p = f.prefix || p), p) {
2846
+ r || (p = `native-${p}`);
2847
+ const m = ve(`${p}-${f}`), $ = (...v) => {
2828
2848
  this.vm.$emit(m, ...v), this.vm.$emit("emit-event", m, ...v), this.bus.$emit(m, ...v);
2829
2849
  };
2830
- if ($.__emit = !0, !p && l === !1)
2850
+ if ($.__emit = !0, !d && l === !1)
2831
2851
  i[f] = $;
2832
2852
  else {
2833
- let v = p || l || this.options.injectEvent;
2853
+ let v = d || l || this.options.injectEvent;
2834
2854
  i[f] = h.Undef(v) ? $ : this.inject(s, $, v);
2835
2855
  }
2836
2856
  }
@@ -2862,32 +2882,32 @@ function si(t) {
2862
2882
  loadStrVar(e, r, i) {
2863
2883
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2864
2884
  const s = e, n = Xr(e), o = (u) => {
2865
- let f = !1, p;
2885
+ let f = !1, d;
2866
2886
  if (i && u.indexOf("$form.") === 0) {
2867
- const d = u.split(".");
2868
- d.shift(), j(i.value, d[0]) && (f = !0, p = r ? r({
2869
- id: "$form." + d[0] + "_" + i.rule.__fc__.id,
2870
- getValue: () => B(i.value, d)
2871
- }) : B(i.value, d));
2887
+ const p = u.split(".");
2888
+ p.shift(), j(i.value, p[0]) && (f = !0, d = r ? r({
2889
+ id: "$form." + p[0] + "_" + i.rule.__fc__.id,
2890
+ getValue: () => B(i.value, p)
2891
+ }) : B(i.value, p));
2872
2892
  }
2873
- return f || (p = r ? r(u) : this.fc.getLoadData(u)), p;
2893
+ return f || (d = r ? r(u) : this.fc.getLoadData(u)), d;
2874
2894
  }, a = (u) => {
2875
2895
  const f = [];
2876
- u.forEach((d) => {
2877
- d.key ? f.push(d.key) : d.children && f.push(a(d.children));
2896
+ u.forEach((p) => {
2897
+ p.key ? f.push(p.key) : p.children && f.push(a(p.children));
2878
2898
  });
2879
- let p = !1;
2880
- return f.forEach((d, m) => {
2881
- d != null && (d.indexOf("'") === 0 || d.indexOf('"') === 0) && (f[m] = d.slice(1, -1), p = !0);
2882
- }), f.length === 1 && (p || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2899
+ let d = !1;
2900
+ return f.forEach((p, m) => {
2901
+ p != null && (p.indexOf("'") === 0 || p.indexOf('"') === 0) && (f[m] = p.slice(1, -1), d = !0);
2902
+ }), f.length === 1 && (d || !isNaN(Number(f[0]))) ? f[0] : o(f.join("."));
2883
2903
  };
2884
2904
  let l;
2885
2905
  if (n.forEach((u) => {
2886
- const f = u.split("||"), p = f[0].trim();
2887
- if (p) {
2888
- const d = (f[1] || "").trim(), m = Lt(p);
2906
+ const f = u.split("||"), d = f[0].trim();
2907
+ if (d) {
2908
+ const p = (f[1] || "").trim(), m = Lt(d);
2889
2909
  let $ = O(() => a(m));
2890
- ($ == null || $ === "") && f.length > 1 && ($ = d), l = $, e = e.replaceAll(`{{${u}}}`, $ == null ? "" : $);
2910
+ ($ == null || $ === "") && f.length > 1 && ($ = p), l = $, e = e.replaceAll(`{{${u}}}`, $ == null ? "" : $);
2891
2911
  }
2892
2912
  }), n.length === 1 && s === `{{${n[0]}}}`)
2893
2913
  return l;
@@ -2950,9 +2970,9 @@ function li(t) {
2950
2970
  }
2951
2971
  function ui(t) {
2952
2972
  Object.defineProperties(t.origin, {
2953
- __fc__: xe(ye(t), !0)
2973
+ __fc__: ze(ye(t), !0)
2954
2974
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
2955
- __fc__: xe(ye(t), !0)
2975
+ __fc__: ze(ye(t), !0)
2956
2976
  });
2957
2977
  }
2958
2978
  function Gt(t, e, r) {
@@ -3022,8 +3042,8 @@ C(Gt.prototype, {
3022
3042
  rule: this.rule,
3023
3043
  api: this.$api,
3024
3044
  update: (u) => {
3025
- const f = u || i, p = this.getPending(e, i);
3026
- this.setPending(e, r, f), o && o(f, p);
3045
+ const f = u || i, d = this.getPending(e, i);
3046
+ this.setPending(e, r, f), o && o(f, d);
3027
3047
  },
3028
3048
  reload: () => {
3029
3049
  const u = this.getPending(e, i);
@@ -3148,10 +3168,10 @@ function fi(t) {
3148
3168
  parseRule(e) {
3149
3169
  const r = ht(e);
3150
3170
  return Object.defineProperties(r, {
3151
- __origin__: xe(e, !0)
3171
+ __origin__: ze(e, !0)
3152
3172
  }), ci(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3153
3173
  i && this.loadFn(i, r);
3154
- }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3174
+ }), this.loadCtrl(r), r.update && (r.update = x(r.update)), r;
3155
3175
  },
3156
3176
  loadFn(e, r) {
3157
3177
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3160,7 +3180,7 @@ function fi(t) {
3160
3180
  },
3161
3181
  loadCtrl(e) {
3162
3182
  e.control && e.control.forEach((r) => {
3163
- r.handle && (r.handle = z(r.handle));
3183
+ r.handle && (r.handle = x(r.handle));
3164
3184
  });
3165
3185
  },
3166
3186
  syncProp(e) {
@@ -3199,8 +3219,8 @@ function fi(t) {
3199
3219
  let l = ht(o);
3200
3220
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3201
3221
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3202
- let f, p = !1, d = !!o.__fc__, m = l.value;
3203
- if (d) {
3222
+ let f, d = !1, p = !!o.__fc__, m = l.value;
3223
+ if (p) {
3204
3224
  if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3205
3225
  if (bt(f))
3206
3226
  return;
@@ -3208,7 +3228,7 @@ function fi(t) {
3208
3228
  } else if (!f.check(this)) {
3209
3229
  if (bt(f))
3210
3230
  return;
3211
- e[a] = o = o._clone ? o._clone() : St(Oe(o)), f = null, p = !0;
3231
+ e[a] = o = o._clone ? o._clone() : St(Oe(o)), f = null, d = !0;
3212
3232
  }
3213
3233
  }
3214
3234
  if (f)
@@ -3217,7 +3237,7 @@ function fi(t) {
3217
3237
  const F = this.parseRule(o);
3218
3238
  f = new Gt(this, F, m), this.bindParser(f);
3219
3239
  }
3220
- [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !d && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3240
+ [!1, !0].forEach((F) => this.parseEmit(f, F)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !p && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3221
3241
  const $ = f.loadChildrenPending();
3222
3242
  if (f.parser.loadChildren === !1 || s($, f), !r) {
3223
3243
  const F = i(a);
@@ -3237,8 +3257,8 @@ function fi(t) {
3237
3257
  const r = hi(e), i = [], s = this.api;
3238
3258
  if (!r.length) return !1;
3239
3259
  for (let a = 0; a < r.length; a++) {
3240
- const l = r[a], u = l.handle || function(p) {
3241
- return (he[l.condition || "=="] || he["=="])(p, l.value);
3260
+ const l = r[a], u = l.handle || function(d) {
3261
+ return (he[l.condition || "=="] || he["=="])(d, l.value);
3242
3262
  };
3243
3263
  if (!h.trueArray(l.rule)) continue;
3244
3264
  const f = q(_({}, l), {
@@ -3252,7 +3272,7 @@ function fi(t) {
3252
3272
  const n = [];
3253
3273
  let o = !1;
3254
3274
  return this.deferSyncValue(() => {
3255
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: d, ctrl: m, method: $ }) => {
3275
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: p, ctrl: m, method: $ }) => {
3256
3276
  if (a) {
3257
3277
  l ? e.ctrlRule.push({
3258
3278
  __ctrl: !0,
@@ -3274,7 +3294,7 @@ function fi(t) {
3274
3294
  children: u
3275
3295
  };
3276
3296
  e.ctrlRule.push(v), this.bus.$once("load-start", () => {
3277
- f ? s.prepend(v, f, d) : p || d ? s.append(v, p || e.id, d) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3297
+ f ? s.prepend(v, f, p) : d || p ? s.append(v, d || e.id, p) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, v);
3278
3298
  });
3279
3299
  } else {
3280
3300
  e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
@@ -3309,7 +3329,7 @@ function fi(t) {
3309
3329
  function ci(t) {
3310
3330
  const e = Nt();
3311
3331
  return Object.keys(e).forEach((r) => {
3312
- j(t, r) || k(t, r, e[r]);
3332
+ j(t, r) || E(t, r, e[r]);
3313
3333
  }), t;
3314
3334
  }
3315
3335
  function hi(t) {
@@ -3359,7 +3379,7 @@ function pi(t) {
3359
3379
  setFormData(e, r) {
3360
3380
  e.modelValue = r;
3361
3381
  const i = e.getParentGroup();
3362
- i && (this.subRuleData[i.id] || k(this.subRuleData, i.id, {}), k(this.subRuleData[i.id], e.field, e.rule.value)), k(this.formData, e.id, r);
3382
+ i && (this.subRuleData[i.id] || E(this.subRuleData, i.id, {}), E(this.subRuleData[i.id], e.field, e.rule.value)), E(this.formData, e.id, r);
3363
3383
  },
3364
3384
  rmSubRuleData(e) {
3365
3385
  const r = e.getParentGroup();
@@ -3715,18 +3735,18 @@ function gi(t) {
3715
3735
  const l = a.mode === "OR";
3716
3736
  let u = !0;
3717
3737
  for (let f = 0; f < a.group.length; f++) {
3718
- const p = a.group[f];
3719
- let d, m = null, $ = null;
3720
- if (p.variable)
3721
- $ = this.fc.getLoadData(p.variable);
3722
- else if (p.field)
3723
- m = pt(p.field || "");
3724
- else if (!p.mode)
3738
+ const d = a.group[f];
3739
+ let p, m = null, $ = null;
3740
+ if (d.variable)
3741
+ $ = this.fc.getLoadData(d.variable);
3742
+ else if (d.field)
3743
+ m = pt(d.field || "");
3744
+ else if (!d.mode)
3725
3745
  return !0;
3726
- let v = p.compare;
3727
- if (v && (v = pt(v || "")), p.mode ? d = n(p) : he[p.condition] ? h.Function(p.handler) ? d = O(() => p.handler(this.api, e.rule)) : d = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${p.variable ? "$variableVal" : m}, ${v || "$val"}); }}}}`).call(this.api.form, he, $, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : d = !1, l && d)
3746
+ let v = d.compare;
3747
+ if (v && (v = pt(v || "")), d.mode ? p = n(d) : he[d.condition] ? h.Function(d.handler) ? p = O(() => d.handler(this.api, e.rule)) : p = O(() => new Function("$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${d.variable ? "$variableVal" : m}, ${v || "$val"}); }}}}`).call(this.api.form, he, $, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : p = !1, l && p)
3728
3748
  return !0;
3729
- l || (u = u && d);
3749
+ l || (u = u && p);
3730
3750
  }
3731
3751
  return l ? !1 : u;
3732
3752
  };
@@ -3796,15 +3816,15 @@ function yi(t) {
3796
3816
  emitEvent(e, ...r) {
3797
3817
  const i = this.options[e] || this.options[H("on-" + e)];
3798
3818
  if (i) {
3799
- const s = z(i);
3819
+ const s = x(i);
3800
3820
  h.Function(s) && O(() => s(...r));
3801
3821
  }
3802
3822
  this.bus.$emit(e, ...r);
3803
3823
  },
3804
3824
  targetHook(e, r, i) {
3805
- var l, u, f, p;
3806
- let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (d, m) => {
3807
- d && (d = Array.isArray(d) ? d : [d], d.forEach(($) => {
3825
+ var l, u, f, d;
3826
+ let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], n = (p, m) => {
3827
+ p && (p = Array.isArray(p) ? p : [p], p.forEach(($) => {
3808
3828
  O(() => $(q(_({
3809
3829
  args: Object.values(i || {})
3810
3830
  }, i || {}), {
@@ -3820,8 +3840,8 @@ function yi(t) {
3820
3840
  n(s);
3821
3841
  let o = "deep" + Nr(r), a = e.parent;
3822
3842
  for (; a; ) {
3823
- let d = (p = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : p[o];
3824
- n(d, a), a = a.parent;
3843
+ let p = (d = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : d[o];
3844
+ n(p, a), a = a.parent;
3825
3845
  }
3826
3846
  }
3827
3847
  });
@@ -3889,15 +3909,15 @@ function $i(t) {
3889
3909
  Object.keys(l).forEach((u) => {
3890
3910
  const f = this.providers[u];
3891
3911
  if (!f || f.input && !i) return;
3892
- let p;
3912
+ let d;
3893
3913
  if (!f._c)
3894
- p = "*";
3914
+ d = "*";
3895
3915
  else if (f._used.indexOf(s) > -1)
3896
- p = s;
3916
+ d = s;
3897
3917
  else
3898
3918
  return;
3899
- const d = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3900
- e && (d.getProp = () => e.effectData(u), d.clearProp = () => e.clearEffectData(u), d.mergeProp = (m) => ee(d.getProp(), [m]), d.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [d, r, this.api]);
3919
+ const p = _({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3920
+ e && (p.getProp = () => e.effectData(u), p.clearProp = () => e.clearEffectData(u), p.mergeProp = (m) => ee(p.getProp(), [m]), p.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [p, r, this.api]);
3901
3921
  });
3902
3922
  }
3903
3923
  });
@@ -3914,7 +3934,7 @@ function vi(t) {
3914
3934
  return r.length ? r : !1;
3915
3935
  } else return h.String(e) ? [e] : !1;
3916
3936
  }
3917
- function x(t) {
3937
+ function z(t) {
3918
3938
  Bt(this, {
3919
3939
  options() {
3920
3940
  return t.options.value || {};
@@ -3954,7 +3974,7 @@ function x(t) {
3954
3974
  return i && i !== e && C(e, i), e;
3955
3975
  }, ti(this));
3956
3976
  }
3957
- C(x.prototype, {
3977
+ C(z.prototype, {
3958
3978
  initData(t) {
3959
3979
  C(this, {
3960
3980
  ctxs: {},
@@ -3992,14 +4012,14 @@ C(x.prototype, {
3992
4012
  });
3993
4013
  }
3994
4014
  });
3995
- si(x);
3996
- oi(x);
3997
- li(x);
3998
- fi(x);
3999
- pi(x);
4000
- gi(x);
4001
- yi(x);
4002
- $i(x);
4015
+ si(z);
4016
+ oi(z);
4017
+ li(z);
4018
+ fi(z);
4019
+ pi(z);
4020
+ gi(z);
4021
+ yi(z);
4022
+ $i(z);
4003
4023
  const _i = "fcFragment", Ne = {
4004
4024
  name: _i,
4005
4025
  functional: !0,
@@ -4045,7 +4065,7 @@ function wi() {
4045
4065
  },
4046
4066
  use(r) {
4047
4067
  Object.keys(r).forEach((i) => {
4048
- const s = ve(i), n = Et(i).toLocaleLowerCase(), o = r[i];
4068
+ const s = ve(i), n = kt(i).toLocaleLowerCase(), o = r[i];
4049
4069
  e.alias(i, o), [i, s, n].forEach((a) => {
4050
4070
  e.prototype[a] = function(l, u) {
4051
4071
  return this.make(t[i] || a, l, u);
@@ -4131,14 +4151,14 @@ const Fi = function(t) {
4131
4151
  const o = [];
4132
4152
  n.forEach((a) => {
4133
4153
  if (a && (a.attr || a.template)) {
4134
- let l = (p) => {
4135
- let d;
4136
- i && i.__fc__ && (d = i.__fc__.getParentGroup());
4154
+ let l = (d) => {
4155
+ let p;
4156
+ i && i.__fc__ && (p = i.__fc__.getParentGroup());
4137
4157
  let m;
4138
- a.template ? m = t.$handle.loadStrVar(a.template, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, p, d ? { rule: i, value: t.$handle.subRuleData[d.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = Y(m));
4158
+ a.template ? m = t.$handle.loadStrVar(a.template, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null) : a.handler && h.Function(a.handler) ? m = a.handler(d, i, s) : m = t.$handle.loadStrVar(`{{${a.attr}}}`, d, p ? { rule: i, value: t.$handle.subRuleData[p.id] || {} } : null), (m == null || m === "") && a.default != null && (m = a.default), a.copy !== !1 && (m = Y(m));
4139
4159
  const $ = a.modify ? i : r.getProp();
4140
- a.to === "child" ? $.children ? k($.children, 0, m) : k($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
4141
- }, u = (p) => l(p);
4160
+ a.to === "child" ? $.children ? E($.children, 0, m) : E($, "children", [m]) : oe($, a.to || "options", m), s.sync(i);
4161
+ }, u = (d) => l(d);
4142
4162
  const f = t.watchLoadData(u);
4143
4163
  l = se(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
4144
4164
  }
@@ -4152,7 +4172,7 @@ const Fi = function(t) {
4152
4172
  }
4153
4173
  };
4154
4174
  return e.watch = e.loaded, e;
4155
- }, ki = function(t) {
4175
+ }, Ei = function(t) {
4156
4176
  const e = {
4157
4177
  name: "t",
4158
4178
  _fn: [],
@@ -4167,10 +4187,10 @@ const Fi = function(t) {
4167
4187
  let f = (m) => {
4168
4188
  let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
4169
4189
  const v = u && l.modify ? i : r.getProp();
4170
- a === "child" ? v.children ? k(v.children, 0, $) : k(v, "children", [$]) : oe(v, a, $), s.sync(i);
4171
- }, p = (m) => f(m);
4172
- const d = t.watchLoadData(p);
4173
- f = se(f, l.wait || 300), l.watch !== !1 ? o.push(d) : d();
4190
+ a === "child" ? v.children ? E(v.children, 0, $) : E(v, "children", [$]) : oe(v, a, $), s.sync(i);
4191
+ }, d = (m) => f(m);
4192
+ const p = t.watchLoadData(d);
4193
+ f = se(f, l.wait || 300), l.watch !== !1 ? o.push(p) : p();
4174
4194
  }
4175
4195
  }), this._fn[r.id] = o;
4176
4196
  },
@@ -4206,7 +4226,7 @@ const Fi = function(t) {
4206
4226
  watch(...t) {
4207
4227
  Kt.load(...t);
4208
4228
  }
4209
- }, Ei = function(t) {
4229
+ }, ki = function(t) {
4210
4230
  function e(s) {
4211
4231
  return h.String(s) && (s = {
4212
4232
  action: s,
@@ -4216,39 +4236,39 @@ const Fi = function(t) {
4216
4236
  function r(s, n, o) {
4217
4237
  let a = s.value;
4218
4238
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
4219
- const l = (p) => {
4220
- p === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", p), o.sync(n);
4239
+ const l = (d) => {
4240
+ d === void 0 ? s.clearProp() : oe(s.getProp(), a.to || "options", d), o.sync(n);
4221
4241
  };
4222
4242
  if (!a || !a.action && !a.key) {
4223
4243
  l(void 0);
4224
4244
  return;
4225
4245
  }
4226
4246
  if (a = Y(a), a.to || (a.to = "options"), a.key) {
4227
- const p = t.$handle.options.globalData[a.key];
4228
- if (!p) {
4247
+ const d = t.$handle.options.globalData[a.key];
4248
+ if (!d) {
4229
4249
  l(void 0);
4230
4250
  return;
4231
4251
  }
4232
- if (p.type === "static") {
4233
- l(p.data);
4252
+ if (d.type === "static") {
4253
+ l(d.data);
4234
4254
  return;
4235
4255
  } else
4236
- a = _(_({}, a), p);
4256
+ a = _(_({}, a), d);
4237
4257
  }
4238
4258
  const u = a.onError, f = () => {
4239
4259
  if (!s.getValue())
4240
4260
  return s.clearProp(), o.sync(n), !0;
4241
4261
  };
4242
- i._fn[s.id] = t.watchLoadData(se((p, d) => {
4243
- if (d && a.watch === !1)
4262
+ i._fn[s.id] = t.watchLoadData(se((d, p) => {
4263
+ if (p && a.watch === !1)
4244
4264
  return i._fn[s.id]();
4245
- const m = t.$handle.loadFetchVar(Y(a), p, n), $ = q(_({
4265
+ const m = t.$handle.loadFetchVar(Y(a), d, n), $ = q(_({
4246
4266
  headers: {}
4247
4267
  }, m), {
4248
4268
  onSuccess(v, F) {
4249
4269
  if (f()) return;
4250
4270
  let J = (L) => F ? L : j(L, "data") ? L.data : L;
4251
- const A = z(m.parse);
4271
+ const A = x(m.parse);
4252
4272
  h.Function(A) ? J = A : A && h.String(A) && (J = (L) => B(L, A)), Ae(J(v, n, o)).then((L) => {
4253
4273
  l(L);
4254
4274
  });
@@ -4286,9 +4306,9 @@ const Fi = function(t) {
4286
4306
  };
4287
4307
  return i;
4288
4308
  }, Ri = {
4289
- fetch: Ei,
4309
+ fetch: ki,
4290
4310
  loadData: Fi,
4291
- t: ki,
4311
+ t: Ei,
4292
4312
  componentValidate: Kt
4293
4313
  };
4294
4314
  function Si(t) {
@@ -4462,9 +4482,9 @@ function Wt(t) {
4462
4482
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4463
4483
  t.extendApi
4464
4484
  ], u = _({}, Ri), f = Yr();
4465
- let p = { global: {} };
4466
- const d = t.isMobile === !0, m = ne({
4467
- $mobile: d
4485
+ let d = { global: {} };
4486
+ const p = t.isMobile === !0, m = ne({
4487
+ $mobile: p
4468
4488
  }), $ = wi(), v = {}, F = {};
4469
4489
  Ui(t.attrs || {});
4470
4490
  function J(c) {
@@ -4500,7 +4520,7 @@ function Wt(t) {
4500
4520
  const y = H(g.id), b = g.prop, w = b.merge === !0 ? r[y] : void 0;
4501
4521
  r[y] = je(b, w || we), f[y] = T(y), b.maker && C(f, b.maker);
4502
4522
  }
4503
- function E(c, g) {
4523
+ function k(c, g) {
4504
4524
  let y;
4505
4525
  if (h.String(c)) {
4506
4526
  if (y = c, g === void 0)
@@ -4526,7 +4546,7 @@ function Wt(t) {
4526
4546
  return w.$parent = y, Mi(w.options).appendChild(b.$el), w.api();
4527
4547
  }
4528
4548
  je(K, F);
4529
- function xt(c) {
4549
+ function zt(c) {
4530
4550
  let g = _({}, t);
4531
4551
  return c ? g.inherit = {
4532
4552
  components: e,
@@ -4552,7 +4572,7 @@ function Wt(t) {
4552
4572
  b[w] = je(g.parsers[w], we);
4553
4573
  }), g.name = c, n[c] = q(_(_({}, y), g), { parsers: b });
4554
4574
  }
4555
- function ke(c) {
4575
+ function Ee(c) {
4556
4576
  c && Object.keys(U).forEach((g) => {
4557
4577
  (Array.isArray(U[g]) ? U[g] : [U[g]]).forEach((b) => {
4558
4578
  b.bus.$emit("$loadData." + c);
@@ -4560,9 +4580,9 @@ function Wt(t) {
4560
4580
  });
4561
4581
  }
4562
4582
  function Te(c, g) {
4563
- oe(m, c, g), ke(c);
4583
+ oe(m, c, g), Ee(c);
4564
4584
  }
4565
- function Ee(c, g) {
4585
+ function ke(c, g) {
4566
4586
  const y = (...b) => O(() => g(...b));
4567
4587
  y._driver = !0, Te(c, y);
4568
4588
  }
@@ -4570,7 +4590,7 @@ function Wt(t) {
4570
4590
  const y = (c || "").split(".");
4571
4591
  c = y.shift();
4572
4592
  const b = y.join(".");
4573
- if (j(m, c) || k(m, c, _t), m[c] !== _t) {
4593
+ if (j(m, c) || E(m, c, _t), m[c] !== _t) {
4574
4594
  let w = m[c];
4575
4595
  return w && w._driver ? w = w(b) : y.length && (w = B(w, y)), w == null || w === "" ? g : w;
4576
4596
  } else
@@ -4580,7 +4600,7 @@ function Wt(t) {
4580
4600
  l.push(c);
4581
4601
  }
4582
4602
  function er(c) {
4583
- delete m[c], ke(c);
4603
+ delete m[c], Ee(c);
4584
4604
  }
4585
4605
  function tr(c, g) {
4586
4606
  a.push({ name: c, callback: g });
@@ -4595,7 +4615,7 @@ function Wt(t) {
4595
4615
  providers: u,
4596
4616
  modelFields: s,
4597
4617
  formulas: v,
4598
- isMobile: d,
4618
+ isMobile: p,
4599
4619
  rules: c.$props.rule,
4600
4620
  name: c.$props.name || Ie(),
4601
4621
  inFor: c.$props.inFor,
@@ -4606,7 +4626,7 @@ function Wt(t) {
4606
4626
  get: null,
4607
4627
  drivers: n,
4608
4628
  renderDriver: null,
4609
- refreshData: ke,
4629
+ refreshData: Ee,
4610
4630
  loadData: m,
4611
4631
  CreateNode: $,
4612
4632
  bus: new Si(),
@@ -4621,9 +4641,9 @@ function Wt(t) {
4621
4641
  N(this.options, () => {
4622
4642
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4623
4643
  }, { deep: !0 });
4624
- }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new x(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4644
+ }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new z(this), this.name && (this.inFor ? (U[this.name] || (U[this.name] = []), U[this.name].push(this)) : U[this.name] = this);
4625
4645
  }
4626
- Be.isMobile = d, C(Be.prototype, {
4646
+ Be.isMobile = p, C(Be.prototype, {
4627
4647
  init() {
4628
4648
  this.isSub() && this.unwatch.push(N(() => this.vm.parent.fc.options.value, () => {
4629
4649
  this.initOptions(), this.$handle.api.refresh();
@@ -4695,7 +4715,7 @@ function Wt(t) {
4695
4715
  let g = c.split(".");
4696
4716
  const y = g.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4697
4717
  if (b) {
4698
- const w = h.Function(b) ? b : z(b.handle);
4718
+ const w = h.Function(b) ? b : x(b.handle);
4699
4719
  if (w) {
4700
4720
  let V = w((...R) => this.$handle.api.getData(...R), this.$handle.api);
4701
4721
  return B(V, g);
@@ -4779,16 +4799,16 @@ function Wt(t) {
4779
4799
  resetBtn: {},
4780
4800
  globalEvent: {},
4781
4801
  globalData: {}
4782
- }, Y(p));
4802
+ }, Y(d));
4783
4803
  const g = this.isSub();
4784
4804
  g && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$props.option || {});
4785
4805
  const y = this.api();
4786
4806
  this.targetFormDriver("initOptions", c, { api: y, isSubForm: g }), this.updateOptions(c);
4787
4807
  },
4788
4808
  mergeOptions(c, g, y) {
4789
- return g = _({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4809
+ return g = _({}, g || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4790
4810
  delete g[b];
4791
- }), g.global && (c.global = zr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4811
+ }), g.global && (c.global = xr(c.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], c), c;
4792
4812
  },
4793
4813
  updateOptions(c) {
4794
4814
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4821,15 +4841,15 @@ function Wt(t) {
4821
4841
  C(c, {
4822
4842
  version: t.version,
4823
4843
  ui: t.ui,
4824
- isMobile: d,
4844
+ isMobile: p,
4825
4845
  extendApi: Yt,
4826
4846
  getData: st,
4827
- setDataDriver: Ee,
4847
+ setDataDriver: ke,
4828
4848
  setData: Te,
4829
4849
  removeData: er,
4830
- refreshData: ke,
4850
+ refreshData: Ee,
4831
4851
  maker: f,
4832
- component: E,
4852
+ component: k,
4833
4853
  directive: L,
4834
4854
  setModelField: Xt,
4835
4855
  setFormula: Zt,
@@ -4838,14 +4858,14 @@ function Wt(t) {
4838
4858
  $vnode: M,
4839
4859
  parser: me,
4840
4860
  use: ge,
4841
- factory: xt,
4861
+ factory: zt,
4842
4862
  componentAlias: Pe,
4843
4863
  copyRule: Pt,
4844
4864
  copyRules: Tt,
4845
4865
  mergeRule: ee,
4846
4866
  fetch: Ut,
4847
4867
  $form: S,
4848
- parseFn: z,
4868
+ parseFn: x,
4849
4869
  parseJson: St,
4850
4870
  toJson: Oe,
4851
4871
  useApp: A,
@@ -4857,8 +4877,8 @@ function Wt(t) {
4857
4877
  C(c, {
4858
4878
  create: K,
4859
4879
  install(g, y) {
4860
- p = _(_({}, p), y || {});
4861
- const b = `_installedFormCreate${d ? "Mobile" : ""}_${t.ui}`;
4880
+ d = _(_({}, d), y || {});
4881
+ const b = `_installedFormCreate${p ? "Mobile" : ""}_${t.ui}`;
4862
4882
  if (g[b] === !0) return;
4863
4883
  g[b] = !0;
4864
4884
  const w = function(R, ae = {}) {
@@ -4872,7 +4892,7 @@ function Wt(t) {
4872
4892
  }
4873
4893
  });
4874
4894
  }
4875
- if (ot(F), rr(F), Ee("$cookie", Pi), Ee("$localStorage", Ti), Ee("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4895
+ if (ot(F), rr(F), ke("$cookie", Pi), ke("$localStorage", Ti), ke("$sessionStorage", Bi), $.use({ fragment: "fcFragment" }), t.install && K.use(t), me(Di), t.inherit) {
4876
4896
  const c = t.inherit;
4877
4897
  c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(v, c.formulas);
4878
4898
  }
@@ -4924,13 +4944,13 @@ const Ct = {
4924
4944
  let { props: e } = t.prop;
4925
4945
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4926
4946
  }
4927
- }, Wi = "textarea", zi = {
4947
+ }, Wi = "textarea", xi = {
4928
4948
  name: Wi,
4929
4949
  mergeProp(t) {
4930
4950
  let { props: e } = t.prop;
4931
4951
  e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4932
4952
  }
4933
- }, Ot = "slider", xi = {
4953
+ }, Ot = "slider", zi = {
4934
4954
  name: Ot,
4935
4955
  maker: {
4936
4956
  sliderRange: T(Ot, { range: !0 })
@@ -4965,8 +4985,8 @@ const Ct = {
4965
4985
  Gi,
4966
4986
  Ji,
4967
4987
  Ki,
4968
- zi,
4969
4988
  xi,
4989
+ zi,
4970
4990
  Xi,
4971
4991
  Zi,
4972
4992
  Yi
@@ -5128,7 +5148,7 @@ const on = {
5128
5148
  delete r.wrap.class, delete r.wrap.title;
5129
5149
  const f = (h.Undef(r.wrap.show) ? !t.input : X(r.wrap.show)) ? e : this.$r(Q([r.wrap, {
5130
5150
  props: q(_({
5131
- labelWidth: o === void 0 ? o : Et(o),
5151
+ labelWidth: o === void 0 ? o : kt(o),
5132
5152
  label: n ? r.title.title : void 0
5133
5153
  }, Ge(r.wrap || {})), {
5134
5154
  prop: t.id,
@@ -5147,12 +5167,12 @@ const on = {
5147
5167
  return !(!e.title && !e.native || X(e.show));
5148
5168
  },
5149
5169
  makeInfo(t, e, r) {
5150
- var f, p, d, m, $, v;
5170
+ var f, d, p, m, $, v;
5151
5171
  const i = _({}, t.title), s = _({}, t.info), n = nn(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5152
- title: (p = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : p.value,
5172
+ title: (d = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : d.value,
5153
5173
  rule: r.rule,
5154
5174
  options: this.options
5155
- }) : ((m = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5175
+ }) : ((m = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : m.value) + (o.labelSuffix || o["label-suffix"] || "")];
5156
5176
  if (!X(s.show) && (s.info || s.native) && !X(s.icon)) {
5157
5177
  const F = {
5158
5178
  type: s.type || "popover",
@@ -5291,7 +5311,7 @@ function cn(t) {
5291
5311
  };
5292
5312
  return Object.keys(e).reduce((r, i) => (r[i] = T("frame", (s) => s.props({ type: e[i][0], maxLength: e[i][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5293
5313
  }
5294
- function kt(t, e) {
5314
+ function Et(t, e) {
5295
5315
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
5296
5316
  }
5297
5317
  function hn(t, e) {
@@ -5319,7 +5339,10 @@ function hn(t, e) {
5319
5339
  validateField(r, i) {
5320
5340
  return new Promise((s, n) => {
5321
5341
  const o = e.getFieldCtx(r);
5322
- if (!o) return;
5342
+ if (!o) {
5343
+ s(null), i && i(null);
5344
+ return;
5345
+ }
5323
5346
  const a = e.subForm[o.id], l = [e.$manager.validateField(o.id)];
5324
5347
  G(a).filter((u) => !u.isScope).forEach((u) => {
5325
5348
  l.push(u.validate());
@@ -5330,6 +5353,17 @@ function hn(t, e) {
5330
5353
  });
5331
5354
  });
5332
5355
  },
5356
+ validateFields(r, i) {
5357
+ return new Promise((s, n) => {
5358
+ Array.isArray(r) || (r = [r]);
5359
+ const o = r.map((a) => t.validateField(a));
5360
+ Promise.all(o).then(() => {
5361
+ s(null), i && i(null);
5362
+ }).catch((a) => {
5363
+ n(a), i && i(a);
5364
+ });
5365
+ });
5366
+ },
5333
5367
  clearValidateState(r, i = !0) {
5334
5368
  t.helper.tidyFields(r).forEach((s) => {
5335
5369
  i && this.clearSubValidateState(s), e.getCtxs(s).forEach((n) => {
@@ -5370,11 +5404,11 @@ function hn(t, e) {
5370
5404
  }
5371
5405
  },
5372
5406
  submitBtnProps: (r = {}) => {
5373
- let i = kt(e.options.submitBtn, !0);
5407
+ let i = Et(e.options.submitBtn, !0);
5374
5408
  C(i, r), e.options.submitBtn = i, t.refreshOptions();
5375
5409
  },
5376
5410
  resetBtnProps: (r = {}) => {
5377
- let i = kt(e.options.resetBtn, !1);
5411
+ let i = Et(e.options.resetBtn, !1);
5378
5412
  C(i, r), e.options.resetBtn = i, t.refreshOptions();
5379
5413
  },
5380
5414
  submit(r, i) {
@@ -5392,7 +5426,7 @@ function hn(t, e) {
5392
5426
  }
5393
5427
  };
5394
5428
  }
5395
- const zt = {
5429
+ const xt = {
5396
5430
  name: "required",
5397
5431
  load(t, e, r) {
5398
5432
  const i = dn(t.getValue());
@@ -5421,7 +5455,7 @@ const zt = {
5421
5455
  r.sync(e);
5422
5456
  },
5423
5457
  watch(...t) {
5424
- zt.load(...t);
5458
+ xt.load(...t);
5425
5459
  }
5426
5460
  };
5427
5461
  function dn(t) {
@@ -5430,7 +5464,7 @@ function dn(t) {
5430
5464
  function pn(t) {
5431
5465
  t.componentAlias(tn), Kr.forEach((e) => {
5432
5466
  t.component(e.name, e);
5433
- }), t.register(zt), en.forEach((e) => {
5467
+ }), t.register(xt), en.forEach((e) => {
5434
5468
  t.parser(e);
5435
5469
  }), Object.keys(de).forEach((e) => {
5436
5470
  t.maker[e] = de[e];
@@ -5439,7 +5473,7 @@ function pn(t) {
5439
5473
  function mn() {
5440
5474
  return Wt({
5441
5475
  ui: "element-ui",
5442
- version: "2.7.25",
5476
+ version: "2.7.26",
5443
5477
  manager: on,
5444
5478
  extendApi: hn,
5445
5479
  install: pn,