@vef-framework-react/approval 2.24.1 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/cjs/api/category-api.cjs +1 -1
  2. package/dist/cjs/api/delegation-api.cjs +1 -1
  3. package/dist/cjs/api/query.cjs +1 -1
  4. package/dist/cjs/components/detail/admin.cjs +1 -1
  5. package/dist/cjs/components/detail/index.cjs +1 -1
  6. package/dist/cjs/components/form-panel/index.cjs +1 -1
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/pages/category-page/index.cjs +1 -1
  9. package/dist/cjs/pages/delegation-page/form.cjs +1 -1
  10. package/dist/cjs/pages/flow-page/designer/flow-step.cjs +1 -1
  11. package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -1
  12. package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
  13. package/dist/cjs/pages/initiate-page/index.cjs +1 -1
  14. package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -1
  15. package/dist/cjs/plugins/form-context.cjs +1 -0
  16. package/dist/cjs/types/index.cjs +1 -1
  17. package/dist/cjs/types/tenancy.cjs +1 -0
  18. package/dist/es/api/admin-api.js +1 -1
  19. package/dist/es/api/category-api.js +2 -2
  20. package/dist/es/api/delegation-api.js +10 -14
  21. package/dist/es/api/flow-api.js +1 -1
  22. package/dist/es/api/index.js +1 -1
  23. package/dist/es/api/instance-api.js +1 -1
  24. package/dist/es/api/my-api.js +1 -1
  25. package/dist/es/api/query.js +9 -2
  26. package/dist/es/components/action-dialog/index.js +1 -1
  27. package/dist/es/components/detail/action-modals.js +1 -1
  28. package/dist/es/components/detail/admin.js +3 -1
  29. package/dist/es/components/detail/drawer.js +1 -1
  30. package/dist/es/components/detail/index.js +3 -1
  31. package/dist/es/components/flow-graph/index.js +1 -1
  32. package/dist/es/components/flow-graph/node.js +1 -1
  33. package/dist/es/components/flow-graph/people-overlay.js +1 -1
  34. package/dist/es/components/flow-graph/people.js +1 -1
  35. package/dist/es/components/form-panel/index.js +23 -20
  36. package/dist/es/components/format.js +1 -1
  37. package/dist/es/components/icon.js +1 -1
  38. package/dist/es/components/index.js +1 -1
  39. package/dist/es/components/principal/index.js +1 -1
  40. package/dist/es/components/status/colors.js +1 -1
  41. package/dist/es/components/status/index.js +1 -1
  42. package/dist/es/components/status/labels.js +1 -1
  43. package/dist/es/components/timeline/index.js +1 -1
  44. package/dist/es/components/user/index.js +1 -1
  45. package/dist/es/index.js +10 -9
  46. package/dist/es/pages/admin-page/index.js +1 -1
  47. package/dist/es/pages/admin-page/instances.js +1 -1
  48. package/dist/es/pages/admin-page/metrics.js +1 -1
  49. package/dist/es/pages/admin-page/projections.js +1 -1
  50. package/dist/es/pages/admin-page/tasks.js +1 -1
  51. package/dist/es/pages/category-page/columns.js +1 -1
  52. package/dist/es/pages/category-page/form.js +1 -1
  53. package/dist/es/pages/category-page/index.js +14 -8
  54. package/dist/es/pages/delegation-page/columns.js +1 -1
  55. package/dist/es/pages/delegation-page/form.js +2 -2
  56. package/dist/es/pages/delegation-page/index.js +1 -1
  57. package/dist/es/pages/flow-page/columns.js +1 -1
  58. package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
  59. package/dist/es/pages/flow-page/designer/flow-step.js +16 -34
  60. package/dist/es/pages/flow-page/designer/form-step.js +54 -65
  61. package/dist/es/pages/flow-page/designer/index.js +203 -185
  62. package/dist/es/pages/flow-page/designer/review-step.js +1 -1
  63. package/dist/es/pages/flow-page/designer/types.js +1 -1
  64. package/dist/es/pages/flow-page/index.js +1 -1
  65. package/dist/es/pages/flow-page/search.js +1 -1
  66. package/dist/es/pages/flow-page/versions.js +1 -1
  67. package/dist/es/pages/index.js +1 -1
  68. package/dist/es/pages/initiate-page/index.js +4 -4
  69. package/dist/es/pages/initiate-page/start-drawer.js +3 -1
  70. package/dist/es/pages/my-instances-page/index.js +1 -1
  71. package/dist/es/pages/task-center-page/index.js +1 -1
  72. package/dist/es/pages/task-center-page/search.js +1 -1
  73. package/dist/es/permissions.js +1 -1
  74. package/dist/es/plugins/form-context.js +34 -0
  75. package/dist/es/plugins/index.js +1 -1
  76. package/dist/es/types/enums.js +1 -1
  77. package/dist/es/types/index.js +3 -2
  78. package/dist/es/types/tenancy.js +5 -0
  79. package/dist/types/api/delegation-api.d.ts +1 -1
  80. package/dist/types/api/my-api.d.ts +1 -1
  81. package/dist/types/api/query.d.ts +11 -0
  82. package/dist/types/components/form-panel/index.d.ts +15 -3
  83. package/dist/types/index.d.ts +1 -0
  84. package/dist/types/pages/category-page/props.d.ts +3 -1
  85. package/dist/types/pages/flow-page/designer/flow-step.d.ts +6 -5
  86. package/dist/types/pages/flow-page/designer/form-step.d.ts +9 -10
  87. package/dist/types/pages/flow-page/props.d.ts +3 -1
  88. package/dist/types/pages/initiate-page/index.d.ts +3 -3
  89. package/dist/types/pages/initiate-page/start-drawer.d.ts +5 -1
  90. package/dist/types/plugins/form-context.d.ts +30 -0
  91. package/dist/types/plugins/index.d.ts +25 -5
  92. package/dist/types/types/admin.d.ts +5 -0
  93. package/dist/types/types/category.d.ts +11 -1
  94. package/dist/types/types/index.d.ts +1 -0
  95. package/dist/types/types/instance.d.ts +6 -1
  96. package/dist/types/types/my.d.ts +15 -0
  97. package/dist/types/types/tenancy.d.ts +14 -0
  98. package/package.json +7 -7
