@yuku123/z-cognition-component 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist-lib/BaseInput-DHrGPDB9.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
  3. package/dist-lib/Collapse-B77SsmFh.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-CA30m5eX.js +64 -0
  30. package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
  41. package/dist-lib/callSuper-CpMOVGin.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-9gqNseEa.js +76 -0
  44. package/dist-lib/causal-CzAYukj9.js +789 -0
  45. package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
  46. package/dist-lib/changelog-sKJMQrlV.js +103 -0
  47. package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-D_ZE966E.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
  51. package/dist-lib/community-9_7ExHcm.js +70 -0
  52. package/dist-lib/community-CfWXxujB.js +217 -0
  53. package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
  54. package/dist-lib/connections-Bcqsp11M.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/detail-CV6xp_Jp.js +84 -0
  59. package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
  61. package/dist-lib/development-CFcOIUKc.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
  66. package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
  67. package/dist-lib/embed-mf8t3QXh.js +51841 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
  70. package/dist-lib/execution-B6HmOA2_.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DHV-rdiK.js +640 -0
  75. package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
  76. package/dist-lib/index-2SysmGHo.js +1166 -0
  77. package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
  78. package/dist-lib/index-4tbtbcAt.js +550 -0
  79. package/dist-lib/index-B12ZggsE.js +77 -0
  80. package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
  81. package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
  82. package/dist-lib/index-BEO8itgt.js +566 -0
  83. package/dist-lib/index-BPbOPT2j.js +413 -0
  84. package/dist-lib/index-BVgdmf6r.js +2487 -0
  85. package/dist-lib/index-Bd7AGv4a.js +34 -0
  86. package/dist-lib/index-BkJjYgKD.js +5012 -0
  87. package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
  88. package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
  89. package/dist-lib/index-BoCtPJD4.js +915 -0
  90. package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
  91. package/dist-lib/index-Bs4MevzC.js +16075 -0
  92. package/dist-lib/index-BsoHetYT.js +236 -0
  93. package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
  94. package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
  95. package/dist-lib/index-C2CV4bte.js +242 -0
  96. package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
  97. package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
  98. package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
  99. package/dist-lib/index-CSnvcFg-.js +543 -0
  100. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  101. package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
  102. package/dist-lib/index-CgwK2maq.js +1987 -0
  103. package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
  104. package/dist-lib/index-CvxfA0ZK.js +215 -0
  105. package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
  106. package/dist-lib/index-D35Ry0PG.js +1162 -0
  107. package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
  108. package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
  109. package/dist-lib/index-DKAGVWMX.js +390 -0
  110. package/dist-lib/index-DQ16Zb7x.js +546 -0
  111. package/dist-lib/index-DRcTwC17.js +418 -0
  112. package/dist-lib/index-DU6bO95v.js +2075 -0
  113. package/dist-lib/index-DaMLYomP.js +853 -0
  114. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  115. package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
  116. package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
  117. package/dist-lib/index-DxzorPvG.js +13960 -0
  118. package/dist-lib/index-If4xc1-H.js +559 -0
  119. package/dist-lib/index-QZ9JPfVR.js +251 -0
  120. package/dist-lib/index-VeAMz0iC.js +1719 -0
  121. package/dist-lib/index-mUlorJxp.js +3279 -0
  122. package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
  123. package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-COcz5F2R.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
  133. package/dist-lib/material-DtPASeqq.js +204 -0
  134. package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
  135. package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
  140. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  141. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  142. package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
  143. package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
  145. package/dist-lib/meta-DT_O4zM9.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
  147. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  148. package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
  149. package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
  152. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
  157. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  158. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  159. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  160. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  161. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  162. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  163. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  164. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  165. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  166. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  167. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  168. package/dist-lib/pages-CticGC6S.js +512 -0
  169. package/dist-lib/pages.js +3 -3
  170. package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
  171. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  172. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  173. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  174. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  175. package/dist-lib/progress-CZxOOnIs.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
  177. package/dist-lib/row-By17TCiW.js +154 -0
  178. package/dist-lib/runs-DQTDpPaN.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  181. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
  183. package/dist-lib/script-gYJAFobb.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
  189. package/dist-lib/sources-C83LpCcV.js +279 -0
  190. package/dist-lib/style-B5THvtDY.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
  193. package/dist-lib/templates-a-kbCamr.js +58 -0
  194. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
  196. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
  197. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  198. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
  199. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  200. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  201. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  202. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
  203. package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
  204. package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
  205. package/package.json +1 -1
  206. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  207. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  208. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  209. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  210. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  211. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  212. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  213. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  214. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  215. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  216. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  217. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  218. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  219. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  220. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  221. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  222. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  223. package/dist-lib/context-Buz0ggsK.js +0 -710
  224. package/dist-lib/context-DpmyNOn3.js +0 -21
  225. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  226. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  227. package/dist-lib/index-CaXylbQR.js +0 -3419
  228. package/dist-lib/index-Cfu1W1H6.js +0 -535
  229. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  230. package/dist-lib/index-CyKWCYMK.js +0 -218
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,90 @@
1
+ import { jsx as e, jsxs as E } from "react/jsx-runtime";
2
+ import { F as r } from "./index-mUlorJxp.js";
3
+ import { S as m, B as c } from "./index-DxzorPvG.js";
4
+ import { S as p } from "./Table-Civ838nE.js";
5
+ import { I as d } from "./index-BVgdmf6r.js";
6
+ import { R as u } from "./PlusOutlined-BSTPGLOH.js";
7
+ const L = ["DRAFT", "ACTIVE", "DEPRECATED"], g = ["ENTITY", "PROCESS", "ROLE", "EVENT", "VALUE"], R = ["EXTERNAL_URL", "META_COLUMN", "CODE_SYMBOL", "API"], _ = { DRAFT: "gold", ACTIVE: "green", DEPRECATED: "default" }, w = /^[a-z][a-z0-9_.-]{1,127}$/;
8
+ function D({ name: o = "evidences" }) {
9
+ return /* @__PURE__ */ e(
10
+ r.List,
11
+ {
12
+ name: o,
13
+ rules: [
14
+ {
15
+ validator: async (s, t) => {
16
+ if (!t || t.length === 0) throw new Error("至少一条证据");
17
+ }
18
+ }
19
+ ],
20
+ children: (s, { add: t, remove: n }, { errors: h }) => /* @__PURE__ */ E(m, { direction: "vertical", style: { width: "100%" }, size: 4, children: [
21
+ s.map(({ key: T, name: a, ...i }) => /* @__PURE__ */ E(m, { align: "baseline", wrap: !0, children: [
22
+ /* @__PURE__ */ e(
23
+ r.Item,
24
+ {
25
+ ...i,
26
+ name: [a, "evidenceType"],
27
+ rules: [{ required: !0, message: "类型" }],
28
+ style: { marginBottom: 8 },
29
+ children: /* @__PURE__ */ e(
30
+ p,
31
+ {
32
+ style: { width: 150 },
33
+ placeholder: "证据类型",
34
+ options: R.map((l) => ({ value: l, label: l }))
35
+ }
36
+ )
37
+ }
38
+ ),
39
+ /* @__PURE__ */ e(
40
+ r.Item,
41
+ {
42
+ ...i,
43
+ name: [a, "refId"],
44
+ rules: [{ required: !0, message: "refId" }],
45
+ style: { marginBottom: 8 },
46
+ children: /* @__PURE__ */ e(d, { style: { width: 320 }, placeholder: "refId(URL / 表.列 / 类#方法)" })
47
+ }
48
+ ),
49
+ /* @__PURE__ */ e(
50
+ r.Item,
51
+ {
52
+ ...i,
53
+ name: [a, "snapshotHash"],
54
+ rules: [{ required: !0, message: "snapshotHash" }],
55
+ style: { marginBottom: 8 },
56
+ children: /* @__PURE__ */ e(d, { style: { width: 220 }, placeholder: "snapshotHash(sha256 前 16 位即可)" })
57
+ }
58
+ ),
59
+ /* @__PURE__ */ e(c, { type: "text", danger: !0, onClick: () => n(a), children: "删除" })
60
+ ] }, T)),
61
+ /* @__PURE__ */ e(
62
+ c,
63
+ {
64
+ type: "dashed",
65
+ icon: /* @__PURE__ */ e(u, {}),
66
+ onClick: () => t({ evidenceType: "EXTERNAL_URL" }),
67
+ style: { width: 220 },
68
+ children: "加一条证据"
69
+ }
70
+ ),
71
+ /* @__PURE__ */ e(r.ErrorList, { errors: h })
72
+ ] })
73
+ }
74
+ );
75
+ }
76
+ function N(o) {
77
+ return (o || []).map(({ evidenceType: s, refId: t, snapshotHash: n }) => ({
78
+ evidenceType: s,
79
+ refId: t,
80
+ snapshotHash: n
81
+ }));
82
+ }
83
+ export {
84
+ g as C,
85
+ D as E,
86
+ w as K,
87
+ _ as S,
88
+ L as T,
89
+ N as t
90
+ };
@@ -1,4 +1,4 @@
1
- import { I as r, _ as n } from "./SearchOutlined-puH6bCY6.js";
1
+ import { a$ as r, b0 as n } from "./embed-mf8t3QXh.js";
2
2
  import * as e from "react";
