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