@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
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import G, { useContext as We, Children as He, useMemo as R, useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import G, { useContext as We, Children as He, useMemo as R, useState as V, useEffect as ce, useCallback as D } from "react";
|
|
3
|
+
import { R as pt, b as ht } from "./context-Buz0ggsK.js";
|
|
4
|
+
import { c as ve, ay as gt, g as Qe, m as Ye, u as w, r as ut, a8 as ft, ac as Et, ag as yt, _ as _e, S as Ze, d as vt, b as $t, a4 as ye, B as Ve } from "./index-CrMcNEAZ.js";
|
|
5
|
+
import { c as Y, I as le, _ as de, R as kt } from "./SearchOutlined-puH6bCY6.js";
|
|
6
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
7
|
+
import { aq as Mt, A as Ct, ac as St, ag as Ft, aB as Nt, d as Ge } from "./embed-CR8XVkMy.js";
|
|
8
|
+
import { q as et, n as tt, s as Tt, u as at, v as Ae, w as Ke, x as Ie, y as bt, z as ue, A as je, B as Oe, C as Lt, d as Bt, D as xt, o as zt, R as nt } from "./ontology-scenarios-CcAagMiP.js";
|
|
9
|
+
import { u as Dt, b as wt, t as At } from "./use-g6-graph-WLX0PweO.js";
|
|
10
|
+
import { R as It } from "./ApartmentOutlined-M6qSurnE.js";
|
|
11
|
+
import { I as Ee } from "./index-DvWHYX81.js";
|
|
12
|
+
import { P as jt, a as qe } from "./Pagination-Dxslodkq.js";
|
|
13
|
+
import { A as Ot } from "./index-nQSVLWfW.js";
|
|
14
|
+
import { d as Wt, s as Xe } from "./TextArea-DTpTS5HL.js";
|
|
15
|
+
import { D as Pt } from "./index-bOY1cBol.js";
|
|
16
|
+
import { C as Rt, R as Ht } from "./row-B5MnGm9M.js";
|
|
17
|
+
import { a as Je, R as _t } from "./ThunderboltOutlined-Bf54AaFE.js";
|
|
18
|
+
import { T as oe } from "./index-BEjXaDfk.js";
|
|
19
|
+
import { T as X } from "./index-Bc-Vin3j.js";
|
|
20
|
+
import { u as Vt } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
12
21
|
const Re = /* @__PURE__ */ G.createContext({});
|
|
13
22
|
Re.Consumer;
|
|
14
23
|
var st = function(a, t) {
|
|
@@ -28,17 +37,17 @@ const Gt = (a) => {
|
|
|
28
37
|
} = a, u = st(a, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
29
38
|
const {
|
|
30
39
|
getPrefixCls: E
|
|
31
|
-
} = We(
|
|
32
|
-
className: `${
|
|
40
|
+
} = We(ve), v = E("list", t), C = Y(`${v}-item-meta`, n), d = /* @__PURE__ */ G.createElement("div", {
|
|
41
|
+
className: `${v}-item-meta-content`
|
|
33
42
|
}, i && /* @__PURE__ */ G.createElement("h4", {
|
|
34
|
-
className: `${
|
|
43
|
+
className: `${v}-item-meta-title`
|
|
35
44
|
}, i), g && /* @__PURE__ */ G.createElement("div", {
|
|
36
|
-
className: `${
|
|
45
|
+
className: `${v}-item-meta-description`
|
|
37
46
|
}, g));
|
|
38
47
|
return /* @__PURE__ */ G.createElement("div", Object.assign({}, u, {
|
|
39
48
|
className: C
|
|
40
49
|
}), c && /* @__PURE__ */ G.createElement("div", {
|
|
41
|
-
className: `${
|
|
50
|
+
className: `${v}-item-meta-avatar`
|
|
42
51
|
}, c), (i || g) && d);
|
|
43
52
|
}, Kt = /* @__PURE__ */ G.forwardRef((a, t) => {
|
|
44
53
|
const {
|
|
@@ -48,60 +57,60 @@ const Gt = (a) => {
|
|
|
48
57
|
extra: g,
|
|
49
58
|
styles: u,
|
|
50
59
|
className: E,
|
|
51
|
-
classNames:
|
|
60
|
+
classNames: v,
|
|
52
61
|
colStyle: C
|
|
53
62
|
} = a, d = st(a, ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"]), {
|
|
54
|
-
grid:
|
|
63
|
+
grid: y,
|
|
55
64
|
itemLayout: F
|
|
56
65
|
} = We(Re), {
|
|
57
66
|
getPrefixCls: x,
|
|
58
67
|
list: z
|
|
59
|
-
} = We(
|
|
60
|
-
var b,
|
|
61
|
-
return Y((
|
|
62
|
-
},
|
|
63
|
-
var b,
|
|
64
|
-
return Object.assign(Object.assign({}, (
|
|
68
|
+
} = We(ve), k = ($) => {
|
|
69
|
+
var b, j;
|
|
70
|
+
return Y((j = (b = z == null ? void 0 : z.item) === null || b === void 0 ? void 0 : b.classNames) === null || j === void 0 ? void 0 : j[$], v == null ? void 0 : v[$]);
|
|
71
|
+
}, I = ($) => {
|
|
72
|
+
var b, j;
|
|
73
|
+
return Object.assign(Object.assign({}, (j = (b = z == null ? void 0 : z.item) === null || b === void 0 ? void 0 : b.styles) === null || j === void 0 ? void 0 : j[$]), u == null ? void 0 : u[$]);
|
|
65
74
|
}, W = () => {
|
|
66
75
|
let $ = !1;
|
|
67
76
|
return He.forEach(c, (b) => {
|
|
68
77
|
typeof b == "string" && ($ = !0);
|
|
69
78
|
}), $ && He.count(c) > 1;
|
|
70
|
-
}, M = () => F === "vertical" ? !!g : !W(),
|
|
71
|
-
className: Y(`${
|
|
79
|
+
}, M = () => F === "vertical" ? !!g : !W(), A = x("list", n), h = i && i.length > 0 && /* @__PURE__ */ G.createElement("ul", {
|
|
80
|
+
className: Y(`${A}-item-action`, k("actions")),
|
|
72
81
|
key: "actions",
|
|
73
|
-
style:
|
|
82
|
+
style: I("actions")
|
|
74
83
|
}, i.map(($, b) => (
|
|
75
84
|
// eslint-disable-next-line react/no-array-index-key
|
|
76
85
|
/* @__PURE__ */ G.createElement("li", {
|
|
77
|
-
key: `${
|
|
86
|
+
key: `${A}-item-action-${b}`
|
|
78
87
|
}, $, b !== i.length - 1 && /* @__PURE__ */ G.createElement("em", {
|
|
79
|
-
className: `${
|
|
88
|
+
className: `${A}-item-action-split`
|
|
80
89
|
}))
|
|
81
|
-
))), N =
|
|
90
|
+
))), N = y ? "div" : "li", T = /* @__PURE__ */ G.createElement(N, Object.assign({}, d, y ? {} : {
|
|
82
91
|
ref: t
|
|
83
92
|
}, {
|
|
84
|
-
className: Y(`${
|
|
85
|
-
[`${
|
|
93
|
+
className: Y(`${A}-item`, {
|
|
94
|
+
[`${A}-item-no-flex`]: !M()
|
|
86
95
|
}, E)
|
|
87
96
|
}), F === "vertical" && g ? [/* @__PURE__ */ G.createElement("div", {
|
|
88
|
-
className: `${
|
|
97
|
+
className: `${A}-item-main`,
|
|
89
98
|
key: "content"
|
|
90
|
-
}, c,
|
|
91
|
-
className: Y(`${
|
|
99
|
+
}, c, h), /* @__PURE__ */ G.createElement("div", {
|
|
100
|
+
className: Y(`${A}-item-extra`, k("extra")),
|
|
92
101
|
key: "extra",
|
|
93
|
-
style:
|
|
94
|
-
}, g)] : [c,
|
|
102
|
+
style: I("extra")
|
|
103
|
+
}, g)] : [c, h, gt(g, {
|
|
95
104
|
key: "extra"
|
|
96
105
|
})]);
|
|
97
|
-
return
|
|
106
|
+
return y ? /* @__PURE__ */ G.createElement(Rt, {
|
|
98
107
|
ref: t,
|
|
99
108
|
flex: 1,
|
|
100
109
|
style: C
|
|
101
110
|
}, T) : T;
|
|
102
111
|
}), rt = Kt;
|
|
103
112
|
rt.Meta = Gt;
|
|
104
|
-
const
|
|
113
|
+
const qt = (a) => {
|
|
105
114
|
const {
|
|
106
115
|
listBorderedCls: t,
|
|
107
116
|
componentCls: n,
|
|
@@ -110,12 +119,12 @@ const Xt = (a) => {
|
|
|
110
119
|
itemPaddingSM: g,
|
|
111
120
|
itemPaddingLG: u,
|
|
112
121
|
marginLG: E,
|
|
113
|
-
borderRadiusLG:
|
|
114
|
-
} = a, C =
|
|
122
|
+
borderRadiusLG: v
|
|
123
|
+
} = a, C = w(a.calc(v).sub(a.lineWidth).equal());
|
|
115
124
|
return {
|
|
116
125
|
[t]: {
|
|
117
|
-
border: `${
|
|
118
|
-
borderRadius:
|
|
126
|
+
border: `${w(a.lineWidth)} ${a.lineType} ${a.colorBorder}`,
|
|
127
|
+
borderRadius: v,
|
|
119
128
|
[`${n}-header`]: {
|
|
120
129
|
borderRadius: `${C} ${C} 0 0`
|
|
121
130
|
},
|
|
@@ -126,7 +135,7 @@ const Xt = (a) => {
|
|
|
126
135
|
paddingInline: c
|
|
127
136
|
},
|
|
128
137
|
[`${n}-pagination`]: {
|
|
129
|
-
margin: `${
|
|
138
|
+
margin: `${w(i)} ${w(E)}`
|
|
130
139
|
}
|
|
131
140
|
},
|
|
132
141
|
[`${t}${n}-sm`]: {
|
|
@@ -140,7 +149,7 @@ const Xt = (a) => {
|
|
|
140
149
|
}
|
|
141
150
|
}
|
|
142
151
|
};
|
|
143
|
-
},
|
|
152
|
+
}, Xt = (a) => {
|
|
144
153
|
const {
|
|
145
154
|
componentCls: t,
|
|
146
155
|
screenSM: n,
|
|
@@ -182,7 +191,7 @@ const Xt = (a) => {
|
|
|
182
191
|
minWidth: a.contentWidth
|
|
183
192
|
},
|
|
184
193
|
[`${t}-item-extra`]: {
|
|
185
|
-
margin: `auto auto ${
|
|
194
|
+
margin: `auto auto ${w(u)}`
|
|
186
195
|
}
|
|
187
196
|
}
|
|
188
197
|
}
|
|
@@ -197,26 +206,26 @@ const Xt = (a) => {
|
|
|
197
206
|
paddingSM: g,
|
|
198
207
|
marginLG: u,
|
|
199
208
|
padding: E,
|
|
200
|
-
itemPadding:
|
|
209
|
+
itemPadding: v,
|
|
201
210
|
colorPrimary: C,
|
|
202
211
|
itemPaddingSM: d,
|
|
203
|
-
itemPaddingLG:
|
|
212
|
+
itemPaddingLG: y,
|
|
204
213
|
paddingXS: F,
|
|
205
214
|
margin: x,
|
|
206
215
|
colorText: z,
|
|
207
216
|
colorTextDescription: k,
|
|
208
|
-
motionDurationSlow:
|
|
217
|
+
motionDurationSlow: I,
|
|
209
218
|
lineWidth: W,
|
|
210
219
|
headerBg: M,
|
|
211
|
-
footerBg:
|
|
212
|
-
emptyTextPadding:
|
|
220
|
+
footerBg: A,
|
|
221
|
+
emptyTextPadding: h,
|
|
213
222
|
metaMarginBottom: N,
|
|
214
223
|
avatarMarginRight: T,
|
|
215
224
|
titleMarginBottom: $,
|
|
216
225
|
descriptionFontSize: b
|
|
217
226
|
} = a;
|
|
218
227
|
return {
|
|
219
|
-
[t]: Object.assign(Object.assign({},
|
|
228
|
+
[t]: Object.assign(Object.assign({}, ut(a)), {
|
|
220
229
|
position: "relative",
|
|
221
230
|
// fix https://github.com/ant-design/ant-design/issues/46177
|
|
222
231
|
"--rc-virtual-list-scrollbar-bg": a.colorSplit,
|
|
@@ -227,7 +236,7 @@ const Xt = (a) => {
|
|
|
227
236
|
background: M
|
|
228
237
|
},
|
|
229
238
|
[`${t}-footer`]: {
|
|
230
|
-
background:
|
|
239
|
+
background: A
|
|
231
240
|
},
|
|
232
241
|
[`${t}-header, ${t}-footer`]: {
|
|
233
242
|
paddingBlock: g
|
|
@@ -252,7 +261,7 @@ const Xt = (a) => {
|
|
|
252
261
|
display: "flex",
|
|
253
262
|
alignItems: "center",
|
|
254
263
|
justifyContent: "space-between",
|
|
255
|
-
padding:
|
|
264
|
+
padding: v,
|
|
256
265
|
color: z,
|
|
257
266
|
[`${t}-item-meta`]: {
|
|
258
267
|
display: "flex",
|
|
@@ -268,13 +277,13 @@ const Xt = (a) => {
|
|
|
268
277
|
color: z
|
|
269
278
|
},
|
|
270
279
|
[`${t}-item-meta-title`]: {
|
|
271
|
-
margin: `0 0 ${
|
|
280
|
+
margin: `0 0 ${w(a.marginXXS)} 0`,
|
|
272
281
|
color: z,
|
|
273
282
|
fontSize: a.fontSize,
|
|
274
283
|
lineHeight: a.lineHeight,
|
|
275
284
|
"> a": {
|
|
276
285
|
color: z,
|
|
277
|
-
transition: `all ${
|
|
286
|
+
transition: `all ${I}`,
|
|
278
287
|
"&:hover": {
|
|
279
288
|
color: C
|
|
280
289
|
}
|
|
@@ -295,7 +304,7 @@ const Xt = (a) => {
|
|
|
295
304
|
"& > li": {
|
|
296
305
|
position: "relative",
|
|
297
306
|
display: "inline-block",
|
|
298
|
-
padding: `0 ${
|
|
307
|
+
padding: `0 ${w(F)}`,
|
|
299
308
|
color: k,
|
|
300
309
|
fontSize: a.fontSize,
|
|
301
310
|
lineHeight: a.lineHeight,
|
|
@@ -316,13 +325,13 @@ const Xt = (a) => {
|
|
|
316
325
|
}
|
|
317
326
|
},
|
|
318
327
|
[`${t}-empty`]: {
|
|
319
|
-
padding: `${
|
|
328
|
+
padding: `${w(E)} 0`,
|
|
320
329
|
color: k,
|
|
321
330
|
fontSize: a.fontSizeSM,
|
|
322
331
|
textAlign: "center"
|
|
323
332
|
},
|
|
324
333
|
[`${t}-empty-text`]: {
|
|
325
|
-
padding:
|
|
334
|
+
padding: h,
|
|
326
335
|
color: a.colorTextDisabled,
|
|
327
336
|
fontSize: a.fontSize,
|
|
328
337
|
textAlign: "center"
|
|
@@ -362,7 +371,7 @@ const Xt = (a) => {
|
|
|
362
371
|
marginBlockStart: E,
|
|
363
372
|
marginInlineStart: "auto",
|
|
364
373
|
"> li": {
|
|
365
|
-
padding: `0 ${
|
|
374
|
+
padding: `0 ${w(E)}`,
|
|
366
375
|
"&:first-child": {
|
|
367
376
|
paddingInlineStart: 0
|
|
368
377
|
}
|
|
@@ -370,25 +379,25 @@ const Xt = (a) => {
|
|
|
370
379
|
}
|
|
371
380
|
},
|
|
372
381
|
[`${t}-split ${t}-item`]: {
|
|
373
|
-
borderBlockEnd: `${
|
|
382
|
+
borderBlockEnd: `${w(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,
|
|
374
383
|
"&:last-child": {
|
|
375
384
|
borderBlockEnd: "none"
|
|
376
385
|
}
|
|
377
386
|
},
|
|
378
387
|
[`${t}-split ${t}-header`]: {
|
|
379
|
-
borderBlockEnd: `${
|
|
388
|
+
borderBlockEnd: `${w(a.lineWidth)} ${a.lineType} ${a.colorSplit}`
|
|
380
389
|
},
|
|
381
390
|
[`${t}-split${t}-empty ${t}-footer`]: {
|
|
382
|
-
borderTop: `${
|
|
391
|
+
borderTop: `${w(a.lineWidth)} ${a.lineType} ${a.colorSplit}`
|
|
383
392
|
},
|
|
384
393
|
[`${t}-loading ${t}-spin-nested-loading`]: {
|
|
385
394
|
minHeight: c
|
|
386
395
|
},
|
|
387
396
|
[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]: {
|
|
388
|
-
borderBlockEnd: `${
|
|
397
|
+
borderBlockEnd: `${w(a.lineWidth)} ${a.lineType} ${a.colorSplit}`
|
|
389
398
|
},
|
|
390
399
|
[`${t}-lg ${t}-item`]: {
|
|
391
|
-
padding:
|
|
400
|
+
padding: y
|
|
392
401
|
},
|
|
393
402
|
[`${t}-sm ${t}-item`]: {
|
|
394
403
|
padding: d
|
|
@@ -404,9 +413,9 @@ const Xt = (a) => {
|
|
|
404
413
|
};
|
|
405
414
|
}, Ut = (a) => ({
|
|
406
415
|
contentWidth: 220,
|
|
407
|
-
itemPadding: `${
|
|
408
|
-
itemPaddingSM: `${
|
|
409
|
-
itemPaddingLG: `${
|
|
416
|
+
itemPadding: `${w(a.paddingContentVertical)} 0`,
|
|
417
|
+
itemPaddingSM: `${w(a.paddingContentVerticalSM)} ${w(a.paddingContentHorizontal)}`,
|
|
418
|
+
itemPaddingLG: `${w(a.paddingContentVerticalLG)} ${w(a.paddingContentHorizontalLG)}`,
|
|
410
419
|
headerBg: "transparent",
|
|
411
420
|
footerBg: "transparent",
|
|
412
421
|
emptyTextPadding: a.padding,
|
|
@@ -419,7 +428,7 @@ const Xt = (a) => {
|
|
|
419
428
|
listBorderedCls: `${a.componentCls}-bordered`,
|
|
420
429
|
minHeight: a.controlHeightLG
|
|
421
430
|
});
|
|
422
|
-
return [Jt(t),
|
|
431
|
+
return [Jt(t), qt(t), Xt(t)];
|
|
423
432
|
}, Ut);
|
|
424
433
|
var Yt = function(a, t) {
|
|
425
434
|
var n = {};
|
|
@@ -436,46 +445,46 @@ function Zt(a, t) {
|
|
|
436
445
|
split: g = !0,
|
|
437
446
|
className: u,
|
|
438
447
|
rootClassName: E,
|
|
439
|
-
style:
|
|
448
|
+
style: v,
|
|
440
449
|
children: C,
|
|
441
450
|
itemLayout: d,
|
|
442
|
-
loadMore:
|
|
451
|
+
loadMore: y,
|
|
443
452
|
grid: F,
|
|
444
453
|
dataSource: x = [],
|
|
445
454
|
size: z,
|
|
446
455
|
header: k,
|
|
447
|
-
footer:
|
|
456
|
+
footer: I,
|
|
448
457
|
loading: W = !1,
|
|
449
458
|
rowKey: M,
|
|
450
|
-
renderItem:
|
|
451
|
-
locale:
|
|
452
|
-
} = a, N = Yt(a, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]), T = n && typeof n == "object" ? n : {}, [$, b] = e.useState(T.defaultCurrent || 1), [
|
|
459
|
+
renderItem: A,
|
|
460
|
+
locale: h
|
|
461
|
+
} = a, N = Yt(a, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]), T = n && typeof n == "object" ? n : {}, [$, b] = e.useState(T.defaultCurrent || 1), [j, K] = e.useState(T.defaultPageSize || 10), {
|
|
453
462
|
getPrefixCls: S,
|
|
454
463
|
direction: H,
|
|
455
464
|
className: J,
|
|
456
465
|
style: ke
|
|
457
|
-
} =
|
|
458
|
-
renderEmpty:
|
|
459
|
-
} = e.useContext(
|
|
466
|
+
} = ft("list"), {
|
|
467
|
+
renderEmpty: ae
|
|
468
|
+
} = e.useContext(ve), Me = {
|
|
460
469
|
current: 1,
|
|
461
470
|
total: 0,
|
|
462
471
|
position: "bottom"
|
|
463
|
-
},
|
|
472
|
+
}, pe = (s) => (m, f) => {
|
|
464
473
|
var L;
|
|
465
474
|
b(m), K(f), n && ((L = n == null ? void 0 : n[s]) === null || L === void 0 || L.call(n, m, f));
|
|
466
|
-
}, Ce =
|
|
467
|
-
if (!
|
|
475
|
+
}, Ce = pe("onChange"), Se = pe("onShowSizeChange"), Fe = (s, m) => {
|
|
476
|
+
if (!A)
|
|
468
477
|
return null;
|
|
469
478
|
let f;
|
|
470
479
|
return typeof M == "function" ? f = M(s) : M ? f = s[M] : f = s.key, f || (f = `list-item-${m}`), /* @__PURE__ */ e.createElement(e.Fragment, {
|
|
471
480
|
key: f
|
|
472
|
-
},
|
|
473
|
-
}, Ne = !!(
|
|
481
|
+
}, A(s, m));
|
|
482
|
+
}, Ne = !!(y || n || I), O = S("list", c), [Te, be, Le] = Qt(O);
|
|
474
483
|
let U = W;
|
|
475
484
|
typeof U == "boolean" && (U = {
|
|
476
485
|
spinning: U
|
|
477
486
|
});
|
|
478
|
-
const
|
|
487
|
+
const ne = !!(U != null && U.spinning), Be = Et(z);
|
|
479
488
|
let ee = "";
|
|
480
489
|
switch (Be) {
|
|
481
490
|
case "large":
|
|
@@ -485,38 +494,38 @@ function Zt(a, t) {
|
|
|
485
494
|
ee = "sm";
|
|
486
495
|
break;
|
|
487
496
|
}
|
|
488
|
-
const xe = Y(
|
|
489
|
-
[`${
|
|
490
|
-
[`${
|
|
491
|
-
[`${
|
|
492
|
-
[`${
|
|
493
|
-
[`${
|
|
494
|
-
[`${
|
|
495
|
-
[`${
|
|
496
|
-
[`${
|
|
497
|
-
}, J, u, E, be, Le),
|
|
497
|
+
const xe = Y(O, {
|
|
498
|
+
[`${O}-vertical`]: d === "vertical",
|
|
499
|
+
[`${O}-${ee}`]: ee,
|
|
500
|
+
[`${O}-split`]: g,
|
|
501
|
+
[`${O}-bordered`]: i,
|
|
502
|
+
[`${O}-loading`]: ne,
|
|
503
|
+
[`${O}-grid`]: !!F,
|
|
504
|
+
[`${O}-something-after-last-item`]: Ne,
|
|
505
|
+
[`${O}-rtl`]: H === "rtl"
|
|
506
|
+
}, J, u, E, be, Le), q = yt(Me, {
|
|
498
507
|
total: x.length,
|
|
499
508
|
current: $,
|
|
500
|
-
pageSize:
|
|
501
|
-
}, n || {}), ze = Math.ceil(
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
className: Y(`${
|
|
505
|
-
}, /* @__PURE__ */ e.createElement(
|
|
509
|
+
pageSize: j
|
|
510
|
+
}, n || {}), ze = Math.ceil(q.total / q.pageSize);
|
|
511
|
+
q.current = Math.min(q.current, ze);
|
|
512
|
+
const he = n && /* @__PURE__ */ e.createElement("div", {
|
|
513
|
+
className: Y(`${O}-pagination`)
|
|
514
|
+
}, /* @__PURE__ */ e.createElement(jt, Object.assign({
|
|
506
515
|
align: "end"
|
|
507
|
-
},
|
|
516
|
+
}, q, {
|
|
508
517
|
onChange: Ce,
|
|
509
518
|
onShowSizeChange: Se
|
|
510
519
|
})));
|
|
511
|
-
let
|
|
512
|
-
n && x.length > (
|
|
513
|
-
const
|
|
514
|
-
for (let s = 0; s <
|
|
515
|
-
const m =
|
|
520
|
+
let se = _e(x);
|
|
521
|
+
n && x.length > (q.current - 1) * q.pageSize && (se = _e(x).splice((q.current - 1) * q.pageSize, q.pageSize));
|
|
522
|
+
const De = Object.keys(F || {}).some((s) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(s)), ge = Wt(De), te = e.useMemo(() => {
|
|
523
|
+
for (let s = 0; s < Xe.length; s += 1) {
|
|
524
|
+
const m = Xe[s];
|
|
516
525
|
if (ge[m])
|
|
517
526
|
return m;
|
|
518
527
|
}
|
|
519
|
-
}, [ge]),
|
|
528
|
+
}, [ge]), we = e.useMemo(() => {
|
|
520
529
|
if (!F)
|
|
521
530
|
return;
|
|
522
531
|
const s = te && F[te] ? F[te] : F.column;
|
|
@@ -526,27 +535,27 @@ function Zt(a, t) {
|
|
|
526
535
|
maxWidth: `${100 / s}%`
|
|
527
536
|
};
|
|
528
537
|
}, [JSON.stringify(F), te]);
|
|
529
|
-
let
|
|
538
|
+
let re = ne && /* @__PURE__ */ e.createElement("div", {
|
|
530
539
|
style: {
|
|
531
540
|
minHeight: 53
|
|
532
541
|
}
|
|
533
542
|
});
|
|
534
|
-
if (
|
|
535
|
-
const s =
|
|
536
|
-
|
|
543
|
+
if (se.length > 0) {
|
|
544
|
+
const s = se.map(Fe);
|
|
545
|
+
re = F ? /* @__PURE__ */ e.createElement(Ht, {
|
|
537
546
|
gutter: F.gutter
|
|
538
547
|
}, e.Children.map(s, (m) => /* @__PURE__ */ e.createElement("div", {
|
|
539
548
|
key: m == null ? void 0 : m.key,
|
|
540
|
-
style:
|
|
549
|
+
style: we
|
|
541
550
|
}, m))) : /* @__PURE__ */ e.createElement("ul", {
|
|
542
|
-
className: `${
|
|
551
|
+
className: `${O}-items`
|
|
543
552
|
}, s);
|
|
544
|
-
} else !C && !
|
|
545
|
-
className: `${
|
|
546
|
-
}, (
|
|
553
|
+
} else !C && !ne && (re = /* @__PURE__ */ e.createElement("div", {
|
|
554
|
+
className: `${O}-empty-text`
|
|
555
|
+
}, (h == null ? void 0 : h.emptyText) || (ae == null ? void 0 : ae("List")) || /* @__PURE__ */ e.createElement(Pt, {
|
|
547
556
|
componentName: "List"
|
|
548
557
|
})));
|
|
549
|
-
const o =
|
|
558
|
+
const o = q.position, r = e.useMemo(() => ({
|
|
550
559
|
grid: F,
|
|
551
560
|
itemLayout: d
|
|
552
561
|
}), [JSON.stringify(F), d]);
|
|
@@ -554,20 +563,20 @@ function Zt(a, t) {
|
|
|
554
563
|
value: r
|
|
555
564
|
}, /* @__PURE__ */ e.createElement("div", Object.assign({
|
|
556
565
|
ref: t,
|
|
557
|
-
style: Object.assign(Object.assign({}, ke),
|
|
566
|
+
style: Object.assign(Object.assign({}, ke), v),
|
|
558
567
|
className: xe
|
|
559
|
-
}, N), (o === "top" || o === "both") &&
|
|
560
|
-
className: `${
|
|
561
|
-
}, k), /* @__PURE__ */ e.createElement(Ze, Object.assign({}, U),
|
|
562
|
-
className: `${
|
|
563
|
-
},
|
|
568
|
+
}, N), (o === "top" || o === "both") && he, k && /* @__PURE__ */ e.createElement("div", {
|
|
569
|
+
className: `${O}-header`
|
|
570
|
+
}, k), /* @__PURE__ */ e.createElement(Ze, Object.assign({}, U), re, C), I && /* @__PURE__ */ e.createElement("div", {
|
|
571
|
+
className: `${O}-footer`
|
|
572
|
+
}, I), y || (o === "bottom" || o === "both") && he)));
|
|
564
573
|
}
|
|
565
574
|
const it = /* @__PURE__ */ e.forwardRef(Zt);
|
|
566
575
|
process.env.NODE_ENV !== "production" && (it.displayName = "List");
|
|
567
576
|
const Pe = it;
|
|
568
577
|
Pe.Item = rt;
|
|
569
578
|
var e1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "warning", theme: "filled" }, t1 = function(t, n) {
|
|
570
|
-
return /* @__PURE__ */ e.createElement(
|
|
579
|
+
return /* @__PURE__ */ e.createElement(le, de({}, t, {
|
|
571
580
|
ref: n,
|
|
572
581
|
icon: e1
|
|
573
582
|
}));
|
|
@@ -1041,13 +1050,13 @@ const a1 = () => /* @__PURE__ */ e.createElement("svg", {
|
|
|
1041
1050
|
paddingXL: g,
|
|
1042
1051
|
paddingXS: u,
|
|
1043
1052
|
paddingLG: E,
|
|
1044
|
-
marginXS:
|
|
1053
|
+
marginXS: v,
|
|
1045
1054
|
lineHeight: C
|
|
1046
1055
|
} = a;
|
|
1047
1056
|
return {
|
|
1048
1057
|
// Result
|
|
1049
1058
|
[t]: {
|
|
1050
|
-
padding: `${
|
|
1059
|
+
padding: `${w(a.calc(E).mul(2).equal())} ${w(g)}`,
|
|
1051
1060
|
// RTL
|
|
1052
1061
|
"&-rtl": {
|
|
1053
1062
|
direction: "rtl"
|
|
@@ -1070,7 +1079,7 @@ const a1 = () => /* @__PURE__ */ e.createElement("svg", {
|
|
|
1070
1079
|
color: a.colorTextHeading,
|
|
1071
1080
|
fontSize: a.titleFontSize,
|
|
1072
1081
|
lineHeight: n,
|
|
1073
|
-
marginBlock:
|
|
1082
|
+
marginBlock: v,
|
|
1074
1083
|
textAlign: "center"
|
|
1075
1084
|
},
|
|
1076
1085
|
[`${t} ${t}-subtitle`]: {
|
|
@@ -1081,7 +1090,7 @@ const a1 = () => /* @__PURE__ */ e.createElement("svg", {
|
|
|
1081
1090
|
},
|
|
1082
1091
|
[`${t} ${t}-content`]: {
|
|
1083
1092
|
marginTop: E,
|
|
1084
|
-
padding: `${
|
|
1093
|
+
padding: `${w(E)} ${w(a.calc(i).mul(2.5).equal())}`,
|
|
1085
1094
|
backgroundColor: a.colorFillAlter
|
|
1086
1095
|
},
|
|
1087
1096
|
[`${t} ${t}-extra`]: {
|
|
@@ -1340,25 +1349,25 @@ const a1 = () => /* @__PURE__ */ e.createElement("svg", {
|
|
|
1340
1349
|
strokeLinejoin: "round",
|
|
1341
1350
|
strokeWidth: "1.1"
|
|
1342
1351
|
}))), m1 = {
|
|
1343
|
-
success:
|
|
1344
|
-
error:
|
|
1345
|
-
info:
|
|
1352
|
+
success: ht,
|
|
1353
|
+
error: $t,
|
|
1354
|
+
info: pt,
|
|
1346
1355
|
warning: ot
|
|
1347
1356
|
}, me = {
|
|
1348
1357
|
404: a1,
|
|
1349
1358
|
500: n1,
|
|
1350
1359
|
403: d1
|
|
1351
|
-
},
|
|
1360
|
+
}, p1 = Object.keys(me), h1 = ({
|
|
1352
1361
|
prefixCls: a,
|
|
1353
1362
|
icon: t,
|
|
1354
1363
|
status: n
|
|
1355
1364
|
}) => {
|
|
1356
1365
|
const c = Y(`${a}-icon`);
|
|
1357
1366
|
if (process.env.NODE_ENV !== "production") {
|
|
1358
|
-
const g =
|
|
1367
|
+
const g = vt("Result");
|
|
1359
1368
|
process.env.NODE_ENV !== "production" && g(!(typeof t == "string" && t.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${t}\` at https://ant.design/components/icon`);
|
|
1360
1369
|
}
|
|
1361
|
-
if (
|
|
1370
|
+
if (p1.includes(`${n}`)) {
|
|
1362
1371
|
const g = me[n];
|
|
1363
1372
|
return /* @__PURE__ */ e.createElement("div", {
|
|
1364
1373
|
className: `${c} ${a}-image`
|
|
@@ -1382,23 +1391,23 @@ const a1 = () => /* @__PURE__ */ e.createElement("svg", {
|
|
|
1382
1391
|
style: g,
|
|
1383
1392
|
children: u,
|
|
1384
1393
|
status: E = "info",
|
|
1385
|
-
icon:
|
|
1394
|
+
icon: v,
|
|
1386
1395
|
extra: C
|
|
1387
1396
|
}) => {
|
|
1388
1397
|
const {
|
|
1389
1398
|
getPrefixCls: d,
|
|
1390
|
-
direction:
|
|
1399
|
+
direction: y,
|
|
1391
1400
|
result: F
|
|
1392
|
-
} = e.useContext(
|
|
1393
|
-
[`${x}-rtl`]:
|
|
1394
|
-
}, k,
|
|
1401
|
+
} = e.useContext(ve), x = d("result", a), [z, k, I] = l1(x), W = Y(x, `${x}-${E}`, t, F == null ? void 0 : F.className, n, {
|
|
1402
|
+
[`${x}-rtl`]: y === "rtl"
|
|
1403
|
+
}, k, I), M = Object.assign(Object.assign({}, F == null ? void 0 : F.style), g);
|
|
1395
1404
|
return z(/* @__PURE__ */ e.createElement("div", {
|
|
1396
1405
|
className: W,
|
|
1397
1406
|
style: M
|
|
1398
|
-
}, /* @__PURE__ */ e.createElement(
|
|
1407
|
+
}, /* @__PURE__ */ e.createElement(h1, {
|
|
1399
1408
|
prefixCls: x,
|
|
1400
1409
|
status: E,
|
|
1401
|
-
icon:
|
|
1410
|
+
icon: v
|
|
1402
1411
|
}), /* @__PURE__ */ e.createElement("div", {
|
|
1403
1412
|
className: `${x}-title`
|
|
1404
1413
|
}, i), c && /* @__PURE__ */ e.createElement("div", {
|
|
@@ -1414,60 +1423,53 @@ $e.PRESENTED_IMAGE_403 = me[403];
|
|
|
1414
1423
|
$e.PRESENTED_IMAGE_404 = me[404];
|
|
1415
1424
|
$e.PRESENTED_IMAGE_500 = me[500];
|
|
1416
1425
|
process.env.NODE_ENV !== "production" && ($e.displayName = "Result");
|
|
1417
|
-
var u1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "
|
|
1418
|
-
return /* @__PURE__ */ e.createElement(
|
|
1426
|
+
var u1 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" }, f1 = function(t, n) {
|
|
1427
|
+
return /* @__PURE__ */ e.createElement(le, de({}, t, {
|
|
1419
1428
|
ref: n,
|
|
1420
1429
|
icon: u1
|
|
1421
1430
|
}));
|
|
1422
1431
|
}, ct = /* @__PURE__ */ e.forwardRef(f1);
|
|
1423
|
-
process.env.NODE_ENV !== "production" && (ct.displayName = "
|
|
1424
|
-
var E1 = { icon: { tag: "svg", attrs: {
|
|
1425
|
-
return /* @__PURE__ */ e.createElement(
|
|
1432
|
+
process.env.NODE_ENV !== "production" && (ct.displayName = "CloseCircleOutlined");
|
|
1433
|
+
var E1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z" } }] }, name: "idcard", theme: "outlined" }, y1 = function(t, n) {
|
|
1434
|
+
return /* @__PURE__ */ e.createElement(le, de({}, t, {
|
|
1426
1435
|
ref: n,
|
|
1427
1436
|
icon: E1
|
|
1428
1437
|
}));
|
|
1429
|
-
}, lt = /* @__PURE__ */ e.forwardRef(
|
|
1430
|
-
process.env.NODE_ENV !== "production" && (lt.displayName = "
|
|
1431
|
-
var
|
|
1432
|
-
return /* @__PURE__ */ e.createElement(
|
|
1438
|
+
}, lt = /* @__PURE__ */ e.forwardRef(y1);
|
|
1439
|
+
process.env.NODE_ENV !== "production" && (lt.displayName = "IdcardOutlined");
|
|
1440
|
+
var v1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z" } }] }, name: "play-circle", theme: "outlined" }, $1 = function(t, n) {
|
|
1441
|
+
return /* @__PURE__ */ e.createElement(le, de({}, t, {
|
|
1433
1442
|
ref: n,
|
|
1434
|
-
icon:
|
|
1443
|
+
icon: v1
|
|
1435
1444
|
}));
|
|
1436
1445
|
}, dt = /* @__PURE__ */ e.forwardRef($1);
|
|
1437
|
-
process.env.NODE_ENV !== "production" && (dt.displayName = "
|
|
1438
|
-
var k1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "
|
|
1439
|
-
return /* @__PURE__ */ e.createElement(
|
|
1446
|
+
process.env.NODE_ENV !== "production" && (dt.displayName = "PlayCircleOutlined");
|
|
1447
|
+
var k1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z" } }] }, name: "warning", theme: "outlined" }, M1 = function(t, n) {
|
|
1448
|
+
return /* @__PURE__ */ e.createElement(le, de({}, t, {
|
|
1440
1449
|
ref: n,
|
|
1441
1450
|
icon: k1
|
|
1442
1451
|
}));
|
|
1443
1452
|
}, mt = /* @__PURE__ */ e.forwardRef(M1);
|
|
1444
|
-
process.env.NODE_ENV !== "production" && (mt.displayName = "
|
|
1445
|
-
|
|
1446
|
-
return /* @__PURE__ */ e.createElement(ae, ne({}, t, {
|
|
1447
|
-
ref: n,
|
|
1448
|
-
icon: C1
|
|
1449
|
-
}));
|
|
1450
|
-
}, ht = /* @__PURE__ */ e.forwardRef(S1);
|
|
1451
|
-
process.env.NODE_ENV !== "production" && (ht.displayName = "WarningOutlined");
|
|
1452
|
-
function F1(a, t) {
|
|
1453
|
+
process.env.NODE_ENV !== "production" && (mt.displayName = "WarningOutlined");
|
|
1454
|
+
function C1(a, t) {
|
|
1453
1455
|
const n = R(() => {
|
|
1454
1456
|
const u = {};
|
|
1455
1457
|
for (const E of (a == null ? void 0 : a.nodes) ?? [])
|
|
1456
1458
|
u[E.tagName] = E.code;
|
|
1457
1459
|
return u;
|
|
1458
|
-
}, [a]), [c, i] =
|
|
1459
|
-
return
|
|
1460
|
+
}, [a]), [c, i] = V({}), g = t.filter((u) => n[u] && !(u in c)).join("|");
|
|
1461
|
+
return ce(() => {
|
|
1460
1462
|
if (!g)
|
|
1461
1463
|
return;
|
|
1462
1464
|
let u = !0;
|
|
1463
1465
|
const E = g.split("|");
|
|
1464
1466
|
return Promise.all(
|
|
1465
|
-
E.map(async (
|
|
1466
|
-
const C = await
|
|
1467
|
-
return [
|
|
1467
|
+
E.map(async (v) => {
|
|
1468
|
+
const C = await Mt(n[v]), d = ((C == null ? void 0 : C.properties) ?? []).filter((y) => y.status === "ACTIVE").map((y) => y.propertyName).sort();
|
|
1469
|
+
return [v, d];
|
|
1468
1470
|
})
|
|
1469
|
-
).then((
|
|
1470
|
-
u && i((C) => ({ ...C, ...Object.fromEntries(
|
|
1471
|
+
).then((v) => {
|
|
1472
|
+
u && i((C) => ({ ...C, ...Object.fromEntries(v) }));
|
|
1471
1473
|
}), () => {
|
|
1472
1474
|
u = !1;
|
|
1473
1475
|
};
|
|
@@ -1485,28 +1487,28 @@ function fe(a, t, n) {
|
|
|
1485
1487
|
droppedEdges: u.droppedEdges
|
|
1486
1488
|
};
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1490
|
+
function S1(a, t, n) {
|
|
1489
1491
|
return a.map((c) => ({
|
|
1490
1492
|
...c,
|
|
1491
1493
|
srcTag: c.srcTag === t ? n : c.srcTag,
|
|
1492
1494
|
dstTag: c.dstTag === t ? n : c.dstTag
|
|
1493
1495
|
}));
|
|
1494
1496
|
}
|
|
1495
|
-
function
|
|
1496
|
-
const { message: c } =
|
|
1497
|
-
|
|
1497
|
+
function F1(a, t, n) {
|
|
1498
|
+
const { message: c } = Ct.useApp(), [i, g] = V(), [u, E] = V([]), [v, C] = V(!0), [d, y] = V(t), [F, x] = V([]), [z, k] = V(), [I, W] = V(), [M, A] = V(!1), [h, N] = V(!1), [T, $] = V("objects"), [b, j] = V(!1);
|
|
1499
|
+
ce(() => {
|
|
1498
1500
|
let o = !0;
|
|
1499
|
-
return
|
|
1501
|
+
return St().then((r) => {
|
|
1500
1502
|
o && (g(r), C(!1));
|
|
1501
|
-
}),
|
|
1503
|
+
}), Ft().then((r) => {
|
|
1502
1504
|
o && r && E(r);
|
|
1503
1505
|
}), () => {
|
|
1504
1506
|
o = !1;
|
|
1505
1507
|
};
|
|
1506
|
-
}, []),
|
|
1507
|
-
i &&
|
|
1508
|
+
}, []), ce(() => {
|
|
1509
|
+
i && y((o) => et(o, i));
|
|
1508
1510
|
}, [i]);
|
|
1509
|
-
const K = R(() => tt(d), [d]), S = n ??
|
|
1511
|
+
const K = R(() => tt(d), [d]), S = n ?? Nt() ?? void 0, H = C1(i, d.sourceTypes), J = R(() => {
|
|
1510
1512
|
const o = {};
|
|
1511
1513
|
for (const r of K.rows)
|
|
1512
1514
|
for (const s of r.to) {
|
|
@@ -1515,14 +1517,14 @@ function T1(a, t, n) {
|
|
|
1515
1517
|
}
|
|
1516
1518
|
return o;
|
|
1517
1519
|
}, [K]);
|
|
1518
|
-
|
|
1520
|
+
ce(() => {
|
|
1519
1521
|
const o = Object.values(J).every(
|
|
1520
1522
|
(s) => s.every((m) => Array.isArray(H[m]))
|
|
1521
1523
|
);
|
|
1522
1524
|
if (Object.keys(J).length > 0 && !o)
|
|
1523
1525
|
return;
|
|
1524
|
-
const r =
|
|
1525
|
-
|
|
1526
|
+
const r = Tt(J, H);
|
|
1527
|
+
y((s) => {
|
|
1526
1528
|
const m = s.propertyMap ?? {}, f = {};
|
|
1527
1529
|
let L = !1;
|
|
1528
1530
|
for (const [B, P] of Object.entries(r))
|
|
@@ -1532,24 +1534,24 @@ function T1(a, t, n) {
|
|
|
1532
1534
|
return L ? { ...s, propertyMap: f } : s;
|
|
1533
1535
|
});
|
|
1534
1536
|
}, [J, H]);
|
|
1535
|
-
const ke =
|
|
1537
|
+
const ke = D(
|
|
1536
1538
|
(o, r) => {
|
|
1537
|
-
|
|
1539
|
+
y((s) => Q({ ...s, [o]: r })), k(void 0);
|
|
1538
1540
|
},
|
|
1539
1541
|
[]
|
|
1540
|
-
),
|
|
1542
|
+
), ae = D(
|
|
1541
1543
|
(o) => {
|
|
1542
|
-
|
|
1543
|
-
const s = r.discardedTypes ?? [], m = r.sourceTypes.includes(o), f = m ? r.sourceTypes.filter((
|
|
1544
|
+
y((r) => {
|
|
1545
|
+
const s = r.discardedTypes ?? [], m = r.sourceTypes.includes(o), f = m ? r.sourceTypes.filter((_) => _ !== o) : [...r.sourceTypes, o], L = s.filter((_) => _ !== o), B = { ...r.typeTargets };
|
|
1544
1546
|
m && delete B[o];
|
|
1545
1547
|
const P = { ...r, sourceTypes: f, discardedTypes: L, typeTargets: B };
|
|
1546
1548
|
return Q({ ...P, ...fe(P, f, i) });
|
|
1547
1549
|
}), k(void 0);
|
|
1548
1550
|
},
|
|
1549
1551
|
[i]
|
|
1550
|
-
), Me =
|
|
1552
|
+
), Me = D(
|
|
1551
1553
|
(o) => {
|
|
1552
|
-
|
|
1554
|
+
y((r) => {
|
|
1553
1555
|
const s = r.sourceTypes.filter((B) => B !== o), m = Array.from(/* @__PURE__ */ new Set([...r.discardedTypes ?? [], o])), f = { ...r.typeTargets };
|
|
1554
1556
|
delete f[o];
|
|
1555
1557
|
const L = { ...r, sourceTypes: s, discardedTypes: m, typeTargets: f };
|
|
@@ -1557,29 +1559,29 @@ function T1(a, t, n) {
|
|
|
1557
1559
|
}), k(void 0);
|
|
1558
1560
|
},
|
|
1559
1561
|
[i]
|
|
1560
|
-
),
|
|
1562
|
+
), pe = D(
|
|
1561
1563
|
(o) => {
|
|
1562
|
-
|
|
1564
|
+
y((r) => {
|
|
1563
1565
|
const s = Array.from(/* @__PURE__ */ new Set([...r.sourceTypes, o])), m = (r.discardedTypes ?? []).filter((L) => L !== o), f = { ...r, sourceTypes: s, discardedTypes: m };
|
|
1564
1566
|
return Q({ ...f, ...fe(f, s, i) });
|
|
1565
1567
|
}), k(void 0);
|
|
1566
1568
|
},
|
|
1567
1569
|
[i]
|
|
1568
|
-
), Ce =
|
|
1570
|
+
), Ce = D(
|
|
1569
1571
|
(o) => {
|
|
1570
1572
|
if (!d.sourceEdges.includes(o) && i && !at(d, i).includes(o)) {
|
|
1571
1573
|
c.info(`关系 ${o} 的端点未在所选对象内闭合,不能恢复`);
|
|
1572
1574
|
return;
|
|
1573
1575
|
}
|
|
1574
|
-
|
|
1576
|
+
y((s) => {
|
|
1575
1577
|
const m = s.sourceEdges.includes(o), f = s.droppedEdges ?? [], L = m ? s.sourceEdges.filter((P) => P !== o) : [...s.sourceEdges, o], B = m ? Array.from(/* @__PURE__ */ new Set([...f, o])) : f.filter((P) => P !== o);
|
|
1576
1578
|
return { ...s, sourceEdges: L, droppedEdges: B };
|
|
1577
1579
|
}), k(void 0);
|
|
1578
1580
|
},
|
|
1579
1581
|
[d, i, c]
|
|
1580
|
-
), Se =
|
|
1582
|
+
), Se = D(
|
|
1581
1583
|
(o, r) => {
|
|
1582
|
-
|
|
1584
|
+
y((s) => {
|
|
1583
1585
|
const m = s.sourceEdges.includes(o), f = s.droppedEdges ?? [];
|
|
1584
1586
|
if (m)
|
|
1585
1587
|
return Q({
|
|
@@ -1591,35 +1593,35 @@ function T1(a, t, n) {
|
|
|
1591
1593
|
(Z) => !!Z
|
|
1592
1594
|
), B = Array.from(/* @__PURE__ */ new Set([...s.sourceTypes, ...L])), P = (s.discardedTypes ?? []).filter(
|
|
1593
1595
|
(Z) => !L.includes(Z)
|
|
1594
|
-
),
|
|
1596
|
+
), _ = { ...s, sourceTypes: B, discardedTypes: P }, ie = fe(_, B, i);
|
|
1595
1597
|
return Q({
|
|
1596
|
-
...
|
|
1597
|
-
...
|
|
1598
|
-
sourceEdges: Array.from(/* @__PURE__ */ new Set([...
|
|
1599
|
-
droppedEdges: (
|
|
1598
|
+
..._,
|
|
1599
|
+
...ie,
|
|
1600
|
+
sourceEdges: Array.from(/* @__PURE__ */ new Set([...ie.sourceEdges, o])),
|
|
1601
|
+
droppedEdges: (ie.droppedEdges ?? []).filter((Z) => Z !== o)
|
|
1600
1602
|
});
|
|
1601
1603
|
}), k(void 0);
|
|
1602
1604
|
},
|
|
1603
1605
|
[i]
|
|
1604
|
-
), Fe =
|
|
1605
|
-
|
|
1606
|
+
), Fe = D((o, r, s) => {
|
|
1607
|
+
y((m) => {
|
|
1606
1608
|
const f = {
|
|
1607
1609
|
...m.typeTargets,
|
|
1608
|
-
[o]: Array.from(new Set(
|
|
1610
|
+
[o]: Array.from(new Set(Ae(m, o).map((_) => _ === r ? s : _)))
|
|
1609
1611
|
}, L = { ...m.propertyMap };
|
|
1610
1612
|
L[r] && (L[s] = L[r], delete L[r]);
|
|
1611
1613
|
const B = { ...m.mergeKeys };
|
|
1612
1614
|
B[r] && (B[s] = B[r], delete B[r]);
|
|
1613
1615
|
const P = m.edgePairs ? Object.fromEntries(
|
|
1614
|
-
Object.entries(m.edgePairs).map(([
|
|
1615
|
-
|
|
1616
|
-
|
|
1616
|
+
Object.entries(m.edgePairs).map(([_, ie]) => [
|
|
1617
|
+
_,
|
|
1618
|
+
S1(ie, r, s)
|
|
1617
1619
|
])
|
|
1618
1620
|
) : void 0;
|
|
1619
1621
|
return Q({ ...m, typeTargets: f, propertyMap: L, mergeKeys: B, edgePairs: P });
|
|
1620
1622
|
}), k(void 0);
|
|
1621
|
-
}, []), Ne =
|
|
1622
|
-
|
|
1623
|
+
}, []), Ne = D((o) => {
|
|
1624
|
+
y((r) => {
|
|
1623
1625
|
const s = /* @__PURE__ */ new Set([
|
|
1624
1626
|
...r.sourceTypes,
|
|
1625
1627
|
...r.discardedTypes ?? [],
|
|
@@ -1629,12 +1631,12 @@ function T1(a, t, n) {
|
|
|
1629
1631
|
]), m = Ke(s, `${o}Variant`);
|
|
1630
1632
|
return Q({
|
|
1631
1633
|
...r,
|
|
1632
|
-
typeTargets: { ...r.typeTargets, [o]: [...
|
|
1634
|
+
typeTargets: { ...r.typeTargets, [o]: [...Ae(r, o), m] }
|
|
1633
1635
|
});
|
|
1634
1636
|
}), k(void 0);
|
|
1635
|
-
}, []),
|
|
1636
|
-
|
|
1637
|
-
const m =
|
|
1637
|
+
}, []), O = D((o, r) => {
|
|
1638
|
+
y((s) => {
|
|
1639
|
+
const m = Ae(s, o);
|
|
1638
1640
|
if (m.length <= 1)
|
|
1639
1641
|
return s;
|
|
1640
1642
|
const f = { ...s.propertyMap };
|
|
@@ -1647,13 +1649,13 @@ function T1(a, t, n) {
|
|
|
1647
1649
|
mergeKeys: L
|
|
1648
1650
|
});
|
|
1649
1651
|
}), k(void 0);
|
|
1650
|
-
}, []), Te =
|
|
1651
|
-
|
|
1652
|
+
}, []), Te = D((o, r) => {
|
|
1653
|
+
y((s) => {
|
|
1652
1654
|
const m = { ...s.edgeTargets };
|
|
1653
1655
|
for (const B of s.sourceEdges) {
|
|
1654
|
-
const P =
|
|
1656
|
+
const P = Ie(s, B);
|
|
1655
1657
|
P.includes(o) && (m[B] = Array.from(
|
|
1656
|
-
new Set(P.map((
|
|
1658
|
+
new Set(P.map((_) => _ === o ? r : _))
|
|
1657
1659
|
));
|
|
1658
1660
|
}
|
|
1659
1661
|
const f = { ...s.edgePairs };
|
|
@@ -1663,36 +1665,36 @@ function T1(a, t, n) {
|
|
|
1663
1665
|
);
|
|
1664
1666
|
return { ...s, edgeTargets: m, edgePairs: f, customEdges: L };
|
|
1665
1667
|
}), k(void 0);
|
|
1666
|
-
}, []), be =
|
|
1667
|
-
|
|
1668
|
+
}, []), be = D((o, r) => {
|
|
1669
|
+
y((s) => ({
|
|
1668
1670
|
...s,
|
|
1669
1671
|
mergeKeys: { ...s.mergeKeys, [o]: r }
|
|
1670
1672
|
})), k(void 0);
|
|
1671
|
-
}, []), Le =
|
|
1672
|
-
|
|
1673
|
+
}, []), Le = D((o, r) => {
|
|
1674
|
+
y((s) => ({
|
|
1673
1675
|
...s,
|
|
1674
1676
|
edgeTargets: { ...s.edgeTargets, [o]: r }
|
|
1675
1677
|
})), k(void 0);
|
|
1676
|
-
}, []), U =
|
|
1677
|
-
|
|
1678
|
+
}, []), U = D((o, r) => {
|
|
1679
|
+
y((s) => ({
|
|
1678
1680
|
...s,
|
|
1679
1681
|
edgePairs: { ...s.edgePairs, [o]: r }
|
|
1680
1682
|
})), k(void 0);
|
|
1681
|
-
}, []),
|
|
1682
|
-
|
|
1683
|
-
}, []), Be =
|
|
1684
|
-
|
|
1683
|
+
}, []), ne = D((o) => {
|
|
1684
|
+
y((r) => ({ ...r, customEdges: o })), k(void 0);
|
|
1685
|
+
}, []), Be = D((o, r) => {
|
|
1686
|
+
y((s) => ({
|
|
1685
1687
|
...s,
|
|
1686
1688
|
propertyMap: { ...s.propertyMap, [o]: r }
|
|
1687
1689
|
})), k(void 0);
|
|
1688
|
-
}, []), ee =
|
|
1689
|
-
const { rows: o, filled: r } =
|
|
1690
|
+
}, []), ee = D(() => {
|
|
1691
|
+
const { rows: o, filled: r } = bt(
|
|
1690
1692
|
d.propertyMap,
|
|
1691
1693
|
J,
|
|
1692
1694
|
H
|
|
1693
1695
|
);
|
|
1694
1696
|
if (r.length > 0) {
|
|
1695
|
-
|
|
1697
|
+
y((m) => ({ ...m, propertyMap: o })), k(void 0), c.success(`已按同构自动映射 ${r.length} 个目标类型:${r.join("、")}`);
|
|
1696
1698
|
return;
|
|
1697
1699
|
}
|
|
1698
1700
|
const s = Object.keys(J).some(
|
|
@@ -1701,8 +1703,8 @@ function T1(a, t, n) {
|
|
|
1701
1703
|
c.info(
|
|
1702
1704
|
s ? "源属性尚未读取完成或该类型没有属性,暂无可自动映射的内容" : "所有目标类型都已声明属性映射,自动映射不会覆盖已有配置"
|
|
1703
1705
|
);
|
|
1704
|
-
}, [d.propertyMap, J, H, c]), xe =
|
|
1705
|
-
|
|
1706
|
+
}, [d.propertyMap, J, H, c]), xe = D((o) => {
|
|
1707
|
+
y((r) => {
|
|
1706
1708
|
const s = /* @__PURE__ */ new Set([
|
|
1707
1709
|
...r.sourceTypes,
|
|
1708
1710
|
...r.discardedTypes ?? [],
|
|
@@ -1714,12 +1716,12 @@ function T1(a, t, n) {
|
|
|
1714
1716
|
]), m = Ke(s, `${o}Variant`);
|
|
1715
1717
|
return {
|
|
1716
1718
|
...r,
|
|
1717
|
-
edgeTargets: { ...r.edgeTargets, [o]: [...
|
|
1719
|
+
edgeTargets: { ...r.edgeTargets, [o]: [...Ie(r, o), m] }
|
|
1718
1720
|
};
|
|
1719
1721
|
}), k(void 0);
|
|
1720
|
-
}, []),
|
|
1721
|
-
|
|
1722
|
-
const m =
|
|
1722
|
+
}, []), q = D((o, r) => {
|
|
1723
|
+
y((s) => {
|
|
1724
|
+
const m = Ie(s, o);
|
|
1723
1725
|
if (m.length <= 1)
|
|
1724
1726
|
return s;
|
|
1725
1727
|
const f = { ...s.edgePairs };
|
|
@@ -1729,22 +1731,22 @@ function T1(a, t, n) {
|
|
|
1729
1731
|
edgePairs: f
|
|
1730
1732
|
};
|
|
1731
1733
|
}), k(void 0);
|
|
1732
|
-
}, []), ze =
|
|
1733
|
-
|
|
1734
|
-
}, []),
|
|
1735
|
-
$(o), o === "edges" &&
|
|
1736
|
-
}, []),
|
|
1734
|
+
}, []), ze = D((o) => {
|
|
1735
|
+
y(o), k(void 0);
|
|
1736
|
+
}, []), he = D((o) => {
|
|
1737
|
+
$(o), o === "edges" && j(!0);
|
|
1738
|
+
}, []), se = D(async () => {
|
|
1737
1739
|
const o = ue(d, i);
|
|
1738
1740
|
if (x(o), o.length > 0)
|
|
1739
1741
|
return !1;
|
|
1740
|
-
|
|
1741
|
-
const r =
|
|
1742
|
+
A(!0);
|
|
1743
|
+
const r = je(d, i, H), s = await Oe({
|
|
1742
1744
|
scenarioCode: d.scenarioCode.trim(),
|
|
1743
1745
|
domainCode: S,
|
|
1744
1746
|
definition: r
|
|
1745
1747
|
});
|
|
1746
|
-
return
|
|
1747
|
-
}, [d, i, c, S, H]),
|
|
1748
|
+
return A(!1), s ? (k(s), W(JSON.stringify(r)), s.valid ? c.success("投影定义编译通过") : c.error("投影定义不可编译,请查看问题清单"), s.valid) : !1;
|
|
1749
|
+
}, [d, i, c, S, H]), De = D(async () => {
|
|
1748
1750
|
const o = ue(d, i);
|
|
1749
1751
|
if (x(o), o.length > 0) {
|
|
1750
1752
|
c.error("请先修正当前步骤的问题再提交");
|
|
@@ -1754,14 +1756,14 @@ function T1(a, t, n) {
|
|
|
1754
1756
|
c.error("请先执行编译预览;预览通过后才能提交场景工单");
|
|
1755
1757
|
return;
|
|
1756
1758
|
}
|
|
1757
|
-
const r =
|
|
1758
|
-
if (
|
|
1759
|
+
const r = je(d, i, H);
|
|
1760
|
+
if (I !== JSON.stringify(r)) {
|
|
1759
1761
|
c.error("定义在预览后已变更,请重新执行编译预览");
|
|
1760
1762
|
return;
|
|
1761
1763
|
}
|
|
1762
1764
|
N(!0);
|
|
1763
1765
|
try {
|
|
1764
|
-
const s = await
|
|
1766
|
+
const s = await Lt({
|
|
1765
1767
|
op: a,
|
|
1766
1768
|
scenarioCode: d.scenarioCode.trim(),
|
|
1767
1769
|
// 归属域不走请求头:编辑沿用场景自身域,新建按当前选域;未选域时由服务端报缺少归属域
|
|
@@ -1776,7 +1778,7 @@ function T1(a, t, n) {
|
|
|
1776
1778
|
c.error(
|
|
1777
1779
|
String(m.code) === "51116" ? "场景工单提交失败:投影定义未通过校验,请查看问题清单" : m.message || "场景工单提交失败"
|
|
1778
1780
|
);
|
|
1779
|
-
const f = await
|
|
1781
|
+
const f = await Oe({
|
|
1780
1782
|
scenarioCode: d.scenarioCode.trim(),
|
|
1781
1783
|
domainCode: S,
|
|
1782
1784
|
definition: r
|
|
@@ -1792,19 +1794,19 @@ function T1(a, t, n) {
|
|
|
1792
1794
|
a,
|
|
1793
1795
|
c,
|
|
1794
1796
|
z,
|
|
1795
|
-
|
|
1797
|
+
I,
|
|
1796
1798
|
S,
|
|
1797
1799
|
H
|
|
1798
|
-
]), ge =
|
|
1800
|
+
]), ge = D(async () => {
|
|
1799
1801
|
const o = ue(d, i);
|
|
1800
1802
|
if (x(o), o.length > 0) {
|
|
1801
1803
|
c.error("请先修正当前步骤的问题再提交");
|
|
1802
1804
|
return;
|
|
1803
1805
|
}
|
|
1804
|
-
const r =
|
|
1806
|
+
const r = je(d, i, H);
|
|
1805
1807
|
N(!0);
|
|
1806
1808
|
try {
|
|
1807
|
-
const s = await
|
|
1809
|
+
const s = await Bt({
|
|
1808
1810
|
op: a,
|
|
1809
1811
|
scenarioCode: d.scenarioCode.trim(),
|
|
1810
1812
|
domainCode: S,
|
|
@@ -1818,7 +1820,7 @@ function T1(a, t, n) {
|
|
|
1818
1820
|
c.error(
|
|
1819
1821
|
String(m.code) === "51116" ? "提交失败:投影定义未通过校验,请查看问题清单" : m.message || "场景提交失败"
|
|
1820
1822
|
);
|
|
1821
|
-
const f = await
|
|
1823
|
+
const f = await Oe({
|
|
1822
1824
|
scenarioCode: d.scenarioCode.trim(),
|
|
1823
1825
|
domainCode: S,
|
|
1824
1826
|
definition: r
|
|
@@ -1828,69 +1830,69 @@ function T1(a, t, n) {
|
|
|
1828
1830
|
} finally {
|
|
1829
1831
|
N(!1);
|
|
1830
1832
|
}
|
|
1831
|
-
}, [d, i, a, c, H, S]), te = R(() =>
|
|
1833
|
+
}, [d, i, a, c, H, S]), te = R(() => xt(d), [d]), we = R(() => zt(d, i), [d, i]), re = R(() => ue(d, i), [d, i]);
|
|
1832
1834
|
return {
|
|
1833
1835
|
mode: a,
|
|
1834
1836
|
graph: i,
|
|
1835
1837
|
categories: u,
|
|
1836
|
-
graphLoading:
|
|
1838
|
+
graphLoading: v,
|
|
1837
1839
|
draft: d,
|
|
1838
1840
|
mappings: K,
|
|
1839
1841
|
edgeMappings: te,
|
|
1840
|
-
relationPlans:
|
|
1841
|
-
mappingIssues:
|
|
1842
|
+
relationPlans: we,
|
|
1843
|
+
mappingIssues: re,
|
|
1842
1844
|
sourceProperties: H,
|
|
1843
1845
|
hasTransforms: K.rows.some((o) => o.op !== "DIRECT"),
|
|
1844
1846
|
issues: F,
|
|
1845
1847
|
preview: z,
|
|
1846
1848
|
previewing: M,
|
|
1847
|
-
submitting:
|
|
1849
|
+
submitting: h,
|
|
1848
1850
|
stage: T,
|
|
1849
|
-
setStage:
|
|
1851
|
+
setStage: he,
|
|
1850
1852
|
edgeStageSeen: b,
|
|
1851
1853
|
update: ke,
|
|
1852
|
-
toggleSourceType:
|
|
1854
|
+
toggleSourceType: ae,
|
|
1853
1855
|
discardSourceType: Me,
|
|
1854
|
-
restoreSourceType:
|
|
1856
|
+
restoreSourceType: pe,
|
|
1855
1857
|
toggleDroppedEdge: Ce,
|
|
1856
1858
|
toggleSourceEdge: Se,
|
|
1857
1859
|
renameTypeTarget: Fe,
|
|
1858
1860
|
addSplitTarget: Ne,
|
|
1859
|
-
removeSplitTarget:
|
|
1861
|
+
removeSplitTarget: O,
|
|
1860
1862
|
renameRelationTarget: Te,
|
|
1861
1863
|
addRelationSplitTarget: xe,
|
|
1862
|
-
removeRelationTarget:
|
|
1864
|
+
removeRelationTarget: q,
|
|
1863
1865
|
setMergeKey: be,
|
|
1864
1866
|
setEdgeTargets: Le,
|
|
1865
1867
|
setRelationEndpoints: U,
|
|
1866
|
-
setCustomEdges:
|
|
1868
|
+
setCustomEdges: ne,
|
|
1867
1869
|
setPropertyRows: Be,
|
|
1868
1870
|
autoMapProperties: ee,
|
|
1869
1871
|
restoreDraft: ze,
|
|
1870
|
-
runPreview:
|
|
1871
|
-
submitOrder:
|
|
1872
|
+
runPreview: se,
|
|
1873
|
+
submitOrder: De,
|
|
1872
1874
|
applyDirect: ge
|
|
1873
1875
|
};
|
|
1874
1876
|
}
|
|
1875
|
-
function
|
|
1876
|
-
const { containerRef: c, setData: i, ready: g } =
|
|
1877
|
+
function N1({ nodes: a, edges: t, categories: n }) {
|
|
1878
|
+
const { containerRef: c, setData: i, ready: g } = Dt({
|
|
1877
1879
|
forceLayoutOptions: { nodeSize: 60, linkDistance: 200, chargeStrength: -600 },
|
|
1878
1880
|
tooltipFormatter: (E) => {
|
|
1879
|
-
const
|
|
1880
|
-
return E.source && E.target ? `<b>${
|
|
1881
|
+
const v = E.name || E.displayName || E.code || E.id;
|
|
1882
|
+
return E.source && E.target ? `<b>${v}</b><br/>${E.source} → ${E.target}` : `<b>${v}</b>`;
|
|
1881
1883
|
}
|
|
1882
1884
|
}), u = R(() => {
|
|
1883
|
-
const E = new Set(a.map((d) => d.tagName)),
|
|
1885
|
+
const E = new Set(a.map((d) => d.tagName)), v = {};
|
|
1884
1886
|
a.forEach((d) => {
|
|
1885
|
-
|
|
1887
|
+
v[d.tagName.toLowerCase()] = Number(d.instanceCount) || 0;
|
|
1886
1888
|
});
|
|
1887
|
-
const C =
|
|
1889
|
+
const C = wt(
|
|
1888
1890
|
n.map((d) => ({
|
|
1889
1891
|
categoryCode: d.code,
|
|
1890
1892
|
sortOrder: d.sortOrder
|
|
1891
1893
|
}))
|
|
1892
1894
|
);
|
|
1893
|
-
return
|
|
1895
|
+
return At(
|
|
1894
1896
|
{
|
|
1895
1897
|
data: a.map((d) => ({
|
|
1896
1898
|
id: d.tagName,
|
|
@@ -1908,19 +1910,19 @@ function b1({ nodes: a, edges: t, categories: n }) {
|
|
|
1908
1910
|
isSelfAssoc: d.selfLoop
|
|
1909
1911
|
}))
|
|
1910
1912
|
},
|
|
1911
|
-
|
|
1913
|
+
v,
|
|
1912
1914
|
void 0,
|
|
1913
1915
|
C
|
|
1914
1916
|
);
|
|
1915
1917
|
}, [a, t, n]);
|
|
1916
|
-
return
|
|
1918
|
+
return ce(() => {
|
|
1917
1919
|
g && i(u, { settle: !0, fit: !0 });
|
|
1918
|
-
}, [g, u, i]), /* @__PURE__ */
|
|
1920
|
+
}, [g, u, i]), /* @__PURE__ */ p("div", { className: "osc-scope-graph", children: [
|
|
1919
1921
|
/* @__PURE__ */ l("div", { className: "osc-scope-graph-canvas", ref: c }),
|
|
1920
|
-
a.length === 0 ? /* @__PURE__ */ l("div", { className: "osc-scope-graph-empty", children: /* @__PURE__ */ l(
|
|
1922
|
+
a.length === 0 ? /* @__PURE__ */ l("div", { className: "osc-scope-graph-empty", children: /* @__PURE__ */ l(ye, { image: ye.PRESENTED_IMAGE_SIMPLE, description: "勾选左侧点边后在此预览图谱" }) }) : null
|
|
1921
1923
|
] });
|
|
1922
1924
|
}
|
|
1923
|
-
function
|
|
1925
|
+
function T1({
|
|
1924
1926
|
draft: a,
|
|
1925
1927
|
graph: t,
|
|
1926
1928
|
categories: n,
|
|
@@ -1928,90 +1930,90 @@ function L1({
|
|
|
1928
1930
|
toggleSourceType: i,
|
|
1929
1931
|
toggleSourceEdge: g
|
|
1930
1932
|
}) {
|
|
1931
|
-
const [u, E] =
|
|
1932
|
-
() => new Map(((t == null ? void 0 : t.nodes) ?? []).map((
|
|
1933
|
+
const [u, E] = V(""), [v, C] = V([]), d = R(() => new Set(a.sourceTypes), [a.sourceTypes]), y = R(() => new Set(a.sourceEdges), [a.sourceEdges]), F = R(
|
|
1934
|
+
() => new Map(((t == null ? void 0 : t.nodes) ?? []).map((h) => [h.tagName, h])),
|
|
1933
1935
|
[t]
|
|
1934
1936
|
), x = R(() => {
|
|
1935
1937
|
var N;
|
|
1936
|
-
const
|
|
1938
|
+
const h = /* @__PURE__ */ new Map();
|
|
1937
1939
|
for (const T of (t == null ? void 0 : t.nodes) ?? []) {
|
|
1938
|
-
const $ = ((N = T.category) == null ? void 0 : N.trim()) || "未分类", b =
|
|
1939
|
-
b.push(T),
|
|
1940
|
+
const $ = ((N = T.category) == null ? void 0 : N.trim()) || "未分类", b = h.get($) ?? [];
|
|
1941
|
+
b.push(T), h.set($, b);
|
|
1940
1942
|
}
|
|
1941
|
-
return Array.from(
|
|
1943
|
+
return Array.from(h.entries());
|
|
1942
1944
|
}, [t]), z = R(() => {
|
|
1943
|
-
const
|
|
1945
|
+
const h = /* @__PURE__ */ new Map();
|
|
1944
1946
|
for (const N of (t == null ? void 0 : t.nodes) ?? []) {
|
|
1945
1947
|
const T = /* @__PURE__ */ new Map();
|
|
1946
1948
|
for (const $ of (t == null ? void 0 : t.edges) ?? []) {
|
|
1947
1949
|
if (!$.srcTag || !$.dstTag || $.srcTag !== N.tagName && $.dstTag !== N.tagName)
|
|
1948
1950
|
continue;
|
|
1949
|
-
const b = $.srcTag === N.tagName,
|
|
1951
|
+
const b = $.srcTag === N.tagName, j = b ? $.dstTag : $.srcTag, K = `${$.edgeName}|${j}|${b ? "out" : "in"}`;
|
|
1950
1952
|
if (T.has(K))
|
|
1951
1953
|
continue;
|
|
1952
|
-
const S = F.get(
|
|
1954
|
+
const S = F.get(j);
|
|
1953
1955
|
T.set(K, {
|
|
1954
1956
|
key: K,
|
|
1955
1957
|
edgeName: $.edgeName,
|
|
1956
1958
|
label: $.displayName || $.edgeName,
|
|
1957
|
-
peer: (S == null ? void 0 : S.displayName) || (S == null ? void 0 : S.tagName) ||
|
|
1959
|
+
peer: (S == null ? void 0 : S.displayName) || (S == null ? void 0 : S.tagName) || j,
|
|
1958
1960
|
srcTag: $.srcTag,
|
|
1959
1961
|
dstTag: $.dstTag,
|
|
1960
1962
|
outgoing: b,
|
|
1961
1963
|
closed: d.has($.srcTag) && d.has($.dstTag)
|
|
1962
1964
|
});
|
|
1963
1965
|
}
|
|
1964
|
-
|
|
1966
|
+
h.set(N.tagName, Array.from(T.values()));
|
|
1965
1967
|
}
|
|
1966
|
-
return
|
|
1968
|
+
return h;
|
|
1967
1969
|
}, [t, F, d]), k = R(() => {
|
|
1968
|
-
const
|
|
1969
|
-
if (
|
|
1970
|
+
const h = u.trim(), N = /* @__PURE__ */ new Set();
|
|
1971
|
+
if (h)
|
|
1970
1972
|
for (const T of (t == null ? void 0 : t.edges) ?? [])
|
|
1971
|
-
|
|
1973
|
+
Ge(h, T.edgeName, T.displayName) && (T.srcTag && N.add(T.srcTag), T.dstTag && N.add(T.dstTag));
|
|
1972
1974
|
return x.map(([T, $]) => ({
|
|
1973
1975
|
category: T,
|
|
1974
|
-
nodes: $.filter((b) =>
|
|
1976
|
+
nodes: $.filter((b) => h ? Ge(h, b.tagName, b.displayName, b.code) || N.has(b.tagName) : !0)
|
|
1975
1977
|
})).filter((T) => T.nodes.length > 0);
|
|
1976
|
-
}, [x, t, u]),
|
|
1977
|
-
() => a.sourceTypes.map((
|
|
1978
|
+
}, [x, t, u]), I = R(
|
|
1979
|
+
() => a.sourceTypes.map((h) => F.get(h)).filter((h) => !!h),
|
|
1978
1980
|
[a.sourceTypes, F]
|
|
1979
1981
|
), W = R(
|
|
1980
|
-
() => ((t == null ? void 0 : t.edges) ?? []).filter((
|
|
1981
|
-
[t,
|
|
1982
|
-
), M = (
|
|
1982
|
+
() => ((t == null ? void 0 : t.edges) ?? []).filter((h) => y.has(h.edgeName)),
|
|
1983
|
+
[t, y]
|
|
1984
|
+
), M = (h) => {
|
|
1983
1985
|
C(
|
|
1984
|
-
(N) => N.includes(
|
|
1986
|
+
(N) => N.includes(h) ? N.filter((T) => T !== h) : [...N, h]
|
|
1985
1987
|
);
|
|
1986
|
-
},
|
|
1987
|
-
const N = z.get(
|
|
1988
|
-
return /* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
1991
|
-
|
|
1988
|
+
}, A = (h) => {
|
|
1989
|
+
const N = z.get(h.tagName) ?? [], T = d.has(h.tagName), $ = v.includes(h.tagName), b = N.filter((S) => y.has(S.edgeName)), j = Number(h.instanceCount ?? 0), K = h.displayName || h.tagName;
|
|
1990
|
+
return /* @__PURE__ */ p("div", { className: `osc-pick-card${T ? " is-checked" : ""}`, children: [
|
|
1991
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-row", children: [
|
|
1992
|
+
/* @__PURE__ */ p(
|
|
1993
|
+
qe,
|
|
1992
1994
|
{
|
|
1993
|
-
"aria-label": `选择对象 ${
|
|
1995
|
+
"aria-label": `选择对象 ${h.tagName}`,
|
|
1994
1996
|
checked: T,
|
|
1995
|
-
onChange: () => i(
|
|
1997
|
+
onChange: () => i(h.tagName),
|
|
1996
1998
|
children: [
|
|
1997
1999
|
/* @__PURE__ */ l("span", { className: "osc-pick-name", children: K }),
|
|
1998
|
-
/* @__PURE__ */ l("span", { className: "osc-pick-code mono", children:
|
|
2000
|
+
/* @__PURE__ */ l("span", { className: "osc-pick-code mono", children: h.tagName })
|
|
1999
2001
|
]
|
|
2000
2002
|
}
|
|
2001
2003
|
),
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
|
|
2004
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-row-side", children: [
|
|
2005
|
+
j > 0 ? /* @__PURE__ */ p("span", { className: "osc-pick-count", children: [
|
|
2004
2006
|
"实例 ",
|
|
2005
|
-
|
|
2007
|
+
j
|
|
2006
2008
|
] }) : null,
|
|
2007
|
-
N.length > 0 ? /* @__PURE__ */
|
|
2009
|
+
N.length > 0 ? /* @__PURE__ */ p(
|
|
2008
2010
|
"button",
|
|
2009
2011
|
{
|
|
2010
2012
|
type: "button",
|
|
2011
2013
|
className: "osc-pick-rel-toggle",
|
|
2012
2014
|
"aria-expanded": $,
|
|
2013
2015
|
"aria-label": `${$ ? "收起" : "展开"} ${K} 的关系`,
|
|
2014
|
-
onClick: () => M(
|
|
2016
|
+
onClick: () => M(h.tagName),
|
|
2015
2017
|
children: [
|
|
2016
2018
|
"关系 ",
|
|
2017
2019
|
b.length,
|
|
@@ -2023,16 +2025,16 @@ function L1({
|
|
|
2023
2025
|
) : null
|
|
2024
2026
|
] })
|
|
2025
2027
|
] }),
|
|
2026
|
-
$ && N.length > 0 ? /* @__PURE__ */ l("div", { className: "osc-pick-edges", children: N.map((S) => /* @__PURE__ */
|
|
2028
|
+
$ && N.length > 0 ? /* @__PURE__ */ l("div", { className: "osc-pick-edges", children: N.map((S) => /* @__PURE__ */ p(
|
|
2027
2029
|
"div",
|
|
2028
2030
|
{
|
|
2029
|
-
className: `osc-pick-edge-row${
|
|
2031
|
+
className: `osc-pick-edge-row${y.has(S.edgeName) ? " is-checked" : ""}`,
|
|
2030
2032
|
children: [
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
|
|
2033
|
+
/* @__PURE__ */ p(
|
|
2034
|
+
qe,
|
|
2033
2035
|
{
|
|
2034
2036
|
"aria-label": `选择关系 ${S.edgeName}(${S.outgoing ? "→" : "←"} ${S.peer})`,
|
|
2035
|
-
checked:
|
|
2037
|
+
checked: y.has(S.edgeName),
|
|
2036
2038
|
onChange: () => g(S.edgeName, { srcTag: S.srcTag, dstTag: S.dstTag }),
|
|
2037
2039
|
children: [
|
|
2038
2040
|
/* @__PURE__ */ l("span", { className: "osc-pick-edge-name", children: S.label }),
|
|
@@ -2041,52 +2043,52 @@ function L1({
|
|
|
2041
2043
|
]
|
|
2042
2044
|
}
|
|
2043
2045
|
),
|
|
2044
|
-
S.closed ||
|
|
2046
|
+
S.closed || y.has(S.edgeName) ? null : /* @__PURE__ */ l("span", { className: "osc-pick-edge-hint", children: "勾选将带入两端对象" })
|
|
2045
2047
|
]
|
|
2046
2048
|
},
|
|
2047
2049
|
S.key
|
|
2048
2050
|
)) }) : null
|
|
2049
|
-
] },
|
|
2051
|
+
] }, h.tagName);
|
|
2050
2052
|
};
|
|
2051
|
-
return /* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */ l(
|
|
2053
|
+
return /* @__PURE__ */ p("section", { className: "panel", children: [
|
|
2054
|
+
/* @__PURE__ */ p("div", { className: "panel-head", children: [
|
|
2055
|
+
/* @__PURE__ */ p("h3", { children: [
|
|
2056
|
+
/* @__PURE__ */ l(It, {}),
|
|
2055
2057
|
" 选择点边"
|
|
2056
2058
|
] }),
|
|
2057
2059
|
/* @__PURE__ */ l("span", { className: "hint", children: "纯子图 · 同名直通" })
|
|
2058
2060
|
] }),
|
|
2059
|
-
/* @__PURE__ */ l("div", { className: "panel-body", children: /* @__PURE__ */ l(Ze, { spinning: c, children: /* @__PURE__ */
|
|
2060
|
-
/* @__PURE__ */
|
|
2061
|
+
/* @__PURE__ */ l("div", { className: "panel-body", children: /* @__PURE__ */ l(Ze, { spinning: c, children: /* @__PURE__ */ p("div", { className: "osc-pick", children: [
|
|
2062
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-list", children: [
|
|
2061
2063
|
/* @__PURE__ */ l(
|
|
2062
2064
|
Ee,
|
|
2063
2065
|
{
|
|
2064
2066
|
allowClear: !0,
|
|
2065
2067
|
className: "osc-pick-search",
|
|
2066
2068
|
value: u,
|
|
2067
|
-
prefix: /* @__PURE__ */ l(
|
|
2069
|
+
prefix: /* @__PURE__ */ l(kt, {}),
|
|
2068
2070
|
placeholder: "搜索实体或关系",
|
|
2069
|
-
onChange: (
|
|
2071
|
+
onChange: (h) => E(h.target.value)
|
|
2070
2072
|
}
|
|
2071
2073
|
),
|
|
2072
2074
|
/* @__PURE__ */ l("div", { className: "osc-pick-list-body", children: k.length === 0 ? /* @__PURE__ */ l(
|
|
2073
|
-
|
|
2075
|
+
ye,
|
|
2074
2076
|
{
|
|
2075
|
-
image:
|
|
2077
|
+
image: ye.PRESENTED_IMAGE_SIMPLE,
|
|
2076
2078
|
description: c ? "正在加载基础结构" : "未找到匹配的实体或关系"
|
|
2077
2079
|
}
|
|
2078
|
-
) : k.map((
|
|
2079
|
-
/* @__PURE__ */
|
|
2080
|
-
/* @__PURE__ */ l("span", { children:
|
|
2081
|
-
/* @__PURE__ */ l("span", { className: "osc-pick-cat-count", children:
|
|
2080
|
+
) : k.map((h) => /* @__PURE__ */ p("div", { className: "osc-pick-cat", children: [
|
|
2081
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-cat-title", children: [
|
|
2082
|
+
/* @__PURE__ */ l("span", { children: h.category }),
|
|
2083
|
+
/* @__PURE__ */ l("span", { className: "osc-pick-cat-count", children: h.nodes.length })
|
|
2082
2084
|
] }),
|
|
2083
|
-
|
|
2084
|
-
] },
|
|
2085
|
+
h.nodes.map(A)
|
|
2086
|
+
] }, h.category)) })
|
|
2085
2087
|
] }),
|
|
2086
|
-
/* @__PURE__ */
|
|
2087
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ p("aside", { className: "osc-pick-side", children: [
|
|
2089
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-side-head", children: [
|
|
2088
2090
|
/* @__PURE__ */ l("b", { children: "已选图谱" }),
|
|
2089
|
-
/* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ p("span", { children: [
|
|
2090
2092
|
a.sourceTypes.length,
|
|
2091
2093
|
" 实体 · ",
|
|
2092
2094
|
a.sourceEdges.length,
|
|
@@ -2094,15 +2096,15 @@ function L1({
|
|
|
2094
2096
|
] })
|
|
2095
2097
|
] }),
|
|
2096
2098
|
/* @__PURE__ */ l(
|
|
2097
|
-
|
|
2099
|
+
N1,
|
|
2098
2100
|
{
|
|
2099
|
-
nodes:
|
|
2101
|
+
nodes: I,
|
|
2100
2102
|
edges: W,
|
|
2101
2103
|
categories: n
|
|
2102
2104
|
}
|
|
2103
2105
|
),
|
|
2104
|
-
/* @__PURE__ */
|
|
2105
|
-
/* @__PURE__ */ l(
|
|
2106
|
+
/* @__PURE__ */ p("div", { className: "osc-pick-note", children: [
|
|
2107
|
+
/* @__PURE__ */ l(mt, { className: "ic" }),
|
|
2106
2108
|
/* @__PURE__ */ l("span", { children: "纯子图只引用基础点边:同名直通、不改结构、不搬实例;取消勾选的关系不进入场景,查询直接复用本体基础空间。" })
|
|
2107
2109
|
] })
|
|
2108
2110
|
] })
|
|
@@ -2111,7 +2113,7 @@ function L1({
|
|
|
2111
2113
|
}
|
|
2112
2114
|
function Ue({ issues: a }) {
|
|
2113
2115
|
return a.length === 0 ? null : /* @__PURE__ */ l(
|
|
2114
|
-
|
|
2116
|
+
Ot,
|
|
2115
2117
|
{
|
|
2116
2118
|
type: "error",
|
|
2117
2119
|
showIcon: !0,
|
|
@@ -2127,7 +2129,7 @@ function Ue({ issues: a }) {
|
|
|
2127
2129
|
}
|
|
2128
2130
|
);
|
|
2129
2131
|
}
|
|
2130
|
-
function
|
|
2132
|
+
function b1({
|
|
2131
2133
|
mode: a,
|
|
2132
2134
|
draft: t,
|
|
2133
2135
|
preview: n,
|
|
@@ -2137,120 +2139,120 @@ function B1({
|
|
|
2137
2139
|
runPreview: u,
|
|
2138
2140
|
submit: E
|
|
2139
2141
|
}) {
|
|
2140
|
-
var
|
|
2141
|
-
const
|
|
2142
|
-
return /* @__PURE__ */
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
/* @__PURE__ */
|
|
2145
|
-
/* @__PURE__ */ l(
|
|
2142
|
+
var y, F, x, z, k, I, W;
|
|
2143
|
+
const v = (n == null ? void 0 : n.valid) === !0, C = g.length === 0, d = ((y = g[0]) == null ? void 0 : y.message) ?? "请先修正当前步骤的问题再提交。";
|
|
2144
|
+
return /* @__PURE__ */ p("section", { className: "panel", children: [
|
|
2145
|
+
/* @__PURE__ */ p("div", { className: "panel-head", children: [
|
|
2146
|
+
/* @__PURE__ */ p("h3", { children: [
|
|
2147
|
+
/* @__PURE__ */ l(Je, {}),
|
|
2146
2148
|
" 提交并生效"
|
|
2147
2149
|
] }),
|
|
2148
2150
|
/* @__PURE__ */ l("span", { className: "hint", children: "纯子图无需审批:提交只落定义快照,不建空间、不重放数据" })
|
|
2149
2151
|
] }),
|
|
2150
|
-
/* @__PURE__ */
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ p("div", { className: "panel-body", children: [
|
|
2153
|
+
/* @__PURE__ */ p("div", { className: "osc-kv", children: [
|
|
2154
|
+
/* @__PURE__ */ p("div", { className: "row", children: [
|
|
2153
2155
|
/* @__PURE__ */ l("label", { children: "场景" }),
|
|
2154
2156
|
/* @__PURE__ */ l("b", { children: t.name || "(未命名)" })
|
|
2155
2157
|
] }),
|
|
2156
|
-
/* @__PURE__ */
|
|
2158
|
+
/* @__PURE__ */ p("div", { className: "row", children: [
|
|
2157
2159
|
/* @__PURE__ */ l("label", { children: "编码" }),
|
|
2158
2160
|
/* @__PURE__ */ l("b", { className: "mono", children: t.scenarioCode || "(未填写)" })
|
|
2159
2161
|
] }),
|
|
2160
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ p("div", { className: "row", children: [
|
|
2161
2163
|
/* @__PURE__ */ l("label", { children: "引用点边" }),
|
|
2162
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ p("b", { children: [
|
|
2163
2165
|
t.sourceTypes.length,
|
|
2164
2166
|
" 个对象 · ",
|
|
2165
2167
|
t.sourceEdges.length,
|
|
2166
2168
|
" 个关系(同名直通)"
|
|
2167
2169
|
] })
|
|
2168
2170
|
] }),
|
|
2169
|
-
/* @__PURE__ */
|
|
2171
|
+
/* @__PURE__ */ p("div", { className: "row", children: [
|
|
2170
2172
|
/* @__PURE__ */ l("label", { children: "数据来源" }),
|
|
2171
2173
|
/* @__PURE__ */ l("b", { children: "基础空间(只读,实时)" })
|
|
2172
2174
|
] }),
|
|
2173
|
-
/* @__PURE__ */
|
|
2175
|
+
/* @__PURE__ */ p("div", { className: "row", children: [
|
|
2174
2176
|
/* @__PURE__ */ l("label", { children: "生效方式" }),
|
|
2175
2177
|
/* @__PURE__ */ l("b", { children: a === "ADD" ? "落定义快照 · 新建查询白名单" : "落定义快照 · 更新查询白名单" })
|
|
2176
2178
|
] })
|
|
2177
2179
|
] }),
|
|
2178
|
-
g.length === 0 &&
|
|
2179
|
-
/* @__PURE__ */ l("span", { className: "ic", children: /* @__PURE__ */ l(
|
|
2180
|
+
g.length === 0 && v ? /* @__PURE__ */ p("div", { className: "osc-gate-row ok", style: { marginTop: 12 }, children: [
|
|
2181
|
+
/* @__PURE__ */ l("span", { className: "ic", children: /* @__PURE__ */ l(_t, {}) }),
|
|
2180
2182
|
/* @__PURE__ */ l("span", { children: "编译预览已通过:所选点边均在基础结构内且端点闭合,可直接提交生效。" })
|
|
2181
|
-
] }) : g.length > 0 ? /* @__PURE__ */
|
|
2182
|
-
/* @__PURE__ */ l("span", { className: "ic", children: /* @__PURE__ */ l(
|
|
2183
|
+
] }) : g.length > 0 ? /* @__PURE__ */ p("div", { className: "osc-gate-row bad", style: { marginTop: 12 }, children: [
|
|
2184
|
+
/* @__PURE__ */ l("span", { className: "ic", children: /* @__PURE__ */ l(ct, {}) }),
|
|
2183
2185
|
/* @__PURE__ */ l("span", { children: d })
|
|
2184
|
-
] }) : /* @__PURE__ */
|
|
2186
|
+
] }) : /* @__PURE__ */ p("div", { className: "osc-gate-row warn", style: { marginTop: 12 }, children: [
|
|
2185
2187
|
/* @__PURE__ */ l("span", { className: "ic", children: /* @__PURE__ */ l(nt, {}) }),
|
|
2186
2188
|
/* @__PURE__ */ l("span", { children: "可直接提交:服务端会再次编译校验。建议先执行编译预览,核对点边与端点闭合后再提交。" })
|
|
2187
2189
|
] }),
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */ l(
|
|
2190
|
+
/* @__PURE__ */ p("div", { className: "row wrap gap-8", style: { marginTop: 16 }, children: [
|
|
2191
|
+
/* @__PURE__ */ l(Ve, { icon: /* @__PURE__ */ l(dt, {}), loading: c, onClick: () => void u(), children: "编译预览" }),
|
|
2190
2192
|
/* @__PURE__ */ l(
|
|
2191
|
-
|
|
2193
|
+
Ve,
|
|
2192
2194
|
{
|
|
2193
2195
|
type: "primary",
|
|
2194
|
-
icon: /* @__PURE__ */ l(
|
|
2196
|
+
icon: /* @__PURE__ */ l(Je, {}),
|
|
2195
2197
|
disabled: !C,
|
|
2196
2198
|
loading: i,
|
|
2197
2199
|
onClick: E,
|
|
2198
2200
|
children: "提交并生效"
|
|
2199
2201
|
}
|
|
2200
2202
|
),
|
|
2201
|
-
/* @__PURE__ */ l(
|
|
2203
|
+
/* @__PURE__ */ l(oe.Text, { type: "secondary", children: "提交后立即建/改场景定义,查询与 nGQL 直读基础空间;预览只编译不落库、不触图库。" })
|
|
2202
2204
|
] }),
|
|
2203
2205
|
g.length > 0 ? /* @__PURE__ */ l("div", { style: { marginTop: 12 }, children: /* @__PURE__ */ l(Ue, { issues: g.map((M) => M.message) }) }) : null,
|
|
2204
|
-
n ? /* @__PURE__ */
|
|
2205
|
-
/* @__PURE__ */
|
|
2206
|
-
n.valid ? /* @__PURE__ */ l(
|
|
2207
|
-
typeof n.definitionVersion == "number" ? /* @__PURE__ */
|
|
2206
|
+
n ? /* @__PURE__ */ p("section", { className: "osc-preview", style: { marginTop: 12 }, children: [
|
|
2207
|
+
/* @__PURE__ */ p("div", { className: "row wrap gap-8", children: [
|
|
2208
|
+
n.valid ? /* @__PURE__ */ l(X, { color: "success", children: "编译通过" }) : /* @__PURE__ */ l(X, { color: "error", children: "不可编译" }),
|
|
2209
|
+
typeof n.definitionVersion == "number" ? /* @__PURE__ */ p(X, { color: "blue", children: [
|
|
2208
2210
|
"定义版本 v",
|
|
2209
2211
|
n.definitionVersion
|
|
2210
2212
|
] }) : null,
|
|
2211
|
-
n.definitionHash ? /* @__PURE__ */ l(
|
|
2213
|
+
n.definitionHash ? /* @__PURE__ */ l(oe.Text, { code: !0, copyable: !0, children: n.definitionHash }) : null
|
|
2212
2214
|
] }),
|
|
2213
|
-
(F = n.issueItems) != null && F.length ? /* @__PURE__ */ l("div", { className: "osc-preview-issues", children: n.issueItems.map((M) => /* @__PURE__ */
|
|
2214
|
-
/* @__PURE__ */ l(
|
|
2215
|
-
M.path ? /* @__PURE__ */ l(
|
|
2216
|
-
/* @__PURE__ */ l(
|
|
2215
|
+
(F = n.issueItems) != null && F.length ? /* @__PURE__ */ l("div", { className: "osc-preview-issues", children: n.issueItems.map((M) => /* @__PURE__ */ p("div", { children: [
|
|
2216
|
+
/* @__PURE__ */ l(X, { color: "red", children: M.code }),
|
|
2217
|
+
M.path ? /* @__PURE__ */ l(oe.Text, { code: !0, children: M.path }) : null,
|
|
2218
|
+
/* @__PURE__ */ l(oe.Text, { children: M.message })
|
|
2217
2219
|
] }, `${M.code}-${M.path ?? ""}-${M.message}`)) }) : /* @__PURE__ */ l(Ue, { issues: n.issues }),
|
|
2218
|
-
n.coverage ? /* @__PURE__ */
|
|
2220
|
+
n.coverage ? /* @__PURE__ */ p("div", { className: "osc-preview-coverage", children: [
|
|
2219
2221
|
/* @__PURE__ */ l("b", { children: "关系覆盖" }),
|
|
2220
|
-
n.coverage.eligibleKnown === !1 ? /* @__PURE__ */ l(
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2222
|
+
n.coverage.eligibleKnown === !1 ? /* @__PURE__ */ l(oe.Text, { type: "warning", children: "基础关系来源不可用,覆盖未校验(eligible 未知)。" }) : null,
|
|
2223
|
+
/* @__PURE__ */ p("div", { children: [
|
|
2224
|
+
/* @__PURE__ */ p(X, { children: [
|
|
2223
2225
|
"可参与 ",
|
|
2224
2226
|
((x = n.coverage.eligible) == null ? void 0 : x.length) ?? 0
|
|
2225
2227
|
] }),
|
|
2226
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ p(X, { color: "green", children: [
|
|
2227
2229
|
"已收录 ",
|
|
2228
2230
|
((z = n.coverage.included) == null ? void 0 : z.length) ?? 0
|
|
2229
2231
|
] }),
|
|
2230
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ p(X, { color: "orange", children: [
|
|
2231
2233
|
"显式丢弃 ",
|
|
2232
2234
|
((k = n.coverage.dropped) == null ? void 0 : k.length) ?? 0
|
|
2233
2235
|
] }),
|
|
2234
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ p(X, { color: (I = n.coverage.unhandled) != null && I.length ? "red" : "default", children: [
|
|
2235
2237
|
"未处理 ",
|
|
2236
2238
|
((W = n.coverage.unhandled) == null ? void 0 : W.length) ?? 0
|
|
2237
2239
|
] })
|
|
2238
2240
|
] })
|
|
2239
2241
|
] }) : null,
|
|
2240
|
-
n.plan ? /* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2242
|
+
n.plan ? /* @__PURE__ */ p("div", { className: "osc-preview-plan", children: [
|
|
2243
|
+
/* @__PURE__ */ p("div", { children: [
|
|
2242
2244
|
/* @__PURE__ */ l("b", { children: "点类型" }),
|
|
2243
2245
|
/* @__PURE__ */ l("div", { children: (n.plan.tags ?? []).map((M) => {
|
|
2244
|
-
var
|
|
2245
|
-
return /* @__PURE__ */
|
|
2246
|
+
var A;
|
|
2247
|
+
return /* @__PURE__ */ p(X, { color: "green", children: [
|
|
2246
2248
|
M.name,
|
|
2247
|
-
(
|
|
2249
|
+
(A = M.properties) != null && A.length ? ` · ${M.properties.length} 属性` : ""
|
|
2248
2250
|
] }, M.name);
|
|
2249
2251
|
}) })
|
|
2250
2252
|
] }),
|
|
2251
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ p("div", { children: [
|
|
2252
2254
|
/* @__PURE__ */ l("b", { children: "关系端点" }),
|
|
2253
|
-
/* @__PURE__ */ l("div", { children: (n.plan.edges ?? []).map((M) => /* @__PURE__ */
|
|
2255
|
+
/* @__PURE__ */ l("div", { children: (n.plan.edges ?? []).map((M) => /* @__PURE__ */ p(X, { color: "geekblue", children: [
|
|
2254
2256
|
M.name,
|
|
2255
2257
|
"(",
|
|
2256
2258
|
M.srcTag,
|
|
@@ -2264,29 +2266,29 @@ function B1({
|
|
|
2264
2266
|
] })
|
|
2265
2267
|
] });
|
|
2266
2268
|
}
|
|
2267
|
-
function
|
|
2269
|
+
function L1({
|
|
2268
2270
|
mode: a,
|
|
2269
2271
|
draft: t,
|
|
2270
2272
|
issues: n,
|
|
2271
2273
|
update: c,
|
|
2272
2274
|
subgraph: i
|
|
2273
2275
|
}) {
|
|
2274
|
-
const g = (
|
|
2276
|
+
const g = (v) => {
|
|
2275
2277
|
var C;
|
|
2276
|
-
return (C = n.find((d) => d.field ===
|
|
2278
|
+
return (C = n.find((d) => d.field === v)) == null ? void 0 : C.message;
|
|
2277
2279
|
}, u = g("scenarioCode"), E = g("name");
|
|
2278
|
-
return /* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
/* @__PURE__ */ l(
|
|
2280
|
+
return /* @__PURE__ */ p("section", { className: "panel", children: [
|
|
2281
|
+
/* @__PURE__ */ p("div", { className: "panel-head", children: [
|
|
2282
|
+
/* @__PURE__ */ p("h3", { children: [
|
|
2283
|
+
/* @__PURE__ */ l(lt, {}),
|
|
2282
2284
|
" 场景身份"
|
|
2283
2285
|
] }),
|
|
2284
2286
|
/* @__PURE__ */ l("span", { className: "hint", children: "场景编码创建后不可改" })
|
|
2285
2287
|
] }),
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ p("div", { className: "panel-body", children: [
|
|
2289
|
+
/* @__PURE__ */ p("div", { className: "osc-def-grid", children: [
|
|
2290
|
+
/* @__PURE__ */ p("div", { className: "field", children: [
|
|
2291
|
+
/* @__PURE__ */ p("label", { children: [
|
|
2290
2292
|
"场景名称 ",
|
|
2291
2293
|
/* @__PURE__ */ l("span", { className: "req", children: "*" })
|
|
2292
2294
|
] }),
|
|
@@ -2296,13 +2298,13 @@ function x1({
|
|
|
2296
2298
|
status: E ? "error" : void 0,
|
|
2297
2299
|
value: t.name,
|
|
2298
2300
|
placeholder: "例如:科研分析视图",
|
|
2299
|
-
onChange: (
|
|
2301
|
+
onChange: (v) => c("name", v.target.value)
|
|
2300
2302
|
}
|
|
2301
2303
|
),
|
|
2302
2304
|
E ? /* @__PURE__ */ l("span", { className: "error", children: E }) : /* @__PURE__ */ l("span", { className: "help", children: "展示用名称;同一本体下允许重名。" })
|
|
2303
2305
|
] }),
|
|
2304
|
-
/* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ p("div", { className: "field", children: [
|
|
2307
|
+
/* @__PURE__ */ p("label", { children: [
|
|
2306
2308
|
"场景编码 ",
|
|
2307
2309
|
/* @__PURE__ */ l("span", { className: "req", children: "*" })
|
|
2308
2310
|
] }),
|
|
@@ -2314,13 +2316,13 @@ function x1({
|
|
|
2314
2316
|
value: t.scenarioCode,
|
|
2315
2317
|
disabled: a === "UPDATE",
|
|
2316
2318
|
placeholder: "例如:research_view",
|
|
2317
|
-
onChange: (
|
|
2319
|
+
onChange: (v) => c("scenarioCode", v.target.value)
|
|
2318
2320
|
}
|
|
2319
2321
|
),
|
|
2320
2322
|
u ? /* @__PURE__ */ l("span", { className: "error", children: u }) : /* @__PURE__ */ l("span", { className: "help", children: "本体内唯一,字母开头,仅含字母/数字/下划线,生效后不可修改。" })
|
|
2321
2323
|
] })
|
|
2322
2324
|
] }),
|
|
2323
|
-
/* @__PURE__ */
|
|
2325
|
+
/* @__PURE__ */ p("div", { className: "field", style: { marginTop: 12 }, children: [
|
|
2324
2326
|
/* @__PURE__ */ l("label", { children: "说明" }),
|
|
2325
2327
|
/* @__PURE__ */ l(
|
|
2326
2328
|
Ee.TextArea,
|
|
@@ -2329,25 +2331,25 @@ function x1({
|
|
|
2329
2331
|
maxLength: 200,
|
|
2330
2332
|
value: t.description,
|
|
2331
2333
|
placeholder: "这个场景面向谁、消费什么、明确不做什么",
|
|
2332
|
-
onChange: (
|
|
2334
|
+
onChange: (v) => c("description", v.target.value)
|
|
2333
2335
|
}
|
|
2334
2336
|
)
|
|
2335
2337
|
] }),
|
|
2336
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ p("div", { className: "osc-scm-workbench-note", style: { marginTop: 16, marginBottom: 0 }, children: [
|
|
2337
2339
|
/* @__PURE__ */ l(nt, {}),
|
|
2338
2340
|
/* @__PURE__ */ l("span", { children: i ? "纯子图场景只圈定基础点边:对象与关系同名直通、不改结构、不搬实例,查询直接复用本体基础空间。" : "场景统一在基础子图上定义:先圈定局部对象与关系,再允许重命名、对象合并/拆分(产生新的目标对象)、关系重命名/新增(定义关系组成)与属性投影/派生。下一步先完成对象映射,再进入关系映射集中处理关系,并维护两端实例的定位属性。" })
|
|
2339
2341
|
] })
|
|
2340
2342
|
] })
|
|
2341
2343
|
] });
|
|
2342
2344
|
}
|
|
2343
|
-
function
|
|
2344
|
-
const c =
|
|
2345
|
+
function J1({ mode: a, initialDraft: t, domainCode: n }) {
|
|
2346
|
+
const c = Vt(), i = F1(a, { ...t, mode: "SUBGRAPH" }, n), g = async () => {
|
|
2345
2347
|
const u = await i.applyDirect();
|
|
2346
2348
|
u && c(`/ontology/scenarios/${encodeURIComponent(u.scenarioCode)}`);
|
|
2347
2349
|
};
|
|
2348
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ p("div", { className: "osc-simple-form", children: [
|
|
2349
2351
|
/* @__PURE__ */ l(
|
|
2350
|
-
|
|
2352
|
+
L1,
|
|
2351
2353
|
{
|
|
2352
2354
|
mode: i.mode,
|
|
2353
2355
|
draft: i.draft,
|
|
@@ -2357,7 +2359,7 @@ function H1({ mode: a, initialDraft: t, domainCode: n }) {
|
|
|
2357
2359
|
}
|
|
2358
2360
|
),
|
|
2359
2361
|
/* @__PURE__ */ l(
|
|
2360
|
-
|
|
2362
|
+
T1,
|
|
2361
2363
|
{
|
|
2362
2364
|
draft: i.draft,
|
|
2363
2365
|
graph: i.graph,
|
|
@@ -2368,7 +2370,7 @@ function H1({ mode: a, initialDraft: t, domainCode: n }) {
|
|
|
2368
2370
|
}
|
|
2369
2371
|
),
|
|
2370
2372
|
/* @__PURE__ */ l(
|
|
2371
|
-
|
|
2373
|
+
b1,
|
|
2372
2374
|
{
|
|
2373
2375
|
mode: a,
|
|
2374
2376
|
draft: i.draft,
|
|
@@ -2385,10 +2387,10 @@ function H1({ mode: a, initialDraft: t, domainCode: n }) {
|
|
|
2385
2387
|
export {
|
|
2386
2388
|
Ue as I,
|
|
2387
2389
|
$e as R,
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2390
|
+
J1 as S,
|
|
2391
|
+
ct as a,
|
|
2392
|
+
dt as b,
|
|
2393
|
+
mt as c,
|
|
2394
|
+
L1 as d,
|
|
2395
|
+
F1 as u
|
|
2394
2396
|
};
|