x-state-lib 0.3.25 → 0.3.27
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 +348 -316
- package/dist/state/app.d.ts +11 -8
- package/dist/state/compute.d.ts +9 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,52 +1,72 @@
|
|
|
1
1
|
import { elements as W } from "x-runtime-lib";
|
|
2
|
-
function
|
|
2
|
+
function It({ id: t, name: e, type: r }) {
|
|
3
3
|
return { id: t, name: e, type: r };
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
e.
|
|
11
|
-
for (const r of t.arguments)
|
|
12
|
-
e.arguments.push(A(r));
|
|
13
|
-
}
|
|
14
|
-
if (t.states) {
|
|
15
|
-
e.states = [];
|
|
16
|
-
for (const r of t.states)
|
|
17
|
-
e.states.push(A(r));
|
|
18
|
-
}
|
|
5
|
+
function b(t) {
|
|
6
|
+
if (!t)
|
|
7
|
+
return;
|
|
8
|
+
const e = [];
|
|
9
|
+
for (const r of t)
|
|
10
|
+
e.push(It(r));
|
|
19
11
|
return e;
|
|
20
12
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
version: t.version
|
|
13
|
+
function yo(t) {
|
|
14
|
+
return {
|
|
15
|
+
version: t.version,
|
|
16
|
+
arguments: b(t.arguments),
|
|
17
|
+
states: b(t.states)
|
|
24
18
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
e.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
19
|
+
}
|
|
20
|
+
function dt(t) {
|
|
21
|
+
if (!t)
|
|
22
|
+
return;
|
|
23
|
+
const e = [];
|
|
24
|
+
for (const { id: r, name: n, inputs: o, outputs: s } of t)
|
|
25
|
+
e.push({
|
|
26
|
+
id: r,
|
|
27
|
+
name: n,
|
|
28
|
+
inputs: b(o),
|
|
29
|
+
outputs: b(s)
|
|
30
|
+
});
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
function bt(t) {
|
|
34
|
+
if (!t)
|
|
35
|
+
return;
|
|
36
|
+
const e = [];
|
|
37
|
+
for (const { id: r, name: n, params: o } of t)
|
|
38
|
+
e.push({
|
|
39
|
+
id: r,
|
|
40
|
+
name: n,
|
|
41
|
+
params: b(o)
|
|
42
|
+
});
|
|
43
|
+
return e;
|
|
44
|
+
}
|
|
45
|
+
function Ft(t) {
|
|
46
|
+
if (!t)
|
|
47
|
+
return;
|
|
48
|
+
const e = [];
|
|
49
|
+
for (const { id: r, name: n, properties: o, methods: s, events: c } of t)
|
|
50
|
+
e.push({
|
|
51
|
+
id: r,
|
|
52
|
+
name: n,
|
|
53
|
+
properties: b(o),
|
|
54
|
+
methods: dt(s),
|
|
55
|
+
events: bt(c)
|
|
56
|
+
});
|
|
47
57
|
return e;
|
|
48
58
|
}
|
|
49
|
-
function
|
|
59
|
+
function jo(t) {
|
|
60
|
+
return {
|
|
61
|
+
version: t.version,
|
|
62
|
+
properties: b(t.properties),
|
|
63
|
+
methods: dt(t.methods),
|
|
64
|
+
events: bt(t.events),
|
|
65
|
+
slots: Ft(t.slots),
|
|
66
|
+
states: b(t.states)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function Mt() {
|
|
50
70
|
return {
|
|
51
71
|
appList: [],
|
|
52
72
|
activeApp: {
|
|
@@ -73,7 +93,18 @@ function Ct() {
|
|
|
73
93
|
depends: {}
|
|
74
94
|
};
|
|
75
95
|
}
|
|
76
|
-
function
|
|
96
|
+
function Dt({ id: t, name: e, type: r }) {
|
|
97
|
+
return { id: t, name: e, type: r };
|
|
98
|
+
}
|
|
99
|
+
function vo(t) {
|
|
100
|
+
if (!t)
|
|
101
|
+
return;
|
|
102
|
+
const e = [];
|
|
103
|
+
for (const r of t)
|
|
104
|
+
e.push(Dt(r));
|
|
105
|
+
return e;
|
|
106
|
+
}
|
|
107
|
+
function Ut() {
|
|
77
108
|
return {
|
|
78
109
|
spaces: [],
|
|
79
110
|
activeFunc: {
|
|
@@ -92,34 +123,34 @@ function Et() {
|
|
|
92
123
|
}
|
|
93
124
|
};
|
|
94
125
|
}
|
|
95
|
-
function
|
|
126
|
+
function Bt() {
|
|
96
127
|
return {
|
|
97
128
|
spaces: []
|
|
98
129
|
};
|
|
99
130
|
}
|
|
100
|
-
function
|
|
131
|
+
function zt() {
|
|
101
132
|
return {
|
|
102
133
|
spaces: []
|
|
103
134
|
};
|
|
104
135
|
}
|
|
105
|
-
var
|
|
106
|
-
function
|
|
107
|
-
var e =
|
|
136
|
+
var ht = typeof global == "object" && global && global.Object === Object && global, Gt = typeof self == "object" && self && self.Object === Object && self, f = ht || Gt || Function("return this")(), T = f.Symbol, yt = Object.prototype, Lt = yt.hasOwnProperty, Nt = yt.toString, A = T ? T.toStringTag : void 0;
|
|
137
|
+
function Rt(t) {
|
|
138
|
+
var e = Lt.call(t, A), r = t[A];
|
|
108
139
|
try {
|
|
109
|
-
t[
|
|
140
|
+
t[A] = void 0;
|
|
110
141
|
var n = !0;
|
|
111
142
|
} catch {
|
|
112
143
|
}
|
|
113
|
-
var
|
|
114
|
-
return n && (e ? t[
|
|
144
|
+
var o = Nt.call(t);
|
|
145
|
+
return n && (e ? t[A] = r : delete t[A]), o;
|
|
115
146
|
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
118
|
-
return
|
|
147
|
+
var Vt = Object.prototype, Ht = Vt.toString;
|
|
148
|
+
function Kt(t) {
|
|
149
|
+
return Ht.call(t);
|
|
119
150
|
}
|
|
120
|
-
var
|
|
151
|
+
var Wt = "[object Null]", qt = "[object Undefined]", q = T ? T.toStringTag : void 0;
|
|
121
152
|
function x(t) {
|
|
122
|
-
return t == null ? t === void 0 ?
|
|
153
|
+
return t == null ? t === void 0 ? qt : Wt : q && q in Object(t) ? Rt(t) : Kt(t);
|
|
123
154
|
}
|
|
124
155
|
function C(t) {
|
|
125
156
|
return t != null && typeof t == "object";
|
|
@@ -129,25 +160,25 @@ function I(t) {
|
|
|
129
160
|
var e = typeof t;
|
|
130
161
|
return t != null && (e == "object" || e == "function");
|
|
131
162
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
163
|
+
var Xt = "[object AsyncFunction]", Yt = "[object Function]", Jt = "[object GeneratorFunction]", Zt = "[object Proxy]";
|
|
164
|
+
function jt(t) {
|
|
134
165
|
if (!I(t))
|
|
135
166
|
return !1;
|
|
136
167
|
var e = x(t);
|
|
137
|
-
return e ==
|
|
168
|
+
return e == Yt || e == Jt || e == Xt || e == Zt;
|
|
138
169
|
}
|
|
139
|
-
var D =
|
|
170
|
+
var D = f["__core-js_shared__"], X = (function() {
|
|
140
171
|
var t = /[^.]+$/.exec(D && D.keys && D.keys.IE_PROTO || "");
|
|
141
172
|
return t ? "Symbol(src)_1." + t : "";
|
|
142
173
|
})();
|
|
143
|
-
function
|
|
174
|
+
function Qt(t) {
|
|
144
175
|
return !!X && X in t;
|
|
145
176
|
}
|
|
146
|
-
var
|
|
177
|
+
var kt = Function.prototype, te = kt.toString;
|
|
147
178
|
function j(t) {
|
|
148
179
|
if (t != null) {
|
|
149
180
|
try {
|
|
150
|
-
return
|
|
181
|
+
return te.call(t);
|
|
151
182
|
} catch {
|
|
152
183
|
}
|
|
153
184
|
try {
|
|
@@ -157,23 +188,23 @@ function j(t) {
|
|
|
157
188
|
}
|
|
158
189
|
return "";
|
|
159
190
|
}
|
|
160
|
-
var
|
|
161
|
-
"^" +
|
|
191
|
+
var ee = /[\\^$.*+?()[\]{}|]/g, re = /^\[object .+?Constructor\]$/, ne = Function.prototype, oe = Object.prototype, ae = ne.toString, ie = oe.hasOwnProperty, se = RegExp(
|
|
192
|
+
"^" + ae.call(ie).replace(ee, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
162
193
|
);
|
|
163
|
-
function
|
|
164
|
-
if (!I(t) ||
|
|
194
|
+
function ce(t) {
|
|
195
|
+
if (!I(t) || Qt(t))
|
|
165
196
|
return !1;
|
|
166
|
-
var e =
|
|
197
|
+
var e = jt(t) ? se : re;
|
|
167
198
|
return e.test(j(t));
|
|
168
199
|
}
|
|
169
|
-
function
|
|
200
|
+
function ue(t, e) {
|
|
170
201
|
return t?.[e];
|
|
171
202
|
}
|
|
172
203
|
function v(t, e) {
|
|
173
|
-
var r =
|
|
174
|
-
return
|
|
204
|
+
var r = ue(t, e);
|
|
205
|
+
return ce(r) ? r : void 0;
|
|
175
206
|
}
|
|
176
|
-
var B = v(
|
|
207
|
+
var B = v(f, "WeakMap"), Y = Object.create, fe = /* @__PURE__ */ (function() {
|
|
177
208
|
function t() {
|
|
178
209
|
}
|
|
179
210
|
return function(e) {
|
|
@@ -192,17 +223,17 @@ var B = v(p, "WeakMap"), Y = Object.create, ae = /* @__PURE__ */ (function() {
|
|
|
192
223
|
} catch {
|
|
193
224
|
}
|
|
194
225
|
})();
|
|
195
|
-
function
|
|
226
|
+
function pe(t, e) {
|
|
196
227
|
for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
|
|
197
228
|
;
|
|
198
229
|
return t;
|
|
199
230
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
231
|
+
var le = 9007199254740991, ge = /^(?:0|[1-9]\d*)$/;
|
|
232
|
+
function de(t, e) {
|
|
202
233
|
var r = typeof t;
|
|
203
|
-
return e = e ??
|
|
234
|
+
return e = e ?? le, !!e && (r == "number" || r != "symbol" && ge.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
204
235
|
}
|
|
205
|
-
function
|
|
236
|
+
function be(t, e, r) {
|
|
206
237
|
e == "__proto__" && J ? J(t, e, {
|
|
207
238
|
configurable: !0,
|
|
208
239
|
enumerable: !0,
|
|
@@ -210,114 +241,114 @@ function fe(t, e, r) {
|
|
|
210
241
|
writable: !0
|
|
211
242
|
}) : t[e] = r;
|
|
212
243
|
}
|
|
213
|
-
function
|
|
244
|
+
function vt(t, e) {
|
|
214
245
|
return t === e || t !== t && e !== e;
|
|
215
246
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
247
|
+
var he = Object.prototype, ye = he.hasOwnProperty;
|
|
248
|
+
function je(t, e, r) {
|
|
218
249
|
var n = t[e];
|
|
219
|
-
(!(
|
|
250
|
+
(!(ye.call(t, e) && vt(n, r)) || r === void 0 && !(e in t)) && be(t, e, r);
|
|
220
251
|
}
|
|
221
|
-
var
|
|
222
|
-
function
|
|
223
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
252
|
+
var ve = 9007199254740991;
|
|
253
|
+
function _t(t) {
|
|
254
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= ve;
|
|
224
255
|
}
|
|
225
|
-
function
|
|
226
|
-
return t != null &&
|
|
256
|
+
function _e(t) {
|
|
257
|
+
return t != null && _t(t.length) && !jt(t);
|
|
227
258
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
230
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype ||
|
|
259
|
+
var Te = Object.prototype;
|
|
260
|
+
function Tt(t) {
|
|
261
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || Te;
|
|
231
262
|
return t === r;
|
|
232
263
|
}
|
|
233
|
-
function
|
|
264
|
+
function me(t, e) {
|
|
234
265
|
for (var r = -1, n = Array(t); ++r < t; )
|
|
235
266
|
n[r] = e(r);
|
|
236
267
|
return n;
|
|
237
268
|
}
|
|
238
|
-
var
|
|
269
|
+
var $e = "[object Arguments]";
|
|
239
270
|
function Z(t) {
|
|
240
|
-
return C(t) && x(t) ==
|
|
271
|
+
return C(t) && x(t) == $e;
|
|
241
272
|
}
|
|
242
|
-
var
|
|
273
|
+
var mt = Object.prototype, we = mt.hasOwnProperty, Ae = mt.propertyIsEnumerable, Oe = Z(/* @__PURE__ */ (function() {
|
|
243
274
|
return arguments;
|
|
244
275
|
})()) ? Z : function(t) {
|
|
245
|
-
return C(t) &&
|
|
276
|
+
return C(t) && we.call(t, "callee") && !Ae.call(t, "callee");
|
|
246
277
|
};
|
|
247
|
-
function
|
|
278
|
+
function Se() {
|
|
248
279
|
return !1;
|
|
249
280
|
}
|
|
250
|
-
var
|
|
251
|
-
i[
|
|
252
|
-
i[
|
|
253
|
-
function
|
|
254
|
-
return C(t) &&
|
|
281
|
+
var $t = typeof exports == "object" && exports && !exports.nodeType && exports, Q = $t && typeof module == "object" && module && !module.nodeType && module, Pe = Q && Q.exports === $t, k = Pe ? f.Buffer : void 0, xe = k ? k.isBuffer : void 0, wt = xe || Se, Ce = "[object Arguments]", Ee = "[object Array]", Ie = "[object Boolean]", Fe = "[object Date]", Me = "[object Error]", De = "[object Function]", Ue = "[object Map]", Be = "[object Number]", ze = "[object Object]", Ge = "[object RegExp]", Le = "[object Set]", Ne = "[object String]", Re = "[object WeakMap]", Ve = "[object ArrayBuffer]", He = "[object DataView]", Ke = "[object Float32Array]", We = "[object Float64Array]", qe = "[object Int8Array]", Xe = "[object Int16Array]", Ye = "[object Int32Array]", Je = "[object Uint8Array]", Ze = "[object Uint8ClampedArray]", Qe = "[object Uint16Array]", ke = "[object Uint32Array]", i = {};
|
|
282
|
+
i[Ke] = i[We] = i[qe] = i[Xe] = i[Ye] = i[Je] = i[Ze] = i[Qe] = i[ke] = !0;
|
|
283
|
+
i[Ce] = i[Ee] = i[Ve] = i[Ie] = i[He] = i[Fe] = i[Me] = i[De] = i[Ue] = i[Be] = i[ze] = i[Ge] = i[Le] = i[Ne] = i[Re] = !1;
|
|
284
|
+
function tr(t) {
|
|
285
|
+
return C(t) && _t(t.length) && !!i[x(t)];
|
|
255
286
|
}
|
|
256
287
|
function R(t) {
|
|
257
288
|
return function(e) {
|
|
258
289
|
return t(e);
|
|
259
290
|
};
|
|
260
291
|
}
|
|
261
|
-
var
|
|
292
|
+
var At = typeof exports == "object" && exports && !exports.nodeType && exports, O = At && typeof module == "object" && module && !module.nodeType && module, er = O && O.exports === At, U = er && ht.process, m = (function() {
|
|
262
293
|
try {
|
|
263
294
|
var t = O && O.require && O.require("util").types;
|
|
264
295
|
return t || U && U.binding && U.binding("util");
|
|
265
296
|
} catch {
|
|
266
297
|
}
|
|
267
|
-
})(), tt =
|
|
268
|
-
function
|
|
269
|
-
var r = N(t), n = !r &&
|
|
298
|
+
})(), tt = m && m.isTypedArray, rr = tt ? R(tt) : tr, nr = Object.prototype, or = nr.hasOwnProperty;
|
|
299
|
+
function ar(t, e) {
|
|
300
|
+
var r = N(t), n = !r && Oe(t), o = !r && !n && wt(t), s = !r && !n && !o && rr(t), c = r || n || o || s, _ = c ? me(t.length, String) : [], g = _.length;
|
|
270
301
|
for (var u in t)
|
|
271
|
-
|
|
302
|
+
or.call(t, u) && !(c && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
272
303
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return
|
|
304
|
+
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
305
|
+
s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
306
|
+
de(u, g))) && _.push(u);
|
|
307
|
+
return _;
|
|
277
308
|
}
|
|
278
|
-
function
|
|
309
|
+
function Ot(t, e) {
|
|
279
310
|
return function(r) {
|
|
280
311
|
return t(e(r));
|
|
281
312
|
};
|
|
282
313
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
285
|
-
if (!
|
|
286
|
-
return
|
|
314
|
+
var ir = Ot(Object.keys, Object), sr = Object.prototype, cr = sr.hasOwnProperty;
|
|
315
|
+
function ur(t) {
|
|
316
|
+
if (!Tt(t))
|
|
317
|
+
return ir(t);
|
|
287
318
|
var e = [];
|
|
288
319
|
for (var r in Object(t))
|
|
289
|
-
|
|
320
|
+
cr.call(t, r) && r != "constructor" && e.push(r);
|
|
290
321
|
return e;
|
|
291
322
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
323
|
+
function fr(t) {
|
|
324
|
+
return _e(t) ? ar(t) : ur(t);
|
|
294
325
|
}
|
|
295
326
|
var S = v(Object, "create");
|
|
296
|
-
function
|
|
327
|
+
function pr() {
|
|
297
328
|
this.__data__ = S ? S(null) : {}, this.size = 0;
|
|
298
329
|
}
|
|
299
|
-
function
|
|
330
|
+
function lr(t) {
|
|
300
331
|
var e = this.has(t) && delete this.__data__[t];
|
|
301
332
|
return this.size -= e ? 1 : 0, e;
|
|
302
333
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
334
|
+
var gr = "__lodash_hash_undefined__", dr = Object.prototype, br = dr.hasOwnProperty;
|
|
335
|
+
function hr(t) {
|
|
305
336
|
var e = this.__data__;
|
|
306
337
|
if (S) {
|
|
307
338
|
var r = e[t];
|
|
308
|
-
return r ===
|
|
339
|
+
return r === gr ? void 0 : r;
|
|
309
340
|
}
|
|
310
|
-
return
|
|
341
|
+
return br.call(e, t) ? e[t] : void 0;
|
|
311
342
|
}
|
|
312
|
-
var
|
|
313
|
-
function
|
|
343
|
+
var yr = Object.prototype, jr = yr.hasOwnProperty;
|
|
344
|
+
function vr(t) {
|
|
314
345
|
var e = this.__data__;
|
|
315
|
-
return S ? e[t] !== void 0 :
|
|
346
|
+
return S ? e[t] !== void 0 : jr.call(e, t);
|
|
316
347
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
348
|
+
var _r = "__lodash_hash_undefined__";
|
|
349
|
+
function Tr(t, e) {
|
|
319
350
|
var r = this.__data__;
|
|
320
|
-
return this.size += this.has(t) ? 0 : 1, r[t] = S && e === void 0 ?
|
|
351
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = S && e === void 0 ? _r : e, this;
|
|
321
352
|
}
|
|
322
353
|
function y(t) {
|
|
323
354
|
var e = -1, r = t == null ? 0 : t.length;
|
|
@@ -326,341 +357,342 @@ function y(t) {
|
|
|
326
357
|
this.set(n[0], n[1]);
|
|
327
358
|
}
|
|
328
359
|
}
|
|
329
|
-
y.prototype.clear =
|
|
330
|
-
y.prototype.delete =
|
|
331
|
-
y.prototype.get =
|
|
332
|
-
y.prototype.has =
|
|
333
|
-
y.prototype.set =
|
|
334
|
-
function
|
|
360
|
+
y.prototype.clear = pr;
|
|
361
|
+
y.prototype.delete = lr;
|
|
362
|
+
y.prototype.get = hr;
|
|
363
|
+
y.prototype.has = vr;
|
|
364
|
+
y.prototype.set = Tr;
|
|
365
|
+
function mr() {
|
|
335
366
|
this.__data__ = [], this.size = 0;
|
|
336
367
|
}
|
|
337
|
-
function
|
|
368
|
+
function F(t, e) {
|
|
338
369
|
for (var r = t.length; r--; )
|
|
339
|
-
if (
|
|
370
|
+
if (vt(t[r][0], e))
|
|
340
371
|
return r;
|
|
341
372
|
return -1;
|
|
342
373
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
var e = this.__data__, r =
|
|
374
|
+
var $r = Array.prototype, wr = $r.splice;
|
|
375
|
+
function Ar(t) {
|
|
376
|
+
var e = this.__data__, r = F(e, t);
|
|
346
377
|
if (r < 0)
|
|
347
378
|
return !1;
|
|
348
379
|
var n = e.length - 1;
|
|
349
|
-
return r == n ? e.pop() :
|
|
380
|
+
return r == n ? e.pop() : wr.call(e, r, 1), --this.size, !0;
|
|
350
381
|
}
|
|
351
|
-
function
|
|
352
|
-
var e = this.__data__, r =
|
|
382
|
+
function Or(t) {
|
|
383
|
+
var e = this.__data__, r = F(e, t);
|
|
353
384
|
return r < 0 ? void 0 : e[r][1];
|
|
354
385
|
}
|
|
355
|
-
function
|
|
356
|
-
return
|
|
386
|
+
function Sr(t) {
|
|
387
|
+
return F(this.__data__, t) > -1;
|
|
357
388
|
}
|
|
358
|
-
function
|
|
359
|
-
var r = this.__data__, n =
|
|
389
|
+
function Pr(t, e) {
|
|
390
|
+
var r = this.__data__, n = F(r, t);
|
|
360
391
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
361
392
|
}
|
|
362
|
-
function
|
|
393
|
+
function l(t) {
|
|
363
394
|
var e = -1, r = t == null ? 0 : t.length;
|
|
364
395
|
for (this.clear(); ++e < r; ) {
|
|
365
396
|
var n = t[e];
|
|
366
397
|
this.set(n[0], n[1]);
|
|
367
398
|
}
|
|
368
399
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var P = v(
|
|
375
|
-
function
|
|
400
|
+
l.prototype.clear = mr;
|
|
401
|
+
l.prototype.delete = Ar;
|
|
402
|
+
l.prototype.get = Or;
|
|
403
|
+
l.prototype.has = Sr;
|
|
404
|
+
l.prototype.set = Pr;
|
|
405
|
+
var P = v(f, "Map");
|
|
406
|
+
function xr() {
|
|
376
407
|
this.size = 0, this.__data__ = {
|
|
377
408
|
hash: new y(),
|
|
378
|
-
map: new (P ||
|
|
409
|
+
map: new (P || l)(),
|
|
379
410
|
string: new y()
|
|
380
411
|
};
|
|
381
412
|
}
|
|
382
|
-
function
|
|
413
|
+
function Cr(t) {
|
|
383
414
|
var e = typeof t;
|
|
384
415
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
385
416
|
}
|
|
386
|
-
function
|
|
417
|
+
function M(t, e) {
|
|
387
418
|
var r = t.__data__;
|
|
388
|
-
return
|
|
419
|
+
return Cr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
389
420
|
}
|
|
390
|
-
function
|
|
391
|
-
var e =
|
|
421
|
+
function Er(t) {
|
|
422
|
+
var e = M(this, t).delete(t);
|
|
392
423
|
return this.size -= e ? 1 : 0, e;
|
|
393
424
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
425
|
+
function Ir(t) {
|
|
426
|
+
return M(this, t).get(t);
|
|
396
427
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
428
|
+
function Fr(t) {
|
|
429
|
+
return M(this, t).has(t);
|
|
399
430
|
}
|
|
400
|
-
function
|
|
401
|
-
var r =
|
|
431
|
+
function Mr(t, e) {
|
|
432
|
+
var r = M(this, t), n = r.size;
|
|
402
433
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
403
434
|
}
|
|
404
|
-
function
|
|
435
|
+
function $(t) {
|
|
405
436
|
var e = -1, r = t == null ? 0 : t.length;
|
|
406
437
|
for (this.clear(); ++e < r; ) {
|
|
407
438
|
var n = t[e];
|
|
408
439
|
this.set(n[0], n[1]);
|
|
409
440
|
}
|
|
410
441
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
function
|
|
417
|
-
for (var r = -1, n = e.length,
|
|
418
|
-
t[
|
|
442
|
+
$.prototype.clear = xr;
|
|
443
|
+
$.prototype.delete = Er;
|
|
444
|
+
$.prototype.get = Ir;
|
|
445
|
+
$.prototype.has = Fr;
|
|
446
|
+
$.prototype.set = Mr;
|
|
447
|
+
function Dr(t, e) {
|
|
448
|
+
for (var r = -1, n = e.length, o = t.length; ++r < n; )
|
|
449
|
+
t[o + r] = e[r];
|
|
419
450
|
return t;
|
|
420
451
|
}
|
|
421
|
-
var
|
|
422
|
-
function
|
|
423
|
-
this.__data__ = new
|
|
452
|
+
var Ur = Ot(Object.getPrototypeOf, Object);
|
|
453
|
+
function Br() {
|
|
454
|
+
this.__data__ = new l(), this.size = 0;
|
|
424
455
|
}
|
|
425
|
-
function
|
|
456
|
+
function zr(t) {
|
|
426
457
|
var e = this.__data__, r = e.delete(t);
|
|
427
458
|
return this.size = e.size, r;
|
|
428
459
|
}
|
|
429
|
-
function
|
|
460
|
+
function Gr(t) {
|
|
430
461
|
return this.__data__.get(t);
|
|
431
462
|
}
|
|
432
|
-
function
|
|
463
|
+
function Lr(t) {
|
|
433
464
|
return this.__data__.has(t);
|
|
434
465
|
}
|
|
435
|
-
var
|
|
436
|
-
function
|
|
466
|
+
var Nr = 200;
|
|
467
|
+
function Rr(t, e) {
|
|
437
468
|
var r = this.__data__;
|
|
438
|
-
if (r instanceof
|
|
469
|
+
if (r instanceof l) {
|
|
439
470
|
var n = r.__data__;
|
|
440
|
-
if (!P || n.length <
|
|
471
|
+
if (!P || n.length < Nr - 1)
|
|
441
472
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
442
|
-
r = this.__data__ = new
|
|
473
|
+
r = this.__data__ = new $(n);
|
|
443
474
|
}
|
|
444
475
|
return r.set(t, e), this.size = r.size, this;
|
|
445
476
|
}
|
|
446
|
-
function
|
|
447
|
-
var e = this.__data__ = new
|
|
477
|
+
function w(t) {
|
|
478
|
+
var e = this.__data__ = new l(t);
|
|
448
479
|
this.size = e.size;
|
|
449
480
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
var
|
|
481
|
+
w.prototype.clear = Br;
|
|
482
|
+
w.prototype.delete = zr;
|
|
483
|
+
w.prototype.get = Gr;
|
|
484
|
+
w.prototype.has = Lr;
|
|
485
|
+
w.prototype.set = Rr;
|
|
486
|
+
var St = typeof exports == "object" && exports && !exports.nodeType && exports, et = St && typeof module == "object" && module && !module.nodeType && module, Vr = et && et.exports === St, rt = Vr ? f.Buffer : void 0;
|
|
456
487
|
rt && rt.allocUnsafe;
|
|
457
|
-
function
|
|
488
|
+
function Hr(t, e) {
|
|
458
489
|
return t.slice();
|
|
459
490
|
}
|
|
460
|
-
function
|
|
461
|
-
for (var r = -1, n = t == null ? 0 : t.length,
|
|
462
|
-
var
|
|
463
|
-
e(
|
|
491
|
+
function Kr(t, e) {
|
|
492
|
+
for (var r = -1, n = t == null ? 0 : t.length, o = 0, s = []; ++r < n; ) {
|
|
493
|
+
var c = t[r];
|
|
494
|
+
e(c, r, t) && (s[o++] = c);
|
|
464
495
|
}
|
|
465
|
-
return
|
|
496
|
+
return s;
|
|
466
497
|
}
|
|
467
|
-
function
|
|
498
|
+
function Wr() {
|
|
468
499
|
return [];
|
|
469
500
|
}
|
|
470
|
-
var
|
|
471
|
-
return t == null ? [] : (t = Object(t),
|
|
472
|
-
return
|
|
501
|
+
var qr = Object.prototype, Xr = qr.propertyIsEnumerable, nt = Object.getOwnPropertySymbols, Yr = nt ? function(t) {
|
|
502
|
+
return t == null ? [] : (t = Object(t), Kr(nt(t), function(e) {
|
|
503
|
+
return Xr.call(t, e);
|
|
473
504
|
}));
|
|
474
|
-
} :
|
|
475
|
-
function
|
|
505
|
+
} : Wr;
|
|
506
|
+
function Jr(t, e, r) {
|
|
476
507
|
var n = e(t);
|
|
477
|
-
return N(t) ? n :
|
|
508
|
+
return N(t) ? n : Dr(n, r(t));
|
|
478
509
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
510
|
+
function Zr(t) {
|
|
511
|
+
return Jr(t, fr, Yr);
|
|
481
512
|
}
|
|
482
|
-
var z = v(
|
|
483
|
-
(z &&
|
|
484
|
-
var e = x(t), r = e ==
|
|
513
|
+
var z = v(f, "DataView"), G = v(f, "Promise"), L = v(f, "Set"), ot = "[object Map]", Qr = "[object Object]", at = "[object Promise]", it = "[object Set]", st = "[object WeakMap]", ct = "[object DataView]", kr = j(z), tn = j(P), en = j(G), rn = j(L), nn = j(B), p = x;
|
|
514
|
+
(z && p(new z(new ArrayBuffer(1))) != ct || P && p(new P()) != ot || G && p(G.resolve()) != at || L && p(new L()) != it || B && p(new B()) != st) && (p = function(t) {
|
|
515
|
+
var e = x(t), r = e == Qr ? t.constructor : void 0, n = r ? j(r) : "";
|
|
485
516
|
if (n)
|
|
486
517
|
switch (n) {
|
|
487
|
-
case
|
|
518
|
+
case kr:
|
|
488
519
|
return ct;
|
|
489
|
-
case
|
|
520
|
+
case tn:
|
|
490
521
|
return ot;
|
|
491
|
-
case
|
|
522
|
+
case en:
|
|
492
523
|
return at;
|
|
493
|
-
case
|
|
524
|
+
case rn:
|
|
494
525
|
return it;
|
|
495
|
-
case
|
|
526
|
+
case nn:
|
|
496
527
|
return st;
|
|
497
528
|
}
|
|
498
529
|
return e;
|
|
499
530
|
});
|
|
500
|
-
var
|
|
501
|
-
function
|
|
531
|
+
var on = Object.prototype, an = on.hasOwnProperty;
|
|
532
|
+
function sn(t) {
|
|
502
533
|
var e = t.length, r = new t.constructor(e);
|
|
503
|
-
return e && typeof t[0] == "string" &&
|
|
534
|
+
return e && typeof t[0] == "string" && an.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
504
535
|
}
|
|
505
|
-
var ut =
|
|
536
|
+
var ut = f.Uint8Array;
|
|
506
537
|
function V(t) {
|
|
507
538
|
var e = new t.constructor(t.byteLength);
|
|
508
539
|
return new ut(e).set(new ut(t)), e;
|
|
509
540
|
}
|
|
510
|
-
function
|
|
541
|
+
function cn(t, e) {
|
|
511
542
|
var r = V(t.buffer);
|
|
512
543
|
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
513
544
|
}
|
|
514
|
-
var
|
|
515
|
-
function
|
|
516
|
-
var e = new t.constructor(t.source,
|
|
545
|
+
var un = /\w*$/;
|
|
546
|
+
function fn(t) {
|
|
547
|
+
var e = new t.constructor(t.source, un.exec(t));
|
|
517
548
|
return e.lastIndex = t.lastIndex, e;
|
|
518
549
|
}
|
|
519
|
-
var ft =
|
|
520
|
-
function
|
|
550
|
+
var ft = T ? T.prototype : void 0, pt = ft ? ft.valueOf : void 0;
|
|
551
|
+
function pn(t) {
|
|
521
552
|
return pt ? Object(pt.call(t)) : {};
|
|
522
553
|
}
|
|
523
|
-
function
|
|
554
|
+
function ln(t, e) {
|
|
524
555
|
var r = V(t.buffer);
|
|
525
556
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
526
557
|
}
|
|
527
|
-
var
|
|
528
|
-
function
|
|
558
|
+
var gn = "[object Boolean]", dn = "[object Date]", bn = "[object Map]", hn = "[object Number]", yn = "[object RegExp]", jn = "[object Set]", vn = "[object String]", _n = "[object Symbol]", Tn = "[object ArrayBuffer]", mn = "[object DataView]", $n = "[object Float32Array]", wn = "[object Float64Array]", An = "[object Int8Array]", On = "[object Int16Array]", Sn = "[object Int32Array]", Pn = "[object Uint8Array]", xn = "[object Uint8ClampedArray]", Cn = "[object Uint16Array]", En = "[object Uint32Array]";
|
|
559
|
+
function In(t, e, r) {
|
|
529
560
|
var n = t.constructor;
|
|
530
561
|
switch (e) {
|
|
531
|
-
case
|
|
562
|
+
case Tn:
|
|
532
563
|
return V(t);
|
|
533
|
-
case
|
|
534
|
-
case
|
|
564
|
+
case gn:
|
|
565
|
+
case dn:
|
|
535
566
|
return new n(+t);
|
|
536
|
-
case yn:
|
|
537
|
-
return rn(t);
|
|
538
|
-
case jn:
|
|
539
|
-
case vn:
|
|
540
|
-
case _n:
|
|
541
|
-
case Tn:
|
|
542
567
|
case mn:
|
|
568
|
+
return cn(t);
|
|
543
569
|
case $n:
|
|
544
570
|
case wn:
|
|
545
571
|
case An:
|
|
546
572
|
case On:
|
|
547
|
-
|
|
548
|
-
case
|
|
549
|
-
|
|
550
|
-
case
|
|
573
|
+
case Sn:
|
|
574
|
+
case Pn:
|
|
575
|
+
case xn:
|
|
576
|
+
case Cn:
|
|
577
|
+
case En:
|
|
578
|
+
return ln(t);
|
|
551
579
|
case bn:
|
|
580
|
+
return new n();
|
|
581
|
+
case hn:
|
|
582
|
+
case vn:
|
|
552
583
|
return new n(t);
|
|
553
|
-
case
|
|
554
|
-
return
|
|
555
|
-
case
|
|
584
|
+
case yn:
|
|
585
|
+
return fn(t);
|
|
586
|
+
case jn:
|
|
556
587
|
return new n();
|
|
557
|
-
case
|
|
558
|
-
return
|
|
588
|
+
case _n:
|
|
589
|
+
return pn(t);
|
|
559
590
|
}
|
|
560
591
|
}
|
|
561
|
-
function
|
|
562
|
-
return typeof t.constructor == "function" && !
|
|
592
|
+
function Fn(t) {
|
|
593
|
+
return typeof t.constructor == "function" && !Tt(t) ? fe(Ur(t)) : {};
|
|
563
594
|
}
|
|
564
|
-
var
|
|
565
|
-
function
|
|
566
|
-
return C(t) &&
|
|
595
|
+
var Mn = "[object Map]";
|
|
596
|
+
function Dn(t) {
|
|
597
|
+
return C(t) && p(t) == Mn;
|
|
567
598
|
}
|
|
568
|
-
var lt =
|
|
569
|
-
function
|
|
570
|
-
return C(t) &&
|
|
599
|
+
var lt = m && m.isMap, Un = lt ? R(lt) : Dn, Bn = "[object Set]";
|
|
600
|
+
function zn(t) {
|
|
601
|
+
return C(t) && p(t) == Bn;
|
|
571
602
|
}
|
|
572
|
-
var gt =
|
|
573
|
-
a[
|
|
574
|
-
a[
|
|
575
|
-
function E(t, e, r, n,
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
603
|
+
var gt = m && m.isSet, Gn = gt ? R(gt) : zn, Pt = "[object Arguments]", Ln = "[object Array]", Nn = "[object Boolean]", Rn = "[object Date]", Vn = "[object Error]", xt = "[object Function]", Hn = "[object GeneratorFunction]", Kn = "[object Map]", Wn = "[object Number]", Ct = "[object Object]", qn = "[object RegExp]", Xn = "[object Set]", Yn = "[object String]", Jn = "[object Symbol]", Zn = "[object WeakMap]", Qn = "[object ArrayBuffer]", kn = "[object DataView]", to = "[object Float32Array]", eo = "[object Float64Array]", ro = "[object Int8Array]", no = "[object Int16Array]", oo = "[object Int32Array]", ao = "[object Uint8Array]", io = "[object Uint8ClampedArray]", so = "[object Uint16Array]", co = "[object Uint32Array]", a = {};
|
|
604
|
+
a[Pt] = a[Ln] = a[Qn] = a[kn] = a[Nn] = a[Rn] = a[to] = a[eo] = a[ro] = a[no] = a[oo] = a[Kn] = a[Wn] = a[Ct] = a[qn] = a[Xn] = a[Yn] = a[Jn] = a[ao] = a[io] = a[so] = a[co] = !0;
|
|
605
|
+
a[Vn] = a[xt] = a[Zn] = !1;
|
|
606
|
+
function E(t, e, r, n, o, s) {
|
|
607
|
+
var c;
|
|
608
|
+
if (c !== void 0)
|
|
609
|
+
return c;
|
|
579
610
|
if (!I(t))
|
|
580
611
|
return t;
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
612
|
+
var _ = N(t);
|
|
613
|
+
if (_)
|
|
614
|
+
c = sn(t);
|
|
584
615
|
else {
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
return
|
|
588
|
-
if (
|
|
589
|
-
|
|
616
|
+
var g = p(t), u = g == xt || g == Hn;
|
|
617
|
+
if (wt(t))
|
|
618
|
+
return Hr(t);
|
|
619
|
+
if (g == Ct || g == Pt || u && !o)
|
|
620
|
+
c = u ? {} : Fn(t);
|
|
590
621
|
else {
|
|
591
|
-
if (!a[
|
|
592
|
-
return
|
|
593
|
-
|
|
622
|
+
if (!a[g])
|
|
623
|
+
return o ? t : {};
|
|
624
|
+
c = In(t, g);
|
|
594
625
|
}
|
|
595
626
|
}
|
|
596
|
-
|
|
597
|
-
var H =
|
|
627
|
+
s || (s = new w());
|
|
628
|
+
var H = s.get(t);
|
|
598
629
|
if (H)
|
|
599
630
|
return H;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}) :
|
|
603
|
-
|
|
631
|
+
s.set(t, c), Gn(t) ? t.forEach(function(d) {
|
|
632
|
+
c.add(E(d, e, r, d, t, s));
|
|
633
|
+
}) : Un(t) && t.forEach(function(d, h) {
|
|
634
|
+
c.set(h, E(d, e, r, h, t, s));
|
|
604
635
|
});
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
K && (h = d, d = t[h]),
|
|
608
|
-
}),
|
|
609
|
-
}
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return E(t,
|
|
613
|
-
}
|
|
614
|
-
function
|
|
615
|
-
const e = [], r = (n,
|
|
616
|
-
if (
|
|
617
|
-
n.children.forEach((
|
|
636
|
+
var Et = Zr, K = _ ? void 0 : Et(t);
|
|
637
|
+
return pe(K || t, function(d, h) {
|
|
638
|
+
K && (h = d, d = t[h]), je(c, h, E(d, e, r, h, t, s));
|
|
639
|
+
}), c;
|
|
640
|
+
}
|
|
641
|
+
var uo = 1, fo = 4;
|
|
642
|
+
function po(t) {
|
|
643
|
+
return E(t, uo | fo);
|
|
644
|
+
}
|
|
645
|
+
function lo(t) {
|
|
646
|
+
const e = [], r = (n, o, s) => {
|
|
647
|
+
if (o !== "" && (o += "."), o += n.key, s = po(s), s.push(n.name), !n.ui && !n.array)
|
|
648
|
+
n.children.forEach((c) => r(c, o, s));
|
|
618
649
|
else {
|
|
619
650
|
if (n.ui === "strInput" && n.static)
|
|
620
651
|
return;
|
|
621
|
-
const
|
|
622
|
-
keys:
|
|
623
|
-
names:
|
|
652
|
+
const c = {
|
|
653
|
+
keys: o,
|
|
654
|
+
names: s,
|
|
624
655
|
raw: n
|
|
625
656
|
};
|
|
626
|
-
e.push(
|
|
657
|
+
e.push(c);
|
|
627
658
|
}
|
|
628
659
|
};
|
|
629
660
|
return t.forEach((n) => {
|
|
630
661
|
r(n, "", []);
|
|
631
662
|
}), e;
|
|
632
663
|
}
|
|
633
|
-
function
|
|
664
|
+
function go() {
|
|
634
665
|
const t = {};
|
|
635
666
|
for (const e in W) {
|
|
636
667
|
const r = {}, n = W[e];
|
|
637
|
-
for (const
|
|
638
|
-
r[
|
|
668
|
+
for (const o in n.properties)
|
|
669
|
+
r[o] = lo(n.properties[o]);
|
|
639
670
|
t[e] = r;
|
|
640
671
|
}
|
|
641
672
|
return t;
|
|
642
673
|
}
|
|
643
|
-
function
|
|
674
|
+
function bo() {
|
|
644
675
|
return {
|
|
645
|
-
properties:
|
|
676
|
+
properties: go()
|
|
646
677
|
};
|
|
647
678
|
}
|
|
648
|
-
const
|
|
679
|
+
const _o = (function() {
|
|
649
680
|
return window.globalState || (window.globalState = {
|
|
650
|
-
runtime:
|
|
651
|
-
app:
|
|
652
|
-
compute:
|
|
653
|
-
data:
|
|
654
|
-
resource:
|
|
681
|
+
runtime: bo(),
|
|
682
|
+
app: Mt(),
|
|
683
|
+
compute: Ut(),
|
|
684
|
+
data: Bt(),
|
|
685
|
+
resource: zt()
|
|
655
686
|
}), window.globalState;
|
|
656
687
|
})();
|
|
657
688
|
export {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
689
|
+
_o as globalState,
|
|
690
|
+
Mt as initApp,
|
|
691
|
+
Ut as initCompute,
|
|
692
|
+
Bt as initData,
|
|
693
|
+
zt as initResource,
|
|
694
|
+
bo as initRuntime,
|
|
695
|
+
jo as toCompMeta,
|
|
696
|
+
vo as toFields,
|
|
697
|
+
yo as toPageMeta
|
|
666
698
|
};
|
package/dist/state/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Type } from 'x-runtime-lib';
|
|
2
2
|
export type AppListEntry = {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -36,7 +36,7 @@ type PageMeta = {
|
|
|
36
36
|
export type ActivePage = {
|
|
37
37
|
meta: PageMeta;
|
|
38
38
|
};
|
|
39
|
-
export declare function toPageMeta(src:
|
|
39
|
+
export declare function toPageMeta(src: PageMeta): PageMeta;
|
|
40
40
|
type Method = {
|
|
41
41
|
id: string;
|
|
42
42
|
name: string;
|
|
@@ -48,22 +48,25 @@ type Event = {
|
|
|
48
48
|
name: string;
|
|
49
49
|
params?: Field[];
|
|
50
50
|
};
|
|
51
|
+
type Slot = {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
properties?: Field[];
|
|
55
|
+
methods?: Method[];
|
|
56
|
+
events?: Event[];
|
|
57
|
+
};
|
|
51
58
|
type CompMeta = {
|
|
52
59
|
version: string;
|
|
53
60
|
properties?: Field[];
|
|
54
61
|
methods?: Method[];
|
|
55
62
|
events?: Event[];
|
|
63
|
+
slots?: Slot[];
|
|
56
64
|
states?: Field[];
|
|
57
|
-
slots?: {
|
|
58
|
-
properties?: Field[];
|
|
59
|
-
methods?: Method[];
|
|
60
|
-
events?: Event[];
|
|
61
|
-
}[];
|
|
62
65
|
};
|
|
63
66
|
export type ActiveComp = {
|
|
64
67
|
meta: CompMeta;
|
|
65
68
|
};
|
|
66
|
-
export declare function toCompMeta(src:
|
|
69
|
+
export declare function toCompMeta(src: CompMeta): CompMeta;
|
|
67
70
|
export type ActiveObjectApp = {
|
|
68
71
|
type: 'page' | 'comp';
|
|
69
72
|
subtype: string;
|
package/dist/state/compute.d.ts
CHANGED
|
@@ -42,19 +42,18 @@ export type ComputeSpace = {
|
|
|
42
42
|
flows: Flow[];
|
|
43
43
|
position: number;
|
|
44
44
|
};
|
|
45
|
+
type Field = {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
type: Type;
|
|
49
|
+
};
|
|
45
50
|
export type ActiveFunc = {
|
|
46
51
|
id: string;
|
|
47
52
|
name: string;
|
|
48
|
-
inputs
|
|
49
|
-
|
|
50
|
-
name: string;
|
|
51
|
-
}[];
|
|
52
|
-
outputs: {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
type: Type;
|
|
56
|
-
}[];
|
|
53
|
+
inputs?: Field[];
|
|
54
|
+
outputs?: Field[];
|
|
57
55
|
};
|
|
56
|
+
export declare function toFields(srcFields?: Field[]): Field[] | undefined;
|
|
58
57
|
export type ActiveFlow = {
|
|
59
58
|
id: string;
|
|
60
59
|
name: string;
|
|
@@ -70,3 +69,4 @@ export type Compute = {
|
|
|
70
69
|
activeObject: ActiveObjectCompute;
|
|
71
70
|
};
|
|
72
71
|
export declare function initCompute(): Compute;
|
|
72
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-state-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lodash-es": "^4.17.21",
|
|
26
26
|
"vue": "^3.5.23",
|
|
27
27
|
"vuetify": "^3.10.9",
|
|
28
|
-
"x-runtime-lib": "^0.8.
|
|
28
|
+
"x-runtime-lib": "^0.8.95"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^9.39.1",
|