@yuku123/z-cognition-component 2.0.0 → 2.0.2
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-CvgRLQw2.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-DYDhijtn.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DJnybJtS.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-3IbhY8Lp.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-Cd6CVzz4.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-cIXgilaE.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-BQzH4ChB.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-LKTj_HKM.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-CxuJ5unU.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-BplnCOF4.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-xEt2qnho.js → changelog-BoGqt_81.js} +2 -2
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Cn81Dvgk.js} +1 -1
- 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-BaX7WiWV.js} +51 -50
- package/dist-lib/{detail-BW6dD_YP.js → detail-Cx5c4KJH.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-C3Oz04OW.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-Cbn2eJaJ.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-mtaJBQXz.js} +21 -20
- package/dist-lib/embed-CR8XVkMy.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-BoHiY8yT.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-BJ2Gpcbi.js → index-B22_2Dzh.js} +2 -2
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-rtSfQuYs.js → index-BSlCGnzo.js} +12 -12
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-SAPKyv8e.js → index-Bm1sK-VN.js} +10 -10
- 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-B5jr3A7f.js → index-CHBNrCMy.js} +19 -19
- package/dist-lib/{index-BFRg0cn3.js → index-CLTfICbf.js} +6 -6
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-Cj4DDWyj.js} +11 -10
- 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-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-PBT9GksC.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- 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-B0rM1ZvV.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-Bh_FQH28.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-Cl1Ka1e6.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-CPuzdRiq.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-Cu62Fl7J.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-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-DKDx77PD.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-BrooQ3Q7.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-Dievi8Jw.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-xTNmTS9g.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-BD_qYTZu.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-DiHYqBKB.js} +2 -2
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-BBCu3zRe.js} +8 -8
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-BXsdMJSV.js} +4 -4
- package/dist-lib/{my-access-j53lA6T6.js → my-access-CEGErUgv.js} +4 -4
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-wSr5zv7g.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BevAuTe5.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-DXGSJC-y.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-jTG7CZm8.js} +88 -84
- package/dist-lib/ontology-modeling-CjRsa-DR.js +1039 -0
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-DOj68TuI.js} +2125 -2117
- package/dist-lib/ontology-scenarios-CcAagMiP.js +660 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-J5kw6xgi.js} +703 -712
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-BUXo69Ne.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-D31cXjul.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-CiWNK-cX.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DQ_OBV4Z.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-DESMvU7A.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-BktxwX3S.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-dsB3H65I.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-CTCzvhyE.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-BstybhBG.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-CHPlMsgO.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-tXqc855k.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-BiTOiZj0.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-BKlGPkV0.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-CouQ4FWk.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-BPlNfoiP.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-ja-ZIC_R.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-CkBm36Yk.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-B4kIbdVc.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-F5iZoFB1.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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { I as c, _ as r } from "./SearchOutlined-puH6bCY6.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
var n = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z" } }] }, name: "apartment", theme: "outlined" }, o = function(e, a) {
|
|
4
|
+
return /* @__PURE__ */ t.createElement(c, r({}, e, {
|
|
5
|
+
ref: a,
|
|
6
|
+
icon: n
|
|
7
|
+
}));
|
|
8
|
+
}, v = /* @__PURE__ */ t.forwardRef(o);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "ApartmentOutlined");
|
|
10
|
+
export {
|
|
11
|
+
v as R
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { I as a, _ as o } from "./SearchOutlined-puH6bCY6.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
var n = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "arrow-left", theme: "outlined" }, c = function(r, t) {
|
|
4
|
+
return /* @__PURE__ */ e.createElement(a, o({}, r, {
|
|
5
|
+
ref: t,
|
|
6
|
+
icon: n
|
|
7
|
+
}));
|
|
8
|
+
}, f = /* @__PURE__ */ e.forwardRef(c);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "ArrowLeftOutlined");
|
|
10
|
+
export {
|
|
11
|
+
f as R
|
|
12
|
+
};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useEffect as v } from "react";
|
|
3
3
|
import { c as y } from "./api-CxSIf5HG.js";
|
|
4
|
-
import { K as x, C as S, E } from "./EvidenceFormList-
|
|
5
|
-
import { u as F } from "./chunk-
|
|
6
|
-
import { F as a, M as z } from "./index-
|
|
7
|
-
import { S as w
|
|
8
|
-
import { I as i
|
|
9
|
-
import {
|
|
10
|
-
import { R
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import { K as x, C as S, E } from "./EvidenceFormList-DXqqSpPV.js";
|
|
5
|
+
import { u as F } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
6
|
+
import { F as a, M as z } from "./index-DBlG9uXV.js";
|
|
7
|
+
import { S as w } from "./index-CaXylbQR.js";
|
|
8
|
+
import { I as i } from "./index-DvWHYX81.js";
|
|
9
|
+
import { B as d } from "./index-CrMcNEAZ.js";
|
|
10
|
+
import { R } from "./ReloadOutlined-CS-e-TmN.js";
|
|
11
|
+
import { R as $ } from "./PlusOutlined-B_dXo_97.js";
|
|
12
|
+
import { F as k } from "./Table-CDagah-g.js";
|
|
13
|
+
import { T as q } from "./index-Bc-Vin3j.js";
|
|
14
|
+
import { S as N } from "./index-bOY1cBol.js";
|
|
15
|
+
import { s as m } from "./index-DBtGE89a.js";
|
|
13
16
|
const { TextArea: P } = i;
|
|
14
|
-
function
|
|
17
|
+
function X() {
|
|
15
18
|
const g = F(), [I, C] = n([]), [b, p] = n(!1), [u, h] = n(""), [K, l] = n(!1), [T, f] = n(!1), [c] = a.useForm(), o = async (t = u) => {
|
|
16
19
|
p(!0);
|
|
17
20
|
try {
|
|
@@ -53,7 +56,7 @@ function J() {
|
|
|
53
56
|
columns: [
|
|
54
57
|
{ title: "conceptKey", dataIndex: "conceptKey", width: 200 },
|
|
55
58
|
{ title: "名称", dataIndex: "name", width: 180 },
|
|
56
|
-
{ title: "类型", dataIndex: "conceptType", width: 120, render: (t) => /* @__PURE__ */ e(
|
|
59
|
+
{ title: "类型", dataIndex: "conceptType", width: 120, render: (t) => /* @__PURE__ */ e(q, { children: t }) },
|
|
57
60
|
{ title: "域", dataIndex: "domain", width: 120 },
|
|
58
61
|
{ title: "父概念", dataIndex: "parentKey", width: 180, render: (t) => t || "—" },
|
|
59
62
|
{ title: "版本", dataIndex: "revisionNo", width: 70, render: (t) => `r${t}` },
|
|
@@ -113,7 +116,7 @@ function J() {
|
|
|
113
116
|
}
|
|
114
117
|
),
|
|
115
118
|
/* @__PURE__ */ e(a.Item, { name: "name", label: "名称", rules: [{ required: !0, message: "必填" }], children: /* @__PURE__ */ e(i, { style: { width: 200 }, placeholder: "订单" }) }),
|
|
116
|
-
/* @__PURE__ */ e(a.Item, { name: "conceptType", label: "类型", rules: [{ required: !0, message: "必填" }], initialValue: "ENTITY", children: /* @__PURE__ */ e(
|
|
119
|
+
/* @__PURE__ */ e(a.Item, { name: "conceptType", label: "类型", rules: [{ required: !0, message: "必填" }], initialValue: "ENTITY", children: /* @__PURE__ */ e(N, { style: { width: 140 }, options: S.map((t) => ({ value: t, label: t })) }) }),
|
|
117
120
|
/* @__PURE__ */ e(a.Item, { name: "domain", label: "域", children: /* @__PURE__ */ e(i, { style: { width: 140 } }) }),
|
|
118
121
|
/* @__PURE__ */ e(a.Item, { name: "parentKey", label: "父概念", children: /* @__PURE__ */ e(i, { style: { width: 180 } }) })
|
|
119
122
|
] }),
|
|
@@ -125,5 +128,5 @@ function J() {
|
|
|
125
128
|
] });
|
|
126
129
|
}
|
|
127
130
|
export {
|
|
128
|
-
|
|
131
|
+
X as default
|
|
129
132
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { T as i } from "./index-
|
|
3
|
-
import { F as o } from "./Table-
|
|
4
|
-
import { T as l } from "./index-
|
|
5
|
-
import { D as a } from "./index-
|
|
2
|
+
import { T as i } from "./index-BEjXaDfk.js";
|
|
3
|
+
import { F as o } from "./Table-CDagah-g.js";
|
|
4
|
+
import { T as l } from "./index-Bc-Vin3j.js";
|
|
5
|
+
import { D as a } from "./index-9aQ4BzIK.js";
|
|
6
6
|
const n = [
|
|
7
7
|
["GET", "/api/terms", "术语列表(domain / status / q)"],
|
|
8
8
|
["GET", "/api/terms/{key}", "术语详情"],
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { F as t } from "./index-DBlG9uXV.js";
|
|
3
|
+
import { S as E } from "./index-CaXylbQR.js";
|
|
4
|
+
import { S as T } from "./index-bOY1cBol.js";
|
|
5
|
+
import { I as c } from "./index-DvWHYX81.js";
|
|
6
|
+
import { B as d } from "./index-CrMcNEAZ.js";
|
|
7
|
+
import { R as u } from "./PlusOutlined-B_dXo_97.js";
|
|
8
|
+
const g = ["DRAFT", "ACTIVE", "DEPRECATED"], _ = ["ENTITY", "PROCESS", "ROLE", "EVENT", "VALUE"], R = ["EXTERNAL_URL", "META_COLUMN", "CODE_SYMBOL", "API"], w = { DRAFT: "gold", ACTIVE: "green", DEPRECATED: "default" }, D = /^[a-z][a-z0-9_.-]{1,127}$/;
|
|
9
|
+
function N({ name: a = "evidences" }) {
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
t.List,
|
|
12
|
+
{
|
|
13
|
+
name: a,
|
|
14
|
+
rules: [
|
|
15
|
+
{
|
|
16
|
+
validator: async (s, r) => {
|
|
17
|
+
if (!r || r.length === 0) throw new Error("至少一条证据");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
children: (s, { add: r, remove: n }, { errors: h }) => /* @__PURE__ */ m(E, { direction: "vertical", style: { width: "100%" }, size: 4, children: [
|
|
22
|
+
s.map(({ key: p, name: o, ...i }) => /* @__PURE__ */ m(E, { align: "baseline", wrap: !0, children: [
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
t.Item,
|
|
25
|
+
{
|
|
26
|
+
...i,
|
|
27
|
+
name: [o, "evidenceType"],
|
|
28
|
+
rules: [{ required: !0, message: "类型" }],
|
|
29
|
+
style: { marginBottom: 8 },
|
|
30
|
+
children: /* @__PURE__ */ e(
|
|
31
|
+
T,
|
|
32
|
+
{
|
|
33
|
+
style: { width: 150 },
|
|
34
|
+
placeholder: "证据类型",
|
|
35
|
+
options: R.map((l) => ({ value: l, label: l }))
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
t.Item,
|
|
42
|
+
{
|
|
43
|
+
...i,
|
|
44
|
+
name: [o, "refId"],
|
|
45
|
+
rules: [{ required: !0, message: "refId" }],
|
|
46
|
+
style: { marginBottom: 8 },
|
|
47
|
+
children: /* @__PURE__ */ e(c, { style: { width: 320 }, placeholder: "refId(URL / 表.列 / 类#方法)" })
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
t.Item,
|
|
52
|
+
{
|
|
53
|
+
...i,
|
|
54
|
+
name: [o, "snapshotHash"],
|
|
55
|
+
rules: [{ required: !0, message: "snapshotHash" }],
|
|
56
|
+
style: { marginBottom: 8 },
|
|
57
|
+
children: /* @__PURE__ */ e(c, { style: { width: 220 }, placeholder: "snapshotHash(sha256 前 16 位即可)" })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ e(d, { type: "text", danger: !0, onClick: () => n(o), children: "删除" })
|
|
61
|
+
] }, p)),
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
d,
|
|
64
|
+
{
|
|
65
|
+
type: "dashed",
|
|
66
|
+
icon: /* @__PURE__ */ e(u, {}),
|
|
67
|
+
onClick: () => r({ evidenceType: "EXTERNAL_URL" }),
|
|
68
|
+
style: { width: 220 },
|
|
69
|
+
children: "加一条证据"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(t.ErrorList, { errors: h })
|
|
73
|
+
] })
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function O(a) {
|
|
78
|
+
return (a || []).map(({ evidenceType: s, refId: r, snapshotHash: n }) => ({
|
|
79
|
+
evidenceType: s,
|
|
80
|
+
refId: r,
|
|
81
|
+
snapshotHash: n
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
_ as C,
|
|
86
|
+
N as E,
|
|
87
|
+
D as K,
|
|
88
|
+
w as S,
|
|
89
|
+
g as T,
|
|
90
|
+
O as t
|
|
91
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as r, _ as n } from "./SearchOutlined-puH6bCY6.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
var c = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, o = function(t, a) {
|
|
4
4
|
return /* @__PURE__ */ e.createElement(r, n({}, t, {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useEffect as T } from "react";
|
|
3
|
+
import { c as j } from "./api-CxSIf5HG.js";
|
|
4
|
+
import { b as w } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
5
|
+
import { T as p } from "./index-BEjXaDfk.js";
|
|
6
|
+
import { S as K } from "./index-CaXylbQR.js";
|
|
7
|
+
import { S } from "./index-bOY1cBol.js";
|
|
8
|
+
import { I } from "./index-DvWHYX81.js";
|
|
9
|
+
import { B as x, a4 as C } from "./index-CrMcNEAZ.js";
|
|
10
|
+
import { R as E } from "./SearchOutlined-puH6bCY6.js";
|
|
11
|
+
import { A as v } from "./index-nQSVLWfW.js";
|
|
12
|
+
import { F as P } from "./Table-CDagah-g.js";
|
|
13
|
+
import { s as u } from "./index-DBtGE89a.js";
|
|
14
|
+
const M = [
|
|
15
|
+
{ value: "term", label: "TERM(术语)" },
|
|
16
|
+
{ value: "concept", label: "CONCEPT(概念)" }
|
|
17
|
+
], y = (r) => (r || "").toLowerCase() === "concept" ? "concept" : "term";
|
|
18
|
+
function _() {
|
|
19
|
+
const [r] = w(), [n, d] = o(y(r.get("subjectType"))), [c, f] = o(r.get("subjectKey") || ""), [a, g] = o(null), [h, i] = o(!1), s = async (t = n, l = c) => {
|
|
20
|
+
if (!l.trim()) {
|
|
21
|
+
u.warning("先输入 subjectKey");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
i(!0);
|
|
25
|
+
try {
|
|
26
|
+
g(await j.impact(t, l.trim()));
|
|
27
|
+
} catch (b) {
|
|
28
|
+
u.error(b.message);
|
|
29
|
+
} finally {
|
|
30
|
+
i(!1);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return T(() => {
|
|
34
|
+
r.get("subjectKey") && s(y(r.get("subjectType")), r.get("subjectKey"));
|
|
35
|
+
}, []), /* @__PURE__ */ m("div", { children: [
|
|
36
|
+
/* @__PURE__ */ e(p.Paragraph, { type: "secondary", children: "影响面:改一个 key 前先看谁引用了它。M0 基于本域关系(术语↔概念、父子概念), M1 再接 z-graph / z-meta 的跨域引用。" }),
|
|
37
|
+
/* @__PURE__ */ m(K, { wrap: !0, style: { marginBottom: 16 }, children: [
|
|
38
|
+
/* @__PURE__ */ e(S, { style: { width: 200 }, value: n, onChange: d, options: M }),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
I,
|
|
41
|
+
{
|
|
42
|
+
style: { width: 260 },
|
|
43
|
+
placeholder: "termKey / conceptKey",
|
|
44
|
+
value: c,
|
|
45
|
+
onChange: (t) => f(t.target.value),
|
|
46
|
+
onPressEnter: () => s()
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(x, { type: "primary", icon: /* @__PURE__ */ e(E, {}), loading: h, onClick: () => s(), children: "分析" })
|
|
50
|
+
] }),
|
|
51
|
+
a && a.references.length === 0 ? /* @__PURE__ */ e(v, { type: "success", showIcon: !0, message: "没有引用方(本域内)", description: "可以安全变更;跨域引用 M1 接入后再扩。" }) : null,
|
|
52
|
+
a && a.references.length > 0 ? /* @__PURE__ */ e(
|
|
53
|
+
P,
|
|
54
|
+
{
|
|
55
|
+
rowKey: (t) => `${t.refType}-${t.refKey}`,
|
|
56
|
+
size: "middle",
|
|
57
|
+
pagination: !1,
|
|
58
|
+
dataSource: a.references,
|
|
59
|
+
columns: [
|
|
60
|
+
{ title: "引用类型", dataIndex: "refType", width: 140, render: (t) => /* @__PURE__ */ e(p.Text, { code: !0, children: t }) },
|
|
61
|
+
{ title: "引用方", dataIndex: "refKey", width: 240 },
|
|
62
|
+
{ title: "说明", dataIndex: "detail" }
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
) : null,
|
|
66
|
+
a ? null : /* @__PURE__ */ e(C, { description: "输入一个 key,列出它的引用面" })
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
_ as default
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as n, _ as r } from "./SearchOutlined-puH6bCY6.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, c = function(t, a) {
|
|
4
4
|
return /* @__PURE__ */ e.createElement(n, r({}, t, {
|
|
@@ -1,161 +1,155 @@
|
|
|
1
|
-
import { jsx as t, jsxs as i, Fragment as
|
|
1
|
+
import { jsx as t, jsxs as i, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import * as T from "react";
|
|
3
|
-
import { useState as c, useRef as
|
|
4
|
-
import { f as $, o as
|
|
5
|
-
import "./preset-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
import { I as
|
|
11
|
-
import { R as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
icon: se
|
|
28
|
-
})), M = /* @__PURE__ */ T.forwardRef(ne);
|
|
29
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "NodeIndexOutlined");
|
|
30
|
-
function ge() {
|
|
31
|
-
const [d] = G(), s = d.get("id") || "", p = H(), [u, N] = c("default"), [n, E] = c(null), [g, L] = c([]), [b, A] = c([]), [S, B] = c([]), [D, C] = c(!1), [v, K] = c(""), o = W(0), k = async (e = u) => {
|
|
32
|
-
if (!s) return;
|
|
3
|
+
import { useState as c, useRef as V, useEffect as W, useMemo as _ } from "react";
|
|
4
|
+
import { f as $, o as p } from "./api-BVrIcAFp.js";
|
|
5
|
+
import "./preset-gh5SGoYT.js";
|
|
6
|
+
import { b as G, u as H } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
7
|
+
import { a4 as J, B as z, S as Q } from "./index-CrMcNEAZ.js";
|
|
8
|
+
import { T as d } from "./index-Bc-Vin3j.js";
|
|
9
|
+
import { R as X } from "./ApartmentOutlined-M6qSurnE.js";
|
|
10
|
+
import { I as O } from "./index-DvWHYX81.js";
|
|
11
|
+
import { R as Y } from "./ReloadOutlined-CS-e-TmN.js";
|
|
12
|
+
import { I as Z, _ as ee } from "./SearchOutlined-puH6bCY6.js";
|
|
13
|
+
import { T as te } from "./index-Vu6sPBci.js";
|
|
14
|
+
import { F as k } from "./Table-CDagah-g.js";
|
|
15
|
+
import { S as R } from "./index-CaXylbQR.js";
|
|
16
|
+
import { s as ae } from "./index-DBtGE89a.js";
|
|
17
|
+
var se = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z" } }] }, name: "node-index", theme: "outlined" }, le = function(l, y) {
|
|
18
|
+
return /* @__PURE__ */ T.createElement(Z, ee({}, l, {
|
|
19
|
+
ref: y,
|
|
20
|
+
icon: se
|
|
21
|
+
}));
|
|
22
|
+
}, j = /* @__PURE__ */ T.forwardRef(le);
|
|
23
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "NodeIndexOutlined");
|
|
24
|
+
function ke() {
|
|
25
|
+
const [w] = G(), l = w.get("id") || "", y = H(), [x, I] = c("default"), [s, M] = c(null), [f, E] = c([]), [h, L] = c([]), [N, A] = c([]), [B, S] = c(!1), [g, D] = c(""), o = V(0), b = async (e = x) => {
|
|
26
|
+
if (!l) return;
|
|
33
27
|
const a = ++o.current;
|
|
34
|
-
|
|
35
|
-
const r = (
|
|
36
|
-
["统计", () =>
|
|
37
|
-
["类列表", () =>
|
|
38
|
-
["实例列表", () =>
|
|
28
|
+
S(!0);
|
|
29
|
+
const r = (n, u) => ae.error(`${n}取数失败:${u.message}`), v = [
|
|
30
|
+
["统计", () => p.stats(l, e).then((n) => M(n))],
|
|
31
|
+
["类列表", () => p.listClasses(l, e).then((n) => E(n || []))],
|
|
32
|
+
["实例列表", () => p.listIndividuals(l, e).then((n) => L(n || []))]
|
|
39
33
|
];
|
|
40
|
-
for (const [
|
|
34
|
+
for (const [n, u] of v) {
|
|
41
35
|
if (a !== o.current) return;
|
|
42
36
|
try {
|
|
43
|
-
await
|
|
44
|
-
} catch (
|
|
45
|
-
a === o.current && r(
|
|
37
|
+
await u();
|
|
38
|
+
} catch (m) {
|
|
39
|
+
a === o.current && r(n, m);
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
42
|
try {
|
|
49
|
-
const
|
|
50
|
-
a === o.current &&
|
|
51
|
-
} catch (
|
|
52
|
-
a === o.current && r("关系",
|
|
43
|
+
const u = ((f.length ? f : await p.listClasses(l, e)) || []).map((q) => q.key), m = await p.subgraph(l, u, 1, e);
|
|
44
|
+
a === o.current && A((m == null ? void 0 : m.edges) || []);
|
|
45
|
+
} catch (n) {
|
|
46
|
+
a === o.current && r("关系", n);
|
|
53
47
|
}
|
|
54
|
-
a === o.current &&
|
|
48
|
+
a === o.current && S(!1);
|
|
55
49
|
};
|
|
56
|
-
|
|
50
|
+
W(() => (l && (I("default"), b("default")), () => {
|
|
57
51
|
o.current += 1;
|
|
58
|
-
}), [
|
|
59
|
-
const
|
|
60
|
-
{ label: "类节点", value:
|
|
61
|
-
{ label: "实例节点", value:
|
|
62
|
-
{ label: "总节点", value:
|
|
63
|
-
{ label: "关系边", value:
|
|
64
|
-
{ label: "显式陈述", value:
|
|
65
|
-
{ label: "推理陈述", value:
|
|
66
|
-
] : [], [
|
|
52
|
+
}), [l]);
|
|
53
|
+
const K = _(() => s ? [
|
|
54
|
+
{ label: "类节点", value: s.class_nodes ?? s.classNodes ?? 0, sub: "classes" },
|
|
55
|
+
{ label: "实例节点", value: s.individual_nodes ?? s.individualNodes ?? 0, sub: "individuals" },
|
|
56
|
+
{ label: "总节点", value: s.node_count ?? s.nodeCount ?? 0, sub: "nodes" },
|
|
57
|
+
{ label: "关系边", value: s.edge_count ?? s.edgeCount ?? 0, sub: "edges" },
|
|
58
|
+
{ label: "显式陈述", value: s.explicit_statements ?? s.explicitStatements ?? 0, sub: "explicit" },
|
|
59
|
+
{ label: "推理陈述", value: s.inferred_statements ?? s.inferredStatements ?? 0, sub: "inferred" }
|
|
60
|
+
] : [], [s]), C = [
|
|
67
61
|
{ title: "key", dataIndex: "key", key: "key", width: 240 },
|
|
68
62
|
{
|
|
69
63
|
title: "标签",
|
|
70
64
|
dataIndex: "labels",
|
|
71
65
|
key: "labels",
|
|
72
66
|
width: 220,
|
|
73
|
-
render: (e) => (e || []).map((a) => /* @__PURE__ */ t(
|
|
67
|
+
render: (e) => (e || []).map((a) => /* @__PURE__ */ t(d, { color: a === "OntologyClass" ? "purple" : a === "OntologyIndividual" ? "blue" : void 0, children: a }, a))
|
|
74
68
|
},
|
|
75
69
|
{
|
|
76
70
|
title: "属性",
|
|
77
71
|
dataIndex: "properties",
|
|
78
72
|
key: "properties",
|
|
79
|
-
render: (e) => /* @__PURE__ */ i(
|
|
80
|
-
Object.entries(e || {}).slice(0, 8).map(([a, r]) => /* @__PURE__ */ i(
|
|
73
|
+
render: (e) => /* @__PURE__ */ i(R, { size: 4, wrap: !0, children: [
|
|
74
|
+
Object.entries(e || {}).slice(0, 8).map(([a, r]) => /* @__PURE__ */ i(d, { color: "default", children: [
|
|
81
75
|
a,
|
|
82
76
|
"=",
|
|
83
77
|
String(r)
|
|
84
78
|
] }, a)),
|
|
85
|
-
Object.keys(e || {}).length > 8 ? /* @__PURE__ */ i(
|
|
79
|
+
Object.keys(e || {}).length > 8 ? /* @__PURE__ */ i(d, { children: [
|
|
86
80
|
"+",
|
|
87
81
|
Object.keys(e).length - 8
|
|
88
82
|
] }) : null
|
|
89
83
|
] })
|
|
90
84
|
}
|
|
91
|
-
],
|
|
85
|
+
], F = [
|
|
92
86
|
{ title: "from", dataIndex: "from_key", key: "from_key", width: 220 },
|
|
93
|
-
{ title: "type", dataIndex: "type", key: "type", width: 160, render: (e) => /* @__PURE__ */ t(
|
|
87
|
+
{ title: "type", dataIndex: "type", key: "type", width: 160, render: (e) => /* @__PURE__ */ t(d, { color: "geekblue", children: e }) },
|
|
94
88
|
{ title: "to", dataIndex: "to_key", key: "to_key", width: 220 },
|
|
95
89
|
{
|
|
96
90
|
title: "属性",
|
|
97
91
|
dataIndex: "properties",
|
|
98
92
|
key: "properties",
|
|
99
|
-
render: (e) => /* @__PURE__ */ t(
|
|
93
|
+
render: (e) => /* @__PURE__ */ t(R, { size: 4, wrap: !0, children: Object.entries(e || {}).slice(0, 4).map(([a, r]) => /* @__PURE__ */ i(d, { color: "default", children: [
|
|
100
94
|
a,
|
|
101
95
|
"=",
|
|
102
96
|
String(r)
|
|
103
97
|
] }, a)) })
|
|
104
98
|
}
|
|
105
|
-
],
|
|
106
|
-
const e =
|
|
107
|
-
return e ? (
|
|
108
|
-
(a) => a.key.toLowerCase().includes(e) || (a.labels || []).some((r) => r.toLowerCase().includes(e)) || Object.entries(a.properties || {}).some(([r,
|
|
109
|
-
) :
|
|
110
|
-
}, [
|
|
111
|
-
return
|
|
99
|
+
], P = _(() => {
|
|
100
|
+
const e = g.trim().toLowerCase();
|
|
101
|
+
return e ? (h || []).filter(
|
|
102
|
+
(a) => a.key.toLowerCase().includes(e) || (a.labels || []).some((r) => r.toLowerCase().includes(e)) || Object.entries(a.properties || {}).some(([r, v]) => `${r}=${v}`.toLowerCase().includes(e))
|
|
103
|
+
) : h;
|
|
104
|
+
}, [h, g]);
|
|
105
|
+
return l ? /* @__PURE__ */ i("div", { className: "view", children: [
|
|
112
106
|
/* @__PURE__ */ i("div", { className: "view-bar", children: [
|
|
113
|
-
/* @__PURE__ */ i(
|
|
107
|
+
/* @__PURE__ */ i(d, { icon: /* @__PURE__ */ t(X, {}), color: "purple", children: [
|
|
114
108
|
"本体 ",
|
|
115
|
-
|
|
109
|
+
l
|
|
116
110
|
] }),
|
|
117
111
|
/* @__PURE__ */ t(
|
|
118
|
-
|
|
112
|
+
O.Search,
|
|
119
113
|
{
|
|
120
114
|
style: { width: 200 },
|
|
121
115
|
placeholder: "工作空间(默认 default)",
|
|
122
|
-
value:
|
|
123
|
-
onChange: (e) =>
|
|
124
|
-
onSearch: () =>
|
|
116
|
+
value: x,
|
|
117
|
+
onChange: (e) => I(e.target.value),
|
|
118
|
+
onSearch: () => b()
|
|
125
119
|
}
|
|
126
120
|
),
|
|
127
|
-
/* @__PURE__ */ t(z, { icon: /* @__PURE__ */ t(
|
|
121
|
+
/* @__PURE__ */ t(z, { icon: /* @__PURE__ */ t(Y, {}), onClick: () => b(), children: "刷新" }),
|
|
128
122
|
/* @__PURE__ */ t(
|
|
129
123
|
z,
|
|
130
124
|
{
|
|
131
125
|
type: "primary",
|
|
132
|
-
icon: /* @__PURE__ */ t(
|
|
133
|
-
onClick: () =>
|
|
126
|
+
icon: /* @__PURE__ */ t(j, {}),
|
|
127
|
+
onClick: () => y(`/ontology/nodes?id=${encodeURIComponent(l)}`),
|
|
134
128
|
children: "图谱"
|
|
135
129
|
}
|
|
136
130
|
),
|
|
137
131
|
/* @__PURE__ */ t("span", { className: "hint spacer" }),
|
|
138
|
-
/* @__PURE__ */ t("span", { className: "hint", children: $(
|
|
132
|
+
/* @__PURE__ */ t("span", { className: "hint", children: $(s, "lastMaterializedAt", "last_materialized_at") ? `物化于 ${new Date($(s, "lastMaterializedAt", "last_materialized_at")).toLocaleString()}` : "" })
|
|
139
133
|
] }),
|
|
140
|
-
|
|
134
|
+
s ? /* @__PURE__ */ t("div", { className: "stat-cards", children: K.map((e) => /* @__PURE__ */ i("div", { className: "stat-card", children: [
|
|
141
135
|
/* @__PURE__ */ t("span", { className: "label", children: e.label }),
|
|
142
136
|
/* @__PURE__ */ t("span", { className: "value", children: e.value }),
|
|
143
137
|
/* @__PURE__ */ t("span", { className: "sub", children: e.sub })
|
|
144
138
|
] }, e.label)) }) : null,
|
|
145
|
-
/* @__PURE__ */ t(Q, { spinning:
|
|
146
|
-
|
|
139
|
+
/* @__PURE__ */ t(Q, { spinning: B, children: /* @__PURE__ */ t(
|
|
140
|
+
te,
|
|
147
141
|
{
|
|
148
142
|
items: [
|
|
149
143
|
{
|
|
150
144
|
key: "classes",
|
|
151
|
-
label: `类定义(${
|
|
145
|
+
label: `类定义(${f.length})`,
|
|
152
146
|
children: /* @__PURE__ */ t(
|
|
153
|
-
|
|
147
|
+
k,
|
|
154
148
|
{
|
|
155
149
|
rowKey: "key",
|
|
156
150
|
size: "small",
|
|
157
|
-
columns:
|
|
158
|
-
dataSource:
|
|
151
|
+
columns: C,
|
|
152
|
+
dataSource: f,
|
|
159
153
|
pagination: !1,
|
|
160
154
|
locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无类定义(可先登记 schema 或物化)" }) }
|
|
161
155
|
}
|
|
@@ -163,14 +157,14 @@ function ge() {
|
|
|
163
157
|
},
|
|
164
158
|
{
|
|
165
159
|
key: "edges",
|
|
166
|
-
label: `关系(${
|
|
160
|
+
label: `关系(${N.length})`,
|
|
167
161
|
children: /* @__PURE__ */ t(
|
|
168
|
-
|
|
162
|
+
k,
|
|
169
163
|
{
|
|
170
164
|
rowKey: (e) => e.key || `${e.from_key}|${e.type}|${e.to_key}`,
|
|
171
165
|
size: "small",
|
|
172
|
-
columns:
|
|
173
|
-
dataSource:
|
|
166
|
+
columns: F,
|
|
167
|
+
dataSource: N,
|
|
174
168
|
pagination: !1,
|
|
175
169
|
locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无关系边" }) }
|
|
176
170
|
}
|
|
@@ -178,25 +172,25 @@ function ge() {
|
|
|
178
172
|
},
|
|
179
173
|
{
|
|
180
174
|
key: "individuals",
|
|
181
|
-
label: `实例(${
|
|
182
|
-
children: /* @__PURE__ */ i(
|
|
175
|
+
label: `实例(${h.length})`,
|
|
176
|
+
children: /* @__PURE__ */ i(U, { children: [
|
|
183
177
|
/* @__PURE__ */ t("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ t(
|
|
184
|
-
|
|
178
|
+
O.Search,
|
|
185
179
|
{
|
|
186
180
|
allowClear: !0,
|
|
187
181
|
style: { width: 320 },
|
|
188
182
|
placeholder: "按 key / 标签 / 属性搜索实例",
|
|
189
|
-
value:
|
|
190
|
-
onChange: (e) =>
|
|
183
|
+
value: g,
|
|
184
|
+
onChange: (e) => D(e.target.value)
|
|
191
185
|
}
|
|
192
186
|
) }),
|
|
193
187
|
/* @__PURE__ */ t(
|
|
194
|
-
|
|
188
|
+
k,
|
|
195
189
|
{
|
|
196
190
|
rowKey: "key",
|
|
197
191
|
size: "small",
|
|
198
|
-
columns:
|
|
199
|
-
dataSource:
|
|
192
|
+
columns: C,
|
|
193
|
+
dataSource: P,
|
|
200
194
|
pagination: { pageSize: 20, showSizeChanger: !0, showTotal: (e) => `共 ${e} 条` },
|
|
201
195
|
locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无实例" }) }
|
|
202
196
|
}
|
|
@@ -209,5 +203,5 @@ function ge() {
|
|
|
209
203
|
] }) : /* @__PURE__ */ t(J, { description: "缺少本体 ID(?id=xxx)", style: { padding: 48 } });
|
|
210
204
|
}
|
|
211
205
|
export {
|
|
212
|
-
|
|
206
|
+
ke as default
|
|
213
207
|
};
|