@harbor-design/proform 1.3.3 → 1.3.5

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ue = Object.defineProperty;
2
2
  var ze = (t, e, r) => e in t ? Ue(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var u = (t, e, r) => (ze(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import { ref as z, readonly as _e, nextTick as P, isRef as T, watch as _, isReactive as q, toRaw as E, reactive as Pe, createVNode as g, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as ke } from "vue";
4
+ import { ref as z, readonly as _e, nextTick as P, isRef as T, watch as _, isReactive as q, toRaw as F, reactive as Pe, createVNode as g, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as We, defineComponent as Be } from "vue";
5
5
  class o {
6
6
  static typeChecker(e) {
7
7
  return {}.toString.call(e);
@@ -121,7 +121,7 @@ function C(t) {
121
121
  function K(t, e) {
122
122
  return t.replace(/undefined/g, e);
123
123
  }
124
- class He {
124
+ class ke {
125
125
  constructor(e) {
126
126
  u(this, "runtimeCore");
127
127
  u(this, "readonlyReactiveModel", z({}));
@@ -247,7 +247,7 @@ class X {
247
247
  return !r.lazy && e(), r.identifier ? this.identifierMap.get(r.identifier) || (this.effects.add(e), this.identifierMap.set(r.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
248
248
  }
249
249
  }
250
- var We = typeof global == "object" && global && global.Object === Object && global, Ke = typeof self == "object" && self && self.Object === Object && self, Z = We || Ke || Function("return this")(), x = Z.Symbol, je = Object.prototype, Xe = je.hasOwnProperty, Ye = je.toString, V = x ? x.toStringTag : void 0;
250
+ var He = typeof global == "object" && global && global.Object === Object && global, Ke = typeof self == "object" && self && self.Object === Object && self, Z = He || Ke || Function("return this")(), x = Z.Symbol, Ee = Object.prototype, Xe = Ee.hasOwnProperty, Ye = Ee.toString, V = x ? x.toStringTag : void 0;
251
251
  function Ze(t) {
252
252
  var e = Xe.call(t, V), r = t[V];
253
253
  try {
@@ -263,7 +263,7 @@ function Ae(t) {
263
263
  return Qe.call(t);
264
264
  }
265
265
  var et = "[object Null]", tt = "[object Undefined]", Ce = x ? x.toStringTag : void 0;
266
- function we(t) {
266
+ function Me(t) {
267
267
  return t == null ? t === void 0 ? tt : et : Ce && Ce in Object(t) ? Ze(t) : Ae(t);
268
268
  }
269
269
  function rt(t) {
@@ -271,7 +271,7 @@ function rt(t) {
271
271
  }
272
272
  var it = "[object Symbol]";
273
273
  function J(t) {
274
- return typeof t == "symbol" || rt(t) && we(t) == it;
274
+ return typeof t == "symbol" || rt(t) && Me(t) == it;
275
275
  }
276
276
  function st(t, e) {
277
277
  for (var r = -1, i = t == null ? 0 : t.length, s = Array(i); ++r < i; )
@@ -279,11 +279,11 @@ function st(t, e) {
279
279
  return s;
280
280
  }
281
281
  var Q = Array.isArray, nt = 1 / 0, Ie = x ? x.prototype : void 0, Se = Ie ? Ie.toString : void 0;
282
- function Me(t) {
282
+ function we(t) {
283
283
  if (typeof t == "string")
284
284
  return t;
285
285
  if (Q(t))
286
- return st(t, Me) + "";
286
+ return st(t, we) + "";
287
287
  if (J(t))
288
288
  return Se ? Se.call(t) : "";
289
289
  var e = t + "";
@@ -297,11 +297,11 @@ var ot = "[object AsyncFunction]", at = "[object Function]", lt = "[object Gener
297
297
  function ct(t) {
298
298
  if (!G(t))
299
299
  return !1;
300
- var e = we(t);
300
+ var e = Me(t);
301
301
  return e == at || e == lt || e == ot || e == ut;
302
302
  }
303
- var H = Z["__core-js_shared__"], Oe = function() {
304
- var t = /[^.]+$/.exec(H && H.keys && H.keys.IE_PROTO || "");
303
+ var k = Z["__core-js_shared__"], Oe = function() {
304
+ var t = /[^.]+$/.exec(k && k.keys && k.keys.IE_PROTO || "");
305
305
  return t ? "Symbol(src)_1." + t : "";
306
306
  }();
307
307
  function ft(t) {
@@ -337,32 +337,32 @@ function A(t, e) {
337
337
  var r = It(t, e);
338
338
  return Ct(r) ? r : void 0;
339
339
  }
340
- var Fe = function() {
340
+ var je = function() {
341
341
  try {
342
342
  var t = A(Object, "defineProperty");
343
343
  return t({}, "", {}), t;
344
344
  } catch {
345
345
  }
346
346
  }(), St = 9007199254740991, Ot = /^(?:0|[1-9]\d*)$/;
347
- function Ft(t, e) {
347
+ function jt(t, e) {
348
348
  var r = typeof t;
349
349
  return e = e ?? St, !!e && (r == "number" || r != "symbol" && Ot.test(t)) && t > -1 && t % 1 == 0 && t < e;
350
350
  }
351
- function jt(t, e, r) {
352
- e == "__proto__" && Fe ? Fe(t, e, {
351
+ function Et(t, e, r) {
352
+ e == "__proto__" && je ? je(t, e, {
353
353
  configurable: !0,
354
354
  enumerable: !0,
355
355
  value: r,
356
356
  writable: !0
357
357
  }) : t[e] = r;
358
358
  }
359
- function Ee(t, e) {
359
+ function Fe(t, e) {
360
360
  return t === e || t !== t && e !== e;
361
361
  }
362
- var wt = Object.prototype, Mt = wt.hasOwnProperty;
363
- function Et(t, e, r) {
362
+ var Mt = Object.prototype, wt = Mt.hasOwnProperty;
363
+ function Ft(t, e, r) {
364
364
  var i = t[e];
365
- (!(Mt.call(t, e) && Ee(i, r)) || r === void 0 && !(e in t)) && jt(t, e, r);
365
+ (!(wt.call(t, e) && Fe(i, r)) || r === void 0 && !(e in t)) && Et(t, e, r);
366
366
  }
367
367
  var xt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
368
368
  function $t(t, e) {
@@ -393,49 +393,49 @@ function Gt(t) {
393
393
  var e = this.__data__;
394
394
  return U ? e[t] !== void 0 : Dt.call(e, t);
395
395
  }
396
- var Bt = "__lodash_hash_undefined__";
397
- function kt(t, e) {
396
+ var Wt = "__lodash_hash_undefined__";
397
+ function Bt(t, e) {
398
398
  var r = this.__data__;
399
- return this.size += this.has(t) ? 0 : 1, r[t] = U && e === void 0 ? Bt : e, this;
399
+ return this.size += this.has(t) ? 0 : 1, r[t] = U && e === void 0 ? Wt : e, this;
400
400
  }
401
- function F(t) {
401
+ function j(t) {
402
402
  var e = -1, r = t == null ? 0 : t.length;
403
403
  for (this.clear(); ++e < r; ) {
404
404
  var i = t[e];
405
405
  this.set(i[0], i[1]);
406
406
  }
407
407
  }
408
- F.prototype.clear = Vt;
409
- F.prototype.delete = Nt;
410
- F.prototype.get = zt;
411
- F.prototype.has = Gt;
412
- F.prototype.set = kt;
413
- function Ht() {
408
+ j.prototype.clear = Vt;
409
+ j.prototype.delete = Nt;
410
+ j.prototype.get = zt;
411
+ j.prototype.has = Gt;
412
+ j.prototype.set = Bt;
413
+ function kt() {
414
414
  this.__data__ = [], this.size = 0;
415
415
  }
416
- function B(t, e) {
416
+ function W(t, e) {
417
417
  for (var r = t.length; r--; )
418
- if (Ee(t[r][0], e))
418
+ if (Fe(t[r][0], e))
419
419
  return r;
420
420
  return -1;
421
421
  }
422
- var Wt = Array.prototype, Kt = Wt.splice;
422
+ var Ht = Array.prototype, Kt = Ht.splice;
423
423
  function Xt(t) {
424
- var e = this.__data__, r = B(e, t);
424
+ var e = this.__data__, r = W(e, t);
425
425
  if (r < 0)
426
426
  return !1;
427
427
  var i = e.length - 1;
428
428
  return r == i ? e.pop() : Kt.call(e, r, 1), --this.size, !0;
429
429
  }
430
430
  function Yt(t) {
431
- var e = this.__data__, r = B(e, t);
431
+ var e = this.__data__, r = W(e, t);
432
432
  return r < 0 ? void 0 : e[r][1];
433
433
  }
434
434
  function Zt(t) {
435
- return B(this.__data__, t) > -1;
435
+ return W(this.__data__, t) > -1;
436
436
  }
437
437
  function Jt(t, e) {
438
- var r = this.__data__, i = B(r, t);
438
+ var r = this.__data__, i = W(r, t);
439
439
  return i < 0 ? (++this.size, r.push([t, e])) : r[i][1] = e, this;
440
440
  }
441
441
  function R(t) {
@@ -445,7 +445,7 @@ function R(t) {
445
445
  this.set(i[0], i[1]);
446
446
  }
447
447
  }
448
- R.prototype.clear = Ht;
448
+ R.prototype.clear = kt;
449
449
  R.prototype.delete = Xt;
450
450
  R.prototype.get = Yt;
451
451
  R.prototype.has = Zt;
@@ -453,45 +453,45 @@ R.prototype.set = Jt;
453
453
  var Qt = A(Z, "Map");
454
454
  function At() {
455
455
  this.size = 0, this.__data__ = {
456
- hash: new F(),
456
+ hash: new j(),
457
457
  map: new (Qt || R)(),
458
- string: new F()
458
+ string: new j()
459
459
  };
460
460
  }
461
461
  function er(t) {
462
462
  var e = typeof t;
463
463
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
464
464
  }
465
- function k(t, e) {
465
+ function B(t, e) {
466
466
  var r = t.__data__;
467
467
  return er(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
468
468
  }
469
469
  function tr(t) {
470
- var e = k(this, t).delete(t);
470
+ var e = B(this, t).delete(t);
471
471
  return this.size -= e ? 1 : 0, e;
472
472
  }
473
473
  function rr(t) {
474
- return k(this, t).get(t);
474
+ return B(this, t).get(t);
475
475
  }
476
476
  function ir(t) {
477
- return k(this, t).has(t);
477
+ return B(this, t).has(t);
478
478
  }
479
479
  function sr(t, e) {
480
- var r = k(this, t), i = r.size;
480
+ var r = B(this, t), i = r.size;
481
481
  return r.set(t, e), this.size += r.size == i ? 0 : 1, this;
482
482
  }
483
- function j(t) {
483
+ function E(t) {
484
484
  var e = -1, r = t == null ? 0 : t.length;
485
485
  for (this.clear(); ++e < r; ) {
486
486
  var i = t[e];
487
487
  this.set(i[0], i[1]);
488
488
  }
489
489
  }
490
- j.prototype.clear = At;
491
- j.prototype.delete = tr;
492
- j.prototype.get = rr;
493
- j.prototype.has = ir;
494
- j.prototype.set = sr;
490
+ E.prototype.clear = At;
491
+ E.prototype.delete = tr;
492
+ E.prototype.get = rr;
493
+ E.prototype.has = ir;
494
+ E.prototype.set = sr;
495
495
  var nr = "Expected a function";
496
496
  function ee(t, e) {
497
497
  if (typeof t != "function" || e != null && typeof e != "function")
@@ -503,9 +503,9 @@ function ee(t, e) {
503
503
  var a = t.apply(this, i);
504
504
  return r.cache = n.set(s, a) || n, a;
505
505
  };
506
- return r.cache = new (ee.Cache || j)(), r;
506
+ return r.cache = new (ee.Cache || E)(), r;
507
507
  }
508
- ee.Cache = j;
508
+ ee.Cache = E;
509
509
  var or = 500;
510
510
  function ar(t) {
511
511
  var e = ee(t, function(i) {
@@ -520,7 +520,7 @@ var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
520
520
  }), e;
521
521
  });
522
522
  function fr(t) {
523
- return t == null ? "" : Me(t);
523
+ return t == null ? "" : we(t);
524
524
  }
525
525
  function xe(t, e) {
526
526
  return Q(t) ? t : $t(t, e) ? [t] : cr(fr(t));
@@ -552,9 +552,9 @@ function hr(t, e, r, i) {
552
552
  return t;
553
553
  if (s != a) {
554
554
  var p = l[c];
555
- d = i ? i(p, c, l) : void 0, d === void 0 && (d = G(p) ? p : Ft(e[s + 1]) ? [] : {});
555
+ d = i ? i(p, c, l) : void 0, d === void 0 && (d = G(p) ? p : jt(e[s + 1]) ? [] : {});
556
556
  }
557
- Et(l, c, d), l = l[c];
557
+ Ft(l, c, d), l = l[c];
558
558
  }
559
559
  return t;
560
560
  }
@@ -579,6 +579,7 @@ class mr {
579
579
  u(this, "baseDefaultValueFunctionsLength");
580
580
  u(this, "isModelInitialized", !0);
581
581
  u(this, "modelTriggerTimer");
582
+ u(this, "reactiveWatchMap", /* @__PURE__ */ new Map());
582
583
  this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e), _(
583
584
  () => this.processedModel.value,
584
585
  () => {
@@ -633,7 +634,7 @@ class mr {
633
634
  // 对于稳定初始化更新的抽象
634
635
  stableUpdater(e = []) {
635
636
  if (e.every(Boolean)) {
636
- const r = E(this.processedSchemas.value);
637
+ const r = F(this.processedSchemas.value);
637
638
  !o.isProcessInprogress(r) && o.isObjectEmpty(this.stableModel) && (this.stableUpdaterProcessProgress || (this.stableUpdaterProcessProgress = Array.from({
638
639
  length: r.length
639
640
  }).fill(!1)), this.stableUpdaterProcessProgress[this.stableUpdaterTimes] = !0, this.stableUpdaterTimes++, this.modelProcessor(r));
@@ -808,12 +809,12 @@ class mr {
808
809
  ) : q(e) ? _(
809
810
  () => e,
810
811
  () => {
811
- o.isUndefined(e) || (s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
812
+ this.reactiveWatchMap.get(e) || (this.reactiveWatchMap.set(e, !0), !o.isArrayEmpty(e) && !o.isObjectEmpty(e) && (o.isUndefined(e) || (s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
812
813
  data: e,
813
814
  updater: r,
814
815
  index: i.rootIndex,
815
816
  parentMeta: i.parentMeta
816
- }) : r(e));
817
+ }) : r(e))));
817
818
  },
818
819
  {
819
820
  immediate: !0,
@@ -851,7 +852,7 @@ class mr {
851
852
  }
852
853
  }
853
854
  }
854
- class w {
855
+ class M {
855
856
  static getFormContainer({ ui: e } = {}) {
856
857
  return f.presets.uiPresets[e ?? f.presets.ui].container.Form;
857
858
  }
@@ -906,7 +907,7 @@ class gr {
906
907
  }
907
908
  }
908
909
  function yr(t) {
909
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Be(t);
910
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !We(t);
910
911
  }
911
912
  class br {
912
913
  constructor(e) {
@@ -935,31 +936,24 @@ class br {
935
936
  u(this, "shared", {});
936
937
  this.setup = e, this.processor = new mr(this);
937
938
  const r = this.setup(this);
938
- if (this.ui = r.ui ?? f.presets.ui, this.runtimeAdapter = new gr(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), T(r.schemas))
939
- _(
940
- // @ts-expect-error
941
- () => r.schemas.value,
942
- () => {
943
- this.processor.parseSchemas(r.schemas.value);
944
- },
945
- {
946
- deep: !0
947
- }
948
- );
949
- else if (q(r.schemas)) {
950
- const i = _(() => r.schemas, () => {
951
- this.processor.parseSchemas(r.schemas), P(() => {
952
- i();
953
- });
954
- }, {
939
+ this.ui = r.ui ?? f.presets.ui, this.runtimeAdapter = new gr(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), T(r.schemas) ? _(
940
+ // @ts-expect-error
941
+ () => r.schemas.value,
942
+ () => {
943
+ this.processor.schemaEffect.clearEffects(), this.processor.processedSchemas.value = [], this.processor.parseSchemas(r.schemas.value);
944
+ },
945
+ {
955
946
  deep: !0
956
- });
957
- } else
958
- this.processor.parseSchemas(r.schemas);
947
+ }
948
+ ) : q(r.schemas) ? _(() => r.schemas, () => {
949
+ this.processor.schemaEffect.clearEffects(), this.processor.processedSchemas.value = [], this.processor.parseSchemas(r.schemas);
950
+ }, {
951
+ deep: !0
952
+ }) : this.processor.parseSchemas(r.schemas);
959
953
  }
960
954
  getRuntimeMeta() {
961
955
  return {
962
- model: E(C(this.model.value)),
956
+ model: F(C(this.model.value)),
963
957
  reactiveModel: this.model.value,
964
958
  shared: this.shared,
965
959
  // share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
@@ -989,7 +983,7 @@ class br {
989
983
  }
990
984
  runtimeItemProcessor(e, r, i = this.model.value, s) {
991
985
  var re, ie, se, ne, oe, ae, le, ue, ce, fe, de, pe, he, me, ge, ye, be;
992
- const n = E(e.component);
986
+ const n = F(e.component);
993
987
  if (!n)
994
988
  return;
995
989
  (ie = (re = e.native) == null ? void 0 : re.props) != null && ie.Form && h(this.globalNativeFormOverride.props.Form, (ne = (se = e.native) == null ? void 0 : se.props) == null ? void 0 : ne.Form), (ae = (oe = e.native) == null ? void 0 : oe.slots) != null && ae.Form && h(this.globalNativeFormOverride.slots.Form, (ue = (le = e.native) == null ? void 0 : le.slots) == null ? void 0 : ue.Form);
@@ -1015,7 +1009,7 @@ class br {
1015
1009
  const $e = this.runtimeAdapter.getRuntimeRequired({
1016
1010
  ...e,
1017
1011
  label: y
1018
- }), Ve = w.getItemContainer(this), Ne = w.getFormItemContainer(this), Te = this, qe = e.componentSlots;
1012
+ }), Ve = M.getItemContainer(this), Ne = M.getFormItemContainer(this), Te = this, qe = e.componentSlots;
1019
1013
  return g("div", {
1020
1014
  style: l
1021
1015
  }, [g(Ve, {
@@ -1046,7 +1040,7 @@ class br {
1046
1040
  display: "grid",
1047
1041
  gridColumn: "1 / -1",
1048
1042
  ...e.grid
1049
- }, s = w.getGroupContainer(this);
1043
+ }, s = M.getGroupContainer(this);
1050
1044
  let n = e.show;
1051
1045
  return n === void 0 && (n = !0), g("div", {
1052
1046
  style: i
@@ -1077,7 +1071,7 @@ class br {
1077
1071
  i.model.value[e.field] || (i.model.value[e.field] = [{}]);
1078
1072
  let s = e.show;
1079
1073
  s === void 0 && (s = !0);
1080
- const n = w.getListContainer(this), a = w.getListItemContainer(this);
1074
+ const n = M.getListContainer(this), a = M.getListItemContainer(this);
1081
1075
  return g("div", {
1082
1076
  style: r
1083
1077
  }, [s && g(n, {
@@ -1119,7 +1113,7 @@ class br {
1119
1113
  gridColumn: "1 / -1",
1120
1114
  gridAutoColumns: "1fr",
1121
1115
  ...this.grid
1122
- }, r = this, i = h(this.globalNativeFormOverride.props.Form, C((c = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : c.Form) ?? {}), s = h(this.globalNativeFormOverride.slots.Form, C((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
1116
+ }, r = this, i = h(this.globalNativeFormOverride.props.Form, C((c = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : c.Form) ?? {}), s = h(this.globalNativeFormOverride.slots.Form, C((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = M.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
1123
1117
  return g(n, N(i, {
1124
1118
  ref: this.formRef
1125
1119
  }, {
@@ -1145,7 +1139,7 @@ class f {
1145
1139
  }
1146
1140
  }
1147
1141
  u(f, "presets");
1148
- function W({
1142
+ function H({
1149
1143
  parentSchema: t,
1150
1144
  schema: e,
1151
1145
  index: r
@@ -1155,7 +1149,7 @@ function W({
1155
1149
  const vr = {
1156
1150
  ArcoVue: {
1157
1151
  getRuntimeField(t) {
1158
- const e = W(t);
1152
+ const e = H(t);
1159
1153
  return o.isFunction(e) ? {
1160
1154
  field: e()
1161
1155
  } : {
@@ -1212,7 +1206,7 @@ const vr = {
1212
1206
  },
1213
1207
  validateForm(t) {
1214
1208
  return new Promise((e, r) => {
1215
- t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(E(t.runtimeCore.processor.processedModel.value))));
1209
+ t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(F(t.runtimeCore.processor.processedModel.value))));
1216
1210
  });
1217
1211
  },
1218
1212
  clearValidate(t) {
@@ -1222,7 +1216,7 @@ const vr = {
1222
1216
  },
1223
1217
  NutUI: {
1224
1218
  getRuntimeField(t) {
1225
- const e = W(t);
1219
+ const e = H(t);
1226
1220
  return o.isFunction(e) ? {
1227
1221
  prop: e()
1228
1222
  } : {
@@ -1284,7 +1278,7 @@ const vr = {
1284
1278
  valid: i,
1285
1279
  errors: s
1286
1280
  }) => {
1287
- i ? e(t.cleanFallbackFields(E(t.runtimeCore.processor.processedModel.value))) : r(s);
1281
+ i ? e(t.cleanFallbackFields(F(t.runtimeCore.processor.processedModel.value))) : r(s);
1288
1282
  });
1289
1283
  });
1290
1284
  },
@@ -1295,7 +1289,7 @@ const vr = {
1295
1289
  },
1296
1290
  NaiveUI: {
1297
1291
  getRuntimeField(t) {
1298
- const e = W(t);
1292
+ const e = H(t);
1299
1293
  return o.isFunction(e) ? {
1300
1294
  path: e()
1301
1295
  } : {
@@ -1355,7 +1349,7 @@ const vr = {
1355
1349
  },
1356
1350
  validateForm(t) {
1357
1351
  return new Promise((e, r) => {
1358
- t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(E(t.runtimeCore.processor.processedModel.value))));
1352
+ t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(F(t.runtimeCore.processor.processedModel.value))));
1359
1353
  });
1360
1354
  },
1361
1355
  clearValidate(t) {
@@ -1363,7 +1357,7 @@ const vr = {
1363
1357
  (r = (e = t.formRef.value) == null ? void 0 : e.restoreValidation) == null || r.call(e);
1364
1358
  }
1365
1359
  }
1366
- }, M = class M {
1360
+ }, w = class w {
1367
1361
  static getPlaceholderPrefixPresetByComponentName() {
1368
1362
  const e = {
1369
1363
  请选择: ["select", "tree"],
@@ -1376,7 +1370,7 @@ const vr = {
1376
1370
  return r;
1377
1371
  }
1378
1372
  };
1379
- u(M, "schemaPreset", {
1373
+ u(w, "schemaPreset", {
1380
1374
  type: {
1381
1375
  defaultValue: "item"
1382
1376
  },
@@ -1422,19 +1416,19 @@ u(M, "schemaPreset", {
1422
1416
  runtime: {
1423
1417
  default: void 0
1424
1418
  }
1425
- }), u(M, "componentPropsPreset", {
1419
+ }), u(w, "componentPropsPreset", {
1426
1420
  options: {
1427
1421
  defaultValue: []
1428
1422
  }
1429
1423
  }), // 基于基本功能提出基本预设
1430
- u(M, "placeholderPresetByComponentName", M.getPlaceholderPrefixPresetByComponentName());
1431
- let Y = M;
1424
+ u(w, "placeholderPresetByComponentName", w.getPlaceholderPrefixPresetByComponentName());
1425
+ let Y = w;
1432
1426
  const I = {
1433
1427
  ...Y,
1434
1428
  adapters: {
1435
1429
  ...vr
1436
1430
  }
1437
- }, Cr = /* @__PURE__ */ ke({
1431
+ }, Cr = /* @__PURE__ */ Be({
1438
1432
  props: {
1439
1433
  setup: {
1440
1434
  type: Function,
@@ -1447,7 +1441,7 @@ const I = {
1447
1441
  }
1448
1442
  });
1449
1443
  function Ir(t) {
1450
- const e = new He(t);
1444
+ const e = new ke(t);
1451
1445
  return [
1452
1446
  e.setup.bind(e),
1453
1447
  {
@@ -1477,13 +1471,13 @@ function te(t, e) {
1477
1471
  function Or(t) {
1478
1472
  return te(t, "native");
1479
1473
  }
1480
- function Fr(t) {
1474
+ function jr(t) {
1481
1475
  return t.__proform_raw_object = !0, t;
1482
1476
  }
1483
- function jr(t) {
1477
+ function Er(t) {
1484
1478
  return te(t, "onetime");
1485
1479
  }
1486
- function wr(t) {
1480
+ function Mr(t) {
1487
1481
  function e() {
1488
1482
  return t;
1489
1483
  }
@@ -1495,9 +1489,9 @@ function wr(t) {
1495
1489
  export {
1496
1490
  Cr as ProForm,
1497
1491
  Or as markNativeFunction,
1498
- Fr as markNativeObject,
1499
- jr as markOnetimeFunction,
1500
- wr as markStructuredPathParsing,
1492
+ jr as markNativeObject,
1493
+ Er as markOnetimeFunction,
1494
+ Mr as markStructuredPathParsing,
1501
1495
  Ir as useForm,
1502
1496
  Sr as useFormPresetConfigurer,
1503
1497
  te as useModifiers
@@ -24,6 +24,7 @@ export default class Processor {
24
24
  baseDefaultValueFunctionsLength: number;
25
25
  isModelInitialized: boolean;
26
26
  modelTriggerTimer: NodeJS.Timeout;
27
+ reactiveWatchMap: Map<any, any>;
27
28
  constructor(runtimeCore: RuntimeCore);
28
29
  parse<T extends object = any>(data: T[], parentMeta?: AnyObject): void;
29
30
  initSchemas(schemas: AnyObject[]): AnyObject[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",