@yuku123/z-cognition-component 2.0.0 → 2.0.2
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/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-CvgRLQw2.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-DYDhijtn.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DJnybJtS.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-3IbhY8Lp.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-Cd6CVzz4.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-cIXgilaE.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-BQzH4ChB.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-LKTj_HKM.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-CxuJ5unU.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-BplnCOF4.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-xEt2qnho.js → changelog-BoGqt_81.js} +2 -2
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Cn81Dvgk.js} +1 -1
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-BaX7WiWV.js} +51 -50
- package/dist-lib/{detail-BW6dD_YP.js → detail-Cx5c4KJH.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-C3Oz04OW.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-Cbn2eJaJ.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-mtaJBQXz.js} +21 -20
- package/dist-lib/embed-CR8XVkMy.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-BoHiY8yT.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/{index-BJ2Gpcbi.js → index-B22_2Dzh.js} +2 -2
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-rtSfQuYs.js → index-BSlCGnzo.js} +12 -12
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-SAPKyv8e.js → index-Bm1sK-VN.js} +10 -10
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-B5jr3A7f.js → index-CHBNrCMy.js} +19 -19
- package/dist-lib/{index-BFRg0cn3.js → index-CLTfICbf.js} +6 -6
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-Cj4DDWyj.js} +11 -10
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-PBT9GksC.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-B0rM1ZvV.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-Bh_FQH28.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-Cl1Ka1e6.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-CPuzdRiq.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-Cu62Fl7J.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-DKDx77PD.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-BrooQ3Q7.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-Dievi8Jw.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-xTNmTS9g.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-BD_qYTZu.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-DiHYqBKB.js} +2 -2
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-BBCu3zRe.js} +8 -8
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-BXsdMJSV.js} +4 -4
- package/dist-lib/{my-access-j53lA6T6.js → my-access-CEGErUgv.js} +4 -4
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-wSr5zv7g.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BevAuTe5.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-DXGSJC-y.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-jTG7CZm8.js} +88 -84
- package/dist-lib/ontology-modeling-CjRsa-DR.js +1039 -0
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-DOj68TuI.js} +2125 -2117
- package/dist-lib/ontology-scenarios-CcAagMiP.js +660 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-J5kw6xgi.js} +703 -712
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-BUXo69Ne.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-D31cXjul.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-CiWNK-cX.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DQ_OBV4Z.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-DESMvU7A.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-BktxwX3S.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-dsB3H65I.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-CTCzvhyE.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-BstybhBG.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-CHPlMsgO.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-tXqc855k.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-BiTOiZj0.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-BKlGPkV0.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-CouQ4FWk.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-BPlNfoiP.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-ja-ZIC_R.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-CkBm36Yk.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-B4kIbdVc.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-F5iZoFB1.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as Qe, m as ke, r as Me, u as re, aj as Ce, f as fe, ak as we, _ as q, s as Je, j as Ze, d as pe, ad as et, a8 as tt, ac as nt, al as rt, am as ot, D as at, an as lt, ao as Ve, ap as Y, aq as st, ar as it, a3 as ct, ab as me, Q as Ie, W as ut, x as mt, F as dt, as as Ne, at as ft, T as Re, v as pt, M as gt, l as ht, b as bt, Y as yt, a2 as Ct, au as De, c as ve, av as vt, aw as xt, n as $t, ax as Et, U as Ot, ay as St, az as wt, aA as It, L as Nt } from "./index-CrMcNEAZ.js";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import { isValidElement as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { isValidElement as Ft } from "react";
|
|
4
|
+
import { c as X, I as Pt, _ as jt } from "./SearchOutlined-puH6bCY6.js";
|
|
5
|
+
import { g as _t } from "./collapse-Dtpt-6W_.js";
|
|
6
|
+
import { z as Le, w as Mt } from "./index-bOY1cBol.js";
|
|
7
|
+
import { u as ze, g as Te, t as be, a as Vt } from "./useForm-Byp1LopG.js";
|
|
8
|
+
import { C as Ae, R as Rt } from "./row-B5MnGm9M.js";
|
|
9
|
+
import { T as Dt } from "./index-BwVZgt5s.js";
|
|
10
|
+
import { R as Lt, b as zt } from "./context-Buz0ggsK.js";
|
|
11
|
+
import { a as Tt, C as At, F as Wt, P as qt, r as Ht, M as Bt, u as Xt, c as ie, w as Gt, b as Kt, d as Ut, e as Yt, f as Fe, m as Qt, g as kt } from "./index-DjFPRXl5.js";
|
|
8
12
|
function Jt(e) {
|
|
9
|
-
return e == null ? null : typeof e == "object" && !/* @__PURE__ */
|
|
13
|
+
return e == null ? null : typeof e == "object" && !/* @__PURE__ */ Ft(e) ? e : {
|
|
10
14
|
title: e
|
|
11
15
|
};
|
|
12
16
|
}
|
|
@@ -124,7 +128,7 @@ const Zt = (e) => {
|
|
|
124
128
|
componentCls: t
|
|
125
129
|
} = e;
|
|
126
130
|
return {
|
|
127
|
-
[e.componentCls]: Object.assign(Object.assign(Object.assign({},
|
|
131
|
+
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, Me(e)), en(e)), {
|
|
128
132
|
[`${t}-text`]: {
|
|
129
133
|
display: "inline-block",
|
|
130
134
|
paddingInlineEnd: e.paddingSM
|
|
@@ -151,7 +155,7 @@ const Zt = (e) => {
|
|
|
151
155
|
itemMarginBottom: d
|
|
152
156
|
} = e;
|
|
153
157
|
return {
|
|
154
|
-
[t]: Object.assign(Object.assign({},
|
|
158
|
+
[t]: Object.assign(Object.assign({}, Me(e)), {
|
|
155
159
|
marginBottom: d,
|
|
156
160
|
verticalAlign: "top",
|
|
157
161
|
"&-with-help": {
|
|
@@ -318,7 +322,7 @@ const Zt = (e) => {
|
|
|
318
322
|
fontSize: e.fontSize,
|
|
319
323
|
textAlign: "center",
|
|
320
324
|
visibility: "visible",
|
|
321
|
-
animationName:
|
|
325
|
+
animationName: Le,
|
|
322
326
|
animationDuration: e.motionDurationMid,
|
|
323
327
|
animationTimingFunction: e.motionEaseOutBack,
|
|
324
328
|
pointerEvents: "none",
|
|
@@ -504,7 +508,7 @@ const Zt = (e) => {
|
|
|
504
508
|
rootPrefixCls: t
|
|
505
509
|
}) => {
|
|
506
510
|
const r = We(e, t);
|
|
507
|
-
return [tn(r), nn(r), Zt(r), rn(r), on(r), ln(r),
|
|
511
|
+
return [tn(r), nn(r), Zt(r), rn(r), on(r), ln(r), _t(r), Le];
|
|
508
512
|
}, sn, {
|
|
509
513
|
// Let From style before the Grid
|
|
510
514
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
@@ -528,7 +532,7 @@ const qe = ({
|
|
|
528
532
|
}) => {
|
|
529
533
|
const {
|
|
530
534
|
prefixCls: i
|
|
531
|
-
} = o.useContext(Ce), f = `${i}-item-explain`, c = fe(i), [p, d,
|
|
535
|
+
} = o.useContext(Ce), f = `${i}-item-explain`, c = fe(i), [p, d, b] = xe(i, c), j = o.useMemo(() => we(i), [i]), I = de(r), C = de(n), g = o.useMemo(() => e != null ? [ye(e, "help", t)] : [].concat(q(I.map((u, l) => ye(u, "error", "error", l))), q(C.map((u, l) => ye(u, "warning", "warning", l)))), [e, t, I, C]), O = o.useMemo(() => {
|
|
532
536
|
const u = {};
|
|
533
537
|
return g.forEach(({
|
|
534
538
|
key: l
|
|
@@ -549,7 +553,7 @@ const qe = ({
|
|
|
549
553
|
style: S
|
|
550
554
|
} = u;
|
|
551
555
|
return /* @__PURE__ */ o.createElement("div", Object.assign({}, v, {
|
|
552
|
-
className: X(f, l,
|
|
556
|
+
className: X(f, l, b, c, a, d),
|
|
553
557
|
style: S
|
|
554
558
|
}), /* @__PURE__ */ o.createElement(Ze, Object.assign({
|
|
555
559
|
keys: O
|
|
@@ -604,7 +608,7 @@ const mn = (e, t) => {
|
|
|
604
608
|
} = tt("form"), {
|
|
605
609
|
prefixCls: p,
|
|
606
610
|
className: d,
|
|
607
|
-
rootClassName:
|
|
611
|
+
rootClassName: b,
|
|
608
612
|
size: j,
|
|
609
613
|
disabled: I = r,
|
|
610
614
|
form: C,
|
|
@@ -624,12 +628,12 @@ const mn = (e, t) => {
|
|
|
624
628
|
variant: B
|
|
625
629
|
} = e, w = un(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), D = nt(j), L = o.useContext(rt);
|
|
626
630
|
process.env.NODE_ENV !== "production" && cn(e);
|
|
627
|
-
const
|
|
628
|
-
[`${
|
|
631
|
+
const z = o.useMemo(() => N !== void 0 ? N : S ? !1 : s !== void 0 ? s : !0, [S, N, s]), Q = g ?? m, h = n("form", p), G = fe(h), [T, oe, K] = xe(h, G), ae = X(h, `${h}-${V}`, {
|
|
632
|
+
[`${h}-hide-required-mark`]: z === !1,
|
|
629
633
|
// todo: remove in next major version
|
|
630
|
-
[`${
|
|
631
|
-
[`${
|
|
632
|
-
}, K, G, oe, f, d,
|
|
634
|
+
[`${h}-rtl`]: a === "rtl",
|
|
635
|
+
[`${h}-${D}`]: D
|
|
636
|
+
}, K, G, oe, f, d, b), [k] = ze(C), {
|
|
633
637
|
__INTERNAL__: le
|
|
634
638
|
} = k;
|
|
635
639
|
le.name = F;
|
|
@@ -641,11 +645,11 @@ const mn = (e, t) => {
|
|
|
641
645
|
wrapperCol: l,
|
|
642
646
|
layout: V,
|
|
643
647
|
colon: Q,
|
|
644
|
-
requiredMark:
|
|
648
|
+
requiredMark: z,
|
|
645
649
|
itemRef: le.itemRef,
|
|
646
650
|
form: k,
|
|
647
651
|
feedbackIcons: W
|
|
648
|
-
}), [F, O, u, l, V, Q,
|
|
652
|
+
}), [F, O, u, l, V, Q, z, k, W]), x = o.useRef(null);
|
|
649
653
|
o.useImperativeHandle(t, () => {
|
|
650
654
|
var E;
|
|
651
655
|
return Object.assign(Object.assign({}, k), {
|
|
@@ -669,13 +673,13 @@ const mn = (e, t) => {
|
|
|
669
673
|
i !== void 0 && R(i, A);
|
|
670
674
|
}
|
|
671
675
|
};
|
|
672
|
-
return
|
|
676
|
+
return T(/* @__PURE__ */ o.createElement(ot.Provider, {
|
|
673
677
|
value: B
|
|
674
678
|
}, /* @__PURE__ */ o.createElement(at, {
|
|
675
679
|
disabled: I
|
|
676
680
|
}, /* @__PURE__ */ o.createElement(lt.Provider, {
|
|
677
681
|
value: D
|
|
678
|
-
}, /* @__PURE__ */ o.createElement(
|
|
682
|
+
}, /* @__PURE__ */ o.createElement(Ve, {
|
|
679
683
|
// This is not list in API, we pass with spread
|
|
680
684
|
validateMessages: L
|
|
681
685
|
}, /* @__PURE__ */ o.createElement(Y.Provider, {
|
|
@@ -756,13 +760,13 @@ const gn = (e) => {
|
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
762
|
};
|
|
759
|
-
},
|
|
763
|
+
}, hn = dt(["Form", "item-item"], (e, {
|
|
760
764
|
rootPrefixCls: t
|
|
761
765
|
}) => {
|
|
762
766
|
const r = We(e, t);
|
|
763
767
|
return gn(r);
|
|
764
768
|
});
|
|
765
|
-
var
|
|
769
|
+
var bn = function(e, t) {
|
|
766
770
|
var r = {};
|
|
767
771
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
768
772
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
@@ -782,23 +786,23 @@ const yn = 24, Cn = (e) => {
|
|
|
782
786
|
extra: c,
|
|
783
787
|
help: p,
|
|
784
788
|
fieldId: d,
|
|
785
|
-
marginBottom:
|
|
789
|
+
marginBottom: b,
|
|
786
790
|
onErrorVisibleChanged: j,
|
|
787
791
|
label: I
|
|
788
792
|
} = e, C = `${t}-item`, g = o.useContext(Y), O = o.useMemo(() => {
|
|
789
793
|
let w = Object.assign({}, a || g.wrapperCol || {});
|
|
790
794
|
return I === null && !n && !a && g.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((L) => {
|
|
791
|
-
const
|
|
792
|
-
"span" in
|
|
795
|
+
const z = L ? [L] : [], Q = Ne(g.labelCol, z), h = typeof Q == "object" ? Q : {}, G = Ne(w, z), T = typeof G == "object" ? G : {};
|
|
796
|
+
"span" in h && !("offset" in T) && h.span < yn && (w = ft(w, [].concat(z, ["offset"]), h.span));
|
|
793
797
|
}), w;
|
|
794
798
|
}, [a, g.wrapperCol, g.labelCol, I, n]), v = X(`${C}-control`, O.className), u = o.useMemo(() => {
|
|
795
799
|
const {
|
|
796
800
|
labelCol: w,
|
|
797
801
|
wrapperCol: D
|
|
798
802
|
} = g;
|
|
799
|
-
return
|
|
803
|
+
return bn(g, ["labelCol", "wrapperCol"]);
|
|
800
804
|
}, [g]), l = o.useRef(null), [S, V] = o.useState(0);
|
|
801
|
-
|
|
805
|
+
Re(() => {
|
|
802
806
|
c && l.current ? V(l.current.clientHeight) : V(0);
|
|
803
807
|
}, [c]);
|
|
804
808
|
const $ = /* @__PURE__ */ o.createElement("div", {
|
|
@@ -808,7 +812,7 @@ const yn = 24, Cn = (e) => {
|
|
|
808
812
|
}, s)), N = o.useMemo(() => ({
|
|
809
813
|
prefixCls: t,
|
|
810
814
|
status: r
|
|
811
|
-
}), [t, r]), y =
|
|
815
|
+
}), [t, r]), y = b !== null || m.length || i.length ? /* @__PURE__ */ o.createElement(Ce.Provider, {
|
|
812
816
|
value: N
|
|
813
817
|
}, /* @__PURE__ */ o.createElement(qe, {
|
|
814
818
|
fieldId: d,
|
|
@@ -825,8 +829,8 @@ const yn = 24, Cn = (e) => {
|
|
|
825
829
|
ref: l
|
|
826
830
|
}), c) : null, W = y || P ? /* @__PURE__ */ o.createElement("div", {
|
|
827
831
|
className: `${C}-additional`,
|
|
828
|
-
style:
|
|
829
|
-
minHeight:
|
|
832
|
+
style: b ? {
|
|
833
|
+
minHeight: b + S
|
|
830
834
|
} : {}
|
|
831
835
|
}, y, P) : null, B = f && f.mark === "pro_table_render" && f.render ? f.render(e, {
|
|
832
836
|
input: $,
|
|
@@ -837,12 +841,12 @@ const yn = 24, Cn = (e) => {
|
|
|
837
841
|
value: u
|
|
838
842
|
}, /* @__PURE__ */ o.createElement(Ae, Object.assign({}, O, {
|
|
839
843
|
className: v
|
|
840
|
-
}), B), /* @__PURE__ */ o.createElement(
|
|
844
|
+
}), B), /* @__PURE__ */ o.createElement(hn, {
|
|
841
845
|
prefixCls: t
|
|
842
846
|
}));
|
|
843
847
|
};
|
|
844
848
|
var vn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, xn = function(t, r) {
|
|
845
|
-
return /* @__PURE__ */ o.createElement(
|
|
849
|
+
return /* @__PURE__ */ o.createElement(Pt, jt({}, t, {
|
|
846
850
|
ref: r,
|
|
847
851
|
icon: vn
|
|
848
852
|
}));
|
|
@@ -868,15 +872,15 @@ const En = ({
|
|
|
868
872
|
vertical: c
|
|
869
873
|
}) => {
|
|
870
874
|
var p;
|
|
871
|
-
const [d] =
|
|
872
|
-
labelAlign:
|
|
875
|
+
const [d] = pt("Form"), {
|
|
876
|
+
labelAlign: b,
|
|
873
877
|
labelCol: j,
|
|
874
878
|
labelWrap: I,
|
|
875
879
|
colon: C
|
|
876
880
|
} = o.useContext(Y);
|
|
877
881
|
if (!t)
|
|
878
882
|
return null;
|
|
879
|
-
const g = n || j || {}, O = a ||
|
|
883
|
+
const g = n || j || {}, O = a || b, v = `${e}-item-label`, u = X(v, O === "left" && `${v}-left`, g.className, {
|
|
880
884
|
[`${v}-wrap`]: !!I
|
|
881
885
|
});
|
|
882
886
|
let l = t;
|
|
@@ -886,7 +890,7 @@ const En = ({
|
|
|
886
890
|
if ($) {
|
|
887
891
|
const {
|
|
888
892
|
icon: B = /* @__PURE__ */ o.createElement(Xe, null)
|
|
889
|
-
} = $, w = $n($, ["icon"]), D = /* @__PURE__ */ o.createElement(
|
|
893
|
+
} = $, w = $n($, ["icon"]), D = /* @__PURE__ */ o.createElement(Dt, Object.assign({}, w), /* @__PURE__ */ o.cloneElement(B, {
|
|
890
894
|
className: `${e}-item-tooltip`,
|
|
891
895
|
title: "",
|
|
892
896
|
onClick: (L) => {
|
|
@@ -902,7 +906,7 @@ const En = ({
|
|
|
902
906
|
}) : N && !m && (l = /* @__PURE__ */ o.createElement(o.Fragment, null, l, /* @__PURE__ */ o.createElement("span", {
|
|
903
907
|
className: `${e}-item-optional`,
|
|
904
908
|
title: ""
|
|
905
|
-
}, (d == null ? void 0 : d.optional) || ((p =
|
|
909
|
+
}, (d == null ? void 0 : d.optional) || ((p = gt.Form) === null || p === void 0 ? void 0 : p.optional))));
|
|
906
910
|
let P;
|
|
907
911
|
F ? P = "hidden" : (N || y) && (P = "optional");
|
|
908
912
|
const W = X({
|
|
@@ -918,10 +922,10 @@ const En = ({
|
|
|
918
922
|
title: typeof t == "string" ? t : ""
|
|
919
923
|
}, l));
|
|
920
924
|
}, On = {
|
|
921
|
-
success:
|
|
922
|
-
warning:
|
|
923
|
-
error:
|
|
924
|
-
validating:
|
|
925
|
+
success: zt,
|
|
926
|
+
warning: Lt,
|
|
927
|
+
error: bt,
|
|
928
|
+
validating: ht
|
|
925
929
|
};
|
|
926
930
|
function Ge({
|
|
927
931
|
children: e,
|
|
@@ -936,8 +940,8 @@ function Ge({
|
|
|
936
940
|
}) {
|
|
937
941
|
const c = `${s}-item`, {
|
|
938
942
|
feedbackIcons: p
|
|
939
|
-
} = o.useContext(Y), d =
|
|
940
|
-
isFormItemInput:
|
|
943
|
+
} = o.useContext(Y), d = Te(t, r, m, null, !!n, a), {
|
|
944
|
+
isFormItemInput: b,
|
|
941
945
|
status: j,
|
|
942
946
|
hasFeedback: I,
|
|
943
947
|
feedbackIcon: C,
|
|
@@ -964,8 +968,8 @@ function Ge({
|
|
|
964
968
|
isFormItemInput: !0,
|
|
965
969
|
name: f
|
|
966
970
|
};
|
|
967
|
-
return i && (l.status = (d ?? j) || "", l.isFormItemInput =
|
|
968
|
-
}, [d, n, i,
|
|
971
|
+
return i && (l.status = (d ?? j) || "", l.isFormItemInput = b, l.hasFeedback = !!(n ?? I), l.feedbackIcon = n !== void 0 ? l.feedbackIcon : C, l.name = f ?? g), l;
|
|
972
|
+
}, [d, n, i, b, j]);
|
|
969
973
|
return /* @__PURE__ */ o.createElement(me.Provider, {
|
|
970
974
|
value: O
|
|
971
975
|
}, e);
|
|
@@ -990,7 +994,7 @@ function wn(e) {
|
|
|
990
994
|
meta: c,
|
|
991
995
|
hasFeedback: p,
|
|
992
996
|
hidden: d,
|
|
993
|
-
children:
|
|
997
|
+
children: b,
|
|
994
998
|
fieldId: j,
|
|
995
999
|
required: I,
|
|
996
1000
|
isRequired: C,
|
|
@@ -1000,26 +1004,26 @@ function wn(e) {
|
|
|
1000
1004
|
} = e, u = Sn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]), l = `${t}-item`, {
|
|
1001
1005
|
requiredMark: S,
|
|
1002
1006
|
layout: V
|
|
1003
|
-
} = o.useContext(Y), $ = O || V, N = $ === "vertical", y = o.useRef(null), F = de(m), P = de(i), W = s != null, B = !!(W || m.length || i.length), w = !!y.current &&
|
|
1004
|
-
|
|
1007
|
+
} = o.useContext(Y), $ = O || V, N = $ === "vertical", y = o.useRef(null), F = de(m), P = de(i), W = s != null, B = !!(W || m.length || i.length), w = !!y.current && yt(y.current), [D, L] = o.useState(null);
|
|
1008
|
+
Re(() => {
|
|
1005
1009
|
if (B && y.current) {
|
|
1006
|
-
const
|
|
1007
|
-
L(Number.parseInt(
|
|
1010
|
+
const T = getComputedStyle(y.current);
|
|
1011
|
+
L(Number.parseInt(T.marginBottom, 10));
|
|
1008
1012
|
}
|
|
1009
1013
|
}, [B, w]);
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1013
|
-
const oe =
|
|
1014
|
-
return
|
|
1014
|
+
const z = (T) => {
|
|
1015
|
+
T || L(null);
|
|
1016
|
+
}, h = ((T = !1) => {
|
|
1017
|
+
const oe = T ? F : c.errors, K = T ? P : c.warnings;
|
|
1018
|
+
return Te(oe, K, c, "", !!p, f);
|
|
1015
1019
|
})(), G = X(l, r, n, {
|
|
1016
1020
|
[`${l}-with-help`]: W || F.length || P.length,
|
|
1017
1021
|
// Status
|
|
1018
|
-
[`${l}-has-feedback`]:
|
|
1019
|
-
[`${l}-has-success`]:
|
|
1020
|
-
[`${l}-has-warning`]:
|
|
1021
|
-
[`${l}-has-error`]:
|
|
1022
|
-
[`${l}-is-validating`]:
|
|
1022
|
+
[`${l}-has-feedback`]: h && p,
|
|
1023
|
+
[`${l}-has-success`]: h === "success",
|
|
1024
|
+
[`${l}-has-warning`]: h === "warning",
|
|
1025
|
+
[`${l}-has-error`]: h === "error",
|
|
1026
|
+
[`${l}-is-validating`]: h === "validating",
|
|
1023
1027
|
[`${l}-hidden`]: d,
|
|
1024
1028
|
// Layout
|
|
1025
1029
|
[`${l}-${$}`]: $
|
|
@@ -1028,9 +1032,9 @@ function wn(e) {
|
|
|
1028
1032
|
className: G,
|
|
1029
1033
|
style: a,
|
|
1030
1034
|
ref: y
|
|
1031
|
-
}, /* @__PURE__ */ o.createElement(
|
|
1035
|
+
}, /* @__PURE__ */ o.createElement(Rt, Object.assign({
|
|
1032
1036
|
className: `${l}-row`
|
|
1033
|
-
},
|
|
1037
|
+
}, Ct(u, [
|
|
1034
1038
|
"_internalItemRender",
|
|
1035
1039
|
"colon",
|
|
1036
1040
|
"dependencies",
|
|
@@ -1073,11 +1077,11 @@ function wn(e) {
|
|
|
1073
1077
|
errors: F,
|
|
1074
1078
|
warnings: P,
|
|
1075
1079
|
prefixCls: t,
|
|
1076
|
-
status:
|
|
1080
|
+
status: h,
|
|
1077
1081
|
help: s,
|
|
1078
1082
|
marginBottom: D,
|
|
1079
|
-
onErrorVisibleChanged:
|
|
1080
|
-
}), /* @__PURE__ */ o.createElement(
|
|
1083
|
+
onErrorVisibleChanged: z
|
|
1084
|
+
}), /* @__PURE__ */ o.createElement(De.Provider, {
|
|
1081
1085
|
value: g
|
|
1082
1086
|
}, /* @__PURE__ */ o.createElement(Ge, {
|
|
1083
1087
|
prefixCls: t,
|
|
@@ -1086,9 +1090,9 @@ function wn(e) {
|
|
|
1086
1090
|
warnings: c.warnings,
|
|
1087
1091
|
hasFeedback: p,
|
|
1088
1092
|
// Already calculated
|
|
1089
|
-
validateStatus:
|
|
1093
|
+
validateStatus: h,
|
|
1090
1094
|
name: v
|
|
1091
|
-
},
|
|
1095
|
+
}, b)))), !!D && /* @__PURE__ */ o.createElement("div", {
|
|
1092
1096
|
className: `${l}-margin-offset`,
|
|
1093
1097
|
style: {
|
|
1094
1098
|
marginBottom: -D
|
|
@@ -1129,7 +1133,7 @@ function Pn(e) {
|
|
|
1129
1133
|
required: c,
|
|
1130
1134
|
label: p,
|
|
1131
1135
|
messageVariables: d,
|
|
1132
|
-
trigger:
|
|
1136
|
+
trigger: b = "onChange",
|
|
1133
1137
|
validateTrigger: j,
|
|
1134
1138
|
hidden: I,
|
|
1135
1139
|
help: C,
|
|
@@ -1138,11 +1142,11 @@ function Pn(e) {
|
|
|
1138
1142
|
getPrefixCls: O
|
|
1139
1143
|
} = o.useContext(ve), {
|
|
1140
1144
|
name: v
|
|
1141
|
-
} = o.useContext(Y), u = dn(f), l = typeof u == "function", S = o.useContext(
|
|
1145
|
+
} = o.useContext(Y), u = dn(f), l = typeof u == "function", S = o.useContext(De), {
|
|
1142
1146
|
validateTrigger: V
|
|
1143
|
-
} = o.useContext(
|
|
1147
|
+
} = o.useContext(vt), $ = j !== void 0 ? j : V, N = t != null, y = O("form", s), F = fe(y), [P, W, B] = xe(y, F), w = pe("Form.Item");
|
|
1144
1148
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && w(t !== null, "usage", "`null` is passed as `name` property");
|
|
1145
|
-
const D = o.useContext(
|
|
1149
|
+
const D = o.useContext(xt), L = o.useRef(null), [z, Q] = fn({}), [h, G] = $t(() => _e()), T = (x) => {
|
|
1146
1150
|
const R = D == null ? void 0 : D.getKey(x.name);
|
|
1147
1151
|
if (G(x.destroy ? _e() : x, !0), r && C !== !1 && S) {
|
|
1148
1152
|
let M = x.name;
|
|
@@ -1160,17 +1164,17 @@ function Pn(e) {
|
|
|
1160
1164
|
return x.destroy ? delete E[U] : E[U] = x, E;
|
|
1161
1165
|
});
|
|
1162
1166
|
}, [K, ae] = o.useMemo(() => {
|
|
1163
|
-
const x = q(
|
|
1164
|
-
return Object.values(
|
|
1167
|
+
const x = q(h.errors), R = q(h.warnings);
|
|
1168
|
+
return Object.values(z).forEach((M) => {
|
|
1165
1169
|
x.push.apply(x, q(M.errors || [])), R.push.apply(R, q(M.warnings || []));
|
|
1166
1170
|
}), [x, R];
|
|
1167
|
-
}, [
|
|
1171
|
+
}, [z, h.errors, h.warnings]), k = pn();
|
|
1168
1172
|
function le(x, R, M) {
|
|
1169
1173
|
return r && !I ? /* @__PURE__ */ o.createElement(Ge, {
|
|
1170
1174
|
prefixCls: y,
|
|
1171
1175
|
hasFeedback: e.hasFeedback,
|
|
1172
1176
|
validateStatus: e.validateStatus,
|
|
1173
|
-
meta:
|
|
1177
|
+
meta: h,
|
|
1174
1178
|
errors: K,
|
|
1175
1179
|
warnings: ae,
|
|
1176
1180
|
noStyle: !0,
|
|
@@ -1184,7 +1188,7 @@ function Pn(e) {
|
|
|
1184
1188
|
isRequired: M,
|
|
1185
1189
|
errors: K,
|
|
1186
1190
|
warnings: ae,
|
|
1187
|
-
meta:
|
|
1191
|
+
meta: h,
|
|
1188
1192
|
onSubItemMetaChange: oe,
|
|
1189
1193
|
layout: g,
|
|
1190
1194
|
name: t
|
|
@@ -1193,13 +1197,13 @@ function Pn(e) {
|
|
|
1193
1197
|
if (!N && !l && !a)
|
|
1194
1198
|
return P(le(u));
|
|
1195
1199
|
let Z = {};
|
|
1196
|
-
return typeof p == "string" ? Z.label = p : t && (Z.label = String(t)), d && (Z = Object.assign(Object.assign({}, Z), d)), P(/* @__PURE__ */ o.createElement(
|
|
1200
|
+
return typeof p == "string" ? Z.label = p : t && (Z.label = String(t)), d && (Z = Object.assign(Object.assign({}, Z), d)), P(/* @__PURE__ */ o.createElement(Et, Object.assign({}, e, {
|
|
1197
1201
|
messageVariables: Z,
|
|
1198
|
-
trigger:
|
|
1202
|
+
trigger: b,
|
|
1199
1203
|
validateTrigger: $,
|
|
1200
|
-
onMetaChange:
|
|
1204
|
+
onMetaChange: T
|
|
1201
1205
|
}), (x, R, M) => {
|
|
1202
|
-
const E =
|
|
1206
|
+
const E = be(t).length && R ? R.name : [], A = Vt(E, v), U = c !== void 0 ? c : !!(i != null && i.some((_) => {
|
|
1203
1207
|
if (_ && typeof _ == "object" && _.required && !_.warningOnly)
|
|
1204
1208
|
return !0;
|
|
1205
1209
|
if (typeof _ == "function") {
|
|
@@ -1222,10 +1226,10 @@ function Pn(e) {
|
|
|
1222
1226
|
const te = [];
|
|
1223
1227
|
(C || K.length > 0) && te.push(`${A}_help`), e.extra && te.push(`${A}_extra`), _["aria-describedby"] = te.join(" ");
|
|
1224
1228
|
}
|
|
1225
|
-
K.length > 0 && (_["aria-invalid"] = "true"), U && (_["aria-required"] = "true"),
|
|
1229
|
+
K.length > 0 && (_["aria-invalid"] = "true"), U && (_["aria-required"] = "true"), Ot(u) && (_.ref = k(E, u)), new Set([].concat(q(be(b)), q(be($)))).forEach((te) => {
|
|
1226
1230
|
_[te] = (...$e) => {
|
|
1227
|
-
var Ee, Oe, ge, Se,
|
|
1228
|
-
(ge = ce[te]) === null || ge === void 0 || (Ee = ge).call.apply(Ee, [ce].concat($e)), (
|
|
1231
|
+
var Ee, Oe, ge, Se, he;
|
|
1232
|
+
(ge = ce[te]) === null || ge === void 0 || (Ee = ge).call.apply(Ee, [ce].concat($e)), (he = (Se = u.props)[te]) === null || he === void 0 || (Oe = he).call.apply(Oe, [Se].concat($e));
|
|
1229
1233
|
};
|
|
1230
1234
|
});
|
|
1231
1235
|
const Ye = [_["aria-required"], _["aria-invalid"], _["aria-describedby"]];
|
|
@@ -1233,7 +1237,7 @@ function Pn(e) {
|
|
|
1233
1237
|
control: ce,
|
|
1234
1238
|
update: u,
|
|
1235
1239
|
childProps: Ye
|
|
1236
|
-
},
|
|
1240
|
+
}, St(u, _));
|
|
1237
1241
|
} else l && (m || a) && !N ? se = u(M) : (process.env.NODE_ENV !== "production" && w(!E.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), se = u);
|
|
1238
1242
|
return le(se, A, U);
|
|
1239
1243
|
}));
|
|
@@ -1262,7 +1266,7 @@ const _n = (e) => {
|
|
|
1262
1266
|
prefixCls: s,
|
|
1263
1267
|
status: "error"
|
|
1264
1268
|
}), [s]);
|
|
1265
|
-
return /* @__PURE__ */ o.createElement(
|
|
1269
|
+
return /* @__PURE__ */ o.createElement(wt, Object.assign({}, n), (i, f, c) => /* @__PURE__ */ o.createElement(Ce.Provider, {
|
|
1266
1270
|
value: m
|
|
1267
1271
|
}, r(i.map((p) => Object.assign(Object.assign({}, p), {
|
|
1268
1272
|
fieldKey: p.key
|
|
@@ -1281,12 +1285,12 @@ const J = He;
|
|
|
1281
1285
|
J.Item = Ke;
|
|
1282
1286
|
J.List = _n;
|
|
1283
1287
|
J.ErrorList = qe;
|
|
1284
|
-
J.useForm =
|
|
1288
|
+
J.useForm = ze;
|
|
1285
1289
|
J.useFormInstance = Mn;
|
|
1286
|
-
J.useWatch =
|
|
1287
|
-
J.Provider =
|
|
1290
|
+
J.useWatch = It;
|
|
1291
|
+
J.Provider = Ve;
|
|
1288
1292
|
J.create = () => {
|
|
1289
|
-
process.env.NODE_ENV !== "production" &&
|
|
1293
|
+
process.env.NODE_ENV !== "production" && Nt(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
|
|
1290
1294
|
};
|
|
1291
1295
|
var Vn = function(e, t) {
|
|
1292
1296
|
var r = {};
|
|
@@ -1307,14 +1311,14 @@ const Rn = (e) => {
|
|
|
1307
1311
|
footer: f
|
|
1308
1312
|
} = e, c = Vn(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
|
|
1309
1313
|
getPrefixCls: p
|
|
1310
|
-
} = o.useContext(ve), d = p(),
|
|
1314
|
+
} = o.useContext(ve), d = p(), b = t || p("modal"), j = fe(d), [I, C, g] = Tt(b, j), O = `${b}-confirm`;
|
|
1311
1315
|
let v = {};
|
|
1312
1316
|
return s ? v = {
|
|
1313
1317
|
closable: a ?? !1,
|
|
1314
1318
|
title: "",
|
|
1315
1319
|
footer: "",
|
|
1316
|
-
children: /* @__PURE__ */ o.createElement(
|
|
1317
|
-
prefixCls:
|
|
1320
|
+
children: /* @__PURE__ */ o.createElement(At, Object.assign({}, e, {
|
|
1321
|
+
prefixCls: b,
|
|
1318
1322
|
confirmPrefixCls: O,
|
|
1319
1323
|
rootPrefixCls: d,
|
|
1320
1324
|
content: i
|
|
@@ -1322,34 +1326,34 @@ const Rn = (e) => {
|
|
|
1322
1326
|
} : v = {
|
|
1323
1327
|
closable: a ?? !0,
|
|
1324
1328
|
title: m,
|
|
1325
|
-
footer: f !== null && /* @__PURE__ */ o.createElement(
|
|
1329
|
+
footer: f !== null && /* @__PURE__ */ o.createElement(Wt, Object.assign({}, e)),
|
|
1326
1330
|
children: i
|
|
1327
|
-
}, I(/* @__PURE__ */ o.createElement(
|
|
1328
|
-
prefixCls:
|
|
1329
|
-
className: X(C, `${
|
|
1331
|
+
}, I(/* @__PURE__ */ o.createElement(qt, Object.assign({
|
|
1332
|
+
prefixCls: b,
|
|
1333
|
+
className: X(C, `${b}-pure-panel`, s && O, s && `${O}-${s}`, r, g, j)
|
|
1330
1334
|
}, c, {
|
|
1331
|
-
closeIcon:
|
|
1335
|
+
closeIcon: Ht(b, n),
|
|
1332
1336
|
closable: a
|
|
1333
1337
|
}, v)));
|
|
1334
1338
|
}, Dn = Mt(Rn);
|
|
1335
1339
|
function Ue(e) {
|
|
1336
|
-
return ie(
|
|
1340
|
+
return ie(kt(e));
|
|
1337
1341
|
}
|
|
1338
|
-
const H =
|
|
1339
|
-
H.useModal =
|
|
1342
|
+
const H = Bt;
|
|
1343
|
+
H.useModal = Xt;
|
|
1340
1344
|
H.info = function(t) {
|
|
1341
|
-
return ie(
|
|
1345
|
+
return ie(Gt(t));
|
|
1342
1346
|
};
|
|
1343
1347
|
H.success = function(t) {
|
|
1344
|
-
return ie(
|
|
1348
|
+
return ie(Kt(t));
|
|
1345
1349
|
};
|
|
1346
1350
|
H.error = function(t) {
|
|
1347
|
-
return ie(
|
|
1351
|
+
return ie(Ut(t));
|
|
1348
1352
|
};
|
|
1349
1353
|
H.warning = Ue;
|
|
1350
1354
|
H.warn = Ue;
|
|
1351
1355
|
H.confirm = function(t) {
|
|
1352
|
-
return ie(
|
|
1356
|
+
return ie(Yt(t));
|
|
1353
1357
|
};
|
|
1354
1358
|
H.destroyAll = function() {
|
|
1355
1359
|
for (; Fe.length; ) {
|
|
@@ -1357,7 +1361,7 @@ H.destroyAll = function() {
|
|
|
1357
1361
|
t && t();
|
|
1358
1362
|
}
|
|
1359
1363
|
};
|
|
1360
|
-
H.config =
|
|
1364
|
+
H.config = Qt;
|
|
1361
1365
|
H._InternalPanelDoNotUseOrYouWillBeFired = Dn;
|
|
1362
1366
|
process.env.NODE_ENV !== "production" && (H.displayName = "Modal");
|
|
1363
1367
|
export {
|