x-block-lib 0.10.19 → 0.10.20
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 +404 -404
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,21 +104,21 @@ function rn(e, t, n) {
|
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/core/utils/common/check.ts
|
|
107
|
-
function
|
|
107
|
+
function V(e) {
|
|
108
108
|
return e === "string" ? "String" : e === "number" ? "Number" : e === "boolean" ? "Boolean" : e === "array" ? "Array" : e === "object" ? "Object" : (e === "any" || console.assert(!1), null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return e.array ? "Array" : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Qt(e.items) : e.ui === "multiTypes" ? Qt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
|
|
110
|
+
function an(e) {
|
|
111
|
+
return e.array ? "Array" : e.ui === "temp" ? V(e.type) : e.ui === "dummy" ? null : e.ui === "strInput" ? "String" : e.ui === "numInput" ? "Number" : e.ui === "switch" ? "Boolean" : e.ui === "select" ? Qt(e.items) : e.ui === "multiTypes" ? Qt(e.types) : e.ui === "selectComp" ? "Comp" : e.ui === "selectSlot" ? "Slot" : e.ui === "selectAdaptSlot" ? "AdaptSlot" : e.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function on(e) {
|
|
114
114
|
return e === "string" ? "String" : e === "integer" || e === "decimal" ? "Number" : e === "boolean" ? "Boolean" : e === "enum" || e === "dateTime" ? "String" : (console.assert(!1), null);
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/core/utils/common/colour.ts
|
|
118
|
-
var
|
|
118
|
+
var sn = /* @__PURE__ */ "#F44336.#FFEBEE.#FFCDD2.#EF9A9A.#E57373.#EF5350.#E53935.#D32F2F.#C62828.#B71C1C.#FF8A80.#FF5252.#FF1744.#D50000.#e91e63.#fce4ec.#f8bbd0.#f48fb1.#f06292.#ec407a.#d81b60.#c2185b.#ad1457.#880e4f.#ff80ab.#ff4081.#f50057.#c51162.#9c27b0.#f3e5f5.#e1bee7.#ce93d8.#ba68c8.#ab47bc.#8e24aa.#7b1fa2.#6a1b9a.#4a148c.#ea80fc.#e040fb.#d500f9.#aa00ff.#673ab7.#ede7f6.#d1c4e9.#b39ddb.#9575cd.#7e57c2.#5e35b1.#512da8.#4527a0.#311b92.#b388ff.#7c4dff.#651fff.#6200ea.#3f51b5.#e8eaf6.#c5cae9.#9fa8da.#7986cb.#5c6bc0.#3949ab.#303f9f.#283593.#1a237e.#8c9eff.#536dfe.#3d5afe.#304ffe.#2196F3.#E3F2FD.#BBDEFB.#90CAF9.#64B5F6.#42A5F5.#1E88E5.#1976D2.#1565C0.#0D47A1.#82B1FF.#448AFF.#2979FF.#2962FF.#03a9f4.#e1f5fe.#b3e5fc.#81d4fa.#4fc3f7.#29b6f6.#039be5.#0288d1.#0277bd.#01579b.#80d8ff.#40c4ff.#00b0ff.#0091ea.#00bcd4.#e0f7fa.#b2ebf2.#80deea.#4dd0e1.#26c6da.#00acc1.#0097a7.#00838f.#006064.#84ffff.#18ffff.#00e5ff.#00b8d4.#009688.#e0f2f1.#b2dfdb.#80cbc4.#4db6ac.#26a69a.#00897b.#00796b.#00695c.#004d40.#a7ffeb.#64ffda.#1de9b6.#00bfa5.#4CAF50.#E8F5E9.#C8E6C9.#A5D6A7.#81C784.#66BB6A.#43A047.#388E3C.#2E7D32.#1B5E20.#B9F6CA.#69F0AE.#00E676.#00C853.#8bc34a.#f1f8e9.#dcedc8.#c5e1a5.#aed581.#9ccc65.#7cb342.#689f38.#558b2f.#33691e.#ccff90.#b2ff59.#76ff03.#64dd17.#cddc39.#f9fbe7.#f0f4c3.#e6ee9c.#dce775.#d4e157.#c0ca33.#afb42b.#9e9d24.#827717.#f4ff81.#eeff41.#c6ff00.#aeea00.#ffeb3b.#fffde7.#fff9c4.#fff59d.#fff176.#ffee58.#fdd835.#fbc02d.#f9a825.#f57f17.#ffff8d.#ffff00.#ffea00.#ffd600.#ffc107.#fff8e1.#ffecb3.#ffe082.#ffd54f.#ffca28.#ffb300.#ffa000.#ff8f00.#ff6f00.#ffe57f.#ffd740.#ffc400.#ffab00.#ff9800.#fff3e0.#ffe0b2.#ffcc80.#ffb74d.#ffa726.#fb8c00.#f57c00.#ef6c00.#e65100.#ffd180.#ffab40.#ff9100.#ff6d00.#ff5722.#fbe9e7.#ffccbc.#ffab91.#ff8a65.#ff7043.#f4511e.#e64a19.#d84315.#bf360c.#ff9e80.#ff6e40.#ff3d00.#dd2c00.#795548.#efebe9.#d7ccc8.#bcaaa4.#a1887f.#8d6e63.#6d4c41.#5d4037.#4e342e.#3e2723.#.#.#.#.#607d8b.#eceff1.#cfd8dc.#b0bec5.#90a4ae.#78909c.#546e7a.#455a64.#37474f.#263238.#.#.#.#.#9e9e9e.#fafafa.#f5f5f5.#eeeeee.#e0e0e0.#bdbdbd.#757575.#616161.#424242.#212121.#.#.#.#.#000000.#FFFFFF.#FFFFFF00".split(".");
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/core/utils/common/parameter.ts
|
|
121
|
-
function
|
|
121
|
+
function cn(e, t, n, r) {
|
|
122
122
|
let i = `
|
|
123
123
|
<block type="parameter_v1">
|
|
124
124
|
<mutation key="${t}" name="${n}" locale="${r ? "TRUE" : "FALSE"}"/>
|
|
@@ -126,7 +126,7 @@ function ln(e, t, n, r) {
|
|
|
126
126
|
`, a = p.xml.textToDom(i);
|
|
127
127
|
return re.domToBlock(a, e);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function H(e, t) {
|
|
130
130
|
try {
|
|
131
131
|
x.disable(), t.forEach((t) => {
|
|
132
132
|
let [n, r, i, a] = t, o = e.getInput(n)?.connection;
|
|
@@ -137,7 +137,7 @@ function V(e, t) {
|
|
|
137
137
|
if (e && e.key === r && e.name === i && e.locale === a) return;
|
|
138
138
|
s.dispose();
|
|
139
139
|
}
|
|
140
|
-
s =
|
|
140
|
+
s = cn(e.workspace, r, i, a), s.outputConnection.connect(o);
|
|
141
141
|
});
|
|
142
142
|
} finally {
|
|
143
143
|
x.enable();
|
|
@@ -145,56 +145,56 @@ function V(e, t) {
|
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
147
|
//#region src/core/utils/common/shadow.ts
|
|
148
|
-
function
|
|
148
|
+
function ln(e) {
|
|
149
149
|
let t = `<shadow type="text_v1"><field name="TEXT">${e}</field></shadow>`;
|
|
150
150
|
return p.xml.textToDom(t);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function un(e) {
|
|
153
153
|
let t = `<shadow type="math_number_v1"><field name="NUM">${e}</field></shadow>`;
|
|
154
154
|
return p.xml.textToDom(t);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function dn(e) {
|
|
157
157
|
let t = `<shadow type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></shadow>`;
|
|
158
158
|
return p.xml.textToDom(t);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function fn() {
|
|
161
161
|
return p.xml.textToDom("<shadow type=\"list_create_v1\"></shadow>");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function pn() {
|
|
164
164
|
return p.xml.textToDom("<shadow type=\"object_create_v1\"></shadow>");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function mn(e) {
|
|
167
167
|
let t = `<shadow type="${Zt(e)}"></shadow>`;
|
|
168
168
|
return p.xml.textToDom(t);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function hn(e) {
|
|
171
171
|
let t = `<shadow type="${Zt(e)}"></shadow>`;
|
|
172
172
|
return p.xml.textToDom(t);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function gn() {
|
|
175
175
|
return p.xml.textToDom("<shadow type=\"select_comp_v1\"></shadow>");
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function _n() {
|
|
178
178
|
return p.xml.textToDom("<shadow type=\"select_slot_v1\"></shadow>");
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function vn(e) {
|
|
181
181
|
let t = `<shadow type="color_picker_v1"><field name="COLOR">${e}</field></shadow>`;
|
|
182
182
|
return p.xml.textToDom(t);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function yn() {
|
|
185
185
|
return p.xml.textToDom("\n<shadow type=\"app_bind_entry_v1\">\n <field name=\"KIND\">notSet</field>\n</shadow>");
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function U(e) {
|
|
188
188
|
let t = null;
|
|
189
|
-
return e === "string" ? t =
|
|
189
|
+
return e === "string" ? t = ln("") : e === "number" ? t = un(0) : e === "boolean" ? t = dn(!1) : e === "array" ? t = fn() : e === "object" ? t = pn() : e === "any" ? t = null : console.assert(!1, "type not implementd"), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function bn(e) {
|
|
192
192
|
let t = null;
|
|
193
|
-
return e.array ? t =
|
|
193
|
+
return e.array ? t = fn() : e.ui === "temp" ? t = U(e.type) : e.ui === "dummy" ? t = null : e.ui === "strInput" ? t = ln(e.default) : e.ui === "numInput" ? t = un(e.default) : e.ui === "switch" ? t = dn(e.default) : e.ui === "select" ? t = mn(e.items) : e.ui === "multiTypes" ? t = hn(e.types) : e.ui === "selectComp" ? t = gn() : e.ui === "selectSlot" ? t = _n() : e.ui === "colorPicker" ? t = vn(e.default ?? "#ff0000") : console.assert(!1, "property ui not implementd"), t;
|
|
194
194
|
}
|
|
195
195
|
//#endregion
|
|
196
196
|
//#region src/core/utils/app/argument.ts
|
|
197
|
-
function
|
|
197
|
+
function xn() {
|
|
198
198
|
let { activeObject: e, activePage: t } = S.app, n = [];
|
|
199
199
|
if (e.type === "page" && t.meta.arguments) for (let { id: e, name: r, type: i } of t.meta.arguments) n.push({
|
|
200
200
|
key: e,
|
|
@@ -203,7 +203,7 @@ function Sn() {
|
|
|
203
203
|
});
|
|
204
204
|
return n;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Sn(e) {
|
|
207
207
|
let { activeObject: t, activePage: n } = S.app;
|
|
208
208
|
if (t.type === "page") {
|
|
209
209
|
let t = n.meta.arguments?.find((t) => t.id === e);
|
|
@@ -214,9 +214,9 @@ function Cn(e) {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Cn() {
|
|
218
218
|
let e = [];
|
|
219
|
-
return
|
|
219
|
+
return xn().forEach(({ key: t, name: n }) => {
|
|
220
220
|
e.push([n, t]);
|
|
221
221
|
}), F(e);
|
|
222
222
|
}
|
|
@@ -237,7 +237,7 @@ y.get_page_argument_v1 = {
|
|
|
237
237
|
}, 0);
|
|
238
238
|
},
|
|
239
239
|
genArgumentOpts_: function() {
|
|
240
|
-
return
|
|
240
|
+
return Cn();
|
|
241
241
|
},
|
|
242
242
|
onchange: function(e) {
|
|
243
243
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -248,7 +248,7 @@ y.get_page_argument_v1 = {
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
onArgumentChange_: function(e) {
|
|
251
|
-
let t =
|
|
251
|
+
let t = Sn(e);
|
|
252
252
|
if (!t) {
|
|
253
253
|
console.assert(!1);
|
|
254
254
|
return;
|
|
@@ -256,10 +256,10 @@ y.get_page_argument_v1 = {
|
|
|
256
256
|
this.argument.key = t.key, this.argument.name = t.name, this.argument.type = t.type, this.updateShape_();
|
|
257
257
|
},
|
|
258
258
|
updateShape_: function() {
|
|
259
|
-
this.setOutput(!0,
|
|
259
|
+
this.setOutput(!0, V(this.argument.type));
|
|
260
260
|
},
|
|
261
261
|
checkWarning_: function() {
|
|
262
|
-
let e =
|
|
262
|
+
let e = Sn(this.argument.key);
|
|
263
263
|
if (!e) {
|
|
264
264
|
this.setWarningText(P("WARN_ARGUMENT_NOT_FOUND"));
|
|
265
265
|
return;
|
|
@@ -276,7 +276,7 @@ y.get_page_argument_v1 = {
|
|
|
276
276
|
};
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/core/blocks/app/define/items/v1/index.ts
|
|
279
|
-
var
|
|
279
|
+
var wn = (e, t) => {
|
|
280
280
|
let n = Zt(e), r = Qt(e);
|
|
281
281
|
y[n] = {
|
|
282
282
|
init: function() {
|
|
@@ -294,11 +294,11 @@ var Tn = (e, t) => {
|
|
|
294
294
|
};
|
|
295
295
|
for (let e in Ke) {
|
|
296
296
|
let t = Ke[e];
|
|
297
|
-
for (let e of t.items)
|
|
297
|
+
for (let e of t.items) wn(e, Me(e));
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region src/core/blocks/app/define/types/v1/index.ts
|
|
301
|
-
var
|
|
301
|
+
var Tn = ye(), En = (e, t) => {
|
|
302
302
|
let n = Zt(e), i = Qt(e);
|
|
303
303
|
y[n] = {
|
|
304
304
|
init: function() {
|
|
@@ -346,10 +346,10 @@ var En = ye(), Dn = (e, t) => {
|
|
|
346
346
|
else if (n.trait === "percent") i = new r(We(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
|
|
347
347
|
this.value = e + "%";
|
|
348
348
|
}), a = "%";
|
|
349
|
-
else if (n.trait === "hexColor") i = new
|
|
349
|
+
else if (n.trait === "hexColor") i = new Tn.FieldColour(this.value, (e) => {
|
|
350
350
|
this.value = e;
|
|
351
351
|
}, {
|
|
352
|
-
colourOptions:
|
|
352
|
+
colourOptions: sn,
|
|
353
353
|
columns: 14
|
|
354
354
|
});
|
|
355
355
|
else if (n.trait === "themeColor") {
|
|
@@ -378,11 +378,11 @@ var En = ye(), Dn = (e, t) => {
|
|
|
378
378
|
};
|
|
379
379
|
for (let e in Ke) {
|
|
380
380
|
let t = Ke[e];
|
|
381
|
-
for (let e of t.types)
|
|
381
|
+
for (let e of t.types) En(e, Pe(e));
|
|
382
382
|
}
|
|
383
383
|
//#endregion
|
|
384
384
|
//#region src/core/utils/app/app.ts
|
|
385
|
-
function
|
|
385
|
+
function Dn() {
|
|
386
386
|
let e = [], { appList: t } = S.app;
|
|
387
387
|
for (let { id: n, name: r } of t) e.push({
|
|
388
388
|
id: n,
|
|
@@ -390,22 +390,22 @@ function On() {
|
|
|
390
390
|
});
|
|
391
391
|
return e;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function On(e) {
|
|
394
394
|
let { appList: t } = S.app, n = t.find((t) => t.id === e);
|
|
395
395
|
if (n) return {
|
|
396
396
|
id: n.id,
|
|
397
397
|
name: n.name
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function kn() {
|
|
401
401
|
let e = [];
|
|
402
|
-
return
|
|
402
|
+
return Dn().forEach(({ id: t, name: n }) => {
|
|
403
403
|
e.push([n, t]);
|
|
404
404
|
}), F(e);
|
|
405
405
|
}
|
|
406
406
|
//#endregion
|
|
407
407
|
//#region src/core/utils/app/node.ts
|
|
408
|
-
function
|
|
408
|
+
function An(e, t, n, r, i) {
|
|
409
409
|
let { activeObject: a, activePage: o, activeComp: s, depends: c } = S.app;
|
|
410
410
|
if (e.events && e.events.length > 0) return !1;
|
|
411
411
|
if (C[e.key] && C[e.key][t]) {
|
|
@@ -467,7 +467,7 @@ function jn(e, t, n, r, i) {
|
|
|
467
467
|
}
|
|
468
468
|
return !0;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function jn(e, t) {
|
|
471
471
|
let { activeObject: n, activeComp: r } = S.app;
|
|
472
472
|
if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
|
|
473
473
|
let e = r.meta.slots.find((e) => e.id === t);
|
|
@@ -479,7 +479,7 @@ function Mn(e, t) {
|
|
|
479
479
|
}
|
|
480
480
|
return !(I(e.key) && n.type === "comp" && r.meta.events && r.meta.events.length > 0);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Mn(e, t, n) {
|
|
483
483
|
let { activeObject: r, activeComp: i, depends: a } = S.app;
|
|
484
484
|
if (e.methods && e.methods.length > 0) return !1;
|
|
485
485
|
if (L(e.key) && t) {
|
|
@@ -509,7 +509,7 @@ function Nn(e, t, n) {
|
|
|
509
509
|
}
|
|
510
510
|
return !0;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Nn(e, t) {
|
|
513
513
|
let { activeObject: n, activeComp: r } = S.app;
|
|
514
514
|
if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
|
|
515
515
|
let e = r.meta.slots.find((e) => e.id === t);
|
|
@@ -521,7 +521,7 @@ function Pn(e, t) {
|
|
|
521
521
|
}
|
|
522
522
|
return !(I(e.key) && n.type === "comp" && r.meta.methods && r.meta.methods.length > 0);
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Pn(e, t) {
|
|
525
525
|
let { activeObject: n, activeComp: r } = S.app;
|
|
526
526
|
if (z(e.key) && t && n.type === "comp" && r.meta.slots) {
|
|
527
527
|
let e = r.meta.slots.find((e) => e.id === t);
|
|
@@ -540,7 +540,7 @@ function Fn(e, t) {
|
|
|
540
540
|
}
|
|
541
541
|
return !0;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Fn(e, t, n, r, i) {
|
|
544
544
|
let { activeObject: a, activeComp: o, depends: s } = S.app;
|
|
545
545
|
if (C[e.key] && C[e.key][t] && C[e.key][t].length > 0) return !1;
|
|
546
546
|
if (L(e.key) && r) {
|
|
@@ -578,7 +578,7 @@ function In(e, t, n, r, i) {
|
|
|
578
578
|
}
|
|
579
579
|
return !0;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function In(e, t, n, r, i) {
|
|
582
582
|
let { activeObject: a, activeComp: o, depends: s } = S.app;
|
|
583
583
|
if (C[e.key] && C[e.key][t]) {
|
|
584
584
|
for (let { keys: n, raw: r } of C[e.key][t]) if (!tn(n, r)) return !1;
|
|
@@ -618,10 +618,10 @@ function Ln(e, t, n, r, i) {
|
|
|
618
618
|
}
|
|
619
619
|
return !0;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return e ? e === "onEvent" ?
|
|
621
|
+
function Ln(e, t, n, r, i, a) {
|
|
622
|
+
return e ? e === "onEvent" ? An(t, n, r, i, a) : e === "triggerEvent" ? jn(t, r) : e === "callMethod" ? Mn(t, i, a) : e === "implementMethod" ? Nn(t, r) : e === "implementMethodOutput" ? Pn(t, r) : e === "getProperty" ? Fn(t, n, r, i, a) : e === "setProperty" ? In(t, n, r, i, a) : !1 : !1;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function W(e) {
|
|
625
625
|
let { activeObject: t } = S.app, n = Ne(t.type, t.subtype);
|
|
626
626
|
for (let r of t.nodes) {
|
|
627
627
|
let t = w(r.key);
|
|
@@ -629,11 +629,11 @@ function U(e) {
|
|
|
629
629
|
console.assert(!1, "invalid element", r.key);
|
|
630
630
|
continue;
|
|
631
631
|
}
|
|
632
|
-
if (!
|
|
632
|
+
if (!Ln(e, t, n, r.slot, r.comp, r.adaptSlot)) return !0;
|
|
633
633
|
}
|
|
634
634
|
return !1;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Rn(e) {
|
|
637
637
|
let { activeObject: t } = S.app, n = [], r = Ne(t.type, t.subtype);
|
|
638
638
|
for (let i of t.nodes) {
|
|
639
639
|
let t = w(i.key);
|
|
@@ -641,7 +641,7 @@ function zn(e) {
|
|
|
641
641
|
console.assert(!1, "invalid element", i.key);
|
|
642
642
|
continue;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
Ln(e, t, r, i.slot, i.comp, i.adaptSlot) || n.push({
|
|
645
645
|
id: i.id,
|
|
646
646
|
key: i.key,
|
|
647
647
|
name: t.name,
|
|
@@ -650,7 +650,7 @@ function zn(e) {
|
|
|
650
650
|
}
|
|
651
651
|
return n;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function G(e) {
|
|
654
654
|
let { activeObject: t } = S.app, n = t.nodes.find((t) => t.id === e);
|
|
655
655
|
if (!n) return;
|
|
656
656
|
let r = w(n.key);
|
|
@@ -665,8 +665,8 @@ function W(e) {
|
|
|
665
665
|
alias: n.alias
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
let { i18n: t } = ct, n = [], r =
|
|
668
|
+
function zn(e) {
|
|
669
|
+
let { i18n: t } = ct, n = [], r = Rn(e);
|
|
670
670
|
for (let { id: e, name: i, alias: a } of r) {
|
|
671
671
|
let r = t.global.t(i);
|
|
672
672
|
a && (r += " / " + a), n.push([r, e]);
|
|
@@ -675,33 +675,33 @@ function Bn(e) {
|
|
|
675
675
|
}
|
|
676
676
|
//#endregion
|
|
677
677
|
//#region src/core/utils/app/state.ts
|
|
678
|
-
function
|
|
678
|
+
function Bn() {
|
|
679
679
|
let { activeObject: e, activePage: t, activeComp: n } = S.app;
|
|
680
680
|
return e.type === "page" ? t.meta.states ?? [] : e.type === "comp" ? n.meta.states ?? [] : [];
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Vn(e) {
|
|
683
683
|
let { activeObject: t, activePage: n, activeComp: r } = S.app;
|
|
684
684
|
if (t.type === "page") return n.meta.states?.find((t) => t.id === e);
|
|
685
685
|
if (t.type === "comp") return r.meta.states?.find((t) => t.id === e);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
let e = [], t =
|
|
687
|
+
function Hn() {
|
|
688
|
+
let e = [], t = Bn();
|
|
689
689
|
for (let { id: n, name: r } of t) e.push([r, n]);
|
|
690
690
|
return F(e);
|
|
691
691
|
}
|
|
692
692
|
//#endregion
|
|
693
693
|
//#region src/core/utils/app/bind.ts
|
|
694
|
-
function
|
|
694
|
+
function Un() {
|
|
695
695
|
let e = ["notSet"];
|
|
696
|
-
return
|
|
696
|
+
return Rn("setProperty").length > 0 && e.push("property"), Bn().length > 0 && e.push("state"), e;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Wn() {
|
|
699
699
|
let { i18n: e } = ct;
|
|
700
|
-
return F(
|
|
700
|
+
return F(Un().map((t) => t === "notSet" ? [e.global.t(`x-runtime-lib.${t}`), t] : [P(`APP_${De(t)}`), t]));
|
|
701
701
|
}
|
|
702
702
|
//#endregion
|
|
703
703
|
//#region src/core/utils/app/comp.ts
|
|
704
|
-
function
|
|
704
|
+
function Gn() {
|
|
705
705
|
let { activeApp: e } = S.app, t = [{
|
|
706
706
|
id: "",
|
|
707
707
|
name: ""
|
|
@@ -712,7 +712,7 @@ function Kn() {
|
|
|
712
712
|
});
|
|
713
713
|
return t;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Kn(e) {
|
|
716
716
|
let { activeApp: t } = S.app;
|
|
717
717
|
if (!e) return {
|
|
718
718
|
id: "",
|
|
@@ -724,16 +724,16 @@ function qn(e) {
|
|
|
724
724
|
name: n.name
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function qn() {
|
|
728
728
|
let { i18n: e } = ct, t = [];
|
|
729
|
-
return
|
|
729
|
+
return Gn().forEach(({ id: n, name: r }) => {
|
|
730
730
|
let i = r;
|
|
731
731
|
n === "" && (i = e.global.t("x-runtime-lib.notSet")), t.push([i, n]);
|
|
732
732
|
}), F(t);
|
|
733
733
|
}
|
|
734
734
|
//#endregion
|
|
735
735
|
//#region src/core/utils/app/event.ts
|
|
736
|
-
function
|
|
736
|
+
function K(e) {
|
|
737
737
|
if (!e) return;
|
|
738
738
|
let t = [];
|
|
739
739
|
for (let { id: n, name: r, type: i } of e) t.push({
|
|
@@ -743,7 +743,7 @@ function G(e) {
|
|
|
743
743
|
});
|
|
744
744
|
return t;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function q(e) {
|
|
747
747
|
return [{
|
|
748
748
|
key: "newValue",
|
|
749
749
|
name: "x-runtime-lib.newValue",
|
|
@@ -754,7 +754,7 @@ function K(e) {
|
|
|
754
754
|
type: e
|
|
755
755
|
}];
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Jn(e) {
|
|
758
758
|
let t = !0;
|
|
759
759
|
switch (e) {
|
|
760
760
|
case "": break;
|
|
@@ -795,7 +795,7 @@ function Yn(e) {
|
|
|
795
795
|
}
|
|
796
796
|
return t;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Yn(e) {
|
|
799
799
|
let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = [], o = Ne(t.type, t.subtype), s = t.nodes.find((t) => t.id === e);
|
|
800
800
|
if (!s) return a;
|
|
801
801
|
let c = w(s.key);
|
|
@@ -810,7 +810,7 @@ function Xn(e) {
|
|
|
810
810
|
id: T("elementPropertyChangeEvent", e, t),
|
|
811
811
|
kind: "elementPropertyChangeEvent",
|
|
812
812
|
names: n,
|
|
813
|
-
params:
|
|
813
|
+
params: q(en(r))
|
|
814
814
|
});
|
|
815
815
|
if (L(c.key) && s.comp) {
|
|
816
816
|
let t = i[s.comp];
|
|
@@ -818,7 +818,7 @@ function Xn(e) {
|
|
|
818
818
|
id: T("refEvent", e, n),
|
|
819
819
|
kind: "refEvent",
|
|
820
820
|
names: [r],
|
|
821
|
-
params:
|
|
821
|
+
params: K(i)
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
if (L(c.key) && s.comp) {
|
|
@@ -827,7 +827,7 @@ function Xn(e) {
|
|
|
827
827
|
id: T("refPropertyChangeEvent", e, n),
|
|
828
828
|
kind: "refPropertyChangeEvent",
|
|
829
829
|
names: [r],
|
|
830
|
-
params:
|
|
830
|
+
params: q(i)
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
if (R(c.key) && s.comp) {
|
|
@@ -836,7 +836,7 @@ function Xn(e) {
|
|
|
836
836
|
id: T("multipleRefEvent", e, n),
|
|
837
837
|
kind: "multipleRefEvent",
|
|
838
838
|
names: [r],
|
|
839
|
-
params:
|
|
839
|
+
params: K(i)
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
if (R(c.key) && s.comp) {
|
|
@@ -845,7 +845,7 @@ function Xn(e) {
|
|
|
845
845
|
id: T("multipleRefPropertyChangeEvent", e, n),
|
|
846
846
|
kind: "multipleRefPropertyChangeEvent",
|
|
847
847
|
names: [r],
|
|
848
|
-
params:
|
|
848
|
+
params: q(i)
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
if (z(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
|
|
@@ -854,7 +854,7 @@ function Xn(e) {
|
|
|
854
854
|
id: T("customSlotEvent", e, Fe(r.id, t.id, n.id)),
|
|
855
855
|
kind: "customSlotEvent",
|
|
856
856
|
names: [t.name, n.name],
|
|
857
|
-
params:
|
|
857
|
+
params: K(n.params)
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
if (z(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
|
|
@@ -863,7 +863,7 @@ function Xn(e) {
|
|
|
863
863
|
id: T("customSlotPropertyChangeEvent", e, Ve(r.id, t.id, n.id)),
|
|
864
864
|
kind: "customSlotPropertyChangeEvent",
|
|
865
865
|
names: [t.name, n.name],
|
|
866
|
-
params:
|
|
866
|
+
params: q(n.type)
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
if (B(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
|
|
@@ -872,7 +872,7 @@ function Xn(e) {
|
|
|
872
872
|
id: T("multipleCustomSlotEvent", e, Fe(r.id, t.id, n.id)),
|
|
873
873
|
kind: "multipleCustomSlotEvent",
|
|
874
874
|
names: [t.name, n.name],
|
|
875
|
-
params:
|
|
875
|
+
params: K(n.params)
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
878
|
if (B(c.key) && s.slot && t.type === "comp" && r.meta.slots) {
|
|
@@ -881,20 +881,20 @@ function Xn(e) {
|
|
|
881
881
|
id: T("multipleCustomSlotPropertyChangeEvent", e, Ve(r.id, t.id, n.id)),
|
|
882
882
|
kind: "multipleCustomSlotPropertyChangeEvent",
|
|
883
883
|
names: [t.name, n.name],
|
|
884
|
-
params:
|
|
884
|
+
params: q(n.type)
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
if (I(c.key) && t.type === "comp" && r.meta.events) for (let { id: t, name: n, params: i } of r.meta.events) a.push({
|
|
888
888
|
id: T("customEvent", e, t),
|
|
889
889
|
kind: "customEvent",
|
|
890
890
|
names: [n],
|
|
891
|
-
params:
|
|
891
|
+
params: K(i)
|
|
892
892
|
});
|
|
893
893
|
if (I(c.key) && t.type === "comp" && r.meta.properties) for (let { id: t, name: n, type: i } of r.meta.properties) a.push({
|
|
894
894
|
id: T("customPropertyChangeEvent", e, t),
|
|
895
895
|
kind: "customPropertyChangeEvent",
|
|
896
896
|
names: [n],
|
|
897
|
-
params:
|
|
897
|
+
params: q(i)
|
|
898
898
|
});
|
|
899
899
|
if (I(c.key) && t.type === "comp" && s.adaptSlot) {
|
|
900
900
|
let { kind: t, mainKey: n, slotKey: r } = ot(s.adaptSlot);
|
|
@@ -920,7 +920,7 @@ function Xn(e) {
|
|
|
920
920
|
i.name,
|
|
921
921
|
n.name
|
|
922
922
|
],
|
|
923
|
-
params:
|
|
923
|
+
params: q(n.type)
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
} else if (t === "customSlot") {
|
|
@@ -935,7 +935,7 @@ function Xn(e) {
|
|
|
935
935
|
i.name,
|
|
936
936
|
r.name
|
|
937
937
|
],
|
|
938
|
-
params:
|
|
938
|
+
params: K(r.params)
|
|
939
939
|
});
|
|
940
940
|
if (i && i.properties) for (let r of i.properties) a.push({
|
|
941
941
|
id: T("customAdaptSlotPropertyChangeEvent", e, Ve(n, i.id, r.id)),
|
|
@@ -945,7 +945,7 @@ function Xn(e) {
|
|
|
945
945
|
i.name,
|
|
946
946
|
r.name
|
|
947
947
|
],
|
|
948
|
-
params:
|
|
948
|
+
params: q(r.type)
|
|
949
949
|
});
|
|
950
950
|
}
|
|
951
951
|
}
|
|
@@ -956,18 +956,18 @@ function Xn(e) {
|
|
|
956
956
|
id: T("stateChangeEvent", "globality", e),
|
|
957
957
|
kind: "stateChangeEvent",
|
|
958
958
|
names: [t],
|
|
959
|
-
params:
|
|
959
|
+
params: q(r)
|
|
960
960
|
});
|
|
961
961
|
} else if (t.type === "comp" && r.meta.states) for (let { id: e, name: t, type: n } of r.meta.states) a.push({
|
|
962
962
|
id: T("stateChangeEvent", "globality", e),
|
|
963
963
|
kind: "stateChangeEvent",
|
|
964
964
|
names: [t],
|
|
965
|
-
params:
|
|
965
|
+
params: q(n)
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
968
|
return a;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Xn(e) {
|
|
971
971
|
if (!e) return;
|
|
972
972
|
let { activeObject: t, activePage: n, activeComp: r, depends: i } = S.app, a = Ne(t.type, t.subtype), { kind: o, nodeId: s, eventKey: c } = Ze(e), l = t.nodes.find((e) => e.id === s);
|
|
973
973
|
if (!l) return;
|
|
@@ -991,7 +991,7 @@ function Zn(e) {
|
|
|
991
991
|
id: e,
|
|
992
992
|
kind: o,
|
|
993
993
|
names: t.names,
|
|
994
|
-
params:
|
|
994
|
+
params: q(en(t.raw))
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
} else if (o === "refEvent") {
|
|
@@ -1003,7 +1003,7 @@ function Zn(e) {
|
|
|
1003
1003
|
id: e,
|
|
1004
1004
|
kind: o,
|
|
1005
1005
|
names: [n.name],
|
|
1006
|
-
params:
|
|
1006
|
+
params: K(n.params)
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
@@ -1016,7 +1016,7 @@ function Zn(e) {
|
|
|
1016
1016
|
id: e,
|
|
1017
1017
|
kind: o,
|
|
1018
1018
|
names: [n.name],
|
|
1019
|
-
params:
|
|
1019
|
+
params: q(n.type)
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
@@ -1029,7 +1029,7 @@ function Zn(e) {
|
|
|
1029
1029
|
id: e,
|
|
1030
1030
|
kind: o,
|
|
1031
1031
|
names: [n.name],
|
|
1032
|
-
params:
|
|
1032
|
+
params: K(n.params)
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
@@ -1042,7 +1042,7 @@ function Zn(e) {
|
|
|
1042
1042
|
id: e,
|
|
1043
1043
|
kind: o,
|
|
1044
1044
|
names: [n.name],
|
|
1045
|
-
params:
|
|
1045
|
+
params: q(n.type)
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1057,7 +1057,7 @@ function Zn(e) {
|
|
|
1057
1057
|
id: e,
|
|
1058
1058
|
kind: o,
|
|
1059
1059
|
names: [t.name, n.name],
|
|
1060
|
-
params:
|
|
1060
|
+
params: K(n.params)
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
@@ -1073,7 +1073,7 @@ function Zn(e) {
|
|
|
1073
1073
|
id: e,
|
|
1074
1074
|
kind: o,
|
|
1075
1075
|
names: [t.name, n.name],
|
|
1076
|
-
params:
|
|
1076
|
+
params: q(n.type)
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
@@ -1089,7 +1089,7 @@ function Zn(e) {
|
|
|
1089
1089
|
id: e,
|
|
1090
1090
|
kind: o,
|
|
1091
1091
|
names: [t.name, n.name],
|
|
1092
|
-
params:
|
|
1092
|
+
params: K(n.params)
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
@@ -1105,7 +1105,7 @@ function Zn(e) {
|
|
|
1105
1105
|
id: e,
|
|
1106
1106
|
kind: o,
|
|
1107
1107
|
names: [t.name, n.name],
|
|
1108
|
-
params:
|
|
1108
|
+
params: q(n.type)
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
@@ -1117,7 +1117,7 @@ function Zn(e) {
|
|
|
1117
1117
|
id: e,
|
|
1118
1118
|
kind: o,
|
|
1119
1119
|
names: [t.name],
|
|
1120
|
-
params:
|
|
1120
|
+
params: K(t.params)
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
} else if (o === "customPropertyChangeEvent") {
|
|
@@ -1127,7 +1127,7 @@ function Zn(e) {
|
|
|
1127
1127
|
id: e,
|
|
1128
1128
|
kind: o,
|
|
1129
1129
|
names: [t.name],
|
|
1130
|
-
params:
|
|
1130
|
+
params: q(t.type)
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
} else if (o === "elementAdaptSlotEvent") {
|
|
@@ -1170,7 +1170,7 @@ function Zn(e) {
|
|
|
1170
1170
|
t.name,
|
|
1171
1171
|
n.name
|
|
1172
1172
|
],
|
|
1173
|
-
params:
|
|
1173
|
+
params: q(n.type)
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
@@ -1193,7 +1193,7 @@ function Zn(e) {
|
|
|
1193
1193
|
t.name,
|
|
1194
1194
|
n.name
|
|
1195
1195
|
],
|
|
1196
|
-
params:
|
|
1196
|
+
params: K(n.params)
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
@@ -1216,7 +1216,7 @@ function Zn(e) {
|
|
|
1216
1216
|
t.name,
|
|
1217
1217
|
n.name
|
|
1218
1218
|
],
|
|
1219
|
-
params:
|
|
1219
|
+
params: q(n.type)
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
@@ -1229,7 +1229,7 @@ function Zn(e) {
|
|
|
1229
1229
|
id: e,
|
|
1230
1230
|
kind: o,
|
|
1231
1231
|
names: [t.name],
|
|
1232
|
-
params:
|
|
1232
|
+
params: q(t.type)
|
|
1233
1233
|
};
|
|
1234
1234
|
} else if (t.type === "comp") {
|
|
1235
1235
|
let t = r.meta.states?.find((e) => e.id === c);
|
|
@@ -1237,17 +1237,17 @@ function Zn(e) {
|
|
|
1237
1237
|
id: e,
|
|
1238
1238
|
kind: o,
|
|
1239
1239
|
names: [t.name],
|
|
1240
|
-
params:
|
|
1240
|
+
params: q(t.type)
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
let t = [], n =
|
|
1245
|
+
function Zn(e) {
|
|
1246
|
+
let t = [], n = Yn(e), r;
|
|
1247
1247
|
for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Je(i, a), e]);
|
|
1248
1248
|
return F(t);
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Qn(e) {
|
|
1251
1251
|
let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
|
|
1252
1252
|
if (!i) return r;
|
|
1253
1253
|
let a = w(i.key);
|
|
@@ -1258,7 +1258,7 @@ function $n(e) {
|
|
|
1258
1258
|
id: T("customSlotEvent", e, Fe(n.id, t.id, i.id)),
|
|
1259
1259
|
kind: "customSlotEvent",
|
|
1260
1260
|
names: [t.name, i.name],
|
|
1261
|
-
params:
|
|
1261
|
+
params: K(i.params)
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
if (B(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
|
|
@@ -1267,18 +1267,18 @@ function $n(e) {
|
|
|
1267
1267
|
id: T("multipleCustomSlotEvent", e, Fe(n.id, t.id, i.id)),
|
|
1268
1268
|
kind: "multipleCustomSlotEvent",
|
|
1269
1269
|
names: [t.name, i.name],
|
|
1270
|
-
params:
|
|
1270
|
+
params: K(i.params)
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
1273
|
if (I(a.key) && t.type === "comp" && n.meta.events) for (let e of n.meta.events) r.push({
|
|
1274
1274
|
id: T("customEvent", "globality", e.id),
|
|
1275
1275
|
kind: "customEvent",
|
|
1276
1276
|
names: [e.name],
|
|
1277
|
-
params:
|
|
1277
|
+
params: K(e.params)
|
|
1278
1278
|
});
|
|
1279
1279
|
return r;
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function $n(e) {
|
|
1282
1282
|
if (!e) return;
|
|
1283
1283
|
let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, eventKey: a } = Ze(e), o = t.nodes.find((e) => e.id === i);
|
|
1284
1284
|
if (!o) return;
|
|
@@ -1298,7 +1298,7 @@ function er(e) {
|
|
|
1298
1298
|
id: e,
|
|
1299
1299
|
kind: r,
|
|
1300
1300
|
names: [t.name, n.name],
|
|
1301
|
-
params:
|
|
1301
|
+
params: K(n.params)
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
@@ -1314,7 +1314,7 @@ function er(e) {
|
|
|
1314
1314
|
id: e,
|
|
1315
1315
|
kind: r,
|
|
1316
1316
|
names: [t.name, n.name],
|
|
1317
|
-
params:
|
|
1317
|
+
params: K(n.params)
|
|
1318
1318
|
};
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
@@ -1325,18 +1325,18 @@ function er(e) {
|
|
|
1325
1325
|
id: e,
|
|
1326
1326
|
kind: r,
|
|
1327
1327
|
names: [t.name],
|
|
1328
|
-
params:
|
|
1328
|
+
params: K(t.params)
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1333
|
-
let t = [], n =
|
|
1332
|
+
function er(e) {
|
|
1333
|
+
let t = [], n = Qn(e), r;
|
|
1334
1334
|
for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Je(i, a), e]);
|
|
1335
1335
|
return F(t);
|
|
1336
1336
|
}
|
|
1337
1337
|
//#endregion
|
|
1338
1338
|
//#region src/core/utils/app/method.ts
|
|
1339
|
-
function
|
|
1339
|
+
function J(e) {
|
|
1340
1340
|
if (!e) return;
|
|
1341
1341
|
let t = [];
|
|
1342
1342
|
for (let { id: n, name: r, type: i } of e) t.push({
|
|
@@ -1346,7 +1346,7 @@ function q(e) {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
return t;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Y(e) {
|
|
1350
1350
|
if (!e) return;
|
|
1351
1351
|
let t = [];
|
|
1352
1352
|
for (let { id: n, name: r, type: i } of e) t.push({
|
|
@@ -1356,7 +1356,7 @@ function J(e) {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
return t;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function tr(e) {
|
|
1360
1360
|
let t = !0;
|
|
1361
1361
|
switch (e) {
|
|
1362
1362
|
case "": break;
|
|
@@ -1382,7 +1382,7 @@ function nr(e) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
return t;
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function nr(e) {
|
|
1386
1386
|
let { activeObject: t, activeComp: n, depends: r } = S.app, i = [], a = t.nodes.find((t) => t.id === e);
|
|
1387
1387
|
if (!a) return i;
|
|
1388
1388
|
let o = w(a.key);
|
|
@@ -1400,8 +1400,8 @@ function rr(e) {
|
|
|
1400
1400
|
id: Le("refMethod", e, n),
|
|
1401
1401
|
kind: "refMethod",
|
|
1402
1402
|
names: [r],
|
|
1403
|
-
inputs:
|
|
1404
|
-
outputs:
|
|
1403
|
+
inputs: J(a),
|
|
1404
|
+
outputs: Y(o)
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
if (R(o.key) && a.comp) {
|
|
@@ -1410,16 +1410,16 @@ function rr(e) {
|
|
|
1410
1410
|
id: Le("multipleRefMethod", e, n),
|
|
1411
1411
|
kind: "multipleRefMethod",
|
|
1412
1412
|
names: [r],
|
|
1413
|
-
inputs:
|
|
1414
|
-
outputs:
|
|
1413
|
+
inputs: J(a),
|
|
1414
|
+
outputs: Y(o)
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
1417
|
if (I(o.key) && t.type === "comp" && n.meta.methods) for (let { id: t, name: r, inputs: a, outputs: o } of n.meta.methods) i.push({
|
|
1418
1418
|
id: Le("customMethod", e, t),
|
|
1419
1419
|
kind: "customMethod",
|
|
1420
1420
|
names: [r],
|
|
1421
|
-
inputs:
|
|
1422
|
-
outputs:
|
|
1421
|
+
inputs: J(a),
|
|
1422
|
+
outputs: Y(o)
|
|
1423
1423
|
});
|
|
1424
1424
|
if (I(o.key) && t.type === "comp" && a.adaptSlot) {
|
|
1425
1425
|
let { kind: t, mainKey: n, slotKey: o } = ot(a.adaptSlot);
|
|
@@ -1451,15 +1451,15 @@ function rr(e) {
|
|
|
1451
1451
|
r.name,
|
|
1452
1452
|
a.name
|
|
1453
1453
|
],
|
|
1454
|
-
inputs:
|
|
1455
|
-
outputs:
|
|
1454
|
+
inputs: J(a.inputs),
|
|
1455
|
+
outputs: Y(a.outputs)
|
|
1456
1456
|
});
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
return i;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function rr(e) {
|
|
1463
1463
|
if (!e) return;
|
|
1464
1464
|
let { activeObject: t, activeComp: n, depends: r } = S.app, { kind: i, nodeId: a, methodKey: o } = et(e), s = t.nodes.find((e) => e.id === a);
|
|
1465
1465
|
if (!s) return;
|
|
@@ -1486,8 +1486,8 @@ function ir(e) {
|
|
|
1486
1486
|
id: e,
|
|
1487
1487
|
kind: i,
|
|
1488
1488
|
names: [n.name],
|
|
1489
|
-
inputs:
|
|
1490
|
-
outputs:
|
|
1489
|
+
inputs: J(n.inputs),
|
|
1490
|
+
outputs: Y(n.outputs)
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
@@ -1500,8 +1500,8 @@ function ir(e) {
|
|
|
1500
1500
|
id: e,
|
|
1501
1501
|
kind: i,
|
|
1502
1502
|
names: [n.name],
|
|
1503
|
-
inputs:
|
|
1504
|
-
outputs:
|
|
1503
|
+
inputs: J(n.inputs),
|
|
1504
|
+
outputs: Y(n.outputs)
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
@@ -1512,8 +1512,8 @@ function ir(e) {
|
|
|
1512
1512
|
id: e,
|
|
1513
1513
|
kind: i,
|
|
1514
1514
|
names: [t.name],
|
|
1515
|
-
inputs:
|
|
1516
|
-
outputs:
|
|
1515
|
+
inputs: J(t.inputs),
|
|
1516
|
+
outputs: J(t.outputs)
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
1519
|
} else if (i === "customSlotMethod") {
|
|
@@ -1525,8 +1525,8 @@ function ir(e) {
|
|
|
1525
1525
|
id: e,
|
|
1526
1526
|
kind: i,
|
|
1527
1527
|
names: [a.name, t.name],
|
|
1528
|
-
inputs:
|
|
1529
|
-
outputs:
|
|
1528
|
+
inputs: J(t.inputs),
|
|
1529
|
+
outputs: Y(t.outputs)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
@@ -1570,20 +1570,20 @@ function ir(e) {
|
|
|
1570
1570
|
t.name,
|
|
1571
1571
|
n.name
|
|
1572
1572
|
],
|
|
1573
|
-
inputs:
|
|
1574
|
-
outputs:
|
|
1573
|
+
inputs: J(n.inputs),
|
|
1574
|
+
outputs: Y(n.outputs)
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1582
|
-
let t = [], n =
|
|
1581
|
+
function ir(e) {
|
|
1582
|
+
let t = [], n = nr(e), r;
|
|
1583
1583
|
for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ye(i, a), e]);
|
|
1584
1584
|
return F(t);
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function ar(e) {
|
|
1587
1587
|
let t = !0;
|
|
1588
1588
|
switch (e) {
|
|
1589
1589
|
case "": break;
|
|
@@ -1609,7 +1609,7 @@ function or(e) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
return t;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function or(e) {
|
|
1613
1613
|
let { activeObject: t, activeComp: n } = S.app, r = [], i = t.nodes.find((t) => t.id === e);
|
|
1614
1614
|
if (!i) return r;
|
|
1615
1615
|
let a = w(i.key);
|
|
@@ -1620,8 +1620,8 @@ function sr(e) {
|
|
|
1620
1620
|
id: Le("customSlotMethod", e, Re(n.id, t.id, i.id)),
|
|
1621
1621
|
kind: "customSlotMethod",
|
|
1622
1622
|
names: [t.name, i.name],
|
|
1623
|
-
inputs:
|
|
1624
|
-
outputs:
|
|
1623
|
+
inputs: J(i.inputs),
|
|
1624
|
+
outputs: J(i.outputs)
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
1627
|
if (B(a.key) && i.slot && t.type === "comp" && n.meta.slots) {
|
|
@@ -1630,20 +1630,20 @@ function sr(e) {
|
|
|
1630
1630
|
id: Le("multipleCustomSlotMethod", e, Re(n.id, t.id, i.id)),
|
|
1631
1631
|
kind: "multipleCustomSlotMethod",
|
|
1632
1632
|
names: [t.name, i.name],
|
|
1633
|
-
inputs:
|
|
1634
|
-
outputs:
|
|
1633
|
+
inputs: J(i.inputs),
|
|
1634
|
+
outputs: Y(i.outputs)
|
|
1635
1635
|
});
|
|
1636
1636
|
}
|
|
1637
1637
|
if (I(a.key) && t.type === "comp" && n.meta.methods) for (let { id: t, name: i, inputs: a, outputs: o } of n.meta.methods) r.push({
|
|
1638
1638
|
id: Le("customMethod", e, t),
|
|
1639
1639
|
kind: "customMethod",
|
|
1640
1640
|
names: [i],
|
|
1641
|
-
inputs:
|
|
1642
|
-
outputs:
|
|
1641
|
+
inputs: J(a),
|
|
1642
|
+
outputs: Y(o)
|
|
1643
1643
|
});
|
|
1644
1644
|
return r;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function sr(e) {
|
|
1647
1647
|
if (!e) return;
|
|
1648
1648
|
let { activeObject: t, activeComp: n } = S.app, { kind: r, nodeId: i, methodKey: a } = et(e), o = t.nodes.find((e) => e.id === i);
|
|
1649
1649
|
if (!o) return;
|
|
@@ -1663,8 +1663,8 @@ function cr(e) {
|
|
|
1663
1663
|
id: e,
|
|
1664
1664
|
kind: r,
|
|
1665
1665
|
names: [t.name, n.name],
|
|
1666
|
-
inputs:
|
|
1667
|
-
outputs:
|
|
1666
|
+
inputs: J(n.inputs),
|
|
1667
|
+
outputs: Y(n.outputs)
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
@@ -1680,8 +1680,8 @@ function cr(e) {
|
|
|
1680
1680
|
id: e,
|
|
1681
1681
|
kind: r,
|
|
1682
1682
|
names: [t.name, n.name],
|
|
1683
|
-
inputs:
|
|
1684
|
-
outputs:
|
|
1683
|
+
inputs: J(n.inputs),
|
|
1684
|
+
outputs: Y(n.outputs)
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
@@ -1692,32 +1692,32 @@ function cr(e) {
|
|
|
1692
1692
|
id: e,
|
|
1693
1693
|
kind: r,
|
|
1694
1694
|
names: [t.name],
|
|
1695
|
-
inputs:
|
|
1696
|
-
outputs:
|
|
1695
|
+
inputs: J(t.inputs),
|
|
1696
|
+
outputs: Y(t.outputs)
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1701
|
-
let t = [], n =
|
|
1700
|
+
function cr(e) {
|
|
1701
|
+
let t = [], n = or(e), r;
|
|
1702
1702
|
for (let { id: e, kind: i, names: a } of n) i !== r && (r && t.push("separator"), r = i), t.push([Ye(i, a), e]);
|
|
1703
1703
|
return F(t);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
let t =
|
|
1705
|
+
function lr(e) {
|
|
1706
|
+
let t = sr(e);
|
|
1707
1707
|
return t ? t.outputs : [];
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1710
|
-
let n =
|
|
1709
|
+
function ur(e, t) {
|
|
1710
|
+
let n = sr(e);
|
|
1711
1711
|
if (n) return n.outputs?.find((e) => e.key === t);
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1714
|
-
let t = [], n =
|
|
1713
|
+
function dr(e) {
|
|
1714
|
+
let t = [], n = lr(e);
|
|
1715
1715
|
if (n) for (let { name: e, key: r } of n) t.push([e, r]);
|
|
1716
1716
|
return F(t);
|
|
1717
1717
|
}
|
|
1718
1718
|
//#endregion
|
|
1719
1719
|
//#region src/core/utils/app/page.ts
|
|
1720
|
-
function
|
|
1720
|
+
function fr(e) {
|
|
1721
1721
|
let { appList: t } = S.app, n = [], r = t.find((t) => t.id === e);
|
|
1722
1722
|
if (!r) return n;
|
|
1723
1723
|
for (let { id: e, name: t } of r.pages) n.push({
|
|
@@ -1726,7 +1726,7 @@ function pr(e) {
|
|
|
1726
1726
|
});
|
|
1727
1727
|
return n;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function pr(e, t) {
|
|
1730
1730
|
let { appList: n } = S.app, r = n.find((t) => t.id === e);
|
|
1731
1731
|
if (!r) return;
|
|
1732
1732
|
let i = r.pages.find((e) => e.id === t);
|
|
@@ -1735,15 +1735,15 @@ function mr(e, t) {
|
|
|
1735
1735
|
name: i.name
|
|
1736
1736
|
};
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function mr(e) {
|
|
1739
1739
|
let t = [];
|
|
1740
|
-
return
|
|
1740
|
+
return fr(e).forEach(({ id: e, name: n }) => {
|
|
1741
1741
|
t.push([n, e]);
|
|
1742
1742
|
}), F(t);
|
|
1743
1743
|
}
|
|
1744
1744
|
//#endregion
|
|
1745
1745
|
//#region src/core/utils/app/property.ts
|
|
1746
|
-
function
|
|
1746
|
+
function hr(e, t) {
|
|
1747
1747
|
let { activeObject: n, activeComp: r, depends: i } = S.app, a = [], o = Ne(n.type, n.subtype), s = n.nodes.find((t) => t.id === e);
|
|
1748
1748
|
if (!s) return a;
|
|
1749
1749
|
let c = w(s.key);
|
|
@@ -1835,7 +1835,7 @@ function gr(e, t) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
return a;
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function gr(e) {
|
|
1839
1839
|
if (!e) return;
|
|
1840
1840
|
let { activeObject: t, activeComp: n, depends: r } = S.app, i = Ne(t.type, t.subtype), { kind: a, nodeId: o, propertyKey: s } = rt(e), c = t.nodes.find((e) => e.id === o);
|
|
1841
1841
|
if (!c) return;
|
|
@@ -1971,14 +1971,14 @@ function _r(e) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1975
|
-
let n = [], r =
|
|
1974
|
+
function _r(e, t) {
|
|
1975
|
+
let n = [], r = hr(e, t), i;
|
|
1976
1976
|
for (let { id: e, kind: t, names: a } of r) t !== i && (i && n.push("separator"), i = t), n.push([Xe(t, a), e]);
|
|
1977
1977
|
return F(n);
|
|
1978
1978
|
}
|
|
1979
1979
|
//#endregion
|
|
1980
1980
|
//#region src/core/utils/app/slot.ts
|
|
1981
|
-
function
|
|
1981
|
+
function vr() {
|
|
1982
1982
|
let { activeObject: e, activeComp: t } = S.app, n = [{
|
|
1983
1983
|
id: "",
|
|
1984
1984
|
name: ""
|
|
@@ -1990,7 +1990,7 @@ function yr() {
|
|
|
1990
1990
|
});
|
|
1991
1991
|
return n;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function yr(e) {
|
|
1994
1994
|
let { activeObject: t, activeComp: n } = S.app;
|
|
1995
1995
|
if (t.type !== "comp" || !n.meta.slots) return;
|
|
1996
1996
|
if (!e) return {
|
|
@@ -2003,8 +2003,8 @@ function br(e) {
|
|
|
2003
2003
|
name: r.name
|
|
2004
2004
|
};
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2007
|
-
let { i18n: e } = ct, t = [], n =
|
|
2006
|
+
function br() {
|
|
2007
|
+
let { i18n: e } = ct, t = [], n = vr();
|
|
2008
2008
|
for (let { id: r, name: i } of n) {
|
|
2009
2009
|
let n = i;
|
|
2010
2010
|
r === "" && (n = e.global.t("x-runtime-lib.notSet")), t.push([n, r]);
|
|
@@ -2013,7 +2013,7 @@ function xr() {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
//#endregion
|
|
2015
2015
|
//#region src/core/blocks/app/event/appBind/v1/index.ts
|
|
2016
|
-
var
|
|
2016
|
+
var xr = p.xml;
|
|
2017
2017
|
y.app_bind_container_v1 = { init: function() {
|
|
2018
2018
|
this.appendDummyInput().appendField("%{BKY_APP_V1_APP_BIND_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("event_blocks"), this.contextMenu = !1;
|
|
2019
2019
|
} }, y.app_bind_item_v1 = { init: function() {
|
|
@@ -2025,7 +2025,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2025
2025
|
}, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}");
|
|
2026
2026
|
},
|
|
2027
2027
|
mutationToDom: function() {
|
|
2028
|
-
let e =
|
|
2028
|
+
let e = xr.createElement("mutation");
|
|
2029
2029
|
return e.setAttribute("items", String(this.itemCount_)), e;
|
|
2030
2030
|
},
|
|
2031
2031
|
domToMutation: function(e) {
|
|
@@ -2092,7 +2092,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2092
2092
|
for (let e = this.itemCount_; this.getInput("ADD" + e); e++) this.removeInput("ADD" + e);
|
|
2093
2093
|
},
|
|
2094
2094
|
updateShadow_: function() {
|
|
2095
|
-
if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(
|
|
2095
|
+
if (!this.isInsertionMarker()) for (let e = 0; e < this.itemCount_; e++) this.getInput("ADD" + e).setShadowDom(yn());
|
|
2096
2096
|
},
|
|
2097
2097
|
checkWarning_: function() {
|
|
2098
2098
|
let e;
|
|
@@ -2101,11 +2101,11 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2101
2101
|
if (!n) continue;
|
|
2102
2102
|
let r;
|
|
2103
2103
|
if (n.kind === "property") {
|
|
2104
|
-
let e =
|
|
2105
|
-
e && (r = e.meta.element ?
|
|
2104
|
+
let e = gr(n.property.id);
|
|
2105
|
+
e && (r = e.meta.element ? an(e.meta.raw) : V(e.meta.raw.type));
|
|
2106
2106
|
} else if (n.kind === "state") {
|
|
2107
|
-
let e =
|
|
2108
|
-
e && (r =
|
|
2107
|
+
let e = Vn(n.state.id);
|
|
2108
|
+
e && (r = V(e.type));
|
|
2109
2109
|
}
|
|
2110
2110
|
if (r && (e ||= r, r !== e)) {
|
|
2111
2111
|
this.setWarningText(P("WARN_TYPE_NOT_MATCH"));
|
|
@@ -2146,16 +2146,16 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2146
2146
|
}, 0);
|
|
2147
2147
|
},
|
|
2148
2148
|
genKindOpts_: function() {
|
|
2149
|
-
return
|
|
2149
|
+
return Wn();
|
|
2150
2150
|
},
|
|
2151
2151
|
genNodeOpts_: function() {
|
|
2152
|
-
return this.kind === "property" ?
|
|
2152
|
+
return this.kind === "property" ? zn("setProperty") : F([]);
|
|
2153
2153
|
},
|
|
2154
2154
|
genPropertyOpts_: function() {
|
|
2155
|
-
return this.kind === "property" ?
|
|
2155
|
+
return this.kind === "property" ? _r(this.node.id, "write") : F([]);
|
|
2156
2156
|
},
|
|
2157
2157
|
genStateOpts_: function() {
|
|
2158
|
-
return this.kind === "state" ?
|
|
2158
|
+
return this.kind === "state" ? Hn() : F([]);
|
|
2159
2159
|
},
|
|
2160
2160
|
onchange: function(e) {
|
|
2161
2161
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -2171,21 +2171,21 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2171
2171
|
else if (this.kind === "property") {
|
|
2172
2172
|
let e = this.getField("NODE");
|
|
2173
2173
|
if (e.getOptions(!1), t) {
|
|
2174
|
-
let t =
|
|
2174
|
+
let t = Rn("setProperty")?.[0];
|
|
2175
2175
|
e.setValue(t?.id ?? "");
|
|
2176
2176
|
}
|
|
2177
2177
|
this.onNodeChange_(e.getValue());
|
|
2178
2178
|
} else if (this.kind === "state") {
|
|
2179
2179
|
let e = this.getField("STATE");
|
|
2180
2180
|
if (e.getOptions(!1), t) {
|
|
2181
|
-
let t =
|
|
2181
|
+
let t = Bn()?.[0];
|
|
2182
2182
|
e.setValue(t?.id ?? "");
|
|
2183
2183
|
}
|
|
2184
2184
|
this.onStateChange_(e.getValue());
|
|
2185
2185
|
}
|
|
2186
2186
|
},
|
|
2187
2187
|
onNodeChange_: function(e) {
|
|
2188
|
-
let t =
|
|
2188
|
+
let t = G(e);
|
|
2189
2189
|
if (!t) {
|
|
2190
2190
|
console.assert(!1);
|
|
2191
2191
|
return;
|
|
@@ -2194,13 +2194,13 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2194
2194
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2195
2195
|
let r = this.getField("PROPERTY");
|
|
2196
2196
|
if (r.getOptions(!1), n) {
|
|
2197
|
-
let e =
|
|
2197
|
+
let e = hr(this.node.id, "write")?.[0];
|
|
2198
2198
|
r.setValue(e?.id ?? "");
|
|
2199
2199
|
}
|
|
2200
2200
|
this.onPropertyChange_(r.getValue());
|
|
2201
2201
|
},
|
|
2202
2202
|
onPropertyChange_: function(e) {
|
|
2203
|
-
let t =
|
|
2203
|
+
let t = gr(e);
|
|
2204
2204
|
if (!t) {
|
|
2205
2205
|
console.assert(!1);
|
|
2206
2206
|
return;
|
|
@@ -2208,7 +2208,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2208
2208
|
this.property.id = t.id, this.property.kind = t.kind, this.property.names = t.names, this.updateShape_();
|
|
2209
2209
|
},
|
|
2210
2210
|
onStateChange_: function(e) {
|
|
2211
|
-
let t =
|
|
2211
|
+
let t = Vn(e);
|
|
2212
2212
|
if (!t) {
|
|
2213
2213
|
console.assert(!1);
|
|
2214
2214
|
return;
|
|
@@ -2222,7 +2222,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2222
2222
|
},
|
|
2223
2223
|
checkWarning_: function() {
|
|
2224
2224
|
if (this.kind === "property") {
|
|
2225
|
-
let e =
|
|
2225
|
+
let e = G(this.node.id);
|
|
2226
2226
|
if (!e) {
|
|
2227
2227
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
2228
2228
|
return;
|
|
@@ -2232,7 +2232,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2232
2232
|
return;
|
|
2233
2233
|
}
|
|
2234
2234
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
2235
|
-
let t =
|
|
2235
|
+
let t = gr(this.property.id);
|
|
2236
2236
|
if (!t) {
|
|
2237
2237
|
this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
|
|
2238
2238
|
return;
|
|
@@ -2243,7 +2243,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
v(t.names, this.property.names) || (this.property.names = t.names);
|
|
2245
2245
|
} else if (this.kind === "state") {
|
|
2246
|
-
let e =
|
|
2246
|
+
let e = Vn(this.state.id);
|
|
2247
2247
|
if (!e) {
|
|
2248
2248
|
this.setWarningText(P("WARN_STATE_NOT_FOUND"));
|
|
2249
2249
|
return;
|
|
@@ -2271,12 +2271,12 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2271
2271
|
},
|
|
2272
2272
|
initData_: function() {
|
|
2273
2273
|
if (this.node.id) return;
|
|
2274
|
-
let e =
|
|
2274
|
+
let e = Rn("onEvent")?.[0];
|
|
2275
2275
|
if (!e) return;
|
|
2276
2276
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2277
2277
|
let t = this.getField("NODE");
|
|
2278
2278
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
2279
|
-
let n =
|
|
2279
|
+
let n = Yn(this.node.id)?.[0];
|
|
2280
2280
|
if (!n) return;
|
|
2281
2281
|
this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
|
|
2282
2282
|
let r = this.getField("EVENT");
|
|
@@ -2294,10 +2294,10 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2294
2294
|
}, 0);
|
|
2295
2295
|
},
|
|
2296
2296
|
genNodeOpts_: function() {
|
|
2297
|
-
return
|
|
2297
|
+
return zn("onEvent");
|
|
2298
2298
|
},
|
|
2299
2299
|
genEventOpts_: function() {
|
|
2300
|
-
return
|
|
2300
|
+
return Zn(this.node.id);
|
|
2301
2301
|
},
|
|
2302
2302
|
onchange: function(e) {
|
|
2303
2303
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -2308,7 +2308,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
},
|
|
2310
2310
|
onNodeChange_: function(e) {
|
|
2311
|
-
let t =
|
|
2311
|
+
let t = G(e);
|
|
2312
2312
|
if (!t) {
|
|
2313
2313
|
console.assert(!1);
|
|
2314
2314
|
return;
|
|
@@ -2317,13 +2317,13 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2317
2317
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2318
2318
|
let r = this.getField("EVENT");
|
|
2319
2319
|
if (r.getOptions(!1), n) {
|
|
2320
|
-
let e =
|
|
2320
|
+
let e = Yn(this.node.id)?.[0];
|
|
2321
2321
|
r.setValue(e?.id ?? "");
|
|
2322
2322
|
}
|
|
2323
2323
|
this.onEventChange_(r.getValue());
|
|
2324
2324
|
},
|
|
2325
2325
|
onEventChange_: function(e) {
|
|
2326
|
-
let t =
|
|
2326
|
+
let t = Xn(e);
|
|
2327
2327
|
if (!t) {
|
|
2328
2328
|
console.assert(!1);
|
|
2329
2329
|
return;
|
|
@@ -2360,7 +2360,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2360
2360
|
"x-runtime-lib.instance",
|
|
2361
2361
|
!0
|
|
2362
2362
|
]);
|
|
2363
|
-
let t =
|
|
2363
|
+
let t = Jn(this.event.kind);
|
|
2364
2364
|
if (this.event.params) for (let n = 0; n < this.event.params.length; n++) {
|
|
2365
2365
|
let { key: r, name: i } = this.event.params[n];
|
|
2366
2366
|
e.push([
|
|
@@ -2370,10 +2370,10 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2370
2370
|
t
|
|
2371
2371
|
]);
|
|
2372
2372
|
}
|
|
2373
|
-
e.length > 0 &&
|
|
2373
|
+
e.length > 0 && H(this, e);
|
|
2374
2374
|
},
|
|
2375
2375
|
checkWarning_: function() {
|
|
2376
|
-
let e =
|
|
2376
|
+
let e = G(this.node.id);
|
|
2377
2377
|
if (!e) {
|
|
2378
2378
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
2379
2379
|
return;
|
|
@@ -2383,7 +2383,7 @@ y.app_bind_container_v1 = { init: function() {
|
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
2385
2385
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
2386
|
-
let t =
|
|
2386
|
+
let t = Xn(this.event.id);
|
|
2387
2387
|
if (!t) {
|
|
2388
2388
|
this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
|
|
2389
2389
|
return;
|
|
@@ -2426,12 +2426,12 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2426
2426
|
},
|
|
2427
2427
|
initData_: function() {
|
|
2428
2428
|
if (this.node.id) return;
|
|
2429
|
-
let e =
|
|
2429
|
+
let e = Rn("triggerEvent")?.[0];
|
|
2430
2430
|
if (!e) return;
|
|
2431
2431
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2432
2432
|
let t = this.getField("NODE");
|
|
2433
2433
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
2434
|
-
let n =
|
|
2434
|
+
let n = Qn(this.node.id)?.[0];
|
|
2435
2435
|
if (!n) return;
|
|
2436
2436
|
this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
|
|
2437
2437
|
let r = this.getField("EVENT");
|
|
@@ -2449,10 +2449,10 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2449
2449
|
}, 0);
|
|
2450
2450
|
},
|
|
2451
2451
|
genNodeOpts_: function() {
|
|
2452
|
-
return
|
|
2452
|
+
return zn("triggerEvent");
|
|
2453
2453
|
},
|
|
2454
2454
|
genEventOpts_: function() {
|
|
2455
|
-
return
|
|
2455
|
+
return er(this.node.id);
|
|
2456
2456
|
},
|
|
2457
2457
|
onchange: function(e) {
|
|
2458
2458
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -2463,7 +2463,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
},
|
|
2465
2465
|
onNodeChange_: function(e) {
|
|
2466
|
-
let t =
|
|
2466
|
+
let t = G(e);
|
|
2467
2467
|
if (!t) {
|
|
2468
2468
|
console.assert(!1);
|
|
2469
2469
|
return;
|
|
@@ -2472,13 +2472,13 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2472
2472
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2473
2473
|
let r = this.getField("EVENT");
|
|
2474
2474
|
if (r.getOptions(!1), n) {
|
|
2475
|
-
let e =
|
|
2475
|
+
let e = Qn(this.node.id)?.[0];
|
|
2476
2476
|
r.setValue(e?.id ?? "");
|
|
2477
2477
|
}
|
|
2478
2478
|
this.onEventChange_(r.getValue());
|
|
2479
2479
|
},
|
|
2480
2480
|
onEventChange_: function(e) {
|
|
2481
|
-
let t =
|
|
2481
|
+
let t = $n(e);
|
|
2482
2482
|
if (!t) {
|
|
2483
2483
|
console.assert(!1);
|
|
2484
2484
|
return;
|
|
@@ -2496,7 +2496,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2496
2496
|
let { type: t } = this.event.params[e], n = this.getInput("PARAM" + e);
|
|
2497
2497
|
n.connection.setShadowDom(null);
|
|
2498
2498
|
let r = n.connection.targetBlock();
|
|
2499
|
-
r && !r.isShadow() && r.dispose(), n.setCheck(
|
|
2499
|
+
r && !r.isShadow() && r.dispose(), n.setCheck(V(t));
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
let e = !1;
|
|
@@ -2515,17 +2515,17 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2515
2515
|
updateShadows_: function() {
|
|
2516
2516
|
if (!this.isInsertionMarker()) {
|
|
2517
2517
|
if (this.getInput("INSTANCE")) {
|
|
2518
|
-
let e =
|
|
2518
|
+
let e = U("string");
|
|
2519
2519
|
this.getInput("INSTANCE").setShadowDom(e);
|
|
2520
2520
|
}
|
|
2521
2521
|
if (this.event.params) for (let e = 0; e < this.event.params.length; e++) {
|
|
2522
|
-
let t = this.event.params[e], n =
|
|
2522
|
+
let t = this.event.params[e], n = U(t.type);
|
|
2523
2523
|
this.getInput("PARAM" + e).connection.setShadowDom(n);
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
},
|
|
2527
2527
|
checkWarning_: function() {
|
|
2528
|
-
let e =
|
|
2528
|
+
let e = G(this.node.id);
|
|
2529
2529
|
if (!e) {
|
|
2530
2530
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
2531
2531
|
return;
|
|
@@ -2535,7 +2535,7 @@ ${Ae(r, 4)}${Ae(i, 2)} } catch (e) {
|
|
|
2535
2535
|
return;
|
|
2536
2536
|
}
|
|
2537
2537
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
2538
|
-
let t =
|
|
2538
|
+
let t = $n(this.event.id);
|
|
2539
2539
|
if (!t) {
|
|
2540
2540
|
this.setWarningText(P("WARN_EVENT_NOT_FOUND"));
|
|
2541
2541
|
return;
|
|
@@ -2604,13 +2604,13 @@ ${g.statementToCode(e, "HANDLE")}};
|
|
|
2604
2604
|
},
|
|
2605
2605
|
updateShadow_: function() {
|
|
2606
2606
|
if (this.isInsertionMarker()) return;
|
|
2607
|
-
let e =
|
|
2607
|
+
let e = ln("title");
|
|
2608
2608
|
this.getInput("TITLE").connection.setShadowDom(e);
|
|
2609
|
-
let t =
|
|
2609
|
+
let t = ln("text");
|
|
2610
2610
|
this.getInput("TEXT").connection.setShadowDom(t);
|
|
2611
2611
|
},
|
|
2612
2612
|
ensureBlocks_: function() {
|
|
2613
|
-
this.isInsertionMarker() ||
|
|
2613
|
+
this.isInsertionMarker() || H(this, [[
|
|
2614
2614
|
"RESULT",
|
|
2615
2615
|
"__result__",
|
|
2616
2616
|
"x-runtime-lib.result",
|
|
@@ -2639,15 +2639,15 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2639
2639
|
},
|
|
2640
2640
|
updateShadow_: function() {
|
|
2641
2641
|
if (this.isInsertionMarker()) return;
|
|
2642
|
-
let e =
|
|
2642
|
+
let e = ln("title");
|
|
2643
2643
|
this.getInput("TITLE").connection.setShadowDom(e);
|
|
2644
|
-
let t =
|
|
2644
|
+
let t = ln("label");
|
|
2645
2645
|
this.getInput("LABEL").connection.setShadowDom(t);
|
|
2646
|
-
let n =
|
|
2646
|
+
let n = ln("");
|
|
2647
2647
|
this.getInput("VALUE").connection.setShadowDom(n);
|
|
2648
2648
|
},
|
|
2649
2649
|
ensureBlocks_: function() {
|
|
2650
|
-
this.isInsertionMarker() ||
|
|
2650
|
+
this.isInsertionMarker() || H(this, [[
|
|
2651
2651
|
"RESULT",
|
|
2652
2652
|
"__result__",
|
|
2653
2653
|
"x-runtime-lib.result",
|
|
@@ -2696,12 +2696,12 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2696
2696
|
},
|
|
2697
2697
|
initData_: function() {
|
|
2698
2698
|
if (this.node.id) return;
|
|
2699
|
-
let e =
|
|
2699
|
+
let e = Rn("callMethod")?.[0];
|
|
2700
2700
|
if (!e) return;
|
|
2701
2701
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2702
2702
|
let t = this.getField("NODE");
|
|
2703
2703
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
2704
|
-
let n =
|
|
2704
|
+
let n = nr(this.node.id)?.[0];
|
|
2705
2705
|
if (!n) return;
|
|
2706
2706
|
this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
|
|
2707
2707
|
let r = this.getField("METHOD");
|
|
@@ -2719,10 +2719,10 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2719
2719
|
}, 0);
|
|
2720
2720
|
},
|
|
2721
2721
|
genNodeOpts_: function() {
|
|
2722
|
-
return
|
|
2722
|
+
return zn("callMethod");
|
|
2723
2723
|
},
|
|
2724
2724
|
genMethodOpts_: function() {
|
|
2725
|
-
return
|
|
2725
|
+
return ir(this.node.id);
|
|
2726
2726
|
},
|
|
2727
2727
|
onchange: function(e) {
|
|
2728
2728
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -2733,7 +2733,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2733
2733
|
}
|
|
2734
2734
|
},
|
|
2735
2735
|
onNodeChange_: function(e) {
|
|
2736
|
-
let t =
|
|
2736
|
+
let t = G(e);
|
|
2737
2737
|
if (!t) {
|
|
2738
2738
|
console.assert(!1);
|
|
2739
2739
|
return;
|
|
@@ -2742,13 +2742,13 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2742
2742
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2743
2743
|
let r = this.getField("METHOD");
|
|
2744
2744
|
if (r.getOptions(!1), n) {
|
|
2745
|
-
let e =
|
|
2745
|
+
let e = nr(this.node.id)?.[0];
|
|
2746
2746
|
r.setValue(e?.id ?? "");
|
|
2747
2747
|
}
|
|
2748
2748
|
this.onMethodChange_(r.getValue());
|
|
2749
2749
|
},
|
|
2750
2750
|
onMethodChange_: function(e) {
|
|
2751
|
-
let t =
|
|
2751
|
+
let t = rr(e);
|
|
2752
2752
|
if (!t) {
|
|
2753
2753
|
console.assert(!1);
|
|
2754
2754
|
return;
|
|
@@ -2792,19 +2792,19 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2792
2792
|
case "multipleCustomSlotMethod": e = !0;
|
|
2793
2793
|
}
|
|
2794
2794
|
if (e) {
|
|
2795
|
-
let e =
|
|
2795
|
+
let e = U("string");
|
|
2796
2796
|
this.getInput("INSTANCE").setShadowDom(e);
|
|
2797
2797
|
}
|
|
2798
2798
|
if (this.method.inputs) for (let e = 0; e < this.method.inputs.length; e++) {
|
|
2799
2799
|
let t = this.method.inputs[e];
|
|
2800
2800
|
if (!t.type) continue;
|
|
2801
|
-
let n =
|
|
2801
|
+
let n = U(t.type);
|
|
2802
2802
|
this.getInput("INPUT" + e).setShadowDom(n);
|
|
2803
2803
|
}
|
|
2804
2804
|
},
|
|
2805
2805
|
ensureBlocks_: function() {
|
|
2806
2806
|
if (this.isInsertionMarker()) return;
|
|
2807
|
-
let e = [], t =
|
|
2807
|
+
let e = [], t = tr(this.method.kind);
|
|
2808
2808
|
if (this.method.outputs) for (let n = 0; n < this.method.outputs.length; n++) {
|
|
2809
2809
|
let { key: r, name: i } = this.method.outputs[n];
|
|
2810
2810
|
e.push([
|
|
@@ -2814,10 +2814,10 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2814
2814
|
t
|
|
2815
2815
|
]);
|
|
2816
2816
|
}
|
|
2817
|
-
e.length > 0 &&
|
|
2817
|
+
e.length > 0 && H(this, e);
|
|
2818
2818
|
},
|
|
2819
2819
|
checkWarning_: function() {
|
|
2820
|
-
let e =
|
|
2820
|
+
let e = G(this.node.id);
|
|
2821
2821
|
if (!e) {
|
|
2822
2822
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
2823
2823
|
return;
|
|
@@ -2827,7 +2827,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
2827
2827
|
return;
|
|
2828
2828
|
}
|
|
2829
2829
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
2830
|
-
let t =
|
|
2830
|
+
let t = rr(this.method.id);
|
|
2831
2831
|
if (!t) {
|
|
2832
2832
|
this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
|
|
2833
2833
|
return;
|
|
@@ -2908,12 +2908,12 @@ ${o}${e}}
|
|
|
2908
2908
|
},
|
|
2909
2909
|
initData_: function() {
|
|
2910
2910
|
if (this.node.id) return;
|
|
2911
|
-
let e =
|
|
2911
|
+
let e = Rn("implementMethod")?.[0];
|
|
2912
2912
|
if (!e) return;
|
|
2913
2913
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2914
2914
|
let t = this.getField("NODE");
|
|
2915
2915
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
2916
|
-
let n =
|
|
2916
|
+
let n = or(this.node.id)?.[0];
|
|
2917
2917
|
if (!n) return;
|
|
2918
2918
|
this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs;
|
|
2919
2919
|
let r = this.getField("METHOD");
|
|
@@ -2931,10 +2931,10 @@ ${o}${e}}
|
|
|
2931
2931
|
}, 0);
|
|
2932
2932
|
},
|
|
2933
2933
|
genNodeOpts_: function() {
|
|
2934
|
-
return
|
|
2934
|
+
return zn("implementMethod");
|
|
2935
2935
|
},
|
|
2936
2936
|
genMethodOpts_: function() {
|
|
2937
|
-
return
|
|
2937
|
+
return cr(this.node.id);
|
|
2938
2938
|
},
|
|
2939
2939
|
onchange: function(e) {
|
|
2940
2940
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -2945,7 +2945,7 @@ ${o}${e}}
|
|
|
2945
2945
|
}
|
|
2946
2946
|
},
|
|
2947
2947
|
onNodeChange_: function(e) {
|
|
2948
|
-
let t =
|
|
2948
|
+
let t = G(e);
|
|
2949
2949
|
if (!t) {
|
|
2950
2950
|
console.assert(!1);
|
|
2951
2951
|
return;
|
|
@@ -2954,13 +2954,13 @@ ${o}${e}}
|
|
|
2954
2954
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2955
2955
|
let r = this.getField("METHOD");
|
|
2956
2956
|
if (r.getOptions(!1), n) {
|
|
2957
|
-
let e =
|
|
2957
|
+
let e = or(this.node.id)?.[0];
|
|
2958
2958
|
r.setValue(e?.id ?? "");
|
|
2959
2959
|
}
|
|
2960
2960
|
r.setValue(r.getValue());
|
|
2961
2961
|
},
|
|
2962
2962
|
onMethodChange_: function(e) {
|
|
2963
|
-
let t =
|
|
2963
|
+
let t = sr(e);
|
|
2964
2964
|
if (!t) {
|
|
2965
2965
|
console.assert(!1);
|
|
2966
2966
|
return;
|
|
@@ -2994,7 +2994,7 @@ ${o}${e}}
|
|
|
2994
2994
|
"x-runtime-lib.instance",
|
|
2995
2995
|
!0
|
|
2996
2996
|
]);
|
|
2997
|
-
let t =
|
|
2997
|
+
let t = ar(this.method.kind);
|
|
2998
2998
|
if (this.method.inputs) for (let n = 0; n < this.method.inputs.length; n++) {
|
|
2999
2999
|
let { key: r, name: i } = this.method.inputs[n];
|
|
3000
3000
|
e.push([
|
|
@@ -3004,10 +3004,10 @@ ${o}${e}}
|
|
|
3004
3004
|
t
|
|
3005
3005
|
]);
|
|
3006
3006
|
}
|
|
3007
|
-
|
|
3007
|
+
H(this, e);
|
|
3008
3008
|
},
|
|
3009
3009
|
checkWarning_: function() {
|
|
3010
|
-
let e =
|
|
3010
|
+
let e = G(this.node.id);
|
|
3011
3011
|
if (!e) {
|
|
3012
3012
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
3013
3013
|
return;
|
|
@@ -3017,7 +3017,7 @@ ${o}${e}}
|
|
|
3017
3017
|
return;
|
|
3018
3018
|
}
|
|
3019
3019
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
3020
|
-
let t =
|
|
3020
|
+
let t = sr(this.method.id);
|
|
3021
3021
|
if (!t) {
|
|
3022
3022
|
this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
|
|
3023
3023
|
return;
|
|
@@ -3059,17 +3059,17 @@ ${c}${t}return __outputs__;
|
|
|
3059
3059
|
},
|
|
3060
3060
|
initData_: function() {
|
|
3061
3061
|
if (this.node.id) return;
|
|
3062
|
-
let e =
|
|
3062
|
+
let e = Rn("implementMethod")?.[0];
|
|
3063
3063
|
if (!e) return;
|
|
3064
3064
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
3065
3065
|
let t = this.getField("NODE");
|
|
3066
3066
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
3067
|
-
let n =
|
|
3067
|
+
let n = or(this.node.id)?.[0];
|
|
3068
3068
|
if (!n) return;
|
|
3069
3069
|
this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names;
|
|
3070
3070
|
let r = this.getField("METHOD");
|
|
3071
3071
|
r.getOptions(!1), r.setValue(this.method.id);
|
|
3072
|
-
let i =
|
|
3072
|
+
let i = lr(this.method.id)?.[0];
|
|
3073
3073
|
if (!i) return;
|
|
3074
3074
|
this.output.key = i.key, this.output.name = i.name, this.output.type = i.type;
|
|
3075
3075
|
let a = this.getField("OUTPUT");
|
|
@@ -3088,13 +3088,13 @@ ${c}${t}return __outputs__;
|
|
|
3088
3088
|
}, 0);
|
|
3089
3089
|
},
|
|
3090
3090
|
genNodeOpts_: function() {
|
|
3091
|
-
return
|
|
3091
|
+
return zn("implementMethod");
|
|
3092
3092
|
},
|
|
3093
3093
|
genMethodOpts_: function() {
|
|
3094
|
-
return
|
|
3094
|
+
return cr(this.node.id);
|
|
3095
3095
|
},
|
|
3096
3096
|
genOutputOpts_: function() {
|
|
3097
|
-
return
|
|
3097
|
+
return dr(this.method.id);
|
|
3098
3098
|
},
|
|
3099
3099
|
onchange: function(e) {
|
|
3100
3100
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3105,7 +3105,7 @@ ${c}${t}return __outputs__;
|
|
|
3105
3105
|
}
|
|
3106
3106
|
},
|
|
3107
3107
|
onNodeChange_: function(e) {
|
|
3108
|
-
let t =
|
|
3108
|
+
let t = G(e);
|
|
3109
3109
|
if (!t) {
|
|
3110
3110
|
console.assert(!1);
|
|
3111
3111
|
return;
|
|
@@ -3114,13 +3114,13 @@ ${c}${t}return __outputs__;
|
|
|
3114
3114
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
3115
3115
|
let r = this.getField("METHOD");
|
|
3116
3116
|
if (r.getOptions(!1), n) {
|
|
3117
|
-
let e =
|
|
3117
|
+
let e = or(this.node.id)?.[0];
|
|
3118
3118
|
r.setValue(e?.id ?? "");
|
|
3119
3119
|
}
|
|
3120
3120
|
r.setValue(r.getValue());
|
|
3121
3121
|
},
|
|
3122
3122
|
onMethodChange_: function(e) {
|
|
3123
|
-
let t =
|
|
3123
|
+
let t = sr(e);
|
|
3124
3124
|
if (!t) {
|
|
3125
3125
|
console.assert(!1);
|
|
3126
3126
|
return;
|
|
@@ -3128,14 +3128,14 @@ ${c}${t}return __outputs__;
|
|
|
3128
3128
|
let n = this.method.id !== t.id;
|
|
3129
3129
|
this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
|
|
3130
3130
|
let r = this.getField("OUTPUT");
|
|
3131
|
-
if (r.getOptions(!1), n || !
|
|
3132
|
-
let e =
|
|
3131
|
+
if (r.getOptions(!1), n || !ur(this.method.id, this.output.key)) {
|
|
3132
|
+
let e = lr(this.method.id)?.[0];
|
|
3133
3133
|
r.setValue(e?.key ?? "");
|
|
3134
3134
|
}
|
|
3135
3135
|
this.onOutputChange_(r.getValue());
|
|
3136
3136
|
},
|
|
3137
3137
|
onOutputChange_: function(e) {
|
|
3138
|
-
let t =
|
|
3138
|
+
let t = ur(this.method.id, e);
|
|
3139
3139
|
if (!t) {
|
|
3140
3140
|
console.assert(!1);
|
|
3141
3141
|
return;
|
|
@@ -3147,16 +3147,16 @@ ${c}${t}return __outputs__;
|
|
|
3147
3147
|
e.connection.setShadowDom(null);
|
|
3148
3148
|
let t = e.connection.targetBlock();
|
|
3149
3149
|
t && !t.isShadow() && t.dispose();
|
|
3150
|
-
let n =
|
|
3150
|
+
let n = V(this.output.type);
|
|
3151
3151
|
e.setCheck(n);
|
|
3152
3152
|
},
|
|
3153
3153
|
updateShadows_: function() {
|
|
3154
3154
|
if (this.isInsertionMarker()) return;
|
|
3155
|
-
let e =
|
|
3155
|
+
let e = U(this.output.type);
|
|
3156
3156
|
this.getInput("VALUE").connection.setShadowDom(e);
|
|
3157
3157
|
},
|
|
3158
3158
|
checkWarning_: function() {
|
|
3159
|
-
let e =
|
|
3159
|
+
let e = G(this.node.id);
|
|
3160
3160
|
if (!e) {
|
|
3161
3161
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
3162
3162
|
return;
|
|
@@ -3166,7 +3166,7 @@ ${c}${t}return __outputs__;
|
|
|
3166
3166
|
return;
|
|
3167
3167
|
}
|
|
3168
3168
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
3169
|
-
let t =
|
|
3169
|
+
let t = sr(this.method.id);
|
|
3170
3170
|
if (!t) {
|
|
3171
3171
|
this.setWarningText(P("WARN_METHOD_NOT_FOUND"));
|
|
3172
3172
|
return;
|
|
@@ -3176,7 +3176,7 @@ ${c}${t}return __outputs__;
|
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
3178
|
t.names !== this.method.names && (this.method.names = t.names);
|
|
3179
|
-
let n =
|
|
3179
|
+
let n = ur(this.method.id, this.output.key);
|
|
3180
3180
|
if (!n) {
|
|
3181
3181
|
this.setWarningText(P("WARN_OUTPUT_NOT_FOUND"));
|
|
3182
3182
|
return;
|
|
@@ -3234,12 +3234,12 @@ ${c}${t}return __outputs__;
|
|
|
3234
3234
|
},
|
|
3235
3235
|
initData_: function() {
|
|
3236
3236
|
if (this.app.id) return;
|
|
3237
|
-
let e =
|
|
3237
|
+
let e = Dn()?.[0];
|
|
3238
3238
|
if (!e) return;
|
|
3239
3239
|
this.app.id = e.id, this.app.name = e.name;
|
|
3240
3240
|
let t = this.getField("APP");
|
|
3241
3241
|
t.getOptions(!1), t.setValue(this.app.id);
|
|
3242
|
-
let n =
|
|
3242
|
+
let n = fr(this.app.id)?.[0];
|
|
3243
3243
|
if (!n) return;
|
|
3244
3244
|
this.page.id = n.id, this.page.name = n.name;
|
|
3245
3245
|
let r = this.getField("PAGE");
|
|
@@ -3257,10 +3257,10 @@ ${c}${t}return __outputs__;
|
|
|
3257
3257
|
}, 0);
|
|
3258
3258
|
},
|
|
3259
3259
|
genAppOpts_: function() {
|
|
3260
|
-
return
|
|
3260
|
+
return kn();
|
|
3261
3261
|
},
|
|
3262
3262
|
genPageOpts_: function() {
|
|
3263
|
-
return
|
|
3263
|
+
return mr(this.app.id);
|
|
3264
3264
|
},
|
|
3265
3265
|
onchange: function(e) {
|
|
3266
3266
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3271,7 +3271,7 @@ ${c}${t}return __outputs__;
|
|
|
3271
3271
|
}
|
|
3272
3272
|
},
|
|
3273
3273
|
onAppChange_: function(e) {
|
|
3274
|
-
let t =
|
|
3274
|
+
let t = On(e);
|
|
3275
3275
|
if (!t) {
|
|
3276
3276
|
console.assert(!1);
|
|
3277
3277
|
return;
|
|
@@ -3280,13 +3280,13 @@ ${c}${t}return __outputs__;
|
|
|
3280
3280
|
this.app.id = t.id, this.app.name = t.name;
|
|
3281
3281
|
let r = this.getField("PAGE");
|
|
3282
3282
|
if (r.getOptions(!1), n) {
|
|
3283
|
-
let e =
|
|
3283
|
+
let e = fr(this.app.id)?.[0];
|
|
3284
3284
|
r.setValue(e?.id ?? "");
|
|
3285
3285
|
}
|
|
3286
3286
|
this.onPageChange_(r.getValue());
|
|
3287
3287
|
},
|
|
3288
3288
|
onPageChange_: function(e) {
|
|
3289
|
-
let t =
|
|
3289
|
+
let t = pr(this.app.id, e);
|
|
3290
3290
|
if (!t) {
|
|
3291
3291
|
console.assert(!1);
|
|
3292
3292
|
return;
|
|
@@ -3294,13 +3294,13 @@ ${c}${t}return __outputs__;
|
|
|
3294
3294
|
this.page.id = t.id, this.page.name = t.name;
|
|
3295
3295
|
},
|
|
3296
3296
|
checkWarning_: function() {
|
|
3297
|
-
let e =
|
|
3297
|
+
let e = On(this.app.id);
|
|
3298
3298
|
if (!e) {
|
|
3299
3299
|
this.setWarningText(P("WARN_APP_NOT_FOUND"));
|
|
3300
3300
|
return;
|
|
3301
3301
|
}
|
|
3302
3302
|
e.name !== this.app.name && (this.app.name = e.name);
|
|
3303
|
-
let t =
|
|
3303
|
+
let t = pr(this.app.id, this.page.id);
|
|
3304
3304
|
if (!t) {
|
|
3305
3305
|
this.setWarningText(P("WARN_PAGE_NOT_FOUND"));
|
|
3306
3306
|
return;
|
|
@@ -3319,7 +3319,7 @@ ${c}${t}return __outputs__;
|
|
|
3319
3319
|
},
|
|
3320
3320
|
initData_: function() {
|
|
3321
3321
|
if (this.comp.id) return;
|
|
3322
|
-
let e =
|
|
3322
|
+
let e = Gn()?.[0];
|
|
3323
3323
|
if (!e) return;
|
|
3324
3324
|
this.comp.id = e.id, this.comp.name = e.name;
|
|
3325
3325
|
let t = this.getField("COMP");
|
|
@@ -3334,7 +3334,7 @@ ${c}${t}return __outputs__;
|
|
|
3334
3334
|
}, 0);
|
|
3335
3335
|
},
|
|
3336
3336
|
genCompOpts_: function() {
|
|
3337
|
-
return
|
|
3337
|
+
return qn();
|
|
3338
3338
|
},
|
|
3339
3339
|
onchange: function(e) {
|
|
3340
3340
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3345,7 +3345,7 @@ ${c}${t}return __outputs__;
|
|
|
3345
3345
|
}
|
|
3346
3346
|
},
|
|
3347
3347
|
onCompChange_: function(e) {
|
|
3348
|
-
let t =
|
|
3348
|
+
let t = Kn(e);
|
|
3349
3349
|
if (!t) {
|
|
3350
3350
|
console.assert(!1);
|
|
3351
3351
|
return;
|
|
@@ -3353,7 +3353,7 @@ ${c}${t}return __outputs__;
|
|
|
3353
3353
|
this.comp.id = t.id, this.comp.name = t.name;
|
|
3354
3354
|
},
|
|
3355
3355
|
checkWarning_: function() {
|
|
3356
|
-
let e =
|
|
3356
|
+
let e = Kn(this.comp.id);
|
|
3357
3357
|
if (!e) {
|
|
3358
3358
|
this.setWarningText(P("WARN_COMP_NOT_FOUND"));
|
|
3359
3359
|
return;
|
|
@@ -3372,7 +3372,7 @@ ${c}${t}return __outputs__;
|
|
|
3372
3372
|
},
|
|
3373
3373
|
initData_: function() {
|
|
3374
3374
|
if (this.slot.id) return;
|
|
3375
|
-
let e =
|
|
3375
|
+
let e = vr()?.[0];
|
|
3376
3376
|
if (!e) return;
|
|
3377
3377
|
this.slot.id = e.id, this.slot.name = e.name;
|
|
3378
3378
|
let t = this.getField("SLOT");
|
|
@@ -3387,7 +3387,7 @@ ${c}${t}return __outputs__;
|
|
|
3387
3387
|
}, 0);
|
|
3388
3388
|
},
|
|
3389
3389
|
genSlotOpts_: function() {
|
|
3390
|
-
return
|
|
3390
|
+
return br();
|
|
3391
3391
|
},
|
|
3392
3392
|
onchange: function(e) {
|
|
3393
3393
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3398,7 +3398,7 @@ ${c}${t}return __outputs__;
|
|
|
3398
3398
|
}
|
|
3399
3399
|
},
|
|
3400
3400
|
onSlotChange_: function(e) {
|
|
3401
|
-
let t =
|
|
3401
|
+
let t = yr(e);
|
|
3402
3402
|
if (!t) {
|
|
3403
3403
|
console.assert(!1);
|
|
3404
3404
|
return;
|
|
@@ -3406,7 +3406,7 @@ ${c}${t}return __outputs__;
|
|
|
3406
3406
|
this.slot.id = t.id, this.slot.name = t.name;
|
|
3407
3407
|
},
|
|
3408
3408
|
checkWarning_: function() {
|
|
3409
|
-
let e =
|
|
3409
|
+
let e = yr(this.slot.id);
|
|
3410
3410
|
if (!e) {
|
|
3411
3411
|
this.setWarningText(P("WARN_SLOT_NOT_FOUND"));
|
|
3412
3412
|
return;
|
|
@@ -3430,12 +3430,12 @@ ${c}${t}return __outputs__;
|
|
|
3430
3430
|
},
|
|
3431
3431
|
initData_: function() {
|
|
3432
3432
|
if (this.node.id) return;
|
|
3433
|
-
let e =
|
|
3433
|
+
let e = Rn("getProperty")?.[0];
|
|
3434
3434
|
if (!e) return;
|
|
3435
3435
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
3436
3436
|
let t = this.getField("NODE");
|
|
3437
3437
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
3438
|
-
let n =
|
|
3438
|
+
let n = hr(this.node.id, "read")?.[0];
|
|
3439
3439
|
if (!n) return;
|
|
3440
3440
|
this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
|
|
3441
3441
|
let r = this.getField("PROPERTY");
|
|
@@ -3453,10 +3453,10 @@ ${c}${t}return __outputs__;
|
|
|
3453
3453
|
}, 0);
|
|
3454
3454
|
},
|
|
3455
3455
|
genNodeOpts_: function() {
|
|
3456
|
-
return
|
|
3456
|
+
return zn("getProperty");
|
|
3457
3457
|
},
|
|
3458
3458
|
genPropertyOpts_: function() {
|
|
3459
|
-
return
|
|
3459
|
+
return _r(this.node.id, "read");
|
|
3460
3460
|
},
|
|
3461
3461
|
onchange: function(e) {
|
|
3462
3462
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3467,7 +3467,7 @@ ${c}${t}return __outputs__;
|
|
|
3467
3467
|
}
|
|
3468
3468
|
},
|
|
3469
3469
|
onNodeChange_: function(e) {
|
|
3470
|
-
let t =
|
|
3470
|
+
let t = G(e);
|
|
3471
3471
|
if (!t) {
|
|
3472
3472
|
console.assert(!1);
|
|
3473
3473
|
return;
|
|
@@ -3476,13 +3476,13 @@ ${c}${t}return __outputs__;
|
|
|
3476
3476
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
3477
3477
|
let r = this.getField("PROPERTY");
|
|
3478
3478
|
if (r.getOptions(!1), n) {
|
|
3479
|
-
let e =
|
|
3479
|
+
let e = hr(this.node.id, "read")?.[0];
|
|
3480
3480
|
r.setValue(e?.id ?? "");
|
|
3481
3481
|
}
|
|
3482
3482
|
this.onPropertyChange_(r.getValue());
|
|
3483
3483
|
},
|
|
3484
3484
|
onPropertyChange_: function(e) {
|
|
3485
|
-
let t =
|
|
3485
|
+
let t = gr(e);
|
|
3486
3486
|
if (!t) {
|
|
3487
3487
|
console.assert(!1);
|
|
3488
3488
|
return;
|
|
@@ -3507,11 +3507,11 @@ ${c}${t}return __outputs__;
|
|
|
3507
3507
|
if (e) {
|
|
3508
3508
|
e.setShadowDom(null);
|
|
3509
3509
|
let t = e.connection?.targetBlock();
|
|
3510
|
-
t && t.dispose(), e.setShadowDom(
|
|
3510
|
+
t && t.dispose(), e.setShadowDom(U("string"));
|
|
3511
3511
|
}
|
|
3512
3512
|
},
|
|
3513
3513
|
checkWarning_: function() {
|
|
3514
|
-
let e =
|
|
3514
|
+
let e = G(this.node.id);
|
|
3515
3515
|
if (!e) {
|
|
3516
3516
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
3517
3517
|
return;
|
|
@@ -3521,7 +3521,7 @@ ${c}${t}return __outputs__;
|
|
|
3521
3521
|
return;
|
|
3522
3522
|
}
|
|
3523
3523
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
3524
|
-
let t =
|
|
3524
|
+
let t = gr(this.property.id);
|
|
3525
3525
|
if (!t) {
|
|
3526
3526
|
this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
|
|
3527
3527
|
return;
|
|
@@ -3549,12 +3549,12 @@ ${c}${t}return __outputs__;
|
|
|
3549
3549
|
},
|
|
3550
3550
|
initData_: function() {
|
|
3551
3551
|
if (this.node.id) return;
|
|
3552
|
-
let e =
|
|
3552
|
+
let e = Rn("setProperty")?.[0];
|
|
3553
3553
|
if (!e) return;
|
|
3554
3554
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
3555
3555
|
let t = this.getField("NODE");
|
|
3556
3556
|
t.getOptions(!1), t.setValue(this.node.id);
|
|
3557
|
-
let n =
|
|
3557
|
+
let n = hr(this.node.id, "write")?.[0];
|
|
3558
3558
|
if (!n) return;
|
|
3559
3559
|
this.property.id = n.id, this.property.kind = n.kind, this.property.names = n.names;
|
|
3560
3560
|
let r = this.getField("PROPERTY");
|
|
@@ -3572,10 +3572,10 @@ ${c}${t}return __outputs__;
|
|
|
3572
3572
|
}, 0);
|
|
3573
3573
|
},
|
|
3574
3574
|
genNodeOpts_: function() {
|
|
3575
|
-
return
|
|
3575
|
+
return zn("setProperty");
|
|
3576
3576
|
},
|
|
3577
3577
|
genPropertyOpts_: function() {
|
|
3578
|
-
return
|
|
3578
|
+
return _r(this.node.id, "write");
|
|
3579
3579
|
},
|
|
3580
3580
|
onchange: function(e) {
|
|
3581
3581
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3586,7 +3586,7 @@ ${c}${t}return __outputs__;
|
|
|
3586
3586
|
}
|
|
3587
3587
|
},
|
|
3588
3588
|
onNodeChange_: function(e) {
|
|
3589
|
-
let t =
|
|
3589
|
+
let t = G(e);
|
|
3590
3590
|
if (!t) {
|
|
3591
3591
|
console.assert(!1);
|
|
3592
3592
|
return;
|
|
@@ -3595,13 +3595,13 @@ ${c}${t}return __outputs__;
|
|
|
3595
3595
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
3596
3596
|
let r = this.getField("PROPERTY");
|
|
3597
3597
|
if (r.getOptions(!1), n) {
|
|
3598
|
-
let e =
|
|
3598
|
+
let e = hr(this.node.id, "write")?.[0];
|
|
3599
3599
|
r.setValue(e?.id ?? "");
|
|
3600
3600
|
}
|
|
3601
3601
|
this.onPropertyChange_(r.getValue());
|
|
3602
3602
|
},
|
|
3603
3603
|
onPropertyChange_: function(e) {
|
|
3604
|
-
let t =
|
|
3604
|
+
let t = gr(e);
|
|
3605
3605
|
if (!t) {
|
|
3606
3606
|
console.assert(!1);
|
|
3607
3607
|
return;
|
|
@@ -3622,23 +3622,23 @@ ${c}${t}return __outputs__;
|
|
|
3622
3622
|
},
|
|
3623
3623
|
updateShadow_: function() {
|
|
3624
3624
|
if (this.isInsertionMarker()) return;
|
|
3625
|
-
let e =
|
|
3625
|
+
let e = gr(this.property.id);
|
|
3626
3626
|
if (!e) return;
|
|
3627
3627
|
let t = this.getInput("INSTANCE");
|
|
3628
3628
|
if (t) {
|
|
3629
3629
|
t.setShadowDom(null);
|
|
3630
3630
|
let e = t.connection?.targetBlock();
|
|
3631
|
-
e && e.dispose(), t.setShadowDom(
|
|
3631
|
+
e && e.dispose(), t.setShadowDom(U("string"));
|
|
3632
3632
|
}
|
|
3633
3633
|
let n = this.getInput("VALUE");
|
|
3634
3634
|
if (n) {
|
|
3635
3635
|
n.setShadowDom(null);
|
|
3636
3636
|
let t = n.connection?.targetBlock();
|
|
3637
|
-
t && t.dispose(), e.meta.element ? n.setCheck(
|
|
3637
|
+
t && t.dispose(), e.meta.element ? n.setCheck(an(e.meta.raw)).setShadowDom(bn(e.meta.raw)) : n.setCheck(V(e.meta.raw.type)).setShadowDom(U(e.meta.raw.type));
|
|
3638
3638
|
}
|
|
3639
3639
|
},
|
|
3640
3640
|
checkWarning_: function() {
|
|
3641
|
-
let e =
|
|
3641
|
+
let e = G(this.node.id);
|
|
3642
3642
|
if (!e) {
|
|
3643
3643
|
this.setWarningText(P("WARN_NODE_NOT_FOUND"));
|
|
3644
3644
|
return;
|
|
@@ -3648,7 +3648,7 @@ ${c}${t}return __outputs__;
|
|
|
3648
3648
|
return;
|
|
3649
3649
|
}
|
|
3650
3650
|
e.alias !== this.node.alias && (this.node.alias = e.alias);
|
|
3651
|
-
let t =
|
|
3651
|
+
let t = gr(this.property.id);
|
|
3652
3652
|
if (!t) {
|
|
3653
3653
|
this.setWarningText(P("WARN_PROPERTY_NOT_FOUND"));
|
|
3654
3654
|
return;
|
|
@@ -3677,7 +3677,7 @@ ${c}${t}return __outputs__;
|
|
|
3677
3677
|
},
|
|
3678
3678
|
initData_: function() {
|
|
3679
3679
|
if (this.state.id) return;
|
|
3680
|
-
let e =
|
|
3680
|
+
let e = Bn()?.[0];
|
|
3681
3681
|
if (!e) return;
|
|
3682
3682
|
this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
|
|
3683
3683
|
let t = this.getField("STATE");
|
|
@@ -3692,7 +3692,7 @@ ${c}${t}return __outputs__;
|
|
|
3692
3692
|
}, 0);
|
|
3693
3693
|
},
|
|
3694
3694
|
genStateOpts_: function() {
|
|
3695
|
-
return
|
|
3695
|
+
return Hn();
|
|
3696
3696
|
},
|
|
3697
3697
|
onchange: function(e) {
|
|
3698
3698
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3701,7 +3701,7 @@ ${c}${t}return __outputs__;
|
|
|
3701
3701
|
}
|
|
3702
3702
|
},
|
|
3703
3703
|
onStateChange_: function(e) {
|
|
3704
|
-
let t =
|
|
3704
|
+
let t = Vn(e);
|
|
3705
3705
|
if (!t) {
|
|
3706
3706
|
console.assert(!1);
|
|
3707
3707
|
return;
|
|
@@ -3709,7 +3709,7 @@ ${c}${t}return __outputs__;
|
|
|
3709
3709
|
this.state.id = t.id, this.state.name = t.name, this.state.type = t.type;
|
|
3710
3710
|
},
|
|
3711
3711
|
checkWarning_: function() {
|
|
3712
|
-
let e =
|
|
3712
|
+
let e = Vn(this.state.id);
|
|
3713
3713
|
if (!e) {
|
|
3714
3714
|
this.setWarningText(P("WARN_STATE_NOT_FOUND"));
|
|
3715
3715
|
return;
|
|
@@ -3733,7 +3733,7 @@ ${c}${t}return __outputs__;
|
|
|
3733
3733
|
},
|
|
3734
3734
|
initData_: function() {
|
|
3735
3735
|
if (this.state.id) return;
|
|
3736
|
-
let e =
|
|
3736
|
+
let e = Bn()?.[0];
|
|
3737
3737
|
if (!e) return;
|
|
3738
3738
|
this.state.id = e.id, this.state.name = e.name, this.state.type = e.type;
|
|
3739
3739
|
let t = this.getField("STATE");
|
|
@@ -3746,7 +3746,7 @@ ${c}${t}return __outputs__;
|
|
|
3746
3746
|
this.state.id = e.state?.id ?? "", this.state.name = e.state?.name ?? "", this.state.type = e.state?.type ?? "string";
|
|
3747
3747
|
},
|
|
3748
3748
|
genStateOpts_: function() {
|
|
3749
|
-
return
|
|
3749
|
+
return Hn();
|
|
3750
3750
|
},
|
|
3751
3751
|
onchange: function(e) {
|
|
3752
3752
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -3755,7 +3755,7 @@ ${c}${t}return __outputs__;
|
|
|
3755
3755
|
}
|
|
3756
3756
|
},
|
|
3757
3757
|
onStateChange_: function(e) {
|
|
3758
|
-
let t =
|
|
3758
|
+
let t = Vn(e);
|
|
3759
3759
|
if (!t) {
|
|
3760
3760
|
console.assert(!1);
|
|
3761
3761
|
return;
|
|
@@ -3767,11 +3767,11 @@ ${c}${t}return __outputs__;
|
|
|
3767
3767
|
this.getInput("VALUE").setShadowDom(null);
|
|
3768
3768
|
let e = this.getInput("VALUE").connection.targetBlock();
|
|
3769
3769
|
e && e.dispose();
|
|
3770
|
-
let t =
|
|
3770
|
+
let t = V(this.state.type), n = U(this.state.type);
|
|
3771
3771
|
this.getInput("VALUE").setCheck(t).setShadowDom(n);
|
|
3772
3772
|
},
|
|
3773
3773
|
checkWarning_: function() {
|
|
3774
|
-
let e =
|
|
3774
|
+
let e = Vn(this.state.id);
|
|
3775
3775
|
if (!e) {
|
|
3776
3776
|
this.setWarningText(P("WARN_STATE_NOT_FOUND"));
|
|
3777
3777
|
return;
|
|
@@ -3839,7 +3839,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
|
|
|
3839
3839
|
type: "field_colour",
|
|
3840
3840
|
name: "COLOR",
|
|
3841
3841
|
colour: "#ff0000",
|
|
3842
|
-
colourOptions:
|
|
3842
|
+
colourOptions: sn,
|
|
3843
3843
|
columns: 14
|
|
3844
3844
|
}],
|
|
3845
3845
|
output: "Color",
|
|
@@ -3905,7 +3905,7 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
|
|
|
3905
3905
|
};
|
|
3906
3906
|
//#endregion
|
|
3907
3907
|
//#region src/core/blocks/common/parameter/v1/whiteList.ts
|
|
3908
|
-
var
|
|
3908
|
+
var Sr = [
|
|
3909
3909
|
"add_data_v",
|
|
3910
3910
|
"call_app_method_v",
|
|
3911
3911
|
"call_func_v",
|
|
@@ -3921,18 +3921,18 @@ var Cr = [
|
|
|
3921
3921
|
"query_data_v",
|
|
3922
3922
|
"update_data_v"
|
|
3923
3923
|
];
|
|
3924
|
-
function
|
|
3925
|
-
return !!
|
|
3924
|
+
function Cr(e) {
|
|
3925
|
+
return !!Sr.find((t) => e.startsWith(t));
|
|
3926
3926
|
}
|
|
3927
3927
|
//#endregion
|
|
3928
3928
|
//#region src/core/blocks/common/parameter/v1/index.ts
|
|
3929
|
-
var
|
|
3929
|
+
var wr = p.xml;
|
|
3930
3930
|
y.parameter_v1 = {
|
|
3931
3931
|
init: function() {
|
|
3932
3932
|
this.key = "", this.name = "", this.locale = !1, this.appendDummyInput().appendField("", "LABEL"), this.setOutput(!0), this.setColour(220);
|
|
3933
3933
|
},
|
|
3934
3934
|
mutationToDom: function() {
|
|
3935
|
-
let e =
|
|
3935
|
+
let e = wr.createElement("mutation");
|
|
3936
3936
|
return e.setAttribute("key", this.key), e.setAttribute("name", this.name), e.setAttribute("locale", this.locale ? "TRUE" : "FALSE"), e;
|
|
3937
3937
|
},
|
|
3938
3938
|
domToMutation: function(e) {
|
|
@@ -3969,11 +3969,11 @@ y.parameter_v1 = {
|
|
|
3969
3969
|
},
|
|
3970
3970
|
tryDuplicate_: function(e) {
|
|
3971
3971
|
let t = this.workspace.getBlockById(e.oldParentId);
|
|
3972
|
-
if (t &&
|
|
3972
|
+
if (t && Cr(t.type)) try {
|
|
3973
3973
|
x.disable();
|
|
3974
3974
|
let n = t.getInput(e.oldInputName)?.connection;
|
|
3975
3975
|
if (n) {
|
|
3976
|
-
let e =
|
|
3976
|
+
let e = cn(this.workspace, this.key, this.name, this.locale);
|
|
3977
3977
|
n.connect(e.outputConnection);
|
|
3978
3978
|
}
|
|
3979
3979
|
} finally {
|
|
@@ -3989,7 +3989,7 @@ y.parameter_v1 = {
|
|
|
3989
3989
|
checkWarning_: function() {
|
|
3990
3990
|
let e = this.getSurroundParent();
|
|
3991
3991
|
for (; e;) {
|
|
3992
|
-
if (
|
|
3992
|
+
if (Cr(e.type)) for (let t of e.inputList) {
|
|
3993
3993
|
let e = t.connection?.targetBlock();
|
|
3994
3994
|
if (!e || e.type !== "parameter_v1") continue;
|
|
3995
3995
|
let n = e;
|
|
@@ -4009,28 +4009,28 @@ y.parameter_v1 = {
|
|
|
4009
4009
|
};
|
|
4010
4010
|
//#endregion
|
|
4011
4011
|
//#region src/core/utils/compute/func.ts
|
|
4012
|
-
function
|
|
4012
|
+
function Tr(e) {
|
|
4013
4013
|
let t = S.compute.spaces.find((t) => t.id === e);
|
|
4014
4014
|
return t ? t.funcs : [];
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function Er(e, t) {
|
|
4017
4017
|
let n = S.compute.spaces.find((t) => t.id === e);
|
|
4018
4018
|
if (n) return n.funcs.find((e) => e.id === t);
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function Dr(e) {
|
|
4021
4021
|
let t = [];
|
|
4022
|
-
return
|
|
4022
|
+
return Tr(e).forEach(({ id: e, name: n }) => {
|
|
4023
4023
|
t.push([n, e]);
|
|
4024
4024
|
}), F(t);
|
|
4025
4025
|
}
|
|
4026
|
-
function
|
|
4026
|
+
function Or() {
|
|
4027
4027
|
return S.compute.activeFunc;
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4029
|
+
function kr(e) {
|
|
4030
4030
|
let { activeFunc: t } = S.compute;
|
|
4031
4031
|
return t.outputs?.find((t) => t.id === e);
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function Ar() {
|
|
4034
4034
|
let { activeFunc: e } = S.compute, t = [];
|
|
4035
4035
|
return e.outputs?.forEach(({ id: e, name: n }) => {
|
|
4036
4036
|
t.push([n, e]);
|
|
@@ -4038,18 +4038,18 @@ function jr() {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
//#endregion
|
|
4040
4040
|
//#region src/core/utils/compute/space.ts
|
|
4041
|
-
function
|
|
4041
|
+
function jr(e) {
|
|
4042
4042
|
let t = [];
|
|
4043
4043
|
return S.compute.spaces.forEach((n) => {
|
|
4044
4044
|
e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
|
|
4045
4045
|
}), t;
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4047
|
+
function Mr(e) {
|
|
4048
4048
|
return S.compute.spaces.find((t) => t.id === e);
|
|
4049
4049
|
}
|
|
4050
|
-
function
|
|
4050
|
+
function Nr(e) {
|
|
4051
4051
|
let t = [];
|
|
4052
|
-
return
|
|
4052
|
+
return jr(e).forEach(({ id: e, name: n }) => {
|
|
4053
4053
|
t.push([n, e]);
|
|
4054
4054
|
}), F(t);
|
|
4055
4055
|
}
|
|
@@ -4067,12 +4067,12 @@ y.call_func_v1 = {
|
|
|
4067
4067
|
},
|
|
4068
4068
|
initData_: function() {
|
|
4069
4069
|
if (this.space.id) return;
|
|
4070
|
-
let e =
|
|
4070
|
+
let e = jr("func")?.[0];
|
|
4071
4071
|
if (!e) return;
|
|
4072
4072
|
this.space.id = e.id, this.space.name = e.name;
|
|
4073
4073
|
let t = this.getField("SPACE");
|
|
4074
4074
|
t.getOptions(!1), t.setValue(this.space.id);
|
|
4075
|
-
let n =
|
|
4075
|
+
let n = Tr(this.space.id)?.[0];
|
|
4076
4076
|
if (!n) return;
|
|
4077
4077
|
this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
|
|
4078
4078
|
let r = this.getField("FUNC");
|
|
@@ -4090,10 +4090,10 @@ y.call_func_v1 = {
|
|
|
4090
4090
|
}, 0);
|
|
4091
4091
|
},
|
|
4092
4092
|
genSpaceOpts_: function() {
|
|
4093
|
-
return
|
|
4093
|
+
return Nr("func");
|
|
4094
4094
|
},
|
|
4095
4095
|
genFuncOpts_: function() {
|
|
4096
|
-
return
|
|
4096
|
+
return Dr(this.space.id);
|
|
4097
4097
|
},
|
|
4098
4098
|
onchange: function(e) {
|
|
4099
4099
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -4104,7 +4104,7 @@ y.call_func_v1 = {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
},
|
|
4106
4106
|
onSpaceChange_: function(e) {
|
|
4107
|
-
let t =
|
|
4107
|
+
let t = Mr(e);
|
|
4108
4108
|
if (!t) {
|
|
4109
4109
|
console.assert(!1);
|
|
4110
4110
|
return;
|
|
@@ -4113,13 +4113,13 @@ y.call_func_v1 = {
|
|
|
4113
4113
|
this.space.id = t.id, this.space.name = t.name;
|
|
4114
4114
|
let r = this.getField("FUNC");
|
|
4115
4115
|
if (r.getOptions(!1), n) {
|
|
4116
|
-
let e =
|
|
4116
|
+
let e = Tr(this.space.id)?.[0];
|
|
4117
4117
|
r.setValue(e?.id ?? "");
|
|
4118
4118
|
}
|
|
4119
4119
|
this.onFuncChange_(r.getValue());
|
|
4120
4120
|
},
|
|
4121
4121
|
onFuncChange_: function(e) {
|
|
4122
|
-
let t =
|
|
4122
|
+
let t = Er(this.space.id, e);
|
|
4123
4123
|
if (!t) {
|
|
4124
4124
|
console.assert(!1);
|
|
4125
4125
|
return;
|
|
@@ -4150,13 +4150,13 @@ y.call_func_v1 = {
|
|
|
4150
4150
|
},
|
|
4151
4151
|
updateCheck_: function() {
|
|
4152
4152
|
for (let e = 0; e < this.func.inputs.length; e++) {
|
|
4153
|
-
let { type: t } = this.func.inputs[e], n =
|
|
4153
|
+
let { type: t } = this.func.inputs[e], n = V(t);
|
|
4154
4154
|
this.getInput("INPUT" + e).connection.setCheck(n);
|
|
4155
4155
|
}
|
|
4156
4156
|
},
|
|
4157
4157
|
updateShadow_: function() {
|
|
4158
4158
|
if (!this.isInsertionMarker()) for (let e = 0; e < this.func.inputs.length; e++) {
|
|
4159
|
-
let t = this.func.inputs[e], n =
|
|
4159
|
+
let t = this.func.inputs[e], n = U(t.type);
|
|
4160
4160
|
this.getInput("INPUT" + e).setShadowDom(n);
|
|
4161
4161
|
}
|
|
4162
4162
|
},
|
|
@@ -4172,16 +4172,16 @@ y.call_func_v1 = {
|
|
|
4172
4172
|
!1
|
|
4173
4173
|
]);
|
|
4174
4174
|
}
|
|
4175
|
-
|
|
4175
|
+
H(this, e);
|
|
4176
4176
|
},
|
|
4177
4177
|
checkWarning_: function() {
|
|
4178
|
-
let e =
|
|
4178
|
+
let e = Mr(this.space.id);
|
|
4179
4179
|
if (!e) {
|
|
4180
4180
|
this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
|
|
4181
4181
|
return;
|
|
4182
4182
|
}
|
|
4183
4183
|
e.name !== this.space.name && (this.space.name = e.name);
|
|
4184
|
-
let t =
|
|
4184
|
+
let t = Er(this.space.id, this.func.id);
|
|
4185
4185
|
if (!t) {
|
|
4186
4186
|
this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
|
|
4187
4187
|
return;
|
|
@@ -4226,12 +4226,12 @@ ${c}${l}}
|
|
|
4226
4226
|
},
|
|
4227
4227
|
initData_: function() {
|
|
4228
4228
|
if (this.space.id) return;
|
|
4229
|
-
let e =
|
|
4229
|
+
let e = jr("func")?.[0];
|
|
4230
4230
|
if (!e) return;
|
|
4231
4231
|
this.space.id = e.id, this.space.name = e.name;
|
|
4232
4232
|
let t = this.getField("SPACE");
|
|
4233
4233
|
t.getOptions(!1), t.setValue(this.space.id);
|
|
4234
|
-
let n =
|
|
4234
|
+
let n = Tr(this.space.id)?.[0];
|
|
4235
4235
|
if (!n) return;
|
|
4236
4236
|
this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
|
|
4237
4237
|
let r = this.getField("FUNC");
|
|
@@ -4249,10 +4249,10 @@ ${c}${l}}
|
|
|
4249
4249
|
}, 0);
|
|
4250
4250
|
},
|
|
4251
4251
|
genSpaceOpts_: function() {
|
|
4252
|
-
return
|
|
4252
|
+
return Nr("func");
|
|
4253
4253
|
},
|
|
4254
4254
|
genFuncOpts_: function() {
|
|
4255
|
-
return
|
|
4255
|
+
return Dr(this.space.id);
|
|
4256
4256
|
},
|
|
4257
4257
|
onchange: function(e) {
|
|
4258
4258
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -4263,7 +4263,7 @@ ${c}${l}}
|
|
|
4263
4263
|
}
|
|
4264
4264
|
},
|
|
4265
4265
|
onSpaceChange_: function(e) {
|
|
4266
|
-
let t =
|
|
4266
|
+
let t = Mr(e);
|
|
4267
4267
|
if (!t) {
|
|
4268
4268
|
console.assert(!1);
|
|
4269
4269
|
return;
|
|
@@ -4272,13 +4272,13 @@ ${c}${l}}
|
|
|
4272
4272
|
this.space.id = t.id, this.space.name = t.name;
|
|
4273
4273
|
let r = this.getField("FUNC");
|
|
4274
4274
|
if (r.getOptions(!1), n) {
|
|
4275
|
-
let e =
|
|
4275
|
+
let e = Tr(this.space.id)?.[0];
|
|
4276
4276
|
r.setValue(e?.id ?? "");
|
|
4277
4277
|
}
|
|
4278
4278
|
this.onFuncChange_(r.getValue());
|
|
4279
4279
|
},
|
|
4280
4280
|
onFuncChange_: function(e) {
|
|
4281
|
-
let t =
|
|
4281
|
+
let t = Er(this.space.id, e);
|
|
4282
4282
|
if (!t) {
|
|
4283
4283
|
console.assert(!1);
|
|
4284
4284
|
return;
|
|
@@ -4309,13 +4309,13 @@ ${c}${l}}
|
|
|
4309
4309
|
},
|
|
4310
4310
|
updateCheck_: function() {
|
|
4311
4311
|
for (let e = 0; e < this.func.inputs.length; e++) {
|
|
4312
|
-
let { type: t } = this.func.inputs[e], n =
|
|
4312
|
+
let { type: t } = this.func.inputs[e], n = V(t);
|
|
4313
4313
|
this.getInput("INPUT" + e).connection.setCheck(n);
|
|
4314
4314
|
}
|
|
4315
4315
|
},
|
|
4316
4316
|
updateShadow_: function() {
|
|
4317
4317
|
if (!this.isInsertionMarker()) for (let e = 0; e < this.func.inputs.length; e++) {
|
|
4318
|
-
let t = this.func.inputs[e], n =
|
|
4318
|
+
let t = this.func.inputs[e], n = U(t.type);
|
|
4319
4319
|
this.getInput("INPUT" + e).setShadowDom(n);
|
|
4320
4320
|
}
|
|
4321
4321
|
},
|
|
@@ -4331,16 +4331,16 @@ ${c}${l}}
|
|
|
4331
4331
|
!1
|
|
4332
4332
|
]);
|
|
4333
4333
|
}
|
|
4334
|
-
|
|
4334
|
+
H(this, e);
|
|
4335
4335
|
},
|
|
4336
4336
|
checkWarning_: function() {
|
|
4337
|
-
let e =
|
|
4337
|
+
let e = Mr(this.space.id);
|
|
4338
4338
|
if (!e) {
|
|
4339
4339
|
this.setWarningText(P("WARN_SPACE_NOT_FOUND"));
|
|
4340
4340
|
return;
|
|
4341
4341
|
}
|
|
4342
4342
|
e.name !== this.space.name && (this.space.name = e.name);
|
|
4343
|
-
let t =
|
|
4343
|
+
let t = Er(this.space.id, this.func.id);
|
|
4344
4344
|
if (!t) {
|
|
4345
4345
|
this.setWarningText(P("WARN_FUNC_NOT_FOUND"));
|
|
4346
4346
|
return;
|
|
@@ -4380,7 +4380,7 @@ ${c}${l}}
|
|
|
4380
4380
|
},
|
|
4381
4381
|
initData_: function() {
|
|
4382
4382
|
if (this.func.id) return;
|
|
4383
|
-
let { id: e, inputs: t } =
|
|
4383
|
+
let { id: e, inputs: t } = Or();
|
|
4384
4384
|
this.func.id = e, this.func.inputs = t;
|
|
4385
4385
|
},
|
|
4386
4386
|
saveExtraState: function() {
|
|
@@ -4415,10 +4415,10 @@ ${c}${l}}
|
|
|
4415
4415
|
!1
|
|
4416
4416
|
]);
|
|
4417
4417
|
}
|
|
4418
|
-
|
|
4418
|
+
H(this, e);
|
|
4419
4419
|
},
|
|
4420
4420
|
checkWarning_: function() {
|
|
4421
|
-
let { id: e, inputs: t } =
|
|
4421
|
+
let { id: e, inputs: t } = Or();
|
|
4422
4422
|
if (this.func.id !== e && (this.func.id = e), !v(t, this.func.inputs)) {
|
|
4423
4423
|
this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
|
|
4424
4424
|
return;
|
|
@@ -4443,7 +4443,7 @@ ${n}}`;
|
|
|
4443
4443
|
},
|
|
4444
4444
|
initData_: function() {
|
|
4445
4445
|
if (this.output.id) return;
|
|
4446
|
-
let e =
|
|
4446
|
+
let e = Or().outputs?.[0];
|
|
4447
4447
|
e && (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type);
|
|
4448
4448
|
},
|
|
4449
4449
|
saveExtraState: function() {
|
|
@@ -4455,7 +4455,7 @@ ${n}}`;
|
|
|
4455
4455
|
}, 0);
|
|
4456
4456
|
},
|
|
4457
4457
|
genOutputOpts_: function() {
|
|
4458
|
-
return
|
|
4458
|
+
return Ar();
|
|
4459
4459
|
},
|
|
4460
4460
|
onchange: function(e) {
|
|
4461
4461
|
if (e.type === x.BLOCK_CHANGE) {
|
|
@@ -4466,7 +4466,7 @@ ${n}}`;
|
|
|
4466
4466
|
}
|
|
4467
4467
|
},
|
|
4468
4468
|
onOutputChange_: function(e) {
|
|
4469
|
-
let t =
|
|
4469
|
+
let t = kr(e);
|
|
4470
4470
|
if (!t) {
|
|
4471
4471
|
console.assert(!1);
|
|
4472
4472
|
return;
|
|
@@ -4478,16 +4478,16 @@ ${n}}`;
|
|
|
4478
4478
|
e.connection.setShadowDom(null);
|
|
4479
4479
|
let t = e.connection.targetBlock();
|
|
4480
4480
|
t && !t.isShadow() && t.dispose();
|
|
4481
|
-
let n =
|
|
4481
|
+
let n = V(this.output.type);
|
|
4482
4482
|
e.setCheck(n);
|
|
4483
4483
|
},
|
|
4484
4484
|
updateShadows_: function() {
|
|
4485
4485
|
if (this.isInsertionMarker()) return;
|
|
4486
|
-
let e =
|
|
4486
|
+
let e = U(this.output.type);
|
|
4487
4487
|
this.getInput("VALUE").setShadowDom(e);
|
|
4488
4488
|
},
|
|
4489
4489
|
checkWarning_: function() {
|
|
4490
|
-
let e =
|
|
4490
|
+
let e = kr(this.output.id);
|
|
4491
4491
|
if (!e) {
|
|
4492
4492
|
this.setWarningText(P("WARN_FUNC_HAS_CHANGED"));
|
|
4493
4493
|
return;
|
|
@@ -4551,7 +4551,7 @@ ${n}}`;
|
|
|
4551
4551
|
};
|
|
4552
4552
|
//#endregion
|
|
4553
4553
|
//#region src/core/utils/data/space.ts
|
|
4554
|
-
function
|
|
4554
|
+
function Pr() {
|
|
4555
4555
|
let e = [];
|
|
4556
4556
|
return S.data.spaces.forEach((t) => {
|
|
4557
4557
|
t.tables.length > 0 && e.push(t);
|
|
@@ -4563,7 +4563,7 @@ function Fr(e) {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
function Ir() {
|
|
4565
4565
|
let e = [];
|
|
4566
|
-
return
|
|
4566
|
+
return Pr().forEach(({ id: t, name: n }) => {
|
|
4567
4567
|
e.push([n, t]);
|
|
4568
4568
|
}), F(e);
|
|
4569
4569
|
}
|
|
@@ -4606,7 +4606,7 @@ function Vr(e, t) {
|
|
|
4606
4606
|
function Hr(e) {
|
|
4607
4607
|
let t = e.getInput("TABLE").connection;
|
|
4608
4608
|
if (t.targetBlock()) return;
|
|
4609
|
-
let n, r, i =
|
|
4609
|
+
let n, r, i = Pr()?.[0];
|
|
4610
4610
|
if (i) {
|
|
4611
4611
|
let e = X(i.id)?.[0];
|
|
4612
4612
|
if (e) {
|
|
@@ -4670,7 +4670,7 @@ y.add_data_v1 = {
|
|
|
4670
4670
|
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
|
|
4671
4671
|
},
|
|
4672
4672
|
ensureBlocks_: function() {
|
|
4673
|
-
this.isInsertionMarker() || (Hr(this),
|
|
4673
|
+
this.isInsertionMarker() || (Hr(this), H(this, [
|
|
4674
4674
|
[
|
|
4675
4675
|
"SUCCESS",
|
|
4676
4676
|
"__success__",
|
|
@@ -4731,7 +4731,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
4731
4731
|
},
|
|
4732
4732
|
initData_: function() {
|
|
4733
4733
|
if (this.space.id) return;
|
|
4734
|
-
let e =
|
|
4734
|
+
let e = Pr()?.[0];
|
|
4735
4735
|
if (!e) return;
|
|
4736
4736
|
this.space.id = e.id, this.space.name = e.name;
|
|
4737
4737
|
let t = X(this.space.id)?.[0];
|
|
@@ -4824,7 +4824,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
4824
4824
|
r && (t.setCheck(null), t.connect(r.outputConnection));
|
|
4825
4825
|
},
|
|
4826
4826
|
updateCheck_: function() {
|
|
4827
|
-
let e =
|
|
4827
|
+
let e = on(this.column.type);
|
|
4828
4828
|
this.getInput("VALUE").connection.setCheck(e);
|
|
4829
4829
|
},
|
|
4830
4830
|
checkWarning_: function() {
|
|
@@ -4929,7 +4929,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
4929
4929
|
function Wr(e) {
|
|
4930
4930
|
let t = e.getInput("TABLE").connection;
|
|
4931
4931
|
if (t.targetBlock()) return;
|
|
4932
|
-
let n =
|
|
4932
|
+
let n = Pr()?.[0], r = X(n?.id ?? "")?.[0], i = {
|
|
4933
4933
|
type: "select_table_v1",
|
|
4934
4934
|
extraState: {
|
|
4935
4935
|
space: {
|
|
@@ -4947,7 +4947,7 @@ function Wr(e) {
|
|
|
4947
4947
|
function Gr(e) {
|
|
4948
4948
|
let t = e.getInput("CONDITION").connection;
|
|
4949
4949
|
if (t.targetBlock()) return;
|
|
4950
|
-
let n =
|
|
4950
|
+
let n = Pr()?.[0], r = X(n?.id ?? "")?.[0], i = zr(n?.id, r?.id)?.[0], a = {
|
|
4951
4951
|
type: "cond_atomic_v1",
|
|
4952
4952
|
extraState: {
|
|
4953
4953
|
space: {
|
|
@@ -5003,7 +5003,7 @@ y.delete_data_v1 = {
|
|
|
5003
5003
|
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "HANDLE")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
5004
5004
|
},
|
|
5005
5005
|
ensureBlocks_: function() {
|
|
5006
|
-
this.isInsertionMarker() || (Wr(this), Gr(this),
|
|
5006
|
+
this.isInsertionMarker() || (Wr(this), Gr(this), H(this, [[
|
|
5007
5007
|
"SUCCESS",
|
|
5008
5008
|
"__success__",
|
|
5009
5009
|
"x-runtime-lib.success",
|
|
@@ -5050,7 +5050,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
5050
5050
|
function qr(e) {
|
|
5051
5051
|
let t = e.getInput("TABLE").connection;
|
|
5052
5052
|
if (t.targetBlock()) return;
|
|
5053
|
-
let n, r, i =
|
|
5053
|
+
let n, r, i = Pr()?.[0];
|
|
5054
5054
|
if (i) {
|
|
5055
5055
|
let e = X(i.id)?.[0];
|
|
5056
5056
|
if (e) {
|
|
@@ -5151,7 +5151,7 @@ t([{
|
|
|
5151
5151
|
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("EXTRA_DATA") || (this.appendValueInput("EXTRA_DATA"), this.moveInputBefore("EXTRA_DATA", "HANDLE")), this.getInput("MAIN_DATA") || (this.appendValueInput("MAIN_DATA"), this.moveInputBefore("MAIN_DATA", "EXTRA_DATA")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "MAIN_DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
5152
5152
|
},
|
|
5153
5153
|
ensureBlocks_: function() {
|
|
5154
|
-
this.isInsertionMarker() || (qr(this), Jr(this), Yr(this),
|
|
5154
|
+
this.isInsertionMarker() || (qr(this), Jr(this), Yr(this), H(this, [
|
|
5155
5155
|
[
|
|
5156
5156
|
"SUCCESS",
|
|
5157
5157
|
"__success__",
|
|
@@ -5250,7 +5250,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
5250
5250
|
},
|
|
5251
5251
|
initData_: function() {
|
|
5252
5252
|
if (this.space.id) return;
|
|
5253
|
-
let e =
|
|
5253
|
+
let e = Pr()?.[0];
|
|
5254
5254
|
if (!e) return;
|
|
5255
5255
|
this.space.id = e.id, this.space.name = e.name;
|
|
5256
5256
|
let t = this.getField("SPACE");
|
|
@@ -5435,7 +5435,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
5435
5435
|
},
|
|
5436
5436
|
initData_: function() {
|
|
5437
5437
|
if (this.space.id) return;
|
|
5438
|
-
let e =
|
|
5438
|
+
let e = Pr()?.[0];
|
|
5439
5439
|
if (!e) return;
|
|
5440
5440
|
this.space.id = e.id, this.space.name = e.name;
|
|
5441
5441
|
let t = this.getField("SPACE");
|
|
@@ -5525,7 +5525,7 @@ ${g.statementToCode(e, "HANDLE")}}
|
|
|
5525
5525
|
this.getInput("FINALLY") || this.appendStatementInput("FINALLY").appendField("%{BKY_DATA_FINALLY}"), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "FINALLY")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("HANDLE") || (this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.moveInputBefore("HANDLE", "SUCCESS"));
|
|
5526
5526
|
},
|
|
5527
5527
|
ensureBlocks_: function() {
|
|
5528
|
-
this.isInsertionMarker() ||
|
|
5528
|
+
this.isInsertionMarker() || H(this, [[
|
|
5529
5529
|
"SUCCESS",
|
|
5530
5530
|
"__success__",
|
|
5531
5531
|
"x-runtime-lib.success",
|
|
@@ -5596,7 +5596,7 @@ ${t}}
|
|
|
5596
5596
|
},
|
|
5597
5597
|
initData_: function() {
|
|
5598
5598
|
if (this.space.id) return;
|
|
5599
|
-
let e =
|
|
5599
|
+
let e = Pr()?.[0];
|
|
5600
5600
|
if (!e) return;
|
|
5601
5601
|
this.space.id = e.id, this.space.name = e.name;
|
|
5602
5602
|
let t = this.getField("SPACE");
|
|
@@ -5766,7 +5766,7 @@ ${t}}
|
|
|
5766
5766
|
for (let e = 0; e < this.itemCount_; e++) {
|
|
5767
5767
|
let t = this.getFieldValue("COLUMN" + e), n = this.table.columns.find((e) => e.id === t);
|
|
5768
5768
|
if (!n) continue;
|
|
5769
|
-
let r =
|
|
5769
|
+
let r = on(n.type);
|
|
5770
5770
|
this.getInput("ADD" + e).setCheck(r);
|
|
5771
5771
|
}
|
|
5772
5772
|
},
|
|
@@ -5807,7 +5807,7 @@ ${t}}
|
|
|
5807
5807
|
function Zr(e) {
|
|
5808
5808
|
let t = e.getInput("TABLE").connection;
|
|
5809
5809
|
if (t.targetBlock()) return;
|
|
5810
|
-
let n, r, i =
|
|
5810
|
+
let n, r, i = Pr()?.[0];
|
|
5811
5811
|
if (i) {
|
|
5812
5812
|
let e = X(i.id)?.[0];
|
|
5813
5813
|
if (e) {
|
|
@@ -5877,7 +5877,7 @@ y.update_data_v1 = {
|
|
|
5877
5877
|
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(u.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
5878
5878
|
},
|
|
5879
5879
|
ensureBlocks: function() {
|
|
5880
|
-
this.isInsertionMarker() || (Zr(this), Qr(this),
|
|
5880
|
+
this.isInsertionMarker() || (Zr(this), Qr(this), H(this, [
|
|
5881
5881
|
[
|
|
5882
5882
|
"SUCCESS",
|
|
5883
5883
|
"__success__",
|
|
@@ -7709,7 +7709,7 @@ y.procedure_def_container_v1 = { init: function() {
|
|
|
7709
7709
|
let t = this.args[e], n = this.getInput("ARG" + e).connection, r = n.targetBlock();
|
|
7710
7710
|
if (r) r.setKeyName(`__param@${t.id}__`, t.name, !1);
|
|
7711
7711
|
else try {
|
|
7712
|
-
x.disable(), r =
|
|
7712
|
+
x.disable(), r = cn(this.workspace, `__param@${t.id}__`, t.name, !1), r.outputConnection.connect(n);
|
|
7713
7713
|
} finally {
|
|
7714
7714
|
x.enable();
|
|
7715
7715
|
}
|
|
@@ -7787,7 +7787,7 @@ y.procedure_return_v1 = {
|
|
|
7787
7787
|
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_ASSET_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_ASSET_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("ASSET") || (this.appendValueInput("ASSET").setCheck("Resource").setAlign(u.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
|
|
7788
7788
|
},
|
|
7789
7789
|
ensureBlocks_: function() {
|
|
7790
|
-
this.isInsertionMarker() ||
|
|
7790
|
+
this.isInsertionMarker() || H(this, [
|
|
7791
7791
|
[
|
|
7792
7792
|
"SUCCESS",
|
|
7793
7793
|
"__success__",
|
|
@@ -7940,11 +7940,11 @@ y.select_resource_v1 = {
|
|
|
7940
7940
|
},
|
|
7941
7941
|
updateShadow_: function() {
|
|
7942
7942
|
if (this.isInsertionMarker()) return;
|
|
7943
|
-
let e =
|
|
7943
|
+
let e = ln("");
|
|
7944
7944
|
this.getInput("NAME")?.setShadowDom(e);
|
|
7945
7945
|
},
|
|
7946
7946
|
ensureBlocks_: function() {
|
|
7947
|
-
this.isInsertionMarker() ||
|
|
7947
|
+
this.isInsertionMarker() || H(this, [
|
|
7948
7948
|
[
|
|
7949
7949
|
"SUCCESS",
|
|
7950
7950
|
"__success__",
|
|
@@ -8392,13 +8392,13 @@ function ${g.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
|
|
|
8392
8392
|
},
|
|
8393
8393
|
updateShadow_: function() {
|
|
8394
8394
|
if (this.isInsertionMarker()) return;
|
|
8395
|
-
let e =
|
|
8395
|
+
let e = un(1e3);
|
|
8396
8396
|
this.getInput("INTERVAL")?.setShadowDom(e);
|
|
8397
|
-
let t =
|
|
8397
|
+
let t = dn(!1);
|
|
8398
8398
|
this.getInput("LOOP")?.setShadowDom(t);
|
|
8399
|
-
let n =
|
|
8399
|
+
let n = un(1);
|
|
8400
8400
|
this.getInput("COUNT")?.setShadowDom(n);
|
|
8401
|
-
let r =
|
|
8401
|
+
let r = dn(!1);
|
|
8402
8402
|
this.getInput("IMMEDIATE")?.setShadowDom(r);
|
|
8403
8403
|
}
|
|
8404
8404
|
}, g.forBlock.create_timer_v1 = function(e) {
|
|
@@ -8577,7 +8577,7 @@ var Ei = class {
|
|
|
8577
8577
|
});
|
|
8578
8578
|
}
|
|
8579
8579
|
};
|
|
8580
|
-
(0,
|
|
8580
|
+
(0, Tn.registerFieldColour)(), d.registry.unregister(te.names.ESCAPE), new wi.CrossTabCopyPaste().init({
|
|
8581
8581
|
contextMenu: !0,
|
|
8582
8582
|
shortcut: !0
|
|
8583
8583
|
}), new Ei().init();
|
|
@@ -9231,10 +9231,10 @@ function aa() {
|
|
|
9231
9231
|
}
|
|
9232
9232
|
function oa() {
|
|
9233
9233
|
let e = [];
|
|
9234
|
-
return e.push(Q(P("LABEL_EVENT"))),
|
|
9234
|
+
return e.push(Q(P("LABEL_EVENT"))), W("onEvent") && e.push($("on_app_event_v1")), W("triggerEvent") && e.push($("trigger_app_event_v1")), e.push($("app_bind_v1", [ta([{
|
|
9235
9235
|
key: "items",
|
|
9236
9236
|
value: "2"
|
|
9237
|
-
}])])), e.push($("watch_effect_v1")), (
|
|
9237
|
+
}])])), e.push($("watch_effect_v1")), (W("getProperty") || W("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), W("getProperty") && e.push($("get_app_property_v1")), W("setProperty") && e.push($("set_app_property_v1")), aa() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), (W("callMethod") || W("implementMethod")) && e.push(Q(P("LABEL_METHOD"))), W("callMethod") && e.push($("call_app_method_v1")), W("implementMethod") && (e.push($("implement_app_method_v1")), W("implementMethodOutput") && e.push($("set_app_method_output_v1")), e.push($("procedure_return_v1"))), e;
|
|
9238
9238
|
}
|
|
9239
9239
|
var sa = {
|
|
9240
9240
|
name: "APP_COMP_CATEGORY",
|
|
@@ -9286,10 +9286,10 @@ function ga() {
|
|
|
9286
9286
|
}
|
|
9287
9287
|
function _a() {
|
|
9288
9288
|
let e = [];
|
|
9289
|
-
return e.push(Q(P("LABEL_EVENT"))),
|
|
9289
|
+
return e.push(Q(P("LABEL_EVENT"))), W("onEvent") && e.push($("on_app_event_v1")), e.push($("app_bind_v1", [ta([{
|
|
9290
9290
|
key: "items",
|
|
9291
9291
|
value: "2"
|
|
9292
|
-
}])])), e.push($("watch_effect_v1")), (
|
|
9292
|
+
}])])), e.push($("watch_effect_v1")), (W("getProperty") || W("setProperty")) && e.push(Q(P("LABEL_PROPERTY"))), W("getProperty") && e.push($("get_app_property_v1")), W("setProperty") && e.push($("set_app_property_v1")), ha() && (e.push(Q(P("LABEL_STATE"))), e.push($("get_app_state_v1")), e.push($("set_app_state_v1"))), W("callMethod") && (e.push(Q(P("LABEL_METHOD"))), e.push($("call_app_method_v1"))), ga() && (e.push(Q(P("LABEL_ARGUMENT"))), e.push($("get_page_argument_v1"))), e;
|
|
9293
9293
|
}
|
|
9294
9294
|
var va = {
|
|
9295
9295
|
name: "APP_PAGE_CATEGORY",
|
|
@@ -9370,7 +9370,7 @@ var Ea = {
|
|
|
9370
9370
|
//#region src/core/category/compute/data/v1/index.ts
|
|
9371
9371
|
function Da() {
|
|
9372
9372
|
let e = [];
|
|
9373
|
-
if (
|
|
9373
|
+
if (Pr().length > 0) e.push(Q(P("LABEL_OPERATION"))), e.push($("add_data_v1")), e.push($("delete_data_v1")), e.push($("update_data_v1")), e.push($("query_data_v1")), e.push($("transaction_v1")), e.push($("interrupt_transaction_v1", [na("VALUE")])), e.push(Q(P("LABEL_CONDITION"))), e.push($("cond_logic_v1")), e.push($("cond_atomic_v1", [na("VALUE")])), e.push(Q(P("LABEL_QUERY_EXTRA"))), e.push($("query_extra_limit_v1", [ra("OFFSET", 0), ra("LIMIT", 1)])), e.push($("query_extra_sortby_v1", [na("COLUMN"), ia("DESC")]));
|
|
9374
9374
|
else {
|
|
9375
9375
|
let t = document.createElement("button");
|
|
9376
9376
|
t.setAttribute("text", P("BUTTON_NO_TABLE")), t.setAttribute("callbackKey", "NO_TABLE"), e.push(t);
|
|
@@ -9384,7 +9384,7 @@ var Oa = {
|
|
|
9384
9384
|
//#endregion
|
|
9385
9385
|
//#region src/core/category/compute/flow/v1/index.ts
|
|
9386
9386
|
function ka() {
|
|
9387
|
-
return
|
|
9387
|
+
return jr("flow").length > 0;
|
|
9388
9388
|
}
|
|
9389
9389
|
function Aa() {
|
|
9390
9390
|
let e = [];
|
|
@@ -9397,7 +9397,7 @@ var ja = {
|
|
|
9397
9397
|
//#endregion
|
|
9398
9398
|
//#region src/core/category/compute/func/v1/index.ts
|
|
9399
9399
|
function Ma() {
|
|
9400
|
-
return
|
|
9400
|
+
return jr("func").length > 0;
|
|
9401
9401
|
}
|
|
9402
9402
|
function Na() {
|
|
9403
9403
|
let { activeObject: e, activeFunc: t } = S.compute, n = [];
|