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