@bahmni/admin-app 0.0.1-dev.443 → 0.0.1-dev.446
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/{AdminDashboard-Bm_9sBiW.js → AdminDashboard-BYWHODDr.js} +1 -1
- package/dist/{AuditLog-CQLulRo4.js → AuditLog-DkbZYTov.js} +6 -6
- package/dist/{CsvExport-BwEMLFIj.js → CsvExport-P2NoRdXq.js} +16 -16
- package/dist/{CsvUpload-dsZIFIhG.js → CsvUpload-D2EBmvar.js} +1 -1
- package/dist/{DocumentsTable-v6NhgJsj-B-c91aR4.js → DocumentsTable-CSCabXWL-BytY-fAq.js} +9 -9
- package/dist/{FormsTable-DiD-aWUg-Le560lMJ.js → FormsTable-CxEQWZt3-DLOJyxLU.js} +71 -71
- package/dist/{LNWAZHJI-Cx5TzXrH.js → LNWAZHJI-DK2s1NBB.js} +2 -2
- package/dist/{MWZ6AO7Z-BtkCNgXL.js → MWZ6AO7Z-EKP2aQt6.js} +2 -2
- package/dist/{Observations-B2kwkXq0-D64xFEow.js → Observations-CAedz2J9-Bo2zz70t.js} +52 -52
- package/dist/{YPM2AS64-xjQ40sBa.js → YPM2AS64-Csk9eucm.js} +1 -1
- package/dist/{index-JLCGGo7t.js → index-Ds_HtIuW.js} +46019 -46613
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { H as o, I as a, J as s, L as I } from "./index-Ds_HtIuW.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
const i = () => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { _ as ee, a0 as te, a1 as se, a2 as K, u as ae, a3 as ne, a4 as re,
|
|
2
|
+
import { _ as ee, a0 as te, a1 as se, a2 as K, u as ae, a3 as ne, a4 as re, H as ie, S as oe, a5 as ue, a6 as de, a7 as U, X as V, a8 as le } from "./index-Ds_HtIuW.js";
|
|
3
3
|
import { useState as l, useRef as C, useEffect as k, useMemo as ce, useCallback as me } from "react";
|
|
4
4
|
import { useQuery as _e } from "@tanstack/react-query";
|
|
5
5
|
const G = Symbol.for("constructDateFrom");
|
|
@@ -40,7 +40,7 @@ const Le = (e, t) => {
|
|
|
40
40
|
patientId: ""
|
|
41
41
|
}), [r, a] = l(0), [i, u] = l(0), [_, E] = l([]), [R, p] = l(null), [b, f] = l(!1), [O, g] = l(!1), [F, M] = l(1), T = C(1), s = (c) => {
|
|
42
42
|
T.current = c, M(c);
|
|
43
|
-
}, o = C(0), [n, j] = l(null), B = C(null), { data: N, isLoading:
|
|
43
|
+
}, o = C(0), [n, j] = l(null), B = C(null), { data: N, isLoading: X, isFetching: L, isError: z } = _e({
|
|
44
44
|
queryKey: ["auditLogs", n?.requestId],
|
|
45
45
|
queryFn: () => te(n.params),
|
|
46
46
|
enabled: !!n,
|
|
@@ -58,7 +58,7 @@ const Le = (e, t) => {
|
|
|
58
58
|
emptyMessageKey: $,
|
|
59
59
|
requestId: o.current
|
|
60
60
|
});
|
|
61
|
-
}, A = Le(e.startDate, e.startTime),
|
|
61
|
+
}, A = Le(e.startDate, e.startTime), Q = () => {
|
|
62
62
|
I(
|
|
63
63
|
"init",
|
|
64
64
|
{ startFrom: A, defaultView: !0 },
|
|
@@ -131,7 +131,7 @@ const Le = (e, t) => {
|
|
|
131
131
|
}), I("init", { defaultView: !0 }, !0, 0, 0, q));
|
|
132
132
|
};
|
|
133
133
|
return k(() => {
|
|
134
|
-
|
|
134
|
+
Q();
|
|
135
135
|
}, []), k(() => {
|
|
136
136
|
if (!n || N === void 0 || B.current === n.requestId) return;
|
|
137
137
|
B.current = n.requestId;
|
|
@@ -152,9 +152,9 @@ const Le = (e, t) => {
|
|
|
152
152
|
filters: e,
|
|
153
153
|
setFilters: t,
|
|
154
154
|
logs: _,
|
|
155
|
-
isLoading:
|
|
155
|
+
isLoading: X || L,
|
|
156
156
|
isFetching: L,
|
|
157
|
-
isError:
|
|
157
|
+
isError: z,
|
|
158
158
|
emptyMessageKey: R,
|
|
159
159
|
firstIndex: r,
|
|
160
160
|
lastIndex: i,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { u as A, z as M,
|
|
2
|
+
import { u as A, z as M, M as R, N as O, O as h, P, Q as g, H as D, S as V, T as f, X as x, Z as b } from "./index-Ds_HtIuW.js";
|
|
3
3
|
import { useState as E, useMemo as y } from "react";
|
|
4
|
-
import { useQuery as L, useMutation as
|
|
5
|
-
const
|
|
6
|
-
tile:
|
|
7
|
-
title:
|
|
4
|
+
import { useQuery as L, useMutation as X } from "@tanstack/react-query";
|
|
5
|
+
const v = "CsvExport-module_tile__yBrLM", H = "CsvExport-module_title__epZnI", B = "CsvExport-module_form__w-cN-", U = "CsvExport-module_search__G82i7", r = {
|
|
6
|
+
tile: v,
|
|
7
|
+
title: H,
|
|
8
8
|
form: B,
|
|
9
|
-
search:
|
|
10
|
-
}, z = 300,
|
|
11
|
-
const { t } = A(), { addNotification: i } = M(), [
|
|
9
|
+
search: U
|
|
10
|
+
}, z = 300, S = 2, _ = 5e3, G = "custom:(uuid,setMembers:(uuid))", q = () => {
|
|
11
|
+
const { t } = A(), { addNotification: i } = M(), [p, C] = E(""), [s, c] = E(
|
|
12
12
|
null
|
|
13
|
-
), a = R(
|
|
13
|
+
), a = R(p.trim(), z), { data: l = [] } = L({
|
|
14
14
|
queryKey: ["csvExportConceptSearch", a],
|
|
15
15
|
queryFn: () => O(a),
|
|
16
|
-
enabled: a.length >=
|
|
16
|
+
enabled: a.length >= S && a !== s?.name,
|
|
17
17
|
// Keep prior options visible while the next term loads, but not once the input is too short to search
|
|
18
|
-
placeholderData: (e) => a.length >=
|
|
18
|
+
placeholderData: (e) => a.length >= S ? e : void 0
|
|
19
19
|
}), T = y(
|
|
20
20
|
() => l.flatMap(
|
|
21
21
|
(e) => e.name?.name ? [{ uuid: e.uuid, name: e.name.name }] : []
|
|
22
22
|
),
|
|
23
23
|
[l]
|
|
24
|
-
), o =
|
|
24
|
+
), o = X({
|
|
25
25
|
mutationFn: async (e) => (await P(e.uuid, G)).setMembers?.length ? g(e.name) : null,
|
|
26
26
|
onSuccess: (e, u) => {
|
|
27
27
|
const m = u.name;
|
|
@@ -50,7 +50,7 @@ const X = "CsvExport-module_tile__yBrLM", U = "CsvExport-module_title__epZnI", B
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
}), I = (e) => {
|
|
53
|
-
|
|
53
|
+
C(e), s && e !== s.name && c(null);
|
|
54
54
|
}, N = (e) => {
|
|
55
55
|
if (e.preventDefault(), !o.isPending) {
|
|
56
56
|
if (!s) {
|
|
@@ -65,8 +65,8 @@ const X = "CsvExport-module_tile__yBrLM", U = "CsvExport-module_title__epZnI", B
|
|
|
65
65
|
o.mutate(s);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
return /* @__PURE__ */ n(
|
|
69
|
-
|
|
68
|
+
return /* @__PURE__ */ n(D, { breadcrumbLabel: t("BREADCRUMB_CSV_EXPORT"), children: /* @__PURE__ */ d(
|
|
69
|
+
V,
|
|
70
70
|
{
|
|
71
71
|
id: "admin-csv-export-page",
|
|
72
72
|
"data-testid": "admin-csv-export-page-test-id",
|
|
@@ -118,5 +118,5 @@ const X = "CsvExport-module_tile__yBrLM", U = "CsvExport-module_title__epZnI", B
|
|
|
118
118
|
) });
|
|
119
119
|
};
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
q as CsvExport
|
|
122
122
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as d, jsxs as h, Fragment as
|
|
2
|
-
import { d as
|
|
1
|
+
import { jsx as d, jsxs as h, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { d as x, u as G, z as W, K as J, Y as X, h as Z, $ as ee, a as te } from "./index-Ds_HtIuW.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", de = "DocumentsTable-module_documentViewerContainer__F5m8D", re = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", r = {
|
|
@@ -38,7 +38,7 @@ const Te = [
|
|
|
38
38
|
null
|
|
39
39
|
), [$, O] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), g =
|
|
41
|
+
), g = x(), { t: n } = G(), { addNotification: L } = W(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = _((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), H = _(() => {
|
|
44
44
|
w(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
@@ -53,7 +53,7 @@ const Te = [
|
|
|
53
53
|
u
|
|
54
54
|
],
|
|
55
55
|
enabled: !!g,
|
|
56
|
-
queryFn: () =>
|
|
56
|
+
queryFn: () => J(
|
|
57
57
|
g,
|
|
58
58
|
E,
|
|
59
59
|
u,
|
|
@@ -97,7 +97,7 @@ const Te = [
|
|
|
97
97
|
), N = p(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
),
|
|
100
|
+
), K = p(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), j = p(() => ie(N, n), [N, n]), P = p(
|
|
101
101
|
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
@@ -137,16 +137,16 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ h(
|
|
140
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
141
141
|
/* @__PURE__ */ d("div", { "data-testid": "documents-table", children: /* @__PURE__ */ d(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
144
|
-
headers:
|
|
144
|
+
headers: j,
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
|
-
rows:
|
|
146
|
+
rows: K,
|
|
147
147
|
loading: q,
|
|
148
148
|
errorStateMessage: y ? b?.message : null,
|
|
149
|
-
sortable:
|
|
149
|
+
sortable: P,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
151
|
renderCell: Q,
|
|
152
152
|
className: r.documentsTableBody,
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { u as ie, d as de,
|
|
3
|
-
import { useQueryClient as Re, useQuery as
|
|
4
|
-
import { useState as
|
|
5
|
-
const
|
|
6
|
-
formsTableBody:
|
|
7
|
-
modalHeading:
|
|
8
|
-
customAccordianItem:
|
|
9
|
-
},
|
|
10
|
-
episodeOfCareUuids:
|
|
1
|
+
import { jsx as n, jsxs as H, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { u as ie, d as de, y as le, k as me, V as ue, G as ce, m as fe, b as ye, w as he, c as Ne, e as ge, R as Te, h as pe, f as q, g as $, Y as Oe, $ as z, j as be, U as Ie, a as Ae, A as Ee, i as _e } from "./index-Ds_HtIuW.js";
|
|
3
|
+
import { useQueryClient as Re, useQuery as A } from "@tanstack/react-query";
|
|
4
|
+
import { useState as j, useMemo as i, useCallback as d } from "react";
|
|
5
|
+
const Ce = "FormsTable-module_formsTableBody__SvGha", ve = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", g = {
|
|
6
|
+
formsTableBody: Ce,
|
|
7
|
+
modalHeading: ve,
|
|
8
|
+
customAccordianItem: Le
|
|
9
|
+
}, Ue = "startConsultation", Me = ({
|
|
10
|
+
episodeOfCareUuids: E,
|
|
11
11
|
encounterUuids: l,
|
|
12
|
-
config:
|
|
13
|
-
disableActions:
|
|
12
|
+
config: K,
|
|
13
|
+
disableActions: G = !1,
|
|
14
14
|
activeEncounterUuid: y = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: o } = ie(), m = de(), [
|
|
17
|
-
numberOfVisits:
|
|
18
|
-
hideThumbnail:
|
|
19
|
-
forms:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
), { userPrivileges:
|
|
23
|
-
|
|
16
|
+
const { t: o } = ie(), m = de(), [T, _] = j(!1), [t, R] = j(null), {
|
|
17
|
+
numberOfVisits: Y,
|
|
18
|
+
hideThumbnail: x = !1,
|
|
19
|
+
forms: h
|
|
20
|
+
} = K ?? {}, Q = le(
|
|
21
|
+
_e.EDIT_OBSERVATIONS
|
|
22
|
+
), { userPrivileges: N } = me(), p = Q && !G && !!y, C = ue(
|
|
23
|
+
E,
|
|
24
24
|
l
|
|
25
25
|
), P = Re(), {
|
|
26
|
-
data:
|
|
27
|
-
isLoading:
|
|
28
|
-
isError:
|
|
29
|
-
error:
|
|
30
|
-
refetch:
|
|
31
|
-
} =
|
|
32
|
-
queryKey: ["forms", m,
|
|
33
|
-
queryFn: () => ce(m, void 0,
|
|
34
|
-
enabled: !!m && !
|
|
35
|
-
}),
|
|
36
|
-
let e =
|
|
26
|
+
data: v = [],
|
|
27
|
+
isLoading: L,
|
|
28
|
+
isError: U,
|
|
29
|
+
error: J,
|
|
30
|
+
refetch: W
|
|
31
|
+
} = A({
|
|
32
|
+
queryKey: ["forms", m, E],
|
|
33
|
+
queryFn: () => ce(m, void 0, Y),
|
|
34
|
+
enabled: !!m && !C
|
|
35
|
+
}), B = i(() => {
|
|
36
|
+
let e = v;
|
|
37
37
|
return l && l.length > 0 && (e = e.filter(
|
|
38
38
|
(r) => l.includes(r.encounterUuid)
|
|
39
|
-
)), Array.isArray(
|
|
40
|
-
(r) =>
|
|
39
|
+
)), Array.isArray(h) && h.length > 0 && (e = e.filter(
|
|
40
|
+
(r) => h.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [
|
|
42
|
+
}, [v, l, h]), { data: F = [] } = A({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
44
|
queryFn: () => fe()
|
|
45
|
-
}),
|
|
45
|
+
}), D = d(
|
|
46
46
|
(e) => {
|
|
47
47
|
const r = F.find(
|
|
48
48
|
(s) => s.name.toLowerCase() === e.toLowerCase()
|
|
49
49
|
);
|
|
50
50
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
51
|
-
if (!
|
|
52
|
-
const a = new Set(
|
|
51
|
+
if (!N || N.length === 0) return !1;
|
|
52
|
+
const a = new Set(N.map((s) => s.name));
|
|
53
53
|
return r.privileges.some(
|
|
54
54
|
(s) => a.has(s.privilegeName) && s.editable
|
|
55
55
|
);
|
|
56
56
|
},
|
|
57
|
-
[F,
|
|
57
|
+
[F, N]
|
|
58
58
|
), u = d(
|
|
59
|
-
(e) => !y || e.encounterUuid !== y ? !1 :
|
|
60
|
-
[y,
|
|
59
|
+
(e) => !y || e.encounterUuid !== y ? !1 : D(e.formName),
|
|
60
|
+
[y, D]
|
|
61
61
|
), {
|
|
62
62
|
data: O,
|
|
63
63
|
isLoading: X,
|
|
64
64
|
isError: Z,
|
|
65
65
|
error: b
|
|
66
|
-
} =
|
|
66
|
+
} = A({
|
|
67
67
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
68
68
|
queryFn: () => ye(t.encounterUuid),
|
|
69
|
-
enabled: !!t?.encounterUuid &&
|
|
69
|
+
enabled: !!t?.encounterUuid && T
|
|
70
70
|
});
|
|
71
|
-
|
|
71
|
+
he(
|
|
72
72
|
(e) => {
|
|
73
|
-
e.patientUUID === m && (
|
|
73
|
+
e.patientUUID === m && (W(), P.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
74
74
|
},
|
|
75
75
|
[m]
|
|
76
76
|
);
|
|
77
|
-
const ee = i(() => !O?.entry || !t?.formName ? [] : O.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) =>
|
|
77
|
+
const ee = i(() => !O?.entry || !t?.formName ? [] : O.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Ne(e) ? ge(e)?.toLowerCase() === t.formName.toLowerCase() : !0), [O, t?.formName]), re = i(() => {
|
|
78
78
|
if (b)
|
|
79
|
-
return
|
|
79
|
+
return Te(b).message;
|
|
80
80
|
}, [b]), c = i(
|
|
81
81
|
() => [
|
|
82
82
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
@@ -96,7 +96,7 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
96
96
|
],
|
|
97
97
|
[]
|
|
98
98
|
), M = i(() => {
|
|
99
|
-
const e =
|
|
99
|
+
const e = B.reduce(
|
|
100
100
|
(r, a) => {
|
|
101
101
|
const s = a.formName;
|
|
102
102
|
r[s] ??= [];
|
|
@@ -120,13 +120,13 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
120
120
|
)
|
|
121
121
|
})
|
|
122
122
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
123
|
-
}, [
|
|
124
|
-
R(e),
|
|
123
|
+
}, [B, o]), k = d((e) => {
|
|
124
|
+
R(e), _(!0);
|
|
125
125
|
}, []), w = d(() => {
|
|
126
|
-
|
|
126
|
+
_(!1), R(null);
|
|
127
127
|
}, []), I = d((e) => {
|
|
128
128
|
globalThis.dispatchEvent(
|
|
129
|
-
new CustomEvent(
|
|
129
|
+
new CustomEvent(Ue, {
|
|
130
130
|
detail: {
|
|
131
131
|
editOnly: "observationForms",
|
|
132
132
|
editTitle: "EDIT_OBSERVATION_FORM_TITLE",
|
|
@@ -136,7 +136,7 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
136
136
|
}
|
|
137
137
|
})
|
|
138
138
|
);
|
|
139
|
-
}, []),
|
|
139
|
+
}, []), V = d(
|
|
140
140
|
(e, r) => {
|
|
141
141
|
switch (r) {
|
|
142
142
|
case "recordedOn":
|
|
@@ -145,7 +145,7 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
145
145
|
return e.recordedBy;
|
|
146
146
|
case "actions":
|
|
147
147
|
return u(e) ? /* @__PURE__ */ n(
|
|
148
|
-
|
|
148
|
+
q,
|
|
149
149
|
{
|
|
150
150
|
label: o("EDIT_OBSERVATION_FORM"),
|
|
151
151
|
kind: "ghost",
|
|
@@ -161,18 +161,18 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
161
161
|
},
|
|
162
162
|
[k, I, u, o]
|
|
163
163
|
);
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
166
|
-
|
|
164
|
+
return /* @__PURE__ */ H(ne, { children: [
|
|
165
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || U || M.length === 0 || C ? /* @__PURE__ */ n(
|
|
166
|
+
z,
|
|
167
167
|
{
|
|
168
168
|
headers: oe,
|
|
169
169
|
ariaLabel: o("FORMS_HEADING"),
|
|
170
170
|
rows: [],
|
|
171
|
-
loading:
|
|
172
|
-
errorStateMessage:
|
|
171
|
+
loading: L,
|
|
172
|
+
errorStateMessage: U ? J?.message : void 0,
|
|
173
173
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
174
|
-
renderCell:
|
|
175
|
-
className:
|
|
174
|
+
renderCell: V,
|
|
175
|
+
className: g.formsTableBody,
|
|
176
176
|
dataTestId: "forms-table"
|
|
177
177
|
}
|
|
178
178
|
) : /* @__PURE__ */ n(be, { align: "start", children: M.map((e, r) => {
|
|
@@ -181,11 +181,11 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
181
181
|
Ie,
|
|
182
182
|
{
|
|
183
183
|
title: a,
|
|
184
|
-
className:
|
|
184
|
+
className: g.customAccordianItem,
|
|
185
185
|
testId: `accordian-title-${a}`,
|
|
186
186
|
open: r === 0,
|
|
187
187
|
children: /* @__PURE__ */ n(
|
|
188
|
-
|
|
188
|
+
z,
|
|
189
189
|
{
|
|
190
190
|
headers: f,
|
|
191
191
|
ariaLabel: o("FORMS_HEADING"),
|
|
@@ -194,8 +194,8 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
194
194
|
errorStateMessage: "",
|
|
195
195
|
sortable: te,
|
|
196
196
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
197
|
-
renderCell:
|
|
198
|
-
className:
|
|
197
|
+
renderCell: V,
|
|
198
|
+
className: g.formsTableBody,
|
|
199
199
|
dataTestId: `forms-table-${a}`
|
|
200
200
|
}
|
|
201
201
|
)
|
|
@@ -203,17 +203,17 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
203
203
|
a
|
|
204
204
|
);
|
|
205
205
|
}) }) }),
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
T && t && /* @__PURE__ */ n(
|
|
207
|
+
Ae,
|
|
208
208
|
{
|
|
209
209
|
id: "modalIdForActionAreaLayout",
|
|
210
210
|
portalId: "main-display-area",
|
|
211
|
-
open:
|
|
211
|
+
open: T,
|
|
212
212
|
onRequestClose: w,
|
|
213
|
-
modalHeading: /* @__PURE__ */
|
|
213
|
+
modalHeading: /* @__PURE__ */ H("div", { className: g.modalHeading, children: [
|
|
214
214
|
/* @__PURE__ */ n("span", { children: t.formName }),
|
|
215
215
|
p && u(t) && /* @__PURE__ */ n(
|
|
216
|
-
|
|
216
|
+
q,
|
|
217
217
|
{
|
|
218
218
|
label: o("EDIT_OBSERVATION_FORM"),
|
|
219
219
|
kind: "ghost",
|
|
@@ -231,7 +231,7 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
231
231
|
size: "md",
|
|
232
232
|
testId: "form-details-modal",
|
|
233
233
|
children: /* @__PURE__ */ n(
|
|
234
|
-
|
|
234
|
+
Ee,
|
|
235
235
|
{
|
|
236
236
|
observations: ee,
|
|
237
237
|
isLoading: X,
|
|
@@ -239,7 +239,7 @@ const Le = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_mo
|
|
|
239
239
|
errorMessage: re,
|
|
240
240
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
241
241
|
testIdPrefix: t.formName,
|
|
242
|
-
hideThumbnail:
|
|
242
|
+
hideThumbnail: x,
|
|
243
243
|
formName: t.formName
|
|
244
244
|
}
|
|
245
245
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { a9 as d, aa as f, ab as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Csk9eucm.js";
|
|
2
|
+
import { a9 as d, aa as f, ab as e } from "./index-Ds_HtIuW.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { a9 as v, aa as C, ab as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-Csk9eucm.js";
|
|
2
|
+
import { a9 as v, aa as C, ab as e } from "./index-Ds_HtIuW.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|