@yuku123/z-cognition-component 2.0.1 → 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-mAJW3cEN.js → agents-eZDKzePP.js} +41 -41
- package/dist-lib/{ai-BcYmZiRo.js → ai-CNSn3-sd.js} +32 -32
- package/dist-lib/{ai-chat-share-DO7GXjG4.js → ai-chat-share-Yrqt_J6a.js} +13 -14
- package/dist-lib/ak-manage-DklVFT5I.js +805 -0
- package/dist-lib/{approval-RPDUKg9-.js → approval-B-bCSmfi.js} +25 -26
- package/dist-lib/{approvals-CNjxJUpR.js → approvals-B0ggYiyD.js} +42 -43
- package/dist-lib/{assistant-FIQQziCn.js → assistant-Of0mgMsM.js} +33 -34
- package/dist-lib/{assistant-history-DsEGBJnq.js → assistant-history-DcyDhUzJ.js} +5 -5
- package/dist-lib/{assistant-summary-B-f3k55y.js → assistant-summary-CjLaTyFz.js} +1 -1
- package/dist-lib/{audit-NwnH1hm5.js → audit-wDNCfmOy.js} +1 -1
- package/dist-lib/{bios-CRwKtcit.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-DlL5u9o4.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-Cfb-zdr9.js → detail-DioaWKWj.js} +5847 -7224
- package/dist-lib/{detail-Dcfg3W8B.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-MkyxiHxi.js → downloads-DtV5hOQv.js} +3 -4
- package/dist-lib/{edit-DLGAM-Vo.js → edit-NtXUNj5N.js} +262 -266
- package/dist-lib/{editor-BtiheUpe.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-Dz9bUuhS.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-CJSTTgTM.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-BGB6NawZ.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-D_Qey9G8.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-c2HokEFp.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-DuI4K5e1.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-g16g7A4k.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-BNoIhw6B.js → kb-form-modal-D9gnvXbE.js} +67 -67
- package/dist-lib/{kbTeam-EgcbWseM.js → kbTeam-CorrPJFr.js} +3 -3
- package/dist-lib/{knowledge-base-C023dnJ-.js → knowledge-base-DJkjMFHW.js} +103 -104
- package/dist-lib/{knowledge-hub-B4fGCn8m.js → knowledge-hub-DKiDlaZz.js} +54 -55
- package/dist-lib/login-56zv4aLO.js +36 -0
- package/dist-lib/{markdown-lite-EvJ9Fw7X.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-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
- 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-BUg2QYlE.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-GF-w8HuR.js → message-C9gfvpGg.js} +1 -1
- package/dist-lib/{message-Cwj8dO78.js → message-D6FhzB7J.js} +24 -25
- package/dist-lib/{messages-JID13L8-.js → messages-cctmEVcG.js} +15 -16
- package/dist-lib/meta-DT_O4zM9.js +708 -0
- package/dist-lib/{metrics-CT4eLzrq.js → metrics-BNeVcI8-.js} +2 -2
- package/dist-lib/mobile-D8kZjfQU.js +2413 -0
- package/dist-lib/{monitor-Bs9BfJOj.js → monitor-DTUyqumg.js} +4 -4
- package/dist-lib/{monitor-CmS65YSu.js → monitor-DexMYjzF.js} +8 -8
- package/dist-lib/{my-access-1Yj7UloI.js → my-access-DWBV6ohp.js} +120 -132
- package/dist-lib/{my-permissions-yQDHPLYI.js → my-permissions-B-gJZQYM.js} +22 -23
- package/dist-lib/navigation-DVlyWnpD.js +102 -0
- package/dist-lib/{new-BgkoBnZV.js → new-JmARyD88.js} +14 -15
- package/dist-lib/{ontology-BPrbXPor.js → ontology-B4rkO33J.js} +50 -52
- package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
- package/dist-lib/{ontology-domains-Cbqnm-po.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-D3xy6IZL.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-fTfxpEhV.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-BlHnhkAT.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-B-pzX8eT.js → save-blob-CwCZE1Dn.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DByQXh0y.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
- package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
- package/dist-lib/{schedule-H4_9KnRj.js → schedule-CwkPPSuT.js} +8 -8
- package/dist-lib/script-gYJAFobb.js +2709 -0
- package/dist-lib/{settings-C3PI8KYa.js → settings-CJd5Jj4y.js} +133 -134
- package/dist-lib/{shared-DqeN-Wbb.js → shared-DG5-VCDM.js} +1 -1
- package/dist-lib/{shared-utils-DN3zT9P-.js → shared-utils-CFHws1DA.js} +2 -2
- package/dist-lib/{skills-eGlCExr0.js → skills-lxpJ5Lzx.js} +39 -40
- package/dist-lib/{source-selection-BCvClzc-.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-DEJVJ7zK.js → task-config-BNYoOb79.js} +4 -4
- package/dist-lib/{tech-C-4uM9bS.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-le6miafZ.js → tools-CrA6GrY6.js} +14 -14
- package/dist-lib/{use-domain-access-B3pDp3s5.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-Dmp7uMHO.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-WT1PobuV.js → version-control-panel-mWXkC-uB.js} +26 -27
- package/dist-lib/{version-management-DC0k1DRg.js → version-management-nPlG7wQO.js} +6 -7
- package/dist-lib/{welcome-VyWLrbth.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-Dj_Pv2nc.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-DwLg9RDW.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-HieOUSwH.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-DPp5L3Uc.js +0 -540
- package/dist-lib/ontology-modeling-6k-m8fzr.js +0 -38946
- package/dist-lib/ontology-modeling-BT-EuDCs.js +0 -1039
- package/dist-lib/ontology-scenarios-DWYC2yxd.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-Bw-6n9Kh.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -0,0 +1,1162 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { useRef as Rt, useEffect as It, useMemo as Ke, isValidElement as Ot } from "react";
|
|
3
|
+
import { f as Dt, H as Mt, a_ as Lt, bs as Xe, bC as Ht, o as Z, m as _t, aN as Bt, ax as Wt, Y as At, a5 as Ge, aB as Pt, j as Je, G as ee, v as zt, ad as Vt, E as kt, aq as Ft, aj as Ye, _ as ie, ap as J, g as Ut, F as Qe, aT as Pe, aV as jt, z as qt, l as Kt, y as Ce } from "./index-DxzorPvG.js";
|
|
4
|
+
import { I as Ne, c as k } from "./pages-CticGC6S.js";
|
|
5
|
+
import "react-dom/client";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import { K as ze, T as $e, R as Xt } from "./Table-Civ838nE.js";
|
|
8
|
+
var Gt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
|
|
9
|
+
function xe() {
|
|
10
|
+
return xe = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
12
|
+
var n = arguments[t];
|
|
13
|
+
for (var r in n)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
15
|
+
}
|
|
16
|
+
return e;
|
|
17
|
+
}, xe.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
const Jt = (e, t) => /* @__PURE__ */ s.createElement(Ne, xe({}, e, {
|
|
20
|
+
ref: t,
|
|
21
|
+
icon: Gt
|
|
22
|
+
})), Ze = /* @__PURE__ */ s.forwardRef(Jt);
|
|
23
|
+
process.env.NODE_ENV !== "production" && (Ze.displayName = "CopyOutlined");
|
|
24
|
+
var Yt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
|
|
25
|
+
function Se() {
|
|
26
|
+
return Se = Object.assign ? Object.assign.bind() : function(e) {
|
|
27
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
28
|
+
var n = arguments[t];
|
|
29
|
+
for (var r in n)
|
|
30
|
+
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
33
|
+
}, Se.apply(this, arguments);
|
|
34
|
+
}
|
|
35
|
+
const Qt = (e, t) => /* @__PURE__ */ s.createElement(Ne, Se({}, e, {
|
|
36
|
+
ref: t,
|
|
37
|
+
icon: Yt
|
|
38
|
+
})), et = /* @__PURE__ */ s.forwardRef(Qt);
|
|
39
|
+
process.env.NODE_ENV !== "production" && (et.displayName = "EditOutlined");
|
|
40
|
+
var Zt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" };
|
|
41
|
+
function ve() {
|
|
42
|
+
return ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
43
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
44
|
+
var n = arguments[t];
|
|
45
|
+
for (var r in n)
|
|
46
|
+
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
47
|
+
}
|
|
48
|
+
return e;
|
|
49
|
+
}, ve.apply(this, arguments);
|
|
50
|
+
}
|
|
51
|
+
const en = (e, t) => /* @__PURE__ */ s.createElement(Ne, ve({}, e, {
|
|
52
|
+
ref: t,
|
|
53
|
+
icon: Zt
|
|
54
|
+
})), tt = /* @__PURE__ */ s.forwardRef(en);
|
|
55
|
+
process.env.NODE_ENV !== "production" && (tt.displayName = "EnterOutlined");
|
|
56
|
+
const tn = (e) => {
|
|
57
|
+
if (Dt() && window.document.documentElement) {
|
|
58
|
+
const t = Array.isArray(e) ? e : [e], {
|
|
59
|
+
documentElement: n
|
|
60
|
+
} = window.document;
|
|
61
|
+
return t.some((r) => r in n.style);
|
|
62
|
+
}
|
|
63
|
+
return !1;
|
|
64
|
+
};
|
|
65
|
+
function Ve(e, t) {
|
|
66
|
+
return tn(e);
|
|
67
|
+
}
|
|
68
|
+
const nt = (e, t = {}) => !Mt(e) && (t != null && t.skipEmpty) ? [] : Array.isArray(e) ? e : [e], nn = (e, t, n, r) => {
|
|
69
|
+
const {
|
|
70
|
+
titleMarginBottom: o,
|
|
71
|
+
fontWeightStrong: l
|
|
72
|
+
} = r;
|
|
73
|
+
return {
|
|
74
|
+
marginBottom: o,
|
|
75
|
+
color: n,
|
|
76
|
+
fontWeight: l,
|
|
77
|
+
fontSize: e,
|
|
78
|
+
lineHeight: t
|
|
79
|
+
};
|
|
80
|
+
}, sn = (e) => {
|
|
81
|
+
const t = [1, 2, 3, 4, 5], n = {};
|
|
82
|
+
return t.forEach((r) => {
|
|
83
|
+
n[`
|
|
84
|
+
h${r}&,
|
|
85
|
+
div&-h${r},
|
|
86
|
+
div&-h${r} > textarea,
|
|
87
|
+
h${r}
|
|
88
|
+
`] = nn(e[`fontSizeHeading${r}`], e[`lineHeightHeading${r}`], e.colorTextHeading, e);
|
|
89
|
+
}), n;
|
|
90
|
+
}, rn = (e) => {
|
|
91
|
+
const {
|
|
92
|
+
componentCls: t
|
|
93
|
+
} = e;
|
|
94
|
+
return {
|
|
95
|
+
[`&${`${t}-link`}`]: {
|
|
96
|
+
...Xe(e),
|
|
97
|
+
userSelect: "text",
|
|
98
|
+
[`&[disabled], &${t}-disabled`]: {
|
|
99
|
+
color: e.colorTextDisabled,
|
|
100
|
+
cursor: "not-allowed",
|
|
101
|
+
"&:active, &:hover": {
|
|
102
|
+
color: e.colorTextDisabled
|
|
103
|
+
},
|
|
104
|
+
"&:active": {
|
|
105
|
+
pointerEvents: "none",
|
|
106
|
+
// Action buttons (copy, edit, expand) must remain interactive even when
|
|
107
|
+
// the disabled link is being clicked, otherwise their click events get
|
|
108
|
+
// swallowed by the parent's pointer-events: none during :active.
|
|
109
|
+
[`${t}-actions`]: {
|
|
110
|
+
pointerEvents: "auto"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}, on = (e) => ({
|
|
117
|
+
code: {
|
|
118
|
+
margin: "0 0.2em",
|
|
119
|
+
paddingInline: "0.4em",
|
|
120
|
+
paddingBlock: "0.2em 0.1em",
|
|
121
|
+
fontSize: "85%",
|
|
122
|
+
fontFamily: e.fontFamilyCode,
|
|
123
|
+
background: "rgba(150, 150, 150, 0.1)",
|
|
124
|
+
border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
|
|
125
|
+
borderRadius: 3
|
|
126
|
+
},
|
|
127
|
+
kbd: {
|
|
128
|
+
margin: "0 0.2em",
|
|
129
|
+
paddingInline: "0.4em",
|
|
130
|
+
paddingBlock: "0.15em 0.1em",
|
|
131
|
+
fontSize: "90%",
|
|
132
|
+
fontFamily: e.fontFamilyCode,
|
|
133
|
+
background: "rgba(150, 150, 150, 0.06)",
|
|
134
|
+
border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
|
|
135
|
+
borderBottomWidth: 2,
|
|
136
|
+
borderRadius: 3
|
|
137
|
+
},
|
|
138
|
+
mark: {
|
|
139
|
+
padding: 0,
|
|
140
|
+
// FIXME hardcode in v4
|
|
141
|
+
backgroundColor: Ht[2]
|
|
142
|
+
},
|
|
143
|
+
"u, ins": {
|
|
144
|
+
textDecoration: "underline",
|
|
145
|
+
textDecorationSkipInk: "auto"
|
|
146
|
+
},
|
|
147
|
+
"s, del": {
|
|
148
|
+
textDecoration: "line-through"
|
|
149
|
+
},
|
|
150
|
+
strong: {
|
|
151
|
+
fontWeight: e.fontWeightStrong
|
|
152
|
+
},
|
|
153
|
+
// list
|
|
154
|
+
"ul, ol": {
|
|
155
|
+
marginInline: 0,
|
|
156
|
+
marginBlock: "0 1em",
|
|
157
|
+
padding: 0,
|
|
158
|
+
li: {
|
|
159
|
+
marginInline: "20px 0",
|
|
160
|
+
marginBlock: 0,
|
|
161
|
+
paddingInline: "4px 0",
|
|
162
|
+
paddingBlock: 0
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
ul: {
|
|
166
|
+
listStyleType: "circle",
|
|
167
|
+
ul: {
|
|
168
|
+
listStyleType: "disc"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
ol: {
|
|
172
|
+
listStyleType: "decimal"
|
|
173
|
+
},
|
|
174
|
+
// pre & block
|
|
175
|
+
"pre, blockquote": {
|
|
176
|
+
margin: "1em 0"
|
|
177
|
+
},
|
|
178
|
+
pre: {
|
|
179
|
+
padding: "0.4em 0.6em",
|
|
180
|
+
whiteSpace: "pre-wrap",
|
|
181
|
+
wordWrap: "break-word",
|
|
182
|
+
background: "rgba(150, 150, 150, 0.1)",
|
|
183
|
+
border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
|
|
184
|
+
borderRadius: 3,
|
|
185
|
+
fontFamily: e.fontFamilyCode,
|
|
186
|
+
// Compatible for marked
|
|
187
|
+
code: {
|
|
188
|
+
display: "inline",
|
|
189
|
+
margin: 0,
|
|
190
|
+
padding: 0,
|
|
191
|
+
fontSize: "inherit",
|
|
192
|
+
fontFamily: "inherit",
|
|
193
|
+
background: "transparent",
|
|
194
|
+
border: 0
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
blockquote: {
|
|
198
|
+
paddingInline: "0.6em 0",
|
|
199
|
+
paddingBlock: 0,
|
|
200
|
+
borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
|
|
201
|
+
opacity: 0.85
|
|
202
|
+
},
|
|
203
|
+
// table - Follow Table component default style
|
|
204
|
+
table: {
|
|
205
|
+
width: "100%",
|
|
206
|
+
textAlign: "start",
|
|
207
|
+
borderCollapse: "separate",
|
|
208
|
+
borderSpacing: 0,
|
|
209
|
+
marginBlock: "1em",
|
|
210
|
+
"th, td": {
|
|
211
|
+
padding: Z(e.padding),
|
|
212
|
+
overflowWrap: "break-word",
|
|
213
|
+
borderBottom: `${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`
|
|
214
|
+
},
|
|
215
|
+
"thead > tr:first-child > th:first-child": {
|
|
216
|
+
borderStartStartRadius: e.borderRadiusLG
|
|
217
|
+
},
|
|
218
|
+
"thead > tr:first-child > th:last-child": {
|
|
219
|
+
borderStartEndRadius: e.borderRadiusLG
|
|
220
|
+
},
|
|
221
|
+
"thead > tr > th": {
|
|
222
|
+
textAlign: "start",
|
|
223
|
+
position: "relative",
|
|
224
|
+
color: e.colorTextHeading,
|
|
225
|
+
fontWeight: e.fontWeightStrong,
|
|
226
|
+
backgroundColor: e.colorFillAlter,
|
|
227
|
+
transition: `background-color ${e.motionDurationMid} ease`,
|
|
228
|
+
"&:not(:last-child)::before": {
|
|
229
|
+
position: "absolute",
|
|
230
|
+
top: "50%",
|
|
231
|
+
insetInlineEnd: 0,
|
|
232
|
+
width: 1,
|
|
233
|
+
height: "1.6em",
|
|
234
|
+
backgroundColor: e.colorSplit,
|
|
235
|
+
transform: "translateY(-50%)",
|
|
236
|
+
content: '""'
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"tbody > tr": {
|
|
240
|
+
"> th, > td": {
|
|
241
|
+
transition: `background-color ${e.motionDurationMid} ease`
|
|
242
|
+
},
|
|
243
|
+
"&:hover > th, &:hover > td": {
|
|
244
|
+
backgroundColor: e.colorFillAlter
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}), an = (e) => {
|
|
249
|
+
const {
|
|
250
|
+
componentCls: t,
|
|
251
|
+
paddingSM: n
|
|
252
|
+
} = e, r = n;
|
|
253
|
+
return {
|
|
254
|
+
"&-edit-content": {
|
|
255
|
+
position: "relative",
|
|
256
|
+
"div&": {
|
|
257
|
+
insetInlineStart: e.calc(e.paddingSM).mul(-1).equal(),
|
|
258
|
+
insetBlockStart: e.calc(r).div(-2).add(1).equal(),
|
|
259
|
+
marginBottom: e.calc(r).div(2).sub(2).equal()
|
|
260
|
+
},
|
|
261
|
+
[`${t}-edit-content-confirm`]: {
|
|
262
|
+
position: "absolute",
|
|
263
|
+
insetInlineEnd: e.calc(e.marginXS).add(2).equal(),
|
|
264
|
+
insetBlockEnd: e.marginXS,
|
|
265
|
+
color: e.colorIcon,
|
|
266
|
+
// default style
|
|
267
|
+
fontWeight: 400,
|
|
268
|
+
fontSize: e.fontSize,
|
|
269
|
+
fontStyle: "normal",
|
|
270
|
+
pointerEvents: "none"
|
|
271
|
+
},
|
|
272
|
+
// Double the `-edit-content` class to raise this selector's specificity
|
|
273
|
+
// above Input's own `textarea.ant-input { line-height: token.lineHeight }`
|
|
274
|
+
// rule. Both otherwise share the same (0,1,1) specificity and Input is
|
|
275
|
+
// injected after Typography, so on the raw TextArea path the Input rule
|
|
276
|
+
// would win the cascade and the inherited font props below (notably
|
|
277
|
+
// `line-height`) would not apply.
|
|
278
|
+
[`&${t}-edit-content textarea`]: {
|
|
279
|
+
margin: "0!important",
|
|
280
|
+
// Inherit the edited element's typography so the editing textarea
|
|
281
|
+
// matches the rendered text (including customized heading tokens such
|
|
282
|
+
// as `fontSizeHeading1` and the strong heading weight), keeping editing
|
|
283
|
+
// WYSIWYG. Browsers do not inherit font properties for form controls by
|
|
284
|
+
// default, so they are set explicitly here.
|
|
285
|
+
fontSize: "inherit",
|
|
286
|
+
lineHeight: "inherit",
|
|
287
|
+
fontFamily: "inherit",
|
|
288
|
+
fontWeight: "inherit",
|
|
289
|
+
// Fix Editable Textarea flash in Firefox
|
|
290
|
+
MozTransition: "none",
|
|
291
|
+
height: "1em"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
}, ln = (e) => ({
|
|
296
|
+
[`${e.componentCls}-copy-success`]: {
|
|
297
|
+
"&, &:hover, &:focus": {
|
|
298
|
+
color: e.colorSuccess
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
[`${e.componentCls}-copy-icon-only`]: {
|
|
302
|
+
marginInlineStart: 0
|
|
303
|
+
}
|
|
304
|
+
}), cn = () => ({
|
|
305
|
+
"a&-ellipsis, span&-ellipsis": {
|
|
306
|
+
display: "inline-block",
|
|
307
|
+
maxWidth: "100%"
|
|
308
|
+
},
|
|
309
|
+
"&-ellipsis-single-line": {
|
|
310
|
+
...Lt,
|
|
311
|
+
// https://blog.csdn.net/iefreer/article/details/50421025
|
|
312
|
+
"a&, span&": {
|
|
313
|
+
verticalAlign: "bottom"
|
|
314
|
+
},
|
|
315
|
+
"> code": {
|
|
316
|
+
paddingBlock: 0,
|
|
317
|
+
maxWidth: "calc(100% - 1.2em)",
|
|
318
|
+
display: "inline-block",
|
|
319
|
+
overflow: "hidden",
|
|
320
|
+
textOverflow: "ellipsis",
|
|
321
|
+
verticalAlign: "bottom",
|
|
322
|
+
// https://github.com/ant-design/ant-design/issues/45953
|
|
323
|
+
boxSizing: "content-box"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"&-ellipsis-multiple-line": {
|
|
327
|
+
display: "-webkit-box",
|
|
328
|
+
overflow: "hidden",
|
|
329
|
+
WebkitLineClamp: 3,
|
|
330
|
+
WebkitBoxOrient: "vertical"
|
|
331
|
+
}
|
|
332
|
+
}), dn = (e) => {
|
|
333
|
+
const {
|
|
334
|
+
componentCls: t,
|
|
335
|
+
titleMarginTop: n
|
|
336
|
+
} = e;
|
|
337
|
+
return {
|
|
338
|
+
[t]: {
|
|
339
|
+
color: e.colorText,
|
|
340
|
+
wordBreak: "break-word",
|
|
341
|
+
lineHeight: e.lineHeight,
|
|
342
|
+
[`&${t}-secondary, &${t}-link${t}-secondary`]: {
|
|
343
|
+
color: e.colorTextDescription
|
|
344
|
+
},
|
|
345
|
+
[`&${t}-success, &${t}-link${t}-success`]: {
|
|
346
|
+
color: e.colorSuccessText
|
|
347
|
+
},
|
|
348
|
+
[`&${t}-warning, &${t}-link${t}-warning`]: {
|
|
349
|
+
color: e.colorWarningText
|
|
350
|
+
},
|
|
351
|
+
[`&${t}-danger, &${t}-link${t}-danger`]: {
|
|
352
|
+
color: e.colorErrorText,
|
|
353
|
+
[`&${t}-link:active, &${t}-link:focus`]: {
|
|
354
|
+
color: e.colorErrorTextActive
|
|
355
|
+
},
|
|
356
|
+
[`&${t}-link:hover`]: {
|
|
357
|
+
color: e.colorErrorTextHover
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
[`&${t}-disabled`]: {
|
|
361
|
+
color: e.colorTextDisabled,
|
|
362
|
+
cursor: "not-allowed",
|
|
363
|
+
userSelect: "none"
|
|
364
|
+
},
|
|
365
|
+
"div&, p": {
|
|
366
|
+
marginBottom: "1em"
|
|
367
|
+
},
|
|
368
|
+
...sn(e),
|
|
369
|
+
[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]: {
|
|
370
|
+
marginTop: n
|
|
371
|
+
},
|
|
372
|
+
"div, ul, li, p, h1, h2, h3, h4, h5": {
|
|
373
|
+
"+ h1, + h2, + h3, + h4, + h5": {
|
|
374
|
+
marginTop: n
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
...on(e),
|
|
378
|
+
...rn(e),
|
|
379
|
+
// Operation
|
|
380
|
+
[`${t}-actions`]: {
|
|
381
|
+
display: "inline"
|
|
382
|
+
},
|
|
383
|
+
[`
|
|
384
|
+
${t}-expand,
|
|
385
|
+
${t}-collapse,
|
|
386
|
+
${t}-edit,
|
|
387
|
+
${t}-copy
|
|
388
|
+
`]: {
|
|
389
|
+
...Xe(e),
|
|
390
|
+
marginInlineStart: e.marginXXS
|
|
391
|
+
},
|
|
392
|
+
[`${t}-actions-start`]: {
|
|
393
|
+
[`
|
|
394
|
+
${t}-expand,
|
|
395
|
+
${t}-collapse,
|
|
396
|
+
${t}-edit,
|
|
397
|
+
${t}-copy:not(${t}-copy-icon-only)
|
|
398
|
+
`]: {
|
|
399
|
+
marginInlineStart: 0,
|
|
400
|
+
marginInlineEnd: e.marginXXS
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
...an(e),
|
|
404
|
+
...ln(e),
|
|
405
|
+
...cn(),
|
|
406
|
+
"&-rtl": {
|
|
407
|
+
direction: "rtl"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}, pn = () => ({
|
|
412
|
+
titleMarginTop: "1.2em",
|
|
413
|
+
titleMarginBottom: "0.5em"
|
|
414
|
+
}), st = _t("Typography", dn, pn), un = (e) => {
|
|
415
|
+
const {
|
|
416
|
+
prefixCls: t,
|
|
417
|
+
"aria-label": n,
|
|
418
|
+
className: r,
|
|
419
|
+
style: o,
|
|
420
|
+
classNames: l,
|
|
421
|
+
styles: p,
|
|
422
|
+
direction: f,
|
|
423
|
+
maxLength: d,
|
|
424
|
+
autoSize: u = !0,
|
|
425
|
+
value: c,
|
|
426
|
+
onSave: b,
|
|
427
|
+
onCancel: N,
|
|
428
|
+
onEnd: g,
|
|
429
|
+
component: R,
|
|
430
|
+
enterIcon: $ = /* @__PURE__ */ s.createElement(tt, null)
|
|
431
|
+
} = e, C = s.useRef(null), h = s.useRef(!1), M = s.useRef(null), [_, j] = s.useState(c);
|
|
432
|
+
s.useEffect(() => {
|
|
433
|
+
j(c);
|
|
434
|
+
}, [c]), s.useEffect(() => {
|
|
435
|
+
var y;
|
|
436
|
+
if ((y = C.current) != null && y.resizableTextArea) {
|
|
437
|
+
const {
|
|
438
|
+
textArea: T
|
|
439
|
+
} = C.current.resizableTextArea;
|
|
440
|
+
T.focus();
|
|
441
|
+
const {
|
|
442
|
+
length: I
|
|
443
|
+
} = T.value;
|
|
444
|
+
T.setSelectionRange(I, I);
|
|
445
|
+
}
|
|
446
|
+
}, []);
|
|
447
|
+
const E = ({
|
|
448
|
+
target: y
|
|
449
|
+
}) => {
|
|
450
|
+
j(y.value.replace(/[\n\r]/g, ""));
|
|
451
|
+
}, w = () => {
|
|
452
|
+
h.current = !0;
|
|
453
|
+
}, B = () => {
|
|
454
|
+
h.current = !1;
|
|
455
|
+
}, H = ({
|
|
456
|
+
keyCode: y
|
|
457
|
+
}) => {
|
|
458
|
+
h.current || (M.current = y);
|
|
459
|
+
}, L = () => {
|
|
460
|
+
b(_.trim());
|
|
461
|
+
}, x = ({
|
|
462
|
+
keyCode: y,
|
|
463
|
+
ctrlKey: T,
|
|
464
|
+
altKey: I,
|
|
465
|
+
metaKey: W,
|
|
466
|
+
shiftKey: O
|
|
467
|
+
}) => {
|
|
468
|
+
M.current !== y || h.current || T || I || W || O || (y === ze.ENTER ? (L(), g == null || g()) : y === ze.ESC && N());
|
|
469
|
+
}, q = () => {
|
|
470
|
+
L();
|
|
471
|
+
}, [F, P] = st(t), m = k(t, `${t}-edit-content`, {
|
|
472
|
+
[`${t}-rtl`]: f === "rtl",
|
|
473
|
+
[`${t}-${R}`]: !!R
|
|
474
|
+
}, r, l.root, F, P);
|
|
475
|
+
return /* @__PURE__ */ s.createElement("div", {
|
|
476
|
+
className: m,
|
|
477
|
+
style: {
|
|
478
|
+
...p.root,
|
|
479
|
+
...o
|
|
480
|
+
}
|
|
481
|
+
}, /* @__PURE__ */ s.createElement(Bt, {
|
|
482
|
+
ref: C,
|
|
483
|
+
maxLength: d,
|
|
484
|
+
value: _,
|
|
485
|
+
onChange: E,
|
|
486
|
+
onKeyDown: H,
|
|
487
|
+
onKeyUp: x,
|
|
488
|
+
onCompositionStart: w,
|
|
489
|
+
onCompositionEnd: B,
|
|
490
|
+
onBlur: q,
|
|
491
|
+
"aria-label": n,
|
|
492
|
+
rows: 1,
|
|
493
|
+
autoSize: u,
|
|
494
|
+
className: l.textarea,
|
|
495
|
+
style: p.textarea
|
|
496
|
+
}), $ !== null ? Wt($, {
|
|
497
|
+
className: `${t}-edit-content-confirm`
|
|
498
|
+
}) : null);
|
|
499
|
+
}, mn = (e, t) => {
|
|
500
|
+
let n = !1;
|
|
501
|
+
const r = (o) => {
|
|
502
|
+
var l, p, f;
|
|
503
|
+
o.stopPropagation(), o.preventDefault(), (l = o.clipboardData) == null || l.clearData(), (p = o.clipboardData) == null || p.setData("text/plain", e), t && ((f = o.clipboardData) == null || f.setData("text/html", e)), n = !0;
|
|
504
|
+
};
|
|
505
|
+
try {
|
|
506
|
+
return document.addEventListener("copy", r, {
|
|
507
|
+
capture: !0
|
|
508
|
+
}), document.execCommand("copy"), n;
|
|
509
|
+
} catch {
|
|
510
|
+
return !1;
|
|
511
|
+
} finally {
|
|
512
|
+
document.removeEventListener("copy", r, {
|
|
513
|
+
capture: !0
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
}, fn = async (e, t) => {
|
|
517
|
+
try {
|
|
518
|
+
return t ? await navigator.clipboard.write([new ClipboardItem({
|
|
519
|
+
"text/html": new Blob([e], {
|
|
520
|
+
type: "text/html"
|
|
521
|
+
}),
|
|
522
|
+
"text/plain": new Blob([e], {
|
|
523
|
+
type: "text/plain"
|
|
524
|
+
})
|
|
525
|
+
})]) : await navigator.clipboard.writeText(e), !0;
|
|
526
|
+
} catch {
|
|
527
|
+
return !1;
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
async function gn(e, t) {
|
|
531
|
+
if (typeof e != "string")
|
|
532
|
+
return process.env.NODE_ENV !== "production" && At(!1, "The clipboard content must be of string type", ""), !1;
|
|
533
|
+
const n = (t == null ? void 0 : t.format) === "text/html";
|
|
534
|
+
return !!(await fn(e, n) || mn(e, n));
|
|
535
|
+
}
|
|
536
|
+
const yn = ({
|
|
537
|
+
copyConfig: e,
|
|
538
|
+
children: t
|
|
539
|
+
}) => {
|
|
540
|
+
const [n, r] = Ge(!1), [o, l] = s.useState(!1), p = {};
|
|
541
|
+
e.format && (p.format = e.format);
|
|
542
|
+
const f = Pt(async (d) => {
|
|
543
|
+
var u;
|
|
544
|
+
d == null || d.preventDefault(), d == null || d.stopPropagation(), l(!0);
|
|
545
|
+
try {
|
|
546
|
+
const c = Je(e.text) ? await e.text() : e.text;
|
|
547
|
+
await gn(c || nt(t, {
|
|
548
|
+
skipEmpty: !0
|
|
549
|
+
}).join("") || "", p), l(!1), r(!0, !0), r(!1, {
|
|
550
|
+
ms: 3e3
|
|
551
|
+
}), (u = e.onCopy) == null || u.call(e, d);
|
|
552
|
+
} catch (c) {
|
|
553
|
+
throw l(!1), c;
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
return {
|
|
557
|
+
copied: n,
|
|
558
|
+
copyLoading: o,
|
|
559
|
+
onClick: f
|
|
560
|
+
};
|
|
561
|
+
}, fe = (e, t) => {
|
|
562
|
+
const n = !!e;
|
|
563
|
+
return s.useMemo(() => {
|
|
564
|
+
const r = {
|
|
565
|
+
...t,
|
|
566
|
+
...n && ee(e) ? e : null
|
|
567
|
+
};
|
|
568
|
+
return [n, r];
|
|
569
|
+
}, [n, e, t]);
|
|
570
|
+
}, En = (e) => {
|
|
571
|
+
const t = Rt(void 0);
|
|
572
|
+
return It(() => {
|
|
573
|
+
t.current = e;
|
|
574
|
+
}), t.current;
|
|
575
|
+
}, hn = (e, t, n) => Ke(() => e === !0 ? {
|
|
576
|
+
title: t ?? n
|
|
577
|
+
} : /* @__PURE__ */ Ot(e) ? {
|
|
578
|
+
title: e
|
|
579
|
+
} : ee(e) ? {
|
|
580
|
+
title: t ?? n,
|
|
581
|
+
...e
|
|
582
|
+
} : {
|
|
583
|
+
title: e
|
|
584
|
+
}, [e, t, n]), rt = (e, t, n, r, o) => {
|
|
585
|
+
const {
|
|
586
|
+
getPrefixCls: l,
|
|
587
|
+
direction: p,
|
|
588
|
+
className: f,
|
|
589
|
+
style: d,
|
|
590
|
+
classNames: u,
|
|
591
|
+
styles: c
|
|
592
|
+
} = zt("typography"), b = r ?? p, N = l("typography", e), g = {
|
|
593
|
+
...o,
|
|
594
|
+
prefixCls: N,
|
|
595
|
+
direction: b
|
|
596
|
+
}, R = Ke(() => ({
|
|
597
|
+
root: f
|
|
598
|
+
}), [f]), $ = Vt(d), [C, h] = kt([R, u, t], [c, $, n], {
|
|
599
|
+
props: g
|
|
600
|
+
});
|
|
601
|
+
return [C, h, N, b];
|
|
602
|
+
}, we = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
603
|
+
const {
|
|
604
|
+
component: n = "article",
|
|
605
|
+
className: r,
|
|
606
|
+
rootClassName: o,
|
|
607
|
+
children: l,
|
|
608
|
+
direction: p,
|
|
609
|
+
style: f,
|
|
610
|
+
classNames: d,
|
|
611
|
+
styles: u,
|
|
612
|
+
prefixCls: c,
|
|
613
|
+
...b
|
|
614
|
+
} = e, [N, g] = st(c), R = k(c, {
|
|
615
|
+
[`${c}-rtl`]: p === "rtl"
|
|
616
|
+
}, r, o, N, g, d == null ? void 0 : d.root), $ = {
|
|
617
|
+
...u == null ? void 0 : u.root,
|
|
618
|
+
...f
|
|
619
|
+
};
|
|
620
|
+
return /* @__PURE__ */ s.createElement(n, {
|
|
621
|
+
...b,
|
|
622
|
+
className: R,
|
|
623
|
+
style: $,
|
|
624
|
+
ref: t
|
|
625
|
+
}, l);
|
|
626
|
+
});
|
|
627
|
+
process.env.NODE_ENV !== "production" && (we.displayName = "InternalTypography");
|
|
628
|
+
const ot = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
629
|
+
const {
|
|
630
|
+
prefixCls: n,
|
|
631
|
+
className: r,
|
|
632
|
+
rootClassName: o,
|
|
633
|
+
direction: l,
|
|
634
|
+
classNames: p,
|
|
635
|
+
styles: f,
|
|
636
|
+
...d
|
|
637
|
+
} = e, [u, c, b, N] = rt(n, p, f, l, e);
|
|
638
|
+
return /* @__PURE__ */ s.createElement(we, {
|
|
639
|
+
ref: t,
|
|
640
|
+
className: k(r, o),
|
|
641
|
+
direction: N,
|
|
642
|
+
classNames: u,
|
|
643
|
+
styles: c,
|
|
644
|
+
prefixCls: b,
|
|
645
|
+
...d
|
|
646
|
+
});
|
|
647
|
+
});
|
|
648
|
+
process.env.NODE_ENV !== "production" && (ot.displayName = "Typography");
|
|
649
|
+
const ke = (e) => e === !1 ? [!1, !1] : nt(e);
|
|
650
|
+
function ge(e, t, n) {
|
|
651
|
+
return e === !0 || e === void 0 ? t : e || n && t;
|
|
652
|
+
}
|
|
653
|
+
function bn(e) {
|
|
654
|
+
const t = document.createElement("em");
|
|
655
|
+
e.appendChild(t), process.env.NODE_ENV !== "production" && (t.className = "ant-typography-css-ellipsis-content-measure");
|
|
656
|
+
const n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
657
|
+
return e.removeChild(t), // Horizontal out of range
|
|
658
|
+
n.left > r.left || r.right > n.right || // Vertical out of range
|
|
659
|
+
n.top > r.top || r.bottom > n.bottom;
|
|
660
|
+
}
|
|
661
|
+
const Te = (e) => ["string", "number"].includes(typeof e), xn = (e) => {
|
|
662
|
+
const {
|
|
663
|
+
prefixCls: t,
|
|
664
|
+
copied: n,
|
|
665
|
+
locale: r,
|
|
666
|
+
iconOnly: o,
|
|
667
|
+
tooltips: l,
|
|
668
|
+
icon: p,
|
|
669
|
+
tabIndex: f,
|
|
670
|
+
onCopy: d,
|
|
671
|
+
loading: u,
|
|
672
|
+
className: c,
|
|
673
|
+
style: b
|
|
674
|
+
} = e, N = ke(l), g = ke(p), {
|
|
675
|
+
copied: R,
|
|
676
|
+
copy: $
|
|
677
|
+
} = r ?? {}, C = n ? R : $, h = ge(N[n ? 1 : 0], C), M = typeof h == "string" ? h : C;
|
|
678
|
+
return /* @__PURE__ */ s.createElement($e, {
|
|
679
|
+
title: h
|
|
680
|
+
}, /* @__PURE__ */ s.createElement("button", {
|
|
681
|
+
type: "button",
|
|
682
|
+
className: k(`${t}-copy`, c, {
|
|
683
|
+
[`${t}-copy-success`]: n,
|
|
684
|
+
[`${t}-copy-icon-only`]: o
|
|
685
|
+
}),
|
|
686
|
+
style: b,
|
|
687
|
+
onClick: d,
|
|
688
|
+
"aria-label": M,
|
|
689
|
+
tabIndex: f
|
|
690
|
+
}, n ? ge(g[1], /* @__PURE__ */ s.createElement(Xt, null), !0) : ge(g[0], u ? /* @__PURE__ */ s.createElement(Ft, null) : /* @__PURE__ */ s.createElement(Ze, null), !0)));
|
|
691
|
+
}, re = /* @__PURE__ */ s.forwardRef(({
|
|
692
|
+
style: e,
|
|
693
|
+
children: t
|
|
694
|
+
}, n) => {
|
|
695
|
+
const r = s.useRef(null);
|
|
696
|
+
return s.useImperativeHandle(n, () => ({
|
|
697
|
+
isExceed: () => {
|
|
698
|
+
const o = r.current;
|
|
699
|
+
return o.scrollHeight > o.clientHeight;
|
|
700
|
+
},
|
|
701
|
+
getHeight: () => r.current.clientHeight
|
|
702
|
+
})), /* @__PURE__ */ s.createElement("span", {
|
|
703
|
+
"aria-hidden": !0,
|
|
704
|
+
ref: r,
|
|
705
|
+
style: {
|
|
706
|
+
position: "fixed",
|
|
707
|
+
display: "block",
|
|
708
|
+
left: 0,
|
|
709
|
+
top: 0,
|
|
710
|
+
pointerEvents: "none",
|
|
711
|
+
backgroundColor: "rgba(255, 0, 0, 0.65)",
|
|
712
|
+
...e
|
|
713
|
+
}
|
|
714
|
+
}, t);
|
|
715
|
+
}), Sn = (e) => e.reduce((t, n) => t + (Te(n) ? String(n).length : 1), 0);
|
|
716
|
+
function Fe(e, t) {
|
|
717
|
+
let n = 0;
|
|
718
|
+
const r = [];
|
|
719
|
+
for (let o = 0; o < e.length; o += 1) {
|
|
720
|
+
if (n === t)
|
|
721
|
+
return r;
|
|
722
|
+
const l = e[o], f = Te(l) ? String(l).length : 1, d = n + f;
|
|
723
|
+
if (d > t) {
|
|
724
|
+
const u = t - n;
|
|
725
|
+
return r.push(String(l).slice(0, u)), r;
|
|
726
|
+
}
|
|
727
|
+
r.push(l), n = d;
|
|
728
|
+
}
|
|
729
|
+
return e;
|
|
730
|
+
}
|
|
731
|
+
const ye = 0, Ee = 1, he = 2, be = 3, Ue = 4, oe = {
|
|
732
|
+
display: "-webkit-box",
|
|
733
|
+
overflow: "hidden",
|
|
734
|
+
WebkitBoxOrient: "vertical"
|
|
735
|
+
};
|
|
736
|
+
function vn(e) {
|
|
737
|
+
const {
|
|
738
|
+
enableMeasure: t,
|
|
739
|
+
width: n,
|
|
740
|
+
text: r,
|
|
741
|
+
children: o,
|
|
742
|
+
rows: l,
|
|
743
|
+
expanded: p,
|
|
744
|
+
measureDeps: f,
|
|
745
|
+
miscDeps: d,
|
|
746
|
+
onEllipsis: u
|
|
747
|
+
} = e, c = s.useMemo(() => Ye(r), [r]), b = s.useMemo(() => Sn(c), [r]), N = s.useMemo(() => o(c, !1), [r].concat(ie(f))), [g, R] = s.useState(null), $ = s.useRef(null), C = s.useRef(null), h = s.useRef(null), M = s.useRef(null), _ = s.useRef(null), [j, E] = s.useState(!1), [w, B] = s.useState(ye), [H, L] = s.useState(0), [x, q] = s.useState(null);
|
|
748
|
+
J(() => {
|
|
749
|
+
B(t && n && b ? Ee : ye);
|
|
750
|
+
}, [n, r, l, t, c].concat(ie(f))), J(() => {
|
|
751
|
+
var y, T, I, W;
|
|
752
|
+
if (w === Ee) {
|
|
753
|
+
B(he);
|
|
754
|
+
const O = C.current && getComputedStyle(C.current).whiteSpace;
|
|
755
|
+
q(O);
|
|
756
|
+
} else if (w === he) {
|
|
757
|
+
const O = !!((y = h.current) != null && y.isExceed());
|
|
758
|
+
B(O ? be : Ue), R(O ? [0, b] : null), E(O);
|
|
759
|
+
const z = ((T = h.current) == null ? void 0 : T.getHeight()) || 0, ce = l === 1 ? 0 : ((I = M.current) == null ? void 0 : I.getHeight()) || 0, de = ((W = _.current) == null ? void 0 : W.getHeight()) || 0, K = Math.max(
|
|
760
|
+
z,
|
|
761
|
+
// height of rows with ellipsis
|
|
762
|
+
ce + de
|
|
763
|
+
);
|
|
764
|
+
L(K + 1), u(O);
|
|
765
|
+
}
|
|
766
|
+
}, [w]);
|
|
767
|
+
const F = g ? Math.ceil((g[0] + g[1]) / 2) : 0;
|
|
768
|
+
J(() => {
|
|
769
|
+
var I;
|
|
770
|
+
const [y, T] = g || [0, 0];
|
|
771
|
+
if (y !== T) {
|
|
772
|
+
const O = (((I = $.current) == null ? void 0 : I.getHeight()) || 0) > H;
|
|
773
|
+
let z = F;
|
|
774
|
+
T - y === 1 && (z = O ? y : T), R(O ? [y, z] : [z, T]);
|
|
775
|
+
}
|
|
776
|
+
}, [g, F]);
|
|
777
|
+
const P = s.useMemo(() => {
|
|
778
|
+
if (!t)
|
|
779
|
+
return o(c, !1);
|
|
780
|
+
if (w !== be || !g || g[0] !== g[1]) {
|
|
781
|
+
const y = o(c, !1);
|
|
782
|
+
return [Ue, ye].includes(w) ? y : /* @__PURE__ */ s.createElement("span", {
|
|
783
|
+
style: {
|
|
784
|
+
...oe,
|
|
785
|
+
WebkitLineClamp: l
|
|
786
|
+
}
|
|
787
|
+
}, y);
|
|
788
|
+
}
|
|
789
|
+
return o(p ? c : Fe(c, g[0]), j);
|
|
790
|
+
}, [p, w, g, c].concat(ie(d))), m = {
|
|
791
|
+
width: n,
|
|
792
|
+
margin: 0,
|
|
793
|
+
padding: 0,
|
|
794
|
+
whiteSpace: x === "nowrap" ? "normal" : "inherit"
|
|
795
|
+
};
|
|
796
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, P, w === he && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(re, {
|
|
797
|
+
style: {
|
|
798
|
+
...m,
|
|
799
|
+
...oe,
|
|
800
|
+
WebkitLineClamp: l
|
|
801
|
+
},
|
|
802
|
+
ref: h
|
|
803
|
+
}, N), /* @__PURE__ */ s.createElement(re, {
|
|
804
|
+
style: {
|
|
805
|
+
...m,
|
|
806
|
+
...oe,
|
|
807
|
+
WebkitLineClamp: l - 1
|
|
808
|
+
},
|
|
809
|
+
ref: M
|
|
810
|
+
}, N), /* @__PURE__ */ s.createElement(re, {
|
|
811
|
+
style: {
|
|
812
|
+
...m,
|
|
813
|
+
...oe,
|
|
814
|
+
WebkitLineClamp: 1
|
|
815
|
+
},
|
|
816
|
+
ref: _
|
|
817
|
+
}, o([], !0))), w === be && g && g[0] !== g[1] && /* @__PURE__ */ s.createElement(re, {
|
|
818
|
+
style: {
|
|
819
|
+
...m,
|
|
820
|
+
top: 400
|
|
821
|
+
},
|
|
822
|
+
ref: $
|
|
823
|
+
}, o(Fe(c, F), !0)), w === Ee && /* @__PURE__ */ s.createElement("span", {
|
|
824
|
+
style: {
|
|
825
|
+
whiteSpace: "inherit"
|
|
826
|
+
},
|
|
827
|
+
ref: C
|
|
828
|
+
}));
|
|
829
|
+
}
|
|
830
|
+
const it = ({
|
|
831
|
+
enableEllipsis: e,
|
|
832
|
+
isEllipsis: t,
|
|
833
|
+
disabled: n,
|
|
834
|
+
children: r,
|
|
835
|
+
tooltipProps: o
|
|
836
|
+
}) => !(o != null && o.title) || !e ? r : /* @__PURE__ */ s.createElement($e, {
|
|
837
|
+
...o,
|
|
838
|
+
disabled: !t || n
|
|
839
|
+
}, r);
|
|
840
|
+
process.env.NODE_ENV !== "production" && (it.displayName = "EllipsisTooltip");
|
|
841
|
+
function Cn({
|
|
842
|
+
mark: e,
|
|
843
|
+
code: t,
|
|
844
|
+
underline: n,
|
|
845
|
+
delete: r,
|
|
846
|
+
strong: o,
|
|
847
|
+
keyboard: l,
|
|
848
|
+
italic: p
|
|
849
|
+
}, f) {
|
|
850
|
+
let d = f;
|
|
851
|
+
function u(c, b) {
|
|
852
|
+
b && (d = /* @__PURE__ */ s.createElement(c, {}, d));
|
|
853
|
+
}
|
|
854
|
+
return u("strong", o), u("u", n), u("del", r), u("code", t), u("mark", e), u("kbd", l), u("i", p), d;
|
|
855
|
+
}
|
|
856
|
+
const Nn = "...", je = ["delete", "mark", "code", "underline", "strong", "keyboard", "italic"], ae = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
857
|
+
const {
|
|
858
|
+
prefixCls: n,
|
|
859
|
+
className: r,
|
|
860
|
+
style: o,
|
|
861
|
+
classNames: l,
|
|
862
|
+
styles: p,
|
|
863
|
+
direction: f,
|
|
864
|
+
type: d,
|
|
865
|
+
disabled: u,
|
|
866
|
+
children: c,
|
|
867
|
+
ellipsis: b,
|
|
868
|
+
editable: N,
|
|
869
|
+
copyable: g,
|
|
870
|
+
actions: R,
|
|
871
|
+
component: $,
|
|
872
|
+
title: C,
|
|
873
|
+
onClick: h,
|
|
874
|
+
onMouseEnter: M,
|
|
875
|
+
onMouseLeave: _,
|
|
876
|
+
...j
|
|
877
|
+
} = e, [E] = Ut("Text"), w = s.useRef(null), B = s.useRef(null), [H, L, x, q] = rt(n, l, p, f, e), F = Qe(j, je), [P, m] = fe(N), [y, T] = Pe(!1, m.editing), {
|
|
878
|
+
triggerType: I = ["icon"]
|
|
879
|
+
} = m, W = (i) => {
|
|
880
|
+
var a;
|
|
881
|
+
i && ((a = m.onStart) == null || a.call(m)), T(i);
|
|
882
|
+
}, O = En(y);
|
|
883
|
+
J(() => {
|
|
884
|
+
var i;
|
|
885
|
+
!y && O && ((i = B.current) == null || i.focus());
|
|
886
|
+
}, [y]);
|
|
887
|
+
const z = (i) => {
|
|
888
|
+
i == null || i.preventDefault(), W(!0);
|
|
889
|
+
}, ce = (i) => {
|
|
890
|
+
var a;
|
|
891
|
+
(a = m.onChange) == null || a.call(m, i), W(!1);
|
|
892
|
+
}, de = () => {
|
|
893
|
+
var i;
|
|
894
|
+
(i = m.onCancel) == null || i.call(m), W(!1);
|
|
895
|
+
}, [K, Re] = fe(g), {
|
|
896
|
+
placement: Y = "end"
|
|
897
|
+
} = R ?? {}, {
|
|
898
|
+
copied: Ie,
|
|
899
|
+
copyLoading: Oe,
|
|
900
|
+
onClick: at
|
|
901
|
+
} = yn({
|
|
902
|
+
copyConfig: Re,
|
|
903
|
+
children: c
|
|
904
|
+
}), [De, lt] = s.useState(!1), [Me, ct] = s.useState(!1), [Le, dt] = s.useState(!1), [pt, ut] = s.useState(!1), [mt, ft] = s.useState(!0), [V, S] = fe(b, {
|
|
905
|
+
expandable: !1,
|
|
906
|
+
symbol: (i) => i ? E == null ? void 0 : E.collapse : E == null ? void 0 : E.expand
|
|
907
|
+
}), [A, gt] = Pe(S.defaultExpanded || !1, S.expanded), D = V && (!A || S.expandable === "collapsible"), {
|
|
908
|
+
rows: X = 1
|
|
909
|
+
} = S, te = s.useMemo(() => (
|
|
910
|
+
// Disable ellipsis
|
|
911
|
+
D && // Provide suffix
|
|
912
|
+
(S.suffix !== void 0 || S.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
|
|
913
|
+
S.expandable || P || K)
|
|
914
|
+
), [D, S, P, K]);
|
|
915
|
+
J(() => {
|
|
916
|
+
V && !te && (lt(Ve("webkitLineClamp")), ct(Ve("textOverflow")));
|
|
917
|
+
}, [te, V]);
|
|
918
|
+
const [U, yt] = s.useState(D), He = s.useMemo(() => te ? !1 : X === 1 ? Me : De, [te, X, De, Me]);
|
|
919
|
+
J(() => {
|
|
920
|
+
yt(He && D);
|
|
921
|
+
}, [He, D]);
|
|
922
|
+
const ne = hn(S.tooltip, m.text, c), Q = U && !!ne.title, _e = D && (U ? Q && pt : Le), Et = D && X === 1 && U, pe = D && X > 1 && U, ht = (i, a) => {
|
|
923
|
+
var v;
|
|
924
|
+
gt(a.expanded), (v = S.onExpand) == null || v.call(S, i, a);
|
|
925
|
+
}, [Be, bt] = s.useState(0), [xt, We] = Ge(!1), ue = s.useRef(!1), St = ({
|
|
926
|
+
offsetWidth: i
|
|
927
|
+
}) => {
|
|
928
|
+
bt(i);
|
|
929
|
+
}, vt = (i) => {
|
|
930
|
+
var a;
|
|
931
|
+
dt(i), Le !== i && ((a = S.onEllipsis) == null || a.call(S, i));
|
|
932
|
+
}, me = s.useCallback(() => {
|
|
933
|
+
const i = w.current;
|
|
934
|
+
if (V && Q && i) {
|
|
935
|
+
const a = bn(i);
|
|
936
|
+
ut((v) => v === a ? v : a);
|
|
937
|
+
}
|
|
938
|
+
}, [V, Q]);
|
|
939
|
+
s.useEffect(() => {
|
|
940
|
+
ue.current && me();
|
|
941
|
+
}, [me, c, pe, mt, Be]), s.useEffect(() => {
|
|
942
|
+
const i = w.current;
|
|
943
|
+
if (typeof IntersectionObserver > "u" || !i || !Q || !D)
|
|
944
|
+
return;
|
|
945
|
+
const a = new IntersectionObserver(() => {
|
|
946
|
+
ft(!!i.offsetParent);
|
|
947
|
+
});
|
|
948
|
+
return a.observe(i), () => {
|
|
949
|
+
a.disconnect();
|
|
950
|
+
};
|
|
951
|
+
}, [Q, D]);
|
|
952
|
+
const se = s.useMemo(() => {
|
|
953
|
+
if (!(!V || U))
|
|
954
|
+
return [m.text, c, C, ne.title].find(Te);
|
|
955
|
+
}, [V, U, C, ne.title, _e, m.text]);
|
|
956
|
+
if (y)
|
|
957
|
+
return /* @__PURE__ */ s.createElement(un, {
|
|
958
|
+
value: m.text ?? (typeof c == "string" ? c : ""),
|
|
959
|
+
onSave: ce,
|
|
960
|
+
onCancel: de,
|
|
961
|
+
onEnd: m.onEnd,
|
|
962
|
+
prefixCls: x,
|
|
963
|
+
className: r,
|
|
964
|
+
style: o,
|
|
965
|
+
direction: q,
|
|
966
|
+
component: $,
|
|
967
|
+
maxLength: m.maxLength,
|
|
968
|
+
autoSize: m.autoSize,
|
|
969
|
+
enterIcon: m.enterIcon,
|
|
970
|
+
classNames: H,
|
|
971
|
+
styles: L
|
|
972
|
+
});
|
|
973
|
+
const Ct = () => {
|
|
974
|
+
const {
|
|
975
|
+
expandable: i,
|
|
976
|
+
symbol: a
|
|
977
|
+
} = S;
|
|
978
|
+
return i ? /* @__PURE__ */ s.createElement("button", {
|
|
979
|
+
type: "button",
|
|
980
|
+
key: "expand",
|
|
981
|
+
className: k(`${x}-${A ? "collapse" : "expand"}`, H.action),
|
|
982
|
+
style: L.action,
|
|
983
|
+
onClick: (v) => ht(v, {
|
|
984
|
+
expanded: !A
|
|
985
|
+
}),
|
|
986
|
+
"aria-label": A ? E.collapse : E == null ? void 0 : E.expand
|
|
987
|
+
}, Je(a) ? a(A) : a) : null;
|
|
988
|
+
}, Nt = () => {
|
|
989
|
+
if (!P)
|
|
990
|
+
return;
|
|
991
|
+
const {
|
|
992
|
+
icon: i,
|
|
993
|
+
tooltip: a,
|
|
994
|
+
tabIndex: v
|
|
995
|
+
} = m, G = Ye(a)[0] || (E == null ? void 0 : E.edit), Tt = typeof G == "string" ? G : "";
|
|
996
|
+
return I.includes("icon") ? /* @__PURE__ */ s.createElement($e, {
|
|
997
|
+
key: "edit",
|
|
998
|
+
title: a === !1 ? "" : G
|
|
999
|
+
}, /* @__PURE__ */ s.createElement("button", {
|
|
1000
|
+
type: "button",
|
|
1001
|
+
ref: B,
|
|
1002
|
+
className: k(`${x}-edit`, H.action),
|
|
1003
|
+
style: L.action,
|
|
1004
|
+
onClick: z,
|
|
1005
|
+
"aria-label": Tt,
|
|
1006
|
+
tabIndex: v
|
|
1007
|
+
}, i || /* @__PURE__ */ s.createElement(et, null))) : null;
|
|
1008
|
+
}, $t = () => K ? /* @__PURE__ */ s.createElement(xn, {
|
|
1009
|
+
key: "copy",
|
|
1010
|
+
...Re,
|
|
1011
|
+
prefixCls: x,
|
|
1012
|
+
copied: Ie,
|
|
1013
|
+
locale: E,
|
|
1014
|
+
onCopy: at,
|
|
1015
|
+
loading: Oe,
|
|
1016
|
+
iconOnly: !Kt(c),
|
|
1017
|
+
className: H.action,
|
|
1018
|
+
style: L.action
|
|
1019
|
+
}) : null, Ae = (i) => {
|
|
1020
|
+
const a = i && Ct(), v = Nt(), G = $t();
|
|
1021
|
+
return !a && !v && !G ? null : /* @__PURE__ */ s.createElement("span", {
|
|
1022
|
+
key: "operations",
|
|
1023
|
+
className: k(`${x}-actions`, H.actions, {
|
|
1024
|
+
[`${x}-actions-start`]: Y === "start"
|
|
1025
|
+
}),
|
|
1026
|
+
style: L.actions,
|
|
1027
|
+
onMouseEnter: () => We(!0, !0),
|
|
1028
|
+
onMouseLeave: () => We(!1, {
|
|
1029
|
+
// Delay 500ms for better user experience
|
|
1030
|
+
ms: 500
|
|
1031
|
+
})
|
|
1032
|
+
}, a, v, G);
|
|
1033
|
+
}, wt = (i) => [i && !A && /* @__PURE__ */ s.createElement("span", {
|
|
1034
|
+
"aria-hidden": !0,
|
|
1035
|
+
key: "ellipsis"
|
|
1036
|
+
}, Nn), S.suffix];
|
|
1037
|
+
return /* @__PURE__ */ s.createElement(jt, {
|
|
1038
|
+
onResize: St,
|
|
1039
|
+
disabled: !D
|
|
1040
|
+
}, (i) => /* @__PURE__ */ s.createElement(it, {
|
|
1041
|
+
tooltipProps: ne,
|
|
1042
|
+
enableEllipsis: D,
|
|
1043
|
+
isEllipsis: _e,
|
|
1044
|
+
disabled: xt
|
|
1045
|
+
}, /* @__PURE__ */ s.createElement(we, {
|
|
1046
|
+
onMouseEnter: (a) => {
|
|
1047
|
+
ue.current = !0, me(), M == null || M(a);
|
|
1048
|
+
},
|
|
1049
|
+
onMouseLeave: (a) => {
|
|
1050
|
+
ue.current = !1, _ == null || _(a);
|
|
1051
|
+
},
|
|
1052
|
+
className: k({
|
|
1053
|
+
[`${x}-${d}`]: d,
|
|
1054
|
+
[`${x}-disabled`]: u,
|
|
1055
|
+
[`${x}-ellipsis`]: V,
|
|
1056
|
+
[`${x}-ellipsis-single-line`]: Et,
|
|
1057
|
+
[`${x}-ellipsis-multiple-line`]: pe,
|
|
1058
|
+
[`${x}-link`]: $ === "a"
|
|
1059
|
+
}, r),
|
|
1060
|
+
classNames: H,
|
|
1061
|
+
styles: L,
|
|
1062
|
+
prefixCls: x,
|
|
1063
|
+
style: {
|
|
1064
|
+
...o,
|
|
1065
|
+
WebkitLineClamp: pe ? X : void 0
|
|
1066
|
+
},
|
|
1067
|
+
component: $,
|
|
1068
|
+
ref: qt(i, w, t),
|
|
1069
|
+
direction: q,
|
|
1070
|
+
onClick: (a) => {
|
|
1071
|
+
I.includes("text") && z(a), h == null || h(a);
|
|
1072
|
+
},
|
|
1073
|
+
"aria-label": se == null ? void 0 : se.toString(),
|
|
1074
|
+
title: C,
|
|
1075
|
+
...F
|
|
1076
|
+
}, /* @__PURE__ */ s.createElement(vn, {
|
|
1077
|
+
enableMeasure: D && !U,
|
|
1078
|
+
text: c,
|
|
1079
|
+
rows: X,
|
|
1080
|
+
width: Be,
|
|
1081
|
+
onEllipsis: vt,
|
|
1082
|
+
expanded: A,
|
|
1083
|
+
measureDeps: [Y],
|
|
1084
|
+
miscDeps: [Ie, A, Oe, P, K, Y, E].concat(ie(je.map((a) => e[a])))
|
|
1085
|
+
}, (a, v) => Cn(e, /* @__PURE__ */ s.createElement(s.Fragment, null, Y === "start" ? Ae(v) : null, a.length > 0 && v && !A && se ? /* @__PURE__ */ s.createElement("span", {
|
|
1086
|
+
key: "show-content",
|
|
1087
|
+
"aria-hidden": !0
|
|
1088
|
+
}, a) : a, wt(v), Y === "start" ? null : Ae(v)))))));
|
|
1089
|
+
}), $n = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
1090
|
+
const {
|
|
1091
|
+
ellipsis: n,
|
|
1092
|
+
rel: r,
|
|
1093
|
+
children: o,
|
|
1094
|
+
// @ts-expect-error: https://github.com/ant-design/ant-design/issues/26622
|
|
1095
|
+
navigate: l,
|
|
1096
|
+
...p
|
|
1097
|
+
} = e;
|
|
1098
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1099
|
+
const d = Ce("Typography.Link");
|
|
1100
|
+
process.env.NODE_ENV !== "production" && d(!ee(n), "usage", "`ellipsis` only supports boolean value.");
|
|
1101
|
+
}
|
|
1102
|
+
const f = {
|
|
1103
|
+
...p,
|
|
1104
|
+
rel: r === void 0 && p.target === "_blank" ? "noopener noreferrer" : r
|
|
1105
|
+
};
|
|
1106
|
+
return /* @__PURE__ */ s.createElement(ae, {
|
|
1107
|
+
...f,
|
|
1108
|
+
ref: t,
|
|
1109
|
+
ellipsis: !!n,
|
|
1110
|
+
component: "a"
|
|
1111
|
+
}, o);
|
|
1112
|
+
}), wn = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
1113
|
+
const {
|
|
1114
|
+
children: n,
|
|
1115
|
+
...r
|
|
1116
|
+
} = e;
|
|
1117
|
+
return /* @__PURE__ */ s.createElement(ae, {
|
|
1118
|
+
ref: t,
|
|
1119
|
+
...r,
|
|
1120
|
+
component: "div"
|
|
1121
|
+
}, n);
|
|
1122
|
+
}), Tn = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
1123
|
+
const {
|
|
1124
|
+
ellipsis: n,
|
|
1125
|
+
children: r,
|
|
1126
|
+
...o
|
|
1127
|
+
} = e, l = s.useMemo(() => ee(n) ? Qe(n, ["expandable", "rows"]) : n, [n]);
|
|
1128
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1129
|
+
const p = Ce("Typography.Text");
|
|
1130
|
+
process.env.NODE_ENV !== "production" && p(!ee(n) || !("expandable" in n) && !("rows" in n), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
|
|
1131
|
+
}
|
|
1132
|
+
return /* @__PURE__ */ s.createElement(ae, {
|
|
1133
|
+
ref: t,
|
|
1134
|
+
...o,
|
|
1135
|
+
ellipsis: l,
|
|
1136
|
+
component: "span"
|
|
1137
|
+
}, r);
|
|
1138
|
+
}), qe = [1, 2, 3, 4, 5], Rn = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
1139
|
+
const {
|
|
1140
|
+
level: n = 1,
|
|
1141
|
+
children: r,
|
|
1142
|
+
...o
|
|
1143
|
+
} = e;
|
|
1144
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1145
|
+
const p = Ce("Typography.Title");
|
|
1146
|
+
process.env.NODE_ENV !== "production" && p(qe.includes(n), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
|
|
1147
|
+
}
|
|
1148
|
+
const l = qe.includes(n) ? `h${n}` : "h1";
|
|
1149
|
+
return /* @__PURE__ */ s.createElement(ae, {
|
|
1150
|
+
ref: t,
|
|
1151
|
+
...o,
|
|
1152
|
+
component: l
|
|
1153
|
+
}, r);
|
|
1154
|
+
}), le = ot;
|
|
1155
|
+
le.Text = Tn;
|
|
1156
|
+
le.Link = $n;
|
|
1157
|
+
le.Title = Rn;
|
|
1158
|
+
le.Paragraph = wn;
|
|
1159
|
+
export {
|
|
1160
|
+
et as R,
|
|
1161
|
+
le as T
|
|
1162
|
+
};
|