@yuku123/z-cognition-component 2.0.0 → 2.0.1
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/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -1,10 +1,11 @@
|
|
|
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 {
|
|
3
|
+
import { aI as Pe, g as mt, ay as gt, i as Re, k as yt, a8 as bt, x as Ae, d as Y, l as vt, a3 as ke, T as W, _ as He, c as Et, v as ht, a2 as ze, N as Te, O as xt } from "./index-CrMcNEAZ.js";
|
|
4
|
+
import { I as ge, _ as ye, z as Ot, c as Z, g as St } from "./SearchOutlined-puH6bCY6.js";
|
|
5
|
+
import { i as _e } from "./Pagination-Dxslodkq.js";
|
|
6
|
+
import { T as be } from "./index-BwVZgt5s.js";
|
|
7
|
+
import { T as Ct } from "./TextArea-DTpTS5HL.js";
|
|
8
|
+
import { R as wt } from "./index-bOY1cBol.js";
|
|
8
9
|
const Rt = (e, n = !1) => n && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
9
10
|
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) {
|
|
10
11
|
return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
|
|
@@ -86,7 +87,7 @@ const It = (e, n, o, t) => {
|
|
|
86
87
|
mark: {
|
|
87
88
|
padding: 0,
|
|
88
89
|
// FIXME hardcode in v4
|
|
89
|
-
backgroundColor:
|
|
90
|
+
backgroundColor: Ot[2]
|
|
90
91
|
},
|
|
91
92
|
"u, ins": {
|
|
92
93
|
textDecoration: "underline",
|
|
@@ -289,7 +290,7 @@ const It = (e, n, o, t) => {
|
|
|
289
290
|
}, Ht = () => ({
|
|
290
291
|
titleMarginTop: "1.2em",
|
|
291
292
|
titleMarginBottom: "0.5em"
|
|
292
|
-
}), We =
|
|
293
|
+
}), We = mt("Typography", kt, Ht), zt = (e) => {
|
|
293
294
|
const {
|
|
294
295
|
prefixCls: n,
|
|
295
296
|
"aria-label": o,
|
|
@@ -344,7 +345,7 @@ const It = (e, n, o, t) => {
|
|
|
344
345
|
C.current !== v || b.current || S || x || P || _ || (v === Re.ENTER ? (E(), m == null || m()) : v === Re.ESC && p());
|
|
345
346
|
}, U = () => {
|
|
346
347
|
E();
|
|
347
|
-
}, [V, L, F] = We(n), M =
|
|
348
|
+
}, [V, L, F] = We(n), M = Z(n, `${n}-edit-content`, {
|
|
348
349
|
[`${n}-rtl`]: l === "rtl",
|
|
349
350
|
[`${n}-${a}`]: !!a
|
|
350
351
|
}, t, L, F);
|
|
@@ -364,7 +365,7 @@ const It = (e, n, o, t) => {
|
|
|
364
365
|
"aria-label": o,
|
|
365
366
|
rows: 1,
|
|
366
367
|
autoSize: g
|
|
367
|
-
}), h !== null ?
|
|
368
|
+
}), h !== null ? gt(h, {
|
|
368
369
|
className: `${n}-edit-content-confirm`
|
|
369
370
|
}) : null));
|
|
370
371
|
};
|
|
@@ -440,7 +441,7 @@ function Vt() {
|
|
|
440
441
|
return ae = s, ae;
|
|
441
442
|
}
|
|
442
443
|
var Wt = Vt();
|
|
443
|
-
const Ut = /* @__PURE__ */
|
|
444
|
+
const Ut = /* @__PURE__ */ St(Wt);
|
|
444
445
|
var Ft = function(e, n, o, t) {
|
|
445
446
|
function s(l) {
|
|
446
447
|
return l instanceof o ? l : new o(function(i) {
|
|
@@ -476,7 +477,7 @@ const qt = ({
|
|
|
476
477
|
i.current && clearTimeout(i.current);
|
|
477
478
|
}, d = {};
|
|
478
479
|
e.format && (d.format = e.format), r.useEffect(() => g, []);
|
|
479
|
-
const u =
|
|
480
|
+
const u = yt((p) => Ft(void 0, void 0, void 0, function* () {
|
|
480
481
|
var m;
|
|
481
482
|
p == null || p.preventDefault(), p == null || p.stopPropagation(), l(!0);
|
|
482
483
|
try {
|
|
@@ -536,9 +537,9 @@ const ve = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
536
537
|
direction: a,
|
|
537
538
|
className: h,
|
|
538
539
|
style: O
|
|
539
|
-
} =
|
|
540
|
-
process.env.NODE_ENV !== "production" &&
|
|
541
|
-
const [I, k, w] = We(y), R =
|
|
540
|
+
} = bt("typography"), b = d ?? a, C = i ? Ae(n, i) : n, y = m("typography", o);
|
|
541
|
+
process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!i, "setContentRef", "ref");
|
|
542
|
+
const [I, k, w] = We(y), R = Z(y, h, {
|
|
542
543
|
[`${y}-rtl`]: b === "rtl"
|
|
543
544
|
}, s, l, k, w), j = Object.assign(Object.assign({}, O), u);
|
|
544
545
|
return I(
|
|
@@ -591,14 +592,14 @@ const Ee = (e) => ["string", "number"].includes(typeof e), Zt = ({
|
|
|
591
592
|
title: O
|
|
592
593
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
593
594
|
type: "button",
|
|
594
|
-
className:
|
|
595
|
+
className: Z(`${e}-copy`, {
|
|
595
596
|
[`${e}-copy-success`]: n,
|
|
596
597
|
[`${e}-copy-icon-only`]: t
|
|
597
598
|
}),
|
|
598
599
|
onClick: g,
|
|
599
600
|
"aria-label": b,
|
|
600
601
|
tabIndex: i
|
|
601
|
-
}, n ? de(p[1], /* @__PURE__ */ r.createElement(
|
|
602
|
+
}, n ? de(p[1], /* @__PURE__ */ r.createElement(wt, null), !0) : de(p[0], d ? /* @__PURE__ */ r.createElement(vt, null) : /* @__PURE__ */ r.createElement(Ue, null), !0)));
|
|
602
603
|
}, G = /* @__PURE__ */ r.forwardRef(({
|
|
603
604
|
style: e,
|
|
604
605
|
children: n
|
|
@@ -776,7 +777,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
776
777
|
} = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
|
|
777
778
|
getPrefixCls: b,
|
|
778
779
|
direction: C
|
|
779
|
-
} = r.useContext(
|
|
780
|
+
} = r.useContext(Et), [y] = ht("Text"), I = r.useRef(null), k = r.useRef(null), w = b("typography", t), R = ze(O, Le), [j, E] = ce(p), [H, U] = Te(!1, {
|
|
780
781
|
value: E.editing
|
|
781
782
|
}), {
|
|
782
783
|
triggerType: V = ["icon"]
|
|
@@ -918,7 +919,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
918
919
|
"aria-hidden": !0,
|
|
919
920
|
key: "ellipsis"
|
|
920
921
|
}, rn), T.suffix, lt(c)];
|
|
921
|
-
return /* @__PURE__ */ r.createElement(
|
|
922
|
+
return /* @__PURE__ */ r.createElement(xt, {
|
|
922
923
|
onResize: nt,
|
|
923
924
|
disabled: !N
|
|
924
925
|
}, (c) => /* @__PURE__ */ r.createElement(Fe, {
|
|
@@ -926,7 +927,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
926
927
|
enableEllipsis: N,
|
|
927
928
|
isEllipsis: Ce
|
|
928
929
|
}, /* @__PURE__ */ r.createElement(ve, Object.assign({
|
|
929
|
-
className:
|
|
930
|
+
className: Z({
|
|
930
931
|
[`${w}-${i}`]: i,
|
|
931
932
|
[`${w}-disabled`]: g,
|
|
932
933
|
[`${w}-ellipsis`]: B,
|
|
@@ -972,7 +973,7 @@ const ln = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
972
973
|
navigate: l
|
|
973
974
|
} = e, i = sn(e, ["ellipsis", "rel", "children", "navigate"]);
|
|
974
975
|
if (process.env.NODE_ENV !== "production") {
|
|
975
|
-
const d =
|
|
976
|
+
const d = Y("Typography.Link");
|
|
976
977
|
process.env.NODE_ENV !== "production" && d(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
|
|
977
978
|
}
|
|
978
979
|
const g = Object.assign(Object.assign({}, i), {
|
|
@@ -1014,7 +1015,7 @@ const un = (e, n) => {
|
|
|
1014
1015
|
children: t
|
|
1015
1016
|
} = e, s = dn(e, ["ellipsis", "children"]), l = r.useMemo(() => o && typeof o == "object" ? ze(o, ["expandable", "rows"]) : o, [o]);
|
|
1016
1017
|
if (process.env.NODE_ENV !== "production") {
|
|
1017
|
-
const i =
|
|
1018
|
+
const i = Y("Typography.Text");
|
|
1018
1019
|
process.env.NODE_ENV !== "production" && i(typeof o != "object" || !o || !("expandable" in o) && !("rows" in o), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
|
|
1019
1020
|
}
|
|
1020
1021
|
return /* @__PURE__ */ r.createElement(ee, Object.assign({
|
|
@@ -1037,7 +1038,7 @@ const Me = [1, 2, 3, 4, 5], mn = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
1037
1038
|
children: t
|
|
1038
1039
|
} = e, s = fn(e, ["level", "children"]);
|
|
1039
1040
|
if (process.env.NODE_ENV !== "production") {
|
|
1040
|
-
const i =
|
|
1041
|
+
const i = Y("Typography.Title");
|
|
1041
1042
|
process.env.NODE_ENV !== "production" && i(Me.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
|
|
1042
1043
|
}
|
|
1043
1044
|
const l = Me.includes(o) ? `h${o}` : "h1";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useLayoutEffect as N } from "react";
|
|
3
3
|
import { createPortal as x } from "react-dom";
|
|
4
|
-
import { I as s } from "./embed-
|
|
5
|
-
import { D as z } from "./index-
|
|
4
|
+
import { I as s } from "./embed-DwLg9RDW.js";
|
|
5
|
+
import { D as z } from "./index-CaXylbQR.js";
|
|
6
6
|
function D({
|
|
7
7
|
items: k,
|
|
8
8
|
active: h,
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { F as J, c as E } from "./SearchOutlined-puH6bCY6.js";
|
|
3
|
+
import { g as K, m as Y, u as F, r as Z, c as V, F as W, a2 as ee, d as oe, aC as re, ah as ne } from "./index-CrMcNEAZ.js";
|
|
4
|
+
import { g as te, i as le, a as ae } from "./colors-sdAcAcU3.js";
|
|
5
|
+
import { u as se, p as H } from "./useClosable-BY7FgWKy.js";
|
|
6
|
+
const ce = (e) => {
|
|
7
|
+
const {
|
|
8
|
+
paddingXXS: n,
|
|
9
|
+
lineWidth: t,
|
|
10
|
+
tagPaddingHorizontal: o,
|
|
11
|
+
componentCls: r,
|
|
12
|
+
calc: a
|
|
13
|
+
} = e, c = a(o).sub(t).equal(), f = a(n).sub(t).equal();
|
|
14
|
+
return {
|
|
15
|
+
// Result
|
|
16
|
+
[r]: Object.assign(Object.assign({}, Z(e)), {
|
|
17
|
+
display: "inline-block",
|
|
18
|
+
height: "auto",
|
|
19
|
+
// https://github.com/ant-design/ant-design/pull/47504
|
|
20
|
+
marginInlineEnd: e.marginXS,
|
|
21
|
+
paddingInline: c,
|
|
22
|
+
fontSize: e.tagFontSize,
|
|
23
|
+
lineHeight: e.tagLineHeight,
|
|
24
|
+
whiteSpace: "nowrap",
|
|
25
|
+
background: e.defaultBg,
|
|
26
|
+
border: `${F(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
27
|
+
borderRadius: e.borderRadiusSM,
|
|
28
|
+
opacity: 1,
|
|
29
|
+
transition: `all ${e.motionDurationMid}`,
|
|
30
|
+
textAlign: "start",
|
|
31
|
+
position: "relative",
|
|
32
|
+
// RTL
|
|
33
|
+
[`&${r}-rtl`]: {
|
|
34
|
+
direction: "rtl"
|
|
35
|
+
},
|
|
36
|
+
"&, a, a:hover": {
|
|
37
|
+
color: e.defaultColor
|
|
38
|
+
},
|
|
39
|
+
[`${r}-close-icon`]: {
|
|
40
|
+
marginInlineStart: f,
|
|
41
|
+
fontSize: e.tagIconSize,
|
|
42
|
+
color: e.colorIcon,
|
|
43
|
+
cursor: "pointer",
|
|
44
|
+
transition: `all ${e.motionDurationMid}`,
|
|
45
|
+
"&:hover": {
|
|
46
|
+
color: e.colorTextHeading
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[`&${r}-has-color`]: {
|
|
50
|
+
borderColor: "transparent",
|
|
51
|
+
[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]: {
|
|
52
|
+
color: e.colorTextLightSolid
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"&-checkable": {
|
|
56
|
+
backgroundColor: "transparent",
|
|
57
|
+
borderColor: "transparent",
|
|
58
|
+
cursor: "pointer",
|
|
59
|
+
[`&:not(${r}-checkable-checked):hover`]: {
|
|
60
|
+
color: e.colorPrimary,
|
|
61
|
+
backgroundColor: e.colorFillSecondary
|
|
62
|
+
},
|
|
63
|
+
"&:active, &-checked": {
|
|
64
|
+
color: e.colorTextLightSolid
|
|
65
|
+
},
|
|
66
|
+
"&-checked": {
|
|
67
|
+
backgroundColor: e.colorPrimary,
|
|
68
|
+
"&:hover": {
|
|
69
|
+
backgroundColor: e.colorPrimaryHover
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"&:active": {
|
|
73
|
+
backgroundColor: e.colorPrimaryActive
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"&-hidden": {
|
|
77
|
+
display: "none"
|
|
78
|
+
},
|
|
79
|
+
// To ensure that a space will be placed between character and `Icon`.
|
|
80
|
+
[`> ${e.iconCls} + span, > span + ${e.iconCls}`]: {
|
|
81
|
+
marginInlineStart: c
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
[`${r}-borderless`]: {
|
|
85
|
+
borderColor: "transparent",
|
|
86
|
+
background: e.tagBorderlessBg
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}, I = (e) => {
|
|
90
|
+
const {
|
|
91
|
+
lineWidth: n,
|
|
92
|
+
fontSizeIcon: t,
|
|
93
|
+
calc: o
|
|
94
|
+
} = e, r = e.fontSizeSM;
|
|
95
|
+
return Y(e, {
|
|
96
|
+
tagFontSize: r,
|
|
97
|
+
tagLineHeight: F(o(e.lineHeightSM).mul(r).equal()),
|
|
98
|
+
tagIconSize: o(t).sub(o(n).mul(2)).equal(),
|
|
99
|
+
// Tag icon is much smaller
|
|
100
|
+
tagPaddingHorizontal: 8,
|
|
101
|
+
// Fixed padding.
|
|
102
|
+
tagBorderlessBg: e.defaultBg
|
|
103
|
+
});
|
|
104
|
+
}, P = (e) => ({
|
|
105
|
+
defaultBg: new J(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),
|
|
106
|
+
defaultColor: e.colorText
|
|
107
|
+
}), M = K("Tag", (e) => {
|
|
108
|
+
const n = I(e);
|
|
109
|
+
return ce(n);
|
|
110
|
+
}, P);
|
|
111
|
+
var ie = function(e, n) {
|
|
112
|
+
var t = {};
|
|
113
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
114
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
115
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
116
|
+
return t;
|
|
117
|
+
};
|
|
118
|
+
const de = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
119
|
+
const {
|
|
120
|
+
prefixCls: t,
|
|
121
|
+
style: o,
|
|
122
|
+
className: r,
|
|
123
|
+
checked: a,
|
|
124
|
+
children: c,
|
|
125
|
+
icon: f,
|
|
126
|
+
onChange: i,
|
|
127
|
+
onClick: u
|
|
128
|
+
} = e, S = ie(e, ["prefixCls", "style", "className", "checked", "children", "icon", "onChange", "onClick"]), {
|
|
129
|
+
getPrefixCls: b,
|
|
130
|
+
tag: d
|
|
131
|
+
} = l.useContext(V), $ = (v) => {
|
|
132
|
+
i == null || i(!a), u == null || u(v);
|
|
133
|
+
}, m = b("tag", t), [g, x, h] = M(m), O = E(m, `${m}-checkable`, {
|
|
134
|
+
[`${m}-checkable-checked`]: a
|
|
135
|
+
}, d == null ? void 0 : d.className, r, x, h);
|
|
136
|
+
return g(/* @__PURE__ */ l.createElement("span", Object.assign({}, S, {
|
|
137
|
+
ref: n,
|
|
138
|
+
style: Object.assign(Object.assign({}, o), d == null ? void 0 : d.style),
|
|
139
|
+
className: O,
|
|
140
|
+
onClick: $
|
|
141
|
+
}), f, /* @__PURE__ */ l.createElement("span", null, c)));
|
|
142
|
+
}), ge = (e) => te(e, (n, {
|
|
143
|
+
textColor: t,
|
|
144
|
+
lightBorderColor: o,
|
|
145
|
+
lightColor: r,
|
|
146
|
+
darkColor: a
|
|
147
|
+
}) => ({
|
|
148
|
+
[`${e.componentCls}${e.componentCls}-${n}`]: {
|
|
149
|
+
color: t,
|
|
150
|
+
background: r,
|
|
151
|
+
borderColor: o,
|
|
152
|
+
// Inverse color
|
|
153
|
+
"&-inverse": {
|
|
154
|
+
color: e.colorTextLightSolid,
|
|
155
|
+
background: a,
|
|
156
|
+
borderColor: a
|
|
157
|
+
},
|
|
158
|
+
[`&${e.componentCls}-borderless`]: {
|
|
159
|
+
borderColor: "transparent"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
})), ue = W(["Tag", "preset"], (e) => {
|
|
163
|
+
const n = I(e);
|
|
164
|
+
return ge(n);
|
|
165
|
+
}, P);
|
|
166
|
+
function pe(e) {
|
|
167
|
+
return typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1);
|
|
168
|
+
}
|
|
169
|
+
const y = (e, n, t) => {
|
|
170
|
+
const o = pe(t);
|
|
171
|
+
return {
|
|
172
|
+
[`${e.componentCls}${e.componentCls}-${n}`]: {
|
|
173
|
+
color: e[`color${t}`],
|
|
174
|
+
background: e[`color${o}Bg`],
|
|
175
|
+
borderColor: e[`color${o}Border`],
|
|
176
|
+
[`&${e.componentCls}-borderless`]: {
|
|
177
|
+
borderColor: "transparent"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}, Ce = W(["Tag", "status"], (e) => {
|
|
182
|
+
const n = I(e);
|
|
183
|
+
return [y(n, "success", "Success"), y(n, "processing", "Info"), y(n, "error", "Error"), y(n, "warning", "Warning")];
|
|
184
|
+
}, P);
|
|
185
|
+
var me = function(e, n) {
|
|
186
|
+
var t = {};
|
|
187
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
188
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
189
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
190
|
+
return t;
|
|
191
|
+
};
|
|
192
|
+
const fe = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
193
|
+
const {
|
|
194
|
+
prefixCls: t,
|
|
195
|
+
className: o,
|
|
196
|
+
rootClassName: r,
|
|
197
|
+
style: a,
|
|
198
|
+
children: c,
|
|
199
|
+
icon: f,
|
|
200
|
+
color: i,
|
|
201
|
+
onClose: u,
|
|
202
|
+
bordered: S = !0,
|
|
203
|
+
visible: b
|
|
204
|
+
} = e, d = me(e, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "bordered", "visible"]), {
|
|
205
|
+
getPrefixCls: $,
|
|
206
|
+
direction: m,
|
|
207
|
+
tag: g
|
|
208
|
+
} = l.useContext(V), [x, h] = l.useState(!0), O = ee(d, ["closeIcon", "closable"]);
|
|
209
|
+
process.env.NODE_ENV !== "production" && oe("Tag").deprecated(!("visible" in e), "visible", "visible && <Tag />"), l.useEffect(() => {
|
|
210
|
+
b !== void 0 && h(b);
|
|
211
|
+
}, [b]);
|
|
212
|
+
const v = le(i), j = ae(i), T = v || j, L = Object.assign(Object.assign({
|
|
213
|
+
backgroundColor: i && !T ? i : void 0
|
|
214
|
+
}, g == null ? void 0 : g.style), a), s = $("tag", t), [q, D, k] = M(s), A = E(s, g == null ? void 0 : g.className, {
|
|
215
|
+
[`${s}-${i}`]: T,
|
|
216
|
+
[`${s}-has-color`]: i && !T,
|
|
217
|
+
[`${s}-hidden`]: !x,
|
|
218
|
+
[`${s}-rtl`]: m === "rtl",
|
|
219
|
+
[`${s}-borderless`]: !S
|
|
220
|
+
}, o, r, D, k), w = (p) => {
|
|
221
|
+
p.stopPropagation(), u == null || u(p), !p.defaultPrevented && h(!1);
|
|
222
|
+
}, [, X] = se(H(e), H(g), {
|
|
223
|
+
closable: !1,
|
|
224
|
+
closeIconRender: (p) => {
|
|
225
|
+
const G = /* @__PURE__ */ l.createElement("span", {
|
|
226
|
+
className: `${s}-close-icon`,
|
|
227
|
+
onClick: w
|
|
228
|
+
}, p);
|
|
229
|
+
return ne(p, G, (C) => ({
|
|
230
|
+
onClick: (_) => {
|
|
231
|
+
var N;
|
|
232
|
+
(N = C == null ? void 0 : C.onClick) === null || N === void 0 || N.call(C, _), w(_);
|
|
233
|
+
},
|
|
234
|
+
className: E(C == null ? void 0 : C.className, `${s}-close-icon`)
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
}), U = typeof d.onClick == "function" || c && c.type === "a", z = f || null, Q = z ? /* @__PURE__ */ l.createElement(l.Fragment, null, z, c && /* @__PURE__ */ l.createElement("span", null, c)) : c, B = /* @__PURE__ */ l.createElement("span", Object.assign({}, O, {
|
|
238
|
+
ref: n,
|
|
239
|
+
className: A,
|
|
240
|
+
style: L
|
|
241
|
+
}), Q, X, v && /* @__PURE__ */ l.createElement(ue, {
|
|
242
|
+
key: "preset",
|
|
243
|
+
prefixCls: s
|
|
244
|
+
}), j && /* @__PURE__ */ l.createElement(Ce, {
|
|
245
|
+
key: "status",
|
|
246
|
+
prefixCls: s
|
|
247
|
+
}));
|
|
248
|
+
return q(U ? /* @__PURE__ */ l.createElement(re, {
|
|
249
|
+
component: "Tag"
|
|
250
|
+
}, B) : B);
|
|
251
|
+
}), R = fe;
|
|
252
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "Tag");
|
|
253
|
+
R.CheckableTag = de;
|
|
254
|
+
export {
|
|
255
|
+
R as T
|
|
256
|
+
};
|