v-nuxt-ui 0.1.36 → 0.2.1
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/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/Watermark.d.vue.ts +3 -3
- package/dist/runtime/components/Watermark.vue.d.ts +3 -3
- package/dist/runtime/components/button/CircleColor.d.vue.ts +17 -0
- package/dist/runtime/components/button/CircleColor.vue +37 -0
- package/dist/runtime/components/button/CircleColor.vue.d.ts +17 -0
- package/dist/runtime/components/flow/FlowEdge.client.vue +170 -41
- package/dist/runtime/components/flow/FlowEditor.client.d.vue.ts +51 -0
- package/dist/runtime/components/flow/FlowEditor.client.vue +294 -0
- package/dist/runtime/components/flow/FlowEditor.client.vue.d.ts +51 -0
- package/dist/runtime/components/flow/FlowNode.client.d.vue.ts +13 -2
- package/dist/runtime/components/flow/FlowNode.client.vue +44 -48
- package/dist/runtime/components/flow/FlowNode.client.vue.d.ts +13 -2
- package/dist/runtime/components/flow/FlowToolbar.d.vue.ts +41 -5
- package/dist/runtime/components/flow/FlowToolbar.vue +554 -88
- package/dist/runtime/components/flow/FlowToolbar.vue.d.ts +41 -5
- package/dist/runtime/components/flow/FlowToolbarItemWrapper.d.vue.ts +17 -0
- package/dist/runtime/components/flow/FlowToolbarItemWrapper.vue +16 -0
- package/dist/runtime/components/flow/FlowToolbarItemWrapper.vue.d.ts +17 -0
- package/dist/runtime/components/sys/flow/CreateModal.d.vue.ts +13 -0
- package/dist/runtime/components/sys/flow/CreateModal.vue +32 -0
- package/dist/runtime/components/sys/flow/CreateModal.vue.d.ts +13 -0
- package/dist/runtime/components/sys/flow/EditNodeModal.d.vue.ts +13 -0
- package/dist/runtime/components/sys/flow/EditNodeModal.vue +30 -0
- package/dist/runtime/components/sys/flow/EditNodeModal.vue.d.ts +13 -0
- package/dist/runtime/components/sys/flow/Table.d.vue.ts +3 -0
- package/dist/runtime/components/sys/flow/Table.vue +98 -0
- package/dist/runtime/components/sys/flow/Table.vue.d.ts +3 -0
- package/dist/runtime/components/sys/table/CreateModal.vue +9 -191
- package/dist/runtime/components/sys/table/Table.vue +0 -11
- package/dist/runtime/components/sys/table/TableColumnList.d.vue.ts +54 -0
- package/dist/runtime/components/sys/table/TableColumnList.vue +196 -0
- package/dist/runtime/components/sys/table/TableColumnList.vue.d.ts +54 -0
- package/dist/runtime/components/sys/table/TableColumnModal.d.vue.ts +3 -13
- package/dist/runtime/components/sys/table/TableColumnModal.vue +32 -100
- package/dist/runtime/components/sys/table/TableColumnModal.vue.d.ts +3 -13
- package/dist/runtime/components/table/query/order/Item.d.vue.ts +2 -2
- package/dist/runtime/components/table/query/order/Item.vue.d.ts +2 -2
- package/dist/runtime/composables/api/sys/index.d.ts +3 -0
- package/dist/runtime/composables/api/sys/index.js +3 -0
- package/dist/runtime/composables/api/sys/useFlowApi.d.ts +2 -0
- package/dist/runtime/composables/api/sys/useFlowApi.js +5 -0
- package/dist/runtime/composables/api/sys/useFlowEdgeApi.d.ts +2 -0
- package/dist/runtime/composables/api/sys/useFlowEdgeApi.js +3 -0
- package/dist/runtime/composables/api/sys/useFlowNodeApi.d.ts +2 -0
- package/dist/runtime/composables/api/sys/useFlowNodeApi.js +3 -0
- package/dist/runtime/composables/flow/index.d.ts +3 -0
- package/dist/runtime/composables/flow/index.js +3 -0
- package/dist/runtime/composables/flow/useFlow.d.ts +33 -0
- package/dist/runtime/composables/flow/useFlow.js +401 -0
- package/dist/runtime/composables/flow/useFlowNode.d.ts +17 -0
- package/dist/runtime/composables/flow/useFlowNode.js +106 -0
- package/dist/runtime/composables/flow/useFlowResize.d.ts +21 -0
- package/dist/runtime/composables/flow/useFlowResize.js +84 -0
- package/dist/runtime/composables/flow/useFlowStyles.d.ts +62 -9
- package/dist/runtime/composables/flow/useFlowStyles.js +127 -23
- package/dist/runtime/composables/table/useTableColumnPermission.d.ts +36 -0
- package/dist/runtime/composables/useSidebarMenu.js +0 -2
- package/dist/runtime/composables/useTheme.d.ts +1 -1
- package/dist/runtime/composables/useTheme.js +0 -1
- package/dist/runtime/constants/flow.d.ts +166 -0
- package/dist/runtime/constants/flow.js +171 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/types/models/flow.d.ts +61 -0
- package/dist/runtime/types/models/flow.js +0 -0
- package/dist/runtime/types/models/index.d.ts +1 -0
- package/dist/runtime/types/models/index.js +1 -0
- package/dist/runtime/types/models/table.d.ts +1 -0
- package/dist/runtime/types/storage.d.ts +3 -4
- package/dist/runtime/types/storage.js +3 -4
- package/package.json +3 -2
package/dist/runtime/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source "./components";@source "./composables";@source "./utils";#__nuxt,body,html{height:100%}
|
|
1
|
+
@source "./components";@source "./composables";@source "./constants";@source "./utils";#__nuxt,body,html{height:100%}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ApiGroup } from '../components/index.js';
|
|
2
|
+
import type { BaseModel } from './base.js';
|
|
3
|
+
export type Flow = {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
nodes?: FlowNode[];
|
|
7
|
+
edges?: FlowEdge[];
|
|
8
|
+
} & BaseModel;
|
|
9
|
+
export type FlowNode = {
|
|
10
|
+
flowId?: number;
|
|
11
|
+
name?: string;
|
|
12
|
+
positionX?: number;
|
|
13
|
+
positionY?: number;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
parentEdges?: FlowEdge[];
|
|
17
|
+
childEdges?: FlowEdge[];
|
|
18
|
+
} & BaseModel;
|
|
19
|
+
export type FlowEdge = {
|
|
20
|
+
flowId?: number;
|
|
21
|
+
parentId?: number;
|
|
22
|
+
parentHandlePos?: string;
|
|
23
|
+
childId?: number;
|
|
24
|
+
childHandlePos?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
condition?: string;
|
|
27
|
+
order?: number;
|
|
28
|
+
} & BaseModel;
|
|
29
|
+
/**
|
|
30
|
+
* 鼠标位置类型
|
|
31
|
+
*/
|
|
32
|
+
export interface FlowMousePosition {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resize 尺寸类型
|
|
38
|
+
*/
|
|
39
|
+
export interface UseFlowResizeDimensions {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Flow CRUD API 接口
|
|
45
|
+
* 由使用者传入,在节点/边的增删改操作时调用
|
|
46
|
+
* 所有方法都是可选的,未提供时执行纯本地操作
|
|
47
|
+
*/
|
|
48
|
+
export interface FlowApi {
|
|
49
|
+
/** 创建节点,返回创建后的节点(含服务端生成的 id 等字段) */
|
|
50
|
+
createNode?: ApiGroup<FlowNode>['create'];
|
|
51
|
+
/** 更新节点(位置、尺寸、名称等) */
|
|
52
|
+
updateNode?: ApiGroup<FlowNode>['update'];
|
|
53
|
+
/** 删除节点 */
|
|
54
|
+
deleteNode?: ApiGroup<FlowNode>['deleteById'];
|
|
55
|
+
/** 创建边/连接,返回创建后的边 */
|
|
56
|
+
createEdge?: ApiGroup<FlowEdge>['create'];
|
|
57
|
+
/** 更新边(label 等) */
|
|
58
|
+
updateEdge?: ApiGroup<FlowEdge>['update'];
|
|
59
|
+
/** 删除边 */
|
|
60
|
+
deleteEdge?: ApiGroup<FlowEdge>['deleteById'];
|
|
61
|
+
}
|
|
File without changes
|
|
@@ -3,10 +3,9 @@ export declare enum StorageKey {
|
|
|
3
3
|
ACCESS_TOKEN = "ac_t",
|
|
4
4
|
REFRESH_TOKEN = "rf_t",
|
|
5
5
|
LOGIN_TYPE = "login_type",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
FLOW_NODE_BORDER_WIDTH = "flow_node_border_width",
|
|
6
|
+
FLOW_EDGE_STYLES = "flow_edge_styles",
|
|
7
|
+
FLOW_NODE_STYLES = "flow_node_styles",
|
|
8
|
+
FLOW_COLOR_MODE = "flow_color_mode",
|
|
10
9
|
ECHART_ROTATE_X_AXIS_LABEL = "echart_rotate_x_axis_label"
|
|
11
10
|
}
|
|
12
11
|
export type Column = {
|
|
@@ -3,10 +3,9 @@ export var StorageKey = /* @__PURE__ */ ((StorageKey2) => {
|
|
|
3
3
|
StorageKey2["ACCESS_TOKEN"] = "ac_t";
|
|
4
4
|
StorageKey2["REFRESH_TOKEN"] = "rf_t";
|
|
5
5
|
StorageKey2["LOGIN_TYPE"] = "login_type";
|
|
6
|
-
StorageKey2["
|
|
7
|
-
StorageKey2["
|
|
8
|
-
StorageKey2["
|
|
9
|
-
StorageKey2["FLOW_NODE_BORDER_WIDTH"] = "flow_node_border_width";
|
|
6
|
+
StorageKey2["FLOW_EDGE_STYLES"] = "flow_edge_styles";
|
|
7
|
+
StorageKey2["FLOW_NODE_STYLES"] = "flow_node_styles";
|
|
8
|
+
StorageKey2["FLOW_COLOR_MODE"] = "flow_color_mode";
|
|
10
9
|
StorageKey2["ECHART_ROTATE_X_AXIS_LABEL"] = "echart_rotate_x_axis_label";
|
|
11
10
|
return StorageKey2;
|
|
12
11
|
})(StorageKey || {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-nuxt-ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Veken UI Component Library - Reusable Nuxt UI components, composables, and utilities for enterprise applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"style": "./dist/runtime/index.css",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@vue-flow/core": "^1.42.2",
|
|
58
57
|
"cronstrue": "^3.12.0",
|
|
59
58
|
"echarts": "^6.0.0",
|
|
60
59
|
"exceljs": "^4.4.0",
|
|
@@ -65,6 +64,8 @@
|
|
|
65
64
|
"vue-echarts": "^8.0.1"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
67
|
+
"@vue-flow/core": "^1.42.2",
|
|
68
|
+
"@vue-flow/background": "^1.3.2",
|
|
68
69
|
"@iconify-json/lucide": "^1.2.94",
|
|
69
70
|
"@internationalized/date": "^3.12.0",
|
|
70
71
|
"@nuxt/content": "^3.12.0",
|