@vef-framework-react/approval 2.25.0 → 2.27.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/category-api.cjs +1 -1
- package/dist/cjs/api/delegation-api.cjs +1 -1
- package/dist/cjs/api/query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/category-page/index.cjs +1 -1
- package/dist/cjs/pages/delegation-page/form.cjs +1 -1
- package/dist/cjs/pages/delegation-page/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/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/types/index.cjs +1 -1
- package/dist/cjs/types/tenancy.cjs +1 -0
- package/dist/es/api/admin-api.js +1 -1
- package/dist/es/api/category-api.js +2 -2
- package/dist/es/api/delegation-api.js +10 -14
- package/dist/es/api/flow-api.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/instance-api.js +1 -1
- package/dist/es/api/my-api.js +1 -1
- package/dist/es/api/query.js +9 -2
- package/dist/es/components/action-dialog/index.js +1 -1
- package/dist/es/components/detail/action-modals.js +1 -1
- package/dist/es/components/detail/admin.js +1 -1
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +1 -1
- package/dist/es/components/flow-graph/index.js +1 -1
- package/dist/es/components/flow-graph/node.js +1 -1
- package/dist/es/components/flow-graph/people-overlay.js +1 -1
- package/dist/es/components/flow-graph/people.js +1 -1
- package/dist/es/components/form-panel/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/icon.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/principal/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/timeline/index.js +1 -1
- package/dist/es/components/user/index.js +1 -1
- package/dist/es/index.js +10 -9
- package/dist/es/pages/admin-page/index.js +1 -1
- package/dist/es/pages/admin-page/instances.js +1 -1
- package/dist/es/pages/admin-page/metrics.js +1 -1
- package/dist/es/pages/admin-page/projections.js +1 -1
- package/dist/es/pages/admin-page/tasks.js +1 -1
- 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 +15 -8
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +17 -14
- package/dist/es/pages/delegation-page/index.js +13 -13
- package/dist/es/pages/flow-page/columns.js +1 -1
- package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
- package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
- package/dist/es/pages/flow-page/designer/form-step.js +1 -1
- package/dist/es/pages/flow-page/designer/index.js +167 -160
- package/dist/es/pages/flow-page/designer/review-step.js +1 -1
- package/dist/es/pages/flow-page/designer/types.js +1 -1
- package/dist/es/pages/flow-page/index.js +3 -2
- 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 +1 -1
- package/dist/es/pages/initiate-page/index.js +30 -32
- package/dist/es/pages/initiate-page/start-drawer.js +37 -42
- package/dist/es/pages/my-instances-page/index.js +30 -32
- package/dist/es/pages/task-center-page/index.js +26 -28
- package/dist/es/pages/task-center-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/plugins/form-context.js +1 -1
- package/dist/es/plugins/index.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +3 -2
- package/dist/es/types/tenancy.js +5 -0
- package/dist/types/api/delegation-api.d.ts +1 -1
- package/dist/types/api/flow-api.d.ts +0 -3
- package/dist/types/api/my-api.d.ts +1 -4
- package/dist/types/api/query.d.ts +11 -0
- package/dist/types/pages/category-page/index.d.ts +2 -1
- package/dist/types/pages/category-page/props.d.ts +5 -2
- package/dist/types/pages/delegation-page/form.d.ts +5 -2
- package/dist/types/pages/delegation-page/index.d.ts +1 -1
- package/dist/types/pages/delegation-page/props.d.ts +5 -0
- package/dist/types/pages/flow-page/index.d.ts +2 -1
- package/dist/types/pages/flow-page/props.d.ts +5 -2
- package/dist/types/pages/initiate-page/index.d.ts +4 -9
- package/dist/types/pages/initiate-page/start-drawer.d.ts +1 -2
- package/dist/types/pages/my-instances-page/index.d.ts +1 -5
- package/dist/types/pages/task-center-page/index.d.ts +1 -5
- package/dist/types/types/category.d.ts +12 -1
- package/dist/types/types/flow.d.ts +5 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/instance.d.ts +4 -4
- package/dist/types/types/my.d.ts +0 -4
- package/dist/types/types/tenancy.d.ts +14 -0
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
2
2
|
import { formatTimestamp as e } from "../format.js";
|
|
3
3
|
import { ACTIVITY_ACTION_LABELS as t } from "../status/labels.js";
|
|
4
4
|
import { personTone as n } from "./people.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
2
2
|
import { useApprovalPlugins as e } from "../../plugins/index.js";
|
|
3
3
|
import { toFormEvaluationContext as t } from "../../plugins/form-context.js";
|
|
4
4
|
import { useMemo as n } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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";
|
|
@@ -24,11 +24,12 @@ import { ApprovalAdminPage as W } from "./pages/admin-page/index.js";
|
|
|
24
24
|
import { ApprovalCategoryPage as G } from "./pages/category-page/index.js";
|
|
25
25
|
import { ApprovalDelegationPage as K } from "./pages/delegation-page/index.js";
|
|
26
26
|
import { BUILTIN_INITIATOR_KINDS as q, FINAL_INSTANCE_STATUSES as J, isFinalInstanceStatus as Y } from "./types/enums.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
|
|
27
|
+
import { SHARED_TENANT_ID as X } from "./types/tenancy.js";
|
|
28
|
+
import { FlowDesignerDrawer as Z } from "./pages/flow-page/designer/index.js";
|
|
29
|
+
import { FlowVersionsDrawer as Q } from "./pages/flow-page/versions.js";
|
|
30
|
+
import { ApprovalFlowPage as $ } from "./pages/flow-page/index.js";
|
|
31
|
+
import { StartInstanceDrawer as ee } from "./pages/initiate-page/start-drawer.js";
|
|
32
|
+
import { ApprovalInitiatePage as te } from "./pages/initiate-page/index.js";
|
|
33
|
+
import { ApprovalMyInstancesPage as ne } from "./pages/my-instances-page/index.js";
|
|
34
|
+
import { ApprovalTaskCenterPage as re } from "./pages/task-center-page/index.js";
|
|
35
|
+
export { p as ACTIVITY_ACTION_LABELS, e as API_PATH, U as APPROVAL_PERMISSIONS, V as AdminInstanceDetailPanel, W as ApprovalAdminPage, G as ApprovalCategoryPage, K as ApprovalDelegationPage, $ as ApprovalFlowPage, te as ApprovalInitiatePage, ne as ApprovalMyInstancesPage, c as ApprovalProvider, re as ApprovalTaskCenterPage, C as BINDING_PROJECTION_STATUS_COLORS, m as BINDING_PROJECTION_STATUS_LABELS, h as BINDING_PROJECTION_STATUS_OPTIONS, q as BUILTIN_INITIATOR_KINDS, J as FINAL_INSTANCE_STATUSES, Z as FlowDesignerDrawer, Q as FlowVersionsDrawer, w as INSTANCE_STATUS_COLORS, g as INSTANCE_STATUS_LABELS, _ as INSTANCE_STATUS_OPTIONS, H as InstanceDetailDrawer, z as InstanceDetailPanel, F as InstanceFlowGraphViewer, I as InstanceFormPanel, B as InstanceHeader, O as InstanceStatusTag, L as InstanceTimeline, T as NODE_PROGRESS_COLORS, v as NODE_PROGRESS_LABELS, k as NodeProgressTag, y as PROCESS_TASK_ACTION_LABELS, R as PrincipalSelect, A as ProjectionStatusTag, X as SHARED_TENANT_ID, ee as StartInstanceDrawer, E as TASK_STATUS_COLORS, b as TASK_STATUS_LABELS, x as TASK_STATUS_OPTIONS, j as TaskStatusTag, N as UserGroup, P as UserLabel, D as VERSION_STATUS_COLORS, S as VERSION_STATUS_LABELS, M as VersionStatusTag, d as formatDurationSeconds, f as formatTimestamp, Y as isFinalInstanceStatus, l as toEditorPlugins, t as toPagedParams, n as useAdminApprovalApi, u as useApprovalPlugins, r as useCategoryApi, i as useDelegationApi, a as useFlowApi, o as useInstanceApi, s as useMyApprovalApi };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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";
|
|
@@ -45,6 +45,7 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
45
45
|
return /* @__PURE__ */ v(c, {
|
|
46
46
|
basicSearch: /* @__PURE__ */ v(w, {}),
|
|
47
47
|
columnSettings: { storageKey: a },
|
|
48
|
+
defaultSearchValues: { tenantId: i },
|
|
48
49
|
deleteMutationFn: f.remove,
|
|
49
50
|
formLayout: { layout: "vertical" },
|
|
50
51
|
isPaginated: !1,
|
|
@@ -121,16 +122,22 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
121
122
|
function E() {
|
|
122
123
|
let { AppField: e } = p();
|
|
123
124
|
return /* @__PURE__ */ v(e, {
|
|
124
|
-
name: "
|
|
125
|
-
children: (
|
|
125
|
+
name: "tenantId",
|
|
126
|
+
children: (t) => /* @__PURE__ */ v(e, {
|
|
127
|
+
name: "id",
|
|
128
|
+
children: (e) => /* @__PURE__ */ v(D, {
|
|
129
|
+
editedId: e.state.value,
|
|
130
|
+
tenantId: t.state.value
|
|
131
|
+
})
|
|
132
|
+
})
|
|
126
133
|
});
|
|
127
134
|
}
|
|
128
|
-
function D({ editedId: t }) {
|
|
129
|
-
let
|
|
130
|
-
queryFn:
|
|
131
|
-
queryKey: [
|
|
135
|
+
function D({ editedId: t, tenantId: n }) {
|
|
136
|
+
let s = e(), { data: c } = a({
|
|
137
|
+
queryFn: s.findTree,
|
|
138
|
+
queryKey: [s.findTree.key, { tenantId: n }]
|
|
132
139
|
});
|
|
133
|
-
return /* @__PURE__ */ v(r, { treeOptions: o(() => i(
|
|
140
|
+
return /* @__PURE__ */ v(r, { treeOptions: o(() => i(c ?? [], t), [c, t]) });
|
|
134
141
|
}
|
|
135
142
|
//#endregion
|
|
136
143
|
export { T as ApprovalCategoryPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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";
|
|
@@ -19,17 +19,20 @@ function u({ label: e, required: n, value: r, onChange: a }) {
|
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function d() {
|
|
23
|
-
let { AppField:
|
|
24
|
-
queryFn:
|
|
25
|
-
queryKey: [
|
|
26
|
-
|
|
22
|
+
function d({ tenantId: t }) {
|
|
23
|
+
let { AppField: o } = s(), d = e(), { data: f } = r({
|
|
24
|
+
queryFn: d.findTree,
|
|
25
|
+
queryKey: [d.findTree.key, {
|
|
26
|
+
tenantId: t,
|
|
27
|
+
includeShared: !0
|
|
28
|
+
}]
|
|
29
|
+
}), p = i(() => n(f ?? []), [f]);
|
|
27
30
|
return /* @__PURE__ */ l(a, {
|
|
28
31
|
columnGap: "small",
|
|
29
32
|
children: [
|
|
30
33
|
/* @__PURE__ */ c(a.Item, {
|
|
31
34
|
span: 12,
|
|
32
|
-
children: /* @__PURE__ */ c(
|
|
35
|
+
children: /* @__PURE__ */ c(o, {
|
|
33
36
|
name: "delegatorId",
|
|
34
37
|
children: (e) => /* @__PURE__ */ c(u, {
|
|
35
38
|
required: !0,
|
|
@@ -41,7 +44,7 @@ function d() {
|
|
|
41
44
|
}),
|
|
42
45
|
/* @__PURE__ */ c(a.Item, {
|
|
43
46
|
span: 12,
|
|
44
|
-
children: /* @__PURE__ */ c(
|
|
47
|
+
children: /* @__PURE__ */ c(o, {
|
|
45
48
|
name: "delegateeId",
|
|
46
49
|
children: (e) => /* @__PURE__ */ c(u, {
|
|
47
50
|
required: !0,
|
|
@@ -53,7 +56,7 @@ function d() {
|
|
|
53
56
|
}),
|
|
54
57
|
/* @__PURE__ */ c(a.Item, {
|
|
55
58
|
span: 12,
|
|
56
|
-
children: /* @__PURE__ */ c(
|
|
59
|
+
children: /* @__PURE__ */ c(o, {
|
|
57
60
|
name: "startsAt",
|
|
58
61
|
children: (e) => /* @__PURE__ */ c(e.DatePicker, {
|
|
59
62
|
required: !0,
|
|
@@ -65,7 +68,7 @@ function d() {
|
|
|
65
68
|
}),
|
|
66
69
|
/* @__PURE__ */ c(a.Item, {
|
|
67
70
|
span: 12,
|
|
68
|
-
children: /* @__PURE__ */ c(
|
|
71
|
+
children: /* @__PURE__ */ c(o, {
|
|
69
72
|
name: "endsAt",
|
|
70
73
|
children: (e) => /* @__PURE__ */ c(e.DatePicker, {
|
|
71
74
|
required: !0,
|
|
@@ -77,20 +80,20 @@ function d() {
|
|
|
77
80
|
}),
|
|
78
81
|
/* @__PURE__ */ c(a.Item, {
|
|
79
82
|
span: 24,
|
|
80
|
-
children: /* @__PURE__ */ c(
|
|
83
|
+
children: /* @__PURE__ */ c(o, {
|
|
81
84
|
name: "flowCategoryId",
|
|
82
85
|
children: (e) => /* @__PURE__ */ c(e.TreeSelect, {
|
|
83
86
|
allowClear: !0,
|
|
84
87
|
extra: "留空表示不限分类",
|
|
85
88
|
label: "限定分类",
|
|
86
89
|
placeholder: "选择流程分类(可选)",
|
|
87
|
-
treeData:
|
|
90
|
+
treeData: p
|
|
88
91
|
})
|
|
89
92
|
})
|
|
90
93
|
}),
|
|
91
94
|
/* @__PURE__ */ c(a.Item, {
|
|
92
95
|
span: 24,
|
|
93
|
-
children: /* @__PURE__ */ c(
|
|
96
|
+
children: /* @__PURE__ */ c(o, {
|
|
94
97
|
name: "reason",
|
|
95
98
|
children: (e) => /* @__PURE__ */ c(e.TextArea, {
|
|
96
99
|
label: "委托原因",
|
|
@@ -102,7 +105,7 @@ function d() {
|
|
|
102
105
|
}),
|
|
103
106
|
/* @__PURE__ */ c(a.Item, {
|
|
104
107
|
span: 24,
|
|
105
|
-
children: /* @__PURE__ */ c(
|
|
108
|
+
children: /* @__PURE__ */ c(o, {
|
|
106
109
|
name: "isActive",
|
|
107
110
|
children: (e) => /* @__PURE__ */ c(e.Bool, {
|
|
108
111
|
label: "启用",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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";
|
|
@@ -42,24 +42,24 @@ function x() {
|
|
|
42
42
|
})
|
|
43
43
|
})] });
|
|
44
44
|
}
|
|
45
|
-
function S({ permissions: l,
|
|
46
|
-
let
|
|
45
|
+
function S({ permissions: l, tenantId: u, columnStorageKey: S = "approval.delegation", title: C }) {
|
|
46
|
+
let w = e(), T = {
|
|
47
47
|
...t.delegation,
|
|
48
48
|
...l
|
|
49
49
|
};
|
|
50
50
|
return /* @__PURE__ */ h(a, {
|
|
51
51
|
basicSearch: /* @__PURE__ */ h(x, {}),
|
|
52
|
-
columnSettings: { storageKey:
|
|
53
|
-
deleteMutationFn:
|
|
52
|
+
columnSettings: { storageKey: S },
|
|
53
|
+
deleteMutationFn: w.remove,
|
|
54
54
|
formLayout: { layout: "vertical" },
|
|
55
|
-
queryFn:
|
|
56
|
-
renderForm: () => /* @__PURE__ */ h(r, {}),
|
|
55
|
+
queryFn: w.findPage,
|
|
56
|
+
renderForm: () => /* @__PURE__ */ h(r, { tenantId: u }),
|
|
57
57
|
rowKey: "id",
|
|
58
58
|
tableColumns: n,
|
|
59
|
-
title:
|
|
59
|
+
title: C,
|
|
60
60
|
formMutationFns: {
|
|
61
|
-
create:
|
|
62
|
-
update:
|
|
61
|
+
create: w.create,
|
|
62
|
+
update: w.update
|
|
63
63
|
},
|
|
64
64
|
operationColumn: {
|
|
65
65
|
width: 160,
|
|
@@ -73,7 +73,7 @@ function S({ permissions: l, columnStorageKey: u = "approval.delegation", title:
|
|
|
73
73
|
children: ([t, n, r]) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(s, {
|
|
74
74
|
color: "primary",
|
|
75
75
|
icon: /* @__PURE__ */ h(o, { component: d }),
|
|
76
|
-
requiredPermissions:
|
|
76
|
+
requiredPermissions: T.update,
|
|
77
77
|
onClick: () => t({
|
|
78
78
|
scene: "update",
|
|
79
79
|
values: b(e),
|
|
@@ -87,7 +87,7 @@ function S({ permissions: l, columnStorageKey: u = "approval.delegation", title:
|
|
|
87
87
|
color: "danger",
|
|
88
88
|
confirmDescription: "确定删除该委托?",
|
|
89
89
|
icon: /* @__PURE__ */ h(o, { component: p }),
|
|
90
|
-
requiredPermissions:
|
|
90
|
+
requiredPermissions: T.delete,
|
|
91
91
|
onClick: async () => {
|
|
92
92
|
try {
|
|
93
93
|
await n(e), r();
|
|
@@ -102,7 +102,7 @@ function S({ permissions: l, columnStorageKey: u = "approval.delegation", title:
|
|
|
102
102
|
toolbarActions: /* @__PURE__ */ h(y, {
|
|
103
103
|
selector: (e) => [e.openForm],
|
|
104
104
|
children: ([e]) => /* @__PURE__ */ h(c, {
|
|
105
|
-
requiredPermissions:
|
|
105
|
+
requiredPermissions: T.create,
|
|
106
106
|
children: /* @__PURE__ */ h(i, {
|
|
107
107
|
icon: /* @__PURE__ */ h(o, { component: f }),
|
|
108
108
|
type: "primary",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
2
2
|
import { globalCssVars as e } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ApprovalFlowEditor as n } from "@vef-framework-react/approval-flow-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.27.0 made by Venus | 2026-10-15T04:02:45.982Z */
|
|
2
2
|
import { useApprovalPlugins as e } from "../../../plugins/index.js";
|
|
3
3
|
import { toFormContextSources as t } from "../../../plugins/form-context.js";
|
|
4
4
|
import { useMemo as n } from "react";
|