x-block-lib 0.7.24 → 0.7.26
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/utils/app/element.d.ts +36 -8
- package/dist/core/utils/app/node.d.ts +45 -16
- package/dist/core/utils/common/check.d.ts +1 -1
- package/dist/index.js +2410 -2123
- package/dist/{vendor.yapsaj89.js → vendor.h2gb3xpi.js} +6944 -6875
- package/package.json +9 -9
|
@@ -1,24 +1,52 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
|
|
2
|
+
import { Type, ZProp, ZSlotProp } from 'x-runtime-lib';
|
|
3
3
|
interface ElementInfo {
|
|
4
4
|
key: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function getAllElementInfos(filter?:
|
|
7
|
+
export declare function getAllElementInfos(filter?: 'event' | 'method'): ElementInfo[];
|
|
8
8
|
export declare function getElementInfo(elementKey: string): import("x-runtime-lib").ZElement | undefined;
|
|
9
|
-
export declare function genElementOpts(filter?:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export declare function genElementOpts(filter?: 'event' | 'method'): Blockly.MenuOption[];
|
|
10
|
+
interface EventInfo {
|
|
11
|
+
keys: string;
|
|
12
|
+
names: string[];
|
|
13
|
+
params: {
|
|
14
|
+
key: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
export declare function getAllEventInfos(elementKey: string): EventInfo[];
|
|
19
|
+
export declare function getEventInfo(elementKey: string, eventKeys: string): EventInfo | undefined;
|
|
12
20
|
export declare function genEventOpts(elementKey: string): Blockly.MenuOption[];
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
interface MethodInfo {
|
|
22
|
+
keys: string;
|
|
23
|
+
names: string[];
|
|
24
|
+
inputs: {
|
|
25
|
+
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: Type;
|
|
28
|
+
}[];
|
|
29
|
+
outputs: {
|
|
30
|
+
key: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
export declare function getAllMethodInfos(elementKey: string): MethodInfo[];
|
|
35
|
+
export declare function getMethodInfo(elementKey: string, methodKeys: string): MethodInfo | undefined;
|
|
15
36
|
export declare function genMethodOpts(elementKey: string): Blockly.MenuOption[];
|
|
16
37
|
interface PropInfo {
|
|
17
38
|
keys: string;
|
|
18
39
|
names: string[];
|
|
19
40
|
readonly?: boolean;
|
|
41
|
+
meta: {
|
|
42
|
+
from: 'prop';
|
|
43
|
+
raw: ZProp;
|
|
44
|
+
} | {
|
|
45
|
+
from: 'slot';
|
|
46
|
+
raw: ZSlotProp;
|
|
47
|
+
};
|
|
20
48
|
}
|
|
21
49
|
export declare function getAllPropInfos(elementKey: string, modify?: boolean): PropInfo[];
|
|
22
|
-
export declare function getPropInfo(elementKey: string, propKeys: string):
|
|
50
|
+
export declare function getPropInfo(elementKey: string, propKeys: string): PropInfo | undefined;
|
|
23
51
|
export declare function genPropOpts(elementKey: string, modify?: boolean): Blockly.MenuOption[];
|
|
24
52
|
export {};
|
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function getAllNodeInfos(filter?: Filter): {
|
|
2
|
+
import { Type, ZProp, ZSlotProp } from 'x-runtime-lib';
|
|
3
|
+
interface NodeInfo {
|
|
5
4
|
id: string;
|
|
6
5
|
key: string;
|
|
6
|
+
name: string;
|
|
7
7
|
alias: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
}
|
|
9
|
+
export declare function getAllNodeInfos(filter?: 'event' | 'method'): NodeInfo[];
|
|
10
|
+
export declare function getNodeInfo(nodeid: string): NodeInfo | undefined;
|
|
11
|
+
export declare function genNodeOpts(filter?: 'event' | 'method'): Blockly.MenuOption[];
|
|
12
|
+
interface EventInfo {
|
|
13
|
+
keys: string;
|
|
14
|
+
names: string[];
|
|
15
|
+
params: {
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export declare function getAllEventInfos(nodeid: string): EventInfo[];
|
|
21
|
+
export declare function getEventInfo(nodeid: string, eventKeys: string): EventInfo | undefined;
|
|
17
22
|
export declare function genEventOpts(nodeid: string): Blockly.MenuOption[];
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
interface MethodInfo {
|
|
24
|
+
keys: string;
|
|
25
|
+
names: string[];
|
|
26
|
+
inputs: {
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: Type;
|
|
30
|
+
}[];
|
|
31
|
+
outputs: {
|
|
32
|
+
key: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
|
36
|
+
export declare function getAllMethodInfos(nodeid: string): MethodInfo[];
|
|
37
|
+
export declare function getMethodInfo(nodeid: string, methodKeys: string): MethodInfo | undefined;
|
|
20
38
|
export declare function genMethodOpts(nodeid: string): Blockly.MenuOption[];
|
|
21
|
-
|
|
22
|
-
|
|
39
|
+
interface PropInfo {
|
|
40
|
+
keys: string;
|
|
41
|
+
names: string[];
|
|
42
|
+
meta: {
|
|
43
|
+
from: 'prop';
|
|
44
|
+
raw: ZProp;
|
|
45
|
+
} | {
|
|
46
|
+
from: 'slot';
|
|
47
|
+
raw: ZSlotProp;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
|
|
51
|
+
export declare function getPropInfo(nodeid: string, propKeys: string): PropInfo | undefined;
|
|
23
52
|
export declare function genPropOpts(nodeid: string, modify?: boolean): Blockly.MenuOption[];
|
|
24
53
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ZProp } from 'x-runtime-lib';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getTypeCheck(type: string): "String" | "Number" | "Boolean" | "Array" | "Object" | null;
|
|
3
3
|
export declare function getPropCheck(prop: ZProp): string | null;
|
|
4
4
|
export declare function getColumnCheck(type: string): "String" | "Number" | "Boolean" | null;
|