@vef-framework-react/approval 2.14.0 → 2.15.0
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/cjs/components/detail/admin.cjs +1 -1
- package/dist/cjs/components/detail/index.cjs +1 -1
- package/dist/cjs/components/flow-graph/index.cjs +1 -1
- package/dist/cjs/components/flow-graph/node.cjs +1 -0
- package/dist/cjs/components/flow-graph/people-overlay.cjs +1 -0
- package/dist/cjs/components/flow-graph/people.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/timeline/index.cjs +1 -1
- package/dist/cjs/components/user/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/admin-page/instances.cjs +1 -1
- package/dist/cjs/pages/admin-page/metrics.cjs +1 -1
- package/dist/cjs/pages/admin-page/projections.cjs +1 -1
- package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
- package/dist/cjs/pages/my-instances-page/index.cjs +1 -1
- package/dist/es/api/admin-api.js +1 -1
- package/dist/es/api/category-api.js +1 -1
- package/dist/es/api/delegation-api.js +1 -1
- package/dist/es/api/flow-api.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/instance-api.js +1 -1
- package/dist/es/api/my-api.js +1 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/components/detail/action-modals.js +1 -1
- package/dist/es/components/detail/admin.js +20 -20
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +65 -65
- package/dist/es/components/flow-graph/index.js +42 -170
- package/dist/es/components/flow-graph/node.js +148 -0
- package/dist/es/components/flow-graph/people-overlay.js +212 -0
- package/dist/es/components/flow-graph/people.js +47 -0
- package/dist/es/components/form-panel/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/icon.js +1 -1
- package/dist/es/components/index.js +9 -9
- package/dist/es/components/principal/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/timeline/index.js +37 -37
- package/dist/es/components/user/index.js +2 -2
- package/dist/es/index.js +9 -9
- package/dist/es/pages/admin-page/index.js +1 -1
- package/dist/es/pages/admin-page/instances.js +5 -5
- package/dist/es/pages/admin-page/metrics.js +11 -11
- package/dist/es/pages/admin-page/projections.js +6 -6
- package/dist/es/pages/admin-page/tasks.js +6 -6
- package/dist/es/pages/category-page/columns.js +1 -1
- package/dist/es/pages/category-page/form.js +1 -1
- package/dist/es/pages/category-page/index.js +1 -1
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +1 -1
- package/dist/es/pages/delegation-page/index.js +1 -1
- package/dist/es/pages/flow-page/columns.js +1 -1
- package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
- package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
- package/dist/es/pages/flow-page/designer/form-step.js +1 -1
- package/dist/es/pages/flow-page/designer/index.js +1 -1
- package/dist/es/pages/flow-page/designer/review-step.js +1 -1
- package/dist/es/pages/flow-page/designer/types.js +1 -1
- package/dist/es/pages/flow-page/index.js +1 -1
- package/dist/es/pages/flow-page/search.js +1 -1
- package/dist/es/pages/flow-page/versions.js +1 -1
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/initiate-page/index.js +1 -1
- package/dist/es/pages/initiate-page/start-drawer.js +1 -1
- package/dist/es/pages/my-instances-page/index.js +7 -7
- package/dist/es/pages/task-center-page/index.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/plugins/index.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/components/flow-graph/index.d.ts +3 -2
- package/dist/types/components/flow-graph/node.d.ts +10 -0
- package/dist/types/components/flow-graph/people-overlay.d.ts +19 -0
- package/dist/types/components/flow-graph/people.d.ts +53 -0
- package/dist/types/components/user/index.d.ts +6 -0
- package/package.json +7 -7
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./api/query.js";
|
|
3
3
|
import { useAdminApprovalApi as n } from "./api/admin-api.js";
|
|
4
4
|
import { useCategoryApi as r } from "./api/category-api.js";
|
|
@@ -7,13 +7,13 @@ import { useFlowApi as a } from "./api/flow-api.js";
|
|
|
7
7
|
import { useInstanceApi as o } from "./api/instance-api.js";
|
|
8
8
|
import { useMyApprovalApi as s } from "./api/my-api.js";
|
|
9
9
|
import { ApprovalProvider as c, toEditorPlugins as l, useApprovalPlugins as u } from "./plugins/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
10
|
+
import { formatDurationSeconds as d, formatTimestamp as f } from "./components/format.js";
|
|
11
|
+
import { ACTIVITY_ACTION_LABELS as p, BINDING_PROJECTION_STATUS_LABELS as m, BINDING_PROJECTION_STATUS_OPTIONS as h, INSTANCE_STATUS_LABELS as g, INSTANCE_STATUS_OPTIONS as _, NODE_PROGRESS_LABELS as v, PROCESS_TASK_ACTION_LABELS as y, TASK_STATUS_LABELS as b, TASK_STATUS_OPTIONS as x, VERSION_STATUS_LABELS as S } from "./components/status/labels.js";
|
|
12
|
+
import { BINDING_PROJECTION_STATUS_COLORS as C, INSTANCE_STATUS_COLORS as w, NODE_PROGRESS_COLORS as T, TASK_STATUS_COLORS as E, VERSION_STATUS_COLORS as D } from "./components/status/colors.js";
|
|
13
|
+
import { InstanceStatusTag as O, NodeProgressTag as k, ProjectionStatusTag as A, TaskStatusTag as j, VersionStatusTag as M } from "./components/status/index.js";
|
|
14
|
+
import { UserGroup as N, UserLabel as P } from "./components/user/index.js";
|
|
15
|
+
import { InstanceFlowGraphViewer as F } from "./components/flow-graph/index.js";
|
|
16
|
+
import { InstanceFormPanel as I } from "./components/form-panel/index.js";
|
|
17
17
|
import { InstanceTimeline as L } from "./components/timeline/index.js";
|
|
18
18
|
import { PrincipalSelect as R } from "./components/principal/index.js";
|
|
19
19
|
import { InstanceDetailPanel as z, InstanceHeader as B } from "./components/detail/index.js";
|
|
@@ -31,4 +31,4 @@ import { ApprovalInitiatePage as Z } from "./pages/initiate-page/index.js";
|
|
|
31
31
|
import { ApprovalMyInstancesPage as Q } from "./pages/my-instances-page/index.js";
|
|
32
32
|
import { ApprovalTaskCenterPage as $ } from "./pages/task-center-page/index.js";
|
|
33
33
|
import { FINAL_INSTANCE_STATUSES as ee, isFinalInstanceStatus as te } from "./types/enums.js";
|
|
34
|
-
export {
|
|
34
|
+
export { p as ACTIVITY_ACTION_LABELS, e as API_PATH, U as APPROVAL_PERMISSIONS, V as AdminInstanceDetailPanel, W as ApprovalAdminPage, G as ApprovalCategoryPage, K as ApprovalDelegationPage, Y as ApprovalFlowPage, Z as ApprovalInitiatePage, Q as ApprovalMyInstancesPage, c as ApprovalProvider, $ as ApprovalTaskCenterPage, C as BINDING_PROJECTION_STATUS_COLORS, m as BINDING_PROJECTION_STATUS_LABELS, h as BINDING_PROJECTION_STATUS_OPTIONS, ee as FINAL_INSTANCE_STATUSES, q as FlowDesignerDrawer, J as FlowVersionsDrawer, w as INSTANCE_STATUS_COLORS, g as INSTANCE_STATUS_LABELS, _ as INSTANCE_STATUS_OPTIONS, H as InstanceDetailDrawer, z as InstanceDetailPanel, F as InstanceFlowGraphViewer, I as InstanceFormPanel, B as InstanceHeader, O as InstanceStatusTag, L as InstanceTimeline, T as NODE_PROGRESS_COLORS, v as NODE_PROGRESS_LABELS, k as NodeProgressTag, y as PROCESS_TASK_ACTION_LABELS, R as PrincipalSelect, A as ProjectionStatusTag, X as StartInstanceDrawer, E as TASK_STATUS_COLORS, b as TASK_STATUS_LABELS, x as TASK_STATUS_OPTIONS, j as TaskStatusTag, N as UserGroup, P as UserLabel, D as VERSION_STATUS_COLORS, S as VERSION_STATUS_LABELS, M as VersionStatusTag, d as formatDurationSeconds, f as formatTimestamp, te as isFinalInstanceStatus, l as toEditorPlugins, t as toPagedParams, n as useAdminApprovalApi, u as useApprovalPlugins, r as useCategoryApi, i as useDelegationApi, a as useFlowApi, o as useInstanceApi, s as useMyApprovalApi };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { APPROVAL_PERMISSIONS as e } from "../../permissions.js";
|
|
3
3
|
import { InstancesPanel as t } from "./instances.js";
|
|
4
4
|
import { MetricsPanel as n } from "./metrics.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
|
+
import { INSTANCE_STATUS_OPTIONS as n } from "../../components/status/labels.js";
|
|
5
5
|
import { InstanceStatusTag as r } from "../../components/status/index.js";
|
|
6
6
|
import { UserLabel as i } from "../../components/user/index.js";
|
|
7
7
|
import { ReasonModal as a } from "../../components/detail/action-modals.js";
|
|
@@ -53,7 +53,7 @@ var y = [
|
|
|
53
53
|
title: "提交时间",
|
|
54
54
|
dataIndex: "createdAt",
|
|
55
55
|
width: 160,
|
|
56
|
-
render: (e) =>
|
|
56
|
+
render: (e) => t(e)
|
|
57
57
|
}
|
|
58
58
|
];
|
|
59
59
|
function b() {
|
|
@@ -80,7 +80,7 @@ function b() {
|
|
|
80
80
|
children: (e) => /* @__PURE__ */ _(e.Select, {
|
|
81
81
|
allowClear: !0,
|
|
82
82
|
noWrapper: !0,
|
|
83
|
-
options:
|
|
83
|
+
options: n,
|
|
84
84
|
placeholder: "状态",
|
|
85
85
|
style: { minWidth: 110 }
|
|
86
86
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { formatDurationSeconds as t, formatTimestamp as n } from "../../components/format.js";
|
|
4
|
+
import { BINDING_PROJECTION_STATUS_LABELS as r, INSTANCE_STATUS_LABELS as i, TASK_STATUS_LABELS as a } from "../../components/status/labels.js";
|
|
5
5
|
import { useQuery as o } from "@vef-framework-react/core";
|
|
6
6
|
import { Button as s, Card as c, Center as l, Empty as u, Flex as d, Icon as f, ScrollArea as p, Spin as m, Stack as h, Statistic as g, Text as _, globalCssVars as v } from "@vef-framework-react/components";
|
|
7
7
|
import { RotateCwIcon as y } from "lucide-react";
|
|
@@ -48,7 +48,7 @@ var C = [
|
|
|
48
48
|
toString: S
|
|
49
49
|
};
|
|
50
50
|
function O(e) {
|
|
51
|
-
return Object.hasOwn(
|
|
51
|
+
return Object.hasOwn(r, e);
|
|
52
52
|
}
|
|
53
53
|
function k({ tenantId: S }) {
|
|
54
54
|
let k = e(), { data: A, isLoading: j, isError: M, refetch: N, isFetching: P } = o({
|
|
@@ -87,7 +87,7 @@ function k({ tenantId: S }) {
|
|
|
87
87
|
children: [/* @__PURE__ */ b(_, {
|
|
88
88
|
style: { fontSize: v.fontSizeSm },
|
|
89
89
|
type: "secondary",
|
|
90
|
-
children: `采集时间 ${
|
|
90
|
+
children: `采集时间 ${n(A.capturedAt)}`
|
|
91
91
|
}), /* @__PURE__ */ b(s, {
|
|
92
92
|
icon: /* @__PURE__ */ b(f, { component: y }),
|
|
93
93
|
loading: P,
|
|
@@ -101,7 +101,7 @@ function k({ tenantId: S }) {
|
|
|
101
101
|
children: /* @__PURE__ */ b("div", {
|
|
102
102
|
css: E,
|
|
103
103
|
children: C.map((e) => /* @__PURE__ */ b(g, {
|
|
104
|
-
title:
|
|
104
|
+
title: i[e],
|
|
105
105
|
value: A.instanceCounts[e] ?? 0
|
|
106
106
|
}, e))
|
|
107
107
|
})
|
|
@@ -111,7 +111,7 @@ function k({ tenantId: S }) {
|
|
|
111
111
|
children: /* @__PURE__ */ x("div", {
|
|
112
112
|
css: E,
|
|
113
113
|
children: [w.map((e) => /* @__PURE__ */ b(g, {
|
|
114
|
-
title:
|
|
114
|
+
title: a[e],
|
|
115
115
|
value: A.taskCounts[e] ?? 0
|
|
116
116
|
}, e)), /* @__PURE__ */ b(g, {
|
|
117
117
|
styles: A.timeoutTaskCount > 0 ? { content: { color: v.colorError } } : void 0,
|
|
@@ -127,7 +127,7 @@ function k({ tenantId: S }) {
|
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ b(g, {
|
|
129
129
|
title: "平均办结时长",
|
|
130
|
-
value: A.avgCompletionSeconds < 0 ? "-" :
|
|
130
|
+
value: A.avgCompletionSeconds < 0 ? "-" : t(A.avgCompletionSeconds)
|
|
131
131
|
}),
|
|
132
132
|
/* @__PURE__ */ b(g, {
|
|
133
133
|
styles: A.pendingBindingFailures > 0 ? { content: { color: v.colorWarning } } : void 0,
|
|
@@ -138,9 +138,9 @@ function k({ tenantId: S }) {
|
|
|
138
138
|
title: "未收敛投影",
|
|
139
139
|
value: A.pendingBusinessProjections
|
|
140
140
|
}),
|
|
141
|
-
F.map(([e,
|
|
142
|
-
title: O(e) ?
|
|
143
|
-
value:
|
|
141
|
+
F.map(([e, t]) => /* @__PURE__ */ b(g, {
|
|
142
|
+
title: O(e) ? r[e] : e,
|
|
143
|
+
value: t ?? 0
|
|
144
144
|
}, e))
|
|
145
145
|
]
|
|
146
146
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
|
+
import { BINDING_PROJECTION_STATUS_OPTIONS as n } from "../../components/status/labels.js";
|
|
5
5
|
import { InstanceStatusTag as r, ProjectionStatusTag as i } from "../../components/status/index.js";
|
|
6
6
|
import { useMutation as a } from "@vef-framework-react/core";
|
|
7
7
|
import { useState as o } from "react";
|
|
@@ -65,13 +65,13 @@ var g = [
|
|
|
65
65
|
title: "下次重试",
|
|
66
66
|
dataIndex: "nextAttemptAt",
|
|
67
67
|
width: 160,
|
|
68
|
-
render: (e) =>
|
|
68
|
+
render: (e) => t(e)
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
title: "更新时间",
|
|
72
72
|
dataIndex: "updatedAt",
|
|
73
73
|
width: 160,
|
|
74
|
-
render: (e) =>
|
|
74
|
+
render: (e) => t(e)
|
|
75
75
|
}
|
|
76
76
|
];
|
|
77
77
|
function _() {
|
|
@@ -81,7 +81,7 @@ function _() {
|
|
|
81
81
|
children: (e) => /* @__PURE__ */ m(e.Select, {
|
|
82
82
|
allowClear: !0,
|
|
83
83
|
noWrapper: !0,
|
|
84
|
-
options:
|
|
84
|
+
options: n,
|
|
85
85
|
placeholder: "写入状态",
|
|
86
86
|
style: { minWidth: 130 }
|
|
87
87
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
|
+
import { TASK_STATUS_OPTIONS as n } from "../../components/status/labels.js";
|
|
5
5
|
import { TaskStatusTag as r } from "../../components/status/index.js";
|
|
6
6
|
import { UserLabel as i } from "../../components/user/index.js";
|
|
7
7
|
import { PrincipalSelect as a } from "../../components/principal/index.js";
|
|
@@ -42,13 +42,13 @@ var x = [
|
|
|
42
42
|
title: "创建时间",
|
|
43
43
|
dataIndex: "createdAt",
|
|
44
44
|
width: 160,
|
|
45
|
-
render: (e) =>
|
|
45
|
+
render: (e) => t(e)
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
title: "完成时间",
|
|
49
49
|
dataIndex: "finishedAt",
|
|
50
50
|
width: 160,
|
|
51
|
-
render: (e) =>
|
|
51
|
+
render: (e) => t(e)
|
|
52
52
|
}
|
|
53
53
|
];
|
|
54
54
|
function S() {
|
|
@@ -75,7 +75,7 @@ function S() {
|
|
|
75
75
|
children: (e) => /* @__PURE__ */ y(e.Select, {
|
|
76
76
|
allowClear: !0,
|
|
77
77
|
noWrapper: !0,
|
|
78
|
-
options:
|
|
78
|
+
options: n,
|
|
79
79
|
placeholder: "状态",
|
|
80
80
|
style: { minWidth: 110 }
|
|
81
81
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { Flex as n, Tag as r, Text as i } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { Grid as e, useFormContext as t } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { z as i } from "@vef-framework-react/shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { categoryColumns as n } from "./columns.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { Tag as t, Text as n } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { PrincipalSelect as t } from "../../components/principal/index.js";
|
|
4
4
|
import { buildCategoryTreeOptions as n } from "../category-page/form.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useDelegationApi as e } from "../../api/delegation-api.js";
|
|
3
3
|
import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { delegationColumns as n } from "./columns.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { Flex as n, LabelsDisplay as r, Tag as i, Text as a } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { INSTANCE_STATUS_LABELS as e } from "../../../components/status/labels.js";
|
|
3
3
|
import { PrincipalSelect as t } from "../../../components/principal/index.js";
|
|
4
4
|
import { Button as n, Card as r, Collapse as i, Flex as a, Grid as o, Icon as s, IconPicker as c, Input as l, Labeled as u, LabelsEditor as d, Radio as f, Select as p, Stack as m, Switch as h, Text as g, TreeSelect as _, globalCssVars as v } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { Alert as e, Stack as t, globalCssVars as n } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ApprovalFlowEditor as a } from "@vef-framework-react/approval-flow-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { Alert as e, Flex as t, Segmented as n, Stack as r, Text as i, globalCssVars as a } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { FormEditor as c } from "@vef-framework-react/form-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../../api/category-api.js";
|
|
3
3
|
import { useFlowApi as t } from "../../../api/flow-api.js";
|
|
4
4
|
import { toEditorPlugins as n, useApprovalPlugins as r } from "../../../plugins/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { initiatorsForSubmit as e } from "./types.js";
|
|
3
3
|
import { Card as t, Descriptions as n, Flex as r, Input as i, Labeled as a, LabelsDisplay as o, Stack as s, Switch as c, Table as l, Tag as u, Text as d, globalCssVars as f } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { useFlowApi as t } from "../../api/flow-api.js";
|
|
4
4
|
import { APPROVAL_PERMISSIONS as n } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { LabelFilterSelect as e, Select as t, useFormContext as n } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/flow-page/search.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useFlowApi as e } from "../../api/flow-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
4
|
import { VersionStatusTag as n } from "../../components/status/index.js";
|
package/dist/es/pages/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { ApprovalAdminPage as e } from "./admin-page/index.js";
|
|
3
3
|
import { ApprovalCategoryPage as t } from "./category-page/index.js";
|
|
4
4
|
import { ApprovalDelegationPage as n } from "./delegation-page/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useMyApprovalApi as e } from "../../api/my-api.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { StartInstanceDrawer as n } from "./start-drawer.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
4
|
import { InstanceFormPanel as n } from "../../components/form-panel/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { formatTimestamp as n } from "../../components/format.js";
|
|
5
|
+
import { INSTANCE_STATUS_OPTIONS as r } from "../../components/status/labels.js";
|
|
6
6
|
import { InstanceStatusTag as i } from "../../components/status/index.js";
|
|
7
7
|
import { UserLabel as a } from "../../components/user/index.js";
|
|
8
8
|
import { InstanceDetailDrawer as o } from "../../components/detail/drawer.js";
|
|
@@ -58,13 +58,13 @@ var E = /*#__PURE__*/ T({
|
|
|
58
58
|
title: "提交时间",
|
|
59
59
|
dataIndex: "createdAt",
|
|
60
60
|
width: 160,
|
|
61
|
-
render: (e) =>
|
|
61
|
+
render: (e) => n(e)
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
title: "完成时间",
|
|
65
65
|
dataIndex: "finishedAt",
|
|
66
66
|
width: 160,
|
|
67
|
-
render: (e) =>
|
|
67
|
+
render: (e) => n(e)
|
|
68
68
|
}
|
|
69
69
|
], O = [
|
|
70
70
|
{
|
|
@@ -116,7 +116,7 @@ var E = /*#__PURE__*/ T({
|
|
|
116
116
|
title: "抄送时间",
|
|
117
117
|
dataIndex: "createdAt",
|
|
118
118
|
width: 160,
|
|
119
|
-
render: (e) =>
|
|
119
|
+
render: (e) => n(e)
|
|
120
120
|
}
|
|
121
121
|
];
|
|
122
122
|
function k() {
|
|
@@ -133,7 +133,7 @@ function k() {
|
|
|
133
133
|
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
134
134
|
allowClear: !0,
|
|
135
135
|
noWrapper: !0,
|
|
136
|
-
options:
|
|
136
|
+
options: r,
|
|
137
137
|
placeholder: "状态",
|
|
138
138
|
style: { minWidth: 110 }
|
|
139
139
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { useMyApprovalApi as e } from "../../api/my-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
4
|
import { TaskStatusTag as n } from "../../components/status/index.js";
|
package/dist/es/permissions.js
CHANGED
package/dist/es/plugins/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { createContext as e, use as t, useMemo as n, useState as r } from "react";
|
|
3
3
|
import { createApprovalRegistries as i } from "@vef-framework-react/approval-form-bridge";
|
|
4
4
|
import { jsx as a } from "@emotion/react/jsx-runtime";
|
package/dist/es/types/enums.js
CHANGED
package/dist/es/types/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.15.0 made by Venus | 2026-08-07T09:29:09.258Z */
|
|
2
2
|
import { FINAL_INSTANCE_STATUSES as e, isFinalInstanceStatus as t } from "./enums.js";
|
|
3
3
|
export { e as FINAL_INSTANCE_STATUSES, t as isFinalInstanceStatus };
|
|
@@ -11,7 +11,8 @@ export interface InstanceFlowGraphViewerProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* The read-only, progress-annotated map of an instance's flow: node positions
|
|
13
13
|
* come from the designer verbatim, progress colors the borders (blue = in
|
|
14
|
-
* motion, green = passed, red = rejected, orange = returned
|
|
15
|
-
*
|
|
14
|
+
* motion, green = passed, red = rejected, orange = returned) and dashes the
|
|
15
|
+
* outline of everything the instance never reached, and the people involved
|
|
16
|
+
* float above each node they touched. Pan and zoom only — nothing is editable.
|
|
16
17
|
*/
|
|
17
18
|
export declare function InstanceFlowGraphViewer({ flowGraph, height }: InstanceFlowGraphViewerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeKind } from '@vef-framework-react/approval-flow-editor';
|
|
2
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
+
import { FlowGraphNodeData } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* One runtime node: the people involved float above the card, the kind badge
|
|
6
|
+
* and name sit on top, and the progress status reads beneath. Per-person
|
|
7
|
+
* detail lives in the avatars' hover cards; the full chronological account
|
|
8
|
+
* stays in the timeline — the graph is a map, not a table.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ViewerNode({ data, type }: NodeProps<Node<FlowGraphNodeData & Record<string, unknown>, NodeKind>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NodePerson } from './people';
|
|
2
|
+
export interface NodePeopleOverlayProps {
|
|
3
|
+
people: NodePerson[];
|
|
4
|
+
/**
|
|
5
|
+
* Avatars shown before the group collapses into `+N`.
|
|
6
|
+
*
|
|
7
|
+
* @default 4
|
|
8
|
+
*/
|
|
9
|
+
maxCount?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The people of one node, floated above its card as an avatar strip: who is
|
|
13
|
+
* acting on it now, and who already acted. Each avatar's ring carries that
|
|
14
|
+
* person's own outcome — which is what makes a half-decided parallel node
|
|
15
|
+
* readable at a glance — and hovering one opens their record.
|
|
16
|
+
*
|
|
17
|
+
* Renders nothing for a node nobody has touched, so unreached nodes stay bare.
|
|
18
|
+
*/
|
|
19
|
+
export declare function NodePeopleOverlay({ people, maxCount }: NodePeopleOverlayProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Activity, CCRecipient, FlowGraphNodeData, NodeParticipant, UserInfo } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* One person rendered above a flow-graph node, discriminated by what they are
|
|
4
|
+
* to that node. Each variant keeps its source record whole so the hover card
|
|
5
|
+
* can show that role's own detail — a participant's decision and opinion, a CC
|
|
6
|
+
* recipient's read receipt, an operator's action — rather than a lowest common
|
|
7
|
+
* denominator.
|
|
8
|
+
*
|
|
9
|
+
* `user` is hoisted onto every variant because the avatar itself only ever
|
|
10
|
+
* needs the person; only the hover card switches on `kind`.
|
|
11
|
+
*/
|
|
12
|
+
export type NodePerson = {
|
|
13
|
+
kind: "participant";
|
|
14
|
+
key: string;
|
|
15
|
+
user: UserInfo;
|
|
16
|
+
participant: NodeParticipant;
|
|
17
|
+
} | {
|
|
18
|
+
kind: "cc";
|
|
19
|
+
key: string;
|
|
20
|
+
user: UserInfo;
|
|
21
|
+
recipient: CCRecipient;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "operator";
|
|
24
|
+
key: string;
|
|
25
|
+
user: UserInfo;
|
|
26
|
+
activity: Activity;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* How a person's own outcome tints their avatar ring. Deliberately the same
|
|
30
|
+
* five-way semantic system the status tags use (blue = in motion, green =
|
|
31
|
+
* positive, red = negative, orange = sent back, gray = inert) so one glance
|
|
32
|
+
* reads the same everywhere.
|
|
33
|
+
*/
|
|
34
|
+
export type PersonTone = "processing" | "success" | "error" | "warning" | "default";
|
|
35
|
+
/**
|
|
36
|
+
* The ring tone for one person. An unrecognized participant status (the field
|
|
37
|
+
* arrives untyped) falls back to neutral rather than guessing an outcome.
|
|
38
|
+
*/
|
|
39
|
+
export declare function personTone(person: NodePerson): PersonTone;
|
|
40
|
+
/**
|
|
41
|
+
* The people to float above a node, in the order the backend recorded them.
|
|
42
|
+
*
|
|
43
|
+
* Exactly one source is used per node, in precedence order, so nobody is drawn
|
|
44
|
+
* twice: assignees if the node opened tasks, else CC recipients if it only
|
|
45
|
+
* notified, else the operators of whatever was recorded there — which is what
|
|
46
|
+
* puts the submitter above the start node, since a submit is an activity and
|
|
47
|
+
* never a task.
|
|
48
|
+
*
|
|
49
|
+
* Activity operators are deduplicated by user and keep their first act. A
|
|
50
|
+
* person who acted several times at one node is one avatar, not several; the
|
|
51
|
+
* timeline is where the full account lives — the graph stays a map.
|
|
52
|
+
*/
|
|
53
|
+
export declare function collectNodePeople(data: FlowGraphNodeData): NodePerson[];
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { UserInfo } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The avatar background for a person, stable for the life of their id. Shared
|
|
4
|
+
* so every surface that draws the same person draws them the same color —
|
|
5
|
+
* the timeline's labels and the flow graph's node avatars included.
|
|
6
|
+
*/
|
|
7
|
+
export declare function avatarColor(id: string): string;
|
|
2
8
|
export interface UserLabelProps {
|
|
3
9
|
user: UserInfo;
|
|
4
10
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/approval",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Approval engine pages and runtime components for VEF framework",
|
|
6
6
|
"keywords": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@xyflow/react": "^12.11.1",
|
|
45
45
|
"dayjs": "^1.11.0",
|
|
46
46
|
"lucide-react": "^1.23.0",
|
|
47
|
-
"@vef-framework-react/approval-
|
|
48
|
-
"@vef-framework-react/components": "2.
|
|
49
|
-
"@vef-framework-react/approval-
|
|
50
|
-
"@vef-framework-react/
|
|
51
|
-
"@vef-framework-react/form-editor": "2.
|
|
52
|
-
"@vef-framework-react/
|
|
47
|
+
"@vef-framework-react/approval-form-bridge": "2.15.0",
|
|
48
|
+
"@vef-framework-react/components": "2.15.0",
|
|
49
|
+
"@vef-framework-react/approval-flow-editor": "2.15.0",
|
|
50
|
+
"@vef-framework-react/core": "2.15.0",
|
|
51
|
+
"@vef-framework-react/form-editor": "2.15.0",
|
|
52
|
+
"@vef-framework-react/shared": "2.15.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"react": "^19.2.7"
|