@vef-framework-react/approval 2.28.0 → 2.29.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/pages/flow-page/designer/form-step.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +7 -6
- package/dist/es/pages/flow-page/designer/index.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/es/pages/initiate-page/start-drawer.js +1 -1
- package/dist/es/pages/my-instances-page/index.js +1 -1
- package/dist/es/pages/task-center-page/index.js +1 -1
- 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 +1 -1
- package/dist/types/plugins/index.d.ts +9 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../plugins/index.cjs"),t=require("../../../plugins/form-context.cjs");let n=require("react"),r=require("@vef-framework-react/components"),i=require("@vef-framework-react/approval-form-bridge"),a=require("@emotion/react/jsx-runtime"),o=require("@vef-framework-react/form-editor");var s=[{label:`JSON 存储`,value:`json`},{label:`独立表存储`,value:`table`}];function c(e){return e===`json`||e===`table`}var l={json:`表单数据以 JSONB 存入实例表,字段可灵活增减,查询能力有限。`,table:`表单数据投影到按版本生成的独立表(明细表各自成表),适合复杂查询与数据分析。`};function u({storageMode:u,initialSchema:d,registries:f,onStorageModeChange:p,onSchemaChange:m}){let{
|
|
1
|
+
const e=require("../../../plugins/index.cjs"),t=require("../../../plugins/form-context.cjs");let n=require("react"),r=require("@vef-framework-react/components"),i=require("@vef-framework-react/approval-form-bridge"),a=require("@emotion/react/jsx-runtime"),o=require("@vef-framework-react/form-editor");var s=[{label:`JSON 存储`,value:`json`},{label:`独立表存储`,value:`table`}];function c(e){return e===`json`||e===`table`}var l={json:`表单数据以 JSONB 存入实例表,字段可灵活增减,查询能力有限。`,table:`表单数据投影到按版本生成的独立表(明细表各自成表),适合复杂查询与数据分析。`};function u({storageMode:u,initialSchema:d,registries:f,onStorageModeChange:p,onSchemaChange:m}){let{codeSets:h,dataSourceApis:g,dataSourceResolver:_,evaluators:v,formGlobals:y}=e.useApprovalPlugins(),b=(0,n.useMemo)(()=>t.toFormContextSources(y),[y]);return(0,a.jsxs)(r.Stack,{gap:8,style:{height:`100%`,minHeight:0},children:[(0,a.jsxs)(r.Flex,{align:`center`,gap:`middle`,wrap:`wrap`,children:[(0,a.jsx)(r.Text,{type:`secondary`,children:`存储模式`}),(0,a.jsx)(r.Segmented,{options:s,value:u,onChange:e=>{c(e)&&p(e)}}),(0,a.jsx)(r.Text,{style:{fontSize:r.globalCssVars.fontSizeSm},type:`secondary`,children:l[u]})]}),(0,a.jsx)(`div`,{style:{flex:1,minHeight:0,border:`1px solid ${r.globalCssVars.colorBorderSecondary}`,borderRadius:8,overflow:`hidden`},children:(0,a.jsx)(o.FormEditor,{codeSets:h,contextSources:b,dataSourceApis:g,dataSourceResolver:_,evaluators:v,initialSchema:d,registries:f,validate:i.validateApprovalProjection,onSchemaChange:m})})]})}exports.FormStep=u;
|
package/dist/es/api/admin-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./query.js";
|
|
3
3
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e } from "./query.js";
|
|
3
3
|
import { createApiRequest as t, useApiClient as n } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as r } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toCrudReadMeta as t } from "./query.js";
|
|
3
3
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
package/dist/es/api/flow-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./query.js";
|
|
3
3
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
package/dist/es/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./query.js";
|
|
3
3
|
import { useAdminApprovalApi as n } from "./admin-api.js";
|
|
4
4
|
import { useCategoryApi as r } from "./category-api.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e } from "./query.js";
|
|
3
3
|
import { createApiRequest as t, useApiClient as n } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as r } from "react";
|
package/dist/es/api/my-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./query.js";
|
|
3
3
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
package/dist/es/api/query.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { SYMBOL_PAGINATION as e } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/api/query.ts
|
|
4
4
|
var t = "/api";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useState as e } from "react";
|
|
3
3
|
import { Button as t, Modal as n } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { TASK_STATUS_LABELS as e } from "../status/labels.js";
|
|
3
3
|
import { isTaskStatus as t } from "../status/index.js";
|
|
4
4
|
import { ActionDialog as n, ActionFooter as r, useConfirm as i } from "../action-dialog/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../format.js";
|
|
4
4
|
import { ACTIVITY_ACTION_LABELS as n } from "../status/labels.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { InstanceDetailPanel as e } from "./index.js";
|
|
3
3
|
import { Drawer 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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
4
|
import { useApprovalPlugins as n } from "../../plugins/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { ViewerNode as e } from "./node.js";
|
|
3
3
|
import { useMemo as t } from "react";
|
|
4
4
|
import { globalCssVars as n } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { formatTimestamp as e } from "../format.js";
|
|
3
3
|
import { NODE_PROGRESS_LABELS as t } from "../status/labels.js";
|
|
4
4
|
import { collectNodePeople as n } from "./people.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { API_PATH as e, toPagedParams as t } from "./api/query.js";
|
|
3
3
|
import { useAdminApprovalApi as n } from "./api/admin-api.js";
|
|
4
4
|
import { useCategoryApi as r } from "./api/category-api.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { categoryColumns as n } from "./columns.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { PrincipalSelect as t } from "../../components/principal/index.js";
|
|
4
4
|
import { buildCategoryTreeOptions as n } from "../category-page/form.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
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";
|
|
@@ -22,7 +22,7 @@ var m = {
|
|
|
22
22
|
table: "表单数据投影到按版本生成的独立表(明细表各自成表),适合复杂查询与数据分析。"
|
|
23
23
|
};
|
|
24
24
|
function h({ storageMode: h, initialSchema: g, registries: _, onStorageModeChange: v, onSchemaChange: y }) {
|
|
25
|
-
let {
|
|
25
|
+
let { codeSets: b, dataSourceApis: x, dataSourceResolver: S, evaluators: C, formGlobals: w } = e(), T = n(() => t(w), [w]);
|
|
26
26
|
return /* @__PURE__ */ u(a, {
|
|
27
27
|
gap: 8,
|
|
28
28
|
style: {
|
|
@@ -60,10 +60,11 @@ function h({ storageMode: h, initialSchema: g, registries: _, onStorageModeChang
|
|
|
60
60
|
overflow: "hidden"
|
|
61
61
|
},
|
|
62
62
|
children: /* @__PURE__ */ l(d, {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
codeSets: b,
|
|
64
|
+
contextSources: T,
|
|
65
|
+
dataSourceApis: x,
|
|
66
|
+
dataSourceResolver: S,
|
|
67
|
+
evaluators: C,
|
|
67
68
|
initialSchema: g,
|
|
68
69
|
registries: _,
|
|
69
70
|
validate: c,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../../api/category-api.js";
|
|
3
3
|
import { useFlowApi as t } from "../../../api/flow-api.js";
|
|
4
4
|
import { toEditorPlugins as n, useApprovalPlugins as r } from "../../../plugins/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { initiatorsForSubmit as e } from "./types.js";
|
|
3
3
|
import { Card as t, Descriptions as n, Flex as r, Input as i, Labeled as a, LabelsDisplay as o, Stack as s, Switch as c, Table as l, Tag as u, Text as d, globalCssVars as f } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { useFlowApi as t } from "../../api/flow-api.js";
|
|
4
4
|
import { APPROVAL_PERMISSIONS as n } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { LabelFilterSelect as e, Select as t, useFormContext as n } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/flow-page/search.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useFlowApi as e } from "../../api/flow-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
4
|
import { VersionStatusTag as n } from "../../components/status/index.js";
|
package/dist/es/pages/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { ApprovalAdminPage as e } from "./admin-page/index.js";
|
|
3
3
|
import { ApprovalCategoryPage as t } from "./category-page/index.js";
|
|
4
4
|
import { ApprovalDelegationPage as n } from "./delegation-page/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useMyApprovalApi as e } from "../../api/my-api.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { StartInstanceDrawer as n } from "./start-drawer.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
4
|
import { InstanceFormPanel as n } from "../../components/form-panel/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
4
|
import { formatTimestamp as n } from "../../components/format.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { useMyApprovalApi as e } from "../../api/my-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../../components/format.js";
|
|
4
4
|
import { TaskStatusTag as n } from "../../components/status/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { INSTANCE_STATUS_OPTIONS as e, TASK_STATUS_LABELS as t } from "../../components/status/labels.js";
|
|
3
3
|
import { Col as n, DatePicker as r, Labeled as i, Row as a, Select as o, useFormContext as s } from "@vef-framework-react/components";
|
|
4
4
|
import { Fragment as c, jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
package/dist/es/permissions.js
CHANGED
package/dist/es/plugins/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { createContext as e, use as t, useMemo as n, useState as r } from "react";
|
|
3
3
|
import { createApprovalRegistries as i } from "@vef-framework-react/approval-form-bridge";
|
|
4
4
|
import { jsx as a } from "@emotion/react/jsx-runtime";
|
package/dist/es/types/enums.js
CHANGED
package/dist/es/types/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.29.0 made by Venus | 2026-10-15T10:13:02.725Z */
|
|
2
2
|
import { BUILTIN_INITIATOR_KINDS as e, FINAL_INSTANCE_STATUSES as t, isFinalInstanceStatus as n } from "./enums.js";
|
|
3
3
|
export { e as BUILTIN_INITIATOR_KINDS, t as FINAL_INSTANCE_STATUSES, n as isFinalInstanceStatus };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorPlugins, FormFieldDefinition, PickerProps } from '@vef-framework-react/approval-flow-editor';
|
|
2
|
-
import { DataSourceApi, DataSourceResolver, DeviceRegistries, LinkageEvaluators } from '@vef-framework-react/form-editor';
|
|
2
|
+
import { CodeSetDescriptor, DataSourceApi, DataSourceResolver, DeviceRegistries, LinkageEvaluators } from '@vef-framework-react/form-editor';
|
|
3
3
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
import { KindOptions } from '../types';
|
|
5
5
|
import { FormGlobalDefinition } from './form-context';
|
|
@@ -60,6 +60,14 @@ export interface ApprovalPlugins {
|
|
|
60
60
|
* listed here.
|
|
61
61
|
*/
|
|
62
62
|
dataSourceApis?: DataSourceApi[];
|
|
63
|
+
/**
|
|
64
|
+
* The host's catalog of data dictionaries. The form designer's 数据字典
|
|
65
|
+
* option source then offers a searchable picker instead of a key typed by
|
|
66
|
+
* hand. A pick stores the key alone: forms load their dictionaries through
|
|
67
|
+
* the application's `AppContext.codeSetQueryFn`, which must serve every key
|
|
68
|
+
* listed here.
|
|
69
|
+
*/
|
|
70
|
+
codeSets?: CodeSetDescriptor[];
|
|
63
71
|
/**
|
|
64
72
|
* Overrides for expression / script evaluation in form linkage and in
|
|
65
73
|
* data-source parameters bound to the form. Optional: the form runtime falls
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/approval",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Approval engine pages and runtime components for VEF framework",
|
|
6
6
|
"keywords": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@xyflow/react": "^12.11.1",
|
|
45
45
|
"dayjs": "^1.11.0",
|
|
46
46
|
"lucide-react": "^1.23.0",
|
|
47
|
-
"@vef-framework-react/approval-form-bridge": "2.
|
|
48
|
-
"@vef-framework-react/
|
|
49
|
-
"@vef-framework-react/
|
|
50
|
-
"@vef-framework-react/
|
|
51
|
-
"@vef-framework-react/
|
|
52
|
-
"@vef-framework-react/shared": "2.
|
|
47
|
+
"@vef-framework-react/approval-form-bridge": "2.29.0",
|
|
48
|
+
"@vef-framework-react/approval-flow-editor": "2.29.0",
|
|
49
|
+
"@vef-framework-react/core": "2.29.0",
|
|
50
|
+
"@vef-framework-react/form-editor": "2.29.0",
|
|
51
|
+
"@vef-framework-react/components": "2.29.0",
|
|
52
|
+
"@vef-framework-react/shared": "2.29.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"react": "^19.2.7"
|