@yuku123/z-cognition-component 2.0.2 → 2.0.3
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 +1096 -0
- package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
- package/dist-lib/Collapse-B77SsmFh.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-CA30m5eX.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
- package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
- package/dist-lib/ak-manage-DklVFT5I.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
- package/dist-lib/callSuper-CpMOVGin.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-9gqNseEa.js +76 -0
- package/dist-lib/causal-CzAYukj9.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
- package/dist-lib/changelog-sKJMQrlV.js +103 -0
- package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-D_ZE966E.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
- package/dist-lib/community-9_7ExHcm.js +70 -0
- package/dist-lib/community-CfWXxujB.js +217 -0
- package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
- package/dist-lib/connections-Bcqsp11M.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/detail-CV6xp_Jp.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
- package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
- package/dist-lib/development-CFcOIUKc.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
- package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
- package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
- package/dist-lib/embed-mf8t3QXh.js +51841 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
- package/dist-lib/execution-B6HmOA2_.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DHV-rdiK.js +640 -0
- package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
- package/dist-lib/index-2SysmGHo.js +1166 -0
- package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B12ZggsE.js +77 -0
- package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
- package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
- package/dist-lib/index-BEO8itgt.js +566 -0
- package/dist-lib/index-BPbOPT2j.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-Bd7AGv4a.js +34 -0
- package/dist-lib/index-BkJjYgKD.js +5012 -0
- package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
- package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
- package/dist-lib/index-BoCtPJD4.js +915 -0
- package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/index-BsoHetYT.js +236 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
- package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
- package/dist-lib/index-C2CV4bte.js +242 -0
- package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
- package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
- package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
- package/dist-lib/index-CgwK2maq.js +1987 -0
- package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
- package/dist-lib/index-CvxfA0ZK.js +215 -0
- package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
- package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
- package/dist-lib/index-DKAGVWMX.js +390 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DU6bO95v.js +2075 -0
- package/dist-lib/index-DaMLYomP.js +853 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
- package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-QZ9JPfVR.js +251 -0
- package/dist-lib/index-VeAMz0iC.js +1719 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
- package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-COcz5F2R.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
- package/dist-lib/login-56zv4aLO.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
- package/dist-lib/material-DtPASeqq.js +204 -0
- package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
- package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
- package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
- package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
- package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
- package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
- package/dist-lib/meta-DT_O4zM9.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
- package/dist-lib/mobile-D8kZjfQU.js +2413 -0
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
- package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
- package/dist-lib/navigation-DVlyWnpD.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
- package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
- package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
- package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
- package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
- package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
- package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
- package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
- package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
- package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
- package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
- package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
- package/dist-lib/progress-CZxOOnIs.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
- package/dist-lib/row-By17TCiW.js +154 -0
- package/dist-lib/runs-DQTDpPaN.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
- package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
- package/dist-lib/script-gYJAFobb.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
- package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
- package/dist-lib/sources-C83LpCcV.js +279 -0
- package/dist-lib/style-B5THvtDY.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
- package/dist-lib/templates-a-kbCamr.js +58 -0
- package/dist-lib/tenant-login-COB-5h_2.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-CyKWCYMK.js +0 -218
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as Ge, aE as Fe, a8 as Ke, ao as _e, ap as ne, aF as be, aG as he, aH as Ee, ah as H, at as Ue, a6 as K, aI as Ye, aq as me, aJ as Qe, ar as ke, aK as Je, aL as Ze, aM as et, aN as tt, aO as nt, aP as je, aQ as U, aR as rt, aS as ot, aT as at, aU as ce, aV as Se, aW as lt, au as st, aX as it, aY as Oe, aZ as ct, a_ as Pe, a$ as ut, b0 as mt, b1 as dt, b2 as ft, b3 as pt, ax as gt, aw as bt, az as ht, b4 as yt, aa as vt, b5 as Me, a9 as Ve, b6 as Ct, b7 as xt, b8 as $t, b9 as Et, ba as St, bb as Ot, bc as It, bd as wt, be as Nt } from "./embed-mf8t3QXh.js";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { isValidElement as Ft } from "react";
|
|
4
|
-
import { c as X, I as Pt, _ as jt } from "./SearchOutlined-puH6bCY6.js";
|
|
5
4
|
import { g as _t } from "./collapse-Dtpt-6W_.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { R as Lt, b as zt } from "./context-Buz0ggsK.js";
|
|
11
|
-
import { a as Tt, C as At, F as Wt, P as qt, r as Ht, M as Bt, u as Xt, c as ie, w as Gt, b as Kt, d as Ut, e as Yt, f as Fe, m as Qt, g as kt } from "./index-DjFPRXl5.js";
|
|
12
|
-
function Jt(e) {
|
|
5
|
+
import { u as Re, g as Le, t as pe, a as jt } from "./useForm-B-dwOwJ8.js";
|
|
6
|
+
import { C as De, R as Pt } from "./row-By17TCiW.js";
|
|
7
|
+
import { T as Mt } from "./index-zXwXfn-X.js";
|
|
8
|
+
function Vt(e) {
|
|
13
9
|
return e == null ? null : typeof e == "object" && !/* @__PURE__ */ Ft(e) ? e : {
|
|
14
10
|
title: e
|
|
15
11
|
};
|
|
16
12
|
}
|
|
17
|
-
function
|
|
13
|
+
function ue(e) {
|
|
18
14
|
const [t, r] = o.useState(e);
|
|
19
15
|
return o.useEffect(() => {
|
|
20
16
|
const n = setTimeout(() => {
|
|
@@ -25,7 +21,7 @@ function de(e) {
|
|
|
25
21
|
};
|
|
26
22
|
}, [e]), t;
|
|
27
23
|
}
|
|
28
|
-
const
|
|
24
|
+
const Rt = (e) => {
|
|
29
25
|
const {
|
|
30
26
|
componentCls: t
|
|
31
27
|
} = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
|
|
@@ -65,7 +61,7 @@ const Zt = (e) => {
|
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
63
|
};
|
|
68
|
-
},
|
|
64
|
+
}, Lt = (e) => ({
|
|
69
65
|
legend: {
|
|
70
66
|
display: "block",
|
|
71
67
|
width: "100%",
|
|
@@ -75,7 +71,7 @@ const Zt = (e) => {
|
|
|
75
71
|
fontSize: e.fontSizeLG,
|
|
76
72
|
lineHeight: "inherit",
|
|
77
73
|
border: 0,
|
|
78
|
-
borderBottom: `${
|
|
74
|
+
borderBottom: `${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
79
75
|
},
|
|
80
76
|
'input[type="search"]': {
|
|
81
77
|
boxSizing: "border-box"
|
|
@@ -99,7 +95,7 @@ const Zt = (e) => {
|
|
|
99
95
|
// Focus for file, radio, and checkbox
|
|
100
96
|
"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus": {
|
|
101
97
|
outline: 0,
|
|
102
|
-
boxShadow: `0 0 0 ${
|
|
98
|
+
boxShadow: `0 0 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`
|
|
103
99
|
},
|
|
104
100
|
// Adjust output element
|
|
105
101
|
output: {
|
|
@@ -109,7 +105,7 @@ const Zt = (e) => {
|
|
|
109
105
|
fontSize: e.fontSize,
|
|
110
106
|
lineHeight: e.lineHeight
|
|
111
107
|
}
|
|
112
|
-
}),
|
|
108
|
+
}), Ie = (e, t) => {
|
|
113
109
|
const {
|
|
114
110
|
formItemCls: r
|
|
115
111
|
} = e;
|
|
@@ -123,12 +119,12 @@ const Zt = (e) => {
|
|
|
123
119
|
}
|
|
124
120
|
}
|
|
125
121
|
};
|
|
126
|
-
},
|
|
122
|
+
}, Dt = (e) => {
|
|
127
123
|
const {
|
|
128
124
|
componentCls: t
|
|
129
125
|
} = e;
|
|
130
126
|
return {
|
|
131
|
-
[e.componentCls]: Object.assign(Object.assign(Object.assign({},
|
|
127
|
+
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, _e(e)), Lt(e)), {
|
|
132
128
|
[`${t}-text`]: {
|
|
133
129
|
display: "inline-block",
|
|
134
130
|
paddingInlineEnd: e.paddingSM
|
|
@@ -136,26 +132,26 @@ const Zt = (e) => {
|
|
|
136
132
|
// ================================================================
|
|
137
133
|
// = Size =
|
|
138
134
|
// ================================================================
|
|
139
|
-
"&-small": Object.assign({},
|
|
140
|
-
"&-large": Object.assign({},
|
|
135
|
+
"&-small": Object.assign({}, Ie(e, e.controlHeightSM)),
|
|
136
|
+
"&-large": Object.assign({}, Ie(e, e.controlHeightLG))
|
|
141
137
|
})
|
|
142
138
|
};
|
|
143
|
-
},
|
|
139
|
+
}, Tt = (e) => {
|
|
144
140
|
const {
|
|
145
141
|
formItemCls: t,
|
|
146
142
|
iconCls: r,
|
|
147
143
|
rootPrefixCls: n,
|
|
148
144
|
antCls: a,
|
|
149
|
-
labelRequiredMarkColor:
|
|
145
|
+
labelRequiredMarkColor: c,
|
|
150
146
|
labelColor: m,
|
|
151
|
-
labelFontSize:
|
|
147
|
+
labelFontSize: s,
|
|
152
148
|
labelHeight: f,
|
|
153
|
-
labelColonMarginInlineStart:
|
|
154
|
-
labelColonMarginInlineEnd:
|
|
149
|
+
labelColonMarginInlineStart: u,
|
|
150
|
+
labelColonMarginInlineEnd: g,
|
|
155
151
|
itemMarginBottom: d
|
|
156
152
|
} = e;
|
|
157
153
|
return {
|
|
158
|
-
[t]: Object.assign(Object.assign({},
|
|
154
|
+
[t]: Object.assign(Object.assign({}, _e(e)), {
|
|
159
155
|
marginBottom: d,
|
|
160
156
|
verticalAlign: "top",
|
|
161
157
|
"&-with-help": {
|
|
@@ -204,7 +200,7 @@ const Zt = (e) => {
|
|
|
204
200
|
maxWidth: "100%",
|
|
205
201
|
height: f,
|
|
206
202
|
color: m,
|
|
207
|
-
fontSize:
|
|
203
|
+
fontSize: s,
|
|
208
204
|
[`> ${r}`]: {
|
|
209
205
|
fontSize: e.fontSize,
|
|
210
206
|
verticalAlign: "top"
|
|
@@ -213,7 +209,7 @@ const Zt = (e) => {
|
|
|
213
209
|
"&::before": {
|
|
214
210
|
display: "inline-block",
|
|
215
211
|
marginInlineEnd: e.marginXXS,
|
|
216
|
-
color:
|
|
212
|
+
color: c,
|
|
217
213
|
fontSize: e.fontSize,
|
|
218
214
|
fontFamily: "SimSun, sans-serif",
|
|
219
215
|
lineHeight: 1,
|
|
@@ -245,8 +241,8 @@ const Zt = (e) => {
|
|
|
245
241
|
content: '":"',
|
|
246
242
|
position: "relative",
|
|
247
243
|
marginBlock: 0,
|
|
248
|
-
marginInlineStart:
|
|
249
|
-
marginInlineEnd:
|
|
244
|
+
marginInlineStart: u,
|
|
245
|
+
marginInlineEnd: g
|
|
250
246
|
},
|
|
251
247
|
[`&${t}-no-colon::after`]: {
|
|
252
248
|
content: '"\\a0"'
|
|
@@ -322,7 +318,7 @@ const Zt = (e) => {
|
|
|
322
318
|
fontSize: e.fontSize,
|
|
323
319
|
textAlign: "center",
|
|
324
320
|
visibility: "visible",
|
|
325
|
-
animationName:
|
|
321
|
+
animationName: Fe,
|
|
326
322
|
animationDuration: e.motionDurationMid,
|
|
327
323
|
animationTimingFunction: e.motionEaseOutBack,
|
|
328
324
|
pointerEvents: "none",
|
|
@@ -341,7 +337,7 @@ const Zt = (e) => {
|
|
|
341
337
|
}
|
|
342
338
|
})
|
|
343
339
|
};
|
|
344
|
-
},
|
|
340
|
+
}, te = (e) => ({
|
|
345
341
|
padding: e.verticalLabelPadding,
|
|
346
342
|
margin: e.verticalLabelMargin,
|
|
347
343
|
whiteSpace: "initial",
|
|
@@ -353,7 +349,7 @@ const Zt = (e) => {
|
|
|
353
349
|
visibility: "hidden"
|
|
354
350
|
}
|
|
355
351
|
}
|
|
356
|
-
}),
|
|
352
|
+
}), zt = (e) => {
|
|
357
353
|
const {
|
|
358
354
|
antCls: t,
|
|
359
355
|
formItemCls: r
|
|
@@ -379,10 +375,10 @@ const Zt = (e) => {
|
|
|
379
375
|
}
|
|
380
376
|
},
|
|
381
377
|
[`${t}-col-24${r}-label,
|
|
382
|
-
${t}-col-xl-24${r}-label`]:
|
|
378
|
+
${t}-col-xl-24${r}-label`]: te(e)
|
|
383
379
|
}
|
|
384
380
|
};
|
|
385
|
-
},
|
|
381
|
+
}, qt = (e) => {
|
|
386
382
|
const {
|
|
387
383
|
componentCls: t,
|
|
388
384
|
formItemCls: r,
|
|
@@ -416,14 +412,14 @@ const Zt = (e) => {
|
|
|
416
412
|
}
|
|
417
413
|
}
|
|
418
414
|
};
|
|
419
|
-
},
|
|
415
|
+
}, At = (e) => {
|
|
420
416
|
const {
|
|
421
417
|
componentCls: t,
|
|
422
418
|
formItemCls: r,
|
|
423
419
|
rootPrefixCls: n
|
|
424
420
|
} = e;
|
|
425
421
|
return {
|
|
426
|
-
[`${r} ${r}-label`]:
|
|
422
|
+
[`${r} ${r}-label`]: te(e),
|
|
427
423
|
// ref: https://github.com/ant-design/ant-design/issues/45122
|
|
428
424
|
[`${t}:not(${t}-inline)`]: {
|
|
429
425
|
[r]: {
|
|
@@ -440,7 +436,7 @@ const Zt = (e) => {
|
|
|
440
436
|
}
|
|
441
437
|
}
|
|
442
438
|
};
|
|
443
|
-
},
|
|
439
|
+
}, Ht = (e) => {
|
|
444
440
|
const {
|
|
445
441
|
componentCls: t,
|
|
446
442
|
formItemCls: r,
|
|
@@ -459,38 +455,38 @@ const Zt = (e) => {
|
|
|
459
455
|
},
|
|
460
456
|
[`${r}-label,
|
|
461
457
|
${n}-col-24${r}-label,
|
|
462
|
-
${n}-col-xl-24${r}-label`]:
|
|
458
|
+
${n}-col-xl-24${r}-label`]: te(e)
|
|
463
459
|
},
|
|
464
|
-
[`@media (max-width: ${
|
|
460
|
+
[`@media (max-width: ${ne(e.screenXSMax)})`]: [At(e), {
|
|
465
461
|
[t]: {
|
|
466
462
|
[`${r}:not(${r}-horizontal)`]: {
|
|
467
|
-
[`${n}-col-xs-24${r}-label`]:
|
|
463
|
+
[`${n}-col-xs-24${r}-label`]: te(e)
|
|
468
464
|
}
|
|
469
465
|
}
|
|
470
466
|
}],
|
|
471
|
-
[`@media (max-width: ${
|
|
467
|
+
[`@media (max-width: ${ne(e.screenSMMax)})`]: {
|
|
472
468
|
[t]: {
|
|
473
469
|
[`${r}:not(${r}-horizontal)`]: {
|
|
474
|
-
[`${n}-col-sm-24${r}-label`]:
|
|
470
|
+
[`${n}-col-sm-24${r}-label`]: te(e)
|
|
475
471
|
}
|
|
476
472
|
}
|
|
477
473
|
},
|
|
478
|
-
[`@media (max-width: ${
|
|
474
|
+
[`@media (max-width: ${ne(e.screenMDMax)})`]: {
|
|
479
475
|
[t]: {
|
|
480
476
|
[`${r}:not(${r}-horizontal)`]: {
|
|
481
|
-
[`${n}-col-md-24${r}-label`]:
|
|
477
|
+
[`${n}-col-md-24${r}-label`]: te(e)
|
|
482
478
|
}
|
|
483
479
|
}
|
|
484
480
|
},
|
|
485
|
-
[`@media (max-width: ${
|
|
481
|
+
[`@media (max-width: ${ne(e.screenLGMax)})`]: {
|
|
486
482
|
[t]: {
|
|
487
483
|
[`${r}:not(${r}-horizontal)`]: {
|
|
488
|
-
[`${n}-col-lg-24${r}-label`]:
|
|
484
|
+
[`${n}-col-lg-24${r}-label`]: te(e)
|
|
489
485
|
}
|
|
490
486
|
}
|
|
491
487
|
}
|
|
492
488
|
};
|
|
493
|
-
},
|
|
489
|
+
}, Wt = (e) => ({
|
|
494
490
|
labelRequiredMarkColor: e.colorError,
|
|
495
491
|
labelColor: e.colorTextHeading,
|
|
496
492
|
labelFontSize: e.fontSize,
|
|
@@ -501,217 +497,217 @@ const Zt = (e) => {
|
|
|
501
497
|
verticalLabelPadding: `0 0 ${e.paddingXS}px`,
|
|
502
498
|
verticalLabelMargin: 0,
|
|
503
499
|
inlineItemMarginBottom: 0
|
|
504
|
-
}),
|
|
500
|
+
}), Te = (e, t) => Ke(e, {
|
|
505
501
|
formItemCls: `${e.componentCls}-item`,
|
|
506
502
|
rootPrefixCls: t
|
|
507
|
-
}),
|
|
503
|
+
}), ye = Ge("Form", (e, {
|
|
508
504
|
rootPrefixCls: t
|
|
509
505
|
}) => {
|
|
510
|
-
const r =
|
|
511
|
-
return [
|
|
512
|
-
},
|
|
506
|
+
const r = Te(e, t);
|
|
507
|
+
return [Dt(r), Tt(r), Rt(r), zt(r), qt(r), Ht(r), _t(r), Fe];
|
|
508
|
+
}, Wt, {
|
|
513
509
|
// Let From style before the Grid
|
|
514
510
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
515
511
|
order: -1e3
|
|
516
|
-
}),
|
|
517
|
-
function
|
|
512
|
+
}), we = [];
|
|
513
|
+
function ge(e, t, r, n = 0) {
|
|
518
514
|
return {
|
|
519
515
|
key: typeof e == "string" ? e : `${t}-${n}`,
|
|
520
516
|
error: e,
|
|
521
517
|
errorStatus: r
|
|
522
518
|
};
|
|
523
519
|
}
|
|
524
|
-
const
|
|
520
|
+
const ze = ({
|
|
525
521
|
help: e,
|
|
526
522
|
helpStatus: t,
|
|
527
|
-
errors: r =
|
|
528
|
-
warnings: n =
|
|
523
|
+
errors: r = we,
|
|
524
|
+
warnings: n = we,
|
|
529
525
|
className: a,
|
|
530
|
-
fieldId:
|
|
526
|
+
fieldId: c,
|
|
531
527
|
onVisibleChanged: m
|
|
532
528
|
}) => {
|
|
533
529
|
const {
|
|
534
|
-
prefixCls:
|
|
535
|
-
} = o.useContext(
|
|
536
|
-
const
|
|
537
|
-
return
|
|
530
|
+
prefixCls: s
|
|
531
|
+
} = o.useContext(be), f = `${s}-item-explain`, u = he(s), [g, d, F] = ye(s, u), R = o.useMemo(() => Ee(s), [s]), _ = ue(r), v = ue(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
|
+
const i = {};
|
|
533
|
+
return b.forEach(({
|
|
538
534
|
key: l
|
|
539
535
|
}) => {
|
|
540
|
-
|
|
541
|
-
}),
|
|
542
|
-
key:
|
|
536
|
+
i[l] = (i[l] || 0) + 1;
|
|
537
|
+
}), b.map((l, $) => Object.assign(Object.assign({}, l), {
|
|
538
|
+
key: i[l.key] > 1 ? `${l.key}-fallback-${$}` : l.key
|
|
543
539
|
}));
|
|
544
|
-
}, [
|
|
545
|
-
return
|
|
546
|
-
motionDeadline:
|
|
547
|
-
motionName: `${
|
|
548
|
-
visible: !!
|
|
540
|
+
}, [b]), w = {};
|
|
541
|
+
return c && (w.id = `${c}_help`), g(/* @__PURE__ */ o.createElement(Ue, {
|
|
542
|
+
motionDeadline: R.motionDeadline,
|
|
543
|
+
motionName: `${s}-show-help`,
|
|
544
|
+
visible: !!P.length,
|
|
549
545
|
onVisibleChanged: m
|
|
550
|
-
}, (
|
|
546
|
+
}, (i) => {
|
|
551
547
|
const {
|
|
552
548
|
className: l,
|
|
553
|
-
style:
|
|
554
|
-
} =
|
|
555
|
-
return /* @__PURE__ */ o.createElement("div", Object.assign({},
|
|
556
|
-
className:
|
|
557
|
-
style:
|
|
558
|
-
}), /* @__PURE__ */ o.createElement(
|
|
559
|
-
keys:
|
|
560
|
-
},
|
|
561
|
-
motionName: `${
|
|
549
|
+
style: $
|
|
550
|
+
} = i;
|
|
551
|
+
return /* @__PURE__ */ o.createElement("div", Object.assign({}, w, {
|
|
552
|
+
className: K(f, l, F, u, a, d),
|
|
553
|
+
style: $
|
|
554
|
+
}), /* @__PURE__ */ o.createElement(Ye, Object.assign({
|
|
555
|
+
keys: P
|
|
556
|
+
}, Ee(s), {
|
|
557
|
+
motionName: `${s}-show-help-item`,
|
|
562
558
|
component: !1
|
|
563
|
-
}), (
|
|
559
|
+
}), (M) => {
|
|
564
560
|
const {
|
|
565
|
-
key:
|
|
566
|
-
error:
|
|
567
|
-
errorStatus:
|
|
568
|
-
className:
|
|
569
|
-
style:
|
|
570
|
-
} =
|
|
561
|
+
key: C,
|
|
562
|
+
error: S,
|
|
563
|
+
errorStatus: h,
|
|
564
|
+
className: O,
|
|
565
|
+
style: I
|
|
566
|
+
} = M;
|
|
571
567
|
return /* @__PURE__ */ o.createElement("div", {
|
|
572
|
-
key:
|
|
573
|
-
className:
|
|
574
|
-
[`${f}-${
|
|
568
|
+
key: C,
|
|
569
|
+
className: K(O, {
|
|
570
|
+
[`${f}-${h}`]: h
|
|
575
571
|
}),
|
|
576
|
-
style:
|
|
577
|
-
},
|
|
572
|
+
style: I
|
|
573
|
+
}, S);
|
|
578
574
|
}));
|
|
579
575
|
}));
|
|
580
|
-
},
|
|
581
|
-
function
|
|
576
|
+
}, ie = {};
|
|
577
|
+
function Bt({
|
|
582
578
|
name: e
|
|
583
579
|
}) {
|
|
584
|
-
const t =
|
|
580
|
+
const t = me("Form");
|
|
585
581
|
o.useEffect(() => {
|
|
586
582
|
if (e)
|
|
587
|
-
return
|
|
588
|
-
|
|
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`."), () => {
|
|
584
|
+
ie[e] -= 1;
|
|
589
585
|
};
|
|
590
586
|
}, [e]);
|
|
591
587
|
}
|
|
592
|
-
var
|
|
588
|
+
var Xt = function(e, t) {
|
|
593
589
|
var r = {};
|
|
594
590
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
595
591
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
596
592
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
597
593
|
return r;
|
|
598
594
|
};
|
|
599
|
-
const
|
|
600
|
-
const r = o.useContext(
|
|
595
|
+
const Gt = (e, t) => {
|
|
596
|
+
const r = o.useContext(Qe), {
|
|
601
597
|
getPrefixCls: n,
|
|
602
598
|
direction: a,
|
|
603
|
-
requiredMark:
|
|
599
|
+
requiredMark: c,
|
|
604
600
|
colon: m,
|
|
605
|
-
scrollToFirstError:
|
|
601
|
+
scrollToFirstError: s,
|
|
606
602
|
className: f,
|
|
607
|
-
style:
|
|
608
|
-
} =
|
|
609
|
-
prefixCls:
|
|
603
|
+
style: u
|
|
604
|
+
} = ke("form"), {
|
|
605
|
+
prefixCls: g,
|
|
610
606
|
className: d,
|
|
611
|
-
rootClassName:
|
|
612
|
-
size:
|
|
613
|
-
disabled:
|
|
614
|
-
form:
|
|
615
|
-
colon:
|
|
616
|
-
labelAlign:
|
|
617
|
-
labelWrap:
|
|
618
|
-
labelCol:
|
|
607
|
+
rootClassName: F,
|
|
608
|
+
size: R,
|
|
609
|
+
disabled: _ = r,
|
|
610
|
+
form: v,
|
|
611
|
+
colon: b,
|
|
612
|
+
labelAlign: P,
|
|
613
|
+
labelWrap: w,
|
|
614
|
+
labelCol: i,
|
|
619
615
|
wrapperCol: l,
|
|
620
|
-
hideRequiredMark:
|
|
621
|
-
layout:
|
|
622
|
-
scrollToFirstError:
|
|
623
|
-
requiredMark:
|
|
624
|
-
onFinishFailed:
|
|
625
|
-
name:
|
|
626
|
-
style:
|
|
627
|
-
feedbackIcons:
|
|
628
|
-
variant:
|
|
629
|
-
} = e,
|
|
630
|
-
process.env.NODE_ENV !== "production" &&
|
|
631
|
-
const
|
|
632
|
-
[`${
|
|
616
|
+
hideRequiredMark: $,
|
|
617
|
+
layout: M = "horizontal",
|
|
618
|
+
scrollToFirstError: C,
|
|
619
|
+
requiredMark: S,
|
|
620
|
+
onFinishFailed: h,
|
|
621
|
+
name: O,
|
|
622
|
+
style: I,
|
|
623
|
+
feedbackIcons: A,
|
|
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"]), L = Je(R), D = o.useContext(Ze);
|
|
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 ?? m, p = n("form", g), B = he(p), [z, re, X] = ye(p, B), oe = K(p, `${p}-${M}`, {
|
|
628
|
+
[`${p}-hide-required-mark`]: T === !1,
|
|
633
629
|
// todo: remove in next major version
|
|
634
|
-
[`${
|
|
635
|
-
[`${
|
|
636
|
-
},
|
|
637
|
-
__INTERNAL__:
|
|
638
|
-
} =
|
|
639
|
-
|
|
640
|
-
const
|
|
641
|
-
name:
|
|
642
|
-
labelAlign:
|
|
643
|
-
labelCol:
|
|
644
|
-
labelWrap:
|
|
630
|
+
[`${p}-rtl`]: a === "rtl",
|
|
631
|
+
[`${p}-${L}`]: L
|
|
632
|
+
}, X, B, re, f, d, F), [Q] = Re(v), {
|
|
633
|
+
__INTERNAL__: ae
|
|
634
|
+
} = Q;
|
|
635
|
+
ae.name = O;
|
|
636
|
+
const J = o.useMemo(() => ({
|
|
637
|
+
name: O,
|
|
638
|
+
labelAlign: P,
|
|
639
|
+
labelCol: i,
|
|
640
|
+
labelWrap: w,
|
|
645
641
|
wrapperCol: l,
|
|
646
|
-
layout:
|
|
647
|
-
colon:
|
|
648
|
-
requiredMark:
|
|
649
|
-
itemRef:
|
|
650
|
-
form:
|
|
651
|
-
feedbackIcons:
|
|
652
|
-
}), [
|
|
642
|
+
layout: M,
|
|
643
|
+
colon: Y,
|
|
644
|
+
requiredMark: T,
|
|
645
|
+
itemRef: ae.itemRef,
|
|
646
|
+
form: Q,
|
|
647
|
+
feedbackIcons: A
|
|
648
|
+
}), [O, P, i, l, M, Y, T, Q, A]), y = o.useRef(null);
|
|
653
649
|
o.useImperativeHandle(t, () => {
|
|
654
|
-
var
|
|
655
|
-
return Object.assign(Object.assign({},
|
|
656
|
-
nativeElement: (
|
|
650
|
+
var x;
|
|
651
|
+
return Object.assign(Object.assign({}, Q), {
|
|
652
|
+
nativeElement: (x = y.current) === null || x === void 0 ? void 0 : x.nativeElement
|
|
657
653
|
});
|
|
658
654
|
});
|
|
659
|
-
const
|
|
660
|
-
if (
|
|
661
|
-
let
|
|
655
|
+
const V = (x, q) => {
|
|
656
|
+
if (x) {
|
|
657
|
+
let G = {
|
|
662
658
|
block: "nearest"
|
|
663
659
|
};
|
|
664
|
-
typeof
|
|
660
|
+
typeof x == "object" && (G = Object.assign(Object.assign({}, G), x)), Q.scrollToField(q, G);
|
|
665
661
|
}
|
|
666
|
-
},
|
|
667
|
-
if (
|
|
668
|
-
const
|
|
669
|
-
if (
|
|
670
|
-
|
|
662
|
+
}, j = (x) => {
|
|
663
|
+
if (h == null || h(x), x.errorFields.length) {
|
|
664
|
+
const q = x.errorFields[0].name;
|
|
665
|
+
if (C !== void 0) {
|
|
666
|
+
V(C, q);
|
|
671
667
|
return;
|
|
672
668
|
}
|
|
673
|
-
|
|
669
|
+
s !== void 0 && V(s, q);
|
|
674
670
|
}
|
|
675
671
|
};
|
|
676
|
-
return
|
|
677
|
-
value:
|
|
678
|
-
}, /* @__PURE__ */ o.createElement(
|
|
679
|
-
disabled:
|
|
680
|
-
}, /* @__PURE__ */ o.createElement(
|
|
681
|
-
value:
|
|
682
|
-
}, /* @__PURE__ */ o.createElement(
|
|
672
|
+
return z(/* @__PURE__ */ o.createElement(et.Provider, {
|
|
673
|
+
value: W
|
|
674
|
+
}, /* @__PURE__ */ o.createElement(tt, {
|
|
675
|
+
disabled: _
|
|
676
|
+
}, /* @__PURE__ */ o.createElement(nt.Provider, {
|
|
677
|
+
value: L
|
|
678
|
+
}, /* @__PURE__ */ o.createElement(je, {
|
|
683
679
|
// This is not list in API, we pass with spread
|
|
684
|
-
validateMessages:
|
|
685
|
-
}, /* @__PURE__ */ o.createElement(
|
|
686
|
-
value:
|
|
687
|
-
}, /* @__PURE__ */ o.createElement(
|
|
680
|
+
validateMessages: D
|
|
681
|
+
}, /* @__PURE__ */ o.createElement(U.Provider, {
|
|
682
|
+
value: J
|
|
683
|
+
}, /* @__PURE__ */ o.createElement(rt, {
|
|
688
684
|
status: !0
|
|
689
|
-
}, /* @__PURE__ */ o.createElement(
|
|
690
|
-
id:
|
|
691
|
-
},
|
|
692
|
-
name:
|
|
693
|
-
onFinishFailed:
|
|
694
|
-
form:
|
|
695
|
-
ref:
|
|
696
|
-
style: Object.assign(Object.assign({},
|
|
697
|
-
className:
|
|
685
|
+
}, /* @__PURE__ */ o.createElement(ot, Object.assign({
|
|
686
|
+
id: O
|
|
687
|
+
}, E, {
|
|
688
|
+
name: O,
|
|
689
|
+
onFinishFailed: j,
|
|
690
|
+
form: Q,
|
|
691
|
+
ref: y,
|
|
692
|
+
style: Object.assign(Object.assign({}, u), I),
|
|
693
|
+
className: oe
|
|
698
694
|
})))))))));
|
|
699
|
-
},
|
|
700
|
-
process.env.NODE_ENV !== "production" && (
|
|
701
|
-
function
|
|
695
|
+
}, qe = /* @__PURE__ */ o.forwardRef(Gt);
|
|
696
|
+
process.env.NODE_ENV !== "production" && (qe.displayName = "Form");
|
|
697
|
+
function Kt(e) {
|
|
702
698
|
if (typeof e == "function")
|
|
703
699
|
return e;
|
|
704
|
-
const t =
|
|
700
|
+
const t = at(e);
|
|
705
701
|
return t.length <= 1 ? t[0] : t;
|
|
706
702
|
}
|
|
707
|
-
const
|
|
703
|
+
const Ae = () => {
|
|
708
704
|
const {
|
|
709
705
|
status: e,
|
|
710
706
|
errors: t = [],
|
|
711
707
|
warnings: r = []
|
|
712
|
-
} = o.useContext(
|
|
708
|
+
} = o.useContext(ce);
|
|
713
709
|
if (process.env.NODE_ENV !== "production") {
|
|
714
|
-
const n =
|
|
710
|
+
const n = me("Form.Item");
|
|
715
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");
|
|
716
712
|
}
|
|
717
713
|
return {
|
|
@@ -720,35 +716,35 @@ const Be = () => {
|
|
|
720
716
|
warnings: r
|
|
721
717
|
};
|
|
722
718
|
};
|
|
723
|
-
|
|
724
|
-
function
|
|
725
|
-
const [t, r] = o.useState(e), n = o.useRef(null), a = o.useRef([]),
|
|
726
|
-
o.useEffect(() => (
|
|
727
|
-
|
|
719
|
+
Ae.Context = ce;
|
|
720
|
+
function Ut(e) {
|
|
721
|
+
const [t, r] = o.useState(e), n = o.useRef(null), a = o.useRef([]), c = o.useRef(!1);
|
|
722
|
+
o.useEffect(() => (c.current = !1, () => {
|
|
723
|
+
c.current = !0, Se.cancel(n.current), n.current = null;
|
|
728
724
|
}), []);
|
|
729
|
-
function m(
|
|
730
|
-
|
|
725
|
+
function m(s) {
|
|
726
|
+
c.current || (n.current === null && (a.current = [], n.current = Se(() => {
|
|
731
727
|
n.current = null, r((f) => {
|
|
732
|
-
let
|
|
733
|
-
return a.current.forEach((
|
|
734
|
-
|
|
735
|
-
}),
|
|
728
|
+
let u = f;
|
|
729
|
+
return a.current.forEach((g) => {
|
|
730
|
+
u = g(u);
|
|
731
|
+
}), u;
|
|
736
732
|
});
|
|
737
|
-
})), a.current.push(
|
|
733
|
+
})), a.current.push(s));
|
|
738
734
|
}
|
|
739
735
|
return [t, m];
|
|
740
736
|
}
|
|
741
|
-
function
|
|
737
|
+
function Yt() {
|
|
742
738
|
const {
|
|
743
739
|
itemRef: e
|
|
744
|
-
} = o.useContext(
|
|
740
|
+
} = o.useContext(U), t = o.useRef({});
|
|
745
741
|
function r(n, a) {
|
|
746
|
-
const
|
|
747
|
-
return (t.current.name !== m || t.current.originRef !==
|
|
742
|
+
const c = a && typeof a == "object" && lt(a), m = n.join("_");
|
|
743
|
+
return (t.current.name !== m || t.current.originRef !== c) && (t.current.name = m, t.current.originRef = c, t.current.ref = st(e(n), c)), t.current.ref;
|
|
748
744
|
}
|
|
749
745
|
return r;
|
|
750
746
|
}
|
|
751
|
-
const
|
|
747
|
+
const Qt = (e) => {
|
|
752
748
|
const {
|
|
753
749
|
formItemCls: t
|
|
754
750
|
} = e;
|
|
@@ -760,281 +756,281 @@ const gn = (e) => {
|
|
|
760
756
|
}
|
|
761
757
|
}
|
|
762
758
|
};
|
|
763
|
-
},
|
|
759
|
+
}, kt = it(["Form", "item-item"], (e, {
|
|
764
760
|
rootPrefixCls: t
|
|
765
761
|
}) => {
|
|
766
|
-
const r =
|
|
767
|
-
return
|
|
762
|
+
const r = Te(e, t);
|
|
763
|
+
return Qt(r);
|
|
768
764
|
});
|
|
769
|
-
var
|
|
765
|
+
var Jt = function(e, t) {
|
|
770
766
|
var r = {};
|
|
771
767
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
772
768
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
773
769
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
774
770
|
return r;
|
|
775
771
|
};
|
|
776
|
-
const
|
|
772
|
+
const Zt = 24, en = (e) => {
|
|
777
773
|
const {
|
|
778
774
|
prefixCls: t,
|
|
779
775
|
status: r,
|
|
780
776
|
labelCol: n,
|
|
781
777
|
wrapperCol: a,
|
|
782
|
-
children:
|
|
778
|
+
children: c,
|
|
783
779
|
errors: m,
|
|
784
|
-
warnings:
|
|
780
|
+
warnings: s,
|
|
785
781
|
_internalItemRender: f,
|
|
786
|
-
extra:
|
|
787
|
-
help:
|
|
782
|
+
extra: u,
|
|
783
|
+
help: g,
|
|
788
784
|
fieldId: d,
|
|
789
|
-
marginBottom:
|
|
790
|
-
onErrorVisibleChanged:
|
|
791
|
-
label:
|
|
792
|
-
} = e,
|
|
793
|
-
let
|
|
794
|
-
return
|
|
795
|
-
const
|
|
796
|
-
"span" in
|
|
797
|
-
}),
|
|
798
|
-
}, [a,
|
|
785
|
+
marginBottom: F,
|
|
786
|
+
onErrorVisibleChanged: R,
|
|
787
|
+
label: _
|
|
788
|
+
} = e, v = `${t}-item`, b = o.useContext(U), P = o.useMemo(() => {
|
|
789
|
+
let E = Object.assign({}, a || b.wrapperCol || {});
|
|
790
|
+
return _ === null && !n && !a && b.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((D) => {
|
|
791
|
+
const T = D ? [D] : [], 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 < Zt && (E = ct(E, [].concat(T, ["offset"]), p.span));
|
|
793
|
+
}), E;
|
|
794
|
+
}, [a, b.wrapperCol, b.labelCol, _, n]), w = K(`${v}-control`, P.className), i = o.useMemo(() => {
|
|
799
795
|
const {
|
|
800
|
-
labelCol:
|
|
801
|
-
wrapperCol:
|
|
802
|
-
} =
|
|
803
|
-
return
|
|
804
|
-
}, [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}, [
|
|
808
|
-
const
|
|
809
|
-
className: `${
|
|
796
|
+
labelCol: E,
|
|
797
|
+
wrapperCol: L
|
|
798
|
+
} = b;
|
|
799
|
+
return Jt(b, ["labelCol", "wrapperCol"]);
|
|
800
|
+
}, [b]), l = o.useRef(null), [$, M] = o.useState(0);
|
|
801
|
+
Pe(() => {
|
|
802
|
+
u && l.current ? M(l.current.clientHeight) : M(0);
|
|
803
|
+
}, [u]);
|
|
804
|
+
const C = /* @__PURE__ */ o.createElement("div", {
|
|
805
|
+
className: `${v}-control-input`
|
|
810
806
|
}, /* @__PURE__ */ o.createElement("div", {
|
|
811
|
-
className: `${
|
|
812
|
-
},
|
|
807
|
+
className: `${v}-control-input-content`
|
|
808
|
+
}, c)), S = o.useMemo(() => ({
|
|
813
809
|
prefixCls: t,
|
|
814
810
|
status: r
|
|
815
|
-
}), [t, r]),
|
|
816
|
-
value:
|
|
817
|
-
}, /* @__PURE__ */ o.createElement(
|
|
811
|
+
}), [t, r]), h = F !== null || m.length || s.length ? /* @__PURE__ */ o.createElement(be.Provider, {
|
|
812
|
+
value: S
|
|
813
|
+
}, /* @__PURE__ */ o.createElement(ze, {
|
|
818
814
|
fieldId: d,
|
|
819
815
|
errors: m,
|
|
820
|
-
warnings:
|
|
821
|
-
help:
|
|
816
|
+
warnings: s,
|
|
817
|
+
help: g,
|
|
822
818
|
helpStatus: r,
|
|
823
|
-
className: `${
|
|
824
|
-
onVisibleChanged:
|
|
825
|
-
})) : null,
|
|
826
|
-
d && (
|
|
827
|
-
const
|
|
828
|
-
className: `${
|
|
819
|
+
className: `${v}-explain-connected`,
|
|
820
|
+
onVisibleChanged: R
|
|
821
|
+
})) : null, O = {};
|
|
822
|
+
d && (O.id = `${d}_extra`);
|
|
823
|
+
const I = u ? /* @__PURE__ */ o.createElement("div", Object.assign({}, O, {
|
|
824
|
+
className: `${v}-extra`,
|
|
829
825
|
ref: l
|
|
830
|
-
}),
|
|
831
|
-
className: `${
|
|
832
|
-
style:
|
|
833
|
-
minHeight:
|
|
826
|
+
}), u) : null, A = h || I ? /* @__PURE__ */ o.createElement("div", {
|
|
827
|
+
className: `${v}-additional`,
|
|
828
|
+
style: F ? {
|
|
829
|
+
minHeight: F + $
|
|
834
830
|
} : {}
|
|
835
|
-
},
|
|
836
|
-
input:
|
|
837
|
-
errorList:
|
|
838
|
-
extra:
|
|
839
|
-
}) : /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
840
|
-
return /* @__PURE__ */ o.createElement(
|
|
841
|
-
value:
|
|
842
|
-
}, /* @__PURE__ */ o.createElement(
|
|
843
|
-
className:
|
|
844
|
-
}),
|
|
831
|
+
}, h, I) : null, W = f && f.mark === "pro_table_render" && f.render ? f.render(e, {
|
|
832
|
+
input: C,
|
|
833
|
+
errorList: h,
|
|
834
|
+
extra: I
|
|
835
|
+
}) : /* @__PURE__ */ o.createElement(o.Fragment, null, C, A);
|
|
836
|
+
return /* @__PURE__ */ o.createElement(U.Provider, {
|
|
837
|
+
value: i
|
|
838
|
+
}, /* @__PURE__ */ o.createElement(De, Object.assign({}, P, {
|
|
839
|
+
className: w
|
|
840
|
+
}), W), /* @__PURE__ */ o.createElement(kt, {
|
|
845
841
|
prefixCls: t
|
|
846
842
|
}));
|
|
847
843
|
};
|
|
848
|
-
var
|
|
849
|
-
return /* @__PURE__ */ o.createElement(
|
|
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(ut, mt({}, t, {
|
|
850
846
|
ref: r,
|
|
851
|
-
icon:
|
|
847
|
+
icon: tn
|
|
852
848
|
}));
|
|
853
|
-
},
|
|
854
|
-
process.env.NODE_ENV !== "production" && (
|
|
855
|
-
var
|
|
849
|
+
}, He = /* @__PURE__ */ o.forwardRef(nn);
|
|
850
|
+
process.env.NODE_ENV !== "production" && (He.displayName = "QuestionCircleOutlined");
|
|
851
|
+
var rn = function(e, t) {
|
|
856
852
|
var r = {};
|
|
857
853
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
858
854
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
859
855
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
860
856
|
return r;
|
|
861
857
|
};
|
|
862
|
-
const
|
|
858
|
+
const on = ({
|
|
863
859
|
prefixCls: e,
|
|
864
860
|
label: t,
|
|
865
861
|
htmlFor: r,
|
|
866
862
|
labelCol: n,
|
|
867
863
|
labelAlign: a,
|
|
868
|
-
colon:
|
|
864
|
+
colon: c,
|
|
869
865
|
required: m,
|
|
870
|
-
requiredMark:
|
|
866
|
+
requiredMark: s,
|
|
871
867
|
tooltip: f,
|
|
872
|
-
vertical:
|
|
868
|
+
vertical: u
|
|
873
869
|
}) => {
|
|
874
|
-
var
|
|
875
|
-
const [d] =
|
|
876
|
-
labelAlign:
|
|
877
|
-
labelCol:
|
|
878
|
-
labelWrap:
|
|
879
|
-
colon:
|
|
880
|
-
} = o.useContext(
|
|
870
|
+
var g;
|
|
871
|
+
const [d] = dt("Form"), {
|
|
872
|
+
labelAlign: F,
|
|
873
|
+
labelCol: R,
|
|
874
|
+
labelWrap: _,
|
|
875
|
+
colon: v
|
|
876
|
+
} = o.useContext(U);
|
|
881
877
|
if (!t)
|
|
882
878
|
return null;
|
|
883
|
-
const
|
|
884
|
-
[`${
|
|
879
|
+
const b = n || R || {}, P = a || F, w = `${e}-item-label`, i = K(w, P === "left" && `${w}-left`, b.className, {
|
|
880
|
+
[`${w}-wrap`]: !!_
|
|
885
881
|
});
|
|
886
882
|
let l = t;
|
|
887
|
-
const
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
883
|
+
const $ = c === !0 || v !== !1 && c !== !1;
|
|
884
|
+
$ && !u && typeof t == "string" && t.trim() && (l = t.replace(/[:|:]\s*$/, ""));
|
|
885
|
+
const C = Vt(f);
|
|
886
|
+
if (C) {
|
|
891
887
|
const {
|
|
892
|
-
icon:
|
|
893
|
-
} =
|
|
888
|
+
icon: W = /* @__PURE__ */ o.createElement(He, null)
|
|
889
|
+
} = C, E = rn(C, ["icon"]), L = /* @__PURE__ */ o.createElement(Mt, Object.assign({}, E), /* @__PURE__ */ o.cloneElement(W, {
|
|
894
890
|
className: `${e}-item-tooltip`,
|
|
895
891
|
title: "",
|
|
896
|
-
onClick: (
|
|
897
|
-
|
|
892
|
+
onClick: (D) => {
|
|
893
|
+
D.preventDefault();
|
|
898
894
|
},
|
|
899
895
|
tabIndex: null
|
|
900
896
|
}));
|
|
901
|
-
l = /* @__PURE__ */ o.createElement(o.Fragment, null, l,
|
|
897
|
+
l = /* @__PURE__ */ o.createElement(o.Fragment, null, l, L);
|
|
902
898
|
}
|
|
903
|
-
const
|
|
904
|
-
|
|
899
|
+
const S = s === "optional", h = typeof s == "function", O = s === !1;
|
|
900
|
+
h ? l = s(l, {
|
|
905
901
|
required: !!m
|
|
906
|
-
}) :
|
|
902
|
+
}) : S && !m && (l = /* @__PURE__ */ o.createElement(o.Fragment, null, l, /* @__PURE__ */ o.createElement("span", {
|
|
907
903
|
className: `${e}-item-optional`,
|
|
908
904
|
title: ""
|
|
909
|
-
}, (d == null ? void 0 : d.optional) || ((
|
|
910
|
-
let
|
|
911
|
-
|
|
912
|
-
const
|
|
905
|
+
}, (d == null ? void 0 : d.optional) || ((g = ft.Form) === null || g === void 0 ? void 0 : g.optional))));
|
|
906
|
+
let I;
|
|
907
|
+
O ? I = "hidden" : (S || h) && (I = "optional");
|
|
908
|
+
const A = K({
|
|
913
909
|
[`${e}-item-required`]: m,
|
|
914
|
-
[`${e}-item-required-mark-${
|
|
915
|
-
[`${e}-item-no-colon`]:
|
|
910
|
+
[`${e}-item-required-mark-${I}`]: I,
|
|
911
|
+
[`${e}-item-no-colon`]: !$
|
|
916
912
|
});
|
|
917
|
-
return /* @__PURE__ */ o.createElement(
|
|
918
|
-
className:
|
|
913
|
+
return /* @__PURE__ */ o.createElement(De, Object.assign({}, b, {
|
|
914
|
+
className: i
|
|
919
915
|
}), /* @__PURE__ */ o.createElement("label", {
|
|
920
916
|
htmlFor: r,
|
|
921
|
-
className:
|
|
917
|
+
className: A,
|
|
922
918
|
title: typeof t == "string" ? t : ""
|
|
923
919
|
}, l));
|
|
924
|
-
},
|
|
925
|
-
success:
|
|
926
|
-
warning:
|
|
927
|
-
error:
|
|
928
|
-
validating:
|
|
920
|
+
}, an = {
|
|
921
|
+
success: ht,
|
|
922
|
+
warning: bt,
|
|
923
|
+
error: gt,
|
|
924
|
+
validating: pt
|
|
929
925
|
};
|
|
930
|
-
function
|
|
926
|
+
function We({
|
|
931
927
|
children: e,
|
|
932
928
|
errors: t,
|
|
933
929
|
warnings: r,
|
|
934
930
|
hasFeedback: n,
|
|
935
931
|
validateStatus: a,
|
|
936
|
-
prefixCls:
|
|
932
|
+
prefixCls: c,
|
|
937
933
|
meta: m,
|
|
938
|
-
noStyle:
|
|
934
|
+
noStyle: s,
|
|
939
935
|
name: f
|
|
940
936
|
}) {
|
|
941
|
-
const
|
|
942
|
-
feedbackIcons:
|
|
943
|
-
} = o.useContext(
|
|
944
|
-
isFormItemInput:
|
|
945
|
-
status:
|
|
946
|
-
hasFeedback:
|
|
947
|
-
feedbackIcon:
|
|
948
|
-
name:
|
|
949
|
-
} = o.useContext(
|
|
950
|
-
var
|
|
951
|
-
let
|
|
937
|
+
const u = `${c}-item`, {
|
|
938
|
+
feedbackIcons: g
|
|
939
|
+
} = o.useContext(U), d = Le(t, r, m, null, !!n, a), {
|
|
940
|
+
isFormItemInput: F,
|
|
941
|
+
status: R,
|
|
942
|
+
hasFeedback: _,
|
|
943
|
+
feedbackIcon: v,
|
|
944
|
+
name: b
|
|
945
|
+
} = o.useContext(ce), P = o.useMemo(() => {
|
|
946
|
+
var w;
|
|
947
|
+
let i;
|
|
952
948
|
if (n) {
|
|
953
|
-
const
|
|
949
|
+
const $ = n !== !0 && n.icons || g, M = d && ((w = $ == null ? void 0 : $({
|
|
954
950
|
status: d,
|
|
955
951
|
errors: t,
|
|
956
952
|
warnings: r
|
|
957
|
-
})) === null ||
|
|
958
|
-
|
|
959
|
-
className:
|
|
960
|
-
},
|
|
953
|
+
})) === null || w === void 0 ? void 0 : w[d]), C = d ? an[d] : null;
|
|
954
|
+
i = M !== !1 && C ? /* @__PURE__ */ o.createElement("span", {
|
|
955
|
+
className: K(`${u}-feedback-icon`, `${u}-feedback-icon-${d}`)
|
|
956
|
+
}, M || /* @__PURE__ */ o.createElement(C, null)) : null;
|
|
961
957
|
}
|
|
962
958
|
const l = {
|
|
963
959
|
status: d || "",
|
|
964
960
|
errors: t,
|
|
965
961
|
warnings: r,
|
|
966
962
|
hasFeedback: !!n,
|
|
967
|
-
feedbackIcon:
|
|
963
|
+
feedbackIcon: i,
|
|
968
964
|
isFormItemInput: !0,
|
|
969
965
|
name: f
|
|
970
966
|
};
|
|
971
|
-
return
|
|
972
|
-
}, [d, n,
|
|
973
|
-
return /* @__PURE__ */ o.createElement(
|
|
974
|
-
value:
|
|
967
|
+
return s && (l.status = (d ?? R) || "", l.isFormItemInput = F, l.hasFeedback = !!(n ?? _), l.feedbackIcon = n !== void 0 ? l.feedbackIcon : v, l.name = f ?? b), l;
|
|
968
|
+
}, [d, n, s, F, R]);
|
|
969
|
+
return /* @__PURE__ */ o.createElement(ce.Provider, {
|
|
970
|
+
value: P
|
|
975
971
|
}, e);
|
|
976
972
|
}
|
|
977
|
-
var
|
|
973
|
+
var ln = function(e, t) {
|
|
978
974
|
var r = {};
|
|
979
975
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
980
976
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
981
977
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
982
978
|
return r;
|
|
983
979
|
};
|
|
984
|
-
function
|
|
980
|
+
function sn(e) {
|
|
985
981
|
const {
|
|
986
982
|
prefixCls: t,
|
|
987
983
|
className: r,
|
|
988
984
|
rootClassName: n,
|
|
989
985
|
style: a,
|
|
990
|
-
help:
|
|
986
|
+
help: c,
|
|
991
987
|
errors: m,
|
|
992
|
-
warnings:
|
|
988
|
+
warnings: s,
|
|
993
989
|
validateStatus: f,
|
|
994
|
-
meta:
|
|
995
|
-
hasFeedback:
|
|
990
|
+
meta: u,
|
|
991
|
+
hasFeedback: g,
|
|
996
992
|
hidden: d,
|
|
997
|
-
children:
|
|
998
|
-
fieldId:
|
|
999
|
-
required:
|
|
1000
|
-
isRequired:
|
|
1001
|
-
onSubItemMetaChange:
|
|
1002
|
-
layout:
|
|
1003
|
-
name:
|
|
1004
|
-
} = e,
|
|
1005
|
-
requiredMark:
|
|
1006
|
-
layout:
|
|
1007
|
-
} = o.useContext(
|
|
1008
|
-
|
|
1009
|
-
if (
|
|
1010
|
-
const
|
|
1011
|
-
|
|
993
|
+
children: F,
|
|
994
|
+
fieldId: R,
|
|
995
|
+
required: _,
|
|
996
|
+
isRequired: v,
|
|
997
|
+
onSubItemMetaChange: b,
|
|
998
|
+
layout: P,
|
|
999
|
+
name: w
|
|
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
|
+
requiredMark: $,
|
|
1002
|
+
layout: M
|
|
1003
|
+
} = o.useContext(U), C = P || M, S = C === "vertical", h = o.useRef(null), O = ue(m), I = ue(s), A = c != null, W = !!(A || m.length || s.length), E = !!h.current && yt(h.current), [L, D] = o.useState(null);
|
|
1004
|
+
Pe(() => {
|
|
1005
|
+
if (W && h.current) {
|
|
1006
|
+
const z = getComputedStyle(h.current);
|
|
1007
|
+
D(Number.parseInt(z.marginBottom, 10));
|
|
1012
1008
|
}
|
|
1013
|
-
}, [
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
},
|
|
1017
|
-
const
|
|
1018
|
-
return
|
|
1019
|
-
})(),
|
|
1020
|
-
[`${l}-with-help`]:
|
|
1009
|
+
}, [W, E]);
|
|
1010
|
+
const T = (z) => {
|
|
1011
|
+
z || D(null);
|
|
1012
|
+
}, p = ((z = !1) => {
|
|
1013
|
+
const re = z ? O : u.errors, X = z ? I : u.warnings;
|
|
1014
|
+
return Le(re, X, u, "", !!g, f);
|
|
1015
|
+
})(), B = K(l, r, n, {
|
|
1016
|
+
[`${l}-with-help`]: A || O.length || I.length,
|
|
1021
1017
|
// Status
|
|
1022
|
-
[`${l}-has-feedback`]:
|
|
1023
|
-
[`${l}-has-success`]:
|
|
1024
|
-
[`${l}-has-warning`]:
|
|
1025
|
-
[`${l}-has-error`]:
|
|
1026
|
-
[`${l}-is-validating`]:
|
|
1018
|
+
[`${l}-has-feedback`]: p && g,
|
|
1019
|
+
[`${l}-has-success`]: p === "success",
|
|
1020
|
+
[`${l}-has-warning`]: p === "warning",
|
|
1021
|
+
[`${l}-has-error`]: p === "error",
|
|
1022
|
+
[`${l}-is-validating`]: p === "validating",
|
|
1027
1023
|
[`${l}-hidden`]: d,
|
|
1028
1024
|
// Layout
|
|
1029
|
-
[`${l}-${
|
|
1025
|
+
[`${l}-${C}`]: C
|
|
1030
1026
|
});
|
|
1031
1027
|
return /* @__PURE__ */ o.createElement("div", {
|
|
1032
|
-
className:
|
|
1028
|
+
className: B,
|
|
1033
1029
|
style: a,
|
|
1034
|
-
ref:
|
|
1035
|
-
}, /* @__PURE__ */ o.createElement(
|
|
1030
|
+
ref: h
|
|
1031
|
+
}, /* @__PURE__ */ o.createElement(Pt, Object.assign({
|
|
1036
1032
|
className: `${l}-row`
|
|
1037
|
-
},
|
|
1033
|
+
}, vt(i, [
|
|
1038
1034
|
"_internalItemRender",
|
|
1039
1035
|
"colon",
|
|
1040
1036
|
"dependencies",
|
|
@@ -1066,51 +1062,51 @@ function wn(e) {
|
|
|
1066
1062
|
"valuePropName",
|
|
1067
1063
|
"wrapperCol",
|
|
1068
1064
|
"validateDebounce"
|
|
1069
|
-
])), /* @__PURE__ */ o.createElement(
|
|
1070
|
-
htmlFor:
|
|
1065
|
+
])), /* @__PURE__ */ o.createElement(on, Object.assign({
|
|
1066
|
+
htmlFor: R
|
|
1071
1067
|
}, e, {
|
|
1072
|
-
requiredMark:
|
|
1073
|
-
required:
|
|
1068
|
+
requiredMark: $,
|
|
1069
|
+
required: _ ?? v,
|
|
1074
1070
|
prefixCls: t,
|
|
1075
|
-
vertical:
|
|
1076
|
-
})), /* @__PURE__ */ o.createElement(
|
|
1077
|
-
errors:
|
|
1078
|
-
warnings:
|
|
1071
|
+
vertical: S
|
|
1072
|
+
})), /* @__PURE__ */ o.createElement(en, Object.assign({}, e, u, {
|
|
1073
|
+
errors: O,
|
|
1074
|
+
warnings: I,
|
|
1079
1075
|
prefixCls: t,
|
|
1080
|
-
status:
|
|
1081
|
-
help:
|
|
1082
|
-
marginBottom:
|
|
1083
|
-
onErrorVisibleChanged:
|
|
1084
|
-
}), /* @__PURE__ */ o.createElement(
|
|
1085
|
-
value:
|
|
1086
|
-
}, /* @__PURE__ */ o.createElement(
|
|
1076
|
+
status: p,
|
|
1077
|
+
help: c,
|
|
1078
|
+
marginBottom: L,
|
|
1079
|
+
onErrorVisibleChanged: T
|
|
1080
|
+
}), /* @__PURE__ */ o.createElement(Me.Provider, {
|
|
1081
|
+
value: b
|
|
1082
|
+
}, /* @__PURE__ */ o.createElement(We, {
|
|
1087
1083
|
prefixCls: t,
|
|
1088
|
-
meta:
|
|
1089
|
-
errors:
|
|
1090
|
-
warnings:
|
|
1091
|
-
hasFeedback:
|
|
1084
|
+
meta: u,
|
|
1085
|
+
errors: u.errors,
|
|
1086
|
+
warnings: u.warnings,
|
|
1087
|
+
hasFeedback: g,
|
|
1092
1088
|
// Already calculated
|
|
1093
|
-
validateStatus:
|
|
1094
|
-
name:
|
|
1095
|
-
},
|
|
1089
|
+
validateStatus: p,
|
|
1090
|
+
name: w
|
|
1091
|
+
}, F)))), !!L && /* @__PURE__ */ o.createElement("div", {
|
|
1096
1092
|
className: `${l}-margin-offset`,
|
|
1097
1093
|
style: {
|
|
1098
|
-
marginBottom: -
|
|
1094
|
+
marginBottom: -L
|
|
1099
1095
|
}
|
|
1100
1096
|
}));
|
|
1101
1097
|
}
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1098
|
+
const cn = "__SPLIT__";
|
|
1099
|
+
function un(e, t) {
|
|
1104
1100
|
const r = Object.keys(e), n = Object.keys(t);
|
|
1105
1101
|
return r.length === n.length && r.every((a) => {
|
|
1106
|
-
const
|
|
1107
|
-
return
|
|
1102
|
+
const c = e[a], m = t[a];
|
|
1103
|
+
return c === m || typeof c == "function" || typeof m == "function";
|
|
1108
1104
|
});
|
|
1109
1105
|
}
|
|
1110
|
-
const
|
|
1106
|
+
const mn = /* @__PURE__ */ o.memo(({
|
|
1111
1107
|
children: e
|
|
1112
|
-
}) => e, (e, t) =>
|
|
1113
|
-
function
|
|
1108
|
+
}) => e, (e, t) => un(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
|
|
1109
|
+
function Ne() {
|
|
1114
1110
|
return {
|
|
1115
1111
|
errors: [],
|
|
1116
1112
|
warnings: [],
|
|
@@ -1120,252 +1116,179 @@ function _e() {
|
|
|
1120
1116
|
validated: !1
|
|
1121
1117
|
};
|
|
1122
1118
|
}
|
|
1123
|
-
function
|
|
1119
|
+
function dn(e) {
|
|
1124
1120
|
const {
|
|
1125
1121
|
name: t,
|
|
1126
1122
|
noStyle: r,
|
|
1127
1123
|
className: n,
|
|
1128
1124
|
dependencies: a,
|
|
1129
|
-
prefixCls:
|
|
1125
|
+
prefixCls: c,
|
|
1130
1126
|
shouldUpdate: m,
|
|
1131
|
-
rules:
|
|
1127
|
+
rules: s,
|
|
1132
1128
|
children: f,
|
|
1133
|
-
required:
|
|
1134
|
-
label:
|
|
1129
|
+
required: u,
|
|
1130
|
+
label: g,
|
|
1135
1131
|
messageVariables: d,
|
|
1136
|
-
trigger:
|
|
1137
|
-
validateTrigger:
|
|
1138
|
-
hidden:
|
|
1139
|
-
help:
|
|
1140
|
-
layout:
|
|
1132
|
+
trigger: F = "onChange",
|
|
1133
|
+
validateTrigger: R,
|
|
1134
|
+
hidden: _,
|
|
1135
|
+
help: v,
|
|
1136
|
+
layout: b
|
|
1141
1137
|
} = e, {
|
|
1142
|
-
getPrefixCls:
|
|
1143
|
-
} = o.useContext(
|
|
1144
|
-
name:
|
|
1145
|
-
} = o.useContext(
|
|
1146
|
-
validateTrigger:
|
|
1147
|
-
} = o.useContext(
|
|
1148
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
1149
|
-
const
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
let
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1155
|
-
else if (
|
|
1156
|
-
const [
|
|
1157
|
-
|
|
1138
|
+
getPrefixCls: P
|
|
1139
|
+
} = o.useContext(Ve), {
|
|
1140
|
+
name: w
|
|
1141
|
+
} = o.useContext(U), i = Kt(f), l = typeof i == "function", $ = o.useContext(Me), {
|
|
1142
|
+
validateTrigger: M
|
|
1143
|
+
} = o.useContext(Ct), C = R !== void 0 ? R : M, S = t != null, h = P("form", c), O = he(h), [I, A, W] = ye(h, O), E = me("Form.Item");
|
|
1144
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && E(t !== null, "usage", "`null` is passed as `name` property");
|
|
1145
|
+
const L = o.useContext(xt), D = o.useRef(null), [T, Y] = Ut({}), [p, B] = $t(() => Ne()), z = (y) => {
|
|
1146
|
+
const V = L == null ? void 0 : L.getKey(y.name);
|
|
1147
|
+
if (B(y.destroy ? Ne() : y, !0), r && v !== !1 && $) {
|
|
1148
|
+
let j = y.name;
|
|
1149
|
+
if (y.destroy)
|
|
1150
|
+
j = D.current || j;
|
|
1151
|
+
else if (V !== void 0) {
|
|
1152
|
+
const [x, q] = V;
|
|
1153
|
+
j = [x].concat(H(q)), D.current = j;
|
|
1158
1154
|
}
|
|
1159
|
-
|
|
1155
|
+
$(y, j);
|
|
1160
1156
|
}
|
|
1161
|
-
},
|
|
1162
|
-
|
|
1163
|
-
const
|
|
1164
|
-
return
|
|
1157
|
+
}, re = (y, V) => {
|
|
1158
|
+
Y((j) => {
|
|
1159
|
+
const x = Object.assign({}, j), G = [].concat(H(y.name.slice(0, -1)), H(V)).join(cn);
|
|
1160
|
+
return y.destroy ? delete x[G] : x[G] = y, x;
|
|
1165
1161
|
});
|
|
1166
|
-
}, [
|
|
1167
|
-
const
|
|
1168
|
-
return Object.values(
|
|
1169
|
-
|
|
1170
|
-
}), [
|
|
1171
|
-
}, [
|
|
1172
|
-
function
|
|
1173
|
-
return r && !
|
|
1174
|
-
prefixCls:
|
|
1162
|
+
}, [X, oe] = o.useMemo(() => {
|
|
1163
|
+
const y = H(p.errors), V = H(p.warnings);
|
|
1164
|
+
return Object.values(T).forEach((j) => {
|
|
1165
|
+
y.push.apply(y, H(j.errors || [])), V.push.apply(V, H(j.warnings || []));
|
|
1166
|
+
}), [y, V];
|
|
1167
|
+
}, [T, p.errors, p.warnings]), Q = Yt();
|
|
1168
|
+
function ae(y, V, j) {
|
|
1169
|
+
return r && !_ ? /* @__PURE__ */ o.createElement(We, {
|
|
1170
|
+
prefixCls: h,
|
|
1175
1171
|
hasFeedback: e.hasFeedback,
|
|
1176
1172
|
validateStatus: e.validateStatus,
|
|
1177
|
-
meta:
|
|
1178
|
-
errors:
|
|
1179
|
-
warnings:
|
|
1173
|
+
meta: p,
|
|
1174
|
+
errors: X,
|
|
1175
|
+
warnings: oe,
|
|
1180
1176
|
noStyle: !0,
|
|
1181
1177
|
name: t
|
|
1182
|
-
},
|
|
1178
|
+
}, y) : /* @__PURE__ */ o.createElement(sn, Object.assign({
|
|
1183
1179
|
key: "row"
|
|
1184
1180
|
}, e, {
|
|
1185
|
-
className:
|
|
1186
|
-
prefixCls:
|
|
1187
|
-
fieldId:
|
|
1188
|
-
isRequired:
|
|
1189
|
-
errors:
|
|
1190
|
-
warnings:
|
|
1191
|
-
meta:
|
|
1192
|
-
onSubItemMetaChange:
|
|
1193
|
-
layout:
|
|
1181
|
+
className: K(n, W, O, A),
|
|
1182
|
+
prefixCls: h,
|
|
1183
|
+
fieldId: V,
|
|
1184
|
+
isRequired: j,
|
|
1185
|
+
errors: X,
|
|
1186
|
+
warnings: oe,
|
|
1187
|
+
meta: p,
|
|
1188
|
+
onSubItemMetaChange: re,
|
|
1189
|
+
layout: b,
|
|
1194
1190
|
name: t
|
|
1195
|
-
}),
|
|
1191
|
+
}), y);
|
|
1196
1192
|
}
|
|
1197
|
-
if (!
|
|
1198
|
-
return
|
|
1199
|
-
let
|
|
1200
|
-
return typeof
|
|
1201
|
-
messageVariables:
|
|
1202
|
-
trigger:
|
|
1203
|
-
validateTrigger:
|
|
1204
|
-
onMetaChange:
|
|
1205
|
-
}), (
|
|
1206
|
-
const
|
|
1207
|
-
if (
|
|
1193
|
+
if (!S && !l && !a)
|
|
1194
|
+
return I(ae(i));
|
|
1195
|
+
let J = {};
|
|
1196
|
+
return typeof g == "string" ? J.label = g : t && (J.label = String(t)), d && (J = Object.assign(Object.assign({}, J), d)), I(/* @__PURE__ */ o.createElement(Et, Object.assign({}, e, {
|
|
1197
|
+
messageVariables: J,
|
|
1198
|
+
trigger: F,
|
|
1199
|
+
validateTrigger: C,
|
|
1200
|
+
onMetaChange: z
|
|
1201
|
+
}), (y, V, j) => {
|
|
1202
|
+
const x = pe(t).length && V ? V.name : [], q = jt(x, w), G = u !== void 0 ? u : !!(s != null && s.some((N) => {
|
|
1203
|
+
if (N && typeof N == "object" && N.required && !N.warningOnly)
|
|
1208
1204
|
return !0;
|
|
1209
|
-
if (typeof
|
|
1210
|
-
const
|
|
1211
|
-
return (
|
|
1205
|
+
if (typeof N == "function") {
|
|
1206
|
+
const Z = N(j);
|
|
1207
|
+
return (Z == null ? void 0 : Z.required) && !(Z != null && Z.warningOnly);
|
|
1212
1208
|
}
|
|
1213
1209
|
return !1;
|
|
1214
|
-
})),
|
|
1215
|
-
let
|
|
1216
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1217
|
-
process.env.NODE_ENV !== "production" &&
|
|
1218
|
-
else if (l && (!(m || a) ||
|
|
1219
|
-
process.env.NODE_ENV !== "production" &&
|
|
1220
|
-
else if (a && !l && !
|
|
1221
|
-
process.env.NODE_ENV !== "production" &&
|
|
1222
|
-
else if (/* @__PURE__ */ o.isValidElement(
|
|
1223
|
-
process.env.NODE_ENV !== "production" &&
|
|
1224
|
-
const
|
|
1225
|
-
if (
|
|
1226
|
-
const
|
|
1227
|
-
(
|
|
1210
|
+
})), se = Object.assign({}, y);
|
|
1211
|
+
let le = null;
|
|
1212
|
+
if (process.env.NODE_ENV !== "production" && E(!(m && a), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(i) && S)
|
|
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 && (!(m || a) || S))
|
|
1215
|
+
process.env.NODE_ENV !== "production" && E(!!(m || 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
|
+
else if (a && !l && !S)
|
|
1217
|
+
process.env.NODE_ENV !== "production" && E(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
|
|
1218
|
+
else if (/* @__PURE__ */ o.isValidElement(i)) {
|
|
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
|
+
const N = Object.assign(Object.assign({}, i.props), se);
|
|
1221
|
+
if (N.id || (N.id = q), v || X.length > 0 || oe.length > 0 || e.extra) {
|
|
1222
|
+
const ee = [];
|
|
1223
|
+
(v || X.length > 0) && ee.push(`${q}_help`), e.extra && ee.push(`${q}_extra`), N["aria-describedby"] = ee.join(" ");
|
|
1228
1224
|
}
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
var
|
|
1232
|
-
(
|
|
1225
|
+
X.length > 0 && (N["aria-invalid"] = "true"), G && (N["aria-required"] = "true"), St(i) && (N.ref = Q(x, i)), new Set([].concat(H(pe(F)), H(pe(C)))).forEach((ee) => {
|
|
1226
|
+
N[ee] = (...ve) => {
|
|
1227
|
+
var Ce, xe, de, $e, fe;
|
|
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));
|
|
1233
1229
|
};
|
|
1234
1230
|
});
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1237
|
-
control:
|
|
1238
|
-
update:
|
|
1239
|
-
childProps:
|
|
1240
|
-
},
|
|
1241
|
-
} else l && (m || a) && !
|
|
1242
|
-
return le
|
|
1231
|
+
const Xe = [N["aria-required"], N["aria-invalid"], N["aria-describedby"]];
|
|
1232
|
+
le = /* @__PURE__ */ o.createElement(mn, {
|
|
1233
|
+
control: se,
|
|
1234
|
+
update: i,
|
|
1235
|
+
childProps: Xe
|
|
1236
|
+
}, Ot(i, N));
|
|
1237
|
+
} else l && (m || 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, q, G);
|
|
1243
1239
|
}));
|
|
1244
1240
|
}
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1247
|
-
var
|
|
1241
|
+
const Be = dn;
|
|
1242
|
+
Be.useStatus = Ae;
|
|
1243
|
+
var fn = function(e, t) {
|
|
1248
1244
|
var r = {};
|
|
1249
1245
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1250
1246
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
1251
1247
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
1252
1248
|
return r;
|
|
1253
1249
|
};
|
|
1254
|
-
const
|
|
1250
|
+
const pn = (e) => {
|
|
1255
1251
|
var {
|
|
1256
1252
|
prefixCls: t,
|
|
1257
1253
|
children: r
|
|
1258
|
-
} = e, n =
|
|
1254
|
+
} = e, n = fn(e, ["prefixCls", "children"]);
|
|
1259
1255
|
if (process.env.NODE_ENV !== "production") {
|
|
1260
|
-
const
|
|
1261
|
-
process.env.NODE_ENV !== "production" &&
|
|
1256
|
+
const s = me("Form.List");
|
|
1257
|
+
process.env.NODE_ENV !== "production" && s(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
|
|
1262
1258
|
}
|
|
1263
1259
|
const {
|
|
1264
1260
|
getPrefixCls: a
|
|
1265
|
-
} = o.useContext(
|
|
1266
|
-
prefixCls:
|
|
1261
|
+
} = o.useContext(Ve), c = a("form", t), m = o.useMemo(() => ({
|
|
1262
|
+
prefixCls: c,
|
|
1267
1263
|
status: "error"
|
|
1268
|
-
}), [
|
|
1269
|
-
return /* @__PURE__ */ o.createElement(
|
|
1264
|
+
}), [c]);
|
|
1265
|
+
return /* @__PURE__ */ o.createElement(It, Object.assign({}, n), (s, f, u) => /* @__PURE__ */ o.createElement(be.Provider, {
|
|
1270
1266
|
value: m
|
|
1271
|
-
}, r(
|
|
1272
|
-
fieldKey:
|
|
1267
|
+
}, r(s.map((g) => Object.assign(Object.assign({}, g), {
|
|
1268
|
+
fieldKey: g.key
|
|
1273
1269
|
})), f, {
|
|
1274
|
-
errors:
|
|
1275
|
-
warnings:
|
|
1270
|
+
errors: u.errors,
|
|
1271
|
+
warnings: u.warnings
|
|
1276
1272
|
})));
|
|
1277
1273
|
};
|
|
1278
|
-
function
|
|
1274
|
+
function gn() {
|
|
1279
1275
|
const {
|
|
1280
1276
|
form: e
|
|
1281
|
-
} = o.useContext(
|
|
1277
|
+
} = o.useContext(U);
|
|
1282
1278
|
return e;
|
|
1283
1279
|
}
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1280
|
+
const k = qe;
|
|
1281
|
+
k.Item = Be;
|
|
1282
|
+
k.List = pn;
|
|
1283
|
+
k.ErrorList = ze;
|
|
1284
|
+
k.useForm = Re;
|
|
1285
|
+
k.useFormInstance = gn;
|
|
1286
|
+
k.useWatch = wt;
|
|
1287
|
+
k.Provider = je;
|
|
1288
|
+
k.create = () => {
|
|
1293
1289
|
process.env.NODE_ENV !== "production" && Nt(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
|
|
1294
1290
|
};
|
|
1295
|
-
var Vn = function(e, t) {
|
|
1296
|
-
var r = {};
|
|
1297
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1298
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
1299
|
-
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
1300
|
-
return r;
|
|
1301
|
-
};
|
|
1302
|
-
const Rn = (e) => {
|
|
1303
|
-
const {
|
|
1304
|
-
prefixCls: t,
|
|
1305
|
-
className: r,
|
|
1306
|
-
closeIcon: n,
|
|
1307
|
-
closable: a,
|
|
1308
|
-
type: s,
|
|
1309
|
-
title: m,
|
|
1310
|
-
children: i,
|
|
1311
|
-
footer: f
|
|
1312
|
-
} = e, c = Vn(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
|
|
1313
|
-
getPrefixCls: p
|
|
1314
|
-
} = o.useContext(ve), d = p(), b = t || p("modal"), j = fe(d), [I, C, g] = Tt(b, j), O = `${b}-confirm`;
|
|
1315
|
-
let v = {};
|
|
1316
|
-
return s ? v = {
|
|
1317
|
-
closable: a ?? !1,
|
|
1318
|
-
title: "",
|
|
1319
|
-
footer: "",
|
|
1320
|
-
children: /* @__PURE__ */ o.createElement(At, Object.assign({}, e, {
|
|
1321
|
-
prefixCls: b,
|
|
1322
|
-
confirmPrefixCls: O,
|
|
1323
|
-
rootPrefixCls: d,
|
|
1324
|
-
content: i
|
|
1325
|
-
}))
|
|
1326
|
-
} : v = {
|
|
1327
|
-
closable: a ?? !0,
|
|
1328
|
-
title: m,
|
|
1329
|
-
footer: f !== null && /* @__PURE__ */ o.createElement(Wt, Object.assign({}, e)),
|
|
1330
|
-
children: i
|
|
1331
|
-
}, I(/* @__PURE__ */ o.createElement(qt, Object.assign({
|
|
1332
|
-
prefixCls: b,
|
|
1333
|
-
className: X(C, `${b}-pure-panel`, s && O, s && `${O}-${s}`, r, g, j)
|
|
1334
|
-
}, c, {
|
|
1335
|
-
closeIcon: Ht(b, n),
|
|
1336
|
-
closable: a
|
|
1337
|
-
}, v)));
|
|
1338
|
-
}, Dn = Mt(Rn);
|
|
1339
|
-
function Ue(e) {
|
|
1340
|
-
return ie(kt(e));
|
|
1341
|
-
}
|
|
1342
|
-
const H = Bt;
|
|
1343
|
-
H.useModal = Xt;
|
|
1344
|
-
H.info = function(t) {
|
|
1345
|
-
return ie(Gt(t));
|
|
1346
|
-
};
|
|
1347
|
-
H.success = function(t) {
|
|
1348
|
-
return ie(Kt(t));
|
|
1349
|
-
};
|
|
1350
|
-
H.error = function(t) {
|
|
1351
|
-
return ie(Ut(t));
|
|
1352
|
-
};
|
|
1353
|
-
H.warning = Ue;
|
|
1354
|
-
H.warn = Ue;
|
|
1355
|
-
H.confirm = function(t) {
|
|
1356
|
-
return ie(Yt(t));
|
|
1357
|
-
};
|
|
1358
|
-
H.destroyAll = function() {
|
|
1359
|
-
for (; Fe.length; ) {
|
|
1360
|
-
const t = Fe.pop();
|
|
1361
|
-
t && t();
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
H.config = Qt;
|
|
1365
|
-
H._InternalPanelDoNotUseOrYouWillBeFired = Dn;
|
|
1366
|
-
process.env.NODE_ENV !== "production" && (H.displayName = "Modal");
|
|
1367
1291
|
export {
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
Xe as R
|
|
1292
|
+
k as F,
|
|
1293
|
+
He as R
|
|
1371
1294
|
};
|