x-block-lib 0.8.15 → 0.8.17

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 (37) hide show
  1. package/dist/components/blockly/navigator/blockList/item.vue.d.ts +1 -0
  2. package/dist/core/index.d.ts +0 -6
  3. package/dist/core/utils/app/app.d.ts +6 -6
  4. package/dist/core/utils/app/event.d.ts +13 -14
  5. package/dist/core/utils/app/method.d.ts +20 -28
  6. package/dist/core/utils/app/property.d.ts +13 -17
  7. package/dist/core/utils/compute/func.d.ts +3 -3
  8. package/dist/core/utils/data/table.d.ts +6 -6
  9. package/dist/core/utils/resource/dir.d.ts +3 -3
  10. package/dist/core/utils/resource/resource.d.ts +3 -3
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +2955 -2923
  13. package/dist/{vendor.huohikf4.js → vendor.txua272r.js} +605 -604
  14. package/package.json +4 -5
  15. package/dist/media/1x1.gif +0 -0
  16. package/dist/media/click.mp3 +0 -0
  17. package/dist/media/click.ogg +0 -0
  18. package/dist/media/click.wav +0 -0
  19. package/dist/media/delete-icon.svg +0 -1
  20. package/dist/media/delete.mp3 +0 -0
  21. package/dist/media/delete.ogg +0 -0
  22. package/dist/media/delete.wav +0 -0
  23. package/dist/media/disconnect.mp3 +0 -0
  24. package/dist/media/disconnect.ogg +0 -0
  25. package/dist/media/disconnect.wav +0 -0
  26. package/dist/media/dropdown-arrow.svg +0 -1
  27. package/dist/media/foldout-icon.svg +0 -1
  28. package/dist/media/handclosed.cur +0 -0
  29. package/dist/media/handdelete.cur +0 -0
  30. package/dist/media/handopen.cur +0 -0
  31. package/dist/media/pilcrow.png +0 -0
  32. package/dist/media/quote0.png +0 -0
  33. package/dist/media/quote1.png +0 -0
  34. package/dist/media/resize-handle.svg +0 -3
  35. package/dist/media/sprites.png +0 -0
  36. package/dist/media/sprites.svg +0 -74
  37. package/dist/utils/name.d.ts +0 -3
@@ -1,6 +1,7 @@
1
1
  interface Props {
2
2
  id: string;
3
3
  title: string;
4
+ desc: string;
4
5
  select: boolean;
5
6
  }
6
7
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,9 +1,3 @@
1
1
  import './blocks';
2
- export * from './category';
3
2
  import './dialog';
4
- export * from './events';
5
- export * from './locale';
6
- export * from './misc';
7
3
  import './plugins';
8
- export * from './theme';
9
- export * from './toolbox';
@@ -2,24 +2,24 @@ import * as Blockly from 'blockly/core';
2
2
  export declare function getAllAppInfos(): import("x-state-lib").AppListEntry[];
3
3
  export declare function getAppInfo(id: string): import("x-state-lib").AppListEntry | undefined;
4
4
  export declare function genAppOpts(): Blockly.MenuOption[];
