x-block-lib 0.5.10 → 0.5.12

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.
@@ -57,6 +57,7 @@ const _ = {
57
57
  CATEGORY_VARIABLE: "var",
58
58
  // event
59
59
  EVENT_CLICK: "click",
60
+ EVENT_SLOT_CHANGE: "slot change",
60
61
  EVENT_STARTUP: "startup",
61
62
  EVENT_SCREEN_SIZE_CHANGE: "screen size change",
62
63
  EVENT_DARK_MODE_CHANGE: "dark mode change",
@@ -90,6 +91,7 @@ const _ = {
90
91
  PARAM_NEW_SCREEN_SIZE: "new screen size",
91
92
  PARAM_OLD_SCREEN_SIZE: "old screen size",
92
93
  PARAM_RESULT: "result",
94
+ PARAM_STATE: "state",
93
95
  PARAM_SUCCESS: "success",
94
96
  // asset
95
97
  ASSET_DATA: "data",
@@ -57,6 +57,7 @@ const _ = {
57
57
  CATEGORY_VARIABLE: "变量",
58
58
  // event
59
59
  EVENT_CLICK: "单击",
60
+ EVENT_SLOT_CHANGE: "插槽变化",
60
61
  EVENT_STARTUP: "启动",
61
62
  EVENT_SCREEN_SIZE_CHANGE: "屏幕大小变化",
62
63
  EVENT_DARK_MODE_CHANGE: "暗模式变化",
@@ -90,6 +91,7 @@ const _ = {
90
91
  PARAM_NEW_SCREEN_SIZE: "新屏幕大小",
91
92
  PARAM_OLD_SCREEN_SIZE: "旧屏幕大小",
92
93
  PARAM_RESULT: "结果",
94
+ PARAM_STATE: "状态",
93
95
  PARAM_SUCCESS: "成功",
94
96
  // asset
95
97
  ASSET_DATA: "数据",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.5.10",
4
+ "version": "0.5.12",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -31,8 +31,9 @@
31
31
  "vue": "^3.5.12",
32
32
  "vue-draggable-plus": "^0.5.4",
33
33
  "vuetify": "^3.7.3",
34
- "x-essential-lib": "^0.7.10",
35
- "x-runtime-lib": "^0.5.11"
34
+ "x-essential-lib": "^0.7.11",
35
+ "x-runtime-lib": "^0.5.19",
36
+ "x-state-lib": "^0.1.5"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@eslint/js": "^10.0.0",
@@ -54,6 +55,6 @@
54
55
  "vite-plugin-vuetify": "^2.0.4",
55
56
  "vue-i18n": "^10.0.4",
56
57
  "vue-router": "4.4.5",
57
- "vue-tsc": "^2.1.6"
58
+ "vue-tsc": "^2.2.0"
58
59
  }
59
60
  }
@@ -1,28 +0,0 @@
1
- export type App = {
2
- id: string;
3
- name: string;
4
- pages: {
5
- id: string;
6
- name: string;
7
- }[];
8
- };
9
- export type Arg = {
10
- id: string;
11
- name: string;
12
- type: string;
13
- };
14
- export type Node = {
15
- id: string;
16
- key: string;
17
- alias: string;
18
- };
19
- export type App2 = {
20
- apps: App[];
21
- appid: '';
22
- type: 'page' | 'comp';
23
- subtype: string;
24
- version: string;
25
- args: Arg[];
26
- nodes: Node[];
27
- };
28
- export declare function initApp(): App2;
@@ -1,5 +0,0 @@
1
- export type Base = {
2
- router: any;
3
- i18n: any;
4
- };
5
- export declare function initBase(): Base;
@@ -1,63 +0,0 @@
1
- export type ComputeSpace = {
2
- id: string;
3
- name: string;
4
- sort: number;
5
- };
6
- export type Func = {
7
- id: string;
8
- spaceid: string;
9
- name: string;
10
- sort: number;
11
- dev: string;
12
- prod: string;
13
- inputs: {
14
- id: string;
15
- name: string;
16
- type: string;
17
- }[];
18
- outputs: {
19
- id: string;
20
- name: string;
21
- type: string;
22
- }[];
23
- };
24
- export type Flow = {
25
- id: string;
26
- spaceid: string;
27
- name: string;
28
- sort: number;
29
- dev: string;
30
- prod: string;
31
- };
32
- export type ActiveFunc = {
33
- id: string;
34
- name: string;
35
- inputs: {
36
- id: string;
37
- name: string;
38
- type: string;
39
- }[];
40
- outputs: {
41
- id: string;
42
- name: string;
43
- type: string;
44
- }[];
45
- };
46
- export type ActiveFlow = {
47
- id: string;
48
- name: string;
49
- };
50
- export type Compute = {
51
- spaces: {
52
- [spaceid: string]: ComputeSpace;
53
- };
54
- funcs: {
55
- [funcid: string]: Func;
56
- };
57
- flows: {
58
- [flowid: string]: Flow;
59
- };
60
- activeFunc: ActiveFunc;
61
- activeFlow: ActiveFlow;
62
- };
63
- export declare function initCompute(): Compute;
@@ -1,31 +0,0 @@
1
- export type DataSpace = {
2
- id: string;
3
- name: string;
4
- sort: number;
5
- };
6
- export type Table = {
7
- id: string;
8
- spaceid: string;
9
- name: string;
10
- sort: number;
11
- columns: {
12
- id: string;
13
- name: string;
14
- type: string;
15
- extend: string;
16
- }[];
17
- indexes: {
18
- id: string;
19
- columns: string[];
20
- unique: boolean;
21
- }[];
22
- };
23
- export type Data = {
24
- spaces: {
25
- [spaceid: string]: DataSpace;
26
- };
27
- tables: {
28
- [tableid: string]: Table;
29
- };
30
- };
31
- export declare function initData(): Data;
@@ -1,7 +0,0 @@
1
- export * from './app';
2
- export * from './base';
3
- export * from './compute';
4
- export * from './data';
5
- export * from './resource';
6
- export * from './runtime';
7
- export * from './state';
@@ -1,24 +0,0 @@
1
- export interface DirEntry {
2
- id: string;
3
- name: string;
4
- children: DirEntry[];
5
- }
6
- export interface ResourceEntry {
7
- id: string;
8
- dirid: string;
9
- name: string;
10
- sort: number;
11
- }
12
- export type ResourceSpace = {
13
- id: string;
14
- name: string;
15
- sort: number;
16
- dirTree: DirEntry;
17
- resources: ResourceEntry[];
18
- };
19
- export type Resource = {
20
- spaces: {
21
- [spaceid: string]: ResourceSpace;
22
- };
23
- };
24
- export declare function initResource(): Resource;
@@ -1,16 +0,0 @@
1
- import { ZProp } from 'x-runtime-lib';
2
- export type Prop = {
3
- keys: string;
4
- names: string[];
5
- raw: ZProp;
6
- };
7
- export type Props = {
8
- [key: string]: {
9
- [tag: string]: Prop[];
10
- };
11
- };
12
- export type Runtime = {
13
- props: Props;
14
- };
15
- export declare function initRuntime(): Runtime;
16
- export declare function buildProps(): Props;
@@ -1,15 +0,0 @@
1
- import { App2 } from './app';
2
- import { Base } from './base';
3
- import { Compute } from './compute';
4
- import { Data } from './data';
5
- import { Resource } from './resource';
6
- import { Runtime } from './runtime';
7
- export type BlocklyState = {
8
- base: Base;
9
- runtime: Runtime;
10
- app: App2;
11
- compute: Compute;
12
- data: Data;
13
- resource: Resource;
14
- };
15
- export declare const blocklyState: BlocklyState;