react-kggraph 0.0.22 → 0.0.24

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 (50) hide show
  1. package/lib/index.es10.js +20 -19
  2. package/lib/index.es14.js +39 -41
  3. package/lib/index.es16.js +20 -20
  4. package/lib/index.es17.js +42 -0
  5. package/lib/index.es18.js +3 -15466
  6. package/lib/index.es19.js +2 -54
  7. package/lib/index.es21.js +15461 -63
  8. package/lib/index.es22.js +53 -39
  9. package/lib/index.es23.js +60 -2
  10. package/lib/index.es24.js +69 -2
  11. package/lib/index.es25.js +2 -2
  12. package/lib/index.es26.js +2 -2
  13. package/lib/index.es27.js +1 -1
  14. package/lib/index.es28.js +1 -1
  15. package/lib/index.es29.js +1 -1
  16. package/lib/index.es3.js +100 -97
  17. package/lib/index.es30.js +1 -1
  18. package/lib/index.es31.js +1 -1
  19. package/lib/index.es32.js +1 -1
  20. package/lib/index.es33.js +2 -2
  21. package/lib/index.es34.js +4 -0
  22. package/lib/index.es35.js +2 -4
  23. package/lib/index.es37.js +66 -0
  24. package/lib/index.es38.js +1049 -0
  25. package/lib/index.es4.js +13 -9
  26. package/lib/index.es42.js +21 -0
  27. package/lib/index.es43.js +43 -0
  28. package/lib/index.es44.js +42 -0
  29. package/lib/index.es45.js +91 -0
  30. package/lib/index.es46.js +58 -0
  31. package/lib/index.es47.js +33 -0
  32. package/lib/index.es49.js +72 -0
  33. package/lib/index.es7.js +305 -305
  34. package/lib/index.es8.js +11 -11
  35. package/lib/src/components/Graph/components/ActionBar/actionList.d.ts +4 -0
  36. package/lib/src/components/Graph/components/KnowledgeCard/components/AudioSection.d.ts +12 -0
  37. package/lib/src/components/Graph/components/KnowledgeCard/components/DocumentSection.d.ts +12 -0
  38. package/lib/src/components/Graph/components/KnowledgeCard/components/ImageSection.d.ts +12 -0
  39. package/lib/src/components/Graph/components/KnowledgeCard/components/ListCard.d.ts +14 -0
  40. package/lib/src/components/Graph/components/KnowledgeCard/components/PropertySection.d.ts +11 -0
  41. package/lib/src/components/Graph/components/KnowledgeCard/components/RelationSection.d.ts +13 -0
  42. package/lib/src/components/Graph/components/KnowledgeCard/components/SourceCard.d.ts +6 -0
  43. package/lib/src/components/Graph/components/KnowledgeCard/components/VideoSection.d.ts +12 -0
  44. package/lib/src/components/Graph/components/KnowledgeCard/data.d.ts +84 -0
  45. package/lib/src/components/Graph/types.d.ts +7 -1
  46. package/lib/src/components/Graph/utils/edge_node_styles.d.ts +1 -0
  47. package/lib/style.css +1 -1
  48. package/package.json +1 -1
  49. package/lib/index.es20.js +0 -62
  50. package/lib/index.es36.js +0 -4
@@ -0,0 +1,66 @@
1
+ import { jsxs as c, jsx as r, Fragment as o } from "react/jsx-runtime";
2
+ import N from "./index.es42.js";
3
+ import k from "./index.es43.js";
4
+ import y from "./index.es44.js";
5
+ import C from "./index.es45.js";
6
+ import S from "./index.es46.js";
7
+ import v from "./index.es47.js";
8
+ import { Row as x, Col as f, Empty as q } from "antd";
9
+ /* empty css */
10
+ const i = (e) => {
11
+ const n = document.getElementById(e);
12
+ if (n) {
13
+ const d = n.closest(".knowledge-card-content");
14
+ d && d.scrollTo({
15
+ top: n.offsetTop - 20,
16
+ behavior: "smooth"
17
+ });
18
+ }
19
+ }, K = ({ detailData: e = {}, drawerInfo: n = {}, loading: d }) => {
20
+ var t, l, s, m, a, p, h, u, g, w;
21
+ return /* @__PURE__ */ c(x, { className: "knowledge-card-click", wrap: !1, children: [
22
+ /* @__PURE__ */ c(f, { flex: "80px", className: "card-item-click", children: [
23
+ e.property && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-property"), children: "知识详情" }),
24
+ ((t = e.document) == null ? void 0 : t.length) > 0 && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-document"), children: "关联文档" }),
25
+ ((l = e.image) == null ? void 0 : l.length) > 0 && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-image"), children: "关联图片" }),
26
+ ((s = e.video) == null ? void 0 : s.length) > 0 && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-video"), children: "关联视频" }),
27
+ ((m = e.audio) == null ? void 0 : m.length) > 0 && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-audio"), children: "关联音频" }),
28
+ ((a = e.relation) == null ? void 0 : a.length) > 0 && /* @__PURE__ */ r("p", { className: "drawer-card-title2", onClick: () => i("section-relation"), children: "关联知识" })
29
+ ] }),
30
+ /* @__PURE__ */ c(f, { flex: "auto", className: "knowledge-card-content", children: [
31
+ e.property ? /* @__PURE__ */ c(o, { children: [
32
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-property", children: "知识详情" }),
33
+ /* @__PURE__ */ r(
34
+ N,
35
+ {
36
+ properties: e.property || [],
37
+ excludedKeys: ["id"]
38
+ }
39
+ )
40
+ ] }) : !d && /* @__PURE__ */ r(q, {}),
41
+ ((p = e.document) == null ? void 0 : p.length) > 0 && /* @__PURE__ */ c(o, { children: [
42
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-document", children: "关联文档" }),
43
+ /* @__PURE__ */ r(k, { documents: e.document, source: "qa-card" })
44
+ ] }),
45
+ ((h = e.image) == null ? void 0 : h.length) > 0 && /* @__PURE__ */ c(o, { children: [
46
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-image", children: "关联图片" }),
47
+ /* @__PURE__ */ r(y, { images: e.image, source: "qa-card" })
48
+ ] }),
49
+ ((u = e.video) == null ? void 0 : u.length) > 0 && /* @__PURE__ */ c(o, { children: [
50
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-video", children: "关联视频" }),
51
+ /* @__PURE__ */ r(C, { videos: e.video, source: "qa-card" })
52
+ ] }),
53
+ ((g = e.audio) == null ? void 0 : g.length) > 0 && /* @__PURE__ */ c(o, { children: [
54
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-audio", children: "关联音频" }),
55
+ /* @__PURE__ */ r(S, { audios: e.audio, source: "qa-card" })
56
+ ] }),
57
+ ((w = e.relation) == null ? void 0 : w.length) > 0 && /* @__PURE__ */ c(o, { children: [
58
+ /* @__PURE__ */ r("p", { className: "drawer-card-title", id: "section-relation", children: "关联知识" }),
59
+ /* @__PURE__ */ r(v, { relations: e.relation, kgIds: n.kgId, source: "qa-card" })
60
+ ] })
61
+ ] })
62
+ ] });
63
+ };
64
+ export {
65
+ K as default
66
+ };