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