@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.
Files changed (175) 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-CvgRLQw2.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-DYDhijtn.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DJnybJtS.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-3IbhY8Lp.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-Cd6CVzz4.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-cIXgilaE.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-BQzH4ChB.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-LKTj_HKM.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-CxuJ5unU.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-BplnCOF4.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-xEt2qnho.js → changelog-BoGqt_81.js} +2 -2
  40. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Cn81Dvgk.js} +1 -1
  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-BaX7WiWV.js} +51 -50
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Cx5c4KJH.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-C3Oz04OW.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-Cbn2eJaJ.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-mtaJBQXz.js} +21 -20
  54. package/dist-lib/embed-CR8XVkMy.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-BoHiY8yT.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-BJ2Gpcbi.js → index-B22_2Dzh.js} +2 -2
  60. package/dist-lib/index-B57Fj7Y0.js +1169 -0
  61. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  62. package/dist-lib/{index-rtSfQuYs.js → index-BSlCGnzo.js} +12 -12
  63. package/dist-lib/index-Bc-Vin3j.js +256 -0
  64. package/dist-lib/{index-SAPKyv8e.js → index-Bm1sK-VN.js} +10 -10
  65. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  66. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  67. package/dist-lib/{index-B5jr3A7f.js → index-CHBNrCMy.js} +19 -19
  68. package/dist-lib/{index-BFRg0cn3.js → index-CLTfICbf.js} +6 -6
  69. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  70. package/dist-lib/index-Cfu1W1H6.js +535 -0
  71. package/dist-lib/{index-DzrH4RQ7.js → index-Cj4DDWyj.js} +11 -10
  72. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  73. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  74. package/dist-lib/index-CyKWCYMK.js +218 -0
  75. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  76. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  77. package/dist-lib/index-DBtGE89a.js +168 -0
  78. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  79. package/dist-lib/index-DjFPRXl5.js +1484 -0
  80. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  81. package/dist-lib/index-DvWHYX81.js +450 -0
  82. package/dist-lib/{index-D5V4bZ4e.js → index-PBT9GksC.js} +8 -8
  83. package/dist-lib/index-Vu6sPBci.js +1884 -0
  84. package/dist-lib/index-bOY1cBol.js +4890 -0
  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-B0rM1ZvV.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-Bh_FQH28.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-Cl1Ka1e6.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-CPuzdRiq.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-Cu62Fl7J.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-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
  98. package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  99. package/dist-lib/{member-B5WF3FCj.js → member-DKDx77PD.js} +1 -1
  100. package/dist-lib/{message-kHyjuooj.js → message-BrooQ3Q7.js} +25 -24
  101. package/dist-lib/{message-D2MSaOMq.js → message-Dievi8Jw.js} +1 -1
  102. package/dist-lib/{messages-D_VDuKK7.js → messages-xTNmTS9g.js} +16 -15
  103. package/dist-lib/{meta-CEf_DYcU.js → meta-BD_qYTZu.js} +1 -1
  104. package/dist-lib/{metrics-hONGW0KG.js → metrics-DiHYqBKB.js} +2 -2
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-BBCu3zRe.js} +8 -8
  106. package/dist-lib/{monitor-DFmEu6rH.js → monitor-BXsdMJSV.js} +4 -4
  107. package/dist-lib/{my-access-j53lA6T6.js → my-access-CEGErUgv.js} +4 -4
  108. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-wSr5zv7g.js} +23 -22
  109. package/dist-lib/{new-DfZ61nMQ.js → new-BevAuTe5.js} +14 -12
  110. package/dist-lib/{ontology-CUH5qslO.js → ontology-DXGSJC-y.js} +145 -142
  111. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-jTG7CZm8.js} +88 -84
  112. package/dist-lib/ontology-modeling-CjRsa-DR.js +1039 -0
  113. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-DOj68TuI.js} +2125 -2117
  114. package/dist-lib/ontology-scenarios-CcAagMiP.js +660 -0
  115. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-J5kw6xgi.js} +703 -712
  116. package/dist-lib/pages-CsexFuEz.js +73 -0
  117. package/dist-lib/pages.js +3 -3
  118. package/dist-lib/{permission-CklDU2kO.js → permission-BUXo69Ne.js} +31 -31
  119. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  120. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  121. package/dist-lib/{quota-DLe9so2b.js → quota-D31cXjul.js} +4 -4
  122. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  123. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-CiWNK-cX.js} +2 -2
  124. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DQ_OBV4Z.js} +48 -46
  125. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-DESMvU7A.js} +425 -423
  126. package/dist-lib/{schedule-B_ujtL3h.js → schedule-BktxwX3S.js} +8 -8
  127. package/dist-lib/{settings-BIkKTQjc.js → settings-dsB3H65I.js} +147 -146
  128. package/dist-lib/{shared-Dfz1X4Mq.js → shared-CTCzvhyE.js} +1 -1
  129. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-BstybhBG.js} +2 -2
  130. package/dist-lib/{skills-BzpcX5fN.js → skills-CHPlMsgO.js} +40 -39
  131. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-tXqc855k.js} +16 -16
  132. package/dist-lib/{task-config-D0a7TOYt.js → task-config-BiTOiZj0.js} +4 -4
  133. package/dist-lib/{tech-CH01ekZ5.js → tech-BKlGPkV0.js} +4 -3
  134. package/dist-lib/{tools-YnTN61uE.js → tools-CouQ4FWk.js} +14 -14
  135. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-BPlNfoiP.js} +13 -13
  136. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  137. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-ja-ZIC_R.js} +50 -48
  138. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  139. package/dist-lib/useForm-Byp1LopG.js +145 -0
  140. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-CkBm36Yk.js} +27 -26
  141. package/dist-lib/{version-management-C_v8w1E4.js → version-management-B4kIbdVc.js} +7 -6
  142. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-F5iZoFB1.js} +4 -3
  143. package/package.json +2 -3
  144. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  145. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  146. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  147. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  148. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  149. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  150. package/dist-lib/Table-Civ838nE.js +0 -20514
  151. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  152. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  153. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  154. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  155. package/dist-lib/context-T27uno74.js +0 -54
  156. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  157. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  158. package/dist-lib/index-0TvzCTD7.js +0 -2336
  159. package/dist-lib/index-4tbtbcAt.js +0 -550
  160. package/dist-lib/index-B1wh6i1C.js +0 -1308
  161. package/dist-lib/index-BVgdmf6r.js +0 -2487
  162. package/dist-lib/index-CSnvcFg-.js +0 -543
  163. package/dist-lib/index-D35Ry0PG.js +0 -1162
  164. package/dist-lib/index-DC57_dnh.js +0 -604
  165. package/dist-lib/index-DQ16Zb7x.js +0 -546
  166. package/dist-lib/index-DRcTwC17.js +0 -418
  167. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  168. package/dist-lib/index-DxzorPvG.js +0 -13960
  169. package/dist-lib/index-If4xc1-H.js +0 -559
  170. package/dist-lib/index-R71k3nB_.js +0 -710
  171. package/dist-lib/index-mUlorJxp.js +0 -3279
  172. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  173. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  174. package/dist-lib/pages-CticGC6S.js +0 -512
  175. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -1,10 +1,11 @@