@@ -1,25 +1,28 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { useApprovalPlugins as e } from "../../plugins/index.js";
3
- import { Empty as t } from "@vef-framework-react/components";
4
- import { jsx as n } from "@emotion/react/jsx-runtime";
5
- import { FormRenderer as r, RegistryProvider as i } from "@vef-framework-react/form-editor";
3
+ import { toFormEvaluationContext as t } from "../../plugins/form-context.js";
4
+ import { useMemo as n } from "react";
5
+ import { Empty as r } from "@vef-framework-react/components";
6
+ import { jsx as i } from "@emotion/react/jsx-runtime";
7
+ import { FormRenderer as a, RegistryProvider as o } from "@vef-framework-react/form-editor";
6
8
  //#region src/components/form-panel/index.tsx
7
- function a({ schema: a, formData: o, fieldPermissions: s, disabled: c, device: l = "pc", apiRef: u, onSubmit: d }) {
8
- let { dataSourceResolver: f, evaluators: p, registries: m } = e();
9
- return a ? /* @__PURE__ */ n(i, {
10
- registries: m,
11
- children: /* @__PURE__ */ n(r, {
12
- apiRef: u,
13
- dataSourceResolver: f,
14
- defaultValues: o,
15
- device: l,
16
- disabled: c,
17
- evaluators: p,
18
- fieldPermissions: s,
19
- schema: a,
20
- onSubmit: d
9
+ function s({ schema: s, formData: c, fieldPermissions: l, applicant: u, globals: d, disabled: f, device: p = "pc", apiRef: m, onSubmit: h }) {
10
+ let { dataSourceResolver: g, evaluators: _, registries: v } = e(), y = n(() => t(u, d), [u, d]);
11
+ return s ? /* @__PURE__ */ i(o, {
12
+ registries: v,
13
+ children: /* @__PURE__ */ i(a, {
14
+ apiRef: m,
15
+ dataSourceResolver: g,
16
+ defaultValues: c,
17
+ device: p,
18
+ disabled: f,
19
+ evaluationContext: y,
20
+ evaluators: _,
21
+ fieldPermissions: l,
22
+ schema: s,
23
+ onSubmit: h
21
24
  })
22
- }) : /* @__PURE__ */ n(t, { description: "该流程未配置表单" });
25
+ }) : /* @__PURE__ */ i(r, { description: "该流程未配置表单" });
23
26
  }
24
27
  //#endregion
25
- export { a as InstanceFormPanel };
28
+ export { s as InstanceFormPanel };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import e from "dayjs";
3
3
  //#region src/components/format.ts
4
4
  function t(t) {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { DynamicIcon as e } from "@vef-framework-react/components";
3
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
4
4
  //#region src/components/icon.tsx
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { formatDurationSeconds as e, formatTimestamp as t } from "./format.js";
3
3
  import { ACTIVITY_ACTION_LABELS as n, BINDING_PROJECTION_STATUS_LABELS as r, BINDING_PROJECTION_STATUS_OPTIONS as i, INSTANCE_STATUS_LABELS as a, INSTANCE_STATUS_OPTIONS as o, NODE_PROGRESS_LABELS as s, PROCESS_TASK_ACTION_LABELS as c, TASK_STATUS_LABELS as l, TASK_STATUS_OPTIONS as u, VERSION_STATUS_LABELS as d } from "./status/labels.js";
4
4
  import { BINDING_PROJECTION_STATUS_COLORS as f, INSTANCE_STATUS_COLORS as p, NODE_PROGRESS_COLORS as m, TASK_STATUS_COLORS as h, VERSION_STATUS_COLORS as g } from "./status/colors.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { useApprovalPlugins as e } from "../../plugins/index.js";
3
3
  import { Select as t } from "@vef-framework-react/components";
4
4
  import { jsx as n } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  //#region src/components/status/colors.ts
3
3
  var e = {
4
4
  running: "processing",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { BINDING_PROJECTION_STATUS_LABELS as e, INSTANCE_STATUS_LABELS as t, NODE_PROGRESS_LABELS as n, TASK_STATUS_LABELS as r, VERSION_STATUS_LABELS as i } from "./labels.js";
3
3
  import { BINDING_PROJECTION_STATUS_COLORS as a, INSTANCE_STATUS_COLORS as o, NODE_PROGRESS_COLORS as s, TASK_STATUS_COLORS as c, VERSION_STATUS_COLORS as l } from "./colors.js";
4
4
  import { Tag as u } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  //#region src/components/status/labels.ts
3
3
  var e = {
4
4
  running: "审批中",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { formatTimestamp as e } from "../format.js";
3
3
  import { ACTIVITY_ACTION_LABELS as t } from "../status/labels.js";
4
4
  import { TaskStatusTag as n } from "../status/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { Avatar as e, Space as t, Text as n, Tooltip as r } from "@vef-framework-react/components";
3
3
  import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
4
4
  //#region src/components/user/index.tsx
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
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 { 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 };
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.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { APPROVAL_PERMISSIONS as e } from "../../permissions.js";
3
3
  import { InstancesPanel as t } from "./instances.js";
4
4
  import { MetricsPanel as n } from "./metrics.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatTimestamp as t } from "../../components/format.js";
4
4
  import { INSTANCE_STATUS_OPTIONS as n } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
3
  import { formatDurationSeconds as t, formatTimestamp as n } from "../../components/format.js";
4
4
  import { BINDING_PROJECTION_STATUS_LABELS as r, INSTANCE_STATUS_LABELS as i, TASK_STATUS_LABELS as a } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
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.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
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.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { FlowIcon as t } from "../../components/icon.js";
4
4
  import { Flex as n, Tag as r, Text as i } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { Grid as e, useFormContext as t } from "@vef-framework-react/components";
3
3
  import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  import { z as i } from "@vef-framework-react/shared";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
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";
@@ -121,16 +121,22 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
121
121
  function E() {
122
122
  let { AppField: e } = p();
123
123
  return /* @__PURE__ */ v(e, {
124
- name: "id",
125
- children: (e) => /* @__PURE__ */ v(D, { editedId: e.state.value })
124
+ name: "tenantId",
125
+ children: (t) => /* @__PURE__ */ v(e, {
126
+ name: "id",
127
+ children: (e) => /* @__PURE__ */ v(D, {
128
+ editedId: e.state.value,
129
+ tenantId: t.state.value
130
+ })
131
+ })
126
132
  });
127
133
  }
128
- function D({ editedId: t }) {
129
- let n = e(), { data: s } = a({
130
- queryFn: n.findTree,
131
- queryKey: [n.findTree.key, {}]
134
+ function D({ editedId: t, tenantId: n }) {
135
+ let s = e(), { data: c } = a({
136
+ queryFn: s.findTree,
137
+ queryKey: [s.findTree.key, { tenantId: n }]
132
138
  });
133
- return /* @__PURE__ */ v(r, { treeOptions: o(() => i(s ?? [], t), [s, t]) });
139
+ return /* @__PURE__ */ v(r, { treeOptions: o(() => i(c ?? [], t), [c, t]) });
134
140
  }
135
141
  //#endregion
136
142
  export { T as ApprovalCategoryPage };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { Tag as t, Text as n } from "@vef-framework-react/components";
4
4
  import { jsx as r } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
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";
@@ -22,7 +22,7 @@ function u({ label: e, required: n, value: r, onChange: a }) {
22
22
  function d() {
23
23
  let { AppField: t } = s(), o = e(), { data: d } = r({
24
24
  queryFn: o.findTree,
25
- queryKey: [o.findTree.key, {}]
25
+ queryKey: [o.findTree.key, { includeShared: !0 }]
26
26
  }), f = i(() => n(d ?? []), [d]);
27
27
  return /* @__PURE__ */ l(a, {
28
28
  columnGap: "small",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { useDelegationApi as e } from "../../api/delegation-api.js";
3
3
  import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
4
4
  import { delegationColumns as n } from "./columns.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { FlowIcon as t } from "../../components/icon.js";
4
4
  import { Flex as n, LabelsDisplay as r, Tag as i, Text as a } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
2
  import { INSTANCE_STATUS_LABELS as e } from "../../../components/status/labels.js";
3
3
  import { PrincipalSelect as t } from "../../../components/principal/index.js";
4
4
  import { BUILTIN_INITIATOR_KINDS as n } from "../../../types/enums.js";
@@ -1,41 +1,23 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
- import { Alert as e, Stack as t, globalCssVars as n } from "@vef-framework-react/components";
3
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
4
- import { ApprovalFlowEditor as a } from "@vef-framework-react/approval-flow-editor";
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
+ import { globalCssVars as e } from "@vef-framework-react/components";
3
+ import { jsx as t } from "@emotion/react/jsx-runtime";
4
+ import { ApprovalFlowEditor as n } from "@vef-framework-react/approval-flow-editor";
5
5
  //#region src/pages/flow-page/designer/flow-step.tsx
6
- function o({ value: o, plugins: s, errors: c, onChange: l }) {
7
- return /* @__PURE__ */ i(t, {
8
- gap: 8,
6
+ function r({ value: r, plugins: i, onChange: a }) {
7
+ return /* @__PURE__ */ t("div", {
9
8
  style: {
10
9
  height: "100%",
11
- minHeight: 0
10
+ minHeight: 0,
11
+ border: `1px solid ${e.colorBorderSecondary}`,
12
+ borderRadius: 8,
13
+ overflow: "hidden"
12
14
  },
13
- children: [c.length > 0 && /* @__PURE__ */ r(e, {
14
- showIcon: !0,
15
- title: `流程校验未通过(${c.length} 项)`,
16
- type: "error",
17
- description: /* @__PURE__ */ r("ul", {
18
- style: {
19
- margin: 0,
20
- paddingInlineStart: 18
21
- },
22
- children: c.map((e, t) => /* @__PURE__ */ r("li", { children: e.message }, t))
23
- })
24
- }), /* @__PURE__ */ r("div", {
25
- style: {
26
- flex: 1,
27
- minHeight: 0,
28
- border: `1px solid ${n.colorBorderSecondary}`,
29
- borderRadius: 8,
30
- overflow: "hidden"
31
- },
32
- children: /* @__PURE__ */ r(a, {
33
- plugins: s,
34
- value: o,
35
- onChange: l
36
- })
37
- })]
15
+ children: /* @__PURE__ */ t(n, {
16
+ plugins: i,
17
+ value: r,
18
+ onChange: a
19
+ })
38
20
  });
39
21
  }
40
22
  //#endregion
41
- export { o as FlowStep };
23
+ export { r as FlowStep };
@@ -1,87 +1,76 @@
1
- /*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
2
- import { Alert as e, Flex as t, Segmented as n, Stack as r, Text as i, globalCssVars as a } from "@vef-framework-react/components";
3
- import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
4
- import { FormEditor as c } from "@vef-framework-react/form-editor";
1
+ /*! @vef-framework-react/approval v2.26.0 made by Venus | 2026-10-13T17:04:56.461Z */
2
+ import { useApprovalPlugins as e } from "../../../plugins/index.js";
3
+ import { toFormContextSources as t } from "../../../plugins/form-context.js";
4
+ import { useMemo as n } from "react";
5
+ import { Flex as r, Segmented as i, Stack as a, Text as o, globalCssVars as s } from "@vef-framework-react/components";
6
+ import { validateApprovalProjection as c } from "@vef-framework-react/approval-form-bridge";
7
+ import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
8
+ import { FormEditor as d } from "@vef-framework-react/form-editor";
5
9
  //#region src/pages/flow-page/designer/form-step.tsx
6
- var l = [{
10
+ var f = [{
7
11
  label: "JSON 存储",
8
12
  value: "json"
9
13
  }, {
10
14
  label: "独立表存储",
11
15
  value: "table"
12
16
  }];
13
- function u(e) {
17
+ function p(e) {
14
18
  return e === "json" || e === "table";
15
19
  }
16
- var d = {
20
+ var m = {
17
21
  json: "表单数据以 JSONB 存入实例表,字段可灵活增减,查询能力有限。",
18
22
  table: "表单数据投影到按版本生成的独立表(明细表各自成表),适合复杂查询与数据分析。"
19
23
  };
20
- function f({ storageMode: f, initialSchema: p, issues: m, registries: h, onStorageModeChange: g, onSchemaChange: _ }) {
21
- let v = m.filter((e) => e.severity === "error"), y = m.filter((e) => e.severity !== "error");
22
- return /* @__PURE__ */ s(r, {
24
+ function h({ storageMode: h, initialSchema: g, registries: _, onStorageModeChange: v, onSchemaChange: y }) {
25
+ let { dataSourceApis: b, dataSourceResolver: x, evaluators: S, formGlobals: C } = e(), w = n(() => t(C), [C]);
26
+ return /* @__PURE__ */ u(a, {
23
27
  gap: 8,
24
28
  style: {
25
29
  height: "100%",
26
30
  minHeight: 0
27
31
  },
28
- children: [
29
- /* @__PURE__ */ s(t, {
30
- align: "center",
31
- gap: "middle",
32
- wrap: "wrap",
33
- children: [
34
- /* @__PURE__ */ o(i, {
35
- type: "secondary",
36
- children: "存储模式"
37
- }),
38
- /* @__PURE__ */ o(n, {
39
- options: l,
40
- value: f,
41
- onChange: (e) => {
42
- u(e) && g(e);
43
- }
44
- }),
45
- /* @__PURE__ */ o(i, {
46
- style: { fontSize: a.fontSizeSm },
47
- type: "secondary",
48
- children: d[f]
49
- })
50
- ]
51
- }),
52
- v.length > 0 && /* @__PURE__ */ o(e, {
53
- showIcon: !0,
54
- title: `表单校验未通过(${v.length} 项)`,
55
- type: "error",
56
- description: /* @__PURE__ */ o("ul", {
57
- style: {
58
- margin: 0,
59
- paddingInlineStart: 18
60
- },
61
- children: v.map((e, t) => /* @__PURE__ */ o("li", { children: e.message }, t))
62
- })
63
- }),
64
- v.length === 0 && y.length > 0 && /* @__PURE__ */ o(e, {
65
- showIcon: !0,
66
- title: y.map((e) => e.message).join(";"),
67
- type: "warning"
68
- }),
69
- /* @__PURE__ */ o("div", {
70
- style: {
71
- flex: 1,
72
- minHeight: 0,
73
- border: `1px solid ${a.colorBorderSecondary}`,
74
- borderRadius: 8,
75
- overflow: "hidden"
76
- },
77
- children: /* @__PURE__ */ o(c, {
78
- initialSchema: p,
79
- registries: h,
80
- onSchemaChange: _
32
+ children: [/* @__PURE__ */ u(r, {
33
+ align: "center",
34
+ gap: "middle",
35
+ wrap: "wrap",
36
+ children: [
37
+ /* @__PURE__ */ l(o, {
38
+ type: "secondary",
39
+ children: "存储模式"
40
+ }),
41
+ /* @__PURE__ */ l(i, {
42
+ options: f,
43
+ value: h,
44
+ onChange: (e) => {
45
+ p(e) && v(e);
46
+ }
47
+ }),
48
+ /* @__PURE__ */ l(o, {
49
+ style: { fontSize: s.fontSizeSm },
50
+ type: "secondary",
51
+ children: m[h]
81
52
  })
53
+ ]
54
+ }), /* @__PURE__ */ l("div", {
55
+ style: {
56
+ flex: 1,
57
+ minHeight: 0,
58
+ border: `1px solid ${s.colorBorderSecondary}`,
59
+ borderRadius: 8,
60
+ overflow: "hidden"
61
+ },
62
+ children: /* @__PURE__ */ l(d, {
63
+ contextSources: w,
64
+ dataSourceApis: b,
65
+ dataSourceResolver: x,
66
+ evaluators: S,
67
+ initialSchema: g,
68
+ registries: _,
69
+ validate: c,
70
+ onSchemaChange: y
82
71
  })
83
- ]
72
+ })]
84
73
  });
85
74
  }
86
75
  //#endregion
87
- export { f as FormStep };
76
+ export { h as FormStep };