@yuku123/z-cognition-component 2.0.3 → 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-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
- package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
- package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
- package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
- package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
- package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
- package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
- package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
- package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
- package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
- package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
- package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
- package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
- package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
- package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
- package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
- package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
- package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
- package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
- package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
- package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
- package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
- package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
- package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
- package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
- package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
- package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
- package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
- package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
- package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a6 as Ke, aK as Fe, a7 as Ge, ad as _e, ac as ne, aL as be, aM as he, aN as Ee, as as H, az as Ue, a5 as G, aO as Ye, ah as ue, aP as Qe, aj as ke, ai as Ze, aQ as Je, aR as et, aS as tt, aT as nt, aU as je, aV as U, aW as rt, aX as ot, aY as at, aZ as ce, am as Se, a_ as lt, aA as st, a$ as it, b0 as Oe, b1 as ct, b2 as Pe, b3 as mt, b4 as ut, b5 as dt, b6 as ft, b7 as pt, aD as gt, aC as bt, aF as ht, b8 as yt, a9 as vt, b9 as Me, a8 as Ve, ba as Ct, bb as xt, bc as $t, bd as Et, be as St, an as Ot, bf as It, bg as wt, bh as Nt } from "./embed-CoEyJMJx.js";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { isValidElement as Ft } from "react";
|
|
4
4
|
import { g as _t } from "./collapse-Dtpt-6W_.js";
|
|
5
|
-
import { u as Re, g as
|
|
6
|
-
import { C as
|
|
7
|
-
import { T as Mt } from "./index-
|
|
5
|
+
import { u as Re, g as De, t as pe, a as jt } from "./useForm-Cp45oXOc.js";
|
|
6
|
+
import { C as Le, R as Pt } from "./row-BFBgIphS.js";
|
|
7
|
+
import { T as Mt } from "./index-CkrD_v5E.js";
|
|
8
8
|
function Vt(e) {
|
|
9
9
|
return e == null ? null : typeof e == "object" && !/* @__PURE__ */ Ft(e) ? e : {
|
|
10
10
|
title: e
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function me(e) {
|
|
14
14
|
const [t, r] = o.useState(e);
|
|
15
15
|
return o.useEffect(() => {
|
|
16
16
|
const n = setTimeout(() => {
|
|
@@ -61,7 +61,7 @@ const Rt = (e) => {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, Dt = (e) => ({
|
|
65
65
|
legend: {
|
|
66
66
|
display: "block",
|
|
67
67
|
width: "100%",
|
|
@@ -119,12 +119,12 @@ const Rt = (e) => {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
},
|
|
122
|
+
}, Lt = (e) => {
|
|
123
123
|
const {
|
|
124
124
|
componentCls: t
|
|
125
125
|
} = e;
|
|
126
126
|
return {
|
|
127
|
-
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, _e(e)),
|
|
127
|
+
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, _e(e)), Dt(e)), {
|
|
128
128
|
[`${t}-text`]: {
|
|
129
129
|
display: "inline-block",
|
|
130
130
|
paddingInlineEnd: e.paddingSM
|
|
@@ -143,10 +143,10 @@ const Rt = (e) => {
|
|
|
143
143
|
rootPrefixCls: n,
|
|
144
144
|
antCls: a,
|
|
145
145
|
labelRequiredMarkColor: c,
|
|
146
|
-
labelColor:
|
|
146
|
+
labelColor: u,
|
|
147
147
|
labelFontSize: s,
|
|
148
148
|
labelHeight: f,
|
|
149
|
-
labelColonMarginInlineStart:
|
|
149
|
+
labelColonMarginInlineStart: m,
|
|
150
150
|
labelColonMarginInlineEnd: g,
|
|
151
151
|
itemMarginBottom: d
|
|
152
152
|
} = e;
|
|
@@ -199,7 +199,7 @@ const Rt = (e) => {
|
|
|
199
199
|
alignItems: "center",
|
|
200
200
|
maxWidth: "100%",
|
|
201
201
|
height: f,
|
|
202
|
-
color:
|
|
202
|
+
color: u,
|
|
203
203
|
fontSize: s,
|
|
204
204
|
[`> ${r}`]: {
|
|
205
205
|
fontSize: e.fontSize,
|
|
@@ -241,7 +241,7 @@ const Rt = (e) => {
|
|
|
241
241
|
content: '":"',
|
|
242
242
|
position: "relative",
|
|
243
243
|
marginBlock: 0,
|
|
244
|
-
marginInlineStart:
|
|
244
|
+
marginInlineStart: m,
|
|
245
245
|
marginInlineEnd: g
|
|
246
246
|
},
|
|
247
247
|
[`&${t}-no-colon::after`]: {
|
|
@@ -378,7 +378,7 @@ const Rt = (e) => {
|
|
|
378
378
|
${t}-col-xl-24${r}-label`]: te(e)
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
},
|
|
381
|
+
}, At = (e) => {
|
|
382
382
|
const {
|
|
383
383
|
componentCls: t,
|
|
384
384
|
formItemCls: r,
|
|
@@ -412,7 +412,7 @@ const Rt = (e) => {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
},
|
|
415
|
+
}, qt = (e) => {
|
|
416
416
|
const {
|
|
417
417
|
componentCls: t,
|
|
418
418
|
formItemCls: r,
|
|
@@ -457,7 +457,7 @@ const Rt = (e) => {
|
|
|
457
457
|
${n}-col-24${r}-label,
|
|
458
458
|
${n}-col-xl-24${r}-label`]: te(e)
|
|
459
459
|
},
|
|
460
|
-
[`@media (max-width: ${ne(e.screenXSMax)})`]: [
|
|
460
|
+
[`@media (max-width: ${ne(e.screenXSMax)})`]: [qt(e), {
|
|
461
461
|
[t]: {
|
|
462
462
|
[`${r}:not(${r}-horizontal)`]: {
|
|
463
463
|
[`${n}-col-xs-24${r}-label`]: te(e)
|
|
@@ -497,14 +497,14 @@ const Rt = (e) => {
|
|
|
497
497
|
verticalLabelPadding: `0 0 ${e.paddingXS}px`,
|
|
498
498
|
verticalLabelMargin: 0,
|
|
499
499
|
inlineItemMarginBottom: 0
|
|
500
|
-
}), Te = (e, t) =>
|
|
500
|
+
}), Te = (e, t) => Ge(e, {
|
|
501
501
|
formItemCls: `${e.componentCls}-item`,
|
|
502
502
|
rootPrefixCls: t
|
|
503
|
-
}), ye =
|
|
503
|
+
}), ye = Ke("Form", (e, {
|
|
504
504
|
rootPrefixCls: t
|
|
505
505
|
}) => {
|
|
506
506
|
const r = Te(e, t);
|
|
507
|
-
return [
|
|
507
|
+
return [Lt(r), Tt(r), Rt(r), zt(r), At(r), Ht(r), _t(r), Fe];
|
|
508
508
|
}, Wt, {
|
|
509
509
|
// Let From style before the Grid
|
|
510
510
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
@@ -524,11 +524,11 @@ const ze = ({
|
|
|
524
524
|
warnings: n = we,
|
|
525
525
|
className: a,
|
|
526
526
|
fieldId: c,
|
|
527
|
-
onVisibleChanged:
|
|
527
|
+
onVisibleChanged: u
|
|
528
528
|
}) => {
|
|
529
529
|
const {
|
|
530
530
|
prefixCls: s
|
|
531
|
-
} = o.useContext(be), f = `${s}-item-explain`,
|
|
531
|
+
} = o.useContext(be), f = `${s}-item-explain`, m = he(s), [g, d, F] = ye(s, m), R = o.useMemo(() => Ee(s), [s]), _ = me(r), v = me(n), b = o.useMemo(() => e != null ? [ge(e, "help", t)] : [].concat(H(_.map((i, l) => ge(i, "error", "error", l))), H(v.map((i, l) => ge(i, "warning", "warning", l)))), [e, t, _, v]), P = o.useMemo(() => {
|
|
532
532
|
const i = {};
|
|
533
533
|
return b.forEach(({
|
|
534
534
|
key: l
|
|
@@ -542,14 +542,14 @@ const ze = ({
|
|
|
542
542
|
motionDeadline: R.motionDeadline,
|
|
543
543
|
motionName: `${s}-show-help`,
|
|
544
544
|
visible: !!P.length,
|
|
545
|
-
onVisibleChanged:
|
|
545
|
+
onVisibleChanged: u
|
|
546
546
|
}, (i) => {
|
|
547
547
|
const {
|
|
548
548
|
className: l,
|
|
549
549
|
style: $
|
|
550
550
|
} = i;
|
|
551
551
|
return /* @__PURE__ */ o.createElement("div", Object.assign({}, w, {
|
|
552
|
-
className:
|
|
552
|
+
className: G(f, l, F, m, a, d),
|
|
553
553
|
style: $
|
|
554
554
|
}), /* @__PURE__ */ o.createElement(Ye, Object.assign({
|
|
555
555
|
keys: P
|
|
@@ -566,7 +566,7 @@ const ze = ({
|
|
|
566
566
|
} = M;
|
|
567
567
|
return /* @__PURE__ */ o.createElement("div", {
|
|
568
568
|
key: C,
|
|
569
|
-
className:
|
|
569
|
+
className: G(O, {
|
|
570
570
|
[`${f}-${h}`]: h
|
|
571
571
|
}),
|
|
572
572
|
style: I
|
|
@@ -577,7 +577,7 @@ const ze = ({
|
|
|
577
577
|
function Bt({
|
|
578
578
|
name: e
|
|
579
579
|
}) {
|
|
580
|
-
const t =
|
|
580
|
+
const t = ue("Form");
|
|
581
581
|
o.useEffect(() => {
|
|
582
582
|
if (e)
|
|
583
583
|
return ie[e] = (ie[e] || 0) + 1, process.env.NODE_ENV !== "production" && t(ie[e] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
|
|
@@ -592,15 +592,15 @@ var Xt = function(e, t) {
|
|
|
592
592
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
593
593
|
return r;
|
|
594
594
|
};
|
|
595
|
-
const
|
|
595
|
+
const Kt = (e, t) => {
|
|
596
596
|
const r = o.useContext(Qe), {
|
|
597
597
|
getPrefixCls: n,
|
|
598
598
|
direction: a,
|
|
599
599
|
requiredMark: c,
|
|
600
|
-
colon:
|
|
600
|
+
colon: u,
|
|
601
601
|
scrollToFirstError: s,
|
|
602
602
|
className: f,
|
|
603
|
-
style:
|
|
603
|
+
style: m
|
|
604
604
|
} = ke("form"), {
|
|
605
605
|
prefixCls: g,
|
|
606
606
|
className: d,
|
|
@@ -620,20 +620,20 @@ const Gt = (e, t) => {
|
|
|
620
620
|
onFinishFailed: h,
|
|
621
621
|
name: O,
|
|
622
622
|
style: I,
|
|
623
|
-
feedbackIcons:
|
|
623
|
+
feedbackIcons: q,
|
|
624
624
|
variant: W
|
|
625
|
-
} = e, E = Xt(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]),
|
|
625
|
+
} = e, E = Xt(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), D = Ze(R), L = o.useContext(Je);
|
|
626
626
|
process.env.NODE_ENV !== "production" && Bt(e);
|
|
627
|
-
const T = o.useMemo(() => S !== void 0 ? S : $ ? !1 : c !== void 0 ? c : !0, [$, S, c]), Y = b ??
|
|
627
|
+
const T = o.useMemo(() => S !== void 0 ? S : $ ? !1 : c !== void 0 ? c : !0, [$, S, c]), Y = b ?? u, p = n("form", g), B = he(p), [z, re, X] = ye(p, B), oe = G(p, `${p}-${M}`, {
|
|
628
628
|
[`${p}-hide-required-mark`]: T === !1,
|
|
629
629
|
// todo: remove in next major version
|
|
630
630
|
[`${p}-rtl`]: a === "rtl",
|
|
631
|
-
[`${p}-${
|
|
631
|
+
[`${p}-${D}`]: D
|
|
632
632
|
}, X, B, re, f, d, F), [Q] = Re(v), {
|
|
633
633
|
__INTERNAL__: ae
|
|
634
634
|
} = Q;
|
|
635
635
|
ae.name = O;
|
|
636
|
-
const
|
|
636
|
+
const Z = o.useMemo(() => ({
|
|
637
637
|
name: O,
|
|
638
638
|
labelAlign: P,
|
|
639
639
|
labelCol: i,
|
|
@@ -644,29 +644,29 @@ const Gt = (e, t) => {
|
|
|
644
644
|
requiredMark: T,
|
|
645
645
|
itemRef: ae.itemRef,
|
|
646
646
|
form: Q,
|
|
647
|
-
feedbackIcons:
|
|
648
|
-
}), [O, P, i, l, M, Y, T, Q,
|
|
647
|
+
feedbackIcons: q
|
|
648
|
+
}), [O, P, i, l, M, Y, T, Q, q]), y = o.useRef(null);
|
|
649
649
|
o.useImperativeHandle(t, () => {
|
|
650
650
|
var x;
|
|
651
651
|
return Object.assign(Object.assign({}, Q), {
|
|
652
652
|
nativeElement: (x = y.current) === null || x === void 0 ? void 0 : x.nativeElement
|
|
653
653
|
});
|
|
654
654
|
});
|
|
655
|
-
const V = (x,
|
|
655
|
+
const V = (x, A) => {
|
|
656
656
|
if (x) {
|
|
657
|
-
let
|
|
657
|
+
let K = {
|
|
658
658
|
block: "nearest"
|
|
659
659
|
};
|
|
660
|
-
typeof x == "object" && (
|
|
660
|
+
typeof x == "object" && (K = Object.assign(Object.assign({}, K), x)), Q.scrollToField(A, K);
|
|
661
661
|
}
|
|
662
662
|
}, j = (x) => {
|
|
663
663
|
if (h == null || h(x), x.errorFields.length) {
|
|
664
|
-
const
|
|
664
|
+
const A = x.errorFields[0].name;
|
|
665
665
|
if (C !== void 0) {
|
|
666
|
-
V(C,
|
|
666
|
+
V(C, A);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
s !== void 0 && V(s,
|
|
669
|
+
s !== void 0 && V(s, A);
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
return z(/* @__PURE__ */ o.createElement(et.Provider, {
|
|
@@ -674,12 +674,12 @@ const Gt = (e, t) => {
|
|
|
674
674
|
}, /* @__PURE__ */ o.createElement(tt, {
|
|
675
675
|
disabled: _
|
|
676
676
|
}, /* @__PURE__ */ o.createElement(nt.Provider, {
|
|
677
|
-
value:
|
|
677
|
+
value: D
|
|
678
678
|
}, /* @__PURE__ */ o.createElement(je, {
|
|
679
679
|
// This is not list in API, we pass with spread
|
|
680
|
-
validateMessages:
|
|
680
|
+
validateMessages: L
|
|
681
681
|
}, /* @__PURE__ */ o.createElement(U.Provider, {
|
|
682
|
-
value:
|
|
682
|
+
value: Z
|
|
683
683
|
}, /* @__PURE__ */ o.createElement(rt, {
|
|
684
684
|
status: !0
|
|
685
685
|
}, /* @__PURE__ */ o.createElement(ot, Object.assign({
|
|
@@ -689,25 +689,25 @@ const Gt = (e, t) => {
|
|
|
689
689
|
onFinishFailed: j,
|
|
690
690
|
form: Q,
|
|
691
691
|
ref: y,
|
|
692
|
-
style: Object.assign(Object.assign({},
|
|
692
|
+
style: Object.assign(Object.assign({}, m), I),
|
|
693
693
|
className: oe
|
|
694
694
|
})))))))));
|
|
695
|
-
},
|
|
696
|
-
process.env.NODE_ENV !== "production" && (
|
|
697
|
-
function
|
|
695
|
+
}, Ae = /* @__PURE__ */ o.forwardRef(Kt);
|
|
696
|
+
process.env.NODE_ENV !== "production" && (Ae.displayName = "Form");
|
|
697
|
+
function Gt(e) {
|
|
698
698
|
if (typeof e == "function")
|
|
699
699
|
return e;
|
|
700
700
|
const t = at(e);
|
|
701
701
|
return t.length <= 1 ? t[0] : t;
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const qe = () => {
|
|
704
704
|
const {
|
|
705
705
|
status: e,
|
|
706
706
|
errors: t = [],
|
|
707
707
|
warnings: r = []
|
|
708
708
|
} = o.useContext(ce);
|
|
709
709
|
if (process.env.NODE_ENV !== "production") {
|
|
710
|
-
const n =
|
|
710
|
+
const n = ue("Form.Item");
|
|
711
711
|
process.env.NODE_ENV !== "production" && n(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
|
|
712
712
|
}
|
|
713
713
|
return {
|
|
@@ -716,31 +716,31 @@ const Ae = () => {
|
|
|
716
716
|
warnings: r
|
|
717
717
|
};
|
|
718
718
|
};
|
|
719
|
-
|
|
719
|
+
qe.Context = ce;
|
|
720
720
|
function Ut(e) {
|
|
721
721
|
const [t, r] = o.useState(e), n = o.useRef(null), a = o.useRef([]), c = o.useRef(!1);
|
|
722
722
|
o.useEffect(() => (c.current = !1, () => {
|
|
723
723
|
c.current = !0, Se.cancel(n.current), n.current = null;
|
|
724
724
|
}), []);
|
|
725
|
-
function
|
|
725
|
+
function u(s) {
|
|
726
726
|
c.current || (n.current === null && (a.current = [], n.current = Se(() => {
|
|
727
727
|
n.current = null, r((f) => {
|
|
728
|
-
let
|
|
728
|
+
let m = f;
|
|
729
729
|
return a.current.forEach((g) => {
|
|
730
|
-
|
|
731
|
-
}),
|
|
730
|
+
m = g(m);
|
|
731
|
+
}), m;
|
|
732
732
|
});
|
|
733
733
|
})), a.current.push(s));
|
|
734
734
|
}
|
|
735
|
-
return [t,
|
|
735
|
+
return [t, u];
|
|
736
736
|
}
|
|
737
737
|
function Yt() {
|
|
738
738
|
const {
|
|
739
739
|
itemRef: e
|
|
740
740
|
} = o.useContext(U), t = o.useRef({});
|
|
741
741
|
function r(n, a) {
|
|
742
|
-
const c = a && typeof a == "object" && lt(a),
|
|
743
|
-
return (t.current.name !==
|
|
742
|
+
const c = a && typeof a == "object" && lt(a), u = n.join("_");
|
|
743
|
+
return (t.current.name !== u || t.current.originRef !== c) && (t.current.name = u, t.current.originRef = c, t.current.ref = st(e(n), c)), t.current.ref;
|
|
744
744
|
}
|
|
745
745
|
return r;
|
|
746
746
|
}
|
|
@@ -762,24 +762,24 @@ const Qt = (e) => {
|
|
|
762
762
|
const r = Te(e, t);
|
|
763
763
|
return Qt(r);
|
|
764
764
|
});
|
|
765
|
-
var
|
|
765
|
+
var Zt = function(e, t) {
|
|
766
766
|
var r = {};
|
|
767
767
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
768
768
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
769
769
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
770
770
|
return r;
|
|
771
771
|
};
|
|
772
|
-
const
|
|
772
|
+
const Jt = 24, en = (e) => {
|
|
773
773
|
const {
|
|
774
774
|
prefixCls: t,
|
|
775
775
|
status: r,
|
|
776
776
|
labelCol: n,
|
|
777
777
|
wrapperCol: a,
|
|
778
778
|
children: c,
|
|
779
|
-
errors:
|
|
779
|
+
errors: u,
|
|
780
780
|
warnings: s,
|
|
781
781
|
_internalItemRender: f,
|
|
782
|
-
extra:
|
|
782
|
+
extra: m,
|
|
783
783
|
help: g,
|
|
784
784
|
fieldId: d,
|
|
785
785
|
marginBottom: F,
|
|
@@ -787,20 +787,20 @@ const Zt = 24, en = (e) => {
|
|
|
787
787
|
label: _
|
|
788
788
|
} = e, v = `${t}-item`, b = o.useContext(U), P = o.useMemo(() => {
|
|
789
789
|
let E = Object.assign({}, a || b.wrapperCol || {});
|
|
790
|
-
return _ === null && !n && !a && b.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((
|
|
791
|
-
const T =
|
|
792
|
-
"span" in p && !("offset" in z) && p.span <
|
|
790
|
+
return _ === null && !n && !a && b.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((L) => {
|
|
791
|
+
const T = L ? [L] : [], Y = Oe(b.labelCol, T), p = typeof Y == "object" ? Y : {}, B = Oe(E, T), z = typeof B == "object" ? B : {};
|
|
792
|
+
"span" in p && !("offset" in z) && p.span < Jt && (E = ct(E, [].concat(T, ["offset"]), p.span));
|
|
793
793
|
}), E;
|
|
794
|
-
}, [a, b.wrapperCol, b.labelCol, _, n]), w =
|
|
794
|
+
}, [a, b.wrapperCol, b.labelCol, _, n]), w = G(`${v}-control`, P.className), i = o.useMemo(() => {
|
|
795
795
|
const {
|
|
796
796
|
labelCol: E,
|
|
797
|
-
wrapperCol:
|
|
797
|
+
wrapperCol: D
|
|
798
798
|
} = b;
|
|
799
|
-
return
|
|
799
|
+
return Zt(b, ["labelCol", "wrapperCol"]);
|
|
800
800
|
}, [b]), l = o.useRef(null), [$, M] = o.useState(0);
|
|
801
801
|
Pe(() => {
|
|
802
|
-
|
|
803
|
-
}, [
|
|
802
|
+
m && l.current ? M(l.current.clientHeight) : M(0);
|
|
803
|
+
}, [m]);
|
|
804
804
|
const C = /* @__PURE__ */ o.createElement("div", {
|
|
805
805
|
className: `${v}-control-input`
|
|
806
806
|
}, /* @__PURE__ */ o.createElement("div", {
|
|
@@ -808,11 +808,11 @@ const Zt = 24, en = (e) => {
|
|
|
808
808
|
}, c)), S = o.useMemo(() => ({
|
|
809
809
|
prefixCls: t,
|
|
810
810
|
status: r
|
|
811
|
-
}), [t, r]), h = F !== null ||
|
|
811
|
+
}), [t, r]), h = F !== null || u.length || s.length ? /* @__PURE__ */ o.createElement(be.Provider, {
|
|
812
812
|
value: S
|
|
813
813
|
}, /* @__PURE__ */ o.createElement(ze, {
|
|
814
814
|
fieldId: d,
|
|
815
|
-
errors:
|
|
815
|
+
errors: u,
|
|
816
816
|
warnings: s,
|
|
817
817
|
help: g,
|
|
818
818
|
helpStatus: r,
|
|
@@ -820,10 +820,10 @@ const Zt = 24, en = (e) => {
|
|
|
820
820
|
onVisibleChanged: R
|
|
821
821
|
})) : null, O = {};
|
|
822
822
|
d && (O.id = `${d}_extra`);
|
|
823
|
-
const I =
|
|
823
|
+
const I = m ? /* @__PURE__ */ o.createElement("div", Object.assign({}, O, {
|
|
824
824
|
className: `${v}-extra`,
|
|
825
825
|
ref: l
|
|
826
|
-
}),
|
|
826
|
+
}), m) : null, q = h || I ? /* @__PURE__ */ o.createElement("div", {
|
|
827
827
|
className: `${v}-additional`,
|
|
828
828
|
style: F ? {
|
|
829
829
|
minHeight: F + $
|
|
@@ -832,17 +832,17 @@ const Zt = 24, en = (e) => {
|
|
|
832
832
|
input: C,
|
|
833
833
|
errorList: h,
|
|
834
834
|
extra: I
|
|
835
|
-
}) : /* @__PURE__ */ o.createElement(o.Fragment, null, C,
|
|
835
|
+
}) : /* @__PURE__ */ o.createElement(o.Fragment, null, C, q);
|
|
836
836
|
return /* @__PURE__ */ o.createElement(U.Provider, {
|
|
837
837
|
value: i
|
|
838
|
-
}, /* @__PURE__ */ o.createElement(
|
|
838
|
+
}, /* @__PURE__ */ o.createElement(Le, Object.assign({}, P, {
|
|
839
839
|
className: w
|
|
840
840
|
}), W), /* @__PURE__ */ o.createElement(kt, {
|
|
841
841
|
prefixCls: t
|
|
842
842
|
}));
|
|
843
843
|
};
|
|
844
844
|
var tn = { 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: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, nn = function(t, r) {
|
|
845
|
-
return /* @__PURE__ */ o.createElement(
|
|
845
|
+
return /* @__PURE__ */ o.createElement(mt, ut({}, t, {
|
|
846
846
|
ref: r,
|
|
847
847
|
icon: tn
|
|
848
848
|
}));
|
|
@@ -862,10 +862,10 @@ const on = ({
|
|
|
862
862
|
labelCol: n,
|
|
863
863
|
labelAlign: a,
|
|
864
864
|
colon: c,
|
|
865
|
-
required:
|
|
865
|
+
required: u,
|
|
866
866
|
requiredMark: s,
|
|
867
867
|
tooltip: f,
|
|
868
|
-
vertical:
|
|
868
|
+
vertical: m
|
|
869
869
|
}) => {
|
|
870
870
|
var g;
|
|
871
871
|
const [d] = dt("Form"), {
|
|
@@ -876,45 +876,45 @@ const on = ({
|
|
|
876
876
|
} = o.useContext(U);
|
|
877
877
|
if (!t)
|
|
878
878
|
return null;
|
|
879
|
-
const b = n || R || {}, P = a || F, w = `${e}-item-label`, i =
|
|
879
|
+
const b = n || R || {}, P = a || F, w = `${e}-item-label`, i = G(w, P === "left" && `${w}-left`, b.className, {
|
|
880
880
|
[`${w}-wrap`]: !!_
|
|
881
881
|
});
|
|
882
882
|
let l = t;
|
|
883
883
|
const $ = c === !0 || v !== !1 && c !== !1;
|
|
884
|
-
$ && !
|
|
884
|
+
$ && !m && typeof t == "string" && t.trim() && (l = t.replace(/[:|:]\s*$/, ""));
|
|
885
885
|
const C = Vt(f);
|
|
886
886
|
if (C) {
|
|
887
887
|
const {
|
|
888
888
|
icon: W = /* @__PURE__ */ o.createElement(He, null)
|
|
889
|
-
} = C, E = rn(C, ["icon"]),
|
|
889
|
+
} = C, E = rn(C, ["icon"]), D = /* @__PURE__ */ o.createElement(Mt, Object.assign({}, E), /* @__PURE__ */ o.cloneElement(W, {
|
|
890
890
|
className: `${e}-item-tooltip`,
|
|
891
891
|
title: "",
|
|
892
|
-
onClick: (
|
|
893
|
-
|
|
892
|
+
onClick: (L) => {
|
|
893
|
+
L.preventDefault();
|
|
894
894
|
},
|
|
895
895
|
tabIndex: null
|
|
896
896
|
}));
|
|
897
|
-
l = /* @__PURE__ */ o.createElement(o.Fragment, null, l,
|
|
897
|
+
l = /* @__PURE__ */ o.createElement(o.Fragment, null, l, D);
|
|
898
898
|
}
|
|
899
899
|
const S = s === "optional", h = typeof s == "function", O = s === !1;
|
|
900
900
|
h ? l = s(l, {
|
|
901
|
-
required: !!
|
|
902
|
-
}) : S && !
|
|
901
|
+
required: !!u
|
|
902
|
+
}) : S && !u && (l = /* @__PURE__ */ o.createElement(o.Fragment, null, l, /* @__PURE__ */ o.createElement("span", {
|
|
903
903
|
className: `${e}-item-optional`,
|
|
904
904
|
title: ""
|
|
905
905
|
}, (d == null ? void 0 : d.optional) || ((g = ft.Form) === null || g === void 0 ? void 0 : g.optional))));
|
|
906
906
|
let I;
|
|
907
907
|
O ? I = "hidden" : (S || h) && (I = "optional");
|
|
908
|
-
const
|
|
909
|
-
[`${e}-item-required`]:
|
|
908
|
+
const q = G({
|
|
909
|
+
[`${e}-item-required`]: u,
|
|
910
910
|
[`${e}-item-required-mark-${I}`]: I,
|
|
911
911
|
[`${e}-item-no-colon`]: !$
|
|
912
912
|
});
|
|
913
|
-
return /* @__PURE__ */ o.createElement(
|
|
913
|
+
return /* @__PURE__ */ o.createElement(Le, Object.assign({}, b, {
|
|
914
914
|
className: i
|
|
915
915
|
}), /* @__PURE__ */ o.createElement("label", {
|
|
916
916
|
htmlFor: r,
|
|
917
|
-
className:
|
|
917
|
+
className: q,
|
|
918
918
|
title: typeof t == "string" ? t : ""
|
|
919
919
|
}, l));
|
|
920
920
|
}, an = {
|
|
@@ -930,13 +930,13 @@ function We({
|
|
|
930
930
|
hasFeedback: n,
|
|
931
931
|
validateStatus: a,
|
|
932
932
|
prefixCls: c,
|
|
933
|
-
meta:
|
|
933
|
+
meta: u,
|
|
934
934
|
noStyle: s,
|
|
935
935
|
name: f
|
|
936
936
|
}) {
|
|
937
|
-
const
|
|
937
|
+
const m = `${c}-item`, {
|
|
938
938
|
feedbackIcons: g
|
|
939
|
-
} = o.useContext(U), d =
|
|
939
|
+
} = o.useContext(U), d = De(t, r, u, null, !!n, a), {
|
|
940
940
|
isFormItemInput: F,
|
|
941
941
|
status: R,
|
|
942
942
|
hasFeedback: _,
|
|
@@ -952,7 +952,7 @@ function We({
|
|
|
952
952
|
warnings: r
|
|
953
953
|
})) === null || w === void 0 ? void 0 : w[d]), C = d ? an[d] : null;
|
|
954
954
|
i = M !== !1 && C ? /* @__PURE__ */ o.createElement("span", {
|
|
955
|
-
className:
|
|
955
|
+
className: G(`${m}-feedback-icon`, `${m}-feedback-icon-${d}`)
|
|
956
956
|
}, M || /* @__PURE__ */ o.createElement(C, null)) : null;
|
|
957
957
|
}
|
|
958
958
|
const l = {
|
|
@@ -984,10 +984,10 @@ function sn(e) {
|
|
|
984
984
|
rootClassName: n,
|
|
985
985
|
style: a,
|
|
986
986
|
help: c,
|
|
987
|
-
errors:
|
|
987
|
+
errors: u,
|
|
988
988
|
warnings: s,
|
|
989
989
|
validateStatus: f,
|
|
990
|
-
meta:
|
|
990
|
+
meta: m,
|
|
991
991
|
hasFeedback: g,
|
|
992
992
|
hidden: d,
|
|
993
993
|
children: F,
|
|
@@ -1000,20 +1000,20 @@ function sn(e) {
|
|
|
1000
1000
|
} = e, i = ln(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]), l = `${t}-item`, {
|
|
1001
1001
|
requiredMark: $,
|
|
1002
1002
|
layout: M
|
|
1003
|
-
} = o.useContext(U), C = P || M, S = C === "vertical", h = o.useRef(null), O =
|
|
1003
|
+
} = o.useContext(U), C = P || M, S = C === "vertical", h = o.useRef(null), O = me(u), I = me(s), q = c != null, W = !!(q || u.length || s.length), E = !!h.current && yt(h.current), [D, L] = o.useState(null);
|
|
1004
1004
|
Pe(() => {
|
|
1005
1005
|
if (W && h.current) {
|
|
1006
1006
|
const z = getComputedStyle(h.current);
|
|
1007
|
-
|
|
1007
|
+
L(Number.parseInt(z.marginBottom, 10));
|
|
1008
1008
|
}
|
|
1009
1009
|
}, [W, E]);
|
|
1010
1010
|
const T = (z) => {
|
|
1011
|
-
z ||
|
|
1011
|
+
z || L(null);
|
|
1012
1012
|
}, p = ((z = !1) => {
|
|
1013
|
-
const re = z ? O :
|
|
1014
|
-
return
|
|
1015
|
-
})(), B =
|
|
1016
|
-
[`${l}-with-help`]:
|
|
1013
|
+
const re = z ? O : m.errors, X = z ? I : m.warnings;
|
|
1014
|
+
return De(re, X, m, "", !!g, f);
|
|
1015
|
+
})(), B = G(l, r, n, {
|
|
1016
|
+
[`${l}-with-help`]: q || O.length || I.length,
|
|
1017
1017
|
// Status
|
|
1018
1018
|
[`${l}-has-feedback`]: p && g,
|
|
1019
1019
|
[`${l}-has-success`]: p === "success",
|
|
@@ -1069,43 +1069,43 @@ function sn(e) {
|
|
|
1069
1069
|
required: _ ?? v,
|
|
1070
1070
|
prefixCls: t,
|
|
1071
1071
|
vertical: S
|
|
1072
|
-
})), /* @__PURE__ */ o.createElement(en, Object.assign({}, e,
|
|
1072
|
+
})), /* @__PURE__ */ o.createElement(en, Object.assign({}, e, m, {
|
|
1073
1073
|
errors: O,
|
|
1074
1074
|
warnings: I,
|
|
1075
1075
|
prefixCls: t,
|
|
1076
1076
|
status: p,
|
|
1077
1077
|
help: c,
|
|
1078
|
-
marginBottom:
|
|
1078
|
+
marginBottom: D,
|
|
1079
1079
|
onErrorVisibleChanged: T
|
|
1080
1080
|
}), /* @__PURE__ */ o.createElement(Me.Provider, {
|
|
1081
1081
|
value: b
|
|
1082
1082
|
}, /* @__PURE__ */ o.createElement(We, {
|
|
1083
1083
|
prefixCls: t,
|
|
1084
|
-
meta:
|
|
1085
|
-
errors:
|
|
1086
|
-
warnings:
|
|
1084
|
+
meta: m,
|
|
1085
|
+
errors: m.errors,
|
|
1086
|
+
warnings: m.warnings,
|
|
1087
1087
|
hasFeedback: g,
|
|
1088
1088
|
// Already calculated
|
|
1089
1089
|
validateStatus: p,
|
|
1090
1090
|
name: w
|
|
1091
|
-
}, F)))), !!
|
|
1091
|
+
}, F)))), !!D && /* @__PURE__ */ o.createElement("div", {
|
|
1092
1092
|
className: `${l}-margin-offset`,
|
|
1093
1093
|
style: {
|
|
1094
|
-
marginBottom: -
|
|
1094
|
+
marginBottom: -D
|
|
1095
1095
|
}
|
|
1096
1096
|
}));
|
|
1097
1097
|
}
|
|
1098
1098
|
const cn = "__SPLIT__";
|
|
1099
|
-
function
|
|
1099
|
+
function mn(e, t) {
|
|
1100
1100
|
const r = Object.keys(e), n = Object.keys(t);
|
|
1101
1101
|
return r.length === n.length && r.every((a) => {
|
|
1102
|
-
const c = e[a],
|
|
1103
|
-
return c ===
|
|
1102
|
+
const c = e[a], u = t[a];
|
|
1103
|
+
return c === u || typeof c == "function" || typeof u == "function";
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const un = /* @__PURE__ */ o.memo(({
|
|
1107
1107
|
children: e
|
|
1108
|
-
}) => e, (e, t) =>
|
|
1108
|
+
}) => e, (e, t) => mn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
|
|
1109
1109
|
function Ne() {
|
|
1110
1110
|
return {
|
|
1111
1111
|
errors: [],
|
|
@@ -1123,10 +1123,10 @@ function dn(e) {
|
|
|
1123
1123
|
className: n,
|
|
1124
1124
|
dependencies: a,
|
|
1125
1125
|
prefixCls: c,
|
|
1126
|
-
shouldUpdate:
|
|
1126
|
+
shouldUpdate: u,
|
|
1127
1127
|
rules: s,
|
|
1128
1128
|
children: f,
|
|
1129
|
-
required:
|
|
1129
|
+
required: m,
|
|
1130
1130
|
label: g,
|
|
1131
1131
|
messageVariables: d,
|
|
1132
1132
|
trigger: F = "onChange",
|
|
@@ -1138,26 +1138,26 @@ function dn(e) {
|
|
|
1138
1138
|
getPrefixCls: P
|
|
1139
1139
|
} = o.useContext(Ve), {
|
|
1140
1140
|
name: w
|
|
1141
|
-
} = o.useContext(U), i =
|
|
1141
|
+
} = o.useContext(U), i = Gt(f), l = typeof i == "function", $ = o.useContext(Me), {
|
|
1142
1142
|
validateTrigger: M
|
|
1143
|
-
} = o.useContext(Ct), C = R !== void 0 ? R : M, S = t != null, h = P("form", c), O = he(h), [I,
|
|
1143
|
+
} = o.useContext(Ct), C = R !== void 0 ? R : M, S = t != null, h = P("form", c), O = he(h), [I, q, W] = ye(h, O), E = ue("Form.Item");
|
|
1144
1144
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && E(t !== null, "usage", "`null` is passed as `name` property");
|
|
1145
|
-
const
|
|
1146
|
-
const V =
|
|
1145
|
+
const D = o.useContext(xt), L = o.useRef(null), [T, Y] = Ut({}), [p, B] = $t(() => Ne()), z = (y) => {
|
|
1146
|
+
const V = D == null ? void 0 : D.getKey(y.name);
|
|
1147
1147
|
if (B(y.destroy ? Ne() : y, !0), r && v !== !1 && $) {
|
|
1148
1148
|
let j = y.name;
|
|
1149
1149
|
if (y.destroy)
|
|
1150
|
-
j =
|
|
1150
|
+
j = L.current || j;
|
|
1151
1151
|
else if (V !== void 0) {
|
|
1152
|
-
const [x,
|
|
1153
|
-
j = [x].concat(H(
|
|
1152
|
+
const [x, A] = V;
|
|
1153
|
+
j = [x].concat(H(A)), L.current = j;
|
|
1154
1154
|
}
|
|
1155
1155
|
$(y, j);
|
|
1156
1156
|
}
|
|
1157
1157
|
}, re = (y, V) => {
|
|
1158
1158
|
Y((j) => {
|
|
1159
|
-
const x = Object.assign({}, j),
|
|
1160
|
-
return y.destroy ? delete x[
|
|
1159
|
+
const x = Object.assign({}, j), K = [].concat(H(y.name.slice(0, -1)), H(V)).join(cn);
|
|
1160
|
+
return y.destroy ? delete x[K] : x[K] = y, x;
|
|
1161
1161
|
});
|
|
1162
1162
|
}, [X, oe] = o.useMemo(() => {
|
|
1163
1163
|
const y = H(p.errors), V = H(p.warnings);
|
|
@@ -1178,7 +1178,7 @@ function dn(e) {
|
|
|
1178
1178
|
}, y) : /* @__PURE__ */ o.createElement(sn, Object.assign({
|
|
1179
1179
|
key: "row"
|
|
1180
1180
|
}, e, {
|
|
1181
|
-
className:
|
|
1181
|
+
className: G(n, W, O, q),
|
|
1182
1182
|
prefixCls: h,
|
|
1183
1183
|
fieldId: V,
|
|
1184
1184
|
isRequired: j,
|
|
@@ -1192,54 +1192,54 @@ function dn(e) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
if (!S && !l && !a)
|
|
1194
1194
|
return I(ae(i));
|
|
1195
|
-
let
|
|
1196
|
-
return typeof g == "string" ?
|
|
1197
|
-
messageVariables:
|
|
1195
|
+
let Z = {};
|
|
1196
|
+
return typeof g == "string" ? Z.label = g : t && (Z.label = String(t)), d && (Z = Object.assign(Object.assign({}, Z), d)), I(/* @__PURE__ */ o.createElement(Et, Object.assign({}, e, {
|
|
1197
|
+
messageVariables: Z,
|
|
1198
1198
|
trigger: F,
|
|
1199
1199
|
validateTrigger: C,
|
|
1200
1200
|
onMetaChange: z
|
|
1201
1201
|
}), (y, V, j) => {
|
|
1202
|
-
const x = pe(t).length && V ? V.name : [],
|
|
1202
|
+
const x = pe(t).length && V ? V.name : [], A = jt(x, w), K = m !== void 0 ? m : !!(s != null && s.some((N) => {
|
|
1203
1203
|
if (N && typeof N == "object" && N.required && !N.warningOnly)
|
|
1204
1204
|
return !0;
|
|
1205
1205
|
if (typeof N == "function") {
|
|
1206
|
-
const
|
|
1207
|
-
return (
|
|
1206
|
+
const J = N(j);
|
|
1207
|
+
return (J == null ? void 0 : J.required) && !(J != null && J.warningOnly);
|
|
1208
1208
|
}
|
|
1209
1209
|
return !1;
|
|
1210
1210
|
})), se = Object.assign({}, y);
|
|
1211
1211
|
let le = null;
|
|
1212
|
-
if (process.env.NODE_ENV !== "production" && E(!(
|
|
1212
|
+
if (process.env.NODE_ENV !== "production" && E(!(u && a), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(i) && S)
|
|
1213
1213
|
process.env.NODE_ENV !== "production" && E(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), le = i;
|
|
1214
|
-
else if (l && (!(
|
|
1215
|
-
process.env.NODE_ENV !== "production" && E(!!(
|
|
1214
|
+
else if (l && (!(u || a) || S))
|
|
1215
|
+
process.env.NODE_ENV !== "production" && E(!!(u || a), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && E(!S, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
|
|
1216
1216
|
else if (a && !l && !S)
|
|
1217
1217
|
process.env.NODE_ENV !== "production" && E(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
|
|
1218
1218
|
else if (/* @__PURE__ */ o.isValidElement(i)) {
|
|
1219
1219
|
process.env.NODE_ENV !== "production" && E(i.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
|
|
1220
1220
|
const N = Object.assign(Object.assign({}, i.props), se);
|
|
1221
|
-
if (N.id || (N.id =
|
|
1221
|
+
if (N.id || (N.id = A), v || X.length > 0 || oe.length > 0 || e.extra) {
|
|
1222
1222
|
const ee = [];
|
|
1223
|
-
(v || X.length > 0) && ee.push(`${
|
|
1223
|
+
(v || X.length > 0) && ee.push(`${A}_help`), e.extra && ee.push(`${A}_extra`), N["aria-describedby"] = ee.join(" ");
|
|
1224
1224
|
}
|
|
1225
|
-
X.length > 0 && (N["aria-invalid"] = "true"),
|
|
1225
|
+
X.length > 0 && (N["aria-invalid"] = "true"), K && (N["aria-required"] = "true"), St(i) && (N.ref = Q(x, i)), new Set([].concat(H(pe(F)), H(pe(C)))).forEach((ee) => {
|
|
1226
1226
|
N[ee] = (...ve) => {
|
|
1227
1227
|
var Ce, xe, de, $e, fe;
|
|
1228
1228
|
(de = se[ee]) === null || de === void 0 || (Ce = de).call.apply(Ce, [se].concat(ve)), (fe = ($e = i.props)[ee]) === null || fe === void 0 || (xe = fe).call.apply(xe, [$e].concat(ve));
|
|
1229
1229
|
};
|
|
1230
1230
|
});
|
|
1231
1231
|
const Xe = [N["aria-required"], N["aria-invalid"], N["aria-describedby"]];
|
|
1232
|
-
le = /* @__PURE__ */ o.createElement(
|
|
1232
|
+
le = /* @__PURE__ */ o.createElement(un, {
|
|
1233
1233
|
control: se,
|
|
1234
1234
|
update: i,
|
|
1235
1235
|
childProps: Xe
|
|
1236
1236
|
}, Ot(i, N));
|
|
1237
|
-
} else l && (
|
|
1238
|
-
return ae(le,
|
|
1237
|
+
} else l && (u || a) && !S ? le = i(j) : (process.env.NODE_ENV !== "production" && E(!x.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), le = i);
|
|
1238
|
+
return ae(le, A, K);
|
|
1239
1239
|
}));
|
|
1240
1240
|
}
|
|
1241
1241
|
const Be = dn;
|
|
1242
|
-
Be.useStatus =
|
|
1242
|
+
Be.useStatus = qe;
|
|
1243
1243
|
var fn = function(e, t) {
|
|
1244
1244
|
var r = {};
|
|
1245
1245
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1253,22 +1253,22 @@ const pn = (e) => {
|
|
|
1253
1253
|
children: r
|
|
1254
1254
|
} = e, n = fn(e, ["prefixCls", "children"]);
|
|
1255
1255
|
if (process.env.NODE_ENV !== "production") {
|
|
1256
|
-
const s =
|
|
1256
|
+
const s = ue("Form.List");
|
|
1257
1257
|
process.env.NODE_ENV !== "production" && s(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
|
|
1258
1258
|
}
|
|
1259
1259
|
const {
|
|
1260
1260
|
getPrefixCls: a
|
|
1261
|
-
} = o.useContext(Ve), c = a("form", t),
|
|
1261
|
+
} = o.useContext(Ve), c = a("form", t), u = o.useMemo(() => ({
|
|
1262
1262
|
prefixCls: c,
|
|
1263
1263
|
status: "error"
|
|
1264
1264
|
}), [c]);
|
|
1265
|
-
return /* @__PURE__ */ o.createElement(It, Object.assign({}, n), (s, f,
|
|
1266
|
-
value:
|
|
1265
|
+
return /* @__PURE__ */ o.createElement(It, Object.assign({}, n), (s, f, m) => /* @__PURE__ */ o.createElement(be.Provider, {
|
|
1266
|
+
value: u
|
|
1267
1267
|
}, r(s.map((g) => Object.assign(Object.assign({}, g), {
|
|
1268
1268
|
fieldKey: g.key
|
|
1269
1269
|
})), f, {
|
|
1270
|
-
errors:
|
|
1271
|
-
warnings:
|
|
1270
|
+
errors: m.errors,
|
|
1271
|
+
warnings: m.warnings
|
|
1272
1272
|
})));
|
|
1273
1273
|
};
|
|
1274
1274
|
function gn() {
|
|
@@ -1277,7 +1277,7 @@ function gn() {
|
|
|
1277
1277
|
} = o.useContext(U);
|
|
1278
1278
|
return e;
|
|
1279
1279
|
}
|
|
1280
|
-
const k =
|
|
1280
|
+
const k = Ae;
|
|
1281
1281
|
k.Item = Be;
|
|
1282
1282
|
k.List = pn;
|
|
1283
1283
|
k.ErrorList = ze;
|