@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.
Files changed (83) hide show
  1. package/dist/cjs/api/category-api.cjs +1 -1
  2. package/dist/cjs/api/delegation-api.cjs +1 -1
  3. package/dist/cjs/api/query.cjs +1 -1
  4. package/dist/cjs/index.cjs +1 -1
  5. package/dist/cjs/pages/category-page/index.cjs +1 -1
  6. package/dist/cjs/pages/delegation-page/form.cjs +1 -1
  7. package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
  8. package/dist/cjs/pages/initiate-page/index.cjs +1 -1
  9. package/dist/cjs/types/index.cjs +1 -1
  10. package/dist/cjs/types/tenancy.cjs +1 -0
  11. package/dist/es/api/admin-api.js +1 -1
  12. package/dist/es/api/category-api.js +2 -2
  13. package/dist/es/api/delegation-api.js +10 -14
  14. package/dist/es/api/flow-api.js +1 -1
  15. package/dist/es/api/index.js +1 -1
  16. package/dist/es/api/instance-api.js +1 -1
  17. package/dist/es/api/my-api.js +1 -1
  18. package/dist/es/api/query.js +9 -2
  19. package/dist/es/components/action-dialog/index.js +1 -1
  20. package/dist/es/components/detail/action-modals.js +1 -1
  21. package/dist/es/components/detail/admin.js +1 -1
  22. package/dist/es/components/detail/drawer.js +1 -1
  23. package/dist/es/components/detail/index.js +1 -1
  24. package/dist/es/components/flow-graph/index.js +1 -1
  25. package/dist/es/components/flow-graph/node.js +1 -1
  26. package/dist/es/components/flow-graph/people-overlay.js +1 -1
  27. package/dist/es/components/flow-graph/people.js +1 -1
  28. package/dist/es/components/form-panel/index.js +1 -1
  29. package/dist/es/components/format.js +1 -1
  30. package/dist/es/components/icon.js +1 -1
  31. package/dist/es/components/index.js +1 -1
  32. package/dist/es/components/principal/index.js +1 -1
  33. package/dist/es/components/status/colors.js +1 -1
  34. package/dist/es/components/status/index.js +1 -1
  35. package/dist/es/components/status/labels.js +1 -1
  36. package/dist/es/components/timeline/index.js +1 -1
  37. package/dist/es/components/user/index.js +1 -1
  38. package/dist/es/index.js +10 -9
  39. package/dist/es/pages/admin-page/index.js +1 -1
  40. package/dist/es/pages/admin-page/instances.js +1 -1
  41. package/dist/es/pages/admin-page/metrics.js +1 -1
  42. package/dist/es/pages/admin-page/projections.js +1 -1
  43. package/dist/es/pages/admin-page/tasks.js +1 -1
  44. package/dist/es/pages/category-page/columns.js +1 -1
  45. package/dist/es/pages/category-page/form.js +1 -1
  46. package/dist/es/pages/category-page/index.js +14 -8
  47. package/dist/es/pages/delegation-page/columns.js +1 -1
  48. package/dist/es/pages/delegation-page/form.js +2 -2
  49. package/dist/es/pages/delegation-page/index.js +1 -1
  50. package/dist/es/pages/flow-page/columns.js +1 -1
  51. package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
  52. package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
  53. package/dist/es/pages/flow-page/designer/form-step.js +1 -1
  54. package/dist/es/pages/flow-page/designer/index.js +167 -160
  55. package/dist/es/pages/flow-page/designer/review-step.js +1 -1
  56. package/dist/es/pages/flow-page/designer/types.js +1 -1
  57. package/dist/es/pages/flow-page/index.js +1 -1
  58. package/dist/es/pages/flow-page/search.js +1 -1
  59. package/dist/es/pages/flow-page/versions.js +1 -1
  60. package/dist/es/pages/index.js +1 -1
  61. package/dist/es/pages/initiate-page/index.js +4 -4
  62. package/dist/es/pages/initiate-page/start-drawer.js +1 -1
  63. package/dist/es/pages/my-instances-page/index.js +1 -1
  64. package/dist/es/pages/task-center-page/index.js +1 -1
  65. package/dist/es/pages/task-center-page/search.js +1 -1
  66. package/dist/es/permissions.js +1 -1
  67. package/dist/es/plugins/form-context.js +1 -1
  68. package/dist/es/plugins/index.js +1 -1
  69. package/dist/es/types/enums.js +1 -1
  70. package/dist/es/types/index.js +3 -2
  71. package/dist/es/types/tenancy.js +5 -0
  72. package/dist/types/api/delegation-api.d.ts +1 -1
  73. package/dist/types/api/my-api.d.ts +1 -1
  74. package/dist/types/api/query.d.ts +11 -0
  75. package/dist/types/pages/category-page/props.d.ts +3 -1
  76. package/dist/types/pages/flow-page/props.d.ts +3 -1
  77. package/dist/types/pages/initiate-page/index.d.ts +3 -3
  78. package/dist/types/pages/initiate-page/start-drawer.d.ts +5 -1
  79. package/dist/types/types/category.d.ts +11 -1
  80. package/dist/types/types/index.d.ts +1 -0
  81. package/dist/types/types/instance.d.ts +6 -1
  82. package/dist/types/types/tenancy.d.ts +14 -0
  83. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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: "id",
