x-block-lib 0.8.64 → 0.8.65
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.
|
@@ -6,18 +6,4 @@ interface AppInfo {
|
|
|
6
6
|
export declare function getAllAppInfos(): AppInfo[];
|
|
7
7
|
export declare function getAppInfo(appId: string): AppInfo | undefined;
|
|
8
8
|
export declare function genAppOpts(): Blockly.MenuOption[];
|
|
9
|
-
interface PageInfo {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function getAllPageInfos(appId: string): PageInfo[];
|
|
14
|
-
export declare function getPageInfo(appId: string, pageId: string): PageInfo | undefined;
|
|
15
|
-
export declare function genPageOpts(appId: string): Blockly.MenuOption[];
|
|
16
|
-
interface CompInfo {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function getAllCompInfos(): CompInfo[];
|
|
21
|
-
export declare function getCompInfo(compId: string): CompInfo | undefined;
|
|
22
|
-
export declare function genCompOpts(): Blockly.MenuOption[];
|
|
23
9
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Blockly from 'blockly/core';
|
|
2
|
+
interface CompInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function getAllCompInfos(): CompInfo[];
|
|
7
|
+
export declare function getCompInfo(compId: string): CompInfo | undefined;
|
|
8
|
+
export declare function genCompOpts(): Blockly.MenuOption[];
|
|
9
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './app';
|
|
2
2
|
export * from './argument';
|
|
3
|
+
export * from './comp';
|
|
3
4
|
export * from './event';
|
|
4
5
|
export * from './method';
|
|
5
6
|
export * from './node';
|
|
7
|
+
export * from './page';
|
|
6
8
|
export * from './property';
|
|
7
9
|
export * from './slot';
|
|
8
10
|
export * from './state';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Blockly from 'blockly/core';
|
|
2
|
+
interface PageInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function getAllPageInfos(appId: string): PageInfo[];
|
|
7
|
+
export declare function getPageInfo(appId: string, pageId: string): PageInfo | undefined;
|
|
8
|
+
export declare function genPageOpts(appId: string): Blockly.MenuOption[];
|
|
9
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -534,31 +534,6 @@ function Fs() {
|
|
|
534
534
|
t.push([o, n]);
|
|
535
535
|
}), B(t);
|
|
536
536
|
}
|
|
537
|
-
function en(t) {
|
|
538
|
-
const { appList: e } = I.app, n = [], o = e.find((s) => s.id === t);
|
|
539
|
-
if (!o)
|
|
540
|
-
return n;
|
|
541
|
-
for (const { id: s, name: a } of o.pages)
|
|
542
|
-
n.push({ id: s, name: a });
|
|
543
|
-
return n;
|
|
544
|
-
}
|
|
545
|
-
function we(t, e) {
|
|
546
|
-
const { appList: n } = I.app, o = n.find((a) => a.id === t);
|
|
547
|
-
if (!o)
|
|
548
|
-
return;
|
|
549
|
-
const s = o.pages.find((a) => a.id === e);
|
|
550
|
-
if (s)
|
|
551
|
-
return {
|
|
552
|
-
id: s.id,
|
|
553
|
-
name: s.name
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
function ws(t) {
|
|
557
|
-
const e = [];
|
|
558
|
-
return en(t).forEach(({ id: o, name: s }) => {
|
|
559
|
-
e.push([s, o]);
|
|
560
|
-
}), B(e);
|
|
561
|
-
}
|
|
562
537
|
function ro() {
|
|
563
538
|
const { activeApp: t } = I.app, e = [{ id: "", name: "" }];
|
|
564
539
|
for (const { id: n, name: o } of t.comps)
|
|
@@ -576,7 +551,7 @@ function Dn(t) {
|
|
|
576
551
|
name: n.name
|
|
577
552
|
};
|
|
578
553
|
}
|
|
579
|
-
function
|
|
554
|
+
function ws() {
|
|
580
555
|
const { i18n: t } = yt, e = [];
|
|
581
556
|
return ro().forEach(({ id: o, name: s }) => {
|
|
582
557
|
let a = s;
|
|
@@ -597,7 +572,7 @@ function x(t) {
|
|
|
597
572
|
{ key: "oldValue", name: "x-runtime-lib.oldValue", type: t }
|
|
598
573
|
];
|
|
599
574
|
}
|
|
600
|
-
function
|
|
575
|
+
function en(t) {
|
|
601
576
|
const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(n.type, n.subtype);
|
|
602
577
|
if (!c)
|
|
603
578
|
return r;
|
|
@@ -834,7 +809,7 @@ function nn(t) {
|
|
|
834
809
|
}
|
|
835
810
|
return r;
|
|
836
811
|
}
|
|
837
|
-
function
|
|
812
|
+
function we(t) {
|
|
838
813
|
if (!t)
|
|
839
814
|
return;
|
|
840
815
|
const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = Vt(n.type, n.subtype);
|
|
@@ -1080,8 +1055,8 @@ function Ke(t) {
|
|
|
1080
1055
|
}
|
|
1081
1056
|
}
|
|
1082
1057
|
}
|
|
1083
|
-
function
|
|
1084
|
-
const e = [], n =
|
|
1058
|
+
function Ks(t) {
|
|
1059
|
+
const e = [], n = en(t);
|
|
1085
1060
|
for (const { id: o, kind: s, names: a } of n)
|
|
1086
1061
|
e.push([Oe(s, a), o]);
|
|
1087
1062
|
return B(e);
|
|
@@ -1115,7 +1090,7 @@ function Mn(t) {
|
|
|
1115
1090
|
};
|
|
1116
1091
|
}
|
|
1117
1092
|
}
|
|
1118
|
-
function
|
|
1093
|
+
function $s() {
|
|
1119
1094
|
const t = [], e = uo();
|
|
1120
1095
|
for (const { id: n, kind: o, names: s } of e)
|
|
1121
1096
|
t.push([Oe(o, s), n]);
|
|
@@ -1137,7 +1112,7 @@ function tt(t) {
|
|
|
1137
1112
|
e.push({ key: n, name: o, type: s });
|
|
1138
1113
|
return e;
|
|
1139
1114
|
}
|
|
1140
|
-
function
|
|
1115
|
+
function nn(t) {
|
|
1141
1116
|
const { activeObject: e, activeComp: n, depends: o } = I.app, s = [], a = e.nodes.find((c) => c.id === t);
|
|
1142
1117
|
if (!a)
|
|
1143
1118
|
return s;
|
|
@@ -1254,7 +1229,7 @@ function on(t) {
|
|
|
1254
1229
|
}
|
|
1255
1230
|
return s;
|
|
1256
1231
|
}
|
|
1257
|
-
function
|
|
1232
|
+
function Ke(t) {
|
|
1258
1233
|
if (!t)
|
|
1259
1234
|
return;
|
|
1260
1235
|
const { activeObject: e, activeComp: n, depends: o } = I.app, { kind: s, nodeId: a, methodKey: r } = qt(t), c = e.nodes.find((d) => d.id === a);
|
|
@@ -1378,8 +1353,8 @@ function $e(t) {
|
|
|
1378
1353
|
}
|
|
1379
1354
|
}
|
|
1380
1355
|
}
|
|
1381
|
-
function
|
|
1382
|
-
const e = [], n =
|
|
1356
|
+
function Hs(t) {
|
|
1357
|
+
const e = [], n = nn(t);
|
|
1383
1358
|
for (const { id: o, kind: s, names: a } of n)
|
|
1384
1359
|
e.push([ve(s, a), o]);
|
|
1385
1360
|
return B(e);
|
|
@@ -1448,23 +1423,23 @@ function lo() {
|
|
|
1448
1423
|
t.push([ve(o, s), n]);
|
|
1449
1424
|
return B(t);
|
|
1450
1425
|
}
|
|
1451
|
-
function
|
|
1426
|
+
function on(t) {
|
|
1452
1427
|
const e = Ut(t);
|
|
1453
1428
|
return e ? e.outputs : [];
|
|
1454
1429
|
}
|
|
1455
|
-
function
|
|
1430
|
+
function $e(t, e) {
|
|
1456
1431
|
const n = Ut(t);
|
|
1457
1432
|
if (n)
|
|
1458
1433
|
return n.outputs?.find((o) => o.key === e);
|
|
1459
1434
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const e = [], n =
|
|
1435
|
+
function Gs(t) {
|
|
1436
|
+
const e = [], n = on(t);
|
|
1462
1437
|
if (n)
|
|
1463
1438
|
for (const { name: o, key: s } of n)
|
|
1464
1439
|
e.push([o, s]);
|
|
1465
1440
|
return B(e);
|
|
1466
1441
|
}
|
|
1467
|
-
function
|
|
1442
|
+
function Ws(t, e, n) {
|
|
1468
1443
|
const { properties: o } = I.runtime, { activeObject: s, activePage: a, activeComp: r, depends: c } = I.app;
|
|
1469
1444
|
if (t.events && t.events.length > 0)
|
|
1470
1445
|
return !1;
|
|
@@ -1506,7 +1481,7 @@ function js(t, e, n) {
|
|
|
1506
1481
|
}
|
|
1507
1482
|
return !0;
|
|
1508
1483
|
}
|
|
1509
|
-
function
|
|
1484
|
+
function js(t, e) {
|
|
1510
1485
|
const { activeObject: n, activeComp: o, depends: s } = I.app;
|
|
1511
1486
|
if (t.methods && t.methods.length > 0)
|
|
1512
1487
|
return !1;
|
|
@@ -1522,7 +1497,7 @@ function Xs(t, e) {
|
|
|
1522
1497
|
}
|
|
1523
1498
|
return L(t.key) && n.type === "comp" && o.meta.methods && o.meta.methods.length > 0 ? !1 : (L(t.key) && n.type, !0);
|
|
1524
1499
|
}
|
|
1525
|
-
function
|
|
1500
|
+
function Xs(t, e, n) {
|
|
1526
1501
|
const { properties: o } = I.runtime, { activeObject: s, activeComp: a, depends: r } = I.app;
|
|
1527
1502
|
if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
|
|
1528
1503
|
return !1;
|
|
@@ -1538,7 +1513,7 @@ function Js(t, e, n) {
|
|
|
1538
1513
|
}
|
|
1539
1514
|
return !(L(t.key) && s.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
|
|
1540
1515
|
}
|
|
1541
|
-
function
|
|
1516
|
+
function Js(t, e, n) {
|
|
1542
1517
|
const { properties: o } = I.runtime, { activeObject: s, activeComp: a, depends: r } = I.app;
|
|
1543
1518
|
if (o[t.key] && o[t.key][e]) {
|
|
1544
1519
|
for (const { keys: c, raw: _ } of o[t.key][e])
|
|
@@ -1558,7 +1533,7 @@ function qs(t, e, n) {
|
|
|
1558
1533
|
return !(L(t.key) && s.type === "comp" && a.meta.properties && a.meta.properties.length > 0);
|
|
1559
1534
|
}
|
|
1560
1535
|
function _o(t, e, n, o) {
|
|
1561
|
-
return t ? t === "onEvent" ?
|
|
1536
|
+
return t ? t === "onEvent" ? Ws(e, n, o) : t === "callMethod" ? js(e, o) : t === "getProperty" ? Xs(e, n, o) : t === "setProperty" ? Js(e, n, o) : !1 : !1;
|
|
1562
1537
|
}
|
|
1563
1538
|
function Z(t) {
|
|
1564
1539
|
const { activeObject: e } = I.app, n = Vt(e.type, e.subtype);
|
|
@@ -1618,6 +1593,31 @@ function Se(t) {
|
|
|
1618
1593
|
}
|
|
1619
1594
|
return B(n);
|
|
1620
1595
|
}
|
|
1596
|
+
function sn(t) {
|
|
1597
|
+
const { appList: e } = I.app, n = [], o = e.find((s) => s.id === t);
|
|
1598
|
+
if (!o)
|
|
1599
|
+
return n;
|
|
1600
|
+
for (const { id: s, name: a } of o.pages)
|
|
1601
|
+
n.push({ id: s, name: a });
|
|
1602
|
+
return n;
|
|
1603
|
+
}
|
|
1604
|
+
function He(t, e) {
|
|
1605
|
+
const { appList: n } = I.app, o = n.find((a) => a.id === t);
|
|
1606
|
+
if (!o)
|
|
1607
|
+
return;
|
|
1608
|
+
const s = o.pages.find((a) => a.id === e);
|
|
1609
|
+
if (s)
|
|
1610
|
+
return {
|
|
1611
|
+
id: s.id,
|
|
1612
|
+
name: s.name
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
function qs(t) {
|
|
1616
|
+
const e = [];
|
|
1617
|
+
return sn(t).forEach(({ id: o, name: s }) => {
|
|
1618
|
+
e.push([s, o]);
|
|
1619
|
+
}), B(e);
|
|
1620
|
+
}
|
|
1621
1621
|
function Wt(t, e) {
|
|
1622
1622
|
const { properties: n } = I.runtime, { activeObject: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(o.type, o.subtype);
|
|
1623
1623
|
if (!c)
|
|
@@ -1676,9 +1676,7 @@ function Wt(t, e) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
});
|
|
1678
1678
|
if (io(d.key) && _.slot && o.type === "comp" && s.meta.slots) {
|
|
1679
|
-
const l = s.meta.slots.find(
|
|
1680
|
-
(h) => h.id === _.slot
|
|
1681
|
-
);
|
|
1679
|
+
const l = s.meta.slots.find((h) => h.id === _.slot);
|
|
1682
1680
|
if (l && l.properties)
|
|
1683
1681
|
for (const h of l.properties)
|
|
1684
1682
|
r.push({
|
|
@@ -1831,9 +1829,7 @@ function Nt(t) {
|
|
|
1831
1829
|
}
|
|
1832
1830
|
} else if (r === "customSlotProperty") {
|
|
1833
1831
|
if (io(l.key) && d.slot && n.type === "comp" && o.meta.slots) {
|
|
1834
|
-
const h = o.meta.slots.find(
|
|
1835
|
-
(p) => p.id === d.slot
|
|
1836
|
-
);
|
|
1832
|
+
const h = o.meta.slots.find((p) => p.id === d.slot);
|
|
1837
1833
|
if (h && h.properties) {
|
|
1838
1834
|
const p = h.properties.find((f) => f.id === _);
|
|
1839
1835
|
if (p)
|
|
@@ -1969,7 +1965,7 @@ const zs = {
|
|
|
1969
1965
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
1970
1966
|
const e = this.getField("NODE");
|
|
1971
1967
|
e.getOptions(!1), e.setValue(this.node.id);
|
|
1972
|
-
const n =
|
|
1968
|
+
const n = en(this.node.id)?.[0];
|
|
1973
1969
|
if (!n)
|
|
1974
1970
|
return;
|
|
1975
1971
|
this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
|
|
@@ -1991,7 +1987,7 @@ const zs = {
|
|
|
1991
1987
|
return Se("onEvent");
|
|
1992
1988
|
},
|
|
1993
1989
|
genEventOpts_: function() {
|
|
1994
|
-
return
|
|
1990
|
+
return Ks(this.node.id);
|
|
1995
1991
|
},
|
|
1996
1992
|
onchange: function(t) {
|
|
1997
1993
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2012,14 +2008,14 @@ const zs = {
|
|
|
2012
2008
|
const n = this.node.key !== e.key;
|
|
2013
2009
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2014
2010
|
const o = this.getField("EVENT");
|
|
2015
|
-
if (o.getOptions(!1), n || !
|
|
2016
|
-
const s =
|
|
2011
|
+
if (o.getOptions(!1), n || !we(this.event.id)) {
|
|
2012
|
+
const s = en(this.node.id)?.[0];
|
|
2017
2013
|
o.setValue(s?.id ?? "");
|
|
2018
2014
|
}
|
|
2019
2015
|
this.onEventChange_(o.getValue());
|
|
2020
2016
|
},
|
|
2021
2017
|
onEventChange_: function(t) {
|
|
2022
|
-
const e =
|
|
2018
|
+
const e = we(t);
|
|
2023
2019
|
e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "", this.event.names = [], this.event.params = void 0), this.updateShape_(), setTimeout(() => {
|
|
2024
2020
|
this.ensureBlocks_();
|
|
2025
2021
|
}, 0);
|
|
@@ -2064,7 +2060,7 @@ const zs = {
|
|
|
2064
2060
|
return;
|
|
2065
2061
|
}
|
|
2066
2062
|
t.alias !== this.node.alias && (this.node.alias = t.alias);
|
|
2067
|
-
const e =
|
|
2063
|
+
const e = we(this.event.id);
|
|
2068
2064
|
if (!e) {
|
|
2069
2065
|
this.setWarningText(m("WARN_EVENT_NOT_FOUND"));
|
|
2070
2066
|
return;
|
|
@@ -2124,7 +2120,7 @@ const Zs = {
|
|
|
2124
2120
|
}, 0);
|
|
2125
2121
|
},
|
|
2126
2122
|
genEventOpts_: function() {
|
|
2127
|
-
return
|
|
2123
|
+
return $s();
|
|
2128
2124
|
},
|
|
2129
2125
|
onchange: function(t) {
|
|
2130
2126
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2373,7 +2369,7 @@ const ni = {
|
|
|
2373
2369
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
2374
2370
|
const e = this.getField("NODE");
|
|
2375
2371
|
e.getOptions(!1), e.setValue(this.node.id);
|
|
2376
|
-
const n =
|
|
2372
|
+
const n = nn(this.node.id)?.[0];
|
|
2377
2373
|
if (!n)
|
|
2378
2374
|
return;
|
|
2379
2375
|
this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
|
|
@@ -2395,7 +2391,7 @@ const ni = {
|
|
|
2395
2391
|
return Se("callMethod");
|
|
2396
2392
|
},
|
|
2397
2393
|
genMethodOpts_: function() {
|
|
2398
|
-
return
|
|
2394
|
+
return Hs(this.node.id);
|
|
2399
2395
|
},
|
|
2400
2396
|
onchange: function(t) {
|
|
2401
2397
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2416,14 +2412,14 @@ const ni = {
|
|
|
2416
2412
|
const n = this.node.key !== e.key;
|
|
2417
2413
|
this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
|
|
2418
2414
|
const o = this.getField("METHOD");
|
|
2419
|
-
if (o.getOptions(!1), n ||
|
|
2420
|
-
const s =
|
|
2415
|
+
if (o.getOptions(!1), n || !Ke(this.method.id)) {
|
|
2416
|
+
const s = nn(this.node.id)?.[0];
|
|
2421
2417
|
o.setValue(s?.id ?? "");
|
|
2422
2418
|
}
|
|
2423
2419
|
this.onMethodChange_(o.getValue());
|
|
2424
2420
|
},
|
|
2425
2421
|
onMethodChange_: function(t) {
|
|
2426
|
-
const e =
|
|
2422
|
+
const e = Ke(t);
|
|
2427
2423
|
e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShadow_(), setTimeout(() => {
|
|
2428
2424
|
this.ensureBlocks_();
|
|
2429
2425
|
}, 0);
|
|
@@ -2487,7 +2483,7 @@ const ni = {
|
|
|
2487
2483
|
return;
|
|
2488
2484
|
}
|
|
2489
2485
|
t.alias !== this.node.alias && (this.node.alias = t.alias);
|
|
2490
|
-
const e =
|
|
2486
|
+
const e = Ke(this.method.id);
|
|
2491
2487
|
if (!e) {
|
|
2492
2488
|
this.setWarningText(m("WARN_METHOD_NOT_FOUND"));
|
|
2493
2489
|
return;
|
|
@@ -2697,7 +2693,7 @@ const si = {
|
|
|
2697
2693
|
this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
|
|
2698
2694
|
const e = this.getField("METHOD");
|
|
2699
2695
|
e.getOptions(!1), e.setValue(this.method.id);
|
|
2700
|
-
const n =
|
|
2696
|
+
const n = on(this.method.id)?.[0];
|
|
2701
2697
|
if (!n)
|
|
2702
2698
|
return;
|
|
2703
2699
|
this.output.key = n.key, this.output.name = n.name, this.output.type = n.type;
|
|
@@ -2719,7 +2715,7 @@ const si = {
|
|
|
2719
2715
|
return lo();
|
|
2720
2716
|
},
|
|
2721
2717
|
genOutputOpts_: function() {
|
|
2722
|
-
return
|
|
2718
|
+
return Gs(this.method.id);
|
|
2723
2719
|
},
|
|
2724
2720
|
onchange: function(t) {
|
|
2725
2721
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2740,14 +2736,14 @@ const si = {
|
|
|
2740
2736
|
const n = this.method.id !== e.id;
|
|
2741
2737
|
this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names;
|
|
2742
2738
|
const o = this.getField("OUTPUT");
|
|
2743
|
-
if (o.getOptions(!1), n ||
|
|
2744
|
-
const s =
|
|
2739
|
+
if (o.getOptions(!1), n || !$e(this.method.id, this.output.key)) {
|
|
2740
|
+
const s = on(this.method.id)?.[0];
|
|
2745
2741
|
o.setValue(s?.key ?? "");
|
|
2746
2742
|
}
|
|
2747
2743
|
this.onOutputChange_(o.getValue());
|
|
2748
2744
|
},
|
|
2749
2745
|
onOutputChange_: function(t) {
|
|
2750
|
-
const e =
|
|
2746
|
+
const e = $e(this.method.id, t);
|
|
2751
2747
|
e ? (this.output.key = e.key, this.output.name = e.name, this.output.type = e.type) : (this.output.key = "", this.output.name = "", this.output.type = "string");
|
|
2752
2748
|
},
|
|
2753
2749
|
updateShape_: function() {
|
|
@@ -2775,7 +2771,7 @@ const si = {
|
|
|
2775
2771
|
return;
|
|
2776
2772
|
}
|
|
2777
2773
|
t.names !== this.method.names && (this.method.names = t.names);
|
|
2778
|
-
const e =
|
|
2774
|
+
const e = $e(
|
|
2779
2775
|
this.method.id,
|
|
2780
2776
|
this.output.key
|
|
2781
2777
|
);
|
|
@@ -2859,7 +2855,7 @@ const ii = {
|
|
|
2859
2855
|
this.app.id = t.id, this.app.name = t.name;
|
|
2860
2856
|
const e = this.getField("APP");
|
|
2861
2857
|
e.getOptions(!1), e.setValue(this.app.id);
|
|
2862
|
-
const n =
|
|
2858
|
+
const n = sn(this.app.id)?.[0];
|
|
2863
2859
|
if (!n)
|
|
2864
2860
|
return;
|
|
2865
2861
|
this.page.id = n.id, this.page.name = n.name;
|
|
@@ -2881,7 +2877,7 @@ const ii = {
|
|
|
2881
2877
|
return Fs();
|
|
2882
2878
|
},
|
|
2883
2879
|
genPageOpts_: function() {
|
|
2884
|
-
return
|
|
2880
|
+
return qs(this.app.id);
|
|
2885
2881
|
},
|
|
2886
2882
|
onchange: function(t) {
|
|
2887
2883
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2902,13 +2898,13 @@ const ii = {
|
|
|
2902
2898
|
const n = this.app.id !== e.id;
|
|
2903
2899
|
this.app.id = e.id, this.app.name = e.name;
|
|
2904
2900
|
const o = this.getField("PAGE");
|
|
2905
|
-
if (o.getOptions(!1), n || !
|
|
2906
|
-
const a =
|
|
2901
|
+
if (o.getOptions(!1), n || !He(this.app.id, this.page.id)) {
|
|
2902
|
+
const a = sn(this.app.id)?.[0]?.id ?? "";
|
|
2907
2903
|
o.setValue(a), this.page.id === a && this.onPageChange_(a);
|
|
2908
2904
|
}
|
|
2909
2905
|
},
|
|
2910
2906
|
onPageChange_: function(t) {
|
|
2911
|
-
const e =
|
|
2907
|
+
const e = He(this.app.id, t);
|
|
2912
2908
|
e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
|
|
2913
2909
|
},
|
|
2914
2910
|
checkWarning_: function() {
|
|
@@ -2918,7 +2914,7 @@ const ii = {
|
|
|
2918
2914
|
return;
|
|
2919
2915
|
}
|
|
2920
2916
|
t.name !== this.app.name && (this.app.name = t.name);
|
|
2921
|
-
const e =
|
|
2917
|
+
const e = He(this.app.id, this.page.id);
|
|
2922
2918
|
if (!e) {
|
|
2923
2919
|
this.setWarningText(m("WARN_PAGE_NOT_FOUND"));
|
|
2924
2920
|
return;
|
|
@@ -2960,7 +2956,7 @@ const ai = {
|
|
|
2960
2956
|
}, 0);
|
|
2961
2957
|
},
|
|
2962
2958
|
genCompOpts_: function() {
|
|
2963
|
-
return
|
|
2959
|
+
return ws();
|
|
2964
2960
|
},
|
|
2965
2961
|
onchange: function(t) {
|
|
2966
2962
|
if (t.type === P.STATE_CHANGE)
|
|
@@ -2987,7 +2983,7 @@ const ai = {
|
|
|
2987
2983
|
};
|
|
2988
2984
|
A.select_comp_v1 = ai;
|
|
2989
2985
|
i.forBlock.select_comp_v1 = function(t) {
|
|
2990
|
-
const e = i.quote_, o = t.comp.id
|
|
2986
|
+
const e = i.quote_, o = t.comp.id;
|
|
2991
2987
|
return [e(o), u.ATOMIC];
|
|
2992
2988
|
};
|
|
2993
2989
|
const ci = {
|
|
@@ -3045,7 +3041,7 @@ const ci = {
|
|
|
3045
3041
|
};
|
|
3046
3042
|
A.select_slot_v1 = ci;
|
|
3047
3043
|
i.forBlock.select_slot_v1 = function(t) {
|
|
3048
|
-
const e = i.quote_, o = t.slot.id
|
|
3044
|
+
const e = i.quote_, o = t.slot.id;
|
|
3049
3045
|
return [e(o), u.ATOMIC];
|
|
3050
3046
|
};
|
|
3051
3047
|
const ri = {
|
|
@@ -11744,7 +11740,11 @@ const Ie = { name: "COMPUTE_MISC_CATEGORY", callback: Pc }, Be = {
|
|
|
11744
11740
|
function xc(t, e, n, o) {
|
|
11745
11741
|
We.theme = o ? "dark" : "light", We.toolbox = Yc(e, n);
|
|
11746
11742
|
const s = Jo(t, We);
|
|
11747
|
-
return s.addChangeListener(
|
|
11743
|
+
return s.addChangeListener((a) => {
|
|
11744
|
+
setTimeout(() => {
|
|
11745
|
+
qo.shadowBlockConversionChangeListener(a);
|
|
11746
|
+
}, 0);
|
|
11747
|
+
}), Fc(s, e, n), wc(s), s;
|
|
11748
11748
|
}
|
|
11749
11749
|
function Yc(t, e) {
|
|
11750
11750
|
let n;
|