@yuku123/z-cognition-component 2.0.0 → 2.0.1

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.
Files changed (174) hide show
  1. package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
  2. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
  3. package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
  4. package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
  5. package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
  6. package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
  7. package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
  8. package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
  9. package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
  10. package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
  11. package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
  12. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
  13. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
  14. package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
  15. package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
  16. package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
  17. package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
  18. package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
  19. package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
  20. package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
  21. package/dist-lib/Skeleton-DXcERb5r.js +557 -0
  22. package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
  23. package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
  24. package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
  25. package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
  26. package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
  27. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
  28. package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
  40. package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
  41. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
  42. package/dist-lib/colors-sdAcAcU3.js +24 -0
  43. package/dist-lib/context-Buz0ggsK.js +710 -0
  44. package/dist-lib/context-DpmyNOn3.js +21 -0
  45. package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
  46. package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
  47. package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
  48. package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
  50. package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
  51. package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
  54. package/dist-lib/embed-DwLg9RDW.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
  56. package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
  57. package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
  58. package/dist-lib/index-9aQ4BzIK.js +500 -0
  59. package/dist-lib/index-B57Fj7Y0.js +1169 -0
  60. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  61. package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
  62. package/dist-lib/index-Bc-Vin3j.js +256 -0
  63. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  64. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  65. package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
  66. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  67. package/dist-lib/index-Cfu1W1H6.js +535 -0
  68. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  69. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  70. package/dist-lib/index-CyKWCYMK.js +218 -0
  71. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  72. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  73. package/dist-lib/index-DBtGE89a.js +168 -0
  74. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  75. package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
  76. package/dist-lib/index-DjFPRXl5.js +1484 -0
  77. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  78. package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
  79. package/dist-lib/index-DvWHYX81.js +450 -0
  80. package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
  81. package/dist-lib/index-Vu6sPBci.js +1884 -0
  82. package/dist-lib/index-bOY1cBol.js +4890 -0
  83. package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
  84. package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
  85. package/dist-lib/index-nQSVLWfW.js +356 -0
  86. package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
  87. package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
  88. package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
  89. package/dist-lib/index.js +3 -1
  90. package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
  91. package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
  96. package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
  97. package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  98. package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
  99. package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
  100. package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
  101. package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
  102. package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
  103. package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
  104. package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
  106. package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
  107. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
  108. package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
  109. package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
  110. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
  111. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
  112. package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
  113. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
  114. package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
  115. package/dist-lib/pages-CsexFuEz.js +73 -0
  116. package/dist-lib/pages.js +3 -3
  117. package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
  118. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  119. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  120. package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
  121. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  122. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
  123. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
  124. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
  125. package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
  126. package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
  127. package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
  128. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
  129. package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
  130. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
  131. package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
  132. package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
  133. package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
  134. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
  135. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  136. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
  137. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  138. package/dist-lib/useForm-Byp1LopG.js +145 -0
  139. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
  140. package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
  141. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
  142. package/package.json +2 -3
  143. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  144. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  145. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  146. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  147. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  148. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  149. package/dist-lib/Table-Civ838nE.js +0 -20514
  150. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  151. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  152. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  153. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  154. package/dist-lib/context-T27uno74.js +0 -54
  155. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  156. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  157. package/dist-lib/index-0TvzCTD7.js +0 -2336
  158. package/dist-lib/index-4tbtbcAt.js +0 -550
  159. package/dist-lib/index-B1wh6i1C.js +0 -1308
  160. package/dist-lib/index-BVgdmf6r.js +0 -2487
  161. package/dist-lib/index-CSnvcFg-.js +0 -543
  162. package/dist-lib/index-D35Ry0PG.js +0 -1162
  163. package/dist-lib/index-DC57_dnh.js +0 -604
  164. package/dist-lib/index-DQ16Zb7x.js +0 -546
  165. package/dist-lib/index-DRcTwC17.js +0 -418
  166. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  167. package/dist-lib/index-DxzorPvG.js +0 -13960
  168. package/dist-lib/index-If4xc1-H.js +0 -559
  169. package/dist-lib/index-R71k3nB_.js +0 -710
  170. package/dist-lib/index-mUlorJxp.js +0 -3279
  171. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  172. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  173. package/dist-lib/pages-CticGC6S.js +0 -512
  174. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -0,0 +1,699 @@
