@gen-epix/ui-client-casedb 4.1.0 → 4.3.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/dist/_chunks/AddCasesToEventDialog.js +98 -98
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseContentForm.js +10 -10
- package/dist/_chunks/CaseInfoDialog.js +242 -241
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +224 -224
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/Dashboard.js +549 -550
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +76 -76
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/LegendaItem.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +138 -136
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/PanelSeparator.js +3 -3
- package/dist/_chunks/PanelSeparator.js.map +1 -1
- package/dist/_chunks/Upload.js +318 -318
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/{chunk-BV7QT456.js → chunk-OB3PAWPO.js} +3 -3
- package/dist/_chunks/chunk-OB3PAWPO.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +1 -1
- package/dist/_chunks/cloneDeep.js.map +1 -1
- package/dist/_chunks/esm.js +3 -3
- package/dist/_chunks/esm.js.map +1 -1
- package/dist/_chunks/index.module.js +1 -1
- package/dist/_chunks/index.module.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/shallow.js +2 -2
- package/dist/_chunks/shallow.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +24 -24
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/components/form/fields/ArrangementEditor/index.js +30 -30
- package/dist/components/ui/CreateEventDialog/index.js +40 -40
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
- package/dist/components/ui/HistogramWidget/index.js +161 -162
- package/dist/components/ui/HistogramWidget/index.js.map +1 -1
- package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
- package/dist/locale/en.json +6 -0
- package/dist/locale/nl.json +7 -1
- package/dist/pages/CasesDetailPage/index.js +1 -1
- package/dist/pages/ColsAdminPage/index.js +1 -1
- package/dist/pages/ConceptsAdminPage/index.js +1 -1
- package/dist/pages/DimsAdminPage/index.js +1 -1
- package/dist/pages/EventsDetailPage/index.js +1 -1
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +120 -86
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/RefColsAdminPage/index.js +1 -1
- package/dist/pages/RegionSetShapesAdminPage/index.js +1 -1
- package/dist/pages/RegionsAdminPage/index.js +1 -1
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +1 -1
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +59 -59
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
- package/dist/routes/index.js +93 -91
- package/dist/routes/index.js.map +1 -1
- package/dist/setup/setup.js +2 -3
- package/dist/setup/setup.js.map +1 -1
- package/package.json +73 -72
- package/dist/_chunks/chunk-BV7QT456.js.map +0 -1
- package/dist/_chunks/index.esm.js +0 -1465
- package/dist/_chunks/index.esm.js.map +0 -1
|
@@ -24,26 +24,27 @@ import { LineListIsOwnCaseService as C } from "../classes/services/LineListServi
|
|
|
24
24
|
import { CaseDbColType as w, CaseDbCommandName as T, CaseDbPermissionType as E } from "@gen-epix/api-casedb";
|
|
25
25
|
import { StringUtil as ee } from "@gen-epix/ui-core/utils/StringUtil";
|
|
26
26
|
import { ConfigService as D } from "@gen-epix/ui-client-common/classes/services/ConfigService";
|
|
27
|
-
import { Box as O, CircularProgress as k, Link as
|
|
28
|
-
import { memo as
|
|
29
|
-
import { useTranslation as
|
|
30
|
-
import { Fragment as
|
|
31
|
-
import
|
|
32
|
-
import { Table as
|
|
33
|
-
import { TABLE_COLUMN_FROZEN as
|
|
34
|
-
import { TableUtil as
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
27
|
+
import { Box as O, CircularProgress as k, Link as A, ListItemIcon as j, ListItemText as M, MenuItem as N, Tooltip as P, Typography as F, useTheme as I } from "@mui/material";
|
|
28
|
+
import { memo as L, use as R, useCallback as z, useEffect as B, useMemo as V, useRef as te, useState as H } from "react";
|
|
29
|
+
import { useTranslation as U } from "react-i18next";
|
|
30
|
+
import { Fragment as ne, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
31
|
+
import re from "@mui/icons-material/Edit";
|
|
32
|
+
import { Table as ie } from "@gen-epix/ui-client-common/components/ui/Table";
|
|
33
|
+
import { TABLE_COLUMN_FROZEN as K } from "@gen-epix/ui-client-common/models/table";
|
|
34
|
+
import { TableUtil as q } from "@gen-epix/ui-client-common/utils/TableUtil";
|
|
35
|
+
import ae from "@mui/icons-material/Share";
|
|
36
|
+
import { FeatureFlagsService as J } from "@gen-epix/ui-client-common/classes/services/FeatureFlagsService";
|
|
37
|
+
import { Subject as oe } from "@gen-epix/ui-core/classes/Subject";
|
|
38
|
+
import se from "@mui/icons-material/Troubleshoot";
|
|
38
39
|
import ce from "@mui/icons-material/CorporateFare";
|
|
39
40
|
import le from "@mui/icons-material/ArrowCircleRight";
|
|
40
|
-
import { AuthorizationService as
|
|
41
|
-
import { useColumnsMenu as
|
|
41
|
+
import { AuthorizationService as Y } from "@gen-epix/ui-client-common/classes/services/AuthorizationService";
|
|
42
|
+
import { useColumnsMenu as X } from "@gen-epix/ui-client-common/hooks/useColumnsMenu";
|
|
42
43
|
import ue from "@mui/icons-material/Link";
|
|
43
44
|
//#region src/components/ui/LineListWidget/LineListWidgetIsInEventCell.tsx
|
|
44
|
-
var de =
|
|
45
|
-
let [t, n] =
|
|
46
|
-
return
|
|
45
|
+
var de = L(({ row: e }) => {
|
|
46
|
+
let [t, n] = H(!0), [r, i] = H(!1), [a, o] = H(!1), s = I();
|
|
47
|
+
return B(() => {
|
|
47
48
|
(async () => {
|
|
48
49
|
try {
|
|
49
50
|
o(await S.getInstance().query(e.id));
|
|
@@ -53,19 +54,19 @@ var de = I(({ row: e }) => {
|
|
|
53
54
|
n(!1);
|
|
54
55
|
}
|
|
55
56
|
})();
|
|
56
|
-
}, [e.id]), /* @__PURE__ */
|
|
57
|
-
t && /* @__PURE__ */
|
|
57
|
+
}, [e.id]), /* @__PURE__ */ G(O, { children: [
|
|
58
|
+
t && /* @__PURE__ */ W(k, {
|
|
58
59
|
size: 16,
|
|
59
60
|
sx: {
|
|
60
61
|
marginTop: "4px",
|
|
61
62
|
position: "absolute"
|
|
62
63
|
}
|
|
63
64
|
}),
|
|
64
|
-
!t && r && /* @__PURE__ */
|
|
65
|
+
!t && r && /* @__PURE__ */ W(O, {
|
|
65
66
|
sx: { color: `${s.palette.error.main}` },
|
|
66
67
|
children: "?"
|
|
67
68
|
}),
|
|
68
|
-
!t && !r && a && /* @__PURE__ */
|
|
69
|
+
!t && !r && a && /* @__PURE__ */ W(h, {
|
|
69
70
|
fontSize: "small",
|
|
70
71
|
style: {
|
|
71
72
|
color: s.palette.primary.main,
|
|
@@ -76,9 +77,9 @@ var de = I(({ row: e }) => {
|
|
|
76
77
|
}
|
|
77
78
|
})
|
|
78
79
|
] });
|
|
79
|
-
}), fe =
|
|
80
|
-
let [t, n] =
|
|
81
|
-
return
|
|
80
|
+
}), fe = L(({ row: e }) => {
|
|
81
|
+
let [t, n] = H(!0), [r, i] = H(!1), [a, o] = H(!1), s = I();
|
|
82
|
+
return B(() => {
|
|
82
83
|
(async () => {
|
|
83
84
|
try {
|
|
84
85
|
o(await C.getInstance().query(e.id));
|
|
@@ -88,19 +89,19 @@ var de = I(({ row: e }) => {
|
|
|
88
89
|
n(!1);
|
|
89
90
|
}
|
|
90
91
|
})();
|
|
91
|
-
}, [e.id]), /* @__PURE__ */
|
|
92
|
-
t && /* @__PURE__ */
|
|
92
|
+
}, [e.id]), /* @__PURE__ */ G(O, { children: [
|
|
93
|
+
t && /* @__PURE__ */ W(k, {
|
|
93
94
|
size: 16,
|
|
94
95
|
sx: {
|
|
95
96
|
marginTop: "4px",
|
|
96
97
|
position: "absolute"
|
|
97
98
|
}
|
|
98
99
|
}),
|
|
99
|
-
!t && r && /* @__PURE__ */
|
|
100
|
+
!t && r && /* @__PURE__ */ W(O, {
|
|
100
101
|
sx: { color: `${s.palette.error.main}` },
|
|
101
102
|
children: "?"
|
|
102
103
|
}),
|
|
103
|
-
!t && !r && a && /* @__PURE__ */
|
|
104
|
+
!t && !r && a && /* @__PURE__ */ W(ce, {
|
|
104
105
|
fontSize: "small",
|
|
105
106
|
style: {
|
|
106
107
|
color: s.palette.primary.main,
|
|
@@ -112,8 +113,8 @@ var de = I(({ row: e }) => {
|
|
|
112
113
|
})
|
|
113
114
|
] });
|
|
114
115
|
}), pe = () => {
|
|
115
|
-
let e =
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
let e = R(u), { t } = U(), n = l(e, m((e) => e.sortedData)), r = l(e, m((e) => e.selectedIds));
|
|
117
|
+
return /* @__PURE__ */ W(F, {
|
|
117
118
|
"aria-live": "polite",
|
|
118
119
|
component: "div",
|
|
119
120
|
role: "status",
|
|
@@ -126,31 +127,31 @@ var de = I(({ row: e }) => {
|
|
|
126
127
|
shownCount: n.length ?? 0
|
|
127
128
|
})
|
|
128
129
|
});
|
|
129
|
-
},
|
|
130
|
-
let n =
|
|
130
|
+
}, Z = /* @__PURE__ */ e(d(), 1), me = ({ caseSet: e }) => {
|
|
131
|
+
let n = R(u), { t: i } = U(), a = l(n, m((e) => e.selectedIds)), o = l(n, m((e) => e.sortedData)), s = l(n, m((e) => e.completeCaseType)), c = l(n, m((e) => e.setFilterValue)), d = l(n, m((e) => e.filters)), p = l(n, m((e) => e.setSelectedIds)), h = l(n, m((e) => e.findSimilarCasesResults)), g = z((e, t, n) => t.valueGetter ? !!t.valueGetter({
|
|
131
132
|
column: t,
|
|
132
133
|
dataContext: s,
|
|
133
134
|
id: t.id,
|
|
134
135
|
row: e,
|
|
135
136
|
rowIndex: n
|
|
136
|
-
}) : !r.getRowValue(e.content, s.cols[t.id], s).isMissing, [s]), _ =
|
|
137
|
+
}) : !r.getRowValue(e.content, s.cols[t.id], s).isMissing, [s]), _ = z(async () => {
|
|
137
138
|
await c("selected", a), p([]);
|
|
138
139
|
}, [
|
|
139
140
|
c,
|
|
140
141
|
a,
|
|
141
142
|
p
|
|
142
|
-
]), v = d.some((e) => e instanceof t && e.filterValue.length > 0), y =
|
|
143
|
+
]), v = d.some((e) => e instanceof t && e.filterValue.length > 0), y = X({ hasCellData: g }), x = V(() => h?.flatMap((e) => e.similarCaseIds) || [], [h]), S = V(() => h?.length ? o.filter((e) => !x.includes(e.id)) : o, [
|
|
143
144
|
h,
|
|
144
145
|
o,
|
|
145
146
|
x
|
|
146
|
-
]), C =
|
|
147
|
-
let t =
|
|
147
|
+
]), C = V(() => S.filter((e) => a?.includes(e.id)), [S, a]), w = V(() => o.filter((e) => a?.includes(e.id)), [o, a]), ee = V(() => {
|
|
148
|
+
let t = Y.getInstance().doesUserHavePermission([{
|
|
148
149
|
command_name: T.CreateCaseSetCommand,
|
|
149
150
|
permission_type: E.EXECUTE
|
|
150
|
-
}]), n =
|
|
151
|
+
}]), n = Y.getInstance().doesUserHavePermission([{
|
|
151
152
|
command_name: T.CaseSetMemberCrudCommand,
|
|
152
153
|
permission_type: E.CREATE
|
|
153
|
-
}]), r = !!e &&
|
|
154
|
+
}]), r = !!e && Y.getInstance().doesUserHavePermission([{
|
|
154
155
|
command_name: T.CaseSetMemberCrudCommand,
|
|
155
156
|
permission_type: E.DELETE
|
|
156
157
|
}]), c = {
|
|
@@ -208,9 +209,9 @@ var de = I(({ row: e }) => {
|
|
|
208
209
|
}),
|
|
209
210
|
disabled: !C.length,
|
|
210
211
|
label: i`Remove selected cases from this event`
|
|
211
|
-
}), c.items.length > 3 && (c.items[3].divider = !0), (0,
|
|
212
|
+
}), c.items.length > 3 && (c.items[3].divider = !0), (0, Z.default)(c.items).divider = !0, c.items.push({
|
|
212
213
|
callback: () => f.getInstance().emit("openEditCases", w),
|
|
213
|
-
disabled: !a?.length,
|
|
214
|
+
disabled: !a?.length || J.getInstance().featureFlags?.disable_upload,
|
|
214
215
|
label: i`Edit selected cases`
|
|
215
216
|
}), [y, c];
|
|
216
217
|
}, [
|
|
@@ -227,27 +228,27 @@ var de = I(({ row: e }) => {
|
|
|
227
228
|
w,
|
|
228
229
|
C
|
|
229
230
|
]);
|
|
230
|
-
return /* @__PURE__ */
|
|
231
|
+
return /* @__PURE__ */ W(b, { menu: ee });
|
|
231
232
|
}, he = () => {
|
|
232
|
-
let e =
|
|
233
|
+
let e = I(), t = R(u), { t: n } = U(), r = l(t, m((e) => e.getWidgetData(c.TREE).zoomLevel === 1)), i = l(t, m((e) => e.setSorting)), a = z(() => {
|
|
233
234
|
(async () => {
|
|
234
235
|
await i(null, null), f.getInstance().emit("onLinkLineListAndTree");
|
|
235
236
|
})();
|
|
236
|
-
}, [i]), o =
|
|
237
|
+
}, [i]), o = V(() => [{
|
|
237
238
|
callback: a,
|
|
238
239
|
disabled: r,
|
|
239
240
|
label: n`Link and snap the Tree to the Line list (resets tree zoom level and Line List sorting)`,
|
|
240
|
-
leftIcon: /* @__PURE__ */
|
|
241
|
+
leftIcon: /* @__PURE__ */ W(ue, { sx: { color: r ? void 0 : e.palette.error.main } })
|
|
241
242
|
}], [
|
|
242
243
|
r,
|
|
243
244
|
a,
|
|
244
245
|
n,
|
|
245
246
|
e.palette.error.main
|
|
246
247
|
]);
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ W(b, { menu: o });
|
|
248
249
|
}, ge = () => {
|
|
249
|
-
let { t: e } =
|
|
250
|
-
|
|
250
|
+
let { t: e } = U(), t = R(u), n = l(t, m((e) => e.sortedData)), r = l(t, m((e) => e.completeCaseType)), i = z(() => t.getState().getCurrentColumnVisualSettings().filter((e) => e.isVisible).map((e) => e.id), [t]);
|
|
251
|
+
B(() => {
|
|
251
252
|
let a = (t) => {
|
|
252
253
|
let a = [{
|
|
253
254
|
disabled: !n?.length,
|
|
@@ -320,53 +321,53 @@ var de = I(({ row: e }) => {
|
|
|
320
321
|
n,
|
|
321
322
|
e
|
|
322
323
|
]);
|
|
323
|
-
},
|
|
324
|
-
let { caseSet: e } =
|
|
325
|
-
|
|
324
|
+
}, Q = () => {
|
|
325
|
+
let { caseSet: e } = R(_), t = R(_), o = te(null), { t: d } = U(), p = I(), m = V(() => new oe([]), []), b = te(null), T = R(u), E = l(T, (e) => e.completeCaseType), k = l(T, (e) => e.sortedData), F = l(T, (e) => e.isCondensed), L = l(T, (e) => e.stratification?.mode === i.FIELD ? e.stratification : null), H = l(T, (e) => e.updateWidgetData), Y = l(T, (e) => e.treeAddresses), X = l(T, (e) => e.setColumns), ue = l(T, (e) => e.isDataLoading);
|
|
326
|
+
B(() => () => {
|
|
326
327
|
t.lineListRangeSubject.next(void 0);
|
|
327
328
|
}, [t]);
|
|
328
|
-
let
|
|
329
|
+
let Z = z((e, t) => {
|
|
329
330
|
f.getInstance().emit("openCaseInfoDialog", {
|
|
330
331
|
caseId: e,
|
|
331
332
|
caseTypeId: E.id,
|
|
332
333
|
initialTab: t
|
|
333
334
|
});
|
|
334
|
-
}, [E.id]),
|
|
335
|
+
}, [E.id]), Q = z((t) => {
|
|
335
336
|
f.getInstance().emit("openAddCasesToEventDialog", {
|
|
336
337
|
currentCaseSet: e,
|
|
337
338
|
rows: [t]
|
|
338
339
|
});
|
|
339
|
-
}, [e]), _e =
|
|
340
|
-
|
|
341
|
-
}, [
|
|
340
|
+
}, [e]), _e = z((e) => {
|
|
341
|
+
Z(e.id, g.INFO);
|
|
342
|
+
}, [Z]), ve = z((e, t) => {
|
|
342
343
|
let n = t?.length * .8;
|
|
343
344
|
k.forEach((t) => {
|
|
344
345
|
let i = r.getRowValue(t.content, e, E).short;
|
|
345
346
|
i?.length > n && (n = i.length);
|
|
346
347
|
});
|
|
347
348
|
let i = +p.spacing(5).replace("px", "") + n * 7;
|
|
348
|
-
|
|
349
|
+
L?.col?.id === e.id && (i += +p.spacing(3).replace("px", ""));
|
|
349
350
|
let { MAX_COLUMN_WIDTH: a, REQUIRED_EXTRA_CELL_PADDING_TO_FIT_CONTENT: o } = D.getInstance().config.lineList;
|
|
350
351
|
return Math.min(a, i) + o;
|
|
351
352
|
}, [
|
|
352
353
|
E,
|
|
353
354
|
k,
|
|
354
|
-
|
|
355
|
+
L?.col?.id,
|
|
355
356
|
p
|
|
356
|
-
]), ye =
|
|
357
|
+
]), ye = z((e, t) => {
|
|
357
358
|
f.getInstance().emit("openContactDetailsDialog", {
|
|
358
359
|
organizationId: e,
|
|
359
360
|
organizationName: t
|
|
360
361
|
});
|
|
361
|
-
}, []), be =
|
|
362
|
+
}, []), be = z(({ id: e, row: t }) => {
|
|
362
363
|
let n = r.getRowValue(t.content, E.cols[e], E);
|
|
363
364
|
if (n.isMissing) return n.short;
|
|
364
365
|
let i = {
|
|
365
366
|
caseIds: [t.id],
|
|
366
|
-
color:
|
|
367
|
+
color: L?.caseIdColors[t.id],
|
|
367
368
|
columnType: E.ref_cols[E.cols[e].ref_col_id].col_type,
|
|
368
369
|
rowValue: n
|
|
369
|
-
}, a = /* @__PURE__ */
|
|
370
|
+
}, a = /* @__PURE__ */ W(A, {
|
|
370
371
|
color: "primary",
|
|
371
372
|
component: "button",
|
|
372
373
|
onClick: () => {
|
|
@@ -375,21 +376,21 @@ var de = I(({ row: e }) => {
|
|
|
375
376
|
sx: { cursor: "pointer" },
|
|
376
377
|
children: n.short
|
|
377
378
|
});
|
|
378
|
-
return e ===
|
|
379
|
+
return e === L?.col?.id ? /* @__PURE__ */ W(v, {
|
|
379
380
|
item: i,
|
|
380
381
|
children: a
|
|
381
382
|
}) : a;
|
|
382
383
|
}, [
|
|
383
384
|
E,
|
|
384
385
|
ye,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
]), xe =
|
|
386
|
+
L?.caseIdColors,
|
|
387
|
+
L?.col?.id
|
|
388
|
+
]), xe = z((e, t) => {
|
|
388
389
|
f.getInstance().emit("openSequenceDownloadDialog", {
|
|
389
390
|
cases: [t],
|
|
390
391
|
geneticSequenceColId: e
|
|
391
392
|
});
|
|
392
|
-
}, []), Se =
|
|
393
|
+
}, []), Se = z(({ id: e, row: t }) => /* @__PURE__ */ W(A, {
|
|
393
394
|
color: "primary",
|
|
394
395
|
component: "button",
|
|
395
396
|
onClick: () => {
|
|
@@ -397,11 +398,11 @@ var de = I(({ row: e }) => {
|
|
|
397
398
|
},
|
|
398
399
|
sx: { cursor: "pointer" },
|
|
399
400
|
children: t.content[e]
|
|
400
|
-
}), [xe]), Ce =
|
|
401
|
+
}), [xe]), Ce = z(() => /* @__PURE__ */ W(P, {
|
|
401
402
|
"aria-hidden": !1,
|
|
402
403
|
arrow: !0,
|
|
403
404
|
title: d`Indicates if the case is in an event.`,
|
|
404
|
-
children: /* @__PURE__ */
|
|
405
|
+
children: /* @__PURE__ */ W(h, {
|
|
405
406
|
fontSize: "small",
|
|
406
407
|
style: {
|
|
407
408
|
color: p.palette.primary.main,
|
|
@@ -411,11 +412,11 @@ var de = I(({ row: e }) => {
|
|
|
411
412
|
width: 20
|
|
412
413
|
}
|
|
413
414
|
})
|
|
414
|
-
}), [d, p]), we =
|
|
415
|
+
}), [d, p]), we = z(({ row: e }) => /* @__PURE__ */ W(de, { row: e }), []), Te = z(() => /* @__PURE__ */ W(P, {
|
|
415
416
|
"aria-hidden": !1,
|
|
416
417
|
arrow: !0,
|
|
417
418
|
title: d`Indicates if the case is owned by the current user (the case is in a private data collection that is owned by the user's organization).`,
|
|
418
|
-
children: /* @__PURE__ */
|
|
419
|
+
children: /* @__PURE__ */ W(ce, {
|
|
419
420
|
fontSize: "small",
|
|
420
421
|
style: {
|
|
421
422
|
color: p.palette.primary.main,
|
|
@@ -425,7 +426,7 @@ var de = I(({ row: e }) => {
|
|
|
425
426
|
width: 20
|
|
426
427
|
}
|
|
427
428
|
})
|
|
428
|
-
}), [d, p]), Ee =
|
|
429
|
+
}), [d, p]), Ee = z(({ row: e }) => /* @__PURE__ */ W(fe, { row: e }), []), De = z(({ row: e }) => T.getState().findSimilarCasesResults.reduce((e, t) => [...e, ...t.similarCaseIds], []).includes(e.id) ? /* @__PURE__ */ W(se, {
|
|
429
430
|
fontSize: "small",
|
|
430
431
|
style: {
|
|
431
432
|
color: p.palette.primary.main,
|
|
@@ -434,11 +435,11 @@ var de = I(({ row: e }) => {
|
|
|
434
435
|
position: "absolute",
|
|
435
436
|
width: 20
|
|
436
437
|
}
|
|
437
|
-
}) : null, [T, p]), Oe =
|
|
438
|
+
}) : null, [T, p]), Oe = z(() => /* @__PURE__ */ W(P, {
|
|
438
439
|
"aria-hidden": !1,
|
|
439
440
|
arrow: !0,
|
|
440
441
|
title: d`Indicates if the case has been identified as a similar case, based on the find similar cases result.`,
|
|
441
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ W(se, {
|
|
442
443
|
fontSize: "small",
|
|
443
444
|
style: {
|
|
444
445
|
color: p.palette.primary.main,
|
|
@@ -448,23 +449,23 @@ var de = I(({ row: e }) => {
|
|
|
448
449
|
width: 20
|
|
449
450
|
}
|
|
450
451
|
})
|
|
451
|
-
}), [d, p]), ke =
|
|
452
|
+
}), [d, p]), ke = z(({ id: e, row: t }) => {
|
|
452
453
|
let n = r.getRowValue(t.content, E.cols[e], E), i = {
|
|
453
454
|
caseIds: [t.id],
|
|
454
|
-
color:
|
|
455
|
+
color: L?.caseIdColors[t.id],
|
|
455
456
|
columnType: E.ref_cols[E.cols[e].ref_col_id].col_type,
|
|
456
457
|
rowValue: n
|
|
457
458
|
};
|
|
458
|
-
return e ===
|
|
459
|
+
return e === L?.col?.id ? /* @__PURE__ */ W(v, { item: i }) : /* @__PURE__ */ W(ne, { children: n.short });
|
|
459
460
|
}, [
|
|
460
461
|
E,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
]), Ae =
|
|
464
|
-
|
|
465
|
-
|
|
462
|
+
L?.caseIdColors,
|
|
463
|
+
L?.col?.id
|
|
464
|
+
]), Ae = V(() => [
|
|
465
|
+
q.createReadableIndexColumn({ getAriaLabel: (e) => d("Show case information for {{index}}", { index: e.rowIndex + 1 }) }),
|
|
466
|
+
q.createSelectableColumn(),
|
|
466
467
|
{
|
|
467
|
-
frozen:
|
|
468
|
+
frozen: K.LEFT,
|
|
468
469
|
id: "isInEvent",
|
|
469
470
|
isInitiallyVisible: !0,
|
|
470
471
|
renderCell: we,
|
|
@@ -474,7 +475,7 @@ var de = I(({ row: e }) => {
|
|
|
474
475
|
widthPx: 24
|
|
475
476
|
},
|
|
476
477
|
{
|
|
477
|
-
frozen:
|
|
478
|
+
frozen: K.LEFT,
|
|
478
479
|
id: "isOwnCase",
|
|
479
480
|
isInitiallyVisible: !0,
|
|
480
481
|
renderCell: Ee,
|
|
@@ -484,7 +485,7 @@ var de = I(({ row: e }) => {
|
|
|
484
485
|
widthPx: 24
|
|
485
486
|
},
|
|
486
487
|
{
|
|
487
|
-
frozen:
|
|
488
|
+
frozen: K.LEFT,
|
|
488
489
|
headerTooltipContent: d`Is similar case?`,
|
|
489
490
|
id: "similar",
|
|
490
491
|
isInitiallyVisible: !0,
|
|
@@ -502,34 +503,35 @@ var de = I(({ row: e }) => {
|
|
|
502
503
|
d,
|
|
503
504
|
De,
|
|
504
505
|
Oe
|
|
505
|
-
]), je =
|
|
506
|
+
]), je = V(() => [q.createActionsColumn({
|
|
506
507
|
columnContext: null,
|
|
507
508
|
getActions: (e) => [
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
onClick: () =>
|
|
510
|
-
children: [/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ G(N, {
|
|
510
|
+
onClick: () => Z(e.row.id, g.INFO),
|
|
511
|
+
children: [/* @__PURE__ */ W(j, { children: /* @__PURE__ */ W(le, {}) }), /* @__PURE__ */ W(M, { children: d`Show information` })]
|
|
511
512
|
}, "showInformation"),
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
/* @__PURE__ */ G(N, {
|
|
514
|
+
disabled: J.getInstance().featureFlags?.disable_upload,
|
|
515
|
+
onClick: () => Z(e.row.id, g.EDIT),
|
|
516
|
+
children: [/* @__PURE__ */ W(j, { children: /* @__PURE__ */ W(re, {}) }), /* @__PURE__ */ W(M, { children: d`Edit information` })]
|
|
515
517
|
}, "editInformation"),
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
onClick: () =>
|
|
518
|
-
children: [/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ G(N, {
|
|
519
|
+
onClick: () => Z(e.row.id, g.SHARING),
|
|
520
|
+
children: [/* @__PURE__ */ W(j, { children: /* @__PURE__ */ W(ae, {}) }), /* @__PURE__ */ W(M, { children: d`Share` })]
|
|
519
521
|
}, "share"),
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
onClick: () =>
|
|
522
|
-
children: [/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ G(N, {
|
|
523
|
+
onClick: () => Q(e.row),
|
|
524
|
+
children: [/* @__PURE__ */ W(j, { children: /* @__PURE__ */ W(h, {}) }), /* @__PURE__ */ W(M, { children: d`Add to event` })]
|
|
523
525
|
}, "addToEvent")
|
|
524
526
|
],
|
|
525
527
|
t: d
|
|
526
528
|
})], [
|
|
529
|
+
Q,
|
|
527
530
|
Z,
|
|
528
|
-
X,
|
|
529
531
|
d
|
|
530
|
-
]), Me =
|
|
532
|
+
]), Me = V(() => {
|
|
531
533
|
let e = {};
|
|
532
|
-
return
|
|
534
|
+
return F && E.ordered_col_ids.forEach((t) => {
|
|
533
535
|
let n = E.cols[t];
|
|
534
536
|
e[t] = a.getStratification({
|
|
535
537
|
col: n,
|
|
@@ -541,18 +543,18 @@ var de = I(({ row: e }) => {
|
|
|
541
543
|
}), e;
|
|
542
544
|
}, [
|
|
543
545
|
E,
|
|
544
|
-
|
|
546
|
+
F,
|
|
545
547
|
k
|
|
546
|
-
]), Ne =
|
|
548
|
+
]), Ne = z((e) => Me[e.column.id]?.caseIdColors[e.row.id], [Me]), Pe = z((e) => {
|
|
547
549
|
let t = r.getRowValue(e.row.content, E.cols[e.column.id], E);
|
|
548
550
|
return t.isMissing ? void 0 : t.long;
|
|
549
|
-
}, [E]),
|
|
551
|
+
}, [E]), Fe = V(() => {
|
|
550
552
|
let { DATA_MISSING_CHARACTER: e } = D.getInstance().config.epi, t = n.getInitialVisibleColIds(E), r = [];
|
|
551
553
|
return E.ordered_dim_ids.map((e) => E.dims[e]).forEach((n) => {
|
|
552
554
|
E.ordered_col_ids_by_dim[n.id].map((e) => E.cols[e]).forEach((n) => {
|
|
553
555
|
let i = E.ref_cols[n.ref_col_id], a = {
|
|
554
556
|
cellColorGetter: Ne,
|
|
555
|
-
cellTitleGetter:
|
|
557
|
+
cellTitleGetter: Pe,
|
|
556
558
|
columnContext: n,
|
|
557
559
|
headerName: n.label,
|
|
558
560
|
headerTooltipContent: i.description,
|
|
@@ -561,13 +563,13 @@ var de = I(({ row: e }) => {
|
|
|
561
563
|
};
|
|
562
564
|
if (i.col_type === w.GENETIC_DISTANCE) r.push({
|
|
563
565
|
...a,
|
|
564
|
-
cellTitleGetter: (e) => (
|
|
566
|
+
cellTitleGetter: (e) => (Y[n.id]?.addresses[e.row.id] ? `${Y[n.id].algorithmCode} ${Y[n.id].addresses[e.row.id]}` : void 0) ?? void 0,
|
|
565
567
|
comparatorFactory: ({ direction: e }) => (t, r) => {
|
|
566
|
-
let i = ee.advancedSortComperator(
|
|
568
|
+
let i = ee.advancedSortComperator(Y[n.id]?.addresses?.[t.id], Y[n.id]?.addresses?.[r.id]);
|
|
567
569
|
return e === "asc" ? i : -i;
|
|
568
570
|
},
|
|
569
571
|
type: "text",
|
|
570
|
-
valueGetter: (t) => (
|
|
572
|
+
valueGetter: (t) => (Y[n.id]?.addresses[t.row.id] ? `${Y[n.id].algorithmCode} ${Y[n.id].addresses[t.row.id]}` : void 0) ?? e,
|
|
571
573
|
widthPx: 200
|
|
572
574
|
});
|
|
573
575
|
else {
|
|
@@ -601,26 +603,26 @@ var de = I(({ row: e }) => {
|
|
|
601
603
|
Ae,
|
|
602
604
|
je,
|
|
603
605
|
Ne,
|
|
604
|
-
|
|
605
|
-
|
|
606
|
+
Pe,
|
|
607
|
+
Y,
|
|
606
608
|
ve,
|
|
607
609
|
be,
|
|
608
610
|
Se,
|
|
609
611
|
ke
|
|
610
|
-
]),
|
|
612
|
+
]), Ie = z((e) => {
|
|
611
613
|
t.highlight({
|
|
612
614
|
caseIds: [e.id],
|
|
613
615
|
origin: c.LINE_LIST
|
|
614
616
|
});
|
|
615
|
-
}, [t]),
|
|
617
|
+
}, [t]), Le = z(() => {
|
|
616
618
|
t.highlight({
|
|
617
619
|
caseIds: [],
|
|
618
620
|
origin: c.LINE_LIST
|
|
619
621
|
});
|
|
620
622
|
}, [t]);
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}, [
|
|
623
|
+
B(() => {
|
|
624
|
+
X(Fe);
|
|
625
|
+
}, [X, Fe]), B(() => {
|
|
624
626
|
let e = t.highlightSubject.subscribe((e) => {
|
|
625
627
|
if (e?.origin !== c.LINE_LIST) {
|
|
626
628
|
if (e.scrollIntoView) {
|
|
@@ -639,28 +641,28 @@ var de = I(({ row: e }) => {
|
|
|
639
641
|
m,
|
|
640
642
|
k
|
|
641
643
|
]), ge();
|
|
642
|
-
let
|
|
643
|
-
|
|
644
|
-
}, 500),
|
|
645
|
-
|
|
646
|
-
}, [
|
|
644
|
+
let Re = x((e) => {
|
|
645
|
+
H(c.LINE_LIST, { visibleItemItemIndex: e });
|
|
646
|
+
}, 500), ze = z((e) => {
|
|
647
|
+
Re(e);
|
|
648
|
+
}, [Re]), $ = x(async (e) => {
|
|
647
649
|
await S.getInstance().loadRange(k.slice(e.startIndex, Math.min(e.endIndex + 1, k.length)).map((e) => e.id)), await C.getInstance().loadRange(k.slice(e.startIndex, Math.min(e.endIndex + 1, k.length)).map((e) => e.id), E.id);
|
|
648
650
|
}, D.getInstance().config.lineList.CASE_SET_MEMBERS_FETCH_DEBOUNCE_DELAY_MS, {
|
|
649
651
|
leading: !1,
|
|
650
652
|
trailing: !0
|
|
651
|
-
}),
|
|
653
|
+
}), Be = z((e) => {
|
|
652
654
|
t.lineListRangeSubject.next(e), $(e);
|
|
653
655
|
}, [t, $]);
|
|
654
|
-
|
|
656
|
+
B(() => () => {
|
|
655
657
|
S.getInstance().cleanStaleQueue(), C.getInstance().cleanStaleQueue();
|
|
656
658
|
}, []);
|
|
657
|
-
let
|
|
659
|
+
let Ve = z((e) => {
|
|
658
660
|
isNaN(e) || t.linkedScrollSubject.next({
|
|
659
661
|
origin: o.current,
|
|
660
662
|
position: e
|
|
661
663
|
});
|
|
662
664
|
}, [t]);
|
|
663
|
-
|
|
665
|
+
B(() => {
|
|
664
666
|
let e = t.linkedScrollSubject.subscribe((e) => {
|
|
665
667
|
e.origin !== o.current && b.current.setVerticalScrollPosition(e.position);
|
|
666
668
|
});
|
|
@@ -668,30 +670,30 @@ var de = I(({ row: e }) => {
|
|
|
668
670
|
e();
|
|
669
671
|
};
|
|
670
672
|
}, [t]);
|
|
671
|
-
let
|
|
672
|
-
return /* @__PURE__ */
|
|
673
|
+
let He = z((e) => e.id, []);
|
|
674
|
+
return /* @__PURE__ */ W(y, {
|
|
673
675
|
isLoading: ue,
|
|
674
|
-
primaryMenu: /* @__PURE__ */
|
|
675
|
-
secondaryMenu: /* @__PURE__ */
|
|
676
|
-
title: /* @__PURE__ */
|
|
676
|
+
primaryMenu: /* @__PURE__ */ W(me, { caseSet: e }),
|
|
677
|
+
secondaryMenu: /* @__PURE__ */ W(he, {}),
|
|
678
|
+
title: /* @__PURE__ */ W(pe, {}),
|
|
677
679
|
widgetName: c.LINE_LIST,
|
|
678
|
-
children: /* @__PURE__ */
|
|
680
|
+
children: /* @__PURE__ */ W(O, {
|
|
679
681
|
ref: o,
|
|
680
682
|
sx: {
|
|
681
683
|
height: "100%",
|
|
682
684
|
width: "100%"
|
|
683
685
|
},
|
|
684
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ W(ie, {
|
|
685
687
|
font: p["gen-epix-ui-client-casedb"].lineList.font,
|
|
686
688
|
forceHorizontalOverflow: !0,
|
|
687
|
-
getRowName:
|
|
689
|
+
getRowName: He,
|
|
688
690
|
initialVisibleItemIndex: T.getState().getWidgetData(c.LINE_LIST)?.visibleItemItemIndex,
|
|
689
|
-
onRangeChanged:
|
|
691
|
+
onRangeChanged: Be,
|
|
690
692
|
onReadableIndexClick: _e,
|
|
691
|
-
onRowMouseEnter:
|
|
692
|
-
onRowMouseLeave:
|
|
693
|
-
onVerticalScrollPositionChange:
|
|
694
|
-
onVisibleItemIndexChange:
|
|
693
|
+
onRowMouseEnter: Ie,
|
|
694
|
+
onRowMouseLeave: Le,
|
|
695
|
+
onVerticalScrollPositionChange: Ve,
|
|
696
|
+
onVisibleItemIndexChange: ze,
|
|
695
697
|
ref: b,
|
|
696
698
|
rowHeight: 3,
|
|
697
699
|
rowHighlightingSubject: m
|
|
@@ -700,6 +702,6 @@ var de = I(({ row: e }) => {
|
|
|
700
702
|
});
|
|
701
703
|
};
|
|
702
704
|
//#endregion
|
|
703
|
-
export {
|
|
705
|
+
export { Q as t };
|
|
704
706
|
|
|
705
707
|
//# sourceMappingURL=LineListWidget.js.map
|