1
1
  import * as r from "react";
2
2
  import { useRef as dt, useEffect as ut, useMemo as pt, isValidElement as ft } from "react";
3
- import { b2 as ge, b3 as ye, dD as mt, c4 as Pe, ah as gt, am as Y, be as yt, c0 as Re, bM as bt, al as vt, ap as Ae, ak as Z, dE as Et, b6 as ht, aX as ke, b1 as W, aL as He, aB as xt, b4 as Ot, aD as ze, bG as Te, bO as St } from "./embed-Bs3Hmsyy.js";
4
- import { i as _e } from "./Pagination-Ds8VKQIT.js";
5
- import { T as be } from "./index-g9uC_rON.js";
6
- import { T as Ct } from "./index-0TvzCTD7.js";
7
- import { g as wt } from "./_commonjsHelpers-DaMA6jEr.js";
3
+ import { aI as Pe, g as mt, ay as gt, i as Re, k as yt, a8 as bt, x as Ae, d as Y, l as vt, a3 as ke, T as W, _ as He, c as Et, v as ht, a2 as ze, N as Te, O as xt } from "./index-CrMcNEAZ.js";
4
+ import { I as ge, _ as ye, z as Ot, c as Z, g as St } from "./SearchOutlined-puH6bCY6.js";
5
+ import { i as _e } from "./Pagination-Dxslodkq.js";
6
+ import { T as be } from "./index-BwVZgt5s.js";
7
+ import { T as Ct } from "./TextArea-DTpTS5HL.js";
8
+ import { R as wt } from "./index-bOY1cBol.js";
8
9
  const Rt = (e, n = !1) => n && e == null ? [] : Array.isArray(e) ? e : [e];
