@cccsaurora/clue-ui 1.2.0-dev.253 → 1.2.0
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-pWyIi01Z.js +4460 -0
- package/AnnotationDetails-11P7yhyx.js +160 -0
- package/AnnotationPreview-BGqlBBcp.js +140 -0
- package/ClueEnrichContext-DDZf646J.js +418 -0
- package/FlexOne-BXWFOd1T.js +6 -0
- package/_MapCache-BiTi0iqu.js +180 -0
- package/_Uint8Array-TJBs9NS2.js +101 -0
- package/_baseAssignValue-CNMLQZco.js +20 -0
- package/_baseClone-DajKHDCs.js +207 -0
- package/_baseExtremum-DhV10dXG.js +27 -0
- package/_baseFlatten-C8CjmqQ-.js +72 -0
- package/_baseGet-DSZygzyq.js +79 -0
- package/_baseIsEqual-C08cUUpA.js +147 -0
- package/_baseIteratee-DGZdhdqr.js +95 -0
- package/_baseSlice-M5RKzt1A.js +10 -0
- package/_baseSum-wEbgNeUs.js +10 -0
- package/_baseUniq-CGlHphLr.js +79 -0
- package/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/_createAggregator-BvcoTZto.js +53 -0
- package/_getPrototype-Dm06JiGv.js +5 -0
- package/_getTag-Cfxlub3L.js +90 -0
- package/_setToArray-C7yMOeww.js +29 -0
- package/cloneDeep-wjl3XmFj.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 +305 -407
- 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 +117 -155
- 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-pIyxNZhO.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-yNrpdipq.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 +68 -84
- package/icons/Context.js +63 -77
- package/icons/Opinion.js +65 -77
- package/icons/iconMap.js +2 -2
- package/identity-ByMq8VxU.js +6 -0
- package/index-BHAe_V9n.js +12768 -0
- package/index-CA5CUNZO.js +975 -0
- package/index-D_ZywK71.js +358 -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/package.json +1 -1
- package/sortBy-0BpKRt8p.js +79 -0
- package/sumBy-Do6Ff4Bw.js +8 -0
- package/text/Frequency.js +23 -42
- package/toFinite-BMy6GObD.js +14 -0
- package/toNumber-YVhnnJv4.js +31 -0
- package/useClueTypeConfig-77zd_zdF.js +2292 -0
- package/utils/chain.js +64 -91
- 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-D5hPDE7N.js +129 -0
- package/ActionForm-C0aE9HUv.js +0 -5941
- package/AnnotationDetails-CEou0vCc.js +0 -175
- package/AnnotationPreview-CLMVD6Ec.js +0 -188
- package/ClueEnrichContext-BkD9ZwM9.js +0 -541
- package/FlexOne-BSYAhhtG.js +0 -9
- package/_MapCache-WmuDdwuH.js +0 -222
- package/_Uint8Array-DdG4KLKn.js +0 -128
- package/_baseAssignValue-CGTuELqU.js +0 -25
- package/_baseClone-BpWiBnMp.js +0 -283
- package/_baseExtremum-BY663UjY.js +0 -33
- package/_baseFlatten-B69cDsaV.js +0 -92
- package/_baseGet-Bx3A4Qfp.js +0 -108
- package/_baseIsEqual-B4IufFlL.js +0 -208
- package/_baseIteratee-7AQvAy1o.js +0 -126
- package/_baseSlice-GAv_YFTT.js +0 -20
- package/_baseSum-D0WC1dN0.js +0 -13
- package/_baseUniq-B8fK6hI-.js +0 -115
- package/_commonjsHelpers-DWwsNxpa.js +0 -8
- package/_createAggregator-CwGPThny.js +0 -63
- package/_getPrototype-CblfEidB.js +0 -5
- package/_getTag-jwz4XLoZ.js +0 -126
- package/_setToArray-CaPKQhcz.js +0 -33
- package/cloneDeep-DmUylbkM.js +0 -8
- package/countBy-DqlU5OwT.js +0 -14
- package/debounce-bV0h5FC5.js +0 -92
- package/get-DSsNkRQs.js +0 -8
- package/groupBy-ChDRT7uy.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-UkW8Sur3.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/sortBy-C7mGPI_D.js +0 -100
- package/sumBy-CGALjmwQ.js +0 -8
- package/toFinite-Bc55msYj.js +0 -16
- package/toNumber-DPxy1FBy.js +0 -39
- package/useClueTypeConfig-D2tf4-NM.js +0 -3289
- package/utils-71DpzFrA.js +0 -199
package/utils/constants.js
CHANGED
|
@@ -1,37 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const MY_LOCAL_STORAGE_PREFIX = "clue.ui";
|
|
5
|
-
const MY_SESSION_STORAGE_PREFIX = `${MY_LOCAL_STORAGE_PREFIX}.cache`;
|
|
6
|
-
var StorageKey = /* @__PURE__ */ ((StorageKey2) => {
|
|
7
|
-
StorageKey2["PROVIDER"] = "provider";
|
|
8
|
-
StorageKey2["REFRESH_TOKEN"] = "refresh_token";
|
|
9
|
-
StorageKey2["APP_TOKEN"] = "app_token";
|
|
10
|
-
StorageKey2["NEXT_LOCATION"] = "next.location";
|
|
11
|
-
StorageKey2["NEXT_SEARCH"] = "next.search";
|
|
12
|
-
StorageKey2["AXIOS_CACHE"] = "axios.cache";
|
|
13
|
-
StorageKey2["COMPACT_JSON"] = "compact_json_view";
|
|
14
|
-
StorageKey2["FLATTEN_JSON"] = "flatten_json_view";
|
|
15
|
-
StorageKey2["PAGE_COUNT"] = "page_count";
|
|
16
|
-
StorageKey2["CLUE_CACHE"] = "results";
|
|
17
|
-
StorageKey2["LOGIN_NONCE"] = "login_nonce";
|
|
18
|
-
StorageKey2["COLOR_SCHEME"] = "color.scheme";
|
|
19
|
-
StorageKey2["SHOW_DIRECTIONALITY"] = "show.directionality";
|
|
20
|
-
StorageKey2["SHOW_CARDS"] = "show.cards";
|
|
21
|
-
StorageKey2["CARD_CUTOFF"] = "card.cutoff";
|
|
22
|
-
StorageKey2["SHOW_MOUSE_POS"] = "show.mouse.position";
|
|
23
|
-
StorageKey2["SHOW_COORDINATES"] = "show.coordinates";
|
|
24
|
-
StorageKey2["PANEL_LOCATION"] = "panel.location";
|
|
25
|
-
StorageKey2["FORCE_COLOR_SETTING"] = "force.color.setting";
|
|
26
|
-
return StorageKey2;
|
|
27
|
-
})(StorageKey || {});
|
|
28
|
-
const BUNDLE_SEPARATOR = "-X-";
|
|
1
|
+
const n = void 0, c = !1, C = void 0, _ = "clue.ui", s = `${_}.cache`;
|
|
2
|
+
var E = /* @__PURE__ */ ((O) => (O.PROVIDER = "provider", O.REFRESH_TOKEN = "refresh_token", O.APP_TOKEN = "app_token", O.NEXT_LOCATION = "next.location", O.NEXT_SEARCH = "next.search", O.AXIOS_CACHE = "axios.cache", O.COMPACT_JSON = "compact_json_view", O.FLATTEN_JSON = "flatten_json_view", O.PAGE_COUNT = "page_count", O.CLUE_CACHE = "results", O.LOGIN_NONCE = "login_nonce", O.COLOR_SCHEME = "color.scheme", O.SHOW_DIRECTIONALITY = "show.directionality", O.SHOW_CARDS = "show.cards", O.CARD_CUTOFF = "card.cutoff", O.SHOW_MOUSE_POS = "show.mouse.position", O.SHOW_COORDINATES = "show.coordinates", O.PANEL_LOCATION = "panel.location", O.FORCE_COLOR_SETTING = "force.color.setting", O))(E || {});
|
|
3
|
+
const A = "-X-";
|
|
29
4
|
export {
|
|
30
|
-
BUNDLE_SEPARATOR,
|
|
31
|
-
CLUE_API,
|
|
32
|
-
LOCAL,
|
|
33
|
-
MY_LOCAL_STORAGE_PREFIX,
|
|
34
|
-
MY_SESSION_STORAGE_PREFIX,
|
|
35
|
-
StorageKey,
|
|
36
|
-
VERSION
|
|
5
|
+
A as BUNDLE_SEPARATOR,
|
|
6
|
+
n as CLUE_API,
|
|
7
|
+
c as LOCAL,
|
|
8
|
+
_ as MY_LOCAL_STORAGE_PREFIX,
|
|
9
|
+
s as MY_SESSION_STORAGE_PREFIX,
|
|
10
|
+
E as StorageKey,
|
|
11
|
+
C as VERSION
|
|
37
12
|
};
|
package/utils/graph.js
CHANGED
|
@@ -1,79 +1,52 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
3
|
-
for (let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const findNode = (nodeId, flatNodes) => {
|
|
16
|
-
return flatNodes.find((node) => node.id === nodeId);
|
|
17
|
-
};
|
|
18
|
-
const getPathToRoot = (nodeId, data) => {
|
|
19
|
-
const getRoot = (currNodeId, results) => {
|
|
20
|
-
if (results.has(currNodeId)) {
|
|
21
|
-
return results;
|
|
22
|
-
}
|
|
23
|
-
let newResults = results.add(currNodeId);
|
|
24
|
-
const currNode = findNode(currNodeId, data.flat());
|
|
25
|
-
if (currNode == null ? void 0 : currNode.edges) {
|
|
26
|
-
currNode == null ? void 0 : currNode.edges.forEach((parent) => {
|
|
27
|
-
newResults = getRoot(parent, results);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return newResults;
|
|
1
|
+
const u = (n, i = 0) => {
|
|
2
|
+
let t = 3735928559 ^ i, e = 1103547991 ^ i;
|
|
3
|
+
for (let s = 0, a; s < n.length; s++)
|
|
4
|
+
a = n.charCodeAt(s), t = Math.imul(t ^ a, 2654435761), e = Math.imul(e ^ a, 1597334677);
|
|
5
|
+
return t = Math.imul(t ^ t >>> 16, 2246822507), t ^= Math.imul(e ^ e >>> 13, 3266489909), e = Math.imul(e ^ e >>> 16, 2246822507), e ^= Math.imul(t ^ t >>> 13, 3266489909), parseFloat(`0.${4294967296 * (2097151 & e) + (t >>> 0)}`);
|
|
6
|
+
}, p = (n) => `${n} !important`, f = (n, i) => i.find((t) => t.id === n), o = (n, i) => {
|
|
7
|
+
const t = (e, s) => {
|
|
8
|
+
if (s.has(e))
|
|
9
|
+
return s;
|
|
10
|
+
let a = s.add(e);
|
|
11
|
+
const h = f(e, i.flat());
|
|
12
|
+
return h != null && h.edges && (h == null || h.edges.forEach((l) => {
|
|
13
|
+
a = t(l, s);
|
|
14
|
+
})), a;
|
|
31
15
|
};
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const directChildren = data.flat().filter((n) => {
|
|
42
|
-
var _a;
|
|
43
|
-
return (_a = n.edges) == null ? void 0 : _a.includes(currNode == null ? void 0 : currNode.id);
|
|
16
|
+
return t(n, /* @__PURE__ */ new Set());
|
|
17
|
+
}, g = (n, i) => {
|
|
18
|
+
const t = (e, s) => {
|
|
19
|
+
if (s.has(e))
|
|
20
|
+
return s;
|
|
21
|
+
let a = s.add(e);
|
|
22
|
+
const h = f(e, i.flat()), l = i.flat().filter((r) => {
|
|
23
|
+
var c;
|
|
24
|
+
return (c = r.edges) == null ? void 0 : c.includes(h == null ? void 0 : h.id);
|
|
44
25
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return newResults;
|
|
26
|
+
return l && l.forEach((r) => {
|
|
27
|
+
a = t(r.id, a);
|
|
28
|
+
}), a;
|
|
51
29
|
};
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const newData = dataset.data.map(
|
|
65
|
-
(level) => level.filter((node) => subGraphNodes.has(node.id)).map((node) => {
|
|
66
|
-
var _a;
|
|
67
|
-
return { ...node, edges: (_a = node == null ? void 0 : node.edges) == null ? void 0 : _a.filter((edge) => subGraphNodes.has(edge)) };
|
|
30
|
+
return t(n, /* @__PURE__ */ new Set());
|
|
31
|
+
}, m = (n, i) => {
|
|
32
|
+
if (!i)
|
|
33
|
+
return new Set(n);
|
|
34
|
+
const t = o(n, i), e = g(n, i);
|
|
35
|
+
return /* @__PURE__ */ new Set([n, ...t, ...e]);
|
|
36
|
+
}, w = (n, i) => {
|
|
37
|
+
const t = m(n, i.data);
|
|
38
|
+
return i.data.map(
|
|
39
|
+
(s) => s.filter((a) => t.has(a.id)).map((a) => {
|
|
40
|
+
var h;
|
|
41
|
+
return { ...a, edges: (h = a == null ? void 0 : a.edges) == null ? void 0 : h.filter((l) => t.has(l)) };
|
|
68
42
|
})
|
|
69
|
-
).filter((
|
|
70
|
-
return newData;
|
|
43
|
+
).filter((s) => s.length > 0);
|
|
71
44
|
};
|
|
72
45
|
export {
|
|
73
|
-
createSubGraph,
|
|
74
|
-
cssImportant,
|
|
75
|
-
cyrb53,
|
|
76
|
-
getAllChildren,
|
|
77
|
-
getPathToRoot,
|
|
78
|
-
getSubGraphNodeSet
|
|
46
|
+
w as createSubGraph,
|
|
47
|
+
p as cssImportant,
|
|
48
|
+
u as cyrb53,
|
|
49
|
+
g as getAllChildren,
|
|
50
|
+
o as getPathToRoot,
|
|
51
|
+
m as getSubGraphNodeSet
|
|
79
52
|
};
|
package/utils/hashUtil.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function
|
|
2
|
-
let
|
|
3
|
-
for (let
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
function n(e) {
|
|
2
|
+
let t = 0;
|
|
3
|
+
for (let r = 0; r < e.length; r++) {
|
|
4
|
+
const h = e.charCodeAt(r);
|
|
5
|
+
t = (t << 5) - t + h;
|
|
6
6
|
}
|
|
7
|
-
return (
|
|
7
|
+
return (t >>> 0).toString(36).padStart(7, "0");
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
simpleHash
|
|
10
|
+
n as simpleHash
|
|
11
11
|
};
|
package/utils/line.js
CHANGED
|
@@ -1,136 +1,86 @@
|
|
|
1
|
-
const
|
|
2
|
-
paddingAtLevel,
|
|
3
|
-
numLines,
|
|
4
|
-
distanceX,
|
|
5
|
-
distanceY,
|
|
6
|
-
childX,
|
|
7
|
-
childY,
|
|
8
|
-
childHeight,
|
|
9
|
-
parentX,
|
|
10
|
-
parentY,
|
|
11
|
-
linePaddingX,
|
|
12
|
-
nodeLocations,
|
|
13
|
-
dest,
|
|
14
|
-
arcRadius
|
|
1
|
+
const w = ({
|
|
2
|
+
paddingAtLevel: m,
|
|
3
|
+
numLines: q,
|
|
4
|
+
distanceX: V,
|
|
5
|
+
distanceY: j,
|
|
6
|
+
childX: x,
|
|
7
|
+
childY: f,
|
|
8
|
+
childHeight: b,
|
|
9
|
+
parentX: z,
|
|
10
|
+
parentY: A,
|
|
11
|
+
linePaddingX: k,
|
|
12
|
+
nodeLocations: L,
|
|
13
|
+
dest: v,
|
|
14
|
+
arcRadius: $
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
);
|
|
65
|
-
} else {
|
|
66
|
-
if (Math.sign(distanceX) < 0) {
|
|
67
|
-
d.push(
|
|
68
|
-
`L ${verticalLineX + arcRadius} ${parentY}`,
|
|
69
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX} ${parentY + arcRadius}`
|
|
70
|
-
);
|
|
71
|
-
} else {
|
|
72
|
-
d.push(
|
|
73
|
-
`L ${verticalLineX - arcRadius} ${parentY}`,
|
|
74
|
-
`A ${arcRadius} ${arcRadius} 90 0 1 ${verticalLineX} ${parentY + arcRadius}`
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
d.push(
|
|
78
|
-
`L ${verticalLineX} ${childY + childHeight / 2 - arcRadius}`,
|
|
79
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX + arcRadius} ${childY + childHeight / 2}`
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
d.push(`L ${childX} ${childY + childHeight / 2}`);
|
|
83
|
-
}
|
|
84
|
-
return d;
|
|
85
|
-
};
|
|
86
|
-
const buildVerticalLine = ({
|
|
87
|
-
paddingAtLevel,
|
|
88
|
-
numLines,
|
|
89
|
-
distanceX,
|
|
90
|
-
distanceY,
|
|
91
|
-
childX,
|
|
92
|
-
childY,
|
|
93
|
-
childHeight,
|
|
94
|
-
parentX,
|
|
95
|
-
parentY,
|
|
96
|
-
linePaddingX,
|
|
97
|
-
arcRadius
|
|
16
|
+
const o = [], M = x - (m - q) * k;
|
|
17
|
+
return V === 0 ? j === 0 ? (o.push(
|
|
18
|
+
`M ${z} ${A}`,
|
|
19
|
+
`L ${z - k + 3} ${A}`,
|
|
20
|
+
`A 3 3 90 0 0 ${M} ${A + 3}`
|
|
21
|
+
), o.push(
|
|
22
|
+
`L ${M} ${L[v.id][1] - 3}`,
|
|
23
|
+
`A 3 3 90 0 0 ${M + 3} ${L[v.id][1]}`,
|
|
24
|
+
`L ${x} ${L[v.id][1]}`
|
|
25
|
+
)) : (o.push(`M ${z} ${A}`, `L ${M + $} ${A}`), Math.sign(j) < 0 ? o.push(
|
|
26
|
+
`A ${$} ${$} 90 0 1 ${M} ${A - $}`,
|
|
27
|
+
`L ${M} ${f + $}`,
|
|
28
|
+
`A ${$} ${$} 90 0 1 ${M + $} ${f}`
|
|
29
|
+
) : o.push(
|
|
30
|
+
`A ${$} ${$} 90 0 0 ${M} ${A + $}`,
|
|
31
|
+
`L ${M} ${f - $}`,
|
|
32
|
+
`A ${$} ${$} 90 0 0 ${M + $} ${f}`
|
|
33
|
+
), o.push(`L ${x} ${f}`)) : (o.push(`M ${z} ${A}`), Math.sign(j) < 0 ? (Math.sign(V) < 0 ? o.push(
|
|
34
|
+
`L ${M + $} ${A}`,
|
|
35
|
+
`A ${$} ${$} 90 0 1 ${M} ${A - $}`
|
|
36
|
+
) : o.push(
|
|
37
|
+
`L ${M - $} ${A}`,
|
|
38
|
+
`A ${$} ${$} 90 0 0 ${M} ${A - $}`
|
|
39
|
+
), o.push(
|
|
40
|
+
`L ${M} ${f + b / 2 + $}`,
|
|
41
|
+
`A ${$} ${$} 90 0 1 ${M + $} ${f + b / 2}`
|
|
42
|
+
)) : (Math.sign(V) < 0 ? o.push(
|
|
43
|
+
`L ${M + $} ${A}`,
|
|
44
|
+
`A ${$} ${$} 90 0 0 ${M} ${A + $}`
|
|
45
|
+
) : o.push(
|
|
46
|
+
`L ${M - $} ${A}`,
|
|
47
|
+
`A ${$} ${$} 90 0 1 ${M} ${A + $}`
|
|
48
|
+
), o.push(
|
|
49
|
+
`L ${M} ${f + b / 2 - $}`,
|
|
50
|
+
`A ${$} ${$} 90 0 0 ${M + $} ${f + b / 2}`
|
|
51
|
+
)), o.push(`L ${x} ${f + b / 2}`)), o;
|
|
52
|
+
}, y = ({
|
|
53
|
+
paddingAtLevel: m,
|
|
54
|
+
numLines: q,
|
|
55
|
+
distanceX: V,
|
|
56
|
+
distanceY: j,
|
|
57
|
+
childX: x,
|
|
58
|
+
childY: f,
|
|
59
|
+
childHeight: b,
|
|
60
|
+
parentX: z,
|
|
61
|
+
parentY: A,
|
|
62
|
+
linePaddingX: k,
|
|
63
|
+
arcRadius: L
|
|
98
64
|
}) => {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX} ${parentY - arcRadius}`,
|
|
117
|
-
`L ${verticalLineX} ${childY + childHeight / 2 + arcRadius}`,
|
|
118
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX - arcRadius} ${childY + childHeight / 2}`
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
d.push(
|
|
123
|
-
`L ${verticalLineX + arcRadius} ${parentY}`,
|
|
124
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX} ${parentY + arcRadius}`,
|
|
125
|
-
`L ${verticalLineX} ${childY + childHeight / 2 - arcRadius}`,
|
|
126
|
-
`A ${arcRadius} ${arcRadius} 90 0 0 ${verticalLineX + arcRadius} ${childY + childHeight / 2}`
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
d.push(`L ${childX} ${childY + childHeight / 2}`);
|
|
130
|
-
}
|
|
131
|
-
return d;
|
|
65
|
+
const v = [], $ = (Math.sign(j) < 0 ? x : z) - (m - q) * k;
|
|
66
|
+
return V === 0 ? v.push(`M ${z} ${A}`, `L ${x} ${f}`) : (v.push(`M ${z} ${A}`), Math.sign(j) < 0 ? Math.sign(V) < 0 ? v.push(
|
|
67
|
+
`L ${$ + L} ${A}`,
|
|
68
|
+
`A ${L} ${L} 90 0 1 ${$} ${A - L}`,
|
|
69
|
+
`L ${$} ${f + b / 2 + L}`,
|
|
70
|
+
`A ${L} ${L} 90 0 1 ${$ + L} ${f + b / 2}`
|
|
71
|
+
) : v.push(
|
|
72
|
+
`L ${$ - L} ${A}`,
|
|
73
|
+
`A ${L} ${L} 90 0 0 ${$} ${A - L}`,
|
|
74
|
+
`L ${$} ${f + b / 2 + L}`,
|
|
75
|
+
`A ${L} ${L} 90 0 0 ${$ - L} ${f + b / 2}`
|
|
76
|
+
) : v.push(
|
|
77
|
+
`L ${$ + L} ${A}`,
|
|
78
|
+
`A ${L} ${L} 90 0 0 ${$} ${A + L}`,
|
|
79
|
+
`L ${$} ${f + b / 2 - L}`,
|
|
80
|
+
`A ${L} ${L} 90 0 0 ${$ + L} ${f + b / 2}`
|
|
81
|
+
), v.push(`L ${x} ${f + b / 2}`)), v;
|
|
132
82
|
};
|
|
133
83
|
export {
|
|
134
|
-
buildHorizontalLine,
|
|
135
|
-
buildVerticalLine
|
|
84
|
+
w as buildHorizontalLine,
|
|
85
|
+
y as buildVerticalLine
|
|
136
86
|
};
|
package/utils/loggerUtil.js
CHANGED
package/utils/sessionStorage.js
CHANGED
|
@@ -1,51 +1,37 @@
|
|
|
1
|
-
import { StorageKey, MY_SESSION_STORAGE_PREFIX } from "./constants.js";
|
|
2
|
-
import { d as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
_setStored: setStored
|
|
1
|
+
import { StorageKey as S, MY_SESSION_STORAGE_PREFIX as i } from "./constants.js";
|
|
2
|
+
import { d as g } from "../debounce-DryYcbJ4.js";
|
|
3
|
+
const o = (e) => `${i}.${e}`, {
|
|
4
|
+
_getStored: _,
|
|
5
|
+
_removeStored: E,
|
|
6
|
+
_setStored: m
|
|
8
7
|
} = /* @__PURE__ */ (() => {
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
delete changes[buildName(name)];
|
|
15
|
-
sessionStorage.removeItem(buildName(name));
|
|
16
|
-
};
|
|
17
|
-
const _setStored = (name, item) => {
|
|
18
|
-
changes[buildName(name)] = item;
|
|
19
|
-
debounce(
|
|
8
|
+
let e = {};
|
|
9
|
+
return { _getStored: (t) => e[o(t)] ?? JSON.parse(sessionStorage.getItem(o(t))), _removeStored: (t) => {
|
|
10
|
+
delete e[o(t)], sessionStorage.removeItem(o(t));
|
|
11
|
+
}, _setStored: (t, n) => {
|
|
12
|
+
e[o(t)] = n, g(
|
|
20
13
|
() => {
|
|
21
|
-
Object.entries(
|
|
14
|
+
Object.entries(e).forEach(([a, c]) => {
|
|
22
15
|
try {
|
|
23
|
-
sessionStorage.setItem(
|
|
24
|
-
} catch (
|
|
25
|
-
console.warn("Quota Error when saving to sessionStorage",
|
|
16
|
+
sessionStorage.setItem(a, JSON.stringify(c));
|
|
17
|
+
} catch (d) {
|
|
18
|
+
console.warn("Quota Error when saving to sessionStorage", d);
|
|
26
19
|
}
|
|
27
|
-
});
|
|
28
|
-
changes = {};
|
|
20
|
+
}), e = {};
|
|
29
21
|
},
|
|
30
22
|
250,
|
|
31
|
-
{ leading:
|
|
23
|
+
{ leading: !1, trailing: !0, maxWait: 800 }
|
|
32
24
|
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return getStored(StorageKey.AXIOS_CACHE) ?? {};
|
|
38
|
-
};
|
|
39
|
-
const setAxiosCache = (etag, value) => {
|
|
40
|
-
const cache = getAxiosCache();
|
|
41
|
-
cache[etag] = value;
|
|
42
|
-
setStored(StorageKey.AXIOS_CACHE, cache);
|
|
25
|
+
} };
|
|
26
|
+
})(), h = () => _(S.AXIOS_CACHE) ?? {}, I = (e, s) => {
|
|
27
|
+
const r = h();
|
|
28
|
+
r[e] = s, m(S.AXIOS_CACHE, r);
|
|
43
29
|
};
|
|
44
30
|
export {
|
|
45
|
-
buildName,
|
|
46
|
-
getAxiosCache,
|
|
47
|
-
getStored,
|
|
48
|
-
removeStored,
|
|
49
|
-
setAxiosCache,
|
|
50
|
-
setStored
|
|
31
|
+
o as buildName,
|
|
32
|
+
h as getAxiosCache,
|
|
33
|
+
_ as getStored,
|
|
34
|
+
E as removeStored,
|
|
35
|
+
I as setAxiosCache,
|
|
36
|
+
m as setStored
|
|
51
37
|
};
|