@cccsaurora/clue-ui 0.15.0-dev.31 → 0.15.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/package.json +143 -39
- package/ActionForm-DgfJwTzt.js +0 -436
- package/AnnotationPreview-BvNpZOP0.js +0 -188
- package/ClueEnrichContext-DXwLVp0M.js +0 -518
- package/FlexOne-BSYAhhtG.js +0 -9
- package/_Map-kgDsDYxq.js +0 -64
- package/_MapCache-DabaaWfq.js +0 -161
- package/_Uint8Array-BlVVH1tp.js +0 -129
- package/_baseAssignValue-CNbcU6Nb.js +0 -25
- package/_baseClone-D3a8Pa4T.js +0 -284
- package/_baseExtremum-B1o1zHjR.js +0 -33
- package/_baseFlatten-D4huXoEI.js +0 -92
- package/_baseGet-BSK_nnoz.js +0 -109
- package/_baseIsEqual-B5xLoweL.js +0 -238
- package/_baseIteratee-p6Nj07-n.js +0 -126
- package/_baseSlice-GAv_YFTT.js +0 -20
- package/_baseSum-D0WC1dN0.js +0 -13
- package/_baseUniq-CpupKWcL.js +0 -89
- package/_commonjsHelpers-CUmg6egw.js +0 -6
- package/_createAggregator-BpVy5xMi.js +0 -63
- package/_getPrototype-D1LAdQKO.js +0 -5
- package/_getTag-D3ToyefI.js +0 -126
- package/api/lookup/enrich.d.ts +0 -10
- package/api/lookup/index.d.ts +0 -5
- package/api/lookup/types.d.ts +0 -5
- package/api/lookup/types_detection.d.ts +0 -5
- package/cloneDeep-CjP5k9zW.js +0 -8
- package/components/AnnotationBody.d.ts +0 -6
- package/components/AnnotationBody.js +0 -56
- package/components/AnnotationDetailPopover.d.ts +0 -14
- package/components/AnnotationDetailPopover.js +0 -61
- package/components/AnnotationDetails.d.ts +0 -8
- package/components/AnnotationDetails.js +0 -172
- package/components/AnnotationEntry.d.ts +0 -6
- package/components/AnnotationEntry.js +0 -59
- package/components/AnnotationPreview.d.ts +0 -14
- package/components/AnnotationPreview.js +0 -11
- package/components/ClassificationChip.d.ts +0 -11
- package/components/ClassificationChip.js +0 -52
- package/components/CountBadge.d.ts +0 -8
- package/components/CountBadge.js +0 -34
- package/components/EnrichedCard.d.ts +0 -14
- package/components/EnrichedCard.js +0 -162
- package/components/EnrichedChip.d.ts +0 -9
- package/components/EnrichedChip.js +0 -176
- package/components/EnrichedTypography.d.ts +0 -16
- package/components/EnrichedTypography.js +0 -178
- package/components/ErrorBoundary.d.ts +0 -15
- package/components/ErrorBoundary.js +0 -36
- package/components/RetryFailedEnrichments.d.ts +0 -2
- package/components/RetryFailedEnrichments.js +0 -13
- package/components/SourcePicker.d.ts +0 -2
- package/components/SourcePicker.js +0 -98
- package/components/actions/ActionForm.d.ts +0 -6
- package/components/actions/ActionForm.js +0 -16
- package/components/actions/ExecutePopover.d.ts +0 -10
- package/components/actions/ExecutePopover.js +0 -93
- package/components/actions/ResultModal.d.ts +0 -9
- package/components/actions/ResultModal.js +0 -46
- package/components/actions/form/schemaAdapter.d.ts +0 -3
- package/components/actions/form/schemaAdapter.js +0 -47
- package/components/display/graph/ExpandMoreButton.d.ts +0 -7
- package/components/display/graph/ExpandMoreButton.js +0 -18
- package/components/display/graph/elements/NodeCard.d.ts +0 -10
- package/components/display/graph/elements/NodeCard.js +0 -146
- package/components/display/graph/elements/NodeTag.d.ts +0 -9
- package/components/display/graph/elements/NodeTag.js +0 -17
- package/components/display/graph/index.d.ts +0 -9
- package/components/display/graph/index.js +0 -438
- package/components/display/graph/visualizations/Leaf.d.ts +0 -25
- package/components/display/graph/visualizations/Leaf.js +0 -125
- package/components/display/graph/visualizations/cloud/index.d.ts +0 -24
- package/components/display/graph/visualizations/cloud/index.js +0 -141
- package/components/display/graph/visualizations/icons/BaseIcon.d.ts +0 -12
- package/components/display/graph/visualizations/icons/BaseIcon.js +0 -37
- package/components/display/graph/visualizations/icons/BugIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/BugIcon.js +0 -18
- package/components/display/graph/visualizations/icons/HostIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/HostIcon.js +0 -24
- package/components/display/graph/visualizations/icons/NetworkIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/NetworkIcon.js +0 -24
- package/components/display/graph/visualizations/icons/ProcessIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/ProcessIcon.js +0 -18
- package/components/display/graph/visualizations/icons/TargetIcon.d.ts +0 -5
- package/components/display/graph/visualizations/icons/TargetIcon.js +0 -19
- package/components/display/graph/visualizations/icons/index.d.ts +0 -2
- package/components/display/graph/visualizations/icons/index.js +0 -16
- package/components/display/graph/visualizations/panels/NodePanel.d.ts +0 -8
- package/components/display/graph/visualizations/panels/NodePanel.js +0 -12
- package/components/display/graph/visualizations/tree/BundleLine.d.ts +0 -29
- package/components/display/graph/visualizations/tree/BundleLine.js +0 -121
- package/components/display/graph/visualizations/tree/Triangle.d.ts +0 -9
- package/components/display/graph/visualizations/tree/Triangle.js +0 -26
- package/components/display/graph/visualizations/tree/index.d.ts +0 -36
- package/components/display/graph/visualizations/tree/index.js +0 -485
- package/components/display/graph/visualizations/tree/types.d.ts +0 -11
- package/components/display/graph/visualizations/tree/types.js +0 -1
- package/components/display/icons/Iconified.d.ts +0 -9
- package/components/display/icons/Iconified.js +0 -29
- package/components/display/json/index.d.ts +0 -14
- package/components/display/json/index.js +0 -12
- package/components/display/markdown/DynamicTabs.d.ts +0 -8
- package/components/display/markdown/DynamicTabs.js +0 -26
- package/components/display/markdown/index.d.ts +0 -9
- package/components/display/markdown/index.js +0 -13389
- package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
- package/components/display/markdown/markdownPlugins/tabs.js +0 -4
- package/components/enrichment/EnrichPopover.d.ts +0 -10
- package/components/enrichment/EnrichPopover.js +0 -88
- package/components/fetchers/Fetcher.d.ts +0 -17
- package/components/fetchers/Fetcher.js +0 -188
- package/components/fetchers/PreviewModal.d.ts +0 -8
- package/components/fetchers/PreviewModal.js +0 -22
- package/components/fetchers/StatusChip.d.ts +0 -8
- package/components/fetchers/StatusChip.js +0 -30
- package/components/group/Entry.d.ts +0 -8
- package/components/group/Entry.js +0 -15
- package/components/group/Group.d.ts +0 -12
- package/components/group/Group.js +0 -15
- package/components/group/GroupControl.d.ts +0 -4
- package/components/group/GroupControl.js +0 -103
- package/components/stats/QueryStatus.d.ts +0 -4
- package/components/stats/QueryStatus.js +0 -61
- package/countBy-C69WslUA.js +0 -14
- package/data/event.d.ts +0 -12
- package/data/event.js +0 -8
- package/database/index.d.ts +0 -4
- package/database/index.js +0 -4
- package/database/selector.schema.json.d.ts +0 -119
- package/database/status.schema.json.d.ts +0 -38
- package/database/types.d.ts +0 -64
- package/debounce-bV0h5FC5.js +0 -92
- package/en/translation.json +0 -135
- package/fr/translation.json +0 -135
- package/get-D3C3lEU3.js +0 -8
- package/groupBy-DC2oOuBN.js +0 -14
- package/hooks/ClueActionContext.d.ts +0 -86
- package/hooks/ClueActionContext.js +0 -18
- package/hooks/ClueComponentContext.d.ts +0 -10
- package/hooks/ClueComponentContext.js +0 -40
- package/hooks/ClueConfigProvider.d.ts +0 -12
- package/hooks/ClueConfigProvider.js +0 -23
- package/hooks/ClueDatabaseContext.d.ts +0 -10
- package/hooks/ClueDatabaseContext.js +0 -23
- package/hooks/ClueEnrichContext.d.ts +0 -6
- package/hooks/ClueEnrichContext.js +0 -15
- package/hooks/ClueEnrichContextType.d.ts +0 -113
- package/hooks/ClueEnrichProps.d.ts +0 -81
- package/hooks/ClueFetcherContext.d.ts +0 -35
- package/hooks/ClueFetcherContext.js +0 -88
- package/hooks/ClueGroupContext.d.ts +0 -14
- package/hooks/ClueGroupContext.js +0 -23
- package/hooks/CluePopupContext.d.ts +0 -24
- package/hooks/CluePopupContext.js +0 -12
- package/hooks/ClueProvider.d.ts +0 -9
- package/hooks/ClueProvider.js +0 -14
- package/hooks/selectors.d.ts +0 -10
- package/hooks/selectors.js +0 -24
- package/hooks/useAnnotations.d.ts +0 -24
- package/hooks/useAnnotations.js +0 -69
- package/hooks/useClue.d.ts +0 -4
- package/hooks/useClue.js +0 -8
- package/hooks/useClueActions.d.ts +0 -4
- package/hooks/useClueActions.js +0 -5
- package/hooks/useClueConfig.d.ts +0 -1
- package/hooks/useClueConfig.js +0 -8
- package/hooks/useClueTypeConfig.d.ts +0 -17
- package/hooks/useClueTypeConfig.js +0 -7
- package/hooks/useComparator.d.ts +0 -16
- package/hooks/useComparator.js +0 -1060
- package/hooks/useErrors.d.ts +0 -17
- package/hooks/useErrors.js +0 -35
- package/hooks/useMyHighlights.d.ts +0 -11
- package/hooks/useMyHighlights.js +0 -74
- package/hooks/useMyLocalStorage.d.ts +0 -16
- package/hooks/useMyLocalStorage.js +0 -80
- package/iconify-CXMreGTg.js +0 -1782
- package/icons/Action.d.ts +0 -9
- package/icons/Action.js +0 -90
- package/icons/Assessment.d.ts +0 -11
- package/icons/Assessment.js +0 -123
- package/icons/Context.d.ts +0 -12
- package/icons/Context.js +0 -83
- package/icons/Opinion.d.ts +0 -11
- package/icons/Opinion.js +0 -125
- package/icons/iconMap.d.ts +0 -7
- package/icons/iconMap.js +0 -10
- package/identity-CPGTqrE4.js +0 -6
- package/index-BDVjGvMI.js +0 -696
- package/index-BDrtH5ec.js +0 -465
- package/index-C9lySIVX.js +0 -1172
- package/index-DJYqRcxJ.js +0 -15750
- package/index-Dn2NHyXg.js +0 -17654
- package/index.css +0 -21
- package/isEmpty-BQkZubqU.js +0 -29
- 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/isUndefined-CE8h73dH.js +0 -10
- package/last-CUCl67Im.js +0 -7
- package/main.d.ts +0 -42
- package/main.js +0 -70
- package/public/manifest.json +0 -16
- package/public/robots.txt +0 -3
- package/public/svg/dark/clue-h.svg +0 -52
- package/public/svg/dark/clue-icon1-simple.svg +0 -33
- package/public/svg/dark/clue-icon1.svg +0 -44
- package/public/svg/dark/clue-icon2-simple.svg +0 -26
- package/public/svg/dark/clue-icon2.svg +0 -37
- package/public/svg/dark/clue-name.svg +0 -14
- package/public/svg/dark/clue-v.svg +0 -52
- package/public/svg/light/clue-h.svg +0 -60
- package/public/svg/light/clue-icon1-simple.svg +0 -37
- package/public/svg/light/clue-icon1.svg +0 -48
- package/public/svg/light/clue-icon2-simple.svg +0 -30
- package/public/svg/light/clue-icon2.svg +0 -41
- package/public/svg/light/clue-name.svg +0 -14
- package/public/svg/light/clue-v.svg +0 -60
- package/sortBy-B-UKp4GT.js +0 -100
- package/sumBy-MYkDPHZL.js +0 -8
- package/tabs-xGuUGsJd.js +0 -254
- package/text/Frequency.d.ts +0 -9
- package/text/Frequency.js +0 -49
- package/toFinite-CArjry_l.js +0 -16
- package/toNumber-DPxy1FBy.js +0 -39
- package/types/EnrichmentProps.d.ts +0 -73
- package/types/RunningActionData.d.ts +0 -15
- package/types/WithActionData.d.ts +0 -9
- package/types/action.d.ts +0 -25
- package/types/config.d.ts +0 -16
- package/types/fetcher.d.ts +0 -60
- package/types/graph.d.ts +0 -101
- package/types/lookup.d.ts +0 -62
- package/types/network.d.ts +0 -9
- package/useClueTypeConfig-D9ZSxa4F.js +0 -3096
- package/utils/chain.d.ts +0 -14
- package/utils/chain.js +0 -106
- package/utils/classificationParser.d.ts +0 -195
- package/utils/classificationParser.js +0 -553
- package/utils/constants.d.ts +0 -26
- package/utils/constants.js +0 -36
- package/utils/graph.d.ts +0 -13
- package/utils/graph.js +0 -79
- package/utils/hashUtil.d.ts +0 -6
- package/utils/hashUtil.js +0 -11
- package/utils/line.d.ts +0 -28
- package/utils/line.js +0 -136
- package/utils/loggerUtil.d.ts +0 -6
- package/utils/loggerUtil.js +0 -8
- package/utils/sessionStorage.d.ts +0 -9
- package/utils/sessionStorage.js +0 -51
- package/utils/utils.d.ts +0 -13
- package/utils/utils.js +0 -11
- package/utils/window.d.ts +0 -3
- package/utils/window.js +0 -24
- package/utils-CxIhC2xH.js +0 -4182
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme, Tooltip, IconButton, CircularProgress, Button, Popover, Paper, Stack, Box, Typography, Divider } from "@mui/material";
|
|
3
|
-
import { useClueComponentSelector, useClueEnrichSelector } from "../../hooks/selectors.js";
|
|
4
|
-
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
|
-
import Iconified from "../display/icons/Iconified.js";
|
|
6
|
-
import { c as capitalize } from "../../ActionForm-DgfJwTzt.js";
|
|
7
|
-
const EnrichPopover = ({ show = false, size = "small", selector }) => {
|
|
8
|
-
const { t } = useClueComponentSelector((ctx) => ctx.i18next);
|
|
9
|
-
const theme = useTheme();
|
|
10
|
-
const availableSources = useClueEnrichSelector((ctx) => ctx.availableSources);
|
|
11
|
-
const _enrich = useClueEnrichSelector((ctx) => ctx.enrich);
|
|
12
|
-
const [showEnrichMenu, setShowEnrichMenu] = useState(show);
|
|
13
|
-
const [loading, setLoading] = useState(false);
|
|
14
|
-
const enrichEl = useRef(null);
|
|
15
|
-
const enrich = useCallback(
|
|
16
|
-
async (_source) => {
|
|
17
|
-
setLoading(true);
|
|
18
|
-
try {
|
|
19
|
-
await _enrich(selector.type, selector.value, {
|
|
20
|
-
classification: selector.classification,
|
|
21
|
-
timeout: 30,
|
|
22
|
-
force: true,
|
|
23
|
-
noCache: true,
|
|
24
|
-
sources: [_source],
|
|
25
|
-
append: true
|
|
26
|
-
});
|
|
27
|
-
} finally {
|
|
28
|
-
setLoading(false);
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
[_enrich, selector.classification, selector.type, selector.value]
|
|
32
|
-
);
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
setShowEnrichMenu(show);
|
|
35
|
-
}, [show]);
|
|
36
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
-
size === "small" ? /* @__PURE__ */ jsx(Tooltip, { ref: enrichEl, title: t("enrich"), children: /* @__PURE__ */ jsx("span", { style: { alignSelf: "center" }, children: /* @__PURE__ */ jsx(
|
|
38
|
-
IconButton,
|
|
39
|
-
{
|
|
40
|
-
onClick: () => setShowEnrichMenu(true),
|
|
41
|
-
disabled: Object.keys(availableSources).length < 1 || loading,
|
|
42
|
-
color: "info",
|
|
43
|
-
children: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "info", size: "24px" }) : /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-auto-fix-high" })
|
|
44
|
-
}
|
|
45
|
-
) }) }) : /* @__PURE__ */ jsx(
|
|
46
|
-
Button,
|
|
47
|
-
{
|
|
48
|
-
ref: enrichEl,
|
|
49
|
-
variant: "outlined",
|
|
50
|
-
color: "info",
|
|
51
|
-
disabled: Object.keys(availableSources).length < 1 || loading,
|
|
52
|
-
startIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "info", size: "20px" }) : /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-auto-fix-high" }),
|
|
53
|
-
sx: { alignSelf: "stretch" },
|
|
54
|
-
onClick: () => setShowEnrichMenu(true),
|
|
55
|
-
children: t("enrich")
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ jsx(
|
|
59
|
-
Popover,
|
|
60
|
-
{
|
|
61
|
-
sx: { zIndex: 2e3 },
|
|
62
|
-
open: showEnrichMenu,
|
|
63
|
-
disablePortal: true,
|
|
64
|
-
onClose: () => setShowEnrichMenu(false),
|
|
65
|
-
anchorEl: enrichEl.current,
|
|
66
|
-
anchorOrigin: { horizontal: "left", vertical: "bottom" },
|
|
67
|
-
children: /* @__PURE__ */ jsx(Paper, { onClick: () => setShowEnrichMenu(false), children: /* @__PURE__ */ jsx(Stack, { divider: /* @__PURE__ */ jsx(Divider, { flexItem: true, orientation: "horizontal" }), children: availableSources.map((_source) => /* @__PURE__ */ jsx(
|
|
68
|
-
Box,
|
|
69
|
-
{
|
|
70
|
-
sx: {
|
|
71
|
-
px: 3,
|
|
72
|
-
py: 1,
|
|
73
|
-
cursor: "pointer",
|
|
74
|
-
transition: theme.transitions.create("background-color"),
|
|
75
|
-
"&:hover": { backgroundColor: theme.palette.background.default }
|
|
76
|
-
},
|
|
77
|
-
onClick: () => enrich(_source),
|
|
78
|
-
children: /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 1, alignItems: "center", children: /* @__PURE__ */ jsx(Typography, { variant: "body1", children: _source.split("-").map(capitalize).join(" ") }) }) })
|
|
79
|
-
},
|
|
80
|
-
_source
|
|
81
|
-
)) }) })
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] });
|
|
85
|
-
};
|
|
86
|
-
export {
|
|
87
|
-
EnrichPopover as default
|
|
88
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ChipProps, ModalProps, PaperProps, SkeletonProps, StackProps } from '@mui/material';
|
|
2
|
-
import { Selector } from "../../types/lookup";
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
|
|
5
|
-
export interface FetcherProps extends Selector {
|
|
6
|
-
fetcherId: string;
|
|
7
|
-
slotProps?: {
|
|
8
|
-
paper?: PaperProps;
|
|
9
|
-
preview?: ModalProps;
|
|
10
|
-
stack?: StackProps;
|
|
11
|
-
image?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
12
|
-
chip?: ChipProps;
|
|
13
|
-
skeleton?: SkeletonProps;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const _default: React.NamedExoticComponent<FetcherProps>;
|
|
17
|
-
export default _default;
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { I as Icon } from "../../iconify-CXMreGTg.js";
|
|
3
|
-
import { useTheme, Skeleton, Chip, Tooltip, Paper, Stack, Box, IconButton } from "@mui/material";
|
|
4
|
-
import { F as FlexOne } from "../../FlexOne-BSYAhhtG.js";
|
|
5
|
-
import Iconified from "../display/icons/Iconified.js";
|
|
6
|
-
import { J as JSONViewer } from "../../index-BDrtH5ec.js";
|
|
7
|
-
import { ClueComponentContext } from "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { useClueFetcherSelector } from "../../hooks/selectors.js";
|
|
9
|
-
import React__default, { useState, useEffect, memo } from "react";
|
|
10
|
-
import { u as useContextSelector } from "../../index-BDVjGvMI.js";
|
|
11
|
-
import Graph from "../display/graph/index.js";
|
|
12
|
-
import Markdown from "../display/markdown/index.js";
|
|
13
|
-
import PreviewModal from "./PreviewModal.js";
|
|
14
|
-
import StatusChip from "./StatusChip.js";
|
|
15
|
-
const Fetcher = React__default.memo(
|
|
16
|
-
({
|
|
17
|
-
type,
|
|
18
|
-
value,
|
|
19
|
-
classification,
|
|
20
|
-
fetcherId,
|
|
21
|
-
slotProps: {
|
|
22
|
-
paper: paperProps = {},
|
|
23
|
-
preview: previewProps = {},
|
|
24
|
-
stack: stackProps = {},
|
|
25
|
-
image: imageProps = {},
|
|
26
|
-
chip: chipProps = {},
|
|
27
|
-
skeleton: skeletonProps = {}
|
|
28
|
-
} = {}
|
|
29
|
-
}) => {
|
|
30
|
-
var _a;
|
|
31
|
-
const theme = useTheme();
|
|
32
|
-
const fetchers = useClueFetcherSelector((ctx) => ctx.fetchers);
|
|
33
|
-
const fetchSelector = useClueFetcherSelector((ctx) => ctx.fetchSelector);
|
|
34
|
-
const fetchCompleted = useClueFetcherSelector((ctx) => ctx.fetchCompleted);
|
|
35
|
-
const { t } = useContextSelector(ClueComponentContext, (ctx) => ctx == null ? void 0 : ctx.i18next);
|
|
36
|
-
const [result, setResult] = useState(null);
|
|
37
|
-
const [loading, setLoading] = useState(true);
|
|
38
|
-
const [showPreview, setShowPreview] = useState(false);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
(async () => {
|
|
41
|
-
try {
|
|
42
|
-
setLoading(true);
|
|
43
|
-
setResult(await fetchSelector(fetcherId, { type, value, classification }));
|
|
44
|
-
} finally {
|
|
45
|
-
setLoading(false);
|
|
46
|
-
}
|
|
47
|
-
})();
|
|
48
|
-
}, [classification, fetchSelector, fetcherId, type, value]);
|
|
49
|
-
if (fetchCompleted) {
|
|
50
|
-
if (!fetcherId) {
|
|
51
|
-
console.warn("Missing fetcher Id. Component will not render.");
|
|
52
|
-
return null;
|
|
53
|
-
} else if (!fetcherId.includes(".")) {
|
|
54
|
-
console.warn(
|
|
55
|
-
"Invalid fetcher id. Must be in the format '<plugin_id>.<fetcher_id>'. Component will not render."
|
|
56
|
-
);
|
|
57
|
-
return null;
|
|
58
|
-
} else if (!(fetcherId in fetchers)) {
|
|
59
|
-
console.warn("Fetcher ID does not correspond to a registered fetcher. Component will not render.");
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
if (loading) {
|
|
66
|
-
if (((_a = fetchers[fetcherId]) == null ? void 0 : _a.format) === "status") {
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
-
Skeleton,
|
|
69
|
-
{
|
|
70
|
-
variant: "rounded",
|
|
71
|
-
height: "32px",
|
|
72
|
-
width: "150px",
|
|
73
|
-
...skeletonProps,
|
|
74
|
-
sx: [
|
|
75
|
-
{ borderRadius: "16px" },
|
|
76
|
-
...Array.isArray(skeletonProps == null ? void 0 : skeletonProps.sx) ? skeletonProps == null ? void 0 : skeletonProps.sx : [skeletonProps == null ? void 0 : skeletonProps.sx]
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
} else {
|
|
81
|
-
return /* @__PURE__ */ jsx(Skeleton, { variant: "rounded", height: "325px", width: "300px", ...skeletonProps });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if ((result == null ? void 0 : result.outcome) === "failure" && fetchers[fetcherId].format === "status") {
|
|
85
|
-
return /* @__PURE__ */ jsx(
|
|
86
|
-
Chip,
|
|
87
|
-
{
|
|
88
|
-
icon: /* @__PURE__ */ jsx(Tooltip, { title: result.error, children: /* @__PURE__ */ jsx(Icon, { icon: "mdi:information-outline", fontSize: "1.25rem" }) }),
|
|
89
|
-
label: t("error"),
|
|
90
|
-
color: "error",
|
|
91
|
-
...chipProps
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
if ((result == null ? void 0 : result.format) === "status") {
|
|
96
|
-
return /* @__PURE__ */ jsx(StatusChip, { data: result.data, ...chipProps });
|
|
97
|
-
}
|
|
98
|
-
return /* @__PURE__ */ jsx(
|
|
99
|
-
Paper,
|
|
100
|
-
{
|
|
101
|
-
...paperProps,
|
|
102
|
-
sx: [
|
|
103
|
-
{
|
|
104
|
-
p: 1,
|
|
105
|
-
overflow: "hidden",
|
|
106
|
-
flex: 1,
|
|
107
|
-
width: "100%",
|
|
108
|
-
minWidth: "300px"
|
|
109
|
-
},
|
|
110
|
-
...Array.isArray(paperProps == null ? void 0 : paperProps.sx) ? paperProps == null ? void 0 : paperProps.sx : [paperProps == null ? void 0 : paperProps.sx]
|
|
111
|
-
],
|
|
112
|
-
children: /* @__PURE__ */ jsxs(
|
|
113
|
-
Stack,
|
|
114
|
-
{
|
|
115
|
-
sx: {
|
|
116
|
-
"& > img": {
|
|
117
|
-
borderRadius: "3px",
|
|
118
|
-
cursor: "zoom-in",
|
|
119
|
-
transition: theme.transitions.create("border-color", { duration: theme.transitions.duration.shortest }),
|
|
120
|
-
border: "3px solid transparent",
|
|
121
|
-
"&:hover": {
|
|
122
|
-
borderColor: "primary.main"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
children: [
|
|
127
|
-
(result == null ? void 0 : result.outcome) === "failure" && /* @__PURE__ */ jsx("code", { style: { color: theme.palette.error.main }, children: /* @__PURE__ */ jsx("pre", { style: { marginTop: 0, marginBottom: 0 }, children: result.error }) }),
|
|
128
|
-
(result == null ? void 0 : result.format) === "markdown" && /* @__PURE__ */ jsx(Markdown, { md: result.data }),
|
|
129
|
-
(result == null ? void 0 : result.format) === "image" && /* @__PURE__ */ jsx("img", { src: result.data.image, alt: result.data.alt, ...imageProps, onClick: () => setShowPreview(true) }),
|
|
130
|
-
(result == null ? void 0 : result.format) === "json" && /* @__PURE__ */ jsx(Box, { sx: { ".react-json-view": { backgroundColor: "transparent !important" } }, children: /* @__PURE__ */ jsx(JSONViewer, { data: result.data }) }),
|
|
131
|
-
(result == null ? void 0 : result.format) === "graph" && /* @__PURE__ */ jsx(Graph, { graph: result.data, sx: { minHeight: "600px" } }),
|
|
132
|
-
/* @__PURE__ */ jsx(FlexOne, {}),
|
|
133
|
-
/* @__PURE__ */ jsxs(
|
|
134
|
-
Stack,
|
|
135
|
-
{
|
|
136
|
-
direction: "row",
|
|
137
|
-
spacing: 1,
|
|
138
|
-
...stackProps,
|
|
139
|
-
sx: [
|
|
140
|
-
{
|
|
141
|
-
py: theme.spacing(0.5),
|
|
142
|
-
display: "flex",
|
|
143
|
-
alignItems: "center"
|
|
144
|
-
},
|
|
145
|
-
...Array.isArray(stackProps == null ? void 0 : stackProps.sx) ? stackProps == null ? void 0 : stackProps.sx : [stackProps == null ? void 0 : stackProps.sx]
|
|
146
|
-
],
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-landscape", color: "primary", fontSize: "small" }),
|
|
149
|
-
/* @__PURE__ */ jsx(
|
|
150
|
-
Tooltip,
|
|
151
|
-
{
|
|
152
|
-
title: /* @__PURE__ */ jsxs(Stack, { spacing: 0.5, children: [
|
|
153
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
154
|
-
t("type"),
|
|
155
|
-
": ",
|
|
156
|
-
type
|
|
157
|
-
] }),
|
|
158
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
159
|
-
t("value"),
|
|
160
|
-
": ",
|
|
161
|
-
value
|
|
162
|
-
] }),
|
|
163
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
164
|
-
t("classification"),
|
|
165
|
-
": ",
|
|
166
|
-
classification ?? "N/A"
|
|
167
|
-
] })
|
|
168
|
-
] }),
|
|
169
|
-
children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:outline-info", fontSize: "small" })
|
|
170
|
-
}
|
|
171
|
-
),
|
|
172
|
-
/* @__PURE__ */ jsx(FlexOne, {}),
|
|
173
|
-
(result == null ? void 0 : result.link) && /* @__PURE__ */ jsx(IconButton, { size: "small", component: "a", href: result.link, children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-open-in-new", fontSize: "small" }) })
|
|
174
|
-
]
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx(PreviewModal, { ...previewProps, open: showPreview, result, onClose: () => setShowPreview(false) })
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
const Fetcher$1 = memo(Fetcher);
|
|
186
|
-
export {
|
|
187
|
-
Fetcher$1 as default
|
|
188
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ModalProps } from '@mui/material';
|
|
2
|
-
import { FetcherResult } from "../../types/fetcher";
|
|
3
|
-
|
|
4
|
-
declare const _default: import('react').NamedExoticComponent<{
|
|
5
|
-
result: FetcherResult;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
} & Omit<ModalProps, "children">>;
|
|
8
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Modal, Paper } from "@mui/material";
|
|
3
|
-
import { memo } from "react";
|
|
4
|
-
const PreviewModal = ({ result, onClose, open = false, ...otherProps }) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
Modal,
|
|
7
|
-
{
|
|
8
|
-
open,
|
|
9
|
-
sx: [
|
|
10
|
-
{ display: "flex", alignItems: "center", justifyContent: "center" },
|
|
11
|
-
...Array.isArray(otherProps == null ? void 0 : otherProps.sx) ? otherProps == null ? void 0 : otherProps.sx : [otherProps == null ? void 0 : otherProps.sx]
|
|
12
|
-
],
|
|
13
|
-
onClose,
|
|
14
|
-
...otherProps,
|
|
15
|
-
children: /* @__PURE__ */ jsx(Paper, { sx: { maxHeight: "90%", maxWidth: "90%", p: 2, overflow: "auto" }, children: (result == null ? void 0 : result.format) === "image" && /* @__PURE__ */ jsx("img", { src: result.data.image, alt: result.data.alt, style: { maxWidth: "100%" } }) })
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
const PreviewModal$1 = memo(PreviewModal);
|
|
20
|
-
export {
|
|
21
|
-
PreviewModal$1 as default
|
|
22
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { I as Icon } from "../../iconify-CXMreGTg.js";
|
|
3
|
-
import { useTheme, Chip } from "@mui/material";
|
|
4
|
-
import { ClueComponentContext } from "../../hooks/ClueComponentContext.js";
|
|
5
|
-
import { u as useContextSelector } from "../../index-BDVjGvMI.js";
|
|
6
|
-
const StatusChip = ({ data, ...chipProps }) => {
|
|
7
|
-
var _a;
|
|
8
|
-
const theme = useTheme();
|
|
9
|
-
const { i18n, t } = useContextSelector(ClueComponentContext, (ctx) => ctx.i18next);
|
|
10
|
-
if (data == null ? void 0 : data.empty) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
Chip,
|
|
15
|
-
{
|
|
16
|
-
icon: data.icon && /* @__PURE__ */ jsx(Icon, { icon: data.icon, fontSize: "1.25rem" }),
|
|
17
|
-
deleteIcon: /* @__PURE__ */ jsx("a", { href: data.link, rel: "noreferrer", target: "_blank", style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(Icon, { icon: "mdi:open-in-new", color: theme.palette.text.primary, fontSize: "1.25rem" }) }),
|
|
18
|
-
...chipProps,
|
|
19
|
-
onDelete: data.link ? () => console.log("Navigating to %s", data.link) : null,
|
|
20
|
-
label: ((_a = data.labels.find((label) => label.language === i18n.language) ?? data.labels[0]) == null ? void 0 : _a.label) ?? t("unknown"),
|
|
21
|
-
sx: [
|
|
22
|
-
...Array.isArray(chipProps == null ? void 0 : chipProps.sx) ? chipProps == null ? void 0 : chipProps.sx : [chipProps == null ? void 0 : chipProps.sx],
|
|
23
|
-
data.color && { backgroundColor: data.color }
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
StatusChip as default
|
|
30
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClueGroupContext } from "../../hooks/ClueGroupContext.js";
|
|
2
|
-
import { memo, useEffect } from "react";
|
|
3
|
-
import { u as useContextSelector } from "../../index-BDVjGvMI.js";
|
|
4
|
-
import { i as isEqual } from "../../utils-CxIhC2xH.js";
|
|
5
|
-
const Entry = ({ children, entry, selected = false }) => {
|
|
6
|
-
const setValues = useContextSelector(ClueGroupContext, (ctx) => ctx == null ? void 0 : ctx.setValues);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
setValues == null ? void 0 : setValues((_values) => [..._values.filter((value) => !isEqual(value, entry)), ...selected ? [entry] : []]);
|
|
9
|
-
}, [entry, selected, setValues]);
|
|
10
|
-
return children;
|
|
11
|
-
};
|
|
12
|
-
const Entry$1 = memo(Entry);
|
|
13
|
-
export {
|
|
14
|
-
Entry$1 as default
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StackProps } from '@mui/material';
|
|
2
|
-
import { ClueGroupContextProps } from "../../hooks/ClueGroupContext";
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
|
|
5
|
-
interface ClueGroupProps extends ClueGroupContextProps {
|
|
6
|
-
showHeader?: boolean;
|
|
7
|
-
slotProps?: {
|
|
8
|
-
stack?: StackProps;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('react').NamedExoticComponent<PropsWithChildren<ClueGroupProps>>;
|
|
12
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Stack } from "@mui/material";
|
|
3
|
-
import { ClueGroupProvider } from "../../hooks/ClueGroupContext.js";
|
|
4
|
-
import { memo } from "react";
|
|
5
|
-
import GroupControl from "./GroupControl.js";
|
|
6
|
-
const Group = ({ children, showHeader = true, slotProps, ...groupProps }) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(ClueGroupProvider, { ...groupProps, children: showHeader ? /* @__PURE__ */ jsxs(Stack, { direction: "column", alignSelf: "stretch", ...(slotProps == null ? void 0 : slotProps.stack) ?? {}, children: [
|
|
8
|
-
/* @__PURE__ */ jsx(GroupControl, {}),
|
|
9
|
-
children
|
|
10
|
-
] }) : children });
|
|
11
|
-
};
|
|
12
|
-
const Group$1 = memo(Group);
|
|
13
|
-
export {
|
|
14
|
-
Group$1 as default
|
|
15
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Card, Stack, Box, Typography, Autocomplete, TextField, Button, CircularProgress } from "@mui/material";
|
|
3
|
-
import { F as FlexOne } from "../../FlexOne-BSYAhhtG.js";
|
|
4
|
-
import Iconified from "../display/icons/Iconified.js";
|
|
5
|
-
import { SNACKBAR_EVENT_ID } from "../../data/event.js";
|
|
6
|
-
import { ClueGroupContext } from "../../hooks/ClueGroupContext.js";
|
|
7
|
-
import { useClueComponentSelector, useClueEnrichSelector } from "../../hooks/selectors.js";
|
|
8
|
-
import { safeDispatchEvent } from "../../utils/window.js";
|
|
9
|
-
import { useState, useMemo, useCallback } from "react";
|
|
10
|
-
import { u as useContextSelector } from "../../index-BDVjGvMI.js";
|
|
11
|
-
import ExecutePopover from "../actions/ExecutePopover.js";
|
|
12
|
-
import { c as capitalize } from "../../ActionForm-DgfJwTzt.js";
|
|
13
|
-
const GroupControl = () => {
|
|
14
|
-
const { t } = useClueComponentSelector((ctx) => ctx.i18next);
|
|
15
|
-
const { type, values, classification } = useContextSelector(ClueGroupContext, (ctx) => ({
|
|
16
|
-
type: ctx == null ? void 0 : ctx.type,
|
|
17
|
-
values: ctx == null ? void 0 : ctx.values,
|
|
18
|
-
classification: ctx == null ? void 0 : ctx.classification
|
|
19
|
-
}));
|
|
20
|
-
const sources = useClueEnrichSelector((ctx) => ctx.availableSources);
|
|
21
|
-
const enrich = useClueEnrichSelector((ctx) => ctx.bulkEnrich);
|
|
22
|
-
const [loading, setLoading] = useState(false);
|
|
23
|
-
const [selectedSources, setSelectedSources] = useState([]);
|
|
24
|
-
const fullValues = useMemo(
|
|
25
|
-
() => (values ?? []).map((value) => ({ value, type, classification })),
|
|
26
|
-
[classification, type, values]
|
|
27
|
-
);
|
|
28
|
-
const runEnrichment = useCallback(async () => {
|
|
29
|
-
if (loading) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
try {
|
|
33
|
-
setLoading(true);
|
|
34
|
-
await enrich(
|
|
35
|
-
(values ?? []).map((value) => ({ type, value })),
|
|
36
|
-
{ force: true, sources: selectedSources }
|
|
37
|
-
);
|
|
38
|
-
} catch (e) {
|
|
39
|
-
console.error(e);
|
|
40
|
-
safeDispatchEvent(
|
|
41
|
-
new CustomEvent(SNACKBAR_EVENT_ID, {
|
|
42
|
-
detail: {
|
|
43
|
-
message: e.toString(),
|
|
44
|
-
level: "error"
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
} finally {
|
|
49
|
-
setLoading(false);
|
|
50
|
-
}
|
|
51
|
-
}, [enrich, loading, selectedSources, type, values]);
|
|
52
|
-
return /* @__PURE__ */ jsx(Card, { sx: { p: 1 }, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
54
|
-
Box,
|
|
55
|
-
{
|
|
56
|
-
sx: (theme) => ({
|
|
57
|
-
border: "thin solid",
|
|
58
|
-
alignSelf: "stretch",
|
|
59
|
-
display: "flex",
|
|
60
|
-
alignItems: "center",
|
|
61
|
-
px: 1,
|
|
62
|
-
borderRadius: "5px",
|
|
63
|
-
borderColor: theme.palette.divider
|
|
64
|
-
}),
|
|
65
|
-
children: /* @__PURE__ */ jsxs(Typography, { color: "text.secondary", children: [
|
|
66
|
-
(values == null ? void 0 : values.length) ?? 0,
|
|
67
|
-
" selected"
|
|
68
|
-
] })
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/* @__PURE__ */ jsx(FlexOne, {}),
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
Autocomplete,
|
|
74
|
-
{
|
|
75
|
-
size: "small",
|
|
76
|
-
multiple: true,
|
|
77
|
-
options: sources,
|
|
78
|
-
sx: { minWidth: "400px" },
|
|
79
|
-
renderInput: (params) => /* @__PURE__ */ jsx(TextField, { size: "small", placeholder: t("sources"), ...params }),
|
|
80
|
-
value: selectedSources,
|
|
81
|
-
onChange: (__, value) => setSelectedSources(value),
|
|
82
|
-
disableCloseOnSelect: true,
|
|
83
|
-
getOptionLabel: (opt) => opt.split(/[_-]/).map((word) => capitalize(word)).join(" ")
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
Button,
|
|
88
|
-
{
|
|
89
|
-
variant: "outlined",
|
|
90
|
-
color: "info",
|
|
91
|
-
disabled: (values == null ? void 0 : values.length) < 1 || loading,
|
|
92
|
-
startIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "info", size: "20px" }) : /* @__PURE__ */ jsx(Iconified, { icon: "ic:outline-play-arrow" }),
|
|
93
|
-
sx: { alignSelf: "stretch" },
|
|
94
|
-
onClick: runEnrichment,
|
|
95
|
-
children: t("enrich")
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ jsx(ExecutePopover, { selectors: fullValues, size: "medium", multiples: true })
|
|
99
|
-
] }) });
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
GroupControl as default
|
|
103
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Stack, Typography } from "@mui/material";
|
|
3
|
-
import { ClueDatabaseContext } from "../../hooks/ClueDatabaseContext.js";
|
|
4
|
-
import { useClueEnrichSelector } from "../../hooks/selectors.js";
|
|
5
|
-
import { useContext, useState, useEffect } from "react";
|
|
6
|
-
const QueryStatus = () => {
|
|
7
|
-
const database = useContext(ClueDatabaseContext);
|
|
8
|
-
const ready = useClueEnrichSelector((ctx) => ctx.ready);
|
|
9
|
-
const [pendingCount, setPendingCount] = useState(0);
|
|
10
|
-
const [inProgressCount, setInProgressCount] = useState(0);
|
|
11
|
-
const [completeCount, setCompleteCount] = useState(0);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!ready) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const observables = [
|
|
17
|
-
database.status.count({ selector: { status: "pending" } }).$.subscribe(setPendingCount),
|
|
18
|
-
database.status.count({ selector: { status: "in-progress" } }).$.subscribe(setInProgressCount),
|
|
19
|
-
database.status.count({ selector: { status: "complete" } }).$.subscribe(setCompleteCount)
|
|
20
|
-
];
|
|
21
|
-
return () => {
|
|
22
|
-
try {
|
|
23
|
-
observables.forEach((_observable) => _observable.unsubscribe());
|
|
24
|
-
} catch (e) {
|
|
25
|
-
console.warn(e);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}, [database, ready]);
|
|
29
|
-
if (pendingCount + inProgressCount + completeCount < 1) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return /* @__PURE__ */ jsxs(
|
|
33
|
-
Stack,
|
|
34
|
-
{
|
|
35
|
-
spacing: 1,
|
|
36
|
-
sx: (theme) => ({
|
|
37
|
-
border: `thin solid ${theme.palette.divider}`,
|
|
38
|
-
borderRadius: theme.spacing(0.5),
|
|
39
|
-
mx: 1,
|
|
40
|
-
p: 1
|
|
41
|
-
}),
|
|
42
|
-
children: [
|
|
43
|
-
/* @__PURE__ */ jsxs(Typography, { sx: { fontFamily: "monospace" }, children: [
|
|
44
|
-
"Pending: ",
|
|
45
|
-
pendingCount
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ jsxs(Typography, { sx: { fontFamily: "monospace" }, children: [
|
|
48
|
-
"In Progress: ",
|
|
49
|
-
inProgressCount
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ jsxs(Typography, { sx: { fontFamily: "monospace" }, children: [
|
|
52
|
-
"Complete: ",
|
|
53
|
-
completeCount
|
|
54
|
-
] })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
QueryStatus as default
|
|
61
|
-
};
|
package/countBy-C69WslUA.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { b as baseAssignValue } from "./_baseAssignValue-CNbcU6Nb.js";
|
|
2
|
-
import { c as createAggregator } from "./_createAggregator-BpVy5xMi.js";
|
|
3
|
-
var objectProto = Object.prototype;
|
|
4
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5
|
-
var countBy = createAggregator(function(result, value, key) {
|
|
6
|
-
if (hasOwnProperty.call(result, key)) {
|
|
7
|
-
++result[key];
|
|
8
|
-
} else {
|
|
9
|
-
baseAssignValue(result, key, 1);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
countBy as c
|
|
14
|
-
};
|
package/data/event.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OptionsObject } from 'notistack';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
export declare const SNACKBAR_EVENT_ID = "snackbar.message";
|
|
5
|
-
export declare const SHOW_EVENT_ID = "clue.showPopup";
|
|
6
|
-
export declare const HIDE_EVENT_ID = "clue.hidePopup";
|
|
7
|
-
export type SnackbarEvents = {
|
|
8
|
-
message: ReactNode;
|
|
9
|
-
level: 'success' | 'error' | 'info' | 'warning';
|
|
10
|
-
timeout?: number;
|
|
11
|
-
options?: OptionsObject;
|
|
12
|
-
};
|