@yuku123/z-cognition-component 2.0.4 → 2.0.5
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 → BaseInput-BYGhTvYI.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DqK04lTb.js → ClockCircleOutlined-DACEazDR.js} +2 -2
- package/dist-lib/{Collapse-D9XOithE.js → Collapse-CZbXdmBX.js} +98 -98
- package/dist-lib/{DeleteOutlined-DnGmqa7C.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-VzQrhleP.js → EllipsisOutlined-pgnttbec.js} +73 -73
- package/dist-lib/{EyeOutlined-CIFgRd6d.js → EyeOutlined-WKo_SfEi.js} +4 -4
- package/dist-lib/{LeftOutlined-Be44-JWT.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BuFXTevS.js → Pagination-CFhUxTf8.js} +32 -32
- package/dist-lib/{RotateRightOutlined-CYlCNRvD.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-D1RvQXGM.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-DlxcvD0O.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-CabJdV6W.js → agents-B5wsLzS-.js} +6 -6
- package/dist-lib/{ai-DZ6fqUyK.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-CYSU7UlK.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-MTp2UyyK.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-F9OYS1Ov.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-DDEl02-L.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-CcC1rvys.js → assistant-BA6oeNSC.js} +5 -5
- package/dist-lib/{assistant-history-fmy8IsJL.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-kuK5-mku.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-C0GYByqU.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-_axkM_DR.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CuPJalb0.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-BPLw60Ia.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CcWolsb5.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-BQdmpq5H.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-DC6nlUDh.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-CgpP4Xf5.js → chat-panel-Ctr_CdZu.js} +3 -3
- package/dist-lib/{code-space-CZ3CzVcA.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-BsFEfaVs.js → colors-DJzrNkCt.js} +1 -1
- package/dist-lib/{community-ESJc4qtl.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-D9mD_Tq1.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Ct5uMwhv.js → community-material-page-jguoD9kV.js} +7 -7
- package/dist-lib/{connections-DrxmCfe3.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-3K1vcDqi.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-kPAVlzm3.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-DXOJf57e.js → detail-CLqCbf3i.js} +2 -2
- package/dist-lib/{detail-lGslEB8s.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-aLXXcLcF.js → development-DG37KZEV.js} +9 -9
- package/dist-lib/{downloads-DFOEFvX6.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-BbtVK23D.js → edit-Cfv83zho.js} +77 -77
- package/dist-lib/{editor-DbLQFOUf.js → editor-BriqrlTB.js} +5 -5
- package/dist-lib/{editor-page-B_H0fRAI.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-BUaR8PAn.js → embed-CoEyJMJx.js} +2235 -2219
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-8Tx-3UQh.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-Dz5dBEFl.js → execution-BMkglxKG.js} +9 -9
- package/dist-lib/{graph-DacHEbKr.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-CS6H40rM.js → index-B21fkm-c.js} +21 -21
- package/dist-lib/{index-jHh-ITBK.js → index-B2Hx9Q2V.js} +40 -40
- package/dist-lib/{index-Ddx6XQu5.js → index-BMVRmc79.js} +2 -2
- package/dist-lib/{index-QkktEus5.js → index-BQnPPCKW.js} +9 -9
- package/dist-lib/{index-CjFA5T3K.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-Bt9F-2Fl.js → index-BeejupFS.js} +64 -64
- package/dist-lib/{index-DTgboCiF.js → index-BelOhXK9.js} +10 -10
- package/dist-lib/{index-BWmgE7bB.js → index-Bqkx1OMz.js} +50 -50
- package/dist-lib/{index-CSoMwNHq.js → index-Bqpk0cSp.js} +54 -54
- package/dist-lib/{index-B6G8CZ1v.js → index-BqvwZwaa.js} +109 -109
- package/dist-lib/{index-keRQ37lH.js → index-BwkQzFNo.js} +4 -4
- package/dist-lib/{index-BU2GXuww.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-IB3GOib9.js → index-C0bjp6yU.js} +23 -23
- package/dist-lib/{index-yPMzsLHL.js → index-C8VIE0cr.js} +4 -4
- package/dist-lib/{index-Di2bQwQn.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-D23tZfhi.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-DR9LGJpi.js → index-CkrD_v5E.js} +14 -14
- package/dist-lib/{index-DlqhOJnd.js → index-Ct0MiSE7.js} +79 -79
- package/dist-lib/{index-BDWjubAD.js → index-D1vltZIy.js} +58 -58
- package/dist-lib/{index-BMv3kGDG.js → index-DQ1YCU_6.js} +31 -31
- package/dist-lib/{index-GQGXGr9M.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-BOB3j3H_.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-BI-rknta.js → index-DljgNXFS.js} +29 -29
- package/dist-lib/{index-CdNxm2We.js → index-DrC19OH2.js} +14 -14
- package/dist-lib/{index-Be_iqVpx.js → index-DvdRKgvN.js} +68 -68
- package/dist-lib/{index-Bi7O9pQv.js → index-EoyTsMVR.js} +182 -182
- package/dist-lib/{index-fVCVIu8I.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-Bf8IQq4A.js → index-MrasjwT1.js} +18 -18
- package/dist-lib/{index-Pcxp_AYe.js → index-TVyOVj_f.js} +75 -75
- package/dist-lib/{index-BtW_nQBU.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-BLGPH51v.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-n6hK1r_G.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-D7nLwQye.js → index-jfZsBNfr.js} +274 -274
- package/dist-lib/{index-qYfXuLnZ.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-BuGHtvxH.js → index-ly9q05gX.js} +8 -8
- package/dist-lib/{index-CDxeB8C4.js → index-mANVYpNc.js} +16 -16
- package/dist-lib/{index-CNBwau86.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-Bu-gFb6c.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-DsXpXfNT.js → kb-form-modal-B9_s7HKJ.js} +2 -2
- package/dist-lib/{kbTeam-D8hsAHI5.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-D2XMD7iI.js → knowledge-base-BIlYHNX_.js} +6 -6
- package/dist-lib/{knowledge-hub-BoBR8-j-.js → knowledge-hub-DS9jz2ml.js} +4 -4
- package/dist-lib/{login-B4C374Y_.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-ROKlyMXg.js → markdown-lite-C0TxiY46.js} +35 -35
- package/dist-lib/{material-CqtPqoZj.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-BKlKt3pc.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-pzANkVK5.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-BUpogooV.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-CCTFfLDC.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-CZGIBlz2.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-Rz7LvGMk.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-Chq3cAdy.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-DciGawgR.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-BWgVxZgd.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-iWreq4IL.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-CNrK04Ak.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-BpUJZCht.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-CaTKbDI1.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-ZH5CWVGF.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-edhi0lav.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-2WdPUP2T.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-Dq6mvU2w.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-BX6X1X2J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BjMnFRBG.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-B7AuwW8S.js → ontology-domains-BG6ZPWXm.js} +57 -57
- package/dist-lib/{ontology-extract-wbvBwGZO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-FpJ6K8z6.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Cgi8Fk-i.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CJsIvS35.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-CeDS1-FE.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-C_6GvHBT.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-4Ar7Y8Kt.js → ontology-scenarios-ANZMjyMB.js} +11 -11
- package/dist-lib/{ontology-scenarios-BaYN82pv.js → ontology-scenarios-BC1UBvtT.js} +85 -85
- package/dist-lib/{ontology-task-config-CDt7NdIq.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-CxTp2Dcq.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-CnFarWZX.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-CNqwhyF3.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-CfByvcqu.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-ImhDvynO.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-B38BWyPo.js → quota-BzWY9oeV.js} +2 -2
- package/dist-lib/{row-DeVE0t_N.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-ILSUwEOv.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-C5BbV45B.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-7v1SRE7V.js → scenario-mapping-preview-CDg3_f0U.js} +17 -17
- package/dist-lib/{scenario-simple-form-mFm6f2ho.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-DzB9rZrm.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-CKdVDsYh.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CaihqQtz.js → settings--NTE0Hux.js} +8 -8
- package/dist-lib/{shared-B51Q5536.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-Ck5sql2m.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-By3A0Dc1.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-sIKyG7xR.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-DvIMColY.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-BHQZmWlH.js → style-B7phAB4-.js} +4 -4
- package/dist-lib/{task-config-CoPFj_FN.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-BJgEEFrT.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-CODaf2QI.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-DmN4qfah.js → tenant-login-D3193dIQ.js} +24 -24
- package/dist-lib/{tools-CyRz1Ofg.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/{use-current-tenant-otPCQ3X8.js → use-current-tenant-KGbU5HpT.js} +1 -1
- package/dist-lib/{use-domain-access-BuD99GTw.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-C5h9frJM.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-Cbd3Jggb.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-B8dF3ifo.js → useBreakpoint-SG_cMfLJ.js} +6 -6
- package/dist-lib/{useForm-BZkiMeaN.js → useForm-Cp45oXOc.js} +13 -13
- package/dist-lib/{version-control-panel-HdMlbpbO.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-BYoxw4GV.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-CMNXQf8J.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as H,
|
|
1
|
+
import { a7 as H, ac as t, a6 as ar, c9 as wr, ad as ir, ae as Br, a5 as $, bi as yr, bn as f, b4 as Er, bj as K } from "./embed-CoEyJMJx.js";
|
|
2
2
|
import u, { useRef as Y, cloneElement as Rr } from "react";
|
|
3
3
|
function nr(r) {
|
|
4
4
|
return H(r, {
|
|
@@ -15,7 +15,7 @@ const tr = (r) => {
|
|
|
15
15
|
controlHeightLG: g,
|
|
16
16
|
fontSizeLG: d,
|
|
17
17
|
lineHeightLG: m,
|
|
18
|
-
paddingSM:
|
|
18
|
+
paddingSM: h,
|
|
19
19
|
controlPaddingHorizontalSM: I,
|
|
20
20
|
controlPaddingHorizontal: j,
|
|
21
21
|
colorFillAlter: z,
|
|
@@ -34,7 +34,7 @@ const tr = (r) => {
|
|
|
34
34
|
paddingBlock: Math.max(l, 0),
|
|
35
35
|
paddingBlockSM: Math.max(E, 0),
|
|
36
36
|
paddingBlockLG: Math.max(W, 0),
|
|
37
|
-
paddingInline:
|
|
37
|
+
paddingInline: h - i,
|
|
38
38
|
paddingInlineSM: I - i,
|
|
39
39
|
paddingInlineLG: j - i,
|
|
40
40
|
addonBg: z,
|
|
@@ -673,7 +673,7 @@ const tr = (r) => {
|
|
|
673
673
|
colorIcon: b,
|
|
674
674
|
colorIconHover: g,
|
|
675
675
|
iconCls: d
|
|
676
|
-
} = r, m = `${o}-affix-wrapper`,
|
|
676
|
+
} = r, m = `${o}-affix-wrapper`, h = `${o}-affix-wrapper-disabled`;
|
|
677
677
|
return {
|
|
678
678
|
[m]: Object.assign(Object.assign(Object.assign(Object.assign({}, gr(r)), {
|
|
679
679
|
display: "inline-flex",
|
|
@@ -747,7 +747,7 @@ const tr = (r) => {
|
|
|
747
747
|
[`${o}-underlined`]: {
|
|
748
748
|
borderRadius: 0
|
|
749
749
|
},
|
|
750
|
-
[
|
|
750
|
+
[h]: {
|
|
751
751
|
// password disabled
|
|
752
752
|
[`${d}${o}-password-icon`]: {
|
|
753
753
|
color: b,
|
|
@@ -1012,12 +1012,12 @@ function Yr(r, o) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
var Zr = /* @__PURE__ */ u.forwardRef(function(r, o) {
|
|
1015
|
-
var e, a, i, b = r.inputElement, g = r.children, d = r.prefixCls, m = r.prefix,
|
|
1015
|
+
var e, a, i, b = r.inputElement, g = r.children, d = r.prefixCls, m = r.prefix, h = r.suffix, I = r.addonBefore, j = r.addonAfter, z = r.className, T = r.style, S = r.disabled, C = r.readOnly, A = r.focused, B = r.triggerFocus, p = r.allowClear, x = r.value, y = r.handleReset, F = r.hidden, s = r.classes, n = r.classNames, w = r.dataAttrs, c = r.styles, l = r.components, E = r.onClear, W = g ?? b, pr = (l == null ? void 0 : l.affixWrapper) || "span", br = (l == null ? void 0 : l.groupWrapper) || "span", hr = (l == null ? void 0 : l.wrapper) || "span", _ = (l == null ? void 0 : l.groupAddon) || "span", G = Y(null), $r = function(O) {
|
|
1016
1016
|
var D;
|
|
1017
1017
|
(D = G.current) !== null && D !== void 0 && D.contains(O.target) && (B == null || B());
|
|
1018
1018
|
}, P = qr(r), v = /* @__PURE__ */ Rr(W, {
|
|
1019
1019
|
value: x,
|
|
1020
|
-
className:
|
|
1020
|
+
className: $((e = W.props) === null || e === void 0 ? void 0 : e.className, !P && (n == null ? void 0 : n.variant)) || null
|
|
1021
1021
|
}), q = Y(null);
|
|
1022
1022
|
if (u.useImperativeHandle(o, function() {
|
|
1023
1023
|
return {
|
|
@@ -1036,30 +1036,30 @@ var Zr = /* @__PURE__ */ u.forwardRef(function(r, o) {
|
|
|
1036
1036
|
onMouseDown: function(O) {
|
|
1037
1037
|
return O.preventDefault();
|
|
1038
1038
|
},
|
|
1039
|
-
className:
|
|
1039
|
+
className: $(M, f(f({}, "".concat(M, "-hidden"), !fr), "".concat(M, "-has-suffix"), !!h))
|
|
1040
1040
|
}, vr);
|
|
1041
1041
|
}
|
|
1042
|
-
var R = "".concat(d, "-affix-wrapper"), mr =
|
|
1043
|
-
className:
|
|
1042
|
+
var R = "".concat(d, "-affix-wrapper"), mr = $(R, f(f(f(f(f({}, "".concat(d, "-disabled"), S), "".concat(R, "-disabled"), S), "".concat(R, "-focused"), A), "".concat(R, "-readonly"), C), "".concat(R, "-input-with-clear-btn"), h && p && x), s == null ? void 0 : s.affixWrapper, n == null ? void 0 : n.affixWrapper, n == null ? void 0 : n.variant), Sr = (h || p) && /* @__PURE__ */ u.createElement("span", {
|
|
1043
|
+
className: $("".concat(d, "-suffix"), n == null ? void 0 : n.suffix),
|
|
1044
1044
|
style: c == null ? void 0 : c.suffix
|
|
1045
|
-
}, X,
|
|
1045
|
+
}, X, h);
|
|
1046
1046
|
v = /* @__PURE__ */ u.createElement(pr, Er({
|
|
1047
1047
|
className: mr,
|
|
1048
1048
|
style: c == null ? void 0 : c.affixWrapper,
|
|
1049
|
-
onClick:
|
|
1049
|
+
onClick: $r
|
|
1050
1050
|
}, w == null ? void 0 : w.affixWrapper, {
|
|
1051
1051
|
ref: G
|
|
1052
1052
|
}), m && /* @__PURE__ */ u.createElement("span", {
|
|
1053
|
-
className:
|
|
1053
|
+
className: $("".concat(d, "-prefix"), n == null ? void 0 : n.prefix),
|
|
1054
1054
|
style: c == null ? void 0 : c.prefix
|
|
1055
1055
|
}, m), v, Sr);
|
|
1056
1056
|
}
|
|
1057
1057
|
if (Pr(r)) {
|
|
1058
|
-
var L = "".concat(d, "-group"), U = "".concat(L, "-addon"), Q = "".concat(L, "-wrapper"), Cr =
|
|
1058
|
+
var L = "".concat(d, "-group"), U = "".concat(L, "-addon"), Q = "".concat(L, "-wrapper"), Cr = $("".concat(d, "-wrapper"), L, s == null ? void 0 : s.wrapper, n == null ? void 0 : n.wrapper), xr = $(Q, f({}, "".concat(Q, "-disabled"), S), s == null ? void 0 : s.group, n == null ? void 0 : n.groupWrapper);
|
|
1059
1059
|
v = /* @__PURE__ */ u.createElement(br, {
|
|
1060
1060
|
className: xr,
|
|
1061
1061
|
ref: q
|
|
1062
|
-
}, /* @__PURE__ */ u.createElement(
|
|
1062
|
+
}, /* @__PURE__ */ u.createElement(hr, {
|
|
1063
1063
|
className: Cr
|
|
1064
1064
|
}, I && /* @__PURE__ */ u.createElement(_, {
|
|
1065
1065
|
className: U
|
|
@@ -1068,7 +1068,7 @@ var Zr = /* @__PURE__ */ u.forwardRef(function(r, o) {
|
|
|
1068
1068
|
}, j)));
|
|
1069
1069
|
}
|
|
1070
1070
|
return /* @__PURE__ */ u.cloneElement(v, {
|
|
1071
|
-
className:
|
|
1071
|
+
className: $((a = v.props) === null || a === void 0 ? void 0 : a.className, z) || null,
|
|
1072
1072
|
style: K(K({}, (i = v.props) === null || i === void 0 ? void 0 : i.style), T),
|
|
1073
1073
|
hidden: F
|
|
1074
1074
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b3 as r, b4 as a } from "./embed-CoEyJMJx.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
var l = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, o = function(c, t) {
|
|
4
|
-
return /* @__PURE__ */ e.createElement(
|
|
4
|
+
return /* @__PURE__ */ e.createElement(r, a({}, c, {
|
|
5
5
|
ref: t,
|
|
6
6
|
icon: l
|
|
7
7
|
}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _ from "react";
|
|
2
2
|
import C from "react";
|
|
3
|
-
import { a as ne } from "./LeftOutlined-
|
|
4
|
-
import {
|
|
3
|
+
import { a as ne } from "./LeftOutlined-B79bB1ZG.js";
|
|
4
|
+
import { bl as X, a5 as j, bn as R, bk as q, bI as L, b4 as K, bj as ae, az as te, aY as F, bm as oe, bA as re, ak as le, bi as ie, as as se, ah as U, a8 as ce, a6 as de, a7 as ue, ac as M, ad as me, cs as ve, ca as fe, aj as pe, ai as ge, an as V, aN as be, a9 as W } from "./embed-CoEyJMJx.js";
|
|
5
5
|
import { g as Ce } from "./collapse-Dtpt-6W_.js";
|
|
6
|
-
var
|
|
7
|
-
var a = n.prefixCls, t = n.forceRender, s = n.className, c = n.style, d = n.children, i = n.isActive, u = n.role, f = n.classNames, x = n.styles, m = C.useState(i || t),
|
|
6
|
+
var Y = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
7
|
+
var a = n.prefixCls, t = n.forceRender, s = n.className, c = n.style, d = n.children, i = n.isActive, u = n.role, f = n.classNames, x = n.styles, m = C.useState(i || t), p = X(m, 2), r = p[0], l = p[1];
|
|
8
8
|
return C.useEffect(function() {
|
|
9
9
|
(t || i) && l(!0);
|
|
10
10
|
}, [t, i]), r ? /* @__PURE__ */ C.createElement("div", {
|
|
@@ -17,28 +17,28 @@ var U = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
|
17
17
|
style: x == null ? void 0 : x.body
|
|
18
18
|
}, d)) : null;
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
var ye = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "classNames", "styles", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"],
|
|
22
|
-
var a = n.showArrow, t = a === void 0 ? !0 : a, s = n.headerClass, c = n.isActive, d = n.onItemClick, i = n.forceRender, u = n.className, f = n.classNames, x = f === void 0 ? {} : f, m = n.styles,
|
|
20
|
+
Y.displayName = "PanelContent";
|
|
21
|
+
var ye = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "classNames", "styles", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"], J = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
22
|
+
var a = n.showArrow, t = a === void 0 ? !0 : a, s = n.headerClass, c = n.isActive, d = n.onItemClick, i = n.forceRender, u = n.className, f = n.classNames, x = f === void 0 ? {} : f, m = n.styles, p = m === void 0 ? {} : m, r = n.prefixCls, l = n.collapsible, g = n.accordion, h = n.panelKey, v = n.extra, b = n.header, y = n.expandIcon, o = n.openMotion, P = n.destroyInactivePanel, $ = n.children, E = q(n, ye), I = l === "disabled", S = v != null && typeof v != "boolean", w = R(R(R({
|
|
23
23
|
onClick: function() {
|
|
24
24
|
d == null || d(h);
|
|
25
25
|
},
|
|
26
|
-
onKeyDown: function(
|
|
27
|
-
(
|
|
26
|
+
onKeyDown: function(k) {
|
|
27
|
+
(k.key === "Enter" || k.keyCode === L.ENTER || k.which === L.ENTER) && (d == null || d(h));
|
|
28
28
|
},
|
|
29
|
-
role:
|
|
30
|
-
}, "aria-expanded", c), "aria-disabled", I), "tabIndex", I ? -1 : 0),
|
|
29
|
+
role: g ? "tab" : "button"
|
|
30
|
+
}, "aria-expanded", c), "aria-disabled", I), "tabIndex", I ? -1 : 0), O = typeof y == "function" ? y(n) : /* @__PURE__ */ C.createElement("i", {
|
|
31
31
|
className: "arrow"
|
|
32
|
-
}), z =
|
|
32
|
+
}), z = O && /* @__PURE__ */ C.createElement("div", K({
|
|
33
33
|
className: "".concat(r, "-expand-icon")
|
|
34
|
-
}, ["header", "icon"].includes(l) ? w : {}),
|
|
34
|
+
}, ["header", "icon"].includes(l) ? w : {}), O), T = j("".concat(r, "-item"), R(R({}, "".concat(r, "-item-active"), c), "".concat(r, "-item-disabled"), I), u), D = j(s, "".concat(r, "-header"), R({}, "".concat(r, "-collapsible-").concat(l), !!l), x.header), N = ae({
|
|
35
35
|
className: D,
|
|
36
|
-
style:
|
|
36
|
+
style: p.header
|
|
37
37
|
}, ["header", "icon"].includes(l) ? {} : w);
|
|
38
38
|
return /* @__PURE__ */ C.createElement("div", K({}, E, {
|
|
39
39
|
ref: e,
|
|
40
40
|
className: T
|
|
41
|
-
}), /* @__PURE__ */ C.createElement("div",
|
|
41
|
+
}), /* @__PURE__ */ C.createElement("div", N, t && z, /* @__PURE__ */ C.createElement("span", K({
|
|
42
42
|
className: "".concat(r, "-header-text")
|
|
43
43
|
}, l === "header" ? w : {}), b), S && /* @__PURE__ */ C.createElement("div", {
|
|
44
44
|
className: "".concat(r, "-extra")
|
|
@@ -47,28 +47,28 @@ var ye = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender",
|
|
|
47
47
|
leavedClassName: "".concat(r, "-content-hidden")
|
|
48
48
|
}, o, {
|
|
49
49
|
forceRender: i,
|
|
50
|
-
removeOnLeave:
|
|
51
|
-
}), function(A,
|
|
50
|
+
removeOnLeave: P
|
|
51
|
+
}), function(A, k) {
|
|
52
52
|
var H = A.className, B = A.style;
|
|
53
|
-
return /* @__PURE__ */ C.createElement(
|
|
54
|
-
ref:
|
|
53
|
+
return /* @__PURE__ */ C.createElement(Y, {
|
|
54
|
+
ref: k,
|
|
55
55
|
prefixCls: r,
|
|
56
56
|
className: H,
|
|
57
57
|
classNames: x,
|
|
58
58
|
style: B,
|
|
59
|
-
styles:
|
|
59
|
+
styles: p,
|
|
60
60
|
isActive: c,
|
|
61
61
|
forceRender: i,
|
|
62
|
-
role:
|
|
62
|
+
role: g ? "tabpanel" : void 0
|
|
63
63
|
}, $);
|
|
64
64
|
}));
|
|
65
65
|
}), xe = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], he = function(e, a) {
|
|
66
66
|
var t = a.prefixCls, s = a.accordion, c = a.collapsible, d = a.destroyInactivePanel, i = a.onItemClick, u = a.activeKey, f = a.openMotion, x = a.expandIcon;
|
|
67
|
-
return e.map(function(m,
|
|
68
|
-
var r = m.children, l = m.label,
|
|
69
|
-
|
|
67
|
+
return e.map(function(m, p) {
|
|
68
|
+
var r = m.children, l = m.label, g = m.key, h = m.collapsible, v = m.onItemClick, b = m.destroyInactivePanel, y = q(m, xe), o = String(g ?? p), P = h ?? c, $ = b ?? d, E = function(w) {
|
|
69
|
+
P !== "disabled" && (i(w), v == null || v(w));
|
|
70
70
|
}, I = !1;
|
|
71
|
-
return s ? I = u[0] === o : I = u.indexOf(o) > -1, /* @__PURE__ */ C.createElement(
|
|
71
|
+
return s ? I = u[0] === o : I = u.indexOf(o) > -1, /* @__PURE__ */ C.createElement(J, K({}, y, {
|
|
72
72
|
prefixCls: t,
|
|
73
73
|
key: o,
|
|
74
74
|
panelKey: o,
|
|
@@ -77,29 +77,29 @@ var ye = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender",
|
|
|
77
77
|
openMotion: f,
|
|
78
78
|
expandIcon: x,
|
|
79
79
|
header: l,
|
|
80
|
-
collapsible:
|
|
80
|
+
collapsible: P,
|
|
81
81
|
onItemClick: E,
|
|
82
82
|
destroyInactivePanel: $
|
|
83
83
|
}), r);
|
|
84
84
|
});
|
|
85
85
|
}, $e = function(e, a, t) {
|
|
86
86
|
if (!e) return null;
|
|
87
|
-
var s = t.prefixCls, c = t.accordion, d = t.collapsible, i = t.destroyInactivePanel, u = t.onItemClick, f = t.activeKey, x = t.openMotion, m = t.expandIcon,
|
|
88
|
-
c ? y = f[0] ===
|
|
89
|
-
var o = v ?? d,
|
|
87
|
+
var s = t.prefixCls, c = t.accordion, d = t.collapsible, i = t.destroyInactivePanel, u = t.onItemClick, f = t.activeKey, x = t.openMotion, m = t.expandIcon, p = e.key || String(a), r = e.props, l = r.header, g = r.headerClass, h = r.destroyInactivePanel, v = r.collapsible, b = r.onItemClick, y = !1;
|
|
88
|
+
c ? y = f[0] === p : y = f.indexOf(p) > -1;
|
|
89
|
+
var o = v ?? d, P = function(I) {
|
|
90
90
|
o !== "disabled" && (u(I), b == null || b(I));
|
|
91
91
|
}, $ = {
|
|
92
|
-
key:
|
|
93
|
-
panelKey:
|
|
92
|
+
key: p,
|
|
93
|
+
panelKey: p,
|
|
94
94
|
header: l,
|
|
95
|
-
headerClass:
|
|
95
|
+
headerClass: g,
|
|
96
96
|
isActive: y,
|
|
97
97
|
prefixCls: s,
|
|
98
98
|
destroyInactivePanel: h ?? i,
|
|
99
99
|
openMotion: x,
|
|
100
100
|
accordion: c,
|
|
101
101
|
children: e.props.children,
|
|
102
|
-
onItemClick:
|
|
102
|
+
onItemClick: P,
|
|
103
103
|
expandIcon: m,
|
|
104
104
|
collapsible: o
|
|
105
105
|
};
|
|
@@ -112,7 +112,7 @@ function Ie(n, e, a) {
|
|
|
112
112
|
return $e(t, s, a);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Ne(n) {
|
|
116
116
|
var e = n;
|
|
117
117
|
if (!Array.isArray(e)) {
|
|
118
118
|
var a = ie(e);
|
|
@@ -122,20 +122,20 @@ function Pe(n) {
|
|
|
122
122
|
return String(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
var
|
|
126
|
-
var a = n.prefixCls, t = a === void 0 ? "rc-collapse" : a, s = n.destroyInactivePanel, c = s === void 0 ? !1 : s, d = n.style, i = n.accordion, u = n.className, f = n.children, x = n.collapsible, m = n.openMotion,
|
|
125
|
+
var Pe = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
126
|
+
var a = n.prefixCls, t = a === void 0 ? "rc-collapse" : a, s = n.destroyInactivePanel, c = s === void 0 ? !1 : s, d = n.style, i = n.accordion, u = n.className, f = n.children, x = n.collapsible, m = n.openMotion, p = n.expandIcon, r = n.activeKey, l = n.defaultActiveKey, g = n.onChange, h = n.items, v = j(t, u), b = oe([], {
|
|
127
127
|
value: r,
|
|
128
128
|
onChange: function(S) {
|
|
129
|
-
return
|
|
129
|
+
return g == null ? void 0 : g(S);
|
|
130
130
|
},
|
|
131
131
|
defaultValue: l,
|
|
132
|
-
postState:
|
|
133
|
-
}), y = X(b, 2), o = y[0],
|
|
134
|
-
return
|
|
132
|
+
postState: Ne
|
|
133
|
+
}), y = X(b, 2), o = y[0], P = y[1], $ = function(S) {
|
|
134
|
+
return P(function() {
|
|
135
135
|
if (i)
|
|
136
136
|
return o[0] === S ? [] : [S];
|
|
137
|
-
var w = o.indexOf(S),
|
|
138
|
-
return
|
|
137
|
+
var w = o.indexOf(S), O = w > -1;
|
|
138
|
+
return O ? o.filter(function(z) {
|
|
139
139
|
return z !== S;
|
|
140
140
|
}) : [].concat(se(o), [S]);
|
|
141
141
|
});
|
|
@@ -145,7 +145,7 @@ var Ne = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
|
145
145
|
prefixCls: t,
|
|
146
146
|
accordion: i,
|
|
147
147
|
openMotion: m,
|
|
148
|
-
expandIcon:
|
|
148
|
+
expandIcon: p,
|
|
149
149
|
collapsible: x,
|
|
150
150
|
destroyInactivePanel: c,
|
|
151
151
|
onItemClick: $,
|
|
@@ -161,25 +161,25 @@ var Ne = /* @__PURE__ */ C.forwardRef(function(n, e) {
|
|
|
161
161
|
data: !0
|
|
162
162
|
})), E);
|
|
163
163
|
});
|
|
164
|
-
const G = Object.assign(
|
|
164
|
+
const G = Object.assign(Pe, {
|
|
165
165
|
/**
|
|
166
166
|
* @deprecated use `items` instead, will be removed in `v4.0.0`
|
|
167
167
|
*/
|
|
168
|
-
Panel:
|
|
168
|
+
Panel: J
|
|
169
169
|
});
|
|
170
170
|
G.Panel;
|
|
171
|
-
const Se = /* @__PURE__ */
|
|
172
|
-
process.env.NODE_ENV !== "production" &&
|
|
171
|
+
const Se = /* @__PURE__ */ _.forwardRef((n, e) => {
|
|
172
|
+
process.env.NODE_ENV !== "production" && U("Collapse.Panel").deprecated(!("disabled" in n), "disabled", 'collapsible="disabled"');
|
|
173
173
|
const {
|
|
174
174
|
getPrefixCls: a
|
|
175
|
-
} =
|
|
175
|
+
} = _.useContext(ce), {
|
|
176
176
|
prefixCls: t,
|
|
177
177
|
className: s,
|
|
178
178
|
showArrow: c = !0
|
|
179
179
|
} = n, d = a("collapse", t), i = j({
|
|
180
180
|
[`${d}-no-arrow`]: !c
|
|
181
181
|
}, s);
|
|
182
|
-
return /* @__PURE__ */
|
|
182
|
+
return /* @__PURE__ */ _.createElement(G.Panel, Object.assign({
|
|
183
183
|
ref: e
|
|
184
184
|
}, n, {
|
|
185
185
|
prefixCls: d,
|
|
@@ -198,44 +198,44 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
198
198
|
lineWidth: f,
|
|
199
199
|
lineType: x,
|
|
200
200
|
colorBorder: m,
|
|
201
|
-
colorText:
|
|
201
|
+
colorText: p,
|
|
202
202
|
colorTextHeading: r,
|
|
203
203
|
colorTextDisabled: l,
|
|
204
|
-
fontSizeLG:
|
|
204
|
+
fontSizeLG: g,
|
|
205
205
|
lineHeight: h,
|
|
206
206
|
lineHeightLG: v,
|
|
207
207
|
marginSM: b,
|
|
208
208
|
paddingSM: y,
|
|
209
209
|
paddingLG: o,
|
|
210
|
-
paddingXS:
|
|
210
|
+
paddingXS: P,
|
|
211
211
|
motionDurationSlow: $,
|
|
212
212
|
fontSizeIcon: E,
|
|
213
213
|
contentPadding: I,
|
|
214
214
|
fontHeight: S,
|
|
215
215
|
fontHeightLG: w
|
|
216
|
-
} = n,
|
|
216
|
+
} = n, O = `${M(f)} ${x} ${m}`;
|
|
217
217
|
return {
|
|
218
218
|
[e]: Object.assign(Object.assign({}, me(n)), {
|
|
219
219
|
backgroundColor: s,
|
|
220
|
-
border:
|
|
220
|
+
border: O,
|
|
221
221
|
borderRadius: u,
|
|
222
222
|
"&-rtl": {
|
|
223
223
|
direction: "rtl"
|
|
224
224
|
},
|
|
225
225
|
[`& > ${e}-item`]: {
|
|
226
|
-
borderBottom:
|
|
226
|
+
borderBottom: O,
|
|
227
227
|
"&:first-child": {
|
|
228
228
|
[`
|
|
229
229
|
&,
|
|
230
230
|
& > ${e}-header`]: {
|
|
231
|
-
borderRadius: `${
|
|
231
|
+
borderRadius: `${M(u)} ${M(u)} 0 0`
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
"&:last-child": {
|
|
235
235
|
[`
|
|
236
236
|
&,
|
|
237
237
|
& > ${e}-header`]: {
|
|
238
|
-
borderRadius: `0 0 ${
|
|
238
|
+
borderRadius: `0 0 ${M(u)} ${M(u)}`
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
[`> ${e}-header`]: Object.assign(Object.assign({
|
|
@@ -291,9 +291,9 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
[`${e}-content`]: {
|
|
294
|
-
color:
|
|
294
|
+
color: p,
|
|
295
295
|
backgroundColor: a,
|
|
296
|
-
borderTop:
|
|
296
|
+
borderTop: O,
|
|
297
297
|
[`& > ${e}-content-box`]: {
|
|
298
298
|
padding: I
|
|
299
299
|
},
|
|
@@ -305,10 +305,10 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
305
305
|
[`> ${e}-item`]: {
|
|
306
306
|
[`> ${e}-header`]: {
|
|
307
307
|
padding: d,
|
|
308
|
-
paddingInlineStart:
|
|
308
|
+
paddingInlineStart: P,
|
|
309
309
|
[`> ${e}-expand-icon`]: {
|
|
310
310
|
// Arrow offset
|
|
311
|
-
marginInlineStart: n.calc(y).sub(
|
|
311
|
+
marginInlineStart: n.calc(y).sub(P).equal()
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
314
|
[`> ${e}-content > ${e}-content-box`]: {
|
|
@@ -318,7 +318,7 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
318
318
|
},
|
|
319
319
|
"&-large": {
|
|
320
320
|
[`> ${e}-item`]: {
|
|
321
|
-
fontSize:
|
|
321
|
+
fontSize: g,
|
|
322
322
|
lineHeight: v,
|
|
323
323
|
[`> ${e}-header`]: {
|
|
324
324
|
padding: i,
|
|
@@ -337,7 +337,7 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
337
337
|
[`${e}-item:last-child`]: {
|
|
338
338
|
borderBottom: 0,
|
|
339
339
|
[`> ${e}-content`]: {
|
|
340
|
-
borderRadius: `0 0 ${
|
|
340
|
+
borderRadius: `0 0 ${M(u)} ${M(u)}`
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
[`& ${e}-item-disabled > ${e}-header`]: {
|
|
@@ -404,7 +404,7 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
-
},
|
|
407
|
+
}, ke = (n) => {
|
|
408
408
|
const {
|
|
409
409
|
componentCls: e,
|
|
410
410
|
paddingSM: a
|
|
@@ -425,7 +425,7 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
},
|
|
428
|
+
}, Me = (n) => ({
|
|
429
429
|
headerPadding: `${n.paddingSM}px ${n.padding}px`,
|
|
430
430
|
headerBg: n.colorFillAlter,
|
|
431
431
|
contentPadding: `${n.padding}px 16px`,
|
|
@@ -433,79 +433,79 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
433
433
|
contentBg: n.colorBgContainer,
|
|
434
434
|
borderlessContentPadding: `${n.paddingXXS}px 16px ${n.padding}px`,
|
|
435
435
|
borderlessContentBg: "transparent"
|
|
436
|
-
}),
|
|
436
|
+
}), Oe = de("Collapse", (n) => {
|
|
437
437
|
const e = ue(n, {
|
|
438
|
-
collapseHeaderPaddingSM: `${
|
|
439
|
-
collapseHeaderPaddingLG: `${
|
|
438
|
+
collapseHeaderPaddingSM: `${M(n.paddingXS)} ${M(n.paddingSM)}`,
|
|
439
|
+
collapseHeaderPaddingLG: `${M(n.padding)} ${M(n.paddingLG)}`,
|
|
440
440
|
collapsePanelBorderRadius: n.borderRadiusLG
|
|
441
441
|
});
|
|
442
|
-
return [we(e), Ae(e),
|
|
443
|
-
},
|
|
442
|
+
return [we(e), Ae(e), ke(e), Ee(e), Ce(e)];
|
|
443
|
+
}, Me), Q = /* @__PURE__ */ _.forwardRef((n, e) => {
|
|
444
444
|
const {
|
|
445
445
|
getPrefixCls: a,
|
|
446
446
|
direction: t,
|
|
447
447
|
expandIcon: s,
|
|
448
448
|
className: c,
|
|
449
449
|
style: d
|
|
450
|
-
} =
|
|
450
|
+
} = pe("collapse"), {
|
|
451
451
|
prefixCls: i,
|
|
452
452
|
className: u,
|
|
453
453
|
rootClassName: f,
|
|
454
454
|
style: x,
|
|
455
455
|
bordered: m = !0,
|
|
456
|
-
ghost:
|
|
456
|
+
ghost: p,
|
|
457
457
|
size: r,
|
|
458
458
|
expandIconPosition: l = "start",
|
|
459
|
-
children:
|
|
459
|
+
children: g,
|
|
460
460
|
destroyInactivePanel: h,
|
|
461
461
|
destroyOnHidden: v,
|
|
462
462
|
expandIcon: b
|
|
463
|
-
} = n, y =
|
|
463
|
+
} = n, y = ge((N) => {
|
|
464
464
|
var A;
|
|
465
|
-
return (A = r ??
|
|
466
|
-
}), o = a("collapse", i),
|
|
465
|
+
return (A = r ?? N) !== null && A !== void 0 ? A : "middle";
|
|
466
|
+
}), o = a("collapse", i), P = a(), [$, E, I] = Oe(o);
|
|
467
467
|
if (process.env.NODE_ENV !== "production") {
|
|
468
|
-
const
|
|
469
|
-
process.env.NODE_ENV !== "production" &&
|
|
468
|
+
const N = U("Collapse");
|
|
469
|
+
process.env.NODE_ENV !== "production" && N(l !== "left" && l !== "right", "deprecated", "`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead."), N.deprecated(!("destroyInactivePanel" in n), "destroyInactivePanel", "destroyOnHidden");
|
|
470
470
|
}
|
|
471
|
-
const S =
|
|
472
|
-
const A = typeof w == "function" ? w(
|
|
473
|
-
rotate:
|
|
474
|
-
"aria-label":
|
|
471
|
+
const S = _.useMemo(() => l === "left" ? "start" : l === "right" ? "end" : l, [l]), w = b ?? s, O = _.useCallback((N = {}) => {
|
|
472
|
+
const A = typeof w == "function" ? w(N) : /* @__PURE__ */ _.createElement(ne, {
|
|
473
|
+
rotate: N.isActive ? t === "rtl" ? -90 : 90 : void 0,
|
|
474
|
+
"aria-label": N.isActive ? "expanded" : "collapsed"
|
|
475
475
|
});
|
|
476
476
|
return V(A, () => {
|
|
477
|
-
var
|
|
477
|
+
var k;
|
|
478
478
|
return {
|
|
479
|
-
className: j((
|
|
479
|
+
className: j((k = A.props) === null || k === void 0 ? void 0 : k.className, `${o}-arrow`)
|
|
480
480
|
};
|
|
481
481
|
});
|
|
482
482
|
}, [w, o, t]), z = j(`${o}-icon-position-${S}`, {
|
|
483
483
|
[`${o}-borderless`]: !m,
|
|
484
484
|
[`${o}-rtl`]: t === "rtl",
|
|
485
|
-
[`${o}-ghost`]: !!
|
|
485
|
+
[`${o}-ghost`]: !!p,
|
|
486
486
|
[`${o}-${y}`]: y !== "middle"
|
|
487
|
-
}, c, u, f, E, I), T =
|
|
487
|
+
}, c, u, f, E, I), T = _.useMemo(() => Object.assign(Object.assign({}, be(P)), {
|
|
488
488
|
motionAppear: !1,
|
|
489
489
|
leavedClassName: `${o}-content-hidden`
|
|
490
|
-
}), [
|
|
491
|
-
var
|
|
492
|
-
const B =
|
|
490
|
+
}), [P, o]), D = _.useMemo(() => g ? F(g).map((N, A) => {
|
|
491
|
+
var k, H;
|
|
492
|
+
const B = N.props;
|
|
493
493
|
if (B != null && B.disabled) {
|
|
494
|
-
const Z = (
|
|
494
|
+
const Z = (k = N.key) !== null && k !== void 0 ? k : String(A), ee = Object.assign(Object.assign({}, W(N.props, ["disabled"])), {
|
|
495
495
|
key: Z,
|
|
496
496
|
collapsible: (H = B.collapsible) !== null && H !== void 0 ? H : "disabled"
|
|
497
497
|
});
|
|
498
|
-
return V(
|
|
498
|
+
return V(N, ee);
|
|
499
499
|
}
|
|
500
|
-
return
|
|
501
|
-
}) : null, [
|
|
500
|
+
return N;
|
|
501
|
+
}) : null, [g]);
|
|
502
502
|
return $(
|
|
503
503
|
// @ts-ignore
|
|
504
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ _.createElement(G, Object.assign({
|
|
505
505
|
ref: e,
|
|
506
506
|
openMotion: T
|
|
507
507
|
}, W(n, ["rootClassName"]), {
|
|
508
|
-
expandIcon:
|
|
508
|
+
expandIcon: O,
|
|
509
509
|
prefixCls: o,
|
|
510
510
|
className: z,
|
|
511
511
|
style: Object.assign(Object.assign({}, d), x),
|
|
@@ -514,8 +514,8 @@ const Se = /* @__PURE__ */ k.forwardRef((n, e) => {
|
|
|
514
514
|
}), D)
|
|
515
515
|
);
|
|
516
516
|
});
|
|
517
|
-
process.env.NODE_ENV !== "production" && (
|
|
518
|
-
const Ke = Object.assign(
|
|
517
|
+
process.env.NODE_ENV !== "production" && (Q.displayName = "Collapse");
|
|
518
|
+
const Ke = Object.assign(Q, {
|
|
519
519
|
Panel: Se
|
|
520
520
|
});
|
|
521
521
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b3 as a, b4 as l } from "./embed-CoEyJMJx.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
var r = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" }, n = function(t,
|
|
4
|
-
return /* @__PURE__ */ e.createElement(
|
|
5
|
-
ref:
|
|
3
|
+
var r = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" }, n = function(t, c) {
|
|
4
|
+
return /* @__PURE__ */ e.createElement(a, l({}, t, {
|
|
5
|
+
ref: c,
|
|
6
6
|
icon: r
|
|
7
7
|
}));
|
|
8
8
|
}, o = /* @__PURE__ */ e.forwardRef(n);
|