125
- children: (e) => /* @__PURE__ */ v(D, { editedId: e.state.value })
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 n = e(), { data: s } = a({
130
- queryFn: n.findTree,
131
- queryKey: [n.findTree.key, {}]
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(s ?? [], t), [s, t]) });
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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 { BasicStep as te } from "./basic-step.js";
7
- import { FlowStep as ne } from "./flow-step.js";
8
- import { FormStep as i } from "./form-step.js";
9
- import { EMPTY_FLOW_DEFINITION as a, createEmptyDraft as o, initiatorsForSubmit as s, isBindingValid as c } from "./types.js";
10
- import { ReviewStep as re } from "./review-step.js";
11
- import { useMutation as l, useQuery as u } from "@vef-framework-react/core";
12
- import { useCallback as d, useEffect as f, useMemo as p, useState as m } from "react";
13
- import { Button as h, Drawer as g, Flex as _, Spin as v, Steps as y, Text as ie, globalCssVars as ae, showSuccessMessage as oe } from "@vef-framework-react/components";
14
- import { projectFormSchema as se, validateApprovalSchema as ce } from "@vef-framework-react/approval-form-bridge";
15
- import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
16
- import { validateFlowDefinition as S } from "@vef-framework-react/approval-flow-editor";
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 C = [
19
+ var x = [
19
20
  { title: "流程设置" },
20
21
  { title: "表单设计" },
21
22
  { title: "流程设计" },
22
23
  { title: "审阅提交" }
23
24
  ];
24
- function w({ flow: g, tenantId: w, onClose: T }) {
25
- let E = t(), D = e(), O = r(), k = g !== void 0, [A, j] = m(0), [M, N] = m(() => k ? null : o(w)), [P, le] = m(""), [F, I] = m(!0), [L, R] = m(!1), { data: z } = u({
26
- queryFn: D.findTree,
27
- queryKey: [D.findTree.key, {}]
28
- }), B = p(() => ee(z ?? []), [z]), { data: V } = u({
29
- queryFn: E.findVersions,
30
- queryKey: [E.findVersions.key, { flowId: g?.id ?? "" }],
31
- enabled: k
32
- }), H = V?.[0]?.id, { data: U } = u({
33
- queryFn: E.getGraph,
34
- queryKey: [E.getGraph.key, {
35
- flowId: g?.id ?? "",
36
- versionId: H ?? ""
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: k && H !== void 0
39
- }), { data: W } = u({
40
- queryFn: E.findInitiators,
41
- queryKey: [E.findInitiators.key, { flowId: g?.id ?? "" }],
42
- enabled: k
43
- }), { data: G } = u({
44
- queryFn: E.listKindOptions,
45
- queryKey: [E.listKindOptions.key, {}],
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
- f(() => {
49
- if (!k || M !== null || V === void 0 || W === void 0 || V.length > 0 && U === void 0) return;
50
- let e = U?.version ?? null;
51
- N({
52
- flowId: g.id,
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: g.tenantId,
55
- code: g.code,
56
- name: g.name,
57
- categoryId: g.categoryId,
58
- icon: g.icon ?? void 0,
59
- description: g.description ?? void 0,
60
- labels: g.labels ?? {},
61
- bindingMode: g.bindingMode,
62
- businessBinding: g.businessBinding ?? void 0,
63
- adminUserIds: g.adminUserIds,
64
- isAllInitiationAllowed: g.isAllInitiationAllowed,
65
- instanceTitleTemplate: g.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: W.map((e) => ({
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 ?? a
74
+ flowDefinition: e?.flowSchema ?? te
74
75
  });
75
76
  }, [
76
- k,
77
- M,
78
- V,
77
+ D,
78
+ A,
79
+ B,
80
+ H,
79
81
  U,
80
- W,
81
- g
82
+ h
82
83
  ]);
83
- let K = {
84
+ let G = {
84
85
  shouldShowSuccessFeedback: !1,
85
- invalidates: [[E.findFlows.key], [E.findVersions.key]]
86
- }, ue = l({
87
- mutationFn: E.create,
88
- meta: K
89
- }), de = l({
90
- mutationFn: E.update,
91
- meta: K
92
- }), fe = l({
93
- mutationFn: E.deploy,
94
- meta: K
95
- }), pe = l({
96
- mutationFn: E.publishVersion,
97
- meta: K
98
- }), q = p(() => M?.formSchema ? se(M.formSchema) : null, [M?.formSchema]), J = p(() => M?.formSchema ? ce(M.formSchema, O.registries) : null, [M?.formSchema, O.registries]), Y = p(() => M ? S(M.flowDefinition, {
99
- formFields: q?.formFields ?? [],
100
- assigneeKinds: G?.assignees,
101
- ccKinds: G?.ccs
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
- M,
104
- q,
105
- G
106
- ]), me = p(() => n(O, q?.formFields ?? [], G), [
107
- O,
108
- q,
109
- G
110
- ]), he = d((e) => {
111
- N((t) => t && {
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
- }, []), ge = d((e) => {
119
- N((t) => t && {
125
+ }, []), ye = u((e) => {
126
+ j((t) => t && {
120
127
  ...t,
121
128
  initiators: e
122
129
  });
123
- }, []), _e = d((e) => {
124
- N((t) => t && {
130
+ }, []), be = u((e) => {
131
+ j((t) => t && {
125
132
  ...t,
126
133
  formSchema: e
127
134
  });
128
- }, []), ve = d((e) => {
129
- N((t) => t && {
135
+ }, []), Y = u((e) => {
136
+ j((t) => t && {
130
137
  ...t,
131
138
  flowDefinition: e
132
139
  });
133
140
  }, []);
134
- if (M === null) return /* @__PURE__ */ b(_, {
141
+ if (A === null) return /* @__PURE__ */ v(g, {
135
142
  align: "center",
136
143
  justify: "center",
137
144
  style: { height: "100%" },
138
- children: /* @__PURE__ */ b(v, {})
145
+ children: /* @__PURE__ */ v(ae, {})
139
146
  });
140
- let X = M, { basic: Z } = X, Q = [
141
- Z.code.trim() !== "" && Z.name.trim() !== "" && Z.categoryId !== "" && Z.instanceTitleTemplate.trim() !== "" && (Z.bindingMode !== "business" || c(Z.businessBinding)) && (Z.isAllInitiationAllowed || s(M).length > 0),
142
- J === null || J.valid,
143
- Y.length === 0,
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
- ][A] ?? !1, ye = [
152
+ ][O] ?? !1, xe = [
146
153
  "请先完善流程设置中的必填项",
147
- `表单存在 ${J?.issues.filter((e) => e.severity === "error").length ?? 0} 个错误,可在编辑器底部的问题提示中查看并定位`,
148
- `流程存在 ${Y.length} 个问题,可在画布工具栏的问题提示中查看并定位`,
154
+ `表单存在 ${q?.issues.filter((e) => e.severity === "error").length ?? 0} 个错误,可在编辑器底部的问题提示中查看并定位`,
155
+ `流程存在 ${J.length} 个问题,可在画布工具栏的问题提示中查看并定位`,
149
156
  void 0
150
- ], $ = Q ? void 0 : ye[A];
151
- async function be() {
152
- R(!0);
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 ue.mutateAsync({
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 de.mutateAsync({
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 fe.mutateAsync({
189
+ let r = await he.mutateAsync({
183
190
  flowId: n,
184
- description: P.trim() || void 0,
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
- F && await pe.mutateAsync({ versionId: r.id }), oe(F ? "流程已部署并发布" : "流程已部署为草稿版本"), T();
196
+ N && await ge.mutateAsync({ versionId: r.id }), le(N ? "流程已部署并发布" : "流程已部署为草稿版本"), C();
190
197
  } catch {} finally {
191
- R(!1);
198
+ F(!1);
192
199
  }
193
200
  }
194
- let xe = [
195
- /* @__PURE__ */ b(te, {
201
+ let Ce = [
202
+ /* @__PURE__ */ v(i, {
196
203
  basic: Z,
197
- categoryOptions: B,
198
- initiatorKinds: G?.initiators,
199
- initiators: M.initiators,
200
- isEditing: k,
201
- onBasicChange: he,
202
- onInitiatorsChange: ge
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__ */ b(i, {
205
- initialSchema: M.formSchema ?? void 0,
206
- registries: O.registries,
207
- storageMode: M.storageMode,
208
- onSchemaChange: _e,
209
- onStorageModeChange: (e) => N((t) => t && {
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__ */ b(ne, {
215
- plugins: me,
216
- value: M.flowDefinition,
217
- onChange: ve
221
+ /* @__PURE__ */ v(a, {
222
+ plugins: _e,
223
+ value: A.flowDefinition,
224
+ onChange: Y
218
225
  }, "flow"),
219
- /* @__PURE__ */ b(re, {
220
- draft: M,
221
- fields: q?.fields ?? [],
222
- publishNow: F,
223
- versionDescription: P,
224
- onPublishNowChange: I,
225
- onVersionDescriptionChange: le
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__ */ x(_, {
235
+ return /* @__PURE__ */ y(g, {
229
236
  style: {
230
237
  height: "100%",
231
238
  flexDirection: "column"
232
239
  },
233
240
  children: [
234
- /* @__PURE__ */ b("div", {
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__ */ b(y, {
240
- current: A,
241
- items: C,
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__ */ b("div", {
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: xe.map((e, t) => {
257
- let n = t === A, r = t === 0 || t === 3;
258
- return /* @__PURE__ */ b("div", {
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__ */ x(_, {
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__ */ b(h, {
279
- disabled: A === 0 || L,
280
- onClick: () => j((e) => e - 1),
285
+ children: [/* @__PURE__ */ v(m, {
286
+ disabled: O === 0 || P,
287
+ onClick: () => k((e) => e - 1),
281
288
  children: "上一步"
282
- }), /* @__PURE__ */ x(_, {
289
+ }), /* @__PURE__ */ y(g, {
283
290
  align: "center",
284
291
  gap: "middle",
285
- children: [$ === void 0 ? null : /* @__PURE__ */ b(ie, {
286
- style: { fontSize: ae.fontSizeSm },
292
+ children: [$ === void 0 ? null : /* @__PURE__ */ v(se, {
293
+ style: { fontSize: ce.fontSizeSm },
287
294
  type: "danger",
288
295
  children: $
289
- }), A < C.length - 1 ? /* @__PURE__ */ b(h, {
296
+ }), O < x.length - 1 ? /* @__PURE__ */ v(m, {
290
297
  disabled: !Q,
291
298
  type: "primary",
292
- onClick: () => j((e) => e + 1),
299
+ onClick: () => k((e) => e + 1),
293
300
  children: "下一步"
294
- }) : /* @__PURE__ */ b(h, {
295
- loading: L,
301
+ }) : /* @__PURE__ */ v(m, {
302
+ loading: P,
296
303
  type: "primary",
297
- onClick: () => void be(),
298
- children: F ? "部署并发布" : "部署为草稿"
304
+ onClick: () => void Se(),
305
+ children: N ? "部署并发布" : "部署为草稿"
299
306
  })]
300
307
  })]
301
308
  })
302
309
  ]
303
310
  });
304
311
  }
305
- function T({ open: e, flow: t, tenantId: n, onClose: r }) {
306
- return /* @__PURE__ */ b(g, {
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__ */ b(w, {
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 { T as FlowDesignerDrawer };
329
+ export { C as FlowDesignerDrawer };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  //#region src/pages/flow-page/designer/types.ts
3
3
  var e = {
4
4
  nodes: [],
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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";