x-block-lib 0.5.13 → 0.5.15
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 +17 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5706,7 +5706,7 @@ const Od = {
|
|
|
5706
5706
|
},
|
|
5707
5707
|
updateShape2_: function() {
|
|
5708
5708
|
var e, t;
|
|
5709
|
-
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}");
|
|
5709
|
+
this.method.outputs.length > 0 ? this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}") : this.getInput("HANDLE") && this.removeInput("HANDLE");
|
|
5710
5710
|
for (let n = this.method.outputs.length; this.getInput("OUTPUT" + n); n++) {
|
|
5711
5711
|
const o = (t = (e = this.getInput("OUTPUT" + n)) == null ? void 0 : e.connection) == null ? void 0 : t.targetBlock();
|
|
5712
5712
|
o && o.dispose(), this.removeInput("OUTPUT" + n);
|
|
@@ -5717,12 +5717,11 @@ const Od = {
|
|
|
5717
5717
|
const o = this.appendValueInput("OUTPUT" + n);
|
|
5718
5718
|
n === 0 && o.appendField("%{BKY_UI_RETURN}"), this.moveInputBefore("OUTPUT" + n, "HANDLE");
|
|
5719
5719
|
}
|
|
5720
|
-
this.method.outputs.length <= 0 && (this.getInput("RETURN") || (this.appendDummyInput("RETURN").appendField("%{BKY_UI_RETURN}"), this.moveInputBefore("RETURN", "HANDLE")));
|
|
5721
5720
|
for (let n = this.method.inputs.length; this.getInput("INPUT" + n); n++)
|
|
5722
5721
|
this.removeInput("INPUT" + n);
|
|
5723
5722
|
for (let n = 0; n < this.method.inputs.length; n++) {
|
|
5724
5723
|
const o = this.method.inputs[n];
|
|
5725
|
-
this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(ie.Align.RIGHT).appendField(v[o.name]), this.
|
|
5724
|
+
this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(ie.Align.RIGHT).appendField(v[o.name]), this.moveInputBefore("INPUT" + n, "OUTPUT0"));
|
|
5726
5725
|
}
|
|
5727
5726
|
},
|
|
5728
5727
|
updateShadow_: function() {
|
|
@@ -5773,19 +5772,24 @@ const Od = {
|
|
|
5773
5772
|
};
|
|
5774
5773
|
x.call_node_method_v1 = Od;
|
|
5775
5774
|
r.forBlock.call_node_method_v1 = function(e) {
|
|
5776
|
-
const t = e
|
|
5777
|
-
let
|
|
5778
|
-
if (
|
|
5779
|
-
const
|
|
5775
|
+
const t = e;
|
|
5776
|
+
let n = t.node.id;
|
|
5777
|
+
if (n === "globality" && (n = ""), n = r.quote_(n), t.method.key === "add") {
|
|
5778
|
+
const o = r.quote_(t.getFieldValue("EXTRA1")), i = r.statementToCode(t, "HANDLE");
|
|
5780
5779
|
return `{
|
|
5781
|
-
var __newNode__ =
|
|
5782
|
-
${
|
|
5780
|
+
var __newNode__ = __addNodeV1__(${n}, false, ${o});
|
|
5781
|
+
${i}}
|
|
5783
5782
|
`;
|
|
5784
5783
|
} else {
|
|
5785
|
-
const
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5784
|
+
const o = r.quote_(t.method.key);
|
|
5785
|
+
if (t.method.outputs.length > 0) {
|
|
5786
|
+
const i = r.statementToCode(t, "HANDLE");
|
|
5787
|
+
return `{
|
|
5788
|
+
__callNodeMethodV1__(${n}, ${o});
|
|
5789
|
+
${i}}
|
|
5790
|
+
`;
|
|
5791
|
+
} else
|
|
5792
|
+
return `__callNodeMethodV1__(${n}, ${o});
|
|
5789
5793
|
`;
|
|
5790
5794
|
}
|
|
5791
5795
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vue-draggable-plus": "^0.5.4",
|
|
33
33
|
"vuetify": "^3.7.3",
|
|
34
34
|
"x-essential-lib": "^0.7.11",
|
|
35
|
-
"x-runtime-lib": "^0.5.
|
|
35
|
+
"x-runtime-lib": "^0.5.21",
|
|
36
36
|
"x-state-lib": "^0.1.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|