5
- export declare function getAllPageInfos(appid: string): {
5
+ export declare function getAllPageInfos(appId: string): {
6
6
  id: string;
7
7
  name: string;
8
8
  }[];
9
- export declare function getPageInfo(appid: string, pageid: string): {
9
+ export declare function getPageInfo(appId: string, pageId: string): {
10
10
  id: string;
11
11
  name: string;
12
12
  } | undefined;
13
- export declare function genPageOpts(appid: string): Blockly.MenuOption[];
13
+ export declare function genPageOpts(appId: string): Blockly.MenuOption[];
14
14
  export declare function getAllCompInfos(): {
15
15
  id: string;
16
- groupid: string;
16
+ groupId: string;
17
17
  name: string;
18
18
  position: number;
19
19
  }[];
20
- export declare function getCompInfo(compid: string): {
20
+ export declare function getCompInfo(compId: string): {
21
21
  id: string;
22
- groupid: string;
22
+ groupId: string;
23
23
  name: string;
24
24
  position: number;
25
25
  } | undefined;
@@ -1,21 +1,20 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-runtime-lib';
3
- export type EventFrom = 'regular' | 'singleRef' | 'multipleRef' | 'property' | 'custom';
4
- interface EventInfo {
2
+ import { EventKind, Type } from 'x-runtime-lib';
3
+ interface Param {
5
4
  key: string;
5
+ name: string;
6
+ type: Type;
7
+ }
8
+ interface EventInfo {
9
+ id: string;
6
10
  names: string[];
7
- from: EventFrom;
8
- params: {
9
- key: string;
10
- name: string;
11
- type: Type;
12
- }[];
11
+ kind: EventKind;
12
+ params: Param[];
13
13
  }
14
- export declare function isLocaleOfEventFrom(from: EventFrom): boolean;
15
- export declare function getAllOnEventInfos(nodeid: string): EventInfo[];
16
- export declare function getOnEventInfo(nodeid: string, eventKey: string): EventInfo | undefined;
17
- export declare function genOnEventOpts(nodeid: string): Blockly.MenuOption[];
14
+ export declare function getAllOnEventInfos(nodeId: string): EventInfo[];
15
+ export declare function getOnEventInfo(id: string): EventInfo | undefined;
16
+ export declare function genOnEventOpts(nodeId: string): Blockly.MenuOption[];
18
17
  export declare function getAllTriggerEventInfos(): EventInfo[];
19
- export declare function getTriggerEventInfo(eventKey: string): EventInfo | undefined;
18
+ export declare function getTriggerEventInfo(id: string): EventInfo | undefined;
20
19
  export declare function genTriggerEventOpts(): Blockly.MenuOption[];
21
20
  export {};
@@ -1,37 +1,29 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-runtime-lib';
3
- export type MethodFrom = 'regular' | 'singleRef' | 'multipleRef' | 'slot' | 'custom';
4
- interface MethodInfo {
5
- key: string;
6
- names: string[];
7
- from: MethodFrom;
8
- inputs: {
9
- key: string;
10
- name: string;
11
- type: Type;
12
- }[];
13
- outputs: {
14
- key: string;
15
- name: string;
16
- type: Type;
17
- }[];
18
- }
19
- export declare function isLocaleOfMethodFrom(from: MethodFrom): boolean;
20
- export declare function getAllCallMethodInfos(nodeid: string): MethodInfo[];
21
- export declare function getCallMethodInfo(nodeid: string, methodKey: string): MethodInfo | undefined;
22
- export declare function genCallMethodOpts(nodeid: string): Blockly.MenuOption[];
23
- export declare function getAllImplMethodInfos(): MethodInfo[];
24
- export declare function getImplMethodInfo(methodKey: string): MethodInfo | undefined;
25
- export declare function genImplMethodOpts(): Blockly.MenuOption[];
26
- export declare function getAllImplMethodOutputInfos(methodKey: string): {
2
+ import { MethodKind, Type } from 'x-runtime-lib';
3
+ interface Input {
27
4
  key: string;
28
5
  name: string;
29
6
  type: Type;
30
- }[];
31
- export declare function getImplMethodOutputInfo(methodKey: string, outputKey: string): {
7
+ }
8
+ interface Output {
32
9
  key: string;
33
10
  name: string;
34
11
  type: Type;
35
- } | undefined;
12
+ }
13
+ interface MethodInfo {
14
+ id: string;
15
+ names: string[];
16
+ kind: MethodKind;
17
+ inputs: Input[];
18
+ outputs: Output[];
19
+ }
20
+ export declare function getAllCallMethodInfos(nodeId: string): MethodInfo[];
21
+ export declare function getCallMethodInfo(id: string): MethodInfo | undefined;
22
+ export declare function genCallMethodOpts(nodeId: string): Blockly.MenuOption[];
23
+ export declare function getAllImplMethodInfos(): MethodInfo[];
24
+ export declare function getImplMethodInfo(id: string): MethodInfo | undefined;
25
+ export declare function genImplMethodOpts(): Blockly.MenuOption[];
26
+ export declare function getAllImplMethodOutputInfos(methodId: string): Output[];
27
+ export declare function getImplMethodOutputInfo(methodId: string, outputKey: string): Output | undefined;
36
28
  export declare function genImplMethodOutputOpts(methodKey: string): Blockly.MenuOption[];
37
29
  export {};
@@ -1,24 +1,20 @@
1
1
  import * as Blockly from 'blockly/core';
2
2
  import { Type, ZProp } from 'x-runtime-lib';
3
- export type PropFrom = 'regular' | 'singleRef' | 'multipleRef' | 'slot' | 'custom';
4
- interface MetaRegular {
5
- from: 'regular';
6
- raw: ZProp;
7
- }
8
- interface MetaRemain {
9
- from: 'singleRef' | 'multipleRef' | 'slot' | 'custom';
10
- raw: {
11
- type: Type;
12
- };
13
- }
14
3
  interface PropInfo {
15
- key: string;
4
+ id: string;
16
5
  names: string[];
17
- meta: MetaRegular | MetaRemain;
6
+ meta: {
7
+ kind: 'elementProperty';
8
+ raw: ZProp;
9
+ } | {
10
+ kind: 'refProperty' | 'customProperty' | 'elementSlotProperty' | 'customSlotProperty';
11
+ raw: {
12
+ type: Type;
13
+ };
14
+ };
18
15
  }
19
16
  type Filter = 'read' | 'write';
20
- export declare function isLocaleOfPropFrom(from: PropFrom): boolean;
21
- export declare function getAllPropInfos(nodeid: string, filter: Filter): PropInfo[];
22
- export declare function getPropInfo(nodeid: string, propKey: string): PropInfo | undefined;
23
- export declare function genPropOpts(nodeid: string, filter: Filter): Blockly.MenuOption[];
17
+ export declare function getAllPropInfos(nodeId: string, filter: Filter): PropInfo[];
18
+ export declare function getPropInfo(id: string): PropInfo | undefined;
19
+ export declare function genPropOpts(nodeId: string, filter: Filter): Blockly.MenuOption[];
24
20
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as Blockly from 'blockly/core';
2
- export declare function getAllFuncInfos(spaceid: string): import("x-state-lib").Func[];
3
- export declare function getFuncInfo(spaceid: string, funcid: string): import("x-state-lib").Func | undefined;
4
- export declare function genFuncOpts(spaceid: string): Blockly.MenuOption[];
2
+ export declare function getAllFuncInfos(spaceId: string): import("x-state-lib").Func[];
3
+ export declare function getFuncInfo(spaceId: string, funcId: string): import("x-state-lib").Func | undefined;
4
+ export declare function genFuncOpts(spaceId: string): Blockly.MenuOption[];
5
5
  export declare function getActiveFunc(): import("x-state-lib").ActiveFunc;
6
6
  export declare function getActiveFuncOutputInfo(id: string): {
7
7
  id: string;
@@ -1,17 +1,17 @@
1
1
  import * as Blockly from 'blockly/core';
2
- export declare function getAllTableInfos(spaceid: string): import("x-state-lib").Table[];
3
- export declare function getTableInfo(spaceid: string, tableid: string): import("x-state-lib").Table | undefined;
4
- export declare function genTableOpts(spaceid: string): Blockly.MenuOption[];
5
- export declare function getAllColumnInfos(spaceid: string, tableid: string): {
2
+ export declare function getAllTableInfos(spaceId: string): import("x-state-lib").Table[];
3
+ export declare function getTableInfo(spaceId: string, tableId: string): import("x-state-lib").Table | undefined;
4
+ export declare function genTableOpts(spaceId: string): Blockly.MenuOption[];
5
+ export declare function getAllColumnInfos(spaceId: string, tableId: string): {
6
6
  id: string;
7
7
  name: string;
8
8
  type: string;
9
9
  extend: string;
10
10
  }[];
11
- export declare function getColumnInfo(spaceid: string, tableid: string, columnid: string): {
11
+ export declare function getColumnInfo(spaceId: string, tableId: string, columnid: string): {
12
12
  id: string;
13
13
  name: string;
14
14
  type: string;
15
15
  extend: string;
16
16
  } | undefined;
17
- export declare function genColumnOpts(spaceid: string, tableid: string): Blockly.MenuOption[];
17
+ export declare function genColumnOpts(spaceId: string, tableId: string): Blockly.MenuOption[];
@@ -3,10 +3,10 @@ interface DirInfo {
3
3
  id: string;
4
4
  name: string;
5
5
  }
6
- export declare function getAllDirInfos(spaceid: string): DirInfo[];
7
- export declare function getDirInfo(spaceid: string, id: string): {
6
+ export declare function getAllDirInfos(spaceId: string): DirInfo[];
7
+ export declare function getDirInfo(spaceId: string, id: string): {
8
8
  id: string;
9
9
  name: string;
10
10
  } | undefined;
11
- export declare function genDirOpts(spaceid: string): Blockly.MenuOption[];
11
+ export declare function genDirOpts(spaceId: string): Blockly.MenuOption[];
12
12
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as Blockly from 'blockly/core';
2
2
  import { ResourceEntry } from 'x-state-lib';
3
- export declare function getAllResourceInfos(spaceid: string, dirid: string): ResourceEntry[];
4
- export declare function getResourceInfo(spaceid: string, resourceid: string): ResourceEntry | undefined;
5
- export declare function genResourceOpts(spaceid: string, dirid: string): Blockly.MenuOption[];
3
+ export declare function getAllResourceInfos(spaceId: string, dirid: string): ResourceEntry[];
4
+ export declare function getResourceInfo(spaceId: string, resourceid: string): ResourceEntry | undefined;
5
+ export declare function genResourceOpts(spaceId: string, dirid: string): Blockly.MenuOption[];
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import '@/core';
1
2
  declare const _default: {
2
3
  install: (app: import("vue").App) => void;
3
4
  };