@vef-framework-react/approval 2.26.0 → 2.28.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/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/columns.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/types.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/es/api/admin-api.js +1 -1
- 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 +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 +1 -1
- 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 +9 -10
- 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 +2 -1
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +14 -14
- package/dist/es/pages/delegation-page/index.js +13 -13
- package/dist/es/pages/flow-page/columns.js +9 -2
- package/dist/es/pages/flow-page/designer/basic-step.js +13 -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 +106 -105
- package/dist/es/pages/flow-page/designer/review-step.js +1 -1
- package/dist/es/pages/flow-page/designer/types.js +2 -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 +2 -3
- package/dist/types/api/flow-api.d.ts +0 -3
- package/dist/types/api/my-api.d.ts +1 -4
- package/dist/types/pages/category-page/index.d.ts +2 -1
- package/dist/types/pages/category-page/props.d.ts +4 -4
- 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/designer/basic-step.d.ts +1 -1
- package/dist/types/pages/flow-page/designer/types.d.ts +4 -0
- package/dist/types/pages/flow-page/index.d.ts +2 -1
- package/dist/types/pages/flow-page/props.d.ts +5 -4
- package/dist/types/pages/initiate-page/index.d.ts +5 -10
- package/dist/types/pages/initiate-page/start-drawer.d.ts +1 -6
- 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 +2 -7
- package/dist/types/types/flow.d.ts +26 -0
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/types/instance.d.ts +5 -9
- package/dist/types/types/my.d.ts +0 -4
- package/package.json +7 -7
- package/dist/cjs/types/tenancy.cjs +0 -1
- package/dist/es/types/tenancy.js +0 -5
- package/dist/types/types/tenancy.d.ts +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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,12 +24,11 @@ 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
|
-
|
|
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 };
|
|
27
|
+
import { FlowDesignerDrawer as X } from "./pages/flow-page/designer/index.js";
|
|
28
|
+
import { FlowVersionsDrawer as Z } from "./pages/flow-page/versions.js";
|
|
29
|
+
import { ApprovalFlowPage as Q } from "./pages/flow-page/index.js";
|
|
30
|
+
import { StartInstanceDrawer as $ } from "./pages/initiate-page/start-drawer.js";
|
|
31
|
+
import { ApprovalInitiatePage as ee } from "./pages/initiate-page/index.js";
|
|
32
|
+
import { ApprovalMyInstancesPage as te } from "./pages/my-instances-page/index.js";
|
|
33
|
+
import { ApprovalTaskCenterPage as ne } from "./pages/task-center-page/index.js";
|
|
34
|
+
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, Q as ApprovalFlowPage, ee as ApprovalInitiatePage, te as ApprovalMyInstancesPage, c as ApprovalProvider, ne 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, X as FlowDesignerDrawer, Z 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, $ 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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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,17 @@ 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, { tenantId: t }]
|
|
26
|
+
}), p = i(() => n(f ?? []), [f]);
|
|
27
27
|
return /* @__PURE__ */ l(a, {
|
|
28
28
|
columnGap: "small",
|
|
29
29
|
children: [
|
|
30
30
|
/* @__PURE__ */ c(a.Item, {
|
|
31
31
|
span: 12,
|
|
32
|
-
children: /* @__PURE__ */ c(
|
|
32
|
+
children: /* @__PURE__ */ c(o, {
|
|
33
33
|
name: "delegatorId",
|
|
34
34
|
children: (e) => /* @__PURE__ */ c(u, {
|
|
35
35
|
required: !0,
|
|
@@ -41,7 +41,7 @@ function d() {
|
|
|
41
41
|
}),
|
|
42
42
|
/* @__PURE__ */ c(a.Item, {
|
|
43
43
|
span: 12,
|
|
44
|
-
children: /* @__PURE__ */ c(
|
|
44
|
+
children: /* @__PURE__ */ c(o, {
|
|
45
45
|
name: "delegateeId",
|
|
46
46
|
children: (e) => /* @__PURE__ */ c(u, {
|
|
47
47
|
required: !0,
|
|
@@ -53,7 +53,7 @@ function d() {
|
|
|
53
53
|
}),
|
|
54
54
|
/* @__PURE__ */ c(a.Item, {
|
|
55
55
|
span: 12,
|
|
56
|
-
children: /* @__PURE__ */ c(
|
|
56
|
+
children: /* @__PURE__ */ c(o, {
|
|
57
57
|
name: "startsAt",
|
|
58
58
|
children: (e) => /* @__PURE__ */ c(e.DatePicker, {
|
|
59
59
|
required: !0,
|
|
@@ -65,7 +65,7 @@ function d() {
|
|
|
65
65
|
}),
|
|
66
66
|
/* @__PURE__ */ c(a.Item, {
|
|
67
67
|
span: 12,
|
|
68
|
-
children: /* @__PURE__ */ c(
|
|
68
|
+
children: /* @__PURE__ */ c(o, {
|
|
69
69
|
name: "endsAt",
|
|
70
70
|
children: (e) => /* @__PURE__ */ c(e.DatePicker, {
|
|
71
71
|
required: !0,
|
|
@@ -77,20 +77,20 @@ function d() {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ c(a.Item, {
|
|
79
79
|
span: 24,
|
|
80
|
-
children: /* @__PURE__ */ c(
|
|
80
|
+
children: /* @__PURE__ */ c(o, {
|
|
81
81
|
name: "flowCategoryId",
|
|
82
82
|
children: (e) => /* @__PURE__ */ c(e.TreeSelect, {
|
|
83
83
|
allowClear: !0,
|
|
84
84
|
extra: "留空表示不限分类",
|
|
85
85
|
label: "限定分类",
|
|
86
86
|
placeholder: "选择流程分类(可选)",
|
|
87
|
-
treeData:
|
|
87
|
+
treeData: p
|
|
88
88
|
})
|
|
89
89
|
})
|
|
90
90
|
}),
|
|
91
91
|
/* @__PURE__ */ c(a.Item, {
|
|
92
92
|
span: 24,
|
|
93
|
-
children: /* @__PURE__ */ c(
|
|
93
|
+
children: /* @__PURE__ */ c(o, {
|
|
94
94
|
name: "reason",
|
|
95
95
|
children: (e) => /* @__PURE__ */ c(e.TextArea, {
|
|
96
96
|
label: "委托原因",
|
|
@@ -102,7 +102,7 @@ function d() {
|
|
|
102
102
|
}),
|
|
103
103
|
/* @__PURE__ */ c(a.Item, {
|
|
104
104
|
span: 24,
|
|
105
|
-
children: /* @__PURE__ */ c(
|
|
105
|
+
children: /* @__PURE__ */ c(o, {
|
|
106
106
|
name: "isActive",
|
|
107
107
|
children: (e) => /* @__PURE__ */ c(e.Bool, {
|
|
108
108
|
label: "启用",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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";
|
|
@@ -16,7 +16,14 @@ function l(c) {
|
|
|
16
16
|
render: (e, r) => /* @__PURE__ */ s(n, {
|
|
17
17
|
align: "center",
|
|
18
18
|
gap: "small",
|
|
19
|
-
children: [
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ o(t, { name: r.icon }),
|
|
21
|
+
/* @__PURE__ */ o(a, { children: e }),
|
|
22
|
+
r.isShared && /* @__PURE__ */ o(i, {
|
|
23
|
+
color: "purple",
|
|
24
|
+
children: "全局"
|
|
25
|
+
})
|
|
26
|
+
]
|
|
20
27
|
})
|
|
21
28
|
},
|
|
22
29
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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";
|
|
@@ -286,6 +286,18 @@ function O({ basic: e, initiators: r, initiatorKinds: a, categoryOptions: c, isE
|
|
|
286
286
|
})
|
|
287
287
|
})
|
|
288
288
|
}),
|
|
289
|
+
/* @__PURE__ */ S(s.Item, {
|
|
290
|
+
span: 24,
|
|
291
|
+
children: /* @__PURE__ */ S(d, {
|
|
292
|
+
label: "全局流程",
|
|
293
|
+
hint: m ? "创建后不可修改" : "开启后所有租户都可发起;审批人与抄送人不能指定具体的用户、角色或部门。创建后不可修改",
|
|
294
|
+
children: /* @__PURE__ */ S(g, {
|
|
295
|
+
checked: e.isShared,
|
|
296
|
+
disabled: m,
|
|
297
|
+
onChange: (e) => b({ isShared: e })
|
|
298
|
+
})
|
|
299
|
+
})
|
|
300
|
+
}),
|
|
289
301
|
/* @__PURE__ */ S(s.Item, {
|
|
290
302
|
span: 24,
|
|
291
303
|
children: /* @__PURE__ */ S(d, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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.28.0 made by Venus | 2026-10-15T09:09:28.607Z */
|
|
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";
|