x-block-lib 0.4.34 → 0.4.35

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.
@@ -15855,6 +15855,7 @@ export {
15855
15855
  i_ as G,
15856
15856
  Xb as H,
15857
15857
  Vb as I,
15858
+ gg as J,
15858
15859
  m_ as M,
15859
15860
  b_ as N,
15860
15861
  qb as O,
@@ -15864,7 +15865,7 @@ export {
15864
15865
  X_ as U,
15865
15866
  q_ as V,
15866
15867
  nb as X,
15867
- Rb as a,
15868
+ Ib as a,
15868
15869
  Wm as b,
15869
15870
  qm as c,
15870
15871
  bb as d,
@@ -15872,7 +15873,7 @@ export {
15872
15873
  Z_ as f,
15873
15874
  fb as g,
15874
15875
  Cb as h,
15875
- Ib as i,
15876
+ Rb as i,
15876
15877
  Qb as j,
15877
15878
  R_ as k,
15878
15879
  kb as l,
@@ -0,0 +1,6 @@
1
+ import 'highlight.js/styles/default.min.css';
2
+ interface Props {
3
+ code: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -50,7 +50,13 @@ declare const _default: {
50
50
  LABEL_BOOLEAN: string;
51
51
  LABEL_CREATE_VARIABLE: string;
52
52
  LABEL_CREATED: string;
53
+ LABEL_GET: string;
54
+ LABEL_LIST: string;
55
+ LABEL_OBJECT: string;
53
56
  LABEL_PROCEDURE: string;
57
+ LABEL_PROPERTY: string;
58
+ LABEL_SET: string;
59
+ LABEL_TEXT: string;
54
60
  LABEL_VARIABLE: string;
55
61
  ASSET_DATA: string;
56
62
  ASSET_DIR: string;
@@ -80,11 +86,15 @@ declare const _default: {
80
86
  COLOR_V1_RGB_TITLE: string;
81
87
  COLOR_V1_RGB_TOOLTIP: string;
82
88
  COLOR_V1_RGB_HELPURL: string;
89
+ COMPUTE_CALL: string;
83
90
  COMPUTE_DO: string;
84
91
  COMPUTE_FUNC_ENTRY: string;
85
92
  COMPUTE_V1_DEBUG_TRACE_TITLE: string;
86
93
  COMPUTE_V1_DEBUG_TRACE_TOOLTIP: string;
87
94
  COMPUTE_V1_DEBUG_TRACE_HELPURL: string;
95
+ COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: string;
96
+ COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: string;
97
+ COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: string;
88
98
  LIST_V1_CREATE_CONTAINER_TITLE: string;
89
99
  LIST_V1_CREATE_ITEM_TITLE: string;
90
100
  LIST_V1_CREATE_TITLE: string;
@@ -50,7 +50,13 @@ declare const _default: {
50
50
  LABEL_BOOLEAN: string;
51
51
  LABEL_CREATE_VARIABLE: string;
52
52
  LABEL_CREATED: string;
53
+ LABEL_GET: string;
54
+ LABEL_LIST: string;
55
+ LABEL_OBJECT: string;
53
56
  LABEL_PROCEDURE: string;
57
+ LABEL_PROPERTY: string;
58
+ LABEL_SET: string;
59
+ LABEL_TEXT: string;
54
60
  LABEL_VARIABLE: string;
55
61
  ASSET_DATA: string;
56
62
  ASSET_DIR: string;
@@ -80,11 +86,15 @@ declare const _default: {
80
86
  COLOR_V1_RGB_TITLE: string;
81
87
  COLOR_V1_RGB_TOOLTIP: string;
82
88
  COLOR_V1_RGB_HELPURL: string;
89
+ COMPUTE_CALL: string;
83
90
  COMPUTE_DO: string;
84
91
  COMPUTE_FUNC_ENTRY: string;
85
92
  COMPUTE_V1_DEBUG_TRACE_TITLE: string;
86
93
  COMPUTE_V1_DEBUG_TRACE_TOOLTIP: string;
87
94
  COMPUTE_V1_DEBUG_TRACE_HELPURL: string;
95
+ COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: string;
96
+ COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: string;
97
+ COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: string;
88
98
  LIST_V1_CREATE_CONTAINER_TITLE: string;
89
99
  LIST_V1_CREATE_ITEM_TITLE: string;
90
100
  LIST_V1_CREATE_TITLE: string;
@@ -2,7 +2,17 @@ import * as Blockly from 'blockly/core';
2
2
  interface FuncInfo {
3
3
  id: string;
4
4
  name: string;
5
- sort?: number;
5
+ inputs: {
6
+ id: string;
7
+ name: string;
8
+ type: string;
9
+ }[];
10
+ outputs: {
11
+ id: string;
12
+ name: string;
13
+ type: string;
14
+ }[];
15
+ sort: number;
6
16
  }
7
17
  export declare function getAllFuncInfos(spaceid: string): FuncInfo[];
8
18
  export declare function getFuncInfo(spaceid: string, id: string): FuncInfo | undefined;
@@ -21,4 +31,10 @@ export declare function getActiveFunc(): {
21
31
  type: string;
22
32
  }[];
23
33
  };
34
+ export declare function getActiveFuncOutputInfo(id: string): {
35
+ id: string;
36
+ name: string;
37
+ type: string;
38
+ } | undefined;
39
+ export declare function genActiveFuncOutputOpts(): Blockly.MenuOption[];
24
40
  export {};
@@ -1,10 +1,14 @@
1
1
  const t = {
2
2
  "x-block-lib": {
3
3
  comp: "Comp",
4
+ dlg: {
5
+ source: {
6
+ title: "Source"
7
+ }
8
+ },
4
9
  funcEntry: "Func Entry",
5
10
  msg: {
6
- cannotCleanInLockState: "Cannot clean in lock state",
7
- cannotArrangeInLockState: "Cannot arrange in lock state"
11
+ cannotOperateInLockedState: "Cannot operate in locked state"
8
12
  },
9
13
  navigator: "Navigator",
10
14
  noOption: "No Option",
@@ -1,10 +1,14 @@
1
1
  const t = {
2
2
  "x-block-lib": {
3
3
  comp: "组件",
4
+ dlg: {
5
+ source: {
6
+ title: "源代码"
7
+ }
8
+ },
4
9
  funcEntry: "函数入口",
5
10
  msg: {
6
- cannotCleanInLockState: "不能在锁定状态下清理",
7
- cannotArrangeInLockState: "不能再锁定状态下整理"
11
+ cannotOperateInLockedState: "锁定状态下不能操作"
8
12
  },
9
13
  navigator: "导航器",
10
14
  noOption: "没有选项",