9
10
  var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, _t = function(n, o) {
10
11
  return /* @__PURE__ */ r.createElement(ge, ye({}, n, {
@@ -86,7 +87,7 @@ const It = (e, n, o, t) => {
86
87
  mark: {
87
88
  padding: 0,
88
89
  // FIXME hardcode in v4
89
- backgroundColor: mt[2]
90
+ backgroundColor: Ot[2]
90
91
  },
91
92
  "u, ins": {
92
93
  textDecoration: "underline",
@@ -289,7 +290,7 @@ const It = (e, n, o, t) => {
289
290
  }, Ht = () => ({
290
291
  titleMarginTop: "1.2em",
291
292
  titleMarginBottom: "0.5em"
292
- }), We = gt("Typography", kt, Ht), zt = (e) => {
293
+ }), We = mt("Typography", kt, Ht), zt = (e) => {
293
294
  const {
294
295
  prefixCls: n,
295
296
  "aria-label": o,
@@ -344,7 +345,7 @@ const It = (e, n, o, t) => {
344
345
  C.current !== v || b.current || S || x || P || _ || (v === Re.ENTER ? (E(), m == null || m()) : v === Re.ESC && p());
345
346
  }, U = () => {
346
347
  E();
347
- }, [V, L, F] = We(n), M = Y(n, `${n}-edit-content`, {
348
+ }, [V, L, F] = We(n), M = Z(n, `${n}-edit-content`, {
348
349
  [`${n}-rtl`]: l === "rtl",
349
350
  [`${n}-${a}`]: !!a
350
351
  }, t, L, F);
@@ -364,7 +365,7 @@ const It = (e, n, o, t) => {
364
365
  "aria-label": o,
365
366
  rows: 1,
366
367
  autoSize: g
367
- }), h !== null ? yt(h, {
368
+ }), h !== null ? gt(h, {
368
369
  className: `${n}-edit-content-confirm`
369
370
  }) : null));
370
371
  };
@@ -440,7 +441,7 @@ function Vt() {
440
441
  return ae = s, ae;
441
442
  }
442
443
  var Wt = Vt();
443
- const Ut = /* @__PURE__ */ wt(Wt);
444
+ const Ut = /* @__PURE__ */ St(Wt);
444
445
  var Ft = function(e, n, o, t) {
445
446
  function s(l) {
446
447
  return l instanceof o ? l : new o(function(i) {
@@ -476,7 +477,7 @@ const qt = ({
476
477
  i.current && clearTimeout(i.current);
477
478
  }, d = {};
478
479
  e.format && (d.format = e.format), r.useEffect(() => g, []);
479
- const u = bt((p) => Ft(void 0, void 0, void 0, function* () {
480
+ const u = yt((p) => Ft(void 0, void 0, void 0, function* () {
480
481
  var m;
481
482
  p == null || p.preventDefault(), p == null || p.stopPropagation(), l(!0);
482
483
  try {
@@ -536,9 +537,9 @@ const ve = /* @__PURE__ */ r.forwardRef((e, n) => {
536
537
  direction: a,
537
538
  className: h,
538
539
  style: O
539
- } = vt("typography"), b = d ?? a, C = i ? Ae(n, i) : n, y = m("typography", o);
540
- process.env.NODE_ENV !== "production" && Z("Typography").deprecated(!i, "setContentRef", "ref");
541
- const [I, k, w] = We(y), R = Y(y, h, {
540
+ } = bt("typography"), b = d ?? a, C = i ? Ae(n, i) : n, y = m("typography", o);
541
+ process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!i, "setContentRef", "ref");
542
+ const [I, k, w] = We(y), R = Z(y, h, {
542
543
  [`${y}-rtl`]: b === "rtl"
543
544
  }, s, l, k, w), j = Object.assign(Object.assign({}, O), u);
544
545
  return I(
@@ -591,14 +592,14 @@ const Ee = (e) => ["string", "number"].includes(typeof e), Zt = ({
591
592
  title: O
592
593
  }, /* @__PURE__ */ r.createElement("button", {
593
594
  type: "button",
594
- className: Y(`${e}-copy`, {
595
+ className: Z(`${e}-copy`, {
595
596
  [`${e}-copy-success`]: n,
596
597
  [`${e}-copy-icon-only`]: t
597
598
  }),
598
599
  onClick: g,
599
600
  "aria-label": b,
600
601
  tabIndex: i
601
- }, n ? de(p[1], /* @__PURE__ */ r.createElement(Et, null), !0) : de(p[0], d ? /* @__PURE__ */ r.createElement(ht, null) : /* @__PURE__ */ r.createElement(Ue, null), !0)));
602
+ }, n ? de(p[1], /* @__PURE__ */ r.createElement(wt, null), !0) : de(p[0], d ? /* @__PURE__ */ r.createElement(vt, null) : /* @__PURE__ */ r.createElement(Ue, null), !0)));
602
603
  }, G = /* @__PURE__ */ r.forwardRef(({
603
604
  style: e,
604
605
  children: n
@@ -776,7 +777,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
776
777
  } = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
777
778
  getPrefixCls: b,
778
779
  direction: C
779
- } = r.useContext(xt), [y] = Ot("Text"), I = r.useRef(null), k = r.useRef(null), w = b("typography", t), R = ze(O, Le), [j, E] = ce(p), [H, U] = Te(!1, {
780
+ } = r.useContext(Et), [y] = ht("Text"), I = r.useRef(null), k = r.useRef(null), w = b("typography", t), R = ze(O, Le), [j, E] = ce(p), [H, U] = Te(!1, {
780
781
  value: E.editing
781
782
  }), {
782
783
  triggerType: V = ["icon"]
@@ -918,7 +919,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
918
919
  "aria-hidden": !0,
919
920
  key: "ellipsis"
920
921
  }, rn), T.suffix, lt(c)];
921
- return /* @__PURE__ */ r.createElement(St, {
922
+ return /* @__PURE__ */ r.createElement(xt, {
922
923
  onResize: nt,
923
924
  disabled: !N
924
925
  }, (c) => /* @__PURE__ */ r.createElement(Fe, {
@@ -926,7 +927,7 @@ const rn = "...", Le = ["delete", "mark", "code", "underline", "strong", "keyboa
926
927
  enableEllipsis: N,
927
928
  isEllipsis: Ce
928
929
  }, /* @__PURE__ */ r.createElement(ve, Object.assign({
929
- className: Y({
930
+ className: Z({
930
931
  [`${w}-${i}`]: i,
931
932
  [`${w}-disabled`]: g,
932
933
  [`${w}-ellipsis`]: B,
@@ -972,7 +973,7 @@ const ln = /* @__PURE__ */ r.forwardRef((e, n) => {
972
973
  navigate: l
973
974
  } = e, i = sn(e, ["ellipsis", "rel", "children", "navigate"]);
974
975
  if (process.env.NODE_ENV !== "production") {
975
- const d = Z("Typography.Link");
976
+ const d = Y("Typography.Link");
976
977
  process.env.NODE_ENV !== "production" && d(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
977
978
  }
978
979
  const g = Object.assign(Object.assign({}, i), {
@@ -1014,7 +1015,7 @@ const un = (e, n) => {
1014
1015
  children: t
1015
1016
  } = e, s = dn(e, ["ellipsis", "children"]), l = r.useMemo(() => o && typeof o == "object" ? ze(o, ["expandable", "rows"]) : o, [o]);
1016
1017
  if (process.env.NODE_ENV !== "production") {
1017
- const i = Z("Typography.Text");
1018
+ const i = Y("Typography.Text");
1018
1019
  process.env.NODE_ENV !== "production" && i(typeof o != "object" || !o || !("expandable" in o) && !("rows" in o), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
1019
1020
  }
1020
1021
  return /* @__PURE__ */ r.createElement(ee, Object.assign({
@@ -1037,7 +1038,7 @@ const Me = [1, 2, 3, 4, 5], mn = /* @__PURE__ */ r.forwardRef((e, n) => {
1037
1038
  children: t
1038
1039
  } = e, s = fn(e, ["level", "children"]);
1039
1040
  if (process.env.NODE_ENV !== "production") {
1040
- const i = Z("Typography.Title");
1041
+ const i = Y("Typography.Title");
1041
1042
  process.env.NODE_ENV !== "production" && i(Me.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
1042
1043
  }
1043
1044
  const l = Me.includes(o) ? `h${o}` : "h1";
@@ -1,27 +1,27 @@
1
1
  import { jsx as a, jsxs as s, Fragment as p } from "react/jsx-runtime";
2
2
  import { useState as t, useEffect as P } from "react";
3
- import { createPortal as G } from "react-dom";
4
- import { I as i, G as K, l as B, t as h, k as O, J as j, m as V } from "./embed-Bs3Hmsyy.js";
3
+ import { createPortal as K } from "react-dom";
4
+ import { I as i, z as B, h as G, t as h, g as O, B as j, m as V } from "./embed-CR8XVkMy.js";
5
5
  import { u as L } from "./use-escape-key-4SZ4l7av.js";
6
- import { r as I } from "./member-B5WF3FCj.js";
7
- import { l as k } from "./kbTeam-BECePvJe.js";
8
- import { f as N } from "./format-CWI99NCN.js";
9
- const J = {
6
+ import { r as I } from "./member-DKDx77PD.js";
7
+ import { l as k } from "./kbTeam-Bh_FQH28.js";
8
+ import { f as N } from "./format-UGmYKemG.js";
9
+ const F = {
10
10
  PENDING: { label: "待审批", tone: "amber" },
11
11
  APPROVED: { label: "已通过", tone: "green" },
12
12
  REJECTED: { label: "已驳回", tone: "red" },
13
13
  CANCELED: { label: "已取消", tone: "gray" }
14
- }, F = {
14
+ }, J = {
15
15
  WAITING: { label: "待流转", tone: "gray", icon: "clock" },
16
16
  PENDING: { label: "待审批", tone: "amber", icon: "clock" },
17
17
  APPROVED: { label: "已通过", tone: "green", icon: "check-circle" },
18
18
  REJECTED: { label: "已驳回", tone: "red", icon: "x-circle" }
19
19
  };
20
20
  function q(n) {
21
- return J[n || ""] || { label: n || "未知", tone: "gray" };
21
+ return F[n || ""] || { label: n || "未知", tone: "gray" };
22
22
  }
23
23
  function U(n) {
24
- return F[n || ""] || { label: n || "未知", tone: "gray", icon: "circle" };
24
+ return J[n || ""] || { label: n || "未知", tone: "gray", icon: "circle" };
25
25
  }
26
26
  function W(n, u) {
27
27
  return u[n] || V(n);
@@ -40,7 +40,7 @@ function se({
40
40
  return (async () => {
41
41
  g(!0), z(!1), o("");
42
42
  try {
43
- const E = await K(n);
43
+ const E = await B(n);
44
44
  l && v(E);
45
45
  } catch {
46
46
  l && z(!0);
@@ -68,7 +68,7 @@ function se({
68
68
  if (e) {
69
69
  m("approve");
70
70
  try {
71
- const l = await B(e.id, f.trim() || void 0);
71
+ const l = await G(e.id, f.trim() || void 0);
72
72
  v(l), o(""), h(
73
73
  "审批已通过",
74
74
  l.status !== "APPROVED" ? "已流转到下一节点" : l.bizType === "KB_TEAM_MOVE" ? "知识库已迁移到目标团队" : "申请权限已放行",
@@ -97,7 +97,7 @@ function se({
97
97
  }
98
98
  }
99
99
  };
100
- return G(
100
+ return K(
101
101
  /* @__PURE__ */ a("div", { className: "overlay drawer-overlay", onMouseDown: b, children: /* @__PURE__ */ s(
102
102
  "div",
103
103
  {
@@ -0,0 +1,256 @@
1
+ import * as l from "react";
2
+ import { F as J, c as E } from "./SearchOutlined-puH6bCY6.js";
3
+ import { g as K, m as Y, u as F, r as Z, c as V, F as W, a2 as ee, d as oe, aC as re, ah as ne } from "./index-CrMcNEAZ.js";
4
+ import { g as te, i as le, a as ae } from "./colors-sdAcAcU3.js";
5
+ import { u as se, p as H } from "./useClosable-BY7FgWKy.js";
6
+ const ce = (e) => {
7
+ const {
8
+ paddingXXS: n,
9
+ lineWidth: t,
10
+ tagPaddingHorizontal: o,
11
+ componentCls: r,
12
+ calc: a
13
+ } = e, c = a(o).sub(t).equal(), f = a(n).sub(t).equal();
14
+ return {
15
+ // Result
16
+ [r]: Object.assign(Object.assign({}, Z(e)), {
17
+ display: "inline-block",
18
+ height: "auto",
19
+ // https://github.com/ant-design/ant-design/pull/47504
20
+ marginInlineEnd: e.marginXS,
21
+ paddingInline: c,
22
+ fontSize: e.tagFontSize,
23
+ lineHeight: e.tagLineHeight,
24
+ whiteSpace: "nowrap",
25
+ background: e.defaultBg,
26
+ border: `${F(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
27
+ borderRadius: e.borderRadiusSM,
28
+ opacity: 1,
29
+ transition: `all ${e.motionDurationMid}`,
30
+ textAlign: "start",
31
+ position: "relative",
32
+ // RTL
33
+ [`&${r}-rtl`]: {
34
+ direction: "rtl"
35
+ },
36
+ "&, a, a:hover": {
37
+ color: e.defaultColor
38
+ },
39
+ [`${r}-close-icon`]: {
40
+ marginInlineStart: f,
41
+ fontSize: e.tagIconSize,
42
+ color: e.colorIcon,
43
+ cursor: "pointer",
44
+ transition: `all ${e.motionDurationMid}`,
45
+ "&:hover": {
46
+ color: e.colorTextHeading
47
+ }
48
+ },
49
+ [`&${r}-has-color`]: {
50
+ borderColor: "transparent",
51
+ [`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]: {
52
+ color: e.colorTextLightSolid
53
+ }
54
+ },
55
+ "&-checkable": {
56
+ backgroundColor: "transparent",
57
+ borderColor: "transparent",
58
+ cursor: "pointer",
59
+ [`&:not(${r}-checkable-checked):hover`]: {
60
+ color: e.colorPrimary,
61
+ backgroundColor: e.colorFillSecondary
62
+ },
63
+ "&:active, &-checked": {
64
+ color: e.colorTextLightSolid
65
+ },
66
+ "&-checked": {
67
+ backgroundColor: e.colorPrimary,
68
+ "&:hover": {
69
+ backgroundColor: e.colorPrimaryHover
70
+ }
71
+ },
72
+ "&:active": {
73
+ backgroundColor: e.colorPrimaryActive
74
+ }
75
+ },
76
+ "&-hidden": {
77
+ display: "none"
78
+ },
79
+ // To ensure that a space will be placed between character and `Icon`.
80
+ [`> ${e.iconCls} + span, > span + ${e.iconCls}`]: {
81
+ marginInlineStart: c
82
+ }
83
+ }),
84
+ [`${r}-borderless`]: {
85
+ borderColor: "transparent",
86
+ background: e.tagBorderlessBg
87
+ }
88
+ };
89
+ }, I = (e) => {
90
+ const {
91
+ lineWidth: n,
92
+ fontSizeIcon: t,
93
+ calc: o
94
+ } = e, r = e.fontSizeSM;
95
+ return Y(e, {
96
+ tagFontSize: r,
97
+ tagLineHeight: F(o(e.lineHeightSM).mul(r).equal()),
98
+ tagIconSize: o(t).sub(o(n).mul(2)).equal(),
99
+ // Tag icon is much smaller
100
+ tagPaddingHorizontal: 8,
101
+ // Fixed padding.
102
+ tagBorderlessBg: e.defaultBg
103
+ });
104
+ }, P = (e) => ({
105
+ defaultBg: new J(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),
106
+ defaultColor: e.colorText
107
+ }), M = K("Tag", (e) => {
108
+ const n = I(e);
109
+ return ce(n);
110
+ }, P);
111
+ var ie = function(e, n) {
112
+ var t = {};
113
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
114
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
115
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
116
+ return t;
117
+ };
118
+ const de = /* @__PURE__ */ l.forwardRef((e, n) => {
119
+ const {
120
+ prefixCls: t,
121
+ style: o,
122
+ className: r,
123
+ checked: a,
124
+ children: c,
125
+ icon: f,
126
+ onChange: i,
127
+ onClick: u
128
+ } = e, S = ie(e, ["prefixCls", "style", "className", "checked", "children", "icon", "onChange", "onClick"]), {
129
+ getPrefixCls: b,
130
+ tag: d
131
+ } = l.useContext(V), $ = (v) => {
132
+ i == null || i(!a), u == null || u(v);
133
+ }, m = b("tag", t), [g, x, h] = M(m), O = E(m, `${m}-checkable`, {
134
+ [`${m}-checkable-checked`]: a
135
+ }, d == null ? void 0 : d.className, r, x, h);
136
+ return g(/* @__PURE__ */ l.createElement("span", Object.assign({}, S, {
137
+ ref: n,
138
+ style: Object.assign(Object.assign({}, o), d == null ? void 0 : d.style),
139
+ className: O,
140
+ onClick: $
141
+ }), f, /* @__PURE__ */ l.createElement("span", null, c)));
142
+ }), ge = (e) => te(e, (n, {
143
+ textColor: t,
144
+ lightBorderColor: o,
145
+ lightColor: r,
146
+ darkColor: a
147
+ }) => ({
148
+ [`${e.componentCls}${e.componentCls}-${n}`]: {
149
+ color: t,
150
+ background: r,
151
+ borderColor: o,
152
+ // Inverse color
153
+ "&-inverse": {
154
+ color: e.colorTextLightSolid,
155
+ background: a,
156
+ borderColor: a
157
+ },
158
+ [`&${e.componentCls}-borderless`]: {
159
+ borderColor: "transparent"
160
+ }
161
+ }
162
+ })), ue = W(["Tag", "preset"], (e) => {
163
+ const n = I(e);
164
+ return ge(n);
165
+ }, P);
166
+ function pe(e) {
167
+ return typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1);
168
+ }
169
+ const y = (e, n, t) => {
170
+ const o = pe(t);
171
+ return {
172
+ [`${e.componentCls}${e.componentCls}-${n}`]: {
173
+ color: e[`color${t}`],
174
+ background: e[`color${o}Bg`],
175
+ borderColor: e[`color${o}Border`],
176
+ [`&${e.componentCls}-borderless`]: {
177
+ borderColor: "transparent"
178
+ }
179
+ }
180
+ };
181
+ }, Ce = W(["Tag", "status"], (e) => {
182
+ const n = I(e);
183
+ return [y(n, "success", "Success"), y(n, "processing", "Info"), y(n, "error", "Error"), y(n, "warning", "Warning")];
184
+ }, P);
185
+ var me = function(e, n) {
186
+ var t = {};
187
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
188
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
189
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
190
+ return t;
191
+ };
192
+ const fe = /* @__PURE__ */ l.forwardRef((e, n) => {
193
+ const {
194
+ prefixCls: t,
195
+ className: o,
196
+ rootClassName: r,
197
+ style: a,
198
+ children: c,
199
+ icon: f,
200
+ color: i,
201
+ onClose: u,
202
+ bordered: S = !0,
203
+ visible: b
204
+ } = e, d = me(e, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "bordered", "visible"]), {
205
+ getPrefixCls: $,
206
+ direction: m,
207
+ tag: g
208
+ } = l.useContext(V), [x, h] = l.useState(!0), O = ee(d, ["closeIcon", "closable"]);
209
+ process.env.NODE_ENV !== "production" && oe("Tag").deprecated(!("visible" in e), "visible", "visible && <Tag />"), l.useEffect(() => {
210
+ b !== void 0 && h(b);
211
+ }, [b]);
212
+ const v = le(i), j = ae(i), T = v || j, L = Object.assign(Object.assign({
213
+ backgroundColor: i && !T ? i : void 0
214
+ }, g == null ? void 0 : g.style), a), s = $("tag", t), [q, D, k] = M(s), A = E(s, g == null ? void 0 : g.className, {
215
+ [`${s}-${i}`]: T,
216
+ [`${s}-has-color`]: i && !T,
217
+ [`${s}-hidden`]: !x,
218
+ [`${s}-rtl`]: m === "rtl",
219
+ [`${s}-borderless`]: !S
220
+ }, o, r, D, k), w = (p) => {
221
+ p.stopPropagation(), u == null || u(p), !p.defaultPrevented && h(!1);
222
+ }, [, X] = se(H(e), H(g), {
223
+ closable: !1,
224
+ closeIconRender: (p) => {
225
+ const G = /* @__PURE__ */ l.createElement("span", {
226
+ className: `${s}-close-icon`,
227
+ onClick: w
228
+ }, p);
229
+ return ne(p, G, (C) => ({
230
+ onClick: (_) => {
231
+ var N;
232
+ (N = C == null ? void 0 : C.onClick) === null || N === void 0 || N.call(C, _), w(_);
233
+ },
234
+ className: E(C == null ? void 0 : C.className, `${s}-close-icon`)
235
+ }));
236
+ }
237
+ }), U = typeof d.onClick == "function" || c && c.type === "a", z = f || null, Q = z ? /* @__PURE__ */ l.createElement(l.Fragment, null, z, c && /* @__PURE__ */ l.createElement("span", null, c)) : c, B = /* @__PURE__ */ l.createElement("span", Object.assign({}, O, {
238
+ ref: n,
239
+ className: A,
240
+ style: L
241
+ }), Q, X, v && /* @__PURE__ */ l.createElement(ue, {
242
+ key: "preset",
243
+ prefixCls: s
244
+ }), j && /* @__PURE__ */ l.createElement(Ce, {
245
+ key: "status",
246
+ prefixCls: s
247
+ }));
248
+ return q(U ? /* @__PURE__ */ l.createElement(re, {
249
+ component: "Tag"
250
+ }, B) : B);
251
+ }), R = fe;
252
+ process.env.NODE_ENV !== "production" && (R.displayName = "Tag");
253
+ R.CheckableTag = de;
254
+ export {
255
+ R as T
256
+ };
@@ -1,24 +1,24 @@
1
1
  import { jsx as s, jsxs as a, Fragment as A } from "react/jsx-runtime";
2
- import { useState as c, useEffect as R } from "react";
3
- import { j as $, I as E, y as k, t, z } from "./embed-Bs3Hmsyy.js";
2
+ import { useState as c, useEffect as $ } from "react";
3
+ import { e as j, I as E, s as k, t, v as q } from "./embed-CR8XVkMy.js";
4
4
  function Y({
5
5
  target: l,
6
6
  onClose: r,
7
7
  onDone: I
8
8
  }) {
9
- var y, b, S, g;
9
+ var b, y, S, g;
10
10
  const [i, d] = c([]), [o, m] = c(""), [p, M] = c(""), [h, u] = c(!0), [f, N] = c(!1);
11
- R(() => {
11
+ $(() => {
12
12
  let e = !0;
13
13
  return (async () => {
14
14
  var C;
15
15
  u(!0);
16
16
  try {
17
- const j = await k();
17
+ const x = await k();
18
18
  if (!e)
19
19
  return;
20
- const w = (j || []).filter(
21
- (x) => (x.bizType || "SYSTEM_PERMISSION") === "SYSTEM_PERMISSION"
20
+ const w = (x || []).filter(
21
+ (R) => (R.bizType || "SYSTEM_PERMISSION") === "SYSTEM_PERMISSION"
22
22
  );
23
23
  d(w), m(((C = w[0]) == null ? void 0 : C.code) || "");
24
24
  } catch {
@@ -30,14 +30,14 @@ function Y({
30
30
  e = !1;
31
31
  };
32
32
  }, []);
33
- const v = (y = l.resourceCodes) != null && y.length ? l.resourceCodes : [l.code], n = !!((b = l.includedScopes) != null && b.length), T = async () => {
33
+ const v = (b = l.resourceCodes) != null && b.length ? l.resourceCodes : [l.code], n = !!((y = l.includedScopes) != null && y.length), T = async () => {
34
34
  if (!o) {
35
35
  t("无法发起审批", "请先选择审批模板", "warn");
36
36
  return;
37
37
  }
38
38
  N(!0);
39
39
  try {
40
- const e = await z({
40
+ const e = await q({
41
41
  templateCode: o,
42
42
  reason: p.trim() || void 0,
43
43
  title: n ? `申请「${l.name}」角色` : void 0,
@@ -55,7 +55,7 @@ function Y({
55
55
  }
56
56
  };
57
57
  return /* @__PURE__ */ s(
58
- $,
58
+ j,
59
59
  {
60
60
  icon: "check-square",
61
61
  title: `申请「${l.name}」${n ? "角色" : "权限"}`,