x-block-lib 0.4.39 → 0.4.41
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/components/blockly/index.vue.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +2 -2
- package/dist/core/locale/msg/zhHans.d.ts +2 -2
- package/dist/core/utils/app/app.d.ts +13 -3
- package/dist/core/utils/app/arg.d.ts +7 -5
- package/dist/core/utils/app/element.d.ts +15 -8
- package/dist/core/utils/app/node.d.ts +16 -9
- package/dist/core/utils/compute/func.d.ts +18 -1
- package/dist/core/utils/compute/space.d.ts +5 -1
- package/dist/core/utils/data/space.d.ts +14 -0
- package/dist/core/utils/data/{index.d.ts → table.d.ts} +17 -9
- package/dist/index.js +927 -930
- package/dist/{msg-en-dlwi84yy.js → msg-en-b6f90zue.js} +3 -3
- package/dist/{msg-zhHans-60zrp0tu.js → msg-zhHans-db5w8qqg.js} +3 -3
- package/dist/state/app.d.ts +48 -0
- package/dist/state/compute.d.ts +57 -0
- package/dist/state/data.d.ts +29 -0
- package/dist/state/index.d.ts +6 -147
- package/dist/state/resource.d.ts +23 -0
- package/dist/state/runtime.d.ts +14 -0
- package/dist/state/state.d.ts +13 -0
- package/package.json +1 -1
- package/dist/core/blocks/data/dataQuery/v1/index.d.ts +0 -1
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
};
|
|
17
17
|
generateCode: () => string;
|
|
18
|
+
fireStateChange: () => void;
|
|
18
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
20
|
ready: (...args: any[]) => void;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -33,6 +33,8 @@ declare const _default: {
|
|
|
33
33
|
CROSS_TAB_COPY: string;
|
|
34
34
|
CROSS_TAB_PASTE: string;
|
|
35
35
|
NO_OPTION: string;
|
|
36
|
+
BUTTON_NO_COMPUTE: string;
|
|
37
|
+
BUTTON_NO_TABLE: string;
|
|
36
38
|
CATEGORY_CALC: string;
|
|
37
39
|
CATEGORY_COLOR: string;
|
|
38
40
|
CATEGORY_DATA: string;
|
|
@@ -47,8 +49,6 @@ declare const _default: {
|
|
|
47
49
|
CATEGORY_TEXT: string;
|
|
48
50
|
CATEGORY_TIME: string;
|
|
49
51
|
CATEGORY_VARIABLE: string;
|
|
50
|
-
DESC_NO_COMPUTE_GUIDE: string;
|
|
51
|
-
DESC_NO_TABLE_GUIDE: string;
|
|
52
52
|
LABEL_BOOLEAN: string;
|
|
53
53
|
LABEL_CONDITION: string;
|
|
54
54
|
LABEL_CREATE_VARIABLE: string;
|
|
@@ -33,6 +33,8 @@ declare const _default: {
|
|
|
33
33
|
CROSS_TAB_COPY: string;
|
|
34
34
|
CROSS_TAB_PASTE: string;
|
|
35
35
|
NO_OPTION: string;
|
|
36
|
+
BUTTON_NO_COMPUTE: string;
|
|
37
|
+
BUTTON_NO_TABLE: string;
|
|
36
38
|
CATEGORY_CALC: string;
|
|
37
39
|
CATEGORY_COLOR: string;
|
|
38
40
|
CATEGORY_DATA: string;
|
|
@@ -47,8 +49,6 @@ declare const _default: {
|
|
|
47
49
|
CATEGORY_TEXT: string;
|
|
48
50
|
CATEGORY_TIMER: string;
|
|
49
51
|
CATEGORY_VARIABLE: string;
|
|
50
|
-
DESC_NO_COMPUTE_GUIDE: string;
|
|
51
|
-
DESC_NO_MODEL_GUIDE: string;
|
|
52
52
|
LABEL_BOOLEAN: string;
|
|
53
53
|
LABEL_CONDITION: string;
|
|
54
54
|
LABEL_CREATE_VARIABLE: string;
|
|
@@ -2,16 +2,26 @@ import * as Blockly from 'blockly/core';
|
|
|
2
2
|
interface AppInfo {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
-
sort
|
|
5
|
+
sort: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function getAllAppInfos(): AppInfo[];
|
|
8
|
-
export declare function getAppInfo(
|
|
8
|
+
export declare function getAppInfo(id: string): {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
};
|
|
9
13
|
export declare function genAppOpts(): Blockly.MenuOption[];
|
|
10
14
|
interface PageInfo {
|
|
11
15
|
id: string;
|
|
12
16
|
name: string;
|
|
17
|
+
sort: number;
|
|
13
18
|
}
|
|
14
19
|
export declare function getAllPageInfos(appid: string): PageInfo[];
|
|
15
|
-
export declare function getPageInfo(
|
|
20
|
+
export declare function getPageInfo(id: string): {
|
|
21
|
+
id: string;
|
|
22
|
+
appid: string;
|
|
23
|
+
name: string;
|
|
24
|
+
sort: number;
|
|
25
|
+
};
|
|
16
26
|
export declare function genPageOpts(appid: string): Blockly.MenuOption[];
|
|
17
27
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
|
|
2
|
+
export declare function getAllArgInfos(): {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
type: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function
|
|
8
|
-
|
|
6
|
+
}[];
|
|
7
|
+
export declare function getArgInfo(id: string): {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
} | undefined;
|
|
9
12
|
export declare function genArgOpts(): Blockly.MenuOption[];
|
|
10
|
-
export {};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import { ZEvent, ZMethod } from 'x-runtime-lib';
|
|
3
|
-
import { PropInfo } from '../../../state';
|
|
4
2
|
type Filter = 'event' | 'method';
|
|
5
3
|
interface ElementInfo {
|
|
6
4
|
key: string;
|
|
7
5
|
name: string;
|
|
8
6
|
}
|
|
9
7
|
export declare function getAllElementInfos(filter?: Filter): ElementInfo[];
|
|
10
|
-
export declare function getElementInfo(
|
|
8
|
+
export declare function getElementInfo(elementKey: string): import("x-runtime-lib").ZElement | undefined;
|
|
11
9
|
export declare function genElementOpts(filter?: Filter): Blockly.MenuOption[];
|
|
12
|
-
export declare function getAllEventInfos(elementKey: string): ZEvent[];
|
|
13
|
-
export declare function getEventInfo(elementKey: string, eventKey: string): ZEvent | undefined;
|
|
10
|
+
export declare function getAllEventInfos(elementKey: string): import("x-runtime-lib").ZEvent[];
|
|
11
|
+
export declare function getEventInfo(elementKey: string, eventKey: string): import("x-runtime-lib").ZEvent | undefined;
|
|
14
12
|
export declare function genEventOpts(elementKey: string): Blockly.MenuOption[];
|
|
15
|
-
export declare function getAllMethodInfos(elementKey: string): ZMethod[];
|
|
16
|
-
export declare function getMethodInfo(elementKey: string, methodKey: string): ZMethod | undefined;
|
|
13
|
+
export declare function getAllMethodInfos(elementKey: string): import("x-runtime-lib").ZMethod[];
|
|
14
|
+
export declare function getMethodInfo(elementKey: string, methodKey: string): import("x-runtime-lib").ZMethod | undefined;
|
|
17
15
|
export declare function genMethodOpts(elementKey: string): Blockly.MenuOption[];
|
|
16
|
+
interface PropInfo {
|
|
17
|
+
keys: string;
|
|
18
|
+
names: string[];
|
|
19
|
+
readonly?: boolean;
|
|
20
|
+
}
|
|
18
21
|
export declare function getAllPropInfos(elementKey: string, modify?: boolean): PropInfo[];
|
|
19
|
-
export declare function getPropInfo(elementKey: string, propKeys: string):
|
|
22
|
+
export declare function getPropInfo(elementKey: string, propKeys: string): {
|
|
23
|
+
keys: string;
|
|
24
|
+
names: string[];
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
} | undefined;
|
|
20
27
|
export declare function genPropOpts(elementKey: string, modify?: boolean): Blockly.MenuOption[];
|
|
21
28
|
export {};
|
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import { ZEvent, ZMethod } from 'x-runtime-lib';
|
|
3
|
-
import { PropInfo } from '../../../state';
|
|
4
2
|
type Filter = 'event' | 'method';
|
|
5
3
|
interface NodeInfo {
|
|
6
4
|
id: string;
|
|
7
5
|
key: string;
|
|
8
6
|
alias: string;
|
|
9
|
-
sort
|
|
7
|
+
sort: number;
|
|
10
8
|
}
|
|
11
9
|
export declare function getAllNodeInfos(filter?: Filter): NodeInfo[];
|
|
12
|
-
export declare function getNodeInfo(id: string): NodeInfo
|
|
10
|
+
export declare function getNodeInfo(id: string): NodeInfo;
|
|
13
11
|
export declare function genNodeOpts(filter?: Filter): Blockly.MenuOption[];
|
|
14
|
-
export declare function getAllEventInfos(nodeid: string): ZEvent[];
|
|
15
|
-
export declare function getEventInfo(nodeid: string, eventKey: string): ZEvent | undefined;
|
|
12
|
+
export declare function getAllEventInfos(nodeid: string): import("x-runtime-lib").ZEvent[];
|
|
13
|
+
export declare function getEventInfo(nodeid: string, eventKey: string): import("x-runtime-lib").ZEvent | undefined;
|
|
16
14
|
export declare function genEventOpts(nodeid: string): Blockly.MenuOption[];
|
|
17
|
-
export declare function getAllMethodInfos(nodeid: string): ZMethod[];
|
|
18
|
-
export declare function getMethodInfo(nodeid: string, methodKey: string): ZMethod | undefined;
|
|
15
|
+
export declare function getAllMethodInfos(nodeid: string): import("x-runtime-lib").ZMethod[];
|
|
16
|
+
export declare function getMethodInfo(nodeid: string, methodKey: string): import("x-runtime-lib").ZMethod | undefined;
|
|
19
17
|
export declare function genMethodOpts(nodeid: string): Blockly.MenuOption[];
|
|
18
|
+
interface PropInfo {
|
|
19
|
+
keys: string;
|
|
20
|
+
names: string[];
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
}
|
|
20
23
|
export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
|
|
21
|
-
export declare function getPropInfo(nodeid: string, propKeys: string):
|
|
24
|
+
export declare function getPropInfo(nodeid: string, propKeys: string): {
|
|
25
|
+
keys: string;
|
|
26
|
+
names: string[];
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
} | undefined;
|
|
22
29
|
export declare function genPropOpts(nodeid: string, modify?: boolean): Blockly.MenuOption[];
|
|
23
30
|
export {};
|
|
@@ -15,7 +15,24 @@ interface FuncInfo {
|
|
|
15
15
|
sort: number;
|
|
16
16
|
}
|
|
17
17
|
export declare function getAllFuncInfos(spaceid: string): FuncInfo[];
|
|
18
|
-
export declare function getFuncInfo(
|
|
18
|
+
export declare function getFuncInfo(id: string): {
|
|
19
|
+
id: string;
|
|
20
|
+
spaceid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
sort: number;
|
|
23
|
+
dev: string;
|
|
24
|
+
prod: string;
|
|
25
|
+
inputs: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
}[];
|
|
30
|
+
outputs: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
19
36
|
export declare function genFuncOpts(spaceid: string): Blockly.MenuOption[];
|
|
20
37
|
export declare function getActiveFunc(): {
|
|
21
38
|
id: string;
|
|
@@ -5,6 +5,10 @@ interface SpaceInfo {
|
|
|
5
5
|
sort: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function getAllSpaceInfos(): SpaceInfo[];
|
|
8
|
-
export declare function getSpaceInfo(id: string):
|
|
8
|
+
export declare function getSpaceInfo(id: string): {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
};
|
|
9
13
|
export declare function genSpaceOpts(): Blockly.MenuOption[];
|
|
10
14
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Blockly from 'blockly/core';
|
|
2
|
+
interface SpaceInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
sort: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function getAllSpaceInfos(): SpaceInfo[];
|
|
8
|
+
export declare function getSpaceInfo(id: string): {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sort: number;
|
|
12
|
+
};
|
|
13
|
+
export declare function genSpaceOpts(): Blockly.MenuOption[];
|
|
14
|
+
export {};
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
interface
|
|
2
|
+
interface TableInfo {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
+
columns: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
extend: string;
|
|
10
|
+
}[];
|
|
11
|
+
indexes: {
|
|
12
|
+
id: string;
|
|
13
|
+
columns: string[];
|
|
14
|
+
unique: boolean;
|
|
15
|
+
}[];
|
|
5
16
|
sort: number;
|
|
6
17
|
}
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function genSpaceOpts(): Blockly.MenuOption[];
|
|
10
|
-
interface TableInfo {
|
|
18
|
+
export declare function getAllTableInfos(spaceid: string): TableInfo[];
|
|
19
|
+
export declare function getTableInfo(id: string): {
|
|
11
20
|
id: string;
|
|
21
|
+
spaceid: string;
|
|
12
22
|
name: string;
|
|
23
|
+
sort: number;
|
|
13
24
|
columns: {
|
|
14
25
|
id: string;
|
|
15
26
|
name: string;
|
|
@@ -21,9 +32,6 @@ interface TableInfo {
|
|
|
21
32
|
columns: string[];
|
|
22
33
|
unique: boolean;
|
|
23
34
|
}[];
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
export declare function getAllTableInfos(spaceid: string): TableInfo[];
|
|
27
|
-
export declare function getTableInfo(spaceid: string, id: string): TableInfo | undefined;
|
|
35
|
+
};
|
|
28
36
|
export declare function genTableOpts(spaceid: string): Blockly.MenuOption[];
|
|
29
37
|
export {};
|