@harbor-design/proform 1.4.0 → 1.4.2
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 +305 -308
- package/dist/types/src/types/formCustomizerTypes.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
var ze = Object.defineProperty;
|
|
2
2
|
var Le = (r, e, t) => e in r ? ze(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var l = (r, e, t) => (Le(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { ref as L, readonly as
|
|
4
|
+
import { ref as L, readonly as Ie, nextTick as _, isRef as U, watch as E, isReactive as T, watchEffect as D, toRaw as x, reactive as W, createVNode as m, mergeProps as $, withDirectives as He, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as Ke } from "vue";
|
|
5
5
|
var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, A = We || Xe || Function("return this")(), R = A.Symbol, we = Object.prototype, Ye = we.hasOwnProperty, Ze = we.toString, N = R ? R.toStringTag : void 0;
|
|
6
6
|
function Je(r) {
|
|
7
7
|
var e = Ye.call(r, N), t = r[N];
|
|
8
8
|
try {
|
|
9
9
|
r[N] = void 0;
|
|
10
|
-
var
|
|
10
|
+
var i = !0;
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
return
|
|
13
|
+
var s = Ze.call(r);
|
|
14
|
+
return i && (e ? r[N] = t : delete r[N]), s;
|
|
15
15
|
}
|
|
16
16
|
var Qe = Object.prototype, Ae = Qe.toString;
|
|
17
17
|
function ke(r) {
|
|
18
18
|
return Ae.call(r);
|
|
19
19
|
}
|
|
20
|
-
var et = "[object Null]", tt = "[object Undefined]",
|
|
20
|
+
var et = "[object Null]", tt = "[object Undefined]", Ce = R ? R.toStringTag : void 0;
|
|
21
21
|
function je(r) {
|
|
22
|
-
return r == null ? r === void 0 ? tt : et :
|
|
22
|
+
return r == null ? r === void 0 ? tt : et : Ce && Ce in Object(r) ? Je(r) : ke(r);
|
|
23
23
|
}
|
|
24
24
|
function rt(r) {
|
|
25
25
|
return r != null && typeof r == "object";
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var it = "[object Symbol]";
|
|
28
28
|
function k(r) {
|
|
29
|
-
return typeof r == "symbol" || rt(r) && je(r) ==
|
|
29
|
+
return typeof r == "symbol" || rt(r) && je(r) == it;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
for (var t = -1,
|
|
33
|
-
|
|
34
|
-
return
|
|
31
|
+
function st(r, e) {
|
|
32
|
+
for (var t = -1, i = r == null ? 0 : r.length, s = Array(i); ++t < i; )
|
|
33
|
+
s[t] = e(r[t], t, r);
|
|
34
|
+
return s;
|
|
35
35
|
}
|
|
36
36
|
var ee = Array.isArray, nt = 1 / 0, Se = R ? R.prototype : void 0, Oe = Se ? Se.toString : void 0;
|
|
37
37
|
function Me(r) {
|
|
38
38
|
if (typeof r == "string")
|
|
39
39
|
return r;
|
|
40
40
|
if (ee(r))
|
|
41
|
-
return
|
|
41
|
+
return st(r, Me) + "";
|
|
42
42
|
if (k(r))
|
|
43
43
|
return Oe ? Oe.call(r) : "";
|
|
44
44
|
var e = r + "";
|
|
@@ -76,21 +76,21 @@ function ht(r) {
|
|
|
76
76
|
}
|
|
77
77
|
return "";
|
|
78
78
|
}
|
|
79
|
-
var mt = /[\\^$.*+?()[\]{}|]/g, gt = /^\[object .+?Constructor\]$/,
|
|
79
|
+
var mt = /[\\^$.*+?()[\]{}|]/g, gt = /^\[object .+?Constructor\]$/, vt = Function.prototype, bt = Object.prototype, yt = vt.toString, _t = bt.hasOwnProperty, Pt = RegExp(
|
|
80
80
|
"^" + yt.call(_t).replace(mt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
81
81
|
);
|
|
82
|
-
function
|
|
82
|
+
function It(r) {
|
|
83
83
|
if (!G(r) || ct(r))
|
|
84
84
|
return !1;
|
|
85
85
|
var e = ft(r) ? Pt : gt;
|
|
86
86
|
return e.test(ht(r));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ct(r, e) {
|
|
89
89
|
return r == null ? void 0 : r[e];
|
|
90
90
|
}
|
|
91
91
|
function te(r, e) {
|
|
92
|
-
var t =
|
|
93
|
-
return
|
|
92
|
+
var t = Ct(r, e);
|
|
93
|
+
return It(t) ? t : void 0;
|
|
94
94
|
}
|
|
95
95
|
var Fe = function() {
|
|
96
96
|
try {
|
|
@@ -116,30 +116,30 @@ function xe(r, e) {
|
|
|
116
116
|
}
|
|
117
117
|
var wt = Object.prototype, jt = wt.hasOwnProperty;
|
|
118
118
|
function Mt(r, e, t) {
|
|
119
|
-
var
|
|
120
|
-
(!(jt.call(r, e) && xe(
|
|
119
|
+
var i = r[e];
|
|
120
|
+
(!(jt.call(r, e) && xe(i, t)) || t === void 0 && !(e in r)) && Ft(r, e, t);
|
|
121
121
|
}
|
|
122
122
|
var xt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
|
|
123
|
-
function
|
|
123
|
+
function Vt(r, e) {
|
|
124
124
|
if (ee(r))
|
|
125
125
|
return !1;
|
|
126
126
|
var t = typeof r;
|
|
127
127
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || k(r) ? !0 : Rt.test(r) || !xt.test(r) || e != null && r in Object(e);
|
|
128
128
|
}
|
|
129
129
|
var z = te(Object, "create");
|
|
130
|
-
function
|
|
130
|
+
function qt() {
|
|
131
131
|
this.__data__ = z ? z(null) : {}, this.size = 0;
|
|
132
132
|
}
|
|
133
133
|
function Nt(r) {
|
|
134
134
|
var e = this.has(r) && delete this.__data__[r];
|
|
135
135
|
return this.size -= e ? 1 : 0, e;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
137
|
+
var $t = "__lodash_hash_undefined__", Ut = Object.prototype, Tt = Ut.hasOwnProperty;
|
|
138
138
|
function zt(r) {
|
|
139
139
|
var e = this.__data__;
|
|
140
140
|
if (z) {
|
|
141
141
|
var t = e[r];
|
|
142
|
-
return t ===
|
|
142
|
+
return t === $t ? void 0 : t;
|
|
143
143
|
}
|
|
144
144
|
return Tt.call(e, r) ? e[r] : void 0;
|
|
145
145
|
}
|
|
@@ -156,11 +156,11 @@ function Bt(r, e) {
|
|
|
156
156
|
function F(r) {
|
|
157
157
|
var e = -1, t = r == null ? 0 : r.length;
|
|
158
158
|
for (this.clear(); ++e < t; ) {
|
|
159
|
-
var
|
|
160
|
-
this.set(
|
|
159
|
+
var i = r[e];
|
|
160
|
+
this.set(i[0], i[1]);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
F.prototype.clear =
|
|
163
|
+
F.prototype.clear = qt;
|
|
164
164
|
F.prototype.delete = Nt;
|
|
165
165
|
F.prototype.get = zt;
|
|
166
166
|
F.prototype.has = Dt;
|
|
@@ -179,8 +179,8 @@ function Yt(r) {
|
|
|
179
179
|
var e = this.__data__, t = B(e, r);
|
|
180
180
|
if (t < 0)
|
|
181
181
|
return !1;
|
|
182
|
-
var
|
|
183
|
-
return t ==
|
|
182
|
+
var i = e.length - 1;
|
|
183
|
+
return t == i ? e.pop() : Xt.call(e, t, 1), --this.size, !0;
|
|
184
184
|
}
|
|
185
185
|
function Zt(r) {
|
|
186
186
|
var e = this.__data__, t = B(e, r);
|
|
@@ -190,26 +190,26 @@ function Jt(r) {
|
|
|
190
190
|
return B(this.__data__, r) > -1;
|
|
191
191
|
}
|
|
192
192
|
function Qt(r, e) {
|
|
193
|
-
var t = this.__data__,
|
|
194
|
-
return
|
|
193
|
+
var t = this.__data__, i = B(t, r);
|
|
194
|
+
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function V(r) {
|
|
197
197
|
var e = -1, t = r == null ? 0 : r.length;
|
|
198
198
|
for (this.clear(); ++e < t; ) {
|
|
199
|
-
var
|
|
200
|
-
this.set(
|
|
199
|
+
var i = r[e];
|
|
200
|
+
this.set(i[0], i[1]);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
V.prototype.clear = Kt;
|
|
204
|
+
V.prototype.delete = Yt;
|
|
205
|
+
V.prototype.get = Zt;
|
|
206
|
+
V.prototype.has = Jt;
|
|
207
|
+
V.prototype.set = Qt;
|
|
208
208
|
var At = te(A, "Map");
|
|
209
209
|
function kt() {
|
|
210
210
|
this.size = 0, this.__data__ = {
|
|
211
211
|
hash: new F(),
|
|
212
|
-
map: new (At ||
|
|
212
|
+
map: new (At || V)(),
|
|
213
213
|
string: new F()
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -228,60 +228,60 @@ function tr(r) {
|
|
|
228
228
|
function rr(r) {
|
|
229
229
|
return K(this, r).get(r);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function ir(r) {
|
|
232
232
|
return K(this, r).has(r);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
var t = K(this, r),
|
|
236
|
-
return t.set(r, e), this.size += t.size ==
|
|
234
|
+
function sr(r, e) {
|
|
235
|
+
var t = K(this, r), i = t.size;
|
|
236
|
+
return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
|
|
237
237
|
}
|
|
238
238
|
function w(r) {
|
|
239
239
|
var e = -1, t = r == null ? 0 : r.length;
|
|
240
240
|
for (this.clear(); ++e < t; ) {
|
|
241
|
-
var
|
|
242
|
-
this.set(
|
|
241
|
+
var i = r[e];
|
|
242
|
+
this.set(i[0], i[1]);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
w.prototype.clear = kt;
|
|
246
246
|
w.prototype.delete = tr;
|
|
247
247
|
w.prototype.get = rr;
|
|
248
|
-
w.prototype.has =
|
|
249
|
-
w.prototype.set =
|
|
248
|
+
w.prototype.has = ir;
|
|
249
|
+
w.prototype.set = sr;
|
|
250
250
|
var nr = "Expected a function";
|
|
251
251
|
function re(r, e) {
|
|
252
252
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
253
253
|
throw new TypeError(nr);
|
|
254
254
|
var t = function() {
|
|
255
|
-
var
|
|
256
|
-
if (n.has(
|
|
257
|
-
return n.get(
|
|
258
|
-
var a = r.apply(this,
|
|
259
|
-
return t.cache = n.set(
|
|
255
|
+
var i = arguments, s = e ? e.apply(this, i) : i[0], n = t.cache;
|
|
256
|
+
if (n.has(s))
|
|
257
|
+
return n.get(s);
|
|
258
|
+
var a = r.apply(this, i);
|
|
259
|
+
return t.cache = n.set(s, a) || n, a;
|
|
260
260
|
};
|
|
261
261
|
return t.cache = new (re.Cache || w)(), t;
|
|
262
262
|
}
|
|
263
263
|
re.Cache = w;
|
|
264
264
|
var or = 500;
|
|
265
265
|
function ar(r) {
|
|
266
|
-
var e = re(r, function(
|
|
267
|
-
return t.size === or && t.clear(),
|
|
266
|
+
var e = re(r, function(i) {
|
|
267
|
+
return t.size === or && t.clear(), i;
|
|
268
268
|
}), t = e.cache;
|
|
269
269
|
return e;
|
|
270
270
|
}
|
|
271
271
|
var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g, fr = ar(function(r) {
|
|
272
272
|
var e = [];
|
|
273
|
-
return r.charCodeAt(0) === 46 && e.push(""), r.replace(lr, function(t,
|
|
274
|
-
e.push(
|
|
273
|
+
return r.charCodeAt(0) === 46 && e.push(""), r.replace(lr, function(t, i, s, n) {
|
|
274
|
+
e.push(s ? n.replace(ur, "$1") : i || t);
|
|
275
275
|
}), e;
|
|
276
276
|
});
|
|
277
277
|
function cr(r) {
|
|
278
278
|
return r == null ? "" : Me(r);
|
|
279
279
|
}
|
|
280
280
|
function Re(r, e) {
|
|
281
|
-
return ee(r) ? r :
|
|
281
|
+
return ee(r) ? r : Vt(r, e) ? [r] : fr(cr(r));
|
|
282
282
|
}
|
|
283
283
|
var dr = 1 / 0;
|
|
284
|
-
function
|
|
284
|
+
function Ve(r) {
|
|
285
285
|
if (typeof r == "string" || k(r))
|
|
286
286
|
return r;
|
|
287
287
|
var e = r + "";
|
|
@@ -289,25 +289,25 @@ function $e(r) {
|
|
|
289
289
|
}
|
|
290
290
|
function pr(r, e) {
|
|
291
291
|
e = Re(e, r);
|
|
292
|
-
for (var t = 0,
|
|
293
|
-
r = r[
|
|
294
|
-
return t && t ==
|
|
292
|
+
for (var t = 0, i = e.length; r != null && t < i; )
|
|
293
|
+
r = r[Ve(e[t++])];
|
|
294
|
+
return t && t == i ? r : void 0;
|
|
295
295
|
}
|
|
296
296
|
function H(r, e, t) {
|
|
297
|
-
var
|
|
298
|
-
return
|
|
297
|
+
var i = r == null ? void 0 : pr(r, e);
|
|
298
|
+
return i === void 0 ? t : i;
|
|
299
299
|
}
|
|
300
|
-
function hr(r, e, t,
|
|
300
|
+
function hr(r, e, t, i) {
|
|
301
301
|
if (!G(r))
|
|
302
302
|
return r;
|
|
303
303
|
e = Re(e, r);
|
|
304
|
-
for (var
|
|
305
|
-
var f =
|
|
304
|
+
for (var s = -1, n = e.length, a = n - 1, u = r; u != null && ++s < n; ) {
|
|
305
|
+
var f = Ve(e[s]), d = t;
|
|
306
306
|
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
307
307
|
return r;
|
|
308
|
-
if (
|
|
308
|
+
if (s != a) {
|
|
309
309
|
var p = u[f];
|
|
310
|
-
d =
|
|
310
|
+
d = i ? i(p, f, u) : void 0, d === void 0 && (d = G(p) ? p : Et(e[s + 1]) ? [] : {});
|
|
311
311
|
}
|
|
312
312
|
Mt(u, f, d), u = u[f];
|
|
313
313
|
}
|
|
@@ -382,52 +382,52 @@ class o {
|
|
|
382
382
|
return !!e.__proform_raw_object;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function v(r, ...e) {
|
|
386
386
|
return e.forEach((t) => {
|
|
387
387
|
if (Array.isArray(t))
|
|
388
|
-
Array.isArray(r) || (r = []), t.forEach((
|
|
389
|
-
typeof
|
|
388
|
+
Array.isArray(r) || (r = []), t.forEach((i, s) => {
|
|
389
|
+
typeof i == "object" && i !== null ? r[s] = v(Array.isArray(i) ? [] : {}, i) : r[s] = i;
|
|
390
390
|
});
|
|
391
391
|
else
|
|
392
|
-
for (const
|
|
393
|
-
t.hasOwnProperty(
|
|
392
|
+
for (const i in t)
|
|
393
|
+
t.hasOwnProperty(i) && (typeof t[i] == "object" && t[i] !== null ? r[i] = v(r[i] || {}, t[i]) : r[i] = t[i]);
|
|
394
394
|
}), r;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function I(r) {
|
|
397
397
|
const e = /* @__PURE__ */ new WeakMap();
|
|
398
|
-
function t(
|
|
399
|
-
if (
|
|
400
|
-
return
|
|
401
|
-
if (
|
|
402
|
-
return new Date(
|
|
403
|
-
if (
|
|
404
|
-
return new RegExp(
|
|
405
|
-
if (
|
|
398
|
+
function t(i) {
|
|
399
|
+
if (i === null || typeof i != "object")
|
|
400
|
+
return i;
|
|
401
|
+
if (i instanceof Date)
|
|
402
|
+
return new Date(i);
|
|
403
|
+
if (i instanceof RegExp)
|
|
404
|
+
return new RegExp(i);
|
|
405
|
+
if (i instanceof Map) {
|
|
406
406
|
const n = /* @__PURE__ */ new Map();
|
|
407
|
-
for (const [a, u] of
|
|
407
|
+
for (const [a, u] of i)
|
|
408
408
|
n.set(t(a), t(u));
|
|
409
409
|
return n;
|
|
410
410
|
}
|
|
411
|
-
if (
|
|
411
|
+
if (i instanceof Set) {
|
|
412
412
|
const n = /* @__PURE__ */ new Set();
|
|
413
|
-
for (const a of
|
|
413
|
+
for (const a of i)
|
|
414
414
|
n.add(t(a));
|
|
415
415
|
return n;
|
|
416
416
|
}
|
|
417
|
-
if (e.has(
|
|
418
|
-
return e.get(
|
|
419
|
-
if (Array.isArray(
|
|
417
|
+
if (e.has(i))
|
|
418
|
+
return e.get(i);
|
|
419
|
+
if (Array.isArray(i)) {
|
|
420
420
|
const n = [];
|
|
421
|
-
e.set(
|
|
422
|
-
for (let a = 0; a <
|
|
423
|
-
n[a] = t(
|
|
421
|
+
e.set(i, n);
|
|
422
|
+
for (let a = 0; a < i.length; a++)
|
|
423
|
+
n[a] = t(i[a]);
|
|
424
424
|
return n;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
427
|
-
e.set(
|
|
428
|
-
for (const n in
|
|
429
|
-
|
|
430
|
-
return
|
|
426
|
+
const s = Object.create(Object.getPrototypeOf(i));
|
|
427
|
+
e.set(i, s);
|
|
428
|
+
for (const n in i)
|
|
429
|
+
i.hasOwnProperty(n) && (s[n] = t(i[n]));
|
|
430
|
+
return s;
|
|
431
431
|
}
|
|
432
432
|
return t(r);
|
|
433
433
|
}
|
|
@@ -448,11 +448,11 @@ class mr {
|
|
|
448
448
|
})), e;
|
|
449
449
|
}
|
|
450
450
|
setup(e) {
|
|
451
|
-
return this.runtimeCore = e, this.readonlyReactiveModel.value =
|
|
451
|
+
return this.runtimeCore = e, this.readonlyReactiveModel.value = Ie(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;
|
|
452
452
|
}
|
|
453
453
|
submit() {
|
|
454
|
-
var
|
|
455
|
-
const e = (
|
|
454
|
+
var i;
|
|
455
|
+
const e = (i = c.getPreset(this.runtimeCore.ui)) == null ? void 0 : i.adapter, t = C.adapters[c.getUI(this.runtimeCore.ui)];
|
|
456
456
|
return (e == null ? void 0 : e.validateForm(this)) ?? (t == null ? void 0 : t.validateForm(this));
|
|
457
457
|
}
|
|
458
458
|
hydrate(e) {
|
|
@@ -462,7 +462,7 @@ class mr {
|
|
|
462
462
|
U(e) ? E(
|
|
463
463
|
() => e.value,
|
|
464
464
|
() => {
|
|
465
|
-
|
|
465
|
+
v(this.runtimeCore.model.value, e.value);
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
deep: !0,
|
|
@@ -471,13 +471,13 @@ class mr {
|
|
|
471
471
|
) : T(e) ? E(
|
|
472
472
|
() => e,
|
|
473
473
|
() => {
|
|
474
|
-
|
|
474
|
+
v(this.runtimeCore.model.value, e);
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
477
|
deep: !0,
|
|
478
478
|
immediate: !0
|
|
479
479
|
}
|
|
480
|
-
) :
|
|
480
|
+
) : v(this.runtimeCore.model.value, e);
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
483
|
lazy: !1
|
|
@@ -500,8 +500,8 @@ class mr {
|
|
|
500
500
|
_(() => {
|
|
501
501
|
const t = E(
|
|
502
502
|
() => this.readonlyReactiveModel.value,
|
|
503
|
-
(
|
|
504
|
-
e(
|
|
503
|
+
(i) => {
|
|
504
|
+
e(i, {
|
|
505
505
|
stopSubscribe() {
|
|
506
506
|
_(() => {
|
|
507
507
|
t();
|
|
@@ -518,9 +518,9 @@ class mr {
|
|
|
518
518
|
}
|
|
519
519
|
resetModel() {
|
|
520
520
|
var e;
|
|
521
|
-
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value =
|
|
521
|
+
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = I(
|
|
522
522
|
this.runtimeCore.processor.stableModel
|
|
523
|
-
), this.readonlyReactiveModel.value =
|
|
523
|
+
), this.readonlyReactiveModel.value = Ie(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
class J {
|
|
@@ -550,8 +550,8 @@ class gr {
|
|
|
550
550
|
l(this, "getRuntimeMeta");
|
|
551
551
|
l(this, "stableSchemas", []);
|
|
552
552
|
l(this, "stableModel", {});
|
|
553
|
-
l(this, "schemaPreset",
|
|
554
|
-
l(this, "componentPropsPreset",
|
|
553
|
+
l(this, "schemaPreset", C.schemaPreset);
|
|
554
|
+
l(this, "componentPropsPreset", C.componentPropsPreset);
|
|
555
555
|
l(this, "stableUpdaterProcessProgress");
|
|
556
556
|
l(this, "stableUpdaterTimes", 0);
|
|
557
557
|
l(this, "schemaEffect", new J());
|
|
@@ -571,33 +571,33 @@ class gr {
|
|
|
571
571
|
}
|
|
572
572
|
// 核心处理过程,接收一个初始的代理数据结构,由其衍生的有 parseSchema
|
|
573
573
|
parse(e, t) {
|
|
574
|
-
e.forEach((
|
|
575
|
-
this.parseItem(
|
|
574
|
+
e.forEach((i, s) => {
|
|
575
|
+
this.parseItem(i, s, t);
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
// 初始化空数据结构,避免后续复杂的 if else
|
|
579
579
|
initSchemas(e) {
|
|
580
580
|
return e.map((t) => {
|
|
581
|
-
const
|
|
582
|
-
return t.children && (
|
|
581
|
+
const i = {};
|
|
582
|
+
return t.children && (i.children = this.initSchemas(t.children)), i;
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
countFunctionDefaultValues(e) {
|
|
586
586
|
let t = 0;
|
|
587
|
-
const
|
|
588
|
-
function
|
|
589
|
-
if (!
|
|
590
|
-
|
|
587
|
+
const i = /* @__PURE__ */ new Set();
|
|
588
|
+
function s(n) {
|
|
589
|
+
if (!i.has(n) && (Array.isArray(n) || n !== null && typeof n == "object")) {
|
|
590
|
+
i.add(n);
|
|
591
591
|
for (const a in n)
|
|
592
|
-
n.hasOwnProperty(a) && (a === "defaultValue" && typeof n[a] == "function" && !n[a].toString().includes("[native code]") && t++,
|
|
592
|
+
n.hasOwnProperty(a) && (a === "defaultValue" && typeof n[a] == "function" && !n[a].toString().includes("[native code]") && t++, s(n[a]));
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return s(e), t;
|
|
596
596
|
}
|
|
597
597
|
// 派生过程,用于外部应用
|
|
598
598
|
parseSchemas(e, t) {
|
|
599
599
|
o.isArrayEmpty(this.processedSchemas.value) && (this.baseDefaultValueFunctionsLength = this.countFunctionDefaultValues(
|
|
600
|
-
|
|
600
|
+
I(e)
|
|
601
601
|
), this.processedSchemas.value = this.initSchemas(e)), this.parse(e, t);
|
|
602
602
|
}
|
|
603
603
|
parseStable(e) {
|
|
@@ -618,78 +618,78 @@ class gr {
|
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
// 核心单 schema 处理过程,接收一个对象键值对的数据结构
|
|
621
|
-
parseItem(e, t,
|
|
622
|
-
const
|
|
621
|
+
parseItem(e, t, i) {
|
|
622
|
+
const s = this, n = Array.from({
|
|
623
623
|
length: Object.keys(e).filter((u) => u !== "children").length
|
|
624
624
|
}).fill(!1);
|
|
625
|
-
this.objectParser({ data: e, index: t, updater: a, parentMeta:
|
|
625
|
+
this.objectParser({ data: e, index: t, updater: a, parentMeta: i });
|
|
626
626
|
function a(u) {
|
|
627
627
|
const f = u.index, d = u.key, p = u.keyIndex;
|
|
628
628
|
if (o.isUndefined(u.stable))
|
|
629
629
|
return;
|
|
630
|
-
const h =
|
|
630
|
+
const h = s.parseStable(u.stable), b = i == null ? void 0 : i.index, S = i == null ? void 0 : i.key;
|
|
631
631
|
let y = h;
|
|
632
|
-
if (o.isProcessInprogress(y) || (n[p] = !0),
|
|
633
|
-
const g =
|
|
634
|
-
g && o.isObject(g) && d !== "component" && (y =
|
|
632
|
+
if (o.isProcessInprogress(y) || (n[p] = !0), i) {
|
|
633
|
+
const g = s.processedSchemas.value[b][S][f][d];
|
|
634
|
+
g && o.isObject(g) && d !== "component" && (y = v(g, y)), s.processedSchemas.value[b][S][f][d] = y, s.stableUpdater(n);
|
|
635
635
|
} else {
|
|
636
|
-
const g =
|
|
637
|
-
g && o.isObject(g) && d !== "component" && (y =
|
|
636
|
+
const g = s.processedSchemas.value[f][d];
|
|
637
|
+
g && o.isObject(g) && d !== "component" && (y = v(g, y)), s.processedSchemas.value[f][d] = y, s.stableUpdater(n);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
// 只做基本的对象 parser
|
|
642
642
|
objectParser(e) {
|
|
643
643
|
const t = e.data;
|
|
644
|
-
Object.keys(t).forEach((
|
|
644
|
+
Object.keys(t).forEach((s, n) => {
|
|
645
645
|
var a, u;
|
|
646
|
-
if (
|
|
647
|
-
this.parseSchemas(t[
|
|
646
|
+
if (s === "children")
|
|
647
|
+
this.parseSchemas(t[s], {
|
|
648
648
|
...e,
|
|
649
|
-
key:
|
|
649
|
+
key: s,
|
|
650
650
|
keyIndex: n
|
|
651
651
|
});
|
|
652
652
|
else {
|
|
653
653
|
const f = (d) => {
|
|
654
654
|
e.updater({
|
|
655
655
|
...e,
|
|
656
|
-
key:
|
|
656
|
+
key: s,
|
|
657
657
|
keyIndex: n,
|
|
658
658
|
stable: d
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
o.isFunction(t[
|
|
661
|
+
o.isFunction(t[s]) ? s !== "defaultValue" ? this.schemaEffect.trackEffect(
|
|
662
662
|
() => {
|
|
663
|
-
if (
|
|
664
|
-
const d = t[
|
|
663
|
+
if (s === "component") {
|
|
664
|
+
const d = t[s](this.getRuntimeMeta());
|
|
665
665
|
this.promiseFieldParser(d, f, !1, {
|
|
666
666
|
rootIndex: e.index,
|
|
667
667
|
parentMeta: e.parentMeta
|
|
668
668
|
});
|
|
669
669
|
} else
|
|
670
|
-
this.fieldParser(t[
|
|
670
|
+
this.fieldParser(t[s], f, {
|
|
671
671
|
rootIndex: e.index,
|
|
672
672
|
parentMeta: e.parentMeta
|
|
673
673
|
});
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
676
|
lazy: !1,
|
|
677
|
-
identifier: `${(a = e.parentMeta) == null ? void 0 : a.key}${(u = e.parentMeta) == null ? void 0 : u.index}${e.index}${
|
|
677
|
+
identifier: `${(a = e.parentMeta) == null ? void 0 : a.key}${(u = e.parentMeta) == null ? void 0 : u.index}${e.index}${s}${n}`
|
|
678
678
|
}
|
|
679
679
|
) : this.defaultValueEffect.trackEffect(
|
|
680
680
|
() => {
|
|
681
681
|
const d = this.schemaEffect.trackEffect(
|
|
682
682
|
() => {
|
|
683
|
-
/\{\s*model\s*\}/.test(t[
|
|
684
|
-
t[
|
|
683
|
+
/\{\s*model\s*\}/.test(t[s].toString()) ? this.fieldParser(
|
|
684
|
+
t[s],
|
|
685
685
|
(p) => {
|
|
686
686
|
if (!p)
|
|
687
687
|
return f(p);
|
|
688
|
-
this.defaultValueInprogressMap.set(t[
|
|
688
|
+
this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
689
689
|
this.defaultValueInprogressMap.values()
|
|
690
690
|
).every((h) => {
|
|
691
|
-
var
|
|
692
|
-
return !((
|
|
691
|
+
var b;
|
|
692
|
+
return !((b = h == null ? void 0 : h.includes) != null && b.call(h, "undefined"));
|
|
693
693
|
}) ? (f(p), this.defaultValueEffect.clearEffects(), _(() => {
|
|
694
694
|
d();
|
|
695
695
|
})) : f(p);
|
|
@@ -699,13 +699,13 @@ class gr {
|
|
|
699
699
|
parentMeta: e.parentMeta
|
|
700
700
|
}
|
|
701
701
|
) : this.fieldParser(
|
|
702
|
-
t[
|
|
702
|
+
t[s],
|
|
703
703
|
(p) => {
|
|
704
|
-
this.defaultValueInprogressMap.set(t[
|
|
704
|
+
this.defaultValueInprogressMap.set(t[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
705
705
|
this.defaultValueInprogressMap.values()
|
|
706
706
|
).every((h) => {
|
|
707
|
-
var
|
|
708
|
-
return !((
|
|
707
|
+
var b;
|
|
708
|
+
return !((b = h == null ? void 0 : h.includes) != null && b.call(h, "undefined"));
|
|
709
709
|
}) ? (f(p), this.defaultValueEffect.clearEffects(), _(() => {
|
|
710
710
|
d();
|
|
711
711
|
})) : f(p);
|
|
@@ -724,33 +724,33 @@ class gr {
|
|
|
724
724
|
{
|
|
725
725
|
lazy: !1
|
|
726
726
|
}
|
|
727
|
-
) :
|
|
727
|
+
) : s === "component" || s === "slots" || s === "runtime" ? this.promiseFieldParser(t[s], f, !1, {
|
|
728
728
|
rootIndex: e.index,
|
|
729
729
|
parentMeta: e.parentMeta
|
|
730
|
-
}) : this.fieldParser(t[
|
|
730
|
+
}) : this.fieldParser(t[s], f, {
|
|
731
731
|
rootIndex: e.index,
|
|
732
732
|
parentMeta: e.parentMeta
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
promiseFieldParser(e, t,
|
|
737
|
+
promiseFieldParser(e, t, i, s) {
|
|
738
738
|
o.isPromise(e) ? e.then((n) => {
|
|
739
|
-
o.isString(n) && (n = Z(n, "")),
|
|
739
|
+
o.isString(n) && (n = Z(n, "")), i && o.isObject(n) && !o.isNativeObject(n) ? this.objectParser({
|
|
740
740
|
data: n,
|
|
741
741
|
updater: t,
|
|
742
|
-
index:
|
|
743
|
-
parentMeta:
|
|
742
|
+
index: s.rootIndex,
|
|
743
|
+
parentMeta: s.parentMeta
|
|
744
744
|
}) : t(n);
|
|
745
|
-
}) : (o.isString(e) && (e = Z(e, "")),
|
|
745
|
+
}) : (o.isString(e) && (e = Z(e, "")), i && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
|
|
746
746
|
data: e,
|
|
747
747
|
updater: t,
|
|
748
|
-
index:
|
|
749
|
-
parentMeta:
|
|
748
|
+
index: s.rootIndex,
|
|
749
|
+
parentMeta: s.parentMeta
|
|
750
750
|
}) : t(e));
|
|
751
751
|
}
|
|
752
752
|
// 对任意对象中单个字段的 parse: 做基本处理
|
|
753
|
-
fieldParser(e, t,
|
|
753
|
+
fieldParser(e, t, i, s = !0) {
|
|
754
754
|
if (o.isFunction(e))
|
|
755
755
|
if (e.name.startsWith("__proform_raw_"))
|
|
756
756
|
t(
|
|
@@ -763,20 +763,20 @@ class gr {
|
|
|
763
763
|
t(e);
|
|
764
764
|
else if (e.__proform_cached_result) {
|
|
765
765
|
const n = e.__proform_cached_result;
|
|
766
|
-
this.promiseFieldParser(n, t,
|
|
766
|
+
this.promiseFieldParser(n, t, s, i);
|
|
767
767
|
} else {
|
|
768
768
|
const n = e(this.getRuntimeMeta());
|
|
769
|
-
e.name.startsWith("__proform_onetime_") && (e.__proform_cached_result = n), this.promiseFieldParser(n, t,
|
|
769
|
+
e.name.startsWith("__proform_onetime_") && (e.__proform_cached_result = n), this.promiseFieldParser(n, t, s, i);
|
|
770
770
|
}
|
|
771
771
|
else
|
|
772
772
|
U(e) ? E(
|
|
773
773
|
() => e.value,
|
|
774
774
|
() => {
|
|
775
|
-
o.isUndefined(e.value) || (
|
|
775
|
+
o.isUndefined(e.value) || (s && o.isObject(e.value) && !o.isNativeObject(e.value) ? this.objectParser({
|
|
776
776
|
data: e.value,
|
|
777
777
|
updater: t,
|
|
778
|
-
index:
|
|
779
|
-
parentMeta:
|
|
778
|
+
index: i.rootIndex,
|
|
779
|
+
parentMeta: i.parentMeta
|
|
780
780
|
}) : t(e.value));
|
|
781
781
|
},
|
|
782
782
|
{
|
|
@@ -786,41 +786,41 @@ class gr {
|
|
|
786
786
|
) : T(e) ? E(
|
|
787
787
|
() => e,
|
|
788
788
|
() => {
|
|
789
|
-
o.isUndefined(e) || (
|
|
789
|
+
o.isUndefined(e) || (s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
|
|
790
790
|
data: e,
|
|
791
791
|
updater: t,
|
|
792
|
-
index:
|
|
793
|
-
parentMeta:
|
|
792
|
+
index: i.rootIndex,
|
|
793
|
+
parentMeta: i.parentMeta
|
|
794
794
|
}) : t(e));
|
|
795
795
|
},
|
|
796
796
|
{
|
|
797
797
|
immediate: !0,
|
|
798
798
|
deep: !0
|
|
799
799
|
}
|
|
800
|
-
) :
|
|
800
|
+
) : s && o.isObject(e) && !o.isNativeObject(e) ? this.objectParser({
|
|
801
801
|
data: e,
|
|
802
802
|
updater: t,
|
|
803
|
-
index:
|
|
804
|
-
parentMeta:
|
|
803
|
+
index: i.rootIndex,
|
|
804
|
+
parentMeta: i.parentMeta
|
|
805
805
|
}) : t(e);
|
|
806
806
|
}
|
|
807
807
|
modelProcessor(e) {
|
|
808
808
|
e.map(
|
|
809
809
|
(t) => this.createModel(t, this.processedModel.value)
|
|
810
810
|
), o.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && _(() => {
|
|
811
|
-
this.stableModel =
|
|
811
|
+
this.stableModel = I(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects();
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
|
-
setModel(e, t,
|
|
815
|
-
o.isFunction(t) ? P(e, t(),
|
|
816
|
-
[t]:
|
|
814
|
+
setModel(e, t, i) {
|
|
815
|
+
o.isFunction(t) ? P(e, t(), i) : v(e, {
|
|
816
|
+
[t]: i
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
createModel(e, t) {
|
|
820
|
-
o.isListSchema(e) && (t[e.field] || this.setModel(t, e.field, [{}]), e.children.forEach((
|
|
821
|
-
this.createModel(
|
|
822
|
-
})), o.isGroupSchema(e) && e.children.forEach((
|
|
823
|
-
this.createModel(
|
|
820
|
+
o.isListSchema(e) && (t[e.field] || this.setModel(t, e.field, [{}]), e.children.forEach((i) => {
|
|
821
|
+
this.createModel(i, t[e.field][0]);
|
|
822
|
+
})), o.isGroupSchema(e) && e.children.forEach((i) => {
|
|
823
|
+
this.createModel(i, t);
|
|
824
824
|
}), o.isItemSchema(e) && _(() => {
|
|
825
825
|
if ("defaultValue" in e)
|
|
826
826
|
this.setModel(t, e.field, e.defaultValue);
|
|
@@ -854,7 +854,7 @@ class j {
|
|
|
854
854
|
return c.presets.uiPresets[e ?? c.presets.ui].container.ListItem;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
class
|
|
857
|
+
class vr {
|
|
858
858
|
constructor(e) {
|
|
859
859
|
this.ui = e;
|
|
860
860
|
}
|
|
@@ -863,32 +863,32 @@ class br {
|
|
|
863
863
|
return (t = c.presets.uiPresets[this.ui]) == null ? void 0 : t.native;
|
|
864
864
|
}
|
|
865
865
|
getRuntimeField(e) {
|
|
866
|
-
var
|
|
867
|
-
const t = (
|
|
868
|
-
return (t == null ? void 0 : t.getRuntimeField(e)) ?? (
|
|
866
|
+
var s;
|
|
867
|
+
const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
|
|
868
|
+
return (t == null ? void 0 : t.getRuntimeField(e)) ?? (i == null ? void 0 : i.getRuntimeField(e));
|
|
869
869
|
}
|
|
870
870
|
getRuntimeRequired(e) {
|
|
871
|
-
var
|
|
872
|
-
const t = (
|
|
873
|
-
return (t == null ? void 0 : t.getRuntimeRequired(e)) ?? (
|
|
871
|
+
var s;
|
|
872
|
+
const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
|
|
873
|
+
return (t == null ? void 0 : t.getRuntimeRequired(e)) ?? (i == null ? void 0 : i.getRuntimeRequired(e));
|
|
874
874
|
}
|
|
875
875
|
getFormModelPropName() {
|
|
876
|
-
var
|
|
877
|
-
const e = (
|
|
876
|
+
var i;
|
|
877
|
+
const e = (i = c.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, t = C.adapters[c.getUI(this.ui)];
|
|
878
878
|
return (e == null ? void 0 : e.getFormModelPropName()) ?? (t == null ? void 0 : t.getFormModelPropName());
|
|
879
879
|
}
|
|
880
880
|
formComponentRenderer(e) {
|
|
881
|
-
var
|
|
882
|
-
const t = (
|
|
883
|
-
return (t == null ? void 0 : t.formComponentRenderer(e)) ?? (
|
|
881
|
+
var s;
|
|
882
|
+
const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
|
|
883
|
+
return (t == null ? void 0 : t.formComponentRenderer(e)) ?? (i == null ? void 0 : i.formComponentRenderer(e));
|
|
884
884
|
}
|
|
885
885
|
clearValidate(e) {
|
|
886
|
-
var
|
|
887
|
-
const t = (
|
|
888
|
-
return (t == null ? void 0 : t.clearValidate(e)) ?? (
|
|
886
|
+
var s;
|
|
887
|
+
const t = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = C.adapters[c.getUI(this.ui)];
|
|
888
|
+
return (t == null ? void 0 : t.clearValidate(e)) ?? (i == null ? void 0 : i.clearValidate(e));
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function br(r) {
|
|
892
892
|
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Be(r);
|
|
893
893
|
}
|
|
894
894
|
class yr {
|
|
@@ -919,7 +919,7 @@ class yr {
|
|
|
919
919
|
l(this, "shareHistory", /* @__PURE__ */ new Map());
|
|
920
920
|
this.setup = e, this.processor = new gr(this);
|
|
921
921
|
const t = this.setup(this);
|
|
922
|
-
if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new
|
|
922
|
+
if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new vr(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), U(t.schemas))
|
|
923
923
|
E(
|
|
924
924
|
// @ts-expect-error
|
|
925
925
|
() => t.schemas.value,
|
|
@@ -931,9 +931,9 @@ class yr {
|
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
933
|
else if (T(t.schemas)) {
|
|
934
|
-
const
|
|
934
|
+
const i = E(() => t.schemas, () => {
|
|
935
935
|
this.processor.parseSchemas(t.schemas), _(() => {
|
|
936
|
-
|
|
936
|
+
i();
|
|
937
937
|
});
|
|
938
938
|
}, {
|
|
939
939
|
deep: !0
|
|
@@ -943,66 +943,66 @@ class yr {
|
|
|
943
943
|
}
|
|
944
944
|
getRuntimeMeta() {
|
|
945
945
|
return {
|
|
946
|
-
model: x(
|
|
946
|
+
model: x(I(this.model.value)),
|
|
947
947
|
reactiveModel: this.model.value,
|
|
948
948
|
shared: this.shared,
|
|
949
949
|
// share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
|
|
950
950
|
share: (t) => {
|
|
951
951
|
_(() => {
|
|
952
|
-
Object.keys(t).forEach((
|
|
953
|
-
U(t[
|
|
954
|
-
P(this.shared,
|
|
955
|
-
}) : T(t[
|
|
956
|
-
P(this.shared,
|
|
957
|
-
}) : (P(this.shared,
|
|
952
|
+
Object.keys(t).forEach((i) => {
|
|
953
|
+
U(t[i]) ? D(() => {
|
|
954
|
+
P(this.shared, i, t[i].value), this.shareHistory.get(i) !== t[i].value && (this.shareHistory.set(i, t[i].value), this.processor.schemaEffect.triggerEffects());
|
|
955
|
+
}) : T(t[i]) ? D(() => {
|
|
956
|
+
P(this.shared, i, t[i]), this.shareHistory.get(i) !== t[i] && (this.shareHistory.set(i, t[i]), this.processor.schemaEffect.triggerEffects());
|
|
957
|
+
}) : (P(this.shared, i, t[i]), this.shareHistory.get(i) !== t[i] && (this.shareHistory.set(i, t[i]), this.processor.schemaEffect.triggerEffects()));
|
|
958
958
|
});
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
runtimeItemProcessor(e, t,
|
|
964
|
-
var
|
|
963
|
+
runtimeItemProcessor(e, t, i = this.model.value, s) {
|
|
964
|
+
var se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, ge, ve, be, ye, _e;
|
|
965
965
|
const n = x(e.component);
|
|
966
966
|
if (!n)
|
|
967
967
|
return;
|
|
968
|
-
(ne = (
|
|
969
|
-
const a =
|
|
968
|
+
(ne = (se = e.native) == null ? void 0 : se.props) != null && ne.Form && v(this.globalNativeFormOverride.props.Form, (ae = (oe = e.native) == null ? void 0 : oe.props) == null ? void 0 : ae.Form), (ue = (le = e.native) == null ? void 0 : le.slots) != null && ue.Form && v(this.globalNativeFormOverride.slots.Form, (ce = (fe = e.native) == null ? void 0 : fe.slots) == null ? void 0 : ce.Form);
|
|
969
|
+
const a = v(I((pe = (de = this.native) == null ? void 0 : de.slots) == null ? void 0 : pe.FormItem) ?? {}, (me = (he = e.native) == null ? void 0 : he.slots) == null ? void 0 : me.FormItem), u = {
|
|
970
970
|
display: "grid",
|
|
971
971
|
gridColumn: "1 / -1",
|
|
972
972
|
...e.grid
|
|
973
|
-
}, f =
|
|
973
|
+
}, f = v(I((ve = (ge = this.native) == null ? void 0 : ge.props) == null ? void 0 : ve.FormItem) ?? {}, (ye = (be = e.native) == null ? void 0 : be.props) == null ? void 0 : ye.FormItem), d = this.runtimeAdapter.getRuntimeField({
|
|
974
974
|
schema: e,
|
|
975
|
-
parentSchema:
|
|
975
|
+
parentSchema: s,
|
|
976
976
|
index: t
|
|
977
|
-
}), p = n.name, h = e.componentProps ?? {},
|
|
977
|
+
}), p = n.name, h = e.componentProps ?? {}, b = C.placeholderPresetByComponentName;
|
|
978
978
|
let S = e.placeholder, y = e.show;
|
|
979
979
|
y === void 0 && (y = !0);
|
|
980
980
|
let g = e.label ?? "", O;
|
|
981
|
-
if (e.runtime ? O = e.runtime : O = (
|
|
982
|
-
let
|
|
983
|
-
o.isUndefined(p) ? S = `${
|
|
984
|
-
|
|
985
|
-
p.toLowerCase().includes(Pe.toLowerCase()) && (
|
|
986
|
-
}), S = `${
|
|
981
|
+
if (e.runtime ? O = e.runtime : O = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(O) && (g = Z((_e = O == null ? void 0 : O.customizeListItemLabel) == null ? void 0 : _e.call(O, e.label ?? "", t + 1), "")), !S) {
|
|
982
|
+
let q = "请输入";
|
|
983
|
+
o.isUndefined(p) ? S = `${q}${g}` : /* @ts-expect-error */ b[p.toLowerCase()] ? (q = // @ts-expect-error
|
|
984
|
+
b[p.toLowerCase()], S = `${q}${g}`) : (Object.keys(b).forEach((Pe) => {
|
|
985
|
+
p.toLowerCase().includes(Pe.toLowerCase()) && (q = b[Pe]);
|
|
986
|
+
}), S = `${q}${g}`);
|
|
987
987
|
}
|
|
988
|
-
const
|
|
988
|
+
const qe = this.runtimeAdapter.getRuntimeRequired({
|
|
989
989
|
...e,
|
|
990
990
|
label: g
|
|
991
|
-
}), Ne = j.getItemContainer(this),
|
|
991
|
+
}), Ne = j.getItemContainer(this), $e = j.getFormItemContainer(this), Ue = this, Te = e.componentSlots;
|
|
992
992
|
return m("div", {
|
|
993
993
|
style: u
|
|
994
994
|
}, [m(Ne, {
|
|
995
995
|
show: y
|
|
996
996
|
}, {
|
|
997
997
|
default() {
|
|
998
|
-
return y && m(
|
|
998
|
+
return y && m($e, $(f, {
|
|
999
999
|
label: `${g ? `${g}:` : ""}`
|
|
1000
|
-
}, d,
|
|
1000
|
+
}, d, qe), {
|
|
1001
1001
|
default() {
|
|
1002
1002
|
return Ue.runtimeAdapter.formComponentRenderer({
|
|
1003
1003
|
Component: n,
|
|
1004
1004
|
schema: e,
|
|
1005
|
-
baseModel:
|
|
1005
|
+
baseModel: i,
|
|
1006
1006
|
placeholder: S,
|
|
1007
1007
|
componentSlots: Te,
|
|
1008
1008
|
props: h
|
|
@@ -1015,23 +1015,23 @@ class yr {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
runtimeGroupProcessor(e) {
|
|
1017
1017
|
let t;
|
|
1018
|
-
const
|
|
1018
|
+
const i = {
|
|
1019
1019
|
display: "grid",
|
|
1020
1020
|
gridColumn: "1 / -1",
|
|
1021
1021
|
...e.grid
|
|
1022
|
-
},
|
|
1022
|
+
}, s = j.getGroupContainer(this);
|
|
1023
1023
|
let n = e.show;
|
|
1024
1024
|
return n === void 0 && (n = !0), m("div", {
|
|
1025
|
-
style:
|
|
1026
|
-
}, [n && m(
|
|
1025
|
+
style: i
|
|
1026
|
+
}, [n && m(s, {
|
|
1027
1027
|
schema: e
|
|
1028
|
-
},
|
|
1028
|
+
}, br(t = e.children.map((a) => this.runtimeItemProcessor(a))) ? t : {
|
|
1029
1029
|
default: () => [t]
|
|
1030
1030
|
})]);
|
|
1031
1031
|
}
|
|
1032
1032
|
addListItem(e) {
|
|
1033
1033
|
var t;
|
|
1034
|
-
console.log("this", this.processor.stableModel, e.field), (t = this.processor.stableModel[e.field]) != null && t[0] && this.model.value[e.field].push(
|
|
1034
|
+
console.log("this", this.processor.stableModel, e.field), (t = this.processor.stableModel[e.field]) != null && t[0] && this.model.value[e.field].push(I(this.processor.stableModel[e.field][0])), this.runtimeAdapter.clearValidate(this);
|
|
1035
1035
|
}
|
|
1036
1036
|
deleteListItem(e, t) {
|
|
1037
1037
|
this.model.value[e.field].splice(t, 1), this.runtimeAdapter.clearValidate(this);
|
|
@@ -1041,20 +1041,20 @@ class yr {
|
|
|
1041
1041
|
display: "grid",
|
|
1042
1042
|
gridColumn: "1 / -1",
|
|
1043
1043
|
...e.grid
|
|
1044
|
-
},
|
|
1045
|
-
|
|
1046
|
-
let
|
|
1047
|
-
|
|
1044
|
+
}, i = this;
|
|
1045
|
+
i.model.value[e.field] || (i.model.value[e.field] = [{}]);
|
|
1046
|
+
let s = e.show;
|
|
1047
|
+
s === void 0 && (s = !0);
|
|
1048
1048
|
const n = j.getListContainer(this), a = j.getListItemContainer(this);
|
|
1049
1049
|
return m("div", {
|
|
1050
1050
|
style: t
|
|
1051
|
-
}, [
|
|
1051
|
+
}, [s && m(n, {
|
|
1052
1052
|
schema: e
|
|
1053
1053
|
}, {
|
|
1054
1054
|
default() {
|
|
1055
|
-
return
|
|
1055
|
+
return i.model.value[e.field].map((u, f) => m(a, null, {
|
|
1056
1056
|
default() {
|
|
1057
|
-
return e.children.map((d) =>
|
|
1057
|
+
return e.children.map((d) => i.runtimeItemProcessor(d, f, u, e));
|
|
1058
1058
|
},
|
|
1059
1059
|
delete({
|
|
1060
1060
|
container: d
|
|
@@ -1062,8 +1062,8 @@ class yr {
|
|
|
1062
1062
|
var h;
|
|
1063
1063
|
const p = d ?? m("button", null, null);
|
|
1064
1064
|
return He(m(p, {
|
|
1065
|
-
onClick: () =>
|
|
1066
|
-
}, null), [[De, ((h =
|
|
1065
|
+
onClick: () => i.deleteListItem(e, f)
|
|
1066
|
+
}, null), [[De, ((h = i.model.value[e.field]) == null ? void 0 : h.length) > 1]]);
|
|
1067
1067
|
}
|
|
1068
1068
|
}));
|
|
1069
1069
|
},
|
|
@@ -1072,7 +1072,7 @@ class yr {
|
|
|
1072
1072
|
} = {}) {
|
|
1073
1073
|
const f = u ?? m("button", null, [Ge("添加")]);
|
|
1074
1074
|
return m(f, {
|
|
1075
|
-
onClick: () =>
|
|
1075
|
+
onClick: () => i.addListItem(e)
|
|
1076
1076
|
}, null);
|
|
1077
1077
|
}
|
|
1078
1078
|
})]);
|
|
@@ -1087,8 +1087,8 @@ class yr {
|
|
|
1087
1087
|
gridColumn: "1 / -1",
|
|
1088
1088
|
gridAutoColumns: "1fr",
|
|
1089
1089
|
...this.grid
|
|
1090
|
-
}, t = this,
|
|
1091
|
-
return m(n,
|
|
1090
|
+
}, t = this, i = v(this.globalNativeFormOverride.props.Form, I((f = (u = this.native) == null ? void 0 : u.props) == null ? void 0 : f.Form) ?? {}), s = v(this.globalNativeFormOverride.slots.Form, I((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = j.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
|
|
1091
|
+
return m(n, $(i, {
|
|
1092
1092
|
ref: this.formRef
|
|
1093
1093
|
}, {
|
|
1094
1094
|
[a]: this.model.value
|
|
@@ -1098,18 +1098,18 @@ class yr {
|
|
|
1098
1098
|
style: e
|
|
1099
1099
|
}, [t.runtimeProcessor(t.schemas.value)]);
|
|
1100
1100
|
},
|
|
1101
|
-
...
|
|
1101
|
+
...s
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
class c {
|
|
1106
1106
|
static getPreset(e) {
|
|
1107
|
-
var t,
|
|
1108
|
-
return (
|
|
1107
|
+
var t, i, s;
|
|
1108
|
+
return (i = (t = this.presets.uiPresets) == null ? void 0 : t[e]) != null && i.extend ? this.presets.uiPresets[(s = this.presets.uiPresets[e]) == null ? void 0 : s.extend] : this.presets.uiPresets[e];
|
|
1109
1109
|
}
|
|
1110
1110
|
static getUI(e) {
|
|
1111
|
-
var t,
|
|
1112
|
-
return (
|
|
1111
|
+
var t, i, s;
|
|
1112
|
+
return (i = (t = this.presets.uiPresets) == null ? void 0 : t[e]) != null && i.extend ? (s = this.presets.uiPresets[e]) == null ? void 0 : s.extend : e;
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
l(c, "presets");
|
|
@@ -1131,27 +1131,26 @@ const _r = {
|
|
|
1131
1131
|
};
|
|
1132
1132
|
},
|
|
1133
1133
|
getRuntimeRequired(r) {
|
|
1134
|
-
var
|
|
1134
|
+
var t;
|
|
1135
|
+
let e = `${r.label}是必填项`;
|
|
1135
1136
|
if (r.required)
|
|
1136
|
-
if (!r.rules)
|
|
1137
|
+
if (o.isString(r.required) && (e = r.required), !r.rules)
|
|
1137
1138
|
r.rules = [], r.rules.push({
|
|
1138
1139
|
required: !0,
|
|
1139
|
-
message:
|
|
1140
|
+
message: e
|
|
1140
1141
|
});
|
|
1141
1142
|
else {
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1143
|
+
const i = r.rules.findIndex((s) => !o.isUndefined(s.required));
|
|
1144
|
+
i !== -1 ? (r.rules[i].required = !0, r.rules[i].message = e) : r.rules.unshift({
|
|
1144
1145
|
required: !0,
|
|
1145
|
-
message:
|
|
1146
|
+
message: e
|
|
1146
1147
|
});
|
|
1147
1148
|
}
|
|
1148
|
-
else
|
|
1149
|
-
|
|
1150
|
-
t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
|
|
1149
|
+
else
|
|
1150
|
+
r.rules && ((t = r.rules) == null ? void 0 : t.findIndex((s) => !!s.required)) === -1 && r.rules.unshift({
|
|
1151
1151
|
required: !0,
|
|
1152
|
-
message:
|
|
1152
|
+
message: e
|
|
1153
1153
|
});
|
|
1154
|
-
}
|
|
1155
1154
|
return {
|
|
1156
1155
|
rules: r.rules
|
|
1157
1156
|
};
|
|
@@ -1163,24 +1162,24 @@ const _r = {
|
|
|
1163
1162
|
Component: r,
|
|
1164
1163
|
baseModel: e,
|
|
1165
1164
|
schema: t,
|
|
1166
|
-
placeholder:
|
|
1167
|
-
componentSlots:
|
|
1165
|
+
placeholder: i,
|
|
1166
|
+
componentSlots: s,
|
|
1168
1167
|
props: n
|
|
1169
1168
|
}) {
|
|
1170
1169
|
let a;
|
|
1171
|
-
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r,
|
|
1170
|
+
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r, $({
|
|
1172
1171
|
modelValue: a,
|
|
1173
1172
|
"onUpdate:modelValue": (u) => {
|
|
1174
1173
|
o.isFunction(t.field) ? P(e, t.field(), u) : e[t.field] = u;
|
|
1175
1174
|
},
|
|
1176
|
-
placeholder:
|
|
1175
|
+
placeholder: i
|
|
1177
1176
|
}, n), {
|
|
1178
|
-
...
|
|
1177
|
+
...s
|
|
1179
1178
|
});
|
|
1180
1179
|
},
|
|
1181
1180
|
validateForm(r) {
|
|
1182
1181
|
return new Promise((e, t) => {
|
|
1183
|
-
r.runtimeCore.formRef.value.validate((
|
|
1182
|
+
r.runtimeCore.formRef.value.validate((i) => i ? t(i) : e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))));
|
|
1184
1183
|
});
|
|
1185
1184
|
},
|
|
1186
1185
|
clearValidate(r) {
|
|
@@ -1198,27 +1197,26 @@ const _r = {
|
|
|
1198
1197
|
};
|
|
1199
1198
|
},
|
|
1200
1199
|
getRuntimeRequired(r) {
|
|
1201
|
-
var
|
|
1200
|
+
var t;
|
|
1201
|
+
let e = `${r.label}是必填项`;
|
|
1202
1202
|
if (r.required)
|
|
1203
|
-
if (!r.rules)
|
|
1203
|
+
if (o.isString(r.required) && (e = r.required), !r.rules)
|
|
1204
1204
|
r.rules = [], r.rules.push({
|
|
1205
1205
|
required: !0,
|
|
1206
|
-
message:
|
|
1206
|
+
message: e
|
|
1207
1207
|
});
|
|
1208
1208
|
else {
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1209
|
+
const i = r.rules.findIndex((s) => !o.isUndefined(s.required));
|
|
1210
|
+
i !== -1 ? (r.rules[i].required = !0, r.rules[i].message = e) : r.rules.unshift({
|
|
1211
1211
|
required: !0,
|
|
1212
|
-
message:
|
|
1212
|
+
message: e
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
|
-
else
|
|
1216
|
-
|
|
1217
|
-
t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
|
|
1215
|
+
else
|
|
1216
|
+
r.rules && ((t = r.rules) == null ? void 0 : t.findIndex((s) => !!s.required)) === -1 && r.rules.unshift({
|
|
1218
1217
|
required: !0,
|
|
1219
|
-
message:
|
|
1218
|
+
message: e
|
|
1220
1219
|
});
|
|
1221
|
-
}
|
|
1222
1220
|
return {
|
|
1223
1221
|
rules: r.rules,
|
|
1224
1222
|
required: r.required
|
|
@@ -1231,28 +1229,28 @@ const _r = {
|
|
|
1231
1229
|
Component: r,
|
|
1232
1230
|
baseModel: e,
|
|
1233
1231
|
schema: t,
|
|
1234
|
-
placeholder:
|
|
1235
|
-
componentSlots:
|
|
1232
|
+
placeholder: i,
|
|
1233
|
+
componentSlots: s,
|
|
1236
1234
|
props: n
|
|
1237
1235
|
}) {
|
|
1238
1236
|
let a;
|
|
1239
|
-
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r,
|
|
1237
|
+
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r, $({
|
|
1240
1238
|
modelValue: a,
|
|
1241
1239
|
"onUpdate:modelValue": (u) => {
|
|
1242
1240
|
o.isFunction(t.field) ? P(e, t.field(), u) : e[t.field] = u;
|
|
1243
1241
|
},
|
|
1244
|
-
placeholder:
|
|
1242
|
+
placeholder: i
|
|
1245
1243
|
}, n), {
|
|
1246
|
-
...
|
|
1244
|
+
...s
|
|
1247
1245
|
});
|
|
1248
1246
|
},
|
|
1249
1247
|
validateForm(r) {
|
|
1250
1248
|
return new Promise((e, t) => {
|
|
1251
1249
|
r.runtimeCore.formRef.value.validate().then(({
|
|
1252
|
-
valid:
|
|
1253
|
-
errors:
|
|
1250
|
+
valid: i,
|
|
1251
|
+
errors: s
|
|
1254
1252
|
}) => {
|
|
1255
|
-
|
|
1253
|
+
i ? e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))) : t(s);
|
|
1256
1254
|
});
|
|
1257
1255
|
});
|
|
1258
1256
|
},
|
|
@@ -1271,30 +1269,29 @@ const _r = {
|
|
|
1271
1269
|
};
|
|
1272
1270
|
},
|
|
1273
1271
|
getRuntimeRequired(r) {
|
|
1274
|
-
var
|
|
1272
|
+
var t;
|
|
1273
|
+
let e = `${r.label}是必填项`;
|
|
1275
1274
|
if (r.required)
|
|
1276
|
-
if (!r.rules)
|
|
1275
|
+
if (o.isString(r.required) && (e = r.required), !r.rules)
|
|
1277
1276
|
r.rules = [], r.rules.push({
|
|
1278
1277
|
required: !0,
|
|
1279
|
-
message:
|
|
1278
|
+
message: e,
|
|
1280
1279
|
trigger: ["input", "blur"]
|
|
1281
1280
|
});
|
|
1282
1281
|
else {
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1282
|
+
const i = r.rules.findIndex((s) => !o.isUndefined(s.required));
|
|
1283
|
+
i !== -1 ? (r.rules[i].required = !0, r.rules[i].message = e) : r.rules.unshift({
|
|
1285
1284
|
required: !0,
|
|
1286
|
-
message:
|
|
1285
|
+
message: e,
|
|
1287
1286
|
trigger: ["input", "blur"]
|
|
1288
1287
|
});
|
|
1289
1288
|
}
|
|
1290
|
-
else
|
|
1291
|
-
|
|
1292
|
-
t !== -1 ? r.rules[t].required = !1 : r.rules.unshift({
|
|
1289
|
+
else
|
|
1290
|
+
r.rules && ((t = r.rules) == null ? void 0 : t.findIndex((s) => !!s.required)) === -1 && r.rules.unshift({
|
|
1293
1291
|
required: !0,
|
|
1294
|
-
message:
|
|
1292
|
+
message: e,
|
|
1295
1293
|
trigger: ["input", "blur"]
|
|
1296
1294
|
});
|
|
1297
|
-
}
|
|
1298
1295
|
return {
|
|
1299
1296
|
rule: r.rules
|
|
1300
1297
|
};
|
|
@@ -1306,24 +1303,24 @@ const _r = {
|
|
|
1306
1303
|
Component: r,
|
|
1307
1304
|
baseModel: e,
|
|
1308
1305
|
schema: t,
|
|
1309
|
-
placeholder:
|
|
1310
|
-
componentSlots:
|
|
1306
|
+
placeholder: i,
|
|
1307
|
+
componentSlots: s,
|
|
1311
1308
|
props: n
|
|
1312
1309
|
}) {
|
|
1313
1310
|
let a;
|
|
1314
|
-
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r,
|
|
1311
|
+
return o.isFunction(t.field) ? a = H(e, t.field()) : a = e[t.field], m(r, $({
|
|
1315
1312
|
value: a,
|
|
1316
1313
|
"onUpdate:value": (u) => {
|
|
1317
1314
|
o.isFunction(t.field) ? P(e, t.field(), u) : e[t.field] = u;
|
|
1318
1315
|
},
|
|
1319
|
-
placeholder:
|
|
1316
|
+
placeholder: i
|
|
1320
1317
|
}, n), {
|
|
1321
|
-
...
|
|
1318
|
+
...s
|
|
1322
1319
|
});
|
|
1323
1320
|
},
|
|
1324
1321
|
validateForm(r) {
|
|
1325
1322
|
return new Promise((e, t) => {
|
|
1326
|
-
r.runtimeCore.formRef.value.validate((
|
|
1323
|
+
r.runtimeCore.formRef.value.validate((i) => i ? t(i) : e(r.cleanFallbackFields(x(r.runtimeCore.processor.processedModel.value))));
|
|
1327
1324
|
});
|
|
1328
1325
|
},
|
|
1329
1326
|
clearValidate(r) {
|
|
@@ -1337,9 +1334,9 @@ const _r = {
|
|
|
1337
1334
|
请选择: ["select", "tree"],
|
|
1338
1335
|
请输入: ["input"]
|
|
1339
1336
|
}, t = {};
|
|
1340
|
-
for (const
|
|
1341
|
-
e[
|
|
1342
|
-
t[
|
|
1337
|
+
for (const i in e)
|
|
1338
|
+
e[i].forEach((s) => {
|
|
1339
|
+
t[s] = i;
|
|
1343
1340
|
});
|
|
1344
1341
|
return t;
|
|
1345
1342
|
}
|
|
@@ -1397,12 +1394,12 @@ l(M, "schemaPreset", {
|
|
|
1397
1394
|
}), // 基于基本功能提出基本预设
|
|
1398
1395
|
l(M, "placeholderPresetByComponentName", M.getPlaceholderPrefixPresetByComponentName());
|
|
1399
1396
|
let Q = M;
|
|
1400
|
-
const
|
|
1397
|
+
const C = {
|
|
1401
1398
|
...Q,
|
|
1402
1399
|
adapters: {
|
|
1403
1400
|
..._r
|
|
1404
1401
|
}
|
|
1405
|
-
},
|
|
1402
|
+
}, Cr = /* @__PURE__ */ Ke({
|
|
1406
1403
|
props: {
|
|
1407
1404
|
setup: {
|
|
1408
1405
|
type: Function,
|
|
@@ -1430,7 +1427,7 @@ function Sr(r) {
|
|
|
1430
1427
|
function Or(r) {
|
|
1431
1428
|
c.presets = r;
|
|
1432
1429
|
}
|
|
1433
|
-
function
|
|
1430
|
+
function ie(r, e) {
|
|
1434
1431
|
return e === "native" && Object.defineProperty(r, "name", {
|
|
1435
1432
|
value: `__proform_raw_${r.name}`,
|
|
1436
1433
|
writable: !0
|
|
@@ -1443,30 +1440,30 @@ function se(r, e) {
|
|
|
1443
1440
|
}), r;
|
|
1444
1441
|
}
|
|
1445
1442
|
function Er(r) {
|
|
1446
|
-
return
|
|
1443
|
+
return ie(r, "native");
|
|
1447
1444
|
}
|
|
1448
1445
|
function Fr(r) {
|
|
1449
1446
|
return r.__proform_raw_object = !0, r;
|
|
1450
1447
|
}
|
|
1451
1448
|
function wr(r) {
|
|
1452
|
-
return
|
|
1449
|
+
return ie(r, "onetime");
|
|
1453
1450
|
}
|
|
1454
1451
|
function jr(r) {
|
|
1455
1452
|
function e() {
|
|
1456
1453
|
return r;
|
|
1457
1454
|
}
|
|
1458
|
-
return
|
|
1455
|
+
return ie(
|
|
1459
1456
|
e,
|
|
1460
1457
|
"structured_path_parsing_mark"
|
|
1461
1458
|
);
|
|
1462
1459
|
}
|
|
1463
1460
|
export {
|
|
1464
|
-
|
|
1461
|
+
Cr as ProForm,
|
|
1465
1462
|
Er as markNativeFunction,
|
|
1466
1463
|
Fr as markNativeObject,
|
|
1467
1464
|
wr as markOnetimeFunction,
|
|
1468
1465
|
jr as markStructuredPathParsing,
|
|
1469
1466
|
Sr as useForm,
|
|
1470
1467
|
Or as useFormPresetConfigurer,
|
|
1471
|
-
|
|
1468
|
+
ie as useModifiers
|
|
1472
1469
|
};
|