@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,20 @@
|
|
|
1
|
+
import { I as n, _ as r } from "./SearchOutlined-puH6bCY6.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
var s = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "branches", theme: "outlined" }, l = function(e, t) {
|
|
4
|
+
return /* @__PURE__ */ a.createElement(n, r({}, e, {
|
|
5
|
+
ref: t,
|
|
6
|
+
icon: s
|
|
7
|
+
}));
|
|
8
|
+
}, i = /* @__PURE__ */ a.forwardRef(l);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (i.displayName = "BranchesOutlined");
|
|
10
|
+
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z" } }] }, name: "tags", theme: "outlined" }, d = function(e, t) {
|
|
11
|
+
return /* @__PURE__ */ a.createElement(n, r({}, e, {
|
|
12
|
+
ref: t,
|
|
13
|
+
icon: o
|
|
14
|
+
}));
|
|
15
|
+
}, f = /* @__PURE__ */ a.forwardRef(d);
|
|
16
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "TagsOutlined");
|
|
17
|
+
export {
|
|
18
|
+
f as R,
|
|
19
|
+
i as a
|
|
20
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as re } from "react/jsx-runtime";
|
|
2
|
+
import * as M from "react";
|
|
3
|
+
import { useState as l, useCallback as ne, useEffect as ae } from "react";
|
|
4
|
+
import { c as m } from "./api-CxSIf5HG.js";
|
|
5
|
+
import { S as le, T as se, E as oe, t as ce } from "./EvidenceFormList-DXqqSpPV.js";
|
|
6
|
+
import { b as de, u as me } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
7
|
+
import { F as a, M as V } from "./index-DBlG9uXV.js";
|
|
8
|
+
import { A as K } from "./index-nQSVLWfW.js";
|
|
9
|
+
import { S as he, B as u } from "./index-CrMcNEAZ.js";
|
|
10
|
+
import { S as H } from "./index-CaXylbQR.js";
|
|
11
|
+
import { R as fe } from "./ArrowLeftOutlined-DowsrSUj.js";
|
|
12
|
+
import { R as ue } from "./ReloadOutlined-CS-e-TmN.js";
|
|
13
|
+
import { R as pe, T as p } from "./index-BEjXaDfk.js";
|
|
14
|
+
import { S as v } from "./index-bOY1cBol.js";
|
|
15
|
+
import { I as ve, _ as ge } from "./SearchOutlined-puH6bCY6.js";
|
|
16
|
+
import { D as s } from "./index-9aQ4BzIK.js";
|
|
17
|
+
import { T as L } from "./index-Bc-Vin3j.js";
|
|
18
|
+
import { F as S } from "./Table-CDagah-g.js";
|
|
19
|
+
import { P as ye } from "./index-CyKWCYMK.js";
|
|
20
|
+
import { I as c } from "./index-DvWHYX81.js";
|
|
21
|
+
import { s as h } from "./index-DBtGE89a.js";
|
|
22
|
+
var Ie = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z" } }] }, name: "diff", theme: "outlined" }, we = function(g, r) {
|
|
23
|
+
return /* @__PURE__ */ M.createElement(ve, ge({}, g, {
|
|
24
|
+
ref: r,
|
|
25
|
+
icon: Ie
|
|
26
|
+
}));
|
|
27
|
+
}, P = /* @__PURE__ */ M.forwardRef(we);
|
|
28
|
+
process.env.NODE_ENV !== "production" && (P.displayName = "DiffOutlined");
|
|
29
|
+
const { TextArea: be } = c;
|
|
30
|
+
function Pe() {
|
|
31
|
+
const [$] = de(), g = me(), r = $.get("key") || "", [i, _] = l(null), [E, q] = l([]), [R, j] = l([]), [U, O] = l(!0), [k, D] = l(""), [G, y] = l(!1), [J, N] = l(!1), [I] = a.useForm(), [w, C] = l(null), [b, z] = l(null), [Q, A] = l(!1), [d, W] = l(null), f = ne(async () => {
|
|
32
|
+
var t, n;
|
|
33
|
+
if (r) {
|
|
34
|
+
O(!0), D("");
|
|
35
|
+
try {
|
|
36
|
+
const [T, te, x] = await Promise.all([
|
|
37
|
+
m.getTerm(r),
|
|
38
|
+
m.listTermEvidence(r),
|
|
39
|
+
m.listTermRevisions(r)
|
|
40
|
+
]);
|
|
41
|
+
_(T), q(te || []), j(x || []);
|
|
42
|
+
const F = (t = (x || [])[0]) == null ? void 0 : t.revisionNo, ie = (n = (x || [])[1]) == null ? void 0 : n.revisionNo;
|
|
43
|
+
z(F ?? null), C(ie ?? F ?? null);
|
|
44
|
+
} catch (T) {
|
|
45
|
+
D(T.message);
|
|
46
|
+
} finally {
|
|
47
|
+
O(!1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, [r]);
|
|
51
|
+
if (ae(() => {
|
|
52
|
+
f();
|
|
53
|
+
}, [f]), !r)
|
|
54
|
+
return /* @__PURE__ */ e(K, { type: "warning", showIcon: !0, message: "缺少 ?key= 参数" });
|
|
55
|
+
const X = () => {
|
|
56
|
+
I.setFieldsValue({
|
|
57
|
+
...i,
|
|
58
|
+
aliases: i.aliases || [],
|
|
59
|
+
evidences: ce(E)
|
|
60
|
+
}), y(!0);
|
|
61
|
+
}, Y = async () => {
|
|
62
|
+
const t = await I.validateFields();
|
|
63
|
+
N(!0);
|
|
64
|
+
try {
|
|
65
|
+
await m.updateTerm(r, {
|
|
66
|
+
...t,
|
|
67
|
+
termKey: r,
|
|
68
|
+
actor: t.actor || "console",
|
|
69
|
+
note: t.note || "console update"
|
|
70
|
+
}), h.success("已生成新 revision"), y(!1), await f();
|
|
71
|
+
} catch (n) {
|
|
72
|
+
h.error(n.field ? `${n.field}: ${n.message}` : n.message);
|
|
73
|
+
} finally {
|
|
74
|
+
N(!1);
|
|
75
|
+
}
|
|
76
|
+
}, Z = async (t) => {
|
|
77
|
+
try {
|
|
78
|
+
await m.rollbackTerm(r, t, `console rollback to r${t}`), h.success(`已回滚到 r${t}(生成新 revision,历史不改写)`), await f();
|
|
79
|
+
} catch (n) {
|
|
80
|
+
h.error(n.message);
|
|
81
|
+
}
|
|
82
|
+
}, ee = async () => {
|
|
83
|
+
if (w == null || b == null) {
|
|
84
|
+
h.warning("先选两个 revision");
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
try {
|
|
88
|
+
W(await m.diffTerm(r, w, b)), A(!0);
|
|
89
|
+
} catch (t) {
|
|
90
|
+
h.error(t.message);
|
|
91
|
+
}
|
|
92
|
+
}, B = R.map((t) => ({
|
|
93
|
+
value: t.revisionNo,
|
|
94
|
+
label: `r${t.revisionNo} · ${t.createdAt} · ${t.actor || "-"} · ${t.note || ""}`
|
|
95
|
+
}));
|
|
96
|
+
return /* @__PURE__ */ o(he, { spinning: U, children: [
|
|
97
|
+
/* @__PURE__ */ o(H, { style: { marginBottom: 16 }, wrap: !0, children: [
|
|
98
|
+
/* @__PURE__ */ e(u, { icon: /* @__PURE__ */ e(fe, {}), onClick: () => g("/cognition/terms"), children: "返回列表" }),
|
|
99
|
+
/* @__PURE__ */ e(u, { icon: /* @__PURE__ */ e(ue, {}), onClick: f, children: "刷新" }),
|
|
100
|
+
/* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(pe, {}), disabled: !i, onClick: X, children: "编辑(生成新版本)" }),
|
|
101
|
+
/* @__PURE__ */ e(v, { style: { width: 300 }, placeholder: "left", value: w, onChange: C, options: B }),
|
|
102
|
+
/* @__PURE__ */ e(v, { style: { width: 300 }, placeholder: "right", value: b, onChange: z, options: B }),
|
|
103
|
+
/* @__PURE__ */ e(u, { icon: /* @__PURE__ */ e(P, {}), onClick: ee, children: "版本对比" })
|
|
104
|
+
] }),
|
|
105
|
+
k ? /* @__PURE__ */ e(K, { type: "error", showIcon: !0, message: k, style: { marginBottom: 16 } }) : null,
|
|
106
|
+
i ? /* @__PURE__ */ o(re, { children: [
|
|
107
|
+
/* @__PURE__ */ o(s, { bordered: !0, size: "small", column: 2, style: { marginBottom: 16 }, children: [
|
|
108
|
+
/* @__PURE__ */ e(s.Item, { label: "termKey", children: /* @__PURE__ */ e(p.Text, { code: !0, children: i.termKey }) }),
|
|
109
|
+
/* @__PURE__ */ e(s.Item, { label: "规范名", children: i.canonical }),
|
|
110
|
+
/* @__PURE__ */ o(s.Item, { label: "状态", children: [
|
|
111
|
+
/* @__PURE__ */ e(L, { color: le[i.status] || "blue", children: i.status }),
|
|
112
|
+
i.supersededBy ? /* @__PURE__ */ o("span", { children: [
|
|
113
|
+
"→ ",
|
|
114
|
+
i.supersededBy
|
|
115
|
+
] }) : null
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ o(s.Item, { label: "当前版本", children: [
|
|
118
|
+
"r",
|
|
119
|
+
i.revisionNo
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ e(s.Item, { label: "域", children: i.domain || "—" }),
|
|
122
|
+
/* @__PURE__ */ e(s.Item, { label: "owner", children: i.owner || "—" }),
|
|
123
|
+
/* @__PURE__ */ e(s.Item, { label: "绑定概念", children: i.conceptKey || "—" }),
|
|
124
|
+
/* @__PURE__ */ e(s.Item, { label: "更新时间", children: i.updatedAt }),
|
|
125
|
+
/* @__PURE__ */ e(s.Item, { label: "别名", span: 2, children: (i.aliases || []).length ? i.aliases.map((t) => /* @__PURE__ */ e(L, { children: t }, t)) : "—" }),
|
|
126
|
+
/* @__PURE__ */ e(s.Item, { label: "定义", span: 2, children: i.definition })
|
|
127
|
+
] }),
|
|
128
|
+
/* @__PURE__ */ o(p.Title, { level: 5, children: [
|
|
129
|
+
"证据(当前版本 r",
|
|
130
|
+
i.revisionNo,
|
|
131
|
+
")"
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ e(
|
|
134
|
+
S,
|
|
135
|
+
{
|
|
136
|
+
rowKey: "id",
|
|
137
|
+
size: "small",
|
|
138
|
+
style: { marginBottom: 24 },
|
|
139
|
+
dataSource: E,
|
|
140
|
+
pagination: !1,
|
|
141
|
+
columns: [
|
|
142
|
+
{ title: "类型", dataIndex: "evidenceType", width: 140 },
|
|
143
|
+
{ title: "refId", dataIndex: "refId" },
|
|
144
|
+
{ title: "snapshotHash", dataIndex: "snapshotHash", width: 200 },
|
|
145
|
+
{ title: "版本", dataIndex: "revisionNo", width: 80, render: (t) => `r${t}` },
|
|
146
|
+
{ title: "采集时间", dataIndex: "capturedAt", width: 190 }
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
/* @__PURE__ */ e(p.Title, { level: 5, children: "版本历史(回滚不改写历史,只追加新 revision)" }),
|
|
151
|
+
/* @__PURE__ */ e(
|
|
152
|
+
S,
|
|
153
|
+
{
|
|
154
|
+
rowKey: "revisionNo",
|
|
155
|
+
size: "small",
|
|
156
|
+
dataSource: R,
|
|
157
|
+
pagination: !1,
|
|
158
|
+
columns: [
|
|
159
|
+
{ title: "版本", dataIndex: "revisionNo", width: 80, render: (t) => `r${t}` },
|
|
160
|
+
{ title: "时间", dataIndex: "createdAt", width: 190 },
|
|
161
|
+
{ title: "操作人", dataIndex: "actor", width: 140 },
|
|
162
|
+
{ title: "说明", dataIndex: "note" },
|
|
163
|
+
{
|
|
164
|
+
title: "操作",
|
|
165
|
+
width: 120,
|
|
166
|
+
render: (t, n) => /* @__PURE__ */ e(
|
|
167
|
+
ye,
|
|
168
|
+
{
|
|
169
|
+
title: `回滚到 r${n.revisionNo}?`,
|
|
170
|
+
description: "会以该版本内容生成一条新的 revision",
|
|
171
|
+
onConfirm: () => Z(n.revisionNo),
|
|
172
|
+
children: /* @__PURE__ */ e(u, { type: "link", size: "small", children: "回滚" })
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
] }) : null,
|
|
180
|
+
/* @__PURE__ */ e(
|
|
181
|
+
V,
|
|
182
|
+
{
|
|
183
|
+
title: `编辑 ${r}`,
|
|
184
|
+
open: G,
|
|
185
|
+
onCancel: () => y(!1),
|
|
186
|
+
onOk: Y,
|
|
187
|
+
confirmLoading: J,
|
|
188
|
+
width: 820,
|
|
189
|
+
destroyOnHidden: !0,
|
|
190
|
+
children: /* @__PURE__ */ o(a, { form: I, layout: "vertical", children: [
|
|
191
|
+
/* @__PURE__ */ o(H, { size: "large", wrap: !0, children: [
|
|
192
|
+
/* @__PURE__ */ e(a.Item, { name: "canonical", label: "规范名", rules: [{ required: !0, message: "必填" }], children: /* @__PURE__ */ e(c, { style: { width: 240 } }) }),
|
|
193
|
+
/* @__PURE__ */ e(a.Item, { name: "status", label: "状态", rules: [{ required: !0 }], children: /* @__PURE__ */ e(v, { style: { width: 140 }, options: se.map((t) => ({ value: t, label: t })) }) }),
|
|
194
|
+
/* @__PURE__ */ e(a.Item, { name: "supersededBy", label: "替代项(DEPRECATED 必填)", children: /* @__PURE__ */ e(c, { style: { width: 180 } }) }),
|
|
195
|
+
/* @__PURE__ */ e(a.Item, { name: "domain", label: "域", children: /* @__PURE__ */ e(c, { style: { width: 140 } }) }),
|
|
196
|
+
/* @__PURE__ */ e(a.Item, { name: "owner", label: "owner", children: /* @__PURE__ */ e(c, { style: { width: 140 } }) })
|
|
197
|
+
] }),
|
|
198
|
+
/* @__PURE__ */ e(a.Item, { name: "aliases", label: "别名", children: /* @__PURE__ */ e(v, { mode: "tags", tokenSeparators: [","] }) }),
|
|
199
|
+
/* @__PURE__ */ e(a.Item, { name: "conceptKey", label: "绑定概念", children: /* @__PURE__ */ e(c, {}) }),
|
|
200
|
+
/* @__PURE__ */ e(
|
|
201
|
+
a.Item,
|
|
202
|
+
{
|
|
203
|
+
name: "definition",
|
|
204
|
+
label: "定义",
|
|
205
|
+
rules: [{ required: !0, message: "必填" }],
|
|
206
|
+
children: /* @__PURE__ */ e(be, { rows: 3 })
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
/* @__PURE__ */ e(a.Item, { name: "note", label: "变更说明", children: /* @__PURE__ */ e(c, { placeholder: "console update" }) }),
|
|
210
|
+
/* @__PURE__ */ e(a.Item, { label: "证据(至少一条;本次提交即本版本证据)", required: !0, children: /* @__PURE__ */ e(oe, {}) })
|
|
211
|
+
] })
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
/* @__PURE__ */ e(
|
|
215
|
+
V,
|
|
216
|
+
{
|
|
217
|
+
title: d ? `${d.subjectKey}: r${d.leftRevision} → r${d.rightRevision}` : "版本对比",
|
|
218
|
+
open: Q,
|
|
219
|
+
onCancel: () => A(!1),
|
|
220
|
+
footer: null,
|
|
221
|
+
width: 720,
|
|
222
|
+
children: /* @__PURE__ */ e(
|
|
223
|
+
S,
|
|
224
|
+
{
|
|
225
|
+
rowKey: (t) => t.field,
|
|
226
|
+
size: "small",
|
|
227
|
+
pagination: !1,
|
|
228
|
+
dataSource: d ? d.changes : [],
|
|
229
|
+
columns: [
|
|
230
|
+
{ title: "字段", dataIndex: "field", width: 140 },
|
|
231
|
+
{ title: "左", dataIndex: "left", render: (t) => /* @__PURE__ */ e(p.Text, { delete: t !== "", children: t ?? "—" }) },
|
|
232
|
+
{ title: "右", dataIndex: "right", render: (t) => /* @__PURE__ */ e(p.Text, { strong: !0, children: t ?? "—" }) }
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
] });
|
|
239
|
+
}
|
|
240
|
+
export {
|
|
241
|
+
Pe as default
|
|
242
|
+
};
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as i, useEffect as k } from "react";
|
|
3
3
|
import { c as y } from "./api-CxSIf5HG.js";
|
|
4
|
-
import { T as g, K as q, E as A, S as $ } from "./EvidenceFormList-
|
|
5
|
-
import { u as z } from "./chunk-
|
|
6
|
-
import { F as a, M as O } from "./index-
|
|
7
|
-
import { S as I
|
|
8
|
-
import { I as l
|
|
9
|
-
import { R as b } from "./
|
|
10
|
-
import { S as
|
|
11
|
-
import {
|
|
12
|
-
import { R as
|
|
13
|
-
import {
|
|
4
|
+
import { T as g, K as q, E as A, S as $ } from "./EvidenceFormList-DXqqSpPV.js";
|
|
5
|
+
import { u as z } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
6
|
+
import { F as a, M as O } from "./index-DBlG9uXV.js";
|
|
7
|
+
import { S as I } from "./index-CaXylbQR.js";
|
|
8
|
+
import { I as l } from "./index-DvWHYX81.js";
|
|
9
|
+
import { R as b } from "./SearchOutlined-puH6bCY6.js";
|
|
10
|
+
import { S as h } from "./index-bOY1cBol.js";
|
|
11
|
+
import { B as u } from "./index-CrMcNEAZ.js";
|
|
12
|
+
import { R as L } from "./ReloadOutlined-CS-e-TmN.js";
|
|
13
|
+
import { R as M } from "./PlusOutlined-B_dXo_97.js";
|
|
14
|
+
import { F as P } from "./Table-CDagah-g.js";
|
|
15
|
+
import { s as p } from "./index-DBtGE89a.js";
|
|
16
|
+
import { T } from "./index-Bc-Vin3j.js";
|
|
14
17
|
const { TextArea: _ } = l;
|
|
15
|
-
function
|
|
16
|
-
const v = z(), [C, S] =
|
|
18
|
+
function ae() {
|
|
19
|
+
const v = z(), [C, S] = i([]), [x, f] = i(!1), [o, s] = i({ q: "", domain: "", status: "" }), [E, c] = i(!1), [K, w] = i(!1), [m] = a.useForm(), n = async (t = o) => {
|
|
17
20
|
f(!0);
|
|
18
21
|
try {
|
|
19
22
|
S(await y.listTerms(t));
|
|
20
23
|
} catch (r) {
|
|
21
|
-
|
|
24
|
+
p.error(r.message);
|
|
22
25
|
} finally {
|
|
23
26
|
f(!1);
|
|
24
27
|
}
|
|
@@ -35,9 +38,9 @@ function Z() {
|
|
|
35
38
|
status: t.status || "ACTIVE",
|
|
36
39
|
actor: t.actor || "console",
|
|
37
40
|
note: t.note || "console create"
|
|
38
|
-
}),
|
|
41
|
+
}), p.success(`术语 ${t.termKey} 已登记`), c(!1), m.resetFields(), await n();
|
|
39
42
|
} catch (r) {
|
|
40
|
-
|
|
43
|
+
p.error(r.field ? `${r.field}: ${r.message}` : r.message);
|
|
41
44
|
} finally {
|
|
42
45
|
w(!1);
|
|
43
46
|
}
|
|
@@ -80,7 +83,7 @@ function Z() {
|
|
|
80
83
|
prefix: /* @__PURE__ */ e(b, {}),
|
|
81
84
|
style: { width: 260 },
|
|
82
85
|
value: o.q,
|
|
83
|
-
onChange: (t) =>
|
|
86
|
+
onChange: (t) => s({ ...o, q: t.target.value }),
|
|
84
87
|
onPressEnter: () => n()
|
|
85
88
|
}
|
|
86
89
|
),
|
|
@@ -91,29 +94,29 @@ function Z() {
|
|
|
91
94
|
allowClear: !0,
|
|
92
95
|
style: { width: 160 },
|
|
93
96
|
value: o.domain,
|
|
94
|
-
onChange: (t) =>
|
|
97
|
+
onChange: (t) => s({ ...o, domain: t.target.value }),
|
|
95
98
|
onPressEnter: () => n()
|
|
96
99
|
}
|
|
97
100
|
),
|
|
98
101
|
/* @__PURE__ */ e(
|
|
99
|
-
|
|
102
|
+
h,
|
|
100
103
|
{
|
|
101
104
|
placeholder: "状态",
|
|
102
105
|
allowClear: !0,
|
|
103
106
|
style: { width: 140 },
|
|
104
107
|
value: o.status || void 0,
|
|
105
|
-
onChange: (t) =>
|
|
108
|
+
onChange: (t) => s({ ...o, status: t || "" }),
|
|
106
109
|
options: g.map((t) => ({ value: t, label: t }))
|
|
107
110
|
}
|
|
108
111
|
),
|
|
109
|
-
/* @__PURE__ */ e(
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
|
|
112
|
+
/* @__PURE__ */ e(u, { icon: /* @__PURE__ */ e(b, {}), onClick: () => n(), children: "查询" }),
|
|
113
|
+
/* @__PURE__ */ e(u, { icon: /* @__PURE__ */ e(L, {}), onClick: () => {
|
|
114
|
+
s({ q: "", domain: "", status: "" }), n({});
|
|
112
115
|
}, children: "重置" }),
|
|
113
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(M, {}), onClick: () => c(!0), children: "新建术语" })
|
|
114
117
|
] }),
|
|
115
118
|
/* @__PURE__ */ e(
|
|
116
|
-
|
|
119
|
+
P,
|
|
117
120
|
{
|
|
118
121
|
rowKey: "termKey",
|
|
119
122
|
size: "middle",
|
|
@@ -151,9 +154,9 @@ function Z() {
|
|
|
151
154
|
/* @__PURE__ */ e(a.Item, { name: "canonical", label: "规范名", rules: [{ required: !0, message: "必填" }], children: /* @__PURE__ */ e(l, { style: { width: 220 }, placeholder: "成交总额" }) }),
|
|
152
155
|
/* @__PURE__ */ e(a.Item, { name: "domain", label: "域", children: /* @__PURE__ */ e(l, { style: { width: 140 }, placeholder: "trade" }) }),
|
|
153
156
|
/* @__PURE__ */ e(a.Item, { name: "owner", label: "owner", children: /* @__PURE__ */ e(l, { style: { width: 140 }, placeholder: "@team" }) }),
|
|
154
|
-
/* @__PURE__ */ e(a.Item, { name: "status", label: "状态", initialValue: "ACTIVE", children: /* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e(a.Item, { name: "status", label: "状态", initialValue: "ACTIVE", children: /* @__PURE__ */ e(h, { style: { width: 130 }, options: g.map((t) => ({ value: t, label: t })) }) })
|
|
155
158
|
] }),
|
|
156
|
-
/* @__PURE__ */ e(a.Item, { name: "aliases", label: "别名", children: /* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(a.Item, { name: "aliases", label: "别名", children: /* @__PURE__ */ e(h, { mode: "tags", placeholder: "回车追加", tokenSeparators: [","] }) }),
|
|
157
160
|
/* @__PURE__ */ e(a.Item, { name: "conceptKey", label: "绑定概念(可空)", children: /* @__PURE__ */ e(l, { placeholder: "order" }) }),
|
|
158
161
|
/* @__PURE__ */ e(a.Item, { name: "definition", label: "定义", rules: [{ required: !0, message: "必填" }], children: /* @__PURE__ */ e(_, { rows: 3, placeholder: "一句话说清口径;口径细节写到规则/指标,别塞进定义" }) }),
|
|
159
162
|
/* @__PURE__ */ e(a.Item, { name: "note", label: "变更说明", children: /* @__PURE__ */ e(l, { placeholder: "console create" }) }),
|
|
@@ -164,5 +167,5 @@ function Z() {
|
|
|
164
167
|
] });
|
|
165
168
|
}
|
|
166
169
|
export {
|
|
167
|
-
|
|
170
|
+
ae as default
|
|
168
171
|
};
|