@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
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
import { a8 as H, ap as t, a7 as ar, ca as wr, ao as ir, bM as Br, a6 as $, bf as yr, bk as f, b0 as Er, bg as K } from "./embed-mf8t3QXh.js";
|
|
2
|
+
import u, { useRef as Y, cloneElement as Rr } from "react";
|
|
3
|
+
function nr(r) {
|
|
4
|
+
return H(r, {
|
|
5
|
+
inputAffixPadding: r.paddingXXS
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
const tr = (r) => {
|
|
9
|
+
const {
|
|
10
|
+
controlHeight: o,
|
|
11
|
+
fontSize: e,
|
|
12
|
+
lineHeight: a,
|
|
13
|
+
lineWidth: i,
|
|
14
|
+
controlHeightSM: b,
|
|
15
|
+
controlHeightLG: g,
|
|
16
|
+
fontSizeLG: d,
|
|
17
|
+
lineHeightLG: m,
|
|
18
|
+
paddingSM: h,
|
|
19
|
+
controlPaddingHorizontalSM: I,
|
|
20
|
+
controlPaddingHorizontal: j,
|
|
21
|
+
colorFillAlter: z,
|
|
22
|
+
colorPrimaryHover: T,
|
|
23
|
+
colorPrimary: S,
|
|
24
|
+
controlOutlineWidth: C,
|
|
25
|
+
controlOutline: A,
|
|
26
|
+
colorErrorOutline: B,
|
|
27
|
+
colorWarningOutline: p,
|
|
28
|
+
colorBgContainer: x,
|
|
29
|
+
inputFontSize: y,
|
|
30
|
+
inputFontSizeLG: F,
|
|
31
|
+
inputFontSizeSM: s
|
|
32
|
+
} = r, n = y || e, w = s || n, c = F || d, l = Math.round((o - n * a) / 2 * 10) / 10 - i, E = Math.round((b - w * a) / 2 * 10) / 10 - i, W = Math.ceil((g - c * m) / 2 * 10) / 10 - i;
|
|
33
|
+
return {
|
|
34
|
+
paddingBlock: Math.max(l, 0),
|
|
35
|
+
paddingBlockSM: Math.max(E, 0),
|
|
36
|
+
paddingBlockLG: Math.max(W, 0),
|
|
37
|
+
paddingInline: h - i,
|
|
38
|
+
paddingInlineSM: I - i,
|
|
39
|
+
paddingInlineLG: j - i,
|
|
40
|
+
addonBg: z,
|
|
41
|
+
activeBorderColor: S,
|
|
42
|
+
hoverBorderColor: T,
|
|
43
|
+
activeShadow: `0 0 0 ${C}px ${A}`,
|
|
44
|
+
errorActiveShadow: `0 0 0 ${C}px ${B}`,
|
|
45
|
+
warningActiveShadow: `0 0 0 ${C}px ${p}`,
|
|
46
|
+
hoverBg: x,
|
|
47
|
+
activeBg: x,
|
|
48
|
+
inputFontSize: n,
|
|
49
|
+
inputFontSizeLG: c,
|
|
50
|
+
inputFontSizeSM: w
|
|
51
|
+
};
|
|
52
|
+
}, Or = (r) => ({
|
|
53
|
+
borderColor: r.hoverBorderColor,
|
|
54
|
+
backgroundColor: r.hoverBg
|
|
55
|
+
}), N = (r) => ({
|
|
56
|
+
color: r.colorTextDisabled,
|
|
57
|
+
backgroundColor: r.colorBgContainerDisabled,
|
|
58
|
+
borderColor: r.colorBorder,
|
|
59
|
+
boxShadow: "none",
|
|
60
|
+
cursor: "not-allowed",
|
|
61
|
+
opacity: 1,
|
|
62
|
+
"input[disabled], textarea[disabled]": {
|
|
63
|
+
cursor: "not-allowed"
|
|
64
|
+
},
|
|
65
|
+
"&:hover:not([disabled])": Object.assign({}, Or(H(r, {
|
|
66
|
+
hoverBorderColor: r.colorBorder,
|
|
67
|
+
hoverBg: r.colorBgContainerDisabled
|
|
68
|
+
})))
|
|
69
|
+
}), lr = (r, o) => ({
|
|
70
|
+
background: r.colorBgContainer,
|
|
71
|
+
borderWidth: r.lineWidth,
|
|
72
|
+
borderStyle: r.lineType,
|
|
73
|
+
borderColor: o.borderColor,
|
|
74
|
+
"&:hover": {
|
|
75
|
+
borderColor: o.hoverBorderColor,
|
|
76
|
+
backgroundColor: r.hoverBg
|
|
77
|
+
},
|
|
78
|
+
"&:focus, &:focus-within": {
|
|
79
|
+
borderColor: o.activeBorderColor,
|
|
80
|
+
boxShadow: o.activeShadow,
|
|
81
|
+
outline: 0,
|
|
82
|
+
backgroundColor: r.activeBg
|
|
83
|
+
}
|
|
84
|
+
}), Z = (r, o) => ({
|
|
85
|
+
[`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, lr(r, o)), {
|
|
86
|
+
[`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
|
|
87
|
+
color: o.affixColor
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
[`&${r.componentCls}-status-${o.status}${r.componentCls}-disabled`]: {
|
|
91
|
+
borderColor: o.borderColor
|
|
92
|
+
}
|
|
93
|
+
}), Ir = (r, o) => ({
|
|
94
|
+
"&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, lr(r, {
|
|
95
|
+
borderColor: r.colorBorder,
|
|
96
|
+
hoverBorderColor: r.hoverBorderColor,
|
|
97
|
+
activeBorderColor: r.activeBorderColor,
|
|
98
|
+
activeShadow: r.activeShadow
|
|
99
|
+
})), {
|
|
100
|
+
[`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, N(r))
|
|
101
|
+
}), Z(r, {
|
|
102
|
+
status: "error",
|
|
103
|
+
borderColor: r.colorError,
|
|
104
|
+
hoverBorderColor: r.colorErrorBorderHover,
|
|
105
|
+
activeBorderColor: r.colorError,
|
|
106
|
+
activeShadow: r.errorActiveShadow,
|
|
107
|
+
affixColor: r.colorError
|
|
108
|
+
})), Z(r, {
|
|
109
|
+
status: "warning",
|
|
110
|
+
borderColor: r.colorWarning,
|
|
111
|
+
hoverBorderColor: r.colorWarningBorderHover,
|
|
112
|
+
activeBorderColor: r.colorWarning,
|
|
113
|
+
activeShadow: r.warningActiveShadow,
|
|
114
|
+
affixColor: r.colorWarning
|
|
115
|
+
})), o)
|
|
116
|
+
}), V = (r, o) => ({
|
|
117
|
+
[`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
|
|
118
|
+
[`${r.componentCls}-group-addon`]: {
|
|
119
|
+
borderColor: o.addonBorderColor,
|
|
120
|
+
color: o.addonColor
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}), jr = (r) => ({
|
|
124
|
+
"&-outlined": Object.assign(Object.assign(Object.assign({
|
|
125
|
+
[`${r.componentCls}-group`]: {
|
|
126
|
+
"&-addon": {
|
|
127
|
+
background: r.addonBg,
|
|
128
|
+
border: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
|
|
129
|
+
},
|
|
130
|
+
"&-addon:first-child": {
|
|
131
|
+
borderInlineEnd: 0
|
|
132
|
+
},
|
|
133
|
+
"&-addon:last-child": {
|
|
134
|
+
borderInlineStart: 0
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, V(r, {
|
|
138
|
+
status: "error",
|
|
139
|
+
addonBorderColor: r.colorError,
|
|
140
|
+
addonColor: r.colorErrorText
|
|
141
|
+
})), V(r, {
|
|
142
|
+
status: "warning",
|
|
143
|
+
addonBorderColor: r.colorWarning,
|
|
144
|
+
addonColor: r.colorWarningText
|
|
145
|
+
})), {
|
|
146
|
+
[`&${r.componentCls}-group-wrapper-disabled`]: {
|
|
147
|
+
[`${r.componentCls}-group-addon`]: Object.assign({}, N(r))
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
}), Wr = (r, o) => {
|
|
151
|
+
const {
|
|
152
|
+
componentCls: e
|
|
153
|
+
} = r;
|
|
154
|
+
return {
|
|
155
|
+
"&-borderless": Object.assign({
|
|
156
|
+
background: "transparent",
|
|
157
|
+
border: "none",
|
|
158
|
+
"&:focus, &:focus-within": {
|
|
159
|
+
outline: "none"
|
|
160
|
+
},
|
|
161
|
+
// >>>>> Disabled
|
|
162
|
+
[`&${e}-disabled, &[disabled]`]: {
|
|
163
|
+
color: r.colorTextDisabled,
|
|
164
|
+
cursor: "not-allowed"
|
|
165
|
+
},
|
|
166
|
+
// >>>>> Status
|
|
167
|
+
[`&${e}-status-error`]: {
|
|
168
|
+
"&, & input, & textarea": {
|
|
169
|
+
color: r.colorError
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
[`&${e}-status-warning`]: {
|
|
173
|
+
"&, & input, & textarea": {
|
|
174
|
+
color: r.colorWarning
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, o)
|
|
178
|
+
};
|
|
179
|
+
}, dr = (r, o) => {
|
|
180
|
+
var e;
|
|
181
|
+
return {
|
|
182
|
+
background: o.bg,
|
|
183
|
+
borderWidth: r.lineWidth,
|
|
184
|
+
borderStyle: r.lineType,
|
|
185
|
+
borderColor: "transparent",
|
|
186
|
+
"input&, & input, textarea&, & textarea": {
|
|
187
|
+
color: (e = o == null ? void 0 : o.inputColor) !== null && e !== void 0 ? e : "unset"
|
|
188
|
+
},
|
|
189
|
+
"&:hover": {
|
|
190
|
+
background: o.hoverBg
|
|
191
|
+
},
|
|
192
|
+
"&:focus, &:focus-within": {
|
|
193
|
+
outline: 0,
|
|
194
|
+
borderColor: o.activeBorderColor,
|
|
195
|
+
backgroundColor: r.activeBg
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}, k = (r, o) => ({
|
|
199
|
+
[`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, dr(r, o)), {
|
|
200
|
+
[`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
|
|
201
|
+
color: o.affixColor
|
|
202
|
+
}
|
|
203
|
+
})
|
|
204
|
+
}), Hr = (r, o) => ({
|
|
205
|
+
"&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, dr(r, {
|
|
206
|
+
bg: r.colorFillTertiary,
|
|
207
|
+
hoverBg: r.colorFillSecondary,
|
|
208
|
+
activeBorderColor: r.activeBorderColor
|
|
209
|
+
})), {
|
|
210
|
+
[`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, N(r))
|
|
211
|
+
}), k(r, {
|
|
212
|
+
status: "error",
|
|
213
|
+
bg: r.colorErrorBg,
|
|
214
|
+
hoverBg: r.colorErrorBgHover,
|
|
215
|
+
activeBorderColor: r.colorError,
|
|
216
|
+
inputColor: r.colorErrorText,
|
|
217
|
+
affixColor: r.colorError
|
|
218
|
+
})), k(r, {
|
|
219
|
+
status: "warning",
|
|
220
|
+
bg: r.colorWarningBg,
|
|
221
|
+
hoverBg: r.colorWarningBgHover,
|
|
222
|
+
activeBorderColor: r.colorWarning,
|
|
223
|
+
inputColor: r.colorWarningText,
|
|
224
|
+
affixColor: r.colorWarning
|
|
225
|
+
})), o)
|
|
226
|
+
}), rr = (r, o) => ({
|
|
227
|
+
[`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
|
|
228
|
+
[`${r.componentCls}-group-addon`]: {
|
|
229
|
+
background: o.addonBg,
|
|
230
|
+
color: o.addonColor
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}), zr = (r) => ({
|
|
234
|
+
"&-filled": Object.assign(Object.assign(Object.assign({
|
|
235
|
+
[`${r.componentCls}-group-addon`]: {
|
|
236
|
+
background: r.colorFillTertiary,
|
|
237
|
+
"&:last-child": {
|
|
238
|
+
position: "static"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}, rr(r, {
|
|
242
|
+
status: "error",
|
|
243
|
+
addonBg: r.colorErrorBg,
|
|
244
|
+
addonColor: r.colorErrorText
|
|
245
|
+
})), rr(r, {
|
|
246
|
+
status: "warning",
|
|
247
|
+
addonBg: r.colorWarningBg,
|
|
248
|
+
addonColor: r.colorWarningText
|
|
249
|
+
})), {
|
|
250
|
+
[`&${r.componentCls}-group-wrapper-disabled`]: {
|
|
251
|
+
[`${r.componentCls}-group`]: {
|
|
252
|
+
"&-addon": {
|
|
253
|
+
background: r.colorFillTertiary,
|
|
254
|
+
color: r.colorTextDisabled
|
|
255
|
+
},
|
|
256
|
+
"&-addon:first-child": {
|
|
257
|
+
borderInlineStart: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
|
|
258
|
+
borderTop: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
|
|
259
|
+
borderBottom: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
|
|
260
|
+
},
|
|
261
|
+
"&-addon:last-child": {
|
|
262
|
+
borderInlineEnd: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
|
|
263
|
+
borderTop: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
|
|
264
|
+
borderBottom: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
})
|
|
269
|
+
}), cr = (r, o) => ({
|
|
270
|
+
background: r.colorBgContainer,
|
|
271
|
+
borderWidth: `${t(r.lineWidth)} 0`,
|
|
272
|
+
borderStyle: `${r.lineType} none`,
|
|
273
|
+
borderColor: `transparent transparent ${o.borderColor} transparent`,
|
|
274
|
+
borderRadius: 0,
|
|
275
|
+
"&:hover": {
|
|
276
|
+
borderColor: `transparent transparent ${o.hoverBorderColor} transparent`,
|
|
277
|
+
backgroundColor: r.hoverBg
|
|
278
|
+
},
|
|
279
|
+
"&:focus, &:focus-within": {
|
|
280
|
+
borderColor: `transparent transparent ${o.activeBorderColor} transparent`,
|
|
281
|
+
outline: 0,
|
|
282
|
+
backgroundColor: r.activeBg
|
|
283
|
+
}
|
|
284
|
+
}), or = (r, o) => ({
|
|
285
|
+
[`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, cr(r, o)), {
|
|
286
|
+
[`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
|
|
287
|
+
color: o.affixColor
|
|
288
|
+
}
|
|
289
|
+
}),
|
|
290
|
+
[`&${r.componentCls}-status-${o.status}${r.componentCls}-disabled`]: {
|
|
291
|
+
borderColor: `transparent transparent ${o.borderColor} transparent`
|
|
292
|
+
}
|
|
293
|
+
}), Tr = (r, o) => ({
|
|
294
|
+
"&-underlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cr(r, {
|
|
295
|
+
borderColor: r.colorBorder,
|
|
296
|
+
hoverBorderColor: r.hoverBorderColor,
|
|
297
|
+
activeBorderColor: r.activeBorderColor,
|
|
298
|
+
activeShadow: r.activeShadow
|
|
299
|
+
})), {
|
|
300
|
+
// >>>>> Disabled
|
|
301
|
+
[`&${r.componentCls}-disabled, &[disabled]`]: {
|
|
302
|
+
color: r.colorTextDisabled,
|
|
303
|
+
boxShadow: "none",
|
|
304
|
+
cursor: "not-allowed",
|
|
305
|
+
"&:hover": {
|
|
306
|
+
borderColor: `transparent transparent ${r.colorBorder} transparent`
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"input[disabled], textarea[disabled]": {
|
|
310
|
+
cursor: "not-allowed"
|
|
311
|
+
}
|
|
312
|
+
}), or(r, {
|
|
313
|
+
status: "error",
|
|
314
|
+
borderColor: r.colorError,
|
|
315
|
+
hoverBorderColor: r.colorErrorBorderHover,
|
|
316
|
+
activeBorderColor: r.colorError,
|
|
317
|
+
activeShadow: r.errorActiveShadow,
|
|
318
|
+
affixColor: r.colorError
|
|
319
|
+
})), or(r, {
|
|
320
|
+
status: "warning",
|
|
321
|
+
borderColor: r.colorWarning,
|
|
322
|
+
hoverBorderColor: r.colorWarningBorderHover,
|
|
323
|
+
activeBorderColor: r.colorWarning,
|
|
324
|
+
activeShadow: r.warningActiveShadow,
|
|
325
|
+
affixColor: r.colorWarning
|
|
326
|
+
})), o)
|
|
327
|
+
}), Ar = (r) => ({
|
|
328
|
+
// Firefox
|
|
329
|
+
"&::-moz-placeholder": {
|
|
330
|
+
opacity: 1
|
|
331
|
+
},
|
|
332
|
+
"&::placeholder": {
|
|
333
|
+
color: r,
|
|
334
|
+
userSelect: "none"
|
|
335
|
+
// https://github.com/ant-design/ant-design/pull/32639
|
|
336
|
+
},
|
|
337
|
+
"&:placeholder-shown": {
|
|
338
|
+
textOverflow: "ellipsis"
|
|
339
|
+
}
|
|
340
|
+
}), sr = (r) => {
|
|
341
|
+
const {
|
|
342
|
+
paddingBlockLG: o,
|
|
343
|
+
lineHeightLG: e,
|
|
344
|
+
borderRadiusLG: a,
|
|
345
|
+
paddingInlineLG: i
|
|
346
|
+
} = r;
|
|
347
|
+
return {
|
|
348
|
+
padding: `${t(o)} ${t(i)}`,
|
|
349
|
+
fontSize: r.inputFontSizeLG,
|
|
350
|
+
lineHeight: e,
|
|
351
|
+
borderRadius: a
|
|
352
|
+
};
|
|
353
|
+
}, ur = (r) => ({
|
|
354
|
+
padding: `${t(r.paddingBlockSM)} ${t(r.paddingInlineSM)}`,
|
|
355
|
+
fontSize: r.inputFontSizeSM,
|
|
356
|
+
borderRadius: r.borderRadiusSM
|
|
357
|
+
}), gr = (r) => Object.assign(Object.assign({
|
|
358
|
+
position: "relative",
|
|
359
|
+
display: "inline-block",
|
|
360
|
+
width: "100%",
|
|
361
|
+
minWidth: 0,
|
|
362
|
+
padding: `${t(r.paddingBlock)} ${t(r.paddingInline)}`,
|
|
363
|
+
color: r.colorText,
|
|
364
|
+
fontSize: r.inputFontSize,
|
|
365
|
+
lineHeight: r.lineHeight,
|
|
366
|
+
borderRadius: r.borderRadius,
|
|
367
|
+
transition: `all ${r.motionDurationMid}`
|
|
368
|
+
}, Ar(r.colorTextPlaceholder)), {
|
|
369
|
+
// Size
|
|
370
|
+
"&-lg": Object.assign({}, sr(r)),
|
|
371
|
+
"&-sm": Object.assign({}, ur(r)),
|
|
372
|
+
// RTL
|
|
373
|
+
"&-rtl, &-textarea-rtl": {
|
|
374
|
+
direction: "rtl"
|
|
375
|
+
}
|
|
376
|
+
}), Fr = (r) => {
|
|
377
|
+
const {
|
|
378
|
+
componentCls: o,
|
|
379
|
+
antCls: e
|
|
380
|
+
} = r;
|
|
381
|
+
return {
|
|
382
|
+
position: "relative",
|
|
383
|
+
display: "table",
|
|
384
|
+
width: "100%",
|
|
385
|
+
borderCollapse: "separate",
|
|
386
|
+
borderSpacing: 0,
|
|
387
|
+
// Undo padding and float of grid classes
|
|
388
|
+
"&[class*='col-']": {
|
|
389
|
+
paddingInlineEnd: r.paddingXS,
|
|
390
|
+
"&:last-child": {
|
|
391
|
+
paddingInlineEnd: 0
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
// Sizing options
|
|
395
|
+
[`&-lg ${o}, &-lg > ${o}-group-addon`]: Object.assign({}, sr(r)),
|
|
396
|
+
[`&-sm ${o}, &-sm > ${o}-group-addon`]: Object.assign({}, ur(r)),
|
|
397
|
+
// Fix https://github.com/ant-design/ant-design/issues/5754
|
|
398
|
+
[`&-lg ${e}-select-single ${e}-select-selector`]: {
|
|
399
|
+
height: r.controlHeightLG
|
|
400
|
+
},
|
|
401
|
+
[`&-sm ${e}-select-single ${e}-select-selector`]: {
|
|
402
|
+
height: r.controlHeightSM
|
|
403
|
+
},
|
|
404
|
+
[`> ${o}`]: {
|
|
405
|
+
display: "table-cell",
|
|
406
|
+
"&:not(:first-child):not(:last-child)": {
|
|
407
|
+
borderRadius: 0
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
[`${o}-group`]: {
|
|
411
|
+
"&-addon, &-wrap": {
|
|
412
|
+
display: "table-cell",
|
|
413
|
+
width: 1,
|
|
414
|
+
whiteSpace: "nowrap",
|
|
415
|
+
verticalAlign: "middle",
|
|
416
|
+
"&:not(:first-child):not(:last-child)": {
|
|
417
|
+
borderRadius: 0
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"&-wrap > *": {
|
|
421
|
+
display: "block !important"
|
|
422
|
+
},
|
|
423
|
+
"&-addon": {
|
|
424
|
+
position: "relative",
|
|
425
|
+
padding: `0 ${t(r.paddingInline)}`,
|
|
426
|
+
color: r.colorText,
|
|
427
|
+
fontWeight: "normal",
|
|
428
|
+
fontSize: r.inputFontSize,
|
|
429
|
+
textAlign: "center",
|
|
430
|
+
borderRadius: r.borderRadius,
|
|
431
|
+
transition: `all ${r.motionDurationSlow}`,
|
|
432
|
+
lineHeight: 1,
|
|
433
|
+
// Reset Select's style in addon
|
|
434
|
+
[`${e}-select`]: {
|
|
435
|
+
margin: `${t(r.calc(r.paddingBlock).add(1).mul(-1).equal())} ${t(r.calc(r.paddingInline).mul(-1).equal())}`,
|
|
436
|
+
[`&${e}-select-single:not(${e}-select-customize-input):not(${e}-pagination-size-changer)`]: {
|
|
437
|
+
[`${e}-select-selector`]: {
|
|
438
|
+
backgroundColor: "inherit",
|
|
439
|
+
border: `${t(r.lineWidth)} ${r.lineType} transparent`,
|
|
440
|
+
boxShadow: "none"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
// https://github.com/ant-design/ant-design/issues/31333
|
|
445
|
+
[`${e}-cascader-picker`]: {
|
|
446
|
+
margin: `-9px ${t(r.calc(r.paddingInline).mul(-1).equal())}`,
|
|
447
|
+
backgroundColor: "transparent",
|
|
448
|
+
[`${e}-cascader-input`]: {
|
|
449
|
+
textAlign: "start",
|
|
450
|
+
border: 0,
|
|
451
|
+
boxShadow: "none"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
[o]: {
|
|
457
|
+
width: "100%",
|
|
458
|
+
marginBottom: 0,
|
|
459
|
+
textAlign: "inherit",
|
|
460
|
+
"&:focus": {
|
|
461
|
+
zIndex: 1,
|
|
462
|
+
// Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
|
|
463
|
+
borderInlineEndWidth: 1
|
|
464
|
+
},
|
|
465
|
+
"&:hover": {
|
|
466
|
+
zIndex: 1,
|
|
467
|
+
borderInlineEndWidth: 1,
|
|
468
|
+
[`${o}-search-with-button &`]: {
|
|
469
|
+
zIndex: 0
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
// Reset rounded corners
|
|
474
|
+
[`> ${o}:first-child, ${o}-group-addon:first-child`]: {
|
|
475
|
+
borderStartEndRadius: 0,
|
|
476
|
+
borderEndEndRadius: 0,
|
|
477
|
+
// Reset Select's style in addon
|
|
478
|
+
[`${e}-select ${e}-select-selector`]: {
|
|
479
|
+
borderStartEndRadius: 0,
|
|
480
|
+
borderEndEndRadius: 0
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
[`> ${o}-affix-wrapper`]: {
|
|
484
|
+
[`&:not(:first-child) ${o}`]: {
|
|
485
|
+
borderStartStartRadius: 0,
|
|
486
|
+
borderEndStartRadius: 0
|
|
487
|
+
},
|
|
488
|
+
[`&:not(:last-child) ${o}`]: {
|
|
489
|
+
borderStartEndRadius: 0,
|
|
490
|
+
borderEndEndRadius: 0
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
[`> ${o}:last-child, ${o}-group-addon:last-child`]: {
|
|
494
|
+
borderStartStartRadius: 0,
|
|
495
|
+
borderEndStartRadius: 0,
|
|
496
|
+
// Reset Select's style in addon
|
|
497
|
+
[`${e}-select ${e}-select-selector`]: {
|
|
498
|
+
borderStartStartRadius: 0,
|
|
499
|
+
borderEndStartRadius: 0
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
[`${o}-affix-wrapper`]: {
|
|
503
|
+
"&:not(:last-child)": {
|
|
504
|
+
borderStartEndRadius: 0,
|
|
505
|
+
borderEndEndRadius: 0,
|
|
506
|
+
[`${o}-search &`]: {
|
|
507
|
+
borderStartStartRadius: r.borderRadius,
|
|
508
|
+
borderEndStartRadius: r.borderRadius
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
[`&:not(:first-child), ${o}-search &:not(:first-child)`]: {
|
|
512
|
+
borderStartStartRadius: 0,
|
|
513
|
+
borderEndStartRadius: 0
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
[`&${o}-group-compact`]: Object.assign(Object.assign({
|
|
517
|
+
display: "block"
|
|
518
|
+
}, Br()), {
|
|
519
|
+
[`${o}-group-addon, ${o}-group-wrap, > ${o}`]: {
|
|
520
|
+
"&:not(:first-child):not(:last-child)": {
|
|
521
|
+
borderInlineEndWidth: r.lineWidth,
|
|
522
|
+
"&:hover, &:focus": {
|
|
523
|
+
zIndex: 1
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"& > *": {
|
|
528
|
+
display: "inline-flex",
|
|
529
|
+
float: "none",
|
|
530
|
+
verticalAlign: "top",
|
|
531
|
+
// https://github.com/ant-design/ant-design-pro/issues/139
|
|
532
|
+
borderRadius: 0
|
|
533
|
+
},
|
|
534
|
+
[`
|
|
535
|
+
& > ${o}-affix-wrapper,
|
|
536
|
+
& > ${o}-number-affix-wrapper,
|
|
537
|
+
& > ${e}-picker-range
|
|
538
|
+
`]: {
|
|
539
|
+
display: "inline-flex"
|
|
540
|
+
},
|
|
541
|
+
"& > *:not(:last-child)": {
|
|
542
|
+
marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
|
|
543
|
+
borderInlineEndWidth: r.lineWidth
|
|
544
|
+
},
|
|
545
|
+
// Undo float for .ant-input-group .ant-input
|
|
546
|
+
[o]: {
|
|
547
|
+
float: "none"
|
|
548
|
+
},
|
|
549
|
+
// reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
|
|
550
|
+
[`& > ${e}-select > ${e}-select-selector,
|
|
551
|
+
& > ${e}-select-auto-complete ${o},
|
|
552
|
+
& > ${e}-cascader-picker ${o},
|
|
553
|
+
& > ${o}-group-wrapper ${o}`]: {
|
|
554
|
+
borderInlineEndWidth: r.lineWidth,
|
|
555
|
+
borderRadius: 0,
|
|
556
|
+
"&:hover, &:focus": {
|
|
557
|
+
zIndex: 1
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
[`& > ${e}-select-focused`]: {
|
|
561
|
+
zIndex: 1
|
|
562
|
+
},
|
|
563
|
+
// update z-index for arrow icon
|
|
564
|
+
[`& > ${e}-select > ${e}-select-arrow`]: {
|
|
565
|
+
zIndex: 1
|
|
566
|
+
// https://github.com/ant-design/ant-design/issues/20371
|
|
567
|
+
},
|
|
568
|
+
[`& > *:first-child,
|
|
569
|
+
& > ${e}-select:first-child > ${e}-select-selector,
|
|
570
|
+
& > ${e}-select-auto-complete:first-child ${o},
|
|
571
|
+
& > ${e}-cascader-picker:first-child ${o}`]: {
|
|
572
|
+
borderStartStartRadius: r.borderRadius,
|
|
573
|
+
borderEndStartRadius: r.borderRadius
|
|
574
|
+
},
|
|
575
|
+
[`& > *:last-child,
|
|
576
|
+
& > ${e}-select:last-child > ${e}-select-selector,
|
|
577
|
+
& > ${e}-cascader-picker:last-child ${o},
|
|
578
|
+
& > ${e}-cascader-picker-focused:last-child ${o}`]: {
|
|
579
|
+
borderInlineEndWidth: r.lineWidth,
|
|
580
|
+
borderStartEndRadius: r.borderRadius,
|
|
581
|
+
borderEndEndRadius: r.borderRadius
|
|
582
|
+
},
|
|
583
|
+
// https://github.com/ant-design/ant-design/issues/12493
|
|
584
|
+
[`& > ${e}-select-auto-complete ${o}`]: {
|
|
585
|
+
verticalAlign: "top"
|
|
586
|
+
},
|
|
587
|
+
[`${o}-group-wrapper + ${o}-group-wrapper`]: {
|
|
588
|
+
marginInlineStart: r.calc(r.lineWidth).mul(-1).equal(),
|
|
589
|
+
[`${o}-affix-wrapper`]: {
|
|
590
|
+
borderRadius: 0
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
[`${o}-group-wrapper:not(:last-child)`]: {
|
|
594
|
+
[`&${o}-search > ${o}-group`]: {
|
|
595
|
+
[`& > ${o}-group-addon > ${o}-search-button`]: {
|
|
596
|
+
borderRadius: 0
|
|
597
|
+
},
|
|
598
|
+
[`& > ${o}`]: {
|
|
599
|
+
borderStartStartRadius: r.borderRadius,
|
|
600
|
+
borderStartEndRadius: 0,
|
|
601
|
+
borderEndEndRadius: 0,
|
|
602
|
+
borderEndStartRadius: r.borderRadius
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
})
|
|
607
|
+
};
|
|
608
|
+
}, Gr = (r) => {
|
|
609
|
+
const {
|
|
610
|
+
componentCls: o,
|
|
611
|
+
controlHeightSM: e,
|
|
612
|
+
lineWidth: a,
|
|
613
|
+
calc: i
|
|
614
|
+
} = r, g = i(e).sub(i(a).mul(2)).sub(16).div(2).equal();
|
|
615
|
+
return {
|
|
616
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ir(r)), gr(r)), Ir(r)), Hr(r)), Wr(r)), Tr(r)), {
|
|
617
|
+
'&[type="color"]': {
|
|
618
|
+
height: r.controlHeight,
|
|
619
|
+
[`&${o}-lg`]: {
|
|
620
|
+
height: r.controlHeightLG
|
|
621
|
+
},
|
|
622
|
+
[`&${o}-sm`]: {
|
|
623
|
+
height: e,
|
|
624
|
+
paddingTop: g,
|
|
625
|
+
paddingBottom: g
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
|
|
629
|
+
appearance: "none"
|
|
630
|
+
}
|
|
631
|
+
})
|
|
632
|
+
};
|
|
633
|
+
}, Mr = (r) => {
|
|
634
|
+
const {
|
|
635
|
+
componentCls: o
|
|
636
|
+
} = r;
|
|
637
|
+
return {
|
|
638
|
+
// ========================= Input =========================
|
|
639
|
+
[`${o}-clear-icon`]: {
|
|
640
|
+
margin: 0,
|
|
641
|
+
padding: 0,
|
|
642
|
+
lineHeight: 0,
|
|
643
|
+
color: r.colorTextQuaternary,
|
|
644
|
+
fontSize: r.fontSizeIcon,
|
|
645
|
+
verticalAlign: -1,
|
|
646
|
+
// https://github.com/ant-design/ant-design/pull/18151
|
|
647
|
+
// https://codesandbox.io/s/wizardly-sun-u10br
|
|
648
|
+
cursor: "pointer",
|
|
649
|
+
transition: `color ${r.motionDurationSlow}`,
|
|
650
|
+
border: "none",
|
|
651
|
+
outline: "none",
|
|
652
|
+
backgroundColor: "transparent",
|
|
653
|
+
"&:hover": {
|
|
654
|
+
color: r.colorIcon
|
|
655
|
+
},
|
|
656
|
+
"&:active": {
|
|
657
|
+
color: r.colorText
|
|
658
|
+
},
|
|
659
|
+
"&-hidden": {
|
|
660
|
+
visibility: "hidden"
|
|
661
|
+
},
|
|
662
|
+
"&-has-suffix": {
|
|
663
|
+
margin: `0 ${t(r.inputAffixPadding)}`
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
}, Lr = (r) => {
|
|
668
|
+
const {
|
|
669
|
+
componentCls: o,
|
|
670
|
+
inputAffixPadding: e,
|
|
671
|
+
colorTextDescription: a,
|
|
672
|
+
motionDurationSlow: i,
|
|
673
|
+
colorIcon: b,
|
|
674
|
+
colorIconHover: g,
|
|
675
|
+
iconCls: d
|
|
676
|
+
} = r, m = `${o}-affix-wrapper`, h = `${o}-affix-wrapper-disabled`;
|
|
677
|
+
return {
|
|
678
|
+
[m]: Object.assign(Object.assign(Object.assign(Object.assign({}, gr(r)), {
|
|
679
|
+
display: "inline-flex",
|
|
680
|
+
[`&:not(${o}-disabled):hover`]: {
|
|
681
|
+
zIndex: 1,
|
|
682
|
+
[`${o}-search-with-button &`]: {
|
|
683
|
+
zIndex: 0
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"&-focused, &:focus": {
|
|
687
|
+
zIndex: 1
|
|
688
|
+
},
|
|
689
|
+
[`> input${o}`]: {
|
|
690
|
+
padding: 0
|
|
691
|
+
},
|
|
692
|
+
[`> input${o}, > textarea${o}`]: {
|
|
693
|
+
fontSize: "inherit",
|
|
694
|
+
border: "none",
|
|
695
|
+
borderRadius: 0,
|
|
696
|
+
outline: "none",
|
|
697
|
+
background: "transparent",
|
|
698
|
+
color: "inherit",
|
|
699
|
+
"&::-ms-reveal": {
|
|
700
|
+
display: "none"
|
|
701
|
+
},
|
|
702
|
+
"&:focus": {
|
|
703
|
+
boxShadow: "none !important"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"&::before": {
|
|
707
|
+
display: "inline-block",
|
|
708
|
+
width: 0,
|
|
709
|
+
visibility: "hidden",
|
|
710
|
+
content: '"\\a0"'
|
|
711
|
+
},
|
|
712
|
+
[o]: {
|
|
713
|
+
"&-prefix, &-suffix": {
|
|
714
|
+
display: "flex",
|
|
715
|
+
flex: "none",
|
|
716
|
+
alignItems: "center",
|
|
717
|
+
"> *:not(:last-child)": {
|
|
718
|
+
marginInlineEnd: r.paddingXS
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"&-show-count-suffix": {
|
|
722
|
+
color: a,
|
|
723
|
+
direction: "ltr"
|
|
724
|
+
},
|
|
725
|
+
"&-show-count-has-suffix": {
|
|
726
|
+
marginInlineEnd: r.paddingXXS
|
|
727
|
+
},
|
|
728
|
+
"&-prefix": {
|
|
729
|
+
marginInlineEnd: e
|
|
730
|
+
},
|
|
731
|
+
"&-suffix": {
|
|
732
|
+
marginInlineStart: e
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}), Mr(r)), {
|
|
736
|
+
// password
|
|
737
|
+
[`${d}${o}-password-icon`]: {
|
|
738
|
+
color: b,
|
|
739
|
+
cursor: "pointer",
|
|
740
|
+
transition: `all ${i}`,
|
|
741
|
+
"&:hover": {
|
|
742
|
+
color: g
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}),
|
|
746
|
+
// 覆盖 affix-wrapper borderRadius!
|
|
747
|
+
[`${o}-underlined`]: {
|
|
748
|
+
borderRadius: 0
|
|
749
|
+
},
|
|
750
|
+
[h]: {
|
|
751
|
+
// password disabled
|
|
752
|
+
[`${d}${o}-password-icon`]: {
|
|
753
|
+
color: b,
|
|
754
|
+
cursor: "not-allowed",
|
|
755
|
+
"&:hover": {
|
|
756
|
+
color: b
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
}, Dr = (r) => {
|
|
762
|
+
const {
|
|
763
|
+
componentCls: o,
|
|
764
|
+
borderRadiusLG: e,
|
|
765
|
+
borderRadiusSM: a
|
|
766
|
+
} = r;
|
|
767
|
+
return {
|
|
768
|
+
[`${o}-group`]: Object.assign(Object.assign(Object.assign({}, ir(r)), Fr(r)), {
|
|
769
|
+
"&-rtl": {
|
|
770
|
+
direction: "rtl"
|
|
771
|
+
},
|
|
772
|
+
"&-wrapper": Object.assign(Object.assign(Object.assign({
|
|
773
|
+
display: "inline-block",
|
|
774
|
+
width: "100%",
|
|
775
|
+
textAlign: "start",
|
|
776
|
+
verticalAlign: "top",
|
|
777
|
+
"&-rtl": {
|
|
778
|
+
direction: "rtl"
|
|
779
|
+
},
|
|
780
|
+
// Size
|
|
781
|
+
"&-lg": {
|
|
782
|
+
[`${o}-group-addon`]: {
|
|
783
|
+
borderRadius: e,
|
|
784
|
+
fontSize: r.inputFontSizeLG
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"&-sm": {
|
|
788
|
+
[`${o}-group-addon`]: {
|
|
789
|
+
borderRadius: a
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}, jr(r)), zr(r)), {
|
|
793
|
+
// '&-disabled': {
|
|
794
|
+
// [`${componentCls}-group-addon`]: {
|
|
795
|
+
// ...genDisabledStyle(token),
|
|
796
|
+
// },
|
|
797
|
+
// },
|
|
798
|
+
// Fix the issue of using icons in Space Compact mode
|
|
799
|
+
// https://github.com/ant-design/ant-design/issues/42122
|
|
800
|
+
[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]: {
|
|
801
|
+
[`${o}, ${o}-group-addon`]: {
|
|
802
|
+
borderRadius: 0
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
[`&:not(${o}-compact-last-item)${o}-compact-first-item`]: {
|
|
806
|
+
[`${o}, ${o}-group-addon`]: {
|
|
807
|
+
borderStartEndRadius: 0,
|
|
808
|
+
borderEndEndRadius: 0
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
[`&:not(${o}-compact-first-item)${o}-compact-last-item`]: {
|
|
812
|
+
[`${o}, ${o}-group-addon`]: {
|
|
813
|
+
borderStartStartRadius: 0,
|
|
814
|
+
borderEndStartRadius: 0
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
// Fix the issue of input use show-count param in space compact mode
|
|
818
|
+
// https://github.com/ant-design/ant-design/issues/46872
|
|
819
|
+
[`&:not(${o}-compact-last-item)${o}-compact-item`]: {
|
|
820
|
+
[`${o}-affix-wrapper`]: {
|
|
821
|
+
borderStartEndRadius: 0,
|
|
822
|
+
borderEndEndRadius: 0
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
// Fix the issue of input use `addonAfter` param in space compact mode
|
|
826
|
+
// https://github.com/ant-design/ant-design/issues/52483
|
|
827
|
+
[`&:not(${o}-compact-first-item)${o}-compact-item`]: {
|
|
828
|
+
[`${o}-affix-wrapper`]: {
|
|
829
|
+
borderStartStartRadius: 0,
|
|
830
|
+
borderEndStartRadius: 0
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
})
|
|
834
|
+
})
|
|
835
|
+
};
|
|
836
|
+
}, Nr = (r) => {
|
|
837
|
+
const {
|
|
838
|
+
componentCls: o,
|
|
839
|
+
antCls: e
|
|
840
|
+
} = r, a = `${o}-search`;
|
|
841
|
+
return {
|
|
842
|
+
[a]: {
|
|
843
|
+
[o]: {
|
|
844
|
+
"&:not([disabled]):hover, &:not([disabled]):focus": {
|
|
845
|
+
[`+ ${o}-group-addon ${a}-button:not(${e}-btn-color-primary):not(${e}-btn-variant-text)`]: {
|
|
846
|
+
borderInlineStartColor: r.colorPrimaryHover
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
[`${o}-affix-wrapper`]: {
|
|
851
|
+
height: r.controlHeight,
|
|
852
|
+
borderRadius: 0
|
|
853
|
+
},
|
|
854
|
+
// fix slight height diff in Firefox:
|
|
855
|
+
// https://ant.design/components/auto-complete-cn/#auto-complete-demo-certain-category
|
|
856
|
+
[`${o}-lg`]: {
|
|
857
|
+
lineHeight: r.calc(r.lineHeightLG).sub(2e-4).equal()
|
|
858
|
+
},
|
|
859
|
+
[`> ${o}-group`]: {
|
|
860
|
+
[`> ${o}-group-addon:last-child`]: {
|
|
861
|
+
insetInlineStart: -1,
|
|
862
|
+
padding: 0,
|
|
863
|
+
border: 0,
|
|
864
|
+
[`${a}-button`]: {
|
|
865
|
+
// Fix https://github.com/ant-design/ant-design/issues/47150
|
|
866
|
+
marginInlineEnd: -1,
|
|
867
|
+
borderStartStartRadius: 0,
|
|
868
|
+
borderEndStartRadius: 0,
|
|
869
|
+
boxShadow: "none"
|
|
870
|
+
},
|
|
871
|
+
[`${a}-button:not(${e}-btn-color-primary)`]: {
|
|
872
|
+
color: r.colorTextDescription,
|
|
873
|
+
"&:not([disabled]):hover": {
|
|
874
|
+
color: r.colorPrimaryHover
|
|
875
|
+
},
|
|
876
|
+
"&:active": {
|
|
877
|
+
color: r.colorPrimaryActive
|
|
878
|
+
},
|
|
879
|
+
[`&${e}-btn-loading::before`]: {
|
|
880
|
+
inset: 0
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
[`${a}-button`]: {
|
|
886
|
+
height: r.controlHeight,
|
|
887
|
+
"&:hover, &:focus": {
|
|
888
|
+
zIndex: 1
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"&-large": {
|
|
892
|
+
[`${o}-affix-wrapper, ${a}-button`]: {
|
|
893
|
+
height: r.controlHeightLG
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"&-small": {
|
|
897
|
+
[`${o}-affix-wrapper, ${a}-button`]: {
|
|
898
|
+
height: r.controlHeightSM
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"&-rtl": {
|
|
902
|
+
direction: "rtl"
|
|
903
|
+
},
|
|
904
|
+
// ===================== Compact Item Customized Styles =====================
|
|
905
|
+
[`&${o}-compact-item`]: {
|
|
906
|
+
[`&:not(${o}-compact-last-item)`]: {
|
|
907
|
+
[`${o}-group-addon`]: {
|
|
908
|
+
[`${o}-search-button`]: {
|
|
909
|
+
marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
|
|
910
|
+
borderRadius: 0
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
[`&:not(${o}-compact-first-item)`]: {
|
|
915
|
+
[`${o},${o}-affix-wrapper`]: {
|
|
916
|
+
borderRadius: 0
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
[`> ${o}-group-addon ${o}-search-button,
|
|
920
|
+
> ${o},
|
|
921
|
+
${o}-affix-wrapper`]: {
|
|
922
|
+
"&:hover, &:focus, &:active": {
|
|
923
|
+
zIndex: 2
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
[`> ${o}-affix-wrapper-focused`]: {
|
|
927
|
+
zIndex: 2
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
}, _r = (r) => {
|
|
933
|
+
const {
|
|
934
|
+
componentCls: o
|
|
935
|
+
} = r;
|
|
936
|
+
return {
|
|
937
|
+
[`${o}-out-of-range`]: {
|
|
938
|
+
[`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]: {
|
|
939
|
+
color: r.colorError
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
}, Qr = ar(["Input", "Shared"], (r) => {
|
|
944
|
+
const o = H(r, nr(r));
|
|
945
|
+
return [Gr(o), Lr(o)];
|
|
946
|
+
}, tr, {
|
|
947
|
+
resetFont: !1
|
|
948
|
+
}), Jr = ar(["Input", "Component"], (r) => {
|
|
949
|
+
const o = H(r, nr(r));
|
|
950
|
+
return [
|
|
951
|
+
Dr(o),
|
|
952
|
+
Nr(o),
|
|
953
|
+
_r(o),
|
|
954
|
+
// =====================================================
|
|
955
|
+
// == Space Compact ==
|
|
956
|
+
// =====================================================
|
|
957
|
+
wr(o)
|
|
958
|
+
];
|
|
959
|
+
}, tr, {
|
|
960
|
+
resetFont: !1
|
|
961
|
+
});
|
|
962
|
+
function Pr(r) {
|
|
963
|
+
return !!(r.addonBefore || r.addonAfter);
|
|
964
|
+
}
|
|
965
|
+
function qr(r) {
|
|
966
|
+
return !!(r.prefix || r.suffix || r.allowClear);
|
|
967
|
+
}
|
|
968
|
+
function er(r, o, e) {
|
|
969
|
+
var a = o.cloneNode(!0), i = Object.create(r, {
|
|
970
|
+
target: {
|
|
971
|
+
value: a
|
|
972
|
+
},
|
|
973
|
+
currentTarget: {
|
|
974
|
+
value: a
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
return a.value = e, typeof o.selectionStart == "number" && typeof o.selectionEnd == "number" && (a.selectionStart = o.selectionStart, a.selectionEnd = o.selectionEnd), a.setSelectionRange = function() {
|
|
978
|
+
o.setSelectionRange.apply(o, arguments);
|
|
979
|
+
}, i;
|
|
980
|
+
}
|
|
981
|
+
function Kr(r, o, e, a) {
|
|
982
|
+
if (e) {
|
|
983
|
+
var i = o;
|
|
984
|
+
if (o.type === "click") {
|
|
985
|
+
i = er(o, r, ""), e(i);
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
if (r.type !== "file" && a !== void 0) {
|
|
989
|
+
i = er(o, r, a), e(i);
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
e(i);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
function Yr(r, o) {
|
|
996
|
+
if (r) {
|
|
997
|
+
r.focus(o);
|
|
998
|
+
var e = o || {}, a = e.cursor;
|
|
999
|
+
if (a) {
|
|
1000
|
+
var i = r.value.length;
|
|
1001
|
+
switch (a) {
|
|
1002
|
+
case "start":
|
|
1003
|
+
r.setSelectionRange(0, 0);
|
|
1004
|
+
break;
|
|
1005
|
+
case "end":
|
|
1006
|
+
r.setSelectionRange(i, i);
|
|
1007
|
+
break;
|
|
1008
|
+
default:
|
|
1009
|
+
r.setSelectionRange(0, i);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
var Zr = /* @__PURE__ */ u.forwardRef(function(r, o) {
|
|
1015
|
+
var e, a, i, b = r.inputElement, g = r.children, d = r.prefixCls, m = r.prefix, h = r.suffix, I = r.addonBefore, j = r.addonAfter, z = r.className, T = r.style, S = r.disabled, C = r.readOnly, A = r.focused, B = r.triggerFocus, p = r.allowClear, x = r.value, y = r.handleReset, F = r.hidden, s = r.classes, n = r.classNames, w = r.dataAttrs, c = r.styles, l = r.components, E = r.onClear, W = g ?? b, pr = (l == null ? void 0 : l.affixWrapper) || "span", br = (l == null ? void 0 : l.groupWrapper) || "span", hr = (l == null ? void 0 : l.wrapper) || "span", _ = (l == null ? void 0 : l.groupAddon) || "span", G = Y(null), $r = function(O) {
|
|
1016
|
+
var D;
|
|
1017
|
+
(D = G.current) !== null && D !== void 0 && D.contains(O.target) && (B == null || B());
|
|
1018
|
+
}, P = qr(r), v = /* @__PURE__ */ Rr(W, {
|
|
1019
|
+
value: x,
|
|
1020
|
+
className: $((e = W.props) === null || e === void 0 ? void 0 : e.className, !P && (n == null ? void 0 : n.variant)) || null
|
|
1021
|
+
}), q = Y(null);
|
|
1022
|
+
if (u.useImperativeHandle(o, function() {
|
|
1023
|
+
return {
|
|
1024
|
+
nativeElement: q.current || G.current
|
|
1025
|
+
};
|
|
1026
|
+
}), P) {
|
|
1027
|
+
var X = null;
|
|
1028
|
+
if (p) {
|
|
1029
|
+
var fr = !S && !C && x, M = "".concat(d, "-clear-icon"), vr = yr(p) === "object" && p !== null && p !== void 0 && p.clearIcon ? p.clearIcon : "✖";
|
|
1030
|
+
X = /* @__PURE__ */ u.createElement("button", {
|
|
1031
|
+
type: "button",
|
|
1032
|
+
tabIndex: -1,
|
|
1033
|
+
onClick: function(O) {
|
|
1034
|
+
y == null || y(O), E == null || E();
|
|
1035
|
+
},
|
|
1036
|
+
onMouseDown: function(O) {
|
|
1037
|
+
return O.preventDefault();
|
|
1038
|
+
},
|
|
1039
|
+
className: $(M, f(f({}, "".concat(M, "-hidden"), !fr), "".concat(M, "-has-suffix"), !!h))
|
|
1040
|
+
}, vr);
|
|
1041
|
+
}
|
|
1042
|
+
var R = "".concat(d, "-affix-wrapper"), mr = $(R, f(f(f(f(f({}, "".concat(d, "-disabled"), S), "".concat(R, "-disabled"), S), "".concat(R, "-focused"), A), "".concat(R, "-readonly"), C), "".concat(R, "-input-with-clear-btn"), h && p && x), s == null ? void 0 : s.affixWrapper, n == null ? void 0 : n.affixWrapper, n == null ? void 0 : n.variant), Sr = (h || p) && /* @__PURE__ */ u.createElement("span", {
|
|
1043
|
+
className: $("".concat(d, "-suffix"), n == null ? void 0 : n.suffix),
|
|
1044
|
+
style: c == null ? void 0 : c.suffix
|
|
1045
|
+
}, X, h);
|
|
1046
|
+
v = /* @__PURE__ */ u.createElement(pr, Er({
|
|
1047
|
+
className: mr,
|
|
1048
|
+
style: c == null ? void 0 : c.affixWrapper,
|
|
1049
|
+
onClick: $r
|
|
1050
|
+
}, w == null ? void 0 : w.affixWrapper, {
|
|
1051
|
+
ref: G
|
|
1052
|
+
}), m && /* @__PURE__ */ u.createElement("span", {
|
|
1053
|
+
className: $("".concat(d, "-prefix"), n == null ? void 0 : n.prefix),
|
|
1054
|
+
style: c == null ? void 0 : c.prefix
|
|
1055
|
+
}, m), v, Sr);
|
|
1056
|
+
}
|
|
1057
|
+
if (Pr(r)) {
|
|
1058
|
+
var L = "".concat(d, "-group"), U = "".concat(L, "-addon"), Q = "".concat(L, "-wrapper"), Cr = $("".concat(d, "-wrapper"), L, s == null ? void 0 : s.wrapper, n == null ? void 0 : n.wrapper), xr = $(Q, f({}, "".concat(Q, "-disabled"), S), s == null ? void 0 : s.group, n == null ? void 0 : n.groupWrapper);
|
|
1059
|
+
v = /* @__PURE__ */ u.createElement(br, {
|
|
1060
|
+
className: xr,
|
|
1061
|
+
ref: q
|
|
1062
|
+
}, /* @__PURE__ */ u.createElement(hr, {
|
|
1063
|
+
className: Cr
|
|
1064
|
+
}, I && /* @__PURE__ */ u.createElement(_, {
|
|
1065
|
+
className: U
|
|
1066
|
+
}, I), v, j && /* @__PURE__ */ u.createElement(_, {
|
|
1067
|
+
className: U
|
|
1068
|
+
}, j)));
|
|
1069
|
+
}
|
|
1070
|
+
return /* @__PURE__ */ u.cloneElement(v, {
|
|
1071
|
+
className: $((a = v.props) === null || a === void 0 ? void 0 : a.className, z) || null,
|
|
1072
|
+
style: K(K({}, (i = v.props) === null || i === void 0 ? void 0 : i.style), T),
|
|
1073
|
+
hidden: F
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
export {
|
|
1077
|
+
Zr as B,
|
|
1078
|
+
Jr as a,
|
|
1079
|
+
nr as b,
|
|
1080
|
+
Ir as c,
|
|
1081
|
+
Hr as d,
|
|
1082
|
+
Tr as e,
|
|
1083
|
+
Wr as f,
|
|
1084
|
+
gr as g,
|
|
1085
|
+
Ar as h,
|
|
1086
|
+
tr as i,
|
|
1087
|
+
Fr as j,
|
|
1088
|
+
jr as k,
|
|
1089
|
+
zr as l,
|
|
1090
|
+
lr as m,
|
|
1091
|
+
N as n,
|
|
1092
|
+
ur as o,
|
|
1093
|
+
Kr as r,
|
|
1094
|
+
Yr as t,
|
|
1095
|
+
Qr as u
|
|
1096
|
+
};
|