@yuku123/z-cognition-component 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-rxw05EpT.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DqK04lTb.js} +2 -2
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-D9XOithE.js} +76 -76
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-DnGmqa7C.js} +1 -1
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-VzQrhleP.js} +144 -144
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-BuFXTevS.js} +32 -32
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-D1RvQXGM.js} +9 -9
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-DlxcvD0O.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-CabJdV6W.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-DZ6fqUyK.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-CYSU7UlK.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-MTp2UyyK.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-F9OYS1Ov.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DDEl02-L.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-CcC1rvys.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-_axkM_DR.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-CuPJalb0.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-BPLw60Ia.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CcWolsb5.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-DC6nlUDh.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-CgpP4Xf5.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-CZ3CzVcA.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-BsFEfaVs.js} +3 -3
- package/dist-lib/{community-CfWXxujB.js → community-D9mD_Tq1.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-ESJc4qtl.js} +1 -1
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-Ct5uMwhv.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DrxmCfe3.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{detail-EyLdjGpX.js → detail-DXOJf57e.js} +37 -37
- package/dist-lib/{detail-CV6xp_Jp.js → detail-kPAVlzm3.js} +4 -4
- package/dist-lib/{detail-DioaWKWj.js → detail-lGslEB8s.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-aLXXcLcF.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-DFOEFvX6.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-BbtVK23D.js} +88 -88
- package/dist-lib/{editor-KZhj-rwT.js → editor-DbLQFOUf.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-B_H0fRAI.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-BUaR8PAn.js} +3930 -3955
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-8Tx-3UQh.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-Dz5dBEFl.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DacHEbKr.js} +5 -5
- package/dist-lib/{index-BoCtPJD4.js → index-B6G8CZ1v.js} +130 -130
- package/dist-lib/{index-DKAGVWMX.js → index-BDWjubAD.js} +6 -6
- package/dist-lib/{index-Bw4M9KLv.js → index-BI-rknta.js} +75 -75
- package/dist-lib/{index-QZ9JPfVR.js → index-BLGPH51v.js} +4 -4
- package/dist-lib/{index-BsoHetYT.js → index-BMv3kGDG.js} +20 -20
- package/dist-lib/{index-DgfIEgir.js → index-BOB3j3H_.js} +1 -1
- package/dist-lib/{index-BPbOPT2j.js → index-BU2GXuww.js} +2 -2
- package/dist-lib/{index-DU6bO95v.js → index-BWmgE7bB.js} +88 -88
- package/dist-lib/{index-CLhLA2ig.js → index-Be_iqVpx.js} +78 -78
- package/dist-lib/{index-CwyFMPcr.js → index-Bf8IQq4A.js} +15 -15
- package/dist-lib/{index-DGbjbjBY.js → index-Bi7O9pQv.js} +182 -182
- package/dist-lib/{index-BkTegt8T.js → index-Bt9F-2Fl.js} +100 -100
- package/dist-lib/{index-D6ns_Xmf.js → index-BtW_nQBU.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-BuGHtvxH.js} +16 -16
- package/dist-lib/{index-CtqUgNxs.js → index-CDxeB8C4.js} +24 -24
- package/dist-lib/{index-2SysmGHo.js → index-CNBwau86.js} +139 -139
- package/dist-lib/{index-BvJ35WL3.js → index-CS6H40rM.js} +15 -15
- package/dist-lib/{index--AI-htgA.js → index-CSoMwNHq.js} +45 -45
- package/dist-lib/{index-CgwK2maq.js → index-CdNxm2We.js} +38 -38
- package/dist-lib/{index-BqTsLClH.js → index-CjFA5T3K.js} +1 -1
- package/dist-lib/{index-3J47mTL1.js → index-D23tZfhi.js} +1 -1
- package/dist-lib/{index-BkJjYgKD.js → index-D7nLwQye.js} +486 -486
- package/dist-lib/{index-zXwXfn-X.js → index-DR9LGJpi.js} +23 -23
- package/dist-lib/{index-BEO8itgt.js → index-DTgboCiF.js} +13 -13
- package/dist-lib/{index-CSJA8wvL.js → index-Ddx6XQu5.js} +36 -36
- package/dist-lib/{index-C2CV4bte.js → index-Di2bQwQn.js} +2 -2
- package/dist-lib/{index-DhSCFLtV.js → index-DlqhOJnd.js} +98 -98
- package/dist-lib/{index-xQmDaKK3.js → index-GQGXGr9M.js} +1 -1
- package/dist-lib/{index-B7SfTpox.js → index-IB3GOib9.js} +8 -8
- package/dist-lib/{index-VeAMz0iC.js → index-Pcxp_AYe.js} +43 -43
- package/dist-lib/{index-CdJ5ggvp.js → index-QkktEus5.js} +17 -17
- package/dist-lib/{index-Bln3mJfp.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-B5Roo82U.js → index-jHh-ITBK.js} +25 -25
- package/dist-lib/{index-DaMLYomP.js → index-keRQ37lH.js} +6 -6
- package/dist-lib/{index-CF0ucN_K.js → index-n6hK1r_G.js} +3 -3
- package/dist-lib/{index-Bd7AGv4a.js → index-qYfXuLnZ.js} +2 -2
- package/dist-lib/{index-B12ZggsE.js → index-yPMzsLHL.js} +3 -3
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-Bu-gFb6c.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-DsXpXfNT.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D8hsAHI5.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-D2XMD7iI.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-BoBR8-j-.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-B4C374Y_.js} +3 -3
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-ROKlyMXg.js} +55 -55
- package/dist-lib/{material-DtPASeqq.js → material-CqtPqoZj.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BKlKt3pc.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-pzANkVK5.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-BUpogooV.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/{memory-reorganization-DgJnWIrW.js → memory-reorganization-CBTDCRhV.js} +1 -1
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-CZGIBlz2.js} +19 -19
- package/dist-lib/{message-D6FhzB7J.js → message-Chq3cAdy.js} +3 -3
- package/dist-lib/{message-C9gfvpGg.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-cctmEVcG.js → messages-DciGawgR.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-BWgVxZgd.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-CNrK04Ak.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-BpUJZCht.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-CaTKbDI1.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-ZH5CWVGF.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-edhi0lav.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-2WdPUP2T.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-Dq6mvU2w.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-BX6X1X2J.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-BjMnFRBG.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-B7AuwW8S.js} +63 -63
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-FpJ6K8z6.js} +1 -1
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-wbvBwGZO.js} +22 -22
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-CJsIvS35.js} +6 -6
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Cgi8Fk-i.js} +3 -3
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-C_6GvHBT.js} +33 -33
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-CeDS1-FE.js} +2 -2
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-4Ar7Y8Kt.js} +11 -11
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BaYN82pv.js} +392 -392
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-CDt7NdIq.js} +1 -1
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-CnFarWZX.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-CxTp2Dcq.js} +18 -18
- package/dist-lib/{permission-Dq1-AOQw.js → permission-CNqwhyF3.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-CfByvcqu.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-ImhDvynO.js} +2 -2
- package/dist-lib/{quota-oICQRHFU.js → quota-B38BWyPo.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-DeVE0t_N.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-ILSUwEOv.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-7v1SRE7V.js} +17 -17
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form-mFm6f2ho.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-DzB9rZrm.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CKdVDsYh.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings-CaihqQtz.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-By3A0Dc1.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-sIKyG7xR.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-DvIMColY.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-BHQZmWlH.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-CoPFj_FN.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-BJgEEFrT.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-CODaf2QI.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-DmN4qfah.js} +12 -12
- package/dist-lib/{tools-CrA6GrY6.js → tools-CyRz1Ofg.js} +4 -4
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-BuD99GTw.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Cbd3Jggb.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-B8dF3ifo.js} +4 -4
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-BZkiMeaN.js} +6 -6
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-HdMlbpbO.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-BYoxw4GV.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-CMNXQf8J.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { a as St, c as gr, U as Cr, e as Sr, i as yr, g as br, S as wr } from "./index-
|
|
4
|
-
import { _ as xr } from "./createForOfIteratorHelper-
|
|
5
|
-
import { g as Nr } from "./index-
|
|
2
|
+
import { bf as Y, ag as Ie, by as G, aS as Ut, bg as Lt, bj as Bt, be as xt, cZ as Xt, bx as kt, bh as ne, bp as Gt, bG as et, a$ as Kt, c_ as Yt, bi as _t, c$ as qt, a6 as Jt, a7 as Ht, ao as Dt, a8 as Zt, aq as Qt, bM as er, ap as tr, bk as rr, aF as Tt, d0 as nr, bl as ar, a5 as Pt, d1 as lr, d2 as or, aT as ir, cV as sr, bN as ur, a9 as Rt, aJ as cr, aI as dr, bm as fr, cn as vr, ce as Ot, d3 as hr, bo as pr, cv as mr } from "./embed-BUaR8PAn.js";
|
|
3
|
+
import { a as St, c as gr, U as Cr, e as Sr, i as yr, g as br, S as wr } from "./index-Bi7O9pQv.js";
|
|
4
|
+
import { _ as xr } from "./createForOfIteratorHelper-3K1vcDqi.js";
|
|
5
|
+
import { g as Nr } from "./index-CjFA5T3K.js";
|
|
6
6
|
const Er = (function(e) {
|
|
7
7
|
var t = n.useRef({
|
|
8
8
|
valueLabels: /* @__PURE__ */ new Map()
|
|
@@ -10,7 +10,7 @@ const Er = (function(e) {
|
|
|
10
10
|
return n.useMemo(function() {
|
|
11
11
|
var r = t.current.valueLabels, l = /* @__PURE__ */ new Map(), a = e.map(function(s) {
|
|
12
12
|
var o = s.value, i = s.label, u = i ?? r.get(o);
|
|
13
|
-
return l.set(o, u),
|
|
13
|
+
return l.set(o, u), Y(Y({}, s), {}, {
|
|
14
14
|
label: u
|
|
15
15
|
});
|
|
16
16
|
});
|
|
@@ -21,11 +21,11 @@ var Ir = function(t, r, l, a) {
|
|
|
21
21
|
return n.useMemo(function() {
|
|
22
22
|
var s = function(E) {
|
|
23
23
|
return E.map(function(D) {
|
|
24
|
-
var
|
|
25
|
-
return
|
|
24
|
+
var O = D.value;
|
|
25
|
+
return O;
|
|
26
26
|
});
|
|
27
|
-
}, o = s(t), i = s(r), u = o.filter(function(
|
|
28
|
-
return !a[
|
|
27
|
+
}, o = s(t), i = s(r), u = o.filter(function(M) {
|
|
28
|
+
return !a[M];
|
|
29
29
|
}), f = o, p = i;
|
|
30
30
|
if (l) {
|
|
31
31
|
var _ = St(o, !0, a);
|
|
@@ -61,7 +61,7 @@ const Dr = (function(e, t) {
|
|
|
61
61
|
var r = gr(e, {
|
|
62
62
|
fieldNames: t,
|
|
63
63
|
initWrapper: function(a) {
|
|
64
|
-
return
|
|
64
|
+
return Y(Y({}, a), {}, {
|
|
65
65
|
valueEntities: /* @__PURE__ */ new Map()
|
|
66
66
|
});
|
|
67
67
|
},
|
|
@@ -69,7 +69,7 @@ const Dr = (function(e, t) {
|
|
|
69
69
|
var o = a.node[t.value];
|
|
70
70
|
if (process.env.NODE_ENV !== "production") {
|
|
71
71
|
var i = a.node.key;
|
|
72
|
-
|
|
72
|
+
G(!bt(o), "TreeNode `value` is invalidate: undefined"), G(!s.valueEntities.has(o), "Same `value` exist in the tree: ".concat(o)), G(!i || String(i) === String(o), "`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(i, ", value: ").concat(o, "."));
|
|
73
73
|
}
|
|
74
74
|
s.valueEntities.set(o, a);
|
|
75
75
|
}
|
|
@@ -84,7 +84,7 @@ function $t(e) {
|
|
|
84
84
|
return Ut(e).map(function(t) {
|
|
85
85
|
if (!/* @__PURE__ */ n.isValidElement(t) || !t.type)
|
|
86
86
|
return null;
|
|
87
|
-
var r = t, l = r.key, a = r.props, s = a.children, o = a.value, i = Lt(a, Tr), u =
|
|
87
|
+
var r = t, l = r.key, a = r.props, s = a.children, o = a.value, i = Lt(a, Tr), u = Y({
|
|
88
88
|
key: l,
|
|
89
89
|
value: o
|
|
90
90
|
}, i), f = $t(s);
|
|
@@ -96,29 +96,29 @@ function $t(e) {
|
|
|
96
96
|
function wt(e) {
|
|
97
97
|
if (!e)
|
|
98
98
|
return e;
|
|
99
|
-
var t =
|
|
99
|
+
var t = Y({}, e);
|
|
100
100
|
return "props" in t || Object.defineProperty(t, "props", {
|
|
101
101
|
get: function() {
|
|
102
|
-
return
|
|
102
|
+
return G(!1, "New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."), t;
|
|
103
103
|
}
|
|
104
104
|
}), t;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Pr(e, t, r, l, a, s) {
|
|
107
107
|
var o = null, i = null;
|
|
108
108
|
function u() {
|
|
109
109
|
function f(p) {
|
|
110
|
-
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0",
|
|
110
|
+
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", M = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
111
111
|
return p.map(function(E, D) {
|
|
112
|
-
var
|
|
112
|
+
var O = "".concat(_, "-").concat(D), I = E[s.value], H = r.includes(I), J = f(E[s.children] || [], O, H), Z = /* @__PURE__ */ n.createElement(Nt, E, J.map(function(R) {
|
|
113
113
|
return R.node;
|
|
114
114
|
}));
|
|
115
115
|
if (t === I && (o = Z), H) {
|
|
116
116
|
var ae = {
|
|
117
|
-
pos:
|
|
117
|
+
pos: O,
|
|
118
118
|
node: Z,
|
|
119
119
|
children: J
|
|
120
120
|
};
|
|
121
|
-
return
|
|
121
|
+
return M || i.push(ae), ae;
|
|
122
122
|
}
|
|
123
123
|
return null;
|
|
124
124
|
}).filter(function(E) {
|
|
@@ -126,24 +126,24 @@ function Or(e, t, r, l, a, s) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
i || (i = [], f(l), i.sort(function(p, _) {
|
|
129
|
-
var
|
|
130
|
-
return D -
|
|
129
|
+
var M = p.node.props.value, E = _.node.props.value, D = r.indexOf(M), O = r.indexOf(E);
|
|
130
|
+
return D - O;
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
133
133
|
Object.defineProperty(e, "triggerNode", {
|
|
134
134
|
get: function() {
|
|
135
|
-
return
|
|
135
|
+
return G(!1, "`triggerNode` is deprecated. Please consider decoupling data with node."), u(), o;
|
|
136
136
|
}
|
|
137
137
|
}), Object.defineProperty(e, "allCheckedNodes", {
|
|
138
138
|
get: function() {
|
|
139
|
-
return
|
|
139
|
+
return G(!1, "`allCheckedNodes` is deprecated. Please consider decoupling data with node."), u(), a ? i : i.map(function(p) {
|
|
140
140
|
var _ = p.node;
|
|
141
141
|
return _;
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
var
|
|
146
|
+
var Or = function(t, r, l) {
|
|
147
147
|
var a = l.fieldNames, s = l.treeNodeFilterProp, o = l.filterTreeNode, i = a.children;
|
|
148
148
|
return n.useMemo(function() {
|
|
149
149
|
if (!r || o === !1)
|
|
@@ -151,10 +151,10 @@ var Pr = function(t, r, l) {
|
|
|
151
151
|
var u = typeof o == "function" ? o : function(p, _) {
|
|
152
152
|
return String(_[s]).toUpperCase().includes(r.toUpperCase());
|
|
153
153
|
}, f = function p(_) {
|
|
154
|
-
var
|
|
154
|
+
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
155
155
|
return _.reduce(function(E, D) {
|
|
156
|
-
var
|
|
157
|
-
return (I || H.length) && E.push(
|
|
156
|
+
var O = D[i], I = M || u(r, wt(D)), H = p(O || [], I);
|
|
157
|
+
return (I || H.length) && E.push(Y(Y({}, D), {}, Bt({
|
|
158
158
|
isLeaf: void 0
|
|
159
159
|
}, i, H))), E;
|
|
160
160
|
}, []);
|
|
@@ -162,7 +162,7 @@ var Pr = function(t, r, l) {
|
|
|
162
162
|
return f(t);
|
|
163
163
|
}, [t, r, i, s, o]);
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function Mt(e) {
|
|
166
166
|
var t = n.useRef();
|
|
167
167
|
t.current = e;
|
|
168
168
|
var r = n.useCallback(function() {
|
|
@@ -170,10 +170,10 @@ function Vt(e) {
|
|
|
170
170
|
}, []);
|
|
171
171
|
return r;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Mr(e, t) {
|
|
174
174
|
var r = t.id, l = t.pId, a = t.rootPId, s = /* @__PURE__ */ new Map(), o = [];
|
|
175
175
|
return e.forEach(function(i) {
|
|
176
|
-
var u = i[r], f =
|
|
176
|
+
var u = i[r], f = Y(Y({}, i), {}, {
|
|
177
177
|
key: i.key || u
|
|
178
178
|
});
|
|
179
179
|
s.set(u, f);
|
|
@@ -182,16 +182,16 @@ function Vr(e, t) {
|
|
|
182
182
|
f ? (f.children = f.children || [], f.children.push(i)) : (u === a || a === null) && o.push(i);
|
|
183
183
|
}), o;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Vr(e, t, r) {
|
|
186
186
|
return n.useMemo(function() {
|
|
187
187
|
if (e) {
|
|
188
188
|
if (r) {
|
|
189
|
-
var l =
|
|
189
|
+
var l = Y({
|
|
190
190
|
id: "id",
|
|
191
191
|
pId: "pId",
|
|
192
192
|
rootPId: null
|
|
193
193
|
}, xt(r) === "object" ? r : {});
|
|
194
|
-
return
|
|
194
|
+
return Mr(e, l);
|
|
195
195
|
}
|
|
196
196
|
return e;
|
|
197
197
|
}
|
|
@@ -208,12 +208,12 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
208
208
|
padding: 0,
|
|
209
209
|
margin: 0
|
|
210
210
|
}, Kr = function(t, r) {
|
|
211
|
-
var l = Xt(), a = l.prefixCls, s = l.multiple, o = l.searchValue, i = l.toggleOpen, u = l.open, f = l.notFoundContent, p = n.useContext(Ft), _ = p.virtual,
|
|
211
|
+
var l = Xt(), a = l.prefixCls, s = l.multiple, o = l.searchValue, i = l.toggleOpen, u = l.open, f = l.notFoundContent, p = n.useContext(Ft), _ = p.virtual, M = p.listHeight, E = p.listItemHeight, D = p.listItemScrollOffset, O = p.treeData, I = p.fieldNames, H = p.onSelect, J = p.dropdownMatchSelectWidth, Z = p.treeExpandAction, ae = p.treeTitleRender, R = p.onPopupScroll, T = p.leftMaxCount, Le = p.leafCountOnly, le = p.valueEntities, b = n.useContext(Wt), ue = b.checkable, A = b.checkedKeys, Ke = b.halfCheckedKeys, ce = b.treeExpandedKeys, He = b.treeDefaultExpandAll, Re = b.treeDefaultExpandedKeys, de = b.onTreeExpand, ke = b.treeIcon, Ae = b.showTreeIcon, $e = b.switcherIcon, We = b.treeLine, Fe = b.treeNodeFilterProp, je = b.loadData, _e = b.treeLoadedKeys, ze = b.treeMotion, Ce = b.onTreeLoad, fe = b.keyEntities, Q = n.useRef(), F = kt(
|
|
212
212
|
function() {
|
|
213
|
-
return
|
|
213
|
+
return O;
|
|
214
214
|
},
|
|
215
215
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
216
|
-
[u,
|
|
216
|
+
[u, O],
|
|
217
217
|
function(m, v) {
|
|
218
218
|
return v[0] && m[1] !== v[1];
|
|
219
219
|
}
|
|
@@ -238,19 +238,19 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
238
238
|
ue && yt(C) || (H(C.key, {
|
|
239
239
|
selected: !A.includes(C.key)
|
|
240
240
|
}), s || i(!1));
|
|
241
|
-
}, he = n.useState(Re), pe = ne(he, 2),
|
|
242
|
-
return ce ? Ie(ce) : o ? ye :
|
|
243
|
-
}, [
|
|
241
|
+
}, he = n.useState(Re), pe = ne(he, 2), q = pe[0], Ue = pe[1], ee = n.useState(null), De = ne(ee, 2), ye = De[0], oe = De[1], me = n.useMemo(function() {
|
|
242
|
+
return ce ? Ie(ce) : o ? ye : q;
|
|
243
|
+
}, [q, ye, ce, o]), B = function(v) {
|
|
244
244
|
Ue(v), oe(v), de && de(v);
|
|
245
245
|
}, Te = String(o).toLowerCase(), $ = function(v) {
|
|
246
246
|
return Te ? String(v[Fe]).toLowerCase().includes(Te) : !1;
|
|
247
247
|
};
|
|
248
248
|
n.useEffect(function() {
|
|
249
|
-
o && oe(_r(
|
|
249
|
+
o && oe(_r(O, I));
|
|
250
250
|
}, [o]);
|
|
251
|
-
var
|
|
251
|
+
var V = n.useState(function() {
|
|
252
252
|
return /* @__PURE__ */ new Map();
|
|
253
|
-
}), be = ne(
|
|
253
|
+
}), be = ne(V, 2), L = be[0], tt = be[1];
|
|
254
254
|
n.useEffect(function() {
|
|
255
255
|
T && tt(/* @__PURE__ */ new Map());
|
|
256
256
|
}, [T]);
|
|
@@ -269,10 +269,10 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
269
269
|
}
|
|
270
270
|
return L.get(v);
|
|
271
271
|
}
|
|
272
|
-
var w =
|
|
272
|
+
var w = Gt(function(m) {
|
|
273
273
|
var v = m[I.value];
|
|
274
274
|
return A.includes(v) || T === null ? !1 : T <= 0 ? !0 : Le && T ? te(m) : !1;
|
|
275
|
-
}),
|
|
275
|
+
}), Pe = function m(v) {
|
|
276
276
|
var x = xr(v), C;
|
|
277
277
|
try {
|
|
278
278
|
for (x.s(); !(C = x.n()).done; ) {
|
|
@@ -300,7 +300,7 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
300
300
|
n.useEffect(function() {
|
|
301
301
|
if (u) {
|
|
302
302
|
var m = null, v = function() {
|
|
303
|
-
var C =
|
|
303
|
+
var C = Pe(F);
|
|
304
304
|
return C ? C[I.value] : null;
|
|
305
305
|
};
|
|
306
306
|
!s && A.length && !o ? m = A[0] : m = v(), Xe(m);
|
|
@@ -322,8 +322,8 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
322
322
|
// >>> Select item
|
|
323
323
|
case et.ENTER: {
|
|
324
324
|
if (z) {
|
|
325
|
-
var U = w(z.node), W = (z == null ? void 0 : z.node) || {},
|
|
326
|
-
|
|
325
|
+
var U = w(z.node), W = (z == null ? void 0 : z.node) || {}, Oe = W.selectable, ie = W.value, Ye = W.disabled;
|
|
326
|
+
Oe !== !1 && !Ye && !U && Se(null, {
|
|
327
327
|
node: {
|
|
328
328
|
key: ge
|
|
329
329
|
},
|
|
@@ -341,22 +341,22 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
});
|
|
344
|
-
var
|
|
344
|
+
var Ge = kt(function() {
|
|
345
345
|
return !o;
|
|
346
|
-
}, [o, ce ||
|
|
346
|
+
}, [o, ce || q], function(m, v) {
|
|
347
347
|
var x = ne(m, 1), C = x[0], N = ne(v, 2), U = N[0], W = N[1];
|
|
348
348
|
return C !== U && !!(U || W);
|
|
349
|
-
}), K =
|
|
349
|
+
}), K = Ge ? je : null;
|
|
350
350
|
if (F.length === 0)
|
|
351
351
|
return /* @__PURE__ */ n.createElement("div", {
|
|
352
352
|
role: "listbox",
|
|
353
353
|
className: "".concat(a, "-empty"),
|
|
354
354
|
onMouseDown: ve
|
|
355
355
|
}, f);
|
|
356
|
-
var
|
|
356
|
+
var P = {
|
|
357
357
|
fieldNames: I
|
|
358
358
|
};
|
|
359
|
-
return _e && (
|
|
359
|
+
return _e && (P.loadedKeys = _e), me && (P.expandedKeys = me), /* @__PURE__ */ n.createElement("div", {
|
|
360
360
|
onMouseDown: ve
|
|
361
361
|
}, z && u && /* @__PURE__ */ n.createElement("span", {
|
|
362
362
|
style: Lr,
|
|
@@ -370,7 +370,7 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
370
370
|
focusable: !1,
|
|
371
371
|
prefixCls: "".concat(a, "-tree"),
|
|
372
372
|
treeData: F,
|
|
373
|
-
height:
|
|
373
|
+
height: M,
|
|
374
374
|
itemHeight: E,
|
|
375
375
|
itemScrollOffset: D,
|
|
376
376
|
virtual: _ !== !1 && J !== !1,
|
|
@@ -388,7 +388,7 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
388
388
|
selectedKeys: ue ? [] : A,
|
|
389
389
|
defaultExpandAll: He,
|
|
390
390
|
titleRender: ae
|
|
391
|
-
},
|
|
391
|
+
}, P, {
|
|
392
392
|
// Proxy event out
|
|
393
393
|
onActiveChange: Xe,
|
|
394
394
|
onSelect: Se,
|
|
@@ -402,7 +402,7 @@ var Wt = /* @__PURE__ */ n.createContext(null), Ft = /* @__PURE__ */ n.createCon
|
|
|
402
402
|
}, jt = /* @__PURE__ */ n.forwardRef(Kr);
|
|
403
403
|
process.env.NODE_ENV !== "production" && (jt.displayName = "OptionList");
|
|
404
404
|
var Et = "SHOW_ALL", It = "SHOW_PARENT", dt = "SHOW_CHILD";
|
|
405
|
-
function
|
|
405
|
+
function Vt(e, t, r, l) {
|
|
406
406
|
var a = new Set(e);
|
|
407
407
|
return t === dt ? e.filter(function(s) {
|
|
408
408
|
var o = r[s];
|
|
@@ -420,18 +420,18 @@ function Mt(e, t, r, l) {
|
|
|
420
420
|
}
|
|
421
421
|
function Hr(e) {
|
|
422
422
|
var t = e.searchPlaceholder, r = e.treeCheckStrictly, l = e.treeCheckable, a = e.labelInValue, s = e.value, o = e.multiple, i = e.showCheckedStrategy, u = e.maxCount;
|
|
423
|
-
|
|
423
|
+
G(!t, "`searchPlaceholder` has been removed."), r && a === !1 && G(!1, "`treeCheckStrictly` will force set `labelInValue` to `true`."), (a || r) && G(At(s).every(function(f) {
|
|
424
424
|
return f && xt(f) === "object" && "value" in f;
|
|
425
|
-
}), "Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."), r || o || l ?
|
|
425
|
+
}), "Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."), r || o || l ? G(!s || Array.isArray(s), "`value` should be an array when `TreeSelect` is checkable or multiple.") : G(!Array.isArray(s), "`value` should not be array when `TreeSelect` is single mode."), u && (i === "SHOW_ALL" && !r || i === "SHOW_PARENT") && G(!1, "`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.");
|
|
426
426
|
}
|
|
427
427
|
var Rr = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "maxCount", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "listItemScrollOffset", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion", "treeTitleRender", "onPopupScroll"];
|
|
428
428
|
function Ar(e) {
|
|
429
429
|
return !e || xt(e) !== "object";
|
|
430
430
|
}
|
|
431
431
|
var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
432
|
-
var r = e.id, l = e.prefixCls, a = l === void 0 ? "rc-tree-select" : l, s = e.value, o = e.defaultValue, i = e.onChange, u = e.onSelect, f = e.onDeselect, p = e.searchValue, _ = e.inputValue,
|
|
432
|
+
var r = e.id, l = e.prefixCls, a = l === void 0 ? "rc-tree-select" : l, s = e.value, o = e.defaultValue, i = e.onChange, u = e.onSelect, f = e.onDeselect, p = e.searchValue, _ = e.inputValue, M = e.onSearch, E = e.autoClearSearchValue, D = E === void 0 ? !0 : E, O = e.filterTreeNode, I = e.treeNodeFilterProp, H = I === void 0 ? "value" : I, J = e.showCheckedStrategy, Z = e.treeNodeLabelProp, ae = e.multiple, R = e.treeCheckable, T = e.treeCheckStrictly, Le = e.labelInValue, le = e.maxCount, b = e.fieldNames, ue = e.treeDataSimpleMode, A = e.treeData, Ke = e.children, ce = e.loadData, He = e.treeLoadedKeys, Re = e.onTreeLoad, de = e.treeDefaultExpandAll, ke = e.treeExpandedKeys, Ae = e.treeDefaultExpandedKeys, $e = e.onTreeExpand, We = e.treeExpandAction, Fe = e.virtual, je = e.listHeight, _e = je === void 0 ? 200 : je, ze = e.listItemHeight, Ce = ze === void 0 ? 20 : ze, fe = e.listItemScrollOffset, Q = fe === void 0 ? 0 : fe, F = e.onDropdownVisibleChange, j = e.dropdownMatchSelectWidth, ve = j === void 0 ? !0 : j, Se = e.treeLine, he = e.treeIcon, pe = e.showTreeIcon, q = e.switcherIcon, Ue = e.treeMotion, ee = e.treeTitleRender, De = e.onPopupScroll, ye = Lt(e, Rr), oe = Yt(r), me = R && !T, B = R || T, Te = T || Le, $ = B || ae, V = _t(o, {
|
|
433
433
|
value: s
|
|
434
|
-
}), be = ne(
|
|
434
|
+
}), be = ne(V, 2), L = be[0], tt = be[1], te = n.useMemo(function() {
|
|
435
435
|
return R ? J || dt : Et;
|
|
436
436
|
}, [J, R]);
|
|
437
437
|
process.env.NODE_ENV !== "production" && Hr(e);
|
|
@@ -442,25 +442,25 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
442
442
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
443
443
|
[JSON.stringify(b)]
|
|
444
444
|
/* eslint-enable react-hooks/exhaustive-deps */
|
|
445
|
-
),
|
|
445
|
+
), Pe = _t("", {
|
|
446
446
|
value: p !== void 0 ? p : _,
|
|
447
447
|
postState: function(d) {
|
|
448
448
|
return d || "";
|
|
449
449
|
}
|
|
450
|
-
}), Be = ne(
|
|
451
|
-
ge(d),
|
|
452
|
-
}, z =
|
|
450
|
+
}), Be = ne(Pe, 2), we = Be[0], ge = Be[1], Xe = function(d) {
|
|
451
|
+
ge(d), M == null || M(d);
|
|
452
|
+
}, z = Vr(A, Ke, ue), Ge = Dr(z, w), K = Ge.keyEntities, P = Ge.valueEntities, m = n.useCallback(function(c) {
|
|
453
453
|
var d = [], h = [];
|
|
454
454
|
return c.forEach(function(g) {
|
|
455
|
-
|
|
455
|
+
P.has(g) ? h.push(g) : d.push(g);
|
|
456
456
|
}), {
|
|
457
457
|
missingRawValues: d,
|
|
458
458
|
existRawValues: h
|
|
459
459
|
};
|
|
460
|
-
}, [
|
|
460
|
+
}, [P]), v = Or(z, we, {
|
|
461
461
|
fieldNames: w,
|
|
462
462
|
treeNodeFilterProp: H,
|
|
463
|
-
filterTreeNode:
|
|
463
|
+
filterTreeNode: O
|
|
464
464
|
}), x = n.useCallback(function(c) {
|
|
465
465
|
if (c) {
|
|
466
466
|
if (Z)
|
|
@@ -481,7 +481,7 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
481
481
|
}, []), N = n.useCallback(function(c) {
|
|
482
482
|
var d = C(c);
|
|
483
483
|
return d.map(function(h) {
|
|
484
|
-
var g = h.label, re = h.value, k = h.halfChecked, S, y =
|
|
484
|
+
var g = h.label, re = h.value, k = h.halfChecked, S, y = P.get(re);
|
|
485
485
|
if (y) {
|
|
486
486
|
var X;
|
|
487
487
|
g = ee ? ee(y.node) : (X = g) !== null && X !== void 0 ? X : x(y.node), S = y.node.disabled;
|
|
@@ -498,19 +498,19 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
498
498
|
disabled: S
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
|
-
}, [
|
|
501
|
+
}, [P, x, C, L]), U = n.useMemo(function() {
|
|
502
502
|
return C(L === null ? [] : L);
|
|
503
503
|
}, [C, L]), W = n.useMemo(function() {
|
|
504
504
|
var c = [], d = [];
|
|
505
505
|
return U.forEach(function(h) {
|
|
506
506
|
h.halfChecked ? d.push(h) : c.push(h);
|
|
507
507
|
}), [c, d];
|
|
508
|
-
}, [U]),
|
|
508
|
+
}, [U]), Oe = ne(W, 2), ie = Oe[0], Ye = Oe[1], it = n.useMemo(function() {
|
|
509
509
|
return ie.map(function(c) {
|
|
510
510
|
return c.value;
|
|
511
511
|
});
|
|
512
|
-
}, [ie]), ft = Ir(ie,
|
|
513
|
-
var c =
|
|
512
|
+
}, [ie]), ft = Ir(ie, Ye, me, K), st = ne(ft, 2), xe = st[0], qe = st[1], rt = n.useMemo(function() {
|
|
513
|
+
var c = Vt(xe, te, K, w), d = c.map(function(k) {
|
|
514
514
|
var S, y;
|
|
515
515
|
return (S = (y = K[k]) === null || y === void 0 || (y = y.node) === null || y === void 0 ? void 0 : y[w.value]) !== null && S !== void 0 ? S : k;
|
|
516
516
|
}), h = d.map(function(k) {
|
|
@@ -524,20 +524,20 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
524
524
|
}), g = N(h), re = g[0];
|
|
525
525
|
return !$ && re && bt(re.value) && bt(re.label) ? [] : g.map(function(k) {
|
|
526
526
|
var S;
|
|
527
|
-
return
|
|
527
|
+
return Y(Y({}, k), {}, {
|
|
528
528
|
label: (S = k.label) !== null && S !== void 0 ? S : k.value
|
|
529
529
|
});
|
|
530
530
|
});
|
|
531
531
|
}, [w, $, xe, ie, N, te, K]), vt = Er(rt), ht = ne(vt, 1), Je = ht[0], ut = n.useMemo(function() {
|
|
532
532
|
return $ && (te === "SHOW_CHILD" || T || !R) ? le : null;
|
|
533
|
-
}, [le, $, T, te, R]), Ze =
|
|
534
|
-
var g =
|
|
533
|
+
}, [le, $, T, te, R]), Ze = Mt(function(c, d, h) {
|
|
534
|
+
var g = Vt(c, te, K, w);
|
|
535
535
|
if (!(ut && g.length > ut)) {
|
|
536
536
|
var re = N(c);
|
|
537
537
|
if (tt(re), D && ge(""), i) {
|
|
538
538
|
var k = c;
|
|
539
539
|
me && (k = g.map(function(se) {
|
|
540
|
-
var Ee =
|
|
540
|
+
var Ee = P.get(se);
|
|
541
541
|
return Ee ? Ee.node[w.value] : se;
|
|
542
542
|
}));
|
|
543
543
|
var S = d || {
|
|
@@ -545,23 +545,23 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
545
545
|
selected: void 0
|
|
546
546
|
}, y = S.triggerValue, X = S.selected, Ne = k;
|
|
547
547
|
if (T) {
|
|
548
|
-
var at =
|
|
548
|
+
var at = Ye.filter(function(se) {
|
|
549
549
|
return !k.includes(se.value);
|
|
550
550
|
});
|
|
551
551
|
Ne = [].concat(Ie(Ne), Ie(at));
|
|
552
552
|
}
|
|
553
|
-
var lt = N(Ne),
|
|
553
|
+
var lt = N(Ne), Me = {
|
|
554
554
|
// [Legacy] Always return as array contains label & value
|
|
555
555
|
preValue: ie,
|
|
556
556
|
triggerValue: y
|
|
557
557
|
}, Qe = !0;
|
|
558
|
-
(T || h === "selection" && !X) && (Qe = !1),
|
|
558
|
+
(T || h === "selection" && !X) && (Qe = !1), Pr(Me, y, c, z, Qe, w), B ? Me.checked = X : Me.selected = X;
|
|
559
559
|
var ct = Te ? lt : lt.map(function(se) {
|
|
560
560
|
return se.value;
|
|
561
561
|
});
|
|
562
562
|
i($ ? ct : ct[0], Te ? null : lt.map(function(se) {
|
|
563
563
|
return se.label;
|
|
564
|
-
}),
|
|
564
|
+
}), Me);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
}), nt = n.useCallback(function(c, d) {
|
|
@@ -576,15 +576,15 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
576
576
|
return Ee !== y;
|
|
577
577
|
});
|
|
578
578
|
if (me) {
|
|
579
|
-
var Ne = m(X), at = Ne.missingRawValues, lt = Ne.existRawValues,
|
|
580
|
-
return
|
|
579
|
+
var Ne = m(X), at = Ne.missingRawValues, lt = Ne.existRawValues, Me = lt.map(function(Ee) {
|
|
580
|
+
return P.get(Ee).key;
|
|
581
581
|
}), Qe;
|
|
582
582
|
if (g) {
|
|
583
|
-
var ct = St(
|
|
583
|
+
var ct = St(Me, !0, K);
|
|
584
584
|
Qe = ct.checkedKeys;
|
|
585
585
|
} else {
|
|
586
|
-
var se = St(
|
|
587
|
-
halfCheckedKeys:
|
|
586
|
+
var se = St(Me, {
|
|
587
|
+
halfCheckedKeys: qe
|
|
588
588
|
}, K);
|
|
589
589
|
Qe = se.checkedKeys;
|
|
590
590
|
}
|
|
@@ -598,16 +598,16 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
598
598
|
}, re || "option");
|
|
599
599
|
}
|
|
600
600
|
g || !$ ? u == null || u(y, wt(S)) : f == null || f(y, wt(S));
|
|
601
|
-
}, [m,
|
|
601
|
+
}, [m, P, K, w, $, it, Ze, me, u, f, xe, qe, le]), pt = n.useCallback(function(c) {
|
|
602
602
|
if (F) {
|
|
603
603
|
var d = {};
|
|
604
604
|
Object.defineProperty(d, "documentClickClose", {
|
|
605
605
|
get: function() {
|
|
606
|
-
return
|
|
606
|
+
return G(!1, "Second param of `onDropdownVisibleChange` has been removed."), !1;
|
|
607
607
|
}
|
|
608
608
|
}), F(c, d);
|
|
609
609
|
}
|
|
610
|
-
}, [F]), mt =
|
|
610
|
+
}, [F]), mt = Mt(function(c, d) {
|
|
611
611
|
var h = c.map(function(g) {
|
|
612
612
|
return g.value;
|
|
613
613
|
});
|
|
@@ -634,16 +634,16 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
634
634
|
onPopupScroll: De,
|
|
635
635
|
leftMaxCount: le === void 0 ? null : le - Je.length,
|
|
636
636
|
leafCountOnly: te === "SHOW_CHILD" && !T && !!R,
|
|
637
|
-
valueEntities:
|
|
637
|
+
valueEntities: P
|
|
638
638
|
};
|
|
639
|
-
}, [Fe, ve, _e, Ce, Q, v, w, nt, We, ee, De, le, Je.length, te, T, R,
|
|
639
|
+
}, [Fe, ve, _e, Ce, Q, v, w, nt, We, ee, De, le, Je.length, te, T, R, P]), Ct = n.useMemo(function() {
|
|
640
640
|
return {
|
|
641
641
|
checkable: B,
|
|
642
642
|
loadData: ce,
|
|
643
643
|
treeLoadedKeys: He,
|
|
644
644
|
onTreeLoad: Re,
|
|
645
645
|
checkedKeys: xe,
|
|
646
|
-
halfCheckedKeys:
|
|
646
|
+
halfCheckedKeys: qe,
|
|
647
647
|
treeDefaultExpandAll: de,
|
|
648
648
|
treeExpandedKeys: ke,
|
|
649
649
|
treeDefaultExpandedKeys: Ae,
|
|
@@ -651,17 +651,17 @@ var zt = /* @__PURE__ */ n.forwardRef(function(e, t) {
|
|
|
651
651
|
treeIcon: he,
|
|
652
652
|
treeMotion: Ue,
|
|
653
653
|
showTreeIcon: pe,
|
|
654
|
-
switcherIcon:
|
|
654
|
+
switcherIcon: q,
|
|
655
655
|
treeLine: Se,
|
|
656
656
|
treeNodeFilterProp: H,
|
|
657
657
|
keyEntities: K
|
|
658
658
|
};
|
|
659
|
-
}, [B, ce, He, Re, xe,
|
|
659
|
+
}, [B, ce, He, Re, xe, qe, de, ke, Ae, $e, he, Ue, pe, q, Se, H, K]);
|
|
660
660
|
return /* @__PURE__ */ n.createElement(Ft.Provider, {
|
|
661
661
|
value: gt
|
|
662
662
|
}, /* @__PURE__ */ n.createElement(Wt.Provider, {
|
|
663
663
|
value: Ct
|
|
664
|
-
}, /* @__PURE__ */ n.createElement(
|
|
664
|
+
}, /* @__PURE__ */ n.createElement(qt, Kt({
|
|
665
665
|
ref: t
|
|
666
666
|
}, ye, {
|
|
667
667
|
// >>> MISC
|
|
@@ -756,10 +756,10 @@ const jr = (e, t) => {
|
|
|
756
756
|
disabled: f,
|
|
757
757
|
bordered: p = !0,
|
|
758
758
|
style: _,
|
|
759
|
-
className:
|
|
759
|
+
className: M,
|
|
760
760
|
rootClassName: E,
|
|
761
761
|
treeCheckable: D,
|
|
762
|
-
multiple:
|
|
762
|
+
multiple: O,
|
|
763
763
|
listHeight: I = 256,
|
|
764
764
|
listItemHeight: H,
|
|
765
765
|
placement: J,
|
|
@@ -794,7 +794,7 @@ const jr = (e, t) => {
|
|
|
794
794
|
getPopupContainer: Se,
|
|
795
795
|
getPrefixCls: he,
|
|
796
796
|
renderEmpty: pe,
|
|
797
|
-
direction:
|
|
797
|
+
direction: q,
|
|
798
798
|
virtual: Ue,
|
|
799
799
|
popupMatchSelectWidth: ee,
|
|
800
800
|
popupOverflow: De
|
|
@@ -815,21 +815,21 @@ const jr = (e, t) => {
|
|
|
815
815
|
bordered: "variant"
|
|
816
816
|
}).forEach(([h, g]) => {
|
|
817
817
|
c.deprecated(!(h in e), h, g);
|
|
818
|
-
}), process.env.NODE_ENV !== "production" && c(
|
|
818
|
+
}), process.env.NODE_ENV !== "production" && c(O !== !1 || !D, "usage", "`multiple` will always be `true` when `treeCheckable` is true"), process.env.NODE_ENV !== "production" && c(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.");
|
|
819
819
|
}
|
|
820
|
-
const $ = he(),
|
|
820
|
+
const $ = he(), V = he("select", i), be = he("select-tree", i), L = he("tree-select", i), {
|
|
821
821
|
compactSize: tt,
|
|
822
822
|
compactItemClassnames: te
|
|
823
|
-
} = rr(
|
|
824
|
-
[`${L}-dropdown-rtl`]:
|
|
825
|
-
}, E, oe.root, j == null ? void 0 : j.root, ge, w,
|
|
823
|
+
} = rr(V, q), w = Tt(V), Pe = Tt(L), [Be, we, ge] = nr(V, w), [Xe] = Wr(L, be, Pe), [z, Ge] = ar("treeSelect", Ae, p), K = Pt(((r = j == null ? void 0 : j.popup) === null || r === void 0 ? void 0 : r.root) || ((l = oe == null ? void 0 : oe.popup) === null || l === void 0 ? void 0 : l.root) || Le || le, `${L}-dropdown`, {
|
|
824
|
+
[`${L}-dropdown-rtl`]: q === "rtl"
|
|
825
|
+
}, E, oe.root, j == null ? void 0 : j.root, ge, w, Pe, we), P = ((a = F == null ? void 0 : F.popup) === null || a === void 0 ? void 0 : a.root) || ((s = ye == null ? void 0 : ye.popup) === null || s === void 0 ? void 0 : s.root) || $e, m = lr(Fe || We), v = _e || je, x = !!(D || O), C = n.useMemo(() => {
|
|
826
826
|
if (!(Ce && (fe === "SHOW_ALL" && !Q || fe === "SHOW_PARENT")))
|
|
827
827
|
return Ce;
|
|
828
828
|
}, [Ce, fe, Q]), N = or(e.suffixIcon, e.showArrow), U = (o = de ?? Re) !== null && o !== void 0 ? o : ee, {
|
|
829
829
|
status: W,
|
|
830
|
-
hasFeedback:
|
|
830
|
+
hasFeedback: Oe,
|
|
831
831
|
isFormItemInput: ie,
|
|
832
|
-
feedbackIcon:
|
|
832
|
+
feedbackIcon: Ye
|
|
833
833
|
} = n.useContext(ir), it = pr(W, Ke), {
|
|
834
834
|
suffixIcon: ft,
|
|
835
835
|
removeIcon: st,
|
|
@@ -837,65 +837,65 @@ const jr = (e, t) => {
|
|
|
837
837
|
} = sr(Object.assign(Object.assign({}, ve), {
|
|
838
838
|
multiple: x,
|
|
839
839
|
showSuffixIcon: N,
|
|
840
|
-
hasFeedback:
|
|
841
|
-
feedbackIcon:
|
|
842
|
-
prefixCls:
|
|
840
|
+
hasFeedback: Oe,
|
|
841
|
+
feedbackIcon: Ye,
|
|
842
|
+
prefixCls: V,
|
|
843
843
|
componentName: "TreeSelect"
|
|
844
|
-
})),
|
|
844
|
+
})), qe = ke === !0 ? {
|
|
845
845
|
clearIcon: xe
|
|
846
846
|
} : ke;
|
|
847
847
|
let rt;
|
|
848
848
|
Z !== void 0 ? rt = Z : rt = (pe == null ? void 0 : pe("Select")) || /* @__PURE__ */ n.createElement(ur, {
|
|
849
849
|
componentName: "Select"
|
|
850
850
|
});
|
|
851
|
-
const vt = Rt(ve, ["suffixIcon", "removeIcon", "clearIcon", "itemIcon", "switcherIcon", "style"]), ht = n.useMemo(() => J !== void 0 ? J :
|
|
851
|
+
const vt = Rt(ve, ["suffixIcon", "removeIcon", "clearIcon", "itemIcon", "switcherIcon", "style"]), ht = n.useMemo(() => J !== void 0 ? J : q === "rtl" ? "bottomRight" : "bottomLeft", [J, q]), Je = cr((c) => {
|
|
852
852
|
var d;
|
|
853
853
|
return (d = u ?? tt) !== null && d !== void 0 ? d : c;
|
|
854
|
-
}), ut = n.useContext(dr), Ze = f ?? ut, nt =
|
|
855
|
-
[`${
|
|
856
|
-
[`${
|
|
857
|
-
[`${
|
|
858
|
-
[`${
|
|
859
|
-
[`${
|
|
860
|
-
}, fr(
|
|
854
|
+
}), ut = n.useContext(dr), Ze = f ?? ut, nt = Pt(!i && L, {
|
|
855
|
+
[`${V}-lg`]: Je === "large",
|
|
856
|
+
[`${V}-sm`]: Je === "small",
|
|
857
|
+
[`${V}-rtl`]: q === "rtl",
|
|
858
|
+
[`${V}-${z}`]: Ge,
|
|
859
|
+
[`${V}-in-form-item`]: ie
|
|
860
|
+
}, fr(V, it, Oe), te, M, E, oe.root, j == null ? void 0 : j.root, ge, w, Pe, we), pt = ae ?? me, mt = (c) => /* @__PURE__ */ n.createElement(wr, {
|
|
861
861
|
prefixCls: be,
|
|
862
862
|
switcherIcon: pt,
|
|
863
863
|
treeNodeProps: c,
|
|
864
864
|
showLine: R
|
|
865
|
-
}), [gt] = vr("SelectLike",
|
|
865
|
+
}), [gt] = vr("SelectLike", P == null ? void 0 : P.zIndex), Ct = /* @__PURE__ */ n.createElement(ot, Object.assign({
|
|
866
866
|
virtual: Ue,
|
|
867
867
|
disabled: Ze
|
|
868
868
|
}, vt, {
|
|
869
869
|
dropdownMatchSelectWidth: U,
|
|
870
870
|
builtinPlacements: hr(He, De),
|
|
871
871
|
ref: t,
|
|
872
|
-
prefixCls:
|
|
872
|
+
prefixCls: V,
|
|
873
873
|
className: nt,
|
|
874
874
|
style: Object.assign(Object.assign({}, F == null ? void 0 : F.root), _),
|
|
875
875
|
listHeight: I,
|
|
876
876
|
listItemHeight: Te,
|
|
877
877
|
treeCheckable: D && /* @__PURE__ */ n.createElement("span", {
|
|
878
|
-
className: `${
|
|
878
|
+
className: `${V}-tree-checkbox-inner`
|
|
879
879
|
}),
|
|
880
880
|
treeLine: !!R,
|
|
881
881
|
suffixIcon: ft,
|
|
882
882
|
multiple: x,
|
|
883
883
|
placement: ht,
|
|
884
884
|
removeIcon: st,
|
|
885
|
-
allowClear:
|
|
885
|
+
allowClear: qe,
|
|
886
886
|
switcherIcon: mt,
|
|
887
887
|
showTreeIcon: b,
|
|
888
888
|
notFoundContent: rt,
|
|
889
889
|
getPopupContainer: T || Se,
|
|
890
890
|
treeMotion: null,
|
|
891
891
|
dropdownClassName: K,
|
|
892
|
-
dropdownStyle: Object.assign(Object.assign({},
|
|
892
|
+
dropdownStyle: Object.assign(Object.assign({}, P), {
|
|
893
893
|
zIndex: gt
|
|
894
894
|
}),
|
|
895
895
|
dropdownRender: m,
|
|
896
896
|
onDropdownVisibleChange: v,
|
|
897
|
-
choiceTransitionName:
|
|
898
|
-
transitionName:
|
|
897
|
+
choiceTransitionName: Ot($, "", A),
|
|
898
|
+
transitionName: Ot($, "slide-up", ue),
|
|
899
899
|
treeExpandAction: ce,
|
|
900
900
|
tagRender: x ? ze : void 0,
|
|
901
901
|
maxCount: C,
|
|
@@ -903,13 +903,13 @@ const jr = (e, t) => {
|
|
|
903
903
|
treeCheckStrictly: Q
|
|
904
904
|
}));
|
|
905
905
|
return Be(Xe(Ct));
|
|
906
|
-
}, zr = /* @__PURE__ */ n.forwardRef(jr),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
process.env.NODE_ENV !== "production" && (
|
|
906
|
+
}, zr = /* @__PURE__ */ n.forwardRef(jr), Ve = zr, Ur = mr(Ve, "dropdownAlign", (e) => Rt(e, ["visible"]));
|
|
907
|
+
Ve.TreeNode = Nt;
|
|
908
|
+
Ve.SHOW_ALL = Et;
|
|
909
|
+
Ve.SHOW_PARENT = It;
|
|
910
|
+
Ve.SHOW_CHILD = dt;
|
|
911
|
+
Ve._InternalPanelDoNotUseOrYouWillBeFired = Ur;
|
|
912
|
+
process.env.NODE_ENV !== "production" && (Ve.displayName = "TreeSelect");
|
|
913
913
|
export {
|
|
914
|
-
|
|
914
|
+
Ve as T
|
|
915
915
|
};
|