@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,1987 @@
|
|
|
1
|
+
import { jsx as l, Fragment as Y, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { bh as qe, a6 as F, bk as V, bg as Ae, b0 as ae, bH as Te, ap as c, bJ as ot, a7 as He, a8 as Be, ao as je, bt as lt, aq as Me, aT as Le, ar as at, aK as ct, aA as st, cO as dt, a9 as We, ah as mt, b3 as ut, aG as pt, r as fe, R as gt, ab as te, a as ht, A as ft, B as de, S as bt } from "./embed-mf8t3QXh.js";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import Ne, { useState as G, useRef as k, useCallback as $t, useEffect as Oe } from "react";
|
|
5
|
+
import { T as x } from "./index-Bw4M9KLv.js";
|
|
6
|
+
import { D as g } from "./index-BvJ35WL3.js";
|
|
7
|
+
import { T as ue } from "./index-CtqUgNxs.js";
|
|
8
|
+
import { C as Ve } from "./Collapse-B77SsmFh.js";
|
|
9
|
+
import { M as St } from "./index-B12ZggsE.js";
|
|
10
|
+
import { A as pe } from "./index-B7SfTpox.js";
|
|
11
|
+
import { F as me } from "./index-BkTegt8T.js";
|
|
12
|
+
import { I as De } from "./index-2SysmGHo.js";
|
|
13
|
+
import { D as vt } from "./index-DhSCFLtV.js";
|
|
14
|
+
import { S as It } from "./index-QZ9JPfVR.js";
|
|
15
|
+
import { a as yt } from "./useBreakpoint-Cul9y9Cu.js";
|
|
16
|
+
import { P as Ct } from "./progress-CZxOOnIs.js";
|
|
17
|
+
import { T as Et } from "./index-zXwXfn-X.js";
|
|
18
|
+
var Tt = ["className", "prefixCls", "style", "active", "status", "iconPrefix", "icon", "wrapperStyle", "stepNumber", "disabled", "description", "title", "subTitle", "progressDot", "stepIcon", "tailContent", "icons", "stepIndex", "onStepClick", "onClick", "render"];
|
|
19
|
+
function Pe(e) {
|
|
20
|
+
return typeof e == "string";
|
|
21
|
+
}
|
|
22
|
+
function Ue(e) {
|
|
23
|
+
var t, i = e.className, n = e.prefixCls, r = e.style, o = e.active, a = e.status, p = e.iconPrefix, u = e.icon;
|
|
24
|
+
e.wrapperStyle;
|
|
25
|
+
var s = e.stepNumber, d = e.disabled, m = e.description, b = e.title, v = e.subTitle, C = e.progressDot, z = e.stepIcon, _ = e.tailContent, S = e.icons, D = e.stepIndex, I = e.onStepClick, P = e.onClick, $ = e.render, N = qe(e, Tt), R = !!I && !d, q = {};
|
|
26
|
+
R && (q.role = "button", q.tabIndex = 0, q.onClick = function(j) {
|
|
27
|
+
P == null || P(j), I(D);
|
|
28
|
+
}, q.onKeyDown = function(j) {
|
|
29
|
+
var E = j.which;
|
|
30
|
+
(E === Te.ENTER || E === Te.SPACE) && I(D);
|
|
31
|
+
});
|
|
32
|
+
var X = function() {
|
|
33
|
+
var E, T, U = F("".concat(n, "-icon"), "".concat(p, "icon"), (E = {}, V(E, "".concat(p, "icon-").concat(u), u && Pe(u)), V(E, "".concat(p, "icon-check"), !u && a === "finish" && (S && !S.finish || !S)), V(E, "".concat(p, "icon-cross"), !u && a === "error" && (S && !S.error || !S)), E)), K = /* @__PURE__ */ h.createElement("span", {
|
|
34
|
+
className: "".concat(n, "-icon-dot")
|
|
35
|
+
});
|
|
36
|
+
return C ? typeof C == "function" ? T = /* @__PURE__ */ h.createElement("span", {
|
|
37
|
+
className: "".concat(n, "-icon")
|
|
38
|
+
}, C(K, {
|
|
39
|
+
index: s - 1,
|
|
40
|
+
status: a,
|
|
41
|
+
title: b,
|
|
42
|
+
description: m
|
|
43
|
+
})) : T = /* @__PURE__ */ h.createElement("span", {
|
|
44
|
+
className: "".concat(n, "-icon")
|
|
45
|
+
}, K) : u && !Pe(u) ? T = /* @__PURE__ */ h.createElement("span", {
|
|
46
|
+
className: "".concat(n, "-icon")
|
|
47
|
+
}, u) : S && S.finish && a === "finish" ? T = /* @__PURE__ */ h.createElement("span", {
|
|
48
|
+
className: "".concat(n, "-icon")
|
|
49
|
+
}, S.finish) : S && S.error && a === "error" ? T = /* @__PURE__ */ h.createElement("span", {
|
|
50
|
+
className: "".concat(n, "-icon")
|
|
51
|
+
}, S.error) : u || a === "finish" || a === "error" ? T = /* @__PURE__ */ h.createElement("span", {
|
|
52
|
+
className: U
|
|
53
|
+
}) : T = /* @__PURE__ */ h.createElement("span", {
|
|
54
|
+
className: "".concat(n, "-icon")
|
|
55
|
+
}, s), z && (T = z({
|
|
56
|
+
index: s - 1,
|
|
57
|
+
status: a,
|
|
58
|
+
title: b,
|
|
59
|
+
description: m,
|
|
60
|
+
node: T
|
|
61
|
+
})), T;
|
|
62
|
+
}, y = a || "wait", w = F("".concat(n, "-item"), "".concat(n, "-item-").concat(y), i, (t = {}, V(t, "".concat(n, "-item-custom"), u), V(t, "".concat(n, "-item-active"), o), V(t, "".concat(n, "-item-disabled"), d === !0), t)), H = Ae({}, r), O = /* @__PURE__ */ h.createElement("div", ae({}, N, {
|
|
63
|
+
className: w,
|
|
64
|
+
style: H
|
|
65
|
+
}), /* @__PURE__ */ h.createElement("div", ae({
|
|
66
|
+
onClick: P
|
|
67
|
+
}, q, {
|
|
68
|
+
className: "".concat(n, "-item-container")
|
|
69
|
+
}), /* @__PURE__ */ h.createElement("div", {
|
|
70
|
+
className: "".concat(n, "-item-tail")
|
|
71
|
+
}, _), /* @__PURE__ */ h.createElement("div", {
|
|
72
|
+
className: "".concat(n, "-item-icon")
|
|
73
|
+
}, X()), /* @__PURE__ */ h.createElement("div", {
|
|
74
|
+
className: "".concat(n, "-item-content")
|
|
75
|
+
}, /* @__PURE__ */ h.createElement("div", {
|
|
76
|
+
className: "".concat(n, "-item-title")
|
|
77
|
+
}, b, v && /* @__PURE__ */ h.createElement("div", {
|
|
78
|
+
title: typeof v == "string" ? v : void 0,
|
|
79
|
+
className: "".concat(n, "-item-subtitle")
|
|
80
|
+
}, v)), m && /* @__PURE__ */ h.createElement("div", {
|
|
81
|
+
className: "".concat(n, "-item-description")
|
|
82
|
+
}, m))));
|
|
83
|
+
return $ && (O = $(O) || null), O;
|
|
84
|
+
}
|
|
85
|
+
var Nt = ["prefixCls", "style", "className", "children", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "stepIcon", "initial", "icons", "onChange", "itemRender", "items"];
|
|
86
|
+
function be(e) {
|
|
87
|
+
var t, i = e.prefixCls, n = i === void 0 ? "rc-steps" : i, r = e.style, o = r === void 0 ? {} : r, a = e.className;
|
|
88
|
+
e.children;
|
|
89
|
+
var p = e.direction, u = p === void 0 ? "horizontal" : p, s = e.type, d = s === void 0 ? "default" : s, m = e.labelPlacement, b = m === void 0 ? "horizontal" : m, v = e.iconPrefix, C = v === void 0 ? "rc" : v, z = e.status, _ = z === void 0 ? "process" : z, S = e.size, D = e.current, I = D === void 0 ? 0 : D, P = e.progressDot, $ = P === void 0 ? !1 : P, N = e.stepIcon, R = e.initial, q = R === void 0 ? 0 : R, X = e.icons, y = e.onChange, w = e.itemRender, H = e.items, O = H === void 0 ? [] : H, j = qe(e, Nt), E = d === "navigation", T = d === "inline", U = T || $, K = T ? "horizontal" : u, Ce = T ? void 0 : S, et = U ? "vertical" : b, tt = F(n, "".concat(n, "-").concat(K), a, (t = {}, V(t, "".concat(n, "-").concat(Ce), Ce), V(t, "".concat(n, "-label-").concat(et), K === "horizontal"), V(t, "".concat(n, "-dot"), !!U), V(t, "".concat(n, "-navigation"), E), V(t, "".concat(n, "-inline"), T), t)), it = function(ie) {
|
|
90
|
+
y && I !== ie && y(ie);
|
|
91
|
+
}, nt = function(ie, Ee) {
|
|
92
|
+
var M = Ae({}, ie), Q = q + Ee;
|
|
93
|
+
return _ === "error" && Ee === I - 1 && (M.className = "".concat(n, "-next-error")), M.status || (Q === I ? M.status = _ : Q < I ? M.status = "finish" : M.status = "wait"), T && (M.icon = void 0, M.subTitle = void 0), !M.render && w && (M.render = function(rt) {
|
|
94
|
+
return w(M, rt);
|
|
95
|
+
}), /* @__PURE__ */ Ne.createElement(Ue, ae({}, M, {
|
|
96
|
+
active: Q === I,
|
|
97
|
+
stepNumber: Q + 1,
|
|
98
|
+
stepIndex: Q,
|
|
99
|
+
key: Q,
|
|
100
|
+
prefixCls: n,
|
|
101
|
+
iconPrefix: C,
|
|
102
|
+
wrapperStyle: o,
|
|
103
|
+
progressDot: U,
|
|
104
|
+
stepIcon: N,
|
|
105
|
+
icons: X,
|
|
106
|
+
onStepClick: y && it
|
|
107
|
+
}));
|
|
108
|
+
};
|
|
109
|
+
return /* @__PURE__ */ Ne.createElement("div", ae({
|
|
110
|
+
className: tt,
|
|
111
|
+
style: o
|
|
112
|
+
}, j), O.filter(function(se) {
|
|
113
|
+
return se;
|
|
114
|
+
}).map(nt));
|
|
115
|
+
}
|
|
116
|
+
be.Step = Ue;
|
|
117
|
+
const Ot = (e) => {
|
|
118
|
+
const {
|
|
119
|
+
componentCls: t,
|
|
120
|
+
customIconTop: i,
|
|
121
|
+
customIconSize: n,
|
|
122
|
+
customIconFontSize: r
|
|
123
|
+
} = e;
|
|
124
|
+
return {
|
|
125
|
+
[`${t}-item-custom`]: {
|
|
126
|
+
[`> ${t}-item-container > ${t}-item-icon`]: {
|
|
127
|
+
height: "auto",
|
|
128
|
+
background: "none",
|
|
129
|
+
border: 0,
|
|
130
|
+
[`> ${t}-icon`]: {
|
|
131
|
+
top: i,
|
|
132
|
+
width: n,
|
|
133
|
+
height: n,
|
|
134
|
+
fontSize: r,
|
|
135
|
+
lineHeight: c(n)
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
// Only adjust horizontal customize icon width
|
|
140
|
+
[`&:not(${t}-vertical)`]: {
|
|
141
|
+
[`${t}-item-custom`]: {
|
|
142
|
+
[`${t}-item-icon`]: {
|
|
143
|
+
width: "auto",
|
|
144
|
+
background: "none"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}, Dt = (e) => {
|
|
150
|
+
const {
|
|
151
|
+
componentCls: t
|
|
152
|
+
} = e, i = `${t}-item`;
|
|
153
|
+
return {
|
|
154
|
+
[`${t}-horizontal`]: {
|
|
155
|
+
[`${i}-tail`]: {
|
|
156
|
+
transform: "translateY(-50%)"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}, Pt = (e) => {
|
|
161
|
+
const {
|
|
162
|
+
componentCls: t,
|
|
163
|
+
inlineDotSize: i,
|
|
164
|
+
inlineTitleColor: n,
|
|
165
|
+
inlineTailColor: r
|
|
166
|
+
} = e, o = e.calc(e.paddingXS).add(e.lineWidth).equal(), a = {
|
|
167
|
+
[`${t}-item-container ${t}-item-content ${t}-item-title`]: {
|
|
168
|
+
color: n
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
[`&${t}-inline`]: {
|
|
173
|
+
width: "auto",
|
|
174
|
+
display: "inline-flex",
|
|
175
|
+
[`${t}-item`]: {
|
|
176
|
+
flex: "none",
|
|
177
|
+
"&-container": {
|
|
178
|
+
padding: `${c(o)} ${c(e.paddingXXS)} 0`,
|
|
179
|
+
margin: `0 ${c(e.calc(e.marginXXS).div(2).equal())}`,
|
|
180
|
+
borderRadius: e.borderRadiusSM,
|
|
181
|
+
cursor: "pointer",
|
|
182
|
+
transition: `background-color ${e.motionDurationMid}`,
|
|
183
|
+
"&:hover": {
|
|
184
|
+
background: e.controlItemBgHover
|
|
185
|
+
},
|
|
186
|
+
"&[role='button']:hover": {
|
|
187
|
+
opacity: 1
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"&-icon": {
|
|
191
|
+
width: i,
|
|
192
|
+
height: i,
|
|
193
|
+
marginInlineStart: `calc(50% - ${c(e.calc(i).div(2).equal())})`,
|
|
194
|
+
[`> ${t}-icon`]: {
|
|
195
|
+
top: 0
|
|
196
|
+
},
|
|
197
|
+
[`${t}-icon-dot`]: {
|
|
198
|
+
borderRadius: e.calc(e.fontSizeSM).div(4).equal(),
|
|
199
|
+
"&::after": {
|
|
200
|
+
display: "none"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"&-content": {
|
|
205
|
+
width: "auto",
|
|
206
|
+
marginTop: e.calc(e.marginXS).sub(e.lineWidth).equal()
|
|
207
|
+
},
|
|
208
|
+
"&-title": {
|
|
209
|
+
color: n,
|
|
210
|
+
fontSize: e.fontSizeSM,
|
|
211
|
+
lineHeight: e.lineHeightSM,
|
|
212
|
+
fontWeight: "normal",
|
|
213
|
+
marginBottom: e.calc(e.marginXXS).div(2).equal()
|
|
214
|
+
},
|
|
215
|
+
"&-description": {
|
|
216
|
+
display: "none"
|
|
217
|
+
},
|
|
218
|
+
"&-tail": {
|
|
219
|
+
marginInlineStart: 0,
|
|
220
|
+
top: e.calc(i).div(2).add(o).equal(),
|
|
221
|
+
transform: "translateY(-50%)",
|
|
222
|
+
"&:after": {
|
|
223
|
+
width: "100%",
|
|
224
|
+
height: e.lineWidth,
|
|
225
|
+
borderRadius: 0,
|
|
226
|
+
marginInlineStart: 0,
|
|
227
|
+
background: r
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
[`&:first-child ${t}-item-tail`]: {
|
|
231
|
+
width: "50%",
|
|
232
|
+
marginInlineStart: "50%"
|
|
233
|
+
},
|
|
234
|
+
[`&:last-child ${t}-item-tail`]: {
|
|
235
|
+
display: "block",
|
|
236
|
+
width: "50%"
|
|
237
|
+
},
|
|
238
|
+
"&-wait": Object.assign({
|
|
239
|
+
[`${t}-item-icon ${t}-icon ${t}-icon-dot`]: {
|
|
240
|
+
backgroundColor: e.colorBorderBg,
|
|
241
|
+
border: `${c(e.lineWidth)} ${e.lineType} ${r}`
|
|
242
|
+
}
|
|
243
|
+
}, a),
|
|
244
|
+
"&-finish": Object.assign({
|
|
245
|
+
[`${t}-item-tail::after`]: {
|
|
246
|
+
backgroundColor: r
|
|
247
|
+
},
|
|
248
|
+
[`${t}-item-icon ${t}-icon ${t}-icon-dot`]: {
|
|
249
|
+
backgroundColor: r,
|
|
250
|
+
border: `${c(e.lineWidth)} ${e.lineType} ${r}`
|
|
251
|
+
}
|
|
252
|
+
}, a),
|
|
253
|
+
"&-error": a,
|
|
254
|
+
"&-active, &-process": Object.assign({
|
|
255
|
+
[`${t}-item-icon`]: {
|
|
256
|
+
width: i,
|
|
257
|
+
height: i,
|
|
258
|
+
marginInlineStart: `calc(50% - ${c(e.calc(i).div(2).equal())})`,
|
|
259
|
+
top: 0
|
|
260
|
+
}
|
|
261
|
+
}, a),
|
|
262
|
+
[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]: {
|
|
263
|
+
[`${t}-item-title`]: {
|
|
264
|
+
color: n
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}, wt = (e) => {
|
|
271
|
+
const {
|
|
272
|
+
componentCls: t,
|
|
273
|
+
iconSize: i,
|
|
274
|
+
lineHeight: n,
|
|
275
|
+
iconSizeSM: r
|
|
276
|
+
} = e;
|
|
277
|
+
return {
|
|
278
|
+
[`&${t}-label-vertical`]: {
|
|
279
|
+
[`${t}-item`]: {
|
|
280
|
+
overflow: "visible",
|
|
281
|
+
"&-tail": {
|
|
282
|
+
marginInlineStart: e.calc(i).div(2).add(e.controlHeightLG).equal(),
|
|
283
|
+
padding: `0 ${c(e.paddingLG)}`
|
|
284
|
+
},
|
|
285
|
+
"&-content": {
|
|
286
|
+
display: "block",
|
|
287
|
+
width: e.calc(i).div(2).add(e.controlHeightLG).mul(2).equal(),
|
|
288
|
+
marginTop: e.marginSM,
|
|
289
|
+
textAlign: "center"
|
|
290
|
+
},
|
|
291
|
+
"&-icon": {
|
|
292
|
+
display: "inline-block",
|
|
293
|
+
marginInlineStart: e.controlHeightLG
|
|
294
|
+
},
|
|
295
|
+
"&-title": {
|
|
296
|
+
paddingInlineEnd: 0,
|
|
297
|
+
paddingInlineStart: 0,
|
|
298
|
+
"&::after": {
|
|
299
|
+
display: "none"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"&-subtitle": {
|
|
303
|
+
display: "block",
|
|
304
|
+
marginBottom: e.marginXXS,
|
|
305
|
+
marginInlineStart: 0,
|
|
306
|
+
lineHeight: n
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
[`&${t}-small:not(${t}-dot)`]: {
|
|
310
|
+
[`${t}-item`]: {
|
|
311
|
+
"&-icon": {
|
|
312
|
+
marginInlineStart: e.calc(i).sub(r).div(2).add(e.controlHeightLG).equal()
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
}, xt = (e) => {
|
|
319
|
+
const {
|
|
320
|
+
componentCls: t,
|
|
321
|
+
navContentMaxWidth: i,
|
|
322
|
+
navArrowColor: n,
|
|
323
|
+
stepsNavActiveColor: r,
|
|
324
|
+
motionDurationSlow: o
|
|
325
|
+
} = e;
|
|
326
|
+
return {
|
|
327
|
+
[`&${t}-navigation`]: {
|
|
328
|
+
paddingTop: e.paddingSM,
|
|
329
|
+
[`&${t}-small`]: {
|
|
330
|
+
[`${t}-item`]: {
|
|
331
|
+
"&-container": {
|
|
332
|
+
marginInlineStart: e.calc(e.marginSM).mul(-1).equal()
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
[`${t}-item`]: {
|
|
337
|
+
overflow: "visible",
|
|
338
|
+
textAlign: "center",
|
|
339
|
+
"&-container": {
|
|
340
|
+
display: "inline-block",
|
|
341
|
+
height: "100%",
|
|
342
|
+
marginInlineStart: e.calc(e.margin).mul(-1).equal(),
|
|
343
|
+
paddingBottom: e.paddingSM,
|
|
344
|
+
textAlign: "start",
|
|
345
|
+
transition: `opacity ${o}`,
|
|
346
|
+
[`${t}-item-content`]: {
|
|
347
|
+
maxWidth: i
|
|
348
|
+
},
|
|
349
|
+
[`${t}-item-title`]: Object.assign(Object.assign({
|
|
350
|
+
maxWidth: "100%",
|
|
351
|
+
paddingInlineEnd: 0
|
|
352
|
+
}, ot), {
|
|
353
|
+
"&::after": {
|
|
354
|
+
display: "none"
|
|
355
|
+
}
|
|
356
|
+
})
|
|
357
|
+
},
|
|
358
|
+
[`&:not(${t}-item-active)`]: {
|
|
359
|
+
[`${t}-item-container[role='button']`]: {
|
|
360
|
+
cursor: "pointer",
|
|
361
|
+
"&:hover": {
|
|
362
|
+
opacity: 0.85
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"&:last-child": {
|
|
367
|
+
flex: 1,
|
|
368
|
+
"&::after": {
|
|
369
|
+
display: "none"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"&::after": {
|
|
373
|
+
position: "absolute",
|
|
374
|
+
top: `calc(50% - ${c(e.calc(e.paddingSM).div(2).equal())})`,
|
|
375
|
+
insetInlineStart: "100%",
|
|
376
|
+
display: "inline-block",
|
|
377
|
+
width: e.fontSizeIcon,
|
|
378
|
+
height: e.fontSizeIcon,
|
|
379
|
+
borderTop: `${c(e.lineWidth)} ${e.lineType} ${n}`,
|
|
380
|
+
borderBottom: "none",
|
|
381
|
+
borderInlineStart: "none",
|
|
382
|
+
borderInlineEnd: `${c(e.lineWidth)} ${e.lineType} ${n}`,
|
|
383
|
+
transform: "translateY(-50%) translateX(-50%) rotate(45deg)",
|
|
384
|
+
content: '""'
|
|
385
|
+
},
|
|
386
|
+
"&::before": {
|
|
387
|
+
position: "absolute",
|
|
388
|
+
bottom: 0,
|
|
389
|
+
insetInlineStart: "50%",
|
|
390
|
+
display: "inline-block",
|
|
391
|
+
width: 0,
|
|
392
|
+
height: e.lineWidthBold,
|
|
393
|
+
backgroundColor: r,
|
|
394
|
+
transition: `width ${o}, inset-inline-start ${o}`,
|
|
395
|
+
transitionTimingFunction: "ease-out",
|
|
396
|
+
content: '""'
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
[`${t}-item${t}-item-active::before`]: {
|
|
400
|
+
insetInlineStart: 0,
|
|
401
|
+
width: "100%"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
[`&${t}-navigation${t}-vertical`]: {
|
|
405
|
+
[`> ${t}-item`]: {
|
|
406
|
+
marginInlineEnd: 0,
|
|
407
|
+
"&::before": {
|
|
408
|
+
display: "none"
|
|
409
|
+
},
|
|
410
|
+
[`&${t}-item-active::before`]: {
|
|
411
|
+
top: 0,
|
|
412
|
+
insetInlineEnd: 0,
|
|
413
|
+
insetInlineStart: "unset",
|
|
414
|
+
display: "block",
|
|
415
|
+
width: e.calc(e.lineWidth).mul(3).equal(),
|
|
416
|
+
height: `calc(100% - ${c(e.marginLG)})`
|
|
417
|
+
},
|
|
418
|
+
"&::after": {
|
|
419
|
+
position: "relative",
|
|
420
|
+
insetInlineStart: "50%",
|
|
421
|
+
display: "block",
|
|
422
|
+
width: e.calc(e.controlHeight).mul(0.25).equal(),
|
|
423
|
+
height: e.calc(e.controlHeight).mul(0.25).equal(),
|
|
424
|
+
marginBottom: e.marginXS,
|
|
425
|
+
textAlign: "center",
|
|
426
|
+
transform: "translateY(-50%) translateX(-50%) rotate(135deg)"
|
|
427
|
+
},
|
|
428
|
+
"&:last-child": {
|
|
429
|
+
"&::after": {
|
|
430
|
+
display: "none"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
[`> ${t}-item-container > ${t}-item-tail`]: {
|
|
434
|
+
visibility: "hidden"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
[`&${t}-navigation${t}-horizontal`]: {
|
|
439
|
+
[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]: {
|
|
440
|
+
visibility: "hidden"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}, zt = (e) => {
|
|
445
|
+
const {
|
|
446
|
+
antCls: t,
|
|
447
|
+
componentCls: i,
|
|
448
|
+
iconSize: n,
|
|
449
|
+
iconSizeSM: r,
|
|
450
|
+
processIconColor: o,
|
|
451
|
+
marginXXS: a,
|
|
452
|
+
lineWidthBold: p,
|
|
453
|
+
lineWidth: u,
|
|
454
|
+
paddingXXS: s
|
|
455
|
+
} = e, d = e.calc(n).add(e.calc(p).mul(4).equal()).equal(), m = e.calc(r).add(e.calc(e.lineWidth).mul(4).equal()).equal();
|
|
456
|
+
return {
|
|
457
|
+
[`&${i}-with-progress`]: {
|
|
458
|
+
[`${i}-item`]: {
|
|
459
|
+
paddingTop: s,
|
|
460
|
+
[`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]: {
|
|
461
|
+
color: o
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
[`&${i}-vertical > ${i}-item `]: {
|
|
465
|
+
paddingInlineStart: s,
|
|
466
|
+
[`> ${i}-item-container > ${i}-item-tail`]: {
|
|
467
|
+
top: a,
|
|
468
|
+
insetInlineStart: e.calc(n).div(2).sub(u).add(s).equal()
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
[`&, &${i}-small`]: {
|
|
472
|
+
[`&${i}-horizontal ${i}-item:first-child`]: {
|
|
473
|
+
paddingBottom: s,
|
|
474
|
+
paddingInlineStart: s
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
[`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]: {
|
|
478
|
+
insetInlineStart: e.calc(r).div(2).sub(u).add(s).equal()
|
|
479
|
+
},
|
|
480
|
+
[`&${i}-label-vertical ${i}-item ${i}-item-tail`]: {
|
|
481
|
+
top: e.calc(n).div(2).add(s).equal()
|
|
482
|
+
},
|
|
483
|
+
[`${i}-item-icon`]: {
|
|
484
|
+
position: "relative",
|
|
485
|
+
[`${t}-progress`]: {
|
|
486
|
+
position: "absolute",
|
|
487
|
+
insetInlineStart: "50%",
|
|
488
|
+
top: "50%",
|
|
489
|
+
transform: "translate(-50%, -50%)",
|
|
490
|
+
"&-inner": {
|
|
491
|
+
width: `${c(d)} !important`,
|
|
492
|
+
height: `${c(d)} !important`
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
// ============================== Small size ==============================
|
|
497
|
+
[`&${i}-small`]: {
|
|
498
|
+
[`&${i}-label-vertical ${i}-item ${i}-item-tail`]: {
|
|
499
|
+
top: e.calc(r).div(2).add(s).equal()
|
|
500
|
+
},
|
|
501
|
+
[`${i}-item-icon ${t}-progress-inner`]: {
|
|
502
|
+
width: `${c(m)} !important`,
|
|
503
|
+
height: `${c(m)} !important`
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
}, _t = (e) => {
|
|
509
|
+
const {
|
|
510
|
+
componentCls: t,
|
|
511
|
+
descriptionMaxWidth: i,
|
|
512
|
+
lineHeight: n,
|
|
513
|
+
dotCurrentSize: r,
|
|
514
|
+
dotSize: o,
|
|
515
|
+
motionDurationSlow: a
|
|
516
|
+
} = e;
|
|
517
|
+
return {
|
|
518
|
+
[`&${t}-dot, &${t}-dot${t}-small`]: {
|
|
519
|
+
[`${t}-item`]: {
|
|
520
|
+
"&-title": {
|
|
521
|
+
lineHeight: n
|
|
522
|
+
},
|
|
523
|
+
"&-tail": {
|
|
524
|
+
// Math.floor((token.size - token.lineWidth * 3) / 2)
|
|
525
|
+
top: e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),
|
|
526
|
+
width: "100%",
|
|
527
|
+
marginTop: 0,
|
|
528
|
+
marginBottom: 0,
|
|
529
|
+
marginInline: `${c(e.calc(i).div(2).equal())} 0`,
|
|
530
|
+
padding: 0,
|
|
531
|
+
"&::after": {
|
|
532
|
+
width: `calc(100% - ${c(e.calc(e.marginSM).mul(2).equal())})`,
|
|
533
|
+
height: e.calc(e.lineWidth).mul(3).equal(),
|
|
534
|
+
marginInlineStart: e.marginSM
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"&-icon": {
|
|
538
|
+
width: o,
|
|
539
|
+
height: o,
|
|
540
|
+
marginInlineStart: e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),
|
|
541
|
+
paddingInlineEnd: 0,
|
|
542
|
+
lineHeight: c(o),
|
|
543
|
+
background: "transparent",
|
|
544
|
+
border: 0,
|
|
545
|
+
[`${t}-icon-dot`]: {
|
|
546
|
+
position: "relative",
|
|
547
|
+
float: "left",
|
|
548
|
+
width: "100%",
|
|
549
|
+
height: "100%",
|
|
550
|
+
borderRadius: 100,
|
|
551
|
+
// very large number
|
|
552
|
+
transition: `all ${a}`,
|
|
553
|
+
/* expand hover area */
|
|
554
|
+
"&::after": {
|
|
555
|
+
position: "absolute",
|
|
556
|
+
top: e.calc(e.marginSM).mul(-1).equal(),
|
|
557
|
+
insetInlineStart: e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),
|
|
558
|
+
width: e.calc(e.controlHeightLG).mul(1.5).equal(),
|
|
559
|
+
height: e.controlHeight,
|
|
560
|
+
background: "transparent",
|
|
561
|
+
content: '""'
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"&-content": {
|
|
566
|
+
width: i
|
|
567
|
+
},
|
|
568
|
+
[`&-process ${t}-item-icon`]: {
|
|
569
|
+
position: "relative",
|
|
570
|
+
top: e.calc(o).sub(r).div(2).equal(),
|
|
571
|
+
width: r,
|
|
572
|
+
height: r,
|
|
573
|
+
lineHeight: c(r),
|
|
574
|
+
background: "none",
|
|
575
|
+
marginInlineStart: e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()
|
|
576
|
+
},
|
|
577
|
+
[`&-process ${t}-icon`]: {
|
|
578
|
+
[`&:first-child ${t}-icon-dot`]: {
|
|
579
|
+
insetInlineStart: 0
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
[`&${t}-vertical${t}-dot`]: {
|
|
585
|
+
[`${t}-item-icon`]: {
|
|
586
|
+
marginTop: e.calc(e.controlHeight).sub(o).div(2).equal(),
|
|
587
|
+
marginInlineStart: 0,
|
|
588
|
+
background: "none"
|
|
589
|
+
},
|
|
590
|
+
[`${t}-item-process ${t}-item-icon`]: {
|
|
591
|
+
marginTop: e.calc(e.controlHeight).sub(r).div(2).equal(),
|
|
592
|
+
top: 0,
|
|
593
|
+
insetInlineStart: e.calc(o).sub(r).div(2).equal(),
|
|
594
|
+
marginInlineStart: 0
|
|
595
|
+
},
|
|
596
|
+
// https://github.com/ant-design/ant-design/issues/18354
|
|
597
|
+
[`${t}-item > ${t}-item-container > ${t}-item-tail`]: {
|
|
598
|
+
top: e.calc(e.controlHeight).sub(o).div(2).equal(),
|
|
599
|
+
insetInlineStart: 0,
|
|
600
|
+
margin: 0,
|
|
601
|
+
padding: `${c(e.calc(o).add(e.paddingXS).equal())} 0 ${c(e.paddingXS)}`,
|
|
602
|
+
"&::after": {
|
|
603
|
+
marginInlineStart: e.calc(o).sub(e.lineWidth).div(2).equal()
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
[`&${t}-small`]: {
|
|
607
|
+
[`${t}-item-icon`]: {
|
|
608
|
+
marginTop: e.calc(e.controlHeightSM).sub(o).div(2).equal()
|
|
609
|
+
},
|
|
610
|
+
[`${t}-item-process ${t}-item-icon`]: {
|
|
611
|
+
marginTop: e.calc(e.controlHeightSM).sub(r).div(2).equal()
|
|
612
|
+
},
|
|
613
|
+
[`${t}-item > ${t}-item-container > ${t}-item-tail`]: {
|
|
614
|
+
top: e.calc(e.controlHeightSM).sub(o).div(2).equal()
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
[`${t}-item:first-child ${t}-icon-dot`]: {
|
|
618
|
+
insetInlineStart: 0
|
|
619
|
+
},
|
|
620
|
+
[`${t}-item-content`]: {
|
|
621
|
+
width: "inherit"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
}, Rt = (e) => {
|
|
626
|
+
const {
|
|
627
|
+
componentCls: t
|
|
628
|
+
} = e;
|
|
629
|
+
return {
|
|
630
|
+
[`&${t}-rtl`]: {
|
|
631
|
+
direction: "rtl",
|
|
632
|
+
[`${t}-item`]: {
|
|
633
|
+
"&-subtitle": {
|
|
634
|
+
float: "left"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
// nav
|
|
638
|
+
[`&${t}-navigation`]: {
|
|
639
|
+
[`${t}-item::after`]: {
|
|
640
|
+
transform: "rotate(-45deg)"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
// vertical
|
|
644
|
+
[`&${t}-vertical`]: {
|
|
645
|
+
[`> ${t}-item`]: {
|
|
646
|
+
"&::after": {
|
|
647
|
+
transform: "rotate(225deg)"
|
|
648
|
+
},
|
|
649
|
+
[`${t}-item-icon`]: {
|
|
650
|
+
float: "right"
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
// progress-dot
|
|
655
|
+
[`&${t}-dot`]: {
|
|
656
|
+
[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]: {
|
|
657
|
+
float: "right"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
}, qt = (e) => {
|
|
663
|
+
const {
|
|
664
|
+
componentCls: t,
|
|
665
|
+
iconSizeSM: i,
|
|
666
|
+
// stepsSmallIconMargin,
|
|
667
|
+
fontSizeSM: n,
|
|
668
|
+
fontSize: r,
|
|
669
|
+
colorTextDescription: o
|
|
670
|
+
} = e;
|
|
671
|
+
return {
|
|
672
|
+
[`&${t}-small`]: {
|
|
673
|
+
[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]: {
|
|
674
|
+
paddingInlineStart: e.paddingSM,
|
|
675
|
+
"&:first-child": {
|
|
676
|
+
paddingInlineStart: 0
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
[`${t}-item-icon`]: {
|
|
680
|
+
width: i,
|
|
681
|
+
height: i,
|
|
682
|
+
// margin: stepsSmallIconMargin,
|
|
683
|
+
marginTop: 0,
|
|
684
|
+
marginBottom: 0,
|
|
685
|
+
marginInline: `0 ${c(e.marginXS)}`,
|
|
686
|
+
fontSize: n,
|
|
687
|
+
lineHeight: c(i),
|
|
688
|
+
textAlign: "center",
|
|
689
|
+
borderRadius: i
|
|
690
|
+
},
|
|
691
|
+
[`${t}-item-title`]: {
|
|
692
|
+
paddingInlineEnd: e.paddingSM,
|
|
693
|
+
fontSize: r,
|
|
694
|
+
lineHeight: c(i),
|
|
695
|
+
"&::after": {
|
|
696
|
+
top: e.calc(i).div(2).equal()
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
[`${t}-item-description`]: {
|
|
700
|
+
color: o,
|
|
701
|
+
fontSize: r
|
|
702
|
+
},
|
|
703
|
+
[`${t}-item-tail`]: {
|
|
704
|
+
top: e.calc(i).div(2).sub(e.paddingXXS).equal()
|
|
705
|
+
},
|
|
706
|
+
[`${t}-item-custom ${t}-item-icon`]: {
|
|
707
|
+
width: "inherit",
|
|
708
|
+
height: "inherit",
|
|
709
|
+
lineHeight: "inherit",
|
|
710
|
+
background: "none",
|
|
711
|
+
border: 0,
|
|
712
|
+
borderRadius: 0,
|
|
713
|
+
[`> ${t}-icon`]: {
|
|
714
|
+
fontSize: i,
|
|
715
|
+
lineHeight: c(i),
|
|
716
|
+
transform: "none"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
}, At = (e) => {
|
|
722
|
+
const {
|
|
723
|
+
componentCls: t,
|
|
724
|
+
iconSizeSM: i,
|
|
725
|
+
iconSize: n
|
|
726
|
+
} = e;
|
|
727
|
+
return {
|
|
728
|
+
[`&${t}-vertical`]: {
|
|
729
|
+
display: "flex",
|
|
730
|
+
flexDirection: "column",
|
|
731
|
+
[`> ${t}-item`]: {
|
|
732
|
+
display: "block",
|
|
733
|
+
flex: "1 0 auto",
|
|
734
|
+
paddingInlineStart: 0,
|
|
735
|
+
overflow: "visible",
|
|
736
|
+
[`${t}-item-icon`]: {
|
|
737
|
+
float: "left",
|
|
738
|
+
marginInlineEnd: e.margin
|
|
739
|
+
},
|
|
740
|
+
[`${t}-item-content`]: {
|
|
741
|
+
display: "block",
|
|
742
|
+
minHeight: e.calc(e.controlHeight).mul(1.5).equal(),
|
|
743
|
+
overflow: "hidden"
|
|
744
|
+
},
|
|
745
|
+
[`${t}-item-title`]: {
|
|
746
|
+
lineHeight: c(n)
|
|
747
|
+
},
|
|
748
|
+
[`${t}-item-description`]: {
|
|
749
|
+
paddingBottom: e.paddingSM
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]: {
|
|
753
|
+
position: "absolute",
|
|
754
|
+
top: 0,
|
|
755
|
+
insetInlineStart: e.calc(n).div(2).sub(e.lineWidth).equal(),
|
|
756
|
+
width: e.lineWidth,
|
|
757
|
+
height: "100%",
|
|
758
|
+
padding: `${c(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${c(e.calc(e.marginXXS).mul(1.5).equal())}`,
|
|
759
|
+
"&::after": {
|
|
760
|
+
width: e.lineWidth,
|
|
761
|
+
height: "100%"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]: {
|
|
765
|
+
display: "block"
|
|
766
|
+
},
|
|
767
|
+
[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]: {
|
|
768
|
+
"&::after": {
|
|
769
|
+
display: "none"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
[`&${t}-small ${t}-item-container`]: {
|
|
773
|
+
[`${t}-item-tail`]: {
|
|
774
|
+
position: "absolute",
|
|
775
|
+
top: 0,
|
|
776
|
+
insetInlineStart: e.calc(i).div(2).sub(e.lineWidth).equal(),
|
|
777
|
+
padding: `${c(e.calc(e.marginXXS).mul(1.5).add(i).equal())} 0 ${c(e.calc(e.marginXXS).mul(1.5).equal())}`
|
|
778
|
+
},
|
|
779
|
+
[`${t}-item-title`]: {
|
|
780
|
+
lineHeight: c(i)
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
}, Ht = "wait", Bt = "process", jt = "finish", Mt = "error", ne = (e, t) => {
|
|
786
|
+
const i = `${t.componentCls}-item`, n = `${e}IconColor`, r = `${e}TitleColor`, o = `${e}DescriptionColor`, a = `${e}TailColor`, p = `${e}IconBgColor`, u = `${e}IconBorderColor`, s = `${e}DotColor`;
|
|
787
|
+
return {
|
|
788
|
+
[`${i}-${e} ${i}-icon`]: {
|
|
789
|
+
backgroundColor: t[p],
|
|
790
|
+
borderColor: t[u],
|
|
791
|
+
[`> ${t.componentCls}-icon`]: {
|
|
792
|
+
color: t[n],
|
|
793
|
+
[`${t.componentCls}-icon-dot`]: {
|
|
794
|
+
background: t[s]
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
[`${i}-${e}${i}-custom ${i}-icon`]: {
|
|
799
|
+
[`> ${t.componentCls}-icon`]: {
|
|
800
|
+
color: t[s]
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
[`${i}-${e} > ${i}-container > ${i}-content > ${i}-title`]: {
|
|
804
|
+
color: t[r],
|
|
805
|
+
"&::after": {
|
|
806
|
+
backgroundColor: t[a]
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
[`${i}-${e} > ${i}-container > ${i}-content > ${i}-description`]: {
|
|
810
|
+
color: t[o]
|
|
811
|
+
},
|
|
812
|
+
[`${i}-${e} > ${i}-container > ${i}-tail::after`]: {
|
|
813
|
+
backgroundColor: t[a]
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
}, Lt = (e) => {
|
|
817
|
+
const {
|
|
818
|
+
componentCls: t,
|
|
819
|
+
motionDurationSlow: i
|
|
820
|
+
} = e, n = `${t}-item`, r = `${n}-icon`;
|
|
821
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
822
|
+
[n]: {
|
|
823
|
+
position: "relative",
|
|
824
|
+
display: "inline-block",
|
|
825
|
+
flex: 1,
|
|
826
|
+
overflow: "hidden",
|
|
827
|
+
verticalAlign: "top",
|
|
828
|
+
"&:last-child": {
|
|
829
|
+
flex: "none",
|
|
830
|
+
[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]: {
|
|
831
|
+
display: "none"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
[`${n}-container`]: {
|
|
836
|
+
outline: "none",
|
|
837
|
+
[`&:focus-visible ${r}`]: lt(e)
|
|
838
|
+
},
|
|
839
|
+
[`${r}, ${n}-content`]: {
|
|
840
|
+
display: "inline-block",
|
|
841
|
+
verticalAlign: "top"
|
|
842
|
+
},
|
|
843
|
+
[r]: {
|
|
844
|
+
width: e.iconSize,
|
|
845
|
+
height: e.iconSize,
|
|
846
|
+
marginTop: 0,
|
|
847
|
+
marginBottom: 0,
|
|
848
|
+
marginInlineStart: 0,
|
|
849
|
+
marginInlineEnd: e.marginXS,
|
|
850
|
+
fontSize: e.iconFontSize,
|
|
851
|
+
fontFamily: e.fontFamily,
|
|
852
|
+
lineHeight: c(e.iconSize),
|
|
853
|
+
textAlign: "center",
|
|
854
|
+
borderRadius: e.iconSize,
|
|
855
|
+
border: `${c(e.lineWidth)} ${e.lineType} transparent`,
|
|
856
|
+
transition: `background-color ${i}, border-color ${i}`,
|
|
857
|
+
[`${t}-icon`]: {
|
|
858
|
+
position: "relative",
|
|
859
|
+
top: e.iconTop,
|
|
860
|
+
color: e.colorPrimary,
|
|
861
|
+
lineHeight: 1
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
[`${n}-tail`]: {
|
|
865
|
+
position: "absolute",
|
|
866
|
+
top: e.calc(e.iconSize).div(2).equal(),
|
|
867
|
+
insetInlineStart: 0,
|
|
868
|
+
width: "100%",
|
|
869
|
+
"&::after": {
|
|
870
|
+
display: "inline-block",
|
|
871
|
+
width: "100%",
|
|
872
|
+
height: e.lineWidth,
|
|
873
|
+
background: e.colorSplit,
|
|
874
|
+
borderRadius: e.lineWidth,
|
|
875
|
+
transition: `background ${i}`,
|
|
876
|
+
content: '""'
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
[`${n}-title`]: {
|
|
880
|
+
position: "relative",
|
|
881
|
+
display: "inline-block",
|
|
882
|
+
paddingInlineEnd: e.padding,
|
|
883
|
+
color: e.colorText,
|
|
884
|
+
fontSize: e.fontSizeLG,
|
|
885
|
+
lineHeight: c(e.titleLineHeight),
|
|
886
|
+
"&::after": {
|
|
887
|
+
position: "absolute",
|
|
888
|
+
top: e.calc(e.titleLineHeight).div(2).equal(),
|
|
889
|
+
insetInlineStart: "100%",
|
|
890
|
+
display: "block",
|
|
891
|
+
width: 9999,
|
|
892
|
+
height: e.lineWidth,
|
|
893
|
+
background: e.processTailColor,
|
|
894
|
+
content: '""'
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
[`${n}-subtitle`]: {
|
|
898
|
+
display: "inline",
|
|
899
|
+
marginInlineStart: e.marginXS,
|
|
900
|
+
color: e.colorTextDescription,
|
|
901
|
+
fontWeight: "normal",
|
|
902
|
+
fontSize: e.fontSize
|
|
903
|
+
},
|
|
904
|
+
[`${n}-description`]: {
|
|
905
|
+
color: e.colorTextDescription,
|
|
906
|
+
fontSize: e.fontSize
|
|
907
|
+
}
|
|
908
|
+
}, ne(Ht, e)), ne(Bt, e)), {
|
|
909
|
+
[`${n}-process > ${n}-container > ${n}-title`]: {
|
|
910
|
+
fontWeight: e.fontWeightStrong
|
|
911
|
+
}
|
|
912
|
+
}), ne(jt, e)), ne(Mt, e)), {
|
|
913
|
+
[`${n}${t}-next-error > ${t}-item-title::after`]: {
|
|
914
|
+
background: e.colorError
|
|
915
|
+
},
|
|
916
|
+
[`${n}-disabled`]: {
|
|
917
|
+
cursor: "not-allowed"
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
}, Wt = (e) => {
|
|
921
|
+
const {
|
|
922
|
+
componentCls: t,
|
|
923
|
+
motionDurationSlow: i
|
|
924
|
+
} = e;
|
|
925
|
+
return {
|
|
926
|
+
[`& ${t}-item`]: {
|
|
927
|
+
[`&:not(${t}-item-active)`]: {
|
|
928
|
+
[`& > ${t}-item-container[role='button']`]: {
|
|
929
|
+
cursor: "pointer",
|
|
930
|
+
[`${t}-item`]: {
|
|
931
|
+
[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]: {
|
|
932
|
+
transition: `color ${i}`
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"&:hover": {
|
|
936
|
+
[`${t}-item`]: {
|
|
937
|
+
"&-title, &-subtitle, &-description": {
|
|
938
|
+
color: e.colorPrimary
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
[`&:not(${t}-item-process)`]: {
|
|
944
|
+
[`& > ${t}-item-container[role='button']:hover`]: {
|
|
945
|
+
[`${t}-item`]: {
|
|
946
|
+
"&-icon": {
|
|
947
|
+
borderColor: e.colorPrimary,
|
|
948
|
+
[`${t}-icon`]: {
|
|
949
|
+
color: e.colorPrimary
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
[`&${t}-horizontal:not(${t}-label-vertical)`]: {
|
|
958
|
+
[`${t}-item`]: {
|
|
959
|
+
paddingInlineStart: e.padding,
|
|
960
|
+
whiteSpace: "nowrap",
|
|
961
|
+
"&:first-child": {
|
|
962
|
+
paddingInlineStart: 0
|
|
963
|
+
},
|
|
964
|
+
[`&:last-child ${t}-item-title`]: {
|
|
965
|
+
paddingInlineEnd: 0
|
|
966
|
+
},
|
|
967
|
+
"&-tail": {
|
|
968
|
+
display: "none"
|
|
969
|
+
},
|
|
970
|
+
"&-description": {
|
|
971
|
+
maxWidth: e.descriptionMaxWidth,
|
|
972
|
+
whiteSpace: "normal"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
};
|
|
977
|
+
}, Vt = (e) => {
|
|
978
|
+
const {
|
|
979
|
+
componentCls: t
|
|
980
|
+
} = e;
|
|
981
|
+
return {
|
|
982
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, je(e)), {
|
|
983
|
+
display: "flex",
|
|
984
|
+
width: "100%",
|
|
985
|
+
fontSize: 0,
|
|
986
|
+
textAlign: "initial"
|
|
987
|
+
}), Lt(e)), Wt(e)), Ot(e)), qt(e)), At(e)), Dt(e)), wt(e)), _t(e)), xt(e)), Rt(e)), zt(e)), Pt(e))
|
|
988
|
+
};
|
|
989
|
+
}, Ut = (e) => ({
|
|
990
|
+
titleLineHeight: e.controlHeight,
|
|
991
|
+
customIconSize: e.controlHeight,
|
|
992
|
+
customIconTop: 0,
|
|
993
|
+
customIconFontSize: e.controlHeightSM,
|
|
994
|
+
iconSize: e.controlHeight,
|
|
995
|
+
iconTop: -0.5,
|
|
996
|
+
// magic for ui experience
|
|
997
|
+
iconFontSize: e.fontSize,
|
|
998
|
+
iconSizeSM: e.fontSizeHeading3,
|
|
999
|
+
dotSize: e.controlHeight / 4,
|
|
1000
|
+
dotCurrentSize: e.controlHeightLG / 4,
|
|
1001
|
+
navArrowColor: e.colorTextDisabled,
|
|
1002
|
+
navContentMaxWidth: "unset",
|
|
1003
|
+
descriptionMaxWidth: 140,
|
|
1004
|
+
waitIconColor: e.wireframe ? e.colorTextDisabled : e.colorTextLabel,
|
|
1005
|
+
waitIconBgColor: e.wireframe ? e.colorBgContainer : e.colorFillContent,
|
|
1006
|
+
waitIconBorderColor: e.wireframe ? e.colorTextDisabled : "transparent",
|
|
1007
|
+
finishIconBgColor: e.wireframe ? e.colorBgContainer : e.controlItemBgActive,
|
|
1008
|
+
finishIconBorderColor: e.wireframe ? e.colorPrimary : e.controlItemBgActive
|
|
1009
|
+
}), Xt = He("Steps", (e) => {
|
|
1010
|
+
const {
|
|
1011
|
+
colorTextDisabled: t,
|
|
1012
|
+
controlHeightLG: i,
|
|
1013
|
+
colorTextLightSolid: n,
|
|
1014
|
+
colorText: r,
|
|
1015
|
+
colorPrimary: o,
|
|
1016
|
+
colorTextDescription: a,
|
|
1017
|
+
colorTextQuaternary: p,
|
|
1018
|
+
colorError: u,
|
|
1019
|
+
colorBorderSecondary: s,
|
|
1020
|
+
colorSplit: d
|
|
1021
|
+
} = e, m = Be(e, {
|
|
1022
|
+
// Steps component less variable
|
|
1023
|
+
processIconColor: n,
|
|
1024
|
+
processTitleColor: r,
|
|
1025
|
+
processDescriptionColor: r,
|
|
1026
|
+
processIconBgColor: o,
|
|
1027
|
+
processIconBorderColor: o,
|
|
1028
|
+
processDotColor: o,
|
|
1029
|
+
processTailColor: d,
|
|
1030
|
+
waitTitleColor: a,
|
|
1031
|
+
waitDescriptionColor: a,
|
|
1032
|
+
waitTailColor: d,
|
|
1033
|
+
waitDotColor: t,
|
|
1034
|
+
finishIconColor: o,
|
|
1035
|
+
finishTitleColor: r,
|
|
1036
|
+
finishDescriptionColor: a,
|
|
1037
|
+
finishTailColor: o,
|
|
1038
|
+
finishDotColor: o,
|
|
1039
|
+
errorIconColor: n,
|
|
1040
|
+
errorTitleColor: u,
|
|
1041
|
+
errorDescriptionColor: u,
|
|
1042
|
+
errorTailColor: d,
|
|
1043
|
+
errorIconBgColor: u,
|
|
1044
|
+
errorIconBorderColor: u,
|
|
1045
|
+
errorDotColor: u,
|
|
1046
|
+
stepsNavActiveColor: o,
|
|
1047
|
+
stepsProgressSize: i,
|
|
1048
|
+
// Steps inline variable
|
|
1049
|
+
inlineDotSize: 6,
|
|
1050
|
+
inlineTitleColor: p,
|
|
1051
|
+
inlineTailColor: s
|
|
1052
|
+
});
|
|
1053
|
+
return Vt(m);
|
|
1054
|
+
}, Ut);
|
|
1055
|
+
function Gt(e) {
|
|
1056
|
+
return e.filter((t) => t);
|
|
1057
|
+
}
|
|
1058
|
+
function Ft(e, t) {
|
|
1059
|
+
if (process.env.NODE_ENV === "test" && Me("Menu").deprecated(!t, "Step", "items"), e)
|
|
1060
|
+
return e;
|
|
1061
|
+
const i = Le(t).map((n) => {
|
|
1062
|
+
if (/* @__PURE__ */ h.isValidElement(n)) {
|
|
1063
|
+
const {
|
|
1064
|
+
props: r
|
|
1065
|
+
} = n;
|
|
1066
|
+
return Object.assign({}, r);
|
|
1067
|
+
}
|
|
1068
|
+
return null;
|
|
1069
|
+
});
|
|
1070
|
+
return Gt(i);
|
|
1071
|
+
}
|
|
1072
|
+
var Kt = function(e, t) {
|
|
1073
|
+
var i = {};
|
|
1074
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
1075
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1076
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
1077
|
+
return i;
|
|
1078
|
+
};
|
|
1079
|
+
const $e = (e) => {
|
|
1080
|
+
const {
|
|
1081
|
+
percent: t,
|
|
1082
|
+
size: i,
|
|
1083
|
+
className: n,
|
|
1084
|
+
rootClassName: r,
|
|
1085
|
+
direction: o,
|
|
1086
|
+
items: a,
|
|
1087
|
+
responsive: p = !0,
|
|
1088
|
+
current: u = 0,
|
|
1089
|
+
children: s,
|
|
1090
|
+
style: d
|
|
1091
|
+
} = e, m = Kt(e, ["percent", "size", "className", "rootClassName", "direction", "items", "responsive", "current", "children", "style"]), {
|
|
1092
|
+
xs: b
|
|
1093
|
+
} = yt(p), {
|
|
1094
|
+
getPrefixCls: v,
|
|
1095
|
+
direction: C,
|
|
1096
|
+
className: z,
|
|
1097
|
+
style: _
|
|
1098
|
+
} = at("steps"), S = h.useMemo(() => p && b ? "vertical" : o, [p, b, o]), D = ct(i), I = v("steps", e.prefixCls), [P, $, N] = Xt(I), R = e.type === "inline", q = v("", e.iconPrefix), X = Ft(a, s), y = R ? void 0 : t, w = Object.assign(Object.assign({}, _), d), H = F(z, {
|
|
1099
|
+
[`${I}-rtl`]: C === "rtl",
|
|
1100
|
+
[`${I}-with-progress`]: y !== void 0
|
|
1101
|
+
}, n, r, $, N), O = {
|
|
1102
|
+
finish: /* @__PURE__ */ h.createElement(dt, {
|
|
1103
|
+
className: `${I}-finish-icon`
|
|
1104
|
+
}),
|
|
1105
|
+
error: /* @__PURE__ */ h.createElement(st, {
|
|
1106
|
+
className: `${I}-error-icon`
|
|
1107
|
+
})
|
|
1108
|
+
}, j = ({
|
|
1109
|
+
node: T,
|
|
1110
|
+
status: U
|
|
1111
|
+
}) => {
|
|
1112
|
+
if (U === "process" && y !== void 0) {
|
|
1113
|
+
const K = D === "small" ? 32 : 40;
|
|
1114
|
+
return /* @__PURE__ */ h.createElement("div", {
|
|
1115
|
+
className: `${I}-progress-icon`
|
|
1116
|
+
}, /* @__PURE__ */ h.createElement(Ct, {
|
|
1117
|
+
type: "circle",
|
|
1118
|
+
percent: y,
|
|
1119
|
+
size: K,
|
|
1120
|
+
strokeWidth: 4,
|
|
1121
|
+
format: () => null
|
|
1122
|
+
}), T);
|
|
1123
|
+
}
|
|
1124
|
+
return T;
|
|
1125
|
+
}, E = (T, U) => T.description ? /* @__PURE__ */ h.createElement(Et, {
|
|
1126
|
+
title: T.description
|
|
1127
|
+
}, U) : U;
|
|
1128
|
+
return P(/* @__PURE__ */ h.createElement(be, Object.assign({
|
|
1129
|
+
icons: O
|
|
1130
|
+
}, m, {
|
|
1131
|
+
style: w,
|
|
1132
|
+
current: u,
|
|
1133
|
+
size: D,
|
|
1134
|
+
items: X,
|
|
1135
|
+
itemRender: R ? E : void 0,
|
|
1136
|
+
stepIcon: j,
|
|
1137
|
+
direction: S,
|
|
1138
|
+
prefixCls: I,
|
|
1139
|
+
iconPrefix: q,
|
|
1140
|
+
className: H
|
|
1141
|
+
})));
|
|
1142
|
+
};
|
|
1143
|
+
$e.Step = be.Step;
|
|
1144
|
+
process.env.NODE_ENV !== "production" && ($e.displayName = "Steps");
|
|
1145
|
+
const Yt = (e) => {
|
|
1146
|
+
const {
|
|
1147
|
+
componentCls: t,
|
|
1148
|
+
calc: i
|
|
1149
|
+
} = e;
|
|
1150
|
+
return {
|
|
1151
|
+
[t]: Object.assign(Object.assign({}, je(e)), {
|
|
1152
|
+
margin: 0,
|
|
1153
|
+
padding: 0,
|
|
1154
|
+
listStyle: "none",
|
|
1155
|
+
[`${t}-item`]: {
|
|
1156
|
+
position: "relative",
|
|
1157
|
+
margin: 0,
|
|
1158
|
+
paddingBottom: e.itemPaddingBottom,
|
|
1159
|
+
fontSize: e.fontSize,
|
|
1160
|
+
listStyle: "none",
|
|
1161
|
+
"&-tail": {
|
|
1162
|
+
position: "absolute",
|
|
1163
|
+
insetBlockStart: e.itemHeadSize,
|
|
1164
|
+
insetInlineStart: i(i(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),
|
|
1165
|
+
height: `calc(100% - ${c(e.itemHeadSize)})`,
|
|
1166
|
+
borderInlineStart: `${c(e.tailWidth)} ${e.lineType} ${e.tailColor}`
|
|
1167
|
+
},
|
|
1168
|
+
"&-pending": {
|
|
1169
|
+
[`${t}-item-head`]: {
|
|
1170
|
+
fontSize: e.fontSizeSM,
|
|
1171
|
+
backgroundColor: "transparent"
|
|
1172
|
+
},
|
|
1173
|
+
[`${t}-item-tail`]: {
|
|
1174
|
+
display: "none"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"&-head": {
|
|
1178
|
+
position: "absolute",
|
|
1179
|
+
width: e.itemHeadSize,
|
|
1180
|
+
height: e.itemHeadSize,
|
|
1181
|
+
backgroundColor: e.dotBg,
|
|
1182
|
+
border: `${c(e.dotBorderWidth)} ${e.lineType} transparent`,
|
|
1183
|
+
borderRadius: "50%",
|
|
1184
|
+
"&-blue": {
|
|
1185
|
+
color: e.colorPrimary,
|
|
1186
|
+
borderColor: e.colorPrimary
|
|
1187
|
+
},
|
|
1188
|
+
"&-red": {
|
|
1189
|
+
color: e.colorError,
|
|
1190
|
+
borderColor: e.colorError
|
|
1191
|
+
},
|
|
1192
|
+
"&-green": {
|
|
1193
|
+
color: e.colorSuccess,
|
|
1194
|
+
borderColor: e.colorSuccess
|
|
1195
|
+
},
|
|
1196
|
+
"&-gray": {
|
|
1197
|
+
color: e.colorTextDisabled,
|
|
1198
|
+
borderColor: e.colorTextDisabled
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
"&-head-custom": {
|
|
1202
|
+
position: "absolute",
|
|
1203
|
+
insetBlockStart: i(e.itemHeadSize).div(2).equal(),
|
|
1204
|
+
insetInlineStart: i(e.itemHeadSize).div(2).equal(),
|
|
1205
|
+
width: "auto",
|
|
1206
|
+
height: "auto",
|
|
1207
|
+
marginBlockStart: 0,
|
|
1208
|
+
paddingBlock: e.customHeadPaddingVertical,
|
|
1209
|
+
lineHeight: 1,
|
|
1210
|
+
textAlign: "center",
|
|
1211
|
+
border: 0,
|
|
1212
|
+
borderRadius: 0,
|
|
1213
|
+
transform: "translate(-50%, -50%)"
|
|
1214
|
+
},
|
|
1215
|
+
"&-content": {
|
|
1216
|
+
position: "relative",
|
|
1217
|
+
insetBlockStart: i(i(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),
|
|
1218
|
+
marginInlineStart: i(e.margin).add(e.itemHeadSize).equal(),
|
|
1219
|
+
marginInlineEnd: 0,
|
|
1220
|
+
marginBlockStart: 0,
|
|
1221
|
+
marginBlockEnd: 0,
|
|
1222
|
+
wordBreak: "break-word"
|
|
1223
|
+
},
|
|
1224
|
+
"&-last": {
|
|
1225
|
+
[`> ${t}-item-tail`]: {
|
|
1226
|
+
display: "none"
|
|
1227
|
+
},
|
|
1228
|
+
[`> ${t}-item-content`]: {
|
|
1229
|
+
minHeight: i(e.controlHeightLG).mul(1.2).equal()
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
[`&${t}-alternate,
|
|
1234
|
+
&${t}-right,
|
|
1235
|
+
&${t}-label`]: {
|
|
1236
|
+
[`${t}-item`]: {
|
|
1237
|
+
"&-tail, &-head, &-head-custom": {
|
|
1238
|
+
insetInlineStart: "50%"
|
|
1239
|
+
},
|
|
1240
|
+
"&-head": {
|
|
1241
|
+
marginInlineStart: i(e.marginXXS).mul(-1).equal(),
|
|
1242
|
+
"&-custom": {
|
|
1243
|
+
marginInlineStart: i(e.tailWidth).div(2).equal()
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
"&-left": {
|
|
1247
|
+
[`${t}-item-content`]: {
|
|
1248
|
+
insetInlineStart: `calc(50% - ${c(e.marginXXS)})`,
|
|
1249
|
+
width: `calc(50% - ${c(e.marginSM)})`,
|
|
1250
|
+
textAlign: "start"
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
"&-right": {
|
|
1254
|
+
[`${t}-item-content`]: {
|
|
1255
|
+
width: `calc(50% - ${c(e.marginSM)})`,
|
|
1256
|
+
margin: 0,
|
|
1257
|
+
textAlign: "end"
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
[`&${t}-right`]: {
|
|
1263
|
+
[`${t}-item-right`]: {
|
|
1264
|
+
[`${t}-item-tail,
|
|
1265
|
+
${t}-item-head,
|
|
1266
|
+
${t}-item-head-custom`]: {
|
|
1267
|
+
insetInlineStart: `calc(100% - ${c(i(i(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`
|
|
1268
|
+
},
|
|
1269
|
+
[`${t}-item-content`]: {
|
|
1270
|
+
width: `calc(100% - ${c(i(e.itemHeadSize).add(e.marginXS).equal())})`
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
[`&${t}-pending
|
|
1275
|
+
${t}-item-last
|
|
1276
|
+
${t}-item-tail`]: {
|
|
1277
|
+
display: "block",
|
|
1278
|
+
height: `calc(100% - ${c(e.margin)})`,
|
|
1279
|
+
borderInlineStart: `${c(e.tailWidth)} dotted ${e.tailColor}`
|
|
1280
|
+
},
|
|
1281
|
+
[`&${t}-reverse
|
|
1282
|
+
${t}-item-last
|
|
1283
|
+
${t}-item-tail`]: {
|
|
1284
|
+
display: "none"
|
|
1285
|
+
},
|
|
1286
|
+
[`&${t}-reverse ${t}-item-pending`]: {
|
|
1287
|
+
[`${t}-item-tail`]: {
|
|
1288
|
+
insetBlockStart: e.margin,
|
|
1289
|
+
display: "block",
|
|
1290
|
+
height: `calc(100% - ${c(e.margin)})`,
|
|
1291
|
+
borderInlineStart: `${c(e.tailWidth)} dotted ${e.tailColor}`
|
|
1292
|
+
},
|
|
1293
|
+
[`${t}-item-content`]: {
|
|
1294
|
+
minHeight: i(e.controlHeightLG).mul(1.2).equal()
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
[`&${t}-label`]: {
|
|
1298
|
+
[`${t}-item-label`]: {
|
|
1299
|
+
position: "absolute",
|
|
1300
|
+
insetBlockStart: i(i(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),
|
|
1301
|
+
width: `calc(50% - ${c(e.marginSM)})`,
|
|
1302
|
+
textAlign: "end"
|
|
1303
|
+
},
|
|
1304
|
+
[`${t}-item-right`]: {
|
|
1305
|
+
[`${t}-item-label`]: {
|
|
1306
|
+
insetInlineStart: `calc(50% + ${c(e.marginSM)})`,
|
|
1307
|
+
width: `calc(50% - ${c(e.marginSM)})`,
|
|
1308
|
+
textAlign: "start"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
// ====================== RTL =======================
|
|
1313
|
+
"&-rtl": {
|
|
1314
|
+
direction: "rtl",
|
|
1315
|
+
[`${t}-item-head-custom`]: {
|
|
1316
|
+
transform: "translate(50%, -50%)"
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
})
|
|
1320
|
+
};
|
|
1321
|
+
}, Qt = (e) => ({
|
|
1322
|
+
tailColor: e.colorSplit,
|
|
1323
|
+
tailWidth: e.lineWidthBold,
|
|
1324
|
+
dotBorderWidth: e.wireframe ? e.lineWidthBold : e.lineWidth * 3,
|
|
1325
|
+
dotBg: e.colorBgContainer,
|
|
1326
|
+
itemPaddingBottom: e.padding * 1.25
|
|
1327
|
+
}), Jt = He("Timeline", (e) => {
|
|
1328
|
+
const t = Be(e, {
|
|
1329
|
+
itemHeadSize: 10,
|
|
1330
|
+
customHeadPaddingVertical: e.paddingXXS,
|
|
1331
|
+
paddingInlineEnd: 2
|
|
1332
|
+
});
|
|
1333
|
+
return Yt(t);
|
|
1334
|
+
}, Qt);
|
|
1335
|
+
var Zt = function(e, t) {
|
|
1336
|
+
var i = {};
|
|
1337
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
1338
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1339
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
1340
|
+
return i;
|
|
1341
|
+
};
|
|
1342
|
+
const Xe = (e) => {
|
|
1343
|
+
var {
|
|
1344
|
+
prefixCls: t,
|
|
1345
|
+
className: i,
|
|
1346
|
+
color: n = "blue",
|
|
1347
|
+
dot: r,
|
|
1348
|
+
pending: o = !1,
|
|
1349
|
+
position: a,
|
|
1350
|
+
label: p,
|
|
1351
|
+
children: u
|
|
1352
|
+
} = e, s = Zt(e, ["prefixCls", "className", "color", "dot", "pending", "position", "label", "children"]);
|
|
1353
|
+
const {
|
|
1354
|
+
getPrefixCls: d
|
|
1355
|
+
} = h.useContext(We), m = d("timeline", t), b = F(`${m}-item`, {
|
|
1356
|
+
[`${m}-item-pending`]: o
|
|
1357
|
+
}, i), v = /blue|red|green|gray/.test(n || "") ? void 0 : n, C = F(`${m}-item-head`, {
|
|
1358
|
+
[`${m}-item-head-custom`]: !!r,
|
|
1359
|
+
[`${m}-item-head-${n}`]: !v
|
|
1360
|
+
});
|
|
1361
|
+
return /* @__PURE__ */ h.createElement("li", Object.assign({}, s, {
|
|
1362
|
+
className: b
|
|
1363
|
+
}), p && /* @__PURE__ */ h.createElement("div", {
|
|
1364
|
+
className: `${m}-item-label`
|
|
1365
|
+
}, p), /* @__PURE__ */ h.createElement("div", {
|
|
1366
|
+
className: `${m}-item-tail`
|
|
1367
|
+
}), /* @__PURE__ */ h.createElement("div", {
|
|
1368
|
+
className: C,
|
|
1369
|
+
style: {
|
|
1370
|
+
borderColor: v,
|
|
1371
|
+
color: v
|
|
1372
|
+
}
|
|
1373
|
+
}, r), /* @__PURE__ */ h.createElement("div", {
|
|
1374
|
+
className: `${m}-item-content`
|
|
1375
|
+
}, u));
|
|
1376
|
+
};
|
|
1377
|
+
var we = function(e, t) {
|
|
1378
|
+
var i = {};
|
|
1379
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
1380
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1381
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
1382
|
+
return i;
|
|
1383
|
+
};
|
|
1384
|
+
const kt = (e) => {
|
|
1385
|
+
var {
|
|
1386
|
+
prefixCls: t,
|
|
1387
|
+
className: i,
|
|
1388
|
+
pending: n = !1,
|
|
1389
|
+
children: r,
|
|
1390
|
+
items: o,
|
|
1391
|
+
rootClassName: a,
|
|
1392
|
+
reverse: p = !1,
|
|
1393
|
+
direction: u,
|
|
1394
|
+
hashId: s,
|
|
1395
|
+
pendingDot: d,
|
|
1396
|
+
mode: m = ""
|
|
1397
|
+
} = e, b = we(e, ["prefixCls", "className", "pending", "children", "items", "rootClassName", "reverse", "direction", "hashId", "pendingDot", "mode"]);
|
|
1398
|
+
const v = ($, N) => m === "alternate" ? $ === "right" ? `${t}-item-right` : $ === "left" ? `${t}-item-left` : N % 2 === 0 ? `${t}-item-left` : `${t}-item-right` : m === "left" ? `${t}-item-left` : m === "right" ? `${t}-item-right` : $ === "right" ? `${t}-item-right` : "", C = mt(o || []), z = typeof n == "boolean" ? null : n;
|
|
1399
|
+
n && C.push({
|
|
1400
|
+
pending: !!n,
|
|
1401
|
+
dot: d || /* @__PURE__ */ h.createElement(ut, null),
|
|
1402
|
+
children: z
|
|
1403
|
+
}), p && C.reverse();
|
|
1404
|
+
const _ = C.length, S = `${t}-item-last`, D = C.filter(($) => !!$).map(($, N) => {
|
|
1405
|
+
var R;
|
|
1406
|
+
const q = N === _ - 2 ? S : "", X = N === _ - 1 ? S : "", {
|
|
1407
|
+
className: y
|
|
1408
|
+
} = $, w = we($, ["className"]);
|
|
1409
|
+
return /* @__PURE__ */ h.createElement(Xe, Object.assign({}, w, {
|
|
1410
|
+
className: F([y, !p && n ? q : X, v((R = $ == null ? void 0 : $.position) !== null && R !== void 0 ? R : "", N)]),
|
|
1411
|
+
key: ($ == null ? void 0 : $.key) || N
|
|
1412
|
+
}));
|
|
1413
|
+
}), I = C.some(($) => !!($ != null && $.label)), P = F(t, {
|
|
1414
|
+
[`${t}-pending`]: !!n,
|
|
1415
|
+
[`${t}-reverse`]: !!p,
|
|
1416
|
+
[`${t}-${m}`]: !!m && !I,
|
|
1417
|
+
[`${t}-label`]: I,
|
|
1418
|
+
[`${t}-rtl`]: u === "rtl"
|
|
1419
|
+
}, i, a, s);
|
|
1420
|
+
return /* @__PURE__ */ h.createElement("ol", Object.assign({}, b, {
|
|
1421
|
+
className: P
|
|
1422
|
+
}), D);
|
|
1423
|
+
};
|
|
1424
|
+
function ei(e, t) {
|
|
1425
|
+
return e && Array.isArray(e) ? e : Le(t).map((i) => {
|
|
1426
|
+
var n, r;
|
|
1427
|
+
return Object.assign({
|
|
1428
|
+
children: (r = (n = i == null ? void 0 : i.props) === null || n === void 0 ? void 0 : n.children) !== null && r !== void 0 ? r : ""
|
|
1429
|
+
}, i.props);
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
var ti = function(e, t) {
|
|
1433
|
+
var i = {};
|
|
1434
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
1435
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1436
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
1437
|
+
return i;
|
|
1438
|
+
};
|
|
1439
|
+
const Se = (e) => {
|
|
1440
|
+
const {
|
|
1441
|
+
getPrefixCls: t,
|
|
1442
|
+
direction: i,
|
|
1443
|
+
timeline: n
|
|
1444
|
+
} = h.useContext(We), {
|
|
1445
|
+
prefixCls: r,
|
|
1446
|
+
children: o,
|
|
1447
|
+
items: a,
|
|
1448
|
+
className: p,
|
|
1449
|
+
style: u
|
|
1450
|
+
} = e, s = ti(e, ["prefixCls", "children", "items", "className", "style"]), d = t("timeline", r);
|
|
1451
|
+
process.env.NODE_ENV !== "production" && Me("Timeline").deprecated(!o, "Timeline.Item", "items");
|
|
1452
|
+
const m = pt(d), [b, v, C] = Jt(d, m), z = ei(a, o);
|
|
1453
|
+
return b(/* @__PURE__ */ h.createElement(kt, Object.assign({}, s, {
|
|
1454
|
+
className: F(n == null ? void 0 : n.className, p, C, m),
|
|
1455
|
+
style: Object.assign(Object.assign({}, n == null ? void 0 : n.style), u),
|
|
1456
|
+
prefixCls: d,
|
|
1457
|
+
direction: i,
|
|
1458
|
+
items: z,
|
|
1459
|
+
hashId: v
|
|
1460
|
+
})));
|
|
1461
|
+
};
|
|
1462
|
+
Se.Item = Xe;
|
|
1463
|
+
process.env.NODE_ENV !== "production" && (Se.displayName = "Timeline");
|
|
1464
|
+
function J(e) {
|
|
1465
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
1466
|
+
}
|
|
1467
|
+
function L(e) {
|
|
1468
|
+
return typeof e == "string" ? e : void 0;
|
|
1469
|
+
}
|
|
1470
|
+
function ge(e) {
|
|
1471
|
+
return L(e) ?? (typeof e == "number" && Number.isSafeInteger(e) ? String(e) : void 0);
|
|
1472
|
+
}
|
|
1473
|
+
function ee(e, t) {
|
|
1474
|
+
if (!J(e)) throw new Error(`${t}数据格式不正确`);
|
|
1475
|
+
return e;
|
|
1476
|
+
}
|
|
1477
|
+
function A(e, t) {
|
|
1478
|
+
if (typeof e != "string" || !e.trim()) throw new Error(`${t}缺失或格式不正确`);
|
|
1479
|
+
return e;
|
|
1480
|
+
}
|
|
1481
|
+
function oe(e, t, i = 0) {
|
|
1482
|
+
const n = typeof e == "string" && /^\d+$/.test(e) ? Number(e) : e;
|
|
1483
|
+
if (typeof n != "number" || !Number.isSafeInteger(n) || n < i) throw new Error(`${t}格式不正确`);
|
|
1484
|
+
return n;
|
|
1485
|
+
}
|
|
1486
|
+
function le(e, t) {
|
|
1487
|
+
if (!Array.isArray(e)) throw new Error(`${t}数据格式不正确`);
|
|
1488
|
+
return e;
|
|
1489
|
+
}
|
|
1490
|
+
function xe(e, t) {
|
|
1491
|
+
return e == null ? void 0 : ee(e, t);
|
|
1492
|
+
}
|
|
1493
|
+
function ve(e, t = !1) {
|
|
1494
|
+
const i = ee(e, "工单"), n = i.repository;
|
|
1495
|
+
if (n !== "FRONTEND" && n !== "BACKEND" && n !== "BOTH") throw new Error("工单目标仓库格式不正确");
|
|
1496
|
+
return {
|
|
1497
|
+
code: A(i.code, "工单编码"),
|
|
1498
|
+
title: A(i.title, "标题"),
|
|
1499
|
+
repository: n,
|
|
1500
|
+
status: A(i.status, "状态"),
|
|
1501
|
+
version: oe(i.version, "工单版本"),
|
|
1502
|
+
reporterId: ge(i.reporterId) ?? "",
|
|
1503
|
+
createTime: A(i.createTime, "创建时间"),
|
|
1504
|
+
updateTime: A(i.updateTime, "更新时间"),
|
|
1505
|
+
description: L(i.description),
|
|
1506
|
+
steps: L(i.steps),
|
|
1507
|
+
expected: L(i.expected),
|
|
1508
|
+
context: xe(i.context, "诊断上下文"),
|
|
1509
|
+
allowedActions: le(i.allowedActions, "可用动作").map((r) => A(r, "动作")),
|
|
1510
|
+
history: le(t && i.history == null ? [] : i.history, "决策历史").map((r) => {
|
|
1511
|
+
const o = ee(r, "决策历史");
|
|
1512
|
+
return {
|
|
1513
|
+
at: A(o.at, "决策时间"),
|
|
1514
|
+
actorId: ge(o.actorId) ?? "",
|
|
1515
|
+
action: A(o.action, "历史动作"),
|
|
1516
|
+
comment: L(o.comment)
|
|
1517
|
+
};
|
|
1518
|
+
}),
|
|
1519
|
+
runs: le(t && i.runs == null ? [] : i.runs, "执行记录").map((r) => {
|
|
1520
|
+
const o = ee(r, "执行记录");
|
|
1521
|
+
return {
|
|
1522
|
+
code: A(o.code, "执行编码"),
|
|
1523
|
+
stage: A(o.stage, "执行阶段"),
|
|
1524
|
+
status: A(o.status, "执行状态"),
|
|
1525
|
+
summary: L(o.summary),
|
|
1526
|
+
sessionId: L(o.sessionId),
|
|
1527
|
+
callId: L(o.callId),
|
|
1528
|
+
evidence: xe(o.evidence, "执行证据"),
|
|
1529
|
+
createTime: A(o.createTime, "执行创建时间"),
|
|
1530
|
+
updateTime: A(o.updateTime, "执行更新时间")
|
|
1531
|
+
};
|
|
1532
|
+
})
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
function ii(e) {
|
|
1536
|
+
const t = ee(e, "工单分页");
|
|
1537
|
+
return {
|
|
1538
|
+
records: le(t.records, "工单列表").map((i) => ve(i, !0)),
|
|
1539
|
+
total: oe(t.total, "总数"),
|
|
1540
|
+
current: oe(t.current, "页码", 1),
|
|
1541
|
+
size: oe(t.size, "页大小", 1)
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
function Ge(e) {
|
|
1545
|
+
const t = [], i = J(e) ? e : {};
|
|
1546
|
+
e != null && !J(e) && t.push("执行证据不是对象,无法解析");
|
|
1547
|
+
function n(o) {
|
|
1548
|
+
const a = i[o];
|
|
1549
|
+
return a == null ? [] : Array.isArray(a) ? a.flatMap((p) => J(p) ? [p] : (t.push(`${o} 中存在无法解析的记录`), [])) : (t.push(`${o} 不是列表,无法解析`), []);
|
|
1550
|
+
}
|
|
1551
|
+
function r(o, a) {
|
|
1552
|
+
return o[a] != null && typeof o[a] != "string" && t.push(`${a} 格式不正确`), L(o[a]);
|
|
1553
|
+
}
|
|
1554
|
+
return {
|
|
1555
|
+
summary: r(i, "summary"),
|
|
1556
|
+
sessionId: r(i, "sessionId"),
|
|
1557
|
+
callId: r(i, "callId"),
|
|
1558
|
+
branches: n("branches").map((o) => ({
|
|
1559
|
+
repository: r(o, "repository"),
|
|
1560
|
+
branch: r(o, "branch"),
|
|
1561
|
+
baseCommit: r(o, "baseCommit"),
|
|
1562
|
+
commit: r(o, "commit")
|
|
1563
|
+
})),
|
|
1564
|
+
tests: n("tests").map((o) => {
|
|
1565
|
+
const a = typeof o.exitCode == "number" && Number.isSafeInteger(o.exitCode) ? o.exitCode : void 0;
|
|
1566
|
+
return o.exitCode != null && a === void 0 && t.push("exitCode 格式不正确"), { name: r(o, "name"), exitCode: a, evidencePath: r(o, "evidencePath"), sha256: r(o, "sha256") };
|
|
1567
|
+
}),
|
|
1568
|
+
deployments: n("deployments").map((o) => ({
|
|
1569
|
+
repository: r(o, "repository"),
|
|
1570
|
+
environment: r(o, "environment"),
|
|
1571
|
+
deployId: ge(o.deployId),
|
|
1572
|
+
status: r(o, "status"),
|
|
1573
|
+
commit: r(o, "commit")
|
|
1574
|
+
})),
|
|
1575
|
+
warnings: t
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
const Ie = "/kb/v1/development";
|
|
1579
|
+
async function xi(e, t) {
|
|
1580
|
+
const i = new URLSearchParams({ current: String(e.current), size: String(e.size) });
|
|
1581
|
+
return e.status && i.set("status", e.status), e.keyword && i.set("keyword", e.keyword), ii(await fe(`${Ie}/page`, { params: i, signal: t, silent: !0 }));
|
|
1582
|
+
}
|
|
1583
|
+
async function ni(e, t) {
|
|
1584
|
+
return ve(await fe(`${Ie}/detail`, {
|
|
1585
|
+
params: new URLSearchParams({ code: e }),
|
|
1586
|
+
signal: t,
|
|
1587
|
+
silent: !0
|
|
1588
|
+
}));
|
|
1589
|
+
}
|
|
1590
|
+
async function ri(e) {
|
|
1591
|
+
return ve(await fe(`${Ie}/decision`, { method: "POST", data: e, silent: !0 }));
|
|
1592
|
+
}
|
|
1593
|
+
const ze = {
|
|
1594
|
+
SUBMITTED: { label: "待研发批准", color: "gold" },
|
|
1595
|
+
DEVELOPMENT_QUEUED: { label: "等待研发", color: "blue" },
|
|
1596
|
+
DEVELOPING: { label: "研发中", color: "processing" },
|
|
1597
|
+
DEV_REVIEW: { label: "待dev发布批准", color: "gold" },
|
|
1598
|
+
DEV_QUEUED: { label: "等待dev发布", color: "blue" },
|
|
1599
|
+
DEPLOYING_DEV: { label: "dev发布中", color: "processing" },
|
|
1600
|
+
DEV_ACCEPTANCE: { label: "待dev验收", color: "gold" },
|
|
1601
|
+
PRODUCTION_REVIEW: { label: "待生产批准", color: "gold" },
|
|
1602
|
+
PRODUCTION_QUEUED: { label: "等待生产发布", color: "blue" },
|
|
1603
|
+
DEPLOYING_PRODUCTION: { label: "生产发布中", color: "processing" },
|
|
1604
|
+
CLOSED: { label: "已完成", color: "success" },
|
|
1605
|
+
REJECTED: { label: "已驳回", color: "default" },
|
|
1606
|
+
FAILED: { label: "执行失败", color: "error" }
|
|
1607
|
+
}, re = (e) => Object.prototype.hasOwnProperty.call(ze, e) ? ze[e] : { label: e, color: "default" }, ye = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : t, ce = (e) => ye({ FRONTEND: "前端", BACKEND: "后端", BOTH: "前端与后端" }, e), _e = (e) => ye({ DEVELOPMENT: "研发", DEV: "dev 发布", PRODUCTION: "生产发布" }, e), Re = (e) => ye({ QUEUED: "排队中", RUNNING: "执行中", SUCCEEDED: "执行成功", FAILED: "执行失败" }, e), Fe = (e) => ["DEVELOPMENT_QUEUED", "DEVELOPING", "DEV_QUEUED", "DEPLOYING_DEV", "PRODUCTION_QUEUED", "DEPLOYING_PRODUCTION"].includes(e), Z = {
|
|
1608
|
+
APPROVE_DEVELOPMENT: { label: "批准研发", permission: "development.approve", consequence: "批准后将在目标仓库的隔离工作区启动研发执行。" },
|
|
1609
|
+
REJECT: { label: "驳回", permission: "development.approve", consequence: "驳回此工单,不再继续当前流程。请说明原因。" },
|
|
1610
|
+
APPROVE_DEV: { label: "批准发布dev", permission: "development.deploy.dev", consequence: "将当前冻结提交发布到 dev 环境。部署成功不代表验收通过。" },
|
|
1611
|
+
ACCEPT_DEV: { label: "dev验收通过", permission: "development.deploy.dev", consequence: "请先在 dev 实际复核问题与测试结果;确认后进入生产批准卡点,不会直接发布生产。" },
|
|
1612
|
+
RETURN_TO_DEVELOPMENT: { label: "退回研发", permission: "development.approve", consequence: "退回研发处理,请说明仍需修复的问题。" },
|
|
1613
|
+
APPROVE_PRODUCTION: { label: "批准发布生产", permission: "development.deploy.production", consequence: "目标环境:生产(PRODUCTION)。此操作将授权发布已验收的冻结分支与 commit,可能影响线上用户。" },
|
|
1614
|
+
RETRY: { label: "重试", permission: "development.approve", consequence: "请求后端重试失败执行;具体可重试阶段由后端决定。" }
|
|
1615
|
+
};
|
|
1616
|
+
function Ke(e) {
|
|
1617
|
+
return Object.prototype.hasOwnProperty.call(Z, e);
|
|
1618
|
+
}
|
|
1619
|
+
function Ye(e) {
|
|
1620
|
+
return [...e.runs].sort((t, i) => i.createTime.localeCompare(t.createTime) || i.updateTime.localeCompare(t.updateTime))[0];
|
|
1621
|
+
}
|
|
1622
|
+
function Qe(e, t) {
|
|
1623
|
+
var i;
|
|
1624
|
+
return t === "APPROVE_PRODUCTION" || t === "RETRY" && ((i = Ye(e)) == null ? void 0 : i.stage) === "PRODUCTION";
|
|
1625
|
+
}
|
|
1626
|
+
function he(e, t) {
|
|
1627
|
+
return [...new Set(e.allowedActions)].filter(Ke).filter((i) => {
|
|
1628
|
+
var r;
|
|
1629
|
+
if (i !== "RETRY") return t(Z[i].permission);
|
|
1630
|
+
const n = (r = Ye(e)) == null ? void 0 : r.stage;
|
|
1631
|
+
return n === "PRODUCTION" ? t("development.deploy.production") : n === "DEV" ? t("development.deploy.dev") : n === "DEVELOPMENT" && t("development.approve");
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
const Je = (e) => e === "REJECT" || e === "RETURN_TO_DEVELOPMENT";
|
|
1635
|
+
function oi(e) {
|
|
1636
|
+
return e.runs.filter((t) => t.stage === "DEVELOPMENT").sort((t, i) => i.createTime.localeCompare(t.createTime) || i.updateTime.localeCompare(t.updateTime))[0];
|
|
1637
|
+
}
|
|
1638
|
+
function Ze(e) {
|
|
1639
|
+
var t;
|
|
1640
|
+
return Ge((t = oi(e)) == null ? void 0 : t.evidence).branches;
|
|
1641
|
+
}
|
|
1642
|
+
function li(e) {
|
|
1643
|
+
const t = Ze(e);
|
|
1644
|
+
return (e.repository === "BOTH" ? ["FRONTEND", "BACKEND"] : [e.repository]).every((n) => t.some((r) => {
|
|
1645
|
+
var o, a;
|
|
1646
|
+
return r.repository === n && ((o = r.branch) == null ? void 0 : o.trim()) && ((a = r.commit) == null ? void 0 : a.trim());
|
|
1647
|
+
}));
|
|
1648
|
+
}
|
|
1649
|
+
function ai(e, t, i, n) {
|
|
1650
|
+
if (Je(t) && !i.trim()) return "请填写意见后再提交";
|
|
1651
|
+
if (Qe(e, t)) {
|
|
1652
|
+
if (!li(e)) return "缺少完整的冻结分支或 commit,不能确认生产发布";
|
|
1653
|
+
if (n !== e.code) return "请输入完整工单编码确认生产发布";
|
|
1654
|
+
}
|
|
1655
|
+
return "";
|
|
1656
|
+
}
|
|
1657
|
+
function ci(e) {
|
|
1658
|
+
return [
|
|
1659
|
+
["SUBMITTED"],
|
|
1660
|
+
["DEVELOPMENT_QUEUED", "DEVELOPING"],
|
|
1661
|
+
["DEV_REVIEW", "DEV_QUEUED", "DEPLOYING_DEV"],
|
|
1662
|
+
["DEV_ACCEPTANCE"],
|
|
1663
|
+
["PRODUCTION_REVIEW", "PRODUCTION_QUEUED", "DEPLOYING_PRODUCTION"],
|
|
1664
|
+
["CLOSED"]
|
|
1665
|
+
].findIndex((i) => i.includes(e.status));
|
|
1666
|
+
}
|
|
1667
|
+
function si(e, t, i) {
|
|
1668
|
+
const [n, r] = G(null), [o, a] = G(!0), [p, u] = G(""), [s, d] = G(null), [m, b] = G(""), [v, C] = G(!1), [z, _] = G(!1), S = k(!1), D = k(!1), I = k(0), P = k(null), $ = k(null), N = $t(async () => {
|
|
1669
|
+
var H;
|
|
1670
|
+
if (D.current) return;
|
|
1671
|
+
const y = ++I.current;
|
|
1672
|
+
(H = P.current) == null || H.abort();
|
|
1673
|
+
const w = new AbortController();
|
|
1674
|
+
P.current = w, a(!0);
|
|
1675
|
+
try {
|
|
1676
|
+
const O = await ni(e, w.signal);
|
|
1677
|
+
if (!S.current || I.current !== y) return;
|
|
1678
|
+
if (O.code !== e) throw new Error("详情返回的工单编码不匹配");
|
|
1679
|
+
(!$.current || O.version >= $.current.version) && ($.current = O, r(O)), u("");
|
|
1680
|
+
} catch (O) {
|
|
1681
|
+
S.current && I.current === y && u(O instanceof Error ? O.message : "工单详情加载失败");
|
|
1682
|
+
} finally {
|
|
1683
|
+
S.current && I.current === y && a(!1);
|
|
1684
|
+
}
|
|
1685
|
+
}, [e]);
|
|
1686
|
+
Oe(() => {
|
|
1687
|
+
S.current = !0, $.current = null;
|
|
1688
|
+
let y = !0;
|
|
1689
|
+
return Promise.resolve().then(() => {
|
|
1690
|
+
if (y) return N();
|
|
1691
|
+
}), () => {
|
|
1692
|
+
var w;
|
|
1693
|
+
y = !1, S.current = !1, (w = P.current) == null || w.abort();
|
|
1694
|
+
};
|
|
1695
|
+
}, [N]), Oe(() => {
|
|
1696
|
+
if (!n || !Fe(n.status) || o || v) return;
|
|
1697
|
+
const y = setTimeout(() => {
|
|
1698
|
+
N();
|
|
1699
|
+
}, 5e3);
|
|
1700
|
+
return () => clearTimeout(y);
|
|
1701
|
+
}, [n, o, v, N]);
|
|
1702
|
+
function R(y) {
|
|
1703
|
+
!n || D.current || o || p || !he(n, t).includes(y) || (b(""), _(!1), d({ issue: n, action: y }));
|
|
1704
|
+
}
|
|
1705
|
+
function q() {
|
|
1706
|
+
D.current || (d(null), b(""));
|
|
1707
|
+
}
|
|
1708
|
+
async function X(y, w) {
|
|
1709
|
+
var j;
|
|
1710
|
+
if (D.current || !s || !n) return !1;
|
|
1711
|
+
const H = ai(s.issue, s.action, y, w);
|
|
1712
|
+
if (H)
|
|
1713
|
+
return b(H), !1;
|
|
1714
|
+
if (z || s.issue.version !== n.version)
|
|
1715
|
+
return b("工单版本已更新,请取消后重新确认。当前意见仍保留。"), !1;
|
|
1716
|
+
if (p || !he(n, t).includes(s.action))
|
|
1717
|
+
return b("当前动作已不可用,请刷新工单后重新确认"), !1;
|
|
1718
|
+
D.current = !0, C(!0), b(""), ++I.current, (j = P.current) == null || j.abort(), a(!1);
|
|
1719
|
+
let O = !1;
|
|
1720
|
+
try {
|
|
1721
|
+
const E = await ri({ code: e, version: s.issue.version, action: s.action, comment: y.trim() });
|
|
1722
|
+
if (!S.current) return !1;
|
|
1723
|
+
if (E.code !== e || E.version < s.issue.version) throw new Error("决策响应版本或工单编码不匹配,请刷新确认结果");
|
|
1724
|
+
return $.current = E, r(E), u(""), d(null), i(), !0;
|
|
1725
|
+
} catch (E) {
|
|
1726
|
+
return S.current && (O = E instanceof gt && (E.status === 409 || String(E.code) === "409" || String(E.code) === "90005"), O ? (_(!0), b("工单版本已失效,正在刷新详情。意见已保留,请取消后重新确认。")) : b(E instanceof Error ? E.message : "提交失败,请重试")), !1;
|
|
1727
|
+
} finally {
|
|
1728
|
+
D.current = !1, S.current && (C(!1), O && await N());
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
return { issue: n, loading: o, error: p, refresh: N, pending: s, decisionError: m, busy: v, conflict: z, begin: R, cancel: q, submit: X };
|
|
1732
|
+
}
|
|
1733
|
+
function W({ value: e }) {
|
|
1734
|
+
return e ? /* @__PURE__ */ l(x.Text, { className: "development-code", copyable: { text: e }, children: e }) : /* @__PURE__ */ l(x.Text, { type: "secondary", children: "未提供" });
|
|
1735
|
+
}
|
|
1736
|
+
function ke({ branches: e }) {
|
|
1737
|
+
return e.length ? /* @__PURE__ */ l("div", { className: "development-evidence-list", children: e.map((t, i) => /* @__PURE__ */ f(g, { column: 1, size: "small", title: ce(t.repository || "未提供仓库"), children: [
|
|
1738
|
+
/* @__PURE__ */ l(g.Item, { label: "分支", children: /* @__PURE__ */ l(W, { value: t.branch }) }),
|
|
1739
|
+
/* @__PURE__ */ l(g.Item, { label: "基线 commit", children: /* @__PURE__ */ l(W, { value: t.baseCommit }) }),
|
|
1740
|
+
/* @__PURE__ */ l(g.Item, { label: "冻结 commit", children: /* @__PURE__ */ l(W, { value: t.commit }) })
|
|
1741
|
+
] }, i)) }) : /* @__PURE__ */ l(x.Text, { type: "secondary", children: "尚无分支与提交证据" });
|
|
1742
|
+
}
|
|
1743
|
+
function di({ run: e }) {
|
|
1744
|
+
const t = Ge(e.evidence), i = e.sessionId || t.sessionId, n = e.callId || t.callId;
|
|
1745
|
+
return /* @__PURE__ */ f("section", { className: "development-run", "aria-label": `执行 ${e.code}`, children: [
|
|
1746
|
+
/* @__PURE__ */ f("div", { className: "development-section-heading", children: [
|
|
1747
|
+
/* @__PURE__ */ l("h3", { children: _e(e.stage) }),
|
|
1748
|
+
/* @__PURE__ */ l(ue, { color: e.status === "FAILED" ? "error" : e.status === "SUCCEEDED" ? "success" : "default", children: Re(e.status) })
|
|
1749
|
+
] }),
|
|
1750
|
+
/* @__PURE__ */ f(g, { column: 1, size: "small", children: [
|
|
1751
|
+
/* @__PURE__ */ l(g.Item, { label: "执行编号", children: /* @__PURE__ */ l(W, { value: e.code }) }),
|
|
1752
|
+
/* @__PURE__ */ l(g.Item, { label: "摘要", children: /* @__PURE__ */ l("span", { className: "development-text", children: e.summary || t.summary || "尚无执行摘要" }) }),
|
|
1753
|
+
/* @__PURE__ */ f(g.Item, { label: "创建 / 更新", children: [
|
|
1754
|
+
e.createTime,
|
|
1755
|
+
" / ",
|
|
1756
|
+
e.updateTime
|
|
1757
|
+
] }),
|
|
1758
|
+
/* @__PURE__ */ l(g.Item, { label: "DSH session", children: /* @__PURE__ */ l(W, { value: i }) }),
|
|
1759
|
+
/* @__PURE__ */ l(g.Item, { label: "DSH call", children: /* @__PURE__ */ l(W, { value: n }) })
|
|
1760
|
+
] }),
|
|
1761
|
+
(e.stage === "DEVELOPMENT" || t.branches.length > 0) && /* @__PURE__ */ f(Y, { children: [
|
|
1762
|
+
/* @__PURE__ */ l("h4", { children: "分支与提交" }),
|
|
1763
|
+
/* @__PURE__ */ l(ke, { branches: t.branches }),
|
|
1764
|
+
/* @__PURE__ */ l("h4", { children: "测试执行证据" }),
|
|
1765
|
+
!t.tests.length && /* @__PURE__ */ l(x.Text, { type: "secondary", children: "尚无测试证据,不代表测试通过" }),
|
|
1766
|
+
t.tests.map((r, o) => /* @__PURE__ */ f(g, { column: 1, size: "small", title: r.name || "未命名测试", children: [
|
|
1767
|
+
/* @__PURE__ */ l(g.Item, { label: "执行结果", children: /* @__PURE__ */ l(ue, { color: r.exitCode === void 0 ? "default" : r.exitCode === 0 ? "success" : "error", children: r.exitCode === void 0 ? "未提供退出码" : `退出码 ${r.exitCode}${r.exitCode === 0 ? "(执行成功)" : "(执行失败)"}` }) }),
|
|
1768
|
+
/* @__PURE__ */ l(g.Item, { label: "证据路径", children: /* @__PURE__ */ l(W, { value: r.evidencePath }) }),
|
|
1769
|
+
/* @__PURE__ */ l(g.Item, { label: "SHA-256", children: /* @__PURE__ */ l(W, { value: r.sha256 }) })
|
|
1770
|
+
] }, o))
|
|
1771
|
+
] }),
|
|
1772
|
+
(e.stage !== "DEVELOPMENT" || t.deployments.length > 0) && /* @__PURE__ */ f(Y, { children: [
|
|
1773
|
+
/* @__PURE__ */ f("h4", { children: [
|
|
1774
|
+
"发布记录 · ",
|
|
1775
|
+
_e(e.stage)
|
|
1776
|
+
] }),
|
|
1777
|
+
!t.deployments.length && /* @__PURE__ */ l(x.Text, { type: "secondary", children: "尚无发布记录" }),
|
|
1778
|
+
t.deployments.map((r, o) => /* @__PURE__ */ f(g, { column: 1, size: "small", title: ce(r.repository || "未提供仓库"), children: [
|
|
1779
|
+
/* @__PURE__ */ l(g.Item, { label: "发布环境", children: r.environment === "PRODUCTION" ? "生产" : r.environment === "DEV" ? "dev" : r.environment || "未提供" }),
|
|
1780
|
+
/* @__PURE__ */ l(g.Item, { label: "发布单", children: /* @__PURE__ */ l(W, { value: r.deployId }) }),
|
|
1781
|
+
/* @__PURE__ */ l(g.Item, { label: "发布状态", children: r.status ? Re(r.status) : "未提供" }),
|
|
1782
|
+
/* @__PURE__ */ l(g.Item, { label: "commit", children: /* @__PURE__ */ l(W, { value: r.commit }) })
|
|
1783
|
+
] }, o))
|
|
1784
|
+
] }),
|
|
1785
|
+
t.warnings.length > 0 && /* @__PURE__ */ f(x.Paragraph, { type: "warning", children: [
|
|
1786
|
+
"证据字段不完整:",
|
|
1787
|
+
[...new Set(t.warnings)].join(";")
|
|
1788
|
+
] }),
|
|
1789
|
+
e.evidence && /* @__PURE__ */ l(Ve, { size: "small", items: [{ key: "raw", label: "原始执行证据(辅助)", children: /* @__PURE__ */ l("pre", { className: "development-json", children: JSON.stringify(e.evidence, null, 2) }) }] })
|
|
1790
|
+
] });
|
|
1791
|
+
}
|
|
1792
|
+
function mi({ runs: e }) {
|
|
1793
|
+
return e.length ? /* @__PURE__ */ l(Y, { children: [...e].sort((t, i) => i.createTime.localeCompare(t.createTime)).map((t) => /* @__PURE__ */ l(di, { run: t }, t.code)) }) : /* @__PURE__ */ l(te, { image: te.PRESENTED_IMAGE_SIMPLE, description: "尚无执行记录" });
|
|
1794
|
+
}
|
|
1795
|
+
function ui({ pending: e, busy: t, error: i, stale: n, onCancel: r, onSubmit: o }) {
|
|
1796
|
+
const [a, p] = G(""), [u, s] = G(""), { action: d, issue: m } = e, b = Qe(m, d), v = Z[d];
|
|
1797
|
+
return /* @__PURE__ */ f(
|
|
1798
|
+
St,
|
|
1799
|
+
{
|
|
1800
|
+
open: !0,
|
|
1801
|
+
title: `确认${v.label}`,
|
|
1802
|
+
okText: v.label,
|
|
1803
|
+
cancelText: "取消",
|
|
1804
|
+
confirmLoading: t,
|
|
1805
|
+
closable: !t,
|
|
1806
|
+
maskClosable: !t,
|
|
1807
|
+
keyboard: !t,
|
|
1808
|
+
cancelButtonProps: { disabled: t },
|
|
1809
|
+
okButtonProps: { danger: b || d === "REJECT", disabled: n },
|
|
1810
|
+
onCancel: r,
|
|
1811
|
+
onOk: () => {
|
|
1812
|
+
o(a, u);
|
|
1813
|
+
},
|
|
1814
|
+
children: [
|
|
1815
|
+
b ? /* @__PURE__ */ l(pe, { type: "warning", showIcon: !0, message: "生产发布确认", description: Z.APPROVE_PRODUCTION.consequence }) : /* @__PURE__ */ l(x.Paragraph, { children: v.consequence }),
|
|
1816
|
+
/* @__PURE__ */ f(x.Paragraph, { children: [
|
|
1817
|
+
"工单:",
|
|
1818
|
+
m.code,
|
|
1819
|
+
" · ",
|
|
1820
|
+
ce(m.repository),
|
|
1821
|
+
" · 版本 ",
|
|
1822
|
+
m.version
|
|
1823
|
+
] }),
|
|
1824
|
+
(b || d === "APPROVE_DEV") && /* @__PURE__ */ l(ke, { branches: Ze(m) }),
|
|
1825
|
+
/* @__PURE__ */ f(me, { layout: "vertical", children: [
|
|
1826
|
+
/* @__PURE__ */ l(me.Item, { label: "意见", required: Je(d), children: /* @__PURE__ */ l(De.TextArea, { "aria-label": "意见", value: a, onChange: (C) => p(C.target.value), rows: 3, maxLength: 4e3, showCount: !0, disabled: t }) }),
|
|
1827
|
+
b && /* @__PURE__ */ l(me.Item, { label: `输入工单编码 ${m.code} 确认`, required: !0, children: /* @__PURE__ */ l(De, { "aria-label": "生产确认工单编码", autoComplete: "off", value: u, onChange: (C) => s(C.target.value), disabled: t }) })
|
|
1828
|
+
] }),
|
|
1829
|
+
n && /* @__PURE__ */ l(x.Paragraph, { type: "warning", children: "工单状态或权限已变化,请取消后重新确认。" }),
|
|
1830
|
+
i && /* @__PURE__ */ l(pe, { type: "error", showIcon: !0, message: i })
|
|
1831
|
+
]
|
|
1832
|
+
}
|
|
1833
|
+
);
|
|
1834
|
+
}
|
|
1835
|
+
function B(e) {
|
|
1836
|
+
return typeof e == "string" ? e : typeof e == "number" && Number.isFinite(e) ? String(e) : "未提供";
|
|
1837
|
+
}
|
|
1838
|
+
function pi({ context: e }) {
|
|
1839
|
+
if (!e || Object.keys(e).length === 0) return /* @__PURE__ */ l(x.Text, { type: "secondary", children: "未附带诊断上下文" });
|
|
1840
|
+
const t = Array.isArray(e.events) ? e.events.filter(J) : [], i = J(e.viewport) ? e.viewport : null, n = { runtime: "运行时异常", unhandledrejection: "未处理的异步异常", resource: "资源加载失败", http: "接口失败" };
|
|
1841
|
+
return /* @__PURE__ */ f(Y, { children: [
|
|
1842
|
+
/* @__PURE__ */ f(g, { column: 1, size: "small", children: [
|
|
1843
|
+
/* @__PURE__ */ l(g.Item, { label: "采集时间", children: B(e.capturedAt) }),
|
|
1844
|
+
/* @__PURE__ */ l(g.Item, { label: "页面路径", children: B(e.route) }),
|
|
1845
|
+
/* @__PURE__ */ l(g.Item, { label: "构建版本", children: B(e.buildVersion) }),
|
|
1846
|
+
/* @__PURE__ */ l(g.Item, { label: "浏览器", children: B(e.userAgent) }),
|
|
1847
|
+
/* @__PURE__ */ l(g.Item, { label: "视口", children: i ? `${B(i.width)} × ${B(i.height)}` : "未提供" })
|
|
1848
|
+
] }),
|
|
1849
|
+
/* @__PURE__ */ f(x.Paragraph, { type: "secondary", children: [
|
|
1850
|
+
"附带事件 ",
|
|
1851
|
+
t.length,
|
|
1852
|
+
" 条(仅反馈采集窗口,不代表全量日志)"
|
|
1853
|
+
] }),
|
|
1854
|
+
t.map((r, o) => /* @__PURE__ */ f(g, { column: 1, size: "small", title: Object.prototype.hasOwnProperty.call(n, L(r.type) || "") ? n[L(r.type) || ""] : B(r.type), children: [
|
|
1855
|
+
/* @__PURE__ */ l(g.Item, { label: "时间", children: B(r.time) }),
|
|
1856
|
+
/* @__PURE__ */ l(g.Item, { label: "摘要", children: /* @__PURE__ */ l("span", { className: "development-text", children: B(r.message) }) }),
|
|
1857
|
+
!!(r.path || r.source || r.url) && /* @__PURE__ */ l(g.Item, { label: "位置", children: B(r.path || r.source || r.url) }),
|
|
1858
|
+
r.status != null && /* @__PURE__ */ l(g.Item, { label: "HTTP 状态", children: B(r.status) }),
|
|
1859
|
+
r.traceId != null && /* @__PURE__ */ l(g.Item, { label: "Trace ID", children: B(r.traceId) })
|
|
1860
|
+
] }, o)),
|
|
1861
|
+
/* @__PURE__ */ l(Ve, { size: "small", items: [{ key: "context", label: "原始诊断 JSON(辅助)", children: /* @__PURE__ */ l("pre", { className: "development-json", children: JSON.stringify(e, null, 2) }) }] })
|
|
1862
|
+
] });
|
|
1863
|
+
}
|
|
1864
|
+
function gi({ issue: e }) {
|
|
1865
|
+
const t = ci(e), i = Fe(e.status) ? "每 5 秒刷新执行状态" : e.status === "CLOSED" || e.status === "REJECTED" ? "流程已结束,可手动刷新" : t < 0 ? "请查看执行记录,可手动刷新" : "在此卡点等待人工处理,可手动刷新";
|
|
1866
|
+
return /* @__PURE__ */ f(Y, { children: [
|
|
1867
|
+
/* @__PURE__ */ f("section", { className: "development-section", children: [
|
|
1868
|
+
/* @__PURE__ */ f("div", { className: "development-section-heading", children: [
|
|
1869
|
+
/* @__PURE__ */ l(x.Title, { level: 4, children: e.title }),
|
|
1870
|
+
/* @__PURE__ */ l(ue, { color: re(e.status).color, children: re(e.status).label })
|
|
1871
|
+
] }),
|
|
1872
|
+
/* @__PURE__ */ f(g, { column: 2, size: "small", children: [
|
|
1873
|
+
/* @__PURE__ */ l(g.Item, { label: "工单编码", children: /* @__PURE__ */ l(W, { value: e.code }) }),
|
|
1874
|
+
/* @__PURE__ */ l(g.Item, { label: "目标仓库", children: ce(e.repository) }),
|
|
1875
|
+
/* @__PURE__ */ l(g.Item, { label: "反馈人", children: e.reporterId || "未提供" }),
|
|
1876
|
+
/* @__PURE__ */ l(g.Item, { label: "版本", children: e.version }),
|
|
1877
|
+
/* @__PURE__ */ l(g.Item, { label: "创建时间", children: e.createTime }),
|
|
1878
|
+
/* @__PURE__ */ l(g.Item, { label: "更新时间", children: e.updateTime })
|
|
1879
|
+
] }),
|
|
1880
|
+
/* @__PURE__ */ l("h3", { children: "问题描述" }),
|
|
1881
|
+
/* @__PURE__ */ l("p", { className: "development-text", children: e.description || "未提供问题描述" }),
|
|
1882
|
+
/* @__PURE__ */ l("h3", { children: "复现步骤" }),
|
|
1883
|
+
/* @__PURE__ */ l("p", { className: "development-text", children: e.steps || "未提供复现步骤" }),
|
|
1884
|
+
/* @__PURE__ */ l("h3", { children: "期望结果" }),
|
|
1885
|
+
/* @__PURE__ */ l("p", { className: "development-text", children: e.expected || "未提供期望结果" })
|
|
1886
|
+
] }),
|
|
1887
|
+
/* @__PURE__ */ f("section", { className: "development-section", children: [
|
|
1888
|
+
/* @__PURE__ */ l("h3", { children: "流水线与当前卡点" }),
|
|
1889
|
+
/* @__PURE__ */ f(x.Paragraph, { children: [
|
|
1890
|
+
/* @__PURE__ */ f("strong", { children: [
|
|
1891
|
+
"当前:",
|
|
1892
|
+
re(e.status).label
|
|
1893
|
+
] }),
|
|
1894
|
+
" · ",
|
|
1895
|
+
i
|
|
1896
|
+
] }),
|
|
1897
|
+
/* @__PURE__ */ l($e, { size: "small", direction: "vertical", current: t, items: ["研发批准", "研发执行", "dev 发布", "dev 验收", "生产批准与发布", "完成"].map((n, r) => ({
|
|
1898
|
+
title: n,
|
|
1899
|
+
status: r === t ? e.status === "CLOSED" ? "finish" : "process" : "wait",
|
|
1900
|
+
description: r === t ? re(e.status).label : void 0
|
|
1901
|
+
})) }),
|
|
1902
|
+
e.status === "FAILED" && /* @__PURE__ */ l(x.Paragraph, { type: "danger", children: "执行失败,请查看下方执行摘要及证据。是否可重试由后端决定。" })
|
|
1903
|
+
] }),
|
|
1904
|
+
/* @__PURE__ */ f("section", { className: "development-section", children: [
|
|
1905
|
+
/* @__PURE__ */ l("h3", { children: "诊断摘要" }),
|
|
1906
|
+
/* @__PURE__ */ l(pi, { context: e.context })
|
|
1907
|
+
] }),
|
|
1908
|
+
/* @__PURE__ */ f("section", { className: "development-section", children: [
|
|
1909
|
+
/* @__PURE__ */ l("h3", { children: "执行与发布证据" }),
|
|
1910
|
+
/* @__PURE__ */ l(mi, { runs: e.runs })
|
|
1911
|
+
] }),
|
|
1912
|
+
/* @__PURE__ */ f("section", { className: "development-section", children: [
|
|
1913
|
+
/* @__PURE__ */ l("h3", { children: "历史人工决策" }),
|
|
1914
|
+
e.history.length ? /* @__PURE__ */ l(Se, { items: e.history.map((n) => ({ children: /* @__PURE__ */ f(Y, { children: [
|
|
1915
|
+
/* @__PURE__ */ l(x.Text, { strong: !0, children: Ke(n.action) ? Z[n.action].label : n.action }),
|
|
1916
|
+
/* @__PURE__ */ f("p", { children: [
|
|
1917
|
+
n.at,
|
|
1918
|
+
" · 操作人 ",
|
|
1919
|
+
n.actorId || "未提供"
|
|
1920
|
+
] }),
|
|
1921
|
+
/* @__PURE__ */ l("p", { className: "development-text", children: n.comment || "未填写意见" })
|
|
1922
|
+
] }) })) }) : /* @__PURE__ */ l(te, { image: te.PRESENTED_IMAGE_SIMPLE, description: "尚无人工决策记录" })
|
|
1923
|
+
] })
|
|
1924
|
+
] });
|
|
1925
|
+
}
|
|
1926
|
+
function zi({ code: e, onClose: t, onChanged: i }) {
|
|
1927
|
+
var s;
|
|
1928
|
+
const n = ht(), { message: r } = ft.useApp(), o = (d) => !n.loading && n.can(d), a = si(e, o, i), p = a.issue ? he(a.issue, o) : [], u = !!(a.pending && (a.conflict || a.pending.issue.version !== ((s = a.issue) == null ? void 0 : s.version) || !p.includes(a.pending.action)));
|
|
1929
|
+
return /* @__PURE__ */ f(Y, { children: [
|
|
1930
|
+
/* @__PURE__ */ f(
|
|
1931
|
+
vt,
|
|
1932
|
+
{
|
|
1933
|
+
open: !0,
|
|
1934
|
+
title: "研发工单详情",
|
|
1935
|
+
width: "min(880px, 100vw)",
|
|
1936
|
+
rootClassName: "development-drawer",
|
|
1937
|
+
onClose: t,
|
|
1938
|
+
closable: !a.busy,
|
|
1939
|
+
maskClosable: !a.busy,
|
|
1940
|
+
keyboard: !a.busy,
|
|
1941
|
+
extra: /* @__PURE__ */ l(de, { onClick: () => {
|
|
1942
|
+
a.refresh();
|
|
1943
|
+
}, loading: a.loading, disabled: a.busy, children: "刷新详情" }),
|
|
1944
|
+
footer: a.issue && /* @__PURE__ */ l(It, { wrap: !0, children: p.length ? p.map((d) => /* @__PURE__ */ l(
|
|
1945
|
+
de,
|
|
1946
|
+
{
|
|
1947
|
+
type: d.startsWith("APPROVE") ? "primary" : "default",
|
|
1948
|
+
danger: d === "REJECT" || d === "APPROVE_PRODUCTION",
|
|
1949
|
+
disabled: a.busy || a.loading || !!a.error,
|
|
1950
|
+
onClick: () => a.begin(d),
|
|
1951
|
+
children: Z[d].label
|
|
1952
|
+
},
|
|
1953
|
+
d
|
|
1954
|
+
)) : /* @__PURE__ */ l(x.Text, { type: "secondary", children: "当前没有可执行的人工动作" }) }),
|
|
1955
|
+
children: [
|
|
1956
|
+
a.error && /* @__PURE__ */ l(pe, { type: "error", showIcon: !0, message: "详情加载失败", description: a.error, action: /* @__PURE__ */ l(de, { onClick: () => {
|
|
1957
|
+
a.refresh();
|
|
1958
|
+
}, disabled: a.busy, children: "重试" }) }),
|
|
1959
|
+
a.loading && !a.issue ? /* @__PURE__ */ l("div", { className: "development-region-state", children: /* @__PURE__ */ l(bt, { tip: "正在加载工单详情", children: /* @__PURE__ */ l("div", {}) }) }) : a.issue ? /* @__PURE__ */ l(gi, { issue: a.issue }) : !a.error && /* @__PURE__ */ l(te, { description: "未找到工单,请刷新重试" })
|
|
1960
|
+
]
|
|
1961
|
+
}
|
|
1962
|
+
),
|
|
1963
|
+
a.pending && /* @__PURE__ */ l(
|
|
1964
|
+
ui,
|
|
1965
|
+
{
|
|
1966
|
+
pending: a.pending,
|
|
1967
|
+
busy: a.busy,
|
|
1968
|
+
error: a.decisionError,
|
|
1969
|
+
stale: u,
|
|
1970
|
+
onCancel: a.cancel,
|
|
1971
|
+
onSubmit: async (d, m) => {
|
|
1972
|
+
const b = await a.submit(d, m);
|
|
1973
|
+
return b && r.success("决策已提交,状态以服务端返回为准"), b;
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
)
|
|
1977
|
+
] });
|
|
1978
|
+
}
|
|
1979
|
+
export {
|
|
1980
|
+
ze as I,
|
|
1981
|
+
Fe as a,
|
|
1982
|
+
zi as b,
|
|
1983
|
+
re as i,
|
|
1984
|
+
xi as p,
|
|
1985
|
+
ce as r,
|
|
1986
|
+
_e as s
|
|
1987
|
+
};
|