x-block-lib 0.6.19 → 0.6.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/core/category/app/index.d.ts +2 -0
- package/dist/core/category/common/index.d.ts +2 -0
- package/dist/core/category/compute/index.d.ts +2 -0
- package/dist/core/category/data/index.d.ts +1 -0
- package/dist/core/category/index.d.ts +4 -7
- package/dist/core/custom/fieldDropdown2/index.d.ts +2 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/index.js +541 -493
- package/package.json +1 -1
- /package/dist/core/category/{interface → app/interface}/v1/index.d.ts +0 -0
- /package/dist/core/category/{ui → app/ui}/v1/index.d.ts +0 -0
- /package/dist/core/category/{procedure → common/procedure}/v1/index.d.ts +0 -0
- /package/dist/core/category/{variable → common/variable}/v1/index.d.ts +0 -0
- /package/dist/core/category/{flow → compute/flow}/v1/index.d.ts +0 -0
- /package/dist/core/category/{func → compute/func}/v1/index.d.ts +0 -0
- /package/dist/core/category/data/{v1 → data/v1}/index.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -11,10 +11,10 @@ var Sl = Object.defineProperty;
|
|
|
11
11
|
var kl = (e, t, n) => t in e ? Sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
12
12
|
var Is = (e, t, n) => kl(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
13
|
import { getCurrentScope as Ll, onScopeDispose as Bl, computed as Be, toValue as ba, watch as kt, shallowRef as Rl, getCurrentInstance as Do, onMounted as _n, defineComponent as ft, onBeforeUnmount as zi, resolveComponent as De, createBlock as pt, openBlock as Se, unref as j, withCtx as _t, createVNode as Oe, mergeProps as qi, useModel as ki, toRefs as Dl, ref as Mt, reactive as Ml, h as Li, nextTick as Ji, onUnmounted as Ca, isRef as Sn, resolveDirective as Pl, withDirectives as Ul, createElementBlock as rt, normalizeStyle as ct, createElementVNode as lt, toDisplayString as Mo, withModifiers as kn, Fragment as Na, renderList as xl, withKeys as Sa, createCommentVNode as $t, mergeModels as bs } from "vue";
|
|
14
|
-
import { d as C, j as r, O as p, f as wl, F as Vl, E as
|
|
14
|
+
import { d as C, j as r, O as p, f as wl, F as Vl, M as T, E as x, r as Cs, u as z, X as Yl, B as M, i as ce, a as jt, b as Po, c as ye, C as ka, e as Kl, P as Bi, N as Qi, V as In, g as Pt, h as La, s as Fl, S as Fe, k as co, l as an, m as on, n as no, o as ai, p as vn, q as Ns, G as ri, t as Hl, T as Uo, v as Ba, w as $l, x as Gl, y as Ss, z as Wl, A as jl } from "./blockly-ivcroaw4.js";
|
|
15
15
|
import { openConfirmDlg as Xl, openPromptDlg as zl, eventBus as ut, messageWarning as Ra, useColor as xo, useViewStack as wo, useSystem as Da } from "x-essential-lib";
|
|
16
|
-
import {
|
|
17
|
-
import { globalState as
|
|
16
|
+
import { elements as we, pkgs as ql, getPropTag as Vo } from "x-runtime-lib";
|
|
17
|
+
import { globalState as P } from "x-state-lib";
|
|
18
18
|
import { useI18n as Fn } from "vue-i18n";
|
|
19
19
|
import { useDisplay as Jl } from "vuetify";
|
|
20
20
|
var Ql = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", Ma = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", Zl = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", ec = "M21 11H3V9H21V11M21 13H3V15H21V13Z", tc = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", nc = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", oc = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
|
|
@@ -779,7 +779,7 @@ function lh(e, t, n, o, i, s) {
|
|
|
779
779
|
function Ja(e, t, n, o, i) {
|
|
780
780
|
return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : lh(e, t, n, o, Ja, i);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ve(e, t) {
|
|
783
783
|
return Ja(e, t);
|
|
784
784
|
}
|
|
785
785
|
class K extends Vl {
|
|
@@ -789,10 +789,59 @@ class K extends Vl {
|
|
|
789
789
|
doClassValidation_(t) {
|
|
790
790
|
return t;
|
|
791
791
|
}
|
|
792
|
+
doValueUpdate_(t) {
|
|
793
|
+
super.doValueUpdate_(t);
|
|
794
|
+
const n = this;
|
|
795
|
+
n.selectedOption && n.selectedOption[1] !== t && (n.selectedOption = null);
|
|
796
|
+
}
|
|
797
|
+
getText_() {
|
|
798
|
+
if (this.selectedOption)
|
|
799
|
+
return super.getText_();
|
|
800
|
+
const { i18n: t } = P.base, n = this.getSourceBlock();
|
|
801
|
+
if (this.name === "APP")
|
|
802
|
+
return n.app.name;
|
|
803
|
+
if (this.name === "PAGE")
|
|
804
|
+
return n.page.name;
|
|
805
|
+
if (this.name === "ELEMENT")
|
|
806
|
+
return n.element.name;
|
|
807
|
+
if (this.name === "NODE") {
|
|
808
|
+
const o = we[n.node.key];
|
|
809
|
+
if (o) {
|
|
810
|
+
const i = t.global.t(o.name), s = n.node.alias;
|
|
811
|
+
return `${i} / ${s}`;
|
|
812
|
+
}
|
|
813
|
+
} else if (this.name === "PROP") {
|
|
814
|
+
const o = n.prop.names;
|
|
815
|
+
let i = "";
|
|
816
|
+
for (const s of o)
|
|
817
|
+
i && (i += " - "), i += t.global.t(s);
|
|
818
|
+
return i;
|
|
819
|
+
} else {
|
|
820
|
+
if (this.name === "EVENT")
|
|
821
|
+
return T[n.event.name];
|
|
822
|
+
if (this.name === "METHOD")
|
|
823
|
+
return T[n.method.name];
|
|
824
|
+
if (this.name === "SPACE")
|
|
825
|
+
return n.space.name;
|
|
826
|
+
if (this.name === "FUNC")
|
|
827
|
+
return n.func.name;
|
|
828
|
+
if (this.name === "OUTPUT")
|
|
829
|
+
return n.output.name;
|
|
830
|
+
if (this.name === "TABLE")
|
|
831
|
+
return n.table.name;
|
|
832
|
+
if (this.name === "COLUMN")
|
|
833
|
+
return n.column.name;
|
|
834
|
+
if (this.name === "DIR")
|
|
835
|
+
return n.dir.name;
|
|
836
|
+
if (this.name === "RESOURCE")
|
|
837
|
+
return n.resource.name;
|
|
838
|
+
}
|
|
839
|
+
return "<n/a>";
|
|
840
|
+
}
|
|
792
841
|
}
|
|
793
842
|
wl.register("field_dropdown2", K);
|
|
794
843
|
var Ie = /* @__PURE__ */ ((e) => (e.STATE_CHANGE = "state_change", e))(Ie || {});
|
|
795
|
-
class Qa extends
|
|
844
|
+
class Qa extends x.Abstract {
|
|
796
845
|
constructor() {
|
|
797
846
|
super(...arguments);
|
|
798
847
|
Is(this, "isBlank", !0);
|
|
@@ -827,7 +876,7 @@ function ns(e, t, n, o) {
|
|
|
827
876
|
}
|
|
828
877
|
function je(e, t) {
|
|
829
878
|
try {
|
|
830
|
-
|
|
879
|
+
x.disable(), t.forEach((n) => {
|
|
831
880
|
var h;
|
|
832
881
|
const [o, i, s, a] = n, c = (h = e.getInput(o)) == null ? void 0 : h.connection;
|
|
833
882
|
if (!c)
|
|
@@ -847,37 +896,37 @@ function je(e, t) {
|
|
|
847
896
|
), l.outputConnection.connect(c);
|
|
848
897
|
});
|
|
849
898
|
} finally {
|
|
850
|
-
|
|
899
|
+
x.enable();
|
|
851
900
|
}
|
|
852
901
|
}
|
|
853
902
|
function $n(e) {
|
|
854
|
-
const { version: t } =
|
|
903
|
+
const { version: t } = P.app.activeObject;
|
|
855
904
|
if (!ql[t])
|
|
856
905
|
return console.assert(!1, "invalid pkg version", t), [];
|
|
857
906
|
const o = [];
|
|
858
|
-
for (const i in
|
|
859
|
-
const s =
|
|
907
|
+
for (const i in we) {
|
|
908
|
+
const s = we[i];
|
|
860
909
|
i.startsWith("globality") || e === "event" && s.events.length <= 0 || e === "method" && s.methods.length <= 0 || o.push(s);
|
|
861
910
|
}
|
|
862
911
|
return o;
|
|
863
912
|
}
|
|
864
913
|
function xt(e) {
|
|
865
|
-
const t =
|
|
914
|
+
const t = we[e];
|
|
866
915
|
if (t)
|
|
867
916
|
return t;
|
|
868
917
|
}
|
|
869
918
|
function dn(e) {
|
|
870
|
-
const { i18n: t } =
|
|
919
|
+
const { i18n: t } = P.base, n = [];
|
|
871
920
|
return $n(e).forEach((i) => {
|
|
872
921
|
n.push([t.global.t(i.name), i.key]);
|
|
873
922
|
}), me(n);
|
|
874
923
|
}
|
|
875
924
|
function xi(e) {
|
|
876
|
-
const t =
|
|
925
|
+
const t = we[e];
|
|
877
926
|
return t ? t.events : [];
|
|
878
927
|
}
|
|
879
928
|
function pi(e, t) {
|
|
880
|
-
const n =
|
|
929
|
+
const n = we[e];
|
|
881
930
|
if (n)
|
|
882
931
|
return n.events.find((o) => o.key === t);
|
|
883
932
|
}
|
|
@@ -888,11 +937,11 @@ function ch(e) {
|
|
|
888
937
|
}), me(t);
|
|
889
938
|
}
|
|
890
939
|
function wi(e) {
|
|
891
|
-
const t =
|
|
940
|
+
const t = we[e];
|
|
892
941
|
return t ? t.methods : [];
|
|
893
942
|
}
|
|
894
943
|
function _i(e, t) {
|
|
895
|
-
const n =
|
|
944
|
+
const n = we[e];
|
|
896
945
|
if (n)
|
|
897
946
|
return n.methods.find((o) => o.key === t);
|
|
898
947
|
}
|
|
@@ -904,10 +953,10 @@ function uh(e) {
|
|
|
904
953
|
}
|
|
905
954
|
function Vn(e, t) {
|
|
906
955
|
var l, h;
|
|
907
|
-
const { props: n } =
|
|
956
|
+
const { props: n } = P.runtime, { type: o, subtype: i } = P.app.activeObject, s = Vo(o, i);
|
|
908
957
|
if (!s)
|
|
909
958
|
return console.assert(!1, "invalid prop tag", o, i), [];
|
|
910
|
-
if (!
|
|
959
|
+
if (!we[e])
|
|
911
960
|
return [];
|
|
912
961
|
const c = [];
|
|
913
962
|
return (h = (l = n[e]) == null ? void 0 : l[s]) == null || h.forEach((_) => {
|
|
@@ -916,7 +965,7 @@ function Vn(e, t) {
|
|
|
916
965
|
}
|
|
917
966
|
function cn(e, t) {
|
|
918
967
|
var a, c;
|
|
919
|
-
const { props: n } =
|
|
968
|
+
const { props: n } = P.runtime, { type: o, subtype: i } = P.app.activeObject, s = Vo(o, i);
|
|
920
969
|
if (!s) {
|
|
921
970
|
console.assert(!1, "invalid prop tag", o, i);
|
|
922
971
|
return;
|
|
@@ -924,7 +973,7 @@ function cn(e, t) {
|
|
|
924
973
|
return (c = (a = n[e]) == null ? void 0 : a[s]) == null ? void 0 : c.find((l) => l.keys === t);
|
|
925
974
|
}
|
|
926
975
|
function Za(e, t) {
|
|
927
|
-
const { i18n: n } =
|
|
976
|
+
const { i18n: n } = P.base, o = [];
|
|
928
977
|
return Vn(e, t).forEach((s) => {
|
|
929
978
|
let a = "";
|
|
930
979
|
s.names.forEach((c, l) => {
|
|
@@ -933,9 +982,9 @@ function Za(e, t) {
|
|
|
933
982
|
}), me(o);
|
|
934
983
|
}
|
|
935
984
|
function mn(e) {
|
|
936
|
-
const { nodes: t } =
|
|
985
|
+
const { nodes: t } = P.app.activeObject, n = [];
|
|
937
986
|
for (const o in t) {
|
|
938
|
-
const i = t[o], s =
|
|
987
|
+
const i = t[o], s = we[i.key];
|
|
939
988
|
if (!s) {
|
|
940
989
|
console.assert(!1, "invalid element", i.key);
|
|
941
990
|
continue;
|
|
@@ -950,12 +999,12 @@ function mn(e) {
|
|
|
950
999
|
return n;
|
|
951
1000
|
}
|
|
952
1001
|
function He(e) {
|
|
953
|
-
return
|
|
1002
|
+
return P.app.activeObject.nodes.find((t) => t.id === e);
|
|
954
1003
|
}
|
|
955
1004
|
function Gn(e) {
|
|
956
|
-
const { i18n: t } =
|
|
1005
|
+
const { i18n: t } = P.base, n = [];
|
|
957
1006
|
return mn(e).forEach((i) => {
|
|
958
|
-
const s =
|
|
1007
|
+
const s = we[i.key];
|
|
959
1008
|
if (!s) {
|
|
960
1009
|
console.assert(!1, "invalid element", i.key);
|
|
961
1010
|
return;
|
|
@@ -968,14 +1017,14 @@ function Vi(e) {
|
|
|
968
1017
|
const t = He(e);
|
|
969
1018
|
if (!t)
|
|
970
1019
|
return [];
|
|
971
|
-
const n =
|
|
1020
|
+
const n = we[t.key];
|
|
972
1021
|
return n ? n.events : (console.assert(!1, "invalid element", t.key), []);
|
|
973
1022
|
}
|
|
974
1023
|
function hi(e, t) {
|
|
975
1024
|
const n = He(e);
|
|
976
1025
|
if (!n)
|
|
977
1026
|
return;
|
|
978
|
-
const o =
|
|
1027
|
+
const o = we[n.key];
|
|
979
1028
|
if (!o) {
|
|
980
1029
|
console.assert(!1, "invalid element", n.key);
|
|
981
1030
|
return;
|
|
@@ -992,14 +1041,14 @@ function Yi(e) {
|
|
|
992
1041
|
const t = He(e);
|
|
993
1042
|
if (!t)
|
|
994
1043
|
return [];
|
|
995
|
-
const n =
|
|
1044
|
+
const n = we[t.key];
|
|
996
1045
|
return n ? n.methods : (console.assert(!1, "invalid element", t.key), []);
|
|
997
1046
|
}
|
|
998
1047
|
function di(e, t) {
|
|
999
1048
|
const n = He(e);
|
|
1000
1049
|
if (!n)
|
|
1001
1050
|
return;
|
|
1002
|
-
const o =
|
|
1051
|
+
const o = we[n.key];
|
|
1003
1052
|
if (!o) {
|
|
1004
1053
|
console.assert(!1, "invalid element", n.key);
|
|
1005
1054
|
return;
|
|
@@ -1014,17 +1063,17 @@ function _h(e) {
|
|
|
1014
1063
|
}
|
|
1015
1064
|
function Yn(e, t) {
|
|
1016
1065
|
var h, _;
|
|
1017
|
-
const { props: n } =
|
|
1066
|
+
const { props: n } = P.runtime, { type: o, subtype: i } = P.app.activeObject, s = [], a = Vo(o, i);
|
|
1018
1067
|
if (!a)
|
|
1019
1068
|
return console.assert(!1, "invalid prop tag", o, i), s;
|
|
1020
1069
|
const c = He(e);
|
|
1021
|
-
return c ?
|
|
1070
|
+
return c ? we[c.key] ? ((_ = (h = n[c.key]) == null ? void 0 : h[a]) == null || _.forEach((d) => {
|
|
1022
1071
|
t && (!d.raw.ui || d.raw.readonly || d.keys === "alias") || s.push(d);
|
|
1023
1072
|
}), s) : (console.assert(!1, "invalid element", c.key), s) : s;
|
|
1024
1073
|
}
|
|
1025
1074
|
function un(e, t) {
|
|
1026
1075
|
var c, l;
|
|
1027
|
-
const { props: n } =
|
|
1076
|
+
const { props: n } = P.runtime, { type: o, subtype: i } = P.app.activeObject, s = Vo(o, i);
|
|
1028
1077
|
if (!s) {
|
|
1029
1078
|
console.assert(!1, "invalid prop tag", o, i);
|
|
1030
1079
|
return;
|
|
@@ -1034,7 +1083,7 @@ function un(e, t) {
|
|
|
1034
1083
|
return (l = (c = n[a.key]) == null ? void 0 : c[s]) == null ? void 0 : l.find((h) => h.keys === t);
|
|
1035
1084
|
}
|
|
1036
1085
|
function er(e, t) {
|
|
1037
|
-
const { i18n: n } =
|
|
1086
|
+
const { i18n: n } = P.base, o = [];
|
|
1038
1087
|
return Yn(e, t).forEach((s) => {
|
|
1039
1088
|
let a = "";
|
|
1040
1089
|
s.names.forEach((c, l) => {
|
|
@@ -1096,7 +1145,7 @@ const hh = {
|
|
|
1096
1145
|
onchange: function(e) {
|
|
1097
1146
|
if (e.type === Ie.STATE_CHANGE)
|
|
1098
1147
|
this.checkWarning_();
|
|
1099
|
-
else if (e.type ===
|
|
1148
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1100
1149
|
const t = e;
|
|
1101
1150
|
if (t.blockId !== this.id)
|
|
1102
1151
|
return;
|
|
@@ -1196,7 +1245,7 @@ const hh = {
|
|
|
1196
1245
|
this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
|
|
1197
1246
|
return;
|
|
1198
1247
|
}
|
|
1199
|
-
if (t.name !== this.method.name && (this.method.name = t.name), !
|
|
1248
|
+
if (t.name !== this.method.name && (this.method.name = t.name), !Ve(t.inputs, this.method.inputs) || !Ve(t.outputs, this.method.outputs)) {
|
|
1200
1249
|
this.setWarningText(T.WARN_METHOD_HAS_CHANGED);
|
|
1201
1250
|
return;
|
|
1202
1251
|
}
|
|
@@ -1276,7 +1325,7 @@ const dh = {
|
|
|
1276
1325
|
onchange: function(e) {
|
|
1277
1326
|
if (e.type === Ie.STATE_CHANGE)
|
|
1278
1327
|
this.checkWarning_();
|
|
1279
|
-
else if (e.type ===
|
|
1328
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1280
1329
|
const t = e;
|
|
1281
1330
|
if (t.blockId !== this.id)
|
|
1282
1331
|
return;
|
|
@@ -1369,7 +1418,7 @@ const dh = {
|
|
|
1369
1418
|
this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
|
|
1370
1419
|
return;
|
|
1371
1420
|
}
|
|
1372
|
-
if (t.name !== this.method.name && (this.method.name = t.name), !
|
|
1421
|
+
if (t.name !== this.method.name && (this.method.name = t.name), !Ve(this.method.inputs, t.inputs) || !Ve(this.method.outputs, t.outputs)) {
|
|
1373
1422
|
this.setWarningText(T.WARN_METHOD_HAS_CHANGED);
|
|
1374
1423
|
return;
|
|
1375
1424
|
}
|
|
@@ -1401,13 +1450,13 @@ ${s}}
|
|
|
1401
1450
|
}
|
|
1402
1451
|
};
|
|
1403
1452
|
function fh() {
|
|
1404
|
-
return
|
|
1453
|
+
return P.app.activeObject.type !== "comp" ? !1 : P.app.activeComp.meta.properties.length > 0 || P.app.activeComp.meta.methods.length > 0 || P.app.activeComp.meta.events.length > 0;
|
|
1405
1454
|
}
|
|
1406
1455
|
function Kn() {
|
|
1407
|
-
return
|
|
1456
|
+
return P.app.activeComp.meta.methods;
|
|
1408
1457
|
}
|
|
1409
1458
|
function Oo(e) {
|
|
1410
|
-
return
|
|
1459
|
+
return P.app.activeComp.meta.methods.find((t) => t.id === e);
|
|
1411
1460
|
}
|
|
1412
1461
|
function tr() {
|
|
1413
1462
|
const e = [];
|
|
@@ -1416,13 +1465,13 @@ function tr() {
|
|
|
1416
1465
|
}), me(e);
|
|
1417
1466
|
}
|
|
1418
1467
|
function Ki(e) {
|
|
1419
|
-
const t =
|
|
1468
|
+
const t = P.app.activeComp.meta.methods.find(
|
|
1420
1469
|
(n) => n.id === e
|
|
1421
1470
|
);
|
|
1422
1471
|
return t ? t.outputs : [];
|
|
1423
1472
|
}
|
|
1424
1473
|
function fi(e, t) {
|
|
1425
|
-
const n =
|
|
1474
|
+
const n = P.app.activeComp.meta.methods.find(
|
|
1426
1475
|
(o) => o.id === e
|
|
1427
1476
|
);
|
|
1428
1477
|
if (n)
|
|
@@ -1435,10 +1484,10 @@ function gh(e) {
|
|
|
1435
1484
|
}), me(t);
|
|
1436
1485
|
}
|
|
1437
1486
|
function nr() {
|
|
1438
|
-
return
|
|
1487
|
+
return P.app.activeComp.meta.events;
|
|
1439
1488
|
}
|
|
1440
1489
|
function ea(e) {
|
|
1441
|
-
return
|
|
1490
|
+
return P.app.activeComp.meta.events.find((t) => t.id === e);
|
|
1442
1491
|
}
|
|
1443
1492
|
function mh() {
|
|
1444
1493
|
const e = [];
|
|
@@ -1482,7 +1531,7 @@ const Th = {
|
|
|
1482
1531
|
onchange: function(e) {
|
|
1483
1532
|
if (e.type === Ie.STATE_CHANGE)
|
|
1484
1533
|
this.checkWarning_();
|
|
1485
|
-
else if (e.type ===
|
|
1534
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1486
1535
|
const t = e;
|
|
1487
1536
|
if (t.blockId !== this.id)
|
|
1488
1537
|
return;
|
|
@@ -1522,7 +1571,7 @@ const Th = {
|
|
|
1522
1571
|
this.setWarningText(T.WARN_METHOD_NOT_AVAILABLE);
|
|
1523
1572
|
return;
|
|
1524
1573
|
}
|
|
1525
|
-
if (e.name !== this.method.name && (this.method.name = e.name), !
|
|
1574
|
+
if (e.name !== this.method.name && (this.method.name = e.name), !Ve(e.inputs, this.method.inputs)) {
|
|
1526
1575
|
this.setWarningText(T.WARN_METHOD_HAS_CHANGED);
|
|
1527
1576
|
return;
|
|
1528
1577
|
}
|
|
@@ -1570,7 +1619,7 @@ const Eh = {
|
|
|
1570
1619
|
onchange: function(e) {
|
|
1571
1620
|
if (e.type === Ie.STATE_CHANGE)
|
|
1572
1621
|
this.checkWarning_();
|
|
1573
|
-
else if (e.type ===
|
|
1622
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1574
1623
|
const t = e;
|
|
1575
1624
|
if (t.blockId !== this.id)
|
|
1576
1625
|
return;
|
|
@@ -1654,7 +1703,7 @@ const Ah = {
|
|
|
1654
1703
|
onchange: function(e) {
|
|
1655
1704
|
if (e.type === Ie.STATE_CHANGE)
|
|
1656
1705
|
this.checkWarning_();
|
|
1657
|
-
else if (e.type ===
|
|
1706
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1658
1707
|
const t = e;
|
|
1659
1708
|
if (t.blockId !== this.id)
|
|
1660
1709
|
return;
|
|
@@ -1698,7 +1747,7 @@ const Ah = {
|
|
|
1698
1747
|
this.setWarningText(T.WARN_PROP_NOT_AVAIALABLE);
|
|
1699
1748
|
return;
|
|
1700
1749
|
}
|
|
1701
|
-
|
|
1750
|
+
Ve(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
1702
1751
|
}
|
|
1703
1752
|
};
|
|
1704
1753
|
M.get_node_prop_v1 = Ah;
|
|
@@ -1754,7 +1803,7 @@ const vh = {
|
|
|
1754
1803
|
onchange: function(e) {
|
|
1755
1804
|
if (e.type === Ie.STATE_CHANGE)
|
|
1756
1805
|
this.checkWarning_();
|
|
1757
|
-
else if (e.type ===
|
|
1806
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1758
1807
|
const t = e;
|
|
1759
1808
|
if (t.blockId !== this.id)
|
|
1760
1809
|
return;
|
|
@@ -1794,7 +1843,7 @@ const vh = {
|
|
|
1794
1843
|
this.setWarningText(T.WARN_PROP_NOT_AVAILABLE);
|
|
1795
1844
|
return;
|
|
1796
1845
|
}
|
|
1797
|
-
|
|
1846
|
+
Ve(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
1798
1847
|
}
|
|
1799
1848
|
};
|
|
1800
1849
|
M.get_node_prop_as_v1 = vh;
|
|
@@ -1803,13 +1852,13 @@ r.forBlock.get_node_prop_as_v1 = function(e) {
|
|
|
1803
1852
|
return [`__getNodePropV1__(${n}, ${o})`, p.ATOMIC];
|
|
1804
1853
|
};
|
|
1805
1854
|
function Oh() {
|
|
1806
|
-
if (
|
|
1855
|
+
if (P.app.activeObject.type !== "page" || P.app.activePage.meta.arguments.length > 0) return !1;
|
|
1807
1856
|
}
|
|
1808
1857
|
function or() {
|
|
1809
|
-
return
|
|
1858
|
+
return P.app.activePage.meta.arguments;
|
|
1810
1859
|
}
|
|
1811
1860
|
function ta(e) {
|
|
1812
|
-
return
|
|
1861
|
+
return P.app.activePage.meta.arguments.find(
|
|
1813
1862
|
(t) => t.id === e
|
|
1814
1863
|
);
|
|
1815
1864
|
}
|
|
@@ -1847,7 +1896,7 @@ const Ih = {
|
|
|
1847
1896
|
onchange: function(e) {
|
|
1848
1897
|
if (e.type === Ie.STATE_CHANGE)
|
|
1849
1898
|
this.checkWarning_();
|
|
1850
|
-
else if (e.type ===
|
|
1899
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1851
1900
|
const t = e;
|
|
1852
1901
|
if (t.blockId !== this.id)
|
|
1853
1902
|
return;
|
|
@@ -1886,10 +1935,10 @@ r.forBlock.get_page_argument_v1 = function(e) {
|
|
|
1886
1935
|
return [`__getPageArgumentV1__(${r.quote_(t.argument.id)})`, p.FUNCTION_CALL];
|
|
1887
1936
|
};
|
|
1888
1937
|
function os() {
|
|
1889
|
-
return
|
|
1938
|
+
return P.app.appList;
|
|
1890
1939
|
}
|
|
1891
1940
|
function na(e) {
|
|
1892
|
-
return
|
|
1941
|
+
return P.app.appList.find((t) => t.id === e);
|
|
1893
1942
|
}
|
|
1894
1943
|
function bh() {
|
|
1895
1944
|
const e = [];
|
|
@@ -1898,11 +1947,11 @@ function bh() {
|
|
|
1898
1947
|
}), me(e);
|
|
1899
1948
|
}
|
|
1900
1949
|
function Fi(e) {
|
|
1901
|
-
const t =
|
|
1950
|
+
const t = P.app.appList.find((n) => n.id === e);
|
|
1902
1951
|
return t ? t.pages : [];
|
|
1903
1952
|
}
|
|
1904
1953
|
function gi(e, t) {
|
|
1905
|
-
const n =
|
|
1954
|
+
const n = P.app.appList.find((o) => o.id === e);
|
|
1906
1955
|
if (n)
|
|
1907
1956
|
return n.pages.find((o) => o.id === t);
|
|
1908
1957
|
}
|
|
@@ -1966,7 +2015,7 @@ const Nh = {
|
|
|
1966
2015
|
onchange: function(e) {
|
|
1967
2016
|
if (e.type === Ie.STATE_CHANGE)
|
|
1968
2017
|
this.checkWarning_();
|
|
1969
|
-
else if (e.type ===
|
|
2018
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
1970
2019
|
const t = e;
|
|
1971
2020
|
if (t.blockId !== this.id)
|
|
1972
2021
|
return;
|
|
@@ -2065,7 +2114,7 @@ const Sh = {
|
|
|
2065
2114
|
onchange: function(e) {
|
|
2066
2115
|
if (e.type === Ie.STATE_CHANGE)
|
|
2067
2116
|
this.checkWarning_();
|
|
2068
|
-
else if (e.type ===
|
|
2117
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2069
2118
|
const t = e;
|
|
2070
2119
|
if (t.blockId !== this.id)
|
|
2071
2120
|
return;
|
|
@@ -2127,7 +2176,7 @@ const Sh = {
|
|
|
2127
2176
|
this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
|
|
2128
2177
|
return;
|
|
2129
2178
|
}
|
|
2130
|
-
if (t.name !== this.event.name && (this.event.name = t.name), !
|
|
2179
|
+
if (t.name !== this.event.name && (this.event.name = t.name), !Ve(t.params, this.event.params)) {
|
|
2131
2180
|
this.setWarningText(T.WARN_EVENT_HAS_CHANGED);
|
|
2132
2181
|
return;
|
|
2133
2182
|
}
|
|
@@ -2195,7 +2244,7 @@ const kh = {
|
|
|
2195
2244
|
onchange: function(e) {
|
|
2196
2245
|
if (e.type === Ie.STATE_CHANGE)
|
|
2197
2246
|
this.checkWarning_();
|
|
2198
|
-
else if (e.type ===
|
|
2247
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2199
2248
|
const t = e;
|
|
2200
2249
|
if (t.blockId !== this.id)
|
|
2201
2250
|
return;
|
|
@@ -2253,7 +2302,7 @@ const kh = {
|
|
|
2253
2302
|
this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
|
|
2254
2303
|
return;
|
|
2255
2304
|
}
|
|
2256
|
-
if (t.name !== this.event.name && (this.event.name = t.name), !
|
|
2305
|
+
if (t.name !== this.event.name && (this.event.name = t.name), !Ve(t.params, this.event.params)) {
|
|
2257
2306
|
this.setWarningText(T.WARN_EVENT_HAS_CHANGED);
|
|
2258
2307
|
return;
|
|
2259
2308
|
}
|
|
@@ -2428,7 +2477,7 @@ const Rh = {
|
|
|
2428
2477
|
onchange: function(e) {
|
|
2429
2478
|
if (e.type === Ie.STATE_CHANGE)
|
|
2430
2479
|
this.checkWarning_();
|
|
2431
|
-
else if (e.type ===
|
|
2480
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2432
2481
|
const t = e;
|
|
2433
2482
|
if (t.blockId !== this.id)
|
|
2434
2483
|
return;
|
|
@@ -2565,7 +2614,7 @@ const Dh = {
|
|
|
2565
2614
|
onchange: function(e) {
|
|
2566
2615
|
if (e.type === Ie.STATE_CHANGE)
|
|
2567
2616
|
this.checkWarning_();
|
|
2568
|
-
else if (e.type ===
|
|
2617
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2569
2618
|
const t = e;
|
|
2570
2619
|
if (t.blockId !== this.id)
|
|
2571
2620
|
return;
|
|
@@ -2609,7 +2658,7 @@ const Dh = {
|
|
|
2609
2658
|
this.setWarningText(T.WARN_PROP_NOT_AVAIALABLE);
|
|
2610
2659
|
return;
|
|
2611
2660
|
}
|
|
2612
|
-
|
|
2661
|
+
Ve(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
2613
2662
|
}
|
|
2614
2663
|
};
|
|
2615
2664
|
M.set_node_prop_v1 = Dh;
|
|
@@ -2664,7 +2713,7 @@ const Mh = {
|
|
|
2664
2713
|
onchange: function(e) {
|
|
2665
2714
|
if (e.type === Ie.STATE_CHANGE)
|
|
2666
2715
|
this.checkWarning_();
|
|
2667
|
-
else if (e.type ===
|
|
2716
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2668
2717
|
const t = e;
|
|
2669
2718
|
if (t.blockId !== this.id)
|
|
2670
2719
|
return;
|
|
@@ -2708,7 +2757,7 @@ const Mh = {
|
|
|
2708
2757
|
this.setWarningText(T.WARN_PROP_NOT_AVAIALABLE);
|
|
2709
2758
|
return;
|
|
2710
2759
|
}
|
|
2711
|
-
|
|
2760
|
+
Ve(t.names, this.prop.names) || (this.prop.names = t.names), this.setWarningText(null);
|
|
2712
2761
|
}
|
|
2713
2762
|
};
|
|
2714
2763
|
M.set_node_prop_as_v1 = Mh;
|
|
@@ -2753,7 +2802,7 @@ const Ph = {
|
|
|
2753
2802
|
onchange: function(e) {
|
|
2754
2803
|
if (e.type === Ie.STATE_CHANGE)
|
|
2755
2804
|
this.checkWarning_();
|
|
2756
|
-
else if (e.type ===
|
|
2805
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
2757
2806
|
const t = e;
|
|
2758
2807
|
if (t.blockId !== this.id)
|
|
2759
2808
|
return;
|
|
@@ -2798,7 +2847,7 @@ const Ph = {
|
|
|
2798
2847
|
this.setWarningText(T.WARN_EVENT_NOT_AVAILABLE);
|
|
2799
2848
|
return;
|
|
2800
2849
|
}
|
|
2801
|
-
if (e.name !== this.event.name && (this.event.name = e.name), !
|
|
2850
|
+
if (e.name !== this.event.name && (this.event.name = e.name), !Ve(e.params, this.event.params)) {
|
|
2802
2851
|
this.setWarningText(T.WARN_EVENT_HAS_CHANGED);
|
|
2803
2852
|
return;
|
|
2804
2853
|
}
|
|
@@ -3039,7 +3088,7 @@ const Vh = {
|
|
|
3039
3088
|
this.key = e, this.name = t, this.locale = n, this.updateShape_();
|
|
3040
3089
|
},
|
|
3041
3090
|
onchange: function(e) {
|
|
3042
|
-
if (e.type ===
|
|
3091
|
+
if (e.type === x.BLOCK_MOVE) {
|
|
3043
3092
|
const t = e;
|
|
3044
3093
|
if (t.blockId !== this.id)
|
|
3045
3094
|
return;
|
|
@@ -3051,7 +3100,7 @@ const Vh = {
|
|
|
3051
3100
|
const t = this.workspace.getBlockById(e.oldParentId);
|
|
3052
3101
|
if (t && wh(t.type, e.oldInputName))
|
|
3053
3102
|
try {
|
|
3054
|
-
|
|
3103
|
+
x.disable();
|
|
3055
3104
|
const o = (n = t.getInput(e.oldInputName)) == null ? void 0 : n.connection;
|
|
3056
3105
|
if (o) {
|
|
3057
3106
|
const i = ns(
|
|
@@ -3063,7 +3112,7 @@ const Vh = {
|
|
|
3063
3112
|
o.connect(i.outputConnection);
|
|
3064
3113
|
}
|
|
3065
3114
|
} finally {
|
|
3066
|
-
|
|
3115
|
+
x.enable();
|
|
3067
3116
|
}
|
|
3068
3117
|
},
|
|
3069
3118
|
updateShape_: function() {
|
|
@@ -3076,12 +3125,12 @@ r.forBlock.parameter_v1 = function(e) {
|
|
|
3076
3125
|
};
|
|
3077
3126
|
function fn(e) {
|
|
3078
3127
|
const t = [];
|
|
3079
|
-
return
|
|
3128
|
+
return P.compute.spaces.forEach((n) => {
|
|
3080
3129
|
e === "func" && n.funcs.length > 0 && t.push(n), e === "flow" && n.flows.length > 0 && t.push(n);
|
|
3081
3130
|
}), t;
|
|
3082
3131
|
}
|
|
3083
3132
|
function ir(e) {
|
|
3084
|
-
return
|
|
3133
|
+
return P.compute.spaces.find((t) => t.id === e);
|
|
3085
3134
|
}
|
|
3086
3135
|
function sr() {
|
|
3087
3136
|
const e = [];
|
|
@@ -3090,11 +3139,11 @@ function sr() {
|
|
|
3090
3139
|
}), me(e);
|
|
3091
3140
|
}
|
|
3092
3141
|
function is(e) {
|
|
3093
|
-
const t =
|
|
3142
|
+
const t = P.compute.spaces.find((n) => n.id === e);
|
|
3094
3143
|
return t ? t.funcs : [];
|
|
3095
3144
|
}
|
|
3096
3145
|
function ar(e, t) {
|
|
3097
|
-
const n =
|
|
3146
|
+
const n = P.compute.spaces.find((o) => o.id === e);
|
|
3098
3147
|
if (n)
|
|
3099
3148
|
return n.funcs.find((o) => o.id === t);
|
|
3100
3149
|
}
|
|
@@ -3105,14 +3154,14 @@ function rr(e) {
|
|
|
3105
3154
|
}), me(t);
|
|
3106
3155
|
}
|
|
3107
3156
|
function Hi() {
|
|
3108
|
-
return
|
|
3157
|
+
return P.compute.activeFunc;
|
|
3109
3158
|
}
|
|
3110
3159
|
function oa(e) {
|
|
3111
|
-
const { outputs: t } =
|
|
3160
|
+
const { outputs: t } = P.compute.activeFunc;
|
|
3112
3161
|
return t.find((n) => n.id === e);
|
|
3113
3162
|
}
|
|
3114
3163
|
function Yh() {
|
|
3115
|
-
const e = [], { outputs: t } =
|
|
3164
|
+
const e = [], { outputs: t } = P.compute.activeFunc;
|
|
3116
3165
|
return t.forEach(({ id: n, name: o }) => {
|
|
3117
3166
|
e.push([o, n]);
|
|
3118
3167
|
}), me(e);
|
|
@@ -3229,11 +3278,11 @@ const Kh = {
|
|
|
3229
3278
|
this.setWarningText(T.WARN_FUNC_NOT_AVAILABLE);
|
|
3230
3279
|
return;
|
|
3231
3280
|
}
|
|
3232
|
-
if (!
|
|
3281
|
+
if (!Ve(t.inputs, this.func.inputs)) {
|
|
3233
3282
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3234
3283
|
return;
|
|
3235
3284
|
}
|
|
3236
|
-
if (!
|
|
3285
|
+
if (!Ve(t.outputs, this.func.outputs)) {
|
|
3237
3286
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3238
3287
|
return;
|
|
3239
3288
|
}
|
|
@@ -3373,11 +3422,11 @@ const Fh = {
|
|
|
3373
3422
|
this.setWarningText(T.WARN_FUNC_NOT_AVAILABLE);
|
|
3374
3423
|
return;
|
|
3375
3424
|
}
|
|
3376
|
-
if (!
|
|
3425
|
+
if (!Ve(t.inputs, this.func.inputs)) {
|
|
3377
3426
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3378
3427
|
return;
|
|
3379
3428
|
}
|
|
3380
|
-
if (!
|
|
3429
|
+
if (!Ve(t.outputs, this.func.outputs)) {
|
|
3381
3430
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3382
3431
|
return;
|
|
3383
3432
|
}
|
|
@@ -3483,7 +3532,7 @@ const Hh = {
|
|
|
3483
3532
|
},
|
|
3484
3533
|
checkWarning_: function() {
|
|
3485
3534
|
const { id: e, inputs: t } = Hi();
|
|
3486
|
-
if (this.func.id !== e && (this.func.id = e), !
|
|
3535
|
+
if (this.func.id !== e && (this.func.id = e), !Ve(t, this.func.inputs)) {
|
|
3487
3536
|
this.setWarningText(T.WARN_FUNC_HAS_CHANGED);
|
|
3488
3537
|
return;
|
|
3489
3538
|
}
|
|
@@ -3541,7 +3590,7 @@ const Gh = {
|
|
|
3541
3590
|
onchange: function(e) {
|
|
3542
3591
|
if (e.type === Ie.STATE_CHANGE)
|
|
3543
3592
|
this.checkWarning_();
|
|
3544
|
-
else if (e.type ===
|
|
3593
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
3545
3594
|
const t = e;
|
|
3546
3595
|
if (t.blockId !== this.id)
|
|
3547
3596
|
return;
|
|
@@ -3650,12 +3699,12 @@ ${o}}
|
|
|
3650
3699
|
};
|
|
3651
3700
|
function Tn() {
|
|
3652
3701
|
const e = [];
|
|
3653
|
-
return
|
|
3702
|
+
return P.data.spaces.forEach((t) => {
|
|
3654
3703
|
t.tables.length > 0 && e.push(t);
|
|
3655
3704
|
}), e;
|
|
3656
3705
|
}
|
|
3657
3706
|
function wt(e) {
|
|
3658
|
-
const { spaces: t } =
|
|
3707
|
+
const { spaces: t } = P.data;
|
|
3659
3708
|
return t.find((n) => n.id === e);
|
|
3660
3709
|
}
|
|
3661
3710
|
function Ho() {
|
|
@@ -3665,11 +3714,11 @@ function Ho() {
|
|
|
3665
3714
|
}), me(e);
|
|
3666
3715
|
}
|
|
3667
3716
|
function Ot(e) {
|
|
3668
|
-
const { spaces: t } =
|
|
3717
|
+
const { spaces: t } = P.data, n = t.find((o) => o.id === e);
|
|
3669
3718
|
return n ? n.tables : [];
|
|
3670
3719
|
}
|
|
3671
3720
|
function xe(e, t) {
|
|
3672
|
-
const { spaces: n } =
|
|
3721
|
+
const { spaces: n } = P.data, o = n.find((i) => i.id === e);
|
|
3673
3722
|
if (o)
|
|
3674
3723
|
return o.tables.find((i) => i.id === t);
|
|
3675
3724
|
}
|
|
@@ -3752,7 +3801,7 @@ const jh = {
|
|
|
3752
3801
|
onchange: function(e) {
|
|
3753
3802
|
if (e.type === Ie.STATE_CHANGE)
|
|
3754
3803
|
this.checkWarning_();
|
|
3755
|
-
else if (e.type ===
|
|
3804
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
3756
3805
|
const t = e;
|
|
3757
3806
|
t.blockId === this.id && t.element === "field" && (t.name === "SPACE" ? this.onSpaceChange_(t.newValue) : t.name === "TABLE" ? this.onTableChange_(t.newValue) : t.name === "COLUMN" && this.onColumnChange_(t.newValue));
|
|
3758
3807
|
}
|
|
@@ -4153,7 +4202,7 @@ const td = {
|
|
|
4153
4202
|
var t;
|
|
4154
4203
|
if (e.type === Ie.STATE_CHANGE)
|
|
4155
4204
|
this.checkWarning_();
|
|
4156
|
-
else if (e.type ===
|
|
4205
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
4157
4206
|
const n = e;
|
|
4158
4207
|
if (n.blockId !== this.id)
|
|
4159
4208
|
return;
|
|
@@ -4220,11 +4269,11 @@ const td = {
|
|
|
4220
4269
|
}
|
|
4221
4270
|
this.itemCount_ = n.length, this.updateShape_();
|
|
4222
4271
|
try {
|
|
4223
|
-
|
|
4272
|
+
x.disable();
|
|
4224
4273
|
for (let i = 0; i < this.itemCount_; i++)
|
|
4225
4274
|
n[i] && this.setFieldValue(n[i], "COLUMN" + i), o[i] && this.setFieldValue(o[i], "ALIAS" + i);
|
|
4226
4275
|
} finally {
|
|
4227
|
-
|
|
4276
|
+
x.enable();
|
|
4228
4277
|
}
|
|
4229
4278
|
setTimeout(() => {
|
|
4230
4279
|
this.checkWarning_();
|
|
@@ -4333,7 +4382,7 @@ const nd = {
|
|
|
4333
4382
|
onchange: function(e) {
|
|
4334
4383
|
if (e.type === Ie.STATE_CHANGE)
|
|
4335
4384
|
this.checkWarning_();
|
|
4336
|
-
else if (e.type ===
|
|
4385
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
4337
4386
|
const t = e;
|
|
4338
4387
|
if (t.blockId !== this.id)
|
|
4339
4388
|
return;
|
|
@@ -4455,7 +4504,7 @@ const sd = {
|
|
|
4455
4504
|
onchange: function(e) {
|
|
4456
4505
|
if (e.type === Ie.STATE_CHANGE)
|
|
4457
4506
|
this.checkWarning_();
|
|
4458
|
-
else if (e.type ===
|
|
4507
|
+
else if (e.type === x.BLOCK_CHANGE) {
|
|
4459
4508
|
const t = e;
|
|
4460
4509
|
if (t.blockId !== this.id)
|
|
4461
4510
|
return;
|
|
@@ -4515,11 +4564,11 @@ const sd = {
|
|
|
4515
4564
|
}
|
|
4516
4565
|
this.itemCount_ = n.length, this.updateShape_();
|
|
4517
4566
|
try {
|
|
4518
|
-
|
|
4567
|
+
x.disable();
|
|
4519
4568
|
for (let i = 0; i < this.itemCount_; i++)
|
|
4520
4569
|
this.setFieldValue(n[i], "COLUMN" + i);
|
|
4521
4570
|
} finally {
|
|
4522
|
-
|
|
4571
|
+
x.enable();
|
|
4523
4572
|
}
|
|
4524
4573
|
setTimeout(() => {
|
|
4525
4574
|
var i;
|
|
@@ -5002,11 +5051,11 @@ const _d = {
|
|
|
5002
5051
|
t.outputConnection,
|
|
5003
5052
|
n.outputConnection
|
|
5004
5053
|
)) {
|
|
5005
|
-
|
|
5054
|
+
x.setGroup(e.group);
|
|
5006
5055
|
const o = this.prevBlocks_[0];
|
|
5007
5056
|
o !== t && (t.unplug(), o && !o.isDisposed() && !o.isShadow() && this.getInput("A").connection.connect(o.outputConnection));
|
|
5008
5057
|
const i = this.prevBlocks_[1];
|
|
5009
|
-
i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(),
|
|
5058
|
+
i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(), x.setGroup(!1);
|
|
5010
5059
|
}
|
|
5011
5060
|
this.prevBlocks_[0] = this.getInputTargetBlock("A"), this.prevBlocks_[1] = this.getInputTargetBlock("B");
|
|
5012
5061
|
}
|
|
@@ -5348,7 +5397,7 @@ const dd = {
|
|
|
5348
5397
|
s && !s.workspace.connectionChecker.doTypeChecks(
|
|
5349
5398
|
s.outputConnection,
|
|
5350
5399
|
o
|
|
5351
|
-
) && (
|
|
5400
|
+
) && (x.setGroup(e.group), o === this.prevParentConnection_ ? (this.unplug(), o.getSourceBlock().bumpNeighbours()) : (s.unplug(), s.bumpNeighbours()), x.setGroup(!1));
|
|
5352
5401
|
}
|
|
5353
5402
|
this.prevParentConnection_ = o;
|
|
5354
5403
|
}
|
|
@@ -5438,16 +5487,16 @@ const gd = /* @__PURE__ */ new Set([
|
|
|
5438
5487
|
},
|
|
5439
5488
|
onchange: function(e) {
|
|
5440
5489
|
const t = this.workspace;
|
|
5441
|
-
if (!t.isDragging || t.isDragging() || e.type !==
|
|
5490
|
+
if (!t.isDragging || t.isDragging() || e.type !== x.BLOCK_MOVE && e.type !== x.BLOCK_CREATE)
|
|
5442
5491
|
return;
|
|
5443
5492
|
const n = this.getSurroundLoop();
|
|
5444
5493
|
if (this.setWarningText(
|
|
5445
5494
|
n ? null : T.LOOP_FLOW_CONTROL_WARNING
|
|
5446
5495
|
), !this.isInFlyout)
|
|
5447
5496
|
try {
|
|
5448
|
-
|
|
5497
|
+
x.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
|
|
5449
5498
|
} finally {
|
|
5450
|
-
|
|
5499
|
+
x.setRecordUndo(!0);
|
|
5451
5500
|
}
|
|
5452
5501
|
}
|
|
5453
5502
|
};
|
|
@@ -6725,14 +6774,14 @@ const bd = {
|
|
|
6725
6774
|
o.setKeyName(`__param@${t.id}__`, t.name, !1);
|
|
6726
6775
|
else
|
|
6727
6776
|
try {
|
|
6728
|
-
|
|
6777
|
+
x.disable(), o = ns(
|
|
6729
6778
|
this.workspace,
|
|
6730
6779
|
`__param@${t.id}__`,
|
|
6731
6780
|
t.name,
|
|
6732
6781
|
!1
|
|
6733
6782
|
), o.outputConnection.connect(n);
|
|
6734
6783
|
} finally {
|
|
6735
|
-
|
|
6784
|
+
x.enable();
|
|
6736
6785
|
}
|
|
6737
6786
|
}
|
|
6738
6787
|
}
|
|
@@ -6765,7 +6814,7 @@ const Cd = z.xml, Nd = {
|
|
|
6765
6814
|
var t;
|
|
6766
6815
|
if (e.type === Ie.STATE_CHANGE)
|
|
6767
6816
|
this.checkWarning_();
|
|
6768
|
-
else if (e.type ===
|
|
6817
|
+
else if (e.type === x.BLOCK_DRAG) {
|
|
6769
6818
|
const n = e;
|
|
6770
6819
|
if (n.isStart || !((t = n.blocks) != null && t.find((o) => o.id === this.id)))
|
|
6771
6820
|
return;
|
|
@@ -7497,89 +7546,349 @@ r.forBlock.variable_set_v1 = function(e) {
|
|
|
7497
7546
|
return `${t} = ${n};
|
|
7498
7547
|
`;
|
|
7499
7548
|
};
|
|
7500
|
-
|
|
7549
|
+
z.xml;
|
|
7550
|
+
const lr = {
|
|
7551
|
+
name: "INTERFACE_CATEGORY"
|
|
7552
|
+
}, ve = z.xml;
|
|
7501
7553
|
function Ud() {
|
|
7502
7554
|
const e = [];
|
|
7503
|
-
if (
|
|
7504
|
-
{
|
|
7505
|
-
const t = J.createElement("label");
|
|
7506
|
-
t.setAttribute("text", T.LABEL_OPERATION), e.push(t);
|
|
7507
|
-
}
|
|
7508
|
-
{
|
|
7509
|
-
const t = J.createElement("block");
|
|
7510
|
-
t.setAttribute("type", "add_data_v1"), e.push(t);
|
|
7511
|
-
}
|
|
7555
|
+
if (Oh()) {
|
|
7512
7556
|
{
|
|
7513
|
-
const t =
|
|
7514
|
-
t.setAttribute("
|
|
7557
|
+
const t = ve.createElement("label");
|
|
7558
|
+
t.setAttribute("text", T.LABEL_PAGE), e.push(t);
|
|
7515
7559
|
}
|
|
7516
|
-
{
|
|
7517
|
-
const t =
|
|
7518
|
-
t.setAttribute("type", "
|
|
7560
|
+
if (or().length > 0) {
|
|
7561
|
+
const t = ve.createElement("block");
|
|
7562
|
+
t.setAttribute("type", "get_page_argument_v1"), e.push(t);
|
|
7519
7563
|
}
|
|
7564
|
+
}
|
|
7565
|
+
if (fh()) {
|
|
7520
7566
|
{
|
|
7521
|
-
const t =
|
|
7522
|
-
t.setAttribute("
|
|
7567
|
+
const t = ve.createElement("label");
|
|
7568
|
+
t.setAttribute("text", T.LABEL_COMP), e.push(t);
|
|
7523
7569
|
}
|
|
7524
|
-
{
|
|
7525
|
-
|
|
7526
|
-
|
|
7570
|
+
if (Kn().length > 0) {
|
|
7571
|
+
{
|
|
7572
|
+
const t = ve.createElement("block");
|
|
7573
|
+
t.setAttribute("type", "comp_method_impl_v1"), e.push(t);
|
|
7574
|
+
}
|
|
7575
|
+
{
|
|
7576
|
+
const t = ve.createElement("block");
|
|
7577
|
+
t.setAttribute("type", "set_comp_method_output_v1"), e.push(t);
|
|
7578
|
+
}
|
|
7527
7579
|
}
|
|
7528
|
-
{
|
|
7529
|
-
const t =
|
|
7530
|
-
t.setAttribute("type", "
|
|
7580
|
+
if (Kn().length > 0) {
|
|
7581
|
+
const t = ve.createElement("block");
|
|
7582
|
+
t.setAttribute("type", "trigger_comp_event_v1"), e.push(t);
|
|
7531
7583
|
}
|
|
7584
|
+
}
|
|
7585
|
+
{
|
|
7586
|
+
const t = ve.createElement("label");
|
|
7587
|
+
t.setAttribute("text", T.LABEL_EVENT), e.push(t);
|
|
7588
|
+
}
|
|
7589
|
+
{
|
|
7590
|
+
const t = ve.createElement("block");
|
|
7591
|
+
t.setAttribute("type", "on_node_event_v1"), e.push(t);
|
|
7592
|
+
}
|
|
7593
|
+
{
|
|
7594
|
+
const t = ve.createElement("block");
|
|
7595
|
+
t.setAttribute("type", "on_node_event_as_v1"), e.push(t);
|
|
7596
|
+
}
|
|
7597
|
+
{
|
|
7598
|
+
const t = ve.createElement("label");
|
|
7599
|
+
t.setAttribute("text", T.LABEL_METHOD), e.push(t);
|
|
7600
|
+
}
|
|
7601
|
+
{
|
|
7602
|
+
const t = ve.createElement("block");
|
|
7603
|
+
t.setAttribute("type", "call_node_method_v1"), e.push(t);
|
|
7604
|
+
}
|
|
7605
|
+
{
|
|
7606
|
+
const t = ve.createElement("block");
|
|
7607
|
+
t.setAttribute("type", "call_node_method_as_v1"), e.push(t);
|
|
7608
|
+
}
|
|
7609
|
+
{
|
|
7610
|
+
const t = ve.createElement("label");
|
|
7611
|
+
t.setAttribute("text", T.LABEL_PROPERTY), e.push(t);
|
|
7612
|
+
}
|
|
7613
|
+
{
|
|
7614
|
+
const t = ve.createElement("block");
|
|
7615
|
+
t.setAttribute("type", "get_node_prop_v1"), e.push(t);
|
|
7616
|
+
}
|
|
7617
|
+
{
|
|
7618
|
+
const t = ve.createElement("block");
|
|
7619
|
+
t.setAttribute("type", "get_node_prop_as_v1"), e.push(t);
|
|
7620
|
+
}
|
|
7621
|
+
{
|
|
7622
|
+
const t = ve.createElement("block");
|
|
7623
|
+
t.setAttribute("type", "set_node_prop_v1"), e.push(t);
|
|
7624
|
+
}
|
|
7625
|
+
{
|
|
7626
|
+
const t = ve.createElement("block");
|
|
7627
|
+
t.setAttribute("type", "set_node_prop_as_v1"), e.push(t);
|
|
7628
|
+
}
|
|
7629
|
+
{
|
|
7630
|
+
const t = ve.createElement("label");
|
|
7631
|
+
t.setAttribute("text", T.LABEL_OTHER), e.push(t);
|
|
7632
|
+
}
|
|
7633
|
+
{
|
|
7634
|
+
const t = ve.createElement("block");
|
|
7635
|
+
t.setAttribute("type", "get_node_v1"), e.push(t);
|
|
7636
|
+
}
|
|
7637
|
+
{
|
|
7638
|
+
const t = ve.createElement("block");
|
|
7639
|
+
t.setAttribute("type", "app_env_v1"), e.push(t);
|
|
7640
|
+
}
|
|
7641
|
+
if (os().length > 0) {
|
|
7642
|
+
const t = ve.createElement("block");
|
|
7643
|
+
t.setAttribute("type", "navigate_to_v1"), e.push(t);
|
|
7644
|
+
}
|
|
7645
|
+
return e;
|
|
7646
|
+
}
|
|
7647
|
+
const yo = {
|
|
7648
|
+
name: "UI_CATEGORY",
|
|
7649
|
+
callback: Ud
|
|
7650
|
+
}, yn = z.xml;
|
|
7651
|
+
function xd() {
|
|
7652
|
+
const e = [];
|
|
7653
|
+
{
|
|
7654
|
+
const t = yn.createElement("label");
|
|
7655
|
+
t.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), e.push(t);
|
|
7656
|
+
}
|
|
7657
|
+
{
|
|
7658
|
+
const t = yn.createElement("block");
|
|
7659
|
+
t.setAttribute("type", "procedure_def_v1");
|
|
7532
7660
|
{
|
|
7533
|
-
const
|
|
7534
|
-
|
|
7661
|
+
const n = yn.createElement("field");
|
|
7662
|
+
n.setAttribute("name", "NAME");
|
|
7663
|
+
const o = yn.createTextNode(
|
|
7664
|
+
T.PROCEDURE_DEFAULT_NAME
|
|
7665
|
+
);
|
|
7666
|
+
n.appendChild(o), t.appendChild(n);
|
|
7535
7667
|
}
|
|
7668
|
+
e.push(t);
|
|
7669
|
+
}
|
|
7670
|
+
{
|
|
7671
|
+
const t = yn.createElement("block");
|
|
7672
|
+
t.setAttribute("type", "procedure_return_v1"), e.push(t);
|
|
7673
|
+
}
|
|
7674
|
+
return e;
|
|
7675
|
+
}
|
|
7676
|
+
const Bt = {
|
|
7677
|
+
name: "PROCEDURE_CATEGORY",
|
|
7678
|
+
callback: xd
|
|
7679
|
+
}, io = z.xml;
|
|
7680
|
+
function wd() {
|
|
7681
|
+
const e = Pt(), t = [];
|
|
7682
|
+
{
|
|
7683
|
+
const o = io.createElement("label");
|
|
7684
|
+
o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(o);
|
|
7685
|
+
}
|
|
7686
|
+
{
|
|
7687
|
+
const o = document.createElement("button");
|
|
7688
|
+
o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), e.registerButtonCallback(
|
|
7689
|
+
"CREATE_VARIABLE",
|
|
7690
|
+
function(i) {
|
|
7691
|
+
In.createVariableButtonHandler(
|
|
7692
|
+
i.getTargetWorkspace()
|
|
7693
|
+
);
|
|
7694
|
+
}
|
|
7695
|
+
), t.push(o);
|
|
7696
|
+
}
|
|
7697
|
+
const n = e.getVariablesOfType("");
|
|
7698
|
+
if (n.length <= 0)
|
|
7699
|
+
return t;
|
|
7700
|
+
n.sort(In.compareByName);
|
|
7701
|
+
{
|
|
7702
|
+
const o = io.createElement("label");
|
|
7703
|
+
o.setAttribute("text", T.LABEL_CREATED), t.push(o);
|
|
7704
|
+
}
|
|
7705
|
+
return n.forEach((o) => {
|
|
7536
7706
|
{
|
|
7537
|
-
const
|
|
7538
|
-
|
|
7707
|
+
const i = io.createElement("block");
|
|
7708
|
+
i.setAttribute("type", "variable_get_v1"), i.appendChild(In.generateVariableFieldDom(o)), t.push(i);
|
|
7539
7709
|
}
|
|
7540
7710
|
{
|
|
7541
|
-
const
|
|
7542
|
-
|
|
7711
|
+
const i = io.createElement("block");
|
|
7712
|
+
i.setAttribute("type", "variable_set_v1"), i.appendChild(In.generateVariableFieldDom(o)), t.push(i);
|
|
7543
7713
|
}
|
|
7714
|
+
}), t;
|
|
7715
|
+
}
|
|
7716
|
+
const Rt = {
|
|
7717
|
+
name: "VARIABLE_CATEGORY",
|
|
7718
|
+
callback: wd
|
|
7719
|
+
}, en = z.xml;
|
|
7720
|
+
function Vd(e) {
|
|
7721
|
+
const t = [];
|
|
7722
|
+
if (e === "flow") {
|
|
7544
7723
|
{
|
|
7545
|
-
const
|
|
7546
|
-
|
|
7724
|
+
const n = en.createElement("block");
|
|
7725
|
+
n.setAttribute("type", "on_flow_state_event_v1"), t.push(n);
|
|
7547
7726
|
}
|
|
7548
7727
|
{
|
|
7549
|
-
const
|
|
7550
|
-
|
|
7728
|
+
const n = en.createElement("block");
|
|
7729
|
+
n.setAttribute("type", "compute_debug_trace_v1");
|
|
7551
7730
|
{
|
|
7552
|
-
const
|
|
7553
|
-
|
|
7731
|
+
const o = en.createElement("value");
|
|
7732
|
+
o.setAttribute("name", "OBJECT");
|
|
7554
7733
|
{
|
|
7555
|
-
const
|
|
7556
|
-
|
|
7734
|
+
const i = en.createElement("shadow");
|
|
7735
|
+
i.setAttribute("type", "text_v1");
|
|
7557
7736
|
{
|
|
7558
|
-
const
|
|
7559
|
-
|
|
7737
|
+
const s = en.createElement("field");
|
|
7738
|
+
s.setAttribute("name", "TEXT"), i.appendChild(s);
|
|
7560
7739
|
}
|
|
7561
|
-
|
|
7740
|
+
o.appendChild(i);
|
|
7562
7741
|
}
|
|
7563
|
-
|
|
7742
|
+
n.appendChild(o);
|
|
7564
7743
|
}
|
|
7565
|
-
|
|
7744
|
+
t.push(n);
|
|
7745
|
+
}
|
|
7746
|
+
} else if (e === "func") {
|
|
7747
|
+
if (fn("func").length > 0) {
|
|
7748
|
+
const n = en.createElement("block");
|
|
7749
|
+
n.setAttribute("type", "call_func_internal_v1"), t.push(n);
|
|
7750
|
+
}
|
|
7751
|
+
} else
|
|
7752
|
+
console.assert(!1);
|
|
7753
|
+
return t;
|
|
7754
|
+
}
|
|
7755
|
+
const Io = {
|
|
7756
|
+
name: "FLOW_CATEGORY",
|
|
7757
|
+
callback: Vd
|
|
7758
|
+
}, Et = z.xml;
|
|
7759
|
+
function Yd(e) {
|
|
7760
|
+
const { activeFunc: t } = P.compute, n = [];
|
|
7761
|
+
if (e === "func") {
|
|
7762
|
+
{
|
|
7763
|
+
const o = Et.createElement("block");
|
|
7764
|
+
o.setAttribute("type", "func_entry_v1"), n.push(o);
|
|
7765
|
+
}
|
|
7766
|
+
if (t.outputs.length > 0) {
|
|
7767
|
+
const o = Et.createElement("block");
|
|
7768
|
+
o.setAttribute("type", "set_func_output_v1"), n.push(o);
|
|
7566
7769
|
}
|
|
7567
7770
|
{
|
|
7568
|
-
const
|
|
7569
|
-
|
|
7771
|
+
const o = Et.createElement("block");
|
|
7772
|
+
o.setAttribute("type", "procedure_return_v1"), n.push(o);
|
|
7773
|
+
}
|
|
7774
|
+
if (fn("func").length > 0) {
|
|
7775
|
+
const o = Et.createElement("block");
|
|
7776
|
+
o.setAttribute("type", "call_func_internal_v1"), n.push(o);
|
|
7570
7777
|
}
|
|
7571
7778
|
{
|
|
7572
|
-
const
|
|
7573
|
-
|
|
7779
|
+
const o = Et.createElement("block");
|
|
7780
|
+
o.setAttribute("type", "compute_debug_trace_v1");
|
|
7574
7781
|
{
|
|
7575
|
-
const
|
|
7576
|
-
|
|
7782
|
+
const i = Et.createElement("value");
|
|
7783
|
+
i.setAttribute("name", "OBJECT");
|
|
7577
7784
|
{
|
|
7578
|
-
const
|
|
7579
|
-
|
|
7785
|
+
const s = Et.createElement("shadow");
|
|
7786
|
+
s.setAttribute("type", "text_v1");
|
|
7580
7787
|
{
|
|
7581
|
-
const
|
|
7582
|
-
|
|
7788
|
+
const a = Et.createElement("field");
|
|
7789
|
+
a.setAttribute("name", "TEXT"), s.appendChild(a);
|
|
7790
|
+
}
|
|
7791
|
+
i.appendChild(s);
|
|
7792
|
+
}
|
|
7793
|
+
o.appendChild(i);
|
|
7794
|
+
}
|
|
7795
|
+
n.push(o);
|
|
7796
|
+
}
|
|
7797
|
+
} else if (e === "flow") {
|
|
7798
|
+
if (fn("func").length > 0) {
|
|
7799
|
+
const o = Et.createElement("block");
|
|
7800
|
+
o.setAttribute("type", "call_func_internal_v1"), n.push(o);
|
|
7801
|
+
}
|
|
7802
|
+
} else
|
|
7803
|
+
console.assert(!1);
|
|
7804
|
+
return n;
|
|
7805
|
+
}
|
|
7806
|
+
const bo = {
|
|
7807
|
+
name: "FUNC_CATEGORY",
|
|
7808
|
+
callback: Yd
|
|
7809
|
+
}, J = z.xml;
|
|
7810
|
+
function Kd() {
|
|
7811
|
+
const e = [];
|
|
7812
|
+
if (Tn().length > 0) {
|
|
7813
|
+
{
|
|
7814
|
+
const t = J.createElement("label");
|
|
7815
|
+
t.setAttribute("text", T.LABEL_OPERATION), e.push(t);
|
|
7816
|
+
}
|
|
7817
|
+
{
|
|
7818
|
+
const t = J.createElement("block");
|
|
7819
|
+
t.setAttribute("type", "add_data_v1"), e.push(t);
|
|
7820
|
+
}
|
|
7821
|
+
{
|
|
7822
|
+
const t = J.createElement("block");
|
|
7823
|
+
t.setAttribute("type", "delete_data_v1"), e.push(t);
|
|
7824
|
+
}
|
|
7825
|
+
{
|
|
7826
|
+
const t = J.createElement("block");
|
|
7827
|
+
t.setAttribute("type", "update_data_v1"), e.push(t);
|
|
7828
|
+
}
|
|
7829
|
+
{
|
|
7830
|
+
const t = J.createElement("block");
|
|
7831
|
+
t.setAttribute("type", "query_data_v1"), e.push(t);
|
|
7832
|
+
}
|
|
7833
|
+
{
|
|
7834
|
+
const t = J.createElement("label");
|
|
7835
|
+
t.setAttribute("text", T.LABEL_TABLE), e.push(t);
|
|
7836
|
+
}
|
|
7837
|
+
{
|
|
7838
|
+
const t = J.createElement("block");
|
|
7839
|
+
t.setAttribute("type", "select_table_v1"), e.push(t);
|
|
7840
|
+
}
|
|
7841
|
+
{
|
|
7842
|
+
const t = J.createElement("block");
|
|
7843
|
+
t.setAttribute("type", "select_column_v1"), e.push(t);
|
|
7844
|
+
}
|
|
7845
|
+
{
|
|
7846
|
+
const t = J.createElement("block");
|
|
7847
|
+
t.setAttribute("type", "update_column_v1"), e.push(t);
|
|
7848
|
+
}
|
|
7849
|
+
{
|
|
7850
|
+
const t = J.createElement("label");
|
|
7851
|
+
t.setAttribute("text", T.LABEL_CONDITION), e.push(t);
|
|
7852
|
+
}
|
|
7853
|
+
{
|
|
7854
|
+
const t = J.createElement("block");
|
|
7855
|
+
t.setAttribute("type", "cond_logic_v1"), e.push(t);
|
|
7856
|
+
}
|
|
7857
|
+
{
|
|
7858
|
+
const t = J.createElement("block");
|
|
7859
|
+
t.setAttribute("type", "cond_atomic_v1");
|
|
7860
|
+
{
|
|
7861
|
+
const n = J.createElement("value");
|
|
7862
|
+
n.setAttribute("name", "VALUE");
|
|
7863
|
+
{
|
|
7864
|
+
const o = J.createElement("shadow");
|
|
7865
|
+
o.setAttribute("type", "text_v1");
|
|
7866
|
+
{
|
|
7867
|
+
const i = J.createElement("field");
|
|
7868
|
+
i.setAttribute("name", "TEXT"), o.appendChild(i);
|
|
7869
|
+
}
|
|
7870
|
+
n.appendChild(o);
|
|
7871
|
+
}
|
|
7872
|
+
t.appendChild(n);
|
|
7873
|
+
}
|
|
7874
|
+
e.push(t);
|
|
7875
|
+
}
|
|
7876
|
+
{
|
|
7877
|
+
const t = J.createElement("label");
|
|
7878
|
+
t.setAttribute("text", T.LABEL_QUERY_EXTRA), e.push(t);
|
|
7879
|
+
}
|
|
7880
|
+
{
|
|
7881
|
+
const t = J.createElement("block");
|
|
7882
|
+
t.setAttribute("type", "query_extra_limit_v1");
|
|
7883
|
+
{
|
|
7884
|
+
const n = J.createElement("value");
|
|
7885
|
+
n.setAttribute("name", "OFFSET");
|
|
7886
|
+
{
|
|
7887
|
+
const o = J.createElement("shadow");
|
|
7888
|
+
o.setAttribute("type", "math_number_v1");
|
|
7889
|
+
{
|
|
7890
|
+
const i = J.createElement("field");
|
|
7891
|
+
i.setAttribute("name", "NUM");
|
|
7583
7892
|
const s = J.createTextNode("0");
|
|
7584
7893
|
i.appendChild(s), o.appendChild(i);
|
|
7585
7894
|
}
|
|
@@ -7648,269 +7957,8 @@ function Ud() {
|
|
|
7648
7957
|
}
|
|
7649
7958
|
return e;
|
|
7650
7959
|
}
|
|
7651
|
-
const yo = {
|
|
7652
|
-
name: "DATA_CATEGORY",
|
|
7653
|
-
callback: Ud
|
|
7654
|
-
}, en = z.xml;
|
|
7655
|
-
function xd(e) {
|
|
7656
|
-
const t = [];
|
|
7657
|
-
if (e === "flow") {
|
|
7658
|
-
{
|
|
7659
|
-
const n = en.createElement("block");
|
|
7660
|
-
n.setAttribute("type", "on_flow_state_event_v1"), t.push(n);
|
|
7661
|
-
}
|
|
7662
|
-
{
|
|
7663
|
-
const n = en.createElement("block");
|
|
7664
|
-
n.setAttribute("type", "compute_debug_trace_v1");
|
|
7665
|
-
{
|
|
7666
|
-
const o = en.createElement("value");
|
|
7667
|
-
o.setAttribute("name", "OBJECT");
|
|
7668
|
-
{
|
|
7669
|
-
const i = en.createElement("shadow");
|
|
7670
|
-
i.setAttribute("type", "text_v1");
|
|
7671
|
-
{
|
|
7672
|
-
const s = en.createElement("field");
|
|
7673
|
-
s.setAttribute("name", "TEXT"), i.appendChild(s);
|
|
7674
|
-
}
|
|
7675
|
-
o.appendChild(i);
|
|
7676
|
-
}
|
|
7677
|
-
n.appendChild(o);
|
|
7678
|
-
}
|
|
7679
|
-
t.push(n);
|
|
7680
|
-
}
|
|
7681
|
-
} else if (e === "func") {
|
|
7682
|
-
if (fn("func").length > 0) {
|
|
7683
|
-
const n = en.createElement("block");
|
|
7684
|
-
n.setAttribute("type", "call_func_internal_v1"), t.push(n);
|
|
7685
|
-
}
|
|
7686
|
-
} else
|
|
7687
|
-
console.assert(!1);
|
|
7688
|
-
return t;
|
|
7689
|
-
}
|
|
7690
|
-
const Io = {
|
|
7691
|
-
name: "FLOW_CATEGORY",
|
|
7692
|
-
callback: xd
|
|
7693
|
-
}, Et = z.xml;
|
|
7694
|
-
function wd(e) {
|
|
7695
|
-
const { activeFunc: t } = x.compute, n = [];
|
|
7696
|
-
if (e === "func") {
|
|
7697
|
-
{
|
|
7698
|
-
const o = Et.createElement("block");
|
|
7699
|
-
o.setAttribute("type", "func_entry_v1"), n.push(o);
|
|
7700
|
-
}
|
|
7701
|
-
if (t.outputs.length > 0) {
|
|
7702
|
-
const o = Et.createElement("block");
|
|
7703
|
-
o.setAttribute("type", "set_func_output_v1"), n.push(o);
|
|
7704
|
-
}
|
|
7705
|
-
{
|
|
7706
|
-
const o = Et.createElement("block");
|
|
7707
|
-
o.setAttribute("type", "procedure_return_v1"), n.push(o);
|
|
7708
|
-
}
|
|
7709
|
-
if (fn("func").length > 0) {
|
|
7710
|
-
const o = Et.createElement("block");
|
|
7711
|
-
o.setAttribute("type", "call_func_internal_v1"), n.push(o);
|
|
7712
|
-
}
|
|
7713
|
-
{
|
|
7714
|
-
const o = Et.createElement("block");
|
|
7715
|
-
o.setAttribute("type", "compute_debug_trace_v1");
|
|
7716
|
-
{
|
|
7717
|
-
const i = Et.createElement("value");
|
|
7718
|
-
i.setAttribute("name", "OBJECT");
|
|
7719
|
-
{
|
|
7720
|
-
const s = Et.createElement("shadow");
|
|
7721
|
-
s.setAttribute("type", "text_v1");
|
|
7722
|
-
{
|
|
7723
|
-
const a = Et.createElement("field");
|
|
7724
|
-
a.setAttribute("name", "TEXT"), s.appendChild(a);
|
|
7725
|
-
}
|
|
7726
|
-
i.appendChild(s);
|
|
7727
|
-
}
|
|
7728
|
-
o.appendChild(i);
|
|
7729
|
-
}
|
|
7730
|
-
n.push(o);
|
|
7731
|
-
}
|
|
7732
|
-
} else if (e === "flow") {
|
|
7733
|
-
if (fn("func").length > 0) {
|
|
7734
|
-
const o = Et.createElement("block");
|
|
7735
|
-
o.setAttribute("type", "call_func_internal_v1"), n.push(o);
|
|
7736
|
-
}
|
|
7737
|
-
} else
|
|
7738
|
-
console.assert(!1);
|
|
7739
|
-
return n;
|
|
7740
|
-
}
|
|
7741
|
-
const bo = {
|
|
7742
|
-
name: "FUNC_CATEGORY",
|
|
7743
|
-
callback: wd
|
|
7744
|
-
};
|
|
7745
|
-
z.xml;
|
|
7746
|
-
const lr = {
|
|
7747
|
-
name: "INTERFACE_CATEGORY"
|
|
7748
|
-
}, yn = z.xml;
|
|
7749
|
-
function Vd() {
|
|
7750
|
-
const e = [];
|
|
7751
|
-
{
|
|
7752
|
-
const t = yn.createElement("label");
|
|
7753
|
-
t.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), e.push(t);
|
|
7754
|
-
}
|
|
7755
|
-
{
|
|
7756
|
-
const t = yn.createElement("block");
|
|
7757
|
-
t.setAttribute("type", "procedure_def_v1");
|
|
7758
|
-
{
|
|
7759
|
-
const n = yn.createElement("field");
|
|
7760
|
-
n.setAttribute("name", "NAME");
|
|
7761
|
-
const o = yn.createTextNode(
|
|
7762
|
-
T.PROCEDURE_DEFAULT_NAME
|
|
7763
|
-
);
|
|
7764
|
-
n.appendChild(o), t.appendChild(n);
|
|
7765
|
-
}
|
|
7766
|
-
e.push(t);
|
|
7767
|
-
}
|
|
7768
|
-
{
|
|
7769
|
-
const t = yn.createElement("block");
|
|
7770
|
-
t.setAttribute("type", "procedure_return_v1"), e.push(t);
|
|
7771
|
-
}
|
|
7772
|
-
return e;
|
|
7773
|
-
}
|
|
7774
|
-
const Bt = {
|
|
7775
|
-
name: "PROCEDURE_CATEGORY",
|
|
7776
|
-
callback: Vd
|
|
7777
|
-
}, ve = z.xml;
|
|
7778
|
-
function Yd() {
|
|
7779
|
-
const e = [];
|
|
7780
|
-
if (Oh()) {
|
|
7781
|
-
{
|
|
7782
|
-
const t = ve.createElement("label");
|
|
7783
|
-
t.setAttribute("text", T.LABEL_PAGE), e.push(t);
|
|
7784
|
-
}
|
|
7785
|
-
if (or().length > 0) {
|
|
7786
|
-
const t = ve.createElement("block");
|
|
7787
|
-
t.setAttribute("type", "get_page_argument_v1"), e.push(t);
|
|
7788
|
-
}
|
|
7789
|
-
}
|
|
7790
|
-
if (fh()) {
|
|
7791
|
-
{
|
|
7792
|
-
const t = ve.createElement("label");
|
|
7793
|
-
t.setAttribute("text", T.LABEL_COMP), e.push(t);
|
|
7794
|
-
}
|
|
7795
|
-
if (Kn().length > 0) {
|
|
7796
|
-
{
|
|
7797
|
-
const t = ve.createElement("block");
|
|
7798
|
-
t.setAttribute("type", "comp_method_impl_v1"), e.push(t);
|
|
7799
|
-
}
|
|
7800
|
-
{
|
|
7801
|
-
const t = ve.createElement("block");
|
|
7802
|
-
t.setAttribute("type", "set_comp_method_output_v1"), e.push(t);
|
|
7803
|
-
}
|
|
7804
|
-
}
|
|
7805
|
-
if (Kn().length > 0) {
|
|
7806
|
-
const t = ve.createElement("block");
|
|
7807
|
-
t.setAttribute("type", "trigger_comp_event_v1"), e.push(t);
|
|
7808
|
-
}
|
|
7809
|
-
}
|
|
7810
|
-
{
|
|
7811
|
-
const t = ve.createElement("label");
|
|
7812
|
-
t.setAttribute("text", T.LABEL_EVENT), e.push(t);
|
|
7813
|
-
}
|
|
7814
|
-
{
|
|
7815
|
-
const t = ve.createElement("block");
|
|
7816
|
-
t.setAttribute("type", "on_node_event_v1"), e.push(t);
|
|
7817
|
-
}
|
|
7818
|
-
{
|
|
7819
|
-
const t = ve.createElement("block");
|
|
7820
|
-
t.setAttribute("type", "on_node_event_as_v1"), e.push(t);
|
|
7821
|
-
}
|
|
7822
|
-
{
|
|
7823
|
-
const t = ve.createElement("label");
|
|
7824
|
-
t.setAttribute("text", T.LABEL_METHOD), e.push(t);
|
|
7825
|
-
}
|
|
7826
|
-
{
|
|
7827
|
-
const t = ve.createElement("block");
|
|
7828
|
-
t.setAttribute("type", "call_node_method_v1"), e.push(t);
|
|
7829
|
-
}
|
|
7830
|
-
{
|
|
7831
|
-
const t = ve.createElement("block");
|
|
7832
|
-
t.setAttribute("type", "call_node_method_as_v1"), e.push(t);
|
|
7833
|
-
}
|
|
7834
|
-
{
|
|
7835
|
-
const t = ve.createElement("label");
|
|
7836
|
-
t.setAttribute("text", T.LABEL_PROPERTY), e.push(t);
|
|
7837
|
-
}
|
|
7838
|
-
{
|
|
7839
|
-
const t = ve.createElement("block");
|
|
7840
|
-
t.setAttribute("type", "get_node_prop_v1"), e.push(t);
|
|
7841
|
-
}
|
|
7842
|
-
{
|
|
7843
|
-
const t = ve.createElement("block");
|
|
7844
|
-
t.setAttribute("type", "get_node_prop_as_v1"), e.push(t);
|
|
7845
|
-
}
|
|
7846
|
-
{
|
|
7847
|
-
const t = ve.createElement("block");
|
|
7848
|
-
t.setAttribute("type", "set_node_prop_v1"), e.push(t);
|
|
7849
|
-
}
|
|
7850
|
-
{
|
|
7851
|
-
const t = ve.createElement("block");
|
|
7852
|
-
t.setAttribute("type", "set_node_prop_as_v1"), e.push(t);
|
|
7853
|
-
}
|
|
7854
|
-
{
|
|
7855
|
-
const t = ve.createElement("label");
|
|
7856
|
-
t.setAttribute("text", T.LABEL_OTHER), e.push(t);
|
|
7857
|
-
}
|
|
7858
|
-
{
|
|
7859
|
-
const t = ve.createElement("block");
|
|
7860
|
-
t.setAttribute("type", "get_node_v1"), e.push(t);
|
|
7861
|
-
}
|
|
7862
|
-
{
|
|
7863
|
-
const t = ve.createElement("block");
|
|
7864
|
-
t.setAttribute("type", "app_env_v1"), e.push(t);
|
|
7865
|
-
}
|
|
7866
|
-
if (os().length > 0) {
|
|
7867
|
-
const t = ve.createElement("block");
|
|
7868
|
-
t.setAttribute("type", "navigate_to_v1"), e.push(t);
|
|
7869
|
-
}
|
|
7870
|
-
return e;
|
|
7871
|
-
}
|
|
7872
7960
|
const Co = {
|
|
7873
|
-
name: "
|
|
7874
|
-
callback: Yd
|
|
7875
|
-
}, io = z.xml;
|
|
7876
|
-
function Kd() {
|
|
7877
|
-
const e = Pt(), t = [];
|
|
7878
|
-
{
|
|
7879
|
-
const o = io.createElement("label");
|
|
7880
|
-
o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(o);
|
|
7881
|
-
}
|
|
7882
|
-
{
|
|
7883
|
-
const o = document.createElement("button");
|
|
7884
|
-
o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), e.registerButtonCallback(
|
|
7885
|
-
"CREATE_VARIABLE",
|
|
7886
|
-
function(i) {
|
|
7887
|
-
In.createVariableButtonHandler(
|
|
7888
|
-
i.getTargetWorkspace()
|
|
7889
|
-
);
|
|
7890
|
-
}
|
|
7891
|
-
), t.push(o);
|
|
7892
|
-
}
|
|
7893
|
-
const n = e.getVariablesOfType("");
|
|
7894
|
-
if (n.length <= 0)
|
|
7895
|
-
return t;
|
|
7896
|
-
n.sort(In.compareByName);
|
|
7897
|
-
{
|
|
7898
|
-
const o = io.createElement("label");
|
|
7899
|
-
o.setAttribute("text", T.LABEL_CREATED), t.push(o);
|
|
7900
|
-
}
|
|
7901
|
-
return n.forEach((o) => {
|
|
7902
|
-
{
|
|
7903
|
-
const i = io.createElement("block");
|
|
7904
|
-
i.setAttribute("type", "variable_get_v1"), i.appendChild(In.generateVariableFieldDom(o)), t.push(i);
|
|
7905
|
-
}
|
|
7906
|
-
{
|
|
7907
|
-
const i = io.createElement("block");
|
|
7908
|
-
i.setAttribute("type", "variable_set_v1"), i.appendChild(In.generateVariableFieldDom(o)), t.push(i);
|
|
7909
|
-
}
|
|
7910
|
-
}), t;
|
|
7911
|
-
}
|
|
7912
|
-
const Rt = {
|
|
7913
|
-
name: "VARIABLE_CATEGORY",
|
|
7961
|
+
name: "DATA_CATEGORY",
|
|
7914
7962
|
callback: Kd
|
|
7915
7963
|
};
|
|
7916
7964
|
La.setConfirm(async (e, t) => {
|
|
@@ -7970,11 +8018,11 @@ class Fd {
|
|
|
7970
8018
|
contextMenu: !0,
|
|
7971
8019
|
shortcut: !0
|
|
7972
8020
|
}) {
|
|
7973
|
-
t && (this.blockCopyToStorageContextMenu(), this.blockPasteFromStorageContextMenu()), n && (
|
|
8021
|
+
t && (this.blockCopyToStorageContextMenu(), this.blockPasteFromStorageContextMenu()), n && (Fe.registry.unregister(
|
|
7974
8022
|
co.names.COPY
|
|
7975
|
-
),
|
|
8023
|
+
), Fe.registry.unregister(
|
|
7976
8024
|
co.names.CUT
|
|
7977
|
-
),
|
|
8025
|
+
), Fe.registry.unregister(
|
|
7978
8026
|
co.names.PASTE
|
|
7979
8027
|
), this.blockCopyToStorageShortcut(), this.blockCutToStorageShortcut(), this.blockPasteFromStorageShortcut());
|
|
7980
8028
|
}
|
|
@@ -8027,13 +8075,13 @@ class Fd {
|
|
|
8027
8075
|
an.registry.register(t);
|
|
8028
8076
|
}
|
|
8029
8077
|
blockCopyToStorageShortcut() {
|
|
8030
|
-
const t =
|
|
8078
|
+
const t = Fe.registry.createSerializedKey(
|
|
8031
8079
|
z.KeyCodes.C,
|
|
8032
8080
|
[z.KeyCodes.CTRL]
|
|
8033
|
-
), n =
|
|
8081
|
+
), n = Fe.registry.createSerializedKey(
|
|
8034
8082
|
z.KeyCodes.C,
|
|
8035
8083
|
[z.KeyCodes.ALT]
|
|
8036
|
-
), o =
|
|
8084
|
+
), o = Fe.registry.createSerializedKey(
|
|
8037
8085
|
z.KeyCodes.C,
|
|
8038
8086
|
[z.KeyCodes.META]
|
|
8039
8087
|
), i = {
|
|
@@ -8054,16 +8102,16 @@ class Fd {
|
|
|
8054
8102
|
},
|
|
8055
8103
|
keyCodes: [t, n, o]
|
|
8056
8104
|
};
|
|
8057
|
-
|
|
8105
|
+
Fe.registry.register(i);
|
|
8058
8106
|
}
|
|
8059
8107
|
blockCutToStorageShortcut() {
|
|
8060
|
-
const t =
|
|
8108
|
+
const t = Fe.registry.createSerializedKey(
|
|
8061
8109
|
z.KeyCodes.X,
|
|
8062
8110
|
[z.KeyCodes.CTRL]
|
|
8063
|
-
), n =
|
|
8111
|
+
), n = Fe.registry.createSerializedKey(
|
|
8064
8112
|
z.KeyCodes.X,
|
|
8065
8113
|
[z.KeyCodes.ALT]
|
|
8066
|
-
), o =
|
|
8114
|
+
), o = Fe.registry.createSerializedKey(
|
|
8067
8115
|
z.KeyCodes.X,
|
|
8068
8116
|
[z.KeyCodes.META]
|
|
8069
8117
|
), i = {
|
|
@@ -8084,16 +8132,16 @@ class Fd {
|
|
|
8084
8132
|
},
|
|
8085
8133
|
keyCodes: [t, n, o]
|
|
8086
8134
|
};
|
|
8087
|
-
|
|
8135
|
+
Fe.registry.register(i);
|
|
8088
8136
|
}
|
|
8089
8137
|
blockPasteFromStorageShortcut() {
|
|
8090
|
-
const t =
|
|
8138
|
+
const t = Fe.registry.createSerializedKey(
|
|
8091
8139
|
z.KeyCodes.V,
|
|
8092
8140
|
[z.KeyCodes.CTRL]
|
|
8093
|
-
), n =
|
|
8141
|
+
), n = Fe.registry.createSerializedKey(
|
|
8094
8142
|
z.KeyCodes.V,
|
|
8095
8143
|
[z.KeyCodes.ALT]
|
|
8096
|
-
), o =
|
|
8144
|
+
), o = Fe.registry.createSerializedKey(
|
|
8097
8145
|
z.KeyCodes.V,
|
|
8098
8146
|
[z.KeyCodes.META]
|
|
8099
8147
|
), i = {
|
|
@@ -8117,7 +8165,7 @@ class Fd {
|
|
|
8117
8165
|
},
|
|
8118
8166
|
keyCodes: [t, n, o]
|
|
8119
8167
|
};
|
|
8120
|
-
|
|
8168
|
+
Fe.registry.register(i);
|
|
8121
8169
|
}
|
|
8122
8170
|
}
|
|
8123
8171
|
class Hd {
|
|
@@ -8127,7 +8175,7 @@ class Hd {
|
|
|
8127
8175
|
const o = n.workspace;
|
|
8128
8176
|
if (!o)
|
|
8129
8177
|
return;
|
|
8130
|
-
o.setResizesEnabled(!1),
|
|
8178
|
+
o.setResizesEnabled(!1), x.setGroup(!0);
|
|
8131
8179
|
const i = o.getTopBlocks(!0);
|
|
8132
8180
|
let s = 0;
|
|
8133
8181
|
for (let a = 0, c; c = i[a]; a++) {
|
|
@@ -8136,7 +8184,7 @@ class Hd {
|
|
|
8136
8184
|
const l = c.getRelativeToSurfaceXY();
|
|
8137
8185
|
c.moveBy(-l.x, s - l.y, ["cleanup"]), c.snapToGrid(), s = c.getRelativeToSurfaceXY().y + c.getHeightWidth().height + 100;
|
|
8138
8186
|
}
|
|
8139
|
-
|
|
8187
|
+
x.setGroup(!1), o.setResizesEnabled(!0);
|
|
8140
8188
|
});
|
|
8141
8189
|
}
|
|
8142
8190
|
}
|
|
@@ -8153,7 +8201,7 @@ class $d {
|
|
|
8153
8201
|
});
|
|
8154
8202
|
}
|
|
8155
8203
|
}
|
|
8156
|
-
|
|
8204
|
+
Fe.registry.unregister(co.names.ESCAPE);
|
|
8157
8205
|
const Gd = new Fd();
|
|
8158
8206
|
Gd.init({ contextMenu: !0, shortcut: !0 });
|
|
8159
8207
|
const Wd = new Hd();
|
|
@@ -9040,7 +9088,7 @@ const Go = {
|
|
|
9040
9088
|
kind: "category",
|
|
9041
9089
|
name: "%{BKY_CATEGORY_UI}",
|
|
9042
9090
|
categorystyle: "ui_category",
|
|
9043
|
-
custom:
|
|
9091
|
+
custom: yo.name
|
|
9044
9092
|
},
|
|
9045
9093
|
hr,
|
|
9046
9094
|
Xo,
|
|
@@ -9089,7 +9137,7 @@ const Go = {
|
|
|
9089
9137
|
kind: "category",
|
|
9090
9138
|
name: "%{BKY_CATEGORY_DATA}",
|
|
9091
9139
|
categorystyle: "data_category",
|
|
9092
|
-
custom:
|
|
9140
|
+
custom: Co.name
|
|
9093
9141
|
},
|
|
9094
9142
|
Xo,
|
|
9095
9143
|
jo,
|
|
@@ -9130,7 +9178,7 @@ const Go = {
|
|
|
9130
9178
|
kind: "category",
|
|
9131
9179
|
name: "%{BKY_CATEGORY_DATA}",
|
|
9132
9180
|
categorystyle: "data_category",
|
|
9133
|
-
custom:
|
|
9181
|
+
custom: Co.name
|
|
9134
9182
|
},
|
|
9135
9183
|
Xo,
|
|
9136
9184
|
jo,
|
|
@@ -9159,7 +9207,7 @@ const Go = {
|
|
|
9159
9207
|
kind: "category",
|
|
9160
9208
|
name: "%{BKY_CATEGORY_UI}",
|
|
9161
9209
|
categorystyle: "ui_category",
|
|
9162
|
-
custom:
|
|
9210
|
+
custom: yo.name
|
|
9163
9211
|
},
|
|
9164
9212
|
hr,
|
|
9165
9213
|
Xo,
|
|
@@ -9808,7 +9856,7 @@ function Ge(e) {
|
|
|
9808
9856
|
newDraggableIndex: St
|
|
9809
9857
|
}, e));
|
|
9810
9858
|
}
|
|
9811
|
-
var A, fe, Y, _e, Ht, ho, de, Lt, ln, Je, Dn, St, so, Ue, sn = !1, ko = !1, Lo = [], Kt, nt, Ai, vi, ma, Ta, bn, nn, Mn, Pn = !1, ao = !1, fo,
|
|
9859
|
+
var A, fe, Y, _e, Ht, ho, de, Lt, ln, Je, Dn, St, so, Ue, sn = !1, ko = !1, Lo = [], Kt, nt, Ai, vi, ma, Ta, bn, nn, Mn, Pn = !1, ao = !1, fo, Ke, Oi = [], $i = !1, Bo = [], Qo = typeof document < "u", ro = Er, Ea = Wn || bt ? "cssFloat" : "float", Lf = Qo && !Ar && !Er && "draggable" in document.createElement("div"), Nr = function() {
|
|
9812
9860
|
if (Qo) {
|
|
9813
9861
|
if (bt)
|
|
9814
9862
|
return !1;
|
|
@@ -10078,7 +10126,7 @@ D.prototype = /** @lends Sortable.prototype */
|
|
|
10078
10126
|
},
|
|
10079
10127
|
_onTouchMove: function(e) {
|
|
10080
10128
|
if (Kt) {
|
|
10081
|
-
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = Y && pn(Y, !0), a = Y && s && s.a, c = Y && s && s.d, l = ro &&
|
|
10129
|
+
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = Y && pn(Y, !0), a = Y && s && s.a, c = Y && s && s.d, l = ro && Ke && ga(Ke), h = (i.clientX - Kt.clientX + o.x) / (a || 1) + (l ? l[0] - Oi[0] : 0) / (a || 1), _ = (i.clientY - Kt.clientY + o.y) / (c || 1) + (l ? l[1] - Oi[1] : 0) / (c || 1);
|
|
10082
10130
|
if (!D.active && !sn) {
|
|
10083
10131
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
10084
10132
|
return;
|
|
@@ -10103,9 +10151,9 @@ D.prototype = /** @lends Sortable.prototype */
|
|
|
10103
10151
|
if (!Y) {
|
|
10104
10152
|
var e = this.options.fallbackOnBody ? document.body : _e, t = Ne(A, !0, ro, !0, e), n = this.options;
|
|
10105
10153
|
if (ro) {
|
|
10106
|
-
for (
|
|
10107
|
-
|
|
10108
|
-
|
|
10154
|
+
for (Ke = e; R(Ke, "position") === "static" && R(Ke, "transform") === "none" && Ke !== document; )
|
|
10155
|
+
Ke = Ke.parentNode;
|
|
10156
|
+
Ke !== document.body && Ke !== document.documentElement ? (Ke === document && (Ke = ht()), t.top += Ke.scrollTop, t.left += Ke.scrollLeft) : Ke = ht(), Oi = ga(Ke);
|
|
10109
10157
|
}
|
|
10110
10158
|
Y = A.cloneNode(!0), qe(Y, n.ghostClass, !1), qe(Y, n.fallbackClass, !0), qe(Y, n.dragClass, !0), R(Y, "transition", ""), R(Y, "transform", ""), R(Y, "box-sizing", "border-box"), R(Y, "margin", 0), R(Y, "top", t.top), R(Y, "left", t.left), R(Y, "width", t.width), R(Y, "height", t.height), R(Y, "opacity", "0.8"), R(Y, "position", ro ? "absolute" : "fixed"), R(Y, "zIndex", "100000"), R(Y, "pointerEvents", "none"), D.ghost = Y, e.appendChild(Y), R(Y, "transform-origin", ma / parseInt(Y.style.width) * 100 + "% " + Ta / parseInt(Y.style.height) * 100 + "%");
|
|
10111
10159
|
}
|
|
@@ -10912,7 +10960,7 @@ const Xi = [
|
|
|
10912
10960
|
const I = m.id === (($ = on()) == null ? void 0 : $.id);
|
|
10913
10961
|
let v = "<n/a>";
|
|
10914
10962
|
if (m.type.startsWith("on_node_event_v")) {
|
|
10915
|
-
const G = m, Z =
|
|
10963
|
+
const G = m, Z = we[G.node.key];
|
|
10916
10964
|
Z && (v = t(Z.name), G.node.alias && (v += " / " + G.node.alias), v += " - " + T[G.event.name]);
|
|
10917
10965
|
} else m.type.startsWith("func_entry_v") ? v = t("x-block-lib.funcEntry") : m.type.startsWith("procedure_def_v") ? (console.log(m), v = t("x-block-lib.procedure") + " - " + m.getFieldValue("NAME")) : v = t("x-block-lib.temporaryBlock");
|
|
10918
10966
|
d.push({
|
|
@@ -11141,10 +11189,10 @@ function lg(e, t, n) {
|
|
|
11141
11189
|
function o({ name: i, callback: s }) {
|
|
11142
11190
|
e.registerToolboxCategoryCallback(i, () => s(t));
|
|
11143
11191
|
}
|
|
11144
|
-
t === "page" || t === "comp" ? n === "v1" && (o(
|
|
11192
|
+
t === "page" || t === "comp" ? n === "v1" && (o(yo), o(Rt), o(Bt)) : t === "func" ? n === "v1" && (o(bo), o(Io), o(Co), o(Rt), o(Bt)) : t === "flow" && n === "v1" && (o(Io), o(bo), o(Co), o(Rt), o(Bt));
|
|
11145
11193
|
}
|
|
11146
11194
|
function cg(e) {
|
|
11147
|
-
const { router: t } =
|
|
11195
|
+
const { router: t } = P.base;
|
|
11148
11196
|
e.registerButtonCallback("NO_COMPUTE", () => {
|
|
11149
11197
|
const n = t.resolve({
|
|
11150
11198
|
path: "/compute/" + Date.now()
|
|
@@ -11213,7 +11261,7 @@ const ug = { class: "position-relative w-100 h-100" }, pg = /* @__PURE__ */ ft({
|
|
|
11213
11261
|
console.assert(!1);
|
|
11214
11262
|
return;
|
|
11215
11263
|
}
|
|
11216
|
-
await sa(e.locale), c = ag(a.value, e.type, e.version, e.dark), c.addChangeListener(
|
|
11264
|
+
await sa(e.locale), c = ag(a.value, e.type, e.version, e.dark), c.addChangeListener(x.disableOrphans), c.addChangeListener($);
|
|
11217
11265
|
const B = document.querySelector("#blocklyEditor .blocklyFlyout");
|
|
11218
11266
|
new MutationObserver((oe) => {
|
|
11219
11267
|
oe.forEach((ee) => {
|
|
@@ -11234,16 +11282,16 @@ const ug = { class: "position-relative w-100 h-100" }, pg = /* @__PURE__ */ ft({
|
|
|
11234
11282
|
c && Wl(c);
|
|
11235
11283
|
});
|
|
11236
11284
|
async function $(B) {
|
|
11237
|
-
if (B.type ===
|
|
11285
|
+
if (B.type === x.FINISHED_LOADING) {
|
|
11238
11286
|
pr(), ut.emit("codeUpdate"), l.value = !1;
|
|
11239
11287
|
return;
|
|
11240
11288
|
}
|
|
11241
11289
|
if (!l.value) {
|
|
11242
|
-
if (B.type ===
|
|
11290
|
+
if (B.type === x.VIEWPORT_CHANGE) {
|
|
11243
11291
|
i.value = c.getScale();
|
|
11244
11292
|
return;
|
|
11245
11293
|
}
|
|
11246
|
-
B.type ===
|
|
11294
|
+
B.type === x.BLOCK_DRAG && (B.isStart ? h.value = !0 : h.value = !1), ut.emit("codeUpdate");
|
|
11247
11295
|
}
|
|
11248
11296
|
}
|
|
11249
11297
|
const G = (B) => {
|
|
@@ -11821,8 +11869,8 @@ function _g() {
|
|
|
11821
11869
|
}), V;
|
|
11822
11870
|
function Ee(Ae, N) {
|
|
11823
11871
|
f && (N = N.map((b) => b.toLowerCase())), N.forEach(function(b) {
|
|
11824
|
-
const
|
|
11825
|
-
V[
|
|
11872
|
+
const U = b.split("|");
|
|
11873
|
+
V[U[0]] = [Ae, Zr(U[0], U[1])];
|
|
11826
11874
|
});
|
|
11827
11875
|
}
|
|
11828
11876
|
}
|
|
@@ -11882,22 +11930,22 @@ function _g() {
|
|
|
11882
11930
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
11883
11931
|
}
|
|
11884
11932
|
// @ts-ignore
|
|
11885
|
-
addRule(b,
|
|
11886
|
-
|
|
11933
|
+
addRule(b, U) {
|
|
11934
|
+
U.position = this.position++, this.matchIndexes[this.matchAt] = U, this.regexes.push([U, b]), this.matchAt += Z(b) + 1;
|
|
11887
11935
|
}
|
|
11888
11936
|
compile() {
|
|
11889
11937
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
11890
|
-
const b = this.regexes.map((
|
|
11938
|
+
const b = this.regexes.map((U) => U[1]);
|
|
11891
11939
|
this.matcherRe = f(q(b, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
11892
11940
|
}
|
|
11893
11941
|
/** @param {string} s */
|
|
11894
11942
|
exec(b) {
|
|
11895
11943
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
11896
|
-
const
|
|
11897
|
-
if (!
|
|
11944
|
+
const U = this.matcherRe.exec(b);
|
|
11945
|
+
if (!U)
|
|
11898
11946
|
return null;
|
|
11899
|
-
const Re =
|
|
11900
|
-
return
|
|
11947
|
+
const Re = U.findIndex((An, ei) => ei > 0 && An !== void 0), be = this.matchIndexes[Re];
|
|
11948
|
+
return U.splice(0, Re), Object.assign(U, be);
|
|
11901
11949
|
}
|
|
11902
11950
|
}
|
|
11903
11951
|
class V {
|
|
@@ -11907,8 +11955,8 @@ function _g() {
|
|
|
11907
11955
|
// @ts-ignore
|
|
11908
11956
|
getMatcher(b) {
|
|
11909
11957
|
if (this.multiRegexes[b]) return this.multiRegexes[b];
|
|
11910
|
-
const
|
|
11911
|
-
return this.rules.slice(b).forEach(([Re, be]) =>
|
|
11958
|
+
const U = new O();
|
|
11959
|
+
return this.rules.slice(b).forEach(([Re, be]) => U.addRule(Re, be)), U.compile(), this.multiRegexes[b] = U, U;
|
|
11912
11960
|
}
|
|
11913
11961
|
resumingScanAtSamePosition() {
|
|
11914
11962
|
return this.regexIndex !== 0;
|
|
@@ -11917,14 +11965,14 @@ function _g() {
|
|
|
11917
11965
|
this.regexIndex = 0;
|
|
11918
11966
|
}
|
|
11919
11967
|
// @ts-ignore
|
|
11920
|
-
addRule(b,
|
|
11921
|
-
this.rules.push([b,
|
|
11968
|
+
addRule(b, U) {
|
|
11969
|
+
this.rules.push([b, U]), U.type === "begin" && this.count++;
|
|
11922
11970
|
}
|
|
11923
11971
|
/** @param {string} s */
|
|
11924
11972
|
exec(b) {
|
|
11925
|
-
const
|
|
11926
|
-
|
|
11927
|
-
let Re =
|
|
11973
|
+
const U = this.getMatcher(this.regexIndex);
|
|
11974
|
+
U.lastIndex = this.lastIndex;
|
|
11975
|
+
let Re = U.exec(b);
|
|
11928
11976
|
if (this.resumingScanAtSamePosition() && !(Re && Re.index === this.lastIndex)) {
|
|
11929
11977
|
const be = this.getMatcher(0);
|
|
11930
11978
|
be.lastIndex = this.lastIndex + 1, Re = be.exec(b);
|
|
@@ -11934,14 +11982,14 @@ function _g() {
|
|
|
11934
11982
|
}
|
|
11935
11983
|
function Ee(N) {
|
|
11936
11984
|
const b = new V();
|
|
11937
|
-
return N.contains.forEach((
|
|
11985
|
+
return N.contains.forEach((U) => b.addRule(U.begin, { rule: U, type: "begin" })), N.terminatorEnd && b.addRule(N.terminatorEnd, { type: "end" }), N.illegal && b.addRule(N.illegal, { type: "illegal" }), b;
|
|
11938
11986
|
}
|
|
11939
11987
|
function Ae(N, b) {
|
|
11940
|
-
const
|
|
11988
|
+
const U = (
|
|
11941
11989
|
/** @type CompiledMode */
|
|
11942
11990
|
N
|
|
11943
11991
|
);
|
|
11944
|
-
if (N.isCompiled) return
|
|
11992
|
+
if (N.isCompiled) return U;
|
|
11945
11993
|
[
|
|
11946
11994
|
Gr,
|
|
11947
11995
|
// do this early so compiler extensions generally don't have to worry about
|
|
@@ -11958,7 +12006,7 @@ function _g() {
|
|
|
11958
12006
|
zr
|
|
11959
12007
|
].forEach((be) => be(N, b)), N.isCompiled = !0;
|
|
11960
12008
|
let Re = null;
|
|
11961
|
-
return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), Re = N.keywords.$pattern, delete N.keywords.$pattern), Re = Re || /\w+/, N.keywords && (N.keywords = ls(N.keywords, u.case_insensitive)),
|
|
12009
|
+
return typeof N.keywords == "object" && N.keywords.$pattern && (N.keywords = Object.assign({}, N.keywords), Re = N.keywords.$pattern, delete N.keywords.$pattern), Re = Re || /\w+/, N.keywords && (N.keywords = ls(N.keywords, u.case_insensitive)), U.keywordPatternRe = f(Re, !0), b && (N.begin || (N.begin = /\B|\b/), U.beginRe = f(U.begin), !N.end && !N.endsWithParent && (N.end = /\B|\b/), N.end && (U.endRe = f(U.end)), U.terminatorEnd = d(U.end) || "", N.endsWithParent && b.terminatorEnd && (U.terminatorEnd += (N.end ? "|" : "") + b.terminatorEnd)), N.illegal && (U.illegalRe = f(
|
|
11962
12010
|
/** @type {RegExp | string} */
|
|
11963
12011
|
N.illegal
|
|
11964
12012
|
)), N.contains || (N.contains = []), N.contains = [].concat(...N.contains.map(function(be) {
|
|
@@ -11967,9 +12015,9 @@ function _g() {
|
|
|
11967
12015
|
Ae(
|
|
11968
12016
|
/** @type Mode */
|
|
11969
12017
|
be,
|
|
11970
|
-
|
|
12018
|
+
U
|
|
11971
12019
|
);
|
|
11972
|
-
}), N.starts && Ae(N.starts, b),
|
|
12020
|
+
}), N.starts && Ae(N.starts, b), U.matcher = Ee(U), U;
|
|
11973
12021
|
}
|
|
11974
12022
|
if (u.compilerExtensions || (u.compilerExtensions = []), u.contains && u.contains.includes("self"))
|
|
11975
12023
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -12008,7 +12056,7 @@ function _g() {
|
|
|
12008
12056
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
12009
12057
|
__emitter: _
|
|
12010
12058
|
};
|
|
12011
|
-
function
|
|
12059
|
+
function U(E) {
|
|
12012
12060
|
return b.noHighlightRe.test(E);
|
|
12013
12061
|
}
|
|
12014
12062
|
function Re(E) {
|
|
@@ -12019,7 +12067,7 @@ function _g() {
|
|
|
12019
12067
|
const ae = Ct(X[1]);
|
|
12020
12068
|
return ae || (us(Ae.replace("{}", X[1])), us("Falling back to no-highlight mode for this block.", E)), ae ? X[1] : "no-highlight";
|
|
12021
12069
|
}
|
|
12022
|
-
return k.split(/\s+/).find((ae) =>
|
|
12070
|
+
return k.split(/\s+/).find((ae) => U(ae) || Ct(ae));
|
|
12023
12071
|
}
|
|
12024
12072
|
function be(E, k, X) {
|
|
12025
12073
|
let ae = "", Le = "";
|
|
@@ -12048,9 +12096,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12048
12096
|
let S = H.keywordPatternRe.exec(re), W = "";
|
|
12049
12097
|
for (; S; ) {
|
|
12050
12098
|
W += re.substring(y, S.index);
|
|
12051
|
-
const ie = at.case_insensitive ? S[0].toLowerCase() : S[0],
|
|
12052
|
-
if (
|
|
12053
|
-
const [Tt, Cl] =
|
|
12099
|
+
const ie = at.case_insensitive ? S[0].toLowerCase() : S[0], Ye = tt(H, ie);
|
|
12100
|
+
if (Ye) {
|
|
12101
|
+
const [Tt, Cl] = Ye;
|
|
12054
12102
|
if (Pe.addText(W), W = "", Le[ie] = (Le[ie] || 0) + 1, Le[ie] <= cl && (to += Cl), Tt.startsWith("_"))
|
|
12055
12103
|
W += S[0];
|
|
12056
12104
|
else {
|
|
@@ -12091,8 +12139,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12091
12139
|
W++;
|
|
12092
12140
|
continue;
|
|
12093
12141
|
}
|
|
12094
|
-
const
|
|
12095
|
-
|
|
12142
|
+
const Ye = at.classNameAliases[y[W]] || y[W], Tt = S[W];
|
|
12143
|
+
Ye ? st(Tt, Ye) : (re = Tt, Nt(), re = ""), W++;
|
|
12096
12144
|
}
|
|
12097
12145
|
}
|
|
12098
12146
|
function As(y, S) {
|
|
@@ -12102,8 +12150,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12102
12150
|
let ie = ne(y.endRe, W);
|
|
12103
12151
|
if (ie) {
|
|
12104
12152
|
if (y["on:end"]) {
|
|
12105
|
-
const
|
|
12106
|
-
y["on:end"](S,
|
|
12153
|
+
const Ye = new t(y);
|
|
12154
|
+
y["on:end"](S, Ye), Ye.isMatchIgnored && (ie = !1);
|
|
12107
12155
|
}
|
|
12108
12156
|
if (ie) {
|
|
12109
12157
|
for (; y.endsParent && y.parent; )
|
|
@@ -12118,8 +12166,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12118
12166
|
return H.matcher.regexIndex === 0 ? (re += y[0], 1) : (si = !0, 0);
|
|
12119
12167
|
}
|
|
12120
12168
|
function Ol(y) {
|
|
12121
|
-
const S = y[0], W = y.rule, ie = new t(W),
|
|
12122
|
-
for (const Tt of
|
|
12169
|
+
const S = y[0], W = y.rule, ie = new t(W), Ye = [W.__beforeBegin, W["on:begin"]];
|
|
12170
|
+
for (const Tt of Ye)
|
|
12123
12171
|
if (Tt && (Tt(y, ie), ie.isMatchIgnored))
|
|
12124
12172
|
return vl(S);
|
|
12125
12173
|
return W.skip ? re += S : (W.excludeBegin && (re += S), ze(), !W.returnBegin && !W.excludeBegin && (re = S)), As(W, y), W.returnBegin ? 0 : S.length;
|
|
@@ -12128,12 +12176,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12128
12176
|
const S = y[0], W = k.substring(y.index), ie = vs(H, y, W);
|
|
12129
12177
|
if (!ie)
|
|
12130
12178
|
return ds;
|
|
12131
|
-
const
|
|
12132
|
-
H.endScope && H.endScope._wrap ? (ze(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (ze(), Es(H.endScope, y)) :
|
|
12179
|
+
const Ye = H;
|
|
12180
|
+
H.endScope && H.endScope._wrap ? (ze(), st(S, H.endScope._wrap)) : H.endScope && H.endScope._multi ? (ze(), Es(H.endScope, y)) : Ye.skip ? re += S : (Ye.returnEnd || Ye.excludeEnd || (re += S), ze(), Ye.excludeEnd && (re = S));
|
|
12133
12181
|
do
|
|
12134
12182
|
H.scope && Pe.closeNode(), !H.skip && !H.subLanguage && (to += H.relevance), H = H.parent;
|
|
12135
12183
|
while (H !== ie.parent);
|
|
12136
|
-
return ie.starts && As(ie.starts, y),
|
|
12184
|
+
return ie.starts && As(ie.starts, y), Ye.returnEnd ? 0 : S.length;
|
|
12137
12185
|
}
|
|
12138
12186
|
function Il() {
|
|
12139
12187
|
const y = [];
|
|
@@ -12263,7 +12311,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Le = E, ae = k), X ==
|
|
|
12263
12311
|
function ni(E) {
|
|
12264
12312
|
let k = null;
|
|
12265
12313
|
const X = Re(E);
|
|
12266
|
-
if (
|
|
12314
|
+
if (U(X)) return;
|
|
12267
12315
|
if (Qn(
|
|
12268
12316
|
"before:highlightElement",
|
|
12269
12317
|
{ el: E, language: X }
|