@yuku123/z-cognition-component 2.0.2 → 2.0.3
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-DHrGPDB9.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
- package/dist-lib/Collapse-B77SsmFh.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.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-BJ8wnqAa.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-DqyspFCO.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-J_7eBbi7.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-CA30m5eX.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
- package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
- package/dist-lib/ak-manage-DklVFT5I.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
- package/dist-lib/callSuper-CpMOVGin.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-9gqNseEa.js +76 -0
- package/dist-lib/causal-CzAYukj9.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
- package/dist-lib/changelog-sKJMQrlV.js +103 -0
- package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-D_ZE966E.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
- package/dist-lib/community-9_7ExHcm.js +70 -0
- package/dist-lib/community-CfWXxujB.js +217 -0
- package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
- package/dist-lib/connections-Bcqsp11M.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/detail-CV6xp_Jp.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
- package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
- package/dist-lib/development-CFcOIUKc.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
- package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
- package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
- package/dist-lib/embed-mf8t3QXh.js +51841 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
- package/dist-lib/execution-B6HmOA2_.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-DHV-rdiK.js +640 -0
- package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
- package/dist-lib/index-2SysmGHo.js +1166 -0
- package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B12ZggsE.js +77 -0
- package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
- package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
- package/dist-lib/index-BEO8itgt.js +566 -0
- package/dist-lib/index-BPbOPT2j.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-Bd7AGv4a.js +34 -0
- package/dist-lib/index-BkJjYgKD.js +5012 -0
- package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
- package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
- package/dist-lib/index-BoCtPJD4.js +915 -0
- package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/index-BsoHetYT.js +236 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
- package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
- package/dist-lib/index-C2CV4bte.js +242 -0
- package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
- package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
- package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
- package/dist-lib/index-CgwK2maq.js +1987 -0
- package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
- package/dist-lib/index-CvxfA0ZK.js +215 -0
- package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
- package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
- package/dist-lib/index-DKAGVWMX.js +390 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DU6bO95v.js +2075 -0
- package/dist-lib/index-DaMLYomP.js +853 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
- package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-QZ9JPfVR.js +251 -0
- package/dist-lib/index-VeAMz0iC.js +1719 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
- package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-COcz5F2R.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-D9gnvXbE.js} +67 -67
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
- package/dist-lib/login-56zv4aLO.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
- package/dist-lib/material-DtPASeqq.js +204 -0
- package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
- package/dist-lib/material-original-preview-CPGjdmbe.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-QLsU5qUO.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
- package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
- package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
- package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
- package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
- package/dist-lib/meta-DT_O4zM9.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
- package/dist-lib/mobile-D8kZjfQU.js +2413 -0
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
- package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
- package/dist-lib/navigation-DVlyWnpD.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
- package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
- package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
- package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
- package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
- package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
- package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
- package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
- package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
- package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
- package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
- package/dist-lib/ontology-terms-C-NhpcIZ.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-Dq1-AOQw.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-DCNSE--Y.js} +8 -8
- package/dist-lib/progress-CZxOOnIs.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
- package/dist-lib/row-By17TCiW.js +154 -0
- package/dist-lib/runs-DQTDpPaN.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
- package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
- package/dist-lib/script-gYJAFobb.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
- package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
- package/dist-lib/sources-C83LpCcV.js +279 -0
- package/dist-lib/style-B5THvtDY.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
- package/dist-lib/templates-a-kbCamr.js +58 -0
- package/dist-lib/tenant-login-COB-5h_2.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.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-CyKWCYMK.js +0 -218
- 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,13 @@
|
|
|
1
|
-
import { jsx as e, jsxs as n, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import { q as Fe, s as Ve, c as $t, u as Tt, a as Oe, r as Et, d as Rt, l as xt } from "./kbTeam-
|
|
4
|
-
import { c as He, a as zt, b as Kt, l as
|
|
5
|
-
import { e as Lt, K as qe } from "./kb-form-modal-
|
|
6
|
-
import { useState as p, useCallback as Ee, useEffect as H, useRef as
|
|
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, T as wt, q as Mt, p as At, U as Be } from "./embed-mf8t3QXh.js";
|
|
3
|
+
import { q as Fe, s as Ve, c as $t, u as Tt, a as Oe, r as Et, d as Rt, l as xt } from "./kbTeam-CorrPJFr.js";
|
|
4
|
+
import { c as He, a as zt, b as Kt, l as Pt, r as St, m as Dt } from "./changelog-sKJMQrlV.js";
|
|
5
|
+
import { e as Lt, K as qe } from "./kb-form-modal-D9gnvXbE.js";
|
|
6
|
+
import { useState as p, useCallback as Ee, useEffect as H, useRef as De, useMemo as Z, useId as _t } from "react";
|
|
7
7
|
import { u as Bt } from "./use-split-width-SsLqbGjr.js";
|
|
8
8
|
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";
|
|
9
|
+
import { a as Je, R as je } from "./member-Cz-OIdj9.js";
|
|
10
|
+
import { f as Le } from "./format-CWI99NCN.js";
|
|
12
11
|
function Ft({
|
|
13
12
|
version: t,
|
|
14
13
|
onClose: a,
|
|
@@ -24,7 +23,7 @@ function Ft({
|
|
|
24
23
|
width: 640,
|
|
25
24
|
onClose: a,
|
|
26
25
|
footLeft: "已记录到本机",
|
|
27
|
-
footRight: /* @__PURE__ */ n(
|
|
26
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
28
27
|
/* @__PURE__ */ e("button", { className: "btn ghost", type: "button", onClick: a, children: "知道了" }),
|
|
29
28
|
/* @__PURE__ */ e("button", { className: "btn primary", type: "button", onClick: r, children: "查看全部更新" })
|
|
30
29
|
] }),
|
|
@@ -81,7 +80,7 @@ function Ft({
|
|
|
81
80
|
}
|
|
82
81
|
);
|
|
83
82
|
}
|
|
84
|
-
const
|
|
83
|
+
const Ue = {
|
|
85
84
|
TEAM_ADMIN: "团队管理员",
|
|
86
85
|
TEAM_MEMBER: "团队成员"
|
|
87
86
|
};
|
|
@@ -92,7 +91,7 @@ function Vt(t) {
|
|
|
92
91
|
t.employeeId
|
|
93
92
|
].filter(Boolean).join(" · ");
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function Ye({
|
|
96
95
|
mode: t,
|
|
97
96
|
team: a,
|
|
98
97
|
onClose: r,
|
|
@@ -100,7 +99,7 @@ function Ue({
|
|
|
100
99
|
}) {
|
|
101
100
|
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
101
|
(a == null ? void 0 : a.visibility) || "PRIVATE"
|
|
103
|
-
), [u, k] = p((a == null ? void 0 : a.description) || ""), [x, f] = p([]), [T, w] = p([]), [z,
|
|
102
|
+
), [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
103
|
if (!i)
|
|
105
104
|
return;
|
|
106
105
|
const s = await Fe(i);
|
|
@@ -152,7 +151,7 @@ function Ue({
|
|
|
152
151
|
description: u.trim(),
|
|
153
152
|
visibility: A
|
|
154
153
|
});
|
|
155
|
-
de(!1), E !== void 0 && (
|
|
154
|
+
de(!1), E !== void 0 && (Y(
|
|
156
155
|
t === "create" ? "团队已创建" : "团队设置已保存",
|
|
157
156
|
`${E.name} · ${E.visibility === "PUBLIC" ? "公开团队" : "私密团队"}`,
|
|
158
157
|
"success"
|
|
@@ -164,11 +163,11 @@ function Ue({
|
|
|
164
163
|
memberId: s.memberId,
|
|
165
164
|
role: N
|
|
166
165
|
});
|
|
167
|
-
B(!1), E !== void 0 && (
|
|
166
|
+
B(!1), E !== void 0 && (Y("团队角色已更新", `${s.name || s.memberId} · ${Ue[N]}`), await Q());
|
|
168
167
|
}, be = async (s) => {
|
|
169
168
|
B(!0);
|
|
170
169
|
const N = await Et(i, s.memberId);
|
|
171
|
-
B(!1), N !== void 0 && (
|
|
170
|
+
B(!1), N !== void 0 && (Y("已移除成员", s.name || String(s.memberId)), await Q(), await O(z));
|
|
172
171
|
}, ae = () => {
|
|
173
172
|
D(""), $(!0), O(z);
|
|
174
173
|
}, ge = (s) => {
|
|
@@ -182,12 +181,12 @@ function Ue({
|
|
|
182
181
|
memberId: F.principalId,
|
|
183
182
|
role: X
|
|
184
183
|
});
|
|
185
|
-
B(!1), s !== void 0 && (
|
|
184
|
+
B(!1), s !== void 0 && (Y(
|
|
186
185
|
"已加入团队",
|
|
187
|
-
`${F.name || F.principalId} · ${
|
|
188
|
-
), D(""), await
|
|
186
|
+
`${F.name || F.principalId} · ${Ue[X]}`
|
|
187
|
+
), D(""), await Q(), await O(z));
|
|
189
188
|
}, fe = x.filter((s) => s.role === "TEAM_ADMIN").length, Ce = async () => {
|
|
190
|
-
if (!(
|
|
189
|
+
if (!(U > 0 || !await vt({
|
|
191
190
|
title: "删除团队",
|
|
192
191
|
sub: `删除后「${(a == null ? void 0 : a.name) || ""}」的成员关系会一并清理,审计记录保留。`,
|
|
193
192
|
confirmText: "删除团队"
|
|
@@ -196,7 +195,7 @@ function Ue({
|
|
|
196
195
|
try {
|
|
197
196
|
if (await Rt(i, { rethrow: !0 }) === void 0)
|
|
198
197
|
return;
|
|
199
|
-
|
|
198
|
+
Y("团队已删除", a == null ? void 0 : a.name, "success"), d();
|
|
200
199
|
} catch (N) {
|
|
201
200
|
K(N.message || "删除失败");
|
|
202
201
|
} finally {
|
|
@@ -211,15 +210,15 @@ function Ue({
|
|
|
211
210
|
/* @__PURE__ */ n("div", { className: "team-member-row", children: [
|
|
212
211
|
/* @__PURE__ */ n("div", { className: "nc", children: [
|
|
213
212
|
/* @__PURE__ */ e("b", { children: "删除团队" }),
|
|
214
|
-
/* @__PURE__ */ e("small", { children:
|
|
213
|
+
/* @__PURE__ */ e("small", { children: U > 0 ? `团队下还有 ${U} 个知识库,全部迁移出去后才能删除。` : "团队下已没有知识库;删除后成员关系一并清理,审计记录保留。" })
|
|
215
214
|
] }),
|
|
216
215
|
/* @__PURE__ */ n(
|
|
217
216
|
"button",
|
|
218
217
|
{
|
|
219
218
|
className: "btn danger",
|
|
220
219
|
type: "button",
|
|
221
|
-
disabled:
|
|
222
|
-
title:
|
|
220
|
+
disabled: U > 0 || oe,
|
|
221
|
+
title: U > 0 ? "请先把团队下的知识库迁移到其他团队" : void 0,
|
|
223
222
|
onClick: () => void Ce(),
|
|
224
223
|
children: [
|
|
225
224
|
/* @__PURE__ */ e(g, { name: "trash", size: 13 }),
|
|
@@ -294,7 +293,7 @@ function Ue({
|
|
|
294
293
|
"aria-label": "搜索或选择团队成员",
|
|
295
294
|
autoComplete: "off",
|
|
296
295
|
onChange: (s) => {
|
|
297
|
-
|
|
296
|
+
S(s.target.value), D(""), $(!0);
|
|
298
297
|
},
|
|
299
298
|
onFocus: () => $(!0),
|
|
300
299
|
onBlur: () => $(!1),
|
|
@@ -374,7 +373,7 @@ function Ue({
|
|
|
374
373
|
width: t === "create" ? 680 : 760,
|
|
375
374
|
onClose: r,
|
|
376
375
|
footLeft: t === "create" ? "编码创建后只读" : "团队管理员只管理团队本身",
|
|
377
|
-
footRight: /* @__PURE__ */ n(
|
|
376
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
378
377
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "取消" }),
|
|
379
378
|
/* @__PURE__ */ n(
|
|
380
379
|
"button",
|
|
@@ -482,7 +481,7 @@ function Ue({
|
|
|
482
481
|
function et({
|
|
483
482
|
role: t,
|
|
484
483
|
onRoleChange: a,
|
|
485
|
-
roles: r =
|
|
484
|
+
roles: r = Je,
|
|
486
485
|
reason: d,
|
|
487
486
|
onReasonChange: o,
|
|
488
487
|
loading: i,
|
|
@@ -538,7 +537,7 @@ function et({
|
|
|
538
537
|
const Ae = { READER: 1, KB_ADMIN: 2 };
|
|
539
538
|
function Ot(t) {
|
|
540
539
|
const a = Ae[t || ""] || 0;
|
|
541
|
-
return
|
|
540
|
+
return Je.filter((r) => (Ae[r] || 0) > a).sort(
|
|
542
541
|
(r, d) => (Ae[r] || 0) - (Ae[d] || 0)
|
|
543
542
|
);
|
|
544
543
|
}
|
|
@@ -548,11 +547,11 @@ function tt({
|
|
|
548
547
|
onDone: r,
|
|
549
548
|
currentRole: d
|
|
550
549
|
}) {
|
|
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),
|
|
550
|
+
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
551
|
H(() => {
|
|
553
|
-
if (!a ||
|
|
552
|
+
if (!a || S.current)
|
|
554
553
|
return;
|
|
555
|
-
|
|
554
|
+
S.current = !0, (async () => {
|
|
556
555
|
var X;
|
|
557
556
|
x(!0), T(!1);
|
|
558
557
|
try {
|
|
@@ -577,13 +576,13 @@ function tt({
|
|
|
577
576
|
reason: h.trim() || void 0,
|
|
578
577
|
resourceCodes: []
|
|
579
578
|
});
|
|
580
|
-
|
|
579
|
+
Y(
|
|
581
580
|
"审批已发起",
|
|
582
581
|
`${$.code} · 已通知${$.currentApproverName || "知识管理者"}`,
|
|
583
582
|
"success"
|
|
584
583
|
), r($);
|
|
585
584
|
} catch ($) {
|
|
586
|
-
|
|
585
|
+
Y("发起审批失败", $ instanceof Error ? $.message : "请稍后重试", "error");
|
|
587
586
|
} finally {
|
|
588
587
|
z(!1);
|
|
589
588
|
}
|
|
@@ -631,7 +630,7 @@ function Ht({
|
|
|
631
630
|
}
|
|
632
631
|
),
|
|
633
632
|
footLeft: /* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
634
|
-
footRight: /* @__PURE__ */ n(
|
|
633
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
635
634
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "取消" }),
|
|
636
635
|
/* @__PURE__ */ n(
|
|
637
636
|
"button",
|
|
@@ -657,7 +656,7 @@ function qt({
|
|
|
657
656
|
onSubmitted: d,
|
|
658
657
|
onOpenTicket: o
|
|
659
658
|
}) {
|
|
660
|
-
const [i, y] = p(!1), h = tt({ kb: t, active: i, onDone: d }), c =
|
|
659
|
+
const [i, y] = p(!1), h = tt({ kb: t, active: i, onDone: d }), c = De(null);
|
|
661
660
|
return H(() => {
|
|
662
661
|
var v;
|
|
663
662
|
i && ((v = c.current) == null || v.focus({ preventScroll: !1 }));
|
|
@@ -675,7 +674,7 @@ function qt({
|
|
|
675
674
|
/* @__PURE__ */ e("b", { title: t.name, children: t.name }),
|
|
676
675
|
/* @__PURE__ */ n("div", { className: `kb-denied-meta${a ? " pending" : ""}`, children: [
|
|
677
676
|
/* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
678
|
-
a ? /* @__PURE__ */ n(
|
|
677
|
+
a ? /* @__PURE__ */ n(G, { children: [
|
|
679
678
|
/* @__PURE__ */ e("span", { className: "kb-denied-sep", "aria-hidden": "true", children: "·" }),
|
|
680
679
|
/* @__PURE__ */ n("span", { className: "kb-denied-note", children: [
|
|
681
680
|
"等待 ",
|
|
@@ -718,10 +717,10 @@ function qt({
|
|
|
718
717
|
}
|
|
719
718
|
)
|
|
720
719
|
] }),
|
|
721
|
-
footRight: a ? /* @__PURE__ */ n(
|
|
720
|
+
footRight: a ? /* @__PURE__ */ n(G, { children: [
|
|
722
721
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "暂不申请" }),
|
|
723
722
|
/* @__PURE__ */ e("button", { className: "btn primary", type: "button", onClick: o, children: "查看进度" })
|
|
724
|
-
] }) : /* @__PURE__ */ n(
|
|
723
|
+
] }) : /* @__PURE__ */ n(G, { children: [
|
|
725
724
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: r, children: "暂不申请" }),
|
|
726
725
|
i ? /* @__PURE__ */ n(
|
|
727
726
|
"button",
|
|
@@ -755,7 +754,7 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
755
754
|
return;
|
|
756
755
|
y(!0);
|
|
757
756
|
const v = await Ct(t.kbId);
|
|
758
|
-
y(!1), v !== void 0 && (
|
|
757
|
+
y(!1), v !== void 0 && (Y("知识库已删除", t.name, "success"), r());
|
|
759
758
|
};
|
|
760
759
|
return /* @__PURE__ */ e(
|
|
761
760
|
ye,
|
|
@@ -766,7 +765,7 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
766
765
|
width: 620,
|
|
767
766
|
onClose: a,
|
|
768
767
|
footLeft: "删除后编码被改写,记录不再返回列表",
|
|
769
|
-
footRight: /* @__PURE__ */ n(
|
|
768
|
+
footRight: /* @__PURE__ */ n(G, { children: [
|
|
770
769
|
/* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: a, children: "取消" }),
|
|
771
770
|
/* @__PURE__ */ n(
|
|
772
771
|
"button",
|
|
@@ -827,15 +826,15 @@ function Wt({ kb: t, onClose: a, onDeleted: r }) {
|
|
|
827
826
|
}
|
|
828
827
|
);
|
|
829
828
|
}
|
|
830
|
-
function
|
|
829
|
+
function Ge(t) {
|
|
831
830
|
return t < 10 ? `0${t}` : String(t);
|
|
832
831
|
}
|
|
833
832
|
function jt(t) {
|
|
834
|
-
return `${t.getFullYear()}-${
|
|
833
|
+
return `${t.getFullYear()}-${Ge(t.getMonth() + 1)}-${Ge(
|
|
835
834
|
t.getDate()
|
|
836
835
|
)}`;
|
|
837
836
|
}
|
|
838
|
-
function
|
|
837
|
+
function Ut(t, a) {
|
|
839
838
|
const r = /* @__PURE__ */ new Map();
|
|
840
839
|
for (const h of t || []) {
|
|
841
840
|
const c = Number(h.count) || 0;
|
|
@@ -854,20 +853,20 @@ function Gt(t, a) {
|
|
|
854
853
|
const y = o.reduce((h, c) => Math.max(h, c.count), 0);
|
|
855
854
|
return { buckets: o, total: i, max: y };
|
|
856
855
|
}
|
|
857
|
-
const nt = 30, Xe = 96,
|
|
858
|
-
function
|
|
859
|
-
const r = (a - Re * 2) / Math.max(t.buckets.length - 1, 1), d =
|
|
856
|
+
const nt = 30, Xe = 96, J = 18, Re = 1, xe = 2;
|
|
857
|
+
function Yt(t, a) {
|
|
858
|
+
const r = (a - Re * 2) / Math.max(t.buckets.length - 1, 1), d = J - xe * 2;
|
|
860
859
|
return t.buckets.map((o, i) => ({
|
|
861
860
|
x: Re + i * r,
|
|
862
|
-
y:
|
|
861
|
+
y: J - xe - (t.max > 0 ? o.count / t.max * d : 0)
|
|
863
862
|
}));
|
|
864
863
|
}
|
|
865
|
-
function
|
|
864
|
+
function Gt(t) {
|
|
866
865
|
if (t.length === 0)
|
|
867
866
|
return "";
|
|
868
867
|
if (t.length === 1)
|
|
869
868
|
return `M${t[0].x},${t[0].y}`;
|
|
870
|
-
const a = (d) => Math.min(
|
|
869
|
+
const a = (d) => Math.min(J - xe, Math.max(xe, d));
|
|
871
870
|
let r = `M${t[0].x},${t[0].y}`;
|
|
872
871
|
for (let d = 0; d < t.length - 1; d += 1) {
|
|
873
872
|
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 +883,19 @@ function at({
|
|
|
884
883
|
unavailable: r = !1,
|
|
885
884
|
spanDays: d = nt
|
|
886
885
|
}) {
|
|
887
|
-
const o = Z(() =>
|
|
886
|
+
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
887
|
H(() => {
|
|
889
888
|
const f = y.current;
|
|
890
889
|
if (!f || typeof ResizeObserver > "u")
|
|
891
890
|
return;
|
|
892
891
|
const T = new ResizeObserver((w) => {
|
|
893
|
-
var
|
|
894
|
-
const z = Math.round(((
|
|
892
|
+
var S;
|
|
893
|
+
const z = Math.round(((S = w[0]) == null ? void 0 : S.contentRect.width) || 0);
|
|
895
894
|
z > 0 && c(Math.max(z, Xe));
|
|
896
895
|
});
|
|
897
896
|
return T.observe(f), () => T.disconnect();
|
|
898
897
|
}, []);
|
|
899
|
-
const v = r ? "活跃度数据暂不可用" : a ? "正在加载活跃度" : `近 ${d} 天共 ${o.total} 次操作`, A = r ? "—" : a ? "…" : `${o.total} 次`, b =
|
|
898
|
+
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
899
|
return /* @__PURE__ */ n(
|
|
901
900
|
"span",
|
|
902
901
|
{
|
|
@@ -907,8 +906,8 @@ function at({
|
|
|
907
906
|
"svg",
|
|
908
907
|
{
|
|
909
908
|
width: h,
|
|
910
|
-
height:
|
|
911
|
-
viewBox: `0 0 ${h} ${
|
|
909
|
+
height: J,
|
|
910
|
+
viewBox: `0 0 ${h} ${J}`,
|
|
912
911
|
role: "img",
|
|
913
912
|
"aria-label": v,
|
|
914
913
|
children: [
|
|
@@ -921,7 +920,7 @@ function at({
|
|
|
921
920
|
{
|
|
922
921
|
className: "area",
|
|
923
922
|
fill: `url(#${i})`,
|
|
924
|
-
d: `${u} L${b[b.length - 1].x},${
|
|
923
|
+
d: `${u} L${b[b.length - 1].x},${J} L${b[0].x},${J} Z`
|
|
925
924
|
}
|
|
926
925
|
),
|
|
927
926
|
/* @__PURE__ */ e("path", { className: "line", d: u }),
|
|
@@ -941,7 +940,7 @@ function at({
|
|
|
941
940
|
x: Re + T * k - k / 2,
|
|
942
941
|
y: 0,
|
|
943
942
|
width: k,
|
|
944
|
-
height:
|
|
943
|
+
height: J,
|
|
945
944
|
children: /* @__PURE__ */ e("title", { children: `${Xt(f.start)} · ${f.count > 0 ? `${f.count} 次操作` : "无操作"}` })
|
|
946
945
|
},
|
|
947
946
|
f.start
|
|
@@ -958,11 +957,11 @@ const ue = 20;
|
|
|
958
957
|
function q(t) {
|
|
959
958
|
return t.scopeType === "TEAM";
|
|
960
959
|
}
|
|
961
|
-
function
|
|
960
|
+
function Pe(t) {
|
|
962
961
|
return !q(t) && t.role != null;
|
|
963
962
|
}
|
|
964
963
|
function _e(t) {
|
|
965
|
-
return q(t) ? `团队 · ${t.teamName || t.teamId || "未知团队"}` :
|
|
964
|
+
return q(t) ? `团队 · ${t.teamName || t.teamId || "未知团队"}` : Pe(t) ? "个人 · 我的" : "个人";
|
|
966
965
|
}
|
|
967
966
|
function lt(t) {
|
|
968
967
|
return t.ownerName || (t.ownerId ? `actorId ${t.ownerId}` : "未知");
|
|
@@ -973,7 +972,7 @@ function st(t) {
|
|
|
973
972
|
function it(t) {
|
|
974
973
|
return t.role === "READER" && !t.canManage;
|
|
975
974
|
}
|
|
976
|
-
function
|
|
975
|
+
function Qt({ status: t }) {
|
|
977
976
|
const a = Ze(t);
|
|
978
977
|
return /* @__PURE__ */ n("span", { className: `tag ${a.tag}`, children: [
|
|
979
978
|
/* @__PURE__ */ e("i", { className: "dot" }),
|
|
@@ -994,7 +993,7 @@ function Zt({
|
|
|
994
993
|
onDenied: A
|
|
995
994
|
}) {
|
|
996
995
|
var x;
|
|
997
|
-
const b =
|
|
996
|
+
const b = Se(), u = st(t), k = y;
|
|
998
997
|
return /* @__PURE__ */ n(
|
|
999
998
|
"article",
|
|
1000
999
|
{
|
|
@@ -1025,7 +1024,7 @@ function Zt({
|
|
|
1025
1024
|
/* @__PURE__ */ e("span", { className: `tag ${u ? t.canManage ? "violet" : "brown" : "gray"}`, children: u ? t.canManage ? "可管理" : "只读" : "无权限" }),
|
|
1026
1025
|
/* @__PURE__ */ e("span", { className: `tag ${q(t) ? "violet" : "gray"}`, children: _e(t) }),
|
|
1027
1026
|
/* @__PURE__ */ e("span", { className: "tag cyan mono", children: t.embeddingModel || "默认模型" }),
|
|
1028
|
-
/* @__PURE__ */ e(
|
|
1027
|
+
/* @__PURE__ */ e(Qt, { status: t.status }),
|
|
1029
1028
|
/* @__PURE__ */ n(
|
|
1030
1029
|
"span",
|
|
1031
1030
|
{
|
|
@@ -1045,7 +1044,7 @@ function Zt({
|
|
|
1045
1044
|
"创建者 · ",
|
|
1046
1045
|
lt(t)
|
|
1047
1046
|
] }),
|
|
1048
|
-
/* @__PURE__ */ e("span", { className: "kb-updated", title: "最近更新", children:
|
|
1047
|
+
/* @__PURE__ */ e("span", { className: "kb-updated", title: "最近更新", children: Le(t.updateTime) })
|
|
1049
1048
|
] }),
|
|
1050
1049
|
/* @__PURE__ */ n("div", { className: "kb-foot", children: [
|
|
1051
1050
|
/* @__PURE__ */ e(
|
|
@@ -1112,7 +1111,7 @@ function Zt({
|
|
|
1112
1111
|
}
|
|
1113
1112
|
);
|
|
1114
1113
|
}
|
|
1115
|
-
function
|
|
1114
|
+
function Qe({
|
|
1116
1115
|
note: t,
|
|
1117
1116
|
pageCount: a,
|
|
1118
1117
|
pageNo: r,
|
|
@@ -1158,7 +1157,7 @@ function Je({
|
|
|
1158
1157
|
] })
|
|
1159
1158
|
] });
|
|
1160
1159
|
}
|
|
1161
|
-
function
|
|
1160
|
+
function Jt({
|
|
1162
1161
|
pageRecords: t,
|
|
1163
1162
|
favorites: a,
|
|
1164
1163
|
pendingAccess: r,
|
|
@@ -1171,7 +1170,7 @@ function Qt({
|
|
|
1171
1170
|
onRequestAccess: v,
|
|
1172
1171
|
onDenied: A
|
|
1173
1172
|
}) {
|
|
1174
|
-
const b =
|
|
1173
|
+
const b = Se();
|
|
1175
1174
|
return /* @__PURE__ */ n("section", { className: "panel", children: [
|
|
1176
1175
|
/* @__PURE__ */ e("div", { className: "table-wrap", children: /* @__PURE__ */ n("table", { className: "list-table", children: [
|
|
1177
1176
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
@@ -1274,7 +1273,7 @@ function Qt({
|
|
|
1274
1273
|
children: "申请权限"
|
|
1275
1274
|
}
|
|
1276
1275
|
) }),
|
|
1277
|
-
/* @__PURE__ */ e("td", { className: "mono-sm", children:
|
|
1276
|
+
/* @__PURE__ */ e("td", { className: "mono-sm", children: Le(u.updateTime) }),
|
|
1278
1277
|
/* @__PURE__ */ e("td", { className: "col-activity", children: /* @__PURE__ */ e(
|
|
1279
1278
|
at,
|
|
1280
1279
|
{
|
|
@@ -1500,7 +1499,7 @@ function tn({
|
|
|
1500
1499
|
/* @__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
1500
|
/* @__PURE__ */ e("td", { className: "tnum", children: c.memberCount ?? 0 }),
|
|
1502
1501
|
/* @__PURE__ */ e("td", { className: "tnum", children: c.kbCount ?? 0 }),
|
|
1503
|
-
/* @__PURE__ */ e("td", { className: "mono-sm", children:
|
|
1502
|
+
/* @__PURE__ */ e("td", { className: "mono-sm", children: Le(c.createTime) }),
|
|
1504
1503
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ n("div", { className: "row-actions kb-row-actions", children: [
|
|
1505
1504
|
/* @__PURE__ */ e(
|
|
1506
1505
|
"button",
|
|
@@ -1602,10 +1601,10 @@ function hn(t, a) {
|
|
|
1602
1601
|
};
|
|
1603
1602
|
}, [a]), { activity: r, activityLoadedKey: o, activityFailedKey: y };
|
|
1604
1603
|
}
|
|
1605
|
-
function
|
|
1606
|
-
const t =
|
|
1604
|
+
function kn() {
|
|
1605
|
+
const t = Se(), a = wt(), [r] = p(cn), [d, o] = p(
|
|
1607
1606
|
(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(""), [
|
|
1607
|
+
), [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
1608
|
null
|
|
1610
1609
|
), [te, re] = p({}), K = Ee(async (l = {}) => {
|
|
1611
1610
|
l.silent || c(!0), A("");
|
|
@@ -1617,8 +1616,8 @@ function wn() {
|
|
|
1617
1616
|
),
|
|
1618
1617
|
xt({ rethrow: !0 }).catch(() => {
|
|
1619
1618
|
})
|
|
1620
|
-
]), R = (m == null ? void 0 : m.records) || [],
|
|
1621
|
-
o(R), y(
|
|
1619
|
+
]), R = (m == null ? void 0 : m.records) || [], P = C || [];
|
|
1620
|
+
o(R), y(P), rn({ records: R, teams: P }), Lt();
|
|
1622
1621
|
} catch (m) {
|
|
1623
1622
|
A(m.message || "服务器错误");
|
|
1624
1623
|
} finally {
|
|
@@ -1631,8 +1630,8 @@ function wn() {
|
|
|
1631
1630
|
an($);
|
|
1632
1631
|
}, [$]), H(() => {
|
|
1633
1632
|
let l = !1;
|
|
1634
|
-
return
|
|
1635
|
-
l || !m || !m.versionCode || m.versionCode !==
|
|
1633
|
+
return Pt().then((m) => {
|
|
1634
|
+
l || !m || !m.versionCode || m.versionCode !== St() && (U(m), Dt(m.versionCode));
|
|
1636
1635
|
}).catch(() => {
|
|
1637
1636
|
}), () => {
|
|
1638
1637
|
l = !0;
|
|
@@ -1664,24 +1663,24 @@ function wn() {
|
|
|
1664
1663
|
return C !== 0 ? C : String(m.kbId).localeCompare(String(l.kbId));
|
|
1665
1664
|
}),
|
|
1666
1665
|
[d]
|
|
1667
|
-
),
|
|
1666
|
+
), Q = Z(() => {
|
|
1668
1667
|
const l = /* @__PURE__ */ new Map();
|
|
1669
|
-
i.forEach((
|
|
1670
|
-
const ie =
|
|
1671
|
-
ce ? ce.push(
|
|
1668
|
+
i.forEach((P) => {
|
|
1669
|
+
const ie = P.parentTeamId || "", ce = l.get(ie);
|
|
1670
|
+
ce ? ce.push(P) : l.set(ie, [P]);
|
|
1672
1671
|
});
|
|
1673
|
-
const m = [], C = /* @__PURE__ */ new Set(), R = (
|
|
1674
|
-
(l.get(
|
|
1672
|
+
const m = [], C = /* @__PURE__ */ new Set(), R = (P, ie) => {
|
|
1673
|
+
(l.get(P) || []).forEach((ce) => {
|
|
1675
1674
|
C.has(ce.teamId) || (C.add(ce.teamId), m.push({ team: ce, depth: ie }), R(ce.teamId, ie + 1));
|
|
1676
1675
|
});
|
|
1677
1676
|
};
|
|
1678
|
-
return R("", 0), i.filter((
|
|
1677
|
+
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
1678
|
}, [i]), O = Z(
|
|
1680
1679
|
() => i.find((l) => l.teamId === k),
|
|
1681
1680
|
[k, i]
|
|
1682
1681
|
), F = Z(() => {
|
|
1683
1682
|
const l = w.trim();
|
|
1684
|
-
return l ?
|
|
1683
|
+
return l ? Q.filter(
|
|
1685
1684
|
({ team: m }) => Ke(
|
|
1686
1685
|
l,
|
|
1687
1686
|
m.name,
|
|
@@ -1690,8 +1689,8 @@ function wn() {
|
|
|
1690
1689
|
m.visibility === "PRIVATE" ? "私有团队" : "公开团队",
|
|
1691
1690
|
m.myRole === "TEAM_ADMIN" ? "管理员" : m.myRole === "TEAM_MEMBER" ? "成员" : ""
|
|
1692
1691
|
)
|
|
1693
|
-
) :
|
|
1694
|
-
}, [w,
|
|
1692
|
+
) : Q;
|
|
1693
|
+
}, [w, Q]), L = Z(() => {
|
|
1695
1694
|
if (b === "personal")
|
|
1696
1695
|
return B.filter((m) => !q(m));
|
|
1697
1696
|
if (b === "team") {
|
|
@@ -1712,7 +1711,7 @@ function wn() {
|
|
|
1712
1711
|
}, [k, b, B, i]), _ = Z(
|
|
1713
1712
|
() => ({
|
|
1714
1713
|
total: L.length,
|
|
1715
|
-
mine: L.filter(
|
|
1714
|
+
mine: L.filter(Pe).length,
|
|
1716
1715
|
active: L.filter((l) => l.status === "ACTIVE").length,
|
|
1717
1716
|
archived: L.filter((l) => l.status === "ARCHIVED").length,
|
|
1718
1717
|
managed: L.filter((l) => l.canManage).length,
|
|
@@ -1721,7 +1720,7 @@ function wn() {
|
|
|
1721
1720
|
[$, L]
|
|
1722
1721
|
), ne = Z(() => {
|
|
1723
1722
|
let l = L;
|
|
1724
|
-
f === "mine" ? l = l.filter(
|
|
1723
|
+
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
1724
|
const m = w.trim();
|
|
1726
1725
|
return m && (l = l.filter(
|
|
1727
1726
|
(C) => Ke(
|
|
@@ -1745,7 +1744,7 @@ function wn() {
|
|
|
1745
1744
|
le
|
|
1746
1745
|
), ke = (l) => {
|
|
1747
1746
|
const m = ln($, l);
|
|
1748
|
-
X(m),
|
|
1747
|
+
X(m), Y(m.includes(l) ? "已收藏" : "已取消收藏", void 0, "info");
|
|
1749
1748
|
}, s = (l) => {
|
|
1750
1749
|
t(`/knowledge-bases/${encodeURIComponent(l.kbId)}`);
|
|
1751
1750
|
}, N = (l) => /* @__PURE__ */ e(
|
|
@@ -1765,9 +1764,9 @@ function wn() {
|
|
|
1765
1764
|
},
|
|
1766
1765
|
l.kbId
|
|
1767
1766
|
), E = /* @__PURE__ */ e(
|
|
1768
|
-
|
|
1767
|
+
Qe,
|
|
1769
1768
|
{
|
|
1770
|
-
note: /* @__PURE__ */ n(
|
|
1769
|
+
note: /* @__PURE__ */ n(G, { children: [
|
|
1771
1770
|
"共 ",
|
|
1772
1771
|
ne.length,
|
|
1773
1772
|
" 个知识库 · 第 ",
|
|
@@ -1787,9 +1786,9 @@ function wn() {
|
|
|
1787
1786
|
(we - 1) * ue,
|
|
1788
1787
|
we * ue
|
|
1789
1788
|
), ot = /* @__PURE__ */ e(
|
|
1790
|
-
|
|
1789
|
+
Qe,
|
|
1791
1790
|
{
|
|
1792
|
-
note: /* @__PURE__ */ n(
|
|
1791
|
+
note: /* @__PURE__ */ n(G, { children: [
|
|
1793
1792
|
"共 ",
|
|
1794
1793
|
F.length,
|
|
1795
1794
|
" 个团队 · 第 ",
|
|
@@ -1869,8 +1868,8 @@ function wn() {
|
|
|
1869
1868
|
onCreateTeam: () => I({ type: "team-create" }),
|
|
1870
1869
|
onClearKeyword: () => z("")
|
|
1871
1870
|
}
|
|
1872
|
-
) : ne.length ?
|
|
1873
|
-
|
|
1871
|
+
) : ne.length ? S === "cards" ? se = /* @__PURE__ */ e("div", { className: "kb-grid", children: ge.map(N) }) : se = /* @__PURE__ */ e(
|
|
1872
|
+
Jt,
|
|
1874
1873
|
{
|
|
1875
1874
|
pageRecords: ge,
|
|
1876
1875
|
favorites: $,
|
|
@@ -1920,7 +1919,7 @@ function wn() {
|
|
|
1920
1919
|
{
|
|
1921
1920
|
scope: b,
|
|
1922
1921
|
activeTeamId: k,
|
|
1923
|
-
teamRows:
|
|
1922
|
+
teamRows: Q,
|
|
1924
1923
|
personalCount: ht,
|
|
1925
1924
|
teamCount: i.length,
|
|
1926
1925
|
onSwitchScope: me,
|
|
@@ -1972,7 +1971,7 @@ function wn() {
|
|
|
1972
1971
|
/* @__PURE__ */ n(
|
|
1973
1972
|
"button",
|
|
1974
1973
|
{
|
|
1975
|
-
className:
|
|
1974
|
+
className: S === "cards" ? "active" : "",
|
|
1976
1975
|
type: "button",
|
|
1977
1976
|
onClick: () => V("cards"),
|
|
1978
1977
|
children: [
|
|
@@ -1984,7 +1983,7 @@ function wn() {
|
|
|
1984
1983
|
/* @__PURE__ */ n(
|
|
1985
1984
|
"button",
|
|
1986
1985
|
{
|
|
1987
|
-
className:
|
|
1986
|
+
className: S === "table" ? "active" : "",
|
|
1988
1987
|
type: "button",
|
|
1989
1988
|
onClick: () => V("table"),
|
|
1990
1989
|
children: [
|
|
@@ -2021,19 +2020,19 @@ function wn() {
|
|
|
2021
2020
|
/* @__PURE__ */ e(
|
|
2022
2021
|
"div",
|
|
2023
2022
|
{
|
|
2024
|
-
className: `kb-list-results ${b === "teams" ? "table" :
|
|
2023
|
+
className: `kb-list-results ${b === "teams" ? "table" : S}`,
|
|
2025
2024
|
children: se
|
|
2026
2025
|
}
|
|
2027
2026
|
),
|
|
2028
|
-
b !== "teams" && ne.length > 0 &&
|
|
2027
|
+
b !== "teams" && ne.length > 0 && S !== "table" ? E : null
|
|
2029
2028
|
] }),
|
|
2030
2029
|
ee ? /* @__PURE__ */ e(
|
|
2031
2030
|
Ft,
|
|
2032
2031
|
{
|
|
2033
2032
|
version: ee,
|
|
2034
|
-
onClose: () =>
|
|
2033
|
+
onClose: () => U(null),
|
|
2035
2034
|
onOpenAll: () => {
|
|
2036
|
-
|
|
2035
|
+
U(null), t("/admin/changelog");
|
|
2037
2036
|
}
|
|
2038
2037
|
}
|
|
2039
2038
|
) : null,
|
|
@@ -2062,7 +2061,7 @@ function wn() {
|
|
|
2062
2061
|
}
|
|
2063
2062
|
) : null,
|
|
2064
2063
|
M && M.type === "team-create" ? /* @__PURE__ */ e(
|
|
2065
|
-
|
|
2064
|
+
Ye,
|
|
2066
2065
|
{
|
|
2067
2066
|
mode: "create",
|
|
2068
2067
|
onClose: () => I(null),
|
|
@@ -2072,7 +2071,7 @@ function wn() {
|
|
|
2072
2071
|
}
|
|
2073
2072
|
) : null,
|
|
2074
2073
|
M && M.type === "team-settings" ? /* @__PURE__ */ e(
|
|
2075
|
-
|
|
2074
|
+
Ye,
|
|
2076
2075
|
{
|
|
2077
2076
|
mode: "settings",
|
|
2078
2077
|
team: M.team,
|
|
@@ -2137,5 +2136,5 @@ function wn() {
|
|
|
2137
2136
|
);
|
|
2138
2137
|
}
|
|
2139
2138
|
export {
|
|
2140
|
-
|
|
2139
|
+
kn as default
|
|
2141
2140
|
};
|