@vef-framework-react/integration 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/crud-api.cjs +1 -1
- package/dist/cjs/api/ops-api.cjs +1 -1
- 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 +12 -6
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/log-api.js +1 -1
- package/dist/es/api/ops-api.js +9 -3
- 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/api/crud-api.d.ts +4 -2
- 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,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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.14.0 made by Venus | 2026-08-05T04:05:41.326Z */
|
|
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 };
|