@vef-framework-react/approval 2.30.0 → 2.31.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.
- package/dist/cjs/api/admin-api.cjs +1 -1
- package/dist/cjs/api/flow-api.cjs +1 -1
- package/dist/cjs/api/instance-api.cjs +1 -1
- package/dist/cjs/api/my-api.cjs +1 -1
- package/dist/cjs/components/action-dialog/index.cjs +1 -1
- package/dist/cjs/components/action-dialog/user-selection.cjs +1 -0
- package/dist/cjs/components/annotations/composers.cjs +1 -0
- package/dist/cjs/components/annotations/field-anchor.cjs +1 -0
- package/dist/cjs/components/annotations/index.cjs +1 -0
- package/dist/cjs/components/annotations/use-annotations.cjs +1 -0
- package/dist/cjs/components/business-form.cjs +1 -0
- package/dist/cjs/components/capped-modal.cjs +1 -0
- package/dist/cjs/components/detail/action-modals.cjs +1 -1
- package/dist/cjs/components/detail/admin.cjs +1 -1
- package/dist/cjs/components/detail/index.cjs +1 -1
- package/dist/cjs/components/flow-graph/node.cjs +1 -1
- package/dist/cjs/components/flow-graph/people-overlay.cjs +1 -1
- package/dist/cjs/components/form-panel/index.cjs +1 -1
- package/dist/cjs/components/format.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/instance-list-title.cjs +1 -0
- package/dist/cjs/components/principal/index.cjs +1 -1
- package/dist/cjs/components/status/colors.cjs +1 -1
- package/dist/cjs/components/status/index.cjs +1 -1
- package/dist/cjs/components/status/labels.cjs +1 -1
- package/dist/cjs/components/timeline/index.cjs +1 -1
- package/dist/cjs/components/user/index.cjs +1 -1
- package/dist/cjs/components/void/direct-dialog.cjs +1 -0
- package/dist/cjs/components/void/form.cjs +1 -0
- package/dist/cjs/components/void/request-renderer.cjs +1 -0
- package/dist/cjs/components/void/summary.cjs +1 -0
- package/dist/cjs/components/void/use-refresh.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/admin-page/apply-handovers.cjs +1 -0
- package/dist/cjs/pages/admin-page/index.cjs +1 -1
- package/dist/cjs/pages/admin-page/instances.cjs +1 -1
- package/dist/cjs/pages/admin-page/metrics.cjs +1 -1
- package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
- package/dist/cjs/pages/category-page/index.cjs +1 -1
- package/dist/cjs/pages/delegation-page/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/columns.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/field-catalog.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/review-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/types.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/void-policy.cjs +1 -0
- package/dist/cjs/pages/flow-page/index.cjs +1 -1
- package/dist/cjs/pages/index.cjs +1 -1
- package/dist/cjs/pages/initiate-page/index.cjs +1 -1
- package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -1
- package/dist/cjs/pages/my-instances-page/index.cjs +1 -1
- package/dist/cjs/pages/task-center-page/index.cjs +1 -1
- package/dist/cjs/permissions.cjs +1 -1
- package/dist/cjs/plugins/index.cjs +1 -1
- package/dist/cjs/types/annotation.cjs +1 -0
- package/dist/cjs/types/detail.cjs +1 -0
- package/dist/cjs/types/enums.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/cjs/types/void.cjs +1 -0
- package/dist/es/api/admin-api.js +5 -2
- package/dist/es/api/category-api.js +1 -1
- package/dist/es/api/delegation-api.js +1 -1
- package/dist/es/api/flow-api.js +19 -15
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/instance-api.js +3 -1
- package/dist/es/api/my-api.js +2 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/components/action-dialog/index.js +64 -41
- package/dist/es/components/action-dialog/user-selection.js +48 -0
- package/dist/es/components/annotations/composers.js +231 -0
- package/dist/es/components/annotations/field-anchor.js +18 -0
- package/dist/es/components/annotations/index.js +271 -0
- package/dist/es/components/annotations/use-annotations.js +77 -0
- package/dist/es/components/business-form.js +36 -0
- package/dist/es/components/capped-modal.js +27 -0
- package/dist/es/components/detail/action-modals.js +120 -132
- package/dist/es/components/detail/admin.js +109 -74
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +298 -233
- package/dist/es/components/flow-graph/index.js +1 -1
- package/dist/es/components/flow-graph/node.js +26 -26
- package/dist/es/components/flow-graph/people-overlay.js +104 -100
- package/dist/es/components/flow-graph/people.js +1 -1
- package/dist/es/components/form-panel/index.js +10 -9
- package/dist/es/components/format.js +7 -4
- package/dist/es/components/icon.js +1 -1
- package/dist/es/components/index.js +11 -8
- package/dist/es/components/instance-list-title.js +31 -0
- package/dist/es/components/principal/index.js +4 -2
- package/dist/es/components/status/colors.js +3 -2
- package/dist/es/components/status/index.js +14 -14
- package/dist/es/components/status/labels.js +7 -3
- package/dist/es/components/timeline/index.js +79 -69
- package/dist/es/components/user/index.js +32 -25
- package/dist/es/components/void/direct-dialog.js +62 -0
- package/dist/es/components/void/form.js +100 -0
- package/dist/es/components/void/request-renderer.js +91 -0
- package/dist/es/components/void/summary.js +142 -0
- package/dist/es/components/void/use-refresh.js +22 -0
- package/dist/es/index.js +33 -27
- package/dist/es/pages/admin-page/apply-handovers.js +185 -0
- package/dist/es/pages/admin-page/index.js +50 -43
- package/dist/es/pages/admin-page/instances.js +50 -52
- package/dist/es/pages/admin-page/metrics.js +34 -33
- package/dist/es/pages/admin-page/projections.js +1 -1
- package/dist/es/pages/admin-page/tasks.js +59 -57
- package/dist/es/pages/category-page/columns.js +1 -1
- package/dist/es/pages/category-page/form.js +1 -1
- package/dist/es/pages/category-page/index.js +21 -21
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +1 -1
- package/dist/es/pages/delegation-page/index.js +19 -19
- package/dist/es/pages/flow-page/columns.js +6 -6
- package/dist/es/pages/flow-page/designer/basic-step.js +202 -146
- package/dist/es/pages/flow-page/designer/field-catalog.js +47 -0
- package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
- package/dist/es/pages/flow-page/designer/form-step.js +14 -14
- package/dist/es/pages/flow-page/designer/index.js +248 -202
- package/dist/es/pages/flow-page/designer/review-step.js +38 -60
- package/dist/es/pages/flow-page/designer/types.js +13 -5
- package/dist/es/pages/flow-page/designer/void-policy.js +135 -0
- package/dist/es/pages/flow-page/index.js +18 -18
- package/dist/es/pages/flow-page/search.js +1 -1
- package/dist/es/pages/flow-page/versions.js +1 -1
- package/dist/es/pages/index.js +9 -9
- package/dist/es/pages/initiate-page/index.js +133 -86
- package/dist/es/pages/initiate-page/start-drawer.js +153 -64
- package/dist/es/pages/my-instances-page/index.js +57 -77
- package/dist/es/pages/task-center-page/index.js +73 -68
- package/dist/es/pages/task-center-page/search.js +1 -1
- package/dist/es/permissions.js +6 -3
- package/dist/es/plugins/form-context.js +1 -1
- package/dist/es/plugins/index.js +32 -21
- package/dist/es/types/annotation.js +18 -0
- package/dist/es/types/detail.js +7 -0
- package/dist/es/types/enums.js +3 -2
- package/dist/es/types/index.js +6 -3
- package/dist/es/types/void.js +5 -0
- package/dist/types/api/admin-api.d.ts +4 -1
- package/dist/types/api/flow-api.d.ts +4 -2
- package/dist/types/api/instance-api.d.ts +5 -1
- package/dist/types/api/my-api.d.ts +2 -1
- package/dist/types/components/action-dialog/index.d.ts +8 -2
- package/dist/types/components/action-dialog/user-selection.d.ts +18 -0
- package/dist/types/components/annotations/composers.d.ts +14 -0
- package/dist/types/components/annotations/field-anchor.d.ts +3 -0
- package/dist/types/components/annotations/index.d.ts +22 -0
- package/dist/types/components/annotations/use-annotations.d.ts +24 -0
- package/dist/types/components/business-form.d.ts +14 -0
- package/dist/types/components/capped-modal.d.ts +2 -0
- package/dist/types/components/detail/admin.d.ts +2 -1
- package/dist/types/components/form-panel/index.d.ts +3 -2
- package/dist/types/components/format.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/instance-list-title.d.ts +5 -0
- package/dist/types/components/timeline/index.d.ts +3 -1
- package/dist/types/components/user/index.d.ts +4 -0
- package/dist/types/components/void/direct-dialog.d.ts +8 -0
- package/dist/types/components/void/form.d.ts +27 -0
- package/dist/types/components/void/request-renderer.d.ts +3 -0
- package/dist/types/components/void/summary.d.ts +16 -0
- package/dist/types/components/void/use-refresh.d.ts +4 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/pages/admin-page/apply-handovers.d.ts +3 -0
- package/dist/types/pages/admin-page/index.d.ts +2 -0
- package/dist/types/pages/admin-page/instances.d.ts +2 -1
- package/dist/types/pages/flow-page/designer/basic-step.d.ts +7 -2
- package/dist/types/pages/flow-page/designer/field-catalog.d.ts +5 -0
- package/dist/types/pages/flow-page/designer/review-step.d.ts +2 -1
- package/dist/types/pages/flow-page/designer/types.d.ts +13 -2
- package/dist/types/pages/flow-page/designer/void-policy.d.ts +14 -0
- package/dist/types/pages/initiate-page/start-drawer.d.ts +7 -1
- package/dist/types/permissions.d.ts +8 -0
- package/dist/types/plugins/index.d.ts +28 -3
- package/dist/types/types/admin.d.ts +27 -0
- package/dist/types/types/annotation.d.ts +60 -0
- package/dist/types/types/detail.d.ts +8 -1
- package/dist/types/types/enums.d.ts +5 -10
- package/dist/types/types/flow.d.ts +25 -5
- package/dist/types/types/index.d.ts +3 -1
- package/dist/types/types/instance.d.ts +1 -2
- package/dist/types/types/my.d.ts +16 -0
- package/dist/types/types/void.d.ts +58 -0
- package/package.json +8 -7
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { useApprovalPlugins as e } from "../../plugins/index.js";
|
|
3
|
+
import { useAnnotations as t } from "./use-annotations.js";
|
|
4
|
+
import { useMemo as n, useState as r } from "react";
|
|
5
|
+
import { Alert as i, Button as a, Flex as o, Input as s, Labeled as c, Radio as l, Select as u, Stack as d } from "@vef-framework-react/components";
|
|
6
|
+
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { projectFormSchema as h } from "@vef-framework-react/approval-form-bridge";
|
|
8
|
+
//#region src/components/annotations/composers.tsx
|
|
9
|
+
var g = [
|
|
10
|
+
{
|
|
11
|
+
label: "所有参与人",
|
|
12
|
+
value: "participants"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "仅申请人",
|
|
16
|
+
value: "applicant"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "指定节点",
|
|
20
|
+
value: "nodes"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "指定人员",
|
|
24
|
+
value: "users"
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
function _({ detail: t, value: r, onChange: i }) {
|
|
28
|
+
let { pickers: a } = e(), o = a?.user, s = n(() => {
|
|
29
|
+
let e = /* @__PURE__ */ new Map([[t.instance.applicant.id, t.instance.applicant.name]]);
|
|
30
|
+
for (let { data: n } of t.flowGraph.nodes) for (let t of [...(n.ccRecipients ?? []).map((e) => e.user), ...(n.participants ?? []).flatMap((e) => e.delegator ? [e.user, e.delegator] : [e.user])]) e.set(t.id, t.name);
|
|
31
|
+
return [...e].map(([e, t]) => ({
|
|
32
|
+
label: t,
|
|
33
|
+
value: e
|
|
34
|
+
}));
|
|
35
|
+
}, [t]);
|
|
36
|
+
return /* @__PURE__ */ m(d, {
|
|
37
|
+
gap: 8,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ p(c, {
|
|
40
|
+
label: "可见范围",
|
|
41
|
+
children: /* @__PURE__ */ p(u, {
|
|
42
|
+
"aria-label": "可见范围",
|
|
43
|
+
options: g,
|
|
44
|
+
value: r.scope,
|
|
45
|
+
onChange: (e) => i(e === "users" ? {
|
|
46
|
+
scope: e,
|
|
47
|
+
userIds: []
|
|
48
|
+
} : e === "nodes" ? {
|
|
49
|
+
scope: e,
|
|
50
|
+
nodeIds: []
|
|
51
|
+
} : { scope: e })
|
|
52
|
+
})
|
|
53
|
+
}),
|
|
54
|
+
r.scope === "nodes" && /* @__PURE__ */ p(u, {
|
|
55
|
+
"aria-label": "可见节点",
|
|
56
|
+
maxTagCount: 1,
|
|
57
|
+
mode: "multiple",
|
|
58
|
+
options: t.flowGraph.nodes.filter((e) => e.kind === "approval" || e.kind === "handle").map((e) => ({
|
|
59
|
+
label: e.data.name,
|
|
60
|
+
value: e.nodeId
|
|
61
|
+
})),
|
|
62
|
+
placeholder: "选择流程节点",
|
|
63
|
+
showSearch: { optionFilterProp: "label" },
|
|
64
|
+
value: r.nodeIds,
|
|
65
|
+
onChange: (e) => i({
|
|
66
|
+
scope: "nodes",
|
|
67
|
+
nodeIds: e
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
r.scope === "users" && (o ? /* @__PURE__ */ p(o, {
|
|
71
|
+
value: r.userIds,
|
|
72
|
+
onChange: (e) => i({
|
|
73
|
+
scope: "users",
|
|
74
|
+
userIds: e
|
|
75
|
+
})
|
|
76
|
+
}) : /* @__PURE__ */ p(u, {
|
|
77
|
+
"aria-label": "可见人员",
|
|
78
|
+
maxTagCount: 1,
|
|
79
|
+
mode: "multiple",
|
|
80
|
+
options: s,
|
|
81
|
+
placeholder: "搜索流程参与人",
|
|
82
|
+
showSearch: { optionFilterProp: "label" },
|
|
83
|
+
value: r.userIds,
|
|
84
|
+
onChange: (e) => i({
|
|
85
|
+
scope: "users",
|
|
86
|
+
userIds: e
|
|
87
|
+
})
|
|
88
|
+
}))
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function v(e, n) {
|
|
93
|
+
let i = t(e), [a, o] = r("");
|
|
94
|
+
async function s(e) {
|
|
95
|
+
o("");
|
|
96
|
+
try {
|
|
97
|
+
await e(), n?.();
|
|
98
|
+
} catch (e) {
|
|
99
|
+
o(e instanceof Error ? e.message : "未能保存更改,请重试");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
...i,
|
|
104
|
+
error: a,
|
|
105
|
+
run: s
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function y({ draft: e, disabled: t, actions: n, save: r, onCancel: s }) {
|
|
109
|
+
return /* @__PURE__ */ m(f, { children: [n.error && /* @__PURE__ */ p(i, {
|
|
110
|
+
showIcon: !0,
|
|
111
|
+
title: n.error,
|
|
112
|
+
type: "error"
|
|
113
|
+
}), /* @__PURE__ */ m(o, {
|
|
114
|
+
gap: "small",
|
|
115
|
+
wrap: "wrap",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ p(a, {
|
|
118
|
+
disabled: t,
|
|
119
|
+
loading: n.pending,
|
|
120
|
+
type: "primary",
|
|
121
|
+
onClick: () => void n.run(r),
|
|
122
|
+
children: "保存草稿"
|
|
123
|
+
}),
|
|
124
|
+
e && /* @__PURE__ */ p(a, {
|
|
125
|
+
danger: !0,
|
|
126
|
+
disabled: n.pending,
|
|
127
|
+
onClick: () => void n.run(() => n.remove({ id: e.id })),
|
|
128
|
+
children: "删除草稿"
|
|
129
|
+
}),
|
|
130
|
+
s && /* @__PURE__ */ p(a, {
|
|
131
|
+
disabled: n.pending,
|
|
132
|
+
onClick: s,
|
|
133
|
+
children: "取消"
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
})] });
|
|
137
|
+
}
|
|
138
|
+
function b({ detail: e, anchor: t, draft: i, onDone: a, onCancel: o }) {
|
|
139
|
+
let l = v(e, a), [f, g] = r(i?.content ?? ""), [b, x] = r(i?.audience ?? { scope: "participants" }), [S, C] = r(), w = n(() => !e.instance.businessKind && e.formSchema ? h(e.formSchema).fields.filter((t) => !("fieldPermissions" in e) || e.fieldPermissions?.[t.key] !== "hidden") : [], [e]), { task: T } = l;
|
|
140
|
+
if (!T || i && (i.status !== "draft" || i.taskId !== T.taskId || i.parentId)) return null;
|
|
141
|
+
let E = b.scope === "nodes" && b.nodeIds.length === 0 || b.scope === "users" && b.userIds.length === 0;
|
|
142
|
+
return /* @__PURE__ */ m(d, {
|
|
143
|
+
gap: 12,
|
|
144
|
+
children: [
|
|
145
|
+
!i && t === void 0 && w.length > 0 && /* @__PURE__ */ p(c, {
|
|
146
|
+
label: "批注位置",
|
|
147
|
+
children: /* @__PURE__ */ p(u, {
|
|
148
|
+
allowClear: !0,
|
|
149
|
+
"aria-label": "批注位置",
|
|
150
|
+
options: w.map((e) => ({
|
|
151
|
+
label: e.label,
|
|
152
|
+
value: e.key
|
|
153
|
+
})),
|
|
154
|
+
placeholder: "整份表单",
|
|
155
|
+
value: S,
|
|
156
|
+
onChange: C
|
|
157
|
+
})
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ p(c, {
|
|
160
|
+
label: "批注内容",
|
|
161
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
162
|
+
"aria-label": "批注内容",
|
|
163
|
+
rows: 3,
|
|
164
|
+
value: f,
|
|
165
|
+
onChange: (e) => g(e.target.value)
|
|
166
|
+
})
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ p(_, {
|
|
169
|
+
detail: e,
|
|
170
|
+
value: b,
|
|
171
|
+
onChange: x
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ p(y, {
|
|
174
|
+
actions: l,
|
|
175
|
+
disabled: !f.trim() || [...f].length > 4e3 || E,
|
|
176
|
+
draft: i,
|
|
177
|
+
save: () => l.save({
|
|
178
|
+
id: i?.id,
|
|
179
|
+
taskId: T.taskId,
|
|
180
|
+
content: f,
|
|
181
|
+
audience: b,
|
|
182
|
+
anchor: i ? i.anchor : t ?? (S ? { field: S } : void 0)
|
|
183
|
+
}),
|
|
184
|
+
onCancel: o
|
|
185
|
+
})
|
|
186
|
+
]
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function x({ detail: e, parent: t, draft: n, onDone: i, onCancel: a }) {
|
|
190
|
+
let o = v(e, i), [u, f] = r(n?.content ?? ""), [h, g] = r(n?.resolution ?? "addressed");
|
|
191
|
+
return !o.canRespond || t.status !== "published" || t.parentId || n && (n.status !== "draft" || n.parentId !== t.id) ? null : /* @__PURE__ */ m(d, {
|
|
192
|
+
gap: 12,
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ p(l.Group, {
|
|
195
|
+
"aria-label": "处理结果",
|
|
196
|
+
options: [{
|
|
197
|
+
label: "已修改",
|
|
198
|
+
value: "addressed"
|
|
199
|
+
}, {
|
|
200
|
+
label: "不采纳",
|
|
201
|
+
value: "declined"
|
|
202
|
+
}],
|
|
203
|
+
value: h,
|
|
204
|
+
onChange: (e) => g(e.target.value)
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ p(c, {
|
|
207
|
+
label: h === "declined" ? "不采纳原因" : "修改说明(可选)",
|
|
208
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
209
|
+
"aria-label": "回应说明",
|
|
210
|
+
rows: 3,
|
|
211
|
+
value: u,
|
|
212
|
+
onChange: (e) => f(e.target.value)
|
|
213
|
+
})
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ p(y, {
|
|
216
|
+
actions: o,
|
|
217
|
+
disabled: !u.trim() && h === "declined" || [...u].length > 4e3,
|
|
218
|
+
draft: n,
|
|
219
|
+
save: () => o.save({
|
|
220
|
+
id: n?.id,
|
|
221
|
+
parentId: t.id,
|
|
222
|
+
resolution: h,
|
|
223
|
+
content: u
|
|
224
|
+
}),
|
|
225
|
+
onCancel: a
|
|
226
|
+
})
|
|
227
|
+
]
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
export { b as AnnotationComposer, x as AnnotationResponseComposer };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { projectFormSchema as e } from "@vef-framework-react/approval-form-bridge";
|
|
3
|
+
//#region src/components/annotations/field-anchor.ts
|
|
4
|
+
var t = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function n(n, r) {
|
|
6
|
+
let i = t.get(n);
|
|
7
|
+
return i || (i = new Map(e(n).fields.map((e) => [e.key, e])), t.set(n, i)), i.get(r);
|
|
8
|
+
}
|
|
9
|
+
function r(e) {
|
|
10
|
+
return typeof e == "object" && !!e && "field" in e && typeof e.field == "string" && (!("row" in e) || e.row === void 0 || typeof e.row == "number" && Number.isSafeInteger(e.row) && e.row >= 0) && (!("column" in e) || e.column === void 0 || typeof e.column == "string");
|
|
11
|
+
}
|
|
12
|
+
function i(e, t, i) {
|
|
13
|
+
if (e.instance.businessKind || !r(t)) return;
|
|
14
|
+
let a = e.formSchema && n(e.formSchema, t.field), o = [];
|
|
15
|
+
return i?.field !== t.field && o.push(a?.label || t.field), t.row !== void 0 && i?.row !== t.row && o.push(`第 ${t.row + 1} 行`), t.column && i?.column !== t.column && o.push(a?.columns?.find((e) => e.key === t.column)?.label || t.column), o.join(" · ");
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as anchorLabel, r as isFieldAnchor };
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { CappedModal as e } from "../capped-modal.js";
|
|
3
|
+
import { InstanceTimeline as t } from "../timeline/index.js";
|
|
4
|
+
import { anchorLabel as n, isFieldAnchor as r } from "./field-anchor.js";
|
|
5
|
+
import { matchesField as i, matchesFieldSlot as a, useAnnotations as o } from "./use-annotations.js";
|
|
6
|
+
import { AnnotationComposer as s, AnnotationResponseComposer as c } from "./composers.js";
|
|
7
|
+
import { useMemo as l, useState as u } from "react";
|
|
8
|
+
import { Alert as d, Button as f, Empty as p, Flex as m, Stack as h, Text as g, globalCssVars as _ } from "@vef-framework-react/components";
|
|
9
|
+
import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
10
|
+
//#region src/components/annotations/index.tsx
|
|
11
|
+
var b = {
|
|
12
|
+
draft: "草稿",
|
|
13
|
+
published: "已发布",
|
|
14
|
+
discarded: "已作废(待办已由他人处理)"
|
|
15
|
+
}, x = {
|
|
16
|
+
participants: "所有参与人可见",
|
|
17
|
+
applicant: "仅申请人可见",
|
|
18
|
+
nodes: "指定节点可见",
|
|
19
|
+
users: "指定人员可见"
|
|
20
|
+
};
|
|
21
|
+
function S({ value: e, detail: t, scope: r }) {
|
|
22
|
+
let i = n(t, e.anchor, r), { audience: a } = e, o = a.scope === "nodes" ? t.flowGraph.nodes.filter((e) => a.nodeIds.includes(e.nodeId)).map((e) => e.data.name).filter(Boolean) : [];
|
|
23
|
+
return /* @__PURE__ */ y(h, {
|
|
24
|
+
gap: 4,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ y(m, {
|
|
27
|
+
align: "baseline",
|
|
28
|
+
gap: "small",
|
|
29
|
+
wrap: "wrap",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ v(g, {
|
|
32
|
+
strong: !0,
|
|
33
|
+
children: e.author.name
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ v(g, {
|
|
36
|
+
type: "secondary",
|
|
37
|
+
children: e.status === "discarded" && e.parentId ? "已作废(审批单已结束)" : b[e.status]
|
|
38
|
+
}),
|
|
39
|
+
e.resolution && /* @__PURE__ */ v(g, { children: e.resolution === "addressed" ? "已修改" : "不采纳" }),
|
|
40
|
+
/* @__PURE__ */ v(g, {
|
|
41
|
+
type: "secondary",
|
|
42
|
+
children: o.length > 0 ? `指定节点可见(${o.join("、")})` : x[a.scope]
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
}),
|
|
46
|
+
i && /* @__PURE__ */ v(g, {
|
|
47
|
+
type: "secondary",
|
|
48
|
+
children: i
|
|
49
|
+
}),
|
|
50
|
+
e.content && /* @__PURE__ */ v(g, {
|
|
51
|
+
style: {
|
|
52
|
+
whiteSpace: "pre-wrap",
|
|
53
|
+
overflowWrap: "anywhere"
|
|
54
|
+
},
|
|
55
|
+
children: e.content
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function C({ detail: e, thread: t, actions: n, scope: r }) {
|
|
61
|
+
let { annotation: i, responses: a } = t, [o, l] = u(!1), [p, g] = u(""), b = a.find((e) => e.status === "draft"), x = n.canRespond && i.status === "published" && !i.parentId, C = n.task && i.taskId === n.task.taskId && i.status === "draft" && !i.parentId;
|
|
62
|
+
async function w() {
|
|
63
|
+
g("");
|
|
64
|
+
try {
|
|
65
|
+
await n.remove({ id: i.id });
|
|
66
|
+
} catch (e) {
|
|
67
|
+
g(e instanceof Error ? e.message : "未能删除草稿,请重试");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return /* @__PURE__ */ y(h, {
|
|
71
|
+
gap: 8,
|
|
72
|
+
style: {
|
|
73
|
+
borderInlineStart: `2px solid ${_.colorBorderSecondary}`,
|
|
74
|
+
paddingInlineStart: 12
|
|
75
|
+
},
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ v(S, {
|
|
78
|
+
detail: e,
|
|
79
|
+
scope: r,
|
|
80
|
+
value: i
|
|
81
|
+
}),
|
|
82
|
+
a.map((t) => /* @__PURE__ */ v("div", {
|
|
83
|
+
style: { paddingInlineStart: 12 },
|
|
84
|
+
children: /* @__PURE__ */ v(S, {
|
|
85
|
+
detail: e,
|
|
86
|
+
scope: r,
|
|
87
|
+
value: t
|
|
88
|
+
})
|
|
89
|
+
}, t.id)),
|
|
90
|
+
o ? C ? /* @__PURE__ */ v(s, {
|
|
91
|
+
detail: e,
|
|
92
|
+
draft: i,
|
|
93
|
+
onCancel: () => l(!1),
|
|
94
|
+
onDone: () => l(!1)
|
|
95
|
+
}) : /* @__PURE__ */ v(c, {
|
|
96
|
+
detail: e,
|
|
97
|
+
draft: b,
|
|
98
|
+
parent: i,
|
|
99
|
+
onCancel: () => l(!1),
|
|
100
|
+
onDone: () => l(!1)
|
|
101
|
+
}) : (C || x) && /* @__PURE__ */ y(m, {
|
|
102
|
+
gap: "small",
|
|
103
|
+
children: [/* @__PURE__ */ v(f, {
|
|
104
|
+
disabled: n.pending,
|
|
105
|
+
size: "small",
|
|
106
|
+
type: "link",
|
|
107
|
+
onClick: () => l(!0),
|
|
108
|
+
children: C ? "编辑草稿" : b ? "编辑回应" : "回应批注"
|
|
109
|
+
}), C && /* @__PURE__ */ v(f, {
|
|
110
|
+
danger: !0,
|
|
111
|
+
disabled: n.pending,
|
|
112
|
+
size: "small",
|
|
113
|
+
type: "link",
|
|
114
|
+
onClick: () => void w(),
|
|
115
|
+
children: "删除草稿"
|
|
116
|
+
})]
|
|
117
|
+
}),
|
|
118
|
+
!o && p && /* @__PURE__ */ v(d, {
|
|
119
|
+
showIcon: !0,
|
|
120
|
+
title: p,
|
|
121
|
+
type: "error"
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function w({ group: e, detail: t, actions: n, scope: r }) {
|
|
127
|
+
return /* @__PURE__ */ v(h, {
|
|
128
|
+
gap: 12,
|
|
129
|
+
children: e.threads.map((e) => /* @__PURE__ */ v(C, {
|
|
130
|
+
actions: n,
|
|
131
|
+
detail: t,
|
|
132
|
+
scope: r,
|
|
133
|
+
thread: e
|
|
134
|
+
}, e.annotation.id))
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function T({ detail: e, field: t }) {
|
|
138
|
+
return /* @__PURE__ */ v(E, {
|
|
139
|
+
detail: e,
|
|
140
|
+
field: t
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function E({ detail: e, field: t, modalScope: n }) {
|
|
144
|
+
let r = o(e), { groups: s } = r, c = n ? a : i, l = t ? s.map((e) => ({
|
|
145
|
+
...e,
|
|
146
|
+
threads: e.threads.filter((e) => c(e.annotation, t))
|
|
147
|
+
})).filter((e) => e.threads.length) : s;
|
|
148
|
+
return l.length > 0 ? /* @__PURE__ */ v(h, {
|
|
149
|
+
gap: 16,
|
|
150
|
+
children: l.map((t) => /* @__PURE__ */ y(h, {
|
|
151
|
+
gap: 8,
|
|
152
|
+
children: [/* @__PURE__ */ v(g, {
|
|
153
|
+
strong: !0,
|
|
154
|
+
children: t.name
|
|
155
|
+
}), /* @__PURE__ */ v(w, {
|
|
156
|
+
actions: r,
|
|
157
|
+
detail: e,
|
|
158
|
+
group: t,
|
|
159
|
+
scope: n
|
|
160
|
+
})]
|
|
161
|
+
}, t.threads[0].annotation.id))
|
|
162
|
+
}) : /* @__PURE__ */ v(p, { description: "暂无批注" });
|
|
163
|
+
}
|
|
164
|
+
function D({ detail: e }) {
|
|
165
|
+
let n = o(e), { groups: r } = n, i = new Map(r.map((e) => [e.entry, e])), a = (t) => /* @__PURE__ */ v(w, {
|
|
166
|
+
actions: n,
|
|
167
|
+
detail: e,
|
|
168
|
+
group: t
|
|
169
|
+
}, t.threads[0].annotation.id);
|
|
170
|
+
return /* @__PURE__ */ y(h, {
|
|
171
|
+
gap: 12,
|
|
172
|
+
children: [/* @__PURE__ */ v(t, {
|
|
173
|
+
timeline: e.timeline,
|
|
174
|
+
renderEntryExtra: (e) => {
|
|
175
|
+
let t = i.get(e);
|
|
176
|
+
return t && a(t);
|
|
177
|
+
}
|
|
178
|
+
}), r.filter((e) => !e.entry).map((e) => /* @__PURE__ */ y(h, {
|
|
179
|
+
gap: 6,
|
|
180
|
+
children: [/* @__PURE__ */ v(g, {
|
|
181
|
+
strong: !0,
|
|
182
|
+
children: e.name
|
|
183
|
+
}), a(e)]
|
|
184
|
+
}, e.threads[0].annotation.id))]
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function O({ detail: e }) {
|
|
188
|
+
let t = o(e), { task: n, canRespond: r } = t, [i, a] = u(!1);
|
|
189
|
+
if (r && e.annotations?.length) return /* @__PURE__ */ y(h, {
|
|
190
|
+
gap: 8,
|
|
191
|
+
children: [/* @__PURE__ */ v(g, {
|
|
192
|
+
strong: !0,
|
|
193
|
+
children: "审批批注"
|
|
194
|
+
}), /* @__PURE__ */ v(T, { detail: e })]
|
|
195
|
+
});
|
|
196
|
+
if (!n) return null;
|
|
197
|
+
let c = e.annotations?.filter((e) => e.taskId === n.taskId && e.status === "draft" && !e.parentId);
|
|
198
|
+
return /* @__PURE__ */ y(h, {
|
|
199
|
+
gap: 8,
|
|
200
|
+
children: [c?.map((n) => /* @__PURE__ */ v(C, {
|
|
201
|
+
actions: t,
|
|
202
|
+
detail: e,
|
|
203
|
+
thread: {
|
|
204
|
+
annotation: n,
|
|
205
|
+
responses: []
|
|
206
|
+
}
|
|
207
|
+
}, n.id)), i ? /* @__PURE__ */ v(s, {
|
|
208
|
+
detail: e,
|
|
209
|
+
onCancel: () => a(!1),
|
|
210
|
+
onDone: () => a(!1)
|
|
211
|
+
}) : /* @__PURE__ */ v(f, {
|
|
212
|
+
style: { alignSelf: "flex-start" },
|
|
213
|
+
onClick: () => a(!0),
|
|
214
|
+
children: "添加批注"
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function k(t) {
|
|
219
|
+
let [i, a] = u(), o = t?.annotations, s = l(() => {
|
|
220
|
+
let e = /* @__PURE__ */ new Map();
|
|
221
|
+
function t(t, n, r) {
|
|
222
|
+
let i = JSON.stringify([
|
|
223
|
+
t,
|
|
224
|
+
n,
|
|
225
|
+
r
|
|
226
|
+
]);
|
|
227
|
+
e.set(i, (e.get(i) ?? 0) + 1);
|
|
228
|
+
}
|
|
229
|
+
let n = o ?? [];
|
|
230
|
+
for (let e of n) {
|
|
231
|
+
if (e.parentId || !r(e.anchor)) continue;
|
|
232
|
+
let { field: n, row: i, column: a } = e.anchor;
|
|
233
|
+
t(n), (i !== void 0 || a !== void 0) && t(n, i, a);
|
|
234
|
+
}
|
|
235
|
+
return e;
|
|
236
|
+
}, [o]);
|
|
237
|
+
return {
|
|
238
|
+
renderFieldExtra: l(() => {
|
|
239
|
+
if (s.size !== 0) return ({ key: e, row: t, column: n }) => {
|
|
240
|
+
let r = {
|
|
241
|
+
field: e,
|
|
242
|
+
row: t,
|
|
243
|
+
column: n
|
|
244
|
+
}, i = s.get(JSON.stringify([
|
|
245
|
+
e,
|
|
246
|
+
t,
|
|
247
|
+
n
|
|
248
|
+
]));
|
|
249
|
+
return i ? /* @__PURE__ */ v(f, {
|
|
250
|
+
size: "small",
|
|
251
|
+
type: "link",
|
|
252
|
+
onClick: () => a(r),
|
|
253
|
+
children: `${i} 条批注`
|
|
254
|
+
}) : null;
|
|
255
|
+
};
|
|
256
|
+
}, [s]),
|
|
257
|
+
dialog: i && t && !t.instance.businessKind && /* @__PURE__ */ v(e, {
|
|
258
|
+
open: !0,
|
|
259
|
+
footer: null,
|
|
260
|
+
title: `${n(t, i)} · 批注`,
|
|
261
|
+
onCancel: () => a(void 0),
|
|
262
|
+
children: /* @__PURE__ */ v(E, {
|
|
263
|
+
detail: t,
|
|
264
|
+
field: i,
|
|
265
|
+
modalScope: i
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
export { s as AnnotationComposer, T as AnnotationList, c as AnnotationResponseComposer, D as AnnotationTimeline, O as DetailAnnotations, o as useAnnotations, k as useFieldAnnotations };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
|
+
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
|
+
import { isMyInstanceDetail as n } from "../../types/detail.js";
|
|
5
|
+
import { APPROVAL_PERMISSIONS as r } from "../../permissions.js";
|
|
6
|
+
import { resolveBusinessRenderer as i, useApprovalPlugins as a } from "../../plugins/index.js";
|
|
7
|
+
import { isFieldAnchor as o } from "./field-anchor.js";
|
|
8
|
+
import { useAppContext as s, useMutation as c, useQueryClient as l } from "@vef-framework-react/core";
|
|
9
|
+
import { useMemo as u } from "react";
|
|
10
|
+
//#region src/components/annotations/use-annotations.ts
|
|
11
|
+
function d(e) {
|
|
12
|
+
let t = e.timeline.map((e) => ({
|
|
13
|
+
entry: e,
|
|
14
|
+
name: e.name ?? "流转记录",
|
|
15
|
+
threads: []
|
|
16
|
+
})), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
17
|
+
for (let e of t) {
|
|
18
|
+
e.entry?.visitId && n.set(e.entry.visitId, e);
|
|
19
|
+
let t = e.entry?.participants ?? [];
|
|
20
|
+
for (let n of t) r.set(n.taskId, e);
|
|
21
|
+
}
|
|
22
|
+
let i = e.annotations ?? [], a = new Map(i.filter((e) => !e.parentId).map((e) => [e.id, {
|
|
23
|
+
annotation: e,
|
|
24
|
+
responses: []
|
|
25
|
+
}]));
|
|
26
|
+
for (let e of i) {
|
|
27
|
+
if (!e.parentId) continue;
|
|
28
|
+
let t = a.get(e.parentId);
|
|
29
|
+
t ? t.responses.push(e) : a.set(e.id, {
|
|
30
|
+
annotation: e,
|
|
31
|
+
responses: []
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
let o = /* @__PURE__ */ new Map();
|
|
35
|
+
for (let e of a.values()) {
|
|
36
|
+
let { annotation: t } = e, i = n.get(t.visitId ?? "") ?? r.get(t.taskId ?? "");
|
|
37
|
+
if (i) i.threads.push(e);
|
|
38
|
+
else {
|
|
39
|
+
let n = t.visitId ?? t.taskId ?? t.nodeId, r = o.get(n) ?? {
|
|
40
|
+
name: t.nodeName || "其他批注",
|
|
41
|
+
threads: []
|
|
42
|
+
};
|
|
43
|
+
r.threads.push(e), o.set(n, r);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return [...t, ...o.values()].filter((e) => e.threads.length > 0);
|
|
47
|
+
}
|
|
48
|
+
function f(e, t) {
|
|
49
|
+
let { anchor: n } = e;
|
|
50
|
+
return o(n) && n.field === t.field && (t.row === void 0 || n.row === t.row) && (t.column === void 0 || n.column === t.column);
|
|
51
|
+
}
|
|
52
|
+
function p(e, t) {
|
|
53
|
+
if (t.row === void 0 && t.column === void 0) return f(e, t);
|
|
54
|
+
let { anchor: n } = e;
|
|
55
|
+
return o(n) && n.field === t.field && n.row === t.row && n.column === t.column;
|
|
56
|
+
}
|
|
57
|
+
function m(o) {
|
|
58
|
+
let f = e(), { getInstanceDetail: p } = t(), { hasPermission: m } = s(), { businessKinds: h } = a(), g = o.instance.businessKind, _ = (m?.(r.annotation.write) ?? !0) && (!g || !!i(h, g)), v = n(o) ? o : void 0, y = _ ? v?.myTask : void 0, b = _ && o.instance.status === "returned" && !!v?.availableActions.includes("resubmit"), x = l(), S = () => x.invalidateQueries({ queryKey: [p.key, { instanceId: o.instance.instanceId }] }), C = { shouldShowSuccessFeedback: !1 }, w = c({
|
|
59
|
+
mutationFn: f.saveAnnotation,
|
|
60
|
+
meta: C,
|
|
61
|
+
onSuccess: S
|
|
62
|
+
}), T = c({
|
|
63
|
+
mutationFn: f.deleteAnnotation,
|
|
64
|
+
meta: C,
|
|
65
|
+
onSuccess: S
|
|
66
|
+
});
|
|
67
|
+
return {
|
|
68
|
+
groups: u(() => d(o), [o]),
|
|
69
|
+
task: y,
|
|
70
|
+
canRespond: b,
|
|
71
|
+
save: w.mutateAsync,
|
|
72
|
+
remove: T.mutateAsync,
|
|
73
|
+
pending: w.isPending || T.isPending
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { f as matchesField, p as matchesFieldSlot, m as useAnnotations };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { resolveBusinessRenderer as e, useApprovalPlugins as t } from "../plugins/index.js";
|
|
3
|
+
import { useCallback as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import { Alert as a, showWarningMessage as o } from "@vef-framework-react/components";
|
|
5
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
6
|
+
//#region src/components/business-form.tsx
|
|
7
|
+
function c() {
|
|
8
|
+
return /* @__PURE__ */ s(a, {
|
|
9
|
+
showIcon: !0,
|
|
10
|
+
title: "该业务类型未在本应用注册",
|
|
11
|
+
type: "warning"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function l(a) {
|
|
15
|
+
let { businessKinds: s } = t(), c = r(null), l = e(s, a), [u, d] = i(!0), [f, p] = i(), m = n((e, t) => {
|
|
16
|
+
d(e), p(e ? void 0 : t);
|
|
17
|
+
}, []);
|
|
18
|
+
async function h({ inlineError: e = !1 } = {}) {
|
|
19
|
+
try {
|
|
20
|
+
if (!c.current) throw Error("业务表单尚未就绪");
|
|
21
|
+
return await c.current.collect();
|
|
22
|
+
} catch (t) {
|
|
23
|
+
throw e || o(t instanceof Error && t.message ? t.message : "请检查业务表单后重试"), t;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
renderer: l,
|
|
28
|
+
handle: c,
|
|
29
|
+
ready: u,
|
|
30
|
+
blockedReason: f,
|
|
31
|
+
onAvailabilityChange: m,
|
|
32
|
+
collect: h
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { c as MissingBusinessKind, l as useBusinessForm };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
|
+
import { Modal as e } from "@vef-framework-react/components";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
//#region src/components/capped-modal.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
return /* @__PURE__ */ t(e, {
|
|
7
|
+
...n,
|
|
8
|
+
centered: !0,
|
|
9
|
+
styles: {
|
|
10
|
+
container: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
maxHeight: "calc(100dvh - 32px)"
|
|
14
|
+
},
|
|
15
|
+
header: { flexShrink: 0 },
|
|
16
|
+
body: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
minHeight: 0,
|
|
20
|
+
overflowY: "auto"
|
|
21
|
+
},
|
|
22
|
+
footer: { flexShrink: 0 }
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { n as CappedModal };
|