@cccsaurora/howler-ui 2.17.0-dev.553 → 2.17.0-dev.557
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/components/elements/hit/related/RelatedIcon.js +2 -2
- package/components/routes/dossiers/DossierCard.js +2 -2
- package/components/routes/dossiers/DossierEditor.js +1 -1
- package/components/routes/dossiers/DossierEditor.test.js +1 -1
- package/components/routes/dossiers/LeadEditor.js +1 -1
- package/components/routes/dossiers/LeadForm.js +1 -1
- package/components/routes/dossiers/PivotForm.js +1 -1
- package/components/routes/hits/search/InformationPane.js +1 -1
- package/components/routes/hits/view/HitViewer.js +1 -1
- package/package.json +1 -1
- package/plugins/clue/components/CluePivot.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { getIcon, Icon } from '@iconify/react';
|
|
3
3
|
import Avatar from '@mui/material/Avatar';
|
|
4
4
|
import { useAppTheme } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
5
5
|
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
@@ -10,7 +10,7 @@ const RelatedIcon = ({ icon, title, href, compact = false }) => {
|
|
|
10
10
|
if (!icon) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
|
-
if (
|
|
13
|
+
if (getIcon(icon)) {
|
|
14
14
|
return _jsx(Icon, { fontSize: "1.5rem", icon: icon });
|
|
15
15
|
}
|
|
16
16
|
const app = config.configuration.ui.apps.find(a => a.name.toLowerCase() === icon?.toLowerCase());
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Delete, Language, ManageSearch, Person } from '@mui/icons-material';
|
|
3
|
-
import { Box, Card, Chip, Divider, IconButton, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
|
+
import { Box, Card, Chip, Divider, Grid, IconButton, Stack, Tooltip, Typography } from '@mui/material';
|
|
4
4
|
import HowlerAvatar from '@cccsaurora/howler-ui/components/elements/display/HowlerAvatar';
|
|
5
5
|
import { isEmpty } from 'lodash-es';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Link } from 'react-router-dom';
|
|
8
8
|
const DossierCard = ({ dossier, className, onDelete }) => {
|
|
9
9
|
const { t, i18n } = useTranslation();
|
|
10
|
-
return (_jsx(Card, { variant: "outlined", sx: { p: 1, mb: 1 }, className: className, children: _jsxs(Stack, { direction: "row", alignItems: "center", spacing: 1, children: [_jsxs(Stack, { sx: { flex: 1 }, children: [_jsxs(Typography, { variant: "body1", display: "flex", alignItems: "start", children: [_jsx(Tooltip, { title: t(`route.dossiers.manager.${dossier.type}`), children: dossier.type === 'personal' ? _jsx(Person, { fontSize: "small" }) : _jsx(Language, { fontSize: "small" }) }), _jsx(Box, { component: "span", ml: 1, children: dossier.title })] }), _jsx(Typography, { variant: "caption", color: "text.secondary", children: _jsx("code", { children: dossier.query }) }), _jsxs(
|
|
10
|
+
return (_jsx(Card, { variant: "outlined", sx: { p: 1, mb: 1 }, className: className, children: _jsxs(Stack, { direction: "row", alignItems: "center", spacing: 1, sx: { '& > *': { flexShrink: 0 } }, children: [_jsxs(Stack, { sx: { flex: 1 }, children: [_jsxs(Typography, { variant: "body1", display: "flex", alignItems: "start", children: [_jsx(Tooltip, { title: t(`route.dossiers.manager.${dossier.type}`), children: dossier.type === 'personal' ? _jsx(Person, { fontSize: "small" }) : _jsx(Language, { fontSize: "small" }) }), _jsx(Box, { component: "span", ml: 1, children: dossier.title })] }), _jsx(Typography, { variant: "caption", color: "text.secondary", children: _jsx("code", { children: dossier.query }) }), _jsxs(Grid, { container: true, spacing: 1, sx: { mt: 1 }, children: [dossier.leads?.map((lead, index) => (_jsx(Grid, { item: true, children: _jsx(Chip, { sx: { maxWidth: '300px' }, clickable: true, label: `${lead.label?.[i18n.language] ?? t('unknown')} (${lead.format})`, size: "small", component: Link, to: `/dossiers/${dossier.dossier_id}/edit?tab=leads&lead=${index}`, onClick: e => e.stopPropagation() }) }, lead.format + lead.label?.en))), !isEmpty(dossier.leads) && !isEmpty(dossier.pivots) && (_jsx(Grid, { item: true, children: _jsx(Divider, { orientation: "vertical" }) })), dossier.pivots?.map((pivot, index) => (_jsx(Grid, { item: true, children: _jsx(Chip, { sx: { maxWidth: '300px' }, clickable: true, label: `${pivot.label?.[i18n.language] ?? t('unknown')} (${pivot.format})`, size: "small", component: Link, to: `/dossiers/${dossier.dossier_id}/edit?tab=pivots&pivot=${index}`, onClick: e => e.stopPropagation() }) }, pivot.format + pivot.label?.en)))] })] }), _jsx(HowlerAvatar, { sx: { height: '28px', width: '28px' }, userId: dossier.owner }), _jsx(Tooltip, { title: t('route.dossiers.manager.openinsearch'), children: _jsx(IconButton, { component: Link, to: `/search?query=${dossier.query}`, onClick: e => e.stopPropagation(), children: _jsx(ManageSearch, {}) }) }), onDelete && (_jsx(Tooltip, { title: t('route.dossiers.manager.delete'), children: _jsx(IconButton, { onClick: e => onDelete(e, dossier.dossier_id), children: _jsx(Delete, {}) }) }))] }) }, dossier.dossier_id));
|
|
11
11
|
};
|
|
12
12
|
export default DossierCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { iconExists } from '@iconify/react
|
|
2
|
+
import { iconExists } from '@iconify/react';
|
|
3
3
|
import { Language, Person, Save } from '@mui/icons-material';
|
|
4
4
|
import { Box, CircularProgress, Fab, Paper, Stack, Tab, Tabs, TextField, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useMediaQuery } from '@mui/material';
|
|
5
5
|
import api from '@cccsaurora/howler-ui/api';
|
|
@@ -38,7 +38,7 @@ vi.mock('@monaco-editor/react', async () => {
|
|
|
38
38
|
return { ...actual, useMonaco: vi.fn() };
|
|
39
39
|
});
|
|
40
40
|
// Mock iconExists
|
|
41
|
-
vi.mock('@iconify/react
|
|
41
|
+
vi.mock('@iconify/react', () => ({
|
|
42
42
|
Icon: ({ ...args }) => _jsx("div", { ...args, children: 'iconify' }),
|
|
43
43
|
iconExists: (icon) => icon?.startsWith('material-symbols:') || icon === 'test-icon'
|
|
44
44
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Icon, iconExists } from '@iconify/react
|
|
2
|
+
import { Icon, iconExists } from '@iconify/react';
|
|
3
3
|
import { useMonaco } from '@monaco-editor/react';
|
|
4
4
|
import { Delete, OpenInNew } from '@mui/icons-material';
|
|
5
5
|
import { Autocomplete, Button, IconButton, Stack, TextField, Typography, useTheme } from '@mui/material';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Icon } from '@iconify/react
|
|
2
|
+
import { Icon } from '@iconify/react';
|
|
3
3
|
import { Add } from '@mui/icons-material';
|
|
4
4
|
import { Alert, Button, Paper, Stack, Tab, Tabs } from '@mui/material';
|
|
5
5
|
import isNull from 'lodash-es/isNull';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Icon, iconExists } from '@iconify/react
|
|
2
|
+
import { Icon, iconExists } from '@iconify/react';
|
|
3
3
|
import { Add, Delete, OpenInNew, Remove } from '@mui/icons-material';
|
|
4
4
|
import { Alert, Autocomplete, Button, Divider, IconButton, Paper, Stack, Tab, Tabs, TextField, Typography, useTheme } from '@mui/material';
|
|
5
5
|
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Clear, Code, Comment, DataObject, History, LinkSharp, OpenInNew, QueryStats } from '@mui/icons-material';
|
|
3
3
|
import { Badge, Box, Divider, IconButton, Skeleton, Stack, Tab, Tabs, Tooltip, useTheme } from '@mui/material';
|
|
4
4
|
import TuiIconButton from '@cccsaurora/howler-ui/components/elements/addons/buttons/CustomIconButton';
|
|
5
|
-
import { Icon } from '@iconify/react
|
|
5
|
+
import { Icon } from '@iconify/react';
|
|
6
6
|
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
7
7
|
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
8
8
|
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Icon } from '@iconify/react
|
|
2
|
+
import { Icon } from '@iconify/react';
|
|
3
3
|
import { Code, Comment, DataObject, History, LinkSharp, QueryStats, ViewAgenda } from '@mui/icons-material';
|
|
4
4
|
import { Badge, Box, CardContent, Collapse, IconButton, Skeleton, Stack, Tab, Tabs, Tooltip, useMediaQuery, useTheme } from '@mui/material';
|
|
5
5
|
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useClueActionsSelector, useClueEnrichSelector } from '@cccsaurora/clue-ui';
|
|
3
|
-
import { Icon } from '@iconify/react
|
|
3
|
+
import { Icon } from '@iconify/react';
|
|
4
4
|
import { Settings } from '@mui/icons-material';
|
|
5
5
|
import { Divider, IconButton, Stack, Typography } from '@mui/material';
|
|
6
6
|
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|