@harbor-design/proform 1.3.12 → 1.3.14
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 +154 -170
- package/dist/types/src/services/Effect/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Te = Object.defineProperty;
|
|
2
2
|
var ze = (t, e, r) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var u = (t, e, r) => (ze(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { ref as z, readonly as Pe, nextTick as
|
|
4
|
+
import { ref as z, readonly as Pe, nextTick as O, isRef as q, watch as _, isReactive as U, toRaw as x, reactive as H, createVNode as y, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as ke } from "vue";
|
|
5
5
|
class o {
|
|
6
6
|
static typeChecker(e) {
|
|
7
7
|
return {}.toString.call(e);
|
|
@@ -80,7 +80,7 @@ function h(t, ...e) {
|
|
|
80
80
|
r.hasOwnProperty(i) && (typeof r[i] == "object" && r[i] !== null ? t[i] = h(t[i] || {}, r[i]) : t[i] = r[i]);
|
|
81
81
|
}), t;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function P(t) {
|
|
84
84
|
const e = /* @__PURE__ */ new WeakMap();
|
|
85
85
|
function r(i) {
|
|
86
86
|
if (i === null || typeof i != "object")
|
|
@@ -138,11 +138,11 @@ class He {
|
|
|
138
138
|
}
|
|
139
139
|
submit() {
|
|
140
140
|
var i;
|
|
141
|
-
const e = (i =
|
|
141
|
+
const e = (i = c.getPreset(this.runtimeCore.ui)) == null ? void 0 : i.adapter, r = I.adapters[c.getUI(this.runtimeCore.ui)];
|
|
142
142
|
return (e == null ? void 0 : e.validateForm(this)) ?? (r == null ? void 0 : r.validateForm(this));
|
|
143
143
|
}
|
|
144
144
|
hydrate(e) {
|
|
145
|
-
|
|
145
|
+
O(() => {
|
|
146
146
|
this.runtimeCore.hydrateEffect.trackEffect(
|
|
147
147
|
() => {
|
|
148
148
|
q(e) ? _(
|
|
@@ -172,45 +172,36 @@ class He {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
share(e) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
()
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
});
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
deep: !0,
|
|
199
|
-
immediate: !0
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
} else
|
|
203
|
-
h(this.runtimeCore.shared, e), this.runtimeCore.processor.schemaEffect.triggerEffects();
|
|
175
|
+
O(() => {
|
|
176
|
+
q(e) ? _(
|
|
177
|
+
() => e.value,
|
|
178
|
+
() => {
|
|
179
|
+
h(this.runtimeCore.shared, e.value);
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
deep: !0,
|
|
183
|
+
immediate: !0
|
|
184
|
+
}
|
|
185
|
+
) : U(e) ? _(
|
|
186
|
+
() => e,
|
|
187
|
+
() => {
|
|
188
|
+
h(this.runtimeCore.shared, e);
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
deep: !0,
|
|
192
|
+
immediate: !0
|
|
193
|
+
}
|
|
194
|
+
) : h(this.runtimeCore.shared, e);
|
|
204
195
|
});
|
|
205
196
|
}
|
|
206
197
|
subscribeModel(e) {
|
|
207
|
-
|
|
198
|
+
O(() => {
|
|
208
199
|
const r = _(
|
|
209
200
|
() => this.readonlyReactiveModel.value,
|
|
210
201
|
(i) => {
|
|
211
202
|
e(i, {
|
|
212
203
|
stopSubscribe() {
|
|
213
|
-
|
|
204
|
+
O(() => {
|
|
214
205
|
r();
|
|
215
206
|
});
|
|
216
207
|
}
|
|
@@ -225,7 +216,7 @@ class He {
|
|
|
225
216
|
}
|
|
226
217
|
resetModel() {
|
|
227
218
|
var e;
|
|
228
|
-
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value =
|
|
219
|
+
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = P(
|
|
229
220
|
this.runtimeCore.processor.stableModel
|
|
230
221
|
), this.readonlyReactiveModel.value = Pe(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
231
222
|
}
|
|
@@ -233,7 +224,9 @@ class He {
|
|
|
233
224
|
class Y {
|
|
234
225
|
constructor() {
|
|
235
226
|
u(this, "effects", /* @__PURE__ */ new Set());
|
|
227
|
+
u(this, "tempClonedEffects", /* @__PURE__ */ new Set());
|
|
236
228
|
u(this, "identifierMap", /* @__PURE__ */ new Map());
|
|
229
|
+
u(this, "timer");
|
|
237
230
|
}
|
|
238
231
|
clearEffects() {
|
|
239
232
|
this.effects.clear();
|
|
@@ -247,7 +240,7 @@ class Y {
|
|
|
247
240
|
return !r.lazy && e(), r.identifier ? this.identifierMap.get(r.identifier) || (this.effects.add(e), this.identifierMap.set(r.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
|
|
248
241
|
}
|
|
249
242
|
}
|
|
250
|
-
var
|
|
243
|
+
var Ke = typeof global == "object" && global && global.Object === Object && global, We = typeof self == "object" && self && self.Object === Object && self, J = Ke || We || Function("return this")(), E = J.Symbol, je = Object.prototype, Xe = je.hasOwnProperty, Ye = je.toString, V = E ? E.toStringTag : void 0;
|
|
251
244
|
function Ze(t) {
|
|
252
245
|
var e = Xe.call(t, V), r = t[V];
|
|
253
246
|
try {
|
|
@@ -262,9 +255,9 @@ var Je = Object.prototype, Qe = Je.toString;
|
|
|
262
255
|
function Ae(t) {
|
|
263
256
|
return Qe.call(t);
|
|
264
257
|
}
|
|
265
|
-
var et = "[object Null]", tt = "[object Undefined]",
|
|
258
|
+
var et = "[object Null]", tt = "[object Undefined]", Ie = E ? E.toStringTag : void 0;
|
|
266
259
|
function we(t) {
|
|
267
|
-
return t == null ? t === void 0 ? tt : et :
|
|
260
|
+
return t == null ? t === void 0 ? tt : et : Ie && Ie in Object(t) ? Ze(t) : Ae(t);
|
|
268
261
|
}
|
|
269
262
|
function rt(t) {
|
|
270
263
|
return t != null && typeof t == "object";
|
|
@@ -278,7 +271,7 @@ function st(t, e) {
|
|
|
278
271
|
s[r] = e(t[r], r, t);
|
|
279
272
|
return s;
|
|
280
273
|
}
|
|
281
|
-
var A = Array.isArray, nt = 1 / 0,
|
|
274
|
+
var A = Array.isArray, nt = 1 / 0, Ce = E ? E.prototype : void 0, Se = Ce ? Ce.toString : void 0;
|
|
282
275
|
function Me(t) {
|
|
283
276
|
if (typeof t == "string")
|
|
284
277
|
return t;
|
|
@@ -294,17 +287,17 @@ function G(t) {
|
|
|
294
287
|
return t != null && (e == "object" || e == "function");
|
|
295
288
|
}
|
|
296
289
|
var ot = "[object AsyncFunction]", at = "[object Function]", lt = "[object GeneratorFunction]", ut = "[object Proxy]";
|
|
297
|
-
function
|
|
290
|
+
function ft(t) {
|
|
298
291
|
if (!G(t))
|
|
299
292
|
return !1;
|
|
300
293
|
var e = we(t);
|
|
301
294
|
return e == at || e == lt || e == ot || e == ut;
|
|
302
295
|
}
|
|
303
|
-
var
|
|
304
|
-
var t = /[^.]+$/.exec(
|
|
296
|
+
var K = J["__core-js_shared__"], Oe = function() {
|
|
297
|
+
var t = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
305
298
|
return t ? "Symbol(src)_1." + t : "";
|
|
306
299
|
}();
|
|
307
|
-
function
|
|
300
|
+
function ct(t) {
|
|
308
301
|
return !!Oe && Oe in t;
|
|
309
302
|
}
|
|
310
303
|
var dt = Function.prototype, pt = dt.toString;
|
|
@@ -321,21 +314,21 @@ function ht(t) {
|
|
|
321
314
|
}
|
|
322
315
|
return "";
|
|
323
316
|
}
|
|
324
|
-
var mt = /[\\^$.*+?()[\]{}|]/g, yt = /^\[object .+?Constructor\]$/,
|
|
317
|
+
var mt = /[\\^$.*+?()[\]{}|]/g, yt = /^\[object .+?Constructor\]$/, bt = Function.prototype, gt = Object.prototype, vt = bt.toString, _t = gt.hasOwnProperty, Pt = RegExp(
|
|
325
318
|
"^" + vt.call(_t).replace(mt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
326
319
|
);
|
|
327
|
-
function
|
|
328
|
-
if (!G(t) ||
|
|
320
|
+
function It(t) {
|
|
321
|
+
if (!G(t) || ct(t))
|
|
329
322
|
return !1;
|
|
330
|
-
var e =
|
|
323
|
+
var e = ft(t) ? Pt : yt;
|
|
331
324
|
return e.test(ht(t));
|
|
332
325
|
}
|
|
333
|
-
function
|
|
326
|
+
function Ct(t, e) {
|
|
334
327
|
return t == null ? void 0 : t[e];
|
|
335
328
|
}
|
|
336
329
|
function ee(t, e) {
|
|
337
|
-
var r =
|
|
338
|
-
return
|
|
330
|
+
var r = Ct(t, e);
|
|
331
|
+
return It(r) ? r : void 0;
|
|
339
332
|
}
|
|
340
333
|
var Fe = function() {
|
|
341
334
|
try {
|
|
@@ -356,20 +349,20 @@ function jt(t, e, r) {
|
|
|
356
349
|
writable: !0
|
|
357
350
|
}) : t[e] = r;
|
|
358
351
|
}
|
|
359
|
-
function
|
|
352
|
+
function xe(t, e) {
|
|
360
353
|
return t === e || t !== t && e !== e;
|
|
361
354
|
}
|
|
362
355
|
var wt = Object.prototype, Mt = wt.hasOwnProperty;
|
|
363
|
-
function
|
|
356
|
+
function xt(t, e, r) {
|
|
364
357
|
var i = t[e];
|
|
365
|
-
(!(Mt.call(t, e) &&
|
|
358
|
+
(!(Mt.call(t, e) && xe(i, r)) || r === void 0 && !(e in t)) && jt(t, e, r);
|
|
366
359
|
}
|
|
367
|
-
var
|
|
360
|
+
var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
|
|
368
361
|
function $t(t, e) {
|
|
369
362
|
if (A(t))
|
|
370
363
|
return !1;
|
|
371
364
|
var r = typeof t;
|
|
372
|
-
return r == "number" || r == "symbol" || r == "boolean" || t == null || Q(t) ? !0 : Rt.test(t) || !
|
|
365
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || Q(t) ? !0 : Rt.test(t) || !Et.test(t) || e != null && t in Object(e);
|
|
373
366
|
}
|
|
374
367
|
var T = ee(Object, "create");
|
|
375
368
|
function Vt() {
|
|
@@ -415,17 +408,17 @@ function Ht() {
|
|
|
415
408
|
}
|
|
416
409
|
function B(t, e) {
|
|
417
410
|
for (var r = t.length; r--; )
|
|
418
|
-
if (
|
|
411
|
+
if (xe(t[r][0], e))
|
|
419
412
|
return r;
|
|
420
413
|
return -1;
|
|
421
414
|
}
|
|
422
|
-
var
|
|
415
|
+
var Kt = Array.prototype, Wt = Kt.splice;
|
|
423
416
|
function Xt(t) {
|
|
424
417
|
var e = this.__data__, r = B(e, t);
|
|
425
418
|
if (r < 0)
|
|
426
419
|
return !1;
|
|
427
420
|
var i = e.length - 1;
|
|
428
|
-
return r == i ? e.pop() :
|
|
421
|
+
return r == i ? e.pop() : Wt.call(e, r, 1), --this.size, !0;
|
|
429
422
|
}
|
|
430
423
|
function Yt(t) {
|
|
431
424
|
var e = this.__data__, r = B(e, t);
|
|
@@ -513,17 +506,17 @@ function ar(t) {
|
|
|
513
506
|
}), r = e.cache;
|
|
514
507
|
return e;
|
|
515
508
|
}
|
|
516
|
-
var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g,
|
|
509
|
+
var lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /\\(\\)?/g, fr = ar(function(t) {
|
|
517
510
|
var e = [];
|
|
518
511
|
return t.charCodeAt(0) === 46 && e.push(""), t.replace(lr, function(r, i, s, n) {
|
|
519
512
|
e.push(s ? n.replace(ur, "$1") : i || r);
|
|
520
513
|
}), e;
|
|
521
514
|
});
|
|
522
|
-
function
|
|
515
|
+
function cr(t) {
|
|
523
516
|
return t == null ? "" : Me(t);
|
|
524
517
|
}
|
|
525
|
-
function
|
|
526
|
-
return A(t) ? t : $t(t, e) ? [t] : cr(
|
|
518
|
+
function Ee(t, e) {
|
|
519
|
+
return A(t) ? t : $t(t, e) ? [t] : fr(cr(t));
|
|
527
520
|
}
|
|
528
521
|
var dr = 1 / 0;
|
|
529
522
|
function Re(t) {
|
|
@@ -533,7 +526,7 @@ function Re(t) {
|
|
|
533
526
|
return e == "0" && 1 / t == -dr ? "-0" : e;
|
|
534
527
|
}
|
|
535
528
|
function pr(t, e) {
|
|
536
|
-
e =
|
|
529
|
+
e = Ee(e, t);
|
|
537
530
|
for (var r = 0, i = e.length; t != null && r < i; )
|
|
538
531
|
t = t[Re(e[r++])];
|
|
539
532
|
return r && r == i ? t : void 0;
|
|
@@ -545,16 +538,16 @@ function L(t, e, r) {
|
|
|
545
538
|
function hr(t, e, r, i) {
|
|
546
539
|
if (!G(t))
|
|
547
540
|
return t;
|
|
548
|
-
e =
|
|
541
|
+
e = Ee(e, t);
|
|
549
542
|
for (var s = -1, n = e.length, a = n - 1, l = t; l != null && ++s < n; ) {
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
543
|
+
var f = Re(e[s]), d = r;
|
|
544
|
+
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
552
545
|
return t;
|
|
553
546
|
if (s != a) {
|
|
554
|
-
var p = l[
|
|
555
|
-
d = i ? i(p,
|
|
547
|
+
var p = l[f];
|
|
548
|
+
d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : Ft(e[s + 1]) ? [] : {});
|
|
556
549
|
}
|
|
557
|
-
|
|
550
|
+
xt(l, f, d), l = l[f];
|
|
558
551
|
}
|
|
559
552
|
return t;
|
|
560
553
|
}
|
|
@@ -616,7 +609,7 @@ class mr {
|
|
|
616
609
|
// 派生过程,用于外部应用
|
|
617
610
|
parseSchemas(e, r) {
|
|
618
611
|
o.isArrayEmpty(this.processedSchemas.value) && (this.baseDefaultValueFunctionsLength = this.countFunctionDefaultValues(
|
|
619
|
-
|
|
612
|
+
P(e)
|
|
620
613
|
), this.processedSchemas.value = this.initSchemas(e)), this.parse(e, r);
|
|
621
614
|
}
|
|
622
615
|
parseStable(e) {
|
|
@@ -630,7 +623,7 @@ class mr {
|
|
|
630
623
|
// 对于稳定初始化更新的抽象
|
|
631
624
|
stableUpdater(e = []) {
|
|
632
625
|
if (e.every(Boolean)) {
|
|
633
|
-
const r =
|
|
626
|
+
const r = x(this.processedSchemas.value);
|
|
634
627
|
!o.isProcessInprogress(r) && o.isObjectEmpty(this.stableModel) && (this.stableUpdaterProcessProgress || (this.stableUpdaterProcessProgress = Array.from({
|
|
635
628
|
length: r.length
|
|
636
629
|
}).fill(!1)), this.stableUpdaterProcessProgress[this.stableUpdaterTimes] = !0, this.stableUpdaterTimes++, this.modelProcessor(r));
|
|
@@ -643,17 +636,17 @@ class mr {
|
|
|
643
636
|
}).fill(!1);
|
|
644
637
|
this.objectParser({ data: e, index: r, updater: a, parentMeta: i });
|
|
645
638
|
function a(l) {
|
|
646
|
-
const
|
|
639
|
+
const f = l.index, d = l.key, p = l.keyIndex;
|
|
647
640
|
if (o.isUndefined(l.stable))
|
|
648
641
|
return;
|
|
649
|
-
const m = s.parseStable(l.stable),
|
|
642
|
+
const m = s.parseStable(l.stable), g = i == null ? void 0 : i.index, C = i == null ? void 0 : i.key;
|
|
650
643
|
let v = m;
|
|
651
644
|
if (o.isProcessInprogress(v) || (n[p] = !0), i) {
|
|
652
|
-
const
|
|
653
|
-
|
|
645
|
+
const b = s.processedSchemas.value[g][C][f][d];
|
|
646
|
+
b && o.isObject(b) && d !== "component" && (v = h(b, v)), s.processedSchemas.value[g][C][f][d] = v, s.stableUpdater(n);
|
|
654
647
|
} else {
|
|
655
|
-
const
|
|
656
|
-
|
|
648
|
+
const b = s.processedSchemas.value[f][d];
|
|
649
|
+
b && o.isObject(b) && d !== "component" && (v = h(b, v)), s.processedSchemas.value[f][d] = v, s.stableUpdater(n);
|
|
657
650
|
}
|
|
658
651
|
}
|
|
659
652
|
}
|
|
@@ -669,7 +662,7 @@ class mr {
|
|
|
669
662
|
keyIndex: n
|
|
670
663
|
});
|
|
671
664
|
else {
|
|
672
|
-
const
|
|
665
|
+
const f = (d) => {
|
|
673
666
|
e.updater({
|
|
674
667
|
...e,
|
|
675
668
|
key: s,
|
|
@@ -681,12 +674,12 @@ class mr {
|
|
|
681
674
|
() => {
|
|
682
675
|
if (s === "component") {
|
|
683
676
|
const d = r[s](this.getRuntimeMeta());
|
|
684
|
-
this.promiseFieldParser(d,
|
|
677
|
+
this.promiseFieldParser(d, f, !1, {
|
|
685
678
|
rootIndex: e.index,
|
|
686
679
|
parentMeta: e.parentMeta
|
|
687
680
|
});
|
|
688
681
|
} else
|
|
689
|
-
this.fieldParser(r[s],
|
|
682
|
+
this.fieldParser(r[s], f, {
|
|
690
683
|
rootIndex: e.index,
|
|
691
684
|
parentMeta: e.parentMeta
|
|
692
685
|
});
|
|
@@ -703,15 +696,15 @@ class mr {
|
|
|
703
696
|
r[s],
|
|
704
697
|
(p) => {
|
|
705
698
|
if (!p)
|
|
706
|
-
return
|
|
699
|
+
return f(p);
|
|
707
700
|
this.defaultValueInprogressMap.set(r[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
708
701
|
this.defaultValueInprogressMap.values()
|
|
709
702
|
).every((m) => {
|
|
710
|
-
var
|
|
711
|
-
return !((
|
|
712
|
-
}) ? (
|
|
703
|
+
var g;
|
|
704
|
+
return !((g = m == null ? void 0 : m.includes) != null && g.call(m, "undefined"));
|
|
705
|
+
}) ? (f(p), this.defaultValueEffect.clearEffects(), O(() => {
|
|
713
706
|
d();
|
|
714
|
-
})) :
|
|
707
|
+
})) : f(p);
|
|
715
708
|
},
|
|
716
709
|
{
|
|
717
710
|
rootIndex: e.index,
|
|
@@ -723,11 +716,11 @@ class mr {
|
|
|
723
716
|
this.defaultValueInprogressMap.set(r[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
724
717
|
this.defaultValueInprogressMap.values()
|
|
725
718
|
).every((m) => {
|
|
726
|
-
var
|
|
727
|
-
return !((
|
|
728
|
-
}) ? (
|
|
719
|
+
var g;
|
|
720
|
+
return !((g = m == null ? void 0 : m.includes) != null && g.call(m, "undefined"));
|
|
721
|
+
}) ? (f(p), this.defaultValueEffect.clearEffects(), O(() => {
|
|
729
722
|
d();
|
|
730
|
-
})) :
|
|
723
|
+
})) : f(p);
|
|
731
724
|
},
|
|
732
725
|
{
|
|
733
726
|
rootIndex: e.index,
|
|
@@ -743,10 +736,10 @@ class mr {
|
|
|
743
736
|
{
|
|
744
737
|
lazy: !1
|
|
745
738
|
}
|
|
746
|
-
) : s === "component" || s === "slots" || s === "runtime" ? this.promiseFieldParser(r[s],
|
|
739
|
+
) : s === "component" || s === "slots" || s === "runtime" ? this.promiseFieldParser(r[s], f, !1, {
|
|
747
740
|
rootIndex: e.index,
|
|
748
741
|
parentMeta: e.parentMeta
|
|
749
|
-
}) : this.fieldParser(r[s],
|
|
742
|
+
}) : this.fieldParser(r[s], f, {
|
|
750
743
|
rootIndex: e.index,
|
|
751
744
|
parentMeta: e.parentMeta
|
|
752
745
|
});
|
|
@@ -826,7 +819,7 @@ class mr {
|
|
|
826
819
|
modelProcessor(e) {
|
|
827
820
|
e.map(
|
|
828
821
|
(r) => this.createModel(r, this.processedModel.value)
|
|
829
|
-
), o.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel =
|
|
822
|
+
), o.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel = P(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
|
|
830
823
|
}
|
|
831
824
|
setModel(e, r, i) {
|
|
832
825
|
o.isFunction(r) ? D(e, r(), i) : e[r] = i;
|
|
@@ -850,22 +843,22 @@ class mr {
|
|
|
850
843
|
}
|
|
851
844
|
class w {
|
|
852
845
|
static getFormContainer({ ui: e } = {}) {
|
|
853
|
-
return
|
|
846
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.Form;
|
|
854
847
|
}
|
|
855
848
|
static getFormItemContainer({ ui: e } = {}) {
|
|
856
|
-
return
|
|
849
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.FormItem;
|
|
857
850
|
}
|
|
858
851
|
static getItemContainer({ ui: e } = {}) {
|
|
859
|
-
return
|
|
852
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.Item;
|
|
860
853
|
}
|
|
861
854
|
static getGroupContainer({ ui: e } = {}) {
|
|
862
|
-
return
|
|
855
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.Group;
|
|
863
856
|
}
|
|
864
857
|
static getListContainer({ ui: e } = {}) {
|
|
865
|
-
return
|
|
858
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.List;
|
|
866
859
|
}
|
|
867
860
|
static getListItemContainer({ ui: e } = {}) {
|
|
868
|
-
return
|
|
861
|
+
return c.presets.uiPresets[e ?? c.presets.ui].container.ListItem;
|
|
869
862
|
}
|
|
870
863
|
}
|
|
871
864
|
class yr {
|
|
@@ -874,38 +867,38 @@ class yr {
|
|
|
874
867
|
}
|
|
875
868
|
getRuntimeNative() {
|
|
876
869
|
var r;
|
|
877
|
-
return (r =
|
|
870
|
+
return (r = c.presets.uiPresets[this.ui]) == null ? void 0 : r.native;
|
|
878
871
|
}
|
|
879
872
|
getRuntimeField(e) {
|
|
880
873
|
var s;
|
|
881
|
-
const r = (s =
|
|
874
|
+
const r = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = I.adapters[c.getUI(this.ui)];
|
|
882
875
|
return (r == null ? void 0 : r.getRuntimeField(e)) ?? (i == null ? void 0 : i.getRuntimeField(e));
|
|
883
876
|
}
|
|
884
877
|
getRuntimeRequired(e) {
|
|
885
878
|
var s;
|
|
886
|
-
const r = (s =
|
|
879
|
+
const r = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = I.adapters[c.getUI(this.ui)];
|
|
887
880
|
return (r == null ? void 0 : r.getRuntimeRequired(e)) ?? (i == null ? void 0 : i.getRuntimeRequired(e));
|
|
888
881
|
}
|
|
889
882
|
getFormModelPropName() {
|
|
890
883
|
var i;
|
|
891
|
-
const e = (i =
|
|
884
|
+
const e = (i = c.presets.uiPresets[this.ui]) == null ? void 0 : i.adapter, r = I.adapters[c.getUI(this.ui)];
|
|
892
885
|
return (e == null ? void 0 : e.getFormModelPropName()) ?? (r == null ? void 0 : r.getFormModelPropName());
|
|
893
886
|
}
|
|
894
887
|
formComponentRenderer(e) {
|
|
895
888
|
var s;
|
|
896
|
-
const r = (s =
|
|
889
|
+
const r = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = I.adapters[c.getUI(this.ui)];
|
|
897
890
|
return (r == null ? void 0 : r.formComponentRenderer(e)) ?? (i == null ? void 0 : i.formComponentRenderer(e));
|
|
898
891
|
}
|
|
899
892
|
clearValidate(e) {
|
|
900
893
|
var s;
|
|
901
|
-
const r = (s =
|
|
894
|
+
const r = (s = c.presets.uiPresets[this.ui]) == null ? void 0 : s.adapter, i = I.adapters[c.getUI(this.ui)];
|
|
902
895
|
return (r == null ? void 0 : r.clearValidate(e)) ?? (i == null ? void 0 : i.clearValidate(e));
|
|
903
896
|
}
|
|
904
897
|
}
|
|
905
|
-
function
|
|
898
|
+
function br(t) {
|
|
906
899
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Be(t);
|
|
907
900
|
}
|
|
908
|
-
class
|
|
901
|
+
class gr {
|
|
909
902
|
constructor(e) {
|
|
910
903
|
u(this, "schemas", z([]));
|
|
911
904
|
u(this, "model", z({}));
|
|
@@ -932,7 +925,7 @@ class br {
|
|
|
932
925
|
u(this, "shared", H({}));
|
|
933
926
|
this.setup = e, this.processor = new mr(this);
|
|
934
927
|
const r = this.setup(this);
|
|
935
|
-
if (this.ui = r.ui ??
|
|
928
|
+
if (this.ui = r.ui ?? c.presets.ui, this.runtimeAdapter = new yr(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), q(r.schemas))
|
|
936
929
|
_(
|
|
937
930
|
// @ts-expect-error
|
|
938
931
|
() => r.schemas.value,
|
|
@@ -945,7 +938,7 @@ class br {
|
|
|
945
938
|
);
|
|
946
939
|
else if (U(r.schemas)) {
|
|
947
940
|
const i = _(() => r.schemas, () => {
|
|
948
|
-
this.processor.parseSchemas(r.schemas),
|
|
941
|
+
this.processor.parseSchemas(r.schemas), O(() => {
|
|
949
942
|
i();
|
|
950
943
|
});
|
|
951
944
|
}, {
|
|
@@ -956,62 +949,53 @@ class br {
|
|
|
956
949
|
}
|
|
957
950
|
getRuntimeMeta() {
|
|
958
951
|
return {
|
|
959
|
-
model:
|
|
952
|
+
model: x(P(this.model.value)),
|
|
960
953
|
reactiveModel: this.model.value,
|
|
961
954
|
shared: this.shared,
|
|
962
955
|
// share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
|
|
963
956
|
share: (r) => {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
deep: !0,
|
|
971
|
-
immediate: !0
|
|
972
|
-
});
|
|
973
|
-
} else if (U(r)) {
|
|
974
|
-
const i = _(() => r, () => {
|
|
975
|
-
h(this.shared, r), P(() => {
|
|
976
|
-
i();
|
|
977
|
-
});
|
|
978
|
-
}, {
|
|
979
|
-
deep: !0,
|
|
980
|
-
immediate: !0
|
|
981
|
-
});
|
|
982
|
-
} else
|
|
957
|
+
q(r) ? _(() => r.value, () => {
|
|
958
|
+
h(this.shared, r.value);
|
|
959
|
+
}, {
|
|
960
|
+
deep: !0,
|
|
961
|
+
immediate: !0
|
|
962
|
+
}) : U(r) ? _(() => r, () => {
|
|
983
963
|
h(this.shared, r);
|
|
964
|
+
}, {
|
|
965
|
+
deep: !0,
|
|
966
|
+
immediate: !0
|
|
967
|
+
}) : h(this.shared, r);
|
|
984
968
|
}
|
|
985
969
|
};
|
|
986
970
|
}
|
|
987
971
|
runtimeItemProcessor(e, r, i = this.model.value, s) {
|
|
988
|
-
var ie, se, ne, oe, ae, le, ue,
|
|
989
|
-
const n =
|
|
972
|
+
var ie, se, ne, oe, ae, le, ue, fe, ce, de, pe, he, me, ye, be, ge, ve;
|
|
973
|
+
const n = x(e.component);
|
|
990
974
|
if (!n)
|
|
991
975
|
return;
|
|
992
|
-
(se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && h(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && h(this.globalNativeFormOverride.slots.Form, (
|
|
993
|
-
const a = h(
|
|
976
|
+
(se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && h(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && h(this.globalNativeFormOverride.slots.Form, (fe = (ue = e.native) == null ? void 0 : ue.slots) == null ? void 0 : fe.Form);
|
|
977
|
+
const a = h(P((de = (ce = this.native) == null ? void 0 : ce.slots) == null ? void 0 : de.FormItem) ?? {}, (he = (pe = e.native) == null ? void 0 : pe.slots) == null ? void 0 : he.FormItem), l = {
|
|
994
978
|
display: "grid",
|
|
995
979
|
gridColumn: "1 / -1",
|
|
996
980
|
...e.grid
|
|
997
|
-
},
|
|
981
|
+
}, f = h(P((ye = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : ye.FormItem) ?? {}, (ge = (be = e.native) == null ? void 0 : be.props) == null ? void 0 : ge.FormItem), d = this.runtimeAdapter.getRuntimeField({
|
|
998
982
|
schema: e,
|
|
999
983
|
parentSchema: s,
|
|
1000
984
|
index: r
|
|
1001
|
-
}), p = n.name, m = e.componentProps ?? {},
|
|
1002
|
-
let
|
|
985
|
+
}), p = n.name, m = e.componentProps ?? {}, g = I.placeholderPresetByComponentName;
|
|
986
|
+
let C = e.placeholder, v = e.show;
|
|
1003
987
|
v === void 0 && (v = !0);
|
|
1004
|
-
let
|
|
1005
|
-
if (e.runtime ?
|
|
988
|
+
let b = e.label ?? "", S;
|
|
989
|
+
if (e.runtime ? S = e.runtime : S = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(r) && !o.isObjectEmpty(S) && (b = X((ve = S == null ? void 0 : S.customizeListItemLabel) == null ? void 0 : ve.call(S, e.label ?? "", r + 1), "")), !C) {
|
|
1006
990
|
let $ = "请输入";
|
|
1007
|
-
o.isUndefined(p) ?
|
|
1008
|
-
|
|
1009
|
-
p.toLowerCase().includes(_e.toLowerCase()) && ($ =
|
|
1010
|
-
}),
|
|
991
|
+
o.isUndefined(p) ? C = `${$}${b}` : /* @ts-expect-error */ g[p.toLowerCase()] ? ($ = // @ts-expect-error
|
|
992
|
+
g[p.toLowerCase()], C = `${$}${b}`) : (Object.keys(g).forEach((_e) => {
|
|
993
|
+
p.toLowerCase().includes(_e.toLowerCase()) && ($ = g[_e]);
|
|
994
|
+
}), C = `${$}${b}`);
|
|
1011
995
|
}
|
|
1012
996
|
const $e = this.runtimeAdapter.getRuntimeRequired({
|
|
1013
997
|
...e,
|
|
1014
|
-
label:
|
|
998
|
+
label: b
|
|
1015
999
|
}), Ve = w.getItemContainer(this), Ne = w.getFormItemContainer(this), qe = this, Ue = e.componentSlots;
|
|
1016
1000
|
return y("div", {
|
|
1017
1001
|
style: l
|
|
@@ -1019,15 +1003,15 @@ class br {
|
|
|
1019
1003
|
show: v
|
|
1020
1004
|
}, {
|
|
1021
1005
|
default() {
|
|
1022
|
-
return v && y(Ne, N(
|
|
1023
|
-
label: `${
|
|
1006
|
+
return v && y(Ne, N(f, {
|
|
1007
|
+
label: `${b ? `${b}:` : ""}`
|
|
1024
1008
|
}, d, $e), {
|
|
1025
1009
|
default() {
|
|
1026
1010
|
return qe.runtimeAdapter.formComponentRenderer({
|
|
1027
1011
|
Component: n,
|
|
1028
1012
|
schema: e,
|
|
1029
1013
|
baseModel: i,
|
|
1030
|
-
placeholder:
|
|
1014
|
+
placeholder: C,
|
|
1031
1015
|
componentSlots: Ue,
|
|
1032
1016
|
props: m
|
|
1033
1017
|
});
|
|
@@ -1049,7 +1033,7 @@ class br {
|
|
|
1049
1033
|
style: i
|
|
1050
1034
|
}, [n && y(s, {
|
|
1051
1035
|
schema: e
|
|
1052
|
-
},
|
|
1036
|
+
}, br(r = e.children.map((a) => this.runtimeItemProcessor(a))) ? r : {
|
|
1053
1037
|
default: () => [r]
|
|
1054
1038
|
})]);
|
|
1055
1039
|
}
|
|
@@ -1060,7 +1044,7 @@ class br {
|
|
|
1060
1044
|
code: "0001",
|
|
1061
1045
|
message: "异步默认值数据正在处理中,请您耐心等待... "
|
|
1062
1046
|
});
|
|
1063
|
-
(i = this.processor.stableModel[e.field]) != null && i[0] && this.model.value[e.field].push(
|
|
1047
|
+
(i = this.processor.stableModel[e.field]) != null && i[0] && this.model.value[e.field].push(P(this.processor.stableModel[e.field][0])), this.runtimeAdapter.clearValidate(this);
|
|
1064
1048
|
}
|
|
1065
1049
|
deleteListItem(e, r) {
|
|
1066
1050
|
this.model.value[e.field].splice(r, 1), this.runtimeAdapter.clearValidate(this);
|
|
@@ -1081,9 +1065,9 @@ class br {
|
|
|
1081
1065
|
schema: e
|
|
1082
1066
|
}, {
|
|
1083
1067
|
default() {
|
|
1084
|
-
return i.model.value[e.field].map((l,
|
|
1068
|
+
return i.model.value[e.field].map((l, f) => y(a, null, {
|
|
1085
1069
|
default() {
|
|
1086
|
-
return e.children.map((d) => i.runtimeItemProcessor(d,
|
|
1070
|
+
return e.children.map((d) => i.runtimeItemProcessor(d, f, l, e));
|
|
1087
1071
|
},
|
|
1088
1072
|
delete({
|
|
1089
1073
|
container: d
|
|
@@ -1091,7 +1075,7 @@ class br {
|
|
|
1091
1075
|
var m;
|
|
1092
1076
|
const p = d ?? y("button", null, null);
|
|
1093
1077
|
return Le(y(p, {
|
|
1094
|
-
onClick: () => i.deleteListItem(e,
|
|
1078
|
+
onClick: () => i.deleteListItem(e, f)
|
|
1095
1079
|
}, null), [[De, ((m = i.model.value[e.field]) == null ? void 0 : m.length) > 1]]);
|
|
1096
1080
|
}
|
|
1097
1081
|
}));
|
|
@@ -1099,8 +1083,8 @@ class br {
|
|
|
1099
1083
|
add({
|
|
1100
1084
|
container: l
|
|
1101
1085
|
} = {}) {
|
|
1102
|
-
const
|
|
1103
|
-
return y(
|
|
1086
|
+
const f = l ?? y("button", null, [Ge("添加")]);
|
|
1087
|
+
return y(f, {
|
|
1104
1088
|
onClick: () => i.addListItem(e)
|
|
1105
1089
|
}, null);
|
|
1106
1090
|
}
|
|
@@ -1110,13 +1094,13 @@ class br {
|
|
|
1110
1094
|
return e.map((r) => (r.type || (r.type = "item"), this.processorBySchemaType[r.type](r)));
|
|
1111
1095
|
}
|
|
1112
1096
|
exec() {
|
|
1113
|
-
var l,
|
|
1097
|
+
var l, f, d, p;
|
|
1114
1098
|
const e = {
|
|
1115
1099
|
display: "grid",
|
|
1116
1100
|
gridColumn: "1 / -1",
|
|
1117
1101
|
gridAutoColumns: "1fr",
|
|
1118
1102
|
...this.grid
|
|
1119
|
-
}, r = this, i = h(this.globalNativeFormOverride.props.Form,
|
|
1103
|
+
}, r = this, i = h(this.globalNativeFormOverride.props.Form, P((f = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : f.Form) ?? {}), s = h(this.globalNativeFormOverride.slots.Form, P((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
|
|
1120
1104
|
return y(n, N(i, {
|
|
1121
1105
|
ref: this.formRef
|
|
1122
1106
|
}, {
|
|
@@ -1131,7 +1115,7 @@ class br {
|
|
|
1131
1115
|
});
|
|
1132
1116
|
}
|
|
1133
1117
|
}
|
|
1134
|
-
class
|
|
1118
|
+
class c {
|
|
1135
1119
|
static getPreset(e) {
|
|
1136
1120
|
var r, i, s;
|
|
1137
1121
|
return (i = (r = this.presets.uiPresets) == null ? void 0 : r[e]) != null && i.extend ? this.presets.uiPresets[(s = this.presets.uiPresets[e]) == null ? void 0 : s.extend] : this.presets.uiPresets[e];
|
|
@@ -1141,8 +1125,8 @@ class f {
|
|
|
1141
1125
|
return (i = (r = this.presets.uiPresets) == null ? void 0 : r[e]) != null && i.extend ? (s = this.presets.uiPresets[e]) == null ? void 0 : s.extend : e;
|
|
1142
1126
|
}
|
|
1143
1127
|
}
|
|
1144
|
-
u(
|
|
1145
|
-
function
|
|
1128
|
+
u(c, "presets");
|
|
1129
|
+
function W({
|
|
1146
1130
|
parentSchema: t,
|
|
1147
1131
|
schema: e,
|
|
1148
1132
|
index: r
|
|
@@ -1152,7 +1136,7 @@ function K({
|
|
|
1152
1136
|
const vr = {
|
|
1153
1137
|
ArcoVue: {
|
|
1154
1138
|
getRuntimeField(t) {
|
|
1155
|
-
const e =
|
|
1139
|
+
const e = W(t);
|
|
1156
1140
|
return o.isFunction(e) ? {
|
|
1157
1141
|
field: e()
|
|
1158
1142
|
} : {
|
|
@@ -1209,7 +1193,7 @@ const vr = {
|
|
|
1209
1193
|
},
|
|
1210
1194
|
validateForm(t) {
|
|
1211
1195
|
return new Promise((e, r) => {
|
|
1212
|
-
t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(
|
|
1196
|
+
t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(x(t.runtimeCore.processor.processedModel.value))));
|
|
1213
1197
|
});
|
|
1214
1198
|
},
|
|
1215
1199
|
clearValidate(t) {
|
|
@@ -1219,7 +1203,7 @@ const vr = {
|
|
|
1219
1203
|
},
|
|
1220
1204
|
NutUI: {
|
|
1221
1205
|
getRuntimeField(t) {
|
|
1222
|
-
const e =
|
|
1206
|
+
const e = W(t);
|
|
1223
1207
|
return o.isFunction(e) ? {
|
|
1224
1208
|
prop: e()
|
|
1225
1209
|
} : {
|
|
@@ -1281,7 +1265,7 @@ const vr = {
|
|
|
1281
1265
|
valid: i,
|
|
1282
1266
|
errors: s
|
|
1283
1267
|
}) => {
|
|
1284
|
-
i ? e(t.cleanFallbackFields(
|
|
1268
|
+
i ? e(t.cleanFallbackFields(x(t.runtimeCore.processor.processedModel.value))) : r(s);
|
|
1285
1269
|
});
|
|
1286
1270
|
});
|
|
1287
1271
|
},
|
|
@@ -1292,7 +1276,7 @@ const vr = {
|
|
|
1292
1276
|
},
|
|
1293
1277
|
NaiveUI: {
|
|
1294
1278
|
getRuntimeField(t) {
|
|
1295
|
-
const e =
|
|
1279
|
+
const e = W(t);
|
|
1296
1280
|
return o.isFunction(e) ? {
|
|
1297
1281
|
path: e()
|
|
1298
1282
|
} : {
|
|
@@ -1352,7 +1336,7 @@ const vr = {
|
|
|
1352
1336
|
},
|
|
1353
1337
|
validateForm(t) {
|
|
1354
1338
|
return new Promise((e, r) => {
|
|
1355
|
-
t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(
|
|
1339
|
+
t.runtimeCore.formRef.value.validate((i) => i ? r(i) : e(t.cleanFallbackFields(x(t.runtimeCore.processor.processedModel.value))));
|
|
1356
1340
|
});
|
|
1357
1341
|
},
|
|
1358
1342
|
clearValidate(t) {
|
|
@@ -1431,7 +1415,7 @@ const I = {
|
|
|
1431
1415
|
adapters: {
|
|
1432
1416
|
...vr
|
|
1433
1417
|
}
|
|
1434
|
-
},
|
|
1418
|
+
}, Ir = /* @__PURE__ */ ke({
|
|
1435
1419
|
props: {
|
|
1436
1420
|
setup: {
|
|
1437
1421
|
type: Function,
|
|
@@ -1439,11 +1423,11 @@ const I = {
|
|
|
1439
1423
|
}
|
|
1440
1424
|
},
|
|
1441
1425
|
setup(t) {
|
|
1442
|
-
const e = new
|
|
1426
|
+
const e = new gr(t.setup);
|
|
1443
1427
|
return () => e.exec();
|
|
1444
1428
|
}
|
|
1445
1429
|
});
|
|
1446
|
-
function
|
|
1430
|
+
function Cr(t) {
|
|
1447
1431
|
const e = new He(t);
|
|
1448
1432
|
return [
|
|
1449
1433
|
e.setup.bind(e),
|
|
@@ -1457,7 +1441,7 @@ function Ir(t) {
|
|
|
1457
1441
|
];
|
|
1458
1442
|
}
|
|
1459
1443
|
function Sr(t) {
|
|
1460
|
-
|
|
1444
|
+
c.presets = t;
|
|
1461
1445
|
}
|
|
1462
1446
|
function re(t, e) {
|
|
1463
1447
|
return e === "native" && Object.defineProperty(t, "name", {
|
|
@@ -1490,12 +1474,12 @@ function wr(t) {
|
|
|
1490
1474
|
);
|
|
1491
1475
|
}
|
|
1492
1476
|
export {
|
|
1493
|
-
|
|
1477
|
+
Ir as ProForm,
|
|
1494
1478
|
Or as markNativeFunction,
|
|
1495
1479
|
Fr as markNativeObject,
|
|
1496
1480
|
jr as markOnetimeFunction,
|
|
1497
1481
|
wr as markStructuredPathParsing,
|
|
1498
|
-
|
|
1482
|
+
Cr as useForm,
|
|
1499
1483
|
Sr as useFormPresetConfigurer,
|
|
1500
1484
|
re as useModifiers
|
|
1501
1485
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { AnyFunction } from "../../types";
|
|
2
3
|
import { TrackEffectMeta } from "../../types/effectTypes";
|
|
3
4
|
export default class Effect {
|
|
4
5
|
effects: Set<Function>;
|
|
6
|
+
tempClonedEffects: Set<Function>;
|
|
5
7
|
identifierMap: Map<any, any>;
|
|
8
|
+
timer: NodeJS.Timeout;
|
|
6
9
|
constructor();
|
|
7
10
|
clearEffects(): void;
|
|
8
11
|
triggerEffects(): void;
|