@vef-framework-react/approval 2.17.2 → 2.18.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 (73) hide show
  1. package/dist/cjs/api/flow-api.cjs +1 -1
  2. package/dist/cjs/components/principal/index.cjs +1 -1
  3. package/dist/cjs/index.cjs +1 -1
  4. package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -1
  5. package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
  6. package/dist/cjs/plugins/index.cjs +1 -1
  7. package/dist/cjs/types/enums.cjs +1 -1
  8. package/dist/cjs/types/index.cjs +1 -1
  9. package/dist/es/api/admin-api.js +1 -1
  10. package/dist/es/api/category-api.js +1 -1
  11. package/dist/es/api/delegation-api.js +1 -1
  12. package/dist/es/api/flow-api.js +3 -2
  13. package/dist/es/api/index.js +1 -1
  14. package/dist/es/api/instance-api.js +1 -1
  15. package/dist/es/api/my-api.js +1 -1
  16. package/dist/es/api/query.js +1 -1
  17. package/dist/es/components/detail/action-modals.js +1 -1
  18. package/dist/es/components/detail/admin.js +1 -1
  19. package/dist/es/components/detail/drawer.js +1 -1
  20. package/dist/es/components/detail/index.js +1 -1
  21. package/dist/es/components/flow-graph/index.js +1 -1
  22. package/dist/es/components/flow-graph/node.js +1 -1
  23. package/dist/es/components/flow-graph/people-overlay.js +1 -1
  24. package/dist/es/components/flow-graph/people.js +1 -1
  25. package/dist/es/components/form-panel/index.js +1 -1
  26. package/dist/es/components/format.js +1 -1
  27. package/dist/es/components/icon.js +1 -1
  28. package/dist/es/components/index.js +1 -1
  29. package/dist/es/components/principal/index.js +12 -12
  30. package/dist/es/components/status/colors.js +1 -1
  31. package/dist/es/components/status/index.js +1 -1
  32. package/dist/es/components/status/labels.js +1 -1
  33. package/dist/es/components/timeline/index.js +1 -1
  34. package/dist/es/components/user/index.js +1 -1
  35. package/dist/es/index.js +10 -10
  36. package/dist/es/pages/admin-page/index.js +1 -1
  37. package/dist/es/pages/admin-page/instances.js +1 -1
  38. package/dist/es/pages/admin-page/metrics.js +1 -1
  39. package/dist/es/pages/admin-page/projections.js +1 -1
  40. package/dist/es/pages/admin-page/tasks.js +1 -1
  41. package/dist/es/pages/category-page/columns.js +1 -1
  42. package/dist/es/pages/category-page/form.js +1 -1
  43. package/dist/es/pages/category-page/index.js +1 -1
  44. package/dist/es/pages/delegation-page/columns.js +1 -1
  45. package/dist/es/pages/delegation-page/form.js +1 -1
  46. package/dist/es/pages/delegation-page/index.js +1 -1
  47. package/dist/es/pages/flow-page/columns.js +1 -1
  48. package/dist/es/pages/flow-page/designer/basic-step.js +142 -140
  49. package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
  50. package/dist/es/pages/flow-page/designer/form-step.js +1 -1
  51. package/dist/es/pages/flow-page/designer/index.js +87 -70
  52. package/dist/es/pages/flow-page/designer/review-step.js +1 -1
  53. package/dist/es/pages/flow-page/designer/types.js +1 -1
  54. package/dist/es/pages/flow-page/index.js +1 -1
  55. package/dist/es/pages/flow-page/search.js +1 -1
  56. package/dist/es/pages/flow-page/versions.js +1 -1
  57. package/dist/es/pages/index.js +1 -1
  58. package/dist/es/pages/initiate-page/index.js +1 -1
  59. package/dist/es/pages/initiate-page/start-drawer.js +1 -1
  60. package/dist/es/pages/my-instances-page/index.js +1 -1
  61. package/dist/es/pages/task-center-page/index.js +1 -1
  62. package/dist/es/permissions.js +1 -1
  63. package/dist/es/plugins/index.js +4 -2
  64. package/dist/es/types/enums.js +19 -2
  65. package/dist/es/types/index.js +3 -3
  66. package/dist/types/api/flow-api.d.ts +7 -1
  67. package/dist/types/components/principal/index.d.ts +16 -7
  68. package/dist/types/index.d.ts +1 -1
  69. package/dist/types/pages/flow-page/designer/basic-step.d.ts +9 -2
  70. package/dist/types/plugins/index.d.ts +19 -8
  71. package/dist/types/types/enums.d.ts +14 -8
  72. package/dist/types/types/flow.d.ts +13 -1
  73. package/package.json +7 -7
