@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.
Files changed (63) hide show
  1. package/dist/_chunks/AddCasesToEventDialog.js +98 -98
  2. package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
  3. package/dist/_chunks/CaseContentForm.js +10 -10
  4. package/dist/_chunks/CaseInfoDialog.js +242 -241
  5. package/dist/_chunks/CaseInfoDialog.js.map +1 -1
  6. package/dist/_chunks/CaseSetInfoDialog.js +224 -224
  7. package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
  8. package/dist/_chunks/Dashboard.js +549 -550
  9. package/dist/_chunks/Dashboard.js.map +1 -1
  10. package/dist/_chunks/FindSimilarCasesDialog.js +76 -76
  11. package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
  12. package/dist/_chunks/LegendaItem.js.map +1 -1
  13. package/dist/_chunks/LineListWidget.js +138 -136
  14. package/dist/_chunks/LineListWidget.js.map +1 -1
  15. package/dist/_chunks/PanelSeparator.js +3 -3
  16. package/dist/_chunks/PanelSeparator.js.map +1 -1
  17. package/dist/_chunks/Upload.js +318 -318
  18. package/dist/_chunks/Upload.js.map +1 -1
  19. package/dist/_chunks/{chunk-BV7QT456.js → chunk-OB3PAWPO.js} +3 -3
  20. package/dist/_chunks/chunk-OB3PAWPO.js.map +1 -0
  21. package/dist/_chunks/cloneDeep.js +1 -1
  22. package/dist/_chunks/cloneDeep.js.map +1 -1
  23. package/dist/_chunks/esm.js +3 -3
  24. package/dist/_chunks/esm.js.map +1 -1
  25. package/dist/_chunks/index.module.js +1 -1
  26. package/dist/_chunks/index.module.js.map +1 -1
  27. package/dist/_chunks/react.js +1 -1
  28. package/dist/_chunks/react.js.map +1 -1
  29. package/dist/_chunks/shallow.js +2 -2
  30. package/dist/_chunks/shallow.js.map +1 -1
  31. package/dist/_chunks/vanilla.js +1 -1
  32. package/dist/_chunks/vanilla.js.map +1 -1
  33. package/dist/_chunks/yup.js +24 -24
  34. package/dist/_chunks/yup.js.map +1 -1
  35. package/dist/components/form/fields/ArrangementEditor/index.js +30 -30
  36. package/dist/components/ui/CreateEventDialog/index.js +40 -40
  37. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  38. package/dist/components/ui/HistogramWidget/index.js +161 -162
  39. package/dist/components/ui/HistogramWidget/index.js.map +1 -1
  40. package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
  41. package/dist/locale/en.json +6 -0
  42. package/dist/locale/nl.json +7 -1
  43. package/dist/pages/CasesDetailPage/index.js +1 -1
  44. package/dist/pages/ColsAdminPage/index.js +1 -1
  45. package/dist/pages/ConceptsAdminPage/index.js +1 -1
  46. package/dist/pages/DimsAdminPage/index.js +1 -1
  47. package/dist/pages/EventsDetailPage/index.js +1 -1
  48. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +120 -86
  49. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
  50. package/dist/pages/RefColsAdminPage/index.js +1 -1
  51. package/dist/pages/RegionSetShapesAdminPage/index.js +1 -1
  52. package/dist/pages/RegionsAdminPage/index.js +1 -1
  53. package/dist/pages/UserEffectiveRightsAdminPage/index.js +1 -1
  54. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +59 -59
  55. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  56. package/dist/routes/index.js +93 -91
  57. package/dist/routes/index.js.map +1 -1
  58. package/dist/setup/setup.js +2 -3
  59. package/dist/setup/setup.js.map +1 -1
  60. package/package.json +73 -72
  61. package/dist/_chunks/chunk-BV7QT456.js.map +0 -1
  62. package/dist/_chunks/index.esm.js +0 -1465
  63. 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 te, ListItemIcon as A, ListItemText as j, MenuItem as M, Tooltip as N, Typography as P, useTheme as F } from "@mui/material";
