@yuku123/z-cognition-component 2.0.2 → 2.0.4
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/BaseInput-rxw05EpT.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DqK04lTb.js +12 -0
- package/dist-lib/Collapse-D9XOithE.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-DnGmqa7C.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-VzQrhleP.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BuFXTevS.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-D1RvQXGM.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-DlxcvD0O.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-CabJdV6W.js} +46 -46
- package/dist-lib/{ai-DYDhijtn.js → ai-DZ6fqUyK.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-CYSU7UlK.js} +13 -14
- package/dist-lib/ak-manage-MTp2UyyK.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-F9OYS1Ov.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-DDEl02-L.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-CcC1rvys.js} +48 -49
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-_axkM_DR.js} +128 -130
- package/dist-lib/callSuper-CuPJalb0.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-BPLw60Ia.js +76 -0
- package/dist-lib/causal-CcWolsb5.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/changelog-DC6nlUDh.js +103 -0
- package/dist-lib/chat-panel-CgpP4Xf5.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-CZ3CzVcA.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-BsFEfaVs.js} +1 -1
- package/dist-lib/community-D9mD_Tq1.js +217 -0
- package/dist-lib/community-ESJc4qtl.js +70 -0
- package/dist-lib/community-material-page-Ct5uMwhv.js +747 -0
- package/dist-lib/connections-DrxmCfe3.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/{detail-Cx5c4KJH.js → detail-DXOJf57e.js} +39 -40
- package/dist-lib/detail-kPAVlzm3.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-lGslEB8s.js} +5847 -7224
- package/dist-lib/development-aLXXcLcF.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DFOEFvX6.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-BbtVK23D.js} +200 -204
- package/dist-lib/{editor-mtaJBQXz.js → editor-DbLQFOUf.js} +25 -26
- package/dist-lib/editor-page-B_H0fRAI.js +1169 -0
- package/dist-lib/embed-BUaR8PAn.js +51816 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-8Tx-3UQh.js} +14 -15
- package/dist-lib/execution-Dz5dBEFl.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DacHEbKr.js +640 -0
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B6G8CZ1v.js +915 -0
- package/dist-lib/index-BDWjubAD.js +390 -0
- package/dist-lib/{index-BEjXaDfk.js → index-BI-rknta.js} +53 -54
- package/dist-lib/index-BLGPH51v.js +251 -0
- package/dist-lib/index-BMv3kGDG.js +236 -0
- package/dist-lib/{index-CHBNrCMy.js → index-BOB3j3H_.js} +29 -29
- package/dist-lib/index-BU2GXuww.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-BWmgE7bB.js +2075 -0
- package/dist-lib/{index-B57Fj7Y0.js → index-Be_iqVpx.js} +50 -52
- package/dist-lib/{index-y7jVGGI0.js → index-Bf8IQq4A.js} +21 -23
- package/dist-lib/{index-DsuUGhTA.js → index-Bi7O9pQv.js} +177 -179
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/{index-DBlG9uXV.js → index-Bt9F-2Fl.js} +520 -597
- package/dist-lib/{index-Cj4DDWyj.js → index-BtW_nQBU.js} +10 -11
- package/dist-lib/{index-CyKWCYMK.js → index-BuGHtvxH.js} +81 -84
- package/dist-lib/{index-Bc-Vin3j.js → index-CDxeB8C4.js} +47 -49
- package/dist-lib/index-CNBwau86.js +1166 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-CS6H40rM.js} +24 -25
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-o65vKUwa.js → index-CSoMwNHq.js} +82 -83
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/index-CdNxm2We.js +1987 -0
- package/dist-lib/{index-DMTPsTna.js → index-CjFA5T3K.js} +3 -4
- package/dist-lib/{index-Bm1sK-VN.js → index-D23tZfhi.js} +10 -10
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/index-D7nLwQye.js +5012 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/{index-BwVZgt5s.js → index-DR9LGJpi.js} +46 -48
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DTgboCiF.js +566 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-Vu6sPBci.js → index-Ddx6XQu5.js} +285 -280
- package/dist-lib/index-Di2bQwQn.js +242 -0
- package/dist-lib/{index-Cy9i4Kx7.js → index-DlqhOJnd.js} +101 -105
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/{index-CLTfICbf.js → index-GQGXGr9M.js} +6 -6
- package/dist-lib/{index-nQSVLWfW.js → index-IB3GOib9.js} +81 -83
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-Pcxp_AYe.js +1719 -0
- package/dist-lib/{index-ounfql2z.js → index-QkktEus5.js} +25 -27
- package/dist-lib/{index-B22_2Dzh.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-D3GHtSlM.js → index-jHh-ITBK.js} +28 -29
- package/dist-lib/index-keRQ37lH.js +853 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-BSlCGnzo.js → index-n6hK1r_G.js} +12 -12
- package/dist-lib/index-qYfXuLnZ.js +34 -0
- package/dist-lib/index-yPMzsLHL.js +77 -0
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-Bu-gFb6c.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-DsXpXfNT.js} +64 -63
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-D8hsAHI5.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-D2XMD7iI.js} +111 -111
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-BoBR8-j-.js} +52 -53
- package/dist-lib/login-B4C374Y_.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-ROKlyMXg.js} +156 -160
- package/dist-lib/material-CqtPqoZj.js +204 -0
- package/dist-lib/material-draft-markdown-BKlKt3pc.js +443 -0
- package/dist-lib/material-original-preview-pzANkVK5.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-BUpogooV.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +8 -0
- package/dist-lib/memory-spaces-CZGIBlz2.js +2340 -0
- package/dist-lib/{message-BrooQ3Q7.js → message-Chq3cAdy.js} +24 -25
- package/dist-lib/{message-Dievi8Jw.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-xTNmTS9g.js → messages-DciGawgR.js} +15 -16
- package/dist-lib/meta-BWgVxZgd.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/mobile-CNrK04Ak.js +2413 -0
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-BpUJZCht.js} +8 -8
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-CaTKbDI1.js} +4 -4
- package/dist-lib/{my-access-CEGErUgv.js → my-access-ZH5CWVGF.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-edhi0lav.js} +22 -23
- package/dist-lib/navigation-2WdPUP2T.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-Dq6mvU2w.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-BX6X1X2J.js} +50 -52
- package/dist-lib/ontology-dataprep-BjMnFRBG.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-B7AuwW8S.js} +100 -103
- package/dist-lib/ontology-extract-FpJ6K8z6.js +295 -0
- package/dist-lib/ontology-extract-wbvBwGZO.js +3199 -0
- package/dist-lib/ontology-flow-CJsIvS35.js +456 -0
- package/dist-lib/ontology-flow-Cgi8Fk-i.js +154 -0
- package/dist-lib/ontology-modeling-C_6GvHBT.js +15136 -0
- package/dist-lib/ontology-modeling-CeDS1-FE.js +510 -0
- package/dist-lib/ontology-scenarios-4Ar7Y8Kt.js +675 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-BaYN82pv.js} +1289 -1305
- package/dist-lib/ontology-task-config-CDt7NdIq.js +122 -0
- package/dist-lib/ontology-terms-CnFarWZX.js +66 -0
- package/dist-lib/ontology-terms-CxTp2Dcq.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-CNqwhyF3.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-CfByvcqu.js} +8 -8
- package/dist-lib/progress-ImhDvynO.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-B38BWyPo.js} +4 -3
- package/dist-lib/row-DeVE0t_N.js +154 -0
- package/dist-lib/runs-ILSUwEOv.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-7v1SRE7V.js} +43 -45
- package/dist-lib/scenario-simple-form-mFm6f2ho.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-DzB9rZrm.js} +8 -8
- package/dist-lib/script-CKdVDsYh.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CaihqQtz.js} +121 -121
- package/dist-lib/{shared-CTCzvhyE.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-By3A0Dc1.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-sIKyG7xR.js} +16 -16
- package/dist-lib/sources-DvIMColY.js +279 -0
- package/dist-lib/style-BHQZmWlH.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-CoPFj_FN.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-BJgEEFrT.js} +3 -4
- package/dist-lib/templates-CODaf2QI.js +58 -0
- package/dist-lib/tenant-login-DmN4qfah.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CyRz1Ofg.js} +14 -14
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-BuD99GTw.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-Cbd3Jggb.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-B8dF3ifo.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-BZkiMeaN.js} +9 -9
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-HdMlbpbO.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-BYoxw4GV.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-CMNXQf8J.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import * as Ce from "react";
|
|
3
|
-
import { useState as g, useCallback as
|
|
4
|
-
import { A as Be,
|
|
5
|
-
import { f as Ie } from "./format-
|
|
6
|
-
import { T as
|
|
7
|
-
import { F as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { T as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as
|
|
16
|
-
import { createPortal as kn } from "react-dom";
|
|
17
|
-
import { u as wn } from "./use-escape-key-4SZ4l7av.js";
|
|
18
|
-
import { b as $n } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
3
|
+
import { useState as g, useCallback as Re, useEffect as me, useMemo as _, useRef as De, useLayoutEffect as Ve, Suspense as qe, lazy as Te, Fragment as Je } from "react";
|
|
4
|
+
import { a6 as Ue, a7 as Qe, an as Xe, ao as de, aq as Ze, aJ as Ye, a5 as en, ap as nn, A as Be, dL as an, g as tn, j as on, I as h, D as B, dM as ln, dN as sn, dO as rn, h as dn, B as ze, w as Fe, x as Ge, dP as cn, dQ as mn, d8 as un, a as hn, e as pn, dh as bn, dR as gn } from "./embed-BUaR8PAn.js";
|
|
5
|
+
import { f as Ie } from "./format-CWI99NCN.js";
|
|
6
|
+
import { T as fn } from "./index-DR9LGJpi.js";
|
|
7
|
+
import { F as U } from "./index-Bt9F-2Fl.js";
|
|
8
|
+
import { M as Nn } from "./index-yPMzsLHL.js";
|
|
9
|
+
import { I as Ne } from "./index-CNBwau86.js";
|
|
10
|
+
import { T as vn } from "./index-Be_iqVpx.js";
|
|
11
|
+
import { S as yn } from "./index-BLGPH51v.js";
|
|
12
|
+
import { T as Cn } from "./index-fVCVIu8I.js";
|
|
13
|
+
import { u as kn } from "./use-domain-access-BuD99GTw.js";
|
|
14
|
+
import { createPortal as wn } from "react-dom";
|
|
15
|
+
import { u as $n } from "./use-escape-key-4SZ4l7av.js";
|
|
19
16
|
const En = (n) => {
|
|
20
17
|
const {
|
|
21
18
|
componentCls: t
|
|
@@ -45,7 +42,7 @@ const En = (n) => {
|
|
|
45
42
|
verticalMarginInline: r
|
|
46
43
|
} = n;
|
|
47
44
|
return {
|
|
48
|
-
[t]: Object.assign(Object.assign({},
|
|
45
|
+
[t]: Object.assign(Object.assign({}, Xe(n)), {
|
|
49
46
|
borderBlockStart: `${de(s)} solid ${i}`,
|
|
50
47
|
// vertical
|
|
51
48
|
"&-vertical": {
|
|
@@ -176,8 +173,8 @@ const En = (n) => {
|
|
|
176
173
|
textPaddingInline: "1em",
|
|
177
174
|
orientationMargin: 0.05,
|
|
178
175
|
verticalMarginInline: n.marginXS
|
|
179
|
-
}), On =
|
|
180
|
-
const t =
|
|
176
|
+
}), On = Ue("Divider", (n) => {
|
|
177
|
+
const t = Qe(n, {
|
|
181
178
|
dividerHorizontalWithTextGutterMargin: n.margin,
|
|
182
179
|
sizePaddingEdgeHorizontal: 0
|
|
183
180
|
});
|
|
@@ -203,7 +200,7 @@ const zn = {
|
|
|
203
200
|
direction: c,
|
|
204
201
|
className: i,
|
|
205
202
|
style: s
|
|
206
|
-
} =
|
|
203
|
+
} = Ze("divider"), {
|
|
207
204
|
prefixCls: b,
|
|
208
205
|
type: m = "horizontal",
|
|
209
206
|
orientation: r = "center",
|
|
@@ -216,26 +213,26 @@ const zn = {
|
|
|
216
213
|
plain: Q,
|
|
217
214
|
style: oe,
|
|
218
215
|
size: W
|
|
219
|
-
} = n, le = Dn(n, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "variant", "plain", "style", "size"]), w = t("divider", b), [D, M, P] = On(w),
|
|
216
|
+
} = n, le = Dn(n, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "variant", "plain", "style", "size"]), w = t("divider", b), [D, M, P] = On(w), j = Ye(W), R = zn[j], F = !!k, y = Ce.useMemo(() => r === "left" ? c === "rtl" ? "end" : "start" : r === "right" ? c === "rtl" ? "start" : "end" : r, [c, r]), K = y === "start" && d != null, H = y === "end" && d != null, T = en(w, i, M, P, `${w}-${m}`, {
|
|
220
217
|
[`${w}-with-text`]: F,
|
|
221
218
|
[`${w}-with-text-${y}`]: F,
|
|
222
219
|
[`${w}-dashed`]: !!f,
|
|
223
220
|
[`${w}-${x}`]: x !== "solid",
|
|
224
221
|
[`${w}-plain`]: !!Q,
|
|
225
222
|
[`${w}-rtl`]: c === "rtl",
|
|
226
|
-
[`${w}-no-default-orientation-margin-start`]:
|
|
223
|
+
[`${w}-no-default-orientation-margin-start`]: K,
|
|
227
224
|
[`${w}-no-default-orientation-margin-end`]: H,
|
|
228
|
-
[`${w}-${
|
|
225
|
+
[`${w}-${R}`]: !!R
|
|
229
226
|
}, v, $), G = Ce.useMemo(() => typeof d == "number" ? d : /^\d+$/.test(d) ? Number(d) : d, [d]), L = {
|
|
230
|
-
marginInlineStart:
|
|
227
|
+
marginInlineStart: K ? G : void 0,
|
|
231
228
|
marginInlineEnd: H ? G : void 0
|
|
232
229
|
};
|
|
233
230
|
if (process.env.NODE_ENV !== "production") {
|
|
234
|
-
const z =
|
|
231
|
+
const z = nn("Divider");
|
|
235
232
|
process.env.NODE_ENV !== "production" && z(!k || m !== "vertical", "usage", "`children` not working in `vertical` mode.");
|
|
236
233
|
}
|
|
237
234
|
return D(/* @__PURE__ */ Ce.createElement("div", Object.assign({
|
|
238
|
-
className:
|
|
235
|
+
className: T,
|
|
239
236
|
style: Object.assign(Object.assign({}, s), oe)
|
|
240
237
|
}, le, {
|
|
241
238
|
role: "separator"
|
|
@@ -249,18 +246,18 @@ const ce = (n) => n.name || n.staffNo || n.principalId, Se = (n) => n.name || n.
|
|
|
249
246
|
function An({ status: n }) {
|
|
250
247
|
return n === 1 ? /* @__PURE__ */ e("span", { className: "tag green sm", children: "正常" }) : n === 0 ? /* @__PURE__ */ e("span", { className: "tag gray sm", children: "停用" }) : /* @__PURE__ */ e("span", { className: "muted", children: "—" });
|
|
251
248
|
}
|
|
252
|
-
function
|
|
249
|
+
function Rn({
|
|
253
250
|
domain: n,
|
|
254
251
|
open: t,
|
|
255
252
|
onClose: c
|
|
256
253
|
}) {
|
|
257
|
-
const { message: i } = Be.useApp(), [s, b] = g("DIRECT"), [m, r] = g(""), [d, v] = g("all"), [$, k] = g([]), [f, x] = g(!1), [Q, oe] = g(!1), [W, le] = g(0), [w, D] = g(null), [M, P] = g(null), [
|
|
254
|
+
const { message: i } = Be.useApp(), [s, b] = g("DIRECT"), [m, r] = g(""), [d, v] = g("all"), [$, k] = g([]), [f, x] = g(!1), [Q, oe] = g(!1), [W, le] = g(0), [w, D] = g(null), [M, P] = g(null), [j, R] = g(!1), [F, y] = g([]), [K, H] = g(!1), [T, G] = g(""), [L, z] = g(null), [X, u] = g("READ"), [N, S] = g(!1), E = Re(() => le((l) => l + 1), []);
|
|
258
255
|
me(() => {
|
|
259
256
|
if (!t)
|
|
260
257
|
return;
|
|
261
258
|
let l = !0;
|
|
262
259
|
return x(!0), (async () => {
|
|
263
|
-
const a = await
|
|
260
|
+
const a = await an(n.domainCode);
|
|
264
261
|
l && (oe(a === void 0), k(a ?? []), x(!1));
|
|
265
262
|
})(), () => {
|
|
266
263
|
l = !1;
|
|
@@ -269,7 +266,7 @@ function Tn({
|
|
|
269
266
|
const Z = async (l) => {
|
|
270
267
|
H(!0);
|
|
271
268
|
try {
|
|
272
|
-
const a = await
|
|
269
|
+
const a = await ln(n.domainCode, l.trim());
|
|
273
270
|
y(a ?? []);
|
|
274
271
|
} finally {
|
|
275
272
|
H(!1);
|
|
@@ -279,26 +276,26 @@ function Tn({
|
|
|
279
276
|
[$]
|
|
280
277
|
), V = _(() => {
|
|
281
278
|
const l = s === "DIRECT" ? I : q, a = m.trim();
|
|
282
|
-
return l.filter((p) => d !== "all" && p.role !== d ? !1 : a ?
|
|
279
|
+
return l.filter((p) => d !== "all" && p.role !== d ? !1 : a ? tn(a, p.name, p.staffNo, p.dept, p.principalId) : !0);
|
|
283
280
|
}, [s, I, q, m, d]), Y = _(() => {
|
|
284
281
|
const l = new Set(I.map((a) => a.principalId));
|
|
285
282
|
return F.filter((a) => !l.has(a.principalId));
|
|
286
283
|
}, [F, I]), se = async (l, a) => {
|
|
287
284
|
S(!0);
|
|
288
285
|
try {
|
|
289
|
-
return await
|
|
286
|
+
return await rn(n.domainCode, l, a) ? (i.success(`已授予 ${l.length} 人${B[a]}权限`), E(), !0) : !1;
|
|
290
287
|
} finally {
|
|
291
288
|
S(!1);
|
|
292
289
|
}
|
|
293
290
|
}, ee = async () => {
|
|
294
|
-
|
|
291
|
+
R(!0), z(null), G(""), u("READ"), await Z("");
|
|
295
292
|
}, he = async () => {
|
|
296
293
|
if (!L)
|
|
297
294
|
return;
|
|
298
295
|
const l = Y.find((p) => p.principalId === L);
|
|
299
296
|
await se([L], X) && (i.success(
|
|
300
297
|
`已加入 ${l ? Se(l) : "成员"} · ${B[X]}`
|
|
301
|
-
),
|
|
298
|
+
), R(!1), y([]), z(null));
|
|
302
299
|
}, ie = async (l, a) => {
|
|
303
300
|
if (l.role === a)
|
|
304
301
|
return;
|
|
@@ -308,7 +305,7 @@ function Tn({
|
|
|
308
305
|
if (l) {
|
|
309
306
|
S(!0);
|
|
310
307
|
try {
|
|
311
|
-
await
|
|
308
|
+
await sn(n.domainCode, l.principalId) && (i.success(`已停用${ce(l)}`), P(null), D(null), E());
|
|
312
309
|
} finally {
|
|
313
310
|
S(!1);
|
|
314
311
|
}
|
|
@@ -336,7 +333,7 @@ function Tn({
|
|
|
336
333
|
/* @__PURE__ */ e("th", {})
|
|
337
334
|
] }) }),
|
|
338
335
|
/* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: 8, children: /* @__PURE__ */ e("span", { className: "note", children: "正在加载成员…" }) }) }) : V.length ? V.map((l) => /* @__PURE__ */ e(
|
|
339
|
-
|
|
336
|
+
Tn,
|
|
340
337
|
{
|
|
341
338
|
record: l,
|
|
342
339
|
saving: N,
|
|
@@ -354,7 +351,7 @@ function Tn({
|
|
|
354
351
|
] }) }) }) })
|
|
355
352
|
] }) });
|
|
356
353
|
return /* @__PURE__ */ e(
|
|
357
|
-
|
|
354
|
+
on,
|
|
358
355
|
{
|
|
359
356
|
icon: "users",
|
|
360
357
|
title: `「${n.name}」成员管理`,
|
|
@@ -411,7 +408,7 @@ function Tn({
|
|
|
411
408
|
] })
|
|
412
409
|
] })
|
|
413
410
|
] }),
|
|
414
|
-
|
|
411
|
+
j ? /* @__PURE__ */ o("div", { className: "member-add", children: [
|
|
415
412
|
/* @__PURE__ */ o("div", { className: "row gap-6 member-add-bar", children: [
|
|
416
413
|
/* @__PURE__ */ o("div", { className: "input-icon", children: [
|
|
417
414
|
/* @__PURE__ */ e(h, { name: "search", size: 13 }),
|
|
@@ -420,10 +417,10 @@ function Tn({
|
|
|
420
417
|
{
|
|
421
418
|
className: "input",
|
|
422
419
|
placeholder: "搜索姓名或工号",
|
|
423
|
-
value:
|
|
420
|
+
value: T,
|
|
424
421
|
onChange: (l) => G(l.target.value),
|
|
425
422
|
onKeyDown: (l) => {
|
|
426
|
-
l.key === "Enter" && Z(
|
|
423
|
+
l.key === "Enter" && Z(T);
|
|
427
424
|
}
|
|
428
425
|
}
|
|
429
426
|
)
|
|
@@ -433,8 +430,8 @@ function Tn({
|
|
|
433
430
|
{
|
|
434
431
|
className: "btn sm",
|
|
435
432
|
type: "button",
|
|
436
|
-
disabled:
|
|
437
|
-
onClick: () => void Z(
|
|
433
|
+
disabled: K,
|
|
434
|
+
onClick: () => void Z(T),
|
|
438
435
|
children: [
|
|
439
436
|
/* @__PURE__ */ e(h, { name: "search", size: 12 }),
|
|
440
437
|
"搜索"
|
|
@@ -473,13 +470,13 @@ function Tn({
|
|
|
473
470
|
className: "btn sm ghost",
|
|
474
471
|
type: "button",
|
|
475
472
|
onClick: () => {
|
|
476
|
-
|
|
473
|
+
R(!1), y([]), z(null);
|
|
477
474
|
},
|
|
478
475
|
children: "取消"
|
|
479
476
|
}
|
|
480
477
|
)
|
|
481
478
|
] }),
|
|
482
|
-
/* @__PURE__ */ e("div", { className: "candidate-list mt-8", children:
|
|
479
|
+
/* @__PURE__ */ e("div", { className: "candidate-list mt-8", children: K ? /* @__PURE__ */ e("span", { className: "note", children: "正在检索候选人员…" }) : Y.length ? Y.map((l) => /* @__PURE__ */ o(
|
|
483
480
|
"button",
|
|
484
481
|
{
|
|
485
482
|
type: "button",
|
|
@@ -577,7 +574,7 @@ function Tn({
|
|
|
577
574
|
}
|
|
578
575
|
);
|
|
579
576
|
}
|
|
580
|
-
function
|
|
577
|
+
function Tn({
|
|
581
578
|
record: n,
|
|
582
579
|
saving: t,
|
|
583
580
|
detailOpen: c,
|
|
@@ -632,7 +629,7 @@ function Rn({
|
|
|
632
629
|
onClick: b,
|
|
633
630
|
children: /* @__PURE__ */ e(h, { name: "pause", size: 13 })
|
|
634
631
|
}
|
|
635
|
-
) : /* @__PURE__ */ e(
|
|
632
|
+
) : /* @__PURE__ */ e(fn, { title: `继承成员不可在此停用,请到来源域 ${$} 处理`, children: /* @__PURE__ */ e("button", { className: "icon-btn", type: "button", disabled: !0, "aria-label": "停用", children: /* @__PURE__ */ e(h, { name: "pause", size: 13 }) }) })
|
|
636
633
|
] }) })
|
|
637
634
|
] }),
|
|
638
635
|
c ? /* @__PURE__ */ e("tr", { className: "member-detail-row", children: /* @__PURE__ */ e("td", { colSpan: 8, children: /* @__PURE__ */ o("dl", { className: "kv", children: [
|
|
@@ -662,7 +659,7 @@ function Mn({
|
|
|
662
659
|
scope: i,
|
|
663
660
|
onClose: s
|
|
664
661
|
}) {
|
|
665
|
-
const [b] =
|
|
662
|
+
const [b] = U.useForm(), [m, r] = g(!1);
|
|
666
663
|
me(() => {
|
|
667
664
|
if (n) {
|
|
668
665
|
if (t) {
|
|
@@ -696,7 +693,7 @@ function Mn({
|
|
|
696
693
|
}
|
|
697
694
|
}, v = t ? `修改域「${t.name}」` : c ? `新建子域(父域:${c.name})` : "新建本体域";
|
|
698
695
|
return /* @__PURE__ */ e(
|
|
699
|
-
|
|
696
|
+
Nn,
|
|
700
697
|
{
|
|
701
698
|
open: n,
|
|
702
699
|
title: v,
|
|
@@ -704,9 +701,9 @@ function Mn({
|
|
|
704
701
|
width: 520,
|
|
705
702
|
onCancel: s,
|
|
706
703
|
destroyOnHidden: !0,
|
|
707
|
-
children: /* @__PURE__ */ o(
|
|
708
|
-
t ? /* @__PURE__ */ e(
|
|
709
|
-
|
|
704
|
+
children: /* @__PURE__ */ o(U, { form: b, layout: "vertical", requiredMark: !1, children: [
|
|
705
|
+
t ? /* @__PURE__ */ e(U.Item, { label: "域编码", children: /* @__PURE__ */ e(Ne, { value: t.domainCode, disabled: !0 }) }) : /* @__PURE__ */ e(
|
|
706
|
+
U.Item,
|
|
710
707
|
{
|
|
711
708
|
name: "domainCode",
|
|
712
709
|
label: "域编码",
|
|
@@ -721,17 +718,17 @@ function Mn({
|
|
|
721
718
|
children: /* @__PURE__ */ e(Ne, { placeholder: "例如 OPD", autoComplete: "off" })
|
|
722
719
|
}
|
|
723
720
|
),
|
|
724
|
-
t ? null : c ? /* @__PURE__ */ e(
|
|
725
|
-
|
|
721
|
+
t ? null : c ? /* @__PURE__ */ e(U.Item, { label: "父域", children: /* @__PURE__ */ e(Ne, { value: `${c.name}(${c.domainCode})`, disabled: !0 }) }) : /* @__PURE__ */ e(
|
|
722
|
+
U.Item,
|
|
726
723
|
{
|
|
727
724
|
name: "kind",
|
|
728
725
|
label: "所属分类",
|
|
729
726
|
extra: "经营过程域不挂子域;业务对象与专业知识可递归挂子域",
|
|
730
|
-
children: /* @__PURE__ */ e(
|
|
727
|
+
children: /* @__PURE__ */ e(dn, { options: xn })
|
|
731
728
|
}
|
|
732
729
|
),
|
|
733
730
|
/* @__PURE__ */ e(
|
|
734
|
-
|
|
731
|
+
U.Item,
|
|
735
732
|
{
|
|
736
733
|
name: "name",
|
|
737
734
|
label: "域名称",
|
|
@@ -739,10 +736,10 @@ function Mn({
|
|
|
739
736
|
children: /* @__PURE__ */ e(Ne, { placeholder: "例如 门诊", maxLength: 255, autoComplete: "off" })
|
|
740
737
|
}
|
|
741
738
|
),
|
|
742
|
-
/* @__PURE__ */ e(
|
|
743
|
-
/* @__PURE__ */ e(
|
|
739
|
+
/* @__PURE__ */ e(U.Item, { name: "description", label: "域说明", children: /* @__PURE__ */ e(Ne.TextArea, { rows: 2, maxLength: 500, placeholder: "选填" }) }),
|
|
740
|
+
/* @__PURE__ */ e(U.Item, { name: "sortOrder", label: "展示顺序", children: /* @__PURE__ */ e(vn, { min: 0, max: 9999, style: { width: 120 } }) }),
|
|
744
741
|
/* @__PURE__ */ e(_e, { style: { margin: "8px 0 12px" } }),
|
|
745
|
-
/* @__PURE__ */ o(
|
|
742
|
+
/* @__PURE__ */ o(yn, { children: [
|
|
746
743
|
/* @__PURE__ */ e(ze, { type: "primary", loading: m, onClick: () => void d(), children: "保存" }),
|
|
747
744
|
/* @__PURE__ */ e(ze, { onClick: s, children: "取消" })
|
|
748
745
|
] })
|
|
@@ -793,12 +790,12 @@ function Ae(n, t) {
|
|
|
793
790
|
});
|
|
794
791
|
}
|
|
795
792
|
const te = (n) => (n ?? "").trim().toUpperCase();
|
|
796
|
-
function
|
|
793
|
+
function je(n, t, c, i) {
|
|
797
794
|
const s = [];
|
|
798
795
|
return n.forEach((b, m) => {
|
|
799
796
|
s.push({ node: b, level: t, tail: m === n.length - 1 });
|
|
800
797
|
const r = b.record.domainCode;
|
|
801
|
-
b.children.length && (i || !c.has(r)) && s.push(...
|
|
798
|
+
b.children.length && (i || !c.has(r)) && s.push(...je(b.children, t + 1, c, i));
|
|
802
799
|
}), s;
|
|
803
800
|
}
|
|
804
801
|
function Bn({ scope: n }) {
|
|
@@ -813,7 +810,7 @@ function Bn({ scope: n }) {
|
|
|
813
810
|
(S = x.current) != null && S.contains(N.target) || s(!1);
|
|
814
811
|
};
|
|
815
812
|
return document.addEventListener("pointerdown", u), () => document.removeEventListener("pointerdown", u);
|
|
816
|
-
}, [i]),
|
|
813
|
+
}, [i]), $n(() => s(!1), i), me(() => {
|
|
817
814
|
if (!i) {
|
|
818
815
|
m("");
|
|
819
816
|
return;
|
|
@@ -829,13 +826,13 @@ function Bn({ scope: n }) {
|
|
|
829
826
|
[n.domains]
|
|
830
827
|
), D = n.domains.find(
|
|
831
828
|
(u) => te(u.domainCode) === te(n.currentCode)
|
|
832
|
-
), M = (D == null ? void 0 : D.myRole) || "NONE", P =
|
|
829
|
+
), M = (D == null ? void 0 : D.myRole) || "NONE", P = Re(
|
|
833
830
|
(u) => {
|
|
834
831
|
const N = te(u.parentCode);
|
|
835
832
|
return !!(N && w.has(N));
|
|
836
833
|
},
|
|
837
834
|
[w]
|
|
838
|
-
),
|
|
835
|
+
), j = D ? P(D) : !1, R = n.scope === "ANCESTORS", F = b.trim().toLowerCase(), y = F.length > 0, K = _(() => Ae(n.domains, F), [n.domains, F]), H = K.reduce((u, N) => u + N.total, 0), T = P, G = (u) => {
|
|
839
836
|
d((N) => {
|
|
840
837
|
const S = new Set(N);
|
|
841
838
|
return S.has(u) ? S.delete(u) : S.add(u), S;
|
|
@@ -851,14 +848,14 @@ function Bn({ scope: n }) {
|
|
|
851
848
|
}
|
|
852
849
|
$(!0);
|
|
853
850
|
try {
|
|
854
|
-
if (!await
|
|
851
|
+
if (!await mn(u.domainCode))
|
|
855
852
|
return;
|
|
856
853
|
n.select(u.domainCode), s(!1);
|
|
857
854
|
} finally {
|
|
858
855
|
$(!1);
|
|
859
856
|
}
|
|
860
857
|
}, z = ({ node: u, level: N, tail: S }) => {
|
|
861
|
-
const { record: E, children: Z } = u, I = E.domainCode, q = te(I) === te(n.currentCode), V = E.canEnter === !1, Y = xe(E), se = ue.find((A) => A.key === Y) ?? ue[1], ee = !y && r.has(I), he = oe[I], ie = W[I], pe =
|
|
858
|
+
const { record: E, children: Z } = u, I = E.domainCode, q = te(I) === te(n.currentCode), V = E.canEnter === !1, Y = xe(E), se = ue.find((A) => A.key === Y) ?? ue[1], ee = !y && r.has(I), he = oe[I], ie = W[I], pe = T(E) && cn(I) === "ANCESTORS", be = N === 0 ? `根域 · ${I} · ${E.tagCount} 类 · ${E.edgeCount} 关系` : `${I} · ${E.tagCount} 类 · ${E.edgeCount} 关系 · ${E.scenarioCount} 场景`;
|
|
862
859
|
return /* @__PURE__ */ o(
|
|
863
860
|
"div",
|
|
864
861
|
{
|
|
@@ -965,22 +962,22 @@ function Bn({ scope: n }) {
|
|
|
965
962
|
" 个"
|
|
966
963
|
] })
|
|
967
964
|
] }),
|
|
968
|
-
/* @__PURE__ */ e("div", { className: "od-dom-list", role: "listbox", "aria-label": "本体域", children: H ?
|
|
969
|
-
(u) =>
|
|
965
|
+
/* @__PURE__ */ e("div", { className: "od-dom-list", role: "listbox", "aria-label": "本体域", children: H ? K.map(
|
|
966
|
+
(u) => je(u.branches, 0, r, y).map(z)
|
|
970
967
|
) : /* @__PURE__ */ e("div", { className: "od-dom-empty", children: "无匹配的本体域" }) }),
|
|
971
968
|
/* @__PURE__ */ e("div", { className: "od-dom-foot", children: "三根内置根域:经营过程、业务对象、专业知识;子域挂在业务对象与专业知识下, 缩进体现层级。带锁的域无权限,只能申请;可读域可申请更高权限。" })
|
|
972
969
|
] }) : null,
|
|
973
|
-
|
|
970
|
+
j ? /* @__PURE__ */ o(
|
|
974
971
|
"button",
|
|
975
972
|
{
|
|
976
973
|
type: "button",
|
|
977
|
-
className: `od-scope-btn${
|
|
978
|
-
"aria-pressed":
|
|
979
|
-
title:
|
|
980
|
-
onClick: () => n.setScope(
|
|
974
|
+
className: `od-scope-btn${R ? " on" : ""}`,
|
|
975
|
+
"aria-pressed": R,
|
|
976
|
+
title: R ? "可见范围:本域 + 上级(只读);点击收起,回到仅本域" : "可见范围:仅本域;点击开启「含上级可见」,上级内容只读",
|
|
977
|
+
onClick: () => n.setScope(R ? "SELF" : "ANCESTORS"),
|
|
981
978
|
children: [
|
|
982
979
|
/* @__PURE__ */ e(h, { name: "eye", size: 12 }),
|
|
983
|
-
/* @__PURE__ */ e("span", { children:
|
|
980
|
+
/* @__PURE__ */ e("span", { children: R ? "含上级可见" : "仅本域" })
|
|
984
981
|
]
|
|
985
982
|
}
|
|
986
983
|
) : null,
|
|
@@ -1022,7 +1019,7 @@ function Bn({ scope: n }) {
|
|
|
1022
1019
|
}
|
|
1023
1020
|
) : null
|
|
1024
1021
|
] });
|
|
1025
|
-
return t ?
|
|
1022
|
+
return t ? wn(X, t) : X;
|
|
1026
1023
|
}
|
|
1027
1024
|
const Fn = [
|
|
1028
1025
|
"overview",
|
|
@@ -1055,12 +1052,12 @@ const Fn = [
|
|
|
1055
1052
|
{ key: "sources", label: "数据源" },
|
|
1056
1053
|
{ key: "datasets", label: "数据集" },
|
|
1057
1054
|
{ key: "collection", label: "采集任务" }
|
|
1058
|
-
],
|
|
1055
|
+
], jn = Te(() => import("./ontology-BX6X1X2J.js")), Kn = Te(() => import("./ontology-scenarios-BaYN82pv.js")), Hn = Te(() => import("./ontology-modeling-C_6GvHBT.js"));
|
|
1059
1056
|
function Vn(n) {
|
|
1060
1057
|
return Fn.find((t) => t === n) ?? "overview";
|
|
1061
1058
|
}
|
|
1062
1059
|
function qn({ view: n, onChangeView: t, scope: c }) {
|
|
1063
|
-
const i =
|
|
1060
|
+
const i = kn(), [s, b] = g("sources"), m = (f) => {
|
|
1064
1061
|
const x = _n[f];
|
|
1065
1062
|
return !x || i.can(x);
|
|
1066
1063
|
}, r = m(n) ? n : "overview";
|
|
@@ -1086,7 +1083,7 @@ function qn({ view: n, onChangeView: t, scope: c }) {
|
|
|
1086
1083
|
return /* @__PURE__ */ o("div", { className: "od-work", children: [
|
|
1087
1084
|
/* @__PURE__ */ e(Bn, { scope: c }),
|
|
1088
1085
|
/* @__PURE__ */ e(
|
|
1089
|
-
|
|
1086
|
+
Cn,
|
|
1090
1087
|
{
|
|
1091
1088
|
ariaLabel: "本体管理视图",
|
|
1092
1089
|
items: $,
|
|
@@ -1113,7 +1110,7 @@ function qn({ view: n, onChangeView: t, scope: c }) {
|
|
|
1113
1110
|
qe,
|
|
1114
1111
|
{
|
|
1115
1112
|
fallback: /* @__PURE__ */ e("div", { className: "od-work-state", role: "status", children: "正在加载视图…" }),
|
|
1116
|
-
children: r === "overview" ? /* @__PURE__ */ e(
|
|
1113
|
+
children: r === "overview" ? /* @__PURE__ */ e(jn, { onGoModeling: () => t("workbench") }) : r === "scenario" ? /* @__PURE__ */ e(Kn, { embedded: !0 }) : /* @__PURE__ */ e(
|
|
1117
1114
|
Hn,
|
|
1118
1115
|
{
|
|
1119
1116
|
embedded: {
|
|
@@ -1126,7 +1123,7 @@ function qn({ view: n, onChangeView: t, scope: c }) {
|
|
|
1126
1123
|
) })
|
|
1127
1124
|
] });
|
|
1128
1125
|
}
|
|
1129
|
-
const
|
|
1126
|
+
const Jn = {
|
|
1130
1127
|
NONE: "gray",
|
|
1131
1128
|
READ: "green",
|
|
1132
1129
|
MANAGE: "blue"
|
|
@@ -1135,15 +1132,15 @@ function ke(n, t) {
|
|
|
1135
1132
|
const c = new URLSearchParams();
|
|
1136
1133
|
return n && c.set("domain", n), t && t !== "overview" && c.set("view", t), c;
|
|
1137
1134
|
}
|
|
1138
|
-
function
|
|
1139
|
-
const n =
|
|
1135
|
+
function da() {
|
|
1136
|
+
const n = un(), { can: t } = hn(), { modal: c } = Be.useApp(), [i, s] = pn(), b = t("ontology.schema.manage"), { pending: m, pendingRoles: r, markPending: d } = Fe(!0), [v, $] = g(""), [k, f] = g("ALL"), [x, Q] = g(/* @__PURE__ */ new Set()), [oe, W] = g(!1), [le, w] = g(null), [D, M] = g(null), [P, j] = g(null), [R, F] = g(null), y = (i.get("domain") ?? "").trim(), K = ye(y), H = Vn(i.get("view")), T = y ? n.domains.find((a) => ye(a.domainCode) === K) : void 0, G = !n.loading && !n.failed, L = !!y && G && !!T && (T == null ? void 0 : T.canEnter) !== !1, z = De({ param: "", code: "" });
|
|
1140
1137
|
me(() => {
|
|
1141
1138
|
if (!y) {
|
|
1142
1139
|
z.current = { param: "", code: "" };
|
|
1143
1140
|
return;
|
|
1144
1141
|
}
|
|
1145
1142
|
if (z.current.param !== y) {
|
|
1146
|
-
z.current = { param: y, code: y },
|
|
1143
|
+
z.current = { param: y, code: y }, bn(y);
|
|
1147
1144
|
return;
|
|
1148
1145
|
}
|
|
1149
1146
|
if (z.current.code !== (n.currentCode ?? "")) {
|
|
@@ -1153,9 +1150,9 @@ function ua() {
|
|
|
1153
1150
|
z.current = { param: p, code: p }, s(ke(p), { replace: !0 });
|
|
1154
1151
|
}
|
|
1155
1152
|
}, [y, n.currentCode, n.loading, s]), me(() => {
|
|
1156
|
-
!y || !G ||
|
|
1157
|
-
}, [y, G,
|
|
1158
|
-
const X =
|
|
1153
|
+
!y || !G || T && T.canEnter !== !1 || (z.current = { param: "", code: "" }, s(ke(""), { replace: !0 }));
|
|
1154
|
+
}, [y, G, T, s]);
|
|
1155
|
+
const X = Re(
|
|
1159
1156
|
(a) => {
|
|
1160
1157
|
s(ke(y, a), { replace: !0 });
|
|
1161
1158
|
},
|
|
@@ -1189,12 +1186,12 @@ function ua() {
|
|
|
1189
1186
|
});
|
|
1190
1187
|
}, ie = (a) => {
|
|
1191
1188
|
if (a.canEnter === !1) {
|
|
1192
|
-
|
|
1189
|
+
j(a);
|
|
1193
1190
|
return;
|
|
1194
1191
|
}
|
|
1195
1192
|
n.select(a.domainCode), z.current = { param: a.domainCode, code: a.domainCode }, s(ke(a.domainCode));
|
|
1196
1193
|
}, pe = async (a) => {
|
|
1197
|
-
const p = await
|
|
1194
|
+
const p = await gn(a.domainCode), O = p ? `对象类型 ${p.tagCount} · 关系类型 ${p.edgeCount} · 场景 ${p.scenarioCount}` : "引用统计获取失败,仍可尝试删除";
|
|
1198
1195
|
c.confirm({
|
|
1199
1196
|
title: `删除域「${a.name}」`,
|
|
1200
1197
|
content: `删除后该域下的结构不再可见,且不可恢复。当前引用:${O};仍有子域或引用时服务端会拒绝删除并说明原因。`,
|
|
@@ -1237,7 +1234,7 @@ function ua() {
|
|
|
1237
1234
|
{
|
|
1238
1235
|
type: "button",
|
|
1239
1236
|
className: `od-act-btn${O === "NONE" ? " primary" : " ghost"}`,
|
|
1240
|
-
onClick: () =>
|
|
1237
|
+
onClick: () => j(a),
|
|
1241
1238
|
children: O === "NONE" ? "申请" : "申请更高权限"
|
|
1242
1239
|
}
|
|
1243
1240
|
),
|
|
@@ -1281,8 +1278,8 @@ function ua() {
|
|
|
1281
1278
|
] });
|
|
1282
1279
|
}, A = (a, p, O) => {
|
|
1283
1280
|
var Pe;
|
|
1284
|
-
const { record: C, children: ne } = a, ae = C.myRole || "NONE", ge = ae === "NONE", re = xe(C), fe = !N && x.has(C.domainCode), Ee = !ye(C.parentCode) && ye(C.domainCode) === re,
|
|
1285
|
-
return /* @__PURE__ */ o(
|
|
1281
|
+
const { record: C, children: ne } = a, ae = C.myRole || "NONE", ge = ae === "NONE", re = xe(C), fe = !N && x.has(C.domainCode), Ee = !ye(C.parentCode) && ye(C.domainCode) === re, Ke = ((Pe = ue.find((J) => J.key === re)) == null ? void 0 : Pe.icon) ?? "package";
|
|
1282
|
+
return /* @__PURE__ */ o(Je, { children: [
|
|
1286
1283
|
/* @__PURE__ */ o(
|
|
1287
1284
|
"div",
|
|
1288
1285
|
{
|
|
@@ -1291,8 +1288,8 @@ function ua() {
|
|
|
1291
1288
|
tabIndex: 0,
|
|
1292
1289
|
"aria-label": ge ? `${C.name}:无权限,回车或点击发起权限申请` : void 0,
|
|
1293
1290
|
onClick: () => ie(C),
|
|
1294
|
-
onKeyDown: (
|
|
1295
|
-
(
|
|
1291
|
+
onKeyDown: (J) => {
|
|
1292
|
+
(J.key === "Enter" || J.key === " ") && (J.preventDefault(), ie(C));
|
|
1296
1293
|
},
|
|
1297
1294
|
children: [
|
|
1298
1295
|
/* @__PURE__ */ o("div", { className: "od-name-cell", children: [
|
|
@@ -1303,8 +1300,8 @@ function ua() {
|
|
|
1303
1300
|
className: `od-caret${fe ? " folded" : ""}`,
|
|
1304
1301
|
"aria-expanded": !fe,
|
|
1305
1302
|
"aria-label": fe ? "展开子域" : "收起子域",
|
|
1306
|
-
onClick: (
|
|
1307
|
-
|
|
1303
|
+
onClick: (J) => {
|
|
1304
|
+
J.stopPropagation(), he(C.domainCode);
|
|
1308
1305
|
},
|
|
1309
1306
|
children: /* @__PURE__ */ e(h, { name: "chevron-down", size: 12 })
|
|
1310
1307
|
}
|
|
@@ -1313,14 +1310,14 @@ function ua() {
|
|
|
1313
1310
|
"span",
|
|
1314
1311
|
{
|
|
1315
1312
|
className: `od-row-ico${Ee ? ` kind-${re}` : ""}`,
|
|
1316
|
-
children: /* @__PURE__ */ e(h, { name: Ee ?
|
|
1313
|
+
children: /* @__PURE__ */ e(h, { name: Ee ? Ke : C.builtIn ? "database" : "package", size: 15 })
|
|
1317
1314
|
}
|
|
1318
1315
|
),
|
|
1319
1316
|
/* @__PURE__ */ o("div", { className: "od-row-main", children: [
|
|
1320
1317
|
/* @__PURE__ */ o("div", { className: "od-row-head", children: [
|
|
1321
1318
|
ge ? /* @__PURE__ */ e("span", { className: "od-lock", children: /* @__PURE__ */ e(h, { name: "lock", size: 12 }) }) : null,
|
|
1322
1319
|
/* @__PURE__ */ e("span", { className: "od-row-name", title: C.name, children: C.name }),
|
|
1323
|
-
/* @__PURE__ */ e("span", { className: `tag ${
|
|
1320
|
+
/* @__PURE__ */ e("span", { className: `tag ${Jn[ae]}`, children: B[ae] }),
|
|
1324
1321
|
Ee ? /* @__PURE__ */ o("span", { className: "tag blue", children: [
|
|
1325
1322
|
Pn[re],
|
|
1326
1323
|
"根域"
|
|
@@ -1346,7 +1343,7 @@ function ua() {
|
|
|
1346
1343
|
}
|
|
1347
1344
|
),
|
|
1348
1345
|
fe ? null : ne.map(
|
|
1349
|
-
(
|
|
1346
|
+
(J, He) => A(J, p + 1, He === ne.length - 1)
|
|
1350
1347
|
)
|
|
1351
1348
|
] }, C.domainCode);
|
|
1352
1349
|
};
|
|
@@ -1448,16 +1445,16 @@ function ua() {
|
|
|
1448
1445
|
{
|
|
1449
1446
|
domain: P,
|
|
1450
1447
|
currentRole: P.myRole || "NONE",
|
|
1451
|
-
onClose: () =>
|
|
1448
|
+
onClose: () => j(null),
|
|
1452
1449
|
onDone: (a) => {
|
|
1453
|
-
d(P.domainCode, a.code, a.bizRole),
|
|
1450
|
+
d(P.domainCode, a.code, a.bizRole), j(null);
|
|
1454
1451
|
}
|
|
1455
1452
|
}
|
|
1456
1453
|
) : null,
|
|
1457
|
-
|
|
1458
|
-
|
|
1454
|
+
R ? /* @__PURE__ */ e(
|
|
1455
|
+
Rn,
|
|
1459
1456
|
{
|
|
1460
|
-
domain:
|
|
1457
|
+
domain: R,
|
|
1461
1458
|
open: !0,
|
|
1462
1459
|
onClose: () => F(null)
|
|
1463
1460
|
}
|
|
@@ -1465,5 +1462,5 @@ function ua() {
|
|
|
1465
1462
|
] });
|
|
1466
1463
|
}
|
|
1467
1464
|
export {
|
|
1468
|
-
|
|
1465
|
+
da as default
|
|
1469
1466
|
};
|