x-block-lib 0.4.46 → 0.4.48
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/blocks/ui/appDebugTrace/v1/index.d.ts +1 -0
- package/dist/core/blocks/ui/appEnv/v1/index.d.ts +1 -0
- package/dist/core/blocks/ui/index.d.ts +5 -0
- package/dist/core/locale/msg/en.d.ts +45 -0
- package/dist/core/locale/msg/zhHans.d.ts +46 -1
- package/dist/core/toolbox/common/message/v1/index.d.ts +33 -0
- package/dist/core/toolbox/common/time/v1/index.d.ts +1 -1
- 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 +4 -13
- 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 +2856 -2329
- package/dist/{msg-en-bj6uo3nn.js → msg-en-enl17pxd.js} +48 -3
- package/dist/{msg-zhHans-frk9l0jh.js → msg-zhHans-oo3u4x5i.js} +47 -2
- package/dist/state/app.d.ts +21 -37
- package/dist/state/runtime.d.ts +17 -9
- package/dist/state/state.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -45,12 +45,14 @@ declare const _default: {
|
|
|
45
45
|
CATEGORY_LOGIC: string;
|
|
46
46
|
CATEGORY_LOOP: string;
|
|
47
47
|
CATEGORY_MATH: string;
|
|
48
|
+
CATEGORY_MESSAGE: string;
|
|
48
49
|
CATEGORY_OBJECT: string;
|
|
49
50
|
CATEGORY_PROCEDURE: string;
|
|
50
51
|
CATEGORY_TEXT: string;
|
|
51
52
|
CATEGORY_TIME: string;
|
|
52
53
|
CATEGORY_UI: string;
|
|
53
54
|
CATEGORY_VARIABLE: string;
|
|
55
|
+
EVENT_CLICK: string;
|
|
54
56
|
EVENT_STARTUP: string;
|
|
55
57
|
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
56
58
|
EVENT_DARK_MODE_CHANGE: string;
|
|
@@ -61,8 +63,10 @@ declare const _default: {
|
|
|
61
63
|
LABEL_EVENT: string;
|
|
62
64
|
LABEL_GET: string;
|
|
63
65
|
LABEL_LIST: string;
|
|
66
|
+
LABEL_METHOD: string;
|
|
64
67
|
LABEL_OBJECT: string;
|
|
65
68
|
LABEL_OPERATION: string;
|
|
69
|
+
LABEL_OTHER: string;
|
|
66
70
|
LABEL_PROCEDURE: string;
|
|
67
71
|
LABEL_PROPERTY: string;
|
|
68
72
|
LABEL_QUERY_EXTRA: string;
|
|
@@ -77,6 +81,7 @@ declare const _default: {
|
|
|
77
81
|
PARAM_MESSAGE: string;
|
|
78
82
|
PARAM_NEW_SCREEN_SIZE: string;
|
|
79
83
|
PARAM_OLD_SCREEN_SIZE: string;
|
|
84
|
+
PARAM_RESULT: string;
|
|
80
85
|
PARAM_SUCCESS: string;
|
|
81
86
|
ASSET_DATA: string;
|
|
82
87
|
ASSET_DIR: string;
|
|
@@ -383,7 +388,47 @@ declare const _default: {
|
|
|
383
388
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
384
389
|
TIME_V1_DELAY_TITLE: string;
|
|
385
390
|
UI_DO: string;
|
|
391
|
+
UI_ENV_DEV: string;
|
|
392
|
+
UI_ENV_PROD: string;
|
|
393
|
+
UI_LABEL: string;
|
|
394
|
+
UI_MODE: string;
|
|
395
|
+
UI_NAVIGATE_MODE_PUSH: string;
|
|
396
|
+
UI_NAVIGATE_MODE_REPLACE: string;
|
|
397
|
+
UI_POPUP_MESSAGE_TYPE_ERROR: string;
|
|
398
|
+
UI_POPUP_MESSAGE_TYPE_INFO: string;
|
|
399
|
+
UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
|
|
400
|
+
UI_POPUP_MESSAGE_TYPE_WARNING: string;
|
|
401
|
+
UI_RETURN: string;
|
|
402
|
+
UI_TEXT: string;
|
|
403
|
+
UI_TITLE: string;
|
|
404
|
+
UI_VALUE: string;
|
|
405
|
+
UI_V1_APP_DEBUG_TRACE_TITLE: string;
|
|
406
|
+
UI_V1_APP_DEBUG_TRACE_TOOLTIP: string;
|
|
407
|
+
UI_V1_APP_DEBUG_TRACE_HELPURL: string;
|
|
408
|
+
UI_V1_APP_ENV_TITLE: string;
|
|
409
|
+
UI_V1_APP_ENV_TOOLTIP: string;
|
|
410
|
+
UI_V1_APP_ENV_HELPURL: string;
|
|
411
|
+
UI_V1_GET_NODE_TITLE: string;
|
|
412
|
+
UI_V1_GET_NODE_TOOLTIP: string;
|
|
413
|
+
UI_V1_GET_NODE_HELPURL: string;
|
|
414
|
+
UI_V1_GET_NODE_PROP_TITLE: string;
|
|
415
|
+
UI_V1_GET_NODE_PROP_TOOLTIP: string;
|
|
416
|
+
UI_V1_GET_NODE_PROP_HELPURL: string;
|
|
417
|
+
UI_V1_NAVIGATE_TO_TITLE: string;
|
|
418
|
+
UI_V1_NAVIGATE_TO_TOOLTIP: string;
|
|
419
|
+
UI_V1_NAVIGATE_TO_HELPURL: string;
|
|
386
420
|
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
421
|
+
UI_V1_ON_NODE_EVENT_TOOLTIP: string;
|
|
422
|
+
UI_V1_ON_NODE_EVENT_HELPURL: string;
|
|
423
|
+
UI_V1_OPEN_CONFIRM_DLG_TITLE: string;
|
|
424
|
+
UI_V1_OPEN_CONFIRM_DLG_TOOLTIP: string;
|
|
425
|
+
UI_V1_OPEN_CONFIRM_DLG_HELPURL: string;
|
|
426
|
+
UI_V1_OPEN_PROMPT_DLG_TITLE: string;
|
|
427
|
+
UI_V1_OPEN_PROMPT_DLG_TOOLTIP: string;
|
|
428
|
+
UI_V1_OPEN_PROMPT_DLG_HELPURL: string;
|
|
429
|
+
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
430
|
+
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
431
|
+
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
387
432
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
388
433
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
389
434
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -45,12 +45,14 @@ declare const _default: {
|
|
|
45
45
|
CATEGORY_LOGIC: string;
|
|
46
46
|
CATEGORY_LOOP: string;
|
|
47
47
|
CATEGORY_MATH: string;
|
|
48
|
+
CATEGORY_MESSAGE: string;
|
|
48
49
|
CATEGORY_OBJECT: string;
|
|
49
50
|
CATEGORY_PROCEDURE: string;
|
|
50
51
|
CATEGORY_TEXT: string;
|
|
51
|
-
|
|
52
|
+
CATEGORY_TIME: string;
|
|
52
53
|
CATEGORY_UI: string;
|
|
53
54
|
CATEGORY_VARIABLE: string;
|
|
55
|
+
EVENT_CLICK: string;
|
|
54
56
|
EVENT_STARTUP: string;
|
|
55
57
|
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
56
58
|
EVENT_DARK_MODE_CHANGE: string;
|
|
@@ -61,8 +63,10 @@ declare const _default: {
|
|
|
61
63
|
LABEL_EVENT: string;
|
|
62
64
|
LABEL_GET: string;
|
|
63
65
|
LABEL_LIST: string;
|
|
66
|
+
LABEL_METHOD: string;
|
|
64
67
|
LABEL_OBJECT: string;
|
|
65
68
|
LABEL_OPERATION: string;
|
|
69
|
+
LABEL_OTHER: string;
|
|
66
70
|
LABEL_PROCEDURE: string;
|
|
67
71
|
LABEL_PROPERTY: string;
|
|
68
72
|
LABEL_QUERY_EXTRA: string;
|
|
@@ -77,6 +81,7 @@ declare const _default: {
|
|
|
77
81
|
PARAM_MESSAGE: string;
|
|
78
82
|
PARAM_NEW_SCREEN_SIZE: string;
|
|
79
83
|
PARAM_OLD_SCREEN_SIZE: string;
|
|
84
|
+
PARAM_RESULT: string;
|
|
80
85
|
PARAM_SUCCESS: string;
|
|
81
86
|
ASSET_DATA: string;
|
|
82
87
|
ASSET_DIR: string;
|
|
@@ -383,7 +388,47 @@ declare const _default: {
|
|
|
383
388
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
384
389
|
TIME_V1_DELAY_TITLE: string;
|
|
385
390
|
UI_DO: string;
|
|
391
|
+
UI_ENV_DEV: string;
|
|
392
|
+
UI_ENV_PROD: string;
|
|
393
|
+
UI_LABEL: string;
|
|
394
|
+
UI_MODE: string;
|
|
395
|
+
UI_NAVIGATE_MODE_PUSH: string;
|
|
396
|
+
UI_NAVIGATE_MODE_REPLACE: string;
|
|
397
|
+
UI_POPUP_MESSAGE_TYPE_ERROR: string;
|
|
398
|
+
UI_POPUP_MESSAGE_TYPE_INFO: string;
|
|
399
|
+
UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
|
|
400
|
+
UI_POPUP_MESSAGE_TYPE_WARNING: string;
|
|
401
|
+
UI_RETURN: string;
|
|
402
|
+
UI_TEXT: string;
|
|
403
|
+
UI_TITLE: string;
|
|
404
|
+
UI_VALUE: string;
|
|
405
|
+
UI_V1_APP_DEBUG_TRACE_TITLE: string;
|
|
406
|
+
UI_V1_APP_DEBUG_TRACE_TOOLTIP: string;
|
|
407
|
+
UI_V1_APP_DEBUG_TRACE_HELPURL: string;
|
|
408
|
+
UI_V1_APP_ENV_TITLE: string;
|
|
409
|
+
UI_V1_APP_ENV_TOOLTIP: string;
|
|
410
|
+
UI_V1_APP_ENV_HELPURL: string;
|
|
411
|
+
UI_V1_GET_NODE_TITLE: string;
|
|
412
|
+
UI_V1_GET_NODE_TOOLTIP: string;
|
|
413
|
+
UI_V1_GET_NODE_HELPURL: string;
|
|
414
|
+
UI_V1_GET_NODE_PROP_TITLE: string;
|
|
415
|
+
UI_V1_GET_NODE_PROP_TOOLTIP: string;
|
|
416
|
+
UI_V1_GET_NODE_PROP_HELPURL: string;
|
|
417
|
+
UI_V1_NAVIGATE_TO_TITLE: string;
|
|
418
|
+
UI_V1_NAVIGATE_TO_TOOLTIP: string;
|
|
419
|
+
UI_V1_NAVIGATE_TO_HELPURL: string;
|
|
386
420
|
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
421
|
+
UI_V1_ON_NODE_EVENT_TOOLTIP: string;
|
|
422
|
+
UI_V1_ON_NODE_EVENT_HELPURL: string;
|
|
423
|
+
UI_V1_OPEN_CONFIRM_DLG_TITLE: string;
|
|
424
|
+
UI_V1_OPEN_CONFIRM_DLG_TOOLTIP: string;
|
|
425
|
+
UI_V1_OPEN_CONFIRM_DLG_HELPURL: string;
|
|
426
|
+
UI_V1_OPEN_PROMPT_DLG_TITLE: string;
|
|
427
|
+
UI_V1_OPEN_PROMPT_DLG_TOOLTIP: string;
|
|
428
|
+
UI_V1_OPEN_PROMPT_DLG_HELPURL: string;
|
|
429
|
+
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
430
|
+
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
431
|
+
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
387
432
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
388
433
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
389
434
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const message: {
|
|
2
|
+
kind: string;
|
|
3
|
+
name: string;
|
|
4
|
+
categorystyle: string;
|
|
5
|
+
contents: ({
|
|
6
|
+
kind: string;
|
|
7
|
+
type: string;
|
|
8
|
+
inputs: {
|
|
9
|
+
OBJECT: {
|
|
10
|
+
shadow: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
TEXT?: undefined;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
kind: string;
|
|
18
|
+
type: string;
|
|
19
|
+
inputs: {
|
|
20
|
+
TEXT: {
|
|
21
|
+
shadow: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
OBJECT?: undefined;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
kind: string;
|
|
29
|
+
type: string;
|
|
30
|
+
inputs?: undefined;
|
|
31
|
+
})[];
|
|
32
|
+
};
|
|
33
|
+
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,8 +1,8 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import { Node } from '../../../state';
|
|
2
|
+
import { Node, Prop } from '../../../state';
|
|
3
3
|
type Filter = 'event' | 'method';
|
|
4
4
|
export declare function getAllNodeInfos(filter?: Filter): Node[];
|
|
5
|
-
export declare function getNodeInfo(id: string): Node;
|
|
5
|
+
export declare function getNodeInfo(id: string): Node | undefined;
|
|
6
6
|
export declare function genNodeOpts(filter?: Filter): Blockly.MenuOption[];
|
|
7
7
|
export declare function getAllEventInfos(nodeid: string): import("x-runtime-lib").ZEvent[];
|
|
8
8
|
export declare function getEventInfo(nodeid: string, eventKey: string): import("x-runtime-lib").ZEvent | undefined;
|
|
@@ -10,16 +10,7 @@ export declare function genEventOpts(nodeid: string): Blockly.MenuOption[];
|
|
|
10
10
|
export declare function getAllMethodInfos(nodeid: string): import("x-runtime-lib").ZMethod[];
|
|
11
11
|
export declare function getMethodInfo(nodeid: string, methodKey: string): import("x-runtime-lib").ZMethod | undefined;
|
|
12
12
|
export declare function genMethodOpts(nodeid: string): Blockly.MenuOption[];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
names: string[];
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
|
|
19
|
-
export declare function getPropInfo(nodeid: string, propKeys: string): {
|
|
20
|
-
keys: string;
|
|
21
|
-
names: string[];
|
|
22
|
-
readonly?: boolean;
|
|
23
|
-
} | undefined;
|
|
13
|
+
export declare function getAllPropInfos(nodeid: string, modify?: boolean): Prop[];
|
|
14
|
+
export declare function getPropInfo(nodeid: string, propKeys: string): Prop | undefined;
|
|
24
15
|
export declare function genPropOpts(nodeid: string, modify?: boolean): Blockly.MenuOption[];
|
|
25
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: {
|