x-block-lib 0.9.32 → 0.9.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +157 -117
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1006,55 +1006,67 @@ function getOnEventInfo(e) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
} else if (w === "customSlotEvent") {
|
|
1009
|
-
if (isSlotNode(O.key) && y.type === "comp" && x.meta.slots) {
|
|
1010
|
-
let {
|
|
1011
|
-
if (
|
|
1012
|
-
let y =
|
|
1013
|
-
if (y)
|
|
1014
|
-
id
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1009
|
+
if (isSlotNode(O.key) && D.slot && y.type === "comp" && x.meta.slots) {
|
|
1010
|
+
let { compId: y, slotId: b, eventId: S } = unwrapEventKeyOfCustomSlot(E);
|
|
1011
|
+
if (x.id === y && D.slot === b) {
|
|
1012
|
+
let y = x.meta.slots.find((e) => e.id === b);
|
|
1013
|
+
if (y && y.events) {
|
|
1014
|
+
let b = y.events.find((e) => e.id === S);
|
|
1015
|
+
if (b) return {
|
|
1016
|
+
id: e,
|
|
1017
|
+
kind: w,
|
|
1018
|
+
names: [y.name, b.name],
|
|
1019
|
+
params: convertParams(b.params)
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1019
1022
|
}
|
|
1020
1023
|
}
|
|
1021
1024
|
} else if (w === "customSlotPropertyChangeEvent") {
|
|
1022
|
-
if (isSlotNode(O.key) && y.type === "comp" && x.meta.slots) {
|
|
1023
|
-
let {
|
|
1024
|
-
if (
|
|
1025
|
-
let y =
|
|
1026
|
-
if (y)
|
|
1027
|
-
id
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1025
|
+
if (isSlotNode(O.key) && D.slot && y.type === "comp" && x.meta.slots) {
|
|
1026
|
+
let { compId: y, slotId: b, eventId: S } = unwrapEventKeyOfCustomSlot(E);
|
|
1027
|
+
if (x.id === y && D.slot === b) {
|
|
1028
|
+
let y = x.meta.slots.find((e) => e.id === b);
|
|
1029
|
+
if (y && y.properties) {
|
|
1030
|
+
let b = y.properties.find((e) => e.id === S);
|
|
1031
|
+
if (b) return {
|
|
1032
|
+
id: e,
|
|
1033
|
+
kind: w,
|
|
1034
|
+
names: [y.name, b.name],
|
|
1035
|
+
params: makeChangeParams(b.type)
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1032
1038
|
}
|
|
1033
1039
|
}
|
|
1034
|
-
} else if (w === "
|
|
1035
|
-
if (isMultipleSlotNode(O.key) && y.type === "comp" && x.meta.slots) {
|
|
1036
|
-
let {
|
|
1037
|
-
if (
|
|
1038
|
-
let y =
|
|
1039
|
-
if (y)
|
|
1040
|
-
id
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1040
|
+
} else if (w === "multipleCustomSlotEvent") {
|
|
1041
|
+
if (isMultipleSlotNode(O.key) && D.slot && y.type === "comp" && x.meta.slots) {
|
|
1042
|
+
let { compId: y, slotId: b, eventId: S } = unwrapEventKeyOfCustomSlot(E);
|
|
1043
|
+
if (x.id === y && D.slot && b) {
|
|
1044
|
+
let y = x.meta.slots.find((e) => e.id === b);
|
|
1045
|
+
if (y && y.events) {
|
|
1046
|
+
let b = y.events.find((e) => e.id === S);
|
|
1047
|
+
if (b) return {
|
|
1048
|
+
id: e,
|
|
1049
|
+
kind: w,
|
|
1050
|
+
names: [y.name, b.name],
|
|
1051
|
+
params: convertParams(b.params)
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1045
1054
|
}
|
|
1046
1055
|
}
|
|
1047
|
-
} else if (w === "
|
|
1048
|
-
if (isMultipleSlotNode(O.key) && y.type === "comp" && x.meta.slots) {
|
|
1049
|
-
let {
|
|
1050
|
-
if (
|
|
1051
|
-
let y =
|
|
1052
|
-
if (y)
|
|
1053
|
-
id
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1056
|
+
} else if (w === "multipleCustomSlotPropertyChangeEvent") {
|
|
1057
|
+
if (isMultipleSlotNode(O.key) && D.slot && y.type === "comp" && x.meta.slots) {
|
|
1058
|
+
let { compId: y, slotId: b, eventId: S } = unwrapEventKeyOfCustomSlot(E);
|
|
1059
|
+
if (x.id === y && D.slot === b) {
|
|
1060
|
+
let y = x.meta.slots.find((e) => e.id === b);
|
|
1061
|
+
if (y && y.properties) {
|
|
1062
|
+
let b = y.properties.find((e) => e.id === S);
|
|
1063
|
+
if (b) return {
|
|
1064
|
+
id: e,
|
|
1065
|
+
kind: w,
|
|
1066
|
+
names: [y.name, b.name],
|
|
1067
|
+
params: makeChangeParams(b.type)
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1058
1070
|
}
|
|
1059
1071
|
}
|
|
1060
1072
|
} else if (w === "customEvent") {
|
|
@@ -1201,27 +1213,27 @@ function getAllTriggerEventInfos(e) {
|
|
|
1201
1213
|
if (!C) return console.assert(!1, "invalid element", S.key), x;
|
|
1202
1214
|
if (isSlotNode(C.key) && S.slot && y.type === "comp" && b.meta.slots) {
|
|
1203
1215
|
let y = b.meta.slots.find((e) => e.id === S.slot);
|
|
1204
|
-
if (y && y.events) for (let
|
|
1205
|
-
id: makeEventId("customSlotEvent", e, makeEventKeyOfCustomSlot(b.id, y.id, S)),
|
|
1216
|
+
if (y && y.events) for (let S of y.events) x.push({
|
|
1217
|
+
id: makeEventId("customSlotEvent", e, makeEventKeyOfCustomSlot(b.id, y.id, S.id)),
|
|
1206
1218
|
kind: "customSlotEvent",
|
|
1207
|
-
names: [
|
|
1208
|
-
params: convertParams(
|
|
1219
|
+
names: [y.name, S.name],
|
|
1220
|
+
params: convertParams(S.params)
|
|
1209
1221
|
});
|
|
1210
1222
|
}
|
|
1211
1223
|
if (isMultipleSlotNode(C.key) && S.slot && y.type === "comp" && b.meta.slots) {
|
|
1212
1224
|
let y = b.meta.slots.find((e) => e.id === S.slot);
|
|
1213
|
-
if (y && y.events) for (let
|
|
1214
|
-
id: makeEventId("multipleCustomSlotEvent", e, makeEventKeyOfCustomSlot(b.id, y.id, S)),
|
|
1225
|
+
if (y && y.events) for (let S of y.events) x.push({
|
|
1226
|
+
id: makeEventId("multipleCustomSlotEvent", e, makeEventKeyOfCustomSlot(b.id, y.id, S.id)),
|
|
1215
1227
|
kind: "multipleCustomSlotEvent",
|
|
1216
|
-
names: [
|
|
1217
|
-
params: convertParams(
|
|
1228
|
+
names: [y.name, S.name],
|
|
1229
|
+
params: convertParams(S.params)
|
|
1218
1230
|
});
|
|
1219
1231
|
}
|
|
1220
|
-
if (isGlobalityNode(C.key) && y.type === "comp" && b.meta.events) for (let
|
|
1221
|
-
id: makeEventId("customEvent", "globality", e),
|
|
1232
|
+
if (isGlobalityNode(C.key) && y.type === "comp" && b.meta.events) for (let e of b.meta.events) x.push({
|
|
1233
|
+
id: makeEventId("customEvent", "globality", e.id),
|
|
1222
1234
|
kind: "customEvent",
|
|
1223
|
-
names: [
|
|
1224
|
-
params: convertParams(
|
|
1235
|
+
names: [e.name],
|
|
1236
|
+
params: convertParams(e.params)
|
|
1225
1237
|
});
|
|
1226
1238
|
return x;
|
|
1227
1239
|
}
|
|
@@ -1235,29 +1247,35 @@ function getTriggerEventInfo(e) {
|
|
|
1235
1247
|
return;
|
|
1236
1248
|
}
|
|
1237
1249
|
if (x === "customSlotEvent") {
|
|
1238
|
-
if (isSlotNode(T.key) && y.type === "comp" && b.meta.slots) {
|
|
1239
|
-
let {
|
|
1240
|
-
if (
|
|
1241
|
-
let y =
|
|
1242
|
-
if (y)
|
|
1243
|
-
id
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1250
|
+
if (isSlotNode(T.key) && w.slot && y.type === "comp" && b.meta.slots) {
|
|
1251
|
+
let { compId: y, slotId: S, eventId: T } = unwrapEventKeyOfCustomSlot(C);
|
|
1252
|
+
if (b.id === y && w.slot === S) {
|
|
1253
|
+
let y = b.meta.slots.find((e) => e.id === S);
|
|
1254
|
+
if (y && y.events) {
|
|
1255
|
+
let b = y.events.find((e) => e.id === T);
|
|
1256
|
+
if (b) return {
|
|
1257
|
+
id: e,
|
|
1258
|
+
kind: x,
|
|
1259
|
+
names: [y.name, b.name],
|
|
1260
|
+
params: convertParams(b.params)
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1248
1263
|
}
|
|
1249
1264
|
}
|
|
1250
|
-
} else if (x === "
|
|
1251
|
-
if (isMultipleSlotNode(T.key) && y.type === "comp" && b.meta.slots) {
|
|
1252
|
-
let {
|
|
1253
|
-
if (
|
|
1254
|
-
let y =
|
|
1255
|
-
if (y)
|
|
1256
|
-
id
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1265
|
+
} else if (x === "multipleCustomSlotEvent") {
|
|
1266
|
+
if (isMultipleSlotNode(T.key) && w.slot && y.type === "comp" && b.meta.slots) {
|
|
1267
|
+
let { compId: y, slotId: S, eventId: T } = unwrapEventKeyOfCustomSlot(C);
|
|
1268
|
+
if (b.id === y && w.slot && S) {
|
|
1269
|
+
let y = b.meta.slots.find((e) => e.id === S);
|
|
1270
|
+
if (y && y.events) {
|
|
1271
|
+
let b = y.events.find((e) => e.id === T);
|
|
1272
|
+
if (b) return {
|
|
1273
|
+
id: e,
|
|
1274
|
+
kind: x,
|
|
1275
|
+
names: [y.name, b.name],
|
|
1276
|
+
params: convertParams(b.params)
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1261
1279
|
}
|
|
1262
1280
|
}
|
|
1263
1281
|
} else if (x === "customEvent" && isGlobalityNode(T.key) && y.type === "comp" && b.meta.events) {
|
|
@@ -2102,14 +2120,14 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
2102
2120
|
if (this.kind = e, this.kind === "notSet") this.updateShape_();
|
|
2103
2121
|
else if (this.kind === "property") {
|
|
2104
2122
|
let e = this.getField("NODE");
|
|
2105
|
-
if (e.getOptions(!1), y
|
|
2123
|
+
if (e.getOptions(!1), y) {
|
|
2106
2124
|
let y = getAllNodeInfos("setProperty")?.[0];
|
|
2107
2125
|
e.setValue(y?.id ?? "");
|
|
2108
2126
|
}
|
|
2109
2127
|
this.onNodeChange_(e.getValue());
|
|
2110
2128
|
} else if (this.kind === "state") {
|
|
2111
2129
|
let e = this.getField("STATE");
|
|
2112
|
-
if (e.getOptions(!1), y
|
|
2130
|
+
if (e.getOptions(!1), y) {
|
|
2113
2131
|
let y = getAllStateInfos()?.[0];
|
|
2114
2132
|
e.setValue(y?.id ?? "");
|
|
2115
2133
|
}
|
|
@@ -2122,10 +2140,10 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
2122
2140
|
console.assert(!1);
|
|
2123
2141
|
return;
|
|
2124
2142
|
}
|
|
2125
|
-
let b = this.node?.
|
|
2143
|
+
let b = this.node?.id !== y.id;
|
|
2126
2144
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
2127
2145
|
let x = this.getField("PROPERTY");
|
|
2128
|
-
if (x.getOptions(!1), b
|
|
2146
|
+
if (x.getOptions(!1), b) {
|
|
2129
2147
|
let e = getAllPropertyInfos(this.node.id, "write")?.[0];
|
|
2130
2148
|
x.setValue(e?.id ?? "");
|
|
2131
2149
|
}
|
|
@@ -2246,10 +2264,10 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
2246
2264
|
console.assert(!1);
|
|
2247
2265
|
return;
|
|
2248
2266
|
}
|
|
2249
|
-
let b = this.node.
|
|
2267
|
+
let b = this.node.id !== y.id;
|
|
2250
2268
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
2251
2269
|
let x = this.getField("EVENT");
|
|
2252
|
-
if (x.getOptions(!1), b
|
|
2270
|
+
if (x.getOptions(!1), b) {
|
|
2253
2271
|
let e = getAllOnEventInfos(this.node.id)?.[0];
|
|
2254
2272
|
x.setValue(e?.id ?? "");
|
|
2255
2273
|
}
|
|
@@ -2402,10 +2420,10 @@ ${addIndent(x, 4)}${addIndent(S, 2)} } catch (e) {
|
|
|
2402
2420
|
console.assert(!1);
|
|
2403
2421
|
return;
|
|
2404
2422
|
}
|
|
2405
|
-
let b = this.node.
|
|
2423
|
+
let b = this.node.id !== y.id;
|
|
2406
2424
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
2407
2425
|
let x = this.getField("EVENT");
|
|
2408
|
-
if (x.getOptions(!1), b
|
|
2426
|
+
if (x.getOptions(!1), b) {
|
|
2409
2427
|
let e = getAllTriggerEventInfos(this.node.id)?.[0];
|
|
2410
2428
|
x.setValue(e?.id ?? "");
|
|
2411
2429
|
}
|
|
@@ -2673,10 +2691,10 @@ ${javascriptGenerator.statementToCode(e, "HANDLE")}}
|
|
|
2673
2691
|
console.assert(!1);
|
|
2674
2692
|
return;
|
|
2675
2693
|
}
|
|
2676
|
-
let b = this.node.
|
|
2694
|
+
let b = this.node.id !== y.id;
|
|
2677
2695
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
2678
2696
|
let x = this.getField("METHOD");
|
|
2679
|
-
if (x.getOptions(!1), b
|
|
2697
|
+
if (x.getOptions(!1), b) {
|
|
2680
2698
|
let e = getAllCallMethodInfos(this.node.id)?.[0];
|
|
2681
2699
|
x.setValue(e?.id ?? "");
|
|
2682
2700
|
}
|
|
@@ -2886,10 +2904,10 @@ ${w}${e}}
|
|
|
2886
2904
|
console.assert(!1);
|
|
2887
2905
|
return;
|
|
2888
2906
|
}
|
|
2889
|
-
let b = this.node.
|
|
2907
|
+
let b = this.node.id !== y.id;
|
|
2890
2908
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
2891
2909
|
let x = this.getField("METHOD");
|
|
2892
|
-
if (x.getOptions(!1), b
|
|
2910
|
+
if (x.getOptions(!1), b) {
|
|
2893
2911
|
let e = getAllImplementMethodInfos(this.node.id)?.[0];
|
|
2894
2912
|
x.setValue(e?.id ?? "");
|
|
2895
2913
|
}
|
|
@@ -3047,10 +3065,10 @@ ${E}${y}return __outputs__;
|
|
|
3047
3065
|
console.assert(!1);
|
|
3048
3066
|
return;
|
|
3049
3067
|
}
|
|
3050
|
-
let b = this.node.
|
|
3068
|
+
let b = this.node.id !== y.id;
|
|
3051
3069
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
3052
3070
|
let x = this.getField("METHOD");
|
|
3053
|
-
if (x.getOptions(!1), b
|
|
3071
|
+
if (x.getOptions(!1), b) {
|
|
3054
3072
|
let e = getAllImplementMethodInfos(this.node.id)?.[0];
|
|
3055
3073
|
x.setValue(e?.id ?? "");
|
|
3056
3074
|
}
|
|
@@ -3217,10 +3235,11 @@ ${E}${y}return __outputs__;
|
|
|
3217
3235
|
let b = this.app.id !== y.id;
|
|
3218
3236
|
this.app.id = y.id, this.app.name = y.name;
|
|
3219
3237
|
let x = this.getField("PAGE");
|
|
3220
|
-
if (x.getOptions(!1), b
|
|
3221
|
-
let e = getAllPageInfos(this.app.id)?.[0]
|
|
3222
|
-
x.setValue(e
|
|
3238
|
+
if (x.getOptions(!1), b) {
|
|
3239
|
+
let e = getAllPageInfos(this.app.id)?.[0];
|
|
3240
|
+
x.setValue(e?.id ?? "");
|
|
3223
3241
|
}
|
|
3242
|
+
this.onPageChange_(x.getValue());
|
|
3224
3243
|
},
|
|
3225
3244
|
onPageChange_: function(e) {
|
|
3226
3245
|
let y = getPageInfo(this.app.id, e);
|
|
@@ -3412,10 +3431,10 @@ ${E}${y}return __outputs__;
|
|
|
3412
3431
|
console.assert(!1);
|
|
3413
3432
|
return;
|
|
3414
3433
|
}
|
|
3415
|
-
let b = this.node.
|
|
3434
|
+
let b = this.node.id !== y.id;
|
|
3416
3435
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
3417
3436
|
let x = this.getField("PROPERTY");
|
|
3418
|
-
if (x.getOptions(!1), b
|
|
3437
|
+
if (x.getOptions(!1), b) {
|
|
3419
3438
|
let e = getAllPropertyInfos(this.node.id, "read")?.[0];
|
|
3420
3439
|
x.setValue(e?.id ?? "");
|
|
3421
3440
|
}
|
|
@@ -3532,10 +3551,10 @@ ${E}${y}return __outputs__;
|
|
|
3532
3551
|
console.assert(!1);
|
|
3533
3552
|
return;
|
|
3534
3553
|
}
|
|
3535
|
-
let b = this.node.
|
|
3554
|
+
let b = this.node.id !== y.id;
|
|
3536
3555
|
this.node.id = y.id, this.node.key = y.key, this.node.alias = y.alias;
|
|
3537
3556
|
let x = this.getField("PROPERTY");
|
|
3538
|
-
if (x.getOptions(!1), b
|
|
3557
|
+
if (x.getOptions(!1), b) {
|
|
3539
3558
|
let e = getAllPropertyInfos(this.node.id, "write")?.[0];
|
|
3540
3559
|
x.setValue(e?.id ?? "");
|
|
3541
3560
|
}
|
|
@@ -4080,11 +4099,14 @@ Blocks.call_func_v1 = {
|
|
|
4080
4099
|
console.assert(!1);
|
|
4081
4100
|
return;
|
|
4082
4101
|
}
|
|
4083
|
-
let b =
|
|
4084
|
-
|
|
4102
|
+
let b = y.id !== this.space.id;
|
|
4103
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
4104
|
+
let x = this.getField("FUNC");
|
|
4105
|
+
if (x.getOptions(!1), b) {
|
|
4085
4106
|
let e = getAllFuncInfos(this.space.id)?.[0];
|
|
4086
|
-
|
|
4107
|
+
x.setValue(e?.id ?? "");
|
|
4087
4108
|
}
|
|
4109
|
+
this.onFuncChange_(x.getValue());
|
|
4088
4110
|
},
|
|
4089
4111
|
onFuncChange_: function(e) {
|
|
4090
4112
|
let y = getFuncInfo(this.space.id, e);
|
|
@@ -4237,11 +4259,14 @@ ${E}${D}}
|
|
|
4237
4259
|
console.assert(!1);
|
|
4238
4260
|
return;
|
|
4239
4261
|
}
|
|
4240
|
-
let b =
|
|
4241
|
-
|
|
4262
|
+
let b = y.id !== this.space.id;
|
|
4263
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
4264
|
+
let x = this.getField("FUNC");
|
|
4265
|
+
if (x.getOptions(!1), b) {
|
|
4242
4266
|
let e = getAllFuncInfos(this.space.id)?.[0];
|
|
4243
|
-
|
|
4267
|
+
x.setValue(e?.id ?? "");
|
|
4244
4268
|
}
|
|
4269
|
+
this.onFuncChange_(x.getValue());
|
|
4245
4270
|
},
|
|
4246
4271
|
onFuncChange_: function(e) {
|
|
4247
4272
|
let y = getFuncInfo(this.space.id, e);
|
|
@@ -4738,10 +4763,13 @@ ${javascriptGenerator.statementToCode(e, "HANDLE")}}
|
|
|
4738
4763
|
return;
|
|
4739
4764
|
}
|
|
4740
4765
|
let b = y.id !== this.space.id;
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4766
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
4767
|
+
let x = this.getField("TABLE");
|
|
4768
|
+
if (x.getOptions(!1), b) {
|
|
4769
|
+
let e = getAllTableInfos(this.space.id)?.[0];
|
|
4770
|
+
x.setValue(e?.id ?? "");
|
|
4744
4771
|
}
|
|
4772
|
+
this.onTableChange_(x.getValue());
|
|
4745
4773
|
},
|
|
4746
4774
|
onTableChange_: function(e) {
|
|
4747
4775
|
let y = getTableInfo(this.space.id, e);
|
|
@@ -4750,10 +4778,13 @@ ${javascriptGenerator.statementToCode(e, "HANDLE")}}
|
|
|
4750
4778
|
return;
|
|
4751
4779
|
}
|
|
4752
4780
|
let b = y.id !== this.table.id;
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4781
|
+
this.table.id = y.id, this.table.name = y.name;
|
|
4782
|
+
let x = this.getField("COLUMN");
|
|
4783
|
+
if (x.getOptions(!1), b) {
|
|
4784
|
+
let e = getAllColumnInfos(this.space.id, this.table.id)?.[0];
|
|
4785
|
+
x.setValue(e?.id ?? "");
|
|
4756
4786
|
}
|
|
4787
|
+
this.onColumnChange_(x.getValue());
|
|
4757
4788
|
},
|
|
4758
4789
|
onColumnChange_: function(e) {
|
|
4759
4790
|
let y = getColumnInfo(this.space.id, this.table.id, e);
|
|
@@ -5263,10 +5294,13 @@ ${javascriptGenerator.statementToCode(e, "HANDLE")}}
|
|
|
5263
5294
|
return;
|
|
5264
5295
|
}
|
|
5265
5296
|
let b = y.id !== this.space.id;
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5297
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
5298
|
+
let x = this.getField("TABLE");
|
|
5299
|
+
if (x.getOptions(!1), b) {
|
|
5300
|
+
let e = getAllTableInfos(this.space.id)?.[0];
|
|
5301
|
+
x.setValue(e?.id ?? "");
|
|
5269
5302
|
}
|
|
5303
|
+
this.onTableChange_(x.getValue());
|
|
5270
5304
|
},
|
|
5271
5305
|
onTableChange_: function(e) {
|
|
5272
5306
|
let y = getTableInfo(this.space.id, e);
|
|
@@ -5426,11 +5460,14 @@ ${javascriptGenerator.statementToCode(e, "HANDLE")}}
|
|
|
5426
5460
|
console.assert(!1);
|
|
5427
5461
|
return;
|
|
5428
5462
|
}
|
|
5429
|
-
let b =
|
|
5430
|
-
|
|
5463
|
+
let b = y.id !== this.space.id;
|
|
5464
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
5465
|
+
let x = this.getField("TABLE");
|
|
5466
|
+
if (x.getOptions(!1), b) {
|
|
5431
5467
|
let e = getAllTableInfos(this.space.id)?.[0];
|
|
5432
|
-
|
|
5468
|
+
x.setValue(e?.id ?? "");
|
|
5433
5469
|
}
|
|
5470
|
+
this.onTableChange_(x.getValue());
|
|
5434
5471
|
},
|
|
5435
5472
|
onTableChange_: function(e) {
|
|
5436
5473
|
let y = getTableInfo(this.space.id, e);
|
|
@@ -5605,10 +5642,13 @@ ${y}}
|
|
|
5605
5642
|
return;
|
|
5606
5643
|
}
|
|
5607
5644
|
let b = y.id !== this.space.id;
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5645
|
+
this.space.id = y.id, this.space.name = y.name;
|
|
5646
|
+
let x = this.getField("TABLE");
|
|
5647
|
+
if (x.getOptions(!1), b) {
|
|
5648
|
+
let e = getAllTableInfos(this.space.id)?.[0];
|
|
5649
|
+
x.setValue(e?.id ?? "");
|
|
5611
5650
|
}
|
|
5651
|
+
this.onTableChange_(x.getValue());
|
|
5612
5652
|
},
|
|
5613
5653
|
onTableChange_: function(e) {
|
|
5614
5654
|
let y = getTableInfo(this.space.id, e);
|