x-block-lib 0.6.6 → 0.6.8
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4001,7 +4001,7 @@ const oh = {
|
|
|
4001
4001
|
}, 0);
|
|
4002
4002
|
},
|
|
4003
4003
|
updateShape_: function() {
|
|
4004
|
-
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.extra ? this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(pe.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")) : this.getInput("EXTRA") && this.removeInput("EXTRA"), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(pe.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", this.extra ? "EXTRA" : "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["
|
|
4004
|
+
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.extra ? this.getInput("EXTRA") || (this.appendValueInput("EXTRA").setCheck(["QueryExtra", "Array"]).setAlign(pe.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")) : this.getInput("EXTRA") && this.removeInput("EXTRA"), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(pe.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", this.extra ? "EXTRA" : "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(pe.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
4005
4005
|
},
|
|
4006
4006
|
rebuildBlocks_: function() {
|
|
4007
4007
|
this.isInsertionMarker() || We(this, [
|
|
@@ -4113,7 +4113,7 @@ const ah = {
|
|
|
4113
4113
|
["select_column_item_v1"],
|
|
4114
4114
|
this
|
|
4115
4115
|
)
|
|
4116
|
-
), this.setOutput(!0, "
|
|
4116
|
+
), this.setOutput(!0, "SelectColumn"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_DATA_V1_SELECT_COLUMN_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_SELECT_COLUMN_HELPURL}"), this.initData_();
|
|
4117
4117
|
},
|
|
4118
4118
|
initData_: function() {
|
|
4119
4119
|
var i, s;
|
|
@@ -4288,7 +4288,7 @@ r.forBlock.select_column_v1 = function(e) {
|
|
|
4288
4288
|
const t = r.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
4289
4289
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
4290
4290
|
const _ = n.getFieldValue("COLUMN" + c), h = n.getFieldValue("ALIAS" + c);
|
|
4291
|
-
s.push(
|
|
4291
|
+
s.push({ name: _, alias: h });
|
|
4292
4292
|
}
|
|
4293
4293
|
const a = JSON.stringify(s);
|
|
4294
4294
|
return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, p.ATOMIC];
|