28
- import { memo as I, use as L, useCallback as R, useEffect as z, useMemo as B, useRef as ne, useState as V } from "react";
29
- import { useTranslation as H } from "react-i18next";
30
- import { Fragment as re, jsx as U, jsxs as W } from "react/jsx-runtime";
31
- import ie from "@mui/icons-material/Edit";
32
- import { Table as ae } from "@gen-epix/ui-client-common/components/ui/Table";
33
- import { TABLE_COLUMN_FROZEN as G } from "@gen-epix/ui-client-common/models/table";
34
- import { TableUtil as K } from "@gen-epix/ui-client-common/utils/TableUtil";
35
- import oe from "@mui/icons-material/Share";
36
- import { Subject as se } from "@gen-epix/ui-core/classes/Subject";
37
- import q from "@mui/icons-material/Troubleshoot";
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 J } from "@gen-epix/ui-client-common/classes/services/AuthorizationService";
41
- import { useColumnsMenu as Y } from "@gen-epix/ui-client-common/hooks/useColumnsMenu";
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 = I(({ row: e }) => {
45
- let [t, n] = V(!0), [r, i] = V(!1), [a, o] = V(!1), s = F();
46
- return z(() => {
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__ */ W(O, { children: [
57
- t && /* @__PURE__ */ U(k, {
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__ */ U(O, {
65
+ !t && r && /* @__PURE__ */ W(O, {
65
66
  sx: { color: `${s.palette.error.main}` },
66
67
  children: "?"
67
68
  }),
68
- !t && !r && a && /* @__PURE__ */ U(h, {
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 = I(({ row: e }) => {
80
- let [t, n] = V(!0), [r, i] = V(!1), [a, o] = V(!1), s = F();
81
- return z(() => {
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__ */ W(O, { children: [
92
- t && /* @__PURE__ */ U(k, {
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__ */ U(O, {
100
+ !t && r && /* @__PURE__ */ W(O, {
100
101
  sx: { color: `${s.palette.error.main}` },
101
102
  children: "?"
102
103
  }),
103
- !t && !r && a && /* @__PURE__ */ U(ce, {
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 = L(u), { t } = H(), n = l(e, m((e) => e.sortedData)), r = l(e, m((e) => e.selectedIds));
116
- return /* @__PURE__ */ U(P, {
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
- }, X = /* @__PURE__ */ e(d(), 1), me = ({ caseSet: e }) => {
130
- let n = L(u), { t: i } = H(), 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 = R((e, t, n) => t.valueGetter ? !!t.valueGetter({
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]), _ = R(async () => {
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 = Y({ hasCellData: g }), x = B(() => h?.flatMap((e) => e.similarCaseIds) || [], [h]), S = B(() => h?.length ? o.filter((e) => !x.includes(e.id)) : o, [
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 = B(() => S.filter((e) => a?.includes(e.id)), [S, a]), w = B(() => o.filter((e) => a?.includes(e.id)), [o, a]), ee = B(() => {
147
- let t = J.getInstance().doesUserHavePermission([{
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 = J.getInstance().doesUserHavePermission([{
151
+ }]), n = Y.getInstance().doesUserHavePermission([{
151
152
  command_name: T.CaseSetMemberCrudCommand,
152
153
  permission_type: E.CREATE
153
- }]), r = !!e && J.getInstance().doesUserHavePermission([{
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, X.default)(c.items).divider = !0, c.items.push({
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__ */ U(b, { menu: ee });
231
+ return /* @__PURE__ */ W(b, { menu: ee });
231
232
  }, he = () => {
232
- let e = F(), t = L(u), { t: n } = H(), r = l(t, m((e) => e.getWidgetData(c.TREE).zoomLevel === 1)), i = l(t, m((e) => e.setSorting)), a = R(() => {
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 = B(() => [{
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__ */ U(ue, { sx: { color: r ? void 0 : e.palette.error.main } })
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__ */ U(b, { menu: o });
248
+ return /* @__PURE__ */ W(b, { menu: o });
248
249
  }, ge = () => {
249
- let { t: e } = H(), t = L(u), n = l(t, m((e) => e.sortedData)), r = l(t, m((e) => e.completeCaseType)), i = R(() => t.getState().getCurrentColumnVisualSettings().filter((e) => e.isVisible).map((e) => e.id), [t]);
250
- z(() => {
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
- }, Z = () => {
324
- let { caseSet: e } = L(_), t = L(_), o = ne(null), { t: d } = H(), p = F(), m = B(() => new se([]), []), b = ne(null), T = L(u), E = l(T, (e) => e.completeCaseType), k = l(T, (e) => e.sortedData), P = l(T, (e) => e.isCondensed), I = l(T, (e) => e.stratification?.mode === i.FIELD ? e.stratification : null), V = l(T, (e) => e.updateWidgetData), J = l(T, (e) => e.treeAddresses), Y = l(T, (e) => e.setColumns), ue = l(T, (e) => e.isDataLoading);
325
- z(() => () => {
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 X = R((e, t) => {
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]), Z = R((t) => {
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 = R((e) => {
340
- X(e.id, g.INFO);
341
- }, [X]), ve = R((e, t) => {
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
- I?.col?.id === e.id && (i += +p.spacing(3).replace("px", ""));
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
- I?.col?.id,
355
+ L?.col?.id,
355
356
  p
356
- ]), ye = R((e, t) => {
357
+ ]), ye = z((e, t) => {
357
358
  f.getInstance().emit("openContactDetailsDialog", {
358
359
  organizationId: e,
359
360
  organizationName: t
360
361
  });
361
- }, []), be = R(({ id: e, row: t }) => {
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: I?.caseIdColors[t.id],
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__ */ U(te, {
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 === I?.col?.id ? /* @__PURE__ */ U(v, {
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
- I?.caseIdColors,
386
- I?.col?.id
387
- ]), xe = R((e, t) => {
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 = R(({ id: e, row: t }) => /* @__PURE__ */ U(te, {
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 = R(() => /* @__PURE__ */ U(N, {
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__ */ U(h, {
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 = R(({ row: e }) => /* @__PURE__ */ U(de, { row: e }), []), Te = R(() => /* @__PURE__ */ U(N, {
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__ */ U(ce, {
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 = R(({ row: e }) => /* @__PURE__ */ U(fe, { row: e }), []), De = R(({ row: e }) => T.getState().findSimilarCasesResults.reduce((e, t) => [...e, ...t.similarCaseIds], []).includes(e.id) ? /* @__PURE__ */ U(q, {
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 = R(() => /* @__PURE__ */ U(N, {
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__ */ U(q, {
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 = R(({ id: e, row: t }) => {
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: I?.caseIdColors[t.id],
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 === I?.col?.id ? /* @__PURE__ */ U(v, { item: i }) : /* @__PURE__ */ U(re, { children: n.short });
459
+ return e === L?.col?.id ? /* @__PURE__ */ W(v, { item: i }) : /* @__PURE__ */ W(ne, { children: n.short });
459
460
  }, [
460
461
  E,
461
- I?.caseIdColors,
462
- I?.col?.id
463
- ]), Ae = B(() => [
464
- K.createReadableIndexColumn({ getAriaLabel: (e) => d("Show case information for {{index}}", { index: e.rowIndex + 1 }) }),
465
- K.createSelectableColumn(),
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: G.LEFT,
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: G.LEFT,
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: G.LEFT,
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 = B(() => [K.createActionsColumn({
506
+ ]), je = V(() => [q.createActionsColumn({
506
507
  columnContext: null,
507
508
  getActions: (e) => [
508
- /* @__PURE__ */ W(M, {
509
- onClick: () => X(e.row.id, g.INFO),
510
- children: [/* @__PURE__ */ U(A, { children: /* @__PURE__ */ U(le, {}) }), /* @__PURE__ */ U(j, { children: d`Show information` })]
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__ */ W(M, {
513
- onClick: () => X(e.row.id, g.EDIT),
514
- children: [/* @__PURE__ */ U(A, { children: /* @__PURE__ */ U(ie, {}) }), /* @__PURE__ */ U(j, { children: d`Edit information` })]
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__ */ W(M, {
517
- onClick: () => X(e.row.id, g.SHARING),
518
- children: [/* @__PURE__ */ U(A, { children: /* @__PURE__ */ U(oe, {}) }), /* @__PURE__ */ U(j, { children: d`Share` })]
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__ */ W(M, {
521
- onClick: () => Z(e.row),
522
- children: [/* @__PURE__ */ U(A, { children: /* @__PURE__ */ U(h, {}) }), /* @__PURE__ */ U(j, { children: d`Add to event` })]
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 = B(() => {
532
+ ]), Me = V(() => {
531
533
  let e = {};
532
- return P && E.ordered_col_ids.forEach((t) => {
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
- P,
546
+ F,
545
547
  k
546
- ]), Ne = R((e) => Me[e.column.id]?.caseIdColors[e.row.id], [Me]), Q = R((e) => {
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]), Pe = B(() => {
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: Q,
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) => (J[n.id]?.addresses[e.row.id] ? `${J[n.id].algorithmCode} ${J[n.id].addresses[e.row.id]}` : void 0) ?? void 0,
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(J[n.id]?.addresses?.[t.id], J[n.id]?.addresses?.[r.id]);
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) => (J[n.id]?.addresses[t.row.id] ? `${J[n.id].algorithmCode} ${J[n.id].addresses[t.row.id]}` : void 0) ?? e,
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
- Q,
605
- J,
606
+ Pe,
607
+ Y,
606
608
  ve,
607
609
  be,
608
610
  Se,
609
611
  ke
610
- ]), Fe = R((e) => {
612
+ ]), Ie = z((e) => {
611
613
  t.highlight({
612
614
  caseIds: [e.id],
613
615
  origin: c.LINE_LIST
614
616
  });
615
- }, [t]), Ie = R(() => {
617
+ }, [t]), Le = z(() => {
616
618
  t.highlight({
617
619
  caseIds: [],
618
620
  origin: c.LINE_LIST
619
621
  });
620
622
  }, [t]);
621
- z(() => {
622
- Y(Pe);
623
- }, [Y, Pe]), z(() => {
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 Le = x((e) => {
643
- V(c.LINE_LIST, { visibleItemItemIndex: e });
644
- }, 500), Re = R((e) => {
645
- Le(e);
646
- }, [Le]), $ = x(async (e) => {
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
- }), ze = R((e) => {
653
+ }), Be = z((e) => {
652
654
  t.lineListRangeSubject.next(e), $(e);
653
655
  }, [t, $]);
654
- z(() => () => {
656
+ B(() => () => {
655
657
  S.getInstance().cleanStaleQueue(), C.getInstance().cleanStaleQueue();
656
658
  }, []);
657
- let Be = R((e) => {
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
- z(() => {
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 Ve = R((e) => e.id, []);
672
- return /* @__PURE__ */ U(y, {
673
+ let He = z((e) => e.id, []);
674
+ return /* @__PURE__ */ W(y, {
673
675
  isLoading: ue,
674
- primaryMenu: /* @__PURE__ */ U(me, { caseSet: e }),
675
- secondaryMenu: /* @__PURE__ */ U(he, {}),
676
- title: /* @__PURE__ */ U(pe, {}),
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__ */ U(O, {
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__ */ U(ae, {
686
+ children: /* @__PURE__ */ W(ie, {
685
687
  font: p["gen-epix-ui-client-casedb"].lineList.font,
686
688
  forceHorizontalOverflow: !0,
687
- getRowName: Ve,
689
+ getRowName: He,
688
690
  initialVisibleItemIndex: T.getState().getWidgetData(c.LINE_LIST)?.visibleItemItemIndex,
689
- onRangeChanged: ze,
691
+ onRangeChanged: Be,
690
692
  onReadableIndexClick: _e,
691
- onRowMouseEnter: Fe,
692
- onRowMouseLeave: Ie,
693
- onVerticalScrollPositionChange: Be,
694
- onVisibleItemIndexChange: Re,
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 { Z as t };
705
+ export { Q as t };
704
706
 
705
707
  //# sourceMappingURL=LineListWidget.js.map