@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,17 +1,19 @@
|
|
|
1
1
|
import { jsxs as D, jsx as b, Fragment as Hi } from "react/jsx-runtime";
|
|
2
|
-
import { I as Fe,
|
|
3
|
-
import H, { useState as A, useMemo as le, useCallback as ne, Component as
|
|
4
|
-
import
|
|
5
|
-
import { T as Ds } from "./index-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
2
|
+
import { I as Fe, ao as yv, ap as hn, e as Sv, aq as kp, ar as Rv, d as Fv, as as Ev, ab as Ud } from "./embed-DwLg9RDW.js";
|
|
3
|
+
import H, { useState as A, useMemo as le, useCallback as ne, Component as Pv, useContext as Ye, useRef as L, useEffect as De, memo as dt, forwardRef as ac, useImperativeHandle as lc, useLayoutEffect as at, createElement as xv, createContext as Tv, Suspense as Dv } from "react";
|
|
4
|
+
import Iv, { createPortal as Lp } from "react-dom";
|
|
5
|
+
import { T as Ds } from "./index-BwVZgt5s.js";
|
|
6
|
+
import { B as si } from "./index-CrMcNEAZ.js";
|
|
7
|
+
import { a as nl } from "./Pagination-Dxslodkq.js";
|
|
8
|
+
import { I as cc } from "./index-DvWHYX81.js";
|
|
9
|
+
import { P as yr } from "./index-y7jVGGI0.js";
|
|
10
|
+
import { T as Av } from "./index-B57Fj7Y0.js";
|
|
11
|
+
import { R as Mv } from "./SearchOutlined-puH6bCY6.js";
|
|
12
|
+
import { c as Xe } from "./format-UGmYKemG.js";
|
|
13
|
+
import { U as Si, b as $d, t as kv, a as Lv, u as Nv } from "./use-g6-graph-WLX0PweO.js";
|
|
14
|
+
import { e as Vv } from "./focus-set-h0YtOUB2.js";
|
|
15
|
+
import { D as Kd } from "./index-CaXylbQR.js";
|
|
16
|
+
import { F as Hv } from "./Table-CDagah-g.js";
|
|
15
17
|
const Ov = 8, eo = (e) => (e ?? "").trim().toUpperCase();
|
|
16
18
|
function Gv(e, t) {
|
|
17
19
|
const s = new Map(e.map((r) => [eo(r.domainCode), r])), i = [], n = /* @__PURE__ */ new Set([eo(t)]);
|
|
@@ -27,10 +29,10 @@ function Gv(e, t) {
|
|
|
27
29
|
}
|
|
28
30
|
return i;
|
|
29
31
|
}
|
|
30
|
-
function
|
|
32
|
+
function _2(e, t, s) {
|
|
31
33
|
return s === "ANCESTORS" ? Gv(e, t) : [];
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function z2({ metas: e, activeIndex: t, onPick: s }) {
|
|
34
36
|
return e.length <= 1 ? null : /* @__PURE__ */ D("div", { className: "ont-candidates", children: [
|
|
35
37
|
/* @__PURE__ */ D("div", { className: "ont-candidates-head", children: [
|
|
36
38
|
/* @__PURE__ */ b(Fe, { name: "git-merge", size: 12 }),
|
|
@@ -110,7 +112,7 @@ function _v(e) {
|
|
|
110
112
|
return { nodeCount: t, edgeCount: s, startName: o, endName: r, summary: a };
|
|
111
113
|
}
|
|
112
114
|
const qd = 4, ol = 2, Np = 12, zv = 8, Uv = 1, Vp = 50, $v = 10;
|
|
113
|
-
function
|
|
115
|
+
function U2(e) {
|
|
114
116
|
const [t, s] = A([]), [i, n] = A(null), [o, r] = A(0), [a, l] = A(zv), [c, d] = A($v), [u, h] = A([]), g = le(
|
|
115
117
|
() => e ? Kv(e) : null,
|
|
116
118
|
[e]
|
|
@@ -324,7 +326,7 @@ const jv = Array.from(
|
|
|
324
326
|
{ length: Np - ol + 1 },
|
|
325
327
|
(e, t) => ol + t
|
|
326
328
|
), qv = [1, 2, 3, 5, 10, 20, 50].filter((e) => e <= Vp);
|
|
327
|
-
function
|
|
329
|
+
function $2({
|
|
328
330
|
nodeChips: e,
|
|
329
331
|
edgeChips: t,
|
|
330
332
|
candidateCount: s,
|
|
@@ -444,7 +446,7 @@ function z2({
|
|
|
444
446
|
function Yv(e) {
|
|
445
447
|
return e == null ? "-" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
446
448
|
}
|
|
447
|
-
function
|
|
449
|
+
function K2({ target: e, onClose: t }) {
|
|
448
450
|
const s = e.kind === "structure", i = e.kind === "structure" && e.edge.displayName || e.edge.edgeName, n = e.kind === "structure" ? `${e.edge.srcTag ?? "?"}${e.edge.srcTag === e.edge.dstTag ? "(自环)" : ` → ${e.edge.dstTag ?? "?"}`}` : `${e.nameOf(e.edge.srcVid)}${e.edge.srcVid === e.edge.dstVid ? "(自环)" : ` → ${e.nameOf(e.edge.dstVid)}`}`, o = Object.entries(
|
|
449
451
|
e.kind === "instance" ? e.edge.properties ?? {} : {}
|
|
450
452
|
);
|
|
@@ -44109,7 +44111,7 @@ function yG(e) {
|
|
|
44109
44111
|
return ko || setTimeout(() => ko = !1, 0), ko = !0, e();
|
|
44110
44112
|
}
|
|
44111
44113
|
var Gn = (e, t) => {
|
|
44112
|
-
!nv && e && !ko ?
|
|
44114
|
+
!nv && e && !ko ? Iv.flushSync(t) : t();
|
|
44113
44115
|
}, SG = (e) => {
|
|
44114
44116
|
nv ? e() : H.startTransition(e);
|
|
44115
44117
|
};
|
|
@@ -44219,7 +44221,7 @@ var np = (e, t, s) => {
|
|
|
44219
44221
|
/* @__PURE__ */ H.createElement("span", { className: "ag-group-value", ref: o }, U ? G : Y ? /* @__PURE__ */ H.createElement(N, { ...d.params }) : null),
|
|
44220
44222
|
/* @__PURE__ */ H.createElement("span", { className: "ag-group-child-count" }, h)
|
|
44221
44223
|
);
|
|
44222
|
-
}), op = ov, Gd =
|
|
44224
|
+
}), op = ov, Gd = Tv({
|
|
44223
44225
|
setMethods: () => {
|
|
44224
44226
|
}
|
|
44225
44227
|
}), FG = (e) => {
|
|
@@ -44304,7 +44306,7 @@ var rv = class {
|
|
|
44304
44306
|
);
|
|
44305
44307
|
}
|
|
44306
44308
|
createElement(e, t) {
|
|
44307
|
-
return
|
|
44309
|
+
return xv(e, t);
|
|
44308
44310
|
}
|
|
44309
44311
|
createReactComponent(e) {
|
|
44310
44312
|
this.portalManager.mountReactPortal(this.portal, this, e);
|
|
@@ -45380,7 +45382,7 @@ var WG = 1e3, _G = class {
|
|
|
45380
45382
|
return ((ke = ye == null ? void 0 : ye.toString) == null ? void 0 : ke.call(ye)) ?? ye;
|
|
45381
45383
|
if (we.componentFromFramework) {
|
|
45382
45384
|
const xe = we.componentClass;
|
|
45383
|
-
return /* @__PURE__ */ H.createElement(
|
|
45385
|
+
return /* @__PURE__ */ H.createElement(Dv, { fallback: /* @__PURE__ */ H.createElement(gB, { cellCtrl: e, parent: R }) }, ht ? /* @__PURE__ */ H.createElement(xe, { ...we.params, key: h }) : /* @__PURE__ */ H.createElement(xe, { ...we.params, key: h, ref: z }));
|
|
45384
45386
|
}
|
|
45385
45387
|
}, ot = () => {
|
|
45386
45388
|
const we = () => l == null ? null : k ? /* @__PURE__ */ H.createElement("span", { role: "presentation", id: `cell-${r}`, className: W, ref: G }, Ie()) : Ie(), ye = (ke) => uB(ke, se, R.current, e, P);
|
|
@@ -46338,7 +46340,7 @@ var NB = class extends eG {
|
|
|
46338
46340
|
runWhenReadyAsync() {
|
|
46339
46341
|
return bG();
|
|
46340
46342
|
}
|
|
46341
|
-
}, OB = class extends
|
|
46343
|
+
}, OB = class extends Pv {
|
|
46342
46344
|
constructor() {
|
|
46343
46345
|
super(...arguments), this.apiListeners = [], this.setGridApi = (e) => {
|
|
46344
46346
|
this.api = e;
|
|
@@ -46780,7 +46782,7 @@ function i2(e) {
|
|
|
46780
46782
|
function mp(e, t) {
|
|
46781
46783
|
return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((i) => (e[i] ?? "") === (t[i] ?? ""));
|
|
46782
46784
|
}
|
|
46783
|
-
function
|
|
46785
|
+
function Q2({
|
|
46784
46786
|
source: e,
|
|
46785
46787
|
scope: t,
|
|
46786
46788
|
scenarioCode: s,
|
|
@@ -46982,7 +46984,7 @@ function q2({
|
|
|
46982
46984
|
/* @__PURE__ */ D("span", { className: "ont-inst-limit", children: [
|
|
46983
46985
|
/* @__PURE__ */ b("span", { children: "限制" }),
|
|
46984
46986
|
/* @__PURE__ */ b(
|
|
46985
|
-
|
|
46987
|
+
Av,
|
|
46986
46988
|
{
|
|
46987
46989
|
size: "small",
|
|
46988
46990
|
min: pp,
|
|
@@ -47002,7 +47004,7 @@ function q2({
|
|
|
47002
47004
|
className: "ont-inst-search",
|
|
47003
47005
|
size: "small",
|
|
47004
47006
|
allowClear: !0,
|
|
47005
|
-
prefix: /* @__PURE__ */ b(
|
|
47007
|
+
prefix: /* @__PURE__ */ b(Mv, {}),
|
|
47006
47008
|
placeholder: "全局搜索(跨列)",
|
|
47007
47009
|
"aria-label": "全局搜索",
|
|
47008
47010
|
value: m,
|
|
@@ -47078,7 +47080,7 @@ function o2({
|
|
|
47078
47080
|
let d = !0;
|
|
47079
47081
|
return (async () => {
|
|
47080
47082
|
a(!0), c(!1), i(null), o(null);
|
|
47081
|
-
const h = e.kind === "tag" ? await kp(e.code) : await
|
|
47083
|
+
const h = e.kind === "tag" ? await kp(e.code) : await Rv(e.code);
|
|
47082
47084
|
if (d) {
|
|
47083
47085
|
if (a(!1), !h) {
|
|
47084
47086
|
c(!0);
|
|
@@ -47090,7 +47092,7 @@ function o2({
|
|
|
47090
47092
|
d = !1;
|
|
47091
47093
|
};
|
|
47092
47094
|
}, [e]), /* @__PURE__ */ b(
|
|
47093
|
-
|
|
47095
|
+
Sv,
|
|
47094
47096
|
{
|
|
47095
47097
|
icon: e.kind === "tag" ? "tag" : "link",
|
|
47096
47098
|
title: `${e.kind === "tag" ? "对象类型详情" : "关系类型详情"} · ${e.title}`,
|
|
@@ -47222,7 +47224,7 @@ function yp(e, t) {
|
|
|
47222
47224
|
}
|
|
47223
47225
|
return i.items.length ? [...s, i] : s;
|
|
47224
47226
|
}
|
|
47225
|
-
function
|
|
47227
|
+
function X2({
|
|
47226
47228
|
tags: e,
|
|
47227
47229
|
edges: t,
|
|
47228
47230
|
tagTotal: s,
|
|
@@ -47254,7 +47256,7 @@ function Y2({
|
|
|
47254
47256
|
const [R, $] = A("tags"), [z, X] = A(null), [q, T] = A(null), [O, B] = A([]), [Y, N] = A([]), [U, G] = A({
|
|
47255
47257
|
tags: "",
|
|
47256
47258
|
edges: ""
|
|
47257
|
-
}), I = U[R], k = (Q) => G((me) => ({ ...me, [R]: Q })), W = I.trim(), se = (Q) =>
|
|
47259
|
+
}), I = U[R], k = (Q) => G((me) => ({ ...me, [R]: Q })), W = I.trim(), se = (Q) => Fv(W, Q), K = e.filter(
|
|
47258
47260
|
(Q) => (d || Q.status === "ACTIVE") && (se(Q.tagName) || se(Q.displayName))
|
|
47259
47261
|
), Z = t.filter(
|
|
47260
47262
|
(Q) => se(Q.edgeName) || se(Q.displayName)
|
|
@@ -47972,7 +47974,7 @@ function y2(e) {
|
|
|
47972
47974
|
hint: "实例子图查询链路已就绪,图库配置下发后此处自动展示。"
|
|
47973
47975
|
};
|
|
47974
47976
|
}
|
|
47975
|
-
function
|
|
47977
|
+
function Z2({
|
|
47976
47978
|
view: e,
|
|
47977
47979
|
loading: t,
|
|
47978
47980
|
failed: s,
|
|
@@ -48604,7 +48606,7 @@ const Fp = 50, S2 = {
|
|
|
48604
48606
|
function R2(e) {
|
|
48605
48607
|
return e ? Object.entries(e).filter(([, s]) => s !== void 0).map(([s, i]) => `${s}: ${String(i)}`).join("、") : "";
|
|
48606
48608
|
}
|
|
48607
|
-
function
|
|
48609
|
+
function J2({
|
|
48608
48610
|
edgeName: e,
|
|
48609
48611
|
label: t,
|
|
48610
48612
|
scope: s,
|
|
@@ -48617,7 +48619,7 @@ function X2({
|
|
|
48617
48619
|
}, [e]), De(() => {
|
|
48618
48620
|
const f = ++u.current;
|
|
48619
48621
|
d((m) => ({ ...m, loading: !0, failed: !1 })), (async () => {
|
|
48620
|
-
const m = await
|
|
48622
|
+
const m = await Ev({
|
|
48621
48623
|
edgeName: e,
|
|
48622
48624
|
...s ? { scope: s } : {},
|
|
48623
48625
|
...i ? { scenarioCode: i } : {},
|
|
@@ -48731,7 +48733,7 @@ function X2({
|
|
|
48731
48733
|
] }) })
|
|
48732
48734
|
] });
|
|
48733
48735
|
}
|
|
48734
|
-
function
|
|
48736
|
+
function eW({
|
|
48735
48737
|
code: e,
|
|
48736
48738
|
tagName: t,
|
|
48737
48739
|
edges: s,
|
|
@@ -48809,7 +48811,7 @@ function Z2({
|
|
|
48809
48811
|
] }) : null
|
|
48810
48812
|
] });
|
|
48811
48813
|
}
|
|
48812
|
-
function
|
|
48814
|
+
function tW() {
|
|
48813
48815
|
const [e, t] = A(null), [s, i] = A(null), [n, o] = A(/* @__PURE__ */ new Set()), r = ne((u, h) => {
|
|
48814
48816
|
const g = /* @__PURE__ */ new Set([u]);
|
|
48815
48817
|
h.forEach((p) => {
|
|
@@ -48863,7 +48865,7 @@ function bo(e, t) {
|
|
|
48863
48865
|
graphBound: (e == null ? void 0 : e.graphBound) ?? t.graphBound
|
|
48864
48866
|
};
|
|
48865
48867
|
}
|
|
48866
|
-
function
|
|
48868
|
+
function sW(e = {}) {
|
|
48867
48869
|
const { scope: t, scenarioCode: s } = e, i = le(
|
|
48868
48870
|
() => t ? { scope: t, scenarioCode: s } : {},
|
|
48869
48871
|
[t, s]
|
|
@@ -49024,17 +49026,17 @@ function eW(e = {}) {
|
|
|
49024
49026
|
}
|
|
49025
49027
|
export {
|
|
49026
49028
|
qd as C,
|
|
49027
|
-
|
|
49028
|
-
|
|
49029
|
-
|
|
49030
|
-
|
|
49031
|
-
|
|
49032
|
-
|
|
49033
|
-
|
|
49034
|
-
|
|
49035
|
-
|
|
49036
|
-
|
|
49029
|
+
K2 as E,
|
|
49030
|
+
Q2 as I,
|
|
49031
|
+
J2 as R,
|
|
49032
|
+
Z2 as S,
|
|
49033
|
+
X2 as T,
|
|
49034
|
+
tW as a,
|
|
49035
|
+
U2 as b,
|
|
49036
|
+
eW as c,
|
|
49037
|
+
z2 as d,
|
|
49038
|
+
$2 as e,
|
|
49037
49039
|
Pp as f,
|
|
49038
|
-
|
|
49039
|
-
|
|
49040
|
+
_2 as s,
|
|
49041
|
+
sW as u
|
|
49040
49042
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { v as I, R as j, ag as m, p as O, M as v } from "./index-CrMcNEAZ.js";
|
|
3
|
+
function R(t) {
|
|
4
|
+
if (!t)
|
|
5
|
+
return;
|
|
6
|
+
const {
|
|
7
|
+
closable: o,
|
|
8
|
+
closeIcon: e
|
|
9
|
+
} = t;
|
|
10
|
+
return {
|
|
11
|
+
closable: o,
|
|
12
|
+
closeIcon: e
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function C(t) {
|
|
16
|
+
const {
|
|
17
|
+
closable: o,
|
|
18
|
+
closeIcon: e
|
|
19
|
+
} = t || {};
|
|
20
|
+
return n.useMemo(() => {
|
|
21
|
+
if (
|
|
22
|
+
// If `closable`, whatever rest be should be true
|
|
23
|
+
!o && (o === !1 || e === !1 || e === null)
|
|
24
|
+
)
|
|
25
|
+
return !1;
|
|
26
|
+
if (o === void 0 && e === void 0)
|
|
27
|
+
return null;
|
|
28
|
+
let l = {
|
|
29
|
+
closeIcon: typeof e != "boolean" && e !== null ? e : void 0
|
|
30
|
+
};
|
|
31
|
+
return o && typeof o == "object" && (l = Object.assign(Object.assign({}, l), o)), l;
|
|
32
|
+
}, [o, e]);
|
|
33
|
+
}
|
|
34
|
+
const E = {}, _ = (t, o, e = E) => {
|
|
35
|
+
const l = C(t), c = C(o), [i] = I("global", v.global), u = typeof l != "boolean" ? !!(l != null && l.disabled) : !1, a = n.useMemo(() => Object.assign({
|
|
36
|
+
closeIcon: /* @__PURE__ */ n.createElement(j, null)
|
|
37
|
+
}, e), [e]), r = n.useMemo(() => l === !1 ? !1 : l ? m(a, c, l) : c === !1 ? !1 : c ? m(a, c) : a.closable ? a : !1, [l, c, a]);
|
|
38
|
+
return n.useMemo(() => {
|
|
39
|
+
var f, b;
|
|
40
|
+
if (r === !1)
|
|
41
|
+
return [!1, null, u, {}];
|
|
42
|
+
const {
|
|
43
|
+
closeIconRender: p
|
|
44
|
+
} = a, {
|
|
45
|
+
closeIcon: g
|
|
46
|
+
} = r;
|
|
47
|
+
let s = g;
|
|
48
|
+
const d = O(r, !0);
|
|
49
|
+
return s != null && (p && (s = p(g)), s = /* @__PURE__ */ n.isValidElement(s) ? /* @__PURE__ */ n.cloneElement(s, Object.assign(Object.assign(Object.assign({}, s.props), {
|
|
50
|
+
"aria-label": (b = (f = s.props) === null || f === void 0 ? void 0 : f["aria-label"]) !== null && b !== void 0 ? b : i.close
|
|
51
|
+
}), d)) : /* @__PURE__ */ n.createElement("span", Object.assign({
|
|
52
|
+
"aria-label": i.close
|
|
53
|
+
}, d), s)), [!0, s, u, d];
|
|
54
|
+
}, [u, i.close, r, a]);
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
R as p,
|
|
58
|
+
_ as u
|
|
59
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as Z from "react";
|
|
2
|
+
import { aK as ce, aF as fe } from "./index-CrMcNEAZ.js";
|
|
3
|
+
const ee = (e) => typeof e == "object" && e != null && e.nodeType === 1, te = (e, o) => (!o || e !== "hidden") && e !== "visible" && e !== "clip", B = (e, o) => {
|
|
4
|
+
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
5
|
+
const r = getComputedStyle(e, null);
|
|
6
|
+
return te(r.overflowY, o) || te(r.overflowX, o) || ((l) => {
|
|
7
|
+
const n = ((t) => {
|
|
8
|
+
if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
|
|
9
|
+
try {
|
|
10
|
+
return t.ownerDocument.defaultView.frameElement;
|
|
11
|
+
} catch {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
})(l);
|
|
15
|
+
return !!n && (n.clientHeight < l.scrollHeight || n.clientWidth < l.scrollWidth);
|
|
16
|
+
})(e);
|
|
17
|
+
}
|
|
18
|
+
return !1;
|
|
19
|
+
}, C = (e, o, r, l, n, t, i, c) => t < e && i > o || t > e && i < o ? 0 : t <= e && c <= r || i >= o && c >= r ? t - e - l : i > o && c < r || t < e && c > r ? i - o + n : 0, ae = (e) => {
|
|
20
|
+
const o = e.parentElement;
|
|
21
|
+
return o ?? (e.getRootNode().host || null);
|
|
22
|
+
}, oe = (e, o) => {
|
|
23
|
+
var r, l, n, t;
|
|
24
|
+
if (typeof document > "u") return [];
|
|
25
|
+
const { scrollMode: i, block: c, inline: f, boundary: L, skipOverflowHiddenElements: ie } = o, se = typeof L == "function" ? L : (p) => p !== L;
|
|
26
|
+
if (!ee(e)) throw new TypeError("Invalid target");
|
|
27
|
+
const P = document.scrollingElement || document.documentElement, I = [];
|
|
28
|
+
let a = e;
|
|
29
|
+
for (; ee(a) && se(a); ) {
|
|
30
|
+
if (a = ae(a), a === P) {
|
|
31
|
+
I.push(a);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
a != null && a === document.body && B(a) && !B(document.documentElement) || a != null && B(a, ie) && I.push(a);
|
|
35
|
+
}
|
|
36
|
+
const m = (l = (r = window.visualViewport) == null ? void 0 : r.width) != null ? l : innerWidth, b = (t = (n = window.visualViewport) == null ? void 0 : n.height) != null ? t : innerHeight, { scrollX: w, scrollY: y } = window, { height: v, width: F, top: M, right: D, bottom: V, left: _ } = e.getBoundingClientRect(), { top: q, right: z, bottom: G, left: J } = ((p) => {
|
|
37
|
+
const s = window.getComputedStyle(p);
|
|
38
|
+
return { top: parseFloat(s.scrollMarginTop) || 0, right: parseFloat(s.scrollMarginRight) || 0, bottom: parseFloat(s.scrollMarginBottom) || 0, left: parseFloat(s.scrollMarginLeft) || 0 };
|
|
39
|
+
})(e);
|
|
40
|
+
let d = c === "start" || c === "nearest" ? M - q : c === "end" ? V + G : M + v / 2 - q + G, u = f === "center" ? _ + F / 2 - J + z : f === "end" ? D + z : _ - J;
|
|
41
|
+
const A = [];
|
|
42
|
+
for (let p = 0; p < I.length; p++) {
|
|
43
|
+
const s = I[p], { height: O, width: W, top: N, right: X, bottom: Y, left: R } = s.getBoundingClientRect();
|
|
44
|
+
if (i === "if-needed" && M >= 0 && _ >= 0 && V <= b && D <= m && (s === P && !B(s) || M >= N && V <= Y && _ >= R && D <= X)) return A;
|
|
45
|
+
const H = getComputedStyle(s), j = parseInt(H.borderLeftWidth, 10), E = parseInt(H.borderTopWidth, 10), S = parseInt(H.borderRightWidth, 10), T = parseInt(H.borderBottomWidth, 10);
|
|
46
|
+
let h = 0, g = 0;
|
|
47
|
+
const k = "offsetWidth" in s ? s.offsetWidth - s.clientWidth - j - S : 0, x = "offsetHeight" in s ? s.offsetHeight - s.clientHeight - E - T : 0, K = "offsetWidth" in s ? s.offsetWidth === 0 ? 0 : W / s.offsetWidth : 0, $ = "offsetHeight" in s ? s.offsetHeight === 0 ? 0 : O / s.offsetHeight : 0;
|
|
48
|
+
if (P === s) h = c === "start" ? d : c === "end" ? d - b : c === "nearest" ? C(y, y + b, b, E, T, y + d, y + d + v, v) : d - b / 2, g = f === "start" ? u : f === "center" ? u - m / 2 : f === "end" ? u - m : C(w, w + m, m, j, S, w + u, w + u + F, F), h = Math.max(0, h + y), g = Math.max(0, g + w);
|
|
49
|
+
else {
|
|
50
|
+
h = c === "start" ? d - N - E : c === "end" ? d - Y + T + x : c === "nearest" ? C(N, Y, O, E, T + x, d, d + v, v) : d - (N + O / 2) + x / 2, g = f === "start" ? u - R - j : f === "center" ? u - (R + W / 2) + k / 2 : f === "end" ? u - X + S + k : C(R, X, W, j, S + k, u, u + F, F);
|
|
51
|
+
const { scrollLeft: Q, scrollTop: U } = s;
|
|
52
|
+
h = $ === 0 ? 0 : Math.max(0, Math.min(U + h / $, s.scrollHeight - O / $ + x)), g = K === 0 ? 0 : Math.max(0, Math.min(Q + g / K, s.scrollWidth - W / K + k)), d += U - h, u += Q - g;
|
|
53
|
+
}
|
|
54
|
+
A.push({ el: s, top: h, left: g });
|
|
55
|
+
}
|
|
56
|
+
return A;
|
|
57
|
+
}, de = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((o) => o === Object(o) && Object.keys(o).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
58
|
+
function ue(e, o) {
|
|
59
|
+
if (!e.isConnected || !((n) => {
|
|
60
|
+
let t = n;
|
|
61
|
+
for (; t && t.parentNode; ) {
|
|
62
|
+
if (t.parentNode === document) return !0;
|
|
63
|
+
t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
|
|
64
|
+
}
|
|
65
|
+
return !1;
|
|
66
|
+
})(e)) return;
|
|
67
|
+
const r = ((n) => {
|
|
68
|
+
const t = window.getComputedStyle(n);
|
|
69
|
+
return { top: parseFloat(t.scrollMarginTop) || 0, right: parseFloat(t.scrollMarginRight) || 0, bottom: parseFloat(t.scrollMarginBottom) || 0, left: parseFloat(t.scrollMarginLeft) || 0 };
|
|
70
|
+
})(e);
|
|
71
|
+
if (((n) => typeof n == "object" && typeof n.behavior == "function")(o)) return o.behavior(oe(e, o));
|
|
72
|
+
const l = typeof o == "boolean" || o == null ? void 0 : o.behavior;
|
|
73
|
+
for (const { el: n, top: t, left: i } of oe(e, de(o))) {
|
|
74
|
+
const c = t - r.top + r.bottom, f = i - r.left + r.right;
|
|
75
|
+
n.scroll({ top: c, left: f, behavior: l });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const he = ["parentNode"], ge = "form_item";
|
|
79
|
+
function le(e) {
|
|
80
|
+
return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
|
|
81
|
+
}
|
|
82
|
+
function pe(e, o) {
|
|
83
|
+
if (!e.length)
|
|
84
|
+
return;
|
|
85
|
+
const r = e.join("_");
|
|
86
|
+
return o ? `${o}_${r}` : he.includes(r) ? `${ge}_${r}` : r;
|
|
87
|
+
}
|
|
88
|
+
function we(e, o, r, l, n, t) {
|
|
89
|
+
let i = l;
|
|
90
|
+
return t !== void 0 ? i = t : r.validating ? i = "validating" : e.length ? i = "error" : o.length ? i = "warning" : (r.touched || n && r.validated) && (i = "success"), i;
|
|
91
|
+
}
|
|
92
|
+
var me = function(e, o) {
|
|
93
|
+
var r = {};
|
|
94
|
+
for (var l in e) Object.prototype.hasOwnProperty.call(e, l) && o.indexOf(l) < 0 && (r[l] = e[l]);
|
|
95
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, l = Object.getOwnPropertySymbols(e); n < l.length; n++)
|
|
96
|
+
o.indexOf(l[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, l[n]) && (r[l[n]] = e[l[n]]);
|
|
97
|
+
return r;
|
|
98
|
+
};
|
|
99
|
+
function ne(e) {
|
|
100
|
+
return le(e).join("_");
|
|
101
|
+
}
|
|
102
|
+
function re(e, o) {
|
|
103
|
+
const r = o.getFieldInstance(e), l = fe(r);
|
|
104
|
+
if (l)
|
|
105
|
+
return l;
|
|
106
|
+
const n = pe(le(e), o.__INTERNAL__.name);
|
|
107
|
+
if (n)
|
|
108
|
+
return document.getElementById(n);
|
|
109
|
+
}
|
|
110
|
+
function ye(e) {
|
|
111
|
+
const [o] = ce(), r = Z.useRef({}), l = Z.useMemo(() => e ?? Object.assign(Object.assign({}, o), {
|
|
112
|
+
__INTERNAL__: {
|
|
113
|
+
itemRef: (n) => (t) => {
|
|
114
|
+
const i = ne(n);
|
|
115
|
+
t ? r.current[i] = t : delete r.current[i];
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
scrollToField: (n, t = {}) => {
|
|
119
|
+
const {
|
|
120
|
+
focus: i
|
|
121
|
+
} = t, c = me(t, ["focus"]), f = re(n, l);
|
|
122
|
+
f && (ue(f, Object.assign({
|
|
123
|
+
scrollMode: "if-needed",
|
|
124
|
+
block: "nearest"
|
|
125
|
+
}, c)), i && l.focusField(n));
|
|
126
|
+
},
|
|
127
|
+
focusField: (n) => {
|
|
128
|
+
var t, i;
|
|
129
|
+
const c = l.getFieldInstance(n);
|
|
130
|
+
typeof (c == null ? void 0 : c.focus) == "function" ? c.focus() : (i = (t = re(n, l)) === null || t === void 0 ? void 0 : t.focus) === null || i === void 0 || i.call(t);
|
|
131
|
+
},
|
|
132
|
+
getFieldInstance: (n) => {
|
|
133
|
+
const t = ne(n);
|
|
134
|
+
return r.current[t];
|
|
135
|
+
}
|
|
136
|
+
}), [e, o]);
|
|
137
|
+
return [l];
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
pe as a,
|
|
141
|
+
ne as b,
|
|
142
|
+
we as g,
|
|
143
|
+
le as t,
|
|
144
|
+
ye as u
|
|
145
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as A } from "react/jsx-runtime";
|
|
2
|
-
import { t as E, r as L,
|
|
3
|
-
import { useState as o, useCallback as
|
|
4
|
-
import { f as
|
|
2
|
+
import { t as E, r as L, C as ue, I as c, e as H } from "./embed-DwLg9RDW.js";
|
|
3
|
+
import { useState as o, useCallback as be, useEffect as Ne, useMemo as V } from "react";
|
|
4
|
+
import { f as K } from "./format-UGmYKemG.js";
|
|
5
|
+
import { u as pe } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
5
6
|
const P = "/kb/v1/knowledgeBase", $ = () => ({ "X-Tenant-Code": ue() });
|
|
6
7
|
async function R(r) {
|
|
7
8
|
try {
|
|
@@ -152,8 +153,8 @@ function U(r) {
|
|
|
152
153
|
}
|
|
153
154
|
return d.remark = (r == null ? void 0 : r.remark) || "", d;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
-
const d =
|
|
156
|
+
function ze({ kbId: r }) {
|
|
157
|
+
const d = pe(), [n, f] = o(null), [ae, x] = o(!0), [le, B] = o(!1), [m, y] = o(U(null)), [p, z] = o(!1), [i, T] = o(null), [h, J] = o(null), [u, N] = o(""), [ne, M] = o(!1), [Q, O] = o(""), [X, _] = o(!1), [ie, D] = o(!1), [j, q] = o(!1), [Y, se] = o(""), [ce, I] = o(!1), g = be(async () => {
|
|
157
158
|
if (!r) {
|
|
158
159
|
x(!1), B(!0);
|
|
159
160
|
return;
|
|
@@ -166,14 +167,14 @@ function Re({ kbId: r }) {
|
|
|
166
167
|
}
|
|
167
168
|
B(!1), f(l), J(l.validation), l.draft ? (y(U(l.draft)), z(!0), T(null)) : (y(U(l.current)), z(!1), T(l.current));
|
|
168
169
|
}, [r]);
|
|
169
|
-
|
|
170
|
+
Ne(() => {
|
|
170
171
|
(async () => await g())();
|
|
171
172
|
}, [g]);
|
|
172
173
|
const b = !!(n != null && n.canManage), t = (n == null ? void 0 : n.draft) || null, k = (n == null ? void 0 : n.current) || null, S = (n == null ? void 0 : n.diff) || [], s = n == null ? void 0 : n.impact, Z = t ? (h == null ? void 0 : h.items) || (n == null ? void 0 : n.validation.items) || [] : [], re = V(() => (n == null ? void 0 : n.versions) || [], [n]), C = V(() => s ? {
|
|
173
174
|
full: s.fullRebuildCount,
|
|
174
175
|
incremental: s.incrementalCount,
|
|
175
176
|
unaffected: s.unaffectedCount
|
|
176
|
-
} : { full: 0, incremental: 0, unaffected: 0 }, [s]),
|
|
177
|
+
} : { full: 0, incremental: 0, unaffected: 0 }, [s]), G = (l) => {
|
|
177
178
|
y(U(l)), z(!0), T(null);
|
|
178
179
|
}, te = async () => {
|
|
179
180
|
if (!n)
|
|
@@ -204,13 +205,13 @@ function Re({ kbId: r }) {
|
|
|
204
205
|
l.valid ? "success" : "warn"
|
|
205
206
|
));
|
|
206
207
|
}, he = async () => {
|
|
207
|
-
if (!n || !
|
|
208
|
+
if (!n || !X)
|
|
208
209
|
return;
|
|
209
210
|
N("publish");
|
|
210
211
|
const l = await ke(n.kbId, Q.trim() || void 0);
|
|
211
|
-
N(""), l !== void 0 && (M(!1),
|
|
212
|
+
N(""), l !== void 0 && (M(!1), _(!1), O(""), E("配置已发布", `当前版本切换为 v${l.versionNo};全量重建是另一个动作`, "success"), await g());
|
|
212
213
|
}, oe = async () => {
|
|
213
|
-
if (!n || !
|
|
214
|
+
if (!n || !j)
|
|
214
215
|
return;
|
|
215
216
|
N("rebuild");
|
|
216
217
|
const l = await Ce(n.kbId);
|
|
@@ -242,7 +243,7 @@ function Re({ kbId: r }) {
|
|
|
242
243
|
"div",
|
|
243
244
|
{
|
|
244
245
|
className: `tl-item ${p ? "current" : ""}`,
|
|
245
|
-
onClick: () =>
|
|
246
|
+
onClick: () => G(t || k),
|
|
246
247
|
style: { cursor: "pointer" },
|
|
247
248
|
children: [
|
|
248
249
|
/* @__PURE__ */ a("div", { className: "tl-top", children: [
|
|
@@ -252,7 +253,7 @@ function Re({ kbId: r }) {
|
|
|
252
253
|
] }),
|
|
253
254
|
/* @__PURE__ */ e("span", { className: `tag ${t ? "amber" : "gray"}`, children: t ? "待发布" : "本地编辑" })
|
|
254
255
|
] }),
|
|
255
|
-
/* @__PURE__ */ e("p", { children: t ? `${t.publisherName || `actor ${t.updateBy || "—"}`} 保存于 ${
|
|
256
|
+
/* @__PURE__ */ e("p", { children: t ? `${t.publisherName || `actor ${t.updateBy || "—"}`} 保存于 ${K(t.updateTime || t.createTime)}` : "保存后才会生成草稿版本,草稿不改变当前版本" }),
|
|
256
257
|
/* @__PURE__ */ a("p", { children: [
|
|
257
258
|
"变更 ",
|
|
258
259
|
S.length,
|
|
@@ -283,7 +284,7 @@ function Re({ kbId: r }) {
|
|
|
283
284
|
/* @__PURE__ */ a("p", { children: [
|
|
284
285
|
l.publisherName || (l.publishedBy ? `actor ${l.publishedBy}` : "初始配置"),
|
|
285
286
|
" · ",
|
|
286
|
-
|
|
287
|
+
K(l.publishedAt || l.createTime)
|
|
287
288
|
] }),
|
|
288
289
|
l.remark ? /* @__PURE__ */ e("p", { children: l.remark }) : null
|
|
289
290
|
]
|
|
@@ -300,7 +301,7 @@ function Re({ kbId: r }) {
|
|
|
300
301
|
className: "btn sm",
|
|
301
302
|
type: "button",
|
|
302
303
|
disabled: !b || p,
|
|
303
|
-
onClick: () =>
|
|
304
|
+
onClick: () => G(t || k),
|
|
304
305
|
children: [
|
|
305
306
|
/* @__PURE__ */ e(c, { name: "edit", size: 12 }),
|
|
306
307
|
t ? "编辑草稿" : "新建草稿"
|
|
@@ -407,7 +408,7 @@ function Re({ kbId: r }) {
|
|
|
407
408
|
/* @__PURE__ */ e("dt", { children: "发布人" }),
|
|
408
409
|
/* @__PURE__ */ e("dd", { children: (i == null ? void 0 : i.publisherName) || (i != null && i.publishedBy ? `actor ${i.publishedBy}` : "—") }),
|
|
409
410
|
/* @__PURE__ */ e("dt", { children: "发布时间" }),
|
|
410
|
-
/* @__PURE__ */ e("dd", { children:
|
|
411
|
+
/* @__PURE__ */ e("dd", { children: K((i == null ? void 0 : i.publishedAt) || (i == null ? void 0 : i.createTime)) }),
|
|
411
412
|
W.map((l) => /* @__PURE__ */ a("div", { style: { display: "contents" }, children: [
|
|
412
413
|
/* @__PURE__ */ e("dt", { children: l.label }),
|
|
413
414
|
/* @__PURE__ */ e(
|
|
@@ -471,7 +472,7 @@ function Re({ kbId: r }) {
|
|
|
471
472
|
className: "btn",
|
|
472
473
|
type: "button",
|
|
473
474
|
disabled: !b,
|
|
474
|
-
onClick: () =>
|
|
475
|
+
onClick: () => G(i || k),
|
|
475
476
|
children: [
|
|
476
477
|
/* @__PURE__ */ e(c, { name: "edit", size: 13 }),
|
|
477
478
|
"以该版本为基线新建草稿"
|
|
@@ -575,7 +576,7 @@ function Re({ kbId: r }) {
|
|
|
575
576
|
type: "button",
|
|
576
577
|
disabled: !b || !t,
|
|
577
578
|
onClick: () => {
|
|
578
|
-
|
|
579
|
+
_(!1), O(m.remark || ""), M(!0);
|
|
579
580
|
},
|
|
580
581
|
children: [
|
|
581
582
|
/* @__PURE__ */ e(c, { name: "send", size: 12 }),
|
|
@@ -639,7 +640,7 @@ function Re({ kbId: r }) {
|
|
|
639
640
|
] })
|
|
640
641
|
] }),
|
|
641
642
|
ne ? /* @__PURE__ */ e(
|
|
642
|
-
|
|
643
|
+
H,
|
|
643
644
|
{
|
|
644
645
|
icon: "send",
|
|
645
646
|
title: `发布配置 · ${n.kbName}`,
|
|
@@ -653,7 +654,7 @@ function Re({ kbId: r }) {
|
|
|
653
654
|
{
|
|
654
655
|
className: "btn primary",
|
|
655
656
|
type: "button",
|
|
656
|
-
disabled: !
|
|
657
|
+
disabled: !X || u === "publish" || !(h != null && h.valid),
|
|
657
658
|
onClick: () => void he(),
|
|
658
659
|
children: [
|
|
659
660
|
/* @__PURE__ */ e(c, { name: "send", size: 12 }),
|
|
@@ -730,8 +731,8 @@ function Re({ kbId: r }) {
|
|
|
730
731
|
"input",
|
|
731
732
|
{
|
|
732
733
|
type: "checkbox",
|
|
733
|
-
checked:
|
|
734
|
-
onChange: (l) =>
|
|
734
|
+
checked: X,
|
|
735
|
+
onChange: (l) => _(l.target.checked)
|
|
735
736
|
}
|
|
736
737
|
),
|
|
737
738
|
/* @__PURE__ */ e("span", { children: "我已逐项确认上述差异与影响范围,理解发布不会自动重建产物" })
|
|
@@ -740,7 +741,7 @@ function Re({ kbId: r }) {
|
|
|
740
741
|
}
|
|
741
742
|
) : null,
|
|
742
743
|
ie ? /* @__PURE__ */ e(
|
|
743
|
-
|
|
744
|
+
H,
|
|
744
745
|
{
|
|
745
746
|
icon: "refresh",
|
|
746
747
|
title: `申请全量重建 · ${n.kbName}`,
|
|
@@ -754,7 +755,7 @@ function Re({ kbId: r }) {
|
|
|
754
755
|
{
|
|
755
756
|
className: "btn danger",
|
|
756
757
|
type: "button",
|
|
757
|
-
disabled: !
|
|
758
|
+
disabled: !j || u === "rebuild",
|
|
758
759
|
onClick: () => void oe(),
|
|
759
760
|
children: [
|
|
760
761
|
/* @__PURE__ */ e(c, { name: "refresh", size: 12 }),
|
|
@@ -793,7 +794,7 @@ function Re({ kbId: r }) {
|
|
|
793
794
|
"input",
|
|
794
795
|
{
|
|
795
796
|
type: "checkbox",
|
|
796
|
-
checked:
|
|
797
|
+
checked: j,
|
|
797
798
|
onChange: (l) => q(l.target.checked)
|
|
798
799
|
}
|
|
799
800
|
),
|
|
@@ -803,7 +804,7 @@ function Re({ kbId: r }) {
|
|
|
803
804
|
}
|
|
804
805
|
) : null,
|
|
805
806
|
ce ? /* @__PURE__ */ e(
|
|
806
|
-
|
|
807
|
+
H,
|
|
807
808
|
{
|
|
808
809
|
icon: "trash",
|
|
809
810
|
title: "丢弃配置草稿",
|
|
@@ -838,5 +839,5 @@ function Re({ kbId: r }) {
|
|
|
838
839
|
] });
|
|
839
840
|
}
|
|
840
841
|
export {
|
|
841
|
-
|
|
842
|
+
ze as V
|
|
842
843
|
};
|