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.
- package/dist/components/blockly/index.vue.d.ts +9 -3
- package/dist/components/blockly/lock/index.vue.d.ts +2 -2
- package/dist/components/blockly/navigator/blockList/item.vue.d.ts +1 -1
- package/dist/components/blockly/navigator/blockTree/index.vue.d.ts +1 -1
- package/dist/core/locale/msg/en.d.ts +2 -0
- package/dist/core/locale/msg/zhHans.d.ts +2 -0
- package/dist/core/utils/app/app.d.ts +2 -2
- package/dist/core/utils/app/arg.d.ts +10 -2
- package/dist/core/utils/app/element.d.ts +1 -1
- package/dist/core/utils/app/node.d.ts +11 -3
- package/dist/core/utils/compute/func.d.ts +3 -4
- package/dist/core/utils/compute/space.d.ts +5 -3
- package/dist/core/utils/data/space.d.ts +2 -2
- package/dist/core/utils/data/table.d.ts +2 -3
- package/dist/core/utils/resource/resource.d.ts +2 -2
- package/dist/core/utils/resource/space.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1677 -1812
- package/dist/{msg-en-h2dytcav.js → msg-en-i3mahtsm.js} +2 -0
- package/dist/{msg-zhHans-on9wfjb0.js → msg-zhHans-px7koik6.js} +2 -0
- package/package.json +5 -4
- package/dist/state/app.d.ts +0 -28
- package/dist/state/base.d.ts +0 -5
- package/dist/state/compute.d.ts +0 -63
- package/dist/state/data.d.ts +0 -31
- package/dist/state/index.d.ts +0 -7
- package/dist/state/resource.d.ts +0 -24
- package/dist/state/runtime.d.ts +0 -16
- package/dist/state/state.d.ts +0 -15
|
@@ -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.
|
|
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.
|
|
35
|
-
"x-runtime-lib": "^0.5.
|
|
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.
|
|
58
|
+
"vue-tsc": "^2.2.0"
|
|
58
59
|
}
|
|
59
60
|
}
|
package/dist/state/app.d.ts
DELETED
|
@@ -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;
|
package/dist/state/base.d.ts
DELETED
package/dist/state/compute.d.ts
DELETED
|
@@ -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;
|
package/dist/state/data.d.ts
DELETED
|
@@ -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;
|
package/dist/state/index.d.ts
DELETED
package/dist/state/resource.d.ts
DELETED
|
@@ -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;
|
package/dist/state/runtime.d.ts
DELETED
|
@@ -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;
|
package/dist/state/state.d.ts
DELETED
|
@@ -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;
|