react-kggraph 0.0.8 → 0.0.10

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 (67) hide show
  1. package/lib/index.es.js +8 -4
  2. package/lib/index.es10.js +188 -0
  3. package/lib/index.es11.js +72 -0
  4. package/lib/index.es12.js +32 -0
  5. package/lib/index.es13.js +72 -0
  6. package/lib/index.es14.js +226 -0
  7. package/lib/index.es15.js +6 -0
  8. package/lib/index.es16.js +38 -0
  9. package/lib/index.es18.js +15469 -0
  10. package/lib/index.es19.js +56 -0
  11. package/lib/index.es20.js +62 -0
  12. package/lib/index.es21.js +71 -0
  13. package/lib/index.es22.js +42 -0
  14. package/lib/index.es23.js +4 -0
  15. package/lib/index.es24.js +4 -0
  16. package/lib/index.es25.js +4 -0
  17. package/lib/index.es26.js +4 -0
  18. package/lib/index.es27.js +4 -0
  19. package/lib/index.es28.js +4 -0
  20. package/lib/index.es29.js +4 -0
  21. package/lib/index.es3.js +356 -0
  22. package/lib/index.es30.js +4 -0
  23. package/lib/index.es31.js +4 -0
  24. package/lib/index.es32.js +4 -0
  25. package/lib/index.es33.js +4 -0
  26. package/lib/index.es35.js +6 -0
  27. package/lib/index.es36.js +4 -0
  28. package/lib/index.es4.js +8 -0
  29. package/lib/index.es5.js +4 -0
  30. package/lib/index.es6.js +601 -0
  31. package/lib/index.es7.js +7 -0
  32. package/lib/index.es8.js +324 -0
  33. package/lib/index.es9.js +423 -0
  34. package/lib/style.css +1 -0
  35. package/package.json +2 -3
  36. package/lib/index10.es.js +0 -4
  37. package/lib/index11.es.js +0 -4
  38. package/lib/index12.es.js +0 -4
  39. package/lib/index13.es.js +0 -4
  40. package/lib/index14.es.js +0 -4
  41. package/lib/index15.es.js +0 -4
  42. package/lib/index16.es.js +0 -4
  43. package/lib/index17.es.js +0 -25
  44. package/lib/index18.es.js +0 -330
  45. package/lib/index19.es.js +0 -5
  46. package/lib/index2.es.js +0 -13
  47. package/lib/index20.es.js +0 -284
  48. package/lib/index22.es.js +0 -70
  49. package/lib/index24.es.js +0 -68
  50. package/lib/index26.es.js +0 -72
  51. package/lib/index27.es.js +0 -32
  52. package/lib/index28.es.js +0 -828
  53. package/lib/index29.es.js +0 -4
  54. package/lib/index30.es.js +0 -161
  55. package/lib/index31.es.js +0 -71
  56. package/lib/index33.es.js +0 -100
  57. package/lib/index34.es.js +0 -250
  58. package/lib/index35.es.js +0 -47
  59. package/lib/index36.es.js +0 -376
  60. package/lib/index37.es.js +0 -12
  61. package/lib/index38.es.js +0 -6
  62. package/lib/index5.es.js +0 -12387
  63. package/lib/index6.es.js +0 -4
  64. package/lib/index7.es.js +0 -4
  65. package/lib/index8.es.js +0 -4
  66. package/lib/index9.es.js +0 -4
  67. package/lib/react-kggraph.css +0 -2
