@harbor-design/proform 1.3.15 → 1.3.16

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 +176 -176
  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 O, isRef as F, watch as v, isReactive as j, toRaw as R, reactive as K, createVNode as b, mergeProps as U, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
4
+ import { ref as z, readonly as _e, nextTick as O, isRef as F, watch as v, isReactive as j, toRaw as R, reactive as Pe, shallowReactive as Le, createVNode as b, mergeProps as U, withDirectives as De, vShow as Ge, createTextVNode as Be, isVNode as He, defineComponent as Ke } from "vue";
5
5
  class o {
6
6
  static typeChecker(e) {
7
7
  return {}.toString.call(e);
@@ -118,10 +118,10 @@ function P(r) {
118
118
  }
119
119
  return t(r);
120
120
  }
121
- function Y(r, e) {
121
+ function X(r, e) {
122
122
  return r.replace(/undefined/g, e);
123
123
  }
124
- class Ke {
124
+ class We {
125
125
  constructor(e) {
126
126
  u(this, "runtimeCore");
127
127
  u(this, "readonlyReactiveModel", z({}));
@@ -134,7 +134,7 @@ class Ke {
134
134
  })), e;
135
135
  }
136
136
  setup(e) {
137
- return this.runtimeCore = e, this.readonlyReactiveModel.value = Pe(e.model.value), Object.assign(this.runtimeCore.native, this.formCustomization.native), Object.assign(this.runtimeCore.grid, this.formCustomization.grid), Object.assign(this.runtimeCore.runtime, this.formCustomization.runtime), this.formCustomization.ui && (this.runtimeCore.ui = this.formCustomization.ui), this.formCustomization;
137
+ return this.runtimeCore = e, this.readonlyReactiveModel.value = _e(e.model.value), Object.assign(this.runtimeCore.native, this.formCustomization.native), Object.assign(this.runtimeCore.grid, this.formCustomization.grid), Object.assign(this.runtimeCore.runtime, this.formCustomization.runtime), this.formCustomization.ui && (this.runtimeCore.ui = this.formCustomization.ui), this.formCustomization;
138
138
  }
139
139
  submit() {
140
140
  var i;
@@ -244,10 +244,10 @@ class Ke {
244
244
  var e;
245
245
  (e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = P(
246
246
  this.runtimeCore.processor.stableModel
247
- ), this.readonlyReactiveModel.value = Pe(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
247
+ ), this.readonlyReactiveModel.value = _e(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
248
248
  }
249
249
  }
250
- class Z {
250
+ class Y {
251
251
  constructor() {
252
252
  u(this, "effects", /* @__PURE__ */ new Set());
253
253
  u(this, "tempClonedEffects", /* @__PURE__ */ new Set());
@@ -266,71 +266,71 @@ class Z {
266
266
  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);
267
267
  }
268
268
  }
269
- 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")(), $ = Q.Symbol, je = Object.prototype, Ye = je.hasOwnProperty, Ze = je.toString, q = $ ? $.toStringTag : void 0;
270
- function Je(r) {
271
- var e = Ye.call(r, q), t = r[q];
269
+ var Xe = typeof global == "object" && global && global.Object === Object && global, Ye = typeof self == "object" && self && self.Object === Object && self, J = Xe || Ye || Function("return this")(), $ = J.Symbol, je = Object.prototype, Ze = je.hasOwnProperty, Je = je.toString, q = $ ? $.toStringTag : void 0;
270
+ function Qe(r) {
271
+ var e = Ze.call(r, q), t = r[q];
272
272
  try {
273
273
  r[q] = void 0;
274
274
  var i = !0;
275
275
  } catch {
276
276
  }
277
- var s = Ze.call(r);
277
+ var s = Je.call(r);
278
278
  return i && (e ? r[q] = t : delete r[q]), s;
279
279
  }
280
- var Qe = Object.prototype, ke = Qe.toString;
281
- function Ae(r) {
282
- return ke.call(r);
280
+ var ke = Object.prototype, Ae = ke.toString;
281
+ function et(r) {
282
+ return Ae.call(r);
283
283
  }
284
- var et = "[object Null]", tt = "[object Undefined]", Ce = $ ? $.toStringTag : void 0;
284
+ var tt = "[object Null]", rt = "[object Undefined]", Ce = $ ? $.toStringTag : void 0;
285
285
  function we(r) {
286
- return r == null ? r === void 0 ? tt : et : Ce && Ce in Object(r) ? Je(r) : Ae(r);
286
+ return r == null ? r === void 0 ? rt : tt : Ce && Ce in Object(r) ? Qe(r) : et(r);
287
287
  }
288
- function rt(r) {
288
+ function it(r) {
289
289
  return r != null && typeof r == "object";
290
290
  }
291
- var it = "[object Symbol]";
292
- function k(r) {
293
- return typeof r == "symbol" || rt(r) && we(r) == it;
291
+ var st = "[object Symbol]";
292
+ function Q(r) {
293
+ return typeof r == "symbol" || it(r) && we(r) == st;
294
294
  }
295
- function st(r, e) {
295
+ function nt(r, e) {
296
296
  for (var t = -1, i = r == null ? 0 : r.length, s = Array(i); ++t < i; )
297
297
  s[t] = e(r[t], t, r);
298
298
  return s;
299
299
  }
300
- var A = Array.isArray, nt = 1 / 0, Ie = $ ? $.prototype : void 0, Se = Ie ? Ie.toString : void 0;
300
+ var k = Array.isArray, ot = 1 / 0, Ie = $ ? $.prototype : void 0, Se = Ie ? Ie.toString : void 0;
301
301
  function Me(r) {
302
302
  if (typeof r == "string")
303
303
  return r;
304
- if (A(r))
305
- return st(r, Me) + "";
306
304
  if (k(r))
305
+ return nt(r, Me) + "";
306
+ if (Q(r))
307
307
  return Se ? Se.call(r) : "";
308
308
  var e = r + "";
309
- return e == "0" && 1 / r == -nt ? "-0" : e;
309
+ return e == "0" && 1 / r == -ot ? "-0" : e;
310
310
  }
311
311
  function G(r) {
312
312
  var e = typeof r;
313
313
  return r != null && (e == "object" || e == "function");
314
314
  }
315
- var ot = "[object AsyncFunction]", at = "[object Function]", lt = "[object GeneratorFunction]", ut = "[object Proxy]";
316
- function ft(r) {
315
+ var at = "[object AsyncFunction]", lt = "[object Function]", ut = "[object GeneratorFunction]", ft = "[object Proxy]";
316
+ function ct(r) {
317
317
  if (!G(r))
318
318
  return !1;
319
319
  var e = we(r);
320
- return e == at || e == lt || e == ot || e == ut;
320
+ return e == lt || e == ut || e == at || e == ft;
321
321
  }
322
- var W = Q["__core-js_shared__"], Oe = function() {
323
- var r = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "");
322
+ var K = J["__core-js_shared__"], Oe = function() {
323
+ var r = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
324
324
  return r ? "Symbol(src)_1." + r : "";
325
325
  }();
326
- function ct(r) {
326
+ function dt(r) {
327
327
  return !!Oe && Oe in r;
328
328
  }
329
- var dt = Function.prototype, pt = dt.toString;
330
- function ht(r) {
329
+ var pt = Function.prototype, ht = pt.toString;
330
+ function mt(r) {
331
331
  if (r != null) {
332
332
  try {
333
- return pt.call(r);
333
+ return ht.call(r);
334
334
  } catch {
335
335
  }
336
336
  try {
@@ -340,34 +340,34 @@ function ht(r) {
340
340
  }
341
341
  return "";
342
342
  }
343
- var mt = /[\\^$.*+?()[\]{}|]/g, bt = /^\[object .+?Constructor\]$/, vt = Function.prototype, gt = Object.prototype, yt = vt.toString, _t = gt.hasOwnProperty, Pt = RegExp(
344
- "^" + yt.call(_t).replace(mt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
343
+ var bt = /[\\^$.*+?()[\]{}|]/g, vt = /^\[object .+?Constructor\]$/, gt = Function.prototype, yt = Object.prototype, _t = gt.toString, Pt = yt.hasOwnProperty, Ct = RegExp(
344
+ "^" + _t.call(Pt).replace(bt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
345
345
  );
346
- function Ct(r) {
347
- if (!G(r) || ct(r))
346
+ function It(r) {
347
+ if (!G(r) || dt(r))
348
348
  return !1;
349
- var e = ft(r) ? Pt : bt;
350
- return e.test(ht(r));
349
+ var e = ct(r) ? Ct : vt;
350
+ return e.test(mt(r));
351
351
  }
352
- function It(r, e) {
352
+ function St(r, e) {
353
353
  return r == null ? void 0 : r[e];
354
354
  }
355
- function ee(r, e) {
356
- var t = It(r, e);
357
- return Ct(t) ? t : void 0;
355
+ function A(r, e) {
356
+ var t = St(r, e);
357
+ return It(t) ? t : void 0;
358
358
  }
359
359
  var Fe = function() {
360
360
  try {
361
- var r = ee(Object, "defineProperty");
361
+ var r = A(Object, "defineProperty");
362
362
  return r({}, "", {}), r;
363
363
  } catch {
364
364
  }
365
- }(), St = 9007199254740991, Ot = /^(?:0|[1-9]\d*)$/;
366
- function Ft(r, e) {
365
+ }(), Ot = 9007199254740991, Ft = /^(?:0|[1-9]\d*)$/;
366
+ function jt(r, e) {
367
367
  var t = typeof r;
368
- return e = e ?? St, !!e && (t == "number" || t != "symbol" && Ot.test(r)) && r > -1 && r % 1 == 0 && r < e;
368
+ return e = e ?? Ot, !!e && (t == "number" || t != "symbol" && Ft.test(r)) && r > -1 && r % 1 == 0 && r < e;
369
369
  }
370
- function jt(r, e, t) {
370
+ function wt(r, e, t) {
371
371
  e == "__proto__" && Fe ? Fe(r, e, {
372
372
  configurable: !0,
373
373
  enumerable: !0,
@@ -378,44 +378,44 @@ function jt(r, e, t) {
378
378
  function xe(r, e) {
379
379
  return r === e || r !== r && e !== e;
380
380
  }
381
- var wt = Object.prototype, Mt = wt.hasOwnProperty;
382
- function xt(r, e, t) {
381
+ var Mt = Object.prototype, xt = Mt.hasOwnProperty;
382
+ function Et(r, e, t) {
383
383
  var i = r[e];
384
- (!(Mt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && jt(r, e, t);
384
+ (!(xt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && wt(r, e, t);
385
385
  }
386
- var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
387
- function $t(r, e) {
388
- if (A(r))
386
+ var Rt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $t = /^\w*$/;
387
+ function Vt(r, e) {
388
+ if (k(r))
389
389
  return !1;
390
390
  var t = typeof r;
391
- return t == "number" || t == "symbol" || t == "boolean" || r == null || k(r) ? !0 : Rt.test(r) || !Et.test(r) || e != null && r in Object(e);
391
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || Q(r) ? !0 : $t.test(r) || !Rt.test(r) || e != null && r in Object(e);
392
392
  }
393
- var T = ee(Object, "create");
394
- function Vt() {
393
+ var T = A(Object, "create");
394
+ function Nt() {
395
395
  this.__data__ = T ? T(null) : {}, this.size = 0;
396
396
  }
397
- function Nt(r) {
397
+ function qt(r) {
398
398
  var e = this.has(r) && delete this.__data__[r];
399
399
  return this.size -= e ? 1 : 0, e;
400
400
  }
401
- var qt = "__lodash_hash_undefined__", Ut = Object.prototype, Tt = Ut.hasOwnProperty;
402
- function zt(r) {
401
+ var Ut = "__lodash_hash_undefined__", Tt = Object.prototype, zt = Tt.hasOwnProperty;
402
+ function Lt(r) {
403
403
  var e = this.__data__;
404
404
  if (T) {
405
405
  var t = e[r];
406
- return t === qt ? void 0 : t;
406
+ return t === Ut ? void 0 : t;
407
407
  }
408
- return Tt.call(e, r) ? e[r] : void 0;
408
+ return zt.call(e, r) ? e[r] : void 0;
409
409
  }
410
- var Lt = Object.prototype, Dt = Lt.hasOwnProperty;
411
- function Gt(r) {
410
+ var Dt = Object.prototype, Gt = Dt.hasOwnProperty;
411
+ function Bt(r) {
412
412
  var e = this.__data__;
413
- return T ? e[r] !== void 0 : Dt.call(e, r);
413
+ return T ? e[r] !== void 0 : Gt.call(e, r);
414
414
  }
415
- var Bt = "__lodash_hash_undefined__";
416
- function Ht(r, e) {
415
+ var Ht = "__lodash_hash_undefined__";
416
+ function Kt(r, e) {
417
417
  var t = this.__data__;
418
- return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ? Bt : e, this;
418
+ return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ? Ht : e, this;
419
419
  }
420
420
  function w(r) {
421
421
  var e = -1, t = r == null ? 0 : r.length;
@@ -424,12 +424,12 @@ function w(r) {
424
424
  this.set(i[0], i[1]);
425
425
  }
426
426
  }
427
- w.prototype.clear = Vt;
428
- w.prototype.delete = Nt;
429
- w.prototype.get = zt;
430
- w.prototype.has = Gt;
431
- w.prototype.set = Ht;
432
- function Kt() {
427
+ w.prototype.clear = Nt;
428
+ w.prototype.delete = qt;
429
+ w.prototype.get = Lt;
430
+ w.prototype.has = Bt;
431
+ w.prototype.set = Kt;
432
+ function Wt() {
433
433
  this.__data__ = [], this.size = 0;
434
434
  }
435
435
  function B(r, e) {
@@ -438,22 +438,22 @@ function B(r, e) {
438
438
  return t;
439
439
  return -1;
440
440
  }
441
- var Wt = Array.prototype, Xt = Wt.splice;
442
- function Yt(r) {
441
+ var Xt = Array.prototype, Yt = Xt.splice;
442
+ function Zt(r) {
443
443
  var e = this.__data__, t = B(e, r);
444
444
  if (t < 0)
445
445
  return !1;
446
446
  var i = e.length - 1;
447
- return t == i ? e.pop() : Xt.call(e, t, 1), --this.size, !0;
447
+ return t == i ? e.pop() : Yt.call(e, t, 1), --this.size, !0;
448
448
  }
449
- function Zt(r) {
449
+ function Jt(r) {
450
450
  var e = this.__data__, t = B(e, r);
451
451
  return t < 0 ? void 0 : e[t][1];
452
452
  }
453
- function Jt(r) {
453
+ function Qt(r) {
454
454
  return B(this.__data__, r) > -1;
455
455
  }
456
- function Qt(r, e) {
456
+ function kt(r, e) {
457
457
  var t = this.__data__, i = B(t, r);
458
458
  return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
459
459
  }
@@ -464,38 +464,38 @@ function V(r) {
464
464
  this.set(i[0], i[1]);
465
465
  }
466
466
  }
467
- V.prototype.clear = Kt;
468
- V.prototype.delete = Yt;
469
- V.prototype.get = Zt;
470
- V.prototype.has = Jt;
471
- V.prototype.set = Qt;
472
- var kt = ee(Q, "Map");
473
- function At() {
467
+ V.prototype.clear = Wt;
468
+ V.prototype.delete = Zt;
469
+ V.prototype.get = Jt;
470
+ V.prototype.has = Qt;
471
+ V.prototype.set = kt;
472
+ var At = A(J, "Map");
473
+ function er() {
474
474
  this.size = 0, this.__data__ = {
475
475
  hash: new w(),
476
- map: new (kt || V)(),
476
+ map: new (At || V)(),
477
477
  string: new w()
478
478
  };
479
479
  }
480
- function er(r) {
480
+ function tr(r) {
481
481
  var e = typeof r;
482
482
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
483
483
  }
484
484
  function H(r, e) {
485
485
  var t = r.__data__;
486
- return er(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
486
+ return tr(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
487
487
  }
488
- function tr(r) {
488
+ function rr(r) {
489
489
  var e = H(this, r).delete(r);
490
490
  return this.size -= e ? 1 : 0, e;
491
491
  }
492
- function rr(r) {
492
+ function ir(r) {
493
493
  return H(this, r).get(r);
494
494
  }
495
- function ir(r) {
495
+ function sr(r) {
496
496
  return H(this, r).has(r);
497
497
  }
498
- function sr(r, e) {
498
+ function nr(r, e) {
499
499
  var t = H(this, r), i = t.size;
500
500
  return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
501
501
  }
@@ -506,15 +506,15 @@ function M(r) {
506
506
  this.set(i[0], i[1]);
507
507
  }
508
508
  }
509
- M.prototype.clear = At;
510
- M.prototype.delete = tr;
511
- M.prototype.get = rr;
512
- M.prototype.has = ir;
513
- M.prototype.set = sr;
514
- var nr = "Expected a function";
515
- function te(r, e) {
509
+ M.prototype.clear = er;
510
+ M.prototype.delete = rr;
511
+ M.prototype.get = ir;
512
+ M.prototype.has = sr;
513
+ M.prototype.set = nr;
514
+ var or = "Expected a function";
515
+ function ee(r, e) {
516
516
  if (typeof r != "function" || e != null && typeof e != "function")
517
- throw new TypeError(nr);
517
+ throw new TypeError(or);
518
518
  var t = function() {
519
519
  var i = arguments, s = e ? e.apply(this, i) : i[0], n = t.cache;
520
520
  if (n.has(s))
@@ -522,46 +522,46 @@ function te(r, e) {
522
522
  var a = r.apply(this, i);
523
523
  return t.cache = n.set(s, a) || n, a;
524
524
  };
525
- return t.cache = new (te.Cache || M)(), t;
525
+ return t.cache = new (ee.Cache || M)(), t;
526
526
  }
527
- te.Cache = M;
528
- var or = 500;
529
- function ar(r) {
530
- var e = te(r, function(i) {
531
- return t.size === or && t.clear(), i;
527
+ ee.Cache = M;
528
+ var ar = 500;
529
+ function lr(r) {
530
+ var e = ee(r, function(i) {
531
+ return t.size === ar && t.clear(), i;
532
532
  }), t = e.cache;
533
533
  return e;
534
534
  }
535
- var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g, fr = ar(function(r) {
535
+ var ur = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, fr = /\\(\\)?/g, cr = lr(function(r) {
536
536
  var e = [];
537
- return r.charCodeAt(0) === 46 && e.push(""), r.replace(lr, function(t, i, s, n) {
538
- e.push(s ? n.replace(ur, "$1") : i || t);
537
+ return r.charCodeAt(0) === 46 && e.push(""), r.replace(ur, function(t, i, s, n) {
538
+ e.push(s ? n.replace(fr, "$1") : i || t);
539
539
  }), e;
540
540
  });
541
- function cr(r) {
541
+ function dr(r) {
542
542
  return r == null ? "" : Me(r);
543
543
  }
544
544
  function Ee(r, e) {
545
- return A(r) ? r : $t(r, e) ? [r] : fr(cr(r));
545
+ return k(r) ? r : Vt(r, e) ? [r] : cr(dr(r));
546
546
  }
547
- var dr = 1 / 0;
547
+ var pr = 1 / 0;
548
548
  function Re(r) {
549
- if (typeof r == "string" || k(r))
549
+ if (typeof r == "string" || Q(r))
550
550
  return r;
551
551
  var e = r + "";
552
- return e == "0" && 1 / r == -dr ? "-0" : e;
552
+ return e == "0" && 1 / r == -pr ? "-0" : e;
553
553
  }
554
- function pr(r, e) {
554
+ function hr(r, e) {
555
555
  e = Ee(e, r);
556
556
  for (var t = 0, i = e.length; r != null && t < i; )
557
557
  r = r[Re(e[t++])];
558
558
  return t && t == i ? r : void 0;
559
559
  }
560
560
  function L(r, e, t) {
561
- var i = r == null ? void 0 : pr(r, e);
561
+ var i = r == null ? void 0 : hr(r, e);
562
562
  return i === void 0 ? t : i;
563
563
  }
564
- function hr(r, e, t, i) {
564
+ function mr(r, e, t, i) {
565
565
  if (!G(r))
566
566
  return r;
567
567
  e = Ee(e, r);
@@ -571,16 +571,16 @@ function hr(r, e, t, i) {
571
571
  return r;
572
572
  if (s != a) {
573
573
  var p = l[f];
574
- d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : Ft(e[s + 1]) ? [] : {});
574
+ d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : jt(e[s + 1]) ? [] : {});
575
575
  }
576
- xt(l, f, d), l = l[f];
576
+ Et(l, f, d), l = l[f];
577
577
  }
578
578
  return r;
579
579
  }
580
580
  function D(r, e, t) {
581
- return r == null ? r : hr(r, e, t);
581
+ return r == null ? r : mr(r, e, t);
582
582
  }
583
- class mr {
583
+ class br {
584
584
  constructor(e) {
585
585
  u(this, "runtimeCore");
586
586
  u(this, "processedSchemas");
@@ -592,8 +592,8 @@ class mr {
592
592
  u(this, "componentPropsPreset", C.componentPropsPreset);
593
593
  u(this, "stableUpdaterProcessProgress");
594
594
  u(this, "stableUpdaterTimes", 0);
595
- u(this, "schemaEffect", new Z());
596
- u(this, "defaultValueEffect", new Z());
595
+ u(this, "schemaEffect", new Y());
596
+ u(this, "defaultValueEffect", new Y());
597
597
  u(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
598
598
  u(this, "baseDefaultValueFunctionsLength");
599
599
  u(this, "isModelInitialized", !0);
@@ -774,13 +774,13 @@ class mr {
774
774
  }
775
775
  promiseFieldParser(e, t, i, s) {
776
776
  o.isPromise(e) ? e.then((n) => {
777
- o.isString(n) && (n = Y(n, "")), i && o.isObject(n) && !o.isNativeObject(n) ? this.objectParser({
777
+ o.isString(n) && (n = X(n, "")), i && o.isObject(n) && !o.isNativeObject(n) ? this.objectParser({
778
778
  data: n,
779
779
  updater: t,
780
780
  index: s.rootIndex,
781
781
  parentMeta: s.parentMeta
782
782
  }) : t(n);
783
- }) : (o.isString(e) && (e = Y(e, "")), i && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
783
+ }) : (o.isString(e) && (e = X(e, "")), i && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
784
784
  data: e,
785
785
  updater: t,
786
786
  index: s.rootIndex,
@@ -887,7 +887,7 @@ class x {
887
887
  return c.presets.uiPresets[e ?? c.presets.ui].container.ListItem;
888
888
  }
889
889
  }
890
- class br {
890
+ class vr {
891
891
  constructor(e) {
892
892
  this.ui = e;
893
893
  }
@@ -921,10 +921,10 @@ class br {
921
921
  return (t == null ? void 0 : t.clearValidate(e)) ?? (i == null ? void 0 : i.clearValidate(e));
922
922
  }
923
923
  }
924
- function vr(r) {
925
- return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Be(r);
924
+ function gr(r) {
925
+ return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !He(r);
926
926
  }
927
- class gr {
927
+ class yr {
928
928
  constructor(e) {
929
929
  u(this, "schemas", z([]));
930
930
  u(this, "model", z({}));
@@ -934,11 +934,11 @@ class gr {
934
934
  list: this.runtimeListProcessor.bind(this)
935
935
  });
936
936
  u(this, "formRef", z(null));
937
- u(this, "hydrateEffect", new Z());
938
- u(this, "native", K({}));
937
+ u(this, "hydrateEffect", new Y());
938
+ u(this, "native", Pe({}));
939
939
  u(this, "grid", {});
940
940
  u(this, "runtime", {});
941
- u(this, "globalNativeFormOverride", K({
941
+ u(this, "globalNativeFormOverride", Pe({
942
942
  props: {
943
943
  Form: {},
944
944
  FormItem: {}
@@ -948,10 +948,10 @@ class gr {
948
948
  FormItem: {}
949
949
  }
950
950
  }));
951
- u(this, "shared", K({}));
952
- this.setup = e, this.processor = new mr(this);
951
+ u(this, "shared", Le({}));
952
+ this.setup = e, this.processor = new br(this);
953
953
  const t = this.setup(this);
954
- if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new br(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), F(t.schemas))
954
+ if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new vr(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), F(t.schemas))
955
955
  v(
956
956
  // @ts-expect-error
957
957
  () => t.schemas.value,
@@ -1013,16 +1013,16 @@ class gr {
1013
1013
  };
1014
1014
  }
1015
1015
  runtimeItemProcessor(e, t, i = this.model.value, s) {
1016
- var ie, se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, be, ve, ge, ye;
1016
+ var re, ie, se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, be, ve, ge;
1017
1017
  const n = R(e.component);
1018
1018
  if (!n)
1019
1019
  return;
1020
- (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);
1021
- 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 = {
1020
+ (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);
1021
+ const a = h(P((ce = (fe = this.native) == null ? void 0 : fe.slots) == null ? void 0 : ce.FormItem) ?? {}, (pe = (de = e.native) == null ? void 0 : de.slots) == null ? void 0 : pe.FormItem), l = {
1022
1022
  display: "grid",
1023
1023
  gridColumn: "1 / -1",
1024
1024
  ...e.grid
1025
- }, f = h(P((be = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : be.FormItem) ?? {}, (ge = (ve = e.native) == null ? void 0 : ve.props) == null ? void 0 : ge.FormItem), d = this.runtimeAdapter.getRuntimeField({
1025
+ }, f = h(P((me = (he = this.native) == null ? void 0 : he.props) == null ? void 0 : me.FormItem) ?? {}, (ve = (be = e.native) == null ? void 0 : be.props) == null ? void 0 : ve.FormItem), d = this.runtimeAdapter.getRuntimeField({
1026
1026
  schema: e,
1027
1027
  parentSchema: s,
1028
1028
  index: t
@@ -1030,11 +1030,11 @@ class gr {
1030
1030
  let I = e.placeholder, _ = e.show;
1031
1031
  _ === void 0 && (_ = !0);
1032
1032
  let g = e.label ?? "", S;
1033
- 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) {
1033
+ if (e.runtime ? S = e.runtime : S = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(S) && (g = X((ge = S == null ? void 0 : S.customizeListItemLabel) == null ? void 0 : ge.call(S, e.label ?? "", t + 1), "")), !I) {
1034
1034
  let N = "请输入";
1035
1035
  o.isUndefined(p) ? I = `${N}${g}` : /* @ts-expect-error */ y[p.toLowerCase()] ? (N = // @ts-expect-error
1036
- y[p.toLowerCase()], I = `${N}${g}`) : (Object.keys(y).forEach((_e) => {
1037
- p.toLowerCase().includes(_e.toLowerCase()) && (N = y[_e]);
1036
+ y[p.toLowerCase()], I = `${N}${g}`) : (Object.keys(y).forEach((ye) => {
1037
+ p.toLowerCase().includes(ye.toLowerCase()) && (N = y[ye]);
1038
1038
  }), I = `${N}${g}`);
1039
1039
  }
1040
1040
  const $e = this.runtimeAdapter.getRuntimeRequired({
@@ -1077,7 +1077,7 @@ class gr {
1077
1077
  style: i
1078
1078
  }, [n && b(s, {
1079
1079
  schema: e
1080
- }, vr(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
1080
+ }, gr(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
1081
1081
  default: () => [t]
1082
1082
  })]);
1083
1083
  }
@@ -1118,16 +1118,16 @@ class gr {
1118
1118
  } = {}) {
1119
1119
  var m;
1120
1120
  const p = d ?? b("button", null, null);
1121
- return Le(b(p, {
1121
+ return De(b(p, {
1122
1122
  onClick: () => i.deleteListItem(e, f)
1123
- }, null), [[De, ((m = i.model.value[e.field]) == null ? void 0 : m.length) > 1]]);
1123
+ }, null), [[Ge, ((m = i.model.value[e.field]) == null ? void 0 : m.length) > 1]]);
1124
1124
  }
1125
1125
  }));
1126
1126
  },
1127
1127
  add({
1128
1128
  container: l
1129
1129
  } = {}) {
1130
- const f = l ?? b("button", null, [Ge("添加")]);
1130
+ const f = l ?? b("button", null, [Be("添加")]);
1131
1131
  return b(f, {
1132
1132
  onClick: () => i.addListItem(e)
1133
1133
  }, null);
@@ -1170,17 +1170,17 @@ class c {
1170
1170
  }
1171
1171
  }
1172
1172
  u(c, "presets");
1173
- function X({
1173
+ function W({
1174
1174
  parentSchema: r,
1175
1175
  schema: e,
1176
1176
  index: t
1177
1177
  }) {
1178
1178
  return r ? `${r.field}.${t}.${e.field}` : e.field;
1179
1179
  }
1180
- const yr = {
1180
+ const _r = {
1181
1181
  ArcoVue: {
1182
1182
  getRuntimeField(r) {
1183
- const e = X(r);
1183
+ const e = W(r);
1184
1184
  return o.isFunction(e) ? {
1185
1185
  field: e()
1186
1186
  } : {
@@ -1247,7 +1247,7 @@ const yr = {
1247
1247
  },
1248
1248
  NutUI: {
1249
1249
  getRuntimeField(r) {
1250
- const e = X(r);
1250
+ const e = W(r);
1251
1251
  return o.isFunction(e) ? {
1252
1252
  prop: e()
1253
1253
  } : {
@@ -1320,7 +1320,7 @@ const yr = {
1320
1320
  },
1321
1321
  NaiveUI: {
1322
1322
  getRuntimeField(r) {
1323
- const e = X(r);
1323
+ const e = W(r);
1324
1324
  return o.isFunction(e) ? {
1325
1325
  path: e()
1326
1326
  } : {
@@ -1453,13 +1453,13 @@ u(E, "schemaPreset", {
1453
1453
  }
1454
1454
  }), // 基于基本功能提出基本预设
1455
1455
  u(E, "placeholderPresetByComponentName", E.getPlaceholderPrefixPresetByComponentName());
1456
- let J = E;
1456
+ let Z = E;
1457
1457
  const C = {
1458
- ...J,
1458
+ ...Z,
1459
1459
  adapters: {
1460
- ...yr
1460
+ ..._r
1461
1461
  }
1462
- }, Cr = /* @__PURE__ */ He({
1462
+ }, Ir = /* @__PURE__ */ Ke({
1463
1463
  props: {
1464
1464
  setup: {
1465
1465
  type: Function,
@@ -1467,12 +1467,12 @@ const C = {
1467
1467
  }
1468
1468
  },
1469
1469
  setup(r) {
1470
- const e = new gr(r.setup);
1470
+ const e = new yr(r.setup);
1471
1471
  return () => e.exec();
1472
1472
  }
1473
1473
  });
1474
- function Ir(r) {
1475
- const e = new Ke(r);
1474
+ function Sr(r) {
1475
+ const e = new We(r);
1476
1476
  return [
1477
1477
  e.setup.bind(e),
1478
1478
  {
@@ -1484,10 +1484,10 @@ function Ir(r) {
1484
1484
  }
1485
1485
  ];
1486
1486
  }
1487
- function Sr(r) {
1487
+ function Or(r) {
1488
1488
  c.presets = r;
1489
1489
  }
1490
- function re(r, e) {
1490
+ function te(r, e) {
1491
1491
  return e === "native" && Object.defineProperty(r, "name", {
1492
1492
  value: `__proform_raw_${r.name}`,
1493
1493
  writable: !0
@@ -1499,31 +1499,31 @@ function re(r, e) {
1499
1499
  writable: !0
1500
1500
  }), r;
1501
1501
  }
1502
- function Or(r) {
1503
- return re(r, "native");
1504
- }
1505
1502
  function Fr(r) {
1506
- return r.__proform_raw_object = !0, r;
1503
+ return te(r, "native");
1507
1504
  }
1508
1505
  function jr(r) {
1509
- return re(r, "onetime");
1506
+ return r.__proform_raw_object = !0, r;
1510
1507
  }
1511
1508
  function wr(r) {
1509
+ return te(r, "onetime");
1510
+ }
1511
+ function Mr(r) {
1512
1512
  function e() {
1513
1513
  return r;
1514
1514
  }
1515
- return re(
1515
+ return te(
1516
1516
  e,
1517
1517
  "structured_path_parsing_mark"
1518
1518
  );
1519
1519
  }
1520
1520
  export {
1521
- Cr as ProForm,
1522
- Or as markNativeFunction,
1523
- Fr as markNativeObject,
1524
- jr as markOnetimeFunction,
1525
- wr as markStructuredPathParsing,
1526
- Ir as useForm,
1527
- Sr as useFormPresetConfigurer,
1528
- re as useModifiers
1521
+ Ir as ProForm,
1522
+ Fr as markNativeFunction,
1523
+ jr as markNativeObject,
1524
+ wr as markOnetimeFunction,
1525
+ Mr as markStructuredPathParsing,
1526
+ Sr as useForm,
1527
+ Or as useFormPresetConfigurer,
1528
+ te as useModifiers
1529
1529
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",