@@ -1,71 +1,72 @@
1
- /*! @vef-framework-react/approval v2.17.2 made by Venus | 2026-08-27T06:56:11.227Z */
1
+ /*! @vef-framework-react/approval v2.18.0 made by Venus | 2026-08-31T14:48:19.173Z */
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
- 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";
5
- import { PlusIcon as y, Trash2Icon as b } from "lucide-react";
6
- import { jsx as x, jsxs as S } from "@emotion/react/jsx-runtime";
4
+ import { BUILTIN_INITIATOR_KINDS as n } from "../../../types/enums.js";
5
+ import { Button as r, Card as i, Collapse as a, Flex as o, Grid as s, Icon as c, IconPicker as l, Input as u, Labeled as d, LabelsEditor as f, Radio as p, Select as m, Stack as h, Switch as g, Text as _, TreeSelect as v, globalCssVars as y } from "@vef-framework-react/components";
6
+ import { PlusIcon as b, Trash2Icon as x } from "lucide-react";
7
+ import { jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
7
8
  //#region src/pages/flow-page/designer/basic-step.tsx
8
- var C = [
9
- {
10
- label: "用户",
11
- value: "user"
12
- },
13
- {
14
- label: "角色",
15
- value: "role"
16
- },
17
- {
18
- label: "部门",
19
- value: "department"
20
- }
21
- ];
22
- function w({ initiators: e, onChange: r }) {
23
- function i(t, n) {
24
- r(e.map((e, r) => r === t ? {
9
+ function w({ initiators: e, kinds: n, onChange: i }) {
10
+ let a = new Map(n.map((e) => [e.kind, e])), s = n.map((e) => ({
11
+ label: e.label,
12
+ value: e.kind
13
+ }));
14
+ function l(t, n) {
15
+ i(e.map((e, r) => r === t ? {
25
16
  ...e,
26
17
  ...n
27
18
  } : e));
28
19
  }
29
- return /* @__PURE__ */ S(m, {
20
+ return /* @__PURE__ */ C(h, {
30
21
  gap: 8,
31
- children: [e.map((o, c) => /* @__PURE__ */ S(a, {
32
- align: "center",
33
- gap: "small",
34
- children: [
35
- /* @__PURE__ */ x(p, {
36
- options: C,
37
- style: {
38
- width: 100,
39
- flexShrink: 0
40
- },
41
- value: o.kind,
42
- onChange: (e) => i(c, {
43
- kind: e,
44
- ids: []
45
- })
46
- }),
47
- /* @__PURE__ */ x("div", {
48
- style: {
49
- flex: 1,
50
- minWidth: 0
51
- },
52
- children: /* @__PURE__ */ x(t, {
53
- kind: o.kind,
54
- value: o.ids,
55
- onChange: (e) => i(c, { ids: e })
22
+ children: [e.map((n, u) => {
23
+ let d = a.get(n.kind);
24
+ return /* @__PURE__ */ C(o, {
25
+ align: "center",
26
+ gap: "small",
27
+ children: [
28
+ /* @__PURE__ */ S(m, {
29
+ options: s,
30
+ style: {
31
+ width: 120,
32
+ flexShrink: 0
33
+ },
34
+ value: n.kind,
35
+ onChange: (e) => l(u, {
36
+ kind: e,
37
+ ids: []
38
+ })
39
+ }),
40
+ /* @__PURE__ */ S("div", {
41
+ style: {
42
+ flex: 1,
43
+ minWidth: 0
44
+ },
45
+ children: d === void 0 ? /* @__PURE__ */ S("span", {
46
+ style: { color: y.colorErrorText },
47
+ children: `当前应用未注册该类型:${n.kind}`
48
+ }) : d.selection === "none" ? /* @__PURE__ */ S("span", {
49
+ style: { color: y.colorTextTertiary },
50
+ children: "该类型按发起人自动解析,无需选择"
51
+ }) : /* @__PURE__ */ S(t, {
52
+ kind: n.kind,
53
+ selection: d.selection,
54
+ value: n.ids,
55
+ onChange: (e) => l(u, { ids: e })
56
+ })
57
+ }),
58
+ /* @__PURE__ */ S(r, {
59
+ icon: /* @__PURE__ */ S(c, { component: x }),
60
+ onClick: () => i(e.filter((e, t) => t !== u))
56
61
  })
57
- }),
58
- /* @__PURE__ */ x(n, {
59
- icon: /* @__PURE__ */ x(s, { component: b }),
60
- onClick: () => r(e.filter((e, t) => t !== c))
61
- })
62
- ]
63
- }, c)), /* @__PURE__ */ x(n, {
62
+ ]
63
+ }, u);
64
+ }), /* @__PURE__ */ S(r, {
64
65
  block: !0,
65
- icon: /* @__PURE__ */ x(s, { component: y }),
66
+ icon: /* @__PURE__ */ S(c, { component: b }),
66
67
  type: "dashed",
67
- onClick: () => r([...e, {
68
- kind: "user",
68
+ onClick: () => i([...e, {
69
+ kind: n[0]?.kind ?? "user",
69
70
  ids: []
70
71
  }]),
71
72
  children: "添加发起规则"
@@ -81,18 +82,18 @@ var T = [
81
82
  "terminated"
82
83
  ];
83
84
  function E({ binding: t, onChange: n }) {
84
- return /* @__PURE__ */ S(m, {
85
+ return /* @__PURE__ */ C(h, {
85
86
  gap: 12,
86
- children: [/* @__PURE__ */ S(o, {
87
+ children: [/* @__PURE__ */ C(s, {
87
88
  columnGap: "small",
88
89
  rowGap: 12,
89
90
  children: [
90
- /* @__PURE__ */ x(o.Item, {
91
+ /* @__PURE__ */ S(s.Item, {
91
92
  span: 12,
92
- children: /* @__PURE__ */ x(u, {
93
+ children: /* @__PURE__ */ S(d, {
93
94
  required: !0,
94
95
  label: "业务表名",
95
- children: /* @__PURE__ */ x(l, {
96
+ children: /* @__PURE__ */ S(u, {
96
97
  placeholder: "如 biz_purchase_order",
97
98
  value: t.tableName,
98
99
  onChange: (e) => n({
@@ -102,13 +103,13 @@ function E({ binding: t, onChange: n }) {
102
103
  })
103
104
  })
104
105
  }),
105
- /* @__PURE__ */ x(o.Item, {
106
+ /* @__PURE__ */ S(s.Item, {
106
107
  span: 12,
107
- children: /* @__PURE__ */ x(u, {
108
+ children: /* @__PURE__ */ S(d, {
108
109
  required: !0,
109
110
  hint: "必须与业务表上的主键或唯一键完全一致",
110
111
  label: "记录键列",
111
- children: /* @__PURE__ */ x(p, {
112
+ children: /* @__PURE__ */ S(m, {
112
113
  mode: "tags",
113
114
  open: !1,
114
115
  placeholder: "输入列名,回车添加",
@@ -121,12 +122,12 @@ function E({ binding: t, onChange: n }) {
121
122
  })
122
123
  })
123
124
  }),
124
- /* @__PURE__ */ x(o.Item, {
125
+ /* @__PURE__ */ S(s.Item, {
125
126
  span: 12,
126
- children: /* @__PURE__ */ x(u, {
127
+ children: /* @__PURE__ */ S(d, {
127
128
  required: !0,
128
129
  label: "状态列",
129
- children: /* @__PURE__ */ x(l, {
130
+ children: /* @__PURE__ */ S(u, {
130
131
  placeholder: "如 approval_status",
131
132
  value: t.statusColumn,
132
133
  onChange: (e) => n({
@@ -136,13 +137,13 @@ function E({ binding: t, onChange: n }) {
136
137
  })
137
138
  })
138
139
  }),
139
- /* @__PURE__ */ x(o.Item, {
140
+ /* @__PURE__ */ S(s.Item, {
140
141
  span: 12,
141
- children: /* @__PURE__ */ x(u, {
142
+ children: /* @__PURE__ */ S(d, {
142
143
  required: !0,
143
144
  hint: "防止过期实例覆盖新一轮审批的写入",
144
145
  label: "实例 ID 列",
145
- children: /* @__PURE__ */ x(l, {
146
+ children: /* @__PURE__ */ S(u, {
146
147
  placeholder: "如 approval_instance_id",
147
148
  value: t.instanceIdColumn ?? "",
148
149
  onChange: (e) => n({
@@ -152,11 +153,11 @@ function E({ binding: t, onChange: n }) {
152
153
  })
153
154
  })
154
155
  }),
155
- /* @__PURE__ */ x(o.Item, {
156
+ /* @__PURE__ */ S(s.Item, {
156
157
  span: 12,
157
- children: /* @__PURE__ */ x(u, {
158
+ children: /* @__PURE__ */ S(d, {
158
159
  label: "开始时间列",
159
- children: /* @__PURE__ */ x(l, {
160
+ children: /* @__PURE__ */ S(u, {
160
161
  placeholder: "可选",
161
162
  value: t.startedAtColumn ?? "",
162
163
  onChange: (e) => n({
@@ -166,11 +167,11 @@ function E({ binding: t, onChange: n }) {
166
167
  })
167
168
  })
168
169
  }),
169
- /* @__PURE__ */ x(o.Item, {
170
+ /* @__PURE__ */ S(s.Item, {
170
171
  span: 12,
171
- children: /* @__PURE__ */ x(u, {
172
+ children: /* @__PURE__ */ S(d, {
172
173
  label: "完成时间列",
173
- children: /* @__PURE__ */ x(l, {
174
+ children: /* @__PURE__ */ S(u, {
174
175
  placeholder: "可选",
175
176
  value: t.finishedAtColumn ?? "",
176
177
  onChange: (e) => n({
@@ -181,19 +182,19 @@ function E({ binding: t, onChange: n }) {
181
182
  })
182
183
  })
183
184
  ]
184
- }), /* @__PURE__ */ x(i, {
185
+ }), /* @__PURE__ */ S(a, {
185
186
  ghost: !0,
186
187
  items: [{
187
188
  key: "statusMapping",
188
189
  label: "状态映射(可选,缺省写入状态原文)",
189
- children: /* @__PURE__ */ x(o, {
190
+ children: /* @__PURE__ */ S(s, {
190
191
  columnGap: "small",
191
192
  rowGap: 12,
192
- children: T.map((r) => /* @__PURE__ */ x(o.Item, {
193
+ children: T.map((r) => /* @__PURE__ */ S(s.Item, {
193
194
  span: 8,
194
- children: /* @__PURE__ */ x(u, {
195
+ children: /* @__PURE__ */ S(d, {
195
196
  label: e[r],
196
- children: /* @__PURE__ */ x(l, {
197
+ children: /* @__PURE__ */ S(u, {
197
198
  placeholder: r,
198
199
  value: t.statusMapping?.[r] ?? "",
199
200
  onChange: (e) => {
@@ -217,8 +218,8 @@ var D = {
217
218
  statusColumn: "",
218
219
  instanceIdColumn: void 0
219
220
  };
220
- function O({ basic: e, initiators: n, categoryOptions: i, isEditing: s, onBasicChange: p, onInitiatorsChange: y }) {
221
- return /* @__PURE__ */ S(m, {
221
+ function O({ basic: e, initiators: r, initiatorKinds: a, categoryOptions: c, isEditing: m, onBasicChange: b, onInitiatorsChange: x }) {
222
+ return /* @__PURE__ */ C(h, {
222
223
  gap: 16,
223
224
  style: {
224
225
  maxWidth: 920,
@@ -226,143 +227,144 @@ function O({ basic: e, initiators: n, categoryOptions: i, isEditing: s, onBasicC
226
227
  width: "100%"
227
228
  },
228
229
  children: [
229
- /* @__PURE__ */ x(r, {
230
+ /* @__PURE__ */ S(i, {
230
231
  title: "基本信息",
231
- children: /* @__PURE__ */ S(o, {
232
+ children: /* @__PURE__ */ C(s, {
232
233
  columnGap: "small",
233
234
  rowGap: 12,
234
235
  children: [
235
- /* @__PURE__ */ x(o.Item, {
236
+ /* @__PURE__ */ S(s.Item, {
236
237
  span: 12,
237
- children: /* @__PURE__ */ x(u, {
238
+ children: /* @__PURE__ */ S(d, {
238
239
  required: !0,
239
- hint: s ? "流程编码创建后不可修改" : "唯一标识,创建后不可修改",
240
+ hint: m ? "流程编码创建后不可修改" : "唯一标识,创建后不可修改",
240
241
  label: "流程编码",
241
- children: /* @__PURE__ */ x(l, {
242
- disabled: s,
242
+ children: /* @__PURE__ */ S(u, {
243
+ disabled: m,
243
244
  placeholder: "如 leave-request",
244
245
  value: e.code,
245
- onChange: (e) => p({ code: e.target.value })
246
+ onChange: (e) => b({ code: e.target.value })
246
247
  })
247
248
  })
248
249
  }),
249
- /* @__PURE__ */ x(o.Item, {
250
+ /* @__PURE__ */ S(s.Item, {
250
251
  span: 12,
251
- children: /* @__PURE__ */ x(u, {
252
+ children: /* @__PURE__ */ S(d, {
252
253
  required: !0,
253
254
  label: "流程名称",
254
- children: /* @__PURE__ */ x(l, {
255
+ children: /* @__PURE__ */ S(u, {
255
256
  placeholder: "如 请假审批",
256
257
  value: e.name,
257
- onChange: (e) => p({ name: e.target.value })
258
+ onChange: (e) => b({ name: e.target.value })
258
259
  })
259
260
  })
260
261
  }),
261
- /* @__PURE__ */ x(o.Item, {
262
+ /* @__PURE__ */ S(s.Item, {
262
263
  span: 12,
263
- children: /* @__PURE__ */ x(u, {
264
+ children: /* @__PURE__ */ S(d, {
264
265
  required: !0,
265
266
  label: "所属分类",
266
- children: /* @__PURE__ */ x(_, {
267
+ children: /* @__PURE__ */ S(v, {
267
268
  placeholder: "选择流程分类",
268
269
  style: { width: "100%" },
269
- treeData: i,
270
+ treeData: c,
270
271
  value: e.categoryId || void 0,
271
- onChange: (e) => p({ categoryId: e })
272
+ onChange: (e) => b({ categoryId: e })
272
273
  })
273
274
  })
274
275
  }),
275
- /* @__PURE__ */ x(o.Item, {
276
+ /* @__PURE__ */ S(s.Item, {
276
277
  span: 12,
277
- children: /* @__PURE__ */ x(u, {
278
+ children: /* @__PURE__ */ S(d, {
278
279
  label: "图标",
279
- children: /* @__PURE__ */ x(c, {
280
+ children: /* @__PURE__ */ S(l, {
280
281
  allowClear: !0,
281
282
  placeholder: "选择图标(可选)",
282
283
  style: { width: "100%" },
283
284
  value: e.icon,
284
- onChange: (e) => p({ icon: e ?? void 0 })
285
+ onChange: (e) => b({ icon: e ?? void 0 })
285
286
  })
286
287
  })
287
288
  }),
288
- /* @__PURE__ */ x(o.Item, {
289
+ /* @__PURE__ */ S(s.Item, {
289
290
  span: 24,
290
- children: /* @__PURE__ */ x(u, {
291
+ children: /* @__PURE__ */ S(d, {
291
292
  required: !0,
292
293
  hint: "支持 {{.flowName}} / {{.instanceNo}} / {{.applicantName}} / {{.formData.字段}} 模板变量",
293
294
  label: "单据标题模板",
294
- children: /* @__PURE__ */ x(l, {
295
+ children: /* @__PURE__ */ S(u, {
295
296
  placeholder: "如 {{.applicantName}}的请假申请({{.instanceNo}})",
296
297
  value: e.instanceTitleTemplate,
297
- onChange: (e) => p({ instanceTitleTemplate: e.target.value })
298
+ onChange: (e) => b({ instanceTitleTemplate: e.target.value })
298
299
  })
299
300
  })
300
301
  }),
301
- /* @__PURE__ */ x(o.Item, {
302
+ /* @__PURE__ */ S(s.Item, {
302
303
  span: 24,
303
- children: /* @__PURE__ */ x(u, {
304
+ children: /* @__PURE__ */ S(d, {
304
305
  label: "流程描述",
305
- children: /* @__PURE__ */ x(l.TextArea, {
306
+ children: /* @__PURE__ */ S(u.TextArea, {
306
307
  maxLength: 500,
307
308
  placeholder: "描述该流程的用途(可选)",
308
309
  rows: 2,
309
310
  value: e.description ?? "",
310
- onChange: (e) => p({ description: e.target.value || void 0 })
311
+ onChange: (e) => b({ description: e.target.value || void 0 })
311
312
  })
312
313
  })
313
314
  }),
314
- /* @__PURE__ */ x(o.Item, {
315
+ /* @__PURE__ */ S(s.Item, {
315
316
  span: 24,
316
- children: /* @__PURE__ */ x(u, {
317
+ children: /* @__PURE__ */ S(d, {
317
318
  hint: "管理员可作为空审批人/超时的兜底处理人",
318
319
  label: "流程管理员",
319
- children: /* @__PURE__ */ x(t, {
320
+ children: /* @__PURE__ */ S(t, {
320
321
  kind: "user",
321
322
  value: e.adminUserIds,
322
- onChange: (e) => p({ adminUserIds: e })
323
+ onChange: (e) => b({ adminUserIds: e })
323
324
  })
324
325
  })
325
326
  })
326
327
  ]
327
328
  })
328
329
  }),
329
- /* @__PURE__ */ x(r, {
330
+ /* @__PURE__ */ S(i, {
330
331
  title: "流程标签",
331
- children: /* @__PURE__ */ S(m, {
332
+ children: /* @__PURE__ */ C(h, {
332
333
  gap: 8,
333
- children: [/* @__PURE__ */ x(g, {
334
- style: { fontSize: v.fontSizeSm },
334
+ children: [/* @__PURE__ */ S(_, {
335
+ style: { fontSize: y.fontSizeSm },
335
336
  type: "secondary",
336
337
  children: "标签用于业务方自定义筛选,例如所属应用(app: crm)或移动端可发起(mobile)。列表与发起接口均支持按标签过滤。"
337
- }), /* @__PURE__ */ x(d, {
338
+ }), /* @__PURE__ */ S(f, {
338
339
  value: e.labels,
339
- onChange: (e) => p({ labels: e })
340
+ onChange: (e) => b({ labels: e })
340
341
  })]
341
342
  })
342
343
  }),
343
- /* @__PURE__ */ x(r, {
344
+ /* @__PURE__ */ S(i, {
344
345
  title: "发起权限",
345
- children: /* @__PURE__ */ S(m, {
346
+ children: /* @__PURE__ */ C(h, {
346
347
  gap: 12,
347
- children: [/* @__PURE__ */ S(a, {
348
+ children: [/* @__PURE__ */ C(o, {
348
349
  align: "center",
349
350
  gap: "small",
350
- children: [/* @__PURE__ */ x(h, {
351
+ children: [/* @__PURE__ */ S(g, {
351
352
  checked: e.isAllInitiationAllowed,
352
- onChange: (e) => p({ isAllInitiationAllowed: e })
353
- }), /* @__PURE__ */ x(g, { children: "所有人可发起" })]
354
- }), !e.isAllInitiationAllowed && /* @__PURE__ */ x(w, {
355
- initiators: n,
356
- onChange: y
353
+ onChange: (e) => b({ isAllInitiationAllowed: e })
354
+ }), /* @__PURE__ */ S(_, { children: "所有人可发起" })]
355
+ }), !e.isAllInitiationAllowed && /* @__PURE__ */ S(w, {
356
+ initiators: r,
357
+ kinds: a ?? n,
358
+ onChange: x
357
359
  })]
358
360
  })
359
361
  }),
360
- /* @__PURE__ */ x(r, {
362
+ /* @__PURE__ */ S(i, {
361
363
  title: "业务绑定",
362
- children: /* @__PURE__ */ S(m, {
364
+ children: /* @__PURE__ */ C(h, {
363
365
  gap: 12,
364
366
  children: [
365
- /* @__PURE__ */ x(f.Group, {
367
+ /* @__PURE__ */ S(p.Group, {
366
368
  optionType: "button",
367
369
  value: e.bindingMode,
368
370
  options: [{
@@ -374,17 +376,17 @@ function O({ basic: e, initiators: n, categoryOptions: i, isEditing: s, onBasicC
374
376
  }],
375
377
  onChange: (e) => {
376
378
  let t = e.target.value;
377
- (t === "standalone" || t === "business") && p({ bindingMode: t });
379
+ (t === "standalone" || t === "business") && b({ bindingMode: t });
378
380
  }
379
381
  }),
380
- /* @__PURE__ */ x(g, {
381
- style: { fontSize: v.fontSizeSm },
382
+ /* @__PURE__ */ S(_, {
383
+ style: { fontSize: y.fontSizeSm },
382
384
  type: "secondary",
383
385
  children: e.bindingMode === "standalone" ? "表单数据存储在审批系统内,适合独立审批单。" : "审批状态回写到既有业务表,业务记录是事实源,审批引擎按版本快照投影状态。"
384
386
  }),
385
- e.bindingMode === "business" && /* @__PURE__ */ x(E, {
387
+ e.bindingMode === "business" && /* @__PURE__ */ S(E, {
386
388
  binding: e.businessBinding ?? D,
387
- onChange: (e) => p({ businessBinding: e })
389
+ onChange: (e) => b({ businessBinding: e })
388
390
  })
389
391
  ]
390
392
  })
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.17.2 made by Venus | 2026-08-27T06:56:11.227Z */
1
+ /*! @vef-framework-react/approval v2.18.0 made by Venus | 2026-08-31T14:48:19.173Z */
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.17.2 made by Venus | 2026-08-27T06:56:11.227Z */
1
+ /*! @vef-framework-react/approval v2.18.0 made by Venus | 2026-08-31T14:48:19.173Z */
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";