@cccsaurora/clue-ui 1.2.3-dev.266 → 1.2.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.
- package/ActionForm-DlOXqMUx.js +4460 -0
- package/AnnotationDetails-Bk-p0F6h.js +160 -0
- package/AnnotationPreview-jzZvkCxJ.js +140 -0
- package/ClueEnrichContext-KqRuuWNS.js +418 -0
- package/FlexOne-BXWFOd1T.js +6 -0
- package/_MapCache-BiTi0iqu.js +180 -0
- package/_Uint8Array-BQNOM9Rr.js +101 -0
- package/_baseAssignValue-CNMLQZco.js +20 -0
- package/_baseClone-BnT-6pyM.js +207 -0
- package/_baseExtremum-Ca2EHgy2.js +16 -0
- package/_baseFlatten-Bfr_Molw.js +72 -0
- package/_baseGet-DSZygzyq.js +79 -0
- package/_baseIsEqual-VgvaAFZG.js +147 -0
- package/_baseIteratee-Dbfsw5z8.js +95 -0
- package/_baseSlice-M5RKzt1A.js +10 -0
- package/_baseSum-wEbgNeUs.js +10 -0
- package/_baseUniq-BJcj69PL.js +79 -0
- package/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/_createAggregator-k3TuAnxT.js +53 -0
- package/_getPrototype-Cr1Mk7BC.js +5 -0
- package/_getTag-CK2Sffaq.js +90 -0
- package/_isIterateeCall-DkJP7Rbx.js +13 -0
- package/_setToArray-C7yMOeww.js +29 -0
- package/cloneDeep-CF8TtLHr.js +8 -0
- package/components/AnnotationBody.js +35 -49
- package/components/AnnotationDetailPopover.js +30 -36
- package/components/AnnotationDetails.js +7 -7
- package/components/AnnotationEntry.js +35 -35
- package/components/AnnotationPreview.js +5 -5
- package/components/ClassificationChip.js +23 -44
- package/components/CountBadge.js +26 -31
- package/components/EnrichedCard.js +97 -110
- package/components/EnrichedChip.js +105 -130
- package/components/EnrichedTypography.js +107 -133
- package/components/ErrorBoundary.js +24 -28
- package/components/RetryFailedEnrichments.js +9 -10
- package/components/SourcePicker.js +49 -57
- package/components/actions/ActionForm.js +4 -4
- package/components/actions/ExecutePopover.js +59 -75
- package/components/actions/ResultModal.js +4 -4
- package/components/actions/form/schemaAdapter.js +23 -39
- package/components/actions/formats/FileResult.js +59 -86
- package/components/actions/formats/index.js +10 -21
- package/components/display/graph/ExpandMoreButton.js +10 -10
- package/components/display/graph/elements/NodeCard.js +91 -111
- package/components/display/graph/elements/NodeTag.js +13 -15
- package/components/display/graph/index.js +202 -261
- package/components/display/graph/visualizations/Leaf.js +69 -88
- package/components/display/graph/visualizations/cloud/index.js +81 -98
- package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
- package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
- package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
- package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
- package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
- package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
- package/components/display/graph/visualizations/icons/index.js +13 -14
- package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
- package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
- package/components/display/graph/visualizations/tree/Triangle.js +13 -13
- package/components/display/graph/visualizations/tree/index.js +306 -408
- package/components/display/icons/Iconified.js +12 -27
- package/components/display/json/index.js +4 -4
- package/components/display/markdown/index.js +5770 -8678
- package/components/enrichment/EnrichPopover.js +46 -54
- package/components/fetchers/Fetcher.js +119 -158
- package/components/fetchers/PreviewModal.js +17 -20
- package/components/fetchers/StatusChip.js +17 -21
- package/components/group/Entry.js +11 -13
- package/components/group/Group.js +10 -13
- package/components/group/GroupControl.js +65 -76
- package/components/stats/QueryStatus.js +33 -43
- package/countBy-CdYegFSu.js +8 -0
- package/data/event.js +4 -6
- package/database/index.js +2 -2
- package/debounce-DryYcbJ4.js +56 -0
- package/get-CH7kz5Ix.js +8 -0
- package/groupBy-br8xmD2R.js +8 -0
- package/hooks/ClueActionContext.js +6 -6
- package/hooks/ClueComponentContext.js +23 -29
- package/hooks/ClueConfigProvider.js +12 -14
- package/hooks/ClueDatabaseContext.js +13 -19
- package/hooks/ClueEnrichContext.js +8 -8
- package/hooks/ClueFetcherContext.js +56 -83
- package/hooks/ClueGroupContext.js +14 -17
- package/hooks/CluePopupContext.js +5 -5
- package/hooks/ClueProvider.js +10 -12
- package/hooks/selectors.js +7 -7
- package/hooks/useActionResult.js +2 -2
- package/hooks/useAnnotations.js +31 -47
- package/hooks/useClue.js +4 -6
- package/hooks/useClueActions.js +3 -3
- package/hooks/useClueConfig.js +4 -6
- package/hooks/useClueTypeConfig.js +3 -3
- package/hooks/useComparator.js +435 -722
- package/hooks/useErrors.js +18 -22
- package/hooks/useFetcherResult.js +24 -33
- package/hooks/useMyHighlights.js +36 -66
- package/hooks/useMyLocalStorage.js +37 -66
- package/iconify-BBckr5AQ.js +1263 -0
- package/icons/Action.js +49 -66
- package/icons/Assessment.js +69 -85
- package/icons/Context.js +63 -77
- package/icons/Opinion.js +60 -76
- package/icons/iconMap.js +2 -2
- package/identity-ByMq8VxU.js +6 -0
- package/index-BHAe_V9n.js +12768 -0
- package/index-BK-zfYhR.js +358 -0
- package/index-CA5CUNZO.js +975 -0
- package/index-Dj5C04IX.js +568 -0
- package/index-p5_wX7q1.js +11729 -0
- package/isNil-CjWwlQS3.js +6 -0
- package/isObject-B53jY8Qg.js +7 -0
- package/isObjectLike-BatpeCIi.js +29 -0
- package/isSymbol-C3_SC0Qp.js +8 -0
- package/last-7CdUxN0r.js +7 -0
- package/main.js +60 -60
- package/maxBy-Bc0dYHcO.js +8 -0
- package/package.json +1 -1
- package/sortBy-DY2JBf9n.js +75 -0
- package/sumBy-DuMASLPd.js +8 -0
- package/text/Frequency.js +23 -42
- package/toFinite-BMy6GObD.js +14 -0
- package/toNumber-YVhnnJv4.js +31 -0
- package/useClueTypeConfig-Ct9Ygter.js +2292 -0
- package/utils/chain.js +65 -92
- package/utils/classificationParser.js +256 -519
- package/utils/constants.js +10 -35
- package/utils/graph.js +45 -72
- package/utils/hashUtil.js +7 -7
- package/utils/line.js +81 -131
- package/utils/loggerUtil.js +3 -5
- package/utils/sessionStorage.js +27 -41
- package/utils/time.js +423 -423
- package/utils/utils.js +9 -9
- package/utils/window.js +10 -21
- package/utils-DmwSUrum.js +129 -0
- package/ActionForm-uDp92tN2.js +0 -5941
- package/AnnotationDetails-DGYfOiWm.js +0 -175
- package/AnnotationPreview-bHObsb3P.js +0 -188
- package/ClueEnrichContext-CJEJxrgs.js +0 -541
- package/FlexOne-BSYAhhtG.js +0 -9
- package/_MapCache-WmuDdwuH.js +0 -222
- package/_Uint8Array-B7JqpgFX.js +0 -128
- package/_baseAssignValue-CGTuELqU.js +0 -25
- package/_baseClone-CkNrTyhm.js +0 -283
- package/_baseExtremum-kob8QXyt.js +0 -18
- package/_baseFlatten-jIR_sN_-.js +0 -92
- package/_baseGet-Bx3A4Qfp.js +0 -108
- package/_baseIsEqual-C5OTWzTk.js +0 -208
- package/_baseIteratee-avi7MX2o.js +0 -126
- package/_baseSlice-GAv_YFTT.js +0 -20
- package/_baseSum-D0WC1dN0.js +0 -13
- package/_baseUniq-BI9GIHMF.js +0 -115
- package/_commonjsHelpers-DWwsNxpa.js +0 -8
- package/_createAggregator-QD8MzKwe.js +0 -63
- package/_getPrototype-CU0j_POw.js +0 -5
- package/_getTag-Ckxxfr88.js +0 -126
- package/_isIterateeCall-Ds3sw2SF.js +0 -17
- package/_setToArray-CaPKQhcz.js +0 -33
- package/cloneDeep-DJrLSw8W.js +0 -8
- package/countBy-c6S3dvSW.js +0 -14
- package/debounce-bV0h5FC5.js +0 -92
- package/get-DSsNkRQs.js +0 -8
- package/groupBy-xqz-n0Vd.js +0 -14
- package/iconify-CXMreGTg.js +0 -1782
- package/identity-CPGTqrE4.js +0 -6
- package/index-AMfoEg_6.js +0 -696
- package/index-B6C2a_Lg.js +0 -1172
- package/index-C12gPw2W.js +0 -17698
- package/index-DCKkHTvx.js +0 -15750
- package/index-JcKyZeoY.js +0 -465
- package/isNil-CIubwp4T.js +0 -6
- package/isObject-FTY-5JQX.js +0 -7
- package/isObjectLike-OAgjjZye.js +0 -48
- package/isSymbol-Xd2FsJyp.js +0 -8
- package/last-CUCl67Im.js +0 -7
- package/maxBy-IKHzFrCS.js +0 -8
- package/sortBy-DfSj8IoJ.js +0 -96
- package/sumBy-D-hb_NY-.js +0 -8
- package/toFinite-Bc55msYj.js +0 -16
- package/toNumber-DPxy1FBy.js +0 -39
- package/useClueTypeConfig-Z1LFp01b.js +0 -3289
- package/utils-HmNPuoDB.js +0 -199
|
@@ -1,125 +1,106 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { i as
|
|
3
|
-
import { useState, useMemo, useCallback, useEffect } from "react";
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return typeof
|
|
1
|
+
import { jsxs as U, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { i as _, b as G } from "../../../../isObjectLike-BatpeCIi.js";
|
|
3
|
+
import { useState as N, useMemo as Z, useCallback as M, useEffect as d } from "react";
|
|
4
|
+
var g = "[object Number]";
|
|
5
|
+
function q(s) {
|
|
6
|
+
return typeof s == "number" || _(s) && G(s) == g;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
children
|
|
8
|
+
const v = 10, J = ({
|
|
9
|
+
nodeId: s,
|
|
10
|
+
label: x = s,
|
|
11
|
+
x: r,
|
|
12
|
+
y: a,
|
|
13
|
+
height: h,
|
|
14
|
+
nodeRadius: k = v,
|
|
15
|
+
nodeColor: $,
|
|
16
|
+
nodeOpacity: m = 1,
|
|
17
|
+
letterSize: l,
|
|
18
|
+
letterWidth: O,
|
|
19
|
+
textColor: W,
|
|
20
|
+
style: t = {},
|
|
21
|
+
selected: p = !1,
|
|
22
|
+
alwaysShowText: j = !1,
|
|
23
|
+
onHoverChanged: i,
|
|
24
|
+
onClick: o,
|
|
25
|
+
children: A
|
|
27
26
|
}) => {
|
|
28
|
-
const [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
if (isSelected) {
|
|
36
|
-
_classNames.push("selected");
|
|
37
|
-
}
|
|
38
|
-
return _classNames;
|
|
39
|
-
}, [isHovered, isSelected]);
|
|
40
|
-
const handleOnClick = useCallback(
|
|
41
|
-
(event) => {
|
|
42
|
-
onClick == null ? void 0 : onClick(nodeId, !isSelected, event);
|
|
43
|
-
setIsSelected(!isSelected);
|
|
27
|
+
const [c, n] = N(p), [u, D] = N(!1), E = Z(() => {
|
|
28
|
+
const e = ["node"];
|
|
29
|
+
return u && e.push("hover"), c && e.push("selected"), e;
|
|
30
|
+
}, [u, c]), S = M(
|
|
31
|
+
(e) => {
|
|
32
|
+
o == null || o(s, !c, e), n(!c);
|
|
44
33
|
},
|
|
45
|
-
[
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
setIsHovered(value);
|
|
50
|
-
onHoverChanged == null ? void 0 : onHoverChanged(nodeId, value);
|
|
34
|
+
[s, o, c]
|
|
35
|
+
), L = M(
|
|
36
|
+
(e) => {
|
|
37
|
+
D(e), i == null || i(s, e);
|
|
51
38
|
},
|
|
52
|
-
[
|
|
39
|
+
[s, i]
|
|
53
40
|
);
|
|
54
|
-
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
if (isNumber(style.strokeWidth)) {
|
|
58
|
-
strokeWidth = `${nodeRadius * style.strokeWidth}px`;
|
|
59
|
-
} else {
|
|
60
|
-
strokeWidth = style.strokeWidth;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return /* @__PURE__ */ jsxs(
|
|
41
|
+
d(() => n(p), [p]);
|
|
42
|
+
let f = `${k}px`;
|
|
43
|
+
return t.strokeWidth && (q(t.strokeWidth) ? f = `${k * t.strokeWidth}px` : f = t.strokeWidth), /* @__PURE__ */ U(
|
|
64
44
|
"g",
|
|
65
45
|
{
|
|
66
|
-
id: "node-" +
|
|
46
|
+
id: "node-" + s.replace(/[^A-Za-z0-9]*/g, ""),
|
|
67
47
|
style: { strokeLinecap: "round" },
|
|
68
|
-
className:
|
|
69
|
-
onClick:
|
|
70
|
-
onMouseOver: () =>
|
|
71
|
-
onMouseLeave: () =>
|
|
48
|
+
className: E.join(" "),
|
|
49
|
+
onClick: S,
|
|
50
|
+
onMouseOver: () => L(!0),
|
|
51
|
+
onMouseLeave: () => L(!1),
|
|
72
52
|
children: [
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
53
|
+
A,
|
|
54
|
+
/* @__PURE__ */ b(
|
|
75
55
|
"path",
|
|
76
56
|
{
|
|
77
57
|
className: "border",
|
|
78
|
-
d: `M ${
|
|
58
|
+
d: `M ${r} ${a} L ${r} ${a + Math.max(h, 0)}`,
|
|
79
59
|
style: {
|
|
80
|
-
strokeOpacity:
|
|
81
|
-
...
|
|
82
|
-
strokeWidth: `calc(${
|
|
83
|
-
stroke:
|
|
60
|
+
strokeOpacity: m,
|
|
61
|
+
...t,
|
|
62
|
+
strokeWidth: `calc(${f} * 2)`,
|
|
63
|
+
stroke: t.stroke ?? $.border
|
|
84
64
|
}
|
|
85
65
|
},
|
|
86
|
-
|
|
66
|
+
s + "-border"
|
|
87
67
|
),
|
|
88
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ b(
|
|
89
69
|
"path",
|
|
90
70
|
{
|
|
91
71
|
className: "center",
|
|
92
|
-
d: `M ${
|
|
72
|
+
d: `M ${r} ${a} L ${r} ${a + Math.max(h, 0)}`,
|
|
93
73
|
style: {
|
|
94
|
-
strokeOpacity:
|
|
95
|
-
...
|
|
96
|
-
strokeWidth,
|
|
97
|
-
stroke:
|
|
74
|
+
strokeOpacity: m,
|
|
75
|
+
...t,
|
|
76
|
+
strokeWidth: f,
|
|
77
|
+
stroke: t.fill ?? $.center
|
|
98
78
|
}
|
|
99
79
|
},
|
|
100
|
-
|
|
80
|
+
s + "-middle"
|
|
101
81
|
),
|
|
102
|
-
(
|
|
82
|
+
(u || j) && x.split(`
|
|
83
|
+
`).reverse().map((e, T, F) => /* @__PURE__ */ b(
|
|
103
84
|
"text",
|
|
104
85
|
{
|
|
105
|
-
x:
|
|
106
|
-
y:
|
|
107
|
-
fill:
|
|
86
|
+
x: r + O,
|
|
87
|
+
y: a - l / 2 + F.length - T * l,
|
|
88
|
+
fill: W,
|
|
108
89
|
style: {
|
|
109
90
|
cursor: "default",
|
|
110
91
|
fontFamily: '"Lucida Console", monospace',
|
|
111
|
-
fontSize:
|
|
112
|
-
fillOpacity:
|
|
92
|
+
fontSize: l + "px",
|
|
93
|
+
fillOpacity: m
|
|
113
94
|
},
|
|
114
|
-
children:
|
|
95
|
+
children: e
|
|
115
96
|
},
|
|
116
|
-
|
|
97
|
+
s + "-label-" + e
|
|
117
98
|
))
|
|
118
99
|
]
|
|
119
100
|
},
|
|
120
|
-
|
|
101
|
+
s
|
|
121
102
|
);
|
|
122
103
|
};
|
|
123
104
|
export {
|
|
124
|
-
|
|
105
|
+
J as default
|
|
125
106
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import
|
|
4
|
-
import { useMyLocalStorageItem } from "../../../../../hooks/useMyLocalStorage.js";
|
|
5
|
-
import { StorageKey } from "../../../../../utils/constants.js";
|
|
6
|
-
import { cyrb53 } from "../../../../../utils/graph.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { s as
|
|
9
|
-
import { memo, useRef, useMemo, useCallback } from "react";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { o as I, d as N, S as B, a as T, h as _ } from "../../../../../index-p5_wX7q1.js";
|
|
3
|
+
import A from "../../../../../hooks/useMyHighlights.js";
|
|
4
|
+
import { useMyLocalStorageItem as D } from "../../../../../hooks/useMyLocalStorage.js";
|
|
5
|
+
import { StorageKey as F } from "../../../../../utils/constants.js";
|
|
6
|
+
import { cyrb53 as K } from "../../../../../utils/graph.js";
|
|
7
|
+
import { c as U } from "../../../../../countBy-CdYegFSu.js";
|
|
8
|
+
import { s as X } from "../../../../../sumBy-DuMASLPd.js";
|
|
9
|
+
import { memo as Y, useRef as p, useMemo as c, useCallback as q } from "react";
|
|
10
|
+
import G from "../Leaf.js";
|
|
11
|
+
const u = {
|
|
12
12
|
width: "100%",
|
|
13
13
|
backgroundColor: "grey",
|
|
14
14
|
textColor: "black",
|
|
@@ -23,119 +23,102 @@ const DEFAULT_OPTIONS = {
|
|
|
23
23
|
circlePadding: null
|
|
24
24
|
// We'll make this dynamic
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
const
|
|
26
|
+
u.circlePadding = 3 * u.nodeRadius;
|
|
27
|
+
const J = ({ svgRef: S, graph: h, options: b = {} }) => {
|
|
28
28
|
const {
|
|
29
|
-
width,
|
|
30
|
-
backgroundColor,
|
|
31
|
-
textColor
|
|
32
|
-
letterSize,
|
|
33
|
-
letterWidth,
|
|
34
|
-
circlePadding,
|
|
35
|
-
nodeRadius,
|
|
36
|
-
nodeColor,
|
|
37
|
-
lineWidth
|
|
29
|
+
width: M,
|
|
30
|
+
backgroundColor: O,
|
|
31
|
+
textColor: $,
|
|
32
|
+
letterSize: m,
|
|
33
|
+
letterWidth: v,
|
|
34
|
+
circlePadding: g,
|
|
35
|
+
nodeRadius: d,
|
|
36
|
+
nodeColor: L,
|
|
37
|
+
lineWidth: f
|
|
38
38
|
} = {
|
|
39
|
-
...
|
|
40
|
-
...
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const nodeLocations = useRef({});
|
|
47
|
-
const nodes = useMemo(
|
|
48
|
-
() => graph.data.flatMap(
|
|
49
|
-
(cloud, cloudIndex) => cloud.map((node) => ({
|
|
50
|
-
...node,
|
|
51
|
-
cloud: cloudIndex.toString()
|
|
39
|
+
...u,
|
|
40
|
+
...b
|
|
41
|
+
}, { onNodeHoveredChanged: W, onNodeClicked: w, nodeOpacities: z, highlightedPath: s } = A(h), [y] = D(F.COLOR_SCHEME, "Spectral"), P = p(2 * d), R = p(m + d), j = p({}), i = c(
|
|
42
|
+
() => h.data.flatMap(
|
|
43
|
+
(t, e) => t.map((r) => ({
|
|
44
|
+
...r,
|
|
45
|
+
cloud: e.toString()
|
|
52
46
|
}))
|
|
53
47
|
),
|
|
54
|
-
[
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
() => ordinal(
|
|
59
|
-
Object.keys(clouds).map((cloud) => (d3[`interpolate${colorScheme}`] ?? Spectral)(cyrb53(cloud)))
|
|
48
|
+
[h.data]
|
|
49
|
+
), n = c(() => U(i, (t) => t.cloud), [i]), H = c(
|
|
50
|
+
() => I(
|
|
51
|
+
Object.keys(n).map((t) => (N[`interpolate${y}`] ?? B)(K(t)))
|
|
60
52
|
),
|
|
61
|
-
[
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
target: parent
|
|
53
|
+
[n, y]
|
|
54
|
+
), E = c(
|
|
55
|
+
() => i.flatMap(
|
|
56
|
+
(t) => ((t == null ? void 0 : t.edges) ?? []).map((e) => ({
|
|
57
|
+
source: t.id,
|
|
58
|
+
target: e
|
|
68
59
|
}))
|
|
69
60
|
),
|
|
70
|
-
[
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
children: nodes.filter((node) => node.cloud === id).map((node) => ({
|
|
77
|
-
...node,
|
|
61
|
+
[i]
|
|
62
|
+
), k = c(() => T().size([600, 600]).padding(g), [g]), l = c(() => {
|
|
63
|
+
const t = Object.entries(n).map(([e]) => ({
|
|
64
|
+
id: e,
|
|
65
|
+
children: i.filter((r) => r.cloud === e).map((r) => ({
|
|
66
|
+
...r,
|
|
78
67
|
value: 1
|
|
79
68
|
}))
|
|
80
69
|
}));
|
|
81
|
-
return
|
|
82
|
-
|
|
70
|
+
return k(
|
|
71
|
+
_({ children: t }).sum((e) => e.children ? X(e.children, (r) => r.value) : e.value)
|
|
83
72
|
).children;
|
|
84
|
-
}, [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
[highlightedPath]
|
|
73
|
+
}, [n, i, k]), C = q(
|
|
74
|
+
(t) => s.size === 0 || s.has(t.source) && s.has(t.target) ? 1 : 0.2,
|
|
75
|
+
[s]
|
|
88
76
|
);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const source = cloudLocations.flatMap((c) => c.children).find((node) => node.data.id === link.source);
|
|
96
|
-
const target = cloudLocations.flatMap((c) => c.children).find((node) => node.data.id === link.target);
|
|
97
|
-
return /* @__PURE__ */ jsxs("g", { children: [
|
|
98
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
return P.current = 2 * d, R.current = m + d, j.current = {}, /* @__PURE__ */ a("svg", { id: "viz", ref: S, width: M, height: 600, style: { backgroundColor: O }, children: /* @__PURE__ */ x("g", { id: "view", children: [
|
|
78
|
+
l.map((t) => /* @__PURE__ */ a("g", { children: /* @__PURE__ */ a("circle", { cx: t.x, cy: t.y, r: t.r, strokeWidth: 4, stroke: H(t.data.id), fill: "none" }) }, t.data.id)),
|
|
79
|
+
E.map((t) => {
|
|
80
|
+
const e = l.flatMap((o) => o.children).find((o) => o.data.id === t.source), r = l.flatMap((o) => o.children).find((o) => o.data.id === t.target);
|
|
81
|
+
return /* @__PURE__ */ x("g", { children: [
|
|
82
|
+
/* @__PURE__ */ a(
|
|
99
83
|
"path",
|
|
100
84
|
{
|
|
101
|
-
d: `M ${
|
|
85
|
+
d: `M ${e.x} ${e.y} L ${r.x} ${r.y}`,
|
|
102
86
|
stroke: "black",
|
|
103
|
-
strokeWidth:
|
|
104
|
-
strokeOpacity:
|
|
87
|
+
strokeWidth: f + 3,
|
|
88
|
+
strokeOpacity: C(t)
|
|
105
89
|
}
|
|
106
90
|
),
|
|
107
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ a(
|
|
108
92
|
"path",
|
|
109
93
|
{
|
|
110
|
-
d: `M ${
|
|
94
|
+
d: `M ${e.x} ${e.y} L ${r.x} ${r.y}`,
|
|
111
95
|
stroke: "white",
|
|
112
|
-
strokeWidth:
|
|
113
|
-
strokeOpacity:
|
|
96
|
+
strokeWidth: f,
|
|
97
|
+
strokeOpacity: C(t)
|
|
114
98
|
}
|
|
115
99
|
)
|
|
116
|
-
] },
|
|
100
|
+
] }, e.data.id + r.data.id);
|
|
117
101
|
}),
|
|
118
|
-
|
|
119
|
-
|
|
102
|
+
l.map((t) => /* @__PURE__ */ a("g", { children: t.children.map((e) => /* @__PURE__ */ a(
|
|
103
|
+
G,
|
|
120
104
|
{
|
|
121
|
-
nodeId:
|
|
105
|
+
nodeId: e.data.id,
|
|
122
106
|
height: 0,
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
nodeRadius,
|
|
126
|
-
nodeColor,
|
|
127
|
-
nodeOpacity:
|
|
128
|
-
letterSize,
|
|
129
|
-
letterWidth,
|
|
130
|
-
textColor
|
|
131
|
-
onHoverChanged:
|
|
132
|
-
onClick:
|
|
107
|
+
x: e.x,
|
|
108
|
+
y: e.y,
|
|
109
|
+
nodeRadius: d,
|
|
110
|
+
nodeColor: L,
|
|
111
|
+
nodeOpacity: z(e.data.id),
|
|
112
|
+
letterSize: m,
|
|
113
|
+
letterWidth: v,
|
|
114
|
+
textColor: $,
|
|
115
|
+
onHoverChanged: W,
|
|
116
|
+
onClick: w
|
|
133
117
|
},
|
|
134
|
-
|
|
135
|
-
)) },
|
|
118
|
+
e.data.id
|
|
119
|
+
)) }, t.id))
|
|
136
120
|
] }) });
|
|
137
|
-
};
|
|
138
|
-
const Cloud$1 = memo(Cloud);
|
|
121
|
+
}, dt = Y(J);
|
|
139
122
|
export {
|
|
140
|
-
|
|
123
|
+
dt as default
|
|
141
124
|
};
|
|
@@ -1,37 +1,32 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as x } from "react";
|
|
3
|
+
const d = {
|
|
4
4
|
size: 20
|
|
5
|
-
}
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
...
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return _props;
|
|
17
|
-
}, [props]);
|
|
18
|
-
return /* @__PURE__ */ jsxs("g", { children: [
|
|
19
|
-
/* @__PURE__ */ jsx("circle", { cx: props.x, cy: props.y, r: size / 2, style: props.circleStyle ?? {} }),
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
5
|
+
}, y = (e) => {
|
|
6
|
+
const { width: c, height: i, size: t } = {
|
|
7
|
+
...d,
|
|
8
|
+
...e
|
|
9
|
+
}, l = (e.x ?? 0) - (c ?? t) / 2, r = (e.y ?? 0) - (i ?? t) / 2, h = x(() => {
|
|
10
|
+
const n = { ...e };
|
|
11
|
+
return delete n.circleStyle, n;
|
|
12
|
+
}, [e]);
|
|
13
|
+
return /* @__PURE__ */ o("g", { children: [
|
|
14
|
+
/* @__PURE__ */ s("circle", { cx: e.x, cy: e.y, r: t / 2, style: e.circleStyle ?? {} }),
|
|
15
|
+
/* @__PURE__ */ s(
|
|
21
16
|
"svg",
|
|
22
17
|
{
|
|
23
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
19
|
viewBox: "0 -960 960 960",
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
...
|
|
28
|
-
x,
|
|
29
|
-
y,
|
|
30
|
-
children:
|
|
20
|
+
width: c ?? t,
|
|
21
|
+
height: i ?? t,
|
|
22
|
+
...h,
|
|
23
|
+
x: l,
|
|
24
|
+
y: r,
|
|
25
|
+
children: e.children
|
|
31
26
|
}
|
|
32
27
|
)
|
|
33
28
|
] });
|
|
34
29
|
};
|
|
35
30
|
export {
|
|
36
|
-
|
|
31
|
+
y as default
|
|
37
32
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as h } from "@mui/material";
|
|
3
|
+
import l from "./BaseIcon.js";
|
|
4
|
+
const v = (t) => {
|
|
5
|
+
const e = h();
|
|
6
|
+
return /* @__PURE__ */ r(
|
|
7
|
+
l,
|
|
8
8
|
{
|
|
9
|
-
...
|
|
10
|
-
style: { fill:
|
|
11
|
-
circleStyle: { fill:
|
|
12
|
-
children: /* @__PURE__ */
|
|
9
|
+
...t,
|
|
10
|
+
style: { fill: e.palette.getContrastText(e.palette.error.dark), ...t.style },
|
|
11
|
+
circleStyle: { fill: e.palette.error.dark, ...t.style },
|
|
12
|
+
children: /* @__PURE__ */ r("path", { d: "M480-200q66 0 113-47t47-113v-160q0-66-47-113t-113-47q-66 0-113 47t-47 113v160q0 66 47 113t113 47Zm-80-120h160v-80H400v80Zm0-160h160v-80H400v80Zm80 40Zm0 320q-65 0-120.5-32T272-240H160v-80h84q-3-20-3.5-40t-.5-40h-80v-80h80q0-20 .5-40t3.5-40h-84v-80h112q14-23 31.5-43t40.5-35l-64-66 56-56 86 86q28-9 57-9t57 9l88-86 56 56-66 66q23 15 41.5 34.5T688-640h112v80h-84q3 20 3.5 40t.5 40h80v80h-80q0 20-.5 40t-3.5 40h84v80H688q-32 56-87.5 88T480-120Z" })
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
v as default
|
|
18
18
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as a } from "@mui/material";
|
|
3
|
+
import r from "./BaseIcon.js";
|
|
4
|
+
const n = (t) => {
|
|
5
|
+
const e = a();
|
|
6
|
+
return /* @__PURE__ */ l(
|
|
7
|
+
r,
|
|
8
8
|
{
|
|
9
|
-
...
|
|
10
|
-
style: { fill:
|
|
11
|
-
circleStyle: { fill:
|
|
12
|
-
children: /* @__PURE__ */
|
|
9
|
+
...t,
|
|
10
|
+
style: { fill: e.palette.getContrastText(e.palette.info.dark), ...t.style },
|
|
11
|
+
circleStyle: { fill: e.palette.info.dark, ...t.style },
|
|
12
|
+
children: /* @__PURE__ */ l(
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
15
15
|
style: { transform: "scale(0.75) translateX(16%) translateY(-18%)" },
|
|
@@ -20,5 +20,5 @@ const HostIcon = (props) => {
|
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
n as default
|
|
24
24
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as v } from "@mui/material";
|
|
3
|
+
import r from "./BaseIcon.js";
|
|
4
|
+
const s = (t) => {
|
|
5
|
+
const e = v();
|
|
6
|
+
return /* @__PURE__ */ l(
|
|
7
|
+
r,
|
|
8
8
|
{
|
|
9
|
-
...
|
|
10
|
-
style: { fill:
|
|
11
|
-
circleStyle: { fill:
|
|
12
|
-
children: /* @__PURE__ */
|
|
9
|
+
...t,
|
|
10
|
+
style: { fill: e.palette.getContrastText(e.palette.info.dark), ...t.style },
|
|
11
|
+
circleStyle: { fill: e.palette.info.dark, ...t.style },
|
|
12
|
+
children: /* @__PURE__ */ l(
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
15
15
|
style: { transform: "scale(0.75) translateX(16%) translateY(-18%)" },
|
|
@@ -20,5 +20,5 @@ const NetworkIcon = (props) => {
|
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
s as default
|
|
24
24
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme, colors } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as r, colors as e } from "@mui/material";
|
|
3
|
+
import l from "./BaseIcon.js";
|
|
4
|
+
const c = (h) => {
|
|
5
|
+
const t = r();
|
|
6
|
+
return /* @__PURE__ */ v(
|
|
7
|
+
l,
|
|
8
8
|
{
|
|
9
|
-
...
|
|
10
|
-
style: { fill:
|
|
11
|
-
circleStyle: { fill:
|
|
12
|
-
children: /* @__PURE__ */
|
|
9
|
+
...h,
|
|
10
|
+
style: { fill: t.palette.getContrastText(e.grey[500]), ...h.style },
|
|
11
|
+
circleStyle: { fill: e.grey[500], ...h.style },
|
|
12
|
+
children: /* @__PURE__ */ v("path", { d: "M360-360v-240h240v240H360Zm80-80h80v-80h-80v80Zm-80 320v-80h-80q-33 0-56.5-23.5T200-280v-80h-80v-80h80v-80h-80v-80h80v-80q0-33 23.5-56.5T280-760h80v-80h80v80h80v-80h80v80h80q33 0 56.5 23.5T760-680v80h80v80h-80v80h80v80h-80v80q0 33-23.5 56.5T680-200h-80v80h-80v-80h-80v80h-80Zm320-160v-400H280v400h400ZM480-480Z" })
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
c as default
|
|
18
18
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as T } from "@mui/material";
|
|
3
|
+
import l from "./BaseIcon.js";
|
|
4
|
+
const o = (t) => {
|
|
5
|
+
const e = T();
|
|
6
|
+
return /* @__PURE__ */ q(
|
|
7
|
+
l,
|
|
8
8
|
{
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
style: { fill:
|
|
12
|
-
circleStyle: { fill:
|
|
13
|
-
children: /* @__PURE__ */
|
|
9
|
+
...t,
|
|
10
|
+
...t,
|
|
11
|
+
style: { fill: e.palette.getContrastText(e.palette.info.dark), ...t.style },
|
|
12
|
+
circleStyle: { fill: e.palette.info.dark, ...t.style },
|
|
13
|
+
children: /* @__PURE__ */ q("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-80q-100 0-170-70t-70-170q0-100 70-170t170-70q100 0 170 70t70 170q0 100-70 170t-170 70Zm0-80q66 0 113-47t47-113q0-66-47-113t-113-47q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Z" })
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
o as default
|
|
19
19
|
};
|