x-block-lib 0.7.18 → 0.7.20

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.
Files changed (87) hide show
  1. package/dist/core/blocks/app/argument/index.d.ts +1 -0
  2. package/dist/core/blocks/app/define/index.d.ts +2 -0
  3. package/dist/core/blocks/app/event/index.d.ts +3 -0
  4. package/dist/core/blocks/app/index.d.ts +8 -21
  5. package/dist/core/blocks/app/message/index.d.ts +3 -0
  6. package/dist/core/blocks/app/method/index.d.ts +4 -0
  7. package/dist/core/blocks/app/misc/index.d.ts +5 -0
  8. package/dist/core/blocks/app/property/index.d.ts +6 -0
  9. package/dist/core/blocks/app/state/index.d.ts +2 -0
  10. package/dist/core/blocks/compute/flow/index.d.ts +1 -0
  11. package/dist/core/blocks/compute/func/index.d.ts +4 -0
  12. package/dist/core/blocks/compute/index.d.ts +3 -6
  13. package/dist/core/blocks/compute/misc/computeEnvIs/v1/index.d.ts +1 -0
  14. package/dist/core/blocks/compute/misc/index.d.ts +2 -0
  15. package/dist/core/category/app/compute/v1/index.d.ts +7 -0
  16. package/dist/core/category/{data/data → app/event}/v1/index.d.ts +1 -1
  17. package/dist/core/category/app/index.d.ts +7 -2
  18. package/dist/core/category/app/{interface → method}/v1/index.d.ts +1 -1
  19. package/dist/core/category/app/{ui → misc}/v1/index.d.ts +1 -1
  20. package/dist/core/category/app/property/v1/index.d.ts +7 -0
  21. package/dist/core/category/app/resource/v1/index.d.ts +7 -0
  22. package/dist/core/category/app/state/v1/index.d.ts +7 -0
  23. package/dist/core/category/compute/data/v1/index.d.ts +7 -0
  24. package/dist/core/category/compute/flow/v1/index.d.ts +2 -2
  25. package/dist/core/category/compute/func/v1/index.d.ts +2 -2
  26. package/dist/core/category/compute/index.d.ts +2 -0
  27. package/dist/core/category/compute/misc/v1/index.d.ts +7 -0
  28. package/dist/core/category/index.d.ts +0 -1
  29. package/dist/core/category/utils/index.d.ts +5 -0
  30. package/dist/core/locale/msg/en.d.ts +61 -58
  31. package/dist/core/locale/msg/zhHans.d.ts +61 -58
  32. package/dist/core/toolbox/common/color/v1/index.d.ts +1 -2
  33. package/dist/core/toolbox/common/index.d.ts +8 -0
  34. package/dist/core/toolbox/common/list/v1/index.d.ts +1 -2
  35. package/dist/core/toolbox/common/logic/v1/index.d.ts +1 -2
  36. package/dist/core/toolbox/common/loop/v1/index.d.ts +1 -2
  37. package/dist/core/toolbox/common/math/v1/index.d.ts +1 -2
  38. package/dist/core/toolbox/common/object/v1/index.d.ts +1 -2
  39. package/dist/core/toolbox/common/text/v1/index.d.ts +1 -2
  40. package/dist/core/toolbox/common/time/v1/index.d.ts +1 -2
  41. package/dist/core/toolbox/comp/v1/index.d.ts +0 -31
  42. package/dist/core/toolbox/page/v1/index.d.ts +0 -31
  43. package/dist/core/utils/app/comp.d.ts +10 -11
  44. package/dist/core/utils/app/page.d.ts +2 -3
  45. package/dist/core/utils/common/block.d.ts +0 -2
  46. package/dist/core/utils/common/check.d.ts +2 -2
  47. package/dist/core/utils/common/shadow.d.ts +6 -2
  48. package/dist/core/utils/compute/func.d.ts +1 -1
  49. package/dist/index.js +3914 -3961
  50. package/dist/{msg-en.olpxzsl8.js → msg-en.d2bpkdwr.js} +61 -60
  51. package/dist/{msg-zhHans.osx47lrf.js → msg-zhHans.l3bo9qik.js} +61 -60
  52. package/dist/{vendor.gwcdj52j.js → vendor.eugzj64g.js} +2 -2
  53. package/package.json +3 -3
  54. package/dist/core/blocks/app/define/v1/index.d.ts +0 -2
  55. package/dist/core/category/data/index.d.ts +0 -1
  56. /package/dist/core/blocks/app/{appDebugTrace → argument/getPageArgument}/v1/index.d.ts +0 -0
  57. /package/dist/core/blocks/app/{appEnv → define/items}/v1/index.d.ts +0 -0
  58. /package/dist/core/blocks/app/{callNodeMethod → define/types}/v1/index.d.ts +0 -0
  59. /package/dist/core/blocks/app/{callNodeMethodAs → event/onAppEvent}/v1/index.d.ts +0 -0
  60. /package/dist/core/blocks/app/{compMethodImpl → event/onAppEventAs}/v1/index.d.ts +0 -0
  61. /package/dist/core/blocks/app/{getAppState → event/triggerAppEvent}/v1/index.d.ts +0 -0
  62. /package/dist/core/blocks/app/{getNode → message/openConfirmDlg}/v1/index.d.ts +0 -0
  63. /package/dist/core/blocks/app/{getNodeProp → message/openPromptDlg}/v1/index.d.ts +0 -0
  64. /package/dist/core/blocks/app/{getNodePropAs → message/popupMessage}/v1/index.d.ts +0 -0
  65. /package/dist/core/blocks/app/{getPageArgument → method/callMethod}/v1/index.d.ts +0 -0
  66. /package/dist/core/blocks/app/{navigateTo → method/callMethodAs}/v1/index.d.ts +0 -0
  67. /package/dist/core/blocks/app/{onNodeEvent → method/methodImpl}/v1/index.d.ts +0 -0
  68. /package/dist/core/blocks/app/{onNodeEventAs → method/setMethodOutput}/v1/index.d.ts +0 -0
  69. /package/dist/core/blocks/app/{openConfirmDlg → misc/appDebugTrace}/v1/index.d.ts +0 -0
  70. /package/dist/core/blocks/app/{openPromptDlg → misc/appEnvIs}/v1/index.d.ts +0 -0
  71. /package/dist/core/blocks/app/{popupMessage → misc/getAppNode}/v1/index.d.ts +0 -0
  72. /package/dist/core/blocks/app/{propBind → misc/navigateTo}/v1/index.d.ts +0 -0
  73. /package/dist/core/blocks/app/{propBindAs → misc/selectComp}/v1/index.d.ts +0 -0
  74. /package/dist/core/blocks/app/{selectComp → property/getProp}/v1/index.d.ts +0 -0
  75. /package/dist/core/blocks/app/{setAppState → property/getPropAs}/v1/index.d.ts +0 -0
  76. /package/dist/core/blocks/app/{setCompMethodOutput → property/propBind}/v1/index.d.ts +0 -0
  77. /package/dist/core/blocks/app/{setNodeProp → property/propBindAs}/v1/index.d.ts +0 -0
  78. /package/dist/core/blocks/app/{setNodePropAs → property/setProp}/v1/index.d.ts +0 -0
  79. /package/dist/core/blocks/app/{triggerCompEvent → property/setPropAs}/v1/index.d.ts +0 -0
  80. /package/dist/core/blocks/{compute/callFunc → app/state/getAppState}/v1/index.d.ts +0 -0
  81. /package/dist/core/blocks/{compute/callFuncInternal → app/state/setAppState}/v1/index.d.ts +0 -0
  82. /package/dist/core/blocks/compute/{computeDebugTrace → flow/onFlowStateEvent}/v1/index.d.ts +0 -0
  83. /package/dist/core/blocks/compute/{funcEntry → func/callFunc}/v1/index.d.ts +0 -0
  84. /package/dist/core/blocks/compute/{onFlowStateEvent → func/callFuncInternal}/v1/index.d.ts +0 -0
  85. /package/dist/core/blocks/compute/{setFuncOutput → func/funcEntry}/v1/index.d.ts +0 -0
  86. /package/dist/core/blocks/{app/define/v1/items.d.ts → compute/func/setFuncOutput/v1/index.d.ts} +0 -0
  87. /package/dist/core/blocks/{app/define/v1/types.d.ts → compute/misc/computeDebugTrace/v1/index.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- declare const loop: {
1
+ export declare const loopV1: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
@@ -54,4 +54,3 @@ declare const loop: {
54
54
  };
55
55
  })[];
