@harbor-design/proform 1.3.25 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +93 -93
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Te = Object.defineProperty;
2
2
  var ze = (r, e, t) => e in r ? Te(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var u = (r, e, t) => (ze(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { ref as z, readonly as Pe, nextTick as S, isRef as q, watch as _, isReactive as U, toRaw as x, reactive as K, createVNode as m, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
4
+ import { ref as z, readonly as Pe, nextTick as O, isRef as q, watch as _, isReactive as U, toRaw as x, reactive as K, createVNode as b, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
5
5
  class o {
6
6
  static typeChecker(e) {
7
7
  return {}.toString.call(e);
@@ -69,15 +69,15 @@ class o {
69
69
  return !!e.__proform_raw_object;
70
70
  }
71
71
  }
72
- function b(r, ...e) {
72
+ function h(r, ...e) {
73
73
  return e.forEach((t) => {
74
74
  if (Array.isArray(t))
75
75
  Array.isArray(r) || (r = []), t.forEach((i, s) => {
76
- typeof i == "object" && i !== null ? r[s] = b(Array.isArray(i) ? [] : {}, i) : r[s] = i;
76
+ typeof i == "object" && i !== null ? r[s] = h(Array.isArray(i) ? [] : {}, i) : r[s] = i;
77
77
  });
78
78
  else
79
79
  for (const i in t)
80
- t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null ? r[i] = b(r[i] || {}, t[i]) : r[i] = t[i]);
80
+ t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null ? r[i] = h(r[i] || {}, t[i]) : r[i] = t[i]);
81
81
  }), r;
82
82
  }
83
83
  function P(r) {
@@ -142,13 +142,13 @@ class Ke {
142
142
  return (e == null ? void 0 : e.validateForm(this)) ?? (t == null ? void 0 : t.validateForm(this));
143
143
  }
144
144
  hydrate(e) {
145
- S(() => {
145
+ O(() => {
146
146
  this.runtimeCore.hydrateEffect.trackEffect(
147
147
  () => {
148
148
  q(e) ? _(
149
149
  () => e.value,
150
150
  () => {
151
- b(this.runtimeCore.model.value, e.value);
151
+ h(this.runtimeCore.model.value, e.value);
152
152
  },
153
153
  {
154
154
  deep: !0,
@@ -157,13 +157,13 @@ class Ke {
157
157
  ) : U(e) ? _(
158
158
  () => e,
159
159
  () => {
160
- b(this.runtimeCore.model.value, e);
160
+ h(this.runtimeCore.model.value, e);
161
161
  },
162
162
  {
163
163
  deep: !0,
164
164
  immediate: !0
165
165
  }
166
- ) : b(this.runtimeCore.model.value, e);
166
+ ) : h(this.runtimeCore.model.value, e);
167
167
  },
168
168
  {
169
169
  lazy: !1
@@ -172,14 +172,14 @@ class Ke {
172
172
  });
173
173
  }
174
174
  share(e) {
175
- S(() => {
175
+ O(() => {
176
176
  Object.keys(e).forEach((t) => {
177
177
  q(e[t]) ? _(
178
178
  () => e[t].value,
179
179
  () => {
180
- this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t].value : Object.assign(this.runtimeCore.shared, {
180
+ this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t].value : (console.log("daaaaaaaaa", e[t].value), h(this.runtimeCore.shared, {
181
181
  [t]: e[t].value
182
- });
182
+ }));
183
183
  },
184
184
  {
185
185
  deep: !0,
@@ -188,7 +188,7 @@ class Ke {
188
188
  ) : U(e[t]) ? _(
189
189
  () => e[t],
190
190
  () => {
191
- this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : Object.assign(this.runtimeCore.shared, {
191
+ this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : h(this.runtimeCore.shared, {
192
192
  [t]: e[t]
193
193
  });
194
194
  },
@@ -196,20 +196,20 @@ class Ke {
196
196
  deep: !0,
197
197
  immediate: !0
198
198
  }
199
- ) : this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : Object.assign(this.runtimeCore.shared, {
199
+ ) : this.runtimeCore.shared[t] ? this.runtimeCore.shared[t] = e[t] : h(this.runtimeCore.shared, {
200
200
  [t]: e[t]
201
201
  });
202
202
  });
203
203
  });
204
204
  }
205
205
  subscribeModel(e) {
206
- S(() => {
206
+ O(() => {
207
207
  const t = _(
208
208
  () => this.readonlyReactiveModel.value,
209
209
  (i) => {
210
210
  e(i, {
211
211
  stopSubscribe() {
212
- S(() => {
212
+ O(() => {
213
213
  t();
214
214
  });
215
215
  }
@@ -248,7 +248,7 @@ class Z {
248
248
  return !t.lazy && e(), t.identifier ? this.identifierMap.get(t.identifier) || (this.effects.add(e), this.identifierMap.set(t.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
249
249
  }
250
250
  }
251
- var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, Q = We || Xe || Function("return this")(), E = Q.Symbol, Fe = Object.prototype, Ye = Fe.hasOwnProperty, Ze = Fe.toString, V = E ? E.toStringTag : void 0;
251
+ var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, Q = We || Xe || Function("return this")(), E = Q.Symbol, je = Object.prototype, Ye = je.hasOwnProperty, Ze = je.toString, V = E ? E.toStringTag : void 0;
252
252
  function Je(r) {
253
253
  var e = Ye.call(r, V), t = r[V];
254
254
  try {
@@ -279,14 +279,14 @@ function st(r, e) {
279
279
  s[t] = e(r[t], t, r);
280
280
  return s;
281
281
  }
282
- var A = Array.isArray, nt = 1 / 0, Ie = E ? E.prototype : void 0, Oe = Ie ? Ie.toString : void 0;
282
+ var A = Array.isArray, nt = 1 / 0, Ie = E ? E.prototype : void 0, Se = Ie ? Ie.toString : void 0;
283
283
  function Me(r) {
284
284
  if (typeof r == "string")
285
285
  return r;
286
286
  if (A(r))
287
287
  return st(r, Me) + "";
288
288
  if (k(r))
289
- return Oe ? Oe.call(r) : "";
289
+ return Se ? Se.call(r) : "";
290
290
  var e = r + "";
291
291
  return e == "0" && 1 / r == -nt ? "-0" : e;
292
292
  }
@@ -301,12 +301,12 @@ function ft(r) {
301
301
  var e = we(r);
302
302
  return e == at || e == lt || e == ot || e == ut;
303
303
  }
304
- var W = Q["__core-js_shared__"], Se = function() {
304
+ var W = Q["__core-js_shared__"], Oe = function() {
305
305
  var r = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "");
306
306
  return r ? "Symbol(src)_1." + r : "";
307
307
  }();
308
308
  function ct(r) {
309
- return !!Se && Se in r;
309
+ return !!Oe && Oe in r;
310
310
  }
311
311
  var dt = Function.prototype, pt = dt.toString;
312
312
  function ht(r) {
@@ -338,19 +338,19 @@ function ee(r, e) {
338
338
  var t = It(r, e);
339
339
  return Ct(t) ? t : void 0;
340
340
  }
341
- var je = function() {
341
+ var Fe = function() {
342
342
  try {
343
343
  var r = ee(Object, "defineProperty");
344
344
  return r({}, "", {}), r;
345
345
  } catch {
346
346
  }
347
- }(), Ot = 9007199254740991, St = /^(?:0|[1-9]\d*)$/;
348
- function jt(r, e) {
347
+ }(), St = 9007199254740991, Ot = /^(?:0|[1-9]\d*)$/;
348
+ function Ft(r, e) {
349
349
  var t = typeof r;
350
- return e = e ?? Ot, !!e && (t == "number" || t != "symbol" && St.test(r)) && r > -1 && r % 1 == 0 && r < e;
350
+ return e = e ?? St, !!e && (t == "number" || t != "symbol" && Ot.test(r)) && r > -1 && r % 1 == 0 && r < e;
351
351
  }
352
- function Ft(r, e, t) {
353
- e == "__proto__" && je ? je(r, e, {
352
+ function jt(r, e, t) {
353
+ e == "__proto__" && Fe ? Fe(r, e, {
354
354
  configurable: !0,
355
355
  enumerable: !0,
356
356
  value: t,
@@ -363,7 +363,7 @@ function xe(r, e) {
363
363
  var wt = Object.prototype, Mt = wt.hasOwnProperty;
364
364
  function xt(r, e, t) {
365
365
  var i = r[e];
366
- (!(Mt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && Ft(r, e, t);
366
+ (!(Mt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && jt(r, e, t);
367
367
  }
368
368
  var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
369
369
  function $t(r, e) {
@@ -399,18 +399,18 @@ function Ht(r, e) {
399
399
  var t = this.__data__;
400
400
  return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ? Bt : e, this;
401
401
  }
402
- function j(r) {
402
+ function F(r) {
403
403
  var e = -1, t = r == null ? 0 : r.length;
404
404
  for (this.clear(); ++e < t; ) {
405
405
  var i = r[e];
406
406
  this.set(i[0], i[1]);
407
407
  }
408
408
  }
409
- j.prototype.clear = Vt;
410
- j.prototype.delete = Nt;
411
- j.prototype.get = zt;
412
- j.prototype.has = Gt;
413
- j.prototype.set = Ht;
409
+ F.prototype.clear = Vt;
410
+ F.prototype.delete = Nt;
411
+ F.prototype.get = zt;
412
+ F.prototype.has = Gt;
413
+ F.prototype.set = Ht;
414
414
  function Kt() {
415
415
  this.__data__ = [], this.size = 0;
416
416
  }
@@ -454,9 +454,9 @@ R.prototype.set = Qt;
454
454
  var kt = ee(Q, "Map");
455
455
  function At() {
456
456
  this.size = 0, this.__data__ = {
457
- hash: new j(),
457
+ hash: new F(),
458
458
  map: new (kt || R)(),
459
- string: new j()
459
+ string: new F()
460
460
  };
461
461
  }
462
462
  function er(r) {
@@ -481,18 +481,18 @@ function sr(r, e) {
481
481
  var t = H(this, r), i = t.size;
482
482
  return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
483
483
  }
484
- function F(r) {
484
+ function j(r) {
485
485
  var e = -1, t = r == null ? 0 : r.length;
486
486
  for (this.clear(); ++e < t; ) {
487
487
  var i = r[e];
488
488
  this.set(i[0], i[1]);
489
489
  }
490
490
  }
491
- F.prototype.clear = At;
492
- F.prototype.delete = tr;
493
- F.prototype.get = rr;
494
- F.prototype.has = ir;
495
- F.prototype.set = sr;
491
+ j.prototype.clear = At;
492
+ j.prototype.delete = tr;
493
+ j.prototype.get = rr;
494
+ j.prototype.has = ir;
495
+ j.prototype.set = sr;
496
496
  var nr = "Expected a function";
497
497
  function te(r, e) {
498
498
  if (typeof r != "function" || e != null && typeof e != "function")
@@ -504,9 +504,9 @@ function te(r, e) {
504
504
  var a = r.apply(this, i);
505
505
  return t.cache = n.set(s, a) || n, a;
506
506
  };
507
- return t.cache = new (te.Cache || F)(), t;
507
+ return t.cache = new (te.Cache || j)(), t;
508
508
  }
509
- te.Cache = F;
509
+ te.Cache = j;
510
510
  var or = 500;
511
511
  function ar(r) {
512
512
  var e = te(r, function(i) {
@@ -553,7 +553,7 @@ function hr(r, e, t, i) {
553
553
  return r;
554
554
  if (s != a) {
555
555
  var p = l[f];
556
- d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : jt(e[s + 1]) ? [] : {});
556
+ d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : Ft(e[s + 1]) ? [] : {});
557
557
  }
558
558
  xt(l, f, d), l = l[f];
559
559
  }
@@ -647,14 +647,14 @@ class mr {
647
647
  const f = l.index, d = l.key, p = l.keyIndex;
648
648
  if (o.isUndefined(l.stable))
649
649
  return;
650
- const h = s.parseStable(l.stable), v = i == null ? void 0 : i.index, I = i == null ? void 0 : i.key;
651
- let y = h;
650
+ const m = s.parseStable(l.stable), v = i == null ? void 0 : i.index, I = i == null ? void 0 : i.key;
651
+ let y = m;
652
652
  if (o.isProcessInprogress(y) || (n[p] = !0), i) {
653
653
  const g = s.processedSchemas.value[v][I][f][d];
654
- g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[v][I][f][d] = y, s.stableUpdater(n);
654
+ g && o.isObject(g) && d !== "component" && (y = h(g, y)), s.processedSchemas.value[v][I][f][d] = y, s.stableUpdater(n);
655
655
  } else {
656
656
  const g = s.processedSchemas.value[f][d];
657
- g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[f][d] = y, s.stableUpdater(n);
657
+ g && o.isObject(g) && d !== "component" && (y = h(g, y)), s.processedSchemas.value[f][d] = y, s.stableUpdater(n);
658
658
  }
659
659
  }
660
660
  }
@@ -707,10 +707,10 @@ class mr {
707
707
  return f(p);
708
708
  this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
709
709
  this.defaultValueInprogressMap.values()
710
- ).every((h) => {
710
+ ).every((m) => {
711
711
  var v;
712
- return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
713
- }) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
712
+ return !((v = m == null ? void 0 : m.includes) != null && v.call(m, "undefined"));
713
+ }) ? (f(p), this.defaultValueEffect.clearEffects(), O(() => {
714
714
  d();
715
715
  })) : f(p);
716
716
  },
@@ -723,10 +723,10 @@ class mr {
723
723
  (p) => {
724
724
  this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
725
725
  this.defaultValueInprogressMap.values()
726
- ).every((h) => {
726
+ ).every((m) => {
727
727
  var v;
728
- return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
729
- }) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
728
+ return !((v = m == null ? void 0 : m.includes) != null && v.call(m, "undefined"));
729
+ }) ? (f(p), this.defaultValueEffect.clearEffects(), O(() => {
730
730
  d();
731
731
  })) : f(p);
732
732
  },
@@ -946,7 +946,7 @@ class vr {
946
946
  );
947
947
  else if (U(t.schemas)) {
948
948
  const i = _(() => t.schemas, () => {
949
- this.processor.parseSchemas(t.schemas), S(() => {
949
+ this.processor.parseSchemas(t.schemas), O(() => {
950
950
  i();
951
951
  });
952
952
  }, {
@@ -964,20 +964,20 @@ class vr {
964
964
  share: (t) => {
965
965
  Object.keys(t).forEach((i) => {
966
966
  q(t[i]) ? _(() => t[i].value, () => {
967
- b(this.shared, {
967
+ h(this.shared, {
968
968
  [i]: t[i].value
969
969
  });
970
970
  }, {
971
971
  deep: !0,
972
972
  immediate: !0
973
973
  }) : U(t[i]) ? _(() => t[i], () => {
974
- b(this.shared, {
974
+ h(this.shared, {
975
975
  [i]: t[i]
976
976
  });
977
977
  }, {
978
978
  deep: !0,
979
979
  immediate: !0
980
- }) : b(this.shared, {
980
+ }) : h(this.shared, {
981
981
  [i]: t[i]
982
982
  });
983
983
  });
@@ -989,20 +989,20 @@ class vr {
989
989
  const n = x(e.component);
990
990
  if (!n)
991
991
  return;
992
- (se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && b(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && b(this.globalNativeFormOverride.slots.Form, (fe = (ue = e.native) == null ? void 0 : ue.slots) == null ? void 0 : fe.Form);
993
- const a = b(P((de = (ce = this.native) == null ? void 0 : ce.slots) == null ? void 0 : de.FormItem) ?? {}, (he = (pe = e.native) == null ? void 0 : pe.slots) == null ? void 0 : he.FormItem), l = {
992
+ (se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && h(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && h(this.globalNativeFormOverride.slots.Form, (fe = (ue = e.native) == null ? void 0 : ue.slots) == null ? void 0 : fe.Form);
993
+ const a = h(P((de = (ce = this.native) == null ? void 0 : ce.slots) == null ? void 0 : de.FormItem) ?? {}, (he = (pe = e.native) == null ? void 0 : pe.slots) == null ? void 0 : he.FormItem), l = {
994
994
  display: "grid",
995
995
  gridColumn: "1 / -1",
996
996
  ...e.grid
997
- }, f = b(P((be = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : be.FormItem) ?? {}, (ve = (ge = e.native) == null ? void 0 : ge.props) == null ? void 0 : ve.FormItem), d = this.runtimeAdapter.getRuntimeField({
997
+ }, f = h(P((be = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : be.FormItem) ?? {}, (ve = (ge = e.native) == null ? void 0 : ge.props) == null ? void 0 : ve.FormItem), d = this.runtimeAdapter.getRuntimeField({
998
998
  schema: e,
999
999
  parentSchema: s,
1000
1000
  index: t
1001
- }), p = n.name, h = e.componentProps ?? {}, v = C.placeholderPresetByComponentName;
1001
+ }), p = n.name, m = e.componentProps ?? {}, v = C.placeholderPresetByComponentName;
1002
1002
  let I = e.placeholder, y = e.show;
1003
1003
  y === void 0 && (y = !0);
1004
- let g = e.label ?? "", O;
1005
- if (e.runtime ? O = e.runtime : O = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(O) && (g = Y((ye = O == null ? void 0 : O.customizeListItemLabel) == null ? void 0 : ye.call(O, e.label ?? "", t + 1), "")), !I) {
1004
+ let g = e.label ?? "", S;
1005
+ if (e.runtime ? S = e.runtime : S = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(S) && (g = Y((ye = S == null ? void 0 : S.customizeListItemLabel) == null ? void 0 : ye.call(S, e.label ?? "", t + 1), "")), !I) {
1006
1006
  let $ = "请输入";
1007
1007
  o.isUndefined(p) ? I = `${$}${g}` : /* @ts-expect-error */ v[p.toLowerCase()] ? ($ = // @ts-expect-error
1008
1008
  v[p.toLowerCase()], I = `${$}${g}`) : (Object.keys(v).forEach((_e) => {
@@ -1013,13 +1013,13 @@ class vr {
1013
1013
  ...e,
1014
1014
  label: g
1015
1015
  }), Ve = w.getItemContainer(this), Ne = w.getFormItemContainer(this), qe = this, Ue = e.componentSlots;
1016
- return m("div", {
1016
+ return b("div", {
1017
1017
  style: l
1018
- }, [m(Ve, {
1018
+ }, [b(Ve, {
1019
1019
  show: y
1020
1020
  }, {
1021
1021
  default() {
1022
- return y && m(Ne, N(f, {
1022
+ return y && b(Ne, N(f, {
1023
1023
  label: `${g ? `${g}:` : ""}`
1024
1024
  }, d, $e), {
1025
1025
  default() {
@@ -1029,7 +1029,7 @@ class vr {
1029
1029
  baseModel: i,
1030
1030
  placeholder: I,
1031
1031
  componentSlots: Ue,
1032
- props: h
1032
+ props: m
1033
1033
  });
1034
1034
  },
1035
1035
  ...a
@@ -1045,9 +1045,9 @@ class vr {
1045
1045
  ...e.grid
1046
1046
  }, s = w.getGroupContainer(this);
1047
1047
  let n = e.show;
1048
- return n === void 0 && (n = !0), m("div", {
1048
+ return n === void 0 && (n = !0), b("div", {
1049
1049
  style: i
1050
- }, [n && m(s, {
1050
+ }, [n && b(s, {
1051
1051
  schema: e
1052
1052
  }, gr(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
1053
1053
  default: () => [t]
@@ -1075,32 +1075,32 @@ class vr {
1075
1075
  let s = e.show;
1076
1076
  s === void 0 && (s = !0);
1077
1077
  const n = w.getListContainer(this), a = w.getListItemContainer(this);
1078
- return m("div", {
1078
+ return b("div", {
1079
1079
  style: t
1080
- }, [s && m(n, {
1080
+ }, [s && b(n, {
1081
1081
  schema: e
1082
1082
  }, {
1083
1083
  default() {
1084
- return i.model.value[e.field].map((l, f) => m(a, null, {
1084
+ return i.model.value[e.field].map((l, f) => b(a, null, {
1085
1085
  default() {
1086
1086
  return e.children.map((d) => i.runtimeItemProcessor(d, f, l, e));
1087
1087
  },
1088
1088
  delete({
1089
1089
  container: d
1090
1090
  } = {}) {
1091
- var h;
1092
- const p = d ?? m("button", null, null);
1093
- return Le(m(p, {
1091
+ var m;
1092
+ const p = d ?? b("button", null, null);
1093
+ return Le(b(p, {
1094
1094
  onClick: () => i.deleteListItem(e, f)
1095
- }, null), [[De, ((h = i.model.value[e.field]) == null ? void 0 : h.length) > 1]]);
1095
+ }, null), [[De, ((m = i.model.value[e.field]) == null ? void 0 : m.length) > 1]]);
1096
1096
  }
1097
1097
  }));
1098
1098
  },
1099
1099
  add({
1100
1100
  container: l
1101
1101
  } = {}) {
1102
- const f = l ?? m("button", null, [Ge("添加")]);
1103
- return m(f, {
1102
+ const f = l ?? b("button", null, [Ge("添加")]);
1103
+ return b(f, {
1104
1104
  onClick: () => i.addListItem(e)
1105
1105
  }, null);
1106
1106
  }
@@ -1116,14 +1116,14 @@ class vr {
1116
1116
  gridColumn: "1 / -1",
1117
1117
  gridAutoColumns: "1fr",
1118
1118
  ...this.grid
1119
- }, t = this, i = b(this.globalNativeFormOverride.props.Form, P((f = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : f.Form) ?? {}), s = b(this.globalNativeFormOverride.slots.Form, P((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
1120
- return m(n, N(i, {
1119
+ }, t = this, i = h(this.globalNativeFormOverride.props.Form, P((f = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : f.Form) ?? {}), s = h(this.globalNativeFormOverride.slots.Form, P((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
1120
+ return b(n, N(i, {
1121
1121
  ref: this.formRef
1122
1122
  }, {
1123
1123
  [a]: this.model.value
1124
1124
  }), {
1125
1125
  default() {
1126
- return m("div", {
1126
+ return b("div", {
1127
1127
  style: e
1128
1128
  }, [t.runtimeProcessor(t.schemas.value)]);
1129
1129
  },
@@ -1197,7 +1197,7 @@ const yr = {
1197
1197
  props: n
1198
1198
  }) {
1199
1199
  let a;
1200
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1200
+ return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], b(r, N({
1201
1201
  modelValue: a,
1202
1202
  "onUpdate:modelValue": (l) => {
1203
1203
  o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
@@ -1265,7 +1265,7 @@ const yr = {
1265
1265
  props: n
1266
1266
  }) {
1267
1267
  let a;
1268
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1268
+ return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], b(r, N({
1269
1269
  modelValue: a,
1270
1270
  "onUpdate:modelValue": (l) => {
1271
1271
  o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
@@ -1340,7 +1340,7 @@ const yr = {
1340
1340
  props: n
1341
1341
  }) {
1342
1342
  let a;
1343
- return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], m(r, N({
1343
+ return o.isFunction(t.field) ? a = L(e, t.field()) : a = e[t.field], b(r, N({
1344
1344
  value: a,
1345
1345
  "onUpdate:value": (l) => {
1346
1346
  o.isFunction(t.field) ? D(e, t.field(), l) : e[t.field] = l;
@@ -1456,7 +1456,7 @@ function Ir(r) {
1456
1456
  }
1457
1457
  ];
1458
1458
  }
1459
- function Or(r) {
1459
+ function Sr(r) {
1460
1460
  c.presets = r;
1461
1461
  }
1462
1462
  function re(r, e) {
@@ -1471,13 +1471,13 @@ function re(r, e) {
1471
1471
  writable: !0
1472
1472
  }), r;
1473
1473
  }
1474
- function Sr(r) {
1474
+ function Or(r) {
1475
1475
  return re(r, "native");
1476
1476
  }
1477
- function jr(r) {
1477
+ function Fr(r) {
1478
1478
  return r.__proform_raw_object = !0, r;
1479
1479
  }
1480
- function Fr(r) {
1480
+ function jr(r) {
1481
1481
  return re(r, "onetime");
1482
1482
  }
1483
1483
  function wr(r) {
@@ -1491,11 +1491,11 @@ function wr(r) {
1491
1491
  }
1492
1492
  export {
1493
1493
  Cr as ProForm,
1494
- Sr as markNativeFunction,
1495
- jr as markNativeObject,
1496
- Fr as markOnetimeFunction,
1494
+ Or as markNativeFunction,
1495
+ Fr as markNativeObject,
1496
+ jr as markOnetimeFunction,
1497
1497
  wr as markStructuredPathParsing,
1498
1498
  Ir as useForm,
1499
- Or as useFormPresetConfigurer,
1499
+ Sr as useFormPresetConfigurer,
1500
1500
  re as useModifiers
1501
1501
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.3.25",
3
+ "version": "1.3.26",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",