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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,8 @@
1
+ import './appDebugTrace/v1';
2
+ import './appEnv/v1';
3
+ import './callNodeMethod/v1';
4
+ import './getNode/v1';
5
+ import './getNodeProp/v1';
1
6
  import './navigateTo/v1';
2
7
  import './onNodeEvent/v1';
3
8
  import './openConfirmDlg/v1';
@@ -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
- CATEGORY_TIMER: string;
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;
@@ -10,7 +10,7 @@ declare const time: {
10
10
  kind: string;
11
11
  type: string;
12
12
  inputs: {
13
- MS: {
13
+ DURATION: {
14
14
  shadow: {
15
15
  type: string;
16
16
  fields: {
@@ -1,27 +1,13 @@
1
1
  import * as Blockly from 'blockly/core';
2
- interface AppInfo {
3
- id: string;
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
- interface PageInfo {
5
+ export declare function getAllPageInfos(appid: string): {
15
6
  id: string;
16
7
  name: string;
17
- sort: number;
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
- sort: number;
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
- id: string;
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
- interface PropInfo {
14
- keys: string;
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: {
@@ -1,6 +1,5 @@
1
1
  const t = {
2
2
  "x-block-lib": {
3
- comp: "组件",
4
3
  dlg: {
5
4
  source: {
6
5
  title: "源代码"
@@ -12,7 +11,6 @@ const t = {
12
11
  },
13
12
  navigator: "导航器",
14
13
  noOption: "没有选项",
15
- page: "页面",
16
14
  procedure: "程序",
17
15
  temporaryBlock: "临时块",
18
16
  tip: {