@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,14 +1,14 @@
|
|
|
1
|
-
import { jsx as e, jsxs as n, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import { q as Fe, s as Ve, c as
|
|
4
|
-
import { c as He, a as
|
|
5
|
-
import { e as
|
|
6
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { j as ye, I as g, a as ft, g as Ke, t as Y, k as vt, z as Nt, y as yt, N as Ct, u as Se, O as $e, P as Ze, Q as Te, r as It, K as kt, q as wt, p as Mt, T as Be } from "./embed-BUaR8PAn.js";
|
|
3
|
+
import { q as Fe, s as Ve, c as At, u as $t, a as Oe, r as Tt, d as Et, l as Rt } from "./kbTeam-D8hsAHI5.js";
|
|
4
|
+
import { c as He, a as xt, b as zt, l as Kt, r as Pt, m as St } from "./changelog-DC6nlUDh.js";
|
|
5
|
+
import { e as Dt, K as qe } from "./kb-form-modal-DsXpXfNT.js";
|
|
6
|
+
import { u as Lt } from "./use-current-tenant-otPCQ3X8.js";
|
|
7
|
+
import { useState as p, useCallback as Ee, useEffect as H, useRef as De, useMemo as Z, useId as _t } from "react";
|
|
7
8
|
import { u as Bt } from "./use-split-width-SsLqbGjr.js";
|
|
8
9
|
import { H as We } from "./index-mmwKYfDC.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import { f as
|
|
11
|
-
import { u as Le } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
10
|
+
import { a as Je, R as je } from "./member-CCTFfLDC.js";
|
|
11
|
+
import { f as Le } from "./format-CWI99NCN.js";
|
|
12
12
|
function Ft({
|
|
13
13
|
version: t,
|
|
14
14
|
onClose: a,
|
|
@@ -24,7 +24,7 @@ function Ft({
|
|
|
24
24
|
width: 640,
|
|
25
25
|
onClose: a,
|
|
26
26
|
footLeft: "已记录到本机",
|
|
27
|
-
footRight: /* @__PURE__ */ n(
|
|
27
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
28
28
|
/* @__PURE__ */ e("button", { className: "btn ghost", type: "button", onClick: a, children: "知道了" }),
|
|
29
29
|
/* @__PURE__ */ e("button", { className: "btn primary", type: "button", onClick: r, children: "查看全部更新" })
|
|
30
30
|
] }),
|
|
@@ -42,7 +42,7 @@ function Ft({
|
|
|
42
42
|
" 个变更要点"
|
|
43
43
|
] }),
|
|
44
44
|
/* @__PURE__ */ n("span", { children: [
|
|
45
|
-
|
|
45
|
+
xt(t),
|
|
46
46
|
" 个提交"
|
|
47
47
|
] })
|
|
48
48
|
] })
|
|
@@ -57,7 +57,7 @@ function Ft({
|
|
|
57
57
|
/* @__PURE__ */ n("b", { children: [
|
|
58
58
|
o.title,
|
|
59
59
|
" ",
|
|
60
|
-
/* @__PURE__ */ e("span", { className: `tag ${
|
|
60
|
+
/* @__PURE__ */ e("span", { className: `tag ${zt(o.category)} sm`, children: o.category })
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ e("small", { children: o.detail || "" })
|
|
63
63
|
] })
|
|
@@ -81,7 +81,7 @@ function Ft({
|
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const Ue = {
|
|
85
85
|
TEAM_ADMIN: "团队管理员",
|
|
86
86
|
TEAM_MEMBER: "团队成员"
|
|
87
87
|
};
|
|
@@ -92,7 +92,7 @@ function Vt(t) {
|
|
|
92
92
|
t.employeeId
|
|
93
93
|
].filter(Boolean).join(" · ");
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ye({
|
|
96
96
|
mode: t,
|
|
97
97
|
team: a,
|
|
98
98
|
onClose: r,
|
|
@@ -100,7 +100,7 @@ function Ue({
|
|
|
100
100
|
}) {
|
|
101
101
|
const { context: o } = ft(), i = (a == null ? void 0 : a.teamId) || "", [y, h] = p((a == null ? void 0 : a.name) || ""), [c, v] = p((a == null ? void 0 : a.code) || ""), [A, b] = p(
|
|
102
102
|
(a == null ? void 0 : a.visibility) || "PRIVATE"
|
|
103
|
-
), [u, k] = p((a == null ? void 0 : a.description) || ""), [x, f] = p([]), [T, w] = p([]), [z,
|
|
103
|
+
), [u, k] = p((a == null ? void 0 : a.description) || ""), [x, f] = p([]), [T, w] = p([]), [z, S] = p(""), [V, D] = p(""), [j, $] = p(!1), [X, M] = p("TEAM_MEMBER"), [I, ee] = p(t === "settings"), [U, te] = p((a == null ? void 0 : a.kbCount) ?? 0), [re, K] = p(""), [oe, de] = p(!1), [pe, B] = p(!1), Q = Ee(async () => {
|
|
104
104
|
if (!i)
|
|
105
105
|
return;
|
|
106
106
|
const s = await Fe(i);
|
|
@@ -141,18 +141,18 @@ function Ue({
|
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
K(""), de(!0);
|
|
144
|
-
const E = t === "create" ? await
|
|
144
|
+
const E = t === "create" ? await At({
|
|
145
145
|
name: s,
|
|
146
146
|
code: N,
|
|
147
147
|
description: u.trim(),
|
|
148
148
|
visibility: A
|
|
149
|
-
}) : await
|
|
149
|
+
}) : await $t({
|
|
150
150
|
teamId: i,
|
|
151
151
|
name: s,
|
|
152
152
|
description: u.trim(),
|
|
153
153
|
visibility: A
|
|
154
154
|
});
|
|
155
|
-
de(!1), E !== void 0 && (
|
|
155
|
+
de(!1), E !== void 0 && (Y(
|
|
156
156
|
t === "create" ? "团队已创建" : "团队设置已保存",
|
|
157
157
|
`${E.name} · ${E.visibility === "PUBLIC" ? "公开团队" : "私密团队"}`,
|
|
158
158
|
"success"
|
|
@@ -164,11 +164,11 @@ function Ue({
|
|
|
164
164
|
memberId: s.memberId,
|
|
165
165
|
role: N
|
|
166
166
|
});
|
|
167
|
-
B(!1), E !== void 0 && (
|
|
167
|
+
B(!1), E !== void 0 && (Y("团队角色已更新", `${s.name || s.memberId} · ${Ue[N]}`), await Q());
|
|
168
168
|
}, be = async (s) => {
|
|
169
169
|
B(!0);
|
|
170
|
-
const N = await
|
|
171
|
-
B(!1), N !== void 0 && (
|
|
170
|
+
const N = await Tt(i, s.memberId);
|
|
171
|
+
B(!1), N !== void 0 && (Y("已移除成员", s.name || String(s.memberId)), await Q(), await O(z));
|
|
172
172
|
}, ae = () => {
|
|
173
173
|
D(""), $(!0), O(z);
|
|
174
174
|
}, ge = (s) => {
|
|
@@ -182,21 +182,21 @@ function Ue({
|
|
|
182
182
|
memberId: F.principalId,
|
|
183
183
|
role: X
|
|
184
184
|
});
|
|
185
|
-
B(!1), s !== void 0 && (
|
|
185
|
+
B(!1), s !== void 0 && (Y(
|
|
186
186
|
"已加入团队",
|
|
187
|
-
`${F.name || F.principalId} · ${
|
|
188
|
-
), D(""), await
|
|
187
|
+
`${F.name || F.principalId} · ${Ue[X]}`
|
|
188
|
+
), D(""), await Q(), await O(z));
|
|
189
189
|
}, fe = x.filter((s) => s.role === "TEAM_ADMIN").length, Ce = async () => {
|
|
190
|
-
if (!(
|
|
190
|
+
if (!(U > 0 || !await vt({
|
|
191
191
|
title: "删除团队",
|
|
192
192
|
sub: `删除后「${(a == null ? void 0 : a.name) || ""}」的成员关系会一并清理,审计记录保留。`,
|
|
193
193
|
confirmText: "删除团队"
|
|
194
194
|
}))) {
|
|
195
195
|
K(""), de(!0);
|
|
196
196
|
try {
|
|
197
|
-
if (await
|
|
197
|
+
if (await Et(i, { rethrow: !0 }) === void 0)
|
|
198
198
|
return;
|
|
199
|
-
|
|
199
|
+
Y("团队已删除", a == null ? void 0 : a.name, "success"), d();
|
|
200
200
|
} catch (N) {
|
|
201
201
|
K(N.message || "删除失败");
|
|
202
202
|
} finally {
|
|
@@ -211,15 +211,15 @@ function Ue({
|
|
|
211
211
|
/* @__PURE__ */ n("div", { className: "team-member-row", children: [
|
|
212
212
|
/* @__PURE__ */ n("div", { className: "nc", children: [
|
|
213
213
|
/* @__PURE__ */ e("b", { children: "删除团队" }),
|
|
214
|
-
/* @__PURE__ */ e("small", { children:
|
|
214
|
+
/* @__PURE__ */ e("small", { children: U > 0 ? `团队下还有 ${U} 个知识库,全部迁移出去后才能删除。` : "团队下已没有知识库;删除后成员关系一并清理,审计记录保留。" })
|
|
215
215
|
] }),
|
|
216
216
|
/* @__PURE__ */ n(
|
|
217
217
|
"button",
|
|
218
218
|
{
|
|
219
219
|
className: "btn danger",
|
|
220
220
|
type: "button",
|
|
221
|
-
disabled:
|
|
222
|
-
title:
|
|
221
|
+
disabled: U > 0 || oe,
|
|
222
|
+
title: U > 0 ? "请先把团队下的知识库迁移到其他团队" : void 0,
|
|
223
223
|
onClick: () => void Ce(),
|
|
224
224
|
children: [
|
|
225
225
|
/* @__PURE__ */ e(g, { name: "trash", size: 13 }),
|
|
@@ -294,7 +294,7 @@ function Ue({
|
|
|
294
294
|
"aria-label": "搜索或选择团队成员",
|
|
295
295
|
autoComplete: "off",
|
|
296
296
|
onChange: (s) => {
|
|
297
|
-
|
|
297
|
+
S(s.target.value), D(""), $(!0);
|
|
298
298
|
},
|
|
299
299
|
onFocus: () => $(!0),
|
|
300
300
|
onBlur: () => $(!1),
|
|
@@ -374,7 +374,7 @@ function Ue({
|
|
|
374
374
|
width: t === "create" ? 680 : 760,
|
|
375
375
|
onClose: r,
|
|
376
376
|
footLeft: t === "create" ? "编码创建后只读" : "团队管理员只管理团队本身",
|
|
377
|
-
footRight: /* @__PURE__ */ n(
|
|
377
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
378
378
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "取消" }),
|
|
379
379
|
/* @__PURE__ */ n(
|
|
380
380
|
"button",
|
|
@@ -482,7 +482,7 @@ function Ue({
|
|
|
482
482
|
function et({
|
|
483
483
|
role: t,
|
|
484
484
|
onRoleChange: a,
|
|
485
|
-
roles: r =
|
|
485
|
+
roles: r = Je,
|
|
486
486
|
reason: d,
|
|
487
487
|
onReasonChange: o,
|
|
488
488
|
loading: i,
|
|
@@ -538,7 +538,7 @@ function et({
|
|
|
538
538
|
const Ae = { READER: 1, KB_ADMIN: 2 };
|
|
539
539
|
function Ot(t) {
|
|
540
540
|
const a = Ae[t || ""] || 0;
|
|
541
|
-
return
|
|
541
|
+
return Je.filter((r) => (Ae[r] || 0) > a).sort(
|
|
542
542
|
(r, d) => (Ae[r] || 0) - (Ae[d] || 0)
|
|
543
543
|
);
|
|
544
544
|
}
|
|
@@ -548,11 +548,11 @@ function tt({
|
|
|
548
548
|
onDone: r,
|
|
549
549
|
currentRole: d
|
|
550
550
|
}) {
|
|
551
|
-
const o = Ot(d), [i, y] = p(() => o[0] || "READER"), [h, c] = p(""), [v, A] = p(""), [b, u] = p(0), [k, x] = p(!1), [f, T] = p(!1), [w, z] = p(!1),
|
|
551
|
+
const o = Ot(d), [i, y] = p(() => o[0] || "READER"), [h, c] = p(""), [v, A] = p(""), [b, u] = p(0), [k, x] = p(!1), [f, T] = p(!1), [w, z] = p(!1), S = De(!1);
|
|
552
552
|
H(() => {
|
|
553
|
-
if (!a ||
|
|
553
|
+
if (!a || S.current)
|
|
554
554
|
return;
|
|
555
|
-
|
|
555
|
+
S.current = !0, (async () => {
|
|
556
556
|
var X;
|
|
557
557
|
x(!0), T(!1);
|
|
558
558
|
try {
|
|
@@ -577,13 +577,13 @@ function tt({
|
|
|
577
577
|
reason: h.trim() || void 0,
|
|
578
578
|
resourceCodes: []
|
|
579
579
|
});
|
|
580
|
-
|
|
580
|
+
Y(
|
|
581
581
|
"审批已发起",
|
|
582
582
|
`${$.code} · 已通知${$.currentApproverName || "知识管理者"}`,
|
|
583
583
|
"success"
|
|
584
584
|
), r($);
|
|
585
585
|
} catch ($) {
|
|
586
|
-
|
|
586
|
+
Y("发起审批失败", $ instanceof Error ? $.message : "请稍后重试", "error");
|
|
587
587
|
} finally {
|
|
588
588
|
z(!1);
|
|
589
589
|
}
|
|
@@ -631,7 +631,7 @@ function Ht({
|
|
|
631
631
|
}
|
|
632
632
|
),
|
|
633
633
|
footLeft: /* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
634
|
-
footRight: /* @__PURE__ */ n(
|
|
634
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
635
635
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "取消" }),
|
|
636
636
|
/* @__PURE__ */ n(
|
|
637
637
|
"button",
|
|
@@ -657,7 +657,7 @@ function qt({
|
|
|
657
657
|
onSubmitted: d,
|
|
658
658
|
onOpenTicket: o
|
|
659
659
|
}) {
|
|
660
|
-
const [i, y] = p(!1), h = tt({ kb: t, active: i, onDone: d }), c =
|
|
660
|
+
const [i, y] = p(!1), h = tt({ kb: t, active: i, onDone: d }), c = De(null);
|
|
661
661
|
return H(() => {
|
|
662
662
|
var v;
|
|
663
663
|
i && ((v = c.current) == null || v.focus({ preventScroll: !1 }));
|
|
@@ -675,7 +675,7 @@ function qt({
|
|
|
675
675
|
/* @__PURE__ */ e("b", { title: t.name, children: t.name }),
|
|
676
676
|
/* @__PURE__ */ n("div", { className: `kb-denied-meta${a ? " pending" : ""}`, children: [
|
|
677
677
|
/* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
678
|
-
a ? /* @__PURE__ */ n(
|
|
678
|
+
a ? /* @__PURE__ */ n(G, { children: [
|
|
679
679
|
/* @__PURE__ */ e("span", { className: "kb-denied-sep", "aria-hidden": "true", children: "·" }),
|
|
680
680
|
/* @__PURE__ */ n("span", { className: "kb-denied-note", children: [
|
|
681
681
|
"等待 ",
|
|
@@ -718,10 +718,10 @@ function qt({
|
|
|
718
718
|
}
|
|
719
719
|
)
|
|
720
720
|
] }),
|
|
721
|
-
footRight: a ? /* @__PURE__ */ n(
|
|
721
|
+
footRight: a ? /* @__PURE__ */ n(G, { children: [
|
|
722
722
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "暂不申请" }),
|
|
723
723
|
/* @__PURE__ */ e("button", { className: "btn primary", type: "button", onClick: o, children: "查看进度" })
|
|
724
|
-
] }) : /* @__PURE__ */ n(
|
|
724
|
+
] }) : /* @__PURE__ */ n(G, { children: [
|
|
725
725
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "暂不申请" }),
|
|
726
726
|
i ? /* @__PURE__ */ n(
|
|
727
727
|
"button",
|
|
@@ -755,7 +755,7 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
755
755
|
return;
|
|
756
756
|
y(!0);
|
|
757
757
|
const v = await Ct(t.kbId);
|
|
758
|
-
y(!1), v !== void 0 && (
|
|
758
|
+
y(!1), v !== void 0 && (Y("知识库已删除", t.name, "success"), r());
|
|
759
759
|
};
|
|
760
760
|
return /* @__PURE__ */ e(
|
|
761
761
|
ye,
|
|
@@ -766,7 +766,7 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
766
766
|
width: 620,
|
|
767
767
|
onClose: a,
|
|
768
768
|
footLeft: "删除后编码被改写,记录不再返回列表",
|
|
769
|
-
footRight: /* @__PURE__ */ n(
|
|
769
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
770
770
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: a, children: "取消" }),
|
|
771
771
|
/* @__PURE__ */ n(
|
|
772
772
|
"button",
|
|
@@ -827,15 +827,15 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
827
827
|
}
|
|
828
828
|
);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Ge(t) {
|
|
831
831
|
return t < 10 ? `0${t}` : String(t);
|
|
832
832
|
}
|
|
833
833
|
function jt(t) {
|
|
834
|
-
return `${t.getFullYear()}-${
|
|
834
|
+
return `${t.getFullYear()}-${Ge(t.getMonth() + 1)}-${Ge(
|
|
835
835
|
t.getDate()
|
|
836
836
|
)}`;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Ut(t, a) {
|
|
839
839
|
const r = /* @__PURE__ */ new Map();
|
|
840
840
|
for (const h of t || []) {
|
|
841
841
|
const c = Number(h.count) || 0;
|
|
@@ -854,20 +854,20 @@ function Gt(t, a) {
|
|
|
854
854
|
const y = o.reduce((h, c) => Math.max(h, c.count), 0);
|
|
855
855
|
return { buckets: o, total: i, max: y };
|
|
856
856
|
}
|
|
857
|
-
const nt = 30, Xe = 96,
|
|
858
|
-
function
|
|
859
|
-
const r = (a - Re * 2) / Math.max(t.buckets.length - 1, 1), d =
|
|
857
|
+
const nt = 30, Xe = 96, J = 18, Re = 1, xe = 2;
|
|
858
|
+
function Yt(t, a) {
|
|
859
|
+
const r = (a - Re * 2) / Math.max(t.buckets.length - 1, 1), d = J - xe * 2;
|
|
860
860
|
return t.buckets.map((o, i) => ({
|
|
861
861
|
x: Re + i * r,
|
|
862
|
-
y:
|
|
862
|
+
y: J - xe - (t.max > 0 ? o.count / t.max * d : 0)
|
|
863
863
|
}));
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Gt(t) {
|
|
866
866
|
if (t.length === 0)
|
|
867
867
|
return "";
|
|
868
868
|
if (t.length === 1)
|
|
869
869
|
return `M${t[0].x},${t[0].y}`;
|
|
870
|
-
const a = (d) => Math.min(
|
|
870
|
+
const a = (d) => Math.min(J - xe, Math.max(xe, d));
|
|
871
871
|
let r = `M${t[0].x},${t[0].y}`;
|
|
872
872
|
for (let d = 0; d < t.length - 1; d += 1) {
|
|
873
873
|
const o = t[d - 1] || t[d], i = t[d], y = t[d + 1], h = t[d + 2] || y, c = i.x + (y.x - o.x) / 6, v = a(i.y + (y.y - o.y) / 6), A = y.x - (h.x - i.x) / 6, b = a(y.y - (h.y - i.y) / 6);
|
|
@@ -884,19 +884,19 @@ function at({
|
|
|
884
884
|
unavailable: r = !1,
|
|
885
885
|
spanDays: d = nt
|
|
886
886
|
}) {
|
|
887
|
-
const o = Z(() =>
|
|
887
|
+
const o = Z(() => Ut(t, d), [t, d]), i = `kb-act-${_t().replace(/[^a-zA-Z0-9_-]/g, "")}`, y = De(null), [h, c] = p(Xe);
|
|
888
888
|
H(() => {
|
|
889
889
|
const f = y.current;
|
|
890
890
|
if (!f || typeof ResizeObserver > "u")
|
|
891
891
|
return;
|
|
892
892
|
const T = new ResizeObserver((w) => {
|
|
893
|
-
var
|
|
894
|
-
const z = Math.round(((
|
|
893
|
+
var S;
|
|
894
|
+
const z = Math.round(((S = w[0]) == null ? void 0 : S.contentRect.width) || 0);
|
|
895
895
|
z > 0 && c(Math.max(z, Xe));
|
|
896
896
|
});
|
|
897
897
|
return T.observe(f), () => T.disconnect();
|
|
898
898
|
}, []);
|
|
899
|
-
const v = r ? "活跃度数据暂不可用" : a ? "正在加载活跃度" : `近 ${d} 天共 ${o.total} 次操作`, A = r ? "—" : a ? "…" : `${o.total} 次`, b =
|
|
899
|
+
const v = r ? "活跃度数据暂不可用" : a ? "正在加载活跃度" : `近 ${d} 天共 ${o.total} 次操作`, A = r ? "—" : a ? "…" : `${o.total} 次`, b = Yt(o, h), u = Gt(b), k = (h - Re * 2) / Math.max(o.buckets.length - 1, 1), x = r || o.max === 0;
|
|
900
900
|
return /* @__PURE__ */ n(
|
|
901
901
|
"span",
|
|
902
902
|
{
|
|
@@ -907,8 +907,8 @@ function at({
|
|
|
907
907
|
"svg",
|
|
908
908
|
{
|
|
909
909
|
width: h,
|
|
910
|
-
height:
|
|
911
|
-
viewBox: `0 0 ${h} ${
|
|
910
|
+
height: J,
|
|
911
|
+
viewBox: `0 0 ${h} ${J}`,
|
|
912
912
|
role: "img",
|
|
913
913
|
"aria-label": v,
|
|
914
914
|
children: [
|
|
@@ -921,7 +921,7 @@ function at({
|
|
|
921
921
|
{
|
|
922
922
|
className: "area",
|
|
923
923
|
fill: `url(#${i})`,
|
|
924
|
-
d: `${u} L${b[b.length - 1].x},${
|
|
924
|
+
d: `${u} L${b[b.length - 1].x},${J} L${b[0].x},${J} Z`
|
|
925
925
|
}
|
|
926
926
|
),
|
|
927
927
|
/* @__PURE__ */ e("path", { className: "line", d: u }),
|
|
@@ -941,7 +941,7 @@ function at({
|
|
|
941
941
|
x: Re + T * k - k / 2,
|
|
942
942
|
y: 0,
|
|
943
943
|
width: k,
|
|
944
|
-
height:
|
|
944
|
+
height: J,
|
|
945
945
|
children: /* @__PURE__ */ e("title", { children: `${Xt(f.start)} · ${f.count > 0 ? `${f.count} 次操作` : "无操作"}` })
|
|
946
946
|
},
|
|
947
947
|
f.start
|
|
@@ -958,11 +958,11 @@ const ue = 20;
|
|
|
958
958
|
function q(t) {
|
|
959
959
|
return t.scopeType === "TEAM";
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Pe(t) {
|
|
962
962
|
return !q(t) && t.role != null;
|
|
963
963
|
}
|
|
964
964
|
function _e(t) {
|
|
965
|
-
return q(t) ? `团队 · ${t.teamName || t.teamId || "未知团队"}` :
|
|
965
|
+
return q(t) ? `团队 · ${t.teamName || t.teamId || "未知团队"}` : Pe(t) ? "个人 · 我的" : "个人";
|
|
966
966
|
}
|
|
967
967
|
function lt(t) {
|
|
968
968
|
return t.ownerName || (t.ownerId ? `actorId ${t.ownerId}` : "未知");
|
|
@@ -973,7 +973,7 @@ function st(t) {
|
|
|
973
973
|
function it(t) {
|
|
974
974
|
return t.role === "READER" && !t.canManage;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function Qt({ status: t }) {
|
|
977
977
|
const a = Ze(t);
|
|
978
978
|
return /* @__PURE__ */ n("span", { className: `tag ${a.tag}`, children: [
|
|
979
979
|
/* @__PURE__ */ e("i", { className: "dot" }),
|
|
@@ -994,7 +994,7 @@ function Zt({
|
|
|
994
994
|
onDenied: A
|
|
995
995
|
}) {
|
|
996
996
|
var x;
|
|
997
|
-
const b =
|
|
997
|
+
const b = Se(), u = st(t), k = y;
|
|
998
998
|
return /* @__PURE__ */ n(
|
|
999
999
|
"article",
|
|
1000
1000
|
{
|
|
@@ -1025,7 +1025,7 @@ function Zt({
|
|
|
1025
1025
|
/* @__PURE__ */ e("span", { className: `tag ${u ? t.canManage ? "violet" : "brown" : "gray"}`, children: u ? t.canManage ? "可管理" : "只读" : "无权限" }),
|
|
1026
1026
|
/* @__PURE__ */ e("span", { className: `tag ${q(t) ? "violet" : "gray"}`, children: _e(t) }),
|
|
1027
1027
|
/* @__PURE__ */ e("span", { className: "tag cyan mono", children: t.embeddingModel || "默认模型" }),
|
|
1028
|
-
/* @__PURE__ */ e(
|
|
1028
|
+
/* @__PURE__ */ e(Qt, { status: t.status }),
|
|
1029
1029
|
/* @__PURE__ */ n(
|
|
1030
1030
|
"span",
|
|
1031
1031
|
{
|
|
@@ -1045,7 +1045,7 @@ function Zt({
|
|
|
1045
1045
|
"创建者 · ",
|
|
1046
1046
|
lt(t)
|
|
1047
1047
|
] }),
|
|
1048
|
-
/* @__PURE__ */ e("span", { className: "kb-updated", title: "最近更新", children:
|
|
1048
|
+
/* @__PURE__ */ e("span", { className: "kb-updated", title: "最近更新", children: Le(t.updateTime) })
|
|
1049
1049
|
] }),
|
|
1050
1050
|
/* @__PURE__ */ n("div", { className: "kb-foot", children: [
|
|
1051
1051
|
/* @__PURE__ */ e(
|
|
@@ -1112,7 +1112,7 @@ function Zt({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Qe({
|
|
1116
1116
|
note: t,
|
|
1117
1117
|
pageCount: a,
|
|
1118
1118
|
pageNo: r,
|
|
@@ -1158,7 +1158,7 @@ function Je({
|
|
|
1158
1158
|
] })
|
|
1159
1159
|
] });
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Jt({
|
|
1162
1162
|
pageRecords: t,
|
|
1163
1163
|
favorites: a,
|
|
1164
1164
|
pendingAccess: r,
|
|
@@ -1171,7 +1171,7 @@ function Qt({
|
|
|
1171
1171
|
onRequestAccess: v,
|
|
1172
1172
|
onDenied: A
|
|
1173
1173
|
}) {
|
|
1174
|
-
const b =
|
|
1174
|
+
const b = Se();
|
|
1175
1175
|
return /* @__PURE__ */ n("section", { className: "panel", children: [
|
|
1176
1176
|
/* @__PURE__ */ e("div", { className: "table-wrap", children: /* @__PURE__ */ n("table", { className: "list-table", children: [
|
|
1177
1177
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
@@ -1274,7 +1274,7 @@ function Qt({
|
|
|
1274
1274
|
children: "申请权限"
|
|
1275
1275
|
}
|
|
1276
1276
|
) }),
|
|
1277
|
-
/* @__PURE__ */ e("td", { className: "mono-sm", children:
|
|
1277
|
+
/* @__PURE__ */ e("td", { className: "mono-sm", children: Le(u.updateTime) }),
|
|
1278
1278
|
/* @__PURE__ */ e("td", { className: "col-activity", children: /* @__PURE__ */ e(
|
|
1279
1279
|
at,
|
|
1280
1280
|
{
|
|
@@ -1500,7 +1500,7 @@ function tn({
|
|
|
1500
1500
|
/* @__PURE__ */ e("td", { children: c.myRole === "TEAM_ADMIN" ? /* @__PURE__ */ e("span", { className: "tag violet sm", children: "管理员" }) : c.myRole === "TEAM_MEMBER" ? /* @__PURE__ */ e("span", { className: "tag gray sm", children: "成员" }) : "—" }),
|
|
1501
1501
|
/* @__PURE__ */ e("td", { className: "tnum", children: c.memberCount ?? 0 }),
|
|
1502
1502
|
/* @__PURE__ */ e("td", { className: "tnum", children: c.kbCount ?? 0 }),
|
|
1503
|
-
/* @__PURE__ */ e("td", { className: "mono-sm", children:
|
|
1503
|
+
/* @__PURE__ */ e("td", { className: "mono-sm", children: Le(c.createTime) }),
|
|
1504
1504
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ n("div", { className: "row-actions kb-row-actions", children: [
|
|
1505
1505
|
/* @__PURE__ */ e(
|
|
1506
1506
|
"button",
|
|
@@ -1603,22 +1603,22 @@ function hn(t, a) {
|
|
|
1603
1603
|
}, [a]), { activity: r, activityLoadedKey: o, activityFailedKey: y };
|
|
1604
1604
|
}
|
|
1605
1605
|
function wn() {
|
|
1606
|
-
const t =
|
|
1606
|
+
const t = Se(), a = Lt(), [r] = p(cn), [d, o] = p(
|
|
1607
1607
|
(r == null ? void 0 : r.records) ?? []
|
|
1608
|
-
), [i, y] = p((r == null ? void 0 : r.teams) ?? []), [h, c] = p(!r), [v, A] = p(""), [b, u] = p("personal"), [k, x] = p(""), [f, T] = p("mine"), [w, z] = p(""), [
|
|
1608
|
+
), [i, y] = p((r == null ? void 0 : r.teams) ?? []), [h, c] = p(!r), [v, A] = p(""), [b, u] = p("personal"), [k, x] = p(""), [f, T] = p("mine"), [w, z] = p(""), [S, V] = p("cards"), [D, j] = p(1), [$, X] = p(nn), [M, I] = p(null), [ee, U] = p(
|
|
1609
1609
|
null
|
|
1610
1610
|
), [te, re] = p({}), K = Ee(async (l = {}) => {
|
|
1611
1611
|
l.silent || c(!0), A("");
|
|
1612
1612
|
try {
|
|
1613
1613
|
const [m, C] = await Promise.all([
|
|
1614
|
-
|
|
1614
|
+
wt(
|
|
1615
1615
|
{ current: 1, size: 500, includeInaccessible: !0 },
|
|
1616
1616
|
{ rethrow: !0 }
|
|
1617
1617
|
),
|
|
1618
|
-
|
|
1618
|
+
Rt({ rethrow: !0 }).catch(() => {
|
|
1619
1619
|
})
|
|
1620
|
-
]), R = (m == null ? void 0 : m.records) || [],
|
|
1621
|
-
o(R), y(
|
|
1620
|
+
]), R = (m == null ? void 0 : m.records) || [], P = C || [];
|
|
1621
|
+
o(R), y(P), rn({ records: R, teams: P }), Dt();
|
|
1622
1622
|
} catch (m) {
|
|
1623
1623
|
A(m.message || "服务器错误");
|
|
1624
1624
|
} finally {
|
|
@@ -1631,15 +1631,15 @@ function wn() {
|
|
|
1631
1631
|
an($);
|
|
1632
1632
|
}, [$]), H(() => {
|
|
1633
1633
|
let l = !1;
|
|
1634
|
-
return
|
|
1635
|
-
l || !m || !m.versionCode || m.versionCode !== Pt() && (
|
|
1634
|
+
return Kt().then((m) => {
|
|
1635
|
+
l || !m || !m.versionCode || m.versionCode !== Pt() && (U(m), St(m.versionCode));
|
|
1636
1636
|
}).catch(() => {
|
|
1637
1637
|
}), () => {
|
|
1638
1638
|
l = !0;
|
|
1639
1639
|
};
|
|
1640
1640
|
}, []), H(() => {
|
|
1641
1641
|
let l = !1;
|
|
1642
|
-
return
|
|
1642
|
+
return Mt({ view: "mine", status: "PENDING", size: 100 }).then((m) => {
|
|
1643
1643
|
if (l || !m)
|
|
1644
1644
|
return;
|
|
1645
1645
|
const C = {};
|
|
@@ -1664,24 +1664,24 @@ function wn() {
|
|
|
1664
1664
|
return C !== 0 ? C : String(m.kbId).localeCompare(String(l.kbId));
|
|
1665
1665
|
}),
|
|
1666
1666
|
[d]
|
|
1667
|
-
),
|
|
1667
|
+
), Q = Z(() => {
|
|
1668
1668
|
const l = /* @__PURE__ */ new Map();
|
|
1669
|
-
i.forEach((
|
|
1670
|
-
const ie =
|
|
1671
|
-
ce ? ce.push(
|
|
1669
|
+
i.forEach((P) => {
|
|
1670
|
+
const ie = P.parentTeamId || "", ce = l.get(ie);
|
|
1671
|
+
ce ? ce.push(P) : l.set(ie, [P]);
|
|
1672
1672
|
});
|
|
1673
|
-
const m = [], C = /* @__PURE__ */ new Set(), R = (
|
|
1674
|
-
(l.get(
|
|
1673
|
+
const m = [], C = /* @__PURE__ */ new Set(), R = (P, ie) => {
|
|
1674
|
+
(l.get(P) || []).forEach((ce) => {
|
|
1675
1675
|
C.has(ce.teamId) || (C.add(ce.teamId), m.push({ team: ce, depth: ie }), R(ce.teamId, ie + 1));
|
|
1676
1676
|
});
|
|
1677
1677
|
};
|
|
1678
|
-
return R("", 0), i.filter((
|
|
1678
|
+
return R("", 0), i.filter((P) => !C.has(P.teamId)).sort((P, ie) => P.name.localeCompare(ie.name, "zh")).forEach((P) => m.push({ team: P, depth: 0 })), m;
|
|
1679
1679
|
}, [i]), O = Z(
|
|
1680
1680
|
() => i.find((l) => l.teamId === k),
|
|
1681
1681
|
[k, i]
|
|
1682
1682
|
), F = Z(() => {
|
|
1683
1683
|
const l = w.trim();
|
|
1684
|
-
return l ?
|
|
1684
|
+
return l ? Q.filter(
|
|
1685
1685
|
({ team: m }) => Ke(
|
|
1686
1686
|
l,
|
|
1687
1687
|
m.name,
|
|
@@ -1690,8 +1690,8 @@ function wn() {
|
|
|
1690
1690
|
m.visibility === "PRIVATE" ? "私有团队" : "公开团队",
|
|
1691
1691
|
m.myRole === "TEAM_ADMIN" ? "管理员" : m.myRole === "TEAM_MEMBER" ? "成员" : ""
|
|
1692
1692
|
)
|
|
1693
|
-
) :
|
|
1694
|
-
}, [w,
|
|
1693
|
+
) : Q;
|
|
1694
|
+
}, [w, Q]), L = Z(() => {
|
|
1695
1695
|
if (b === "personal")
|
|
1696
1696
|
return B.filter((m) => !q(m));
|
|
1697
1697
|
if (b === "team") {
|
|
@@ -1712,7 +1712,7 @@ function wn() {
|
|
|
1712
1712
|
}, [k, b, B, i]), _ = Z(
|
|
1713
1713
|
() => ({
|
|
1714
1714
|
total: L.length,
|
|
1715
|
-
mine: L.filter(
|
|
1715
|
+
mine: L.filter(Pe).length,
|
|
1716
1716
|
active: L.filter((l) => l.status === "ACTIVE").length,
|
|
1717
1717
|
archived: L.filter((l) => l.status === "ARCHIVED").length,
|
|
1718
1718
|
managed: L.filter((l) => l.canManage).length,
|
|
@@ -1721,7 +1721,7 @@ function wn() {
|
|
|
1721
1721
|
[$, L]
|
|
1722
1722
|
), ne = Z(() => {
|
|
1723
1723
|
let l = L;
|
|
1724
|
-
f === "mine" ? l = l.filter(
|
|
1724
|
+
f === "mine" ? l = l.filter(Pe) : f === "managed" ? l = l.filter((C) => C.canManage) : f === "favorite" ? l = l.filter((C) => $.includes(C.kbId)) : f !== "all" && (l = l.filter((C) => C.status === f));
|
|
1725
1725
|
const m = w.trim();
|
|
1726
1726
|
return m && (l = l.filter(
|
|
1727
1727
|
(C) => Ke(
|
|
@@ -1745,7 +1745,7 @@ function wn() {
|
|
|
1745
1745
|
le
|
|
1746
1746
|
), ke = (l) => {
|
|
1747
1747
|
const m = ln($, l);
|
|
1748
|
-
X(m),
|
|
1748
|
+
X(m), Y(m.includes(l) ? "已收藏" : "已取消收藏", void 0, "info");
|
|
1749
1749
|
}, s = (l) => {
|
|
1750
1750
|
t(`/knowledge-bases/${encodeURIComponent(l.kbId)}`);
|
|
1751
1751
|
}, N = (l) => /* @__PURE__ */ e(
|
|
@@ -1765,9 +1765,9 @@ function wn() {
|
|
|
1765
1765
|
},
|
|
1766
1766
|
l.kbId
|
|
1767
1767
|
), E = /* @__PURE__ */ e(
|
|
1768
|
-
|
|
1768
|
+
Qe,
|
|
1769
1769
|
{
|
|
1770
|
-
note: /* @__PURE__ */ n(
|
|
1770
|
+
note: /* @__PURE__ */ n(G, { children: [
|
|
1771
1771
|
"共 ",
|
|
1772
1772
|
ne.length,
|
|
1773
1773
|
" 个知识库 · 第 ",
|
|
@@ -1787,9 +1787,9 @@ function wn() {
|
|
|
1787
1787
|
(we - 1) * ue,
|
|
1788
1788
|
we * ue
|
|
1789
1789
|
), ot = /* @__PURE__ */ e(
|
|
1790
|
-
|
|
1790
|
+
Qe,
|
|
1791
1791
|
{
|
|
1792
|
-
note: /* @__PURE__ */ n(
|
|
1792
|
+
note: /* @__PURE__ */ n(G, { children: [
|
|
1793
1793
|
"共 ",
|
|
1794
1794
|
F.length,
|
|
1795
1795
|
" 个团队 · 第 ",
|
|
@@ -1869,8 +1869,8 @@ function wn() {
|
|
|
1869
1869
|
onCreateTeam: () => I({ type: "team-create" }),
|
|
1870
1870
|
onClearKeyword: () => z("")
|
|
1871
1871
|
}
|
|
1872
|
-
) : ne.length ?
|
|
1873
|
-
|
|
1872
|
+
) : ne.length ? S === "cards" ? se = /* @__PURE__ */ e("div", { className: "kb-grid", children: ge.map(N) }) : se = /* @__PURE__ */ e(
|
|
1873
|
+
Jt,
|
|
1874
1874
|
{
|
|
1875
1875
|
pageRecords: ge,
|
|
1876
1876
|
favorites: $,
|
|
@@ -1920,7 +1920,7 @@ function wn() {
|
|
|
1920
1920
|
{
|
|
1921
1921
|
scope: b,
|
|
1922
1922
|
activeTeamId: k,
|
|
1923
|
-
teamRows:
|
|
1923
|
+
teamRows: Q,
|
|
1924
1924
|
personalCount: ht,
|
|
1925
1925
|
teamCount: i.length,
|
|
1926
1926
|
onSwitchScope: me,
|
|
@@ -1972,7 +1972,7 @@ function wn() {
|
|
|
1972
1972
|
/* @__PURE__ */ n(
|
|
1973
1973
|
"button",
|
|
1974
1974
|
{
|
|
1975
|
-
className:
|
|
1975
|
+
className: S === "cards" ? "active" : "",
|
|
1976
1976
|
type: "button",
|
|
1977
1977
|
onClick: () => V("cards"),
|
|
1978
1978
|
children: [
|
|
@@ -1984,7 +1984,7 @@ function wn() {
|
|
|
1984
1984
|
/* @__PURE__ */ n(
|
|
1985
1985
|
"button",
|
|
1986
1986
|
{
|
|
1987
|
-
className:
|
|
1987
|
+
className: S === "table" ? "active" : "",
|
|
1988
1988
|
type: "button",
|
|
1989
1989
|
onClick: () => V("table"),
|
|
1990
1990
|
children: [
|
|
@@ -2021,19 +2021,19 @@ function wn() {
|
|
|
2021
2021
|
/* @__PURE__ */ e(
|
|
2022
2022
|
"div",
|
|
2023
2023
|
{
|
|
2024
|
-
className: `kb-list-results ${b === "teams" ? "table" :
|
|
2024
|
+
className: `kb-list-results ${b === "teams" ? "table" : S}`,
|
|
2025
2025
|
children: se
|
|
2026
2026
|
}
|
|
2027
2027
|
),
|
|
2028
|
-
b !== "teams" && ne.length > 0 &&
|
|
2028
|
+
b !== "teams" && ne.length > 0 && S !== "table" ? E : null
|
|
2029
2029
|
] }),
|
|
2030
2030
|
ee ? /* @__PURE__ */ e(
|
|
2031
2031
|
Ft,
|
|
2032
2032
|
{
|
|
2033
2033
|
version: ee,
|
|
2034
|
-
onClose: () =>
|
|
2034
|
+
onClose: () => U(null),
|
|
2035
2035
|
onOpenAll: () => {
|
|
2036
|
-
|
|
2036
|
+
U(null), t("/admin/changelog");
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
) : null,
|
|
@@ -2062,7 +2062,7 @@ function wn() {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
) : null,
|
|
2064
2064
|
M && M.type === "team-create" ? /* @__PURE__ */ e(
|
|
2065
|
-
|
|
2065
|
+
Ye,
|
|
2066
2066
|
{
|
|
2067
2067
|
mode: "create",
|
|
2068
2068
|
onClose: () => I(null),
|
|
@@ -2072,7 +2072,7 @@ function wn() {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
) : null,
|
|
2074
2074
|
M && M.type === "team-settings" ? /* @__PURE__ */ e(
|
|
2075
|
-
|
|
2075
|
+
Ye,
|
|
2076
2076
|
{
|
|
2077
2077
|
mode: "settings",
|
|
2078
2078
|
team: M.team,
|