x-block-lib 0.4.45 → 0.4.47
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/{blockly-n2nno6aq.js → blockly-cc5ny7z2.js} +2 -2
- package/dist/core/blocks/compute/index.d.ts +1 -0
- package/dist/core/blocks/compute/onFlowStateEvent/v1/index.d.ts +1 -0
- package/dist/core/blocks/index.d.ts +1 -0
- package/dist/core/blocks/ui/index.d.ts +4 -0
- package/dist/core/category/flow/v1/index.d.ts +1 -1
- package/dist/core/category/func/v1/index.d.ts +1 -1
- package/dist/core/category/variable/v1/index.d.ts +1 -1
- package/dist/core/locale/msg/en.d.ts +48 -0
- package/dist/core/locale/msg/zhHans.d.ts +48 -0
- package/dist/core/toolbox/common/message/v1/index.d.ts +21 -0
- package/dist/core/utils/app/app.d.ts +6 -20
- package/dist/core/utils/app/arg.d.ts +2 -10
- package/dist/core/utils/app/element.d.ts +1 -5
- package/dist/core/utils/app/node.d.ts +5 -19
- package/dist/{i18n-en-m3g6roub.js → i18n-en-owbcs4f2.js} +0 -2
- package/dist/{i18n-zhHans-emne9mah.js → i18n-zhHans-bw16iab9.js} +0 -2
- package/dist/index.js +3943 -2988
- package/dist/{msg-en-eqk5vznj.js → msg-en-gh1serth.js} +52 -2
- package/dist/{msg-zhHans-c9t7pl7j.js → msg-zhHans-aboc49to.js} +50 -0
- package/dist/state/app.d.ts +24 -44
- package/dist/state/compute.d.ts +0 -1
- package/dist/state/runtime.d.ts +18 -9
- package/dist/state/state.d.ts +2 -2
- package/package.json +2 -2
|
@@ -15871,8 +15871,8 @@ export {
|
|
|
15871
15871
|
bb as d,
|
|
15872
15872
|
Xm as e,
|
|
15873
15873
|
Z_ as f,
|
|
15874
|
-
|
|
15875
|
-
|
|
15874
|
+
Cb as g,
|
|
15875
|
+
fb as h,
|
|
15876
15876
|
Rb as i,
|
|
15877
15877
|
Qb as j,
|
|
15878
15878
|
R_ as k,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
2
|
+
declare function callback(type: string): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const flowCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
2
|
+
declare function callback(type: string): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const funcCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(
|
|
2
|
+
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const variableCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -38,25 +38,35 @@ declare const _default: {
|
|
|
38
38
|
CATEGORY_CALC: string;
|
|
39
39
|
CATEGORY_COLOR: string;
|
|
40
40
|
CATEGORY_DATA: string;
|
|
41
|
+
CATEGORY_FLOW: string;
|
|
41
42
|
CATEGORY_FUNC: string;
|
|
42
43
|
CATEGORY_INTERFACE: string;
|
|
43
44
|
CATEGORY_LIST: string;
|
|
44
45
|
CATEGORY_LOGIC: string;
|
|
45
46
|
CATEGORY_LOOP: string;
|
|
46
47
|
CATEGORY_MATH: string;
|
|
48
|
+
CATEGORY_MESSAGE: string;
|
|
47
49
|
CATEGORY_OBJECT: string;
|
|
48
50
|
CATEGORY_PROCEDURE: string;
|
|
49
51
|
CATEGORY_TEXT: string;
|
|
50
52
|
CATEGORY_TIME: string;
|
|
53
|
+
CATEGORY_UI: string;
|
|
51
54
|
CATEGORY_VARIABLE: string;
|
|
55
|
+
EVENT_CLICK: string;
|
|
56
|
+
EVENT_STARTUP: string;
|
|
57
|
+
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
58
|
+
EVENT_DARK_MODE_CHANGE: string;
|
|
52
59
|
LABEL_BOOLEAN: string;
|
|
53
60
|
LABEL_CONDITION: string;
|
|
54
61
|
LABEL_CREATE_VARIABLE: string;
|
|
55
62
|
LABEL_CREATED: string;
|
|
63
|
+
LABEL_EVENT: string;
|
|
56
64
|
LABEL_GET: string;
|
|
57
65
|
LABEL_LIST: string;
|
|
66
|
+
LABEL_METHOD: string;
|
|
58
67
|
LABEL_OBJECT: string;
|
|
59
68
|
LABEL_OPERATION: string;
|
|
69
|
+
LABEL_OTHER: string;
|
|
60
70
|
LABEL_PROCEDURE: string;
|
|
61
71
|
LABEL_PROPERTY: string;
|
|
62
72
|
LABEL_QUERY_EXTRA: string;
|
|
@@ -66,8 +76,12 @@ declare const _default: {
|
|
|
66
76
|
LABEL_VARIABLE: string;
|
|
67
77
|
PARAM_DATA: string;
|
|
68
78
|
PARAM_EXTRA_DATA: string;
|
|
79
|
+
PARAM_IS_DARK_MODE: string;
|
|
69
80
|
PARAM_MAIN_DATA: string;
|
|
70
81
|
PARAM_MESSAGE: string;
|
|
82
|
+
PARAM_NEW_SCREEN_SIZE: string;
|
|
83
|
+
PARAM_OLD_SCREEN_SIZE: string;
|
|
84
|
+
PARAM_RESULT: string;
|
|
71
85
|
PARAM_SUCCESS: string;
|
|
72
86
|
ASSET_DATA: string;
|
|
73
87
|
ASSET_DIR: string;
|
|
@@ -373,6 +387,40 @@ declare const _default: {
|
|
|
373
387
|
TIME_LOOP: string;
|
|
374
388
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
375
389
|
TIME_V1_DELAY_TITLE: string;
|
|
390
|
+
UI_DO: string;
|
|
391
|
+
UI_LABEL: string;
|
|
392
|
+
UI_MODE: string;
|
|
393
|
+
UI_NAVIGATE_MODE_PUSH: string;
|
|
394
|
+
UI_NAVIGATE_MODE_REPLACE: string;
|
|
395
|
+
UI_POPUP_MESSAGE_TYPE_ERROR: string;
|
|
396
|
+
UI_POPUP_MESSAGE_TYPE_INFO: string;
|
|
397
|
+
UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
|
|
398
|
+
UI_POPUP_MESSAGE_TYPE_WARNING: string;
|
|
399
|
+
UI_RETURN: string;
|
|
400
|
+
UI_TEXT: string;
|
|
401
|
+
UI_TITLE: string;
|
|
402
|
+
UI_VALUE: string;
|
|
403
|
+
UI_V1_GET_NODE_TITLE: string;
|
|
404
|
+
UI_V1_GET_NODE_TOOLTIP: string;
|
|
405
|
+
UI_V1_GET_NODE_HELPURL: string;
|
|
406
|
+
UI_V1_GET_NODE_PROP_TITLE: string;
|
|
407
|
+
UI_V1_GET_NODE_PROP_TOOLTIP: string;
|
|
408
|
+
UI_V1_GET_NODE_PROP_HELPURL: string;
|
|
409
|
+
UI_V1_NAVIGATE_TO_TITLE: string;
|
|
410
|
+
UI_V1_NAVIGATE_TO_TOOLTIP: string;
|
|
411
|
+
UI_V1_NAVIGATE_TO_HELPURL: string;
|
|
412
|
+
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
413
|
+
UI_V1_ON_NODE_EVENT_TOOLTIP: string;
|
|
414
|
+
UI_V1_ON_NODE_EVENT_HELPURL: string;
|
|
415
|
+
UI_V1_OPEN_CONFIRM_DLG_TITLE: string;
|
|
416
|
+
UI_V1_OPEN_CONFIRM_DLG_TOOLTIP: string;
|
|
417
|
+
UI_V1_OPEN_CONFIRM_DLG_HELPURL: string;
|
|
418
|
+
UI_V1_OPEN_PROMPT_DLG_TITLE: string;
|
|
419
|
+
UI_V1_OPEN_PROMPT_DLG_TOOLTIP: string;
|
|
420
|
+
UI_V1_OPEN_PROMPT_DLG_HELPURL: string;
|
|
421
|
+
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
422
|
+
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
423
|
+
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
376
424
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
377
425
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
378
426
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -38,25 +38,35 @@ declare const _default: {
|
|
|
38
38
|
CATEGORY_CALC: string;
|
|
39
39
|
CATEGORY_COLOR: string;
|
|
40
40
|
CATEGORY_DATA: string;
|
|
41
|
+
CATEGORY_FLOW: string;
|
|
41
42
|
CATEGORY_FUNC: string;
|
|
42
43
|
CATEGORY_INTERFACE: string;
|
|
43
44
|
CATEGORY_LIST: string;
|
|
44
45
|
CATEGORY_LOGIC: string;
|
|
45
46
|
CATEGORY_LOOP: string;
|
|
46
47
|
CATEGORY_MATH: string;
|
|
48
|
+
CATEGORY_MESSAGE: string;
|
|
47
49
|
CATEGORY_OBJECT: string;
|
|
48
50
|
CATEGORY_PROCEDURE: string;
|
|
49
51
|
CATEGORY_TEXT: string;
|
|
50
52
|
CATEGORY_TIMER: string;
|
|
53
|
+
CATEGORY_UI: string;
|
|
51
54
|
CATEGORY_VARIABLE: string;
|
|
55
|
+
EVENT_CLICK: string;
|
|
56
|
+
EVENT_STARTUP: string;
|
|
57
|
+
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
58
|
+
EVENT_DARK_MODE_CHANGE: string;
|
|
52
59
|
LABEL_BOOLEAN: string;
|
|
53
60
|
LABEL_CONDITION: string;
|
|
54
61
|
LABEL_CREATE_VARIABLE: string;
|
|
55
62
|
LABEL_CREATED: string;
|
|
63
|
+
LABEL_EVENT: string;
|
|
56
64
|
LABEL_GET: string;
|
|
57
65
|
LABEL_LIST: string;
|
|
66
|
+
LABEL_METHOD: string;
|
|
58
67
|
LABEL_OBJECT: string;
|
|
59
68
|
LABEL_OPERATION: string;
|
|
69
|
+
LABEL_OTHER: string;
|
|
60
70
|
LABEL_PROCEDURE: string;
|
|
61
71
|
LABEL_PROPERTY: string;
|
|
62
72
|
LABEL_QUERY_EXTRA: string;
|
|
@@ -66,8 +76,12 @@ declare const _default: {
|
|
|
66
76
|
LABEL_VARIABLE: string;
|
|
67
77
|
PARAM_DATA: string;
|
|
68
78
|
PARAM_EXTRA_DATA: string;
|
|
79
|
+
PARAM_IS_DARK_MODE: string;
|
|
69
80
|
PARAM_MAIN_DATA: string;
|
|
70
81
|
PARAM_MESSAGE: string;
|
|
82
|
+
PARAM_NEW_SCREEN_SIZE: string;
|
|
83
|
+
PARAM_OLD_SCREEN_SIZE: string;
|
|
84
|
+
PARAM_RESULT: string;
|
|
71
85
|
PARAM_SUCCESS: string;
|
|
72
86
|
ASSET_DATA: string;
|
|
73
87
|
ASSET_DIR: string;
|
|
@@ -373,6 +387,40 @@ declare const _default: {
|
|
|
373
387
|
TIME_LOOP: string;
|
|
374
388
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
375
389
|
TIME_V1_DELAY_TITLE: string;
|
|
390
|
+
UI_DO: string;
|
|
391
|
+
UI_LABEL: string;
|
|
392
|
+
UI_MODE: string;
|
|
393
|
+
UI_NAVIGATE_MODE_PUSH: string;
|
|
394
|
+
UI_NAVIGATE_MODE_REPLACE: string;
|
|
395
|
+
UI_POPUP_MESSAGE_TYPE_ERROR: string;
|
|
396
|
+
UI_POPUP_MESSAGE_TYPE_INFO: string;
|
|
397
|
+
UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
|
|
398
|
+
UI_POPUP_MESSAGE_TYPE_WARNING: string;
|
|
399
|
+
UI_RETURN: string;
|
|
400
|
+
UI_TEXT: string;
|
|
401
|
+
UI_TITLE: string;
|
|
402
|
+
UI_VALUE: string;
|
|
403
|
+
UI_V1_GET_NODE_TITLE: string;
|
|
404
|
+
UI_V1_GET_NODE_TOOLTIP: string;
|
|
405
|
+
UI_V1_GET_NODE_HELPURL: string;
|
|
406
|
+
UI_V1_GET_NODE_PROP_TITLE: string;
|
|
407
|
+
UI_V1_GET_NODE_PROP_TOOLTIP: string;
|
|
408
|
+
UI_V1_GET_NODE_PROP_HELPURL: string;
|
|
409
|
+
UI_V1_NAVIGATE_TO_TITLE: string;
|
|
410
|
+
UI_V1_NAVIGATE_TO_TOOLTIP: string;
|
|
411
|
+
UI_V1_NAVIGATE_TO_HELPURL: string;
|
|
412
|
+
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
413
|
+
UI_V1_ON_NODE_EVENT_TOOLTIP: string;
|
|
414
|
+
UI_V1_ON_NODE_EVENT_HELPURL: string;
|
|
415
|
+
UI_V1_OPEN_CONFIRM_DLG_TITLE: string;
|
|
416
|
+
UI_V1_OPEN_CONFIRM_DLG_TOOLTIP: string;
|
|
417
|
+
UI_V1_OPEN_CONFIRM_DLG_HELPURL: string;
|
|
418
|
+
UI_V1_OPEN_PROMPT_DLG_TITLE: string;
|
|
419
|
+
UI_V1_OPEN_PROMPT_DLG_TOOLTIP: string;
|
|
420
|
+
UI_V1_OPEN_PROMPT_DLG_HELPURL: string;
|
|
421
|
+
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
422
|
+
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
423
|
+
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
376
424
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
377
425
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
378
426
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const message: {
|
|
2
|
+
kind: string;
|
|
3
|
+
name: string;
|
|
4
|
+
categorystyle: string;
|
|
5
|
+
contents: ({
|
|
6
|
+
kind: string;
|
|
7
|
+
type: string;
|
|
8
|
+
inputs: {
|
|
9
|
+
TEXT: {
|
|
10
|
+
shadow: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
kind: string;
|
|
17
|
+
type: string;
|
|
18
|
+
inputs?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
};
|
|
21
|
+
export default message;
|
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
sort: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function getAllAppInfos(): AppInfo[];
|
|
8
|
-
export declare function getAppInfo(id: string): {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
sort: number;
|
|
12
|
-
};
|
|
2
|
+
export declare function getAllAppInfos(): import("../../../state").App[];
|
|
3
|
+
export declare function getAppInfo(id: string): import("../../../state").App | undefined;
|
|
13
4
|
export declare function genAppOpts(): Blockly.MenuOption[];
|
|
14
|
-
|
|
5
|
+
export declare function getAllPageInfos(appid: string): {
|
|
15
6
|
id: string;
|
|
16
7
|
name: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare function getAllPageInfos(appid: string): PageInfo[];
|
|
20
|
-
export declare function getPageInfo(id: string): {
|
|
8
|
+
}[];
|
|
9
|
+
export declare function getPageInfo(appid: string, pageid: string): {
|
|
21
10
|
id: string;
|
|
22
|
-
appid: string;
|
|
23
11
|
name: string;
|
|
24
|
-
|
|
25
|
-
};
|
|
12
|
+
} | undefined;
|
|
26
13
|
export declare function genPageOpts(appid: string): Blockly.MenuOption[];
|
|
27
|
-
export {};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
export declare function getAllArgInfos():
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}[];
|
|
7
|
-
export declare function getArgInfo(id: string): {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
type: string;
|
|
11
|
-
} | undefined;
|
|
2
|
+
export declare function getAllArgInfos(): import("../../../state").Arg[];
|
|
3
|
+
export declare function getArgInfo(id: string): import("../../../state").Arg | undefined;
|
|
12
4
|
export declare function genArgOpts(): Blockly.MenuOption[];
|
|
@@ -19,10 +19,6 @@ interface PropInfo {
|
|
|
19
19
|
readonly?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare function getAllPropInfos(elementKey: string, modify?: boolean): PropInfo[];
|
|
22
|
-
export declare function getPropInfo(elementKey: string, propKeys: string):
|
|
23
|
-
keys: string;
|
|
24
|
-
names: string[];
|
|
25
|
-
readonly?: boolean;
|
|
26
|
-
} | undefined;
|
|
22
|
+
export declare function getPropInfo(elementKey: string, propKeys: string): import("../../../state").Prop | undefined;
|
|
27
23
|
export declare function genPropOpts(elementKey: string, modify?: boolean): Blockly.MenuOption[];
|
|
28
24
|
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
+
import { Node, Prop } from '../../../state';
|
|
2
3
|
type Filter = 'event' | 'method';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
key: string;
|
|
6
|
-
alias: string;
|
|
7
|
-
sort: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function getAllNodeInfos(filter?: Filter): NodeInfo[];
|
|
10
|
-
export declare function getNodeInfo(id: string): NodeInfo;
|
|
4
|
+
export declare function getAllNodeInfos(filter?: Filter): Node[];
|
|
5
|
+
export declare function getNodeInfo(id: string): Node | undefined;
|
|
11
6
|
export declare function genNodeOpts(filter?: Filter): Blockly.MenuOption[];
|
|
12
7
|
export declare function getAllEventInfos(nodeid: string): import("x-runtime-lib").ZEvent[];
|
|
13
8
|
export declare function getEventInfo(nodeid: string, eventKey: string): import("x-runtime-lib").ZEvent | undefined;
|
|
@@ -15,16 +10,7 @@ export declare function genEventOpts(nodeid: string): Blockly.MenuOption[];
|
|
|
15
10
|
export declare function getAllMethodInfos(nodeid: string): import("x-runtime-lib").ZMethod[];
|
|
16
11
|
export declare function getMethodInfo(nodeid: string, methodKey: string): import("x-runtime-lib").ZMethod | undefined;
|
|
17
12
|
export declare function genMethodOpts(nodeid: string): Blockly.MenuOption[];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
names: string[];
|
|
21
|
-
readonly?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
|
|
24
|
-
export declare function getPropInfo(nodeid: string, propKeys: string): {
|
|
25
|
-
keys: string;
|
|
26
|
-
names: string[];
|
|
27
|
-
readonly?: boolean;
|
|
28
|
-
} | undefined;
|
|
13
|
+
export declare function getAllPropInfos(nodeid: string, modify?: boolean): Prop[];
|
|
14
|
+
export declare function getPropInfo(nodeid: string, propKeys: string): Prop | undefined;
|
|
29
15
|
export declare function genPropOpts(nodeid: string, modify?: boolean): Blockly.MenuOption[];
|
|
30
16
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const t = {
|
|
2
2
|
"x-block-lib": {
|
|
3
|
-
comp: "Comp",
|
|
4
3
|
dlg: {
|
|
5
4
|
source: {
|
|
6
5
|
title: "Source"
|
|
@@ -12,7 +11,6 @@ const t = {
|
|
|
12
11
|
},
|
|
13
12
|
navigator: "Navigator",
|
|
14
13
|
noOption: "No Option",
|
|
15
|
-
page: "Page",
|
|
16
14
|
procedure: "Procedure",
|
|
17
15
|
temporaryBlock: "Temporary Block",
|
|
18
16
|
tip: {
|