@yuku123/z-cognition-component 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/BaseInput-rxw05EpT.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DqK04lTb.js +12 -0
- package/dist-lib/Collapse-D9XOithE.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-DnGmqa7C.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-VzQrhleP.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BuFXTevS.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-D1RvQXGM.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-DlxcvD0O.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-CabJdV6W.js} +46 -46
- package/dist-lib/{ai-DYDhijtn.js → ai-DZ6fqUyK.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-CYSU7UlK.js} +13 -14
- package/dist-lib/ak-manage-MTp2UyyK.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-F9OYS1Ov.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-DDEl02-L.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-CcC1rvys.js} +48 -49
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-_axkM_DR.js} +128 -130
- package/dist-lib/callSuper-CuPJalb0.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-BPLw60Ia.js +76 -0
- package/dist-lib/causal-CcWolsb5.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/changelog-DC6nlUDh.js +103 -0
- package/dist-lib/chat-panel-CgpP4Xf5.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-CZ3CzVcA.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-BsFEfaVs.js} +1 -1
- package/dist-lib/community-D9mD_Tq1.js +217 -0
- package/dist-lib/community-ESJc4qtl.js +70 -0
- package/dist-lib/community-material-page-Ct5uMwhv.js +747 -0
- package/dist-lib/connections-DrxmCfe3.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/{detail-Cx5c4KJH.js → detail-DXOJf57e.js} +39 -40
- package/dist-lib/detail-kPAVlzm3.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-lGslEB8s.js} +5847 -7224
- package/dist-lib/development-aLXXcLcF.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DFOEFvX6.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-BbtVK23D.js} +200 -204
- package/dist-lib/{editor-mtaJBQXz.js → editor-DbLQFOUf.js} +25 -26
- package/dist-lib/editor-page-B_H0fRAI.js +1169 -0
- package/dist-lib/embed-BUaR8PAn.js +51816 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-8Tx-3UQh.js} +14 -15
- package/dist-lib/execution-Dz5dBEFl.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DacHEbKr.js +640 -0
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B6G8CZ1v.js +915 -0
- package/dist-lib/index-BDWjubAD.js +390 -0
- package/dist-lib/{index-BEjXaDfk.js → index-BI-rknta.js} +53 -54
- package/dist-lib/index-BLGPH51v.js +251 -0
- package/dist-lib/index-BMv3kGDG.js +236 -0
- package/dist-lib/{index-CHBNrCMy.js → index-BOB3j3H_.js} +29 -29
- package/dist-lib/index-BU2GXuww.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-BWmgE7bB.js +2075 -0
- package/dist-lib/{index-B57Fj7Y0.js → index-Be_iqVpx.js} +50 -52
- package/dist-lib/{index-y7jVGGI0.js → index-Bf8IQq4A.js} +21 -23
- package/dist-lib/{index-DsuUGhTA.js → index-Bi7O9pQv.js} +177 -179
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/{index-DBlG9uXV.js → index-Bt9F-2Fl.js} +520 -597
- package/dist-lib/{index-Cj4DDWyj.js → index-BtW_nQBU.js} +10 -11
- package/dist-lib/{index-CyKWCYMK.js → index-BuGHtvxH.js} +81 -84
- package/dist-lib/{index-Bc-Vin3j.js → index-CDxeB8C4.js} +47 -49
- package/dist-lib/index-CNBwau86.js +1166 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-CS6H40rM.js} +24 -25
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-o65vKUwa.js → index-CSoMwNHq.js} +82 -83
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/index-CdNxm2We.js +1987 -0
- package/dist-lib/{index-DMTPsTna.js → index-CjFA5T3K.js} +3 -4
- package/dist-lib/{index-Bm1sK-VN.js → index-D23tZfhi.js} +10 -10
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/index-D7nLwQye.js +5012 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/{index-BwVZgt5s.js → index-DR9LGJpi.js} +46 -48
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DTgboCiF.js +566 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-Vu6sPBci.js → index-Ddx6XQu5.js} +285 -280
- package/dist-lib/index-Di2bQwQn.js +242 -0
- package/dist-lib/{index-Cy9i4Kx7.js → index-DlqhOJnd.js} +101 -105
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/{index-CLTfICbf.js → index-GQGXGr9M.js} +6 -6
- package/dist-lib/{index-nQSVLWfW.js → index-IB3GOib9.js} +81 -83
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-Pcxp_AYe.js +1719 -0
- package/dist-lib/{index-ounfql2z.js → index-QkktEus5.js} +25 -27
- package/dist-lib/{index-B22_2Dzh.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-D3GHtSlM.js → index-jHh-ITBK.js} +28 -29
- package/dist-lib/index-keRQ37lH.js +853 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-BSlCGnzo.js → index-n6hK1r_G.js} +12 -12
- package/dist-lib/index-qYfXuLnZ.js +34 -0
- package/dist-lib/index-yPMzsLHL.js +77 -0
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-Bu-gFb6c.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-DsXpXfNT.js} +64 -63
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-D8hsAHI5.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-D2XMD7iI.js} +111 -111
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-BoBR8-j-.js} +52 -53
- package/dist-lib/login-B4C374Y_.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-ROKlyMXg.js} +156 -160
- package/dist-lib/material-CqtPqoZj.js +204 -0
- package/dist-lib/material-draft-markdown-BKlKt3pc.js +443 -0
- package/dist-lib/material-original-preview-pzANkVK5.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-BUpogooV.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +8 -0
- package/dist-lib/memory-spaces-CZGIBlz2.js +2340 -0
- package/dist-lib/{message-BrooQ3Q7.js → message-Chq3cAdy.js} +24 -25
- package/dist-lib/{message-Dievi8Jw.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-xTNmTS9g.js → messages-DciGawgR.js} +15 -16
- package/dist-lib/meta-BWgVxZgd.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/mobile-CNrK04Ak.js +2413 -0
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-BpUJZCht.js} +8 -8
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-CaTKbDI1.js} +4 -4
- package/dist-lib/{my-access-CEGErUgv.js → my-access-ZH5CWVGF.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-edhi0lav.js} +22 -23
- package/dist-lib/navigation-2WdPUP2T.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-Dq6mvU2w.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-BX6X1X2J.js} +50 -52
- package/dist-lib/ontology-dataprep-BjMnFRBG.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-B7AuwW8S.js} +100 -103
- package/dist-lib/ontology-extract-FpJ6K8z6.js +295 -0
- package/dist-lib/ontology-extract-wbvBwGZO.js +3199 -0
- package/dist-lib/ontology-flow-CJsIvS35.js +456 -0
- package/dist-lib/ontology-flow-Cgi8Fk-i.js +154 -0
- package/dist-lib/ontology-modeling-C_6GvHBT.js +15136 -0
- package/dist-lib/ontology-modeling-CeDS1-FE.js +510 -0
- package/dist-lib/ontology-scenarios-4Ar7Y8Kt.js +675 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-BaYN82pv.js} +1289 -1305
- package/dist-lib/ontology-task-config-CDt7NdIq.js +122 -0
- package/dist-lib/ontology-terms-CnFarWZX.js +66 -0
- package/dist-lib/ontology-terms-CxTp2Dcq.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-CNqwhyF3.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-CfByvcqu.js} +8 -8
- package/dist-lib/progress-ImhDvynO.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-B38BWyPo.js} +4 -3
- package/dist-lib/row-DeVE0t_N.js +154 -0
- package/dist-lib/runs-ILSUwEOv.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-7v1SRE7V.js} +43 -45
- package/dist-lib/scenario-simple-form-mFm6f2ho.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-DzB9rZrm.js} +8 -8
- package/dist-lib/script-CKdVDsYh.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CaihqQtz.js} +121 -121
- package/dist-lib/{shared-CTCzvhyE.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-By3A0Dc1.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-sIKyG7xR.js} +16 -16
- package/dist-lib/sources-DvIMColY.js +279 -0
- package/dist-lib/style-BHQZmWlH.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-CoPFj_FN.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-BJgEEFrT.js} +3 -4
- package/dist-lib/templates-CODaf2QI.js +58 -0
- package/dist-lib/tenant-login-DmN4qfah.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CyRz1Ofg.js} +14 -14
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-BuD99GTw.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-Cbd3Jggb.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-B8dF3ifo.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-BZkiMeaN.js} +9 -9
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-HdMlbpbO.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-BYoxw4GV.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-CMNXQf8J.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import { useRef as dt, useEffect as ut, useMemo as pt, isValidElement as ft } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { T as
|
|
7
|
-
import {
|
|
8
|
-
import { R as wt } from "./index-bOY1cBol.js";
|
|
3
|
+
import { a_ as ge, a$ as ye, cN as mt, bJ as Pe, a6 as gt, a5 as Q, ba as yt, bG as Re, bp as bt, aq as vt, at as Ae, ap as Y, cO as Et, b2 as ht, aS as He, aZ as W, ag as ke, a8 as xt, b0 as Ot, a9 as ze, bi as Te, br as St } from "./embed-BUaR8PAn.js";
|
|
4
|
+
import { i as _e } from "./index-BMv3kGDG.js";
|
|
5
|
+
import { T as be } from "./index-DR9LGJpi.js";
|
|
6
|
+
import { T as Ct } from "./index-CNBwau86.js";
|
|
7
|
+
import { g as wt } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
9
8
|
const Rt = (e, n = !1) => n && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
10
9
|
var Tt = { 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" }, _t = function(n, o) {
|
|
11
10
|
return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
|
|
@@ -87,7 +86,7 @@ const It = (e, n, o, t) => {
|
|
|
87
86
|
mark: {
|
|
88
87
|
padding: 0,
|
|
89
88
|
// FIXME hardcode in v4
|
|
90
|
-
backgroundColor:
|
|
89
|
+
backgroundColor: mt[2]
|
|
91
90
|
},
|
|
92
91
|
"u, ins": {
|
|
93
92
|
textDecoration: "underline",
|
|
@@ -220,7 +219,7 @@ const It = (e, n, o, t) => {
|
|
|
220
219
|
WebkitLineClamp: 3,
|
|
221
220
|
WebkitBoxOrient: "vertical"
|
|
222
221
|
}
|
|
223
|
-
}),
|
|
222
|
+
}), Ht = (e) => {
|
|
224
223
|
const {
|
|
225
224
|
componentCls: n,
|
|
226
225
|
titleMarginTop: o
|
|
@@ -287,10 +286,10 @@ const It = (e, n, o, t) => {
|
|
|
287
286
|
}
|
|
288
287
|
})
|
|
289
288
|
};
|
|
290
|
-
},
|
|
289
|
+
}, kt = () => ({
|
|
291
290
|
titleMarginTop: "1.2em",
|
|
292
291
|
titleMarginBottom: "0.5em"
|
|
293
|
-
}), We =
|
|
292
|
+
}), We = gt("Typography", Ht, kt), zt = (e) => {
|
|
294
293
|
const {
|
|
295
294
|
prefixCls: n,
|
|
296
295
|
"aria-label": o,
|
|
@@ -321,7 +320,7 @@ const It = (e, n, o, t) => {
|
|
|
321
320
|
S.setSelectionRange(x, x);
|
|
322
321
|
}
|
|
323
322
|
}, []);
|
|
324
|
-
const
|
|
323
|
+
const H = ({
|
|
325
324
|
target: v
|
|
326
325
|
}) => {
|
|
327
326
|
I(v.value.replace(/[\n\r]/g, ""));
|
|
@@ -335,7 +334,7 @@ const It = (e, n, o, t) => {
|
|
|
335
334
|
b.current || (C.current = v);
|
|
336
335
|
}, E = () => {
|
|
337
336
|
u(y.trim());
|
|
338
|
-
},
|
|
337
|
+
}, k = ({
|
|
339
338
|
keyCode: v,
|
|
340
339
|
ctrlKey: S,
|
|
341
340
|
altKey: x,
|
|
@@ -345,7 +344,7 @@ const It = (e, n, o, t) => {
|
|
|
345
344
|
C.current !== v || b.current || S || x || P || _ || (v === Re.ENTER ? (E(), m == null || m()) : v === Re.ESC && p());
|
|
346
345
|
}, U = () => {
|
|
347
346
|
E();
|
|
348
|
-
}, [V, L, F] = We(n), M =
|
|
347
|
+
}, [V, L, F] = We(n), M = Q(n, `${n}-edit-content`, {
|
|
349
348
|
[`${n}-rtl`]: l === "rtl",
|
|
350
349
|
[`${n}-${a}`]: !!a
|
|
351
350
|
}, t, L, F);
|
|
@@ -356,16 +355,16 @@ const It = (e, n, o, t) => {
|
|
|
356
355
|
ref: O,
|
|
357
356
|
maxLength: i,
|
|
358
357
|
value: y,
|
|
359
|
-
onChange:
|
|
358
|
+
onChange: H,
|
|
360
359
|
onKeyDown: j,
|
|
361
|
-
onKeyUp:
|
|
360
|
+
onKeyUp: k,
|
|
362
361
|
onCompositionStart: w,
|
|
363
362
|
onCompositionEnd: R,
|
|
364
363
|
onBlur: U,
|
|
365
364
|
"aria-label": o,
|
|
366
365
|
rows: 1,
|
|
367
366
|
autoSize: g
|
|
368
|
-
}), h !== null ?
|
|
367
|
+
}), h !== null ? yt(h, {
|
|
369
368
|
className: `${n}-edit-content-confirm`
|
|
370
369
|
}) : null));
|
|
371
370
|
};
|
|
@@ -441,7 +440,7 @@ function Vt() {
|
|
|
441
440
|
return ae = s, ae;
|
|
442
441
|
}
|
|
443
442
|
var Wt = Vt();
|
|
444
|
-
const Ut = /* @__PURE__ */
|
|
443
|
+
const Ut = /* @__PURE__ */ wt(Wt);
|
|
445
444
|
var Ft = function(e, n, o, t) {
|
|
446
445
|
function s(l) {
|
|
447
446
|
return l instanceof o ? l : new o(function(i) {
|
|
@@ -477,7 +476,7 @@ const qt = ({
|
|
|
477
476
|
i.current && clearTimeout(i.current);
|
|
478
477
|
}, d = {};
|
|
479
478
|
e.format && (d.format = e.format), r.useEffect(() => g, []);
|
|
480
|
-
const u =
|
|
479
|
+
const u = bt((p) => Ft(void 0, void 0, void 0, function* () {
|
|
481
480
|
var m;
|
|
482
481
|
p == null || p.preventDefault(), p == null || p.stopPropagation(), l(!0);
|
|
483
482
|
try {
|
|
@@ -537,11 +536,11 @@ const ve = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
537
536
|
direction: a,
|
|
538
537
|
className: h,
|
|
539
538
|
style: O
|
|
540
|
-
} =
|
|
539
|
+
} = vt("typography"), b = d ?? a, C = i ? Ae(n, i) : n, y = m("typography", o);
|
|
541
540
|
process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!i, "setContentRef", "ref");
|
|
542
|
-
const [I,
|
|
541
|
+
const [I, H, w] = We(y), R = Q(y, h, {
|
|
543
542
|
[`${y}-rtl`]: b === "rtl"
|
|
544
|
-
}, s, l,
|
|
543
|
+
}, s, l, H, w), j = Object.assign(Object.assign({}, O), u);
|
|
545
544
|
return I(
|
|
546
545
|
// @ts-expect-error: Expression produces a union type that is too complex to represent.
|
|
547
546
|
/* @__PURE__ */ r.createElement(t, Object.assign({
|
|
@@ -552,12 +551,12 @@ const ve = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
552
551
|
);
|
|
553
552
|
});
|
|
554
553
|
process.env.NODE_ENV !== "production" && (ve.displayName = "Typography");
|
|
555
|
-
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" },
|
|
554
|
+
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" }, Zt = function(n, o) {
|
|
556
555
|
return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
|
|
557
556
|
ref: o,
|
|
558
557
|
icon: Gt
|
|
559
558
|
}));
|
|
560
|
-
}, Ue = /* @__PURE__ */ r.forwardRef(
|
|
559
|
+
}, Ue = /* @__PURE__ */ r.forwardRef(Zt);
|
|
561
560
|
process.env.NODE_ENV !== "production" && (Ue.displayName = "CopyOutlined");
|
|
562
561
|
function Ie(e) {
|
|
563
562
|
return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e];
|
|
@@ -565,7 +564,7 @@ function Ie(e) {
|
|
|
565
564
|
function de(e, n, o) {
|
|
566
565
|
return e === !0 || e === void 0 ? n : e || o && n;
|
|
567
566
|
}
|
|
568
|
-
function
|
|
567
|
+
function Qt(e) {
|
|
569
568
|
const n = document.createElement("em");
|
|
570
569
|
e.appendChild(n), process.env.NODE_ENV !== "production" && (n.className = "ant-typography-css-ellipsis-content-measure");
|
|
571
570
|
const o = e.getBoundingClientRect(), t = n.getBoundingClientRect();
|
|
@@ -573,7 +572,7 @@ function Yt(e) {
|
|
|
573
572
|
o.left > t.left || t.right > o.right || // Vertical out of range
|
|
574
573
|
o.top > t.top || t.bottom > o.bottom;
|
|
575
574
|
}
|
|
576
|
-
const Ee = (e) => ["string", "number"].includes(typeof e),
|
|
575
|
+
const Ee = (e) => ["string", "number"].includes(typeof e), Yt = ({
|
|
577
576
|
prefixCls: e,
|
|
578
577
|
copied: n,
|
|
579
578
|
locale: o,
|
|
@@ -592,14 +591,14 @@ const Ee = (e) => ["string", "number"].includes(typeof e), Zt = ({
|
|
|
592
591
|
title: O
|
|
593
592
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
594
593
|
type: "button",
|
|
595
|
-
className:
|
|
594
|
+
className: Q(`${e}-copy`, {
|
|
596
595
|
[`${e}-copy-success`]: n,
|
|
597
596
|
[`${e}-copy-icon-only`]: t
|
|
598
597
|
}),
|
|
599
598
|
onClick: g,
|
|
600
599
|
"aria-label": b,
|
|
601
600
|
tabIndex: i
|
|
602
|
-
}, n ? de(p[1], /* @__PURE__ */ r.createElement(
|
|
601
|
+
}, n ? de(p[1], /* @__PURE__ */ r.createElement(Et, null), !0) : de(p[0], d ? /* @__PURE__ */ r.createElement(ht, null) : /* @__PURE__ */ r.createElement(Ue, null), !0)));
|
|
603
602
|
}, G = /* @__PURE__ */ r.forwardRef(({
|
|
604
603
|
style: e,
|
|
605
604
|
children: n
|
|
@@ -639,7 +638,7 @@ function $e(e, n) {
|
|
|
639
638
|
}
|
|
640
639
|
return e;
|
|
641
640
|
}
|
|
642
|
-
const ue = 0, pe = 1, fe = 2, me = 3, De = 4,
|
|
641
|
+
const ue = 0, pe = 1, fe = 2, me = 3, De = 4, Z = {
|
|
643
642
|
display: "-webkit-box",
|
|
644
643
|
overflow: "hidden",
|
|
645
644
|
WebkitBoxOrient: "vertical"
|
|
@@ -654,7 +653,7 @@ function tn(e) {
|
|
|
654
653
|
expanded: i,
|
|
655
654
|
miscDeps: g,
|
|
656
655
|
onEllipsis: d
|
|
657
|
-
} = e, u = r.useMemo(() =>
|
|
656
|
+
} = e, u = r.useMemo(() => He(t), [t]), p = r.useMemo(() => en(u), [t]), m = r.useMemo(() => s(u, !1), [t]), [a, h] = r.useState(null), O = r.useRef(null), b = r.useRef(null), C = r.useRef(null), y = r.useRef(null), I = r.useRef(null), [H, w] = r.useState(!1), [R, j] = r.useState(ue), [E, k] = r.useState(0), [U, V] = r.useState(null);
|
|
658
657
|
W(() => {
|
|
659
658
|
j(n && o && p ? pe : ue);
|
|
660
659
|
}, [o, t, l, n, u]), W(() => {
|
|
@@ -671,7 +670,7 @@ function tn(e) {
|
|
|
671
670
|
// height of rows with ellipsis
|
|
672
671
|
ne + K
|
|
673
672
|
);
|
|
674
|
-
|
|
673
|
+
k(oe + 1), d(_);
|
|
675
674
|
}
|
|
676
675
|
}, [R]);
|
|
677
676
|
const L = a ? Math.ceil((a[0] + a[1]) / 2) : 0;
|
|
@@ -690,30 +689,30 @@ function tn(e) {
|
|
|
690
689
|
if (R !== me || !a || a[0] !== a[1]) {
|
|
691
690
|
const v = s(u, !1);
|
|
692
691
|
return [De, ue].includes(R) ? v : /* @__PURE__ */ r.createElement("span", {
|
|
693
|
-
style: Object.assign(Object.assign({},
|
|
692
|
+
style: Object.assign(Object.assign({}, Z), {
|
|
694
693
|
WebkitLineClamp: l
|
|
695
694
|
})
|
|
696
695
|
}, v);
|
|
697
696
|
}
|
|
698
|
-
return s(i ? u : $e(u, a[0]),
|
|
699
|
-
}, [i, R, a, u].concat(
|
|
697
|
+
return s(i ? u : $e(u, a[0]), H);
|
|
698
|
+
}, [i, R, a, u].concat(ke(g))), M = {
|
|
700
699
|
width: o,
|
|
701
700
|
margin: 0,
|
|
702
701
|
padding: 0,
|
|
703
702
|
whiteSpace: U === "nowrap" ? "normal" : "inherit"
|
|
704
703
|
};
|
|
705
704
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, F, R === fe && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(G, {
|
|
706
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
705
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
707
706
|
WebkitLineClamp: l
|
|
708
707
|
}),
|
|
709
708
|
ref: C
|
|
710
709
|
}, m), /* @__PURE__ */ r.createElement(G, {
|
|
711
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
710
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
712
711
|
WebkitLineClamp: l - 1
|
|
713
712
|
}),
|
|
714
713
|
ref: y
|
|
715
714
|
}, m), /* @__PURE__ */ r.createElement(G, {
|
|
716
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
715
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
717
716
|
WebkitLineClamp: 1
|
|
718
717
|
}),
|
|
719
718
|
ref: I
|
|
@@ -777,18 +776,18 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
777
776
|
} = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
|
|
778
777
|
getPrefixCls: b,
|
|
779
778
|
direction: C
|
|
780
|
-
} = r.useContext(
|
|
779
|
+
} = r.useContext(xt), [y] = Ot("Text"), I = r.useRef(null), H = r.useRef(null), w = b("typography", t), R = ze(O, Le), [j, E] = ce(p), [k, U] = Te(!1, {
|
|
781
780
|
value: E.editing
|
|
782
781
|
}), {
|
|
783
782
|
triggerType: V = ["icon"]
|
|
784
783
|
} = E, L = (c) => {
|
|
785
784
|
var f;
|
|
786
785
|
c && ((f = E.onStart) === null || f === void 0 || f.call(E)), U(c);
|
|
787
|
-
}, F = Kt(
|
|
786
|
+
}, F = Kt(k);
|
|
788
787
|
W(() => {
|
|
789
788
|
var c;
|
|
790
|
-
!
|
|
791
|
-
}, [
|
|
789
|
+
!k && F && ((c = H.current) === null || c === void 0 || c.focus());
|
|
790
|
+
}, [k]);
|
|
792
791
|
const M = (c) => {
|
|
793
792
|
c == null || c.preventDefault(), L(!0);
|
|
794
793
|
}, v = (c) => {
|
|
@@ -807,7 +806,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
807
806
|
}), [K, oe] = r.useState(!1), [he, qe] = r.useState(!1), [xe, Ke] = r.useState(!1), [Oe, Xe] = r.useState(!1), [Je, Ge] = r.useState(!0), [B, T] = ce(u, {
|
|
808
807
|
expandable: !1,
|
|
809
808
|
symbol: (c) => c ? y == null ? void 0 : y.collapse : y == null ? void 0 : y.expand
|
|
810
|
-
}), [A,
|
|
809
|
+
}), [A, Ze] = Te(T.defaultExpanded || !1, {
|
|
811
810
|
value: T.expanded
|
|
812
811
|
}), N = B && (!A || T.expandable === "collapsible"), {
|
|
813
812
|
rows: q = 1
|
|
@@ -820,13 +819,13 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
820
819
|
W(() => {
|
|
821
820
|
B && !X && (oe(_e("webkitLineClamp")), qe(_e("textOverflow")));
|
|
822
821
|
}, [X, B]);
|
|
823
|
-
const [$,
|
|
822
|
+
const [$, Qe] = r.useState(N), Se = r.useMemo(() => X ? !1 : q === 1 ? he : K, [X, he, K]);
|
|
824
823
|
W(() => {
|
|
825
|
-
|
|
824
|
+
Qe(Se && N);
|
|
826
825
|
}, [Se, N]);
|
|
827
|
-
const Ce = N && ($ ? Oe : xe),
|
|
826
|
+
const Ce = N && ($ ? Oe : xe), Ye = N && q === 1 && $, re = N && q > 1 && $, et = (c, f) => {
|
|
828
827
|
var D;
|
|
829
|
-
|
|
828
|
+
Ze(f.expanded), (D = T.onExpand) === null || D === void 0 || D.call(T, c, f);
|
|
830
829
|
}, [we, tt] = r.useState(0), nt = ({
|
|
831
830
|
offsetWidth: c
|
|
832
831
|
}) => {
|
|
@@ -838,7 +837,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
838
837
|
r.useEffect(() => {
|
|
839
838
|
const c = I.current;
|
|
840
839
|
if (B && $ && c) {
|
|
841
|
-
const f =
|
|
840
|
+
const f = Qt(c);
|
|
842
841
|
Oe !== f && Xe(f);
|
|
843
842
|
}
|
|
844
843
|
}, [B, $, d, re, Je, we]), r.useEffect(() => {
|
|
@@ -856,7 +855,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
856
855
|
if (!(!B || $))
|
|
857
856
|
return [E.text, d, h, se.title].find(Ee);
|
|
858
857
|
}, [B, $, h, se.title, Ce]);
|
|
859
|
-
if (
|
|
858
|
+
if (k)
|
|
860
859
|
return /* @__PURE__ */ r.createElement(zt, {
|
|
861
860
|
value: (o = E.text) !== null && o !== void 0 ? o : typeof d == "string" ? d : "",
|
|
862
861
|
onSave: v,
|
|
@@ -892,13 +891,13 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
892
891
|
icon: c,
|
|
893
892
|
tooltip: f,
|
|
894
893
|
tabIndex: D
|
|
895
|
-
} = E, ie =
|
|
894
|
+
} = E, ie = He(f)[0] || (y == null ? void 0 : y.edit), ct = typeof ie == "string" ? ie : "";
|
|
896
895
|
return V.includes("icon") ? /* @__PURE__ */ r.createElement(be, {
|
|
897
896
|
key: "edit",
|
|
898
897
|
title: f === !1 ? "" : ie
|
|
899
898
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
900
899
|
type: "button",
|
|
901
|
-
ref:
|
|
900
|
+
ref: H,
|
|
902
901
|
className: `${w}-edit`,
|
|
903
902
|
onClick: M,
|
|
904
903
|
"aria-label": ct,
|
|
@@ -906,7 +905,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
906
905
|
}, c || /* @__PURE__ */ r.createElement(Be, {
|
|
907
906
|
role: "button"
|
|
908
907
|
}))) : null;
|
|
909
|
-
}, it = () => x ? /* @__PURE__ */ r.createElement(
|
|
908
|
+
}, it = () => x ? /* @__PURE__ */ r.createElement(Yt, Object.assign({
|
|
910
909
|
key: "copy"
|
|
911
910
|
}, P, {
|
|
912
911
|
prefixCls: w,
|
|
@@ -919,7 +918,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
919
918
|
"aria-hidden": !0,
|
|
920
919
|
key: "ellipsis"
|
|
921
920
|
}, rn), T.suffix, lt(c)];
|
|
922
|
-
return /* @__PURE__ */ r.createElement(
|
|
921
|
+
return /* @__PURE__ */ r.createElement(St, {
|
|
923
922
|
onResize: nt,
|
|
924
923
|
disabled: !N
|
|
925
924
|
}, (c) => /* @__PURE__ */ r.createElement(Fe, {
|
|
@@ -927,11 +926,11 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
927
926
|
enableEllipsis: N,
|
|
928
927
|
isEllipsis: Ce
|
|
929
928
|
}, /* @__PURE__ */ r.createElement(ve, Object.assign({
|
|
930
|
-
className:
|
|
929
|
+
className: Q({
|
|
931
930
|
[`${w}-${i}`]: i,
|
|
932
931
|
[`${w}-disabled`]: g,
|
|
933
932
|
[`${w}-ellipsis`]: B,
|
|
934
|
-
[`${w}-ellipsis-single-line`]:
|
|
933
|
+
[`${w}-ellipsis-single-line`]: Ye,
|
|
935
934
|
[`${w}-ellipsis-multiple-line`]: re
|
|
936
935
|
}, s),
|
|
937
936
|
prefixCls: t,
|
|
@@ -951,7 +950,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
951
950
|
width: we,
|
|
952
951
|
onEllipsis: ot,
|
|
953
952
|
expanded: A,
|
|
954
|
-
miscDeps: [_, A, z, j, x, y].concat(
|
|
953
|
+
miscDeps: [_, A, z, j, x, y].concat(ke(Le.map((f) => e[f])))
|
|
955
954
|
}, (f, D) => on(e, /* @__PURE__ */ r.createElement(r.Fragment, null, f.length > 0 && D && !A && J ? /* @__PURE__ */ r.createElement("span", {
|
|
956
955
|
key: "show-content",
|
|
957
956
|
"aria-hidden": !0
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import v from "react";
|
|
3
|
+
import { a6 as A, c9 as k, a8 as ee, bk as te, a5 as $, a7 as ae, aq as se, aS as ne, cD as re } from "./embed-BUaR8PAn.js";
|
|
4
|
+
function _(e) {
|
|
5
|
+
return ["small", "middle", "large"].includes(e);
|
|
6
|
+
}
|
|
7
|
+
function V(e) {
|
|
8
|
+
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
9
|
+
}
|
|
10
|
+
const le = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
componentCls: a,
|
|
13
|
+
borderRadius: s,
|
|
14
|
+
paddingSM: t,
|
|
15
|
+
colorBorder: n,
|
|
16
|
+
paddingXS: l,
|
|
17
|
+
fontSizeLG: p,
|
|
18
|
+
fontSizeSM: m,
|
|
19
|
+
borderRadiusLG: u,
|
|
20
|
+
borderRadiusSM: o,
|
|
21
|
+
colorBgContainerDisabled: i,
|
|
22
|
+
lineWidth: d
|
|
23
|
+
} = e;
|
|
24
|
+
return {
|
|
25
|
+
[a]: [{
|
|
26
|
+
display: "inline-flex",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
gap: 0,
|
|
29
|
+
paddingInline: t,
|
|
30
|
+
margin: 0,
|
|
31
|
+
background: i,
|
|
32
|
+
borderWidth: d,
|
|
33
|
+
borderStyle: "solid",
|
|
34
|
+
borderColor: n,
|
|
35
|
+
borderRadius: s,
|
|
36
|
+
"&-large": {
|
|
37
|
+
fontSize: p,
|
|
38
|
+
borderRadius: u
|
|
39
|
+
},
|
|
40
|
+
"&-small": {
|
|
41
|
+
paddingInline: l,
|
|
42
|
+
borderRadius: o,
|
|
43
|
+
fontSize: m
|
|
44
|
+
},
|
|
45
|
+
"&-compact-last-item": {
|
|
46
|
+
borderEndStartRadius: 0,
|
|
47
|
+
borderStartStartRadius: 0
|
|
48
|
+
},
|
|
49
|
+
"&-compact-first-item": {
|
|
50
|
+
borderEndEndRadius: 0,
|
|
51
|
+
borderStartEndRadius: 0
|
|
52
|
+
},
|
|
53
|
+
"&-compact-item:not(:first-child):not(:last-child)": {
|
|
54
|
+
borderRadius: 0
|
|
55
|
+
},
|
|
56
|
+
"&-compact-item:not(:last-child)": {
|
|
57
|
+
borderInlineEndWidth: 0
|
|
58
|
+
}
|
|
59
|
+
}, k(e, {
|
|
60
|
+
focus: !1
|
|
61
|
+
})]
|
|
62
|
+
};
|
|
63
|
+
}, oe = A(["Space", "Addon"], (e) => [le(e)]);
|
|
64
|
+
var ie = function(e, a) {
|
|
65
|
+
var s = {};
|
|
66
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (s[t] = e[t]);
|
|
67
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
68
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (s[t[n]] = e[t[n]]);
|
|
69
|
+
return s;
|
|
70
|
+
};
|
|
71
|
+
const ce = /* @__PURE__ */ v.forwardRef((e, a) => {
|
|
72
|
+
const {
|
|
73
|
+
className: s,
|
|
74
|
+
children: t,
|
|
75
|
+
style: n,
|
|
76
|
+
prefixCls: l
|
|
77
|
+
} = e, p = ie(e, ["className", "children", "style", "prefixCls"]), {
|
|
78
|
+
getPrefixCls: m,
|
|
79
|
+
direction: u
|
|
80
|
+
} = v.useContext(ee), o = m("space-addon", l), [i, d, O] = oe(o), {
|
|
81
|
+
compactItemClassnames: I,
|
|
82
|
+
compactSize: S
|
|
83
|
+
} = te(o, u), g = $(o, d, I, O, {
|
|
84
|
+
[`${o}-${S}`]: S
|
|
85
|
+
}, s);
|
|
86
|
+
return i(/* @__PURE__ */ v.createElement("div", Object.assign({
|
|
87
|
+
ref: a,
|
|
88
|
+
className: g,
|
|
89
|
+
style: n
|
|
90
|
+
}, p), t));
|
|
91
|
+
}), L = /* @__PURE__ */ v.createContext({
|
|
92
|
+
latestIndex: 0
|
|
93
|
+
}), de = L.Provider, pe = ({
|
|
94
|
+
className: e,
|
|
95
|
+
index: a,
|
|
96
|
+
children: s,
|
|
97
|
+
split: t,
|
|
98
|
+
style: n
|
|
99
|
+
}) => {
|
|
100
|
+
const {
|
|
101
|
+
latestIndex: l
|
|
102
|
+
} = r.useContext(L);
|
|
103
|
+
return s == null ? null : /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", {
|
|
104
|
+
className: e,
|
|
105
|
+
style: n
|
|
106
|
+
}, s), a < l && t && /* @__PURE__ */ r.createElement("span", {
|
|
107
|
+
className: `${e}-split`
|
|
108
|
+
}, t));
|
|
109
|
+
}, me = (e) => {
|
|
110
|
+
const {
|
|
111
|
+
componentCls: a,
|
|
112
|
+
antCls: s
|
|
113
|
+
} = e;
|
|
114
|
+
return {
|
|
115
|
+
[a]: {
|
|
116
|
+
display: "inline-flex",
|
|
117
|
+
"&-rtl": {
|
|
118
|
+
direction: "rtl"
|
|
119
|
+
},
|
|
120
|
+
"&-vertical": {
|
|
121
|
+
flexDirection: "column"
|
|
122
|
+
},
|
|
123
|
+
"&-align": {
|
|
124
|
+
flexDirection: "column",
|
|
125
|
+
"&-center": {
|
|
126
|
+
alignItems: "center"
|
|
127
|
+
},
|
|
128
|
+
"&-start": {
|
|
129
|
+
alignItems: "flex-start"
|
|
130
|
+
},
|
|
131
|
+
"&-end": {
|
|
132
|
+
alignItems: "flex-end"
|
|
133
|
+
},
|
|
134
|
+
"&-baseline": {
|
|
135
|
+
alignItems: "baseline"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
[`${a}-item:empty`]: {
|
|
139
|
+
display: "none"
|
|
140
|
+
},
|
|
141
|
+
// https://github.com/ant-design/ant-design/issues/47875
|
|
142
|
+
[`${a}-item > ${s}-badge-not-a-wrapper:only-child`]: {
|
|
143
|
+
display: "block"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}, ue = (e) => {
|
|
148
|
+
const {
|
|
149
|
+
componentCls: a
|
|
150
|
+
} = e;
|
|
151
|
+
return {
|
|
152
|
+
[a]: {
|
|
153
|
+
"&-gap-row-small": {
|
|
154
|
+
rowGap: e.spaceGapSmallSize
|
|
155
|
+
},
|
|
156
|
+
"&-gap-row-middle": {
|
|
157
|
+
rowGap: e.spaceGapMiddleSize
|
|
158
|
+
},
|
|
159
|
+
"&-gap-row-large": {
|
|
160
|
+
rowGap: e.spaceGapLargeSize
|
|
161
|
+
},
|
|
162
|
+
"&-gap-col-small": {
|
|
163
|
+
columnGap: e.spaceGapSmallSize
|
|
164
|
+
},
|
|
165
|
+
"&-gap-col-middle": {
|
|
166
|
+
columnGap: e.spaceGapMiddleSize
|
|
167
|
+
},
|
|
168
|
+
"&-gap-col-large": {
|
|
169
|
+
columnGap: e.spaceGapLargeSize
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}, fe = A("Space", (e) => {
|
|
174
|
+
const a = ae(e, {
|
|
175
|
+
spaceGapSmallSize: e.paddingXS,
|
|
176
|
+
spaceGapMiddleSize: e.padding,
|
|
177
|
+
spaceGapLargeSize: e.paddingLG
|
|
178
|
+
});
|
|
179
|
+
return [me(a), ue(a)];
|
|
180
|
+
}, () => ({}), {
|
|
181
|
+
// Space component don't apply extra font style
|
|
182
|
+
// https://github.com/ant-design/ant-design/issues/40315
|
|
183
|
+
resetStyle: !1
|
|
184
|
+
});
|
|
185
|
+
var Se = function(e, a) {
|
|
186
|
+
var s = {};
|
|
187
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (s[t] = e[t]);
|
|
188
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
189
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (s[t[n]] = e[t[n]]);
|
|
190
|
+
return s;
|
|
191
|
+
};
|
|
192
|
+
const ge = /* @__PURE__ */ r.forwardRef((e, a) => {
|
|
193
|
+
var s;
|
|
194
|
+
const {
|
|
195
|
+
getPrefixCls: t,
|
|
196
|
+
direction: n,
|
|
197
|
+
size: l,
|
|
198
|
+
className: p,
|
|
199
|
+
style: m,
|
|
200
|
+
classNames: u,
|
|
201
|
+
styles: o
|
|
202
|
+
} = se("space"), {
|
|
203
|
+
size: i = l ?? "small",
|
|
204
|
+
align: d,
|
|
205
|
+
className: O,
|
|
206
|
+
rootClassName: I,
|
|
207
|
+
children: S,
|
|
208
|
+
direction: g = "horizontal",
|
|
209
|
+
prefixCls: M,
|
|
210
|
+
split: D,
|
|
211
|
+
style: W,
|
|
212
|
+
wrap: H = !1,
|
|
213
|
+
classNames: w,
|
|
214
|
+
styles: G
|
|
215
|
+
} = e, B = Se(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [y, b] = Array.isArray(i) ? i : [i, i], E = _(b), P = _(y), X = V(b), q = V(y), C = ne(S, {
|
|
216
|
+
keepEmpty: !0
|
|
217
|
+
}), j = d === void 0 && g === "horizontal" ? "center" : d, c = t("space", M), [F, T, J] = fe(c), K = $(c, p, T, `${c}-${g}`, {
|
|
218
|
+
[`${c}-rtl`]: n === "rtl",
|
|
219
|
+
[`${c}-align-${j}`]: j,
|
|
220
|
+
[`${c}-gap-row-${b}`]: E,
|
|
221
|
+
[`${c}-gap-col-${y}`]: P
|
|
222
|
+
}, O, I, J), R = $(`${c}-item`, (s = w == null ? void 0 : w.item) !== null && s !== void 0 ? s : u.item), Q = Object.assign(Object.assign({}, o.item), G == null ? void 0 : G.item), U = C.map((f, z) => {
|
|
223
|
+
const N = (f == null ? void 0 : f.key) || `${R}-${z}`;
|
|
224
|
+
return /* @__PURE__ */ r.createElement(pe, {
|
|
225
|
+
className: R,
|
|
226
|
+
key: N,
|
|
227
|
+
index: z,
|
|
228
|
+
split: D,
|
|
229
|
+
style: Q
|
|
230
|
+
}, f);
|
|
231
|
+
}), Y = r.useMemo(() => ({
|
|
232
|
+
latestIndex: C.reduce((z, N, Z) => N != null ? Z : z, 0)
|
|
233
|
+
}), [C]);
|
|
234
|
+
if (C.length === 0)
|
|
235
|
+
return null;
|
|
236
|
+
const x = {};
|
|
237
|
+
return H && (x.flexWrap = "wrap"), !P && q && (x.columnGap = y), !E && X && (x.rowGap = b), F(/* @__PURE__ */ r.createElement("div", Object.assign({
|
|
238
|
+
ref: a,
|
|
239
|
+
className: K,
|
|
240
|
+
style: Object.assign(Object.assign(Object.assign({}, x), m), W)
|
|
241
|
+
}, B), /* @__PURE__ */ r.createElement(de, {
|
|
242
|
+
value: Y
|
|
243
|
+
}, U)));
|
|
244
|
+
}), h = ge;
|
|
245
|
+
h.Compact = re;
|
|
246
|
+
h.Addon = ce;
|
|
247
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "Space");
|
|
248
|
+
export {
|
|
249
|
+
h as S,
|
|
250
|
+
_ as i
|
|
251
|
+
};
|