@yuku123/z-cognition-component 2.0.0 → 2.0.1
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-lib/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
2
|
-
import { useMemo as G, useState as u, useCallback as S, useRef as K, useEffect as
|
|
3
|
-
import {
|
|
4
|
-
import { T as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { A as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { b as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as G, useState as u, useCallback as S, useRef as K, useEffect as _ } from "react";
|
|
3
|
+
import { I as z, e as fn, a9 as vn, aa as bn, ab as ie, ac as Nn, ad as Cn, ae as Tn, af as yn, t as q, ag as wn, ah as Sn, ai as En, aj as kn, ak as xn, al as Rn, am as In, an as Le } from "./embed-DwLg9RDW.js";
|
|
4
|
+
import { T as On, s as Dn, u as An, a as Fn, b as Mn, C as Ln, S as _n, R as Pn, I as Hn, E as Vn, c as Kn, d as zn, e as Bn, f as _e } from "./use-graph-layers-Dmp7uMHO.js";
|
|
5
|
+
import { u as Gn } from "./use-escape-key-4SZ4l7av.js";
|
|
6
|
+
import { u as $n } from "./use-split-width-SsLqbGjr.js";
|
|
7
|
+
import { A as Wn } from "./index-ounfql2z.js";
|
|
8
|
+
import { S as Un, a4 as Pe } from "./index-CrMcNEAZ.js";
|
|
9
|
+
import { c as qn } from "./format-UGmYKemG.js";
|
|
10
|
+
import { S as Qn, F as Xn, a as He, c as jn, b as Yn } from "./focus-set-h0YtOUB2.js";
|
|
11
|
+
import { S as Zn } from "./index-bOY1cBol.js";
|
|
12
|
+
import { b as Jn } from "./ai-BcYmZiRo.js";
|
|
13
|
+
import { u as et } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
11
14
|
function nt({
|
|
12
15
|
keyword: t,
|
|
13
16
|
view: l,
|
|
@@ -29,7 +32,7 @@ function nt({
|
|
|
29
32
|
}))
|
|
30
33
|
})) : [], [l]);
|
|
31
34
|
return /* @__PURE__ */ e("div", { className: "ont-search-box", children: /* @__PURE__ */ e(
|
|
32
|
-
|
|
35
|
+
Wn,
|
|
33
36
|
{
|
|
34
37
|
value: t,
|
|
35
38
|
options: h,
|
|
@@ -37,7 +40,7 @@ function nt({
|
|
|
37
40
|
allowClear: !0,
|
|
38
41
|
popupMatchSelectWidth: 320,
|
|
39
42
|
placeholder: g ? "搜索实例,点击定位到画布" : "图库未接入,搜索不可用",
|
|
40
|
-
notFoundContent: d ? /* @__PURE__ */ e(
|
|
43
|
+
notFoundContent: d ? /* @__PURE__ */ e(Un, { size: "small" }) : /* @__PURE__ */ e(Pe, { image: Pe.PRESENTED_IMAGE_SIMPLE }),
|
|
41
44
|
onChange: N,
|
|
42
45
|
onSelect: (c, s) => {
|
|
43
46
|
const i = s.record;
|
|
@@ -108,7 +111,7 @@ function st({
|
|
|
108
111
|
onRemove: b,
|
|
109
112
|
onReorder: h
|
|
110
113
|
}) {
|
|
111
|
-
const [c, s] = u(""), [i, x] = u(null), [p, a] = u(""), [w, D] = u(null), [T, m] = u(""),
|
|
114
|
+
const [c, s] = u(""), [i, x] = u(null), [p, a] = u(""), [w, D] = u(null), [T, m] = u(""), F = l.map((f) => f.code), C = async () => {
|
|
112
115
|
const f = c.trim();
|
|
113
116
|
if (!f) {
|
|
114
117
|
m("分组名称必填");
|
|
@@ -124,9 +127,9 @@ function st({
|
|
|
124
127
|
return;
|
|
125
128
|
}
|
|
126
129
|
await N({ code: i, categoryName: f }) && (x(null), m(""));
|
|
127
|
-
},
|
|
128
|
-
const O = [...
|
|
129
|
-
R < 0 ||
|
|
130
|
+
}, V = async (f, A) => {
|
|
131
|
+
const O = [...F], R = O.indexOf(f), M = R + A;
|
|
132
|
+
R < 0 || M < 0 || M >= O.length || ([O[R], O[M]] = [O[M], O[R]], await h(O));
|
|
130
133
|
};
|
|
131
134
|
return /* @__PURE__ */ r("div", { className: "ont-cat-manage", children: [
|
|
132
135
|
/* @__PURE__ */ r("div", { className: "ont-cat-create", children: [
|
|
@@ -159,8 +162,8 @@ function st({
|
|
|
159
162
|
] }),
|
|
160
163
|
T ? /* @__PURE__ */ e("div", { className: "ont-cat-error", children: T }) : null,
|
|
161
164
|
l.length ? /* @__PURE__ */ e("div", { className: "ont-cat-list", children: l.map((f) => {
|
|
162
|
-
const A =
|
|
163
|
-
return /* @__PURE__ */ e("div", { className: "ont-cat-row", children: i === f.code ? /* @__PURE__ */ r(
|
|
165
|
+
const A = F.indexOf(f.code);
|
|
166
|
+
return /* @__PURE__ */ e("div", { className: "ont-cat-row", children: i === f.code ? /* @__PURE__ */ r(Y, { children: [
|
|
164
167
|
/* @__PURE__ */ e(
|
|
165
168
|
"input",
|
|
166
169
|
{
|
|
@@ -193,13 +196,13 @@ function st({
|
|
|
193
196
|
children: "取消"
|
|
194
197
|
}
|
|
195
198
|
)
|
|
196
|
-
] }) : /* @__PURE__ */ r(
|
|
199
|
+
] }) : /* @__PURE__ */ r(Y, { children: [
|
|
197
200
|
/* @__PURE__ */ e("span", { className: "ont-cat-name", children: f.categoryName }),
|
|
198
201
|
/* @__PURE__ */ r("span", { className: "ont-cat-count", children: [
|
|
199
|
-
|
|
202
|
+
qn(f.tagCount),
|
|
200
203
|
" 个类型"
|
|
201
204
|
] }),
|
|
202
|
-
/* @__PURE__ */ e("span", { className: "ont-cat-actions", children: w === f.code ? /* @__PURE__ */ r(
|
|
205
|
+
/* @__PURE__ */ e("span", { className: "ont-cat-actions", children: w === f.code ? /* @__PURE__ */ r(Y, { children: [
|
|
203
206
|
/* @__PURE__ */ e(
|
|
204
207
|
"button",
|
|
205
208
|
{
|
|
@@ -221,7 +224,7 @@ function st({
|
|
|
221
224
|
children: "取消"
|
|
222
225
|
}
|
|
223
226
|
)
|
|
224
|
-
] }) : /* @__PURE__ */ r(
|
|
227
|
+
] }) : /* @__PURE__ */ r(Y, { children: [
|
|
225
228
|
/* @__PURE__ */ e(
|
|
226
229
|
"button",
|
|
227
230
|
{
|
|
@@ -229,7 +232,7 @@ function st({
|
|
|
229
232
|
type: "button",
|
|
230
233
|
title: "上移",
|
|
231
234
|
disabled: A <= 0 || d,
|
|
232
|
-
onClick: () => void
|
|
235
|
+
onClick: () => void V(f.code, -1),
|
|
233
236
|
children: "↑"
|
|
234
237
|
}
|
|
235
238
|
),
|
|
@@ -239,8 +242,8 @@ function st({
|
|
|
239
242
|
className: "btn xs ghost",
|
|
240
243
|
type: "button",
|
|
241
244
|
title: "下移",
|
|
242
|
-
disabled: A < 0 || A >=
|
|
243
|
-
onClick: () => void
|
|
245
|
+
disabled: A < 0 || A >= F.length - 1 || d,
|
|
246
|
+
onClick: () => void V(f.code, 1),
|
|
244
247
|
children: "↓"
|
|
245
248
|
}
|
|
246
249
|
),
|
|
@@ -286,7 +289,7 @@ function ot({
|
|
|
286
289
|
onClose: p,
|
|
287
290
|
onSubmit: a
|
|
288
291
|
}) {
|
|
289
|
-
const [w, D] = u((t == null ? void 0 : t.name) || ""), [T, m] = u((t == null ? void 0 : t.description) || ""), [
|
|
292
|
+
const [w, D] = u((t == null ? void 0 : t.name) || ""), [T, m] = u((t == null ? void 0 : t.description) || ""), [F, C] = u((t == null ? void 0 : t.precheckAiEnabled) ?? !1), [E, V] = u(
|
|
290
293
|
(t == null ? void 0 : t.precheckAgentCode) || void 0
|
|
291
294
|
), [f, A] = u(""), O = () => {
|
|
292
295
|
const R = w.trim();
|
|
@@ -294,19 +297,19 @@ function ot({
|
|
|
294
297
|
A("本体名称必填");
|
|
295
298
|
return;
|
|
296
299
|
}
|
|
297
|
-
if (
|
|
300
|
+
if (F && !E) {
|
|
298
301
|
A("启动智能审核需先绑定预审智能体");
|
|
299
302
|
return;
|
|
300
303
|
}
|
|
301
304
|
a({
|
|
302
305
|
name: R,
|
|
303
306
|
description: T.trim() || void 0,
|
|
304
|
-
precheckAiEnabled:
|
|
307
|
+
precheckAiEnabled: F,
|
|
305
308
|
precheckAgentCode: E || ""
|
|
306
309
|
});
|
|
307
310
|
};
|
|
308
311
|
return /* @__PURE__ */ e(
|
|
309
|
-
|
|
312
|
+
fn,
|
|
310
313
|
{
|
|
311
314
|
icon: "settings",
|
|
312
315
|
title: "本体设置",
|
|
@@ -375,10 +378,10 @@ function ot({
|
|
|
375
378
|
/* @__PURE__ */ r("div", { className: "ont-settings-ai", children: [
|
|
376
379
|
/* @__PURE__ */ r("label", { className: "ont-ai-switch", children: [
|
|
377
380
|
/* @__PURE__ */ e(
|
|
378
|
-
|
|
381
|
+
Qn,
|
|
379
382
|
{
|
|
380
383
|
size: "small",
|
|
381
|
-
checked:
|
|
384
|
+
checked: F,
|
|
382
385
|
onChange: (R) => {
|
|
383
386
|
C(R), A("");
|
|
384
387
|
}
|
|
@@ -388,21 +391,21 @@ function ot({
|
|
|
388
391
|
] }),
|
|
389
392
|
/* @__PURE__ */ e("p", { className: "ont-ai-hint", children: "开启后审批「通过」会先交给绑定的智能体做语义预审;关闭时仍执行确定性规则,审批硬闸不受影响。" }),
|
|
390
393
|
/* @__PURE__ */ e(
|
|
391
|
-
|
|
394
|
+
Zn,
|
|
392
395
|
{
|
|
393
396
|
className: "ont-ai-agent",
|
|
394
397
|
value: E,
|
|
395
398
|
placeholder: "选择预审智能体",
|
|
396
399
|
loading: h,
|
|
397
400
|
allowClear: !0,
|
|
398
|
-
disabled: !
|
|
401
|
+
disabled: !F,
|
|
399
402
|
options: b.map((R) => ({
|
|
400
403
|
value: R.code,
|
|
401
404
|
label: R.enabled ? R.name : `${R.name}(已停用)`,
|
|
402
405
|
disabled: !R.enabled
|
|
403
406
|
})),
|
|
404
407
|
onChange: (R) => {
|
|
405
|
-
|
|
408
|
+
V(R), A("");
|
|
406
409
|
}
|
|
407
410
|
}
|
|
408
411
|
)
|
|
@@ -424,7 +427,7 @@ function ot({
|
|
|
424
427
|
)
|
|
425
428
|
] })
|
|
426
429
|
] }),
|
|
427
|
-
footRight: /* @__PURE__ */ r(
|
|
430
|
+
footRight: /* @__PURE__ */ r(Y, { children: [
|
|
428
431
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: p, children: "取消" }),
|
|
429
432
|
/* @__PURE__ */ r(
|
|
430
433
|
"button",
|
|
@@ -453,11 +456,11 @@ function $e(t, l, d, g, N) {
|
|
|
453
456
|
loading: !0,
|
|
454
457
|
failed: !1
|
|
455
458
|
}), [c, s] = u({ keyword: "" }), [i, x] = u(1), [p, a] = u(d), w = K(!0);
|
|
456
|
-
|
|
459
|
+
_(() => (w.current = !0, () => {
|
|
457
460
|
w.current = !1;
|
|
458
461
|
}), []);
|
|
459
462
|
const D = S(
|
|
460
|
-
async (C, E,
|
|
463
|
+
async (C, E, V) => {
|
|
461
464
|
if (!l)
|
|
462
465
|
return;
|
|
463
466
|
h((A) => ({ ...A, loading: !0, failed: !1 }));
|
|
@@ -465,7 +468,7 @@ function $e(t, l, d, g, N) {
|
|
|
465
468
|
current: C,
|
|
466
469
|
size: E,
|
|
467
470
|
status: g,
|
|
468
|
-
keyword:
|
|
471
|
+
keyword: V.keyword.trim() || void 0
|
|
469
472
|
});
|
|
470
473
|
if (w.current) {
|
|
471
474
|
if (!f) {
|
|
@@ -490,21 +493,21 @@ function $e(t, l, d, g, N) {
|
|
|
490
493
|
},
|
|
491
494
|
[l, t, g, N]
|
|
492
495
|
);
|
|
493
|
-
|
|
496
|
+
_(() => {
|
|
494
497
|
(async () => await D(i, p, c))();
|
|
495
498
|
}, [D, i, p, c]);
|
|
496
499
|
const T = S((C) => {
|
|
497
500
|
x(C);
|
|
498
501
|
}, []), m = S((C) => {
|
|
499
502
|
a(C), x(1);
|
|
500
|
-
}, []),
|
|
503
|
+
}, []), F = S((C) => {
|
|
501
504
|
s(C), x(1);
|
|
502
505
|
}, []);
|
|
503
|
-
return { ...b, filters: c, onPageChange: T, onSizeChange: m, setFilters:
|
|
506
|
+
return { ...b, filters: c, onPageChange: T, onSizeChange: m, setFilters: F };
|
|
504
507
|
}
|
|
505
508
|
function it(t, l = Ge, d, g) {
|
|
506
509
|
return $e(
|
|
507
|
-
S((N) =>
|
|
510
|
+
S((N) => vn(N), []),
|
|
508
511
|
t,
|
|
509
512
|
l,
|
|
510
513
|
d,
|
|
@@ -513,7 +516,7 @@ function it(t, l = Ge, d, g) {
|
|
|
513
516
|
}
|
|
514
517
|
function lt(t, l = Ge, d, g) {
|
|
515
518
|
return $e(
|
|
516
|
-
S((N) =>
|
|
519
|
+
S((N) => bn(N), []),
|
|
517
520
|
t,
|
|
518
521
|
l,
|
|
519
522
|
d,
|
|
@@ -552,7 +555,7 @@ function ct({
|
|
|
552
555
|
)
|
|
553
556
|
] }) });
|
|
554
557
|
}
|
|
555
|
-
const
|
|
558
|
+
const Ve = 50;
|
|
556
559
|
function rt({
|
|
557
560
|
enabled: t,
|
|
558
561
|
refreshToken: l,
|
|
@@ -571,25 +574,25 @@ function rt({
|
|
|
571
574
|
scrollToTag: D,
|
|
572
575
|
activeEdgeName: T,
|
|
573
576
|
hiddenZeroGroups: m,
|
|
574
|
-
focusCategoryCodes:
|
|
577
|
+
focusCategoryCodes: F,
|
|
575
578
|
onToggleHideZeroGroup: C,
|
|
576
579
|
onToggleFocusCategory: E,
|
|
577
|
-
onTagRowClick:
|
|
580
|
+
onTagRowClick: V,
|
|
578
581
|
onEdgeRowClick: f,
|
|
579
582
|
onTagsMutated: A
|
|
580
583
|
}) {
|
|
581
|
-
const [O, R] = u(!1),
|
|
584
|
+
const [O, R] = u(!1), M = it(
|
|
582
585
|
t,
|
|
583
|
-
|
|
586
|
+
Ve,
|
|
584
587
|
O ? void 0 : "ACTIVE",
|
|
585
588
|
l
|
|
586
589
|
), U = lt(
|
|
587
590
|
t,
|
|
588
|
-
|
|
591
|
+
Ve,
|
|
589
592
|
O ? void 0 : "ACTIVE",
|
|
590
593
|
l
|
|
591
594
|
), le = () => {
|
|
592
|
-
|
|
595
|
+
M.setFilters({ ...M.filters });
|
|
593
596
|
}, $ = {
|
|
594
597
|
domainCode: d,
|
|
595
598
|
mutating: N.mutating,
|
|
@@ -643,16 +646,16 @@ function rt({
|
|
|
643
646
|
)
|
|
644
647
|
] }),
|
|
645
648
|
/* @__PURE__ */ e(
|
|
646
|
-
|
|
649
|
+
On,
|
|
647
650
|
{
|
|
648
|
-
tags:
|
|
651
|
+
tags: M.records,
|
|
649
652
|
edges: U.records,
|
|
650
|
-
tagTotal:
|
|
653
|
+
tagTotal: M.total,
|
|
651
654
|
edgeTotal: U.total,
|
|
652
655
|
categories: N.categories,
|
|
653
656
|
ancestorScope: g,
|
|
654
|
-
tagLoading:
|
|
655
|
-
tagFailed:
|
|
657
|
+
tagLoading: M.loading,
|
|
658
|
+
tagFailed: M.failed,
|
|
656
659
|
edgeLoading: U.loading,
|
|
657
660
|
edgeFailed: U.failed,
|
|
658
661
|
showRetired: O,
|
|
@@ -664,18 +667,18 @@ function rt({
|
|
|
664
667
|
scrollToTag: D,
|
|
665
668
|
activeEdgeName: T,
|
|
666
669
|
hiddenZeroGroups: m,
|
|
667
|
-
focusCategoryCodes:
|
|
670
|
+
focusCategoryCodes: F,
|
|
668
671
|
onToggleHideZeroGroup: C,
|
|
669
672
|
onToggleFocusCategory: E,
|
|
670
|
-
onTagRowClick:
|
|
673
|
+
onTagRowClick: V,
|
|
671
674
|
onEdgeRowClick: f
|
|
672
675
|
}
|
|
673
676
|
)
|
|
674
677
|
] });
|
|
675
678
|
}
|
|
676
679
|
const dt = Array.from(
|
|
677
|
-
{ length:
|
|
678
|
-
(t, l) =>
|
|
680
|
+
{ length: Xn - He + 1 },
|
|
681
|
+
(t, l) => He + l
|
|
679
682
|
), Ke = [
|
|
680
683
|
{ value: "out", label: "出边" },
|
|
681
684
|
{ value: "in", label: "入边" },
|
|
@@ -766,17 +769,17 @@ function ut({
|
|
|
766
769
|
}
|
|
767
770
|
function gt(t) {
|
|
768
771
|
const [l, d] = u(null), [g, N] = u(!0), [b, h] = u(!1), c = K(!0);
|
|
769
|
-
|
|
772
|
+
_(() => (c.current = !0, () => {
|
|
770
773
|
c.current = !1;
|
|
771
774
|
}), []);
|
|
772
775
|
const s = S(async () => {
|
|
773
776
|
if (!t)
|
|
774
777
|
return;
|
|
775
778
|
N(!0), h(!1);
|
|
776
|
-
const i = await
|
|
779
|
+
const i = await Nn();
|
|
777
780
|
c.current && (d(i || null), h(i === void 0), N(!1));
|
|
778
781
|
}, [t]);
|
|
779
|
-
return
|
|
782
|
+
return _(() => {
|
|
780
783
|
(async () => await s())();
|
|
781
784
|
}, [s]), { view: l, loading: g, failed: b, reload: s };
|
|
782
785
|
}
|
|
@@ -790,13 +793,13 @@ function ft() {
|
|
|
790
793
|
return;
|
|
791
794
|
}
|
|
792
795
|
b(!0), c.current = setTimeout(async () => {
|
|
793
|
-
const a = ++h.current, w = await
|
|
796
|
+
const a = ++h.current, w = await Cn(p, pt);
|
|
794
797
|
a === h.current && (b(!1), g(w ?? null));
|
|
795
798
|
}, ht);
|
|
796
799
|
}, []), i = S(() => {
|
|
797
800
|
h.current += 1, c.current && clearTimeout(c.current), l(""), g(null), b(!1);
|
|
798
801
|
}, []);
|
|
799
|
-
return
|
|
802
|
+
return _(
|
|
800
803
|
() => () => {
|
|
801
804
|
c.current && clearTimeout(c.current);
|
|
802
805
|
},
|
|
@@ -806,20 +809,20 @@ function ft() {
|
|
|
806
809
|
function vt() {
|
|
807
810
|
const [t, l] = u(null), [d, g] = u("loading"), [N, b] = u(!1), h = S(async () => {
|
|
808
811
|
g("loading");
|
|
809
|
-
const s = await
|
|
812
|
+
const s = await Tn();
|
|
810
813
|
if (s === void 0) {
|
|
811
814
|
l(null), g("failed");
|
|
812
815
|
return;
|
|
813
816
|
}
|
|
814
817
|
l(s), g(s === null ? "notOpen" : "open");
|
|
815
818
|
}, []);
|
|
816
|
-
|
|
819
|
+
_(() => {
|
|
817
820
|
(async () => await h())();
|
|
818
821
|
}, [h]);
|
|
819
822
|
const c = S(async (s) => {
|
|
820
823
|
b(!0);
|
|
821
824
|
try {
|
|
822
|
-
const i = await
|
|
825
|
+
const i = await yn(s);
|
|
823
826
|
return i && (l(i), g("open"), q("已保存本体信息", i.name, "success")), i;
|
|
824
827
|
} finally {
|
|
825
828
|
b(!1);
|
|
@@ -829,12 +832,12 @@ function vt() {
|
|
|
829
832
|
}
|
|
830
833
|
function bt(t) {
|
|
831
834
|
const [l, d] = u([]), [g, N] = u(!1);
|
|
832
|
-
return
|
|
835
|
+
return _(() => {
|
|
833
836
|
if (!t)
|
|
834
837
|
return;
|
|
835
838
|
let b = !0;
|
|
836
839
|
return N(!0), (async () => {
|
|
837
|
-
const h = await
|
|
840
|
+
const h = await Jn();
|
|
838
841
|
!b || !h || d(
|
|
839
842
|
h.map((c) => ({
|
|
840
843
|
code: c.code,
|
|
@@ -858,7 +861,7 @@ function Nt() {
|
|
|
858
861
|
return !1;
|
|
859
862
|
}
|
|
860
863
|
});
|
|
861
|
-
|
|
864
|
+
_(() => {
|
|
862
865
|
try {
|
|
863
866
|
window.localStorage.setItem(ze, t ? "1" : "0");
|
|
864
867
|
} catch {
|
|
@@ -872,7 +875,7 @@ function yt(t) {
|
|
|
872
875
|
const [l, d] = u([]), [g, N] = u(2), [b, h] = u("both"), c = S((p) => N(jn(p)), []), s = S((p) => {
|
|
873
876
|
d((a) => a.includes(p) ? a.filter((w) => w !== p) : a.length >= Ct ? a : [...a, p]);
|
|
874
877
|
}, []), i = S(() => d([]), []), x = G(
|
|
875
|
-
() => l.length ?
|
|
878
|
+
() => l.length ? Yn({ roots: l, hops: g, direction: b, edges: t }) : Tt,
|
|
876
879
|
[l, g, b, t]
|
|
877
880
|
);
|
|
878
881
|
return {
|
|
@@ -889,14 +892,14 @@ function yt(t) {
|
|
|
889
892
|
}
|
|
890
893
|
function wt(t, l = 0) {
|
|
891
894
|
const [d, g] = u([]), [N, b] = u(!0), [h, c] = u(!1), [s, i] = u(!1), x = K(!0), p = K(null);
|
|
892
|
-
|
|
895
|
+
_(() => (x.current = !0, () => {
|
|
893
896
|
x.current = !1;
|
|
894
897
|
}), []);
|
|
895
898
|
const a = S(async () => {
|
|
896
899
|
if (!t)
|
|
897
900
|
return;
|
|
898
901
|
b(!0), c(!1);
|
|
899
|
-
const E = await
|
|
902
|
+
const E = await wn();
|
|
900
903
|
if (x.current) {
|
|
901
904
|
if (b(!1), !E) {
|
|
902
905
|
c(!0);
|
|
@@ -905,7 +908,7 @@ function wt(t, l = 0) {
|
|
|
905
908
|
g(E);
|
|
906
909
|
}
|
|
907
910
|
}, [t]);
|
|
908
|
-
|
|
911
|
+
_(() => {
|
|
909
912
|
if (!t) {
|
|
910
913
|
p.current = null;
|
|
911
914
|
return;
|
|
@@ -915,38 +918,38 @@ function wt(t, l = 0) {
|
|
|
915
918
|
const w = S(
|
|
916
919
|
async (E) => {
|
|
917
920
|
i(!0);
|
|
918
|
-
const
|
|
919
|
-
return i(!1),
|
|
921
|
+
const V = await E();
|
|
922
|
+
return i(!1), V === void 0 ? !1 : (await a(), !0);
|
|
920
923
|
},
|
|
921
924
|
[a]
|
|
922
925
|
), D = S(
|
|
923
|
-
(E) => w(() =>
|
|
926
|
+
(E) => w(() => Sn(E)),
|
|
924
927
|
[w]
|
|
925
928
|
), T = S(
|
|
926
|
-
(E) => w(() =>
|
|
929
|
+
(E) => w(() => En(E)),
|
|
927
930
|
[w]
|
|
928
931
|
), m = S(
|
|
929
|
-
(E) => w(() =>
|
|
932
|
+
(E) => w(() => kn(E)),
|
|
930
933
|
[w]
|
|
931
|
-
),
|
|
932
|
-
(E) => w(() =>
|
|
934
|
+
), F = S(
|
|
935
|
+
(E) => w(() => xn(E)),
|
|
933
936
|
[w]
|
|
934
937
|
), C = S(
|
|
935
|
-
(E) => w(() =>
|
|
938
|
+
(E) => w(() => Rn(E)),
|
|
936
939
|
[w]
|
|
937
940
|
);
|
|
938
|
-
return { categories: d, loading: N, failed: h, mutating: s, reload: a, create: D, update: T, remove: m, reorder:
|
|
941
|
+
return { categories: d, loading: N, failed: h, mutating: s, reload: a, create: D, update: T, remove: m, reorder: F, bindTag: C };
|
|
939
942
|
}
|
|
940
943
|
const Be = 1e3, St = 1200, Et = 2400;
|
|
941
|
-
function
|
|
944
|
+
function Vt({
|
|
942
945
|
onGoModeling: t
|
|
943
946
|
} = {}) {
|
|
944
|
-
var Re, Ie, Oe, De, Ae,
|
|
945
|
-
const l =
|
|
947
|
+
var Re, Ie, Oe, De, Ae, Fe, Me;
|
|
948
|
+
const l = et(), { detail: d, state: g, saving: N, reload: b, save: h } = vt(), c = g === "open", s = gt(c), i = In(), x = i.currentCode ? Le({
|
|
946
949
|
domainCode: i.currentCode,
|
|
947
950
|
name: (Re = i.domains.find((n) => n.domainCode === i.currentCode)) == null ? void 0 : Re.name
|
|
948
951
|
}) : "", p = G(() => {
|
|
949
|
-
const n =
|
|
952
|
+
const n = Dn(
|
|
950
953
|
i.domains,
|
|
951
954
|
i.currentCode,
|
|
952
955
|
i.scope
|
|
@@ -956,27 +959,27 @@ function Pt({
|
|
|
956
959
|
ownName: x,
|
|
957
960
|
ancestors: n.map((o) => ({
|
|
958
961
|
code: o.domainCode,
|
|
959
|
-
name:
|
|
962
|
+
name: Le({ domainCode: o.domainCode, name: o.name })
|
|
960
963
|
}))
|
|
961
964
|
};
|
|
962
|
-
}, [i.domains, i.currentCode, i.scope, x]), a =
|
|
965
|
+
}, [i.domains, i.currentCode, i.scope, x]), a = An(), w = ft(), D = wt(c, i.version), T = Fn(), m = Mn(s.view), F = G(() => {
|
|
963
966
|
var n;
|
|
964
967
|
return ((n = s.view) == null ? void 0 : n.edges) ?? [];
|
|
965
|
-
}, [s.view]), C = yt(
|
|
966
|
-
width:
|
|
968
|
+
}, [s.view]), C = yt(F), E = Nt(), {
|
|
969
|
+
width: V,
|
|
967
970
|
containerRef: f,
|
|
968
971
|
startResize: A,
|
|
969
972
|
resetWidth: O
|
|
970
|
-
} =
|
|
973
|
+
} = $n({
|
|
971
974
|
storageKey: "ontology.typeRailWidth",
|
|
972
975
|
defaultWidth: 288,
|
|
973
976
|
minWidth: 220,
|
|
974
977
|
maxWidth: 420
|
|
975
|
-
}), [R,
|
|
976
|
-
|
|
978
|
+
}), [R, M] = u(!1), U = bt(R), [le, $] = u("table"), [ae, Q] = u(null), ve = K(i.version);
|
|
979
|
+
_(() => {
|
|
977
980
|
ve.current !== i.version && (ve.current = i.version, Q(null), s.reload());
|
|
978
981
|
}, [i.version, s]);
|
|
979
|
-
const [be, X] = u(null), [We, ce] = u([]),
|
|
982
|
+
const [be, X] = u(null), [We, ce] = u([]), Z = K(null), [Ue, re] = u([]), J = K(null), [Ne, qe] = u([]), [ee, Ce] = u([]), de = (n) => {
|
|
980
983
|
C.roots.includes(n) || Ce([]), C.toggleRoot(n);
|
|
981
984
|
}, Qe = (n) => {
|
|
982
985
|
const o = ee.includes(n), v = o ? ee.filter((y) => y !== n) : [...ee, n];
|
|
@@ -985,9 +988,9 @@ function Pt({
|
|
|
985
988
|
qe(
|
|
986
989
|
(o) => o.includes(n) ? o.filter((v) => v !== n) : [...o, n]
|
|
987
990
|
);
|
|
988
|
-
}, []), [se, W] = u(null), [ue,
|
|
989
|
-
|
|
990
|
-
const [
|
|
991
|
+
}, []), [se, W] = u(null), [ue, P] = u(null), [ge, L] = u(null), [he, me] = u(null), [je, Ye] = u(i.currentCode);
|
|
992
|
+
je !== i.currentCode && (Ye(i.currentCode), W(null), P(null), L(null), me(null));
|
|
993
|
+
const [Ze, Je] = u(null), Te = K(0), [ne, j] = u(null), en = (((Ie = s.view) == null ? void 0 : Ie.nodes) || []).reduce(
|
|
991
994
|
(n, o) => n + (Number(o.instanceCount) || 0),
|
|
992
995
|
0
|
|
993
996
|
), nn = G(() => {
|
|
@@ -1016,8 +1019,8 @@ function Pt({
|
|
|
1016
1019
|
},
|
|
1017
1020
|
[s.view]
|
|
1018
1021
|
), tn = async (n) => {
|
|
1019
|
-
var I,
|
|
1020
|
-
const o = T.focusVid === n, v = ((I = a.subgraph.view) == null ? void 0 : I.edges) ?? [], y = new Set((((
|
|
1022
|
+
var I, H;
|
|
1023
|
+
const o = T.focusVid === n, v = ((I = a.subgraph.view) == null ? void 0 : I.edges) ?? [], y = new Set((((H = a.subgraph.view) == null ? void 0 : H.nodes) ?? []).map((B) => B.vid)), k = await a.expandNeighbors(n);
|
|
1021
1024
|
if (k) {
|
|
1022
1025
|
o && T.focusInstance(n, [...v, ...k.edges]);
|
|
1023
1026
|
const B = k.nodes.filter((te) => !y.has(te.vid)).map((te) => te.vid);
|
|
@@ -1027,37 +1030,37 @@ function Pt({
|
|
|
1027
1030
|
));
|
|
1028
1031
|
}
|
|
1029
1032
|
}, we = K(a.expandNeighbors);
|
|
1030
|
-
|
|
1033
|
+
_(() => {
|
|
1031
1034
|
we.current = a.expandNeighbors;
|
|
1032
1035
|
});
|
|
1033
1036
|
const Se = T.focusInstance;
|
|
1034
|
-
|
|
1037
|
+
_(() => {
|
|
1035
1038
|
if (!ne || a.layer !== "instance" || a.subgraph.loading) return;
|
|
1036
1039
|
const n = a.subgraph.failed, o = a.subgraph.view, v = a.loadingMore;
|
|
1037
1040
|
let y = !1;
|
|
1038
1041
|
return (async () => {
|
|
1039
1042
|
if (!o) {
|
|
1040
|
-
n &&
|
|
1043
|
+
n && j(null);
|
|
1041
1044
|
return;
|
|
1042
1045
|
}
|
|
1043
|
-
let I = o.nodes.find((B) => B.vid === ne.vid) ?? null,
|
|
1046
|
+
let I = o.nodes.find((B) => B.vid === ne.vid) ?? null, H = o.edges;
|
|
1044
1047
|
if (!I) {
|
|
1045
1048
|
if (v) return;
|
|
1046
1049
|
const B = await we.current(ne.vid);
|
|
1047
1050
|
if (y) return;
|
|
1048
1051
|
if (!B) {
|
|
1049
|
-
|
|
1052
|
+
j(null), q("未能定位到该实例", "种子展开未返回数据,请稍后重试", "warn");
|
|
1050
1053
|
return;
|
|
1051
1054
|
}
|
|
1052
|
-
I = [...o.nodes, ...B.nodes].find((te) => te.vid === ne.vid) ?? null,
|
|
1055
|
+
I = [...o.nodes, ...B.nodes].find((te) => te.vid === ne.vid) ?? null, H = [...o.edges, ...B.edges];
|
|
1053
1056
|
}
|
|
1054
|
-
I && Se(I.vid,
|
|
1057
|
+
I && Se(I.vid, H), j(null);
|
|
1055
1058
|
})(), () => {
|
|
1056
1059
|
y = !0;
|
|
1057
1060
|
};
|
|
1058
1061
|
}, [ne, a.layer, a.subgraph, a.loadingMore, Se]);
|
|
1059
1062
|
const an = (n) => {
|
|
1060
|
-
w.reset(), T.clearFocus(),
|
|
1063
|
+
w.reset(), T.clearFocus(), P(null), L(null), a.enterInstanceWith(n.tagName), Q(null), $("graph"), j(n);
|
|
1061
1064
|
}, Ee = (n) => {
|
|
1062
1065
|
const o = m.pickNode(n);
|
|
1063
1066
|
Te.current += 1, Je({ tagName: n, seq: Te.current }), o.kind === "unreachable" && q("未找到可行链路", `已将 ${o.tagName} 切换为链路起点`, "warn");
|
|
@@ -1066,7 +1069,7 @@ function Pt({
|
|
|
1066
1069
|
const o = [n.srcTag, n.dstTag].filter(
|
|
1067
1070
|
(v) => !!v
|
|
1068
1071
|
);
|
|
1069
|
-
ce(o),
|
|
1072
|
+
ce(o), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => ce([]), St);
|
|
1070
1073
|
}, []), sn = S(
|
|
1071
1074
|
(n) => {
|
|
1072
1075
|
var v;
|
|
@@ -1078,7 +1081,7 @@ function Pt({
|
|
|
1078
1081
|
},
|
|
1079
1082
|
[pe, s.view]
|
|
1080
1083
|
), on = S((n) => {
|
|
1081
|
-
|
|
1084
|
+
P(null), L({
|
|
1082
1085
|
kind: "instance",
|
|
1083
1086
|
edge: n,
|
|
1084
1087
|
nameOf: (o) => {
|
|
@@ -1087,15 +1090,15 @@ function Pt({
|
|
|
1087
1090
|
}
|
|
1088
1091
|
});
|
|
1089
1092
|
}, [a.subgraph.view]);
|
|
1090
|
-
|
|
1093
|
+
_(
|
|
1091
1094
|
() => () => {
|
|
1092
|
-
|
|
1095
|
+
Z.current && clearTimeout(Z.current), J.current && clearTimeout(J.current);
|
|
1093
1096
|
},
|
|
1094
1097
|
[]
|
|
1095
1098
|
);
|
|
1096
1099
|
const fe = S(
|
|
1097
1100
|
(n) => {
|
|
1098
|
-
T.clearFocus(), X(null),
|
|
1101
|
+
T.clearFocus(), X(null), P(null), L(null), a.enterInstanceWith(n), Q({ kind: "tag", tagName: n, tagLabels: oe }), $("table");
|
|
1099
1102
|
},
|
|
1100
1103
|
[T, a, oe]
|
|
1101
1104
|
), ln = S(() => {
|
|
@@ -1106,7 +1109,7 @@ function Pt({
|
|
|
1106
1109
|
}
|
|
1107
1110
|
if (!m.selectedSteps) return;
|
|
1108
1111
|
const o = m.selectedSteps.map((v) => ({ ...v }));
|
|
1109
|
-
T.clearFocus(), X(null),
|
|
1112
|
+
T.clearFocus(), X(null), P(null), L(null), a.enterInstanceWithTags([...new Set(n)]), Q({
|
|
1110
1113
|
kind: "chain",
|
|
1111
1114
|
steps: o,
|
|
1112
1115
|
tagLabels: oe,
|
|
@@ -1140,10 +1143,10 @@ function Pt({
|
|
|
1140
1143
|
);
|
|
1141
1144
|
return;
|
|
1142
1145
|
}
|
|
1143
|
-
T.clearFocus(), X(null),
|
|
1146
|
+
T.clearFocus(), X(null), P(null), L(null), a.enterInstanceWithTags(n), Q(null), $("graph"), j(null);
|
|
1144
1147
|
}
|
|
1145
1148
|
}, [T, a, C.neighborhood.tags]), ke = () => {
|
|
1146
|
-
a.backToStructureLayer(), T.clearFocus(), X(null), ce([]), re([]), Q(null),
|
|
1149
|
+
a.backToStructureLayer(), T.clearFocus(), X(null), ce([]), re([]), Q(null), j(null), $("table"), W(null), P(null), L(null);
|
|
1147
1150
|
}, rn = S(
|
|
1148
1151
|
(n) => {
|
|
1149
1152
|
var v;
|
|
@@ -1154,7 +1157,7 @@ function Pt({
|
|
|
1154
1157
|
},
|
|
1155
1158
|
[s.view, T]
|
|
1156
1159
|
), dn = () => {
|
|
1157
|
-
a.layer === "instance" && (T.clearFocus(),
|
|
1160
|
+
a.layer === "instance" && (T.clearFocus(), P(null), L(null), a.reloadSubgraph());
|
|
1158
1161
|
}, un = async () => {
|
|
1159
1162
|
var n, o;
|
|
1160
1163
|
if (a.selectedTags.length > 0) {
|
|
@@ -1176,7 +1179,7 @@ function Pt({
|
|
|
1176
1179
|
}
|
|
1177
1180
|
await a.loadAllInstances();
|
|
1178
1181
|
}, gn = S(() => {
|
|
1179
|
-
T.clearFocus(), X(null), W(null),
|
|
1182
|
+
T.clearFocus(), X(null), W(null), P(null), L(null);
|
|
1180
1183
|
}, [T]), hn = G(
|
|
1181
1184
|
() => ({
|
|
1182
1185
|
focusVid: T.focusVid,
|
|
@@ -1187,13 +1190,13 @@ function Pt({
|
|
|
1187
1190
|
), xe = G(() => {
|
|
1188
1191
|
const n = s.view, o = (k) => {
|
|
1189
1192
|
var I;
|
|
1190
|
-
return ((I = n == null ? void 0 : n.nodes.find((
|
|
1193
|
+
return ((I = n == null ? void 0 : n.nodes.find((H) => H.tagName === k)) == null ? void 0 : I.displayName) || k;
|
|
1191
1194
|
}, v = m.chainNodeNames.map((k) => ({
|
|
1192
1195
|
tagName: k,
|
|
1193
1196
|
label: o(k)
|
|
1194
1197
|
})), y = (m.selectedSteps ?? []).map((k) => {
|
|
1195
1198
|
const I = n == null ? void 0 : n.edges.find(
|
|
1196
|
-
(
|
|
1199
|
+
(H) => H.edgeName === k.edgeName && (H.srcTag === k.srcTag && H.dstTag === k.dstTag || H.srcTag === k.dstTag && H.dstTag === k.srcTag)
|
|
1197
1200
|
);
|
|
1198
1201
|
return {
|
|
1199
1202
|
label: (I == null ? void 0 : I.displayName) || k.edgeName,
|
|
@@ -1204,8 +1207,8 @@ function Pt({
|
|
|
1204
1207
|
}, [s.view, m.chainNodeNames, m.selectedSteps]), mn = G(
|
|
1205
1208
|
() => (m.selectedSteps ?? []).map((n) => n.edgeName),
|
|
1206
1209
|
[m.selectedSteps]
|
|
1207
|
-
), pn = m.selectedSteps && m.selectedSteps.length >
|
|
1208
|
-
return
|
|
1210
|
+
), pn = m.selectedSteps && m.selectedSteps.length > Ln ? `链路已达 ${m.selectedSteps.length} 段(上限 4 段),点击链上节点截断后再查` : void 0;
|
|
1211
|
+
return Gn(() => {
|
|
1209
1212
|
if (se) {
|
|
1210
1213
|
W(null);
|
|
1211
1214
|
return;
|
|
@@ -1215,7 +1218,7 @@ function Pt({
|
|
|
1215
1218
|
return;
|
|
1216
1219
|
}
|
|
1217
1220
|
if (ue) {
|
|
1218
|
-
|
|
1221
|
+
P(null);
|
|
1219
1222
|
return;
|
|
1220
1223
|
}
|
|
1221
1224
|
if (a.layer === "instance") {
|
|
@@ -1236,12 +1239,12 @@ function Pt({
|
|
|
1236
1239
|
{
|
|
1237
1240
|
onGoModeling: t ?? (() => l("/ontology-modeling"))
|
|
1238
1241
|
}
|
|
1239
|
-
) : d ? /* @__PURE__ */ e(
|
|
1242
|
+
) : d ? /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ r(
|
|
1240
1243
|
"div",
|
|
1241
1244
|
{
|
|
1242
1245
|
className: `ov-split${E.collapsed ? " rail-collapsed" : ""}`,
|
|
1243
1246
|
ref: f,
|
|
1244
|
-
style: { "--split-w": `${
|
|
1247
|
+
style: { "--split-w": `${V}px` },
|
|
1245
1248
|
children: [
|
|
1246
1249
|
/* @__PURE__ */ e(
|
|
1247
1250
|
rt,
|
|
@@ -1254,7 +1257,7 @@ function Pt({
|
|
|
1254
1257
|
identity: {
|
|
1255
1258
|
name: d.name
|
|
1256
1259
|
},
|
|
1257
|
-
onOpenSettings: () =>
|
|
1260
|
+
onOpenSettings: () => M(!0),
|
|
1258
1261
|
collapsed: E.collapsed,
|
|
1259
1262
|
onToggleCollapsed: E.toggle,
|
|
1260
1263
|
collapsedDomainName: x,
|
|
@@ -1262,7 +1265,7 @@ function Pt({
|
|
|
1262
1265
|
onToggleFocus: de,
|
|
1263
1266
|
chainTagNames: m.chainNodeNames,
|
|
1264
1267
|
flashTagNames: We,
|
|
1265
|
-
scrollToTag:
|
|
1268
|
+
scrollToTag: Ze,
|
|
1266
1269
|
activeEdgeName: be ?? void 0,
|
|
1267
1270
|
hiddenZeroGroups: Ne,
|
|
1268
1271
|
focusCategoryCodes: ee,
|
|
@@ -1293,7 +1296,7 @@ function Pt({
|
|
|
1293
1296
|
}
|
|
1294
1297
|
),
|
|
1295
1298
|
/* @__PURE__ */ e(
|
|
1296
|
-
|
|
1299
|
+
_n,
|
|
1297
1300
|
{
|
|
1298
1301
|
view: s.view,
|
|
1299
1302
|
loading: s.loading,
|
|
@@ -1331,7 +1334,7 @@ function Pt({
|
|
|
1331
1334
|
onInstanceEdgeClick: on,
|
|
1332
1335
|
onInstanceNodeClick: (n) => {
|
|
1333
1336
|
var o;
|
|
1334
|
-
T.focusInstance(n.vid, ((o = a.subgraph.view) == null ? void 0 : o.edges) ?? []), L(null),
|
|
1337
|
+
T.focusInstance(n.vid, ((o = a.subgraph.view) == null ? void 0 : o.edges) ?? []), L(null), P(n);
|
|
1335
1338
|
},
|
|
1336
1339
|
onChainNodePick: Ee,
|
|
1337
1340
|
onChainEdgePick: (n) => {
|
|
@@ -1342,7 +1345,7 @@ function Pt({
|
|
|
1342
1345
|
).kind === "ignored" && q("无法拼入链路", "该关系的端点类型不在当前图谱中", "warn");
|
|
1343
1346
|
},
|
|
1344
1347
|
onViewEdgeInstances: (n) => {
|
|
1345
|
-
W(null), L(null),
|
|
1348
|
+
W(null), L(null), P(null), me(n);
|
|
1346
1349
|
},
|
|
1347
1350
|
onEnterInstanceWith: fe,
|
|
1348
1351
|
onOpenTypeDetail: (n) => W(n),
|
|
@@ -1369,7 +1372,7 @@ function Pt({
|
|
|
1369
1372
|
}
|
|
1370
1373
|
) : null,
|
|
1371
1374
|
chainBar: /* @__PURE__ */ e(
|
|
1372
|
-
|
|
1375
|
+
Bn,
|
|
1373
1376
|
{
|
|
1374
1377
|
nodeChips: xe.nodes,
|
|
1375
1378
|
edgeChips: xe.edges,
|
|
@@ -1388,7 +1391,7 @@ function Pt({
|
|
|
1388
1391
|
}
|
|
1389
1392
|
),
|
|
1390
1393
|
chainCandidates: /* @__PURE__ */ e(
|
|
1391
|
-
|
|
1394
|
+
zn,
|
|
1392
1395
|
{
|
|
1393
1396
|
metas: m.candidateMetas,
|
|
1394
1397
|
activeIndex: m.activeIndex,
|
|
@@ -1396,7 +1399,7 @@ function Pt({
|
|
|
1396
1399
|
}
|
|
1397
1400
|
),
|
|
1398
1401
|
typeDetail: se ? /* @__PURE__ */ e(
|
|
1399
|
-
|
|
1402
|
+
Kn,
|
|
1400
1403
|
{
|
|
1401
1404
|
code: se.code,
|
|
1402
1405
|
tagName: se.tagName,
|
|
@@ -1405,7 +1408,7 @@ function Pt({
|
|
|
1405
1408
|
}
|
|
1406
1409
|
) : null,
|
|
1407
1410
|
edgeDetail: ge ? /* @__PURE__ */ e(
|
|
1408
|
-
|
|
1411
|
+
Vn,
|
|
1409
1412
|
{
|
|
1410
1413
|
target: ge,
|
|
1411
1414
|
onClose: () => L(null)
|
|
@@ -1420,17 +1423,17 @@ function Pt({
|
|
|
1420
1423
|
var o, v;
|
|
1421
1424
|
return ((v = (o = a.subgraph.view) == null ? void 0 : o.nodes.find((y) => y.vid === n)) == null ? void 0 : v.name) || n;
|
|
1422
1425
|
},
|
|
1423
|
-
onClose: () =>
|
|
1426
|
+
onClose: () => P(null)
|
|
1424
1427
|
}
|
|
1425
1428
|
) : null,
|
|
1426
|
-
instanceTable: ae ? /* @__PURE__ */ e(
|
|
1429
|
+
instanceTable: ae ? /* @__PURE__ */ e(Hn, { source: ae }) : null,
|
|
1427
1430
|
relationTable: he ? /* @__PURE__ */ e(
|
|
1428
|
-
|
|
1431
|
+
Pn,
|
|
1429
1432
|
{
|
|
1430
1433
|
edgeName: he.edgeName,
|
|
1431
|
-
label: (
|
|
1434
|
+
label: (Me = (Fe = s.view) == null ? void 0 : Fe.edges.find(
|
|
1432
1435
|
(n) => n.edgeName === he.edgeName
|
|
1433
|
-
)) == null ? void 0 :
|
|
1436
|
+
)) == null ? void 0 : Me.displayName,
|
|
1434
1437
|
onClose: () => me(null)
|
|
1435
1438
|
}
|
|
1436
1439
|
) : null,
|
|
@@ -1459,10 +1462,10 @@ function Pt({
|
|
|
1459
1462
|
onUpdateCategory: D.update,
|
|
1460
1463
|
onRemoveCategory: D.remove,
|
|
1461
1464
|
onReorderCategories: D.reorder,
|
|
1462
|
-
onClose: () =>
|
|
1465
|
+
onClose: () => M(!1),
|
|
1463
1466
|
onSubmit: (n) => {
|
|
1464
1467
|
h(n).then((o) => {
|
|
1465
|
-
o &&
|
|
1468
|
+
o && M(!1);
|
|
1466
1469
|
});
|
|
1467
1470
|
}
|
|
1468
1471
|
}
|
|
@@ -1470,5 +1473,5 @@ function Pt({
|
|
|
1470
1473
|
] });
|
|
1471
1474
|
}
|
|
1472
1475
|
export {
|
|
1473
|
-
|
|
1476
|
+
Vt as default
|
|
1474
1477
|
};
|