@vef-framework-react/approval 2.25.0 → 2.26.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/api/category-api.cjs +1 -1
- package/dist/cjs/api/delegation-api.cjs +1 -1
- package/dist/cjs/api/query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/category-page/index.cjs +1 -1
- package/dist/cjs/pages/delegation-page/form.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
- package/dist/cjs/pages/initiate-page/index.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/cjs/types/tenancy.cjs +1 -0
- package/dist/es/api/admin-api.js +1 -1
- package/dist/es/api/category-api.js +2 -2
- package/dist/es/api/delegation-api.js +10 -14
- 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 +9 -2
- package/dist/es/components/action-dialog/index.js +1 -1
- package/dist/es/components/detail/action-modals.js +1 -1
- package/dist/es/components/detail/admin.js +1 -1
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +1 -1
- package/dist/es/components/flow-graph/index.js +1 -1
- package/dist/es/components/flow-graph/node.js +1 -1
- package/dist/es/components/flow-graph/people-overlay.js +1 -1
- package/dist/es/components/flow-graph/people.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/es/components/user/index.js +1 -1
- package/dist/es/index.js +10 -9
- package/dist/es/pages/admin-page/index.js +1 -1
- package/dist/es/pages/admin-page/instances.js +1 -1
- package/dist/es/pages/admin-page/metrics.js +1 -1
- package/dist/es/pages/admin-page/projections.js +1 -1
- package/dist/es/pages/admin-page/tasks.js +1 -1
- 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 +14 -8
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +2 -2
- 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 +167 -160
- 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 +4 -4
- package/dist/es/pages/initiate-page/start-drawer.js +1 -1
- package/dist/es/pages/my-instances-page/index.js +1 -1
- package/dist/es/pages/task-center-page/index.js +1 -1
- package/dist/es/pages/task-center-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/plugins/form-context.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 +3 -2
- package/dist/es/types/tenancy.js +5 -0
- package/dist/types/api/delegation-api.d.ts +1 -1
- package/dist/types/api/my-api.d.ts +1 -1
- package/dist/types/api/query.d.ts +11 -0
- package/dist/types/pages/category-page/props.d.ts +3 -1
- package/dist/types/pages/flow-page/props.d.ts +3 -1
- package/dist/types/pages/initiate-page/index.d.ts +3 -3
- package/dist/types/pages/initiate-page/start-drawer.d.ts +5 -1
- package/dist/types/types/category.d.ts +11 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/instance.d.ts +6 -1
- package/dist/types/types/tenancy.d.ts +14 -0
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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";
|
|
@@ -121,16 +121,22 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
121
121
|
function E() {
|
|
122
122
|
let { AppField: e } = p();
|
|
123
123
|
return /* @__PURE__ */ v(e, {
|
|
124
|
-
name: "
|
|
125
|
-
children: (
|
|
124
|
+
name: "tenantId",
|
|
125
|
+
children: (t) => /* @__PURE__ */ v(e, {
|
|
126
|
+
name: "id",
|
|
127
|
+
children: (e) => /* @__PURE__ */ v(D, {
|
|
128
|
+
editedId: e.state.value,
|
|
129
|
+
tenantId: t.state.value
|
|
130
|
+
})
|
|
131
|
+
})
|
|
126
132
|
});
|
|
127
133
|
}
|
|
128
|
-
function D({ editedId: t }) {
|
|
129
|
-
let
|
|
130
|
-
queryFn:
|
|
131
|
-
queryKey: [
|
|
134
|
+
function D({ editedId: t, tenantId: n }) {
|
|
135
|
+
let s = e(), { data: c } = a({
|
|
136
|
+
queryFn: s.findTree,
|
|
137
|
+
queryKey: [s.findTree.key, { tenantId: n }]
|
|
132
138
|
});
|
|
133
|
-
return /* @__PURE__ */ v(r, { treeOptions: o(() => i(
|
|
139
|
+
return /* @__PURE__ */ v(r, { treeOptions: o(() => i(c ?? [], t), [c, t]) });
|
|
134
140
|
}
|
|
135
141
|
//#endregion
|
|
136
142
|
export { T as ApprovalCategoryPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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";
|
|
@@ -22,7 +22,7 @@ function u({ label: e, required: n, value: r, onChange: a }) {
|
|
|
22
22
|
function d() {
|
|
23
23
|
let { AppField: t } = s(), o = e(), { data: d } = r({
|
|
24
24
|
queryFn: o.findTree,
|
|
25
|
-
queryKey: [o.findTree.key, {}]
|
|
25
|
+
queryKey: [o.findTree.key, { includeShared: !0 }]
|
|
26
26
|
}), f = i(() => n(d ?? []), [d]);
|
|
27
27
|
return /* @__PURE__ */ l(a, {
|
|
28
28
|
columnGap: "small",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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 { BUILTIN_INITIATOR_KINDS as n } from "../../../types/enums.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
2
2
|
import { globalCssVars as e } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ApprovalFlowEditor as n } from "@vef-framework-react/approval-flow-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
2
2
|
import { useApprovalPlugins as e } from "../../../plugins/index.js";
|
|
3
3
|
import { toFormContextSources as t } from "../../../plugins/form-context.js";
|
|
4
4
|
import { useMemo as n } from "react";
|
|
@@ -1,158 +1,165 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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";
|
|
5
5
|
import { buildCategoryTreeOptions as ee } from "../../category-page/form.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
6
|
+
import "../../../types/tenancy.js";
|
|
7
|
+
import { BasicStep as i } from "./basic-step.js";
|
|
8
|
+
import { FlowStep as a } from "./flow-step.js";
|
|
9
|
+
import { FormStep as o } from "./form-step.js";
|
|
10
|
+
import { EMPTY_FLOW_DEFINITION as te, createEmptyDraft as ne, initiatorsForSubmit as s, isBindingValid as re } from "./types.js";
|
|
11
|
+
import { ReviewStep as ie } from "./review-step.js";
|
|
12
|
+
import { useMutation as c, useQuery as l } from "@vef-framework-react/core";
|
|
13
|
+
import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
|
|
14
|
+
import { Button as m, Drawer as h, Flex as g, Spin as ae, Steps as oe, Text as se, globalCssVars as ce, showSuccessMessage as le } from "@vef-framework-react/components";
|
|
15
|
+
import { projectFormSchema as ue, validateApprovalSchema as _ } from "@vef-framework-react/approval-form-bridge";
|
|
16
|
+
import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
17
|
+
import { validateFlowDefinition as b } from "@vef-framework-react/approval-flow-editor";
|
|
17
18
|
//#region src/pages/flow-page/designer/index.tsx
|
|
18
|
-
var
|
|
19
|
+
var x = [
|
|
19
20
|
{ title: "流程设置" },
|
|
20
21
|
{ title: "表单设计" },
|
|
21
22
|
{ title: "流程设计" },
|
|
22
23
|
{ title: "审阅提交" }
|
|
23
24
|
];
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
queryFn:
|
|
27
|
-
queryKey: [
|
|
28
|
-
}),
|
|
29
|
-
queryFn:
|
|
30
|
-
queryKey: [
|
|
31
|
-
enabled:
|
|
32
|
-
}),
|
|
33
|
-
queryFn:
|
|
34
|
-
queryKey: [
|
|
35
|
-
flowId:
|
|
36
|
-
versionId:
|
|
25
|
+
function S({ flow: h, tenantId: S, onClose: C }) {
|
|
26
|
+
let w = t(), T = e(), E = r(), D = h !== void 0, [O, k] = p(0), [A, j] = p(() => D ? null : ne(S)), [M, de] = p(""), [N, fe] = p(!0), [P, F] = p(!1), I = h?.tenantId ?? S, L = I === "0", { data: R } = l({
|
|
27
|
+
queryFn: T.findTree,
|
|
28
|
+
queryKey: [T.findTree.key, { tenantId: I }]
|
|
29
|
+
}), z = f(() => ee(R ?? []), [R]), { data: B } = l({
|
|
30
|
+
queryFn: w.findVersions,
|
|
31
|
+
queryKey: [w.findVersions.key, { flowId: h?.id ?? "" }],
|
|
32
|
+
enabled: D
|
|
33
|
+
}), V = B?.[0]?.id, { data: H } = l({
|
|
34
|
+
queryFn: w.getGraph,
|
|
35
|
+
queryKey: [w.getGraph.key, {
|
|
36
|
+
flowId: h?.id ?? "",
|
|
37
|
+
versionId: V ?? ""
|
|
37
38
|
}],
|
|
38
|
-
enabled:
|
|
39
|
-
}), { data:
|
|
40
|
-
queryFn:
|
|
41
|
-
queryKey: [
|
|
42
|
-
enabled:
|
|
43
|
-
}), { data:
|
|
44
|
-
queryFn:
|
|
45
|
-
queryKey: [
|
|
39
|
+
enabled: D && V !== void 0
|
|
40
|
+
}), { data: U } = l({
|
|
41
|
+
queryFn: w.findInitiators,
|
|
42
|
+
queryKey: [w.findInitiators.key, { flowId: h?.id ?? "" }],
|
|
43
|
+
enabled: D
|
|
44
|
+
}), { data: W } = l({
|
|
45
|
+
queryFn: w.listKindOptions,
|
|
46
|
+
queryKey: [w.listKindOptions.key, {}],
|
|
46
47
|
staleTime: Infinity
|
|
47
48
|
});
|
|
48
|
-
|
|
49
|
-
if (!
|
|
50
|
-
let e =
|
|
51
|
-
|
|
52
|
-
flowId:
|
|
49
|
+
d(() => {
|
|
50
|
+
if (!D || A !== null || B === void 0 || U === void 0 || B.length > 0 && H === void 0) return;
|
|
51
|
+
let e = H?.version ?? null;
|
|
52
|
+
j({
|
|
53
|
+
flowId: h.id,
|
|
53
54
|
basic: {
|
|
54
|
-
tenantId:
|
|
55
|
-
code:
|
|
56
|
-
name:
|
|
57
|
-
categoryId:
|
|
58
|
-
icon:
|
|
59
|
-
description:
|
|
60
|
-
labels:
|
|
61
|
-
bindingMode:
|
|
62
|
-
businessBinding:
|
|
63
|
-
adminUserIds:
|
|
64
|
-
isAllInitiationAllowed:
|
|
65
|
-
instanceTitleTemplate:
|
|
55
|
+
tenantId: h.tenantId,
|
|
56
|
+
code: h.code,
|
|
57
|
+
name: h.name,
|
|
58
|
+
categoryId: h.categoryId,
|
|
59
|
+
icon: h.icon ?? void 0,
|
|
60
|
+
description: h.description ?? void 0,
|
|
61
|
+
labels: h.labels ?? {},
|
|
62
|
+
bindingMode: h.bindingMode,
|
|
63
|
+
businessBinding: h.businessBinding ?? void 0,
|
|
64
|
+
adminUserIds: h.adminUserIds,
|
|
65
|
+
isAllInitiationAllowed: h.isAllInitiationAllowed,
|
|
66
|
+
instanceTitleTemplate: h.instanceTitleTemplate
|
|
66
67
|
},
|
|
67
|
-
initiators:
|
|
68
|
+
initiators: U.map((e) => ({
|
|
68
69
|
kind: e.kind,
|
|
69
70
|
ids: e.ids
|
|
70
71
|
})),
|
|
71
72
|
storageMode: e?.storageMode ?? "json",
|
|
72
73
|
formSchema: e?.formSchema ?? null,
|
|
73
|
-
flowDefinition: e?.flowSchema ??
|
|
74
|
+
flowDefinition: e?.flowSchema ?? te
|
|
74
75
|
});
|
|
75
76
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
D,
|
|
78
|
+
A,
|
|
79
|
+
B,
|
|
80
|
+
H,
|
|
79
81
|
U,
|
|
80
|
-
|
|
81
|
-
g
|
|
82
|
+
h
|
|
82
83
|
]);
|
|
83
|
-
let
|
|
84
|
+
let G = {
|
|
84
85
|
shouldShowSuccessFeedback: !1,
|
|
85
|
-
invalidates: [[
|
|
86
|
-
},
|
|
87
|
-
mutationFn:
|
|
88
|
-
meta:
|
|
89
|
-
}),
|
|
90
|
-
mutationFn:
|
|
91
|
-
meta:
|
|
92
|
-
}),
|
|
93
|
-
mutationFn:
|
|
94
|
-
meta:
|
|
95
|
-
}),
|
|
96
|
-
mutationFn:
|
|
97
|
-
meta:
|
|
98
|
-
}),
|
|
99
|
-
formFields:
|
|
100
|
-
assigneeKinds:
|
|
101
|
-
ccKinds:
|
|
86
|
+
invalidates: [[w.findFlows.key], [w.findVersions.key]]
|
|
87
|
+
}, pe = c({
|
|
88
|
+
mutationFn: w.create,
|
|
89
|
+
meta: G
|
|
90
|
+
}), me = c({
|
|
91
|
+
mutationFn: w.update,
|
|
92
|
+
meta: G
|
|
93
|
+
}), he = c({
|
|
94
|
+
mutationFn: w.deploy,
|
|
95
|
+
meta: G
|
|
96
|
+
}), ge = c({
|
|
97
|
+
mutationFn: w.publishVersion,
|
|
98
|
+
meta: G
|
|
99
|
+
}), K = f(() => A?.formSchema ? ue(A.formSchema) : null, [A?.formSchema]), q = f(() => A?.formSchema ? _(A.formSchema, E.registries) : null, [A?.formSchema, E.registries]), J = f(() => A ? b(A.flowDefinition, {
|
|
100
|
+
formFields: K?.formFields ?? [],
|
|
101
|
+
assigneeKinds: W?.assignees,
|
|
102
|
+
ccKinds: W?.ccs,
|
|
103
|
+
shared: L
|
|
102
104
|
}) : [], [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
A,
|
|
106
|
+
K,
|
|
107
|
+
W,
|
|
108
|
+
L
|
|
109
|
+
]), _e = f(() => ({
|
|
110
|
+
...n(E, K?.formFields ?? [], W),
|
|
111
|
+
shared: L
|
|
112
|
+
}), [
|
|
113
|
+
E,
|
|
114
|
+
K,
|
|
115
|
+
W,
|
|
116
|
+
L
|
|
117
|
+
]), ve = u((e) => {
|
|
118
|
+
j((t) => t && {
|
|
112
119
|
...t,
|
|
113
120
|
basic: {
|
|
114
121
|
...t.basic,
|
|
115
122
|
...e
|
|
116
123
|
}
|
|
117
124
|
});
|
|
118
|
-
}, []),
|
|
119
|
-
|
|
125
|
+
}, []), ye = u((e) => {
|
|
126
|
+
j((t) => t && {
|
|
120
127
|
...t,
|
|
121
128
|
initiators: e
|
|
122
129
|
});
|
|
123
|
-
}, []),
|
|
124
|
-
|
|
130
|
+
}, []), be = u((e) => {
|
|
131
|
+
j((t) => t && {
|
|
125
132
|
...t,
|
|
126
133
|
formSchema: e
|
|
127
134
|
});
|
|
128
|
-
}, []),
|
|
129
|
-
|
|
135
|
+
}, []), Y = u((e) => {
|
|
136
|
+
j((t) => t && {
|
|
130
137
|
...t,
|
|
131
138
|
flowDefinition: e
|
|
132
139
|
});
|
|
133
140
|
}, []);
|
|
134
|
-
if (
|
|
141
|
+
if (A === null) return /* @__PURE__ */ v(g, {
|
|
135
142
|
align: "center",
|
|
136
143
|
justify: "center",
|
|
137
144
|
style: { height: "100%" },
|
|
138
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ v(ae, {})
|
|
139
146
|
});
|
|
140
|
-
let X =
|
|
141
|
-
Z.code.trim() !== "" && Z.name.trim() !== "" && Z.categoryId !== "" && Z.instanceTitleTemplate.trim() !== "" && (Z.bindingMode !== "business" ||
|
|
142
|
-
|
|
143
|
-
|
|
147
|
+
let X = A, { basic: Z } = X, Q = [
|
|
148
|
+
Z.code.trim() !== "" && Z.name.trim() !== "" && Z.categoryId !== "" && Z.instanceTitleTemplate.trim() !== "" && (Z.bindingMode !== "business" || re(Z.businessBinding)) && (Z.isAllInitiationAllowed || s(A).length > 0),
|
|
149
|
+
q === null || q.valid,
|
|
150
|
+
J.length === 0,
|
|
144
151
|
!0
|
|
145
|
-
][
|
|
152
|
+
][O] ?? !1, xe = [
|
|
146
153
|
"请先完善流程设置中的必填项",
|
|
147
|
-
`表单存在 ${
|
|
148
|
-
`流程存在 ${
|
|
154
|
+
`表单存在 ${q?.issues.filter((e) => e.severity === "error").length ?? 0} 个错误,可在编辑器底部的问题提示中查看并定位`,
|
|
155
|
+
`流程存在 ${J.length} 个问题,可在画布工具栏的问题提示中查看并定位`,
|
|
149
156
|
void 0
|
|
150
|
-
], $ = Q ? void 0 :
|
|
151
|
-
async function
|
|
152
|
-
|
|
157
|
+
], $ = Q ? void 0 : xe[O];
|
|
158
|
+
async function Se() {
|
|
159
|
+
F(!0);
|
|
153
160
|
try {
|
|
154
161
|
let e = Z.bindingMode === "business" ? Z.businessBinding : void 0, t = s(X), n;
|
|
155
|
-
n = X.flowId === void 0 ? (await
|
|
162
|
+
n = X.flowId === void 0 ? (await pe.mutateAsync({
|
|
156
163
|
tenantId: Z.tenantId,
|
|
157
164
|
code: Z.code,
|
|
158
165
|
name: Z.name,
|
|
@@ -166,7 +173,7 @@ function w({ flow: g, tenantId: w, onClose: T }) {
|
|
|
166
173
|
isAllInitiationAllowed: Z.isAllInitiationAllowed,
|
|
167
174
|
instanceTitleTemplate: Z.instanceTitleTemplate,
|
|
168
175
|
initiators: t
|
|
169
|
-
})).id : (await
|
|
176
|
+
})).id : (await me.mutateAsync({
|
|
170
177
|
flowId: X.flowId,
|
|
171
178
|
name: Z.name,
|
|
172
179
|
icon: Z.icon,
|
|
@@ -179,66 +186,66 @@ function w({ flow: g, tenantId: w, onClose: T }) {
|
|
|
179
186
|
instanceTitleTemplate: Z.instanceTitleTemplate,
|
|
180
187
|
initiators: t
|
|
181
188
|
})).id;
|
|
182
|
-
let r = await
|
|
189
|
+
let r = await he.mutateAsync({
|
|
183
190
|
flowId: n,
|
|
184
|
-
description:
|
|
191
|
+
description: M.trim() || void 0,
|
|
185
192
|
storageMode: X.storageMode,
|
|
186
193
|
flowDefinition: X.flowDefinition,
|
|
187
194
|
formSchema: X.formSchema ?? void 0
|
|
188
195
|
});
|
|
189
|
-
|
|
196
|
+
N && await ge.mutateAsync({ versionId: r.id }), le(N ? "流程已部署并发布" : "流程已部署为草稿版本"), C();
|
|
190
197
|
} catch {} finally {
|
|
191
|
-
|
|
198
|
+
F(!1);
|
|
192
199
|
}
|
|
193
200
|
}
|
|
194
|
-
let
|
|
195
|
-
/* @__PURE__ */
|
|
201
|
+
let Ce = [
|
|
202
|
+
/* @__PURE__ */ v(i, {
|
|
196
203
|
basic: Z,
|
|
197
|
-
categoryOptions:
|
|
198
|
-
initiatorKinds:
|
|
199
|
-
initiators:
|
|
200
|
-
isEditing:
|
|
201
|
-
onBasicChange:
|
|
202
|
-
onInitiatorsChange:
|
|
204
|
+
categoryOptions: z,
|
|
205
|
+
initiatorKinds: W?.initiators,
|
|
206
|
+
initiators: A.initiators,
|
|
207
|
+
isEditing: D,
|
|
208
|
+
onBasicChange: ve,
|
|
209
|
+
onInitiatorsChange: ye
|
|
203
210
|
}, "basic"),
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
initialSchema:
|
|
206
|
-
registries:
|
|
207
|
-
storageMode:
|
|
208
|
-
onSchemaChange:
|
|
209
|
-
onStorageModeChange: (e) =>
|
|
211
|
+
/* @__PURE__ */ v(o, {
|
|
212
|
+
initialSchema: A.formSchema ?? void 0,
|
|
213
|
+
registries: E.registries,
|
|
214
|
+
storageMode: A.storageMode,
|
|
215
|
+
onSchemaChange: be,
|
|
216
|
+
onStorageModeChange: (e) => j((t) => t && {
|
|
210
217
|
...t,
|
|
211
218
|
storageMode: e
|
|
212
219
|
})
|
|
213
220
|
}, "form"),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
plugins:
|
|
216
|
-
value:
|
|
217
|
-
onChange:
|
|
221
|
+
/* @__PURE__ */ v(a, {
|
|
222
|
+
plugins: _e,
|
|
223
|
+
value: A.flowDefinition,
|
|
224
|
+
onChange: Y
|
|
218
225
|
}, "flow"),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
draft:
|
|
221
|
-
fields:
|
|
222
|
-
publishNow:
|
|
223
|
-
versionDescription:
|
|
224
|
-
onPublishNowChange:
|
|
225
|
-
onVersionDescriptionChange:
|
|
226
|
+
/* @__PURE__ */ v(ie, {
|
|
227
|
+
draft: A,
|
|
228
|
+
fields: K?.fields ?? [],
|
|
229
|
+
publishNow: N,
|
|
230
|
+
versionDescription: M,
|
|
231
|
+
onPublishNowChange: fe,
|
|
232
|
+
onVersionDescriptionChange: de
|
|
226
233
|
}, "review")
|
|
227
234
|
];
|
|
228
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ y(g, {
|
|
229
236
|
style: {
|
|
230
237
|
height: "100%",
|
|
231
238
|
flexDirection: "column"
|
|
232
239
|
},
|
|
233
240
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ v("div", {
|
|
235
242
|
style: {
|
|
236
243
|
padding: "12px 32px",
|
|
237
244
|
borderBottom: "1px solid var(--vef-color-border-secondary)"
|
|
238
245
|
},
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
-
current:
|
|
241
|
-
items:
|
|
246
|
+
children: /* @__PURE__ */ v(oe, {
|
|
247
|
+
current: O,
|
|
248
|
+
items: x,
|
|
242
249
|
size: "small",
|
|
243
250
|
style: {
|
|
244
251
|
maxWidth: 720,
|
|
@@ -246,16 +253,16 @@ function w({ flow: g, tenantId: w, onClose: T }) {
|
|
|
246
253
|
}
|
|
247
254
|
})
|
|
248
255
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ v("div", {
|
|
250
257
|
style: {
|
|
251
258
|
flex: 1,
|
|
252
259
|
minHeight: 0,
|
|
253
260
|
display: "flex",
|
|
254
261
|
flexDirection: "column"
|
|
255
262
|
},
|
|
256
|
-
children:
|
|
257
|
-
let n = t ===
|
|
258
|
-
return /* @__PURE__ */
|
|
263
|
+
children: Ce.map((e, t) => {
|
|
264
|
+
let n = t === O, r = t === 0 || t === 3;
|
|
265
|
+
return /* @__PURE__ */ v("div", {
|
|
259
266
|
style: {
|
|
260
267
|
display: n ? "flex" : "none",
|
|
261
268
|
flexDirection: "column",
|
|
@@ -268,42 +275,42 @@ function w({ flow: g, tenantId: w, onClose: T }) {
|
|
|
268
275
|
}, t);
|
|
269
276
|
})
|
|
270
277
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ y(g, {
|
|
272
279
|
align: "center",
|
|
273
280
|
justify: "space-between",
|
|
274
281
|
style: {
|
|
275
282
|
padding: "12px 32px",
|
|
276
283
|
borderTop: "1px solid var(--vef-color-border-secondary)"
|
|
277
284
|
},
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
-
disabled:
|
|
280
|
-
onClick: () =>
|
|
285
|
+
children: [/* @__PURE__ */ v(m, {
|
|
286
|
+
disabled: O === 0 || P,
|
|
287
|
+
onClick: () => k((e) => e - 1),
|
|
281
288
|
children: "上一步"
|
|
282
|
-
}), /* @__PURE__ */
|
|
289
|
+
}), /* @__PURE__ */ y(g, {
|
|
283
290
|
align: "center",
|
|
284
291
|
gap: "middle",
|
|
285
|
-
children: [$ === void 0 ? null : /* @__PURE__ */
|
|
286
|
-
style: { fontSize:
|
|
292
|
+
children: [$ === void 0 ? null : /* @__PURE__ */ v(se, {
|
|
293
|
+
style: { fontSize: ce.fontSizeSm },
|
|
287
294
|
type: "danger",
|
|
288
295
|
children: $
|
|
289
|
-
}),
|
|
296
|
+
}), O < x.length - 1 ? /* @__PURE__ */ v(m, {
|
|
290
297
|
disabled: !Q,
|
|
291
298
|
type: "primary",
|
|
292
|
-
onClick: () =>
|
|
299
|
+
onClick: () => k((e) => e + 1),
|
|
293
300
|
children: "下一步"
|
|
294
|
-
}) : /* @__PURE__ */
|
|
295
|
-
loading:
|
|
301
|
+
}) : /* @__PURE__ */ v(m, {
|
|
302
|
+
loading: P,
|
|
296
303
|
type: "primary",
|
|
297
|
-
onClick: () => void
|
|
298
|
-
children:
|
|
304
|
+
onClick: () => void Se(),
|
|
305
|
+
children: N ? "部署并发布" : "部署为草稿"
|
|
299
306
|
})]
|
|
300
307
|
})]
|
|
301
308
|
})
|
|
302
309
|
]
|
|
303
310
|
});
|
|
304
311
|
}
|
|
305
|
-
function
|
|
306
|
-
return /* @__PURE__ */
|
|
312
|
+
function C({ open: e, flow: t, tenantId: n, onClose: r }) {
|
|
313
|
+
return /* @__PURE__ */ v(h, {
|
|
307
314
|
destroyOnHidden: !0,
|
|
308
315
|
open: e,
|
|
309
316
|
placement: "right",
|
|
@@ -311,7 +318,7 @@ function T({ open: e, flow: t, tenantId: n, onClose: r }) {
|
|
|
311
318
|
styles: { body: { padding: 0 } },
|
|
312
319
|
title: t ? `流程设计 · ${t.name}` : "新建流程",
|
|
313
320
|
onClose: r,
|
|
314
|
-
children: e && /* @__PURE__ */
|
|
321
|
+
children: e && /* @__PURE__ */ v(S, {
|
|
315
322
|
flow: t,
|
|
316
323
|
tenantId: n,
|
|
317
324
|
onClose: r
|
|
@@ -319,4 +326,4 @@ function T({ open: e, flow: t, tenantId: n, onClose: r }) {
|
|
|
319
326
|
});
|
|
320
327
|
}
|
|
321
328
|
//#endregion
|
|
322
|
-
export {
|
|
329
|
+
export { C as FlowDesignerDrawer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
|
|
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";
|