x-block-lib 0.8.20 → 0.8.22
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.
|
@@ -95,7 +95,8 @@ declare const _default: {
|
|
|
95
95
|
WARN_OUTPUT_HAS_CHANGED: string;
|
|
96
96
|
WARN_OUTPUT_NOT_FOUND: string;
|
|
97
97
|
WARN_PAGE_NOT_FOUND: string;
|
|
98
|
-
|
|
98
|
+
WARN_PROPERTY_HAS_CHANGED: string;
|
|
99
|
+
WARN_PROPERTY_NOT_FOUND: string;
|
|
99
100
|
WARN_SPACE_NOT_FOUND: string;
|
|
100
101
|
WARN_TABLE_HAS_CHANGED: string;
|
|
101
102
|
WARN_TABLE_NOT_FOUND: string;
|
|
@@ -95,7 +95,8 @@ declare const _default: {
|
|
|
95
95
|
WARN_OUTPUT_HAS_CHANGED: string;
|
|
96
96
|
WARN_OUTPUT_NOT_FOUND: string;
|
|
97
97
|
WARN_PAGE_NOT_FOUND: string;
|
|
98
|
-
|
|
98
|
+
WARN_PROPERTY_HAS_CHANGED: string;
|
|
99
|
+
WARN_PROPERTY_NOT_FOUND: string;
|
|
99
100
|
WARN_SPACE_NOT_FOUND: string;
|
|
100
101
|
WARN_TABLE_HAS_CHANGED: string;
|
|
101
102
|
WARN_TABLE_NOT_FOUND: string;
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
License: see project LICENSE
|
|
8
8
|
Touched: 2021
|
|
9
9
|
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-6cb62cd6]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
10
|
-
import { E as I, r as hn, M as Bn, s as Io, a as Oo, X as bn, u as C, B as T, j as s, O as r, F as O, b as xe, i as
|
|
10
|
+
import { E as I, r as hn, M as Bn, s as Io, a as Oo, X as bn, u as C, B as T, j as s, O as r, F as O, b as xe, i as v, c as _t, d as yo, e as M, f as m, g as vo, h as K, k as rt, p as Pt, l as z, m as fn, n as B, C as Pn, N as Z, o as Co, P as Ye, q as Le, V as Ot, t as Rn, W as ko, v as No, w as So, S as Lo, x as Bo, y as bo, z as Yt, T as pe, A as Dn, D as Po, G as Ro, H as Mn, I as Do, J as Mo, K as Uo, L as Vo, Q as xo, R as Yo, U as Fo, Y as wo } from "./vendor.txua272r.js";
|
|
11
11
|
import { globalState as E } from "x-state-lib";
|
|
12
12
|
import { globalObjects as Et, openConfirmDlg as Ko, openPromptDlg as Ho, messageWarning as Un, useColor as Ft, useSystem as Vn, useViewStack as qe, eventBus as At } from "x-essential-lib";
|
|
13
13
|
import { pkgs as Jt, parsePixelStr as $o, parsePercentStr as Go, getPropertyTag as St, unwrapEventId as Qe, elements as J, makeEventId as It, toEventName as de, unwrapMethodId as ze, makeMethodId as Fe, toMethodName as Ze, unwrapPropertyId as tn, makePropertyId as Be, toPropertyName as xn, isLocaleOfMethodKind as Yn, makeTriggerId as mt } from "x-runtime-lib";
|
|
14
|
-
import { provide as Wo, inject as jo, defineComponent as nt, resolveComponent as D, createBlock as tt, openBlock as L, unref as R, withCtx as et, createVNode as S, mergeProps as en, useModel as Mt, ref as
|
|
14
|
+
import { provide as Wo, inject as jo, defineComponent as nt, resolveComponent as D, createBlock as tt, openBlock as L, unref as R, withCtx as et, createVNode as S, mergeProps as en, useModel as Mt, ref as yt, computed as F, resolveDirective as Xo, withDirectives as Jo, createElementBlock as X, normalizeStyle as G, createElementVNode as w, createCommentVNode as ot, toDisplayString as Ut, withModifiers as Rt, mergeModels as we, Fragment as Fn, renderList as qo, useId as Ke, onUnmounted as Qo, useTemplateRef as Dt, withKeys as wn, isRef as jt, onMounted as mn, nextTick as zo, onBeforeUnmount as Tn, watch as Bt, renderSlot as Zo } from "vue";
|
|
15
15
|
import { useI18n as wt } from "vue-i18n";
|
|
16
16
|
import { useDisplay as ti } from "vuetify";
|
|
17
17
|
var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
|
|
@@ -30,13 +30,13 @@ const Hn = (t, e, n) => {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
async function En(t) {
|
|
33
|
-
const e = await Hn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.
|
|
33
|
+
const e = await Hn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.o20cskr5.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.cp7hd0rr.js") }), `./msg/${t}.ts`, 3);
|
|
34
34
|
Io(e.default);
|
|
35
35
|
}
|
|
36
36
|
function d(t) {
|
|
37
37
|
return Bn[t] ?? t;
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const vt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", qt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
|
|
40
40
|
function he(t) {
|
|
41
41
|
const e = t.lastIndexOf("V");
|
|
42
42
|
if (e <= 0 || e >= t.length - 1)
|
|
@@ -392,7 +392,7 @@ const gi = {
|
|
|
392
392
|
["app_bind_item_v1"],
|
|
393
393
|
this
|
|
394
394
|
)
|
|
395
|
-
), this.debounce_ =
|
|
395
|
+
), this.debounce_ = yo(() => {
|
|
396
396
|
this.checkWarning_();
|
|
397
397
|
}, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}"), this.updateShape_();
|
|
398
398
|
},
|
|
@@ -473,7 +473,7 @@ const gi = {
|
|
|
473
473
|
"Boolean",
|
|
474
474
|
"Array",
|
|
475
475
|
"Object"
|
|
476
|
-
]), t === 0 && this.getInput("ADD" + t).setAlign(
|
|
476
|
+
]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_APP_V1_APP_BIND_TITLE}"));
|
|
477
477
|
for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
|
|
478
478
|
this.removeInput("ADD" + t);
|
|
479
479
|
},
|
|
@@ -732,7 +732,7 @@ function Re(t) {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function yi(t) {
|
|
736
736
|
const e = [], n = Ge(t);
|
|
737
737
|
for (const { id: o, kind: i, names: a } of n)
|
|
738
738
|
e.push([de(i, a), o]);
|
|
@@ -750,7 +750,7 @@ function Jn() {
|
|
|
750
750
|
});
|
|
751
751
|
return n;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function yn(t) {
|
|
754
754
|
const { activeObject: e, activeComp: n } = E.app, { kind: o, nodeId: i, eventKey: a } = Qe(t);
|
|
755
755
|
if (o === "customEvent" && i === "globality" && e.type === "comp") {
|
|
756
756
|
const c = n.meta.events.find(
|
|
@@ -765,7 +765,7 @@ function vn(t) {
|
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function vi() {
|
|
769
769
|
const t = [], e = Jn();
|
|
770
770
|
for (const { id: n, kind: o, names: i } of e)
|
|
771
771
|
t.push([de(o, i), n]);
|
|
@@ -1171,7 +1171,7 @@ const Ni = {
|
|
|
1171
1171
|
return Ee("onEvent");
|
|
1172
1172
|
},
|
|
1173
1173
|
genEventOpts_: function() {
|
|
1174
|
-
return
|
|
1174
|
+
return yi(this.node.id);
|
|
1175
1175
|
},
|
|
1176
1176
|
onchange: function(t) {
|
|
1177
1177
|
if (t.type === b.STATE_CHANGE)
|
|
@@ -1301,7 +1301,7 @@ const Si = {
|
|
|
1301
1301
|
}, 0);
|
|
1302
1302
|
},
|
|
1303
1303
|
genEventOpts_: function() {
|
|
1304
|
-
return
|
|
1304
|
+
return vi();
|
|
1305
1305
|
},
|
|
1306
1306
|
onchange: function(t) {
|
|
1307
1307
|
if (t.type === b.STATE_CHANGE)
|
|
@@ -1314,7 +1314,7 @@ const Si = {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
},
|
|
1316
1316
|
onEventChange_: function(t) {
|
|
1317
|
-
const e =
|
|
1317
|
+
const e = yn(t);
|
|
1318
1318
|
e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "elementEvent", this.event.names = [], this.event.params = []);
|
|
1319
1319
|
},
|
|
1320
1320
|
updateShape_: function() {
|
|
@@ -1341,7 +1341,7 @@ const Si = {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
},
|
|
1343
1343
|
checkWarning_: function() {
|
|
1344
|
-
const t =
|
|
1344
|
+
const t = yn(this.event.id);
|
|
1345
1345
|
if (!t) {
|
|
1346
1346
|
this.setWarningText(d("WARN_EVENT_NOT_FOUND"));
|
|
1347
1347
|
return;
|
|
@@ -1382,7 +1382,7 @@ m([
|
|
|
1382
1382
|
}
|
|
1383
1383
|
]);
|
|
1384
1384
|
s.forBlock.watch_effect_v1 = function(t) {
|
|
1385
|
-
const e =
|
|
1385
|
+
const e = vo(t.id), n = s.statementToCode(t, "HANDLE");
|
|
1386
1386
|
return `function __watchEffect$${e}__() {
|
|
1387
1387
|
${n}};
|
|
1388
1388
|
`;
|
|
@@ -1421,7 +1421,7 @@ const Li = {
|
|
|
1421
1421
|
}, 0);
|
|
1422
1422
|
},
|
|
1423
1423
|
updateShape_: function() {
|
|
1424
|
-
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(
|
|
1424
|
+
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("TEXT") || (this.appendValueInput("TEXT").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TEXT}"), this.moveInputBefore("TEXT", "RESULT")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "TEXT"));
|
|
1425
1425
|
},
|
|
1426
1426
|
updateShadow_: function() {
|
|
1427
1427
|
if (this.isInsertionMarker())
|
|
@@ -1458,7 +1458,7 @@ const Bi = {
|
|
|
1458
1458
|
}, 0);
|
|
1459
1459
|
},
|
|
1460
1460
|
updateShape_: function() {
|
|
1461
|
-
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(
|
|
1461
|
+
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_APP_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT").appendField("%{BKY_APP_RETURN}"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("VALUE") || (this.appendValueInput("VALUE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_VALUE}"), this.moveInputBefore("VALUE", "RESULT")), this.getInput("LABEL") || (this.appendValueInput("LABEL").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_LABEL}"), this.moveInputBefore("LABEL", "VALUE")), this.getInput("TITLE") || (this.appendValueInput("TITLE").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_APP_TITLE}"), this.moveInputBefore("TITLE", "LABEL"));
|
|
1462
1462
|
},
|
|
1463
1463
|
updateShadow_: function() {
|
|
1464
1464
|
if (this.isInsertionMarker())
|
|
@@ -1613,7 +1613,7 @@ const bi = {
|
|
|
1613
1613
|
this.removeInput("INPUT" + t);
|
|
1614
1614
|
for (let t = 0; t < this.method.inputs.length; t++) {
|
|
1615
1615
|
const e = this.method.inputs[t];
|
|
1616
|
-
this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(
|
|
1616
|
+
this.getInput("INPUT" + t) || (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(Bn[e.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + t, "OUTPUT0"));
|
|
1617
1617
|
}
|
|
1618
1618
|
if (this.method.kind === "refMethod")
|
|
1619
1619
|
this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.method.inputs.length > 0 ? this.moveInputBefore("REF_KEY", "INPUT0") : this.method.outputs.length > 0 && this.moveInputBefore("REF_KEY", "OUTPUT0");
|
|
@@ -2190,11 +2190,11 @@ const Ui = {
|
|
|
2190
2190
|
t.alias !== this.node.alias && (this.node.alias = t.alias);
|
|
2191
2191
|
const e = Tt(this.property.id);
|
|
2192
2192
|
if (!e) {
|
|
2193
|
-
this.setWarningText(d("
|
|
2193
|
+
this.setWarningText(d("WARN_PROPERTY_NOT_FOUND"));
|
|
2194
2194
|
return;
|
|
2195
2195
|
}
|
|
2196
2196
|
if (e.kind !== this.property.kind) {
|
|
2197
|
-
this.setWarningText(d("
|
|
2197
|
+
this.setWarningText(d("WARN_PROPERTY_HAS_CHANGED"));
|
|
2198
2198
|
return;
|
|
2199
2199
|
}
|
|
2200
2200
|
M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
|
|
@@ -2243,7 +2243,7 @@ const Vi = {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
},
|
|
2245
2245
|
loadExtraState: function(t) {
|
|
2246
|
-
this.node.id = t.node?.id ?? "", this.node.key = t.node?.key ?? "", this.node.alias = t.node?.alias ?? "", this.property.id = t.
|
|
2246
|
+
this.node.id = t.node?.id ?? "", this.node.key = t.node?.key ?? "", this.node.alias = t.node?.alias ?? "", this.property.id = t.property?.id ?? "", this.property.kind = t.property?.kind ?? "elementProperty", this.property.names = t.property?.names ?? [], setTimeout(() => {
|
|
2247
2247
|
this.checkWarning_();
|
|
2248
2248
|
}, 0);
|
|
2249
2249
|
},
|
|
@@ -2311,11 +2311,11 @@ const Vi = {
|
|
|
2311
2311
|
t.alias !== this.node.alias && (this.node.alias = t.alias);
|
|
2312
2312
|
const e = Tt(this.property.id);
|
|
2313
2313
|
if (!e) {
|
|
2314
|
-
this.setWarningText(d("
|
|
2314
|
+
this.setWarningText(d("WARN_PROPERTY_NOT_FOUND"));
|
|
2315
2315
|
return;
|
|
2316
2316
|
}
|
|
2317
2317
|
if (e.kind !== this.property.kind) {
|
|
2318
|
-
this.setWarningText(d("
|
|
2318
|
+
this.setWarningText(d("WARN_PROPERTY_HAS_CHANGED"));
|
|
2319
2319
|
return;
|
|
2320
2320
|
}
|
|
2321
2321
|
M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
|
|
@@ -3324,7 +3324,7 @@ function to(t) {
|
|
|
3324
3324
|
function Xe() {
|
|
3325
3325
|
return E.compute.activeFunc;
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function vn(t) {
|
|
3328
3328
|
const { outputs: e } = E.compute.activeFunc;
|
|
3329
3329
|
return e.find((n) => n.id === t);
|
|
3330
3330
|
}
|
|
@@ -3447,7 +3447,7 @@ const Wi = {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
for (let t = 0; t < this.func.inputs.length; t++) {
|
|
3449
3449
|
const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
|
|
3450
|
-
n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(
|
|
3450
|
+
n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
|
|
3451
3451
|
}
|
|
3452
3452
|
},
|
|
3453
3453
|
updateCheck_: function() {
|
|
@@ -3621,7 +3621,7 @@ const ji = {
|
|
|
3621
3621
|
}
|
|
3622
3622
|
for (let t = 0; t < this.func.inputs.length; t++) {
|
|
3623
3623
|
const { name: e } = this.func.inputs[t], n = this.getInput("INPUT" + t);
|
|
3624
|
-
n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(
|
|
3624
|
+
n ? (this.setFieldValue(e, "NAME" + t), n.setCheck(null)) : (this.appendValueInput("INPUT" + t).setAlign(v.Align.RIGHT).appendField(e, "NAME" + t).setCheck(null), this.getInput("OUTPUT0") ? this.moveInputBefore("INPUT" + t, "OUTPUT0") : this.moveInputBefore("INPUT" + t, "CALLBACK"));
|
|
3625
3625
|
}
|
|
3626
3626
|
},
|
|
3627
3627
|
updateCheck_: function() {
|
|
@@ -3806,7 +3806,7 @@ const Ji = {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
},
|
|
3808
3808
|
onOutputChange_: function(t) {
|
|
3809
|
-
const e =
|
|
3809
|
+
const e = vn(t);
|
|
3810
3810
|
if (!e) {
|
|
3811
3811
|
console.assert(!1);
|
|
3812
3812
|
return;
|
|
@@ -3828,7 +3828,7 @@ const Ji = {
|
|
|
3828
3828
|
this.getInput("VALUE").setShadowDom(t);
|
|
3829
3829
|
},
|
|
3830
3830
|
checkWarning_: function() {
|
|
3831
|
-
const t =
|
|
3831
|
+
const t = vn(this.output.id);
|
|
3832
3832
|
if (!t) {
|
|
3833
3833
|
this.setWarningText(d("WARN_FUNC_HAS_CHANGED"));
|
|
3834
3834
|
return;
|
|
@@ -4035,7 +4035,7 @@ const Zi = {
|
|
|
4035
4035
|
}, 0);
|
|
4036
4036
|
},
|
|
4037
4037
|
updateShape_: function() {
|
|
4038
|
-
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(
|
|
4038
|
+
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(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
|
|
4039
4039
|
},
|
|
4040
4040
|
ensureBlocks_: function() {
|
|
4041
4041
|
this.isInsertionMarker() || (Qi(this), Y(this, [
|
|
@@ -4411,7 +4411,7 @@ const cs = {
|
|
|
4411
4411
|
}, 0);
|
|
4412
4412
|
},
|
|
4413
4413
|
updateShape_: function() {
|
|
4414
|
-
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(
|
|
4414
|
+
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(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("SelectTable").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
4415
4415
|
},
|
|
4416
4416
|
ensureBlocks_: function() {
|
|
4417
4417
|
this.isInsertionMarker() || (is(this), ss(this), Y(this, [
|
|
@@ -4589,7 +4589,7 @@ const ps = {
|
|
|
4589
4589
|
}, 0);
|
|
4590
4590
|
},
|
|
4591
4591
|
updateShape_: function() {
|
|
4592
|
-
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(
|
|
4592
|
+
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(v.Align.RIGHT).appendField("%{BKY_DATA_EXTRA}"), this.moveInputBefore("EXTRA", "SUCCESS")), this.getInput("CONDITION") || (this.appendValueInput("CONDITION").setCheck("Condition").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "EXTRA")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck(["SelectColumn", "Array"]).setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
4593
4593
|
},
|
|
4594
4594
|
ensureBlocks_: function() {
|
|
4595
4595
|
this.isInsertionMarker() || (rs(this), us(this), ls(this), Y(this, [
|
|
@@ -4858,7 +4858,7 @@ const fs = {
|
|
|
4858
4858
|
const e = this.table.columns[t], n = new O(
|
|
4859
4859
|
() => this.genColumnOpts_()
|
|
4860
4860
|
), o = new rt("");
|
|
4861
|
-
this.appendDummyInput("ADD" + t).setAlign(
|
|
4861
|
+
this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
|
|
4862
4862
|
}
|
|
4863
4863
|
},
|
|
4864
4864
|
updateShape_: function() {
|
|
@@ -4870,7 +4870,7 @@ const fs = {
|
|
|
4870
4870
|
const e = new O(
|
|
4871
4871
|
() => this.genColumnOpts_()
|
|
4872
4872
|
), n = new rt("");
|
|
4873
|
-
this.appendDummyInput("ADD" + t).setAlign(
|
|
4873
|
+
this.appendDummyInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
|
|
4874
4874
|
const o = this.table.columns[0];
|
|
4875
4875
|
e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
|
|
4876
4876
|
}
|
|
@@ -5264,7 +5264,7 @@ const As = {
|
|
|
5264
5264
|
const e = this.table.columns[t], n = new O(
|
|
5265
5265
|
() => this.genColumnOpts_()
|
|
5266
5266
|
);
|
|
5267
|
-
this.appendValueInput("ADD" + t).setAlign(
|
|
5267
|
+
this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
|
|
5268
5268
|
}
|
|
5269
5269
|
},
|
|
5270
5270
|
updateShape_: function() {
|
|
@@ -5278,7 +5278,7 @@ const As = {
|
|
|
5278
5278
|
const e = new O(
|
|
5279
5279
|
() => this.genColumnOpts_()
|
|
5280
5280
|
);
|
|
5281
|
-
this.appendValueInput("ADD" + t).setAlign(
|
|
5281
|
+
this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(e, "COLUMN" + t);
|
|
5282
5282
|
}
|
|
5283
5283
|
},
|
|
5284
5284
|
updateBlocks_: function(t) {
|
|
@@ -5380,7 +5380,7 @@ function Os(t) {
|
|
|
5380
5380
|
}, o = K.blocks.append(n, t.workspace);
|
|
5381
5381
|
e.connect(o.outputConnection);
|
|
5382
5382
|
}
|
|
5383
|
-
function
|
|
5383
|
+
function ys(t) {
|
|
5384
5384
|
const e = t.getInput("HANDLE").connection;
|
|
5385
5385
|
if (e.targetBlock())
|
|
5386
5386
|
return;
|
|
@@ -5404,7 +5404,7 @@ function vs(t) {
|
|
|
5404
5404
|
}, o = K.blocks.append(n, t.workspace);
|
|
5405
5405
|
e.connect(o.previousConnection);
|
|
5406
5406
|
}
|
|
5407
|
-
const
|
|
5407
|
+
const vs = {
|
|
5408
5408
|
init: function() {
|
|
5409
5409
|
this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_UPDATE_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_UPDATE_DATA_HELPURL}");
|
|
5410
5410
|
},
|
|
@@ -5417,17 +5417,17 @@ const ys = {
|
|
|
5417
5417
|
}, 0);
|
|
5418
5418
|
},
|
|
5419
5419
|
updateShape_: function() {
|
|
5420
|
-
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(
|
|
5420
|
+
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(v.Align.RIGHT).appendField("%{BKY_DATA_CONDITION}"), this.moveInputBefore("CONDITION", "SUCCESS")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(v.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "CONDITION"));
|
|
5421
5421
|
},
|
|
5422
5422
|
ensureBlocks: function() {
|
|
5423
5423
|
this.isInsertionMarker() || (Is(this), Os(this), Y(this, [
|
|
5424
5424
|
["SUCCESS", "__success__", "x-runtime-lib.success", !0],
|
|
5425
5425
|
["MESSAGE", "__message__", "x-runtime-lib.message", !0],
|
|
5426
5426
|
["DATA", "__data__", "x-runtime-lib.data", !0]
|
|
5427
|
-
]),
|
|
5427
|
+
]), ys(this));
|
|
5428
5428
|
}
|
|
5429
5429
|
};
|
|
5430
|
-
T.update_data_v1 =
|
|
5430
|
+
T.update_data_v1 = vs;
|
|
5431
5431
|
s.forBlock.update_data_v1 = function(t) {
|
|
5432
5432
|
const e = s.INDENT, n = s.valueToCode(t, "TABLE", r.ATOMIC) || "null", o = s.valueToCode(t, "CONDITION", r.ATOMIC) || "null", i = s.statementToCode(t, "HANDLE");
|
|
5433
5433
|
return `{
|
|
@@ -5446,8 +5446,8 @@ ${i}}
|
|
|
5446
5446
|
};
|
|
5447
5447
|
const Cs = C.xml, ks = {
|
|
5448
5448
|
init: function() {
|
|
5449
|
-
this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(
|
|
5450
|
-
new z(
|
|
5449
|
+
this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
|
|
5450
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5451
5451
|
this.isInFlyout || this.addEntry_();
|
|
5452
5452
|
})
|
|
5453
5453
|
), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
|
|
@@ -5466,7 +5466,7 @@ const Cs = C.xml, ks = {
|
|
|
5466
5466
|
for (let t = 0; t < this.length; t++) {
|
|
5467
5467
|
const e = "ENTRY" + t, n = this.appendValueInput(e);
|
|
5468
5468
|
n.appendField(
|
|
5469
|
-
new z(
|
|
5469
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5470
5470
|
this.isInFlyout || this.addEntry_(n);
|
|
5471
5471
|
})
|
|
5472
5472
|
), n.appendField(new fn(String(t))), n.appendField(
|
|
@@ -5485,7 +5485,7 @@ const Cs = C.xml, ks = {
|
|
|
5485
5485
|
}
|
|
5486
5486
|
const n = this.appendValueInput("ENTRY" + e);
|
|
5487
5487
|
n.appendField(
|
|
5488
|
-
new z(
|
|
5488
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5489
5489
|
this.isInFlyout || this.addEntry_(n);
|
|
5490
5490
|
})
|
|
5491
5491
|
), n.appendField(new fn(String(e))), n.appendField(
|
|
@@ -5520,8 +5520,8 @@ const Ns = {
|
|
|
5520
5520
|
T.json_boolean_v1 = Ns;
|
|
5521
5521
|
const Cn = C.xml, Ss = {
|
|
5522
5522
|
init: function() {
|
|
5523
|
-
this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(
|
|
5524
|
-
new z(
|
|
5523
|
+
this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
|
|
5524
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5525
5525
|
this.isInFlyout || this.addEntry_();
|
|
5526
5526
|
})
|
|
5527
5527
|
), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
|
|
@@ -5549,7 +5549,7 @@ const Cn = C.xml, Ss = {
|
|
|
5549
5549
|
for (let e = 0; e < t.length; e++) {
|
|
5550
5550
|
const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
|
|
5551
5551
|
i.appendField(
|
|
5552
|
-
new z(
|
|
5552
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5553
5553
|
this.isInFlyout || this.addEntry_(i);
|
|
5554
5554
|
})
|
|
5555
5555
|
), i.appendField(new rt(n), "KEY" + e), i.appendField(
|
|
@@ -5566,7 +5566,7 @@ const Cn = C.xml, Ss = {
|
|
|
5566
5566
|
this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
|
|
5567
5567
|
const n = this.appendValueInput("ENTRY" + e);
|
|
5568
5568
|
n.appendField(
|
|
5569
|
-
new z(
|
|
5569
|
+
new z(vt, 20, 20, void 0, () => {
|
|
5570
5570
|
this.isInFlyout || this.addEntry_(n);
|
|
5571
5571
|
})
|
|
5572
5572
|
), n.appendField(new rt("key"), "KEY" + e), n.appendField(
|
|
@@ -5593,7 +5593,7 @@ const Ls = {
|
|
|
5593
5593
|
T.json_number_v1 = Ls;
|
|
5594
5594
|
const Bs = {
|
|
5595
5595
|
init: function() {
|
|
5596
|
-
this.appendDummyInput().setAlign(
|
|
5596
|
+
this.appendDummyInput().setAlign(v.Align.CENTRE).appendField("JSON"), this.appendValueInput("JSON").setCheck(["JsonMap", "JsonArray"]), this.setDeletable(!1), this.setColour(250), this.setTooltip(""), this.setHelpUrl("");
|
|
5597
5597
|
}
|
|
5598
5598
|
};
|
|
5599
5599
|
T.json_root_v1 = Bs;
|
|
@@ -5692,7 +5692,7 @@ const Ms = {
|
|
|
5692
5692
|
"Boolean",
|
|
5693
5693
|
"Array",
|
|
5694
5694
|
"Object"
|
|
5695
|
-
]), t === 0 && this.getInput("ADD" + t).setAlign(
|
|
5695
|
+
]), t === 0 && this.getInput("ADD" + t).setAlign(v.Align.RIGHT).appendField("%{BKY_LIST_V1_CREATE_TITLE}"));
|
|
5696
5696
|
for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
|
|
5697
5697
|
this.removeInput("ADD" + t);
|
|
5698
5698
|
}
|
|
@@ -7430,7 +7430,7 @@ const js = {
|
|
|
7430
7430
|
},
|
|
7431
7431
|
updateShape_: function() {
|
|
7432
7432
|
for (let t = 0; t < this.itemCount_; t++)
|
|
7433
|
-
this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(
|
|
7433
|
+
this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(v.Align.RIGHT).appendField(new rt("key"), "KEY" + t);
|
|
7434
7434
|
for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
|
|
7435
7435
|
this.removeInput("ADD" + t);
|
|
7436
7436
|
}
|
|
@@ -7887,7 +7887,7 @@ const Zs = {
|
|
|
7887
7887
|
}, 0);
|
|
7888
7888
|
},
|
|
7889
7889
|
updateShape_: function() {
|
|
7890
|
-
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(
|
|
7890
|
+
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(v.Align.RIGHT).appendField("%{BKY_ASSET_ASSET}"), this.moveInputBefore("ASSET", "SUCCESS"));
|
|
7891
7891
|
},
|
|
7892
7892
|
ensureBlocks_: function() {
|
|
7893
7893
|
this.isInsertionMarker() || Y(this, [
|
|
@@ -8038,7 +8038,7 @@ const ia = {
|
|
|
8038
8038
|
}, 0);
|
|
8039
8039
|
},
|
|
8040
8040
|
updateShape_: function() {
|
|
8041
|
-
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(
|
|
8041
|
+
this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_RESOURCE_DO}"), this.getInput("RESULT") || (this.appendValueInput("RESULT"), this.moveInputBefore("RESULT", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "RESULT")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_RESOURCE_RESULT}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("DATA") || (this.appendValueInput("DATA").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DATA}"), this.moveInputBefore("DATA", "SUCCESS")), this.getInput("DIR") || (this.appendValueInput("DIR").setCheck("SelectDir").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_DIR}"), this.moveInputBefore("DIR", "DATA")), this.getInput("NAME") || (this.appendValueInput("NAME").setCheck("String").setAlign(v.Align.RIGHT).appendField("%{BKY_RESOURCE_NAME}"), this.moveInputBefore("NAME", "DIR"));
|
|
8042
8042
|
},
|
|
8043
8043
|
updateShadow_: function() {
|
|
8044
8044
|
if (this.isInsertionMarker())
|
|
@@ -8360,7 +8360,7 @@ const aa = C.xml, ca = {
|
|
|
8360
8360
|
for (let t = 0; t < this.itemCount_; t++)
|
|
8361
8361
|
if (!this.getInput("ADD" + t)) {
|
|
8362
8362
|
const e = this.appendValueInput("ADD" + t).setAlign(
|
|
8363
|
-
|
|
8363
|
+
v.Align.RIGHT
|
|
8364
8364
|
);
|
|
8365
8365
|
t === 0 && e.appendField("%{BKY_TEXT_V1_JOIN_TITLE}");
|
|
8366
8366
|
}
|
|
@@ -8616,7 +8616,7 @@ const ua = {
|
|
|
8616
8616
|
this.updateShape_(), this.updateShadow_();
|
|
8617
8617
|
},
|
|
8618
8618
|
updateShape_: function() {
|
|
8619
|
-
this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(
|
|
8619
|
+
this.getInput("CALLBACK") || this.appendStatementInput("CALLBACK").appendField("%{BKY_TIME_DO}"), this.getInput("IMMEDIATE") || (this.appendValueInput("IMMEDIATE").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_IMMEDIATE}"), this.moveInputBefore("IMMEDIATE", "CALLBACK")), this.getInput("COUNT") || (this.appendValueInput("COUNT").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_COUNT}"), this.moveInputBefore("COUNT", "IMMEDIATE")), this.getInput("LOOP") || (this.appendValueInput("LOOP").setCheck("Boolean").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_LOOP}"), this.moveInputBefore("LOOP", "COUNT")), this.getInput("INTERVAL") || (this.appendValueInput("INTERVAL").setCheck("Number").setAlign(v.Align.RIGHT).appendField("%{BKY_TIME_INTERVAL_MS}"), this.moveInputBefore("INTERVAL", "LOOP"));
|
|
8620
8620
|
},
|
|
8621
8621
|
updateShadow_: function() {
|
|
8622
8622
|
if (this.isInsertionMarker())
|
|
@@ -9109,11 +9109,11 @@ function Oa(t) {
|
|
|
9109
9109
|
);
|
|
9110
9110
|
} else n.type === "get_app_state_v1" ? it(
|
|
9111
9111
|
e,
|
|
9112
|
-
mt({ type: "
|
|
9112
|
+
mt({ type: "state", stateId: n.state.id })
|
|
9113
9113
|
) : console.assert(!1);
|
|
9114
9114
|
return e;
|
|
9115
9115
|
}
|
|
9116
|
-
function
|
|
9116
|
+
function ya(t) {
|
|
9117
9117
|
const e = [];
|
|
9118
9118
|
for (const n of t.getChildren(!0))
|
|
9119
9119
|
if (Je.includes(n.type))
|
|
@@ -9124,7 +9124,7 @@ function va(t) {
|
|
|
9124
9124
|
}
|
|
9125
9125
|
return e;
|
|
9126
9126
|
}
|
|
9127
|
-
function
|
|
9127
|
+
function va(t) {
|
|
9128
9128
|
const e = [], n = [];
|
|
9129
9129
|
for (const o of t)
|
|
9130
9130
|
if (o.type === "get_app_property_v1") {
|
|
@@ -9144,7 +9144,7 @@ function ya(t) {
|
|
|
9144
9144
|
continue;
|
|
9145
9145
|
e.push(a);
|
|
9146
9146
|
} else if (o.type === "get_app_state_v1") {
|
|
9147
|
-
const a = { type: "
|
|
9147
|
+
const a = { type: "state", stateId: o.state.id };
|
|
9148
9148
|
if (!it(n, mt(a)))
|
|
9149
9149
|
continue;
|
|
9150
9150
|
e.push(a);
|
|
@@ -9175,7 +9175,7 @@ function ya(t) {
|
|
|
9175
9175
|
e.push(u);
|
|
9176
9176
|
} else if (i.type === "get_app_state_v1") {
|
|
9177
9177
|
const u = {
|
|
9178
|
-
type: "
|
|
9178
|
+
type: "state",
|
|
9179
9179
|
stateId: i.state.id,
|
|
9180
9180
|
subKeys: a
|
|
9181
9181
|
};
|
|
@@ -9204,7 +9204,7 @@ function Ca(t) {
|
|
|
9204
9204
|
for (const c of a)
|
|
9205
9205
|
e.watchEffect[c] || (e.watchEffect[c] = []), it(e.watchEffect[c], o.id);
|
|
9206
9206
|
} else if (o.type === "app_bind_v1") {
|
|
9207
|
-
const i =
|
|
9207
|
+
const i = ya(o), a = va(i);
|
|
9208
9208
|
e.bind.sets[o.id] = a;
|
|
9209
9209
|
for (const c of a) {
|
|
9210
9210
|
const u = mt(c);
|
|
@@ -9296,7 +9296,7 @@ const Na = /* @__PURE__ */ nt({
|
|
|
9296
9296
|
},
|
|
9297
9297
|
emits: ["x-click"],
|
|
9298
9298
|
setup(t, { emit: e }) {
|
|
9299
|
-
const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Ft(), a = t, c = e, u =
|
|
9299
|
+
const { primaryColor: n, backgroundColor2: o, highlightColor: i } = Ft(), a = t, c = e, u = yt(!1), l = F(() => ({
|
|
9300
9300
|
position: "relative",
|
|
9301
9301
|
background: u.value ? i.value : o.value,
|
|
9302
9302
|
width: "100%",
|
|
@@ -9354,7 +9354,7 @@ const Na = /* @__PURE__ */ nt({
|
|
|
9354
9354
|
}),
|
|
9355
9355
|
emits: ["update:modelValue"],
|
|
9356
9356
|
setup(t, { expose: e }) {
|
|
9357
|
-
const { t: n } = wt(), o = Mt(t, "modelValue"), i = cn(), a =
|
|
9357
|
+
const { t: n } = wt(), o = Mt(t, "modelValue"), i = cn(), a = yt([]);
|
|
9358
9358
|
e({ update: () => {
|
|
9359
9359
|
if (!i.workspace) {
|
|
9360
9360
|
console.assert(!1);
|
|
@@ -9600,7 +9600,7 @@ function V(t) {
|
|
|
9600
9600
|
const e = x.createElement("label");
|
|
9601
9601
|
return e.setAttribute("text", t), e;
|
|
9602
9602
|
}
|
|
9603
|
-
function
|
|
9603
|
+
function y(t, e) {
|
|
9604
9604
|
const n = x.createElement("block");
|
|
9605
9605
|
if (n.setAttribute("type", t), e)
|
|
9606
9606
|
for (const o of e)
|
|
@@ -9657,9 +9657,9 @@ function Ln() {
|
|
|
9657
9657
|
}
|
|
9658
9658
|
function Ha() {
|
|
9659
9659
|
const t = [];
|
|
9660
|
-
return t.push(V(d("LABEL_EVENT"))), W("onEvent") && t.push(
|
|
9661
|
-
|
|
9662
|
-
), t.push(
|
|
9660
|
+
return t.push(V(d("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), wa() && t.push(y("trigger_app_event_v1")), t.push(
|
|
9661
|
+
y("app_bind_v1", [ro([{ key: "items", value: "2" }])])
|
|
9662
|
+
), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(d("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), Ka() && (t.push(V(d("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (W("callMethod") || Ln()) && t.push(V(d("LABEL_METHOD"))), W("callMethod") && t.push(y("call_app_method_v1")), Ln() && (t.push(y("impl_app_method_v1")), t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
|
|
9663
9663
|
}
|
|
9664
9664
|
const uo = { name: "APP_COMP_CATEGORY", callback: Ha };
|
|
9665
9665
|
function $a() {
|
|
@@ -9669,7 +9669,7 @@ function $a() {
|
|
|
9669
9669
|
const ie = { name: "APP_COMPUTE_CATEGORY", callback: $a };
|
|
9670
9670
|
function Ga() {
|
|
9671
9671
|
const t = [];
|
|
9672
|
-
return t.push(
|
|
9672
|
+
return t.push(y("app_debug_trace_v1", [kt("OBJECT")])), t.push(y("popup_message_v1", [kt("TEXT")])), t.push(y("open_confirm_dlg_v1")), t.push(y("open_prompt_dlg_v1")), t;
|
|
9673
9673
|
}
|
|
9674
9674
|
const se = { name: "APP_MESSAGE_CATEGORY", callback: Ga };
|
|
9675
9675
|
function Wa() {
|
|
@@ -9680,7 +9680,7 @@ function Wa() {
|
|
|
9680
9680
|
}
|
|
9681
9681
|
function ja() {
|
|
9682
9682
|
const t = [];
|
|
9683
|
-
return t.push(
|
|
9683
|
+
return t.push(y("app_env_is_v1")), Wa() && t.push(y("navigate_to_v1")), t;
|
|
9684
9684
|
}
|
|
9685
9685
|
const ae = { name: "APP_MISC_CATEGORY", callback: ja };
|
|
9686
9686
|
function Xa() {
|
|
@@ -9691,14 +9691,14 @@ function Ja() {
|
|
|
9691
9691
|
}
|
|
9692
9692
|
function qa() {
|
|
9693
9693
|
const t = [];
|
|
9694
|
-
return t.push(V(d("LABEL_EVENT"))), W("onEvent") && t.push(
|
|
9695
|
-
|
|
9696
|
-
), t.push(
|
|
9694
|
+
return t.push(V(d("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), t.push(
|
|
9695
|
+
y("app_bind_v1", [ro([{ key: "items", value: "2" }])])
|
|
9696
|
+
), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(d("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), Xa() && (t.push(V(d("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), W("callMethod") && (t.push(V(d("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), Ja() && (t.push(V(d("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
|
|
9697
9697
|
}
|
|
9698
9698
|
const lo = { name: "APP_PAGE_CATEGORY", callback: qa };
|
|
9699
9699
|
function Qa() {
|
|
9700
9700
|
const t = [];
|
|
9701
|
-
return t.push(V(d("LABEL_RESOURCE"))), t.push(
|
|
9701
|
+
return t.push(V(d("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
|
|
9702
9702
|
}
|
|
9703
9703
|
const ce = { name: "APP_RESOURCE_CATEGORY", callback: Qa }, bt = C.xml;
|
|
9704
9704
|
function za() {
|
|
@@ -9771,15 +9771,15 @@ const at = {
|
|
|
9771
9771
|
function tc() {
|
|
9772
9772
|
const t = [];
|
|
9773
9773
|
if (q().length > 0)
|
|
9774
|
-
t.push(V(d("LABEL_OPERATION"))), t.push(
|
|
9775
|
-
|
|
9776
|
-
), t.push(V(d("LABEL_CONDITION"))), t.push(
|
|
9777
|
-
|
|
9774
|
+
t.push(V(d("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
|
|
9775
|
+
y("interrupt_transaction_v1", [kt("VALUE")])
|
|
9776
|
+
), t.push(V(d("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [kt("VALUE")])), t.push(V(d("LABEL_QUERY_EXTRA"))), t.push(
|
|
9777
|
+
y("query_extra_limit_v1", [
|
|
9778
9778
|
Sn("OFFSET", 0),
|
|
9779
9779
|
Sn("LIMIT", 1)
|
|
9780
9780
|
])
|
|
9781
9781
|
), t.push(
|
|
9782
|
-
|
|
9782
|
+
y("query_extra_sortby_v1", [
|
|
9783
9783
|
kt("COLUMN"),
|
|
9784
9784
|
Fa("DESC")
|
|
9785
9785
|
])
|
|
@@ -9796,7 +9796,7 @@ function ec() {
|
|
|
9796
9796
|
}
|
|
9797
9797
|
function nc() {
|
|
9798
9798
|
const t = [];
|
|
9799
|
-
return E.compute.activeObject.type === "flow" && t.push(
|
|
9799
|
+
return E.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), ec() && console.assert(!0), t;
|
|
9800
9800
|
}
|
|
9801
9801
|
const ue = { name: "COMPUTE_FLOW_CATEGORY", callback: nc };
|
|
9802
9802
|
function oc() {
|
|
@@ -9804,13 +9804,13 @@ function oc() {
|
|
|
9804
9804
|
}
|
|
9805
9805
|
function ic() {
|
|
9806
9806
|
const t = [];
|
|
9807
|
-
return E.compute.activeObject.type === "func" && (t.push(
|
|
9807
|
+
return E.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), E.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), oc() && t.push(y("call_func_internal_v1")), t;
|
|
9808
9808
|
}
|
|
9809
9809
|
const le = { name: "COMPUTE_FUNC_CATEGORY", callback: ic };
|
|
9810
9810
|
function sc() {
|
|
9811
9811
|
const t = [];
|
|
9812
9812
|
return t.push(
|
|
9813
|
-
|
|
9813
|
+
y("compute_debug_trace_v1", [kt("OBJECT")])
|
|
9814
9814
|
), t;
|
|
9815
9815
|
}
|
|
9816
9816
|
const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
@@ -10002,7 +10002,7 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10002
10002
|
type: "list_reverse_v1"
|
|
10003
10003
|
}
|
|
10004
10004
|
]
|
|
10005
|
-
},
|
|
10005
|
+
}, ye = {
|
|
10006
10006
|
kind: "category",
|
|
10007
10007
|
name: "%{BKY_CATEGORY_LOGIC}",
|
|
10008
10008
|
categorystyle: "logic_category",
|
|
@@ -10044,7 +10044,7 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10044
10044
|
type: "logic_ternary_v1"
|
|
10045
10045
|
}
|
|
10046
10046
|
]
|
|
10047
|
-
},
|
|
10047
|
+
}, ve = {
|
|
10048
10048
|
kind: "category",
|
|
10049
10049
|
name: "%{BKY_CATEGORY_LOOP}",
|
|
10050
10050
|
categorystyle: "loop_category",
|
|
@@ -10537,8 +10537,8 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10537
10537
|
categorystyle: "misc_category",
|
|
10538
10538
|
custom: ae.name
|
|
10539
10539
|
},
|
|
10540
|
-
ye,
|
|
10541
10540
|
ve,
|
|
10541
|
+
ye,
|
|
10542
10542
|
Ce,
|
|
10543
10543
|
Ne,
|
|
10544
10544
|
Oe,
|
|
@@ -10597,8 +10597,8 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10597
10597
|
categorystyle: "misc_category",
|
|
10598
10598
|
custom: _e.name
|
|
10599
10599
|
},
|
|
10600
|
-
ye,
|
|
10601
10600
|
ve,
|
|
10601
|
+
ye,
|
|
10602
10602
|
Ce,
|
|
10603
10603
|
Ne,
|
|
10604
10604
|
Oe,
|
|
@@ -10644,8 +10644,8 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10644
10644
|
categorystyle: "misc_category",
|
|
10645
10645
|
custom: _e.name
|
|
10646
10646
|
},
|
|
10647
|
-
ye,
|
|
10648
10647
|
ve,
|
|
10648
|
+
ye,
|
|
10649
10649
|
Ce,
|
|
10650
10650
|
Ne,
|
|
10651
10651
|
Oe,
|
|
@@ -10716,8 +10716,8 @@ const _e = { name: "COMPUTE_MISC_CATEGORY", callback: sc }, Ie = {
|
|
|
10716
10716
|
categorystyle: "misc_category",
|
|
10717
10717
|
custom: ae.name
|
|
10718
10718
|
},
|
|
10719
|
-
ye,
|
|
10720
10719
|
ve,
|
|
10720
|
+
ye,
|
|
10721
10721
|
Ce,
|
|
10722
10722
|
Ne,
|
|
10723
10723
|
Oe,
|
|
@@ -10897,9 +10897,9 @@ const Tc = { class: "position-relative w-100 h-100" }, Ec = /* @__PURE__ */ nt({
|
|
|
10897
10897
|
}),
|
|
10898
10898
|
emits: /* @__PURE__ */ we(["ready"], ["update:lock", "update:scale"]),
|
|
10899
10899
|
setup(t, { expose: e, emit: n }) {
|
|
10900
|
-
const { backgroundColor2: o } = Ft(), i = Mt(t, "lock"), a = Mt(t, "scale"), c = n, u = `blocklyEditor${Ke()}`, l =
|
|
10900
|
+
const { backgroundColor2: o } = Ft(), i = Mt(t, "lock"), a = Mt(t, "scale"), c = n, u = `blocklyEditor${Ke()}`, l = yt(), _ = Dt("parentContainer"), h = Dt("clean"), f = Dt("navigator"), p = {};
|
|
10901
10901
|
ka(p);
|
|
10902
|
-
const g =
|
|
10902
|
+
const g = yt(!0), A = yt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
|
|
10903
10903
|
width: "100%",
|
|
10904
10904
|
height: "calc(100% - 48px)"
|
|
10905
10905
|
})), ht = F(() => ({
|
|
@@ -11118,7 +11118,7 @@ const Tc = { class: "position-relative w-100 h-100" }, Ec = /* @__PURE__ */ nt({
|
|
|
11118
11118
|
}), Ac = { class: "text-subtitle-1" }, Ic = { class: "w-100 h-100 overflow-auto" }, Oc = /* @__PURE__ */ nt({
|
|
11119
11119
|
__name: "index",
|
|
11120
11120
|
setup(t) {
|
|
11121
|
-
const { t: e } = wt(), { sysBarAvail: n } = Vn(), { backgroundColor0: o, backgroundColor2: i } = Ft(), a =
|
|
11121
|
+
const { t: e } = wt(), { sysBarAvail: n } = Vn(), { backgroundColor0: o, backgroundColor2: i } = Ft(), a = yt(""), c = F(() => {
|
|
11122
11122
|
let _ = 48;
|
|
11123
11123
|
return n.value && (_ += 24), {
|
|
11124
11124
|
position: "relative",
|
|
@@ -11182,16 +11182,16 @@ const Tc = { class: "position-relative w-100 h-100" }, Ec = /* @__PURE__ */ nt({
|
|
|
11182
11182
|
}, 8, ["modelValue"]);
|
|
11183
11183
|
};
|
|
11184
11184
|
}
|
|
11185
|
-
}),
|
|
11185
|
+
}), yc = (t) => {
|
|
11186
11186
|
t.component("XBlockly", Ec), t.component("XSourceDlg", Oc);
|
|
11187
11187
|
};
|
|
11188
11188
|
async function bc(t) {
|
|
11189
11189
|
return (await Hn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.h3b844ct.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.mk5971y3.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
11190
11190
|
}
|
|
11191
|
-
const Pc = { install:
|
|
11191
|
+
const Pc = { install: yc };
|
|
11192
11192
|
export {
|
|
11193
11193
|
Ec as XBlockly,
|
|
11194
11194
|
Pc as default,
|
|
11195
|
-
|
|
11195
|
+
yc as install,
|
|
11196
11196
|
bc as loadLocaleMessageBlock
|
|
11197
11197
|
};
|
|
@@ -100,7 +100,8 @@ const _ = {
|
|
|
100
100
|
WARN_OUTPUT_HAS_CHANGED: "output has changed",
|
|
101
101
|
WARN_OUTPUT_NOT_FOUND: "output not found",
|
|
102
102
|
WARN_PAGE_NOT_FOUND: "page not found",
|
|
103
|
-
|
|
103
|
+
WARN_PROPERTY_HAS_CHANGED: "property has changed",
|
|
104
|
+
WARN_PROPERTY_NOT_FOUND: "property not found",
|
|
104
105
|
WARN_SPACE_NOT_FOUND: "space not found",
|
|
105
106
|
WARN_TABLE_HAS_CHANGED: "table has changed",
|
|
106
107
|
WARN_TABLE_NOT_FOUND: "table not found",
|
|
@@ -100,7 +100,8 @@ const _ = {
|
|
|
100
100
|
WARN_OUTPUT_HAS_CHANGED: "输出已改变",
|
|
101
101
|
WARN_OUTPUT_NOT_FOUND: "输出未发现",
|
|
102
102
|
WARN_PAGE_NOT_FOUND: "页面未发现",
|
|
103
|
-
|
|
103
|
+
WARN_PROPERTY_HAS_CHANGED: "属性已改变",
|
|
104
|
+
WARN_PROPERTY_NOT_FOUND: "属性未发现",
|
|
104
105
|
WARN_SPACE_NOT_FOUND: "空间未发现",
|
|
105
106
|
WARN_TABLE_HAS_CHANGED: "表已改变",
|
|
106
107
|
WARN_TABLE_NOT_FOUND: "表未发现",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vue-router": "^4.6.3",
|
|
39
39
|
"vuetify": "^3.10.7",
|
|
40
40
|
"x-essential-lib": "^0.9.2",
|
|
41
|
-
"x-runtime-lib": "^0.8.
|
|
41
|
+
"x-runtime-lib": "^0.8.34",
|
|
42
42
|
"x-state-lib": "^0.3.22"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|