@vef-framework-react/approval 2.23.0 → 2.24.1

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 (65) 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/pages/admin-page/tasks.cjs +1 -1
  4. package/dist/es/api/admin-api.js +1 -1
  5. package/dist/es/api/category-api.js +1 -1
  6. package/dist/es/api/delegation-api.js +1 -1
  7. package/dist/es/api/flow-api.js +1 -1
  8. package/dist/es/api/index.js +1 -1
  9. package/dist/es/api/instance-api.js +1 -1
  10. package/dist/es/api/my-api.js +1 -1
  11. package/dist/es/api/query.js +1 -1
  12. package/dist/es/components/action-dialog/index.js +60 -0
  13. package/dist/es/components/detail/action-modals.js +264 -233
  14. package/dist/es/components/detail/admin.js +1 -1
  15. package/dist/es/components/detail/drawer.js +1 -1
  16. package/dist/es/components/detail/index.js +1 -1
  17. package/dist/es/components/flow-graph/index.js +1 -1
  18. package/dist/es/components/flow-graph/node.js +1 -1
  19. package/dist/es/components/flow-graph/people-overlay.js +1 -1
  20. package/dist/es/components/flow-graph/people.js +1 -1
  21. package/dist/es/components/form-panel/index.js +1 -1
  22. package/dist/es/components/format.js +1 -1
  23. package/dist/es/components/icon.js +1 -1
  24. package/dist/es/components/index.js +1 -1
  25. package/dist/es/components/principal/index.js +1 -1
  26. package/dist/es/components/status/colors.js +1 -1
  27. package/dist/es/components/status/index.js +1 -1
  28. package/dist/es/components/status/labels.js +1 -1
  29. package/dist/es/components/timeline/index.js +1 -1
  30. package/dist/es/components/user/index.js +1 -1
  31. package/dist/es/index.js +1 -1
  32. package/dist/es/pages/admin-page/index.js +1 -1
  33. package/dist/es/pages/admin-page/instances.js +1 -1
  34. package/dist/es/pages/admin-page/metrics.js +1 -1
  35. package/dist/es/pages/admin-page/projections.js +1 -1
  36. package/dist/es/pages/admin-page/tasks.js +66 -70
  37. package/dist/es/pages/category-page/columns.js +1 -1
  38. package/dist/es/pages/category-page/form.js +1 -1
  39. package/dist/es/pages/category-page/index.js +1 -1
  40. package/dist/es/pages/delegation-page/columns.js +1 -1
  41. package/dist/es/pages/delegation-page/form.js +1 -1
  42. package/dist/es/pages/delegation-page/index.js +1 -1
  43. package/dist/es/pages/flow-page/columns.js +1 -1
  44. package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
  45. package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
  46. package/dist/es/pages/flow-page/designer/form-step.js +1 -1
  47. package/dist/es/pages/flow-page/designer/index.js +1 -1
  48. package/dist/es/pages/flow-page/designer/review-step.js +1 -1
  49. package/dist/es/pages/flow-page/designer/types.js +1 -1
  50. package/dist/es/pages/flow-page/index.js +1 -1
  51. package/dist/es/pages/flow-page/search.js +1 -1
  52. package/dist/es/pages/flow-page/versions.js +1 -1
  53. package/dist/es/pages/index.js +1 -1
  54. package/dist/es/pages/initiate-page/index.js +1 -1
  55. package/dist/es/pages/initiate-page/start-drawer.js +1 -1
  56. package/dist/es/pages/my-instances-page/index.js +1 -1
  57. package/dist/es/pages/task-center-page/index.js +1 -1
  58. package/dist/es/pages/task-center-page/search.js +1 -1
  59. package/dist/es/permissions.js +1 -1
  60. package/dist/es/plugins/index.js +1 -1
  61. package/dist/es/types/enums.js +1 -1
  62. package/dist/es/types/index.js +1 -1
  63. package/dist/types/components/action-dialog/index.d.ts +44 -0
  64. package/dist/types/types/detail.d.ts +8 -0
  65. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
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";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { useMyApprovalApi as e } from "../../api/my-api.js";
3
3
  import { FlowIcon as t } from "../../components/icon.js";
4
4
  import { StartInstanceDrawer as n } from "./start-drawer.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { useInstanceApi as e } from "../../api/instance-api.js";
3
3
  import { useMyApprovalApi as t } from "../../api/my-api.js";
4
4
  import { InstanceFormPanel as n } from "../../components/form-panel/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { useInstanceApi as e } from "../../api/instance-api.js";
3
3
  import { useMyApprovalApi as t } from "../../api/my-api.js";
4
4
  import { formatTimestamp as n } from "../../components/format.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { useMyApprovalApi as e } from "../../api/my-api.js";
3
3
  import { formatTimestamp as t } from "../../components/format.js";
4
4
  import { TaskStatusTag as n } from "../../components/status/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { INSTANCE_STATUS_OPTIONS as e, TASK_STATUS_LABELS as t } from "../../components/status/labels.js";