3
3
  var c = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, o = function(t, a) {
4
4
  return /* @__PURE__ */ e.createElement(r, n({}, t, {
@@ -0,0 +1,68 @@
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { useState as s, useEffect as b } from "react";
3
+ import { c as j } from "./api-CxSIf5HG.js";
4
+ import { a as w } from "./chunk-6KYCQHYJ-DcgZQlO5.js";
5
+ import { T as m } from "./index-D35Ry0PG.js";
6
+ import { S as K, B as S, aZ as I } from "./index-DxzorPvG.js";
7
+ import { S as x, F as C } from "./Table-Civ838nE.js";
8
+ import { I as E, s as u } from "./index-BVgdmf6r.js";
9
+ import { R as v } from "./pages-CticGC6S.js";
10
+ import { A as P } from "./index-DRcTwC17.js";
11
+ const M = [
12
+ { value: "term", label: "TERM(术语)" },
13
+ { value: "concept", label: "CONCEPT(概念)" }
14
+ ], y = (r) => (r || "").toLowerCase() === "concept" ? "concept" : "term";
15
+ function O() {
16
+ const [r] = w(), [n, d] = s(y(r.get("subjectType"))), [c, f] = s(r.get("subjectKey") || ""), [a, g] = s(null), [h, i] = s(!1), o = async (t = n, l = c) => {
17
+ if (!l.trim()) {
18
+ u.warning("先输入 subjectKey");
19
+ return;
20
+ }
21
+ i(!0);
22
+ try {
23
+ g(await j.impact(t, l.trim()));
24
+ } catch (T) {
25
+ u.error(T.message);
26
+ } finally {
27
+ i(!1);
28
+ }
29
+ };
30
+ return b(() => {
31
+ r.get("subjectKey") && o(y(r.get("subjectType")), r.get("subjectKey"));
32
+ }, []), /* @__PURE__ */ p("div", { children: [
33
+ /* @__PURE__ */ e(m.Paragraph, { type: "secondary", children: "影响面:改一个 key 前先看谁引用了它。M0 基于本域关系(术语↔概念、父子概念), M1 再接 z-graph / z-meta 的跨域引用。" }),
34
+ /* @__PURE__ */ p(K, { wrap: !0, style: { marginBottom: 16 }, children: [
35
+ /* @__PURE__ */ e(x, { style: { width: 200 }, value: n, onChange: d, options: M }),
36
+ /* @__PURE__ */ e(
37
+ E,
38
+ {
39
+ style: { width: 260 },
40
+ placeholder: "termKey / conceptKey",
41
+ value: c,
42
+ onChange: (t) => f(t.target.value),
43
+ onPressEnter: () => o()
44
+ }
45
+ ),
46
+ /* @__PURE__ */ e(S, { type: "primary", icon: /* @__PURE__ */ e(v, {}), loading: h, onClick: () => o(), children: "分析" })
47
+ ] }),
48
+ a && a.references.length === 0 ? /* @__PURE__ */ e(P, { type: "success", showIcon: !0, message: "没有引用方(本域内)", description: "可以安全变更;跨域引用 M1 接入后再扩。" }) : null,
49
+ a && a.references.length > 0 ? /* @__PURE__ */ e(
50
+ C,
51
+ {
52
+ rowKey: (t) => `${t.refType}-${t.refKey}`,
53
+ size: "middle",
54
+ pagination: !1,
55
+ dataSource: a.references,
56
+ columns: [
57
+ { title: "引用类型", dataIndex: "refType", width: 140, render: (t) => /* @__PURE__ */ e(m.Text, { code: !0, children: t }) },
58
+ { title: "引用方", dataIndex: "refKey", width: 240 },
59
+ { title: "说明", dataIndex: "detail" }
60
+ ]
61
+ }
62
+ ) : null,
63
+ a ? null : /* @__PURE__ */ e(I, { description: "输入一个 key,列出它的引用面" })
64
+ ] });
65
+ }
66
+ export {
67
+ O as default
68
+ };
@@ -1,4 +1,4 @@
1
- import { I as n, _ as r } from "./SearchOutlined-puH6bCY6.js";
1
+ import { a$ as n, b0 as r } from "./embed-mf8t3QXh.js";
2
2
  import * as e from "react";
3
3
  var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, c = function(t, a) {
4
4
  return /* @__PURE__ */ e.createElement(n, r({}, t, {
@@ -1,155 +1,161 @@
1
- import { jsx as t, jsxs as i, Fragment as U } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as i, Fragment as V } from "react/jsx-runtime";
2
2
  import * as T from "react";
3
- import { useState as c, useRef as V, useEffect as W, useMemo as _ } from "react";
4
- import { f as $, o as p } from "./api-BVrIcAFp.js";
5
- import "./preset-gh5SGoYT.js";
6
- import { b as G, u as H } from "./chunk-YDNE64FV-DGyyfCo0.js";
7
- import { a4 as J, B as z, S as Q } from "./index-CrMcNEAZ.js";
8
- import { T as d } from "./index-Bc-Vin3j.js";
9
- import { R as X } from "./ApartmentOutlined-M6qSurnE.js";
10
- import { I as O } from "./index-DvWHYX81.js";
11
- import { R as Y } from "./ReloadOutlined-CS-e-TmN.js";
12
- import { I as Z, _ as ee } from "./SearchOutlined-puH6bCY6.js";
13
- import { T as te } from "./index-Vu6sPBci.js";
14
- import { F as k } from "./Table-CDagah-g.js";
15
- import { S as R } from "./index-CaXylbQR.js";
16
- import { s as ae } from "./index-DBtGE89a.js";
17
- var se = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z" } }] }, name: "node-index", theme: "outlined" }, le = function(l, y) {
18
- return /* @__PURE__ */ T.createElement(Z, ee({}, l, {
19
- ref: y,
20
- icon: se
21
- }));
22
- }, j = /* @__PURE__ */ T.forwardRef(le);
23
- process.env.NODE_ENV !== "production" && (j.displayName = "NodeIndexOutlined");
24
- function ke() {
25
- const [w] = G(), l = w.get("id") || "", y = H(), [x, I] = c("default"), [s, M] = c(null), [f, E] = c([]), [h, L] = c([]), [N, A] = c([]), [B, S] = c(!1), [g, D] = c(""), o = V(0), b = async (e = x) => {
26
- if (!l) return;
3
+ import { useState as c, useRef as W, useEffect as Z, useMemo as O } from "react";
4
+ import { f as $, o as y } from "./api-BVrIcAFp.js";
5
+ import "./preset-Bp_mvsJm.js";
6
+ import { a as G, u as H } from "./chunk-6KYCQHYJ-DcgZQlO5.js";
7
+ import { aZ as J, B as z, bt as Q, S as j } from "./index-DxzorPvG.js";
8
+ import { T as m } from "./index-4tbtbcAt.js";
9
+ import { I as X, b as Y } from "./pages-CticGC6S.js";
10
+ import { I as R, s as ee } from "./index-BVgdmf6r.js";
11
+ import { R as te } from "./ReloadOutlined-B26pDoyV.js";
12
+ import { T as ae } from "./index-Dd9pPAT3.js";
13
+ import { F as x } from "./Table-Civ838nE.js";
14
+ var se = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z" } }] }, name: "node-index", theme: "outlined" };
15
+ function I() {
16
+ return I = Object.assign ? Object.assign.bind() : function(d) {
17
+ for (var s = 1; s < arguments.length; s++) {
18
+ var p = arguments[s];
19
+ for (var u in p)
20
+ Object.prototype.hasOwnProperty.call(p, u) && (d[u] = p[u]);
21
+ }
22
+ return d;
23
+ }, I.apply(this, arguments);
24
+ }
25
+ const ne = (d, s) => /* @__PURE__ */ T.createElement(X, I({}, d, {
26
+ ref: s,
27
+ icon: se
28
+ })), M = /* @__PURE__ */ T.forwardRef(ne);
29
+ process.env.NODE_ENV !== "production" && (M.displayName = "NodeIndexOutlined");
30
+ function ge() {
31
+ const [d] = G(), s = d.get("id") || "", p = H(), [u, N] = c("default"), [n, E] = c(null), [g, L] = c([]), [b, A] = c([]), [S, B] = c([]), [D, C] = c(!1), [v, K] = c(""), o = W(0), k = async (e = u) => {
32
+ if (!s) return;
27
33
  const a = ++o.current;
28
- S(!0);
29
- const r = (n, u) => ae.error(`${n}取数失败:${u.message}`), v = [
30
- ["统计", () => p.stats(l, e).then((n) => M(n))],
31
- ["类列表", () => p.listClasses(l, e).then((n) => E(n || []))],
32
- ["实例列表", () => p.listIndividuals(l, e).then((n) => L(n || []))]
34
+ C(!0);
35
+ const r = (l, f) => ee.error(`${l}取数失败:${f.message}`), w = [
36
+ ["统计", () => y.stats(s, e).then((l) => E(l))],
37
+ ["类列表", () => y.listClasses(s, e).then((l) => L(l || []))],
38
+ ["实例列表", () => y.listIndividuals(s, e).then((l) => A(l || []))]
33
39
  ];
34
- for (const [n, u] of v) {
40
+ for (const [l, f] of w) {
35
41
  if (a !== o.current) return;
36
42
  try {
37
- await u();
38
- } catch (m) {
39
- a === o.current && r(n, m);
43
+ await f();
44
+ } catch (h) {
45
+ a === o.current && r(l, h);
40
46
  }
41
47
  }
42
48
  try {
43
- const u = ((f.length ? f : await p.listClasses(l, e)) || []).map((q) => q.key), m = await p.subgraph(l, u, 1, e);
44
- a === o.current && A((m == null ? void 0 : m.edges) || []);
45
- } catch (n) {
46
- a === o.current && r("关系", n);
49
+ const f = ((g.length ? g : await y.listClasses(s, e)) || []).map((U) => U.key), h = await y.subgraph(s, f, 1, e);
50
+ a === o.current && B((h == null ? void 0 : h.edges) || []);
51
+ } catch (l) {
52
+ a === o.current && r("关系", l);
47
53
  }
48
- a === o.current && S(!1);
54
+ a === o.current && C(!1);
49
55
  };
50
- W(() => (l && (I("default"), b("default")), () => {
56
+ Z(() => (s && (N("default"), k("default")), () => {
51
57
  o.current += 1;
52
- }), [l]);
53
- const K = _(() => s ? [
54
- { label: "类节点", value: s.class_nodes ?? s.classNodes ?? 0, sub: "classes" },
55
- { label: "实例节点", value: s.individual_nodes ?? s.individualNodes ?? 0, sub: "individuals" },
56
- { label: "总节点", value: s.node_count ?? s.nodeCount ?? 0, sub: "nodes" },
57
- { label: "关系边", value: s.edge_count ?? s.edgeCount ?? 0, sub: "edges" },
58
- { label: "显式陈述", value: s.explicit_statements ?? s.explicitStatements ?? 0, sub: "explicit" },
59
- { label: "推理陈述", value: s.inferred_statements ?? s.inferredStatements ?? 0, sub: "inferred" }
60
- ] : [], [s]), C = [
58
+ }), [s]);
59
+ const F = O(() => n ? [
60
+ { label: "类节点", value: n.class_nodes ?? n.classNodes ?? 0, sub: "classes" },
61
+ { label: "实例节点", value: n.individual_nodes ?? n.individualNodes ?? 0, sub: "individuals" },
62
+ { label: "总节点", value: n.node_count ?? n.nodeCount ?? 0, sub: "nodes" },
63
+ { label: "关系边", value: n.edge_count ?? n.edgeCount ?? 0, sub: "edges" },
64
+ { label: "显式陈述", value: n.explicit_statements ?? n.explicitStatements ?? 0, sub: "explicit" },
65
+ { label: "推理陈述", value: n.inferred_statements ?? n.inferredStatements ?? 0, sub: "inferred" }
66
+ ] : [], [n]), _ = [
61
67
  { title: "key", dataIndex: "key", key: "key", width: 240 },
62
68
  {
63
69
  title: "标签",
64
70
  dataIndex: "labels",
65
71
  key: "labels",
66
72
  width: 220,
67
- render: (e) => (e || []).map((a) => /* @__PURE__ */ t(d, { color: a === "OntologyClass" ? "purple" : a === "OntologyIndividual" ? "blue" : void 0, children: a }, a))
73
+ render: (e) => (e || []).map((a) => /* @__PURE__ */ t(m, { color: a === "OntologyClass" ? "purple" : a === "OntologyIndividual" ? "blue" : void 0, children: a }, a))
68
74
  },
69
75
  {
70
76
  title: "属性",
71
77
  dataIndex: "properties",
72
78
  key: "properties",
73
- render: (e) => /* @__PURE__ */ i(R, { size: 4, wrap: !0, children: [
74
- Object.entries(e || {}).slice(0, 8).map(([a, r]) => /* @__PURE__ */ i(d, { color: "default", children: [
79
+ render: (e) => /* @__PURE__ */ i(j, { size: 4, wrap: !0, children: [
80
+ Object.entries(e || {}).slice(0, 8).map(([a, r]) => /* @__PURE__ */ i(m, { color: "default", children: [
75
81
  a,
76
82
  "=",
77
83
  String(r)
78
84
  ] }, a)),
79
- Object.keys(e || {}).length > 8 ? /* @__PURE__ */ i(d, { children: [
85
+ Object.keys(e || {}).length > 8 ? /* @__PURE__ */ i(m, { children: [
80
86
  "+",
81
87
  Object.keys(e).length - 8
82
88
  ] }) : null
83
89
  ] })
84
90
  }
85
- ], F = [
91
+ ], P = [
86
92
  { title: "from", dataIndex: "from_key", key: "from_key", width: 220 },
87
- { title: "type", dataIndex: "type", key: "type", width: 160, render: (e) => /* @__PURE__ */ t(d, { color: "geekblue", children: e }) },
93
+ { title: "type", dataIndex: "type", key: "type", width: 160, render: (e) => /* @__PURE__ */ t(m, { color: "geekblue", children: e }) },
88
94
  { title: "to", dataIndex: "to_key", key: "to_key", width: 220 },
89
95
  {
90
96
  title: "属性",
91
97
  dataIndex: "properties",
92
98
  key: "properties",
93
- render: (e) => /* @__PURE__ */ t(R, { size: 4, wrap: !0, children: Object.entries(e || {}).slice(0, 4).map(([a, r]) => /* @__PURE__ */ i(d, { color: "default", children: [
99
+ render: (e) => /* @__PURE__ */ t(j, { size: 4, wrap: !0, children: Object.entries(e || {}).slice(0, 4).map(([a, r]) => /* @__PURE__ */ i(m, { color: "default", children: [
94
100
  a,
95
101
  "=",
96
102
  String(r)
97
103
  ] }, a)) })
98
104
  }
99
- ], P = _(() => {
100
- const e = g.trim().toLowerCase();
101
- return e ? (h || []).filter(
102
- (a) => a.key.toLowerCase().includes(e) || (a.labels || []).some((r) => r.toLowerCase().includes(e)) || Object.entries(a.properties || {}).some(([r, v]) => `${r}=${v}`.toLowerCase().includes(e))
103
- ) : h;
104
- }, [h, g]);
105
- return l ? /* @__PURE__ */ i("div", { className: "view", children: [
105
+ ], q = O(() => {
106
+ const e = v.trim().toLowerCase();
107
+ return e ? (b || []).filter(
108
+ (a) => a.key.toLowerCase().includes(e) || (a.labels || []).some((r) => r.toLowerCase().includes(e)) || Object.entries(a.properties || {}).some(([r, w]) => `${r}=${w}`.toLowerCase().includes(e))
109
+ ) : b;
110
+ }, [b, v]);
111
+ return s ? /* @__PURE__ */ i("div", { className: "view", children: [
106
112
  /* @__PURE__ */ i("div", { className: "view-bar", children: [
107
- /* @__PURE__ */ i(d, { icon: /* @__PURE__ */ t(X, {}), color: "purple", children: [
113
+ /* @__PURE__ */ i(m, { icon: /* @__PURE__ */ t(Y, {}), color: "purple", children: [
108
114
  "本体 ",
109
- l
115
+ s
110
116
  ] }),
111
117
  /* @__PURE__ */ t(
112
- O.Search,
118
+ R.Search,
113
119
  {
114
120
  style: { width: 200 },
115
121
  placeholder: "工作空间(默认 default)",
116
- value: x,
117
- onChange: (e) => I(e.target.value),
118
- onSearch: () => b()
122
+ value: u,
123
+ onChange: (e) => N(e.target.value),
124
+ onSearch: () => k()
119
125
  }
120
126
  ),
121
- /* @__PURE__ */ t(z, { icon: /* @__PURE__ */ t(Y, {}), onClick: () => b(), children: "刷新" }),
127
+ /* @__PURE__ */ t(z, { icon: /* @__PURE__ */ t(te, {}), onClick: () => k(), children: "刷新" }),
122
128
  /* @__PURE__ */ t(
123
129
  z,
124
130
  {
125
131
  type: "primary",
126
- icon: /* @__PURE__ */ t(j, {}),
127
- onClick: () => y(`/ontology/nodes?id=${encodeURIComponent(l)}`),
132
+ icon: /* @__PURE__ */ t(M, {}),
133
+ onClick: () => p(`/ontology/nodes?id=${encodeURIComponent(s)}`),
128
134
  children: "图谱"
129
135
  }
130
136
  ),
131
137
  /* @__PURE__ */ t("span", { className: "hint spacer" }),
132
- /* @__PURE__ */ t("span", { className: "hint", children: $(s, "lastMaterializedAt", "last_materialized_at") ? `物化于 ${new Date($(s, "lastMaterializedAt", "last_materialized_at")).toLocaleString()}` : "" })
138
+ /* @__PURE__ */ t("span", { className: "hint", children: $(n, "lastMaterializedAt", "last_materialized_at") ? `物化于 ${new Date($(n, "lastMaterializedAt", "last_materialized_at")).toLocaleString()}` : "" })
133
139
  ] }),
134
- s ? /* @__PURE__ */ t("div", { className: "stat-cards", children: K.map((e) => /* @__PURE__ */ i("div", { className: "stat-card", children: [
140
+ n ? /* @__PURE__ */ t("div", { className: "stat-cards", children: F.map((e) => /* @__PURE__ */ i("div", { className: "stat-card", children: [
135
141
  /* @__PURE__ */ t("span", { className: "label", children: e.label }),
136
142
  /* @__PURE__ */ t("span", { className: "value", children: e.value }),
137
143
  /* @__PURE__ */ t("span", { className: "sub", children: e.sub })
138
144
  ] }, e.label)) }) : null,
139
- /* @__PURE__ */ t(Q, { spinning: B, children: /* @__PURE__ */ t(
140
- te,
145
+ /* @__PURE__ */ t(Q, { spinning: D, children: /* @__PURE__ */ t(
146
+ ae,
141
147
  {
142
148
  items: [
143
149
  {
144
150
  key: "classes",
145
- label: `类定义(${f.length})`,
151
+ label: `类定义(${g.length})`,
146
152
  children: /* @__PURE__ */ t(
147
- k,
153
+ x,
148
154
  {
149
155
  rowKey: "key",
150
156
  size: "small",
151
- columns: C,
152
- dataSource: f,
157
+ columns: _,
158
+ dataSource: g,
153
159
  pagination: !1,
154
160
  locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无类定义(可先登记 schema 或物化)" }) }
155
161
  }
@@ -157,14 +163,14 @@ function ke() {
157
163
  },
158
164
  {
159
165
  key: "edges",
160
- label: `关系(${N.length})`,
166
+ label: `关系(${S.length})`,
161
167
  children: /* @__PURE__ */ t(
162
- k,
168
+ x,
163
169
  {
164
170
  rowKey: (e) => e.key || `${e.from_key}|${e.type}|${e.to_key}`,
165
171
  size: "small",
166
- columns: F,
167
- dataSource: N,
172
+ columns: P,
173
+ dataSource: S,
168
174
  pagination: !1,
169
175
  locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无关系边" }) }
170
176
  }
@@ -172,25 +178,25 @@ function ke() {
172
178
  },
173
179
  {
174
180
  key: "individuals",
175
- label: `实例(${h.length})`,
176
- children: /* @__PURE__ */ i(U, { children: [
181
+ label: `实例(${b.length})`,
182
+ children: /* @__PURE__ */ i(V, { children: [
177
183
  /* @__PURE__ */ t("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ t(
178
- O.Search,
184
+ R.Search,
179
185
  {
180
186
  allowClear: !0,
181
187
  style: { width: 320 },
182
188
  placeholder: "按 key / 标签 / 属性搜索实例",
183
- value: g,
184
- onChange: (e) => D(e.target.value)
189
+ value: v,
190
+ onChange: (e) => K(e.target.value)
185
191
  }
186
192
  ) }),
187
193
  /* @__PURE__ */ t(
188
- k,
194
+ x,
189
195
  {
190
196
  rowKey: "key",
191
197
  size: "small",
192
- columns: C,
193
- dataSource: P,
198
+ columns: _,
199
+ dataSource: q,
194
200
  pagination: { pageSize: 20, showSizeChanger: !0, showTotal: (e) => `共 ${e} 条` },
195
201
  locale: { emptyText: /* @__PURE__ */ t("span", { className: "empty-note", children: "暂无实例" }) }
196
202
  }
@@ -203,5 +209,5 @@ function ke() {
203
209
  ] }) : /* @__PURE__ */ t(J, { description: "缺少本体 ID(?id=xxx)", style: { padding: 48 } });
204
210
  }
205
211
  export {
206
- ke as default
212
+ ge as default
207
213
  };
@@ -1,30 +1,28 @@
1
- import { jsx as e, jsxs as r, Fragment as I } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as a, Fragment as I } from "react/jsx-runtime";
2
2
  import { useState as o } from "react";
3
- import { f as a, o as S } from "./api-BVrIcAFp.js";
4
- import { parseSnapshot as T } from "./OntologyValidatePage-abQVJwzV.js";
5
- import { b as j } from "./chunk-YDNE64FV-DGyyfCo0.js";
6
- import { A as v } from "./index-nQSVLWfW.js";
7
- import { S as z, B as C } from "./index-CrMcNEAZ.js";
8
- import { C as l } from "./index-Cfu1W1H6.js";
9
- import { S as d } from "./index-CaXylbQR.js";
10
- import { I as $ } from "./index-DvWHYX81.js";
11
- import { a as B } from "./ThunderboltOutlined-Bf54AaFE.js";
12
- import { F as y } from "./Table-CDagah-g.js";
13
- import { s as A } from "./index-DBtGE89a.js";
14
- import { T as s } from "./index-Bc-Vin3j.js";
3
+ import { f as r, o as S } from "./api-BVrIcAFp.js";
4
+ import { parseSnapshot as T } from "./OntologyValidatePage-DtkYK_l4.js";
5
+ import { a as j } from "./chunk-6KYCQHYJ-DcgZQlO5.js";
6
+ import { A as v } from "./index-DRcTwC17.js";
7
+ import { bt as z, S as d, B as C } from "./index-DxzorPvG.js";
8
+ import { C as l } from "./index-If4xc1-H.js";
9
+ import { I as $, s as B } from "./index-BVgdmf6r.js";
10
+ import { e as A } from "./pages-CticGC6S.js";
11
+ import { F as y } from "./Table-Civ838nE.js";
12
+ import { T as s } from "./index-4tbtbcAt.js";
15
13
  const { TextArea: F } = $;
16
- function Q() {
14
+ function J() {
17
15
  const [f] = j(), c = f.get("id") || "", [m, g] = o(
18
16
  `{
19
17
  "individuals": [],
20
18
  "statements": []
21
19
  }`
22
- ), [i, p] = o(null), [x, h] = o(!1), w = async () => {
20
+ ), [n, p] = o(null), [x, h] = o(!1), w = async () => {
23
21
  h(!0), p(null);
24
22
  try {
25
23
  p(await S.infer(c, T(m)));
26
24
  } catch (t) {
27
- A.error(t.message);
25
+ B.error(t.message);
28
26
  } finally {
29
27
  h(!1);
30
28
  }
@@ -39,9 +37,9 @@ function Q() {
39
37
  title: "性质",
40
38
  key: "nature",
41
39
  width: 140,
42
- render: (t, n) => /* @__PURE__ */ r(d, { size: 4, children: [
43
- n.inferred ? /* @__PURE__ */ e(s, { color: "blue", children: "推理" }) : /* @__PURE__ */ e(s, { children: "显式" }),
44
- n.literal ? /* @__PURE__ */ e(s, { color: "orange", children: "字面量" }) : null
40
+ render: (t, i) => /* @__PURE__ */ a(d, { size: 4, children: [
41
+ i.inferred ? /* @__PURE__ */ e(s, { color: "blue", children: "推理" }) : /* @__PURE__ */ e(s, { children: "显式" }),
42
+ i.literal ? /* @__PURE__ */ e(s, { color: "orange", children: "字面量" }) : null
45
43
  ] })
46
44
  }
47
45
  ], k = [
@@ -52,17 +50,17 @@ function Q() {
52
50
  dataIndex: "types",
53
51
  key: "types",
54
52
  width: 200,
55
- render: (t) => (t || []).map((n) => /* @__PURE__ */ e(s, { children: n }, n))
53
+ render: (t) => (t || []).map((i) => /* @__PURE__ */ e(s, { children: i }, i))
56
54
  },
57
55
  {
58
56
  title: "推理类型",
59
57
  dataIndex: "inferredTypes",
60
58
  key: "inferredTypes",
61
- render: (t, n) => (a(n, "inferredTypes") || []).map((u) => /* @__PURE__ */ e(s, { color: "blue", children: u }, u))
59
+ render: (t, i) => (r(i, "inferredTypes") || []).map((u) => /* @__PURE__ */ e(s, { color: "blue", children: u }, u))
62
60
  }
63
61
  ];
64
- return /* @__PURE__ */ r(z, { spinning: x, children: [
65
- /* @__PURE__ */ e(l, { size: "small", title: "推理输入(OntologySnapshot)", style: { marginBottom: 16 }, children: /* @__PURE__ */ r(d, { direction: "vertical", style: { width: "100%" }, children: [
62
+ return /* @__PURE__ */ a(z, { spinning: x, children: [
63
+ /* @__PURE__ */ e(l, { size: "small", title: "推理输入(OntologySnapshot)", style: { marginBottom: 16 }, children: /* @__PURE__ */ a(d, { direction: "vertical", style: { width: "100%" }, children: [
66
64
  /* @__PURE__ */ e(
67
65
  F,
68
66
  {
@@ -72,44 +70,44 @@ function Q() {
72
70
  placeholder: '{"individuals": [], "statements": []}'
73
71
  }
74
72
  ),
75
- /* @__PURE__ */ e(C, { type: "primary", icon: /* @__PURE__ */ e(B, {}), onClick: w, children: "开始推理" })
73
+ /* @__PURE__ */ e(C, { type: "primary", icon: /* @__PURE__ */ e(A, {}), onClick: w, children: "开始推理" })
76
74
  ] }) }),
77
- i ? /* @__PURE__ */ r(I, { children: [
78
- /* @__PURE__ */ e(l, { size: "small", title: "推理概览", style: { marginBottom: 16 }, children: /* @__PURE__ */ r(d, { size: "large", wrap: !0, children: [
79
- /* @__PURE__ */ r("span", { children: [
75
+ n ? /* @__PURE__ */ a(I, { children: [
76
+ /* @__PURE__ */ e(l, { size: "small", title: "推理概览", style: { marginBottom: 16 }, children: /* @__PURE__ */ a(d, { size: "large", wrap: !0, children: [
77
+ /* @__PURE__ */ a("span", { children: [
80
78
  "显式陈述 ",
81
- /* @__PURE__ */ e("b", { children: a(i, "explicitStatements") })
79
+ /* @__PURE__ */ e("b", { children: r(n, "explicitStatements") })
82
80
  ] }),
83
- /* @__PURE__ */ r("span", { children: [
81
+ /* @__PURE__ */ a("span", { children: [
84
82
  "推理陈述 ",
85
- /* @__PURE__ */ e("b", { children: a(i, "inferredStatements") })
83
+ /* @__PURE__ */ e("b", { children: r(n, "inferredStatements") })
86
84
  ] }),
87
- /* @__PURE__ */ r("span", { children: [
85
+ /* @__PURE__ */ a("span", { children: [
88
86
  "显式类型 ",
89
- /* @__PURE__ */ e("b", { children: a(i, "explicitTypes") })
87
+ /* @__PURE__ */ e("b", { children: r(n, "explicitTypes") })
90
88
  ] }),
91
- /* @__PURE__ */ r("span", { children: [
89
+ /* @__PURE__ */ a("span", { children: [
92
90
  "推理类型 ",
93
- /* @__PURE__ */ e("b", { children: a(i, "inferredTypes") })
91
+ /* @__PURE__ */ e("b", { children: r(n, "inferredTypes") })
94
92
  ] })
95
93
  ] }) }),
96
- /* @__PURE__ */ e(l, { size: "small", title: `个体(${(i.individuals || []).length})`, style: { marginBottom: 16 }, children: /* @__PURE__ */ e(
94
+ /* @__PURE__ */ e(l, { size: "small", title: `个体(${(n.individuals || []).length})`, style: { marginBottom: 16 }, children: /* @__PURE__ */ e(
97
95
  y,
98
96
  {
99
97
  rowKey: "key",
100
98
  size: "small",
101
99
  columns: k,
102
- dataSource: i.individuals || [],
100
+ dataSource: n.individuals || [],
103
101
  pagination: !1
104
102
  }
105
103
  ) }),
106
- /* @__PURE__ */ e(l, { size: "small", title: `陈述(${(i.statements || []).length})`, children: /* @__PURE__ */ e(
104
+ /* @__PURE__ */ e(l, { size: "small", title: `陈述(${(n.statements || []).length})`, children: /* @__PURE__ */ e(
107
105
  y,
108
106
  {
109
- rowKey: (t, n) => `${t.subject}-${t.predicate}-${t.object}-${n}`,
107
+ rowKey: (t, i) => `${t.subject}-${t.predicate}-${t.object}-${i}`,
110
108
  size: "small",
111
109
  columns: b,
112
- dataSource: i.statements || [],
110
+ dataSource: n.statements || [],
113
111
  pagination: !1
114
112
  }
115
113
  ) })
@@ -117,5 +115,5 @@ function Q() {
117
115
  ] });
118
116
  }
119
117
  export {
120
- Q as default
118
+ J as default
121
119
  };