react-kggraph 0.0.37 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -102
- package/lib/index.es3.js +103 -101
- package/lib/index.es39.js +6 -6
- package/lib/index.es43.js +18 -88
- package/lib/index.es44.js +39 -54
- package/lib/index.es45.js +39 -30
- package/lib/index.es46.js +91 -0
- package/lib/index.es47.js +52 -66
- package/lib/index.es48.js +33 -0
- package/lib/index.es50.js +72 -0
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/index.es40.js +0 -21
- package/lib/index.es41.js +0 -43
- package/lib/index.es42.js +0 -42
package/lib/index.es45.js
CHANGED
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as s } from "react";
|
|
3
|
+
import { Image as t } from "antd";
|
|
4
|
+
const m = ({ images: o, forceSingleColumn: i = !1, source: d = "" }) => (s(0), /* @__PURE__ */ e("div", { className: d === "qa-card" ? "grid grid-cols-1" : `grid ${i ? "grid-cols-1 gap-y-3" : "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-20px"}`, children: /* @__PURE__ */ e(
|
|
5
|
+
t.PreviewGroup,
|
|
6
|
+
{
|
|
7
|
+
preview: {
|
|
8
|
+
// onVisibleChange: (visible) => {
|
|
9
|
+
// if (visible) {
|
|
10
|
+
// handlePreviewOpen();
|
|
11
|
+
// } else {
|
|
12
|
+
// handlePreviewClose();
|
|
13
|
+
// }
|
|
14
|
+
// },
|
|
15
|
+
mask: !0,
|
|
16
|
+
zIndex: 9999,
|
|
17
|
+
getContainer: () => document.getElementById("root") || document.body
|
|
18
|
+
},
|
|
19
|
+
children: o.map((r, a) => /* @__PURE__ */ e("div", { className: "group rounded-lg overflow-hidden transition-shadow", children: /* @__PURE__ */ e("div", { className: "h-185px relative overflow-hidden", children: /* @__PURE__ */ e(
|
|
20
|
+
t,
|
|
21
|
+
{
|
|
22
|
+
src: r.propertyValue,
|
|
23
|
+
alt: r.propertyKey,
|
|
24
|
+
style: {
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "185px",
|
|
27
|
+
objectFit: "cover"
|
|
28
|
+
// cover 保证图片充满容器,可能会裁剪
|
|
29
|
+
// 或者使用 'contain' 保证图片完整显示,可能会有留白
|
|
30
|
+
// objectFit: 'contain',
|
|
31
|
+
},
|
|
32
|
+
className: "transition-transform duration-300 group-hover:scale-105 rounded-6px",
|
|
33
|
+
preview: {
|
|
34
|
+
cover: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "text-white text-14px", children: "点击查看" }) })
|
|
35
|
+
}
|
|
27
36
|
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
};
|
|
37
|
+
) }) }, a))
|
|
38
|
+
}
|
|
39
|
+
) }));
|
|
31
40
|
export {
|
|
32
|
-
|
|
41
|
+
m as default
|
|
33
42
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as m, Fragment as x, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as p, useEffect as f } from "react";
|
|
3
|
+
import { Modal as C } from "antd";
|
|
4
|
+
const R = ({ videos: c, forceSingleColumn: V = !1, source: j = "" }) => {
|
|
5
|
+
const [n, l] = u(null), [i, h] = u({}), v = p({}), s = p(null), g = () => {
|
|
6
|
+
s.current && (s.current.pause(), s.current.currentTime = 0), l(null);
|
|
7
|
+
};
|
|
8
|
+
f(() => {
|
|
9
|
+
n && s.current && s.current.play().catch(() => {
|
|
10
|
+
});
|
|
11
|
+
}, [n]);
|
|
12
|
+
const y = (t, r) => {
|
|
13
|
+
if (i[r]) return;
|
|
14
|
+
const e = document.createElement("video");
|
|
15
|
+
e.src = t, e.crossOrigin = "anonymous", e.muted = !0, e.preload = "metadata", e.onloadeddata = () => {
|
|
16
|
+
e.currentTime = 0.1;
|
|
17
|
+
}, e.onseeked = () => {
|
|
18
|
+
const o = document.createElement("canvas");
|
|
19
|
+
o.width = e.videoWidth, o.height = e.videoHeight;
|
|
20
|
+
const d = o.getContext("2d");
|
|
21
|
+
if (d) {
|
|
22
|
+
d.drawImage(e, 0, 0, o.width, o.height);
|
|
23
|
+
const w = o.toDataURL("image/jpeg", 0.8);
|
|
24
|
+
h((N) => ({ ...N, [r]: w }));
|
|
25
|
+
}
|
|
26
|
+
e.src = "";
|
|
27
|
+
}, e.onerror = () => {
|
|
28
|
+
e.src = "";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
return f(() => {
|
|
32
|
+
c.forEach((t, r) => {
|
|
33
|
+
y(t.propertyValue, r);
|
|
34
|
+
});
|
|
35
|
+
}, [c]), /* @__PURE__ */ m(x, { children: [
|
|
36
|
+
/* @__PURE__ */ a("div", { className: "video-wraper", children: c.map((t, r) => {
|
|
37
|
+
t.propertyValue.split("/").pop();
|
|
38
|
+
const e = i[r];
|
|
39
|
+
return /* @__PURE__ */ a("div", { className: "rounded-lg overflow-hidden transition-shadow", children: /* @__PURE__ */ m("div", { className: "video-item", children: [
|
|
40
|
+
/* @__PURE__ */ a(
|
|
41
|
+
"video",
|
|
42
|
+
{
|
|
43
|
+
ref: (o) => {
|
|
44
|
+
v.current[r] = o;
|
|
45
|
+
},
|
|
46
|
+
src: t.propertyValue,
|
|
47
|
+
poster: e,
|
|
48
|
+
className: "video-item-video",
|
|
49
|
+
muted: !0,
|
|
50
|
+
playsInline: !0,
|
|
51
|
+
preload: "metadata",
|
|
52
|
+
onClick: () => l(t.propertyValue)
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
!n && /* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ a(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: "w-8 h-8 rounded-full flex items-center justify-center cursor-pointer hover:scale-110 transition-transform",
|
|
59
|
+
onClick: () => l(t.propertyValue),
|
|
60
|
+
children: /* @__PURE__ */ a("span", { className: "w-24px h-24px i-custom-video-play inline-block" })
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
63
|
+
] }) }, r);
|
|
64
|
+
}) }),
|
|
65
|
+
/* @__PURE__ */ a(
|
|
66
|
+
C,
|
|
67
|
+
{
|
|
68
|
+
open: !!n,
|
|
69
|
+
footer: null,
|
|
70
|
+
onCancel: g,
|
|
71
|
+
width: "auto",
|
|
72
|
+
centered: !0,
|
|
73
|
+
className: "video-modal",
|
|
74
|
+
wrapClassName: "modal-wrapClassName",
|
|
75
|
+
getContainer: () => document.getElementById("root"),
|
|
76
|
+
children: n && /* @__PURE__ */ a(
|
|
77
|
+
"video",
|
|
78
|
+
{
|
|
79
|
+
ref: s,
|
|
80
|
+
src: n,
|
|
81
|
+
controls: !0,
|
|
82
|
+
className: "max-w-[80vw] max-h-[80vh] mt-10px"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] });
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
R as default
|
|
91
|
+
};
|
package/lib/index.es47.js
CHANGED
|
@@ -1,72 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return e.split(i).map(
|
|
17
|
-
(r, c) => i.test(r) ? /* @__PURE__ */ t("span", { style: { color: "#E1211C", fontWeight: "bold" }, children: r }, c) : r
|
|
18
|
-
);
|
|
19
|
-
}, m = w.useMemo(() => {
|
|
20
|
-
if (!l.showContent) return [];
|
|
21
|
-
const e = (s) => (s == null ? void 0 : s.includes("简介")) || s.startsWith("http://") || s.startsWith("https://"), a = l.showContent.filter((s) => e(s.propertyKey));
|
|
22
|
-
return [...l.showContent.filter((s) => !e(s.propertyKey)), ...a];
|
|
23
|
-
}, [l.showContent]), u = (e, a) => {
|
|
24
|
-
var c;
|
|
25
|
-
const i = ((c = e.propertyValue) == null ? void 0 : c.length) > 20, s = h(e.propertyValue, d), r = /* @__PURE__ */ t(g, { span: 24, className: "detail-item-list", children: /* @__PURE__ */ o(n, { children: [
|
|
26
|
-
/* @__PURE__ */ o("span", { className: "detail-label text-#676A6C flex-shrink-0 whitespace-nowrap font-size-14px max-w-[80%] overflow-hidden text-ellipsis whitespace-nowrap", children: [
|
|
27
|
-
e.propertyKey,
|
|
28
|
-
":"
|
|
29
|
-
] }),
|
|
30
|
-
/* @__PURE__ */ t("span", { className: "detail-value text-#676A6C truncate block overflow-hidden text-ellipsis whitespace-nowrap flex-1 min-w-0 font-size-14px", children: s })
|
|
31
|
-
] }) }, a);
|
|
32
|
-
return i ? /* @__PURE__ */ t(
|
|
33
|
-
C,
|
|
34
|
-
{
|
|
35
|
-
title: e.propertyValue,
|
|
36
|
-
placement: "topLeft",
|
|
37
|
-
mouseEnterDelay: 0.3,
|
|
38
|
-
overlayClassName: "max-w-[500px] break-words",
|
|
39
|
-
children: r
|
|
40
|
-
},
|
|
41
|
-
a
|
|
42
|
-
) : r;
|
|
1
|
+
import { jsx as l, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as y } from "react";
|
|
3
|
+
import { Row as d, Flex as h, Button as p } from "antd";
|
|
4
|
+
const j = ({ audios: m, forceSingleColumn: u = !1, source: f = "" }) => {
|
|
5
|
+
const [s, a] = g(null), n = y({}), x = (e) => {
|
|
6
|
+
var t, i;
|
|
7
|
+
if (s === e)
|
|
8
|
+
(t = n.current[e]) == null || t.pause(), a(null);
|
|
9
|
+
else {
|
|
10
|
+
if (s && ((i = n.current[s]) == null || i.pause()), a(e), !n.current[e]) {
|
|
11
|
+
const c = new Audio(e);
|
|
12
|
+
n.current[e] = c;
|
|
13
|
+
}
|
|
14
|
+
n.current[e].play(), n.current[e].onended = () => a(null);
|
|
15
|
+
}
|
|
43
16
|
};
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
17
|
+
return /* @__PURE__ */ l(
|
|
18
|
+
"div",
|
|
46
19
|
{
|
|
47
|
-
className: "
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
20
|
+
className: f === "qa-card" ? "grid grid-cols-1" : `grid ${u ? "grid-cols-1 gap-y-3" : "grid-cols-2 gap-x-100px gap-y-20px"}`,
|
|
21
|
+
children: m.map((e, t) => {
|
|
22
|
+
const i = e.propertyValue.split("/").pop() || "未命名音频", c = s === e.propertyValue;
|
|
23
|
+
return /* @__PURE__ */ o(d, { className: "flex items-center justify-between transition-all", justify: "space-between", align: "middle", children: [
|
|
24
|
+
/* @__PURE__ */ o(d, { className: "flex items-center min-w-0 flex-1", align: "middle", children: [
|
|
25
|
+
/* @__PURE__ */ l("div", { className: "mr-3 text-xl flex-shrink-0", children: /* @__PURE__ */ l("span", { className: "w-24px h-30px i-custom-audio inline-block" }) }),
|
|
26
|
+
/* @__PURE__ */ l("div", { className: "min-w-0", children: /* @__PURE__ */ l("div", { className: "truncate", title: i, children: i }) })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ o(h, { className: "flex-shrink-0 ml-3", children: [
|
|
29
|
+
/* @__PURE__ */ l(
|
|
30
|
+
p,
|
|
31
|
+
{
|
|
32
|
+
className: "px-0",
|
|
33
|
+
type: "link",
|
|
34
|
+
onClick: () => x(e.propertyValue),
|
|
35
|
+
children: c ? "暂停" : "播放"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ l(
|
|
39
|
+
p,
|
|
40
|
+
{
|
|
41
|
+
className: "px-0",
|
|
42
|
+
type: "link",
|
|
43
|
+
onClick: () => {
|
|
44
|
+
const r = document.createElement("a");
|
|
45
|
+
r.href = e.propertyValue, r.download = i, r.click();
|
|
46
|
+
},
|
|
47
|
+
children: "下载"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] })
|
|
51
|
+
] }, t);
|
|
52
|
+
})
|
|
67
53
|
}
|
|
68
|
-
)
|
|
54
|
+
);
|
|
69
55
|
};
|
|
70
56
|
export {
|
|
71
|
-
|
|
57
|
+
j as default
|
|
72
58
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useEffect as w } from "react";
|
|
3
|
+
import h from "./index.es50.js";
|
|
4
|
+
const k = ({ relations: t, kgIds: s, viewMode: a = "list", source: c = "" }) => {
|
|
5
|
+
const [d, l] = m(t);
|
|
6
|
+
w(() => {
|
|
7
|
+
t && t && l(p(t || []));
|
|
8
|
+
}, [t]);
|
|
9
|
+
const p = (e) => e.map((o) => {
|
|
10
|
+
var r;
|
|
11
|
+
const n = (r = o.content) == null ? void 0 : r.filter((f) => f.propertyKey !== "id");
|
|
12
|
+
return {
|
|
13
|
+
...o,
|
|
14
|
+
showContent: n.slice(0, 8)
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return /* @__PURE__ */ i("div", { className: "relation-section-wraper", children: d.map((e, u) => /* @__PURE__ */ i(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
entity: e,
|
|
21
|
+
viewMode: a,
|
|
22
|
+
className: "shadow-none",
|
|
23
|
+
source: c,
|
|
24
|
+
onViewDetails: (o) => {
|
|
25
|
+
const n = encodeURIComponent(e.uri);
|
|
26
|
+
window.open(`#/ai-search/fulltext-detail?uri=${n}&kgId=${s}&keyword=${o.showValue}`, "_blank");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
)) });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
k as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import w from "react";
|
|
3
|
+
import { Card as f, Row as n, Button as x, Col as g, Tooltip as C } from "antd";
|
|
4
|
+
const E = ({
|
|
5
|
+
entity: l,
|
|
6
|
+
viewMode: N,
|
|
7
|
+
keyword: d = "",
|
|
8
|
+
className: v = "",
|
|
9
|
+
contentClass: b = "",
|
|
10
|
+
onViewDetails: p,
|
|
11
|
+
source: k = ""
|
|
12
|
+
}) => {
|
|
13
|
+
const h = (e, a) => {
|
|
14
|
+
if (!a || !e) return e;
|
|
15
|
+
const i = new RegExp(`(${a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
|
|
16
|
+
return e.split(i).map(
|
|
17
|
+
(r, c) => i.test(r) ? /* @__PURE__ */ t("span", { style: { color: "#E1211C", fontWeight: "bold" }, children: r }, c) : r
|
|
18
|
+
);
|
|
19
|
+
}, m = w.useMemo(() => {
|
|
20
|
+
if (!l.showContent) return [];
|
|
21
|
+
const e = (s) => (s == null ? void 0 : s.includes("简介")) || s.startsWith("http://") || s.startsWith("https://"), a = l.showContent.filter((s) => e(s.propertyKey));
|
|
22
|
+
return [...l.showContent.filter((s) => !e(s.propertyKey)), ...a];
|
|
23
|
+
}, [l.showContent]), u = (e, a) => {
|
|
24
|
+
var c;
|
|
25
|
+
const i = ((c = e.propertyValue) == null ? void 0 : c.length) > 20, s = h(e.propertyValue, d), r = /* @__PURE__ */ t(g, { span: 24, className: "detail-item-list", children: /* @__PURE__ */ o(n, { children: [
|
|
26
|
+
/* @__PURE__ */ o("span", { className: "detail-label text-#676A6C flex-shrink-0 whitespace-nowrap font-size-14px max-w-[80%] overflow-hidden text-ellipsis whitespace-nowrap", children: [
|
|
27
|
+
e.propertyKey,
|
|
28
|
+
":"
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ t("span", { className: "detail-value text-#676A6C truncate block overflow-hidden text-ellipsis whitespace-nowrap flex-1 min-w-0 font-size-14px", children: s })
|
|
31
|
+
] }) }, a);
|
|
32
|
+
return i ? /* @__PURE__ */ t(
|
|
33
|
+
C,
|
|
34
|
+
{
|
|
35
|
+
title: e.propertyValue,
|
|
36
|
+
placement: "topLeft",
|
|
37
|
+
mouseEnterDelay: 0.3,
|
|
38
|
+
overlayClassName: "max-w-[500px] break-words",
|
|
39
|
+
children: r
|
|
40
|
+
},
|
|
41
|
+
a
|
|
42
|
+
) : r;
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ t("div", { className: "relative group", children: /* @__PURE__ */ t(
|
|
45
|
+
f,
|
|
46
|
+
{
|
|
47
|
+
className: "section-card",
|
|
48
|
+
bodyStyle: { padding: "20px 20px 4px 20px" },
|
|
49
|
+
onClick: () => p(l),
|
|
50
|
+
children: /* @__PURE__ */ o("div", { className: "flex flex-col h-full", children: [
|
|
51
|
+
/* @__PURE__ */ o(n, { className: "section-title", justify: "space-between", align: "middle", children: [
|
|
52
|
+
/* @__PURE__ */ t("div", { className: "entity-name-list", children: h(l.showValue, d) }),
|
|
53
|
+
/* @__PURE__ */ t(
|
|
54
|
+
x,
|
|
55
|
+
{
|
|
56
|
+
className: "view-details-btn",
|
|
57
|
+
children: "查看详情"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ o(n, { className: "flex mb-18px", children: [
|
|
62
|
+
l.showType && /* @__PURE__ */ t(n, { className: "detail-item-tag", justify: "center", align: "middle", children: l.showType }),
|
|
63
|
+
l.kg && /* @__PURE__ */ t("div", { className: "detail-item-tag1", children: l.kg })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ t(n, { wrap: !0, children: m.map((e, a) => u(e, a)) })
|
|
66
|
+
] })
|
|
67
|
+
}
|
|
68
|
+
) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
E as default
|
|
72
|
+
};
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;padding:0}.cytoscape-container{width:100%;height:100%}.search-input{padding:8px 12px;width:300px;margin-bottom:10px;border:1px solid #ddd;border-radius:4px}.btn-group{margin-bottom:10px}.btn{padding:8px 16px;margin:0 5px;border:none;border-radius:4px;background:#4285f4;color:#fff;cursor:pointer}.btn:hover{background:#3367d6}.result-text{margin-bottom:10px;color:#333;font-size:14px}.cy-container{width:100%;height:100%}.cy-container :global(.grayed){opacity:.3!important;background-color:#bdbdbd!important;color:#757575!important}.cy-container :global(.highlighted){background-color:#ffeb3b!important;border-color:#fbc02d!important;color:#333!important}.cy-container :global(.selected){border-color:#4caf50!important;background-color:#a5d6a7!important;color:#1b5e20!important}.cy-container .cy-edge:selected{line-color:#ea4335;line-width:3px;line-style:solid}.cy-container .cy-node:hover:not(:selected){background-color:#3367d6}.cy-container .cy-edge:hover:not(:selected){line-color:#757575}.path-nodes-container{margin-bottom:15px}.path-nodes-container h3{margin:10px 0;font-size:16px;color:#333}.node-input-row{display:flex;align-items:center;margin-bottom:8px}.node-input-row span{margin-right:10px;min-width:60px}.node-input-row input{flex:1;margin-right:10px}.remove-node-btn{background:#f44336;padding:6px 12px;font-size:12px}.add-node-btn{background:#4caf50;padding:8px 16px;margin-top:10px}.menuBtn:nth-child(1){transform:rotate(0) skew(31deg)}.menuBtn:nth-child(2){transform:rotate(51deg) skew(31deg)}.menuBtn:nth-child(3){transform:rotate(102deg) skew(31deg)}.menuBtn:nth-child(4){transform:rotate(153deg) skew(31deg)}.menuBtn:nth-child(5){transform:rotate(204deg) skew(31deg)}.menuBtn:nth-child(6){transform:rotate(255deg) skew(31deg)}.menuBtn:nth-child(7){transform:rotate(306deg) skew(35deg)}.menuBtn .menu-item{color:#fff;display:block;width:50px;height:20px;position:absolute;text-align:center;font-size:12px}.menuBtn .menu-item:hover{background:transparent!important}.menuBtn .menu-item{bottom:5px;right:19px;transform:skew(-30deg) translate(-9%) rotate(2deg) translateY(0)}.menuCertent{width:60px;height:60px;display:flex;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;margin-top:-15%;margin-left:-15%;z-index:999;border-radius:50%;color:#fff;text-align:center;font-size:16px;cursor:pointer;border:2px solid #c9cec9}.opacity-30{opacity:.3}.cursor{cursor:pointer}.my-4px{margin:4px 0}.z-10{z-index:10}.hidden{display:none}.w-20px{width:20px}.h-100{height:100%}.rounded-50{border-radius:10%}.relative{position:relative}.absolute{position:absolute}.w-100{width:100%}.Spin-loading{width:100%;height:100%;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:#0000000d}.Spin-loading .ant-spin-section,.Spin-loading .ant-spin-section .ant-spin-description{color:#1677ff}.graph-bar{position:absolute;display:flex;align-items:center;z-index:10}.graph-bar .graph-bar-min-vertical{padding:0!important}.graph-bar .graph-bar-min{display:flex;background:#fff;padding:4px;box-shadow:0 4px 20px #100dae33;border-radius:6px;flex-wrap:nowrap;gap:10px;width:auto;white-space:nowrap}.graph-bar .graph-bar-menu{position:relative;cursor:pointer;margin:0 10px;white-space:nowrap;display:flex;align-items:center}.graph-bar .graph-bar-menu:hover .grap-menu-dropdown-item{color:#145afd}.graph-bar .grap-menu-dropdown{background:#fff;box-shadow:0 4px 20px #0000003b;border-radius:6px;position:absolute;padding:5px 0;z-index:99;top:60px}.graph-bar .grap-menu-dropdown p{white-space:nowrap;padding:5px 15px}.graph-bar .grap-menu-dropdown p:hover{background:#f5f5f5;color:#145afd}.graph-bar .grap-menu-dropdown-item{display:flex;cursor:pointer;flex-direction:column;align-items:center}.graph-bar .hide{display:none}.graph-bar .show{display:block}.graph-bar .graph-bar-expand-wrapper-vertical{overflow:hidden;max-height:1000px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;opacity:1}.graph-bar .graph-bar-expand-wrapper{overflow:hidden;max-width:1000px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;opacity:1}.graph-bar .graph-bar-expand-wrapper.collapsed{max-width:0;opacity:0;margin:0!important}.graph-bar .graph-bar-expand-wrapper-vertical.collapsed-vertical{max-height:0;opacity:0;margin:0!important}.graph-bar .graph-bar-min:not(.graph-bar-min-vertical) .graph-bar-expand-wrapper{display:flex;align-items:center;gap:10px;margin-left:10px;margin-right:10px}.graph-bar.graph-bar-vertical{flex-direction:column}.graph-bar.graph-bar-vertical .graph-bar-min{flex-direction:column;align-items:flex-start;position:relative;padding-bottom:0!important}.graph-bar.graph-bar-vertical .graph-bar-expand-wrapper{flex-direction:column;width:100%}.graph-bar.graph-bar-vertical .cursor{align-self:flex-end;flex-shrink:0;position:relative}.graph-bar.graph-bar-vertical .cursor:before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}.graph-bar.graph-bar-vertical .grap-menu-dropdown{top:auto;left:60px;right:auto}.graph-bar .bar-item{color:#999;font-size:12px;margin:12px 0}.graph-bar .oprate-btn{width:76px;color:#145afd;border-right:1px solid #f0f0f0}.graph-bar .oprate-btn-vertical{width:76px;padding:10px 0;color:#145afd;border-top:1px solid #f0f0f0}.gtaph-statics{right:0;z-index:1;background:#fff;padding:10px 20px 20px;box-sizing:border-box;border-radius:10px;width:200px;box-shadow:0 4px 20px #0000003b}.hove-active{cursor:pointer;font-size:14px}.hove-active:hover{color:#145afd}.font-12{font-size:12px}.setting-form{display:flex;flex-direction:column;height:100%}.setting-form .setting-form-content{flex:1;overflow-y:auto;padding:16px}.setting-form .setting-form-footer{position:sticky;bottom:0;background:#fff;padding:16px;border-top:1px solid #f0f0f0;margin-top:auto}.setting-form .setting-form-footer .ant-form-item{margin-bottom:0}.static-wraper{font-size:12px;color:#666}.color-333{color:#333}.rounded-50{border-radius:50%!important}.text-666{color:#666;font-size:12px}.query-node{width:300px;position:absolute;background-color:#fff;right:0;top:20px;padding:10px 20px;border-radius:10px}.path-node{width:380px;position:absolute;background-color:#fff;right:0;padding:10px 20px;border-radius:10px;box-shadow:0 4px 20px #0000003b;z-index:10}.path-node .title{display:flex;justify-content:space-between;height:35px;align-items:center;margin-bottom:10px;font-weight:700;font-size:14px}.path-node .search-input{margin-bottom:0;padding-bottom:5px}.path-node .btn-group{display:flex;justify-content:flex-end;margin-top:20px}.path-node .ant-select-suffix{width:10px}.query-node{width:300px;position:absolute;background-color:#fff;right:0;padding:10px 20px;border-radius:10px;box-shadow:0 4px 20px #0000003b}.query-node .title{display:flex;justify-content:space-between;height:35px;align-items:center;margin-bottom:10px;font-weight:700;font-size:14px}.radial-menu{position:relative;display:inline-flex;align-items:center;justify-content:center}.radial-svg{position:absolute;top:0;left:0}.sector-group{cursor:pointer;transition:all .2s ease}.sector-group .sector-path{transition:all .2s ease}.sector-group:hover .sector-path{filter:brightness(1.15) drop-shadow(0 2px 4px rgba(0,0,0,.3))}.sector-label{pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.4);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.center-avatar{position:absolute;z-index:10;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 15px #0000004d;transition:all .3s ease;overflow:hidden;color:#fff;font-weight:500}.center-avatar img{width:100%;height:100%;object-fit:cover}.center-avatar .center-text{font-size:14px;text-align:center}.center-avatar:hover{transform:scale(1.08);box-shadow:0 6px 20px #0006}.center-avatar:active{transform:scale(.95)}.drawer-wraper,.knowledge-card-drawer{padding-bottom:20px}.drawer-wraper .title,.knowledge-card-drawer .title{font-weight:700;font-size:14px;color:#3d3d3d;position:relative;padding-left:8px}.drawer-wraper .title:before,.knowledge-card-drawer .title:before{position:absolute;left:0;transform:translateY(-50%);top:50%;content:"";width:3px;height:17px;background:#145afd}.drawer-wraper .graph-item,.knowledge-card-drawer .graph-item{height:26px;border-bottom:1px solid #E5E5E5;background:#edf3fe}.drawer-wraper .graph-item:hover,.knowledge-card-drawer .graph-item:hover{background:#edf3fe}.drawer-wraper .noraml-type,.knowledge-card-drawer .noraml-type{font-size:14px;color:#145afd;line-height:26px;text-align:center;border-right:1px solid #E5E5E5}.drawer-wraper .noraml-text,.knowledge-card-drawer .noraml-text{font-size:14px;color:#333;line-height:26px}.drawer-wraper .selected-item,.knowledge-card-drawer .selected-item{background:#edf3fe;color:#1890ff}.drawer-wraper .selected-item .noraml-type,.knowledge-card-drawer .selected-item .noraml-type{background:#347bfc;color:#fff}.drawer-wraper .drawer-card-title,.knowledge-card-drawer .drawer-card-title{font-weight:600;font-size:14px;color:#333;position:relative;padding-bottom:10px;margin:15px 0 10px;cursor:pointer}.drawer-wraper .drawer-card-title:hover,.knowledge-card-drawer .drawer-card-title:hover{color:#145afd}.drawer-wraper .drawer-card-title:after,.knowledge-card-drawer .drawer-card-title:after{content:"";position:absolute;border-bottom:1px solid #DFDFDF;width:100%;left:0;bottom:0}.drawer-wraper .drawer-card-title:before,.knowledge-card-drawer .drawer-card-title:before{content:"";position:absolute;border-bottom:1px solid #145AFD;width:64px;left:0;bottom:0;z-index:1}.collapse-wrap{border-color:#dfdfdf;border-radius:0;height:calc(100vh - 480px);overflow-y:auto}.collapse-wrap .ant-collapse-header{padding:9px 10px!important;background:#fff}.collapse-wrap .ant-collapse-item{border-color:#dfdfdf}.collapse-wrap .ant-collapse-title{font-size:14px;font-weight:700;color:#3d3d3d}.collapse-wrap .ant-collapse-body{max-height:calc(100vh - 550px);overflow-y:auto;width:298px;padding:0 16px 16px!important}.collapse-wrap .ant-collapse-body .ant-card-body{padding:0!important}.collapse-wrap .ant-collapse-body .ant-card{border:none}.property-section-wraper .section-item{display:flex;margin-top:4px}.property-section-wraper .detail-label{color:#333;font-size:14px;white-space:nowrap;flex-shrink:0}.property-section-wraper .detail-value{color:#383838;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-wraper .video-item{height:185px;position:relative;background:#333;border-radius:6px}.video-wraper .video-item-video{width:100%;height:100%;border-radius:6px;object-fit:cover}.relation-section-wraper{display:flex;flex-wrap:wrap;gap:10px}.relation-section-wraper .group{width:100%}.relation-section-wraper .section-card{width:100%;height:100%;border:1px solid #DFDFDF}.relation-section-wraper .section-title{margin-bottom:7px}.relation-section-wraper .entity-name-list{font-size:16px;font-weight:700}.relation-section-wraper .view-details-btn{color:#145afd}.relation-section-wraper .detail-item-tag{background-color:#e6f2ff;font-size:14px;border:1px solid #bdf;border-top-left-radius:10px;border-bottom-right-radius:10px;padding:0 13px;color:#1082fe;margin-right:3px}.relation-section-wraper .detail-item-tag1{background-color:#fff5df;font-size:14px;border:1px solid #FFE0B8;border-top-left-radius:10px;border-bottom-right-radius:10px;padding:0 13px;color:#ff9418}.relation-section-wraper .detail-item-list{margin-bottom:3px}.relation-section-wraper .detail-label{color:#676a6c;font-size:14px;white-space:nowrap;flex-shrink:0}.relation-section-wraper .detail-value{color:#383838;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.relation-section-wraper .mb-18px{margin-bottom:18px}.knowledge-card-click{height:100%;overflow:hidden}.knowledge-card-click .drawer-card-title2{font-weight:700;flex-wrap:nowrap;padding-bottom:10px;border-bottom:1px solid #e4e7ed;cursor:pointer;color:#333;margin:14px 0}.knowledge-card-click .drawer-card-title2:hover,.knowledge-card-click .drawer-card-title2.active{color:#145afd}.knowledge-card-click .card-item-click{flex-shrink:0;margin-right:10px;border-right:1px solid #e4e7ed;padding-right:10px;height:100%;background:#fff}.knowledge-card-click .knowledge-card-content{height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.knowledge-card-click .knowledge-card-content::-webkit-scrollbar{display:none}
|
|
1
|
+
*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;padding:0}.cytoscape-container{width:100%;height:100%}.search-input{padding:8px 12px;width:300px;margin-bottom:10px;border:1px solid #ddd;border-radius:4px}.btn-group{margin-bottom:10px}.btn{padding:8px 16px;margin:0 5px;border:none;border-radius:4px;background:#4285f4;color:#fff;cursor:pointer}.btn:hover{background:#3367d6}.result-text{margin-bottom:10px;color:#333;font-size:14px}.cy-container{width:100%;height:100%}.cy-container :global(.grayed){opacity:.3!important;background-color:#bdbdbd!important;color:#757575!important}.cy-container :global(.highlighted){background-color:#ffeb3b!important;border-color:#fbc02d!important;color:#333!important}.cy-container :global(.selected){border-color:#4caf50!important;background-color:#a5d6a7!important;color:#1b5e20!important}.cy-container .cy-edge:selected{line-color:#ea4335;line-width:3px;line-style:solid}.cy-container .cy-node:hover:not(:selected){background-color:#3367d6}.cy-container .cy-edge:hover:not(:selected){line-color:#757575}.path-nodes-container{margin-bottom:15px}.path-nodes-container h3{margin:10px 0;font-size:16px;color:#333}.node-input-row{display:flex;align-items:center;margin-bottom:8px}.node-input-row span{margin-right:10px;min-width:60px}.node-input-row input{flex:1;margin-right:10px}.remove-node-btn{background:#f44336;padding:6px 12px;font-size:12px}.add-node-btn{background:#4caf50;padding:8px 16px;margin-top:10px}.menuBtn:nth-child(1){transform:rotate(0) skew(31deg)}.menuBtn:nth-child(2){transform:rotate(51deg) skew(31deg)}.menuBtn:nth-child(3){transform:rotate(102deg) skew(31deg)}.menuBtn:nth-child(4){transform:rotate(153deg) skew(31deg)}.menuBtn:nth-child(5){transform:rotate(204deg) skew(31deg)}.menuBtn:nth-child(6){transform:rotate(255deg) skew(31deg)}.menuBtn:nth-child(7){transform:rotate(306deg) skew(35deg)}.menuBtn .menu-item{color:#fff;display:block;width:50px;height:20px;position:absolute;text-align:center;font-size:12px}.menuBtn .menu-item:hover{background:transparent!important}.menuBtn .menu-item{bottom:5px;right:19px;transform:skew(-30deg) translate(-9%) rotate(2deg) translateY(0)}.menuCertent{width:60px;height:60px;display:flex;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;margin-top:-15%;margin-left:-15%;z-index:999;border-radius:50%;color:#fff;text-align:center;font-size:16px;cursor:pointer;border:2px solid #c9cec9}.opacity-30{opacity:.3}.cursor{cursor:pointer}.my-4px{margin:4px 0}.z-10{z-index:10}.hidden{display:none}.w-20px{width:20px}.h-100{height:100%}.rounded-50{border-radius:10%}.relative{position:relative}.absolute{position:absolute}.w-100{width:100%}.Spin-loading{width:100%;height:100%;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:#0000000d}.Spin-loading .ant-spin-section,.Spin-loading .ant-spin-section .ant-spin-description{color:#1677ff}.Spin-loading-hidden{display:none}.graph-bar{position:absolute;display:flex;align-items:center;z-index:10}.graph-bar .graph-bar-min-vertical{padding:0!important}.graph-bar .graph-bar-min{display:flex;background:#fff;padding:4px;box-shadow:0 4px 20px #100dae33;border-radius:6px;flex-wrap:nowrap;gap:10px;width:auto;white-space:nowrap}.graph-bar .graph-bar-menu{position:relative;cursor:pointer;margin:0 10px;white-space:nowrap;display:flex;align-items:center}.graph-bar .graph-bar-menu:hover .grap-menu-dropdown-item{color:#145afd}.graph-bar .grap-menu-dropdown{background:#fff;box-shadow:0 4px 20px #0000003b;border-radius:6px;position:absolute;padding:5px 0;z-index:99;top:60px}.graph-bar .grap-menu-dropdown p{white-space:nowrap;padding:5px 15px}.graph-bar .grap-menu-dropdown p:hover{background:#f5f5f5;color:#145afd}.graph-bar .grap-menu-dropdown-item{display:flex;cursor:pointer;flex-direction:column;align-items:center}.graph-bar .hide{display:none}.graph-bar .show{display:block}.graph-bar .graph-bar-expand-wrapper-vertical{overflow:hidden;max-height:1000px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;opacity:1}.graph-bar .graph-bar-expand-wrapper{overflow:hidden;max-width:1000px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;opacity:1}.graph-bar .graph-bar-expand-wrapper.collapsed{max-width:0;opacity:0;margin:0!important}.graph-bar .graph-bar-expand-wrapper-vertical.collapsed-vertical{max-height:0;opacity:0;margin:0!important}.graph-bar .graph-bar-min:not(.graph-bar-min-vertical) .graph-bar-expand-wrapper{display:flex;align-items:center;gap:10px;margin-left:10px;margin-right:10px}.graph-bar.graph-bar-vertical{flex-direction:column}.graph-bar.graph-bar-vertical .graph-bar-min{flex-direction:column;align-items:flex-start;position:relative;padding-bottom:0!important}.graph-bar.graph-bar-vertical .graph-bar-expand-wrapper{flex-direction:column;width:100%}.graph-bar.graph-bar-vertical .cursor{align-self:flex-end;flex-shrink:0;position:relative}.graph-bar.graph-bar-vertical .cursor:before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}.graph-bar.graph-bar-vertical .grap-menu-dropdown{top:auto;left:60px;right:auto}.graph-bar .bar-item{color:#999;font-size:12px;margin:12px 0}.graph-bar .oprate-btn{width:76px;color:#145afd;border-right:1px solid #f0f0f0}.graph-bar .oprate-btn-vertical{width:76px;padding:10px 0;color:#145afd;border-top:1px solid #f0f0f0}.gtaph-statics{right:0;z-index:1;background:#fff;padding:10px 20px 20px;box-sizing:border-box;border-radius:10px;width:200px;box-shadow:0 4px 20px #0000003b}.hove-active{cursor:pointer;font-size:14px}.hove-active:hover{color:#145afd}.font-12{font-size:12px}.setting-form{display:flex;flex-direction:column;height:100%}.setting-form .setting-form-content{flex:1;overflow-y:auto;padding:16px}.setting-form .setting-form-footer{position:sticky;bottom:0;background:#fff;padding:16px;border-top:1px solid #f0f0f0;margin-top:auto}.setting-form .setting-form-footer .ant-form-item{margin-bottom:0}.static-wraper{font-size:12px;color:#666}.color-333{color:#333}.rounded-50{border-radius:50%!important}.text-666{color:#666;font-size:12px}.query-node{width:300px;position:absolute;background-color:#fff;right:0;top:20px;padding:10px 20px;border-radius:10px}.path-node{width:380px;position:absolute;background-color:#fff;right:0;padding:10px 20px;border-radius:10px;box-shadow:0 4px 20px #0000003b;z-index:10}.path-node .title{display:flex;justify-content:space-between;height:35px;align-items:center;margin-bottom:10px;font-weight:700;font-size:14px}.path-node .search-input{margin-bottom:0;padding-bottom:5px}.path-node .btn-group{display:flex;justify-content:flex-end;margin-top:20px}.path-node .ant-select-suffix{width:10px}.query-node{width:300px;position:absolute;background-color:#fff;right:0;padding:10px 20px;border-radius:10px;box-shadow:0 4px 20px #0000003b}.query-node .title{display:flex;justify-content:space-between;height:35px;align-items:center;margin-bottom:10px;font-weight:700;font-size:14px}.radial-menu{position:relative;display:inline-flex;align-items:center;justify-content:center}.radial-svg{position:absolute;top:0;left:0}.sector-group{cursor:pointer;transition:all .2s ease}.sector-group .sector-path{transition:all .2s ease}.sector-group:hover .sector-path{filter:brightness(1.15) drop-shadow(0 2px 4px rgba(0,0,0,.3))}.sector-label{pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.4);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.center-avatar{position:absolute;z-index:10;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 15px #0000004d;transition:all .3s ease;overflow:hidden;color:#fff;font-weight:500}.center-avatar img{width:100%;height:100%;object-fit:cover}.center-avatar .center-text{font-size:14px;text-align:center}.center-avatar:hover{transform:scale(1.08);box-shadow:0 6px 20px #0006}.center-avatar:active{transform:scale(.95)}.drawer-wraper,.knowledge-card-drawer{padding-bottom:20px}.drawer-wraper .title,.knowledge-card-drawer .title{font-weight:700;font-size:14px;color:#3d3d3d;position:relative;padding-left:8px}.drawer-wraper .title:before,.knowledge-card-drawer .title:before{position:absolute;left:0;transform:translateY(-50%);top:50%;content:"";width:3px;height:17px;background:#145afd}.drawer-wraper .graph-item,.knowledge-card-drawer .graph-item{height:26px;border-bottom:1px solid #E5E5E5;background:#edf3fe}.drawer-wraper .graph-item:hover,.knowledge-card-drawer .graph-item:hover{background:#edf3fe}.drawer-wraper .noraml-type,.knowledge-card-drawer .noraml-type{font-size:14px;color:#145afd;line-height:26px;text-align:center;border-right:1px solid #E5E5E5}.drawer-wraper .noraml-text,.knowledge-card-drawer .noraml-text{font-size:14px;color:#333;line-height:26px}.drawer-wraper .selected-item,.knowledge-card-drawer .selected-item{background:#edf3fe;color:#1890ff}.drawer-wraper .selected-item .noraml-type,.knowledge-card-drawer .selected-item .noraml-type{background:#347bfc;color:#fff}.drawer-wraper .drawer-card-title,.knowledge-card-drawer .drawer-card-title{font-weight:600;font-size:14px;color:#333;position:relative;padding-bottom:10px;margin:15px 0 10px;cursor:pointer}.drawer-wraper .drawer-card-title:hover,.knowledge-card-drawer .drawer-card-title:hover{color:#145afd}.drawer-wraper .drawer-card-title:after,.knowledge-card-drawer .drawer-card-title:after{content:"";position:absolute;border-bottom:1px solid #DFDFDF;width:100%;left:0;bottom:0}.drawer-wraper .drawer-card-title:before,.knowledge-card-drawer .drawer-card-title:before{content:"";position:absolute;border-bottom:1px solid #145AFD;width:64px;left:0;bottom:0;z-index:1}.collapse-wrap{border-color:#dfdfdf;border-radius:0;height:calc(100vh - 480px);overflow-y:auto}.collapse-wrap .ant-collapse-header{padding:9px 10px!important;background:#fff}.collapse-wrap .ant-collapse-item{border-color:#dfdfdf}.collapse-wrap .ant-collapse-title{font-size:14px;font-weight:700;color:#3d3d3d}.collapse-wrap .ant-collapse-body{max-height:calc(100vh - 550px);overflow-y:auto;width:298px;padding:0 16px 16px!important}.collapse-wrap .ant-collapse-body .ant-card-body{padding:0!important}.collapse-wrap .ant-collapse-body .ant-card{border:none}.property-section-wraper .section-item{display:flex;margin-top:4px}.property-section-wraper .detail-label{color:#333;font-size:14px;white-space:nowrap;flex-shrink:0}.property-section-wraper .detail-value{color:#383838;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-wraper .video-item{height:185px;position:relative;background:#333;border-radius:6px}.video-wraper .video-item-video{width:100%;height:100%;border-radius:6px;object-fit:cover}.relation-section-wraper{display:flex;flex-wrap:wrap;gap:10px}.relation-section-wraper .group{width:100%}.relation-section-wraper .section-card{width:100%;height:100%;border:1px solid #DFDFDF}.relation-section-wraper .section-title{margin-bottom:7px}.relation-section-wraper .entity-name-list{font-size:16px;font-weight:700}.relation-section-wraper .view-details-btn{color:#145afd}.relation-section-wraper .detail-item-tag{background-color:#e6f2ff;font-size:14px;border:1px solid #bdf;border-top-left-radius:10px;border-bottom-right-radius:10px;padding:0 13px;color:#1082fe;margin-right:3px}.relation-section-wraper .detail-item-tag1{background-color:#fff5df;font-size:14px;border:1px solid #FFE0B8;border-top-left-radius:10px;border-bottom-right-radius:10px;padding:0 13px;color:#ff9418}.relation-section-wraper .detail-item-list{margin-bottom:3px}.relation-section-wraper .detail-label{color:#676a6c;font-size:14px;white-space:nowrap;flex-shrink:0}.relation-section-wraper .detail-value{color:#383838;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.relation-section-wraper .mb-18px{margin-bottom:18px}.knowledge-card-click{height:100%;overflow:hidden}.knowledge-card-click .drawer-card-title2{font-weight:700;flex-wrap:nowrap;padding-bottom:10px;border-bottom:1px solid #e4e7ed;cursor:pointer;color:#333;margin:14px 0}.knowledge-card-click .drawer-card-title2:hover,.knowledge-card-click .drawer-card-title2.active{color:#145afd}.knowledge-card-click .card-item-click{flex-shrink:0;margin-right:10px;border-right:1px solid #e4e7ed;padding-right:10px;height:100%;background:#fff}.knowledge-card-click .knowledge-card-content{height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.knowledge-card-click .knowledge-card-content::-webkit-scrollbar{display:none}
|
package/package.json
CHANGED
package/lib/index.es40.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { Row as i, Col as p } from "antd";
|
|
3
|
-
const d = ({ properties: t, excludedKeys: l = [] }) => {
|
|
4
|
-
const s = t.filter(
|
|
5
|
-
(e) => !l.includes(e.propertyKey)
|
|
6
|
-
);
|
|
7
|
-
return /* @__PURE__ */ o(i, { className: "property-section-wraper", children: s.map((e, a) => /* @__PURE__ */ r(p, { span: 24, className: "section-item", children: [
|
|
8
|
-
/* @__PURE__ */ r("div", { className: "detail-label", children: [
|
|
9
|
-
e.propertyKey,
|
|
10
|
-
":"
|
|
11
|
-
] }),
|
|
12
|
-
/* @__PURE__ */ r("div", { className: "detail-value", children: [
|
|
13
|
-
" ",
|
|
14
|
-
e.propertyValue,
|
|
15
|
-
" "
|
|
16
|
-
] })
|
|
17
|
-
] }, a)) });
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
d as default
|
|
21
|
-
};
|
package/lib/index.es41.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { Space as d, Button as i } from "antd";
|
|
3
|
-
import { downloadFile as x } from "./index.es12.js";
|
|
4
|
-
const w = ({ documents: l, forceSingleColumn: c = !1, source: r }) => {
|
|
5
|
-
const a = (e) => e.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-pdf-doc inline-block" }) : e.toLowerCase().endsWith(".docx") || e.toLowerCase().endsWith(".doc") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-doc-doc inline-block" }) : e.toLowerCase().endsWith(".pptx") || e.toLowerCase().endsWith(".ppt") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-ppt-doc inline-block" }) : e.toLowerCase().endsWith(".txt") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-txt-doc inline-block" }) : e.toLowerCase().endsWith(".csv") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-csv-doc inline-block" }) : e.toLowerCase().endsWith(".xls") || e.toLowerCase().endsWith(".xlsx") ? /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-xls-doc inline-block" }) : /* @__PURE__ */ s("span", { className: "w-24px h-30px i-custom-else-doc inline-block" }), p = (e) => {
|
|
6
|
-
const n = e.split("/");
|
|
7
|
-
return n[n.length - 1];
|
|
8
|
-
};
|
|
9
|
-
return /* @__PURE__ */ s("div", { className: r === "qa-card" ? "grid grid-cols-1" : `grid ${c ? "grid-cols-1 gap-y-5" : "grid-cols-1 md:grid-cols-2 gap-x-100px gap-y-10px"}`, children: l.map((e, n) => {
|
|
10
|
-
const t = p(e.propertyValue);
|
|
11
|
-
return /* @__PURE__ */ o("div", { className: "flex items-center justify-between transition-all", children: [
|
|
12
|
-
/* @__PURE__ */ o("div", { className: "flex items-center min-w-0 flex-1", children: [
|
|
13
|
-
/* @__PURE__ */ s("div", { className: "mr-3 text-xl flex-shrink-0", children: a(t) }),
|
|
14
|
-
/* @__PURE__ */ s("div", { className: "min-w-0", children: /* @__PURE__ */ s("div", { className: "truncate", title: decodeURIComponent(t), children: decodeURIComponent(t) }) })
|
|
15
|
-
] }),
|
|
16
|
-
/* @__PURE__ */ o(d, { className: "flex-shrink-0", children: [
|
|
17
|
-
/* @__PURE__ */ s(
|
|
18
|
-
i,
|
|
19
|
-
{
|
|
20
|
-
className: "px-0px",
|
|
21
|
-
type: "link",
|
|
22
|
-
onClick: () => window.open(e.propertyValue, "_blank"),
|
|
23
|
-
children: "查看"
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ s(
|
|
27
|
-
i,
|
|
28
|
-
{
|
|
29
|
-
type: "link",
|
|
30
|
-
className: "px-0px",
|
|
31
|
-
onClick: () => {
|
|
32
|
-
x(e.propertyValue, t);
|
|
33
|
-
},
|
|
34
|
-
children: "下载"
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
] })
|
|
38
|
-
] }, n);
|
|
39
|
-
}) });
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
w as default
|
|
43
|
-
};
|
package/lib/index.es42.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as s } from "react";
|
|
3
|
-
import { Image as t } from "antd";
|
|
4
|
-
const m = ({ images: o, forceSingleColumn: i = !1, source: d = "" }) => (s(0), /* @__PURE__ */ e("div", { className: d === "qa-card" ? "grid grid-cols-1" : `grid ${i ? "grid-cols-1 gap-y-3" : "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-20px"}`, children: /* @__PURE__ */ e(
|
|
5
|
-
t.PreviewGroup,
|
|
6
|
-
{
|
|
7
|
-
preview: {
|
|
8
|
-
// onVisibleChange: (visible) => {
|
|
9
|
-
// if (visible) {
|
|
10
|
-
// handlePreviewOpen();
|
|
11
|
-
// } else {
|
|
12
|
-
// handlePreviewClose();
|
|
13
|
-
// }
|
|
14
|
-
// },
|
|
15
|
-
mask: !0,
|
|
16
|
-
zIndex: 9999,
|
|
17
|
-
getContainer: () => document.getElementById("root") || document.body
|
|
18
|
-
},
|
|
19
|
-
children: o.map((r, a) => /* @__PURE__ */ e("div", { className: "group rounded-lg overflow-hidden transition-shadow", children: /* @__PURE__ */ e("div", { className: "h-185px relative overflow-hidden", children: /* @__PURE__ */ e(
|
|
20
|
-
t,
|
|
21
|
-
{
|
|
22
|
-
src: r.propertyValue,
|
|
23
|
-
alt: r.propertyKey,
|
|
24
|
-
style: {
|
|
25
|
-
width: "100%",
|
|
26
|
-
height: "185px",
|
|
27
|
-
objectFit: "cover"
|
|
28
|
-
// cover 保证图片充满容器,可能会裁剪
|
|
29
|
-
// 或者使用 'contain' 保证图片完整显示,可能会有留白
|
|
30
|
-
// objectFit: 'contain',
|
|
31
|
-
},
|
|
32
|
-
className: "transition-transform duration-300 group-hover:scale-105 rounded-6px",
|
|
33
|
-
preview: {
|
|
34
|
-
cover: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "text-white text-14px", children: "点击查看" }) })
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
) }) }, a))
|
|
38
|
-
}
|
|
39
|
-
) }));
|
|
40
|
-
export {
|
|
41
|
-
m as default
|
|
42
|
-
};
|