@harbor-design/proform 1.3.27 → 1.3.28
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,43 +1,43 @@
|
|
|
1
1
|
var Xt = Object.defineProperty;
|
|
2
2
|
var Zt = (t, e, r) => e in t ? Xt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var f = (t, e, r) => (Zt(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { ref as
|
|
5
|
-
var vt = typeof global == "object" && global && global.Object === Object && global, rr = typeof self == "object" && self && self.Object === Object && self,
|
|
4
|
+
import { ref as ee, readonly as Ye, nextTick as M, isRef as Z, watch as $, isReactive as J, toRaw as q, reactive as ae, createVNode as _, mergeProps as Y, withDirectives as Jt, vShow as Qt, createTextVNode as kt, isVNode as er, defineComponent as tr } from "vue";
|
|
5
|
+
var vt = typeof global == "object" && global && global.Object === Object && global, rr = typeof self == "object" && self && self.Object === Object && self, T = vt || rr || Function("return this")(), x = T.Symbol, _t = Object.prototype, nr = _t.hasOwnProperty, ir = _t.toString, W = x ? x.toStringTag : void 0;
|
|
6
6
|
function sr(t) {
|
|
7
|
-
var e = nr.call(t,
|
|
7
|
+
var e = nr.call(t, W), r = t[W];
|
|
8
8
|
try {
|
|
9
|
-
t[
|
|
9
|
+
t[W] = void 0;
|
|
10
10
|
var n = !0;
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
var i = ir.call(t);
|
|
14
|
-
return n && (e ? t[
|
|
14
|
+
return n && (e ? t[W] = r : delete t[W]), i;
|
|
15
15
|
}
|
|
16
16
|
var or = Object.prototype, ar = or.toString;
|
|
17
17
|
function ur(t) {
|
|
18
18
|
return ar.call(t);
|
|
19
19
|
}
|
|
20
20
|
var lr = "[object Null]", cr = "[object Undefined]", Xe = x ? x.toStringTag : void 0;
|
|
21
|
-
function
|
|
21
|
+
function D(t) {
|
|
22
22
|
return t == null ? t === void 0 ? cr : lr : Xe && Xe in Object(t) ? sr(t) : ur(t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function B(t) {
|
|
25
25
|
return t != null && typeof t == "object";
|
|
26
26
|
}
|
|
27
27
|
var fr = "[object Symbol]";
|
|
28
28
|
function ve(t) {
|
|
29
|
-
return typeof t == "symbol" ||
|
|
29
|
+
return typeof t == "symbol" || B(t) && D(t) == fr;
|
|
30
30
|
}
|
|
31
31
|
function dr(t, e) {
|
|
32
32
|
for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; )
|
|
33
33
|
i[r] = e(t[r], r, t);
|
|
34
34
|
return i;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var G = Array.isArray, pr = 1 / 0, Ze = x ? x.prototype : void 0, Je = Ze ? Ze.toString : void 0;
|
|
37
37
|
function Pt(t) {
|
|
38
38
|
if (typeof t == "string")
|
|
39
39
|
return t;
|
|
40
|
-
if (
|
|
40
|
+
if (G(t))
|
|
41
41
|
return dr(t, Pt) + "";
|
|
42
42
|
if (ve(t))
|
|
43
43
|
return Je ? Je.call(t) : "";
|
|
@@ -52,11 +52,11 @@ var hr = "[object AsyncFunction]", mr = "[object Function]", gr = "[object Gener
|
|
|
52
52
|
function jt(t) {
|
|
53
53
|
if (!R(t))
|
|
54
54
|
return !1;
|
|
55
|
-
var e =
|
|
55
|
+
var e = D(t);
|
|
56
56
|
return e == mr || e == gr || e == hr || e == br;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
var t = /[^.]+$/.exec(
|
|
58
|
+
var ue = T["__core-js_shared__"], Qe = function() {
|
|
59
|
+
var t = /[^.]+$/.exec(ue && ue.keys && ue.keys.IE_PROTO || "");
|
|
60
60
|
return t ? "Symbol(src)_1." + t : "";
|
|
61
61
|
}();
|
|
62
62
|
function yr(t) {
|
|
@@ -76,13 +76,13 @@ function U(t) {
|
|
|
76
76
|
}
|
|
77
77
|
return "";
|
|
78
78
|
}
|
|
79
|
-
var Pr = /[\\^$.*+?()[\]{}|]/g, jr = /^\[object .+?Constructor\]$/, $r = Function.prototype, Ir = Object.prototype,
|
|
80
|
-
"^" +
|
|
79
|
+
var Pr = /[\\^$.*+?()[\]{}|]/g, jr = /^\[object .+?Constructor\]$/, $r = Function.prototype, Ir = Object.prototype, Tr = $r.toString, Or = Ir.hasOwnProperty, Cr = RegExp(
|
|
80
|
+
"^" + Tr.call(Or).replace(Pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
81
81
|
);
|
|
82
82
|
function wr(t) {
|
|
83
83
|
if (!R(t) || yr(t))
|
|
84
84
|
return !1;
|
|
85
|
-
var e = jt(t) ?
|
|
85
|
+
var e = jt(t) ? Cr : jr;
|
|
86
86
|
return e.test(U(t));
|
|
87
87
|
}
|
|
88
88
|
function Sr(t, e) {
|
|
@@ -92,7 +92,7 @@ function V(t, e) {
|
|
|
92
92
|
var r = Sr(t, e);
|
|
93
93
|
return wr(r) ? r : void 0;
|
|
94
94
|
}
|
|
95
|
-
var de = V(
|
|
95
|
+
var de = V(T, "WeakMap"), ke = Object.create, xr = /* @__PURE__ */ function() {
|
|
96
96
|
function t() {
|
|
97
97
|
}
|
|
98
98
|
return function(e) {
|
|
@@ -136,15 +136,15 @@ function It(t, e, r) {
|
|
|
136
136
|
writable: !0
|
|
137
137
|
}) : t[e] = r;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Tt(t, e) {
|
|
140
140
|
return t === e || t !== t && e !== e;
|
|
141
141
|
}
|
|
142
142
|
var Nr = Object.prototype, Ur = Nr.hasOwnProperty;
|
|
143
143
|
function _e(t, e, r) {
|
|
144
144
|
var n = t[e];
|
|
145
|
-
(!(Ur.call(t, e) &&
|
|
145
|
+
(!(Ur.call(t, e) && Tt(n, r)) || r === void 0 && !(e in t)) && It(t, e, r);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function ie(t, e, r, n) {
|
|
148
148
|
var i = !r;
|
|
149
149
|
r || (r = {});
|
|
150
150
|
for (var s = -1, o = e.length; ++s < o; ) {
|
|
@@ -154,11 +154,11 @@ function se(t, e, r, n) {
|
|
|
154
154
|
return r;
|
|
155
155
|
}
|
|
156
156
|
var Vr = 9007199254740991;
|
|
157
|
-
function
|
|
157
|
+
function Ot(t) {
|
|
158
158
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Vr;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return t != null &&
|
|
160
|
+
function Ct(t) {
|
|
161
|
+
return t != null && Ot(t.length) && !jt(t);
|
|
162
162
|
}
|
|
163
163
|
var Ar = Object.prototype;
|
|
164
164
|
function Pe(t) {
|
|
@@ -172,36 +172,36 @@ function Lr(t, e) {
|
|
|
172
172
|
}
|
|
173
173
|
var qr = "[object Arguments]";
|
|
174
174
|
function tt(t) {
|
|
175
|
-
return
|
|
175
|
+
return B(t) && D(t) == qr;
|
|
176
176
|
}
|
|
177
177
|
var wt = Object.prototype, zr = wt.hasOwnProperty, Dr = wt.propertyIsEnumerable, Br = tt(/* @__PURE__ */ function() {
|
|
178
178
|
return arguments;
|
|
179
179
|
}()) ? tt : function(t) {
|
|
180
|
-
return
|
|
180
|
+
return B(t) && zr.call(t, "callee") && !Dr.call(t, "callee");
|
|
181
181
|
};
|
|
182
182
|
function Gr() {
|
|
183
183
|
return !1;
|
|
184
184
|
}
|
|
185
|
-
var St = typeof exports == "object" && exports && !exports.nodeType && exports, rt = St && typeof module == "object" && module && !module.nodeType && module, Kr = rt && rt.exports === St, nt = Kr ?
|
|
185
|
+
var St = typeof exports == "object" && exports && !exports.nodeType && exports, rt = St && typeof module == "object" && module && !module.nodeType && module, Kr = rt && rt.exports === St, nt = Kr ? T.Buffer : void 0, Hr = nt ? nt.isBuffer : void 0, xt = Hr || Gr, Wr = "[object Arguments]", Yr = "[object Array]", Xr = "[object Boolean]", Zr = "[object Date]", Jr = "[object Error]", Qr = "[object Function]", kr = "[object Map]", en = "[object Number]", tn = "[object Object]", rn = "[object RegExp]", nn = "[object Set]", sn = "[object String]", on = "[object WeakMap]", an = "[object ArrayBuffer]", un = "[object DataView]", ln = "[object Float32Array]", cn = "[object Float64Array]", fn = "[object Int8Array]", dn = "[object Int16Array]", pn = "[object Int32Array]", hn = "[object Uint8Array]", mn = "[object Uint8ClampedArray]", gn = "[object Uint16Array]", bn = "[object Uint32Array]", g = {};
|
|
186
186
|
g[ln] = g[cn] = g[fn] = g[dn] = g[pn] = g[hn] = g[mn] = g[gn] = g[bn] = !0;
|
|
187
187
|
g[Wr] = g[Yr] = g[an] = g[Xr] = g[un] = g[Zr] = g[Jr] = g[Qr] = g[kr] = g[en] = g[tn] = g[rn] = g[nn] = g[sn] = g[on] = !1;
|
|
188
188
|
function yn(t) {
|
|
189
|
-
return
|
|
189
|
+
return B(t) && Ot(t.length) && !!g[D(t)];
|
|
190
190
|
}
|
|
191
191
|
function je(t) {
|
|
192
192
|
return function(e) {
|
|
193
193
|
return t(e);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
var Et = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
196
|
+
var Et = typeof exports == "object" && exports && !exports.nodeType && exports, X = Et && typeof module == "object" && module && !module.nodeType && module, vn = X && X.exports === Et, le = vn && vt.process, z = function() {
|
|
197
197
|
try {
|
|
198
|
-
var t =
|
|
199
|
-
return t ||
|
|
198
|
+
var t = X && X.require && X.require("util").types;
|
|
199
|
+
return t || le && le.binding && le.binding("util");
|
|
200
200
|
} catch {
|
|
201
201
|
}
|
|
202
|
-
}(), it =
|
|
202
|
+
}(), it = z && z.isTypedArray, _n = it ? je(it) : yn, Pn = Object.prototype, jn = Pn.hasOwnProperty;
|
|
203
203
|
function Ft(t, e) {
|
|
204
|
-
var r =
|
|
204
|
+
var r = G(t), n = !r && Br(t), i = !r && !n && xt(t), s = !r && !n && !i && _n(t), o = r || n || i || s, a = o ? Lr(t.length, String) : [], l = a.length;
|
|
205
205
|
for (var c in t)
|
|
206
206
|
(e || jn.call(t, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
207
207
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -215,19 +215,19 @@ function Mt(t, e) {
|
|
|
215
215
|
return t(e(r));
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
var $n = Mt(Object.keys, Object), In = Object.prototype,
|
|
219
|
-
function
|
|
218
|
+
var $n = Mt(Object.keys, Object), In = Object.prototype, Tn = In.hasOwnProperty;
|
|
219
|
+
function On(t) {
|
|
220
220
|
if (!Pe(t))
|
|
221
221
|
return $n(t);
|
|
222
222
|
var e = [];
|
|
223
223
|
for (var r in Object(t))
|
|
224
|
-
|
|
224
|
+
Tn.call(t, r) && r != "constructor" && e.push(r);
|
|
225
225
|
return e;
|
|
226
226
|
}
|
|
227
227
|
function $e(t) {
|
|
228
|
-
return
|
|
228
|
+
return Ct(t) ? Ft(t) : On(t);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Cn(t) {
|
|
231
231
|
var e = [];
|
|
232
232
|
if (t != null)
|
|
233
233
|
for (var r in Object(t))
|
|
@@ -237,25 +237,25 @@ function On(t) {
|
|
|
237
237
|
var wn = Object.prototype, Sn = wn.hasOwnProperty;
|
|
238
238
|
function xn(t) {
|
|
239
239
|
if (!R(t))
|
|
240
|
-
return
|
|
240
|
+
return Cn(t);
|
|
241
241
|
var e = Pe(t), r = [];
|
|
242
242
|
for (var n in t)
|
|
243
243
|
n == "constructor" && (e || !Sn.call(t, n)) || r.push(n);
|
|
244
244
|
return r;
|
|
245
245
|
}
|
|
246
246
|
function Ie(t) {
|
|
247
|
-
return
|
|
247
|
+
return Ct(t) ? Ft(t, !0) : xn(t);
|
|
248
248
|
}
|
|
249
249
|
var En = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Fn = /^\w*$/;
|
|
250
250
|
function Mn(t, e) {
|
|
251
|
-
if (
|
|
251
|
+
if (G(t))
|
|
252
252
|
return !1;
|
|
253
253
|
var r = typeof t;
|
|
254
254
|
return r == "number" || r == "symbol" || r == "boolean" || t == null || ve(t) ? !0 : Fn.test(t) || !En.test(t) || e != null && t in Object(e);
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var Q = V(Object, "create");
|
|
257
257
|
function Rn() {
|
|
258
|
-
this.__data__ =
|
|
258
|
+
this.__data__ = Q ? Q(null) : {}, this.size = 0;
|
|
259
259
|
}
|
|
260
260
|
function Nn(t) {
|
|
261
261
|
var e = this.has(t) && delete this.__data__[t];
|
|
@@ -264,7 +264,7 @@ function Nn(t) {
|
|
|
264
264
|
var Un = "__lodash_hash_undefined__", Vn = Object.prototype, An = Vn.hasOwnProperty;
|
|
265
265
|
function Ln(t) {
|
|
266
266
|
var e = this.__data__;
|
|
267
|
-
if (
|
|
267
|
+
if (Q) {
|
|
268
268
|
var r = e[t];
|
|
269
269
|
return r === Un ? void 0 : r;
|
|
270
270
|
}
|
|
@@ -273,12 +273,12 @@ function Ln(t) {
|
|
|
273
273
|
var qn = Object.prototype, zn = qn.hasOwnProperty;
|
|
274
274
|
function Dn(t) {
|
|
275
275
|
var e = this.__data__;
|
|
276
|
-
return
|
|
276
|
+
return Q ? e[t] !== void 0 : zn.call(e, t);
|
|
277
277
|
}
|
|
278
278
|
var Bn = "__lodash_hash_undefined__";
|
|
279
279
|
function Gn(t, e) {
|
|
280
280
|
var r = this.__data__;
|
|
281
|
-
return this.size += this.has(t) ? 0 : 1, r[t] =
|
|
281
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = Q && e === void 0 ? Bn : e, this;
|
|
282
282
|
}
|
|
283
283
|
function N(t) {
|
|
284
284
|
var e = -1, r = t == null ? 0 : t.length;
|
|
@@ -295,29 +295,29 @@ N.prototype.set = Gn;
|
|
|
295
295
|
function Kn() {
|
|
296
296
|
this.__data__ = [], this.size = 0;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function se(t, e) {
|
|
299
299
|
for (var r = t.length; r--; )
|
|
300
|
-
if (
|
|
300
|
+
if (Tt(t[r][0], e))
|
|
301
301
|
return r;
|
|
302
302
|
return -1;
|
|
303
303
|
}
|
|
304
304
|
var Hn = Array.prototype, Wn = Hn.splice;
|
|
305
305
|
function Yn(t) {
|
|
306
|
-
var e = this.__data__, r =
|
|
306
|
+
var e = this.__data__, r = se(e, t);
|
|
307
307
|
if (r < 0)
|
|
308
308
|
return !1;
|
|
309
309
|
var n = e.length - 1;
|
|
310
310
|
return r == n ? e.pop() : Wn.call(e, r, 1), --this.size, !0;
|
|
311
311
|
}
|
|
312
312
|
function Xn(t) {
|
|
313
|
-
var e = this.__data__, r =
|
|
313
|
+
var e = this.__data__, r = se(e, t);
|
|
314
314
|
return r < 0 ? void 0 : e[r][1];
|
|
315
315
|
}
|
|
316
316
|
function Zn(t) {
|
|
317
|
-
return
|
|
317
|
+
return se(this.__data__, t) > -1;
|
|
318
318
|
}
|
|
319
319
|
function Jn(t, e) {
|
|
320
|
-
var r = this.__data__, n =
|
|
320
|
+
var r = this.__data__, n = se(r, t);
|
|
321
321
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
322
322
|
}
|
|
323
323
|
function S(t) {
|
|
@@ -332,11 +332,11 @@ S.prototype.delete = Yn;
|
|
|
332
332
|
S.prototype.get = Xn;
|
|
333
333
|
S.prototype.has = Zn;
|
|
334
334
|
S.prototype.set = Jn;
|
|
335
|
-
var
|
|
335
|
+
var k = V(T, "Map");
|
|
336
336
|
function Qn() {
|
|
337
337
|
this.size = 0, this.__data__ = {
|
|
338
338
|
hash: new N(),
|
|
339
|
-
map: new (
|
|
339
|
+
map: new (k || S)(),
|
|
340
340
|
string: new N()
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -344,22 +344,22 @@ function kn(t) {
|
|
|
344
344
|
var e = typeof t;
|
|
345
345
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function oe(t, e) {
|
|
348
348
|
var r = t.__data__;
|
|
349
349
|
return kn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
350
350
|
}
|
|
351
351
|
function ei(t) {
|
|
352
|
-
var e =
|
|
352
|
+
var e = oe(this, t).delete(t);
|
|
353
353
|
return this.size -= e ? 1 : 0, e;
|
|
354
354
|
}
|
|
355
355
|
function ti(t) {
|
|
356
|
-
return
|
|
356
|
+
return oe(this, t).get(t);
|
|
357
357
|
}
|
|
358
358
|
function ri(t) {
|
|
359
|
-
return
|
|
359
|
+
return oe(this, t).has(t);
|
|
360
360
|
}
|
|
361
361
|
function ni(t, e) {
|
|
362
|
-
var r =
|
|
362
|
+
var r = oe(this, t), n = r.size;
|
|
363
363
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
364
364
|
}
|
|
365
365
|
function E(t) {
|
|
@@ -375,7 +375,7 @@ E.prototype.get = ti;
|
|
|
375
375
|
E.prototype.has = ri;
|
|
376
376
|
E.prototype.set = ni;
|
|
377
377
|
var ii = "Expected a function";
|
|
378
|
-
function
|
|
378
|
+
function Te(t, e) {
|
|
379
379
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
380
380
|
throw new TypeError(ii);
|
|
381
381
|
var r = function() {
|
|
@@ -385,12 +385,12 @@ function Ce(t, e) {
|
|
|
385
385
|
var o = t.apply(this, n);
|
|
386
386
|
return r.cache = s.set(i, o) || s, o;
|
|
387
387
|
};
|
|
388
|
-
return r.cache = new (
|
|
388
|
+
return r.cache = new (Te.Cache || E)(), r;
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
Te.Cache = E;
|
|
391
391
|
var si = 500;
|
|
392
392
|
function oi(t) {
|
|
393
|
-
var e =
|
|
393
|
+
var e = Te(t, function(n) {
|
|
394
394
|
return r.size === si && r.clear(), n;
|
|
395
395
|
}), r = e.cache;
|
|
396
396
|
return e;
|
|
@@ -405,7 +405,7 @@ function ci(t) {
|
|
|
405
405
|
return t == null ? "" : Pt(t);
|
|
406
406
|
}
|
|
407
407
|
function Rt(t, e) {
|
|
408
|
-
return
|
|
408
|
+
return G(t) ? t : Mn(t, e) ? [t] : li(ci(t));
|
|
409
409
|
}
|
|
410
410
|
var fi = 1 / 0;
|
|
411
411
|
function Nt(t) {
|
|
@@ -420,7 +420,7 @@ function di(t, e) {
|
|
|
420
420
|
t = t[Nt(e[r++])];
|
|
421
421
|
return r && r == n ? t : void 0;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function te(t, e, r) {
|
|
424
424
|
var n = t == null ? void 0 : di(t, e);
|
|
425
425
|
return n === void 0 ? r : n;
|
|
426
426
|
}
|
|
@@ -449,28 +449,28 @@ function vi(t, e) {
|
|
|
449
449
|
var r = this.__data__;
|
|
450
450
|
if (r instanceof S) {
|
|
451
451
|
var n = r.__data__;
|
|
452
|
-
if (!
|
|
452
|
+
if (!k || n.length < yi - 1)
|
|
453
453
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
454
454
|
r = this.__data__ = new E(n);
|
|
455
455
|
}
|
|
456
456
|
return r.set(t, e), this.size = r.size, this;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function K(t) {
|
|
459
459
|
var e = this.__data__ = new S(t);
|
|
460
460
|
this.size = e.size;
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
K.prototype.clear = hi;
|
|
463
|
+
K.prototype.delete = mi;
|
|
464
|
+
K.prototype.get = gi;
|
|
465
|
+
K.prototype.has = bi;
|
|
466
|
+
K.prototype.set = vi;
|
|
467
467
|
function _i(t, e) {
|
|
468
|
-
return t &&
|
|
468
|
+
return t && ie(e, $e(e), t);
|
|
469
469
|
}
|
|
470
470
|
function Pi(t, e) {
|
|
471
|
-
return t &&
|
|
471
|
+
return t && ie(e, Ie(e), t);
|
|
472
472
|
}
|
|
473
|
-
var At = typeof exports == "object" && exports && !exports.nodeType && exports, st = At && typeof module == "object" && module && !module.nodeType && module, ji = st && st.exports === At, ot = ji ?
|
|
473
|
+
var At = typeof exports == "object" && exports && !exports.nodeType && exports, st = At && typeof module == "object" && module && !module.nodeType && module, ji = st && st.exports === At, ot = ji ? T.Buffer : void 0, at = ot ? ot.allocUnsafe : void 0;
|
|
474
474
|
function $i(t, e) {
|
|
475
475
|
if (e)
|
|
476
476
|
return t.slice();
|
|
@@ -487,35 +487,35 @@ function Ii(t, e) {
|
|
|
487
487
|
function Lt() {
|
|
488
488
|
return [];
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var Ti = Object.prototype, Oi = Ti.propertyIsEnumerable, ut = Object.getOwnPropertySymbols, Oe = ut ? function(t) {
|
|
491
491
|
return t == null ? [] : (t = Object(t), Ii(ut(t), function(e) {
|
|
492
|
-
return
|
|
492
|
+
return Oi.call(t, e);
|
|
493
493
|
}));
|
|
494
494
|
} : Lt;
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function Ci(t, e) {
|
|
496
|
+
return ie(t, Oe(t), e);
|
|
497
497
|
}
|
|
498
498
|
var wi = Object.getOwnPropertySymbols, qt = wi ? function(t) {
|
|
499
499
|
for (var e = []; t; )
|
|
500
|
-
Ut(e,
|
|
500
|
+
Ut(e, Oe(t)), t = Vt(t);
|
|
501
501
|
return e;
|
|
502
502
|
} : Lt;
|
|
503
503
|
function Si(t, e) {
|
|
504
|
-
return
|
|
504
|
+
return ie(t, qt(t), e);
|
|
505
505
|
}
|
|
506
506
|
function zt(t, e, r) {
|
|
507
507
|
var n = e(t);
|
|
508
|
-
return
|
|
508
|
+
return G(t) ? n : Ut(n, r(t));
|
|
509
509
|
}
|
|
510
510
|
function xi(t) {
|
|
511
|
-
return zt(t, $e,
|
|
511
|
+
return zt(t, $e, Oe);
|
|
512
512
|
}
|
|
513
513
|
function Ei(t) {
|
|
514
514
|
return zt(t, Ie, qt);
|
|
515
515
|
}
|
|
516
|
-
var pe = V(
|
|
517
|
-
(pe && F(new pe(new ArrayBuffer(1))) != pt ||
|
|
518
|
-
var e =
|
|
516
|
+
var pe = V(T, "DataView"), he = V(T, "Promise"), me = V(T, "Set"), lt = "[object Map]", Fi = "[object Object]", ct = "[object Promise]", ft = "[object Set]", dt = "[object WeakMap]", pt = "[object DataView]", Mi = U(pe), Ri = U(k), Ni = U(he), Ui = U(me), Vi = U(de), F = D;
|
|
517
|
+
(pe && F(new pe(new ArrayBuffer(1))) != pt || k && F(new k()) != lt || he && F(he.resolve()) != ct || me && F(new me()) != ft || de && F(new de()) != dt) && (F = function(t) {
|
|
518
|
+
var e = D(t), r = e == Fi ? t.constructor : void 0, n = r ? U(r) : "";
|
|
519
519
|
if (n)
|
|
520
520
|
switch (n) {
|
|
521
521
|
case Mi:
|
|
@@ -531,13 +531,13 @@ var pe = V(C, "DataView"), he = V(C, "Promise"), me = V(C, "Set"), lt = "[object
|
|
|
531
531
|
}
|
|
532
532
|
return e;
|
|
533
533
|
});
|
|
534
|
-
const
|
|
534
|
+
const Ce = F;
|
|
535
535
|
var Ai = Object.prototype, Li = Ai.hasOwnProperty;
|
|
536
536
|
function qi(t) {
|
|
537
537
|
var e = t.length, r = new t.constructor(e);
|
|
538
538
|
return e && typeof t[0] == "string" && Li.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
539
539
|
}
|
|
540
|
-
var ht =
|
|
540
|
+
var ht = T.Uint8Array;
|
|
541
541
|
function we(t) {
|
|
542
542
|
var e = new t.constructor(t.byteLength);
|
|
543
543
|
return new ht(e).set(new ht(t)), e;
|
|
@@ -598,55 +598,55 @@ function ds(t) {
|
|
|
598
598
|
}
|
|
599
599
|
var ps = "[object Map]";
|
|
600
600
|
function hs(t) {
|
|
601
|
-
return
|
|
601
|
+
return B(t) && Ce(t) == ps;
|
|
602
602
|
}
|
|
603
|
-
var bt =
|
|
603
|
+
var bt = z && z.isMap, ms = bt ? je(bt) : hs, gs = "[object Set]";
|
|
604
604
|
function bs(t) {
|
|
605
|
-
return
|
|
605
|
+
return B(t) && Ce(t) == gs;
|
|
606
606
|
}
|
|
607
|
-
var yt =
|
|
608
|
-
h[Dt] = h[js] = h[Rs] = h[Ns] = h[$s] = h[Is] = h[Us] = h[Vs] = h[As] = h[Ls] = h[qs] = h[
|
|
609
|
-
h[
|
|
610
|
-
function
|
|
607
|
+
var yt = z && z.isSet, ys = yt ? je(yt) : bs, vs = 1, _s = 2, Ps = 4, Dt = "[object Arguments]", js = "[object Array]", $s = "[object Boolean]", Is = "[object Date]", Ts = "[object Error]", Bt = "[object Function]", Os = "[object GeneratorFunction]", Cs = "[object Map]", ws = "[object Number]", Gt = "[object Object]", Ss = "[object RegExp]", xs = "[object Set]", Es = "[object String]", Fs = "[object Symbol]", Ms = "[object WeakMap]", Rs = "[object ArrayBuffer]", Ns = "[object DataView]", Us = "[object Float32Array]", Vs = "[object Float64Array]", As = "[object Int8Array]", Ls = "[object Int16Array]", qs = "[object Int32Array]", zs = "[object Uint8Array]", Ds = "[object Uint8ClampedArray]", Bs = "[object Uint16Array]", Gs = "[object Uint32Array]", h = {};
|
|
608
|
+
h[Dt] = h[js] = h[Rs] = h[Ns] = h[$s] = h[Is] = h[Us] = h[Vs] = h[As] = h[Ls] = h[qs] = h[Cs] = h[ws] = h[Gt] = h[Ss] = h[xs] = h[Es] = h[Fs] = h[zs] = h[Ds] = h[Bs] = h[Gs] = !0;
|
|
609
|
+
h[Ts] = h[Bt] = h[Ms] = !1;
|
|
610
|
+
function re(t, e, r, n, i, s) {
|
|
611
611
|
var o, a = e & vs, l = e & _s, c = e & Ps;
|
|
612
612
|
if (r && (o = i ? r(t, n, i, s) : r(t)), o !== void 0)
|
|
613
613
|
return o;
|
|
614
614
|
if (!R(t))
|
|
615
615
|
return t;
|
|
616
|
-
var d =
|
|
616
|
+
var d = G(t);
|
|
617
617
|
if (d) {
|
|
618
618
|
if (o = qi(t), !a)
|
|
619
619
|
return Er(t, o);
|
|
620
620
|
} else {
|
|
621
|
-
var m =
|
|
621
|
+
var m = Ce(t), P = m == Bt || m == Os;
|
|
622
622
|
if (xt(t))
|
|
623
623
|
return $i(t, a);
|
|
624
624
|
if (m == Gt || m == Dt || P && !i) {
|
|
625
625
|
if (o = l || P ? {} : ds(t), !a)
|
|
626
|
-
return l ? Si(t, Pi(o, t)) :
|
|
626
|
+
return l ? Si(t, Pi(o, t)) : Ci(t, _i(o, t));
|
|
627
627
|
} else {
|
|
628
628
|
if (!h[m])
|
|
629
629
|
return i ? t : {};
|
|
630
630
|
o = fs(t, m, a);
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
s || (s = new
|
|
633
|
+
s || (s = new K());
|
|
634
634
|
var I = s.get(t);
|
|
635
635
|
if (I)
|
|
636
636
|
return I;
|
|
637
637
|
s.set(t, o), ys(t) ? t.forEach(function(v) {
|
|
638
|
-
o.add(
|
|
639
|
-
}) : ms(t) && t.forEach(function(v,
|
|
640
|
-
o.set(
|
|
638
|
+
o.add(re(v, e, r, v, t, s));
|
|
639
|
+
}) : ms(t) && t.forEach(function(v, O) {
|
|
640
|
+
o.set(O, re(v, e, r, O, t, s));
|
|
641
641
|
});
|
|
642
642
|
var j = c ? l ? Ei : xi : l ? Ie : $e, y = d ? void 0 : j(t);
|
|
643
|
-
return Fr(y || t, function(v,
|
|
644
|
-
y && (
|
|
643
|
+
return Fr(y || t, function(v, O) {
|
|
644
|
+
y && (O = v, v = t[O]), _e(o, O, re(v, e, r, O, t, s));
|
|
645
645
|
}), o;
|
|
646
646
|
}
|
|
647
647
|
var Ks = 1, Hs = 4;
|
|
648
|
-
function
|
|
649
|
-
return
|
|
648
|
+
function ce(t) {
|
|
649
|
+
return re(t, Ks | Hs);
|
|
650
650
|
}
|
|
651
651
|
function Ws(t, e, r, n) {
|
|
652
652
|
if (!R(t))
|
|
@@ -664,7 +664,7 @@ function Ws(t, e, r, n) {
|
|
|
664
664
|
}
|
|
665
665
|
return t;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ne(t, e, r) {
|
|
668
668
|
return t == null ? t : Ws(t, e, r);
|
|
669
669
|
}
|
|
670
670
|
class u {
|
|
@@ -745,7 +745,7 @@ function b(t, ...e) {
|
|
|
745
745
|
r.hasOwnProperty(n) && (typeof r[n] == "object" && r[n] !== null ? t[n] = b(t[n] || {}, r[n]) : t[n] = r[n]);
|
|
746
746
|
}), t;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function C(t) {
|
|
749
749
|
const e = /* @__PURE__ */ new WeakMap();
|
|
750
750
|
function r(n) {
|
|
751
751
|
if (n === null || typeof n != "object")
|
|
@@ -789,7 +789,7 @@ function ge(t, e) {
|
|
|
789
789
|
class Ys {
|
|
790
790
|
constructor(e) {
|
|
791
791
|
f(this, "runtimeCore");
|
|
792
|
-
f(this, "readonlyReactiveModel",
|
|
792
|
+
f(this, "readonlyReactiveModel", ee({}));
|
|
793
793
|
this.formCustomization = e;
|
|
794
794
|
}
|
|
795
795
|
// happy path, 后续可以完善更多的 fallback 处理,fallback 处理是为了不卡住异步时的首次渲染做的优化
|
|
@@ -810,7 +810,7 @@ class Ys {
|
|
|
810
810
|
M(() => {
|
|
811
811
|
this.runtimeCore.hydrateEffect.trackEffect(
|
|
812
812
|
() => {
|
|
813
|
-
|
|
813
|
+
Z(e) ? $(
|
|
814
814
|
() => e.value,
|
|
815
815
|
() => {
|
|
816
816
|
b(this.runtimeCore.model.value, e.value);
|
|
@@ -819,7 +819,7 @@ class Ys {
|
|
|
819
819
|
deep: !0,
|
|
820
820
|
immediate: !0
|
|
821
821
|
}
|
|
822
|
-
) :
|
|
822
|
+
) : J(e) ? $(
|
|
823
823
|
() => e,
|
|
824
824
|
() => {
|
|
825
825
|
b(this.runtimeCore.model.value, e);
|
|
@@ -839,30 +839,30 @@ class Ys {
|
|
|
839
839
|
share(e) {
|
|
840
840
|
M(() => {
|
|
841
841
|
Object.keys(e).forEach((r) => {
|
|
842
|
-
|
|
842
|
+
Z(e[r]) ? (console.log("data[key]", e[r]), $(
|
|
843
843
|
() => e[r].value,
|
|
844
844
|
() => {
|
|
845
|
-
|
|
846
|
-
[r]:
|
|
845
|
+
console.log("watched", e[r].value), b(this.runtimeCore.shared, {
|
|
846
|
+
[r]: ce(e[r].value)
|
|
847
847
|
});
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
deep: !0,
|
|
851
851
|
immediate: !0
|
|
852
852
|
}
|
|
853
|
-
) :
|
|
853
|
+
)) : J(e[r]) ? $(
|
|
854
854
|
() => e[r],
|
|
855
855
|
() => {
|
|
856
|
-
|
|
857
|
-
[r]:
|
|
856
|
+
b(this.runtimeCore.shared, {
|
|
857
|
+
[r]: ce(e[r])
|
|
858
858
|
});
|
|
859
859
|
},
|
|
860
860
|
{
|
|
861
861
|
deep: !0,
|
|
862
862
|
immediate: !0
|
|
863
863
|
}
|
|
864
|
-
) :
|
|
865
|
-
[r]:
|
|
864
|
+
) : b(this.runtimeCore.shared, {
|
|
865
|
+
[r]: ce(e[r])
|
|
866
866
|
});
|
|
867
867
|
});
|
|
868
868
|
});
|
|
@@ -889,7 +889,7 @@ class Ys {
|
|
|
889
889
|
}
|
|
890
890
|
resetModel() {
|
|
891
891
|
var e;
|
|
892
|
-
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value =
|
|
892
|
+
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = C(
|
|
893
893
|
this.runtimeCore.processor.stableModel
|
|
894
894
|
), this.readonlyReactiveModel.value = Ye(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
895
895
|
}
|
|
@@ -968,7 +968,7 @@ class Xs {
|
|
|
968
968
|
// 派生过程,用于外部应用
|
|
969
969
|
parseSchemas(e, r) {
|
|
970
970
|
u.isArrayEmpty(this.processedSchemas.value) && (this.baseDefaultValueFunctionsLength = this.countFunctionDefaultValues(
|
|
971
|
-
|
|
971
|
+
C(e)
|
|
972
972
|
), this.processedSchemas.value = this.initSchemas(e)), this.parse(e, r);
|
|
973
973
|
}
|
|
974
974
|
parseStable(e) {
|
|
@@ -982,7 +982,7 @@ class Xs {
|
|
|
982
982
|
// 对于稳定初始化更新的抽象
|
|
983
983
|
stableUpdater(e = []) {
|
|
984
984
|
if (e.every(Boolean)) {
|
|
985
|
-
const r =
|
|
985
|
+
const r = q(this.processedSchemas.value);
|
|
986
986
|
!u.isProcessInprogress(r) && u.isObjectEmpty(this.stableModel) && (this.stableUpdaterProcessProgress || (this.stableUpdaterProcessProgress = Array.from({
|
|
987
987
|
length: r.length
|
|
988
988
|
}).fill(!1)), this.stableUpdaterProcessProgress[this.stableUpdaterTimes] = !0, this.stableUpdaterTimes++, this.modelProcessor(r));
|
|
@@ -1140,7 +1140,7 @@ class Xs {
|
|
|
1140
1140
|
e.name.startsWith("__proform_onetime_") && (e.__proform_cached_result = s), this.promiseFieldParser(s, r, i, n);
|
|
1141
1141
|
}
|
|
1142
1142
|
else
|
|
1143
|
-
|
|
1143
|
+
Z(e) ? $(
|
|
1144
1144
|
() => e.value,
|
|
1145
1145
|
() => {
|
|
1146
1146
|
u.isUndefined(e.value) || (i && u.isObject(e.value) && !u.isNativeObject(e.value) ? this.objectParser({
|
|
@@ -1154,7 +1154,7 @@ class Xs {
|
|
|
1154
1154
|
immediate: !0,
|
|
1155
1155
|
deep: !0
|
|
1156
1156
|
}
|
|
1157
|
-
) :
|
|
1157
|
+
) : J(e) ? $(
|
|
1158
1158
|
() => e,
|
|
1159
1159
|
() => {
|
|
1160
1160
|
u.isUndefined(e) || (i && u.isObject(e) && !u.isNativeObject(e) ? this.objectParser({
|
|
@@ -1178,10 +1178,10 @@ class Xs {
|
|
|
1178
1178
|
modelProcessor(e) {
|
|
1179
1179
|
e.map(
|
|
1180
1180
|
(r) => this.createModel(r, this.processedModel.value)
|
|
1181
|
-
), u.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel =
|
|
1181
|
+
), u.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel = C(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
|
|
1182
1182
|
}
|
|
1183
1183
|
setModel(e, r, n) {
|
|
1184
|
-
u.isFunction(r) ?
|
|
1184
|
+
u.isFunction(r) ? ne(e, r(), n) : e[r] = n;
|
|
1185
1185
|
}
|
|
1186
1186
|
createModel(e, r) {
|
|
1187
1187
|
if (u.isListSchema(e) && (r[e.field] || this.setModel(r, e.field, [{}]), e.children.forEach((n) => {
|
|
@@ -1192,7 +1192,7 @@ class Xs {
|
|
|
1192
1192
|
if ("defaultValue" in e)
|
|
1193
1193
|
this.setModel(r, e.field, e.defaultValue);
|
|
1194
1194
|
else {
|
|
1195
|
-
if (u.isFunction(e.field) &&
|
|
1195
|
+
if (u.isFunction(e.field) && te(r, e.field()))
|
|
1196
1196
|
return;
|
|
1197
1197
|
if (u.isString(e.field) && r[e.field])
|
|
1198
1198
|
return;
|
|
@@ -1200,7 +1200,7 @@ class Xs {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
class
|
|
1203
|
+
class A {
|
|
1204
1204
|
static getFormContainer({ ui: e } = {}) {
|
|
1205
1205
|
return p.presets.uiPresets[e ?? p.presets.ui].container.Form;
|
|
1206
1206
|
}
|
|
@@ -1259,19 +1259,19 @@ function Js(t) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
class Qs {
|
|
1261
1261
|
constructor(e) {
|
|
1262
|
-
f(this, "schemas",
|
|
1263
|
-
f(this, "model",
|
|
1262
|
+
f(this, "schemas", ee([]));
|
|
1263
|
+
f(this, "model", ee({}));
|
|
1264
1264
|
f(this, "processorBySchemaType", {
|
|
1265
1265
|
item: this.runtimeItemProcessor.bind(this),
|
|
1266
1266
|
group: this.runtimeGroupProcessor.bind(this),
|
|
1267
1267
|
list: this.runtimeListProcessor.bind(this)
|
|
1268
1268
|
});
|
|
1269
|
-
f(this, "formRef",
|
|
1269
|
+
f(this, "formRef", ee(null));
|
|
1270
1270
|
f(this, "hydrateEffect", new be());
|
|
1271
|
-
f(this, "native",
|
|
1271
|
+
f(this, "native", ae({}));
|
|
1272
1272
|
f(this, "grid", {});
|
|
1273
1273
|
f(this, "runtime", {});
|
|
1274
|
-
f(this, "globalNativeFormOverride",
|
|
1274
|
+
f(this, "globalNativeFormOverride", ae({
|
|
1275
1275
|
props: {
|
|
1276
1276
|
Form: {},
|
|
1277
1277
|
FormItem: {}
|
|
@@ -1281,10 +1281,10 @@ class Qs {
|
|
|
1281
1281
|
FormItem: {}
|
|
1282
1282
|
}
|
|
1283
1283
|
}));
|
|
1284
|
-
f(this, "shared",
|
|
1284
|
+
f(this, "shared", ae({}));
|
|
1285
1285
|
this.setup = e, this.processor = new Xs(this);
|
|
1286
1286
|
const r = this.setup(this);
|
|
1287
|
-
if (this.ui = r.ui ?? p.presets.ui, this.runtimeAdapter = new Zs(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()),
|
|
1287
|
+
if (this.ui = r.ui ?? p.presets.ui, this.runtimeAdapter = new Zs(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), Z(r.schemas))
|
|
1288
1288
|
$(
|
|
1289
1289
|
// @ts-expect-error
|
|
1290
1290
|
() => r.schemas.value,
|
|
@@ -1295,7 +1295,7 @@ class Qs {
|
|
|
1295
1295
|
deep: !0
|
|
1296
1296
|
}
|
|
1297
1297
|
);
|
|
1298
|
-
else if (
|
|
1298
|
+
else if (J(r.schemas)) {
|
|
1299
1299
|
const n = $(() => r.schemas, () => {
|
|
1300
1300
|
this.processor.parseSchemas(r.schemas), M(() => {
|
|
1301
1301
|
n();
|
|
@@ -1308,20 +1308,20 @@ class Qs {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
getRuntimeMeta() {
|
|
1310
1310
|
return {
|
|
1311
|
-
model:
|
|
1311
|
+
model: q(C(this.model.value)),
|
|
1312
1312
|
reactiveModel: this.model.value,
|
|
1313
1313
|
shared: this.shared,
|
|
1314
1314
|
// share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
|
|
1315
1315
|
share: (r) => {
|
|
1316
1316
|
Object.keys(r).forEach((n) => {
|
|
1317
|
-
|
|
1317
|
+
Z(r[n]) ? $(() => r[n].value, () => {
|
|
1318
1318
|
b(this.shared, {
|
|
1319
1319
|
[n]: r[n].value
|
|
1320
1320
|
});
|
|
1321
1321
|
}, {
|
|
1322
1322
|
deep: !0,
|
|
1323
1323
|
immediate: !0
|
|
1324
|
-
}) :
|
|
1324
|
+
}) : J(r[n]) ? $(() => r[n], () => {
|
|
1325
1325
|
b(this.shared, {
|
|
1326
1326
|
[n]: r[n]
|
|
1327
1327
|
});
|
|
@@ -1337,15 +1337,15 @@ class Qs {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
runtimeItemProcessor(e, r, n = this.model.value, i) {
|
|
1339
1339
|
var xe, Ee, Fe, Me, Re, Ne, Ue, Ve, Ae, Le, qe, ze, De, Be, Ge, Ke, He;
|
|
1340
|
-
const s =
|
|
1340
|
+
const s = q(e.component);
|
|
1341
1341
|
if (!s)
|
|
1342
1342
|
return;
|
|
1343
1343
|
(Ee = (xe = e.native) == null ? void 0 : xe.props) != null && Ee.Form && b(this.globalNativeFormOverride.props.Form, (Me = (Fe = e.native) == null ? void 0 : Fe.props) == null ? void 0 : Me.Form), (Ne = (Re = e.native) == null ? void 0 : Re.slots) != null && Ne.Form && b(this.globalNativeFormOverride.slots.Form, (Ve = (Ue = e.native) == null ? void 0 : Ue.slots) == null ? void 0 : Ve.Form);
|
|
1344
|
-
const o = b(
|
|
1344
|
+
const o = b(C((Le = (Ae = this.native) == null ? void 0 : Ae.slots) == null ? void 0 : Le.FormItem) ?? {}, (ze = (qe = e.native) == null ? void 0 : qe.slots) == null ? void 0 : ze.FormItem), a = {
|
|
1345
1345
|
display: "grid",
|
|
1346
1346
|
gridColumn: "1 / -1",
|
|
1347
1347
|
...e.grid
|
|
1348
|
-
}, l = b(
|
|
1348
|
+
}, l = b(C((Be = (De = this.native) == null ? void 0 : De.props) == null ? void 0 : Be.FormItem) ?? {}, (Ke = (Ge = e.native) == null ? void 0 : Ge.props) == null ? void 0 : Ke.FormItem), c = this.runtimeAdapter.getRuntimeField({
|
|
1349
1349
|
schema: e,
|
|
1350
1350
|
parentSchema: i,
|
|
1351
1351
|
index: r
|
|
@@ -1354,25 +1354,25 @@ class Qs {
|
|
|
1354
1354
|
j === void 0 && (j = !0);
|
|
1355
1355
|
let y = e.label ?? "", v;
|
|
1356
1356
|
if (e.runtime ? v = e.runtime : v = (i == null ? void 0 : i.runtime) ?? this.runtime, !u.isUndefined(r) && !u.isObjectEmpty(v) && (y = ge((He = v == null ? void 0 : v.customizeListItemLabel) == null ? void 0 : He.call(v, e.label ?? "", r + 1), "")), !I) {
|
|
1357
|
-
let
|
|
1358
|
-
u.isUndefined(d) ? I = `${
|
|
1359
|
-
P[d.toLowerCase()], I = `${
|
|
1360
|
-
d.toLowerCase().includes(We.toLowerCase()) && (
|
|
1361
|
-
}), I = `${
|
|
1357
|
+
let H = "请输入";
|
|
1358
|
+
u.isUndefined(d) ? I = `${H}${y}` : /* @ts-expect-error */ P[d.toLowerCase()] ? (H = // @ts-expect-error
|
|
1359
|
+
P[d.toLowerCase()], I = `${H}${y}`) : (Object.keys(P).forEach((We) => {
|
|
1360
|
+
d.toLowerCase().includes(We.toLowerCase()) && (H = P[We]);
|
|
1361
|
+
}), I = `${H}${y}`);
|
|
1362
1362
|
}
|
|
1363
|
-
const
|
|
1363
|
+
const O = this.runtimeAdapter.getRuntimeRequired({
|
|
1364
1364
|
...e,
|
|
1365
1365
|
label: y
|
|
1366
|
-
}), Kt =
|
|
1366
|
+
}), Kt = A.getItemContainer(this), Ht = A.getFormItemContainer(this), Wt = this, Yt = e.componentSlots;
|
|
1367
1367
|
return _("div", {
|
|
1368
1368
|
style: a
|
|
1369
1369
|
}, [_(Kt, {
|
|
1370
1370
|
show: j
|
|
1371
1371
|
}, {
|
|
1372
1372
|
default() {
|
|
1373
|
-
return j && _(Ht,
|
|
1373
|
+
return j && _(Ht, Y(l, {
|
|
1374
1374
|
label: `${y ? `${y}:` : ""}`
|
|
1375
|
-
}, c,
|
|
1375
|
+
}, c, O), {
|
|
1376
1376
|
default() {
|
|
1377
1377
|
return Wt.runtimeAdapter.formComponentRenderer({
|
|
1378
1378
|
Component: s,
|
|
@@ -1394,7 +1394,7 @@ class Qs {
|
|
|
1394
1394
|
display: "grid",
|
|
1395
1395
|
gridColumn: "1 / -1",
|
|
1396
1396
|
...e.grid
|
|
1397
|
-
}, i =
|
|
1397
|
+
}, i = A.getGroupContainer(this);
|
|
1398
1398
|
let s = e.show;
|
|
1399
1399
|
return s === void 0 && (s = !0), _("div", {
|
|
1400
1400
|
style: n
|
|
@@ -1411,7 +1411,7 @@ class Qs {
|
|
|
1411
1411
|
code: "0001",
|
|
1412
1412
|
message: "异步默认值数据正在处理中,请您耐心等待... "
|
|
1413
1413
|
});
|
|
1414
|
-
(n = this.processor.stableModel[e.field]) != null && n[0] && this.model.value[e.field].push(
|
|
1414
|
+
(n = this.processor.stableModel[e.field]) != null && n[0] && this.model.value[e.field].push(C(this.processor.stableModel[e.field][0])), this.runtimeAdapter.clearValidate(this);
|
|
1415
1415
|
}
|
|
1416
1416
|
deleteListItem(e, r) {
|
|
1417
1417
|
this.model.value[e.field].splice(r, 1), this.runtimeAdapter.clearValidate(this);
|
|
@@ -1425,7 +1425,7 @@ class Qs {
|
|
|
1425
1425
|
n.model.value[e.field] || (n.model.value[e.field] = [{}]);
|
|
1426
1426
|
let i = e.show;
|
|
1427
1427
|
i === void 0 && (i = !0);
|
|
1428
|
-
const s =
|
|
1428
|
+
const s = A.getListContainer(this), o = A.getListItemContainer(this);
|
|
1429
1429
|
return _("div", {
|
|
1430
1430
|
style: r
|
|
1431
1431
|
}, [i && _(s, {
|
|
@@ -1467,8 +1467,8 @@ class Qs {
|
|
|
1467
1467
|
gridColumn: "1 / -1",
|
|
1468
1468
|
gridAutoColumns: "1fr",
|
|
1469
1469
|
...this.grid
|
|
1470
|
-
}, r = this, n = b(this.globalNativeFormOverride.props.Form,
|
|
1471
|
-
return _(s,
|
|
1470
|
+
}, r = this, n = b(this.globalNativeFormOverride.props.Form, C((l = (a = this.native) == null ? void 0 : a.props) == null ? void 0 : l.Form) ?? {}), i = b(this.globalNativeFormOverride.slots.Form, C((d = (c = this.native) == null ? void 0 : c.slots) == null ? void 0 : d.Form) ?? {}), s = A.getFormContainer(this), o = this.runtimeAdapter.getFormModelPropName();
|
|
1471
|
+
return _(s, Y(n, {
|
|
1472
1472
|
ref: this.formRef
|
|
1473
1473
|
}, {
|
|
1474
1474
|
[o]: this.model.value
|
|
@@ -1548,10 +1548,10 @@ const ks = {
|
|
|
1548
1548
|
props: s
|
|
1549
1549
|
}) {
|
|
1550
1550
|
let o;
|
|
1551
|
-
return u.isFunction(r.field) ? o =
|
|
1551
|
+
return u.isFunction(r.field) ? o = te(e, r.field()) : o = e[r.field], _(t, Y({
|
|
1552
1552
|
modelValue: o,
|
|
1553
1553
|
"onUpdate:modelValue": (a) => {
|
|
1554
|
-
u.isFunction(r.field) ?
|
|
1554
|
+
u.isFunction(r.field) ? ne(e, r.field(), a) : e[r.field] = a;
|
|
1555
1555
|
},
|
|
1556
1556
|
placeholder: n
|
|
1557
1557
|
}, s), {
|
|
@@ -1560,7 +1560,7 @@ const ks = {
|
|
|
1560
1560
|
},
|
|
1561
1561
|
validateForm(t) {
|
|
1562
1562
|
return new Promise((e, r) => {
|
|
1563
|
-
t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(
|
|
1563
|
+
t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(q(t.runtimeCore.processor.processedModel.value))));
|
|
1564
1564
|
});
|
|
1565
1565
|
},
|
|
1566
1566
|
clearValidate(t) {
|
|
@@ -1616,10 +1616,10 @@ const ks = {
|
|
|
1616
1616
|
props: s
|
|
1617
1617
|
}) {
|
|
1618
1618
|
let o;
|
|
1619
|
-
return u.isFunction(r.field) ? o =
|
|
1619
|
+
return u.isFunction(r.field) ? o = te(e, r.field()) : o = e[r.field], _(t, Y({
|
|
1620
1620
|
modelValue: o,
|
|
1621
1621
|
"onUpdate:modelValue": (a) => {
|
|
1622
|
-
u.isFunction(r.field) ?
|
|
1622
|
+
u.isFunction(r.field) ? ne(e, r.field(), a) : e[r.field] = a;
|
|
1623
1623
|
},
|
|
1624
1624
|
placeholder: n
|
|
1625
1625
|
}, s), {
|
|
@@ -1632,7 +1632,7 @@ const ks = {
|
|
|
1632
1632
|
valid: n,
|
|
1633
1633
|
errors: i
|
|
1634
1634
|
}) => {
|
|
1635
|
-
n ? e(t.cleanFallbackFields(
|
|
1635
|
+
n ? e(t.cleanFallbackFields(q(t.runtimeCore.processor.processedModel.value))) : r(i);
|
|
1636
1636
|
});
|
|
1637
1637
|
});
|
|
1638
1638
|
},
|
|
@@ -1691,10 +1691,10 @@ const ks = {
|
|
|
1691
1691
|
props: s
|
|
1692
1692
|
}) {
|
|
1693
1693
|
let o;
|
|
1694
|
-
return u.isFunction(r.field) ? o =
|
|
1694
|
+
return u.isFunction(r.field) ? o = te(e, r.field()) : o = e[r.field], _(t, Y({
|
|
1695
1695
|
value: o,
|
|
1696
1696
|
"onUpdate:value": (a) => {
|
|
1697
|
-
u.isFunction(r.field) ?
|
|
1697
|
+
u.isFunction(r.field) ? ne(e, r.field(), a) : e[r.field] = a;
|
|
1698
1698
|
},
|
|
1699
1699
|
placeholder: n
|
|
1700
1700
|
}, s), {
|
|
@@ -1703,7 +1703,7 @@ const ks = {
|
|
|
1703
1703
|
},
|
|
1704
1704
|
validateForm(t) {
|
|
1705
1705
|
return new Promise((e, r) => {
|
|
1706
|
-
t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(
|
|
1706
|
+
t.runtimeCore.formRef.value.validate((n) => n ? r(n) : e(t.cleanFallbackFields(q(t.runtimeCore.processor.processedModel.value))));
|
|
1707
1707
|
});
|
|
1708
1708
|
},
|
|
1709
1709
|
clearValidate(t) {
|
|
@@ -1711,7 +1711,7 @@ const ks = {
|
|
|
1711
1711
|
(r = (e = t.formRef.value) == null ? void 0 : e.restoreValidation) == null || r.call(e);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
},
|
|
1714
|
+
}, L = class L {
|
|
1715
1715
|
static getPlaceholderPrefixPresetByComponentName() {
|
|
1716
1716
|
const e = {
|
|
1717
1717
|
请选择: ["select", "tree"],
|
|
@@ -1724,7 +1724,7 @@ const ks = {
|
|
|
1724
1724
|
return r;
|
|
1725
1725
|
}
|
|
1726
1726
|
};
|
|
1727
|
-
f(
|
|
1727
|
+
f(L, "schemaPreset", {
|
|
1728
1728
|
type: {
|
|
1729
1729
|
defaultValue: "item"
|
|
1730
1730
|
},
|
|
@@ -1770,13 +1770,13 @@ f(q, "schemaPreset", {
|
|
|
1770
1770
|
runtime: {
|
|
1771
1771
|
default: void 0
|
|
1772
1772
|
}
|
|
1773
|
-
}), f(
|
|
1773
|
+
}), f(L, "componentPropsPreset", {
|
|
1774
1774
|
options: {
|
|
1775
1775
|
defaultValue: []
|
|
1776
1776
|
}
|
|
1777
1777
|
}), // 基于基本功能提出基本预设
|
|
1778
|
-
f(
|
|
1779
|
-
let ye =
|
|
1778
|
+
f(L, "placeholderPresetByComponentName", L.getPlaceholderPrefixPresetByComponentName());
|
|
1779
|
+
let ye = L;
|
|
1780
1780
|
const w = {
|
|
1781
1781
|
...ye,
|
|
1782
1782
|
adapters: {
|