3
3
  import { Col as n, DatePicker as r, Labeled as i, Row as a, Select as o, useFormContext as s } from "@vef-framework-react/components";
4
4
  import { Fragment as c, jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  //#region src/permissions.ts
3
3
  var e = {
4
4
  category: {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { createContext as e, use as t, useMemo as n, useState as r } from "react";
3
3
  import { createApprovalRegistries as i } from "@vef-framework-react/approval-form-bridge";
4
4
  import { jsx as a } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  //#region src/types/enums.ts
3
3
  var e = [
4
4
  "approved",
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/approval v2.23.0 made by Venus | 2026-09-22T09:10:28.204Z */
1
+ /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
2
  import { BUILTIN_INITIATOR_KINDS as e, FINAL_INSTANCE_STATUSES as t, isFinalInstanceStatus as n } from "./enums.js";
3
3
  export { e as BUILTIN_INITIATOR_KINDS, t as FINAL_INSTANCE_STATUSES, n as isFinalInstanceStatus };
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ActionDialogProps {
3
+ open: boolean;
4
+ title: string;
5
+ onClose: () => void;
6
+ /**
7
+ * The action form — its draft and its {@link ActionFooter}.
8
+ */
9
+ children: ReactNode;
10
+ }
11
+ /**
12
+ * Hosts a confirm-style action form. The form owns its draft and footer, so
13
+ * typing re-renders the form alone and never the Modal: a Modal re-rendered on
14
+ * every keystroke re-runs its portal's dependency-less container effect
15
+ * (@rc-component/portal), whose no-op state update React cannot always skip,
16
+ * and fast typing then stacks those updates past React's nested-update limit.
17
+ * destroyOnHidden remounts the form on every opening — which is what resets
18
+ * its draft — and keeps a closed dialog's portal unmounted altogether.
19
+ */
20
+ export declare function ActionDialog({ open, title, onClose, children }: ActionDialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
21
+ export interface ActionFooterProps {
22
+ okText: string;
23
+ /**
24
+ * Renders the ok button in danger style.
25
+ */
26
+ danger?: boolean;
27
+ disabled?: boolean;
28
+ submitting: boolean;
29
+ onCancel: () => void;
30
+ onOk: () => void;
31
+ }
32
+ /**
33
+ * The cancel / confirm pair an {@link ActionDialog} form renders below itself.
34
+ */
35
+ export declare function ActionFooter({ okText, danger, disabled, submitting, onCancel, onOk }: ActionFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
36
+ /**
37
+ * Drives one confirm-style dialog: local `submitting` while the async confirm
38
+ * runs, closing only on success (errors are surfaced by the mutation layer
39
+ * and keep the dialog open for retry).
40
+ */
41
+ export declare function useConfirm(onClose: () => void): {
42
+ submitting: boolean;
43
+ run: (action: () => Promise<void>) => Promise<void>;
44
+ };
@@ -72,6 +72,10 @@ export interface TimelineEntry {
72
72
  * Percentage in `(0, 100]`, serialized as a decimal string.
73
73
  */
74
74
  passRatio?: string;
75
+ /**
76
+ * Approvals the `fixed_count` rule requires; present only under that rule.
77
+ */
78
+ passCount?: number;
75
79
  participants?: NodeParticipant[];
76
80
  ccRecipients?: CCRecipient[];
77
81
  activities?: Activity[];
@@ -108,6 +112,10 @@ export interface FlowGraphNodeData {
108
112
  * Percentage in `(0, 100]`, serialized as a decimal string.
109
113
  */
110
114
  passRatio?: string;
115
+ /**
116
+ * Approvals the `fixed_count` rule requires; present only under that rule.
117
+ */
118
+ passCount?: number;
111
119
  participants?: NodeParticipant[];
112
120
  ccRecipients?: CCRecipient[];
113
121
  activities?: Activity[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vef-framework-react/approval",
3
- "version": "2.23.0",
3
+ "version": "2.24.1",
4
4
  "private": false,
5
5
  "description": "Approval engine pages and runtime components for VEF framework",
6
6
  "keywords": [
@@ -44,12 +44,12 @@
44
44
  "@xyflow/react": "^12.11.1",
45
45
  "dayjs": "^1.11.0",
46
46
  "lucide-react": "^1.23.0",
47
- "@vef-framework-react/approval-flow-editor": "2.23.0",
48
- "@vef-framework-react/components": "2.23.0",
49
- "@vef-framework-react/core": "2.23.0",
50
- "@vef-framework-react/approval-form-bridge": "2.23.0",
51
- "@vef-framework-react/shared": "2.23.0",
52
- "@vef-framework-react/form-editor": "2.23.0"
47
+ "@vef-framework-react/components": "2.24.1",
48
+ "@vef-framework-react/approval-flow-editor": "2.24.1",
49
+ "@vef-framework-react/approval-form-bridge": "2.24.1",
50
+ "@vef-framework-react/form-editor": "2.24.1",
51
+ "@vef-framework-react/shared": "2.24.1",
52
+ "@vef-framework-react/core": "2.24.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "react": "^19.2.7"