@yuku123/z-cognition-component 2.0.3 → 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-DHrGPDB9.js → BaseInput-rxw05EpT.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DqK04lTb.js} +2 -2
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-D9XOithE.js} +76 -76
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-DnGmqa7C.js} +1 -1
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-VzQrhleP.js} +144 -144
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-BuFXTevS.js} +32 -32
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-D1RvQXGM.js} +9 -9
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-DlxcvD0O.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-CabJdV6W.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-DZ6fqUyK.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-CYSU7UlK.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-MTp2UyyK.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-F9OYS1Ov.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DDEl02-L.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-CcC1rvys.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-_axkM_DR.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-CuPJalb0.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-BPLw60Ia.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CcWolsb5.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-DC6nlUDh.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-CgpP4Xf5.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-CZ3CzVcA.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-BsFEfaVs.js} +3 -3
- package/dist-lib/{community-CfWXxujB.js → community-D9mD_Tq1.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-ESJc4qtl.js} +1 -1
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-Ct5uMwhv.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DrxmCfe3.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{detail-EyLdjGpX.js → detail-DXOJf57e.js} +37 -37
- package/dist-lib/{detail-CV6xp_Jp.js → detail-kPAVlzm3.js} +4 -4
- package/dist-lib/{detail-DioaWKWj.js → detail-lGslEB8s.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-aLXXcLcF.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-DFOEFvX6.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-BbtVK23D.js} +88 -88
- package/dist-lib/{editor-KZhj-rwT.js → editor-DbLQFOUf.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-B_H0fRAI.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-BUaR8PAn.js} +3930 -3955
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-8Tx-3UQh.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-Dz5dBEFl.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DacHEbKr.js} +5 -5
- package/dist-lib/{index-BoCtPJD4.js → index-B6G8CZ1v.js} +130 -130
- package/dist-lib/{index-DKAGVWMX.js → index-BDWjubAD.js} +6 -6
- package/dist-lib/{index-Bw4M9KLv.js → index-BI-rknta.js} +75 -75
- package/dist-lib/{index-QZ9JPfVR.js → index-BLGPH51v.js} +4 -4
- package/dist-lib/{index-BsoHetYT.js → index-BMv3kGDG.js} +20 -20
- package/dist-lib/{index-DgfIEgir.js → index-BOB3j3H_.js} +1 -1
- package/dist-lib/{index-BPbOPT2j.js → index-BU2GXuww.js} +2 -2
- package/dist-lib/{index-DU6bO95v.js → index-BWmgE7bB.js} +88 -88
- package/dist-lib/{index-CLhLA2ig.js → index-Be_iqVpx.js} +78 -78
- package/dist-lib/{index-CwyFMPcr.js → index-Bf8IQq4A.js} +15 -15
- package/dist-lib/{index-DGbjbjBY.js → index-Bi7O9pQv.js} +182 -182
- package/dist-lib/{index-BkTegt8T.js → index-Bt9F-2Fl.js} +100 -100
- package/dist-lib/{index-D6ns_Xmf.js → index-BtW_nQBU.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-BuGHtvxH.js} +16 -16
- package/dist-lib/{index-CtqUgNxs.js → index-CDxeB8C4.js} +24 -24
- package/dist-lib/{index-2SysmGHo.js → index-CNBwau86.js} +139 -139
- package/dist-lib/{index-BvJ35WL3.js → index-CS6H40rM.js} +15 -15
- package/dist-lib/{index--AI-htgA.js → index-CSoMwNHq.js} +45 -45
- package/dist-lib/{index-CgwK2maq.js → index-CdNxm2We.js} +38 -38
- package/dist-lib/{index-BqTsLClH.js → index-CjFA5T3K.js} +1 -1
- package/dist-lib/{index-3J47mTL1.js → index-D23tZfhi.js} +1 -1
- package/dist-lib/{index-BkJjYgKD.js → index-D7nLwQye.js} +486 -486
- package/dist-lib/{index-zXwXfn-X.js → index-DR9LGJpi.js} +23 -23
- package/dist-lib/{index-BEO8itgt.js → index-DTgboCiF.js} +13 -13
- package/dist-lib/{index-CSJA8wvL.js → index-Ddx6XQu5.js} +36 -36
- package/dist-lib/{index-C2CV4bte.js → index-Di2bQwQn.js} +2 -2
- package/dist-lib/{index-DhSCFLtV.js → index-DlqhOJnd.js} +98 -98
- package/dist-lib/{index-xQmDaKK3.js → index-GQGXGr9M.js} +1 -1
- package/dist-lib/{index-B7SfTpox.js → index-IB3GOib9.js} +8 -8
- package/dist-lib/{index-VeAMz0iC.js → index-Pcxp_AYe.js} +43 -43
- package/dist-lib/{index-CdJ5ggvp.js → index-QkktEus5.js} +17 -17
- package/dist-lib/{index-Bln3mJfp.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-B5Roo82U.js → index-jHh-ITBK.js} +25 -25
- package/dist-lib/{index-DaMLYomP.js → index-keRQ37lH.js} +6 -6
- package/dist-lib/{index-CF0ucN_K.js → index-n6hK1r_G.js} +3 -3
- package/dist-lib/{index-Bd7AGv4a.js → index-qYfXuLnZ.js} +2 -2
- package/dist-lib/{index-B12ZggsE.js → index-yPMzsLHL.js} +3 -3
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-Bu-gFb6c.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-DsXpXfNT.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D8hsAHI5.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-D2XMD7iI.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-BoBR8-j-.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-B4C374Y_.js} +3 -3
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-ROKlyMXg.js} +55 -55
- package/dist-lib/{material-DtPASeqq.js → material-CqtPqoZj.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BKlKt3pc.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-pzANkVK5.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-BUpogooV.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/{memory-reorganization-DgJnWIrW.js → memory-reorganization-CBTDCRhV.js} +1 -1
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-CZGIBlz2.js} +19 -19
- package/dist-lib/{message-D6FhzB7J.js → message-Chq3cAdy.js} +3 -3
- package/dist-lib/{message-C9gfvpGg.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-cctmEVcG.js → messages-DciGawgR.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-BWgVxZgd.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-CNrK04Ak.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-BpUJZCht.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-CaTKbDI1.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-ZH5CWVGF.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-edhi0lav.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-2WdPUP2T.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-Dq6mvU2w.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-BX6X1X2J.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-BjMnFRBG.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-B7AuwW8S.js} +63 -63
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-FpJ6K8z6.js} +1 -1
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-wbvBwGZO.js} +22 -22
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-CJsIvS35.js} +6 -6
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Cgi8Fk-i.js} +3 -3
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-C_6GvHBT.js} +33 -33
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-CeDS1-FE.js} +2 -2
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-4Ar7Y8Kt.js} +11 -11
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BaYN82pv.js} +392 -392
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-CDt7NdIq.js} +1 -1
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-CnFarWZX.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-CxTp2Dcq.js} +18 -18
- package/dist-lib/{permission-Dq1-AOQw.js → permission-CNqwhyF3.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-CfByvcqu.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-ImhDvynO.js} +2 -2
- package/dist-lib/{quota-oICQRHFU.js → quota-B38BWyPo.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-DeVE0t_N.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-ILSUwEOv.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-7v1SRE7V.js} +17 -17
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form-mFm6f2ho.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-DzB9rZrm.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CKdVDsYh.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings-CaihqQtz.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-By3A0Dc1.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-sIKyG7xR.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-DvIMColY.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-BHQZmWlH.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-CoPFj_FN.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-BJgEEFrT.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-CODaf2QI.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-DmN4qfah.js} +12 -12
- package/dist-lib/{tools-CrA6GrY6.js → tools-CyRz1Ofg.js} +4 -4
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-BuD99GTw.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Cbd3Jggb.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-B8dF3ifo.js} +4 -4
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-BZkiMeaN.js} +6 -6
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-HdMlbpbO.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-BYoxw4GV.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-CMNXQf8J.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bg as R, bi as q, bh as A, a5 as D, bj as N, a$ as X, bG as H, a6 as K, a7 as V, bK as _, an as F, ao as $, cs as B, a8 as G, aI as J, aJ as Q, bt as U, b2 as Y } from "./embed-BUaR8PAn.js";
|
|
3
3
|
var Z = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], O = /* @__PURE__ */ g.forwardRef(function(e, n) {
|
|
4
4
|
var c, a = e.prefixCls, l = a === void 0 ? "rc-switch" : a, d = e.className, r = e.checked, t = e.defaultChecked, i = e.disabled, o = e.loadingIcon, s = e.checkedChildren, u = e.unCheckedChildren, I = e.onClick, p = e.onChange, w = e.onKeyDown, M = R(e, Z), x = q(!1, {
|
|
5
5
|
value: r,
|
|
@@ -10,13 +10,13 @@ var Z = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loa
|
|
|
10
10
|
return i || (b = h, S(b), p == null || p(b, f)), b;
|
|
11
11
|
}
|
|
12
12
|
function y(h) {
|
|
13
|
-
h.which ===
|
|
13
|
+
h.which === H.LEFT ? v(!1, h) : h.which === H.RIGHT && v(!0, h), w == null || w(h);
|
|
14
14
|
}
|
|
15
15
|
function m(h) {
|
|
16
16
|
var f = v(!C, h);
|
|
17
17
|
I == null || I(f, h);
|
|
18
18
|
}
|
|
19
|
-
var E = D(l, d, (c = {},
|
|
19
|
+
var E = D(l, d, (c = {}, N(c, "".concat(l, "-checked"), C), N(c, "".concat(l, "-disabled"), i), c));
|
|
20
20
|
return /* @__PURE__ */ g.createElement("button", X({}, M, {
|
|
21
21
|
type: "button",
|
|
22
22
|
role: "switch",
|
|
@@ -366,7 +366,7 @@ const de = /* @__PURE__ */ g.forwardRef((e, n) => {
|
|
|
366
366
|
[`${m}-small`]: T === "small",
|
|
367
367
|
[`${m}-loading`]: d,
|
|
368
368
|
[`${m}-rtl`]: C === "rtl"
|
|
369
|
-
}, r, t, f, b),
|
|
369
|
+
}, r, t, f, b), W = Object.assign(Object.assign({}, S == null ? void 0 : S.style), i), L = (...z) => {
|
|
370
370
|
x(z[0]), p == null || p.apply(void 0, z);
|
|
371
371
|
};
|
|
372
372
|
return h(/* @__PURE__ */ g.createElement(U, {
|
|
@@ -374,10 +374,10 @@ const de = /* @__PURE__ */ g.forwardRef((e, n) => {
|
|
|
374
374
|
disabled: y
|
|
375
375
|
}, /* @__PURE__ */ g.createElement(O, Object.assign({}, w, {
|
|
376
376
|
checked: M,
|
|
377
|
-
onChange:
|
|
377
|
+
onChange: L,
|
|
378
378
|
prefixCls: m,
|
|
379
379
|
className: j,
|
|
380
|
-
style:
|
|
380
|
+
style: W,
|
|
381
381
|
disabled: y,
|
|
382
382
|
ref: n,
|
|
383
383
|
loadingIcon: E
|
|
@@ -1,15 +1,15 @@
|
|
|
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 { i as _e } from "./index-
|
|
5
|
-
import { T as be } from "./index-
|
|
6
|
-
import { T as Ct } from "./index-
|
|
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
7
|
import { g as wt } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
8
|
-
const
|
|
9
|
-
var
|
|
8
|
+
const Rt = (e, n = !1) => n && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
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) {
|
|
10
10
|
return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
|
|
11
11
|
ref: o,
|
|
12
|
-
icon:
|
|
12
|
+
icon: Tt
|
|
13
13
|
}));
|
|
14
14
|
}, Be = /* @__PURE__ */ r.forwardRef(_t);
|
|
15
15
|
process.env.NODE_ENV !== "production" && (Be.displayName = "EditOutlined");
|
|
@@ -326,7 +326,7 @@ const It = (e, n, o, t) => {
|
|
|
326
326
|
I(v.value.replace(/[\n\r]/g, ""));
|
|
327
327
|
}, w = () => {
|
|
328
328
|
b.current = !0;
|
|
329
|
-
},
|
|
329
|
+
}, R = () => {
|
|
330
330
|
b.current = !1;
|
|
331
331
|
}, j = ({
|
|
332
332
|
keyCode: v
|
|
@@ -341,13 +341,13 @@ const It = (e, n, o, t) => {
|
|
|
341
341
|
metaKey: P,
|
|
342
342
|
shiftKey: _
|
|
343
343
|
}) => {
|
|
344
|
-
C.current !== v || b.current || S || x || P || _ || (v ===
|
|
344
|
+
C.current !== v || b.current || S || x || P || _ || (v === Re.ENTER ? (E(), m == null || m()) : v === Re.ESC && p());
|
|
345
345
|
}, U = () => {
|
|
346
346
|
E();
|
|
347
|
-
}, [V, L,
|
|
347
|
+
}, [V, L, F] = We(n), M = Q(n, `${n}-edit-content`, {
|
|
348
348
|
[`${n}-rtl`]: l === "rtl",
|
|
349
349
|
[`${n}-${a}`]: !!a
|
|
350
|
-
}, t, L,
|
|
350
|
+
}, t, L, F);
|
|
351
351
|
return V(/* @__PURE__ */ r.createElement("div", {
|
|
352
352
|
className: M,
|
|
353
353
|
style: s
|
|
@@ -359,7 +359,7 @@ const It = (e, n, o, t) => {
|
|
|
359
359
|
onKeyDown: j,
|
|
360
360
|
onKeyUp: k,
|
|
361
361
|
onCompositionStart: w,
|
|
362
|
-
onCompositionEnd:
|
|
362
|
+
onCompositionEnd: R,
|
|
363
363
|
onBlur: U,
|
|
364
364
|
"aria-label": o,
|
|
365
365
|
rows: 1,
|
|
@@ -441,7 +441,7 @@ function Vt() {
|
|
|
441
441
|
}
|
|
442
442
|
var Wt = Vt();
|
|
443
443
|
const Ut = /* @__PURE__ */ wt(Wt);
|
|
444
|
-
var
|
|
444
|
+
var Ft = function(e, n, o, t) {
|
|
445
445
|
function s(l) {
|
|
446
446
|
return l instanceof o ? l : new o(function(i) {
|
|
447
447
|
i(l);
|
|
@@ -468,7 +468,7 @@ var qt = function(e, n, o, t) {
|
|
|
468
468
|
u((t = t.apply(e, n || [])).next());
|
|
469
469
|
});
|
|
470
470
|
};
|
|
471
|
-
const
|
|
471
|
+
const qt = ({
|
|
472
472
|
copyConfig: e,
|
|
473
473
|
children: n
|
|
474
474
|
}) => {
|
|
@@ -476,12 +476,12 @@ const Ft = ({
|
|
|
476
476
|
i.current && clearTimeout(i.current);
|
|
477
477
|
}, d = {};
|
|
478
478
|
e.format && (d.format = e.format), r.useEffect(() => g, []);
|
|
479
|
-
const u = bt((p) =>
|
|
479
|
+
const u = bt((p) => Ft(void 0, void 0, void 0, function* () {
|
|
480
480
|
var m;
|
|
481
481
|
p == null || p.preventDefault(), p == null || p.stopPropagation(), l(!0);
|
|
482
482
|
try {
|
|
483
483
|
const a = typeof e.text == "function" ? yield e.text() : e.text;
|
|
484
|
-
Ut(a ||
|
|
484
|
+
Ut(a || Rt(n, !0).join("") || "", d), l(!1), t(!0), g(), i.current = setTimeout(() => {
|
|
485
485
|
t(!1);
|
|
486
486
|
}, 3e3), (m = e.onCopy) === null || m === void 0 || m.call(e, p);
|
|
487
487
|
} catch (a) {
|
|
@@ -537,26 +537,26 @@ const ve = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
537
537
|
className: h,
|
|
538
538
|
style: O
|
|
539
539
|
} = vt("typography"), b = d ?? a, C = i ? Ae(n, i) : n, y = m("typography", o);
|
|
540
|
-
process.env.NODE_ENV !== "production" &&
|
|
541
|
-
const [I, H, w] = We(y),
|
|
540
|
+
process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!i, "setContentRef", "ref");
|
|
541
|
+
const [I, H, w] = We(y), R = Q(y, h, {
|
|
542
542
|
[`${y}-rtl`]: b === "rtl"
|
|
543
543
|
}, s, l, H, w), j = Object.assign(Object.assign({}, O), u);
|
|
544
544
|
return I(
|
|
545
545
|
// @ts-expect-error: Expression produces a union type that is too complex to represent.
|
|
546
546
|
/* @__PURE__ */ r.createElement(t, Object.assign({
|
|
547
|
-
className:
|
|
547
|
+
className: R,
|
|
548
548
|
style: j,
|
|
549
549
|
ref: C
|
|
550
550
|
}, p), g)
|
|
551
551
|
);
|
|
552
552
|
});
|
|
553
553
|
process.env.NODE_ENV !== "production" && (ve.displayName = "Typography");
|
|
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" },
|
|
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) {
|
|
555
555
|
return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
|
|
556
556
|
ref: o,
|
|
557
557
|
icon: Gt
|
|
558
558
|
}));
|
|
559
|
-
}, Ue = /* @__PURE__ */ r.forwardRef(
|
|
559
|
+
}, Ue = /* @__PURE__ */ r.forwardRef(Zt);
|
|
560
560
|
process.env.NODE_ENV !== "production" && (Ue.displayName = "CopyOutlined");
|
|
561
561
|
function Ie(e) {
|
|
562
562
|
return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e];
|
|
@@ -564,7 +564,7 @@ function Ie(e) {
|
|
|
564
564
|
function de(e, n, o) {
|
|
565
565
|
return e === !0 || e === void 0 ? n : e || o && n;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Qt(e) {
|
|
568
568
|
const n = document.createElement("em");
|
|
569
569
|
e.appendChild(n), process.env.NODE_ENV !== "production" && (n.className = "ant-typography-css-ellipsis-content-measure");
|
|
570
570
|
const o = e.getBoundingClientRect(), t = n.getBoundingClientRect();
|
|
@@ -572,7 +572,7 @@ function Yt(e) {
|
|
|
572
572
|
o.left > t.left || t.right > o.right || // Vertical out of range
|
|
573
573
|
o.top > t.top || t.bottom > o.bottom;
|
|
574
574
|
}
|
|
575
|
-
const Ee = (e) => ["string", "number"].includes(typeof e),
|
|
575
|
+
const Ee = (e) => ["string", "number"].includes(typeof e), Yt = ({
|
|
576
576
|
prefixCls: e,
|
|
577
577
|
copied: n,
|
|
578
578
|
locale: o,
|
|
@@ -591,7 +591,7 @@ const Ee = (e) => ["string", "number"].includes(typeof e), Zt = ({
|
|
|
591
591
|
title: O
|
|
592
592
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
593
593
|
type: "button",
|
|
594
|
-
className:
|
|
594
|
+
className: Q(`${e}-copy`, {
|
|
595
595
|
[`${e}-copy-success`]: n,
|
|
596
596
|
[`${e}-copy-icon-only`]: t
|
|
597
597
|
}),
|
|
@@ -638,7 +638,7 @@ function $e(e, n) {
|
|
|
638
638
|
}
|
|
639
639
|
return e;
|
|
640
640
|
}
|
|
641
|
-
const ue = 0, pe = 1, fe = 2, me = 3, De = 4,
|
|
641
|
+
const ue = 0, pe = 1, fe = 2, me = 3, De = 4, Z = {
|
|
642
642
|
display: "-webkit-box",
|
|
643
643
|
overflow: "hidden",
|
|
644
644
|
WebkitBoxOrient: "vertical"
|
|
@@ -653,16 +653,16 @@ function tn(e) {
|
|
|
653
653
|
expanded: i,
|
|
654
654
|
miscDeps: g,
|
|
655
655
|
onEllipsis: d
|
|
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), [
|
|
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);
|
|
657
657
|
W(() => {
|
|
658
658
|
j(n && o && p ? pe : ue);
|
|
659
659
|
}, [o, t, l, n, u]), W(() => {
|
|
660
660
|
var v, S, x, P;
|
|
661
|
-
if (
|
|
661
|
+
if (R === pe) {
|
|
662
662
|
j(fe);
|
|
663
663
|
const _ = b.current && getComputedStyle(b.current).whiteSpace;
|
|
664
664
|
V(_);
|
|
665
|
-
} else if (
|
|
665
|
+
} else if (R === fe) {
|
|
666
666
|
const _ = !!(!((v = C.current) === null || v === void 0) && v.isExceed());
|
|
667
667
|
j(_ ? me : De), h(_ ? [0, p] : null), w(_);
|
|
668
668
|
const z = ((S = C.current) === null || S === void 0 ? void 0 : S.getHeight()) || 0, ne = l === 1 ? 0 : ((x = y.current) === null || x === void 0 ? void 0 : x.getHeight()) || 0, K = ((P = I.current) === null || P === void 0 ? void 0 : P.getHeight()) || 0, oe = Math.max(
|
|
@@ -672,7 +672,7 @@ function tn(e) {
|
|
|
672
672
|
);
|
|
673
673
|
k(oe + 1), d(_);
|
|
674
674
|
}
|
|
675
|
-
}, [
|
|
675
|
+
}, [R]);
|
|
676
676
|
const L = a ? Math.ceil((a[0] + a[1]) / 2) : 0;
|
|
677
677
|
W(() => {
|
|
678
678
|
var v;
|
|
@@ -683,52 +683,52 @@ function tn(e) {
|
|
|
683
683
|
x - S === 1 && (z = _ ? S : x), h(_ ? [S, z] : [z, x]);
|
|
684
684
|
}
|
|
685
685
|
}, [a, L]);
|
|
686
|
-
const
|
|
686
|
+
const F = r.useMemo(() => {
|
|
687
687
|
if (!n)
|
|
688
688
|
return s(u, !1);
|
|
689
|
-
if (
|
|
689
|
+
if (R !== me || !a || a[0] !== a[1]) {
|
|
690
690
|
const v = s(u, !1);
|
|
691
|
-
return [De, ue].includes(
|
|
692
|
-
style: Object.assign(Object.assign({},
|
|
691
|
+
return [De, ue].includes(R) ? v : /* @__PURE__ */ r.createElement("span", {
|
|
692
|
+
style: Object.assign(Object.assign({}, Z), {
|
|
693
693
|
WebkitLineClamp: l
|
|
694
694
|
})
|
|
695
695
|
}, v);
|
|
696
696
|
}
|
|
697
697
|
return s(i ? u : $e(u, a[0]), H);
|
|
698
|
-
}, [i,
|
|
698
|
+
}, [i, R, a, u].concat(ke(g))), M = {
|
|
699
699
|
width: o,
|
|
700
700
|
margin: 0,
|
|
701
701
|
padding: 0,
|
|
702
702
|
whiteSpace: U === "nowrap" ? "normal" : "inherit"
|
|
703
703
|
};
|
|
704
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
705
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
704
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, F, R === fe && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(G, {
|
|
705
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
706
706
|
WebkitLineClamp: l
|
|
707
707
|
}),
|
|
708
708
|
ref: C
|
|
709
709
|
}, m), /* @__PURE__ */ r.createElement(G, {
|
|
710
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
710
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
711
711
|
WebkitLineClamp: l - 1
|
|
712
712
|
}),
|
|
713
713
|
ref: y
|
|
714
714
|
}, m), /* @__PURE__ */ r.createElement(G, {
|
|
715
|
-
style: Object.assign(Object.assign(Object.assign({}, M),
|
|
715
|
+
style: Object.assign(Object.assign(Object.assign({}, M), Z), {
|
|
716
716
|
WebkitLineClamp: 1
|
|
717
717
|
}),
|
|
718
718
|
ref: I
|
|
719
|
-
}, s([], !0))),
|
|
719
|
+
}, s([], !0))), R === me && a && a[0] !== a[1] && /* @__PURE__ */ r.createElement(G, {
|
|
720
720
|
style: Object.assign(Object.assign({}, M), {
|
|
721
721
|
top: 400
|
|
722
722
|
}),
|
|
723
723
|
ref: O
|
|
724
|
-
}, s($e(u, L), !0)),
|
|
724
|
+
}, s($e(u, L), !0)), R === pe && /* @__PURE__ */ r.createElement("span", {
|
|
725
725
|
style: {
|
|
726
726
|
whiteSpace: "inherit"
|
|
727
727
|
},
|
|
728
728
|
ref: b
|
|
729
729
|
}));
|
|
730
730
|
}
|
|
731
|
-
const
|
|
731
|
+
const Fe = ({
|
|
732
732
|
enableEllipsis: e,
|
|
733
733
|
isEllipsis: n,
|
|
734
734
|
children: o,
|
|
@@ -736,7 +736,7 @@ const qe = ({
|
|
|
736
736
|
}) => !(t != null && t.title) || !e ? o : /* @__PURE__ */ r.createElement(be, Object.assign({
|
|
737
737
|
open: n ? void 0 : !1
|
|
738
738
|
}, t), o);
|
|
739
|
-
process.env.NODE_ENV !== "production" && (
|
|
739
|
+
process.env.NODE_ENV !== "production" && (Fe.displayName = "EllipsisTooltip");
|
|
740
740
|
var nn = function(e, n) {
|
|
741
741
|
var o = {};
|
|
742
742
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
@@ -776,17 +776,17 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
776
776
|
} = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
|
|
777
777
|
getPrefixCls: b,
|
|
778
778
|
direction: C
|
|
779
|
-
} = r.useContext(xt), [y] = Ot("Text"), I = r.useRef(null), H = r.useRef(null), w = b("typography", t),
|
|
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, {
|
|
780
780
|
value: E.editing
|
|
781
781
|
}), {
|
|
782
782
|
triggerType: V = ["icon"]
|
|
783
783
|
} = E, L = (c) => {
|
|
784
784
|
var f;
|
|
785
785
|
c && ((f = E.onStart) === null || f === void 0 || f.call(E)), U(c);
|
|
786
|
-
},
|
|
786
|
+
}, F = Kt(k);
|
|
787
787
|
W(() => {
|
|
788
788
|
var c;
|
|
789
|
-
!k &&
|
|
789
|
+
!k && F && ((c = H.current) === null || c === void 0 || c.focus());
|
|
790
790
|
}, [k]);
|
|
791
791
|
const M = (c) => {
|
|
792
792
|
c == null || c.preventDefault(), L(!0);
|
|
@@ -800,44 +800,44 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
800
800
|
copied: _,
|
|
801
801
|
copyLoading: z,
|
|
802
802
|
onClick: ne
|
|
803
|
-
} =
|
|
803
|
+
} = qt({
|
|
804
804
|
copyConfig: P,
|
|
805
805
|
children: d
|
|
806
|
-
}), [K, oe] = r.useState(!1), [he,
|
|
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, {
|
|
807
807
|
expandable: !1,
|
|
808
808
|
symbol: (c) => c ? y == null ? void 0 : y.collapse : y == null ? void 0 : y.expand
|
|
809
|
-
}), [A,
|
|
810
|
-
value:
|
|
811
|
-
}), N = B && (!A ||
|
|
812
|
-
rows:
|
|
813
|
-
} =
|
|
809
|
+
}), [A, Ze] = Te(T.defaultExpanded || !1, {
|
|
810
|
+
value: T.expanded
|
|
811
|
+
}), N = B && (!A || T.expandable === "collapsible"), {
|
|
812
|
+
rows: q = 1
|
|
813
|
+
} = T, X = r.useMemo(() => (
|
|
814
814
|
// Disable ellipsis
|
|
815
815
|
N && // Provide suffix
|
|
816
|
-
(
|
|
817
|
-
|
|
818
|
-
), [N,
|
|
816
|
+
(T.suffix !== void 0 || T.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
|
|
817
|
+
T.expandable || j || x)
|
|
818
|
+
), [N, T, j, x]);
|
|
819
819
|
W(() => {
|
|
820
|
-
B && !X && (oe(_e("webkitLineClamp")),
|
|
820
|
+
B && !X && (oe(_e("webkitLineClamp")), qe(_e("textOverflow")));
|
|
821
821
|
}, [X, B]);
|
|
822
|
-
const [$,
|
|
822
|
+
const [$, Qe] = r.useState(N), Se = r.useMemo(() => X ? !1 : q === 1 ? he : K, [X, he, K]);
|
|
823
823
|
W(() => {
|
|
824
|
-
|
|
824
|
+
Qe(Se && N);
|
|
825
825
|
}, [Se, N]);
|
|
826
|
-
const Ce = N && ($ ? Oe : xe),
|
|
826
|
+
const Ce = N && ($ ? Oe : xe), Ye = N && q === 1 && $, re = N && q > 1 && $, et = (c, f) => {
|
|
827
827
|
var D;
|
|
828
|
-
|
|
828
|
+
Ze(f.expanded), (D = T.onExpand) === null || D === void 0 || D.call(T, c, f);
|
|
829
829
|
}, [we, tt] = r.useState(0), nt = ({
|
|
830
830
|
offsetWidth: c
|
|
831
831
|
}) => {
|
|
832
832
|
tt(c);
|
|
833
833
|
}, ot = (c) => {
|
|
834
834
|
var f;
|
|
835
|
-
Ke(c), xe !== c && ((f =
|
|
835
|
+
Ke(c), xe !== c && ((f = T.onEllipsis) === null || f === void 0 || f.call(T, c));
|
|
836
836
|
};
|
|
837
837
|
r.useEffect(() => {
|
|
838
838
|
const c = I.current;
|
|
839
839
|
if (B && $ && c) {
|
|
840
|
-
const f =
|
|
840
|
+
const f = Qt(c);
|
|
841
841
|
Oe !== f && Xe(f);
|
|
842
842
|
}
|
|
843
843
|
}, [B, $, d, re, Je, we]), r.useEffect(() => {
|
|
@@ -851,7 +851,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
851
851
|
f.disconnect();
|
|
852
852
|
};
|
|
853
853
|
}, [$, N]);
|
|
854
|
-
const se = Xt(
|
|
854
|
+
const se = Xt(T.tooltip, E.text, d), J = r.useMemo(() => {
|
|
855
855
|
if (!(!B || $))
|
|
856
856
|
return [E.text, d, h, se.title].find(Ee);
|
|
857
857
|
}, [B, $, h, se.title, Ce]);
|
|
@@ -874,7 +874,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
874
874
|
const {
|
|
875
875
|
expandable: c,
|
|
876
876
|
symbol: f
|
|
877
|
-
} =
|
|
877
|
+
} = T;
|
|
878
878
|
return c ? /* @__PURE__ */ r.createElement("button", {
|
|
879
879
|
type: "button",
|
|
880
880
|
key: "expand",
|
|
@@ -905,7 +905,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
905
905
|
}, c || /* @__PURE__ */ r.createElement(Be, {
|
|
906
906
|
role: "button"
|
|
907
907
|
}))) : null;
|
|
908
|
-
}, it = () => x ? /* @__PURE__ */ r.createElement(
|
|
908
|
+
}, it = () => x ? /* @__PURE__ */ r.createElement(Yt, Object.assign({
|
|
909
909
|
key: "copy"
|
|
910
910
|
}, P, {
|
|
911
911
|
prefixCls: w,
|
|
@@ -917,25 +917,25 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
917
917
|
})) : null, lt = (c) => [c && rt(), st(), it()], at = (c) => [c && !A && /* @__PURE__ */ r.createElement("span", {
|
|
918
918
|
"aria-hidden": !0,
|
|
919
919
|
key: "ellipsis"
|
|
920
|
-
}, rn),
|
|
920
|
+
}, rn), T.suffix, lt(c)];
|
|
921
921
|
return /* @__PURE__ */ r.createElement(St, {
|
|
922
922
|
onResize: nt,
|
|
923
923
|
disabled: !N
|
|
924
|
-
}, (c) => /* @__PURE__ */ r.createElement(
|
|
924
|
+
}, (c) => /* @__PURE__ */ r.createElement(Fe, {
|
|
925
925
|
tooltipProps: se,
|
|
926
926
|
enableEllipsis: N,
|
|
927
927
|
isEllipsis: Ce
|
|
928
928
|
}, /* @__PURE__ */ r.createElement(ve, Object.assign({
|
|
929
|
-
className:
|
|
929
|
+
className: Q({
|
|
930
930
|
[`${w}-${i}`]: i,
|
|
931
931
|
[`${w}-disabled`]: g,
|
|
932
932
|
[`${w}-ellipsis`]: B,
|
|
933
|
-
[`${w}-ellipsis-single-line`]:
|
|
933
|
+
[`${w}-ellipsis-single-line`]: Ye,
|
|
934
934
|
[`${w}-ellipsis-multiple-line`]: re
|
|
935
935
|
}, s),
|
|
936
936
|
prefixCls: t,
|
|
937
937
|
style: Object.assign(Object.assign({}, l), {
|
|
938
|
-
WebkitLineClamp: re ?
|
|
938
|
+
WebkitLineClamp: re ? q : void 0
|
|
939
939
|
}),
|
|
940
940
|
component: a,
|
|
941
941
|
ref: Ae(c, I, n),
|
|
@@ -943,10 +943,10 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
|
|
|
943
943
|
onClick: V.includes("text") ? M : void 0,
|
|
944
944
|
"aria-label": J == null ? void 0 : J.toString(),
|
|
945
945
|
title: h
|
|
946
|
-
},
|
|
946
|
+
}, R), /* @__PURE__ */ r.createElement(tn, {
|
|
947
947
|
enableMeasure: N && !$,
|
|
948
948
|
text: d,
|
|
949
|
-
rows:
|
|
949
|
+
rows: q,
|
|
950
950
|
width: we,
|
|
951
951
|
onEllipsis: ot,
|
|
952
952
|
expanded: A,
|
|
@@ -972,7 +972,7 @@ const ln = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
972
972
|
navigate: l
|
|
973
973
|
} = e, i = sn(e, ["ellipsis", "rel", "children", "navigate"]);
|
|
974
974
|
if (process.env.NODE_ENV !== "production") {
|
|
975
|
-
const d =
|
|
975
|
+
const d = Y("Typography.Link");
|
|
976
976
|
process.env.NODE_ENV !== "production" && d(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
|
|
977
977
|
}
|
|
978
978
|
const g = Object.assign(Object.assign({}, i), {
|
|
@@ -1014,7 +1014,7 @@ const un = (e, n) => {
|
|
|
1014
1014
|
children: t
|
|
1015
1015
|
} = e, s = dn(e, ["ellipsis", "children"]), l = r.useMemo(() => o && typeof o == "object" ? ze(o, ["expandable", "rows"]) : o, [o]);
|
|
1016
1016
|
if (process.env.NODE_ENV !== "production") {
|
|
1017
|
-
const i =
|
|
1017
|
+
const i = Y("Typography.Text");
|
|
1018
1018
|
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
1019
|
}
|
|
1020
1020
|
return /* @__PURE__ */ r.createElement(ee, Object.assign({
|
|
@@ -1037,7 +1037,7 @@ const Me = [1, 2, 3, 4, 5], mn = /* @__PURE__ */ r.forwardRef((e, n) => {
|
|
|
1037
1037
|
children: t
|
|
1038
1038
|
} = e, s = fn(e, ["level", "children"]);
|
|
1039
1039
|
if (process.env.NODE_ENV !== "production") {
|
|
1040
|
-
const i =
|
|
1040
|
+
const i = Y("Typography.Title");
|
|
1041
1041
|
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
1042
|
}
|
|
1043
1043
|
const l = Me.includes(o) ? `h${o}` : "h1";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import {
|
|
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
4
|
function _(e) {
|
|
5
5
|
return ["small", "middle", "large"].includes(e);
|
|
6
6
|
}
|
|
@@ -212,9 +212,9 @@ const ge = /* @__PURE__ */ r.forwardRef((e, a) => {
|
|
|
212
212
|
wrap: H = !1,
|
|
213
213
|
classNames: w,
|
|
214
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),
|
|
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
216
|
keepEmpty: !0
|
|
217
|
-
}), j = d === void 0 && g === "horizontal" ? "center" : d, c = t("space", M), [F,
|
|
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
218
|
[`${c}-rtl`]: n === "rtl",
|
|
219
219
|
[`${c}-align-${j}`]: j,
|
|
220
220
|
[`${c}-gap-row-${b}`]: E,
|
|
@@ -234,7 +234,7 @@ const ge = /* @__PURE__ */ r.forwardRef((e, a) => {
|
|
|
234
234
|
if (C.length === 0)
|
|
235
235
|
return null;
|
|
236
236
|
const x = {};
|
|
237
|
-
return H && (x.flexWrap = "wrap"), !P &&
|
|
237
|
+
return H && (x.flexWrap = "wrap"), !P && q && (x.columnGap = y), !E && X && (x.rowGap = b), F(/* @__PURE__ */ r.createElement("div", Object.assign({
|
|
238
238
|
ref: a,
|
|
239
239
|
className: K,
|
|
240
240
|
style: Object.assign(Object.assign(Object.assign({}, x), m), W)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bA as ee, bg as te, bi as ne, bh as ae, a5 as $, bj as T, a$ as re, bf as z, aU as B, a8 as W, aT as le, aI as se, at as oe, ap as ce, aF as q, bu as ue, bt as ie, a9 as de, ag as F } from "./embed-BUaR8PAn.js";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import H, { forwardRef as fe, useRef as U, useImperativeHandle as ve } from "react";
|
|
4
|
-
import { u as
|
|
5
|
-
var
|
|
4
|
+
import { u as K } from "./index-CjFA5T3K.js";
|
|
5
|
+
var X = function(n) {
|
|
6
6
|
if (ee() && window.document.documentElement) {
|
|
7
7
|
var u = Array.isArray(n) ? n : [n], t = window.document.documentElement;
|
|
8
8
|
return u.some(function(s) {
|
|
@@ -11,13 +11,13 @@ var K = function(n) {
|
|
|
11
11
|
}
|
|
12
12
|
return !1;
|
|
13
13
|
}, pe = function(n, u) {
|
|
14
|
-
if (!
|
|
14
|
+
if (!X(n))
|
|
15
15
|
return !1;
|
|
16
16
|
var t = document.createElement("div"), s = t.style[n];
|
|
17
17
|
return t.style[n] = u, t.style[n] !== s;
|
|
18
18
|
};
|
|
19
19
|
function Se(e, n) {
|
|
20
|
-
return !Array.isArray(e) && n !== void 0 ? pe(e, n) :
|
|
20
|
+
return !Array.isArray(e) && n !== void 0 ? pe(e, n) : X(e);
|
|
21
21
|
}
|
|
22
22
|
var me = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], be = /* @__PURE__ */ fe(function(e, n) {
|
|
23
23
|
var u = e.prefixCls, t = u === void 0 ? "rc-checkbox" : u, s = e.className, C = e.style, h = e.checked, m = e.disabled, w = e.defaultChecked, _ = w === void 0 ? !1 : w, i = e.type, S = i === void 0 ? "checkbox" : i, R = e.title, o = e.onChange, P = te(e, me), g = U(null), d = U(null), a = ne(_, {
|
|
@@ -37,9 +37,9 @@ var me = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
37
37
|
nativeElement: d.current
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
|
-
var v = $(t, s,
|
|
40
|
+
var v = $(t, s, T(T({}, "".concat(t, "-checked"), N), "".concat(t, "-disabled"), m)), b = function(c) {
|
|
41
41
|
m || ("checked" in e || x(c.target.checked), o == null || o({
|
|
42
|
-
target:
|
|
42
|
+
target: z(z({}, e), {}, {
|
|
43
43
|
type: S,
|
|
44
44
|
checked: c.target.checked
|
|
45
45
|
}),
|
|
@@ -70,17 +70,17 @@ var me = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
70
70
|
});
|
|
71
71
|
function Ce(e) {
|
|
72
72
|
const n = H.useRef(null), u = () => {
|
|
73
|
-
|
|
73
|
+
B.cancel(n.current), n.current = null;
|
|
74
74
|
};
|
|
75
75
|
return [() => {
|
|
76
|
-
u(), n.current =
|
|
76
|
+
u(), n.current = B(() => {
|
|
77
77
|
n.current = null;
|
|
78
78
|
});
|
|
79
79
|
}, (C) => {
|
|
80
80
|
n.current && (C.stopPropagation(), u()), e == null || e(C);
|
|
81
81
|
}];
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const J = /* @__PURE__ */ H.createContext(null);
|
|
84
84
|
var he = function(e, n) {
|
|
85
85
|
var u = {};
|
|
86
86
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (u[t] = e[t]);
|
|
@@ -105,7 +105,7 @@ const ge = (e, n) => {
|
|
|
105
105
|
getPrefixCls: P,
|
|
106
106
|
direction: g,
|
|
107
107
|
checkbox: d
|
|
108
|
-
} = l.useContext(W), a = l.useContext(
|
|
108
|
+
} = l.useContext(W), a = l.useContext(J), {
|
|
109
109
|
isFormItemInput: O
|
|
110
110
|
} = l.useContext(le), N = l.useContext(se), x = (u = (a == null ? void 0 : a.disabled) || R) !== null && u !== void 0 ? u : N, v = l.useRef(o.value), b = l.useRef(null), V = oe(n, b);
|
|
111
111
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -121,7 +121,7 @@ const ge = (e, n) => {
|
|
|
121
121
|
var f;
|
|
122
122
|
!((f = b.current) === null || f === void 0) && f.input && (b.current.input.indeterminate = m);
|
|
123
123
|
}, [m]);
|
|
124
|
-
const c = P("checkbox", t), p =
|
|
124
|
+
const c = P("checkbox", t), p = q(c), [I, j, D] = K(c, p), y = Object.assign({}, o);
|
|
125
125
|
a && !S && (y.onChange = (...f) => {
|
|
126
126
|
o.onChange && o.onChange.apply(o, f), a.toggleOption && a.toggleOption({
|
|
127
127
|
label: h,
|
|
@@ -154,8 +154,8 @@ const ge = (e, n) => {
|
|
|
154
154
|
})), h != null && /* @__PURE__ */ l.createElement("span", {
|
|
155
155
|
className: `${c}-label`
|
|
156
156
|
}, h))));
|
|
157
|
-
},
|
|
158
|
-
process.env.NODE_ENV !== "production" && (
|
|
157
|
+
}, L = /* @__PURE__ */ l.forwardRef(ge);
|
|
158
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "Checkbox");
|
|
159
159
|
var xe = function(e, n) {
|
|
160
160
|
var u = {};
|
|
161
161
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (u[t] = e[t]);
|
|
@@ -186,14 +186,14 @@ const ye = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
186
186
|
} : r), [s]), O = (r) => {
|
|
187
187
|
d((k) => k.filter((E) => E !== r));
|
|
188
188
|
}, N = (r) => {
|
|
189
|
-
d((k) => [].concat(
|
|
189
|
+
d((k) => [].concat(F(k), [r]));
|
|
190
190
|
}, x = (r) => {
|
|
191
|
-
const k = o.indexOf(r.value), E =
|
|
191
|
+
const k = o.indexOf(r.value), E = F(o);
|
|
192
192
|
k === -1 ? E.push(r.value) : E.splice(k, 1), "value" in i || P(E), _ == null || _(E.filter((f) => g.includes(f)).sort((f, Q) => {
|
|
193
|
-
const Y = a.findIndex((
|
|
193
|
+
const Y = a.findIndex((A) => A.value === f), Z = a.findIndex((A) => A.value === Q);
|
|
194
194
|
return Y - Z;
|
|
195
195
|
}));
|
|
196
|
-
}, v = S("checkbox", C), b = `${v}-group`, V =
|
|
196
|
+
}, v = S("checkbox", C), b = `${v}-group`, V = q(v), [c, p, I] = K(v, V), j = de(i, ["value", "disabled"]), D = s.length ? a.map((r) => /* @__PURE__ */ l.createElement(L, {
|
|
197
197
|
prefixCls: v,
|
|
198
198
|
key: r.value.toString(),
|
|
199
199
|
disabled: "disabled" in r ? r.disabled : i.disabled,
|
|
@@ -221,10 +221,10 @@ const ye = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
221
221
|
style: w
|
|
222
222
|
}, j, {
|
|
223
223
|
ref: n
|
|
224
|
-
}), /* @__PURE__ */ l.createElement(
|
|
224
|
+
}), /* @__PURE__ */ l.createElement(J.Provider, {
|
|
225
225
|
value: y
|
|
226
226
|
}, D)));
|
|
227
|
-
}), G =
|
|
227
|
+
}), G = L;
|
|
228
228
|
G.Group = ye;
|
|
229
229
|
G.__ANT_CHECKBOX = !0;
|
|
230
230
|
process.env.NODE_ENV !== "production" && (G.displayName = "Checkbox");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { I, cF as ce, t as Re, r as ie, K as Ee, q as $e } from "./embed-
|
|
2
|
+
import { I, cF as ce, t as Re, r as ie, K as Ee, q as $e } from "./embed-BUaR8PAn.js";
|
|
3
3
|
import { f as re } from "./format-CWI99NCN.js";
|
|
4
4
|
import { useState as p, useRef as Z, useEffect as S, useCallback as z, useMemo as xe, useLayoutEffect as Ye } from "react";
|
|
5
5
|
import { u as we } from "./use-escape-key-4SZ4l7av.js";
|