package/lib/index24.es.js DELETED
@@ -1,68 +0,0 @@
1
- import { GraphContext as e } from "./index19.es.js";
2
- /* empty css */
3
- import { useContext as t } from "react";
4
- import { CloseOutlined as n } from "@ant-design/icons";
5
- import { Button as r, Select as i, Space as a } from "antd";
6
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
7
- //#region src/components/Graph/components/PathAnalysis/index.tsx
8
- var l = ({ searchChange: l, isVisible: u, closePath: d, analysis: f }) => {
9
- let { pathNodes: p, setPathNodes: m, graphData: h } = t(e), g = () => {
10
- d && d(!1);
11
- }, _ = () => {
12
- f && f(p);
13
- }, v = h.filter((e) => e.group === "nodes").map((e) => e.data);
14
- return /* @__PURE__ */ s(o, { children: u && /* @__PURE__ */ c("div", {
15
- className: "path-node",
16
- children: [
17
- /* @__PURE__ */ c("div", {
18
- className: "title",
19
- children: [/* @__PURE__ */ s("span", { children: "路径分析" }), /* @__PURE__ */ s(n, { onClick: () => g() })]
20
- }),
21
- p.map((e, t) => /* @__PURE__ */ c("div", {
22
- className: "node-input-row",
23
- children: [
24
- /* @__PURE__ */ c("span", { children: [
25
- "节点 ",
26
- t + 1,
27
- ":"
28
- ] }),
29
- /* @__PURE__ */ s(i, {
30
- showSearch: !0,
31
- style: { width: "60%" },
32
- options: v.map((e) => ({
33
- value: e.name,
34
- label: e.name
35
- })),
36
- placeholder: "请选择节点",
37
- className: "select-node",
38
- value: e,
39
- onChange: (e) => {
40
- let n = [...p];
41
- n[t] = e, m(n);
42
- }
43
- }),
44
- p.length > 2 && /* @__PURE__ */ s("button", {
45
- className: "btn remove-node-btn",
46
- onClick: () => {
47
- m(p.filter((e, n) => n !== t));
48
- },
49
- children: "删除"
50
- })
51
- ]
52
- }, t)),
53
- /* @__PURE__ */ s("div", {
54
- className: "btn-group",
55
- children: /* @__PURE__ */ c(a, { children: [/* @__PURE__ */ s(r, {
56
- onClick: () => m([...p, ""]),
57
- children: "添加节点"
58
- }), /* @__PURE__ */ s(r, {
59
- type: "primary",
60
- onClick: () => _(),
61
- children: "计算路径"
62
- })] })
63
- })
64
- ]
65
- }) });
66
- };
67
- //#endregion
68
- export { l as default };
package/lib/index26.es.js DELETED
@@ -1,72 +0,0 @@
1
- import { GraphContext as e } from "./index19.es.js";
2
- /* empty css */
3
- import { forwardRef as t, useContext as n, useImperativeHandle as r, useState as i } from "react";
4
- import { CloseOutlined as a } from "@ant-design/icons";
5
- import { Button as o, Form as s, Input as c, Select as l } from "antd";
6
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
7
- import p from "antd/es/form/FormItem";
8
- //#region src/components/Graph/components/PathAnalysisLevel/index.tsx
9
- var m = t(({ onLevelClick: t }, m) => {
10
- let [h, g] = i(!1), { graphData: _ } = n(e), [v, y] = i({ level: 1 });
11
- r(m, () => ({
12
- open: (e) => {
13
- g(!0);
14
- },
15
- close: () => g(!1)
16
- }));
17
- let b = () => {
18
- g(!1);
19
- }, x = (e) => {
20
- t(e.name, e.level);
21
- }, S = _.filter((e) => e.group === "nodes").map((e) => e.data);
22
- return /* @__PURE__ */ d(u, { children: h && /* @__PURE__ */ f("div", {
23
- className: "query-node z-10",
24
- children: [/* @__PURE__ */ f("div", {
25
- className: "title",
26
- children: [/* @__PURE__ */ d("span", { children: "分析N层关系" }), /* @__PURE__ */ d(a, { onClick: () => b() })]
27
- }), /* @__PURE__ */ f(s, {
28
- onFinish: x,
29
- initialValues: v,
30
- children: [
31
- /* @__PURE__ */ d(p, {
32
- label: "节点名称",
33
- labelCol: { span: 6 },
34
- name: "name",
35
- wrapperCol: { span: 14 },
36
- children: /* @__PURE__ */ d(l, {
37
- showSearch: !0,
38
- style: { width: "200px" },
39
- options: S.map((e) => ({
40
- value: e.name,
41
- label: e.name
42
- }))
43
- })
44
- }),
45
- /* @__PURE__ */ d(p, {
46
- id: "level",
47
- label: "层级",
48
- labelCol: { span: 6 },
49
- name: "level",
50
- wrapperCol: { span: 14 },
51
- children: /* @__PURE__ */ d(c, {
52
- placeholder: "请输入",
53
- style: { width: 200 },
54
- type: "number",
55
- min: 1
56
- })
57
- }),
58
- /* @__PURE__ */ d(p, {
59
- label: null,
60
- style: { textAlign: "center" },
61
- children: /* @__PURE__ */ d(o, {
62
- type: "primary",
63
- htmlType: "submit",
64
- children: "查询"
65
- })
66
- })
67
- ]
68
- })]
69
- }) });
70
- });
71
- //#endregion
72
- export { m as default };
package/lib/index27.es.js DELETED
@@ -1,32 +0,0 @@
1
- import { __commonJSMin as e } from "./index2.es.js";
2
- //#region node_modules/classnames/index.js
3
- var t = /* @__PURE__ */ e(((e, t) => {
4
- (function() {
5
- var e = {}.hasOwnProperty;
6
- function n() {
7
- for (var e = "", t = 0; t < arguments.length; t++) {
8
- var n = arguments[t];
9
- n && (e = i(e, r(n)));
10
- }
11
- return e;
12
- }
13
- function r(t) {
14
- if (typeof t == "string" || typeof t == "number") return t;
15
- if (typeof t != "object") return "";
16
- if (Array.isArray(t)) return n.apply(null, t);
17
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
18
- var r = "";
19
- for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
20
- return r;
21
- }
22
- function i(e, t) {
23
- return t ? e ? e + " " + t : e + t : e;
24
- }
25
- t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
26
- return n;
27
- }) : window.classNames = n;
28
- })();
29
- }));
30
- //#endregion
31
- export default t();
32
- export { t as require_classnames };