56
56
  };
57
- export default loop;
@@ -1,4 +1,4 @@
1
- declare const math: {
1
+ export declare const mathV1: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
@@ -129,4 +129,3 @@ declare const math: {
129
129
  fields?: undefined;
130
130
  })[];
131
131
  };
132
- export default math;
@@ -1,4 +1,4 @@
1
- declare const object: {
1
+ export declare const objectV1: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
@@ -28,4 +28,3 @@ declare const object: {
28
28
  text?: undefined;
29
29
  })[];
30
30
  };
31
- export default object;
@@ -1,4 +1,4 @@
1
- declare const text: {
1
+ export declare const textV1: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
@@ -170,4 +170,3 @@ declare const text: {
170
170
  extraState?: undefined;
171
171
  })[];
172
172
  };
173
- export default text;
@@ -1,4 +1,4 @@
1
- declare const time: {
1
+ export declare const timeV1: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
@@ -21,4 +21,3 @@ declare const time: {
21
21
  };
22
22
  })[];
23
23
  };
24
- export default time;
@@ -141,37 +141,6 @@ export declare const compToolboxV1: {
141
141
  TIMES?: undefined;
142
142
  };
143
143
  })[];
144
- } | {
145
- kind: string;
146
- name: string;
147
- categorystyle: string;
148
- contents: ({
149
- kind: string;
150
- type: string;
151
- inputs: {
152
- OBJECT: {
153
- shadow: {
154
- type: string;
155
- };
156
- };
157
- TEXT?: undefined;
158
- };
159
- } | {
160
- kind: string;
161
- type: string;
162
- inputs: {
163
- TEXT: {
164
- shadow: {
165
- type: string;
166
- };
167
- };
168
- OBJECT?: undefined;
169
- };
170
- } | {
171
- kind: string;
172
- type: string;
173
- inputs?: undefined;
174
- })[];
175
144
  } | {
176
145
  kind: string;
177
146
  name: string;
@@ -141,37 +141,6 @@ export declare const pageToolboxV1: {
141
141
  TIMES?: undefined;
142
142
  };
143
143
  })[];
