@harbor-design/proform 1.3.16 → 1.3.17
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 +169 -169
- 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
|
|
4
|
+
import { ref as z, readonly as X, nextTick as O, isRef as F, watch as v, isReactive as j, toRaw as R, reactive as Pe, createVNode as b, mergeProps as U, 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);
|
|
@@ -118,10 +118,10 @@ function P(r) {
|
|
|
118
118
|
}
|
|
119
119
|
return t(r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Y(r, e) {
|
|
122
122
|
return r.replace(/undefined/g, e);
|
|
123
123
|
}
|
|
124
|
-
class
|
|
124
|
+
class Ke {
|
|
125
125
|
constructor(e) {
|
|
126
126
|
u(this, "runtimeCore");
|
|
127
127
|
u(this, "readonlyReactiveModel", z({}));
|
|
@@ -134,7 +134,7 @@ class We {
|
|
|
134
134
|
})), e;
|
|
135
135
|
}
|
|
136
136
|
setup(e) {
|
|
137
|
-
return this.runtimeCore = e, this.readonlyReactiveModel.value =
|
|
137
|
+
return this.runtimeCore = e, this.readonlyReactiveModel.value = X(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 We {
|
|
|
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 =
|
|
247
|
+
), this.readonlyReactiveModel.value = X(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class Z {
|
|
251
251
|
constructor() {
|
|
252
252
|
u(this, "effects", /* @__PURE__ */ new Set());
|
|
253
253
|
u(this, "tempClonedEffects", /* @__PURE__ */ new Set());
|
|
@@ -266,71 +266,71 @@ class Y {
|
|
|
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
|
|
270
|
-
function
|
|
271
|
-
var e =
|
|
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];
|
|
272
272
|
try {
|
|
273
273
|
r[q] = void 0;
|
|
274
274
|
var i = !0;
|
|
275
275
|
} catch {
|
|
276
276
|
}
|
|
277
|
-
var s =
|
|
277
|
+
var s = Ze.call(r);
|
|
278
278
|
return i && (e ? r[q] = t : delete r[q]), s;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var Qe = Object.prototype, ke = Qe.toString;
|
|
281
|
+
function Ae(r) {
|
|
282
|
+
return ke.call(r);
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var et = "[object Null]", tt = "[object Undefined]", Ce = $ ? $.toStringTag : void 0;
|
|
285
285
|
function we(r) {
|
|
286
|
-
return r == null ? r === void 0 ?
|
|
286
|
+
return r == null ? r === void 0 ? tt : et : Ce && Ce in Object(r) ? Je(r) : Ae(r);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function rt(r) {
|
|
289
289
|
return r != null && typeof r == "object";
|
|
290
290
|
}
|
|
291
|
-
var
|
|
292
|
-
function
|
|
293
|
-
return typeof r == "symbol" ||
|
|
291
|
+
var it = "[object Symbol]";
|
|
292
|
+
function k(r) {
|
|
293
|
+
return typeof r == "symbol" || rt(r) && we(r) == it;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function st(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
|
|
300
|
+
var A = Array.isArray, nt = 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) + "";
|
|
304
306
|
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 == -
|
|
309
|
+
return e == "0" && 1 / r == -nt ? "-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
|
|
316
|
-
function
|
|
315
|
+
var ot = "[object AsyncFunction]", at = "[object Function]", lt = "[object GeneratorFunction]", ut = "[object Proxy]";
|
|
316
|
+
function ft(r) {
|
|
317
317
|
if (!G(r))
|
|
318
318
|
return !1;
|
|
319
319
|
var e = we(r);
|
|
320
|
-
return e ==
|
|
320
|
+
return e == at || e == lt || e == ot || e == ut;
|
|
321
321
|
}
|
|
322
|
-
var K =
|
|
322
|
+
var K = Q["__core-js_shared__"], Oe = function() {
|
|
323
323
|
var r = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
324
324
|
return r ? "Symbol(src)_1." + r : "";
|
|
325
325
|
}();
|
|
326
|
-
function
|
|
326
|
+
function ct(r) {
|
|
327
327
|
return !!Oe && Oe in r;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
329
|
+
var dt = Function.prototype, pt = dt.toString;
|
|
330
|
+
function ht(r) {
|
|
331
331
|
if (r != null) {
|
|
332
332
|
try {
|
|
333
|
-
return
|
|
333
|
+
return pt.call(r);
|
|
334
334
|
} catch {
|
|
335
335
|
}
|
|
336
336
|
try {
|
|
@@ -340,34 +340,34 @@ function mt(r) {
|
|
|
340
340
|
}
|
|
341
341
|
return "";
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
"^" +
|
|
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.*?") + "$"
|
|
345
345
|
);
|
|
346
|
-
function
|
|
347
|
-
if (!G(r) ||
|
|
346
|
+
function Ct(r) {
|
|
347
|
+
if (!G(r) || ct(r))
|
|
348
348
|
return !1;
|
|
349
|
-
var e =
|
|
350
|
-
return e.test(
|
|
349
|
+
var e = ft(r) ? Pt : bt;
|
|
350
|
+
return e.test(ht(r));
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function It(r, e) {
|
|
353
353
|
return r == null ? void 0 : r[e];
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
var t =
|
|
357
|
-
return
|
|
355
|
+
function ee(r, e) {
|
|
356
|
+
var t = It(r, e);
|
|
357
|
+
return Ct(t) ? t : void 0;
|
|
358
358
|
}
|
|
359
359
|
var Fe = function() {
|
|
360
360
|
try {
|
|
361
|
-
var r =
|
|
361
|
+
var r = ee(Object, "defineProperty");
|
|
362
362
|
return r({}, "", {}), r;
|
|
363
363
|
} catch {
|
|
364
364
|
}
|
|
365
|
-
}(),
|
|
366
|
-
function
|
|
365
|
+
}(), St = 9007199254740991, Ot = /^(?:0|[1-9]\d*)$/;
|
|
366
|
+
function Ft(r, e) {
|
|
367
367
|
var t = typeof r;
|
|
368
|
-
return e = e ??
|
|
368
|
+
return e = e ?? St, !!e && (t == "number" || t != "symbol" && Ot.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function jt(r, e, t) {
|
|
371
371
|
e == "__proto__" && Fe ? Fe(r, e, {
|
|
372
372
|
configurable: !0,
|
|
373
373
|
enumerable: !0,
|
|
@@ -378,44 +378,44 @@ function wt(r, e, t) {
|
|
|
378
378
|
function xe(r, e) {
|
|
379
379
|
return r === e || r !== r && e !== e;
|
|
380
380
|
}
|
|
381
|
-
var
|
|
382
|
-
function
|
|
381
|
+
var wt = Object.prototype, Mt = wt.hasOwnProperty;
|
|
382
|
+
function xt(r, e, t) {
|
|
383
383
|
var i = r[e];
|
|
384
|
-
(!(
|
|
384
|
+
(!(Mt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && jt(r, e, t);
|
|
385
385
|
}
|
|
386
|
-
var
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
386
|
+
var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
|
|
387
|
+
function $t(r, e) {
|
|
388
|
+
if (A(r))
|
|
389
389
|
return !1;
|
|
390
390
|
var t = typeof r;
|
|
391
|
-
return t == "number" || t == "symbol" || t == "boolean" || r == null ||
|
|
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);
|
|
392
392
|
}
|
|
393
|
-
var T =
|
|
394
|
-
function
|
|
393
|
+
var T = ee(Object, "create");
|
|
394
|
+
function Vt() {
|
|
395
395
|
this.__data__ = T ? T(null) : {}, this.size = 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Nt(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
|
|
402
|
-
function
|
|
401
|
+
var qt = "__lodash_hash_undefined__", Ut = Object.prototype, Tt = Ut.hasOwnProperty;
|
|
402
|
+
function zt(r) {
|
|
403
403
|
var e = this.__data__;
|
|
404
404
|
if (T) {
|
|
405
405
|
var t = e[r];
|
|
406
|
-
return t ===
|
|
406
|
+
return t === qt ? void 0 : t;
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return Tt.call(e, r) ? e[r] : void 0;
|
|
409
409
|
}
|
|
410
|
-
var
|
|
411
|
-
function
|
|
410
|
+
var Lt = Object.prototype, Dt = Lt.hasOwnProperty;
|
|
411
|
+
function Gt(r) {
|
|
412
412
|
var e = this.__data__;
|
|
413
|
-
return T ? e[r] !== void 0 :
|
|
413
|
+
return T ? e[r] !== void 0 : Dt.call(e, r);
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
function
|
|
415
|
+
var Bt = "__lodash_hash_undefined__";
|
|
416
|
+
function Ht(r, e) {
|
|
417
417
|
var t = this.__data__;
|
|
418
|
-
return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ?
|
|
418
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = T && e === void 0 ? Bt : 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 =
|
|
428
|
-
w.prototype.delete =
|
|
429
|
-
w.prototype.get =
|
|
430
|
-
w.prototype.has =
|
|
431
|
-
w.prototype.set =
|
|
432
|
-
function
|
|
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() {
|
|
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
|
|
442
|
-
function
|
|
441
|
+
var Wt = Array.prototype, Xt = Wt.splice;
|
|
442
|
+
function Yt(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() :
|
|
447
|
+
return t == i ? e.pop() : Xt.call(e, t, 1), --this.size, !0;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Zt(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
|
|
453
|
+
function Jt(r) {
|
|
454
454
|
return B(this.__data__, r) > -1;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Qt(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 =
|
|
468
|
-
V.prototype.delete =
|
|
469
|
-
V.prototype.get =
|
|
470
|
-
V.prototype.has =
|
|
471
|
-
V.prototype.set =
|
|
472
|
-
var
|
|
473
|
-
function
|
|
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() {
|
|
474
474
|
this.size = 0, this.__data__ = {
|
|
475
475
|
hash: new w(),
|
|
476
|
-
map: new (
|
|
476
|
+
map: new (kt || V)(),
|
|
477
477
|
string: new w()
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function er(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
|
|
486
|
+
return er(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function tr(r) {
|
|
489
489
|
var e = H(this, r).delete(r);
|
|
490
490
|
return this.size -= e ? 1 : 0, e;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function rr(r) {
|
|
493
493
|
return H(this, r).get(r);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function ir(r) {
|
|
496
496
|
return H(this, r).has(r);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function sr(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 =
|
|
510
|
-
M.prototype.delete =
|
|
511
|
-
M.prototype.get =
|
|
512
|
-
M.prototype.has =
|
|
513
|
-
M.prototype.set =
|
|
514
|
-
var
|
|
515
|
-
function
|
|
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) {
|
|
516
516
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
517
|
-
throw new TypeError(
|
|
517
|
+
throw new TypeError(nr);
|
|
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 ee(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 (
|
|
525
|
+
return t.cache = new (te.Cache || M)(), t;
|
|
526
526
|
}
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
var e =
|
|
531
|
-
return t.size ===
|
|
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;
|
|
532
532
|
}), t = e.cache;
|
|
533
533
|
return e;
|
|
534
534
|
}
|
|
535
|
-
var
|
|
535
|
+
var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g, fr = ar(function(r) {
|
|
536
536
|
var e = [];
|
|
537
|
-
return r.charCodeAt(0) === 46 && e.push(""), r.replace(
|
|
538
|
-
e.push(s ? n.replace(
|
|
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);
|
|
539
539
|
}), e;
|
|
540
540
|
});
|
|
541
|
-
function
|
|
541
|
+
function cr(r) {
|
|
542
542
|
return r == null ? "" : Me(r);
|
|
543
543
|
}
|
|
544
544
|
function Ee(r, e) {
|
|
545
|
-
return
|
|
545
|
+
return A(r) ? r : $t(r, e) ? [r] : fr(cr(r));
|
|
546
546
|
}
|
|
547
|
-
var
|
|
547
|
+
var dr = 1 / 0;
|
|
548
548
|
function Re(r) {
|
|
549
|
-
if (typeof r == "string" ||
|
|
549
|
+
if (typeof r == "string" || k(r))
|
|
550
550
|
return r;
|
|
551
551
|
var e = r + "";
|
|
552
|
-
return e == "0" && 1 / r == -
|
|
552
|
+
return e == "0" && 1 / r == -dr ? "-0" : e;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function pr(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 :
|
|
561
|
+
var i = r == null ? void 0 : pr(r, e);
|
|
562
562
|
return i === void 0 ? t : i;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function hr(r, e, t, i) {
|
|
565
565
|
if (!G(r))
|
|
566
566
|
return r;
|
|
567
567
|
e = Ee(e, r);
|
|
@@ -571,16 +571,16 @@ function mr(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 :
|
|
574
|
+
d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : Ft(e[s + 1]) ? [] : {});
|
|
575
575
|
}
|
|
576
|
-
|
|
576
|
+
xt(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 :
|
|
581
|
+
return r == null ? r : hr(r, e, t);
|
|
582
582
|
}
|
|
583
|
-
class
|
|
583
|
+
class mr {
|
|
584
584
|
constructor(e) {
|
|
585
585
|
u(this, "runtimeCore");
|
|
586
586
|
u(this, "processedSchemas");
|
|
@@ -592,8 +592,8 @@ class br {
|
|
|
592
592
|
u(this, "componentPropsPreset", C.componentPropsPreset);
|
|
593
593
|
u(this, "stableUpdaterProcessProgress");
|
|
594
594
|
u(this, "stableUpdaterTimes", 0);
|
|
595
|
-
u(this, "schemaEffect", new
|
|
596
|
-
u(this, "defaultValueEffect", new
|
|
595
|
+
u(this, "schemaEffect", new Z());
|
|
596
|
+
u(this, "defaultValueEffect", new Z());
|
|
597
597
|
u(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
|
|
598
598
|
u(this, "baseDefaultValueFunctionsLength");
|
|
599
599
|
u(this, "isModelInitialized", !0);
|
|
@@ -774,13 +774,13 @@ class br {
|
|
|
774
774
|
}
|
|
775
775
|
promiseFieldParser(e, t, i, s) {
|
|
776
776
|
o.isPromise(e) ? e.then((n) => {
|
|
777
|
-
o.isString(n) && (n =
|
|
777
|
+
o.isString(n) && (n = Y(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 =
|
|
783
|
+
}) : (o.isString(e) && (e = Y(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
|
|
890
|
+
class br {
|
|
891
891
|
constructor(e) {
|
|
892
892
|
this.ui = e;
|
|
893
893
|
}
|
|
@@ -921,10 +921,10 @@ class vr {
|
|
|
921
921
|
return (t == null ? void 0 : t.clearValidate(e)) ?? (i == null ? void 0 : i.clearValidate(e));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !
|
|
924
|
+
function vr(r) {
|
|
925
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Be(r);
|
|
926
926
|
}
|
|
927
|
-
class
|
|
927
|
+
class gr {
|
|
928
928
|
constructor(e) {
|
|
929
929
|
u(this, "schemas", z([]));
|
|
930
930
|
u(this, "model", z({}));
|
|
@@ -934,7 +934,7 @@ class yr {
|
|
|
934
934
|
list: this.runtimeListProcessor.bind(this)
|
|
935
935
|
});
|
|
936
936
|
u(this, "formRef", z(null));
|
|
937
|
-
u(this, "hydrateEffect", new
|
|
937
|
+
u(this, "hydrateEffect", new Z());
|
|
938
938
|
u(this, "native", Pe({}));
|
|
939
939
|
u(this, "grid", {});
|
|
940
940
|
u(this, "runtime", {});
|
|
@@ -948,10 +948,10 @@ class yr {
|
|
|
948
948
|
FormItem: {}
|
|
949
949
|
}
|
|
950
950
|
}));
|
|
951
|
-
u(this, "shared",
|
|
952
|
-
this.setup = e, this.processor = new
|
|
951
|
+
u(this, "shared", X({}));
|
|
952
|
+
this.setup = e, this.processor = new mr(this);
|
|
953
953
|
const t = this.setup(this);
|
|
954
|
-
if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new
|
|
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))
|
|
955
955
|
v(
|
|
956
956
|
// @ts-expect-error
|
|
957
957
|
() => t.schemas.value,
|
|
@@ -1013,16 +1013,16 @@ class yr {
|
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
1015
|
runtimeItemProcessor(e, t, i = this.model.value, s) {
|
|
1016
|
-
var
|
|
1016
|
+
var ie, se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, be, ve, ge, ye;
|
|
1017
1017
|
const n = R(e.component);
|
|
1018
1018
|
if (!n)
|
|
1019
1019
|
return;
|
|
1020
|
-
(
|
|
1021
|
-
const a = h(P((
|
|
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 = {
|
|
1022
1022
|
display: "grid",
|
|
1023
1023
|
gridColumn: "1 / -1",
|
|
1024
1024
|
...e.grid
|
|
1025
|
-
}, f = h(P((
|
|
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({
|
|
1026
1026
|
schema: e,
|
|
1027
1027
|
parentSchema: s,
|
|
1028
1028
|
index: t
|
|
@@ -1030,11 +1030,11 @@ class yr {
|
|
|
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 =
|
|
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) {
|
|
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((
|
|
1037
|
-
p.toLowerCase().includes(
|
|
1036
|
+
y[p.toLowerCase()], I = `${N}${g}`) : (Object.keys(y).forEach((_e) => {
|
|
1037
|
+
p.toLowerCase().includes(_e.toLowerCase()) && (N = y[_e]);
|
|
1038
1038
|
}), I = `${N}${g}`);
|
|
1039
1039
|
}
|
|
1040
1040
|
const $e = this.runtimeAdapter.getRuntimeRequired({
|
|
@@ -1077,7 +1077,7 @@ class yr {
|
|
|
1077
1077
|
style: i
|
|
1078
1078
|
}, [n && b(s, {
|
|
1079
1079
|
schema: e
|
|
1080
|
-
},
|
|
1080
|
+
}, vr(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
|
|
1081
1081
|
default: () => [t]
|
|
1082
1082
|
})]);
|
|
1083
1083
|
}
|
|
@@ -1118,16 +1118,16 @@ class yr {
|
|
|
1118
1118
|
} = {}) {
|
|
1119
1119
|
var m;
|
|
1120
1120
|
const p = d ?? b("button", null, null);
|
|
1121
|
-
return
|
|
1121
|
+
return Le(b(p, {
|
|
1122
1122
|
onClick: () => i.deleteListItem(e, f)
|
|
1123
|
-
}, null), [[
|
|
1123
|
+
}, null), [[De, ((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, [
|
|
1130
|
+
const f = l ?? b("button", null, [Ge("添加")]);
|
|
1131
1131
|
return b(f, {
|
|
1132
1132
|
onClick: () => i.addListItem(e)
|
|
1133
1133
|
}, null);
|
|
@@ -1177,7 +1177,7 @@ function W({
|
|
|
1177
1177
|
}) {
|
|
1178
1178
|
return r ? `${r.field}.${t}.${e.field}` : e.field;
|
|
1179
1179
|
}
|
|
1180
|
-
const
|
|
1180
|
+
const yr = {
|
|
1181
1181
|
ArcoVue: {
|
|
1182
1182
|
getRuntimeField(r) {
|
|
1183
1183
|
const e = W(r);
|
|
@@ -1453,13 +1453,13 @@ u(E, "schemaPreset", {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
}), // 基于基本功能提出基本预设
|
|
1455
1455
|
u(E, "placeholderPresetByComponentName", E.getPlaceholderPrefixPresetByComponentName());
|
|
1456
|
-
let
|
|
1456
|
+
let J = E;
|
|
1457
1457
|
const C = {
|
|
1458
|
-
...
|
|
1458
|
+
...J,
|
|
1459
1459
|
adapters: {
|
|
1460
|
-
...
|
|
1460
|
+
...yr
|
|
1461
1461
|
}
|
|
1462
|
-
},
|
|
1462
|
+
}, Cr = /* @__PURE__ */ He({
|
|
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
|
|
1470
|
+
const e = new gr(r.setup);
|
|
1471
1471
|
return () => e.exec();
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
1474
|
-
function
|
|
1475
|
-
const e = new
|
|
1474
|
+
function Ir(r) {
|
|
1475
|
+
const e = new Ke(r);
|
|
1476
1476
|
return [
|
|
1477
1477
|
e.setup.bind(e),
|
|
1478
1478
|
{
|
|
@@ -1484,10 +1484,10 @@ function Sr(r) {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
];
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Sr(r) {
|
|
1488
1488
|
c.presets = r;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function re(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 te(r, e) {
|
|
|
1499
1499
|
writable: !0
|
|
1500
1500
|
}), r;
|
|
1501
1501
|
}
|
|
1502
|
+
function Or(r) {
|
|
1503
|
+
return re(r, "native");
|
|
1504
|
+
}
|
|
1502
1505
|
function Fr(r) {
|
|
1503
|
-
return
|
|
1506
|
+
return r.__proform_raw_object = !0, r;
|
|
1504
1507
|
}
|
|
1505
1508
|
function jr(r) {
|
|
1506
|
-
return r
|
|
1509
|
+
return re(r, "onetime");
|
|
1507
1510
|
}
|
|
1508
1511
|
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
|
|
1515
|
+
return re(
|
|
1516
1516
|
e,
|
|
1517
1517
|
"structured_path_parsing_mark"
|
|
1518
1518
|
);
|
|
1519
1519
|
}
|
|
1520
1520
|
export {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
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
|
|
1529
1529
|
};
|