@vef-framework-react/approval 2.24.0 → 2.25.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 (81) hide show
  1. package/dist/cjs/components/action-dialog/index.cjs +1 -0
  2. package/dist/cjs/components/detail/action-modals.cjs +1 -1
  3. package/dist/cjs/components/detail/admin.cjs +1 -1
  4. package/dist/cjs/components/detail/index.cjs +1 -1
  5. package/dist/cjs/components/form-panel/index.cjs +1 -1
  6. package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
  7. package/dist/cjs/pages/flow-page/designer/flow-step.cjs +1 -1
  8. package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -1
  9. package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
  10. package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -1
  11. package/dist/cjs/plugins/form-context.cjs +1 -0
  12. package/dist/es/api/admin-api.js +1 -1
  13. package/dist/es/api/category-api.js +1 -1
  14. package/dist/es/api/delegation-api.js +1 -1
  15. package/dist/es/api/flow-api.js +1 -1
  16. package/dist/es/api/index.js +1 -1
  17. package/dist/es/api/instance-api.js +1 -1
  18. package/dist/es/api/my-api.js +1 -1
  19. package/dist/es/api/query.js +1 -1
  20. package/dist/es/components/action-dialog/index.js +60 -0
  21. package/dist/es/components/detail/action-modals.js +264 -233
  22. package/dist/es/components/detail/admin.js +3 -1
  23. package/dist/es/components/detail/drawer.js +1 -1
  24. package/dist/es/components/detail/index.js +3 -1
  25. package/dist/es/components/flow-graph/index.js +1 -1
  26. package/dist/es/components/flow-graph/node.js +1 -1
  27. package/dist/es/components/flow-graph/people-overlay.js +1 -1
  28. package/dist/es/components/flow-graph/people.js +1 -1
  29. package/dist/es/components/form-panel/index.js +23 -20
  30. package/dist/es/components/format.js +1 -1
  31. package/dist/es/components/icon.js +1 -1
  32. package/dist/es/components/index.js +1 -1
  33. package/dist/es/components/principal/index.js +1 -1
  34. package/dist/es/components/status/colors.js +1 -1
  35. package/dist/es/components/status/index.js +1 -1
  36. package/dist/es/components/status/labels.js +1 -1
  37. package/dist/es/components/timeline/index.js +1 -1
  38. package/dist/es/components/user/index.js +1 -1
  39. package/dist/es/index.js +1 -1
  40. package/dist/es/pages/admin-page/index.js +1 -1
  41. package/dist/es/pages/admin-page/instances.js +1 -1
  42. package/dist/es/pages/admin-page/metrics.js +1 -1
  43. package/dist/es/pages/admin-page/projections.js +1 -1
  44. package/dist/es/pages/admin-page/tasks.js +66 -70
  45. package/dist/es/pages/category-page/columns.js +1 -1
  46. package/dist/es/pages/category-page/form.js +1 -1
  47. package/dist/es/pages/category-page/index.js +1 -1
  48. package/dist/es/pages/delegation-page/columns.js +1 -1
  49. package/dist/es/pages/delegation-page/form.js +1 -1
  50. package/dist/es/pages/delegation-page/index.js +1 -1
  51. package/dist/es/pages/flow-page/columns.js +1 -1
  52. package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
  53. package/dist/es/pages/flow-page/designer/flow-step.js +16 -34
  54. package/dist/es/pages/flow-page/designer/form-step.js +54 -65
  55. package/dist/es/pages/flow-page/designer/index.js +197 -186
  56. package/dist/es/pages/flow-page/designer/review-step.js +1 -1
  57. package/dist/es/pages/flow-page/designer/types.js +1 -1
  58. package/dist/es/pages/flow-page/index.js +1 -1
  59. package/dist/es/pages/flow-page/search.js +1 -1
  60. package/dist/es/pages/flow-page/versions.js +1 -1
  61. package/dist/es/pages/index.js +1 -1
  62. package/dist/es/pages/initiate-page/index.js +1 -1
  63. package/dist/es/pages/initiate-page/start-drawer.js +3 -1
  64. package/dist/es/pages/my-instances-page/index.js +1 -1
  65. package/dist/es/pages/task-center-page/index.js +1 -1
  66. package/dist/es/pages/task-center-page/search.js +1 -1
  67. package/dist/es/permissions.js +1 -1
  68. package/dist/es/plugins/form-context.js +34 -0
  69. package/dist/es/plugins/index.js +1 -1
  70. package/dist/es/types/enums.js +1 -1
  71. package/dist/es/types/index.js +1 -1
  72. package/dist/types/components/action-dialog/index.d.ts +44 -0
  73. package/dist/types/components/form-panel/index.d.ts +15 -3
  74. package/dist/types/index.d.ts +1 -0
  75. package/dist/types/pages/flow-page/designer/flow-step.d.ts +6 -5
  76. package/dist/types/pages/flow-page/designer/form-step.d.ts +9 -10
  77. package/dist/types/plugins/form-context.d.ts +30 -0
  78. package/dist/types/plugins/index.d.ts +25 -5
  79. package/dist/types/types/admin.d.ts +5 -0
  80. package/dist/types/types/my.d.ts +15 -0
  81. package/package.json +7 -7