1
+ import * as n from "react";
2
+ import { q as He, _ as le, c as S, f as me, j as Ke, i as fe, b as I, h as ye } from "./SearchOutlined-puH6bCY6.js";
3
+ import { q as Le, p as ve, s as ge, i as ue, T as he, P as Ve, a8 as ke, g as We, m as Te, u as te, a as Ae, t as Be, d as Fe, x as Ue, y as Xe, z as Ye, A as qe, E as be, c as Ge } from "./index-CrMcNEAZ.js";
4
+ import { u as Ze } from "./context-DpmyNOn3.js";
5
+ import { S as Je } from "./Skeleton-DXcERb5r.js";
6
+ import { u as Qe, p as Ce } from "./useClosable-BY7FgWKy.js";
7
+ var we = /* @__PURE__ */ n.createContext(null), Ne = /* @__PURE__ */ n.createContext({}), et = ["prefixCls", "className", "containerRef"], Oe = function(t) {
8
+ var o = t.prefixCls, a = t.className, r = t.containerRef, s = He(t, et), l = n.useContext(Ne), i = l.panel, c = Le(i, r);
9
+ return /* @__PURE__ */ n.createElement("div", le({
10
+ className: S("".concat(o, "-content"), a),
11
+ role: "dialog",
12
+ ref: c
13
+ }, ve(t, {
14
+ aria: !0
15
+ }), {
16
+ "aria-modal": "true"
17
+ }, s));
18
+ };
19
+ process.env.NODE_ENV !== "production" && (Oe.displayName = "DrawerPanel");
20
+ function xe(e) {
21
+ return typeof e == "string" && String(Number(e)) === e ? (me(!1, "Invalid value type of `width` or `height` which should be number type instead."), Number(e)) : e;
22
+ }
23
+ function tt(e) {
24
+ me(!("wrapperClassName" in e), "'wrapperClassName' is removed. Please use 'rootClassName' instead."), me(Ke() || !e.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
25
+ }
26
+ var Se = {
27
+ width: 0,
28
+ height: 0,
29
+ overflow: "hidden",
30
+ outline: "none",
31
+ position: "absolute"
32
+ };
33
+ function nt(e, t) {
34
+ var o, a, r, s = e.prefixCls, l = e.open, i = e.placement, c = e.inline, b = e.push, C = e.forceRender, w = e.autoFocus, E = e.keyboard, p = e.classNames, $ = e.rootClassName, v = e.rootStyle, d = e.zIndex, x = e.className, g = e.id, j = e.style, k = e.motion, _ = e.width, z = e.height, D = e.children, u = e.mask, h = e.maskClosable, N = e.maskMotion, q = e.maskClassName, G = e.maskStyle, V = e.afterOpenChange, H = e.onClose, W = e.onMouseEnter, T = e.onMouseOver, A = e.onMouseLeave, P = e.onClick, ne = e.onKeyDown, ae = e.onKeyUp, y = e.styles, K = e.drawerRender, M = n.useRef(), B = n.useRef(), F = n.useRef();
35
+ n.useImperativeHandle(t, function() {
36
+ return M.current;
37
+ });
38
+ var oe = function(O) {
39
+ var J = O.keyCode, Q = O.shiftKey;
40
+ switch (J) {
41
+ // Tab active
42
+ case ue.TAB: {
43
+ if (J === ue.TAB) {
44
+ if (!Q && document.activeElement === F.current) {
45
+ var ee;
46
+ (ee = B.current) === null || ee === void 0 || ee.focus({
47
+ preventScroll: !0
48
+ });
49
+ } else if (Q && document.activeElement === B.current) {
50
+ var de;
51
+ (de = F.current) === null || de === void 0 || de.focus({
52
+ preventScroll: !0
53
+ });
54
+ }
55
+ }
56
+ break;
57
+ }
58
+ // Close
59
+ case ue.ESC: {
60
+ H && E && (O.stopPropagation(), H(O));
61
+ break;
62
+ }
63
+ }
64
+ };
65
+ n.useEffect(function() {
66
+ if (l && w) {
67
+ var f;
68
+ (f = M.current) === null || f === void 0 || f.focus({
69
+ preventScroll: !0
70
+ });
71
+ }
72
+ }, [l]);
73
+ var re = n.useState(!1), se = fe(re, 2), U = se[0], L = se[1], m = n.useContext(we), X;
74
+ typeof b == "boolean" ? X = b ? {} : {
75
+ distance: 0
76
+ } : X = b || {};
77
+ var R = (o = (a = (r = X) === null || r === void 0 ? void 0 : r.distance) !== null && a !== void 0 ? a : m == null ? void 0 : m.pushDistance) !== null && o !== void 0 ? o : 180, Z = n.useMemo(function() {
78
+ return {
79
+ pushDistance: R,
80
+ push: function() {
81
+ L(!0);
82
+ },
83
+ pull: function() {
84
+ L(!1);
85
+ }
86
+ };
87
+ }, [R]);
88
+ n.useEffect(function() {
89
+ if (l) {
90
+ var f;
91
+ m == null || (f = m.push) === null || f === void 0 || f.call(m);
92
+ } else {
93
+ var O;
94
+ m == null || (O = m.pull) === null || O === void 0 || O.call(m);
95
+ }
96
+ }, [l]), n.useEffect(function() {
97
+ return function() {
98
+ var f;
99
+ m == null || (f = m.pull) === null || f === void 0 || f.call(m);
100
+ };
101
+ }, []);
102
+ var ie = /* @__PURE__ */ n.createElement(ge, le({
103
+ key: "mask"
104
+ }, N, {
105
+ visible: u && l
106
+ }), function(f, O) {
107
+ var J = f.className, Q = f.style;
108
+ return /* @__PURE__ */ n.createElement("div", {
109
+ className: S("".concat(s, "-mask"), J, p == null ? void 0 : p.mask, q),
110
+ style: I(I(I({}, Q), G), y == null ? void 0 : y.mask),
111
+ onClick: h && l ? H : void 0,
112
+ ref: O
113
+ });
114
+ }), ce = typeof k == "function" ? k(i) : k, Y = {};
115
+ if (U && R)
116
+ switch (i) {
117
+ case "top":
118
+ Y.transform = "translateY(".concat(R, "px)");
119
+ break;
120
+ case "bottom":
121
+ Y.transform = "translateY(".concat(-R, "px)");
122
+ break;
123
+ case "left":
124
+ Y.transform = "translateX(".concat(R, "px)");
125
+ break;
126
+ default:
127
+ Y.transform = "translateX(".concat(-R, "px)");
128
+ break;
129
+ }
130
+ i === "left" || i === "right" ? Y.width = xe(_) : Y.height = xe(z);
131
+ var Me = {
132
+ onMouseEnter: W,
133
+ onMouseOver: T,
134
+ onMouseLeave: A,
135
+ onClick: P,
136
+ onKeyDown: ne,
137
+ onKeyUp: ae
138
+ }, ze = /* @__PURE__ */ n.createElement(ge, le({
139
+ key: "panel"
140
+ }, ce, {
141
+ visible: l,
142
+ forceRender: C,
143
+ onVisibleChanged: function(O) {
144
+ V == null || V(O);
145
+ },
146
+ removeOnLeave: !1,
147
+ leavedClassName: "".concat(s, "-content-wrapper-hidden")
148
+ }), function(f, O) {
149
+ var J = f.className, Q = f.style, ee = /* @__PURE__ */ n.createElement(Oe, le({
150
+ id: g,
151
+ containerRef: O,
152
+ prefixCls: s,
153
+ className: S(x, p == null ? void 0 : p.content),
154
+ style: I(I({}, j), y == null ? void 0 : y.content)
155
+ }, ve(e, {
156
+ aria: !0
157
+ }), Me), D);
158
+ return /* @__PURE__ */ n.createElement("div", le({
159
+ className: S("".concat(s, "-content-wrapper"), p == null ? void 0 : p.wrapper, J),
160
+ style: I(I(I({}, Y), Q), y == null ? void 0 : y.wrapper)
161
+ }, ve(e, {
162
+ data: !0
163
+ })), K ? K(ee) : ee);
164
+ }), pe = I({}, v);
165
+ return d && (pe.zIndex = d), /* @__PURE__ */ n.createElement(we.Provider, {
166
+ value: Z
167
+ }, /* @__PURE__ */ n.createElement("div", {
168
+ className: S(s, "".concat(s, "-").concat(i), $, ye(ye({}, "".concat(s, "-open"), l), "".concat(s, "-inline"), c)),
169
+ style: pe,
170
+ tabIndex: -1,
171
+ ref: M,
172
+ onKeyDown: oe
173
+ }, ie, /* @__PURE__ */ n.createElement("div", {
174
+ tabIndex: 0,
175
+ ref: B,
176
+ style: Se,
177
+ "aria-hidden": "true",
178
+ "data-sentinel": "start"
179
+ }), ze, /* @__PURE__ */ n.createElement("div", {
180
+ tabIndex: 0,
181
+ ref: F,
182
+ style: Se,
183
+ "aria-hidden": "true",
184
+ "data-sentinel": "end"
185
+ })));
186
+ }
187
+ var Ee = /* @__PURE__ */ n.forwardRef(nt);
188
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "DrawerPopup");
189
+ var $e = function(t) {
190
+ var o = t.open, a = o === void 0 ? !1 : o, r = t.prefixCls, s = r === void 0 ? "rc-drawer" : r, l = t.placement, i = l === void 0 ? "right" : l, c = t.autoFocus, b = c === void 0 ? !0 : c, C = t.keyboard, w = C === void 0 ? !0 : C, E = t.width, p = E === void 0 ? 378 : E, $ = t.mask, v = $ === void 0 ? !0 : $, d = t.maskClosable, x = d === void 0 ? !0 : d, g = t.getContainer, j = t.forceRender, k = t.afterOpenChange, _ = t.destroyOnClose, z = t.onMouseEnter, D = t.onMouseOver, u = t.onMouseLeave, h = t.onClick, N = t.onKeyDown, q = t.onKeyUp, G = t.panelRef, V = n.useState(!1), H = fe(V, 2), W = H[0], T = H[1];
191
+ process.env.NODE_ENV !== "production" && tt(t);
192
+ var A = n.useState(!1), P = fe(A, 2), ne = P[0], ae = P[1];
193
+ he(function() {
194
+ ae(!0);
195
+ }, []);
196
+ var y = ne ? a : !1, K = n.useRef(), M = n.useRef();
197
+ he(function() {
198
+ y && (M.current = document.activeElement);
199
+ }, [y]);
200
+ var B = function(U) {
201
+ var L;
202
+ if (T(U), k == null || k(U), !U && M.current && !((L = K.current) !== null && L !== void 0 && L.contains(M.current))) {
203
+ var m;
204
+ (m = M.current) === null || m === void 0 || m.focus({
205
+ preventScroll: !0
206
+ });
207
+ }
208
+ }, F = n.useMemo(function() {
209
+ return {
210
+ panel: G
211
+ };
212
+ }, [G]);
213
+ if (!j && !W && !y && _)
214
+ return null;
215
+ var oe = {
216
+ onMouseEnter: z,
217
+ onMouseOver: D,
218
+ onMouseLeave: u,
219
+ onClick: h,
220
+ onKeyDown: N,
221
+ onKeyUp: q
222
+ }, re = I(I({}, t), {}, {
223
+ open: y,
224
+ prefixCls: s,
225
+ placement: i,
226
+ autoFocus: b,
227
+ keyboard: w,
228
+ width: p,
229
+ mask: v,
230
+ maskClosable: x,
231
+ inline: g === !1,
232
+ afterOpenChange: B,
233
+ ref: K
234
+ }, oe);
235
+ return /* @__PURE__ */ n.createElement(Ne.Provider, {
236
+ value: F
237
+ }, /* @__PURE__ */ n.createElement(Ve, {
238
+ open: y || j || W,
239
+ autoDestroy: !1,
240
+ getContainer: g,
241
+ autoLock: v && (y || W)
242
+ }, /* @__PURE__ */ n.createElement(Ee, re)));
243
+ };
244
+ process.env.NODE_ENV !== "production" && ($e.displayName = "Drawer");
245
+ const De = (e) => {
246
+ var t, o;
247
+ const {
248
+ prefixCls: a,
249
+ ariaId: r,
250
+ title: s,
251
+ footer: l,
252
+ extra: i,
253
+ closable: c,
254
+ loading: b,
255
+ onClose: C,
256
+ headerStyle: w,
257
+ bodyStyle: E,
258
+ footerStyle: p,
259
+ children: $,
260
+ classNames: v,
261
+ styles: d
262
+ } = e, x = ke("drawer");
263
+ let g;
264
+ c === !1 ? g = void 0 : c === void 0 || c === !0 ? g = "start" : g = (c == null ? void 0 : c.placement) === "end" ? "end" : "start";
265
+ const j = n.useCallback((u) => /* @__PURE__ */ n.createElement("button", {
266
+ type: "button",
267
+ onClick: C,
268
+ className: S(`${a}-close`, {
269
+ [`${a}-close-${g}`]: g === "end"
270
+ })
271
+ }, u), [C, a, g]), [k, _] = Qe(Ce(e), Ce(x), {
272
+ closable: !0,
273
+ closeIconRender: j
274
+ }), z = () => {
275
+ var u, h;
276
+ return !s && !k ? null : /* @__PURE__ */ n.createElement("div", {
277
+ style: Object.assign(Object.assign(Object.assign({}, (u = x.styles) === null || u === void 0 ? void 0 : u.header), w), d == null ? void 0 : d.header),
278
+ className: S(`${a}-header`, {
279
+ [`${a}-header-close-only`]: k && !s && !i
280
+ }, (h = x.classNames) === null || h === void 0 ? void 0 : h.header, v == null ? void 0 : v.header)
281
+ }, /* @__PURE__ */ n.createElement("div", {
282
+ className: `${a}-header-title`
283
+ }, g === "start" && _, s && /* @__PURE__ */ n.createElement("div", {
284
+ className: `${a}-title`,
285
+ id: r
286
+ }, s)), i && /* @__PURE__ */ n.createElement("div", {
287
+ className: `${a}-extra`
288
+ }, i), g === "end" && _);
289
+ }, D = () => {
290
+ var u, h;
291
+ if (!l)
292
+ return null;
293
+ const N = `${a}-footer`;
294
+ return /* @__PURE__ */ n.createElement("div", {
295
+ className: S(N, (u = x.classNames) === null || u === void 0 ? void 0 : u.footer, v == null ? void 0 : v.footer),
296
+ style: Object.assign(Object.assign(Object.assign({}, (h = x.styles) === null || h === void 0 ? void 0 : h.footer), p), d == null ? void 0 : d.footer)
297
+ }, l);
298
+ };
299
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, z(), /* @__PURE__ */ n.createElement("div", {
300
+ className: S(`${a}-body`, v == null ? void 0 : v.body, (t = x.classNames) === null || t === void 0 ? void 0 : t.body),
301
+ style: Object.assign(Object.assign(Object.assign({}, (o = x.styles) === null || o === void 0 ? void 0 : o.body), E), d == null ? void 0 : d.body)
302
+ }, b ? /* @__PURE__ */ n.createElement(Je, {
303
+ active: !0,
304
+ title: !1,
305
+ paragraph: {
306
+ rows: 5
307
+ },
308
+ className: `${a}-body-skeleton`
309
+ }) : $), D());
310
+ }, at = (e) => {
311
+ const t = "100%";
312
+ return {
313
+ left: `translateX(-${t})`,
314
+ right: `translateX(${t})`,
315
+ top: `translateY(-${t})`,
316
+ bottom: `translateY(${t})`
317
+ }[e];
318
+ }, Pe = (e, t) => ({
319
+ "&-enter, &-appear": Object.assign(Object.assign({}, e), {
320
+ "&-active": t
321
+ }),
322
+ "&-leave": Object.assign(Object.assign({}, t), {
323
+ "&-active": e
324
+ })
325
+ }), Re = (e, t) => Object.assign({
326
+ "&-enter, &-appear, &-leave": {
327
+ "&-start": {
328
+ transition: "none"
329
+ },
330
+ "&-active": {
331
+ transition: `all ${t}`
332
+ }
333
+ }
334
+ }, Pe({
335
+ opacity: e
336
+ }, {
337
+ opacity: 1
338
+ })), ot = (e, t) => [Re(0.7, t), Pe({
339
+ transform: at(e)
340
+ }, {
341
+ transform: "none"
342
+ })], rt = (e) => {
343
+ const {
344
+ componentCls: t,
345
+ motionDurationSlow: o
346
+ } = e;
347
+ return {
348
+ [t]: {
349
+ // ======================== Mask ========================
350
+ [`${t}-mask-motion`]: Re(0, o),
351
+ // ======================= Panel ========================
352
+ [`${t}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((a, r) => Object.assign(Object.assign({}, a), {
353
+ [`&-${r}`]: ot(r, o)
354
+ }), {})
355
+ }
356
+ };
357
+ }, st = (e) => {
358
+ const {
359
+ borderRadiusSM: t,
360
+ componentCls: o,
361
+ zIndexPopup: a,
362
+ colorBgMask: r,
363
+ colorBgElevated: s,
364
+ motionDurationSlow: l,
365
+ motionDurationMid: i,
366
+ paddingXS: c,
367
+ padding: b,
368
+ paddingLG: C,
369
+ fontSizeLG: w,
370
+ lineHeightLG: E,
371
+ lineWidth: p,
372
+ lineType: $,
373
+ colorSplit: v,
374
+ marginXS: d,
375
+ colorIcon: x,
376
+ colorIconHover: g,
377
+ colorBgTextHover: j,
378
+ colorBgTextActive: k,
379
+ colorText: _,
380
+ fontWeightStrong: z,
381
+ footerPaddingBlock: D,
382
+ footerPaddingInline: u,
383
+ calc: h
384
+ } = e, N = `${o}-content-wrapper`;
385
+ return {
386
+ [o]: {
387
+ position: "fixed",
388
+ inset: 0,
389
+ zIndex: a,
390
+ pointerEvents: "none",
391
+ color: _,
392
+ "&-pure": {
393
+ position: "relative",
394
+ background: s,
395
+ display: "flex",
396
+ flexDirection: "column",
397
+ [`&${o}-left`]: {
398
+ boxShadow: e.boxShadowDrawerLeft
399
+ },
400
+ [`&${o}-right`]: {
401
+ boxShadow: e.boxShadowDrawerRight
402
+ },
403
+ [`&${o}-top`]: {
404
+ boxShadow: e.boxShadowDrawerUp
405
+ },
406
+ [`&${o}-bottom`]: {
407
+ boxShadow: e.boxShadowDrawerDown
408
+ }
409
+ },
410
+ "&-inline": {
411
+ position: "absolute"
412
+ },
413
+ // ====================== Mask ======================
414
+ [`${o}-mask`]: {
415
+ position: "absolute",
416
+ inset: 0,
417
+ zIndex: a,
418
+ background: r,
419
+ pointerEvents: "auto"
420
+ },
421
+ // ==================== Content =====================
422
+ [N]: {
423
+ position: "absolute",
424
+ zIndex: a,
425
+ maxWidth: "100vw",
426
+ transition: `all ${l}`,
427
+ "&-hidden": {
428
+ display: "none"
429
+ }
430
+ },
431
+ // Placement
432
+ [`&-left > ${N}`]: {
433
+ top: 0,
434
+ bottom: 0,
435
+ left: {
436
+ _skip_check_: !0,
437
+ value: 0
438
+ },
439
+ boxShadow: e.boxShadowDrawerLeft
440
+ },
441
+ [`&-right > ${N}`]: {
442
+ top: 0,
443
+ right: {
444
+ _skip_check_: !0,
445
+ value: 0
446
+ },
447
+ bottom: 0,
448
+ boxShadow: e.boxShadowDrawerRight
449
+ },
450
+ [`&-top > ${N}`]: {
451
+ top: 0,
452
+ insetInline: 0,
453
+ boxShadow: e.boxShadowDrawerUp
454
+ },
455
+ [`&-bottom > ${N}`]: {
456
+ bottom: 0,
457
+ insetInline: 0,
458
+ boxShadow: e.boxShadowDrawerDown
459
+ },
460
+ [`${o}-content`]: {
461
+ display: "flex",
462
+ flexDirection: "column",
463
+ width: "100%",
464
+ height: "100%",
465
+ overflow: "auto",
466
+ background: s,
467
+ pointerEvents: "auto"
468
+ },
469
+ // Header
470
+ [`${o}-header`]: {
471
+ display: "flex",
472
+ flex: 0,
473
+ alignItems: "center",
474
+ padding: `${te(b)} ${te(C)}`,
475
+ fontSize: w,
476
+ lineHeight: E,
477
+ borderBottom: `${te(p)} ${$} ${v}`,
478
+ "&-title": {
479
+ display: "flex",
480
+ flex: 1,
481
+ alignItems: "center",
482
+ minWidth: 0,
483
+ minHeight: 0
484
+ }
485
+ },
486
+ [`${o}-extra`]: {
487
+ flex: "none"
488
+ },
489
+ [`${o}-close`]: Object.assign({
490
+ display: "inline-flex",
491
+ width: h(w).add(c).equal(),
492
+ height: h(w).add(c).equal(),
493
+ borderRadius: t,
494
+ justifyContent: "center",
495
+ alignItems: "center",
496
+ color: x,
497
+ fontWeight: z,
498
+ fontSize: w,
499
+ fontStyle: "normal",
500
+ lineHeight: 1,
501
+ textAlign: "center",
502
+ textTransform: "none",
503
+ textDecoration: "none",
504
+ background: "transparent",
505
+ border: 0,
506
+ cursor: "pointer",
507
+ transition: `all ${i}`,
508
+ textRendering: "auto",
509
+ [`&${o}-close-end`]: {
510
+ marginInlineStart: d
511
+ },
512
+ [`&:not(${o}-close-end)`]: {
513
+ marginInlineEnd: d
514
+ },
515
+ "&:hover": {
516
+ color: g,
517
+ backgroundColor: j,
518
+ textDecoration: "none"
519
+ },
520
+ "&:active": {
521
+ backgroundColor: k
522
+ }
523
+ }, Ae(e)),
524
+ [`${o}-title`]: {
525
+ flex: 1,
526
+ margin: 0,
527
+ fontWeight: e.fontWeightStrong,
528
+ fontSize: w,
529
+ lineHeight: E
530
+ },
531
+ // Body
532
+ [`${o}-body`]: {
533
+ flex: 1,
534
+ minWidth: 0,
535
+ minHeight: 0,
536
+ padding: C,
537
+ overflow: "auto",
538
+ [`${o}-body-skeleton`]: {
539
+ width: "100%",
540
+ height: "100%",
541
+ display: "flex",
542
+ justifyContent: "center"
543
+ }
544
+ },
545
+ // Footer
546
+ [`${o}-footer`]: {
547
+ flexShrink: 0,
548
+ padding: `${te(D)} ${te(u)}`,
549
+ borderTop: `${te(p)} ${$} ${v}`
550
+ },
551
+ // ====================== RTL =======================
552
+ "&-rtl": {
553
+ direction: "rtl"
554
+ }
555
+ }
556
+ };
557
+ }, lt = (e) => ({
558
+ zIndexPopup: e.zIndexPopupBase,
559
+ footerPaddingBlock: e.paddingXS,
560
+ footerPaddingInline: e.padding
561
+ }), Ie = We("Drawer", (e) => {
562
+ const t = Te(e, {});
563
+ return [st(t), rt(t)];
564
+ }, lt);
565
+ var je = function(e, t) {
566
+ var o = {};
567
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (o[a] = e[a]);
568
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
569
+ t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (o[a[r]] = e[a[r]]);
570
+ return o;
571
+ };
572
+ const it = {
573
+ distance: 180
574
+ }, _e = (e) => {
575
+ var t;
576
+ const {
577
+ rootClassName: o,
578
+ width: a,
579
+ height: r,
580
+ size: s = "default",
581
+ mask: l = !0,
582
+ push: i = it,
583
+ open: c,
584
+ afterOpenChange: b,
585
+ onClose: C,
586
+ prefixCls: w,
587
+ getContainer: E,
588
+ panelRef: p = null,
589
+ style: $,
590
+ className: v,
591
+ "aria-labelledby": d,
592
+ // Deprecated
593
+ visible: x,
594
+ afterVisibleChange: g,
595
+ maskStyle: j,
596
+ drawerStyle: k,
597
+ contentWrapperStyle: _,
598
+ destroyOnClose: z,
599
+ destroyOnHidden: D
600
+ } = e, u = je(e, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "aria-labelledby", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]), h = Be(), N = u.title ? h : void 0, {
601
+ getPopupContainer: q,
602
+ getPrefixCls: G,
603
+ direction: V,
604
+ className: H,
605
+ style: W,
606
+ classNames: T,
607
+ styles: A
608
+ } = ke("drawer"), P = G("drawer", w), [ne, ae, y] = Ie(P), K = (
609
+ // 有可能为 false,所以不能直接判断
610
+ E === void 0 && q ? () => q(document.body) : E
611
+ ), M = S({
612
+ "no-mask": !l,
613
+ [`${P}-rtl`]: V === "rtl"
614
+ }, o, ae, y);
615
+ if (process.env.NODE_ENV !== "production") {
616
+ const Z = Fe("Drawer");
617
+ [["visible", "open"], ["afterVisibleChange", "afterOpenChange"], ["headerStyle", "styles.header"], ["bodyStyle", "styles.body"], ["footerStyle", "styles.footer"], ["contentWrapperStyle", "styles.wrapper"], ["maskStyle", "styles.mask"], ["drawerStyle", "styles.content"], ["destroyInactivePanel", "destroyOnHidden"]].forEach(([ie, ce]) => {
618
+ Z.deprecated(!(ie in e), ie, ce);
619
+ }), K !== void 0 && ((t = e.style) === null || t === void 0 ? void 0 : t.position) === "absolute" && process.env.NODE_ENV !== "production" && Z(!1, "breaking", "`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.");
620
+ }
621
+ const B = n.useMemo(() => a ?? (s === "large" ? 736 : 378), [a, s]), F = n.useMemo(() => r ?? (s === "large" ? 736 : 378), [r, s]), oe = {
622
+ motionName: be(P, "mask-motion"),
623
+ motionAppear: !0,
624
+ motionEnter: !0,
625
+ motionLeave: !0,
626
+ motionDeadline: 500
627
+ }, re = (Z) => ({
628
+ motionName: be(P, `panel-motion-${Z}`),
629
+ motionAppear: !0,
630
+ motionEnter: !0,
631
+ motionLeave: !0,
632
+ motionDeadline: 500
633
+ }), se = Ze(), U = Ue(p, se), [L, m] = Xe("Drawer", u.zIndex), {
634
+ classNames: X = {},
635
+ styles: R = {}
636
+ } = u;
637
+ return ne(/* @__PURE__ */ n.createElement(Ye, {
638
+ form: !0,
639
+ space: !0
640
+ }, /* @__PURE__ */ n.createElement(qe.Provider, {
641
+ value: m
642
+ }, /* @__PURE__ */ n.createElement($e, Object.assign({
643
+ prefixCls: P,
644
+ onClose: C,
645
+ maskMotion: oe,
646
+ motion: re
647
+ }, u, {
648
+ classNames: {
649
+ mask: S(X.mask, T.mask),
650
+ content: S(X.content, T.content),
651
+ wrapper: S(X.wrapper, T.wrapper)
652
+ },
653
+ styles: {
654
+ mask: Object.assign(Object.assign(Object.assign({}, R.mask), j), A.mask),
655
+ content: Object.assign(Object.assign(Object.assign({}, R.content), k), A.content),
656
+ wrapper: Object.assign(Object.assign(Object.assign({}, R.wrapper), _), A.wrapper)
657
+ },
658
+ open: c ?? x,
659
+ mask: l,
660
+ push: i,
661
+ width: B,
662
+ height: F,
663
+ style: Object.assign(Object.assign({}, W), $),
664
+ className: S(H, v),
665
+ rootClassName: M,
666
+ getContainer: K,
667
+ afterOpenChange: b ?? g,
668
+ panelRef: U,
669
+ zIndex: L,
670
+ "aria-labelledby": d ?? N,
671
+ // TODO: In the future, destroyOnClose in rc-drawer needs to be upgrade to destroyOnHidden
672
+ destroyOnClose: D ?? z
673
+ }), /* @__PURE__ */ n.createElement(De, Object.assign({
674
+ prefixCls: P
675
+ }, u, {
676
+ ariaId: N,
677
+ onClose: C
678
+ }))))));
679
+ }, ct = (e) => {
680
+ const {
681
+ prefixCls: t,
682
+ style: o,
683
+ className: a,
684
+ placement: r = "right"
685
+ } = e, s = je(e, ["prefixCls", "style", "className", "placement"]), {
686
+ getPrefixCls: l
687
+ } = n.useContext(Ge), i = l("drawer", t), [c, b, C] = Ie(i), w = S(i, `${i}-pure`, `${i}-${r}`, b, C, a);
688
+ return c(/* @__PURE__ */ n.createElement("div", {
689
+ className: w,
690
+ style: o
691
+ }, /* @__PURE__ */ n.createElement(De, Object.assign({
692
+ prefixCls: i
693
+ }, s))));
694
+ };
695
+ _e._InternalPanelDoNotUseOrYouWillBeFired = ct;
696
+ process.env.NODE_ENV !== "production" && (_e.displayName = "Drawer");
697
+ export {
698
+ _e as D
699
+ };