@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,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-CoEyJMJx.js";
|
|
5
|
+
import { D as z } from "./index-Bqkx1OMz.js";
|
|
6
6
|
function D({
|
|
7
7
|
items: k,
|
|
8
8
|
active: h,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { isValidElement as
|
|
3
|
-
import { a6 as
|
|
4
|
-
import { g as re, a as ae, b as se, P as le, T as ie } from "./index-
|
|
2
|
+
import { isValidElement as G } from "react";
|
|
3
|
+
import { a6 as U, a7 as X, cd as Y, ad as Z, cc as q, a8 as J, a5 as x, aj as Q, bm as ee, ce as te, an as oe, bI as ne } from "./embed-CoEyJMJx.js";
|
|
4
|
+
import { g as re, a as ae, b as se, P as le, T as ie } from "./index-CkrD_v5E.js";
|
|
5
5
|
const h = (e) => e ? typeof e == "function" ? e() : e : null, ce = (e) => {
|
|
6
6
|
const {
|
|
7
7
|
componentCls: o,
|
|
@@ -22,7 +22,7 @@ const h = (e) => e ? typeof e == "function" ? e() : e : null, ce = (e) => {
|
|
|
22
22
|
} = e;
|
|
23
23
|
return [
|
|
24
24
|
{
|
|
25
|
-
[o]: Object.assign(Object.assign({},
|
|
25
|
+
[o]: Object.assign(Object.assign({}, Z(e)), {
|
|
26
26
|
position: "absolute",
|
|
27
27
|
top: 0,
|
|
28
28
|
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
|
@@ -92,7 +92,7 @@ const h = (e) => e ? typeof e == "function" ? e() : e : null, ce = (e) => {
|
|
|
92
92
|
componentCls: o
|
|
93
93
|
} = e;
|
|
94
94
|
return {
|
|
95
|
-
[o]:
|
|
95
|
+
[o]: q.map((n) => {
|
|
96
96
|
const t = e[`${n}6`];
|
|
97
97
|
return {
|
|
98
98
|
[`&${o}-${n}`]: {
|
|
@@ -135,15 +135,15 @@ const h = (e) => e ? typeof e == "function" ? e() : e : null, ce = (e) => {
|
|
|
135
135
|
titleBorderBottom: a ? `${o}px ${g} ${l}` : "none",
|
|
136
136
|
innerContentPadding: a ? `${u}px ${i}px` : 0
|
|
137
137
|
});
|
|
138
|
-
}, _ =
|
|
138
|
+
}, _ = U("Popover", (e) => {
|
|
139
139
|
const {
|
|
140
140
|
colorBgElevated: o,
|
|
141
141
|
colorText: n
|
|
142
|
-
} = e, t =
|
|
142
|
+
} = e, t = X(e, {
|
|
143
143
|
popoverBg: o,
|
|
144
144
|
popoverColor: n
|
|
145
145
|
});
|
|
146
|
-
return [ce(t), de(t),
|
|
146
|
+
return [ce(t), de(t), Y(t, "zoom-big")];
|
|
147
147
|
}, pe, {
|
|
148
148
|
resetStyle: !1,
|
|
149
149
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
@@ -225,18 +225,18 @@ const ve = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
|
225
225
|
classNames: y
|
|
226
226
|
} = e, N = fe(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
|
|
227
227
|
getPrefixCls: w,
|
|
228
|
-
className:
|
|
228
|
+
className: T,
|
|
229
229
|
style: W,
|
|
230
230
|
classNames: S,
|
|
231
231
|
styles: $
|
|
232
|
-
} = Q("popover"), O = w("popover", r), [D, z, M] = _(O), R = w(), V = x(p, z, M,
|
|
232
|
+
} = Q("popover"), O = w("popover", r), [D, z, M] = _(O), R = w(), V = x(p, z, M, T, S.root, y == null ? void 0 : y.root), A = x(S.body, y == null ? void 0 : y.body), [H, L] = ee(!1, {
|
|
233
233
|
value: (n = e.open) !== null && n !== void 0 ? n : e.visible,
|
|
234
234
|
defaultValue: (t = e.defaultOpen) !== null && t !== void 0 ? t : e.defaultVisible
|
|
235
235
|
}), j = (c, C) => {
|
|
236
236
|
L(c, !0), f == null || f(c, C);
|
|
237
|
-
}, G = (c) => {
|
|
238
|
-
c.keyCode === ne.ESC && j(!1, c);
|
|
239
237
|
}, K = (c) => {
|
|
238
|
+
c.keyCode === ne.ESC && j(!1, c);
|
|
239
|
+
}, F = (c) => {
|
|
240
240
|
j(c);
|
|
241
241
|
}, E = h(a), B = h(d);
|
|
242
242
|
return D(/* @__PURE__ */ s.createElement(ie, Object.assign({
|
|
@@ -256,7 +256,7 @@ const ve = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
|
256
256
|
},
|
|
257
257
|
ref: o,
|
|
258
258
|
open: H,
|
|
259
|
-
onOpenChange:
|
|
259
|
+
onOpenChange: F,
|
|
260
260
|
overlay: E || B ? /* @__PURE__ */ s.createElement(k, {
|
|
261
261
|
prefixCls: O,
|
|
262
262
|
title: E,
|
|
@@ -267,14 +267,14 @@ const ve = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
|
267
267
|
}), oe(l, {
|
|
268
268
|
onKeyDown: (c) => {
|
|
269
269
|
var C, P;
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ G(l) && ((P = l == null ? void 0 : (C = l.props).onKeyDown) === null || P === void 0 || P.call(C, c)), K(c);
|
|
271
271
|
}
|
|
272
272
|
})));
|
|
273
|
-
}),
|
|
274
|
-
|
|
275
|
-
process.env.NODE_ENV !== "production" && (
|
|
273
|
+
}), I = ve;
|
|
274
|
+
I._InternalPanelDoNotUseOrYouWillBeFired = ue;
|
|
275
|
+
process.env.NODE_ENV !== "production" && (I.displayName = "Popover");
|
|
276
276
|
export {
|
|
277
|
-
|
|
277
|
+
I as P,
|
|
278
278
|
ue as a,
|
|
279
279
|
h as g
|
|
280
280
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import Re, { Component as ke } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { flushSync as
|
|
3
|
+
import { bA as wt, cP as re, cR as z, as as W, aH as Ge, ci as Ke, aJ as Je, bn as L, cj as T, aI as Ye, bk as $t, a5 as H, b4 as ce, ak as yt, bj as Et, bi as Ct, ac as V, ae as Ze, af as Qe, bS as Ae, cL as St, cY as _e, a6 as Ot, a7 as Ft, ad as It, b3 as Ee, a8 as Le, az as et, a9 as Dt, aN as Nt, aO as Rt, an as qe, B as He, b7 as Ve, aj as Pt, aP as Lt, bm as jt, ah as xt, b5 as Ut, b6 as Mt } from "./embed-CoEyJMJx.js";
|
|
4
|
+
import { flushSync as Be } from "react-dom";
|
|
5
5
|
import { g as Tt } from "./collapse-Dtpt-6W_.js";
|
|
6
|
-
import { R as zt } from "./DeleteOutlined-
|
|
7
|
-
import { R as At } from "./EyeOutlined-
|
|
8
|
-
import { P as _t } from "./progress-
|
|
9
|
-
import { T as qt } from "./index-
|
|
10
|
-
import { u as Ht } from "./useBreakpoint-
|
|
6
|
+
import { R as zt } from "./DeleteOutlined-CtmAIIV3.js";
|
|
7
|
+
import { R as At } from "./EyeOutlined-WKo_SfEi.js";
|
|
8
|
+
import { P as _t } from "./progress-COKT887h.js";
|
|
9
|
+
import { T as qt } from "./index-CkrD_v5E.js";
|
|
10
|
+
import { u as Ht } from "./useBreakpoint-SG_cMfLJ.js";
|
|
11
11
|
const Fe = (function(e, r) {
|
|
12
12
|
if (e && r) {
|
|
13
13
|
var i = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = e.type || "", t = a.replace(/\/.*$/, "");
|
|
@@ -26,7 +26,7 @@ const Fe = (function(e, r) {
|
|
|
26
26
|
}
|
|
27
27
|
return !0;
|
|
28
28
|
});
|
|
29
|
-
function
|
|
29
|
+
function Vt(e, r) {
|
|
30
30
|
var i = "cannot ".concat(e.method, " ").concat(e.action, " ").concat(r.status, "'"), n = new Error(i);
|
|
31
31
|
return n.status = r.status, n.method = e.method, n.url = e.action, n;
|
|
32
32
|
}
|
|
@@ -58,7 +58,7 @@ function We(e) {
|
|
|
58
58
|
}), e.file instanceof Blob ? i.append(e.filename, e.file, e.file.name) : i.append(e.filename, e.file), r.onerror = function(t) {
|
|
59
59
|
e.onError(t);
|
|
60
60
|
}, r.onload = function() {
|
|
61
|
-
return r.status < 200 || r.status >= 300 ? e.onError(
|
|
61
|
+
return r.status < 200 || r.status >= 300 ? e.onError(Vt(e, r), Xe(r)) : e.onSuccess(Xe(r), r);
|
|
62
62
|
}, r.open(e.method, e.action, !0), e.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
|
|
63
63
|
var n = e.headers || {};
|
|
64
64
|
return n["X-Requested-With"] !== null && r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), Object.keys(n).forEach(function(a) {
|
|
@@ -69,7 +69,7 @@ function We(e) {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var Bt = /* @__PURE__ */ (function() {
|
|
73
73
|
var e = re(/* @__PURE__ */ z().mark(function r(i, n) {
|
|
74
74
|
var a, t, s, o, p, c, d, m;
|
|
75
75
|
return z().wrap(function(g) {
|
|
@@ -207,14 +207,14 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
207
207
|
Je(this, i);
|
|
208
208
|
for (var a = arguments.length, t = new Array(a), s = 0; s < a; s++)
|
|
209
209
|
t[s] = arguments[s];
|
|
210
|
-
return n = r.call.apply(r, [this].concat(t)),
|
|
210
|
+
return n = r.call.apply(r, [this].concat(t)), L(T(n), "state", {
|
|
211
211
|
uid: Ie()
|
|
212
|
-
}),
|
|
212
|
+
}), L(T(n), "reqs", {}), L(T(n), "fileInput", void 0), L(T(n), "_isMounted", void 0), L(T(n), "onChange", function(o) {
|
|
213
213
|
var p = n.props, c = p.accept, d = p.directory, m = o.target.files, v = W(m).filter(function(g) {
|
|
214
214
|
return !d || Fe(g, c);
|
|
215
215
|
});
|
|
216
216
|
n.uploadFiles(v), n.reset();
|
|
217
|
-
}),
|
|
217
|
+
}), L(T(n), "onClick", function(o) {
|
|
218
218
|
var p = n.fileInput;
|
|
219
219
|
if (p) {
|
|
220
220
|
var c = o.target, d = n.props.onClick;
|
|
@@ -224,9 +224,9 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
224
224
|
}
|
|
225
225
|
p.click(), d && d(o);
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), L(T(n), "onKeyDown", function(o) {
|
|
228
228
|
o.key === "Enter" && n.onClick(o);
|
|
229
|
-
}),
|
|
229
|
+
}), L(T(n), "onDataTransferFiles", /* @__PURE__ */ (function() {
|
|
230
230
|
var o = re(/* @__PURE__ */ z().mark(function p(c, d) {
|
|
231
231
|
var m, v, g, C, S, b, O;
|
|
232
232
|
return z().wrap(function(w) {
|
|
@@ -238,7 +238,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
238
238
|
w.next = 11;
|
|
239
239
|
break;
|
|
240
240
|
}
|
|
241
|
-
return w.next = 7,
|
|
241
|
+
return w.next = 7, Bt(Array.prototype.slice.call(S), function(y) {
|
|
242
242
|
return Fe(y, n.props.accept);
|
|
243
243
|
});
|
|
244
244
|
case 7:
|
|
@@ -257,7 +257,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
257
257
|
return function(p, c) {
|
|
258
258
|
return o.apply(this, arguments);
|
|
259
259
|
};
|
|
260
|
-
})()),
|
|
260
|
+
})()), L(T(n), "onFilePaste", /* @__PURE__ */ (function() {
|
|
261
261
|
var o = re(/* @__PURE__ */ z().mark(function p(c) {
|
|
262
262
|
var d, m;
|
|
263
263
|
return z().wrap(function(g) {
|
|
@@ -285,9 +285,9 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
285
285
|
return function(p) {
|
|
286
286
|
return o.apply(this, arguments);
|
|
287
287
|
};
|
|
288
|
-
})()),
|
|
288
|
+
})()), L(T(n), "onFileDragOver", function(o) {
|
|
289
289
|
o.preventDefault();
|
|
290
|
-
}),
|
|
290
|
+
}), L(T(n), "onFileDrop", /* @__PURE__ */ (function() {
|
|
291
291
|
var o = re(/* @__PURE__ */ z().mark(function p(c) {
|
|
292
292
|
var d;
|
|
293
293
|
return z().wrap(function(v) {
|
|
@@ -307,7 +307,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
307
307
|
return function(p) {
|
|
308
308
|
return o.apply(this, arguments);
|
|
309
309
|
};
|
|
310
|
-
})()),
|
|
310
|
+
})()), L(T(n), "uploadFiles", function(o) {
|
|
311
311
|
var p = W(o), c = p.map(function(d) {
|
|
312
312
|
return d.uid = Ie(), n.processFile(d, p);
|
|
313
313
|
});
|
|
@@ -325,7 +325,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
325
325
|
n.post(v);
|
|
326
326
|
});
|
|
327
327
|
});
|
|
328
|
-
}),
|
|
328
|
+
}), L(T(n), "processFile", /* @__PURE__ */ (function() {
|
|
329
329
|
var o = re(/* @__PURE__ */ z().mark(function p(c, d) {
|
|
330
330
|
var m, v, g, C, S, b, O, E, w;
|
|
331
331
|
return z().wrap(function(u) {
|
|
@@ -394,7 +394,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
394
394
|
return function(p, c) {
|
|
395
395
|
return o.apply(this, arguments);
|
|
396
396
|
};
|
|
397
|
-
})()),
|
|
397
|
+
})()), L(T(n), "saveFileInput", function(o) {
|
|
398
398
|
n.fileInput = o;
|
|
399
399
|
}), n;
|
|
400
400
|
}
|
|
@@ -469,7 +469,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
469
469
|
}, {
|
|
470
470
|
key: "render",
|
|
471
471
|
value: function() {
|
|
472
|
-
var a = this.props, t = a.component, s = a.prefixCls, o = a.className, p = a.classNames, c = p === void 0 ? {} : p, d = a.disabled, m = a.id, v = a.name, g = a.style, C = a.styles, S = C === void 0 ? {} : C, b = a.multiple, O = a.accept, E = a.capture, w = a.children, y = a.directory, u = a.folder, U = a.openFileDialogOnClick, I = a.onMouseEnter, A = a.onMouseLeave,
|
|
472
|
+
var a = this.props, t = a.component, s = a.prefixCls, o = a.className, p = a.classNames, c = p === void 0 ? {} : p, d = a.disabled, m = a.id, v = a.name, g = a.style, C = a.styles, S = C === void 0 ? {} : C, b = a.multiple, O = a.accept, E = a.capture, w = a.children, y = a.directory, u = a.folder, U = a.openFileDialogOnClick, I = a.onMouseEnter, A = a.onMouseLeave, B = a.hasControlInside, q = $t(a, kt), J = H(L(L(L({}, s, !0), "".concat(s, "-disabled"), d), o, o)), Y = y || u ? {
|
|
473
473
|
directory: "directory",
|
|
474
474
|
webkitdirectory: "webkitdirectory"
|
|
475
475
|
} : {}, Z = d ? {} : {
|
|
@@ -481,11 +481,11 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
481
481
|
onMouseLeave: A,
|
|
482
482
|
onDrop: this.onFileDrop,
|
|
483
483
|
onDragOver: this.onFileDragOver,
|
|
484
|
-
tabIndex:
|
|
484
|
+
tabIndex: B ? void 0 : "0"
|
|
485
485
|
};
|
|
486
486
|
return /* @__PURE__ */ Re.createElement(t, ce({}, Z, {
|
|
487
487
|
className: J,
|
|
488
|
-
role:
|
|
488
|
+
role: B ? void 0 : "button",
|
|
489
489
|
style: g
|
|
490
490
|
}), /* @__PURE__ */ Re.createElement("input", ce({}, yt(q, {
|
|
491
491
|
aria: !0,
|
|
@@ -516,7 +516,7 @@ var kt = ["component", "prefixCls", "className", "classNames", "disabled", "id",
|
|
|
516
516
|
})(ke);
|
|
517
517
|
function De() {
|
|
518
518
|
}
|
|
519
|
-
var
|
|
519
|
+
var Pe = /* @__PURE__ */ (function(e) {
|
|
520
520
|
Ge(i, e);
|
|
521
521
|
var r = Ke(i);
|
|
522
522
|
function i() {
|
|
@@ -524,7 +524,7 @@ var Le = /* @__PURE__ */ (function(e) {
|
|
|
524
524
|
Je(this, i);
|
|
525
525
|
for (var a = arguments.length, t = new Array(a), s = 0; s < a; s++)
|
|
526
526
|
t[s] = arguments[s];
|
|
527
|
-
return n = r.call.apply(r, [this].concat(t)),
|
|
527
|
+
return n = r.call.apply(r, [this].concat(t)), L(T(n), "uploader", void 0), L(T(n), "saveUploader", function(o) {
|
|
528
528
|
n.uploader = o;
|
|
529
529
|
}), n;
|
|
530
530
|
}
|
|
@@ -542,7 +542,7 @@ var Le = /* @__PURE__ */ (function(e) {
|
|
|
542
542
|
}
|
|
543
543
|
}]), i;
|
|
544
544
|
})(ke);
|
|
545
|
-
|
|
545
|
+
L(Pe, "defaultProps", {
|
|
546
546
|
component: "span",
|
|
547
547
|
prefixCls: "rc-upload",
|
|
548
548
|
data: {},
|
|
@@ -572,7 +572,7 @@ const Kt = (e) => {
|
|
|
572
572
|
height: "100%",
|
|
573
573
|
textAlign: "center",
|
|
574
574
|
background: e.colorFillAlter,
|
|
575
|
-
border: `${
|
|
575
|
+
border: `${V(e.lineWidth)} dashed ${e.colorBorder}`,
|
|
576
576
|
borderRadius: e.borderRadiusLG,
|
|
577
577
|
cursor: "pointer",
|
|
578
578
|
transition: `border-color ${e.motionDurationSlow}`,
|
|
@@ -586,7 +586,7 @@ const Kt = (e) => {
|
|
|
586
586
|
outline: "none",
|
|
587
587
|
borderRadius: e.borderRadiusLG,
|
|
588
588
|
"&:focus-visible": {
|
|
589
|
-
outline: `${
|
|
589
|
+
outline: `${V(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
592
|
[`${r}-drag-container`]: {
|
|
@@ -607,7 +607,7 @@ const Kt = (e) => {
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
[`p${r}-text`]: {
|
|
610
|
-
margin: `0 0 ${
|
|
610
|
+
margin: `0 0 ${V(e.marginXXS)}`,
|
|
611
611
|
color: e.colorTextHeading,
|
|
612
612
|
fontSize: e.fontSizeLG
|
|
613
613
|
},
|
|
@@ -652,7 +652,7 @@ const Kt = (e) => {
|
|
|
652
652
|
backgroundColor: e.controlItemBgHover
|
|
653
653
|
},
|
|
654
654
|
[`${s}-name`]: Object.assign(Object.assign({}, Qe), {
|
|
655
|
-
padding: `0 ${
|
|
655
|
+
padding: `0 ${V(e.paddingXS)}`,
|
|
656
656
|
lineHeight: a,
|
|
657
657
|
flex: "auto",
|
|
658
658
|
transition: `all ${e.motionDurationSlow}`
|
|
@@ -777,7 +777,7 @@ const Kt = (e) => {
|
|
|
777
777
|
position: "relative",
|
|
778
778
|
height: t(n).add(t(e.lineWidth).mul(2)).add(t(e.paddingXS).mul(2)).equal(),
|
|
779
779
|
padding: e.paddingXS,
|
|
780
|
-
border: `${
|
|
780
|
+
border: `${V(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
781
781
|
borderRadius: e.borderRadiusLG,
|
|
782
782
|
"&:hover": {
|
|
783
783
|
background: "transparent"
|
|
@@ -785,7 +785,7 @@ const Kt = (e) => {
|
|
|
785
785
|
[`${o}-thumbnail`]: Object.assign(Object.assign({}, Qe), {
|
|
786
786
|
width: n,
|
|
787
787
|
height: n,
|
|
788
|
-
lineHeight:
|
|
788
|
+
lineHeight: V(t(n).add(e.paddingSM).equal()),
|
|
789
789
|
textAlign: "center",
|
|
790
790
|
flex: "none",
|
|
791
791
|
[i]: {
|
|
@@ -801,7 +801,7 @@ const Kt = (e) => {
|
|
|
801
801
|
}),
|
|
802
802
|
[`${o}-progress`]: {
|
|
803
803
|
bottom: a,
|
|
804
|
-
width: `calc(100% - ${
|
|
804
|
+
width: `calc(100% - ${V(t(e.paddingSM).mul(2).equal())})`,
|
|
805
805
|
marginTop: 0,
|
|
806
806
|
paddingInlineStart: t(n).add(e.paddingXS).equal()
|
|
807
807
|
}
|
|
@@ -852,7 +852,7 @@ const Kt = (e) => {
|
|
|
852
852
|
textAlign: "center",
|
|
853
853
|
verticalAlign: "top",
|
|
854
854
|
backgroundColor: e.colorFillAlter,
|
|
855
|
-
border: `${
|
|
855
|
+
border: `${V(e.lineWidth)} dashed ${e.colorBorder}`,
|
|
856
856
|
borderRadius: e.borderRadiusLG,
|
|
857
857
|
cursor: "pointer",
|
|
858
858
|
transition: `border-color ${e.motionDurationSlow}`,
|
|
@@ -898,8 +898,8 @@ const Kt = (e) => {
|
|
|
898
898
|
"&::before": {
|
|
899
899
|
position: "absolute",
|
|
900
900
|
zIndex: 1,
|
|
901
|
-
width: `calc(100% - ${
|
|
902
|
-
height: `calc(100% - ${
|
|
901
|
+
width: `calc(100% - ${V(t(e.paddingXS).mul(2).equal())})`,
|
|
902
|
+
height: `calc(100% - ${V(t(e.paddingXS).mul(2).equal())})`,
|
|
903
903
|
backgroundColor: e.colorBgMask,
|
|
904
904
|
opacity: 0,
|
|
905
905
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -927,7 +927,7 @@ const Kt = (e) => {
|
|
|
927
927
|
`]: {
|
|
928
928
|
zIndex: 10,
|
|
929
929
|
width: n,
|
|
930
|
-
margin: `0 ${
|
|
930
|
+
margin: `0 ${V(e.marginXXS)}`,
|
|
931
931
|
fontSize: n,
|
|
932
932
|
cursor: "pointer",
|
|
933
933
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -955,7 +955,7 @@ const Kt = (e) => {
|
|
|
955
955
|
position: "absolute",
|
|
956
956
|
bottom: e.margin,
|
|
957
957
|
display: "block",
|
|
958
|
-
width: `calc(100% - ${
|
|
958
|
+
width: `calc(100% - ${V(t(e.paddingXS).mul(2).equal())})`
|
|
959
959
|
},
|
|
960
960
|
[`${o}-uploading`]: {
|
|
961
961
|
[`&${o}`]: {
|
|
@@ -967,7 +967,7 @@ const Kt = (e) => {
|
|
|
967
967
|
},
|
|
968
968
|
[`${o}-progress`]: {
|
|
969
969
|
bottom: e.marginXL,
|
|
970
|
-
width: `calc(100% - ${
|
|
970
|
+
width: `calc(100% - ${V(t(e.paddingXS).mul(2).equal())})`,
|
|
971
971
|
paddingInlineStart: 0
|
|
972
972
|
}
|
|
973
973
|
}
|
|
@@ -1154,11 +1154,11 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1154
1154
|
}, U) => {
|
|
1155
1155
|
var I, A;
|
|
1156
1156
|
const {
|
|
1157
|
-
status:
|
|
1158
|
-
} = t, [q, J] = l.useState(
|
|
1157
|
+
status: B
|
|
1158
|
+
} = t, [q, J] = l.useState(B);
|
|
1159
1159
|
l.useEffect(() => {
|
|
1160
|
-
|
|
1161
|
-
}, [
|
|
1160
|
+
B !== "removed" && J(B);
|
|
1161
|
+
}, [B]);
|
|
1162
1162
|
const [Y, Z] = l.useState(!1);
|
|
1163
1163
|
l.useEffect(() => {
|
|
1164
1164
|
const j = setTimeout(() => {
|
|
@@ -1205,12 +1205,12 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1205
1205
|
// acceptUploadDisabled is true, only remove icon will follow Upload disabled prop
|
|
1206
1206
|
// https://github.com/ant-design/ant-design/issues/46171
|
|
1207
1207
|
!0
|
|
1208
|
-
) : null,
|
|
1208
|
+
) : null, P = (typeof C == "function" ? C(t) : C) && q === "done" ? c((typeof O == "function" ? O(t) : O) || /* @__PURE__ */ l.createElement(it, null), () => y(t), e, n.downloadFile) : null, ge = a !== "picture-card" && a !== "picture-circle" && /* @__PURE__ */ l.createElement("span", {
|
|
1209
1209
|
key: "download-delete",
|
|
1210
1210
|
className: H(`${e}-list-item-actions`, {
|
|
1211
1211
|
picture: a === "picture"
|
|
1212
1212
|
})
|
|
1213
|
-
},
|
|
1213
|
+
}, P, G), de = typeof E == "function" ? E(t) : E, ne = de && /* @__PURE__ */ l.createElement("span", {
|
|
1214
1214
|
className: `${e}-list-item-extra`
|
|
1215
1215
|
}, de), h = H(`${e}-list-item-name`), R = t.url ? /* @__PURE__ */ l.createElement("a", Object.assign({
|
|
1216
1216
|
key: "view",
|
|
@@ -1234,9 +1234,9 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1234
1234
|
title: n.previewFile
|
|
1235
1235
|
}, typeof S == "function" ? S(t) : S || /* @__PURE__ */ l.createElement(At, null)) : null, K = (a === "picture-card" || a === "picture-circle") && q !== "uploading" && /* @__PURE__ */ l.createElement("span", {
|
|
1236
1236
|
className: `${e}-list-item-actions`
|
|
1237
|
-
}, M, q === "done" &&
|
|
1237
|
+
}, M, q === "done" && P, G), {
|
|
1238
1238
|
getPrefixCls: ue
|
|
1239
|
-
} = l.useContext(
|
|
1239
|
+
} = l.useContext(Le), ae = ue(), ie = /* @__PURE__ */ l.createElement("div", {
|
|
1240
1240
|
className: fe
|
|
1241
1241
|
}, k, R, ge, K, Y && /* @__PURE__ */ l.createElement(et, {
|
|
1242
1242
|
motionName: `${ae}-fade`,
|
|
@@ -1294,7 +1294,7 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1294
1294
|
appendActionVisible: u = !0,
|
|
1295
1295
|
itemRender: U,
|
|
1296
1296
|
disabled: I
|
|
1297
|
-
} = e, [, A] = Ht(), [
|
|
1297
|
+
} = e, [, A] = Ht(), [B, q] = l.useState(!1), J = ["picture-card", "picture-circle"].includes(i);
|
|
1298
1298
|
l.useEffect(() => {
|
|
1299
1299
|
i.startsWith("picture") && (m || []).forEach((h) => {
|
|
1300
1300
|
!(h.originFileObj instanceof File || h.originFileObj instanceof Blob) || h.thumbUrl !== void 0 || (h.thumbUrl = "", n == null || n(h.originFileObj).then((R) => {
|
|
@@ -1316,10 +1316,10 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1316
1316
|
return p(h, i);
|
|
1317
1317
|
const R = h.status === "uploading";
|
|
1318
1318
|
if (i.startsWith("picture")) {
|
|
1319
|
-
const M = i === "picture" ? /* @__PURE__ */ l.createElement(
|
|
1319
|
+
const M = i === "picture" ? /* @__PURE__ */ l.createElement(Ve, null) : o.uploading, K = c != null && c(h) ? /* @__PURE__ */ l.createElement(nt, null) : /* @__PURE__ */ l.createElement(tt, null);
|
|
1320
1320
|
return R ? M : K;
|
|
1321
1321
|
}
|
|
1322
|
-
return R ? /* @__PURE__ */ l.createElement(
|
|
1322
|
+
return R ? /* @__PURE__ */ l.createElement(Ve, null) : /* @__PURE__ */ l.createElement(rt, null);
|
|
1323
1323
|
}, fe = (h, R, M, K, ue) => {
|
|
1324
1324
|
const ae = {
|
|
1325
1325
|
type: "text",
|
|
@@ -1345,14 +1345,14 @@ const hr = /* @__PURE__ */ l.forwardRef(({
|
|
|
1345
1345
|
}));
|
|
1346
1346
|
const {
|
|
1347
1347
|
getPrefixCls: X
|
|
1348
|
-
} = l.useContext(
|
|
1348
|
+
} = l.useContext(Le), G = X("upload", d), P = X(), ge = H(`${G}-list`, `${G}-list-${i}`), de = l.useMemo(() => Dt(Nt(P), ["onAppearEnd", "onEnterEnd", "onLeaveEnd"]), [P]), ne = Object.assign(Object.assign({}, J ? {} : de), {
|
|
1349
1349
|
motionDeadline: 2e3,
|
|
1350
1350
|
motionName: `${G}-${J ? "animate-inline" : "animate"}`,
|
|
1351
1351
|
keys: W(m.map((h) => ({
|
|
1352
1352
|
key: h.uid,
|
|
1353
1353
|
file: h
|
|
1354
1354
|
}))),
|
|
1355
|
-
motionAppear:
|
|
1355
|
+
motionAppear: B
|
|
1356
1356
|
});
|
|
1357
1357
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1358
1358
|
className: ge
|
|
@@ -1430,7 +1430,7 @@ var br = function(e, r, i, n) {
|
|
|
1430
1430
|
});
|
|
1431
1431
|
};
|
|
1432
1432
|
const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
1433
|
-
const i =
|
|
1433
|
+
const i = Pt("upload"), {
|
|
1434
1434
|
fileList: n,
|
|
1435
1435
|
defaultFileList: a,
|
|
1436
1436
|
onRemove: t,
|
|
@@ -1453,14 +1453,14 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1453
1453
|
style: U,
|
|
1454
1454
|
itemRender: I,
|
|
1455
1455
|
maxCount: A,
|
|
1456
|
-
data:
|
|
1456
|
+
data: B = {},
|
|
1457
1457
|
multiple: q = !1,
|
|
1458
1458
|
hasControlInside: J = !0,
|
|
1459
1459
|
action: Y = "",
|
|
1460
1460
|
accept: Z = "",
|
|
1461
1461
|
supportServerRender: Q = !0,
|
|
1462
1462
|
rootClassName: k
|
|
1463
|
-
} = e, fe = l.useContext(
|
|
1463
|
+
} = e, fe = l.useContext(Lt), X = g ?? fe, G = e.customRequest || i.customRequest, [P, ge] = jt(a || [], {
|
|
1464
1464
|
value: n,
|
|
1465
1465
|
postState: (f) => f ?? []
|
|
1466
1466
|
}), [de, ne] = l.useState("drop"), h = l.useRef(null), R = l.useRef(null);
|
|
@@ -1476,7 +1476,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1476
1476
|
}, [n]);
|
|
1477
1477
|
const M = (f, F, N) => {
|
|
1478
1478
|
let $ = W(F), D = !1;
|
|
1479
|
-
A === 1 ? $ = $.slice(-1) : A && (D = $.length > A, $ = $.slice(0, A)),
|
|
1479
|
+
A === 1 ? $ = $.slice(-1) : A && (D = $.length > A, $ = $.slice(0, A)), Be(() => {
|
|
1480
1480
|
ge($);
|
|
1481
1481
|
});
|
|
1482
1482
|
const _ = {
|
|
@@ -1484,7 +1484,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1484
1484
|
fileList: $
|
|
1485
1485
|
};
|
|
1486
1486
|
N && (_.event = N), (!D || f.status === "removed" || // We should ignore event if current file is exceed `maxCount`
|
|
1487
|
-
$.some((se) => se.uid === f.uid)) &&
|
|
1487
|
+
$.some((se) => se.uid === f.uid)) && Be(() => {
|
|
1488
1488
|
d == null || d(_);
|
|
1489
1489
|
});
|
|
1490
1490
|
}, K = (f, F) => br(void 0, void 0, void 0, function* () {
|
|
@@ -1510,7 +1510,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1510
1510
|
if (!F.length)
|
|
1511
1511
|
return;
|
|
1512
1512
|
const N = F.map((D) => $e(D.file));
|
|
1513
|
-
let $ = W(
|
|
1513
|
+
let $ = W(P);
|
|
1514
1514
|
N.forEach((D) => {
|
|
1515
1515
|
$ = ye(D, $);
|
|
1516
1516
|
}), N.forEach((D, _) => {
|
|
@@ -1540,25 +1540,25 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1540
1540
|
typeof f == "string" && (f = JSON.parse(f));
|
|
1541
1541
|
} catch {
|
|
1542
1542
|
}
|
|
1543
|
-
if (!Ne(F,
|
|
1543
|
+
if (!Ne(F, P))
|
|
1544
1544
|
return;
|
|
1545
1545
|
const $ = $e(F);
|
|
1546
1546
|
$.status = "done", $.percent = 100, $.response = f, $.xhr = N;
|
|
1547
|
-
const D = ye($,
|
|
1547
|
+
const D = ye($, P);
|
|
1548
1548
|
M($, D);
|
|
1549
1549
|
}, ie = (f, F) => {
|
|
1550
|
-
if (!Ne(F,
|
|
1550
|
+
if (!Ne(F, P))
|
|
1551
1551
|
return;
|
|
1552
1552
|
const N = $e(F);
|
|
1553
1553
|
N.status = "uploading", N.percent = f.percent;
|
|
1554
|
-
const $ = ye(N,
|
|
1554
|
+
const $ = ye(N, P);
|
|
1555
1555
|
M(N, $, f);
|
|
1556
1556
|
}, oe = (f, F, N) => {
|
|
1557
|
-
if (!Ne(N,
|
|
1557
|
+
if (!Ne(N, P))
|
|
1558
1558
|
return;
|
|
1559
1559
|
const $ = $e(N);
|
|
1560
1560
|
$.error = f, $.response = F, $.status = "error";
|
|
1561
|
-
const D = ye($,
|
|
1561
|
+
const D = ye($, P);
|
|
1562
1562
|
M($, D);
|
|
1563
1563
|
}, ee = (f) => {
|
|
1564
1564
|
let F;
|
|
@@ -1566,10 +1566,10 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1566
1566
|
var $;
|
|
1567
1567
|
if (N === !1)
|
|
1568
1568
|
return;
|
|
1569
|
-
const D = dr(f,
|
|
1569
|
+
const D = dr(f, P);
|
|
1570
1570
|
D && (F = Object.assign(Object.assign({}, f), {
|
|
1571
1571
|
status: "removed"
|
|
1572
|
-
}),
|
|
1572
|
+
}), P == null || P.forEach((_) => {
|
|
1573
1573
|
const se = F.uid !== void 0 ? "uid" : "name";
|
|
1574
1574
|
_[se] === F[se] && !Object.isFrozen(_) && (_.status = "removed");
|
|
1575
1575
|
}), ($ = h.current) === null || $ === void 0 || $.abort(F), M(F, D));
|
|
@@ -1582,7 +1582,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1582
1582
|
onSuccess: ae,
|
|
1583
1583
|
onProgress: ie,
|
|
1584
1584
|
onError: oe,
|
|
1585
|
-
fileList:
|
|
1585
|
+
fileList: P,
|
|
1586
1586
|
upload: h.current,
|
|
1587
1587
|
nativeElement: R.current
|
|
1588
1588
|
}));
|
|
@@ -1590,14 +1590,14 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1590
1590
|
getPrefixCls: he,
|
|
1591
1591
|
direction: we,
|
|
1592
1592
|
upload: pe
|
|
1593
|
-
} = l.useContext(
|
|
1593
|
+
} = l.useContext(Le), x = he("upload", E), ve = Object.assign(Object.assign({
|
|
1594
1594
|
onBatchStart: ue,
|
|
1595
1595
|
onError: oe,
|
|
1596
1596
|
onProgress: ie,
|
|
1597
1597
|
onSuccess: ae
|
|
1598
1598
|
}, e), {
|
|
1599
1599
|
customRequest: G,
|
|
1600
|
-
data:
|
|
1600
|
+
data: B,
|
|
1601
1601
|
multiple: q,
|
|
1602
1602
|
action: Y,
|
|
1603
1603
|
accept: Z,
|
|
@@ -1620,7 +1620,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1620
1620
|
} = typeof s == "boolean" ? {} : s, vt = typeof Me > "u" ? !X : Me, Se = (f, F) => s ? /* @__PURE__ */ l.createElement(ot, {
|
|
1621
1621
|
prefixCls: x,
|
|
1622
1622
|
listType: o,
|
|
1623
|
-
items:
|
|
1623
|
+
items: P,
|
|
1624
1624
|
previewFile: v,
|
|
1625
1625
|
onPreview: p,
|
|
1626
1626
|
onDownload: c,
|
|
@@ -1647,7 +1647,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1647
1647
|
}), Te = Object.assign(Object.assign({}, pe == null ? void 0 : pe.style), U);
|
|
1648
1648
|
if (y === "drag") {
|
|
1649
1649
|
const f = H(Ue, x, `${x}-drag`, {
|
|
1650
|
-
[`${x}-drag-uploading`]:
|
|
1650
|
+
[`${x}-drag-uploading`]: P.some((F) => F.status === "uploading"),
|
|
1651
1651
|
[`${x}-drag-hover`]: de === "dragover",
|
|
1652
1652
|
[`${x}-disabled`]: X,
|
|
1653
1653
|
[`${x}-rtl`]: we === "rtl"
|
|
@@ -1661,7 +1661,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1661
1661
|
onDrop: j,
|
|
1662
1662
|
onDragOver: j,
|
|
1663
1663
|
onDragLeave: j
|
|
1664
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1664
|
+
}, /* @__PURE__ */ l.createElement(Pe, Object.assign({}, ve, {
|
|
1665
1665
|
ref: h,
|
|
1666
1666
|
className: `${x}-btn`
|
|
1667
1667
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
@@ -1674,7 +1674,7 @@ const be = `__LIST_IGNORE_${Date.now()}__`, wr = (e, r) => {
|
|
|
1674
1674
|
}), ze = /* @__PURE__ */ l.createElement("div", {
|
|
1675
1675
|
className: bt,
|
|
1676
1676
|
style: Te
|
|
1677
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1677
|
+
}, /* @__PURE__ */ l.createElement(Pe, Object.assign({}, ve, {
|
|
1678
1678
|
ref: h
|
|
1679
1679
|
})));
|
|
1680
1680
|
return Ce(o === "picture-card" || o === "picture-circle" ? /* @__PURE__ */ l.createElement("span", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o, Fragment as L } from "react/jsx-runtime";
|
|
2
2
|
import { useState as w, useEffect as R, useMemo as m, useCallback as x } from "react";
|
|
3
|
-
import { A as D } from "./index-
|
|
4
|
-
import { u as U, a as H, I as p, f as Y, M as j, m as $, b as T, c as F, d as W, H as K } from "./embed-
|
|
3
|
+
import { A as D } from "./index-CFMm6EBU.js";
|
|
4
|
+
import { u as U, a as H, I as p, f as Y, M as j, m as $, b as T, c as F, d as W, H as K } from "./embed-CoEyJMJx.js";
|
|
5
5
|
const q = [
|
|
6
6
|
{
|
|
7
7
|
key: "overview",
|