@@ -1,25 +1,28 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useApprovalPlugins as e } from "../../plugins/index.js";
3
- import { Empty as t } from "@vef-framework-react/components";
4
- import { jsx as n } from "@emotion/react/jsx-runtime";
5
- import { FormRenderer as r, RegistryProvider as i } from "@vef-framework-react/form-editor";
3
+ import { toFormEvaluationContext as t } from "../../plugins/form-context.js";
4
+ import { useMemo as n } from "react";
5
+ import { Empty as r } from "@vef-framework-react/components";
6
+ import { jsx as i } from "@emotion/react/jsx-runtime";
7
+ import { FormRenderer as a, RegistryProvider as o } from "@vef-framework-react/form-editor";
6
8
  //#region src/components/form-panel/index.tsx
7
- function a({ schema: a, formData: o, fieldPermissions: s, disabled: c, device: l = "pc", apiRef: u, onSubmit: d }) {
8
- let { dataSourceResolver: f, evaluators: p, registries: m } = e();
9
- return a ? /* @__PURE__ */ n(i, {
10
- registries: m,
11
- children: /* @__PURE__ */ n(r, {
12
- apiRef: u,
13
- dataSourceResolver: f,
14
- defaultValues: o,
15
- device: l,
16
- disabled: c,
17
- evaluators: p,
18
- fieldPermissions: s,
19
- schema: a,
20
- onSubmit: d
9
+ function s({ schema: s, formData: c, fieldPermissions: l, applicant: u, globals: d, disabled: f, device: p = "pc", apiRef: m, onSubmit: h }) {
10
+ let { dataSourceResolver: g, evaluators: _, registries: v } = e(), y = n(() => t(u, d), [u, d]);
11
+ return s ? /* @__PURE__ */ i(o, {
12
+ registries: v,
13
+ children: /* @__PURE__ */ i(a, {
14
+ apiRef: m,
15
+ dataSourceResolver: g,
16
+ defaultValues: c,
17
+ device: p,
18
+ disabled: f,
19
+ evaluationContext: y,
20
+ evaluators: _,
21
+ fieldPermissions: l,
22
+ schema: s,
23
+ onSubmit: h
21
24
  })
22
- }) : /* @__PURE__ */ n(t, { description: "该流程未配置表单" });
25
+ }) : /* @__PURE__ */ i(r, { description: "该流程未配置表单" });
23
26
  }
24
27
  //#endregion
25
- export { a as InstanceFormPanel };
28
+ export { s as InstanceFormPanel };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import e from "dayjs";
3
3
  //#region src/components/format.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { DynamicIcon as e } from "@vef-framework-react/components";
3
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
4
4
  //#region src/components/icon.tsx
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { formatDurationSeconds as e, formatTimestamp as t } from "./format.js";
3
3
  import { ACTIVITY_ACTION_LABELS as n, BINDING_PROJECTION_STATUS_LABELS as r, BINDING_PROJECTION_STATUS_OPTIONS as i, INSTANCE_STATUS_LABELS as a, INSTANCE_STATUS_OPTIONS as o, NODE_PROGRESS_LABELS as s, PROCESS_TASK_ACTION_LABELS as c, TASK_STATUS_LABELS as l, TASK_STATUS_OPTIONS as u, VERSION_STATUS_LABELS as d } from "./status/labels.js";
4
4
  import { BINDING_PROJECTION_STATUS_COLORS as f, INSTANCE_STATUS_COLORS as p, NODE_PROGRESS_COLORS as m, TASK_STATUS_COLORS as h, VERSION_STATUS_COLORS as g } from "./status/colors.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useApprovalPlugins as e } from "../../plugins/index.js";
3
3
  import { Select as t } from "@vef-framework-react/components";
4
4
  import { jsx as n } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  //#region src/components/status/colors.ts
3
3
  var e = {
4
4
  running: "processing",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { BINDING_PROJECTION_STATUS_LABELS as e, INSTANCE_STATUS_LABELS as t, NODE_PROGRESS_LABELS as n, TASK_STATUS_LABELS as r, VERSION_STATUS_LABELS as i } from "./labels.js";
3
3
  import { BINDING_PROJECTION_STATUS_COLORS as a, INSTANCE_STATUS_COLORS as o, NODE_PROGRESS_COLORS as s, TASK_STATUS_COLORS as c, VERSION_STATUS_COLORS as l } from "./colors.js";
4
4
  import { Tag as u } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  //#region src/components/status/labels.ts
3
3
  var e = {
4
4
  running: "审批中",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { formatTimestamp as e } from "../format.js";
3
3
  import { ACTIVITY_ACTION_LABELS as t } from "../status/labels.js";
4
4
  import { TaskStatusTag as n } from "../status/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { Avatar as e, Space as t, Text as n, Tooltip as r } from "@vef-framework-react/components";
3
3
  import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
4
4
  //#region src/components/user/index.tsx
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { API_PATH as e, toPagedParams as t } from "./api/query.js";
3
3
  import { useAdminApprovalApi as n } from "./api/admin-api.js";
4
4
  import { useCategoryApi as r } from "./api/category-api.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { APPROVAL_PERMISSIONS as e } from "../../permissions.js";
3
3
  import { InstancesPanel as t } from "./instances.js";
4
4
  import { MetricsPanel as n } from "./metrics.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatTimestamp as t } from "../../components/format.js";
4
4
  import { INSTANCE_STATUS_OPTIONS as n } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatDurationSeconds as t, formatTimestamp as n } from "../../components/format.js";
4
4
  import { BINDING_PROJECTION_STATUS_LABELS as r, INSTANCE_STATUS_LABELS as i, TASK_STATUS_LABELS as a } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatTimestamp as t } from "../../components/format.js";
4
4
  import { BINDING_PROJECTION_STATUS_OPTIONS as n } from "../../components/status/labels.js";
@@ -1,20 +1,21 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatTimestamp as t } from "../../components/format.js";
4
4
  import { TASK_STATUS_OPTIONS as n } from "../../components/status/labels.js";
5
5
  import { TaskStatusTag as r } from "../../components/status/index.js";
6
6
  import { UserLabel as i } from "../../components/user/index.js";
7
- import { PrincipalSelect as a } from "../../components/principal/index.js";
8
- import { useMutation as o } from "@vef-framework-react/core";
9
- import { useEffect as s, useState as c } from "react";
10
- import { Crud as l, Input as u, Labeled as d, Modal as f, OperationButton as p, Stack as m, Text as h, showSuccessMessage as g, useFormContext as _ } from "@vef-framework-react/components";
11
- import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
7
+ import { ActionDialog as a, ActionFooter as o, useConfirm as s } from "../../components/action-dialog/index.js";
8
+ import { PrincipalSelect as c } from "../../components/principal/index.js";
9
+ import { useMutation as l } from "@vef-framework-react/core";
10
+ import { useState as u } from "react";
11
+ import { Crud as d, Input as f, Labeled as p, OperationButton as m, Stack as h, Text as g, showSuccessMessage as _, useFormContext as v } from "@vef-framework-react/components";
12
+ import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
12
13
  //#region src/pages/admin-page/tasks.tsx
13
- var x = [
14
+ var S = [
14
15
  {
15
16
  title: "审批单",
16
17
  dataIndex: "instanceTitle",
17
- render: (e) => /* @__PURE__ */ y(h, { children: e })
18
+ render: (e) => /* @__PURE__ */ b(g, { children: e })
18
19
  },
19
20
  {
20
21
  title: "所属流程",
@@ -30,13 +31,13 @@ var x = [
30
31
  title: "处理人",
31
32
  dataIndex: "assignee",
32
33
  width: 150,
33
- render: (e) => /* @__PURE__ */ y(i, { user: e })
34
+ render: (e) => /* @__PURE__ */ b(i, { user: e })
34
35
  },
35
36
  {
36
37
  title: "状态",
37
38
  dataIndex: "status",
38
39
  width: 100,
39
- render: (e) => /* @__PURE__ */ y(r, { status: e })
40
+ render: (e) => /* @__PURE__ */ b(r, { status: e })
40
41
  },
41
42
  {
42
43
  title: "创建时间",
@@ -51,28 +52,28 @@ var x = [
51
52
  render: (e) => t(e)
52
53
  }
53
54
  ];
54
- function S() {
55
- let { AppField: e } = _();
56
- return /* @__PURE__ */ b(v, { children: [
57
- /* @__PURE__ */ y(e, {
55
+ function C() {
56
+ let { AppField: e } = v();
57
+ return /* @__PURE__ */ x(y, { children: [
58
+ /* @__PURE__ */ b(e, {
58
59
  name: "assigneeId",
59
- children: (e) => /* @__PURE__ */ y(e.Input, {
60
+ children: (e) => /* @__PURE__ */ b(e.Input, {
60
61
  allowClear: !0,
61
62
  noWrapper: !0,
62
63
  placeholder: "处理人 ID"
63
64
  })
64
65
  }),
65
- /* @__PURE__ */ y(e, {
66
+ /* @__PURE__ */ b(e, {
66
67
  name: "instanceId",
67
- children: (e) => /* @__PURE__ */ y(e.Input, {
68
+ children: (e) => /* @__PURE__ */ b(e.Input, {
68
69
  allowClear: !0,
69
70
  noWrapper: !0,
70
71
  placeholder: "实例 ID"
71
72
  })
72
73
  }),
73
- /* @__PURE__ */ y(e, {
74
+ /* @__PURE__ */ b(e, {
74
75
  name: "status",
75
- children: (e) => /* @__PURE__ */ y(e.Select, {
76
+ children: (e) => /* @__PURE__ */ b(e.Select, {
76
77
  allowClear: !0,
77
78
  noWrapper: !0,
78
79
  options: n,
@@ -82,71 +83,66 @@ function S() {
82
83
  })
83
84
  ] });
84
85
  }
85
- function C({ open: e, onClose: t, onConfirm: n }) {
86
- let [r, i] = c([]), [o, l] = c(""), [p, h] = c(!1);
87
- s(() => {
88
- e && (i([]), l(""));
89
- }, [e]);
90
- let g = r[0];
91
- return /* @__PURE__ */ y(f, {
92
- confirmLoading: p,
93
- okButtonProps: { disabled: g === void 0 },
86
+ function w({ onClose: e, onConfirm: t }) {
87
+ let [n, r] = u([]), [i, a] = u(""), { submitting: l, run: d } = s(e), m = n[0];
88
+ return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(h, {
89
+ gap: 12,
90
+ style: { paddingBlock: 8 },
91
+ children: [/* @__PURE__ */ b(p, {
92
+ label: "改派给",
93
+ children: /* @__PURE__ */ b(c, {
94
+ kind: "user",
95
+ maxCount: 1,
96
+ value: n,
97
+ onChange: r
98
+ })
99
+ }), /* @__PURE__ */ b(p, {
100
+ label: "改派原因",
101
+ children: /* @__PURE__ */ b(f.TextArea, {
102
+ maxLength: 2e3,
103
+ placeholder: "请输入改派原因(可选)",
104
+ rows: 3,
105
+ value: i,
106
+ onChange: (e) => a(e.target.value)
107
+ })
108
+ })]
109
+ }), /* @__PURE__ */ b(o, {
110
+ disabled: m === void 0,
94
111
  okText: "改派",
112
+ submitting: l,
113
+ onCancel: e,
114
+ onOk: () => m !== void 0 && void d(() => t(m, i))
115
+ })] });
116
+ }
117
+ function T({ open: e, onClose: t, onConfirm: n }) {
118
+ return /* @__PURE__ */ b(a, {
95
119
  open: e,
96
120
  title: "改派任务",
97
- onCancel: t,
98
- onOk: async () => {
99
- if (g !== void 0) {
100
- h(!0);
101
- try {
102
- await n(g, o), t();
103
- } catch {} finally {
104
- h(!1);
105
- }
106
- }
107
- },
108
- children: /* @__PURE__ */ b(m, {
109
- gap: 12,
110
- style: { paddingBlock: 8 },
111
- children: [/* @__PURE__ */ y(d, {
112
- label: "改派给",
113
- children: /* @__PURE__ */ y(a, {
114
- kind: "user",
115
- maxCount: 1,
116
- value: r,
117
- onChange: i
118
- })
119
- }), /* @__PURE__ */ y(d, {
120
- label: "改派原因",
121
- children: /* @__PURE__ */ y(u.TextArea, {
122
- maxLength: 2e3,
123
- placeholder: "请输入改派原因(可选)",
124
- rows: 3,
125
- value: o,
126
- onChange: (e) => l(e.target.value)
127
- })
128
- })]
121
+ onClose: t,
122
+ children: /* @__PURE__ */ b(w, {
123
+ onClose: t,
124
+ onConfirm: n
129
125
  })
130
126
  });
131
127
  }
132
- function w({ reassignPermission: t }) {
133
- let n = e(), [r, i] = c(null), [a, s] = c(0), u = o({
128
+ function E({ reassignPermission: t }) {
129
+ let n = e(), [r, i] = u(null), [a, o] = u(0), s = l({
134
130
  mutationFn: n.reassignTask,
135
131
  meta: {
136
132
  shouldShowSuccessFeedback: !1,
137
133
  invalidates: [[n.findTasks.key]]
138
134
  }
139
135
  });
140
- return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(l, {
141
- basicSearch: /* @__PURE__ */ y(S, {}),
136
+ return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(d, {
137
+ basicSearch: /* @__PURE__ */ b(C, {}),
142
138
  columnSettings: { storageKey: "approval.admin.tasks" },
143
139
  queryFn: n.findTasks,
144
140
  rowKey: "taskId",
145
- tableColumns: x,
141
+ tableColumns: S,
146
142
  operationColumn: {
147
143
  width: 100,
148
144
  render(e) {
149
- return e.status === "pending" ? /* @__PURE__ */ y(p, {
145
+ return e.status === "pending" ? /* @__PURE__ */ b(m, {
150
146
  color: "primary",
151
147
  requiredPermissions: t,
152
148
  onClick: () => i(e.taskId),
@@ -154,17 +150,17 @@ function w({ reassignPermission: t }) {
154
150
  }) : null;
155
151
  }
156
152
  }
157
- }, String(a)), /* @__PURE__ */ y(C, {
153
+ }, String(a)), /* @__PURE__ */ b(T, {
158
154
  open: r !== null,
159
155
  onClose: () => i(null),
160
156
  onConfirm: async (e, t) => {
161
- r !== null && (await u.mutateAsync({
157
+ r !== null && (await s.mutateAsync({
162
158
  taskId: r,
163
159
  newAssigneeId: e,
164
160
  reason: t.trim() || void 0
165
- }), g("已改派"), s((e) => e + 1));
161
+ }), _("已改派"), o((e) => e + 1));
166
162
  }
167
163
  })] });
168
164
  }
169
165
  //#endregion
170
- export { w as TasksPanel };
166
+ export { E as TasksPanel };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { FlowIcon as t } from "../../components/icon.js";
4
4
  import { Flex as n, Tag as r, Text as i } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { Grid as e, useFormContext as t } from "@vef-framework-react/components";
3
3
  import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  import { z as i } from "@vef-framework-react/shared";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useCategoryApi as e } from "../../api/category-api.js";
3
3
  import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
4
4
  import { categoryColumns as n } from "./columns.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
2
  import { useCategoryApi as e } from "../../api/category-api.js";
3
3
  import { PrincipalSelect as t } from "../../components/principal/index.js";
4
4
  import { buildCategoryTreeOptions as n } from "../category-page/form.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
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,41 +1,23 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
2
- import { Alert as e, Stack as t, globalCssVars as n } from "@vef-framework-react/components";
3
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
4
- import { ApprovalFlowEditor as a } from "@vef-framework-react/approval-flow-editor";
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
+ import { globalCssVars as e } from "@vef-framework-react/components";
3
+ import { jsx as t } from "@emotion/react/jsx-runtime";
4
+ import { ApprovalFlowEditor as n } from "@vef-framework-react/approval-flow-editor";
5
5
  //#region src/pages/flow-page/designer/flow-step.tsx
6
- function o({ value: o, plugins: s, errors: c, onChange: l }) {
7
- return /* @__PURE__ */ i(t, {
8
- gap: 8,
6
+ function r({ value: r, plugins: i, onChange: a }) {
7
+ return /* @__PURE__ */ t("div", {
9
8
  style: {
10
9
  height: "100%",
11
- minHeight: 0
10
+ minHeight: 0,
11
+ border: `1px solid ${e.colorBorderSecondary}`,
12
+ borderRadius: 8,
13
+ overflow: "hidden"
12
14
  },
13
- children: [c.length > 0 && /* @__PURE__ */ r(e, {
14
- showIcon: !0,
15
- title: `流程校验未通过(${c.length} 项)`,
16
- type: "error",
17
- description: /* @__PURE__ */ r("ul", {
18
- style: {
19
- margin: 0,
20
- paddingInlineStart: 18
21
- },
22
- children: c.map((e, t) => /* @__PURE__ */ r("li", { children: e.message }, t))
23
- })
24
- }), /* @__PURE__ */ r("div", {
25
- style: {
26
- flex: 1,
27
- minHeight: 0,
28
- border: `1px solid ${n.colorBorderSecondary}`,
29
- borderRadius: 8,
30
- overflow: "hidden"
31
- },
32
- children: /* @__PURE__ */ r(a, {
33
- plugins: s,
34
- value: o,
35
- onChange: l
36
- })
37
- })]
15
+ children: /* @__PURE__ */ t(n, {
16
+ plugins: i,
17
+ value: r,
18
+ onChange: a
19
+ })
38
20
  });
39
21
  }
40
22
  //#endregion
41
- export { o as FlowStep };
23
+ export { r as FlowStep };
@@ -1,87 +1,76 @@
1
- /*! @vef-framework-react/approval v2.24.0 made by Venus | 2026-09-28T10:02:07.034Z */
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
- import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
4
- import { FormEditor as c } from "@vef-framework-react/form-editor";
1
+ /*! @vef-framework-react/approval v2.25.0 made by Venus | 2026-10-13T08:59:38.583Z */
2
+ import { useApprovalPlugins as e } from "../../../plugins/index.js";
3
+ import { toFormContextSources as t } from "../../../plugins/form-context.js";
4
+ import { useMemo as n } from "react";
5
+ import { Flex as r, Segmented as i, Stack as a, Text as o, globalCssVars as s } from "@vef-framework-react/components";
6
+ import { validateApprovalProjection as c } from "@vef-framework-react/approval-form-bridge";
7
+ import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
8
+ import { FormEditor as d } from "@vef-framework-react/form-editor";
5
9
  //#region src/pages/flow-page/designer/form-step.tsx
6
- var l = [{
10
+ var f = [{
7
11
  label: "JSON 存储",
8
12
  value: "json"
9
13
  }, {
10
14
  label: "独立表存储",
11
15
  value: "table"
12
16
  }];
13
- function u(e) {
17
+ function p(e) {
14
18
  return e === "json" || e === "table";
15
19
  }
16
- var d = {
20
+ var m = {
17
21
  json: "表单数据以 JSONB 存入实例表,字段可灵活增减,查询能力有限。",
18
22
  table: "表单数据投影到按版本生成的独立表(明细表各自成表),适合复杂查询与数据分析。"
19
23
  };
20
- function f({ storageMode: f, initialSchema: p, issues: m, registries: h, onStorageModeChange: g, onSchemaChange: _ }) {
21
- let v = m.filter((e) => e.severity === "error"), y = m.filter((e) => e.severity !== "error");
22
- return /* @__PURE__ */ s(r, {
24
+ function h({ storageMode: h, initialSchema: g, registries: _, onStorageModeChange: v, onSchemaChange: y }) {
25
+ let { dataSourceApis: b, dataSourceResolver: x, evaluators: S, formGlobals: C } = e(), w = n(() => t(C), [C]);
26
+ return /* @__PURE__ */ u(a, {
23
27
  gap: 8,
24
28
  style: {
25
29
  height: "100%",
26
30
  minHeight: 0
27
31
  },
28
- children: [
29
- /* @__PURE__ */ s(t, {
30
- align: "center",
31
- gap: "middle",
32
- wrap: "wrap",
33
- children: [
34
- /* @__PURE__ */ o(i, {
35
- type: "secondary",
36
- children: "存储模式"
37
- }),
38
- /* @__PURE__ */ o(n, {
39
- options: l,
40
- value: f,
41
- onChange: (e) => {
42
- u(e) && g(e);
43
- }
44
- }),
45
- /* @__PURE__ */ o(i, {
46
- style: { fontSize: a.fontSizeSm },
47
- type: "secondary",
48
- children: d[f]
49
- })
50
- ]
51
- }),
52
- v.length > 0 && /* @__PURE__ */ o(e, {
53
- showIcon: !0,
54
- title: `表单校验未通过(${v.length} 项)`,
55
- type: "error",
56
- description: /* @__PURE__ */ o("ul", {
57
- style: {
58
- margin: 0,
59
- paddingInlineStart: 18
60
- },
61
- children: v.map((e, t) => /* @__PURE__ */ o("li", { children: e.message }, t))
62
- })
63
- }),
64
- v.length === 0 && y.length > 0 && /* @__PURE__ */ o(e, {
65
- showIcon: !0,
66
- title: y.map((e) => e.message).join(";"),
67
- type: "warning"
68
- }),
69
- /* @__PURE__ */ o("div", {
70
- style: {
71
- flex: 1,
72
- minHeight: 0,
73
- border: `1px solid ${a.colorBorderSecondary}`,
74
- borderRadius: 8,
75
- overflow: "hidden"
76
- },
77
- children: /* @__PURE__ */ o(c, {
78
- initialSchema: p,
79
- registries: h,
80
- onSchemaChange: _
32
+ children: [/* @__PURE__ */ u(r, {
33
+ align: "center",
34
+ gap: "middle",
35
+ wrap: "wrap",
36
+ children: [
37
+ /* @__PURE__ */ l(o, {
38
+ type: "secondary",
39
+ children: "存储模式"
40
+ }),
41
+ /* @__PURE__ */ l(i, {
42
+ options: f,
43
+ value: h,
44
+ onChange: (e) => {
45
+ p(e) && v(e);
46
+ }
47
+ }),
48
+ /* @__PURE__ */ l(o, {
49
+ style: { fontSize: s.fontSizeSm },
50
+ type: "secondary",
51
+ children: m[h]
81
52
  })
53
+ ]
54
+ }), /* @__PURE__ */ l("div", {
55
+ style: {
56
+ flex: 1,
57
+ minHeight: 0,
58
+ border: `1px solid ${s.colorBorderSecondary}`,
59
+ borderRadius: 8,
60
+ overflow: "hidden"
61
+ },
62
+ children: /* @__PURE__ */ l(d, {
63
+ contextSources: w,
64
+ dataSourceApis: b,
65
+ dataSourceResolver: x,
66
+ evaluators: S,
67
+ initialSchema: g,
68
+ registries: _,
69
+ validate: c,
70
+ onSchemaChange: y
82
71
  })
83
- ]
72
+ })]
84
73
  });
85
74
  }
86
75
  //#endregion
87
- export { f as FormStep };
76
+ export { h as FormStep };