@vef-framework-react/integration 2.13.1 → 2.15.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/code-map-page/entries-editor.cjs +1 -1
- package/dist/cjs/pages/code-map-page/form.cjs +1 -1
- package/dist/cjs/pages/contract-page/index.cjs +1 -1
- package/dist/cjs/pages/contract-page/search.cjs +1 -1
- package/dist/es/api/code-set-api.js +1 -1
- package/dist/es/api/crud-api.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/log-api.js +1 -1
- package/dist/es/api/ops-api.js +1 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/api/stats-api.js +1 -1
- package/dist/es/components/auth-params/index.js +1 -1
- package/dist/es/components/directory/index.js +1 -1
- package/dist/es/components/form-section/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/json-view/index.js +1 -1
- package/dist/es/components/params-editor/index.js +1 -1
- package/dist/es/components/script-doc/completions.js +1 -1
- package/dist/es/components/script-doc/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/test-connection/index.js +1 -1
- package/dist/es/components/wire-trace/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/pages/adapter-page/columns.js +1 -1
- package/dist/es/pages/adapter-page/form.js +1 -1
- package/dist/es/pages/adapter-page/helpers.js +1 -1
- package/dist/es/pages/adapter-page/index.js +1 -1
- package/dist/es/pages/adapter-page/search.js +1 -1
- package/dist/es/pages/code-map-page/columns.js +1 -1
- package/dist/es/pages/code-map-page/entries-editor.js +21 -14
- package/dist/es/pages/code-map-page/form.js +53 -47
- package/dist/es/pages/code-map-page/helpers.js +1 -1
- package/dist/es/pages/code-map-page/index.js +1 -1
- package/dist/es/pages/code-map-page/model.js +1 -1
- package/dist/es/pages/code-map-page/search.js +1 -1
- package/dist/es/pages/console-page/diagnostics.js +1 -1
- package/dist/es/pages/console-page/dry-run.js +1 -1
- package/dist/es/pages/console-page/index.js +1 -1
- package/dist/es/pages/console-page/log.js +1 -1
- package/dist/es/pages/console-page/stats.js +1 -1
- package/dist/es/pages/contract-page/columns.js +1 -1
- package/dist/es/pages/contract-page/form.js +1 -1
- package/dist/es/pages/contract-page/helpers.js +1 -1
- package/dist/es/pages/contract-page/index.js +38 -37
- package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
- package/dist/es/pages/contract-page/model.js +1 -1
- package/dist/es/pages/contract-page/search.js +30 -10
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/route-page/columns.js +1 -1
- package/dist/es/pages/route-page/form.js +1 -1
- package/dist/es/pages/route-page/helpers.js +1 -1
- package/dist/es/pages/route-page/index.js +1 -1
- package/dist/es/pages/route-page/search.js +1 -1
- package/dist/es/pages/system-page/columns.js +1 -1
- package/dist/es/pages/system-page/form.js +1 -1
- package/dist/es/pages/system-page/helpers.js +1 -1
- package/dist/es/pages/system-page/index.js +1 -1
- package/dist/es/pages/system-page/model.js +1 -1
- package/dist/es/pages/system-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/pages/code-map-page/entries-editor.d.ts +26 -1
- package/dist/types/pages/contract-page/search.d.ts +11 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./model.cjs");let t=require("react"),n=require("@vef-framework-react/components"),r=require("@emotion/react/jsx-runtime");function i(t){return t.map((t,n)=>({id:`row-${n}`,canonical:e.formatCodeValue(t.canonical),canonicalAliases:(t.canonicalAliases??[]).map(t=>e.formatCodeValue(t)),external:e.formatCodeValue(t.external),externalAliases:(t.externalAliases??[]).map(t=>e.formatCodeValue(t))}))}function a(t){let n=[];for(let r of t){if(!r.canonical&&!r.external&&r.canonicalAliases.length===0&&r.externalAliases.length===0)continue;let t={canonical:e.parseCodeValue(r.canonical),external:e.parseCodeValue(r.external)};r.canonicalAliases.length>0&&(t.canonicalAliases=r.canonicalAliases.map(t=>e.parseCodeValue(t))),r.externalAliases.length>0&&(t.externalAliases=r.externalAliases.map(t=>e.parseCodeValue(t))),n.push(t)}return n}var o=[];function s(e,t){return JSON.stringify(e)===JSON.stringify(t)}function
|
|
1
|
+
const e=require("./model.cjs");let t=require("react"),n=require("@vef-framework-react/components"),r=require("@emotion/react/jsx-runtime");function i(t){return t.map((t,n)=>({id:`row-${n}`,canonical:e.formatCodeValue(t.canonical),canonicalAliases:(t.canonicalAliases??[]).map(t=>e.formatCodeValue(t)),external:e.formatCodeValue(t.external),externalAliases:(t.externalAliases??[]).map(t=>e.formatCodeValue(t))}))}function a(t){let n=[];for(let r of t){if(!r.canonical&&!r.external&&r.canonicalAliases.length===0&&r.externalAliases.length===0)continue;let t={canonical:e.parseCodeValue(r.canonical),external:e.parseCodeValue(r.external)};r.canonicalAliases.length>0&&(t.canonicalAliases=r.canonicalAliases.map(t=>e.parseCodeValue(t))),r.externalAliases.length>0&&(t.externalAliases=r.externalAliases.map(t=>e.parseCodeValue(t))),n.push(t)}return n}var o=[];function s(e,t){return JSON.stringify(e)===JSON.stringify(t)}var c=[];function l({value:e,onChange:l,codeSuggestions:u=c}){let[d,f]=(0,t.useState)(()=>i(e??[])),p=(0,t.useRef)(0),m=(0,t.useRef)(e??o),h=(0,t.useMemo)(()=>[(0,n.createEditableColumn)(`canonical`,{title:`标准值`,width:120,renderEditor:e=>(0,r.jsx)(e.AutoComplete,{noWrapper:!0,preserveEmptyString:!0,options:u,placeholder:`如 1`,popupMatchSelectWidth:!1})}),(0,n.createEditableColumn)(`canonicalAliases`,{title:`标准别名`,renderEditor:e=>(0,r.jsx)(e.Select,{noWrapper:!0,mode:`tags`,open:!1,placeholder:`回车添加,仅参与匹配`,style:{width:`100%`}})}),(0,n.createEditableColumn)(`external`,{title:`外部值`,width:120,renderEditor:e=>(0,r.jsx)(e.AutoComplete,{noWrapper:!0,preserveEmptyString:!0,options:u,placeholder:`如 M`,popupMatchSelectWidth:!1})}),(0,n.createEditableColumn)(`externalAliases`,{title:`外部别名`,renderEditor:e=>(0,r.jsx)(e.Select,{noWrapper:!0,mode:`tags`,open:!1,placeholder:`回车添加,仅参与匹配`,style:{width:`100%`}})})],[u]),g=e??o;return g!==m.current&&!s(g,a(d))&&(m.current=g,f(i(g))),(0,r.jsx)(n.EditableTable,{canDelete:!0,creatable:!0,columns:h,locale:{emptyText:`暂无映射条目`},rowKey:`id`,size:`small`,value:d,createRecord:()=>({id:`new-${p.current++}`,canonical:``,canonicalAliases:[],external:``,externalAliases:[]}),onChange:e=>{f(e),l?.(a(e))}})}exports.CodeMapEntriesEditor=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../api/code-set-api.cjs"),t=require("../../components/directory/index.cjs"),n=require("./model.cjs"),r=require("./entries-editor.cjs");let i=require("@vef-framework-react/core"),a=require("react"),o=require("@vef-framework-react/components"),s=require("@emotion/react/jsx-runtime"),c=require("@vef-framework-react/shared");var l=c.z.string(`请选择所属系统`).min(1,`请选择所属系统`),u=c.z.string(`请输入码集标识`).min(1,`请输入码集标识`).max(128,`最多 128 个字符`).regex(n.CODE_SET_PATTERN,`以字母或数字开头结尾,中间可含 _ . -`),d=c.z.string(`请输入码表名称`).min(1,`请输入码表名称`).max(128,`最多 128 个字符`);function f({value:e}){let t=n.validateCodeMapEntries(e);return t.length>0?t.join(`;`):void 0}function p({value:e}){return e.trim()?void 0:`兜底策略需要填写该值`}var m=[{label:`未收录报错(默认,缺映射即失败)`,value:`reject`},{label:`透传原值`,value:`passthrough`},{label:`返回兜底值`,value:`fallback`}];function h(
|
|
1
|
+
const e=require("../../api/code-set-api.cjs"),t=require("../../components/directory/index.cjs"),n=require("./model.cjs"),r=require("./entries-editor.cjs");let i=require("@vef-framework-react/core"),a=require("react"),o=require("@vef-framework-react/components"),s=require("@emotion/react/jsx-runtime"),c=require("@vef-framework-react/shared");var l=c.z.string(`请选择所属系统`).min(1,`请选择所属系统`),u=c.z.string(`请输入码集标识`).min(1,`请输入码集标识`).max(128,`最多 128 个字符`).regex(n.CODE_SET_PATTERN,`以字母或数字开头结尾,中间可含 _ . -`),d=c.z.string(`请输入码表名称`).min(1,`请输入码表名称`).max(128,`最多 128 个字符`);function f({value:e}){let t=n.validateCodeMapEntries(e);return t.length>0?t.join(`;`):void 0}function p({value:e}){return e.trim()?void 0:`兜底策略需要填写该值`}var m=[{label:`未收录报错(默认,缺映射即失败)`,value:`reject`},{label:`透传原值`,value:`passthrough`},{label:`返回兜底值`,value:`fallback`}];function h(t,n){let r=e.useCodeSetApi(),o=n&&t.length>0,{data:s}=(0,i.useQuery)({enabled:o,queryFn:r.listCodes,queryKey:[r.listCodes.key,{codeSet:t}]});return(0,a.useMemo)(()=>!o||!s?.supported||!s.codes?.length?[]:s.codes.map(e=>({label:`${e.code} = ${e.label}`,value:e.code})),[s,o])}function g({codeSet:e,supported:t,value:n,onChange:i}){let a=h(e,t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.CodeMapEntriesEditor,{codeSuggestions:a,value:n,onChange:i}),a.length>0&&(0,s.jsxs)(o.Text,{type:`secondary`,children:[`标准值参考:`,a.map(e=>e.label).join(`,`)]})]})}function _({scene:n}){let r=(0,o.useFormContext)(),{AppField:c}=r,h=t.useSystemDirectory(),_=e.useCodeSetApi(),{data:v,isError:y,isLoading:b}=(0,i.useQuery)({queryFn:_.listCodeSets,queryKey:[_.listCodeSets.key,{}]}),x=n===`create`,S=v?.supported===!0,C=(0,a.useMemo)(()=>(v?.codeSets??[]).map(e=>({label:`${e.name}(${e.codeSet})`,value:e.codeSet})),[v]);return(0,s.jsxs)(o.Grid,{columnGap:`small`,children:[(0,s.jsx)(o.Grid.Item,{span:24,children:(0,s.jsx)(c,{name:`systemId`,validators:{onChange:l},children:e=>(0,s.jsx)(e.Select,{required:!0,disabled:!x,label:`所属系统`,loading:h.loading,options:h.options,placeholder:`选择外部系统`})})}),(0,s.jsx)(o.Grid.Item,{span:12,children:(0,s.jsx)(c,{name:`codeSet`,validators:{onChange:u},children:e=>!x||v?.supported===!1?(0,s.jsx)(e.Input,{required:!0,disabled:!x,extra:`适配器脚本以 codes.toExternal('<码集>', …) 引用`,label:`码集标识`,placeholder:`如 gender`}):(0,s.jsx)(e.Select,{required:!0,disabled:b||y,label:`标准码集`,loading:b,options:C,status:y?`error`:void 0,extra:y?`标准码集加载失败,请稍后重试`:`从本系统已注册的标准码集中选择,自动填充码表名称`,placeholder:b?`正在加载标准码集…`:y?`标准码集加载失败`:C.length===0?`暂无可用标准码集`:`选择标准码集`,onSelect:e=>{let t=v?.codeSets?.find(t=>t.codeSet===e);t&&r.setFieldValue(`name`,t.name)}})})}),(0,s.jsx)(o.Grid.Item,{span:12,children:(0,s.jsx)(c,{name:`name`,validators:{onChange:d},children:e=>(0,s.jsx)(e.Input,{required:!0,label:`码表名称`,placeholder:`如 性别`})})}),(0,s.jsx)(o.Grid.Item,{span:24,children:(0,s.jsx)(c,{name:`entries`,validators:{onChange:f},children:e=>(0,s.jsxs)(o.Labeled,{hint:`别名仅参与匹配,转换输出始终为主值;数字与 true/false 按 JSON 类型存储,需存为字面量字符串时加英文引号(如 "1")`,label:`映射条目`,children:[(0,s.jsx)(r.Subscribe,{selector:e=>e.values.codeSet,children:t=>(0,s.jsx)(g,{codeSet:t,supported:S,value:e.state.value,onChange:e.handleChange})}),e.state.meta.errors.length>0&&(0,s.jsx)(o.Text,{type:`danger`,children:String(e.state.meta.errors[0])})]})})}),(0,s.jsx)(o.Grid.Item,{span:24,children:(0,s.jsx)(c,{name:`onUnmapped`,children:e=>(0,s.jsx)(e.Select,{required:!0,extra:`脚本可通过 { fallback: … } / { passthrough: true } / { reject: true } 按调用覆盖`,label:`未收录策略`,options:m})})}),(0,s.jsx)(r.Subscribe,{selector:e=>e.values.onUnmapped,children:e=>e===`fallback`?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Grid.Item,{span:12,children:(0,s.jsx)(c,{name:`fallbackCanonical`,validators:{onChange:p},children:e=>(0,s.jsx)(e.Input,{required:!0,extra:`toCanonical 未命中时返回的标准侧值`,label:`标准侧兜底值`,placeholder:`如 0`})})}),(0,s.jsx)(o.Grid.Item,{span:12,children:(0,s.jsx)(c,{name:`fallbackExternal`,validators:{onChange:p},children:e=>(0,s.jsx)(e.Input,{required:!0,extra:`toExternal 未命中时返回的外部侧值`,label:`外部侧兜底值`,placeholder:`如 U`})})})]}):null}),(0,s.jsx)(o.Grid.Item,{span:24,children:(0,s.jsx)(c,{name:`isEnabled`,children:e=>(0,s.jsx)(e.Bool,{label:`启用`,variant:`switch`})})})]})}exports.CodeMapForm=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../api/crud-api.cjs"),t=require("../../permissions.cjs"),n=require("./columns.cjs"),r=require("./form.cjs"),i=require("./model.cjs"),a=require("./helpers.cjs"),o=require("./search.cjs");let s=require("@vef-framework-react/components"),c=require("@emotion/react/jsx-runtime"),l=require("lucide-react");var u={xxs:`100vw`,md:`90vw`,xl:920};function d({permissions:d,columnStorageKey:f=`integration.contract`,title:p}){let m=e.useContractApi(),h=a.useContractFormMutations(),g={...t.INTEGRATION_PERMISSIONS.contract,...d};return(0,c.jsx)(s.CrudPage,{rowSelection:!0,basicSearch:(0,c.jsx)(o.ContractSearchFields,{}),columnSettings:{storageKey:f},deleteManyMutationFn:m.removeMany,deleteMutationFn:m.remove,formLayout:{layout:`vertical`},formMutationFns:h,queryFn:m.findPage,renderForm:e=>(0,c.jsx)(r.ContractForm,{scene:e}),rowKey:`id`,sceneDefaultFormValues:{create:i.CONTRACT_FORM_DEFAULTS},tableColumns:n.contractColumns,title:p,operationColumn:{width:160,render(e){return(0,c.jsx)(a.ContractOperationButtonGroup,{selector:e=>[e.openForm,e.delete,e.refetchQuery],children:([t,n,r])=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.OperationButton,{color:`primary`,icon:(0,c.jsx)(s.Icon,{component:l.EditIcon}),requiredPermissions:g.update,onClick:()=>t({scene:`update`,values:i.contractToFormValues(e),title:`编辑契约`,mode:`drawer`,width:u}),children:`编辑`}),(0,c.jsx)(s.OperationButton,{confirmable:!0,color:`danger`,confirmDescription:`确定删除该契约?被路由或适配器引用时无法删除。`,icon:(0,c.jsx)(s.Icon,{component:l.TrashIcon}),requiredPermissions:g.delete,onClick:async()=>{try{await n(e),r()}catch{}},children:`删除`})]})})}},toolbarActions:(0,c.jsx)(a.ContractActionButtonGroup,{selector:e=>[e.openForm,e.isQueryFetching,e.selectedRows,e.deleteMany,e.refetchQuery],children:([e,t,n,r,i])=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.PermissionGate,{requiredPermissions:g.create,children:(0,c.jsx)(s.ActionButton,{icon:(0,c.jsx)(s.Icon,{component:l.PlusIcon}),type:`primary`,onClick:()=>e({scene:`create`,title:`新增契约`,mode:`drawer`,width:u}),children:`新增契约`})}),(0,c.jsx)(s.PermissionGate,{requiredPermissions:g.delete,children:(0,c.jsx)(s.ActionButton,{confirmable:!0,danger:!0,confirmDescription:`确定批量删除选中的契约?`,confirmMode:`dialog`,disabled:t||n.length===0,icon:(0,c.jsx)(s.Icon,{component:l.TrashIcon}),onClick:async()=>{try{await r(n),i()}catch{}},children:`批量删除`})})]})})})}exports.IntegrationContractPage=d;
|
|
1
|
+
const e=require("../../api/crud-api.cjs"),t=require("../../permissions.cjs"),n=require("./columns.cjs"),r=require("./form.cjs"),i=require("./model.cjs"),a=require("./helpers.cjs"),o=require("./search.cjs");let s=require("@vef-framework-react/components"),c=require("@emotion/react/jsx-runtime"),l=require("lucide-react");var u={xxs:`100vw`,md:`90vw`,xl:920};function d({permissions:d,columnStorageKey:f=`integration.contract`,title:p}){let m=e.useContractApi(),h=a.useContractFormMutations(),g={...t.INTEGRATION_PERMISSIONS.contract,...d};return(0,c.jsx)(s.CrudPage,{rowSelection:!0,advancedSearch:(0,c.jsx)(o.ContractAdvancedSearchFields,{}),basicSearch:(0,c.jsx)(o.ContractSearchFields,{}),columnSettings:{storageKey:f},deleteManyMutationFn:m.removeMany,deleteMutationFn:m.remove,formLayout:{layout:`vertical`},formMutationFns:h,queryFn:m.findPage,renderForm:e=>(0,c.jsx)(r.ContractForm,{scene:e}),rowKey:`id`,sceneDefaultFormValues:{create:i.CONTRACT_FORM_DEFAULTS},tableColumns:n.contractColumns,title:p,operationColumn:{width:160,render(e){return(0,c.jsx)(a.ContractOperationButtonGroup,{selector:e=>[e.openForm,e.delete,e.refetchQuery],children:([t,n,r])=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.OperationButton,{color:`primary`,icon:(0,c.jsx)(s.Icon,{component:l.EditIcon}),requiredPermissions:g.update,onClick:()=>t({scene:`update`,values:i.contractToFormValues(e),title:`编辑契约`,mode:`drawer`,width:u}),children:`编辑`}),(0,c.jsx)(s.OperationButton,{confirmable:!0,color:`danger`,confirmDescription:`确定删除该契约?被路由或适配器引用时无法删除。`,icon:(0,c.jsx)(s.Icon,{component:l.TrashIcon}),requiredPermissions:g.delete,onClick:async()=>{try{await n(e),r()}catch{}},children:`删除`})]})})}},toolbarActions:(0,c.jsx)(a.ContractActionButtonGroup,{selector:e=>[e.openForm,e.isQueryFetching,e.selectedRows,e.deleteMany,e.refetchQuery],children:([e,t,n,r,i])=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.PermissionGate,{requiredPermissions:g.create,children:(0,c.jsx)(s.ActionButton,{icon:(0,c.jsx)(s.Icon,{component:l.PlusIcon}),type:`primary`,onClick:()=>e({scene:`create`,title:`新增契约`,mode:`drawer`,width:u}),children:`新增契约`})}),(0,c.jsx)(s.PermissionGate,{requiredPermissions:g.delete,children:(0,c.jsx)(s.ActionButton,{confirmable:!0,danger:!0,confirmDescription:`确定批量删除选中的契约?`,confirmMode:`dialog`,disabled:t||n.length===0,icon:(0,c.jsx)(s.Icon,{component:l.TrashIcon}),onClick:async()=>{try{await r(n),i()}catch{}},children:`批量删除`})})]})})})}exports.IntegrationContractPage=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=require("@vef-framework-react/components"),t=require("@emotion/react/jsx-runtime");function n(){let{AppField:n}=(0,e.useFormContext)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{name:`code`,children:e=>(0,t.jsx)(e.Input,{allowClear:!0,noWrapper:!0,placeholder:`契约编码`})}),(0,t.jsx)(n,{name:`name`,children:e=>(0,t.jsx)(e.Input,{allowClear:!0,noWrapper:!0,placeholder:`契约名称`})})]})}exports.ContractSearchFields=n;
|
|
1
|
+
let e=require("@vef-framework-react/components"),t=require("@emotion/react/jsx-runtime");function n(){let{AppField:n}=(0,e.useFormContext)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{name:`code`,children:e=>(0,t.jsx)(e.Input,{allowClear:!0,noWrapper:!0,placeholder:`契约编码`})}),(0,t.jsx)(n,{name:`name`,children:e=>(0,t.jsx)(e.Input,{allowClear:!0,noWrapper:!0,placeholder:`契约名称`})})]})}function r(){let{AppField:n}=(0,e.useFormContext)();return(0,t.jsx)(e.Row,{gutter:[`var(--vef-spacing-md)`,`var(--vef-spacing-md)`],children:(0,t.jsx)(e.Col,{xs:24,children:(0,t.jsx)(n,{name:`labels`,children:n=>(0,t.jsx)(e.Labeled,{hint:`每对都要相等才命中(多对之间是「且」);未打标签的契约不会出现在结果里`,label:`标签`,children:(0,t.jsx)(e.LabelsEditor,{value:n.state.value,onChange:n.handleChange})})})})})}exports.ContractAdvancedSearchFields=r,exports.ContractSearchFields=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
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/crud-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e, splitQueryParams 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/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e, splitQueryParams as t } from "./query.js";
|
|
3
3
|
import { useCodeSetApi as n } from "./code-set-api.js";
|
|
4
4
|
import { createCrudApi as r, useAdapterApi as i, useCodeMapApi as a, useContractApi as o, useRouteApi as s, useSystemApi as c } from "./crud-api.js";
|
package/dist/es/api/log-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e, splitQueryParams 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/ops-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
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/query.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { SYMBOL_PAGINATION as e } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/api/query.ts
|
|
4
4
|
var t = "/api";
|
package/dist/es/api/stats-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
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/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { ParamsEditor as e } from "../params-editor/index.js";
|
|
3
3
|
import { Grid as t, Input as n, Labeled as r, Stack as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { createApiRequest as t, useApiClient as n, useQuery as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { Flex as e, Stack as t, Text as n, globalCssVars as r } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { css as o } from "@emotion/react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { ParamsEditor as e } from "./params-editor/index.js";
|
|
3
3
|
import { AuthParamsFields as t, pruneAuthParams as n, resolveAuthParamsSpec as r } from "./auth-params/index.js";
|
|
4
4
|
import { useContractDirectory as i, useSystemDirectory as a } from "./directory/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { CodeEditor as e } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/components/json-view/index.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useMemo as e, useRef as t, useState as n } from "react";
|
|
3
3
|
import { EditableTable as r, createEditableColumn as i } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
//#region src/components/script-doc/completions.ts
|
|
3
3
|
var e = "返回响应对象:status / statusText / ok / url / headers / body / text() / json() / arrayBuffer()", t = {
|
|
4
4
|
label: "system",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { Flex as e, Icon as t, Popover as n, Stack as r, Text as i, globalCssVars as a } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { css as l } from "@emotion/react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { DIRECTION_COLORS as e, FAILURE_KIND_COLORS as t, ROUTE_FINDING_SEVERITY as n } from "./colors.js";
|
|
3
3
|
import { DIRECTION_LABELS as r, FAILURE_KIND_LABELS as i, ROUTE_FINDING_KIND_LABELS as a } from "./labels.js";
|
|
4
4
|
import { Tag as o } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { DIRECTIONS as e } from "../../types/enums.js";
|
|
3
3
|
//#region src/components/status/labels.ts
|
|
4
4
|
var t = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useOpsApi as e } from "../../api/ops-api.js";
|
|
3
3
|
import { useMutation as t } from "@vef-framework-react/core";
|
|
4
4
|
import { useEffect as n, useState as r } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useMemo as e } from "react";
|
|
3
3
|
import { CodeEditor as t, Empty as n, Flex as r, Stack as i, Tag as a, Text as o, Timeline as s, globalCssVars as c } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e, splitQueryParams as t } from "./api/query.js";
|
|
3
3
|
import { useCodeSetApi as n } from "./api/code-set-api.js";
|
|
4
4
|
import { createCrudApi as r, useAdapterApi as i, useCodeMapApi as a, useContractApi as o, useRouteApi as s, useSystemApi as c } from "./api/crud-api.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { DirectionTag as e, EnabledTag as t } from "../../components/status/index.js";
|
|
3
3
|
import { Text as n, globalCssVars as r } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useContractDirectory as e, useSystemDirectory as t } from "../../components/directory/index.js";
|
|
3
3
|
import { ScriptDocLabel as n } from "../../components/script-doc/index.js";
|
|
4
4
|
import { adapterScriptDoc as r } from "../../components/script-doc/completions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { createCrudKit as e } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/pages/adapter-page/helpers.ts
|
|
4
4
|
var { OperationButtonGroup: t, ActionButtonGroup: n } = e();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useAdapterApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as r } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useContractDirectory as e, useSystemDirectory as t } from "../../components/directory/index.js";
|
|
3
3
|
import { DIRECTION_OPTIONS as n } from "../../components/status/labels.js";
|
|
4
4
|
import { useFormContext as r } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { UNMAPPED_POLICY_LABELS as n } from "./model.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { formatCodeValue as e, parseCodeValue as t } from "./model.js";
|
|
3
3
|
import { useMemo as n, useRef as r, useState as i } from "react";
|
|
4
4
|
import { EditableTable as a, createEditableColumn as o } from "@vef-framework-react/components";
|
|
@@ -29,14 +29,18 @@ var u = [];
|
|
|
29
29
|
function d(e, t) {
|
|
30
30
|
return JSON.stringify(e) === JSON.stringify(t);
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
var f = [];
|
|
33
|
+
function p({ value: e, onChange: t, codeSuggestions: p = f }) {
|
|
34
|
+
let [m, h] = i(() => c(e ?? [])), g = r(0), _ = r(e ?? u), v = n(() => [
|
|
34
35
|
o("canonical", {
|
|
35
36
|
title: "标准值",
|
|
36
37
|
width: 120,
|
|
37
|
-
renderEditor: (e) => /* @__PURE__ */ s(e.
|
|
38
|
+
renderEditor: (e) => /* @__PURE__ */ s(e.AutoComplete, {
|
|
38
39
|
noWrapper: !0,
|
|
39
|
-
|
|
40
|
+
preserveEmptyString: !0,
|
|
41
|
+
options: p,
|
|
42
|
+
placeholder: "如 1",
|
|
43
|
+
popupMatchSelectWidth: !1
|
|
40
44
|
})
|
|
41
45
|
}),
|
|
42
46
|
o("canonicalAliases", {
|
|
@@ -52,9 +56,12 @@ function f({ value: e, onChange: t }) {
|
|
|
52
56
|
o("external", {
|
|
53
57
|
title: "外部值",
|
|
54
58
|
width: 120,
|
|
55
|
-
renderEditor: (e) => /* @__PURE__ */ s(e.
|
|
59
|
+
renderEditor: (e) => /* @__PURE__ */ s(e.AutoComplete, {
|
|
56
60
|
noWrapper: !0,
|
|
57
|
-
|
|
61
|
+
preserveEmptyString: !0,
|
|
62
|
+
options: p,
|
|
63
|
+
placeholder: "如 M",
|
|
64
|
+
popupMatchSelectWidth: !1
|
|
58
65
|
})
|
|
59
66
|
}),
|
|
60
67
|
o("externalAliases", {
|
|
@@ -67,26 +74,26 @@ function f({ value: e, onChange: t }) {
|
|
|
67
74
|
style: { width: "100%" }
|
|
68
75
|
})
|
|
69
76
|
})
|
|
70
|
-
], []),
|
|
71
|
-
return
|
|
77
|
+
], [p]), y = e ?? u;
|
|
78
|
+
return y !== _.current && !d(y, l(m)) && (_.current = y, h(c(y))), /* @__PURE__ */ s(a, {
|
|
72
79
|
canDelete: !0,
|
|
73
80
|
creatable: !0,
|
|
74
|
-
columns:
|
|
81
|
+
columns: v,
|
|
75
82
|
locale: { emptyText: "暂无映射条目" },
|
|
76
83
|
rowKey: "id",
|
|
77
84
|
size: "small",
|
|
78
|
-
value:
|
|
85
|
+
value: m,
|
|
79
86
|
createRecord: () => ({
|
|
80
|
-
id: `new-${
|
|
87
|
+
id: `new-${g.current++}`,
|
|
81
88
|
canonical: "",
|
|
82
89
|
canonicalAliases: [],
|
|
83
90
|
external: "",
|
|
84
91
|
externalAliases: []
|
|
85
92
|
}),
|
|
86
93
|
onChange: (e) => {
|
|
87
|
-
|
|
94
|
+
h(e), t?.(l(e));
|
|
88
95
|
}
|
|
89
96
|
});
|
|
90
97
|
}
|
|
91
98
|
//#endregion
|
|
92
|
-
export {
|
|
99
|
+
export { p as CodeMapEntriesEditor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useCodeSetApi as e } from "../../api/code-set-api.js";
|
|
3
3
|
import { useSystemDirectory as t } from "../../components/directory/index.js";
|
|
4
4
|
import { CODE_SET_PATTERN as n, validateCodeMapEntries as r } from "./model.js";
|
|
@@ -31,65 +31,76 @@ var b = [
|
|
|
31
31
|
value: "fallback"
|
|
32
32
|
}
|
|
33
33
|
];
|
|
34
|
-
function x(
|
|
35
|
-
let r = e(), i = n && t.length > 0, { data:
|
|
34
|
+
function x(t, n) {
|
|
35
|
+
let r = e(), i = n && t.length > 0, { data: s } = a({
|
|
36
36
|
enabled: i,
|
|
37
37
|
queryFn: r.listCodes,
|
|
38
38
|
queryKey: [r.listCodes.key, { codeSet: t }]
|
|
39
39
|
});
|
|
40
|
-
return !i || !
|
|
40
|
+
return o(() => !i || !s?.supported || !s.codes?.length ? [] : s.codes.map((e) => ({
|
|
41
|
+
label: `${e.code} = ${e.label}`,
|
|
42
|
+
value: e.code
|
|
43
|
+
})), [s, i]);
|
|
44
|
+
}
|
|
45
|
+
function S({ codeSet: e, supported: t, value: n, onChange: r }) {
|
|
46
|
+
let a = x(e, t);
|
|
47
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(i, {
|
|
48
|
+
codeSuggestions: a,
|
|
49
|
+
value: n,
|
|
50
|
+
onChange: r
|
|
51
|
+
}), a.length > 0 && /* @__PURE__ */ p(l, {
|
|
41
52
|
type: "secondary",
|
|
42
|
-
children: ["标准值参考:",
|
|
43
|
-
});
|
|
53
|
+
children: ["标准值参考:", a.map((e) => e.label).join(",")]
|
|
54
|
+
})] });
|
|
44
55
|
}
|
|
45
|
-
function
|
|
46
|
-
let r = u(), { AppField:
|
|
47
|
-
queryFn:
|
|
48
|
-
queryKey: [
|
|
49
|
-
}),
|
|
56
|
+
function C({ scene: n }) {
|
|
57
|
+
let r = u(), { AppField: i } = r, m = t(), x = e(), { data: C, isError: w, isLoading: T } = a({
|
|
58
|
+
queryFn: x.listCodeSets,
|
|
59
|
+
queryKey: [x.listCodeSets.key, {}]
|
|
60
|
+
}), E = n === "create", D = C?.supported === !0, O = o(() => (C?.codeSets ?? []).map((e) => ({
|
|
50
61
|
label: `${e.name}(${e.codeSet})`,
|
|
51
62
|
value: e.codeSet
|
|
52
|
-
})), [
|
|
63
|
+
})), [C]);
|
|
53
64
|
return /* @__PURE__ */ p(s, {
|
|
54
65
|
columnGap: "small",
|
|
55
66
|
children: [
|
|
56
67
|
/* @__PURE__ */ f(s.Item, {
|
|
57
68
|
span: 24,
|
|
58
|
-
children: /* @__PURE__ */ f(
|
|
69
|
+
children: /* @__PURE__ */ f(i, {
|
|
59
70
|
name: "systemId",
|
|
60
71
|
validators: { onChange: h },
|
|
61
72
|
children: (e) => /* @__PURE__ */ f(e.Select, {
|
|
62
73
|
required: !0,
|
|
63
|
-
disabled: !
|
|
74
|
+
disabled: !E,
|
|
64
75
|
label: "所属系统",
|
|
65
|
-
loading:
|
|
66
|
-
options:
|
|
76
|
+
loading: m.loading,
|
|
77
|
+
options: m.options,
|
|
67
78
|
placeholder: "选择外部系统"
|
|
68
79
|
})
|
|
69
80
|
})
|
|
70
81
|
}),
|
|
71
82
|
/* @__PURE__ */ f(s.Item, {
|
|
72
83
|
span: 12,
|
|
73
|
-
children: /* @__PURE__ */ f(
|
|
84
|
+
children: /* @__PURE__ */ f(i, {
|
|
74
85
|
name: "codeSet",
|
|
75
86
|
validators: { onChange: g },
|
|
76
|
-
children: (e) => !
|
|
87
|
+
children: (e) => !E || C?.supported === !1 ? /* @__PURE__ */ f(e.Input, {
|
|
77
88
|
required: !0,
|
|
78
|
-
disabled: !
|
|
89
|
+
disabled: !E,
|
|
79
90
|
extra: "适配器脚本以 codes.toExternal('<码集>', …) 引用",
|
|
80
91
|
label: "码集标识",
|
|
81
92
|
placeholder: "如 gender"
|
|
82
93
|
}) : /* @__PURE__ */ f(e.Select, {
|
|
83
94
|
required: !0,
|
|
84
|
-
disabled:
|
|
95
|
+
disabled: T || w,
|
|
85
96
|
label: "标准码集",
|
|
86
|
-
loading:
|
|
87
|
-
options:
|
|
88
|
-
status:
|
|
89
|
-
extra:
|
|
90
|
-
placeholder:
|
|
97
|
+
loading: T,
|
|
98
|
+
options: O,
|
|
99
|
+
status: w ? "error" : void 0,
|
|
100
|
+
extra: w ? "标准码集加载失败,请稍后重试" : "从本系统已注册的标准码集中选择,自动填充码表名称",
|
|
101
|
+
placeholder: T ? "正在加载标准码集…" : w ? "标准码集加载失败" : O.length === 0 ? "暂无可用标准码集" : "选择标准码集",
|
|
91
102
|
onSelect: (e) => {
|
|
92
|
-
let t =
|
|
103
|
+
let t = C?.codeSets?.find((t) => t.codeSet === e);
|
|
93
104
|
t && r.setFieldValue("name", t.name);
|
|
94
105
|
}
|
|
95
106
|
})
|
|
@@ -97,7 +108,7 @@ function S({ scene: n }) {
|
|
|
97
108
|
}),
|
|
98
109
|
/* @__PURE__ */ f(s.Item, {
|
|
99
110
|
span: 12,
|
|
100
|
-
children: /* @__PURE__ */ f(
|
|
111
|
+
children: /* @__PURE__ */ f(i, {
|
|
101
112
|
name: "name",
|
|
102
113
|
validators: { onChange: _ },
|
|
103
114
|
children: (e) => /* @__PURE__ */ f(e.Input, {
|
|
@@ -109,35 +120,30 @@ function S({ scene: n }) {
|
|
|
109
120
|
}),
|
|
110
121
|
/* @__PURE__ */ f(s.Item, {
|
|
111
122
|
span: 24,
|
|
112
|
-
children: /* @__PURE__ */ f(
|
|
123
|
+
children: /* @__PURE__ */ f(i, {
|
|
113
124
|
name: "entries",
|
|
114
125
|
validators: { onChange: v },
|
|
115
126
|
children: (e) => /* @__PURE__ */ p(c, {
|
|
116
127
|
hint: "别名仅参与匹配,转换输出始终为主值;数字与 true/false 按 JSON 类型存储,需存为字面量字符串时加英文引号(如 \"1\")",
|
|
117
128
|
label: "映射条目",
|
|
118
|
-
children: [
|
|
119
|
-
|
|
129
|
+
children: [/* @__PURE__ */ f(r.Subscribe, {
|
|
130
|
+
selector: (e) => e.values.codeSet,
|
|
131
|
+
children: (t) => /* @__PURE__ */ f(S, {
|
|
132
|
+
codeSet: t,
|
|
133
|
+
supported: D,
|
|
120
134
|
value: e.state.value,
|
|
121
135
|
onChange: e.handleChange
|
|
122
|
-
}),
|
|
123
|
-
e.state.meta.errors.length > 0 && /* @__PURE__ */ f(l, {
|
|
124
|
-
type: "danger",
|
|
125
|
-
children: String(e.state.meta.errors[0])
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ f(r.Subscribe, {
|
|
128
|
-
selector: (e) => e.values.codeSet,
|
|
129
|
-
children: (e) => /* @__PURE__ */ f(x, {
|
|
130
|
-
codeSet: e,
|
|
131
|
-
supported: O
|
|
132
|
-
})
|
|
133
136
|
})
|
|
134
|
-
|
|
137
|
+
}), e.state.meta.errors.length > 0 && /* @__PURE__ */ f(l, {
|
|
138
|
+
type: "danger",
|
|
139
|
+
children: String(e.state.meta.errors[0])
|
|
140
|
+
})]
|
|
135
141
|
})
|
|
136
142
|
})
|
|
137
143
|
}),
|
|
138
144
|
/* @__PURE__ */ f(s.Item, {
|
|
139
145
|
span: 24,
|
|
140
|
-
children: /* @__PURE__ */ f(
|
|
146
|
+
children: /* @__PURE__ */ f(i, {
|
|
141
147
|
name: "onUnmapped",
|
|
142
148
|
children: (e) => /* @__PURE__ */ f(e.Select, {
|
|
143
149
|
required: !0,
|
|
@@ -151,7 +157,7 @@ function S({ scene: n }) {
|
|
|
151
157
|
selector: (e) => e.values.onUnmapped,
|
|
152
158
|
children: (e) => e === "fallback" ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(s.Item, {
|
|
153
159
|
span: 12,
|
|
154
|
-
children: /* @__PURE__ */ f(
|
|
160
|
+
children: /* @__PURE__ */ f(i, {
|
|
155
161
|
name: "fallbackCanonical",
|
|
156
162
|
validators: { onChange: y },
|
|
157
163
|
children: (e) => /* @__PURE__ */ f(e.Input, {
|
|
@@ -163,7 +169,7 @@ function S({ scene: n }) {
|
|
|
163
169
|
})
|
|
164
170
|
}), /* @__PURE__ */ f(s.Item, {
|
|
165
171
|
span: 12,
|
|
166
|
-
children: /* @__PURE__ */ f(
|
|
172
|
+
children: /* @__PURE__ */ f(i, {
|
|
167
173
|
name: "fallbackExternal",
|
|
168
174
|
validators: { onChange: y },
|
|
169
175
|
children: (e) => /* @__PURE__ */ f(e.Input, {
|
|
@@ -177,7 +183,7 @@ function S({ scene: n }) {
|
|
|
177
183
|
}),
|
|
178
184
|
/* @__PURE__ */ f(s.Item, {
|
|
179
185
|
span: 24,
|
|
180
|
-
children: /* @__PURE__ */ f(
|
|
186
|
+
children: /* @__PURE__ */ f(i, {
|
|
181
187
|
name: "isEnabled",
|
|
182
188
|
children: (e) => /* @__PURE__ */ f(e.Bool, {
|
|
183
189
|
label: "启用",
|
|
@@ -189,4 +195,4 @@ function S({ scene: n }) {
|
|
|
189
195
|
});
|
|
190
196
|
}
|
|
191
197
|
//#endregion
|
|
192
|
-
export {
|
|
198
|
+
export { C as CodeMapForm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { codeMapFormToParams as t } from "./model.js";
|
|
4
4
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useCodeMapApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { useSystemDirectory as t } from "../../components/directory/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as n } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
//#region src/pages/code-map-page/model.ts
|
|
3
3
|
var e = /^[A-Z0-9](?:[\w.-]*[A-Z0-9])?$/i, t = {
|
|
4
4
|
reject: "未收录报错",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useSystemDirectory as e } from "../../components/directory/index.js";
|
|
3
3
|
import { useFormContext as t } from "@vef-framework-react/components";
|
|
4
4
|
import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useOpsApi as e } from "../../api/ops-api.js";
|
|
3
3
|
import { FindingKindTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { useMutation as n } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useOpsApi as e } from "../../api/ops-api.js";
|
|
3
3
|
import { ParamsEditor as t } from "../../components/params-editor/index.js";
|
|
4
4
|
import { useContractDirectory as ee, useSystemDirectory as te } from "../../components/directory/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { INTEGRATION_PERMISSIONS as e } from "../../permissions.js";
|
|
3
3
|
import { DiagnosticsPanel as t } from "./diagnostics.js";
|
|
4
4
|
import { DryRunPanel as n } from "./dry-run.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useLogApi as e } from "../../api/log-api.js";
|
|
3
3
|
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
4
|
import { formatTimestamp as r } from "../../components/format.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useStatsApi as e } from "../../api/stats-api.js";
|
|
3
3
|
import { FAILURE_KIND_COLORS as t } from "../../components/status/colors.js";
|
|
4
4
|
import { FAILURE_KINDS as n } from "../../types/enums.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { Flex as n, Stack as r, Tag as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { JSON_SCHEMA_COMPLETIONS as e } from "./json-schema-completions.js";
|
|
3
3
|
import { Grid as t, Labeled as n, LabelsEditor as r, useFormContext as i } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { formValuesToParams as t } from "./model.js";
|
|
4
4
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useContractApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { INTEGRATION_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { contractColumns as n } from "./columns.js";
|
|
5
5
|
import { ContractForm as r } from "./form.js";
|
|
6
6
|
import { CONTRACT_FORM_DEFAULTS as i, contractToFormValues as a } from "./model.js";
|
|
7
7
|
import { ContractActionButtonGroup as o, ContractOperationButtonGroup as s, useContractFormMutations as c } from "./helpers.js";
|
|
8
|
-
import {
|
|
9
|
-
import { ActionButton as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { EditIcon as
|
|
8
|
+
import { ContractAdvancedSearchFields as l, ContractSearchFields as u } from "./search.js";
|
|
9
|
+
import { ActionButton as d, CrudPage as f, Icon as p, OperationButton as m, PermissionGate as h } from "@vef-framework-react/components";
|
|
10
|
+
import { Fragment as g, jsx as _, jsxs as v } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { EditIcon as y, PlusIcon as b, TrashIcon as x } from "lucide-react";
|
|
12
12
|
//#region src/pages/contract-page/index.tsx
|
|
13
|
-
var
|
|
13
|
+
var S = {
|
|
14
14
|
xxs: "100vw",
|
|
15
15
|
md: "90vw",
|
|
16
16
|
xl: 920
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
let
|
|
18
|
+
function C({ permissions: C, columnStorageKey: w = "integration.contract", title: T }) {
|
|
19
|
+
let E = e(), D = c(), O = {
|
|
20
20
|
...t.contract,
|
|
21
|
-
...
|
|
21
|
+
...C
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ _(f, {
|
|
24
24
|
rowSelection: !0,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
advancedSearch: /* @__PURE__ */ _(l, {}),
|
|
26
|
+
basicSearch: /* @__PURE__ */ _(u, {}),
|
|
27
|
+
columnSettings: { storageKey: w },
|
|
28
|
+
deleteManyMutationFn: E.removeMany,
|
|
29
|
+
deleteMutationFn: E.remove,
|
|
29
30
|
formLayout: { layout: "vertical" },
|
|
30
|
-
formMutationFns:
|
|
31
|
-
queryFn:
|
|
32
|
-
renderForm: (e) => /* @__PURE__ */
|
|
31
|
+
formMutationFns: D,
|
|
32
|
+
queryFn: E.findPage,
|
|
33
|
+
renderForm: (e) => /* @__PURE__ */ _(r, { scene: e }),
|
|
33
34
|
rowKey: "id",
|
|
34
35
|
sceneDefaultFormValues: { create: i },
|
|
35
36
|
tableColumns: n,
|
|
36
|
-
title:
|
|
37
|
+
title: T,
|
|
37
38
|
operationColumn: {
|
|
38
39
|
width: 160,
|
|
39
40
|
render(e) {
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ _(s, {
|
|
41
42
|
selector: (e) => [
|
|
42
43
|
e.openForm,
|
|
43
44
|
e.delete,
|
|
44
45
|
e.refetchQuery
|
|
45
46
|
],
|
|
46
|
-
children: ([t, n, r]) => /* @__PURE__ */
|
|
47
|
+
children: ([t, n, r]) => /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(m, {
|
|
47
48
|
color: "primary",
|
|
48
|
-
icon: /* @__PURE__ */
|
|
49
|
-
requiredPermissions:
|
|
49
|
+
icon: /* @__PURE__ */ _(p, { component: y }),
|
|
50
|
+
requiredPermissions: O.update,
|
|
50
51
|
onClick: () => t({
|
|
51
52
|
scene: "update",
|
|
52
53
|
values: a(e),
|
|
53
54
|
title: "编辑契约",
|
|
54
55
|
mode: "drawer",
|
|
55
|
-
width:
|
|
56
|
+
width: S
|
|
56
57
|
}),
|
|
57
58
|
children: "编辑"
|
|
58
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ _(m, {
|
|
59
60
|
confirmable: !0,
|
|
60
61
|
color: "danger",
|
|
61
62
|
confirmDescription: "确定删除该契约?被路由或适配器引用时无法删除。",
|
|
62
|
-
icon: /* @__PURE__ */
|
|
63
|
-
requiredPermissions:
|
|
63
|
+
icon: /* @__PURE__ */ _(p, { component: x }),
|
|
64
|
+
requiredPermissions: O.delete,
|
|
64
65
|
onClick: async () => {
|
|
65
66
|
try {
|
|
66
67
|
await n(e), r();
|
|
@@ -71,7 +72,7 @@ function S({ permissions: S, columnStorageKey: C = "integration.contract", title
|
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
|
-
toolbarActions: /* @__PURE__ */
|
|
75
|
+
toolbarActions: /* @__PURE__ */ _(o, {
|
|
75
76
|
selector: (e) => [
|
|
76
77
|
e.openForm,
|
|
77
78
|
e.isQueryFetching,
|
|
@@ -79,28 +80,28 @@ function S({ permissions: S, columnStorageKey: C = "integration.contract", title
|
|
|
79
80
|
e.deleteMany,
|
|
80
81
|
e.refetchQuery
|
|
81
82
|
],
|
|
82
|
-
children: ([e, t, n, r, i]) => /* @__PURE__ */
|
|
83
|
-
requiredPermissions:
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
-
icon: /* @__PURE__ */
|
|
83
|
+
children: ([e, t, n, r, i]) => /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(h, {
|
|
84
|
+
requiredPermissions: O.create,
|
|
85
|
+
children: /* @__PURE__ */ _(d, {
|
|
86
|
+
icon: /* @__PURE__ */ _(p, { component: b }),
|
|
86
87
|
type: "primary",
|
|
87
88
|
onClick: () => e({
|
|
88
89
|
scene: "create",
|
|
89
90
|
title: "新增契约",
|
|
90
91
|
mode: "drawer",
|
|
91
|
-
width:
|
|
92
|
+
width: S
|
|
92
93
|
}),
|
|
93
94
|
children: "新增契约"
|
|
94
95
|
})
|
|
95
|
-
}), /* @__PURE__ */
|
|
96
|
-
requiredPermissions:
|
|
97
|
-
children: /* @__PURE__ */
|
|
96
|
+
}), /* @__PURE__ */ _(h, {
|
|
97
|
+
requiredPermissions: O.delete,
|
|
98
|
+
children: /* @__PURE__ */ _(d, {
|
|
98
99
|
confirmable: !0,
|
|
99
100
|
danger: !0,
|
|
100
101
|
confirmDescription: "确定批量删除选中的契约?",
|
|
101
102
|
confirmMode: "dialog",
|
|
102
103
|
disabled: t || n.length === 0,
|
|
103
|
-
icon: /* @__PURE__ */
|
|
104
|
+
icon: /* @__PURE__ */ _(p, { component: x }),
|
|
104
105
|
onClick: async () => {
|
|
105
106
|
try {
|
|
106
107
|
await r(n), i();
|
|
@@ -113,4 +114,4 @@ function S({ permissions: S, columnStorageKey: C = "integration.contract", title
|
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
116
|
//#endregion
|
|
116
|
-
export {
|
|
117
|
+
export { C as IntegrationContractPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
//#region src/pages/contract-page/json-schema-completions.ts
|
|
3
3
|
function e(e, t, n, r) {
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
//#region src/pages/contract-page/model.ts
|
|
3
3
|
function e(e) {
|
|
4
4
|
return e ? JSON.stringify(e, null, 2) : "";
|
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
2
|
-
import {
|
|
3
|
-
import { Fragment as
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
|
+
import { Col as e, Labeled as t, LabelsEditor as n, Row as r, useFormContext as i } from "@vef-framework-react/components";
|
|
3
|
+
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/contract-page/search.tsx
|
|
5
|
-
function
|
|
6
|
-
let { AppField:
|
|
7
|
-
return /* @__PURE__ */
|
|
5
|
+
function c() {
|
|
6
|
+
let { AppField: e } = i();
|
|
7
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(e, {
|
|
8
8
|
name: "code",
|
|
9
|
-
children: (e) => /* @__PURE__ */
|
|
9
|
+
children: (e) => /* @__PURE__ */ o(e.Input, {
|
|
10
10
|
allowClear: !0,
|
|
11
11
|
noWrapper: !0,
|
|
12
12
|
placeholder: "契约编码"
|
|
13
13
|
})
|
|
14
|
-
}), /* @__PURE__ */
|
|
14
|
+
}), /* @__PURE__ */ o(e, {
|
|
15
15
|
name: "name",
|
|
16
|
-
children: (e) => /* @__PURE__ */
|
|
16
|
+
children: (e) => /* @__PURE__ */ o(e.Input, {
|
|
17
17
|
allowClear: !0,
|
|
18
18
|
noWrapper: !0,
|
|
19
19
|
placeholder: "契约名称"
|
|
20
20
|
})
|
|
21
21
|
})] });
|
|
22
22
|
}
|
|
23
|
+
function l() {
|
|
24
|
+
let { AppField: a } = i();
|
|
25
|
+
return /* @__PURE__ */ o(r, {
|
|
26
|
+
gutter: ["var(--vef-spacing-md)", "var(--vef-spacing-md)"],
|
|
27
|
+
children: /* @__PURE__ */ o(e, {
|
|
28
|
+
xs: 24,
|
|
29
|
+
children: /* @__PURE__ */ o(a, {
|
|
30
|
+
name: "labels",
|
|
31
|
+
children: (e) => /* @__PURE__ */ o(t, {
|
|
32
|
+
hint: "每对都要相等才命中(多对之间是「且」);未打标签的契约不会出现在结果里",
|
|
33
|
+
label: "标签",
|
|
34
|
+
children: /* @__PURE__ */ o(n, {
|
|
35
|
+
value: e.state.value,
|
|
36
|
+
onChange: e.handleChange
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
23
43
|
//#endregion
|
|
24
|
-
export {
|
|
44
|
+
export { l as ContractAdvancedSearchFields, c as ContractSearchFields };
|
package/dist/es/pages/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { IntegrationAdapterPage as e } from "./adapter-page/index.js";
|
|
3
3
|
import { IntegrationCodeMapPage as t } from "./code-map-page/index.js";
|
|
4
4
|
import { IntegrationConsolePage as n } from "./console-page/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { Tag as n, Text as r } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useContractDirectory as e, useSystemDirectory as t } from "../../components/directory/index.js";
|
|
3
3
|
import { Grid as n, useFormContext as r } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { createCrudKit as e } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/pages/route-page/helpers.ts
|
|
4
4
|
var { OperationButtonGroup: t, ActionButtonGroup: n } = e();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useRouteApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as r } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useSystemDirectory as e } from "../../components/directory/index.js";
|
|
3
3
|
import { useFormContext as t } from "@vef-framework-react/components";
|
|
4
4
|
import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { INBOUND_AUTH_SCHEME_LABELS as t, OUTBOUND_AUTH_SCHEME_LABELS as n } from "../../components/status/labels.js";
|
|
4
4
|
import { EnabledTag as r } from "../../components/status/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { ParamsEditor as e } from "../../components/params-editor/index.js";
|
|
3
3
|
import { AuthParamsFields as t } from "../../components/auth-params/index.js";
|
|
4
4
|
import { FormSection as n } from "../../components/form-section/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { systemFormToParams as t } from "./model.js";
|
|
4
4
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useSystemApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { TestConnectionDrawer as t } from "../../components/test-connection/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as n } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { pruneAuthParams as e } from "../../components/auth-params/index.js";
|
|
3
3
|
import { INBOUND_AUTH_SCHEMES as t, OUTBOUND_AUTH_SCHEMES as n } from "../../types/enums.js";
|
|
4
4
|
import { INBOUND_AUTH_SCHEME_LABELS as r, OUTBOUND_AUTH_SCHEME_LABELS as i } from "../../components/status/labels.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { useFormContext as e } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/system-page/search.tsx
|
package/dist/es/permissions.js
CHANGED
package/dist/es/types/enums.js
CHANGED
package/dist/es/types/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.15.0 made by Venus | 2026-08-07T09:28:01.861Z */
|
|
2
2
|
import { DATA_SOURCE_MODES as e, DIRECTIONS as t, FAILURE_KINDS as n, INBOUND_AUTH_SCHEMES as r, MASKED_SECRET as i, OUTBOUND_AUTH_SCHEMES as a, ROUTE_FINDING_KINDS as o, UNMAPPED_POLICIES as s } from "./enums.js";
|
|
3
3
|
export { e as DATA_SOURCE_MODES, t as DIRECTIONS, n as FAILURE_KINDS, r as INBOUND_AUTH_SCHEMES, i as MASKED_SECRET, a as OUTBOUND_AUTH_SCHEMES, o as ROUTE_FINDING_KINDS, s as UNMAPPED_POLICIES };
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { CodeMapEntry } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* One suggestion offered while editing a cell: `value` is the code inserted on
|
|
4
|
+
* pick, `label` is what the dropdown shows (`0 = 独立科室`).
|
|
5
|
+
*/
|
|
6
|
+
export interface CodeSuggestion {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
2
10
|
export interface CodeMapEntriesEditorProps {
|
|
3
11
|
value?: CodeMapEntry[] | null;
|
|
4
12
|
onChange?: (value: CodeMapEntry[]) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Suggestions from the host code catalog (`mold.CodeSetInspector`) for the two
|
|
15
|
+
* primary-value columns. Empty leaves them as free text — which is also the
|
|
16
|
+
* state for hosts that registered no enumerable catalog.
|
|
17
|
+
*
|
|
18
|
+
* The external column gets them too even though the catalog describes the
|
|
19
|
+
* host's* coding: in practice the two sides overlap often enough (numeric
|
|
20
|
+
* levels, M/F, Y/N) that offering the list saves real typing, and the control
|
|
21
|
+
* suggests rather than constrains — an external code that differs is simply
|
|
22
|
+
* typed in.
|
|
23
|
+
*
|
|
24
|
+
* The alias columns stay plain tag inputs. A full catalog dropdown over a
|
|
25
|
+
* narrow multi-value cell covers half the form for a list the operator is
|
|
26
|
+
* usually not picking from — aliases are the values that fall *outside* the
|
|
27
|
+
* catalog.
|
|
28
|
+
*/
|
|
29
|
+
codeSuggestions?: CodeSuggestion[];
|
|
5
30
|
}
|
|
6
|
-
export declare function CodeMapEntriesEditor({ value, onChange }: CodeMapEntriesEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function CodeMapEntriesEditor({ value, onChange, codeSuggestions }: CodeMapEntriesEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -2,3 +2,14 @@
|
|
|
2
2
|
* The inline search fields for the contract list.
|
|
3
3
|
*/
|
|
4
4
|
export declare function ContractSearchFields(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Label filters for the contract list, shown in the expandable search panel.
|
|
7
|
+
*
|
|
8
|
+
* Lives in the advanced panel rather than the inline bar because it is a
|
|
9
|
+
* multi-row key/value editor, and because the backend ANDs every pair — a
|
|
10
|
+
* filter that narrows this aggressively should not sit where it can be set by
|
|
11
|
+
* accident. The same `LabelsEditor` the contract form uses is reused here so
|
|
12
|
+
* the two places behave identically (empty-key rows dropped, out-of-charset
|
|
13
|
+
* keys flagged inline).
|
|
14
|
+
*/
|
|
15
|
+
export declare function ContractAdvancedSearchFields(): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/integration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integration engine management pages for VEF framework",
|
|
6
6
|
"keywords": [
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@emotion/react": "^11.14.0",
|
|
43
43
|
"dayjs": "^1.11.0",
|
|
44
44
|
"lucide-react": "^1.23.0",
|
|
45
|
-
"@vef-framework-react/
|
|
46
|
-
"@vef-framework-react/
|
|
47
|
-
"@vef-framework-react/shared": "2.
|
|
45
|
+
"@vef-framework-react/components": "2.15.0",
|
|
46
|
+
"@vef-framework-react/core": "2.15.0",
|
|
47
|
+
"@vef-framework-react/shared": "2.15.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"react": "^19.2.7"
|