144
- } | {
145
- kind: string;
146
- name: string;
147
- categorystyle: string;
148
- contents: ({
149
- kind: string;
150
- type: string;
151
- inputs: {
152
- OBJECT: {
153
- shadow: {
154
- type: string;
155
- };
156
- };
157
- TEXT?: undefined;
158
- };
159
- } | {
160
- kind: string;
161
- type: string;
162
- inputs: {
163
- TEXT: {
164
- shadow: {
165
- type: string;
166
- };
167
- };
168
- OBJECT?: undefined;
169
- };
170
- } | {
171
- kind: string;
172
- type: string;
173
- inputs?: undefined;
174
- })[];
175
144
  } | {
176
145
  kind: string;
177
146
  name: string;
@@ -1,14 +1,13 @@
1
1
  import * as Blockly from 'blockly/core';
2
- export declare function isCompAvail(): boolean;
3
2
  export declare function getAllPropertyInfos(): {
4
3
  id: string;
5
4
  name: string;
6
- type: import("x-runtime-lib").FieldType;
5
+ type: import("x-runtime-lib").Type;
7
6
  }[];
8
7
  export declare function getPropertyInfo(id: string): {
9
8
  id: string;
10
9
  name: string;
11
- type: import("x-runtime-lib").FieldType;
10
+ type: import("x-runtime-lib").Type;
12
11
  } | undefined;
13
12
  export declare function genPropertyOpts(): Blockly.MenuOption[];
14
13
  export declare function getAllMethodInfos(): {
@@ -17,12 +16,12 @@ export declare function getAllMethodInfos(): {
17
16
  inputs: {
18
17
  id: string;
19
18
  name: string;
20
- type: import("x-runtime-lib").FieldType;
19
+ type: import("x-runtime-lib").Type;
21
20
  }[];
22
21
  outputs: {
23
22
  id: string;
24
23
  name: string;
25
- type: import("x-runtime-lib").FieldType;
24
+ type: import("x-runtime-lib").Type;
26
25
  }[];
27
26
  }[];
28
27
  export declare function getMethodInfo(id: string): {
@@ -31,24 +30,24 @@ export declare function getMethodInfo(id: string): {
31
30
  inputs: {
32
31
  id: string;
33
32
  name: string;
34
- type: import("x-runtime-lib").FieldType;
33
+ type: import("x-runtime-lib").Type;
35
34
  }[];
36
35
  outputs: {
37
36
  id: string;
38
37
  name: string;
39
- type: import("x-runtime-lib").FieldType;
38
+ type: import("x-runtime-lib").Type;
40
39
  }[];
41
40
  } | undefined;
42
41
  export declare function genMethodOpts(): Blockly.MenuOption[];
43
42
  export declare function getMethodAllOutputInfos(methodid: string): {
44
43
  id: string;
45
44
  name: string;
46
- type: import("x-runtime-lib").FieldType;
45
+ type: import("x-runtime-lib").Type;
47
46
  }[];
48
47
  export declare function getMethodOutputInfo(methodid: string, outputid: string): {
49
48
  id: string;
50
49
  name: string;
51
- type: import("x-runtime-lib").FieldType;
50
+ type: import("x-runtime-lib").Type;
52
51
  } | undefined;
53
52
  export declare function genMethodOutputOpts(methodid: string): Blockly.MenuOption[];
54
53
  export declare function getAllEventInfos(): {
@@ -57,7 +56,7 @@ export declare function getAllEventInfos(): {
57
56
  params: {
58
57
  id: string;
59
58
  name: string;
60
- type: import("x-runtime-lib").FieldType;
59
+ type: import("x-runtime-lib").Type;
61
60
  }[];
62
61
  }[];
63
62
  export declare function getEventInfo(id: string): {
@@ -66,7 +65,7 @@ export declare function getEventInfo(id: string): {
66
65
  params: {
67
66
  id: string;
68
67
  name: string;
69
- type: import("x-runtime-lib").FieldType;
68
+ type: import("x-runtime-lib").Type;
70
69
  }[];
71
70
  } | undefined;
72
71
  export declare function genEventOpts(): Blockly.MenuOption[];
@@ -1,13 +1,12 @@
1
1
  import * as Blockly from 'blockly/core';
2
- export declare function isPageAvail(): false | undefined;
3
2
  export declare function getAllArgumentInfos(): {
4
3
  id: string;
5
4
  name: string;
6
- type: import("x-runtime-lib").FieldType;
5
+ type: import("x-runtime-lib").Type;
7
6
  }[];
8
7
  export declare function getArgumentInfo(id: string): {
9
8
  id: string;
10
9
  name: string;
11
- type: import("x-runtime-lib").FieldType;
10
+ type: import("x-runtime-lib").Type;
12
11
  } | undefined;
13
12
  export declare function genArgumentOpts(): Blockly.MenuOption[];
@@ -1,6 +1,4 @@
1
1
  import * as Blockly from 'blockly/core';
2
2
  import { ZProp } from 'x-runtime-lib';
3
- export declare function spawnPropDomV1(prop: ZProp): Element | null;
4
3
  export declare function spawnPropBlockV1(workspace: Blockly.Workspace, prop: ZProp): Blockly.Block | null;
5
- export declare function spawnColumnDomV1(type: string): Element | null;
6
4
  export declare function spawnColumnBlockV1(workspace: Blockly.Workspace, type: string): Blockly.Block | null;
@@ -1,4 +1,4 @@
1
1
  import { ZProp } from 'x-runtime-lib';
2
- export declare function getParamCheck(type: string): "Boolean" | "String" | "Number" | "Array" | "Object" | null;
2
+ export declare function getParamCheck(type: string): "String" | "Number" | "Boolean" | "Array" | "Object" | null;
3
3
  export declare function getPropCheck(prop: ZProp): string | null;
4
- export declare function getColumnCheck(type: string): "Boolean" | "String" | "Number" | null;
4
+ export declare function getColumnCheck(type: string): "String" | "Number" | "Boolean" | null;
@@ -1,8 +1,12 @@
1
- import { FieldType } from 'x-runtime-lib';
1
+ import { Type, ZProp } from 'x-runtime-lib';
2
2
  export declare function shadowOfTextV1(value: string): Element;
3
3
  export declare function shadowOfMathNumberV1(value: number): Element;
4
4
  export declare function shadowOfLogicBooleanV1(value: boolean): Element;
5
5
  export declare function shadowOfListCreateV1(): Element;
6
6
  export declare function shadowOfObjectCreateV1(): Element;
7
+ export declare function shadowOfItemsV1(items: string): Element;
8
+ export declare function shadowOfTypesV1(types: string): Element;
9
+ export declare function shadowOfColorPickerV1(value: string): Element;
7
10
  export declare function shadowOfSelectCompV1(): Element;
8
- export declare function shadowOfField(type: FieldType): Element | null;
11
+ export declare function genTypeShadowV1(type: Type): Element | null;
12
+ export declare function genPropShadowV1(prop: ZProp): Element | null;
@@ -6,6 +6,6 @@ export declare function getActiveFunc(): import("x-state-lib").ActiveFunc;
6
6
  export declare function getActiveFuncOutputInfo(id: string): {
7
7
  id: string;
8
8
  name: string;
9
- type: import("x-runtime-lib").FieldType;
9
+ type: import("x-runtime-lib").Type;
10
10
  } | undefined;
11
11
  export declare function genActiveFuncOutputOpts(): Blockly.MenuOption[];