@bahmni/clinical-app 0.0.1-dev.351 → 0.0.1-dev.353
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/{ConsultationPage-B1R3tOYy.js → ConsultationPage-CX1q2_d6.js} +5050 -5037
- package/dist/{DocumentsTable-Coa5XzQ2-J1_v3YXX.js → DocumentsTable-TI2cownA-v_dAeZFn.js} +20 -20
- package/dist/{FormsTable-EUYG9eiE-C8zIDz6W.js → FormsTable-DY1pz_8H-QNGJcDb3.js} +113 -113
- package/dist/{LNWAZHJI-B5S9GjFk.js → LNWAZHJI-Dsh5Awfj.js} +2 -2
- package/dist/{MWZ6AO7Z-jUP35wPA.js → MWZ6AO7Z-CPukuSbH.js} +2 -2
- package/dist/{Observations-DbnQKYME-hQ4qeOY0.js → Observations-a7Heef0b-DBtWyrDB.js} +55 -55
- package/dist/{YPM2AS64-BiN3i_MG.js → YPM2AS64-CCn9iY2V.js} +1 -1
- package/dist/{hook-CcvJOz2O.js → hook-DrO0sfnB.js} +1 -1
- package/dist/{index-BUeio6DV.js → index-DRz5WzPs.js} +38416 -37287
- package/dist/{index-BofloRYy.js → index-Lkh7JKQ-.js} +3 -3
- package/dist/{index-B9zeDDla.js → index-aYgCTvs9.js} +10 -10
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +0 -13
- package/dist/locales/locale_es.json +0 -13
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as h, Fragment as
|
|
2
|
-
import { m as
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
+
import { m as x, u as W, a as Y, H as J, r as X, g as Z, e as ee, d as te } from "./index-DRz5WzPs.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", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -38,13 +38,13 @@ const Te = [
|
|
|
38
38
|
null
|
|
39
39
|
), [$, O] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
41
|
+
), E = x(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, H] = l(k), [V, A] = l(void 0), M = _((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
|
-
}, []),
|
|
43
|
+
}, []), F = _(() => {
|
|
44
44
|
w(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
45
45
|
}, []), v = _((e) => {
|
|
46
46
|
O((t) => new Set(t).add(e));
|
|
47
|
-
}, []), { data: i, isLoading:
|
|
47
|
+
}, []), { data: i, isLoading: q, isError: b, error: y } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
@@ -53,7 +53,7 @@ const Te = [
|
|
|
53
53
|
u
|
|
54
54
|
],
|
|
55
55
|
enabled: !!E,
|
|
56
|
-
queryFn: () =>
|
|
56
|
+
queryFn: () => J(
|
|
57
57
|
E,
|
|
58
58
|
g,
|
|
59
59
|
u,
|
|
@@ -89,15 +89,15 @@ const Te = [
|
|
|
89
89
|
e.signal.aborted || O(t);
|
|
90
90
|
})(), () => e.abort();
|
|
91
91
|
}, [s, o]);
|
|
92
|
-
const
|
|
92
|
+
const j = _(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== u ? (
|
|
94
|
+
t !== u ? (H(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
97
|
), N = p(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
),
|
|
100
|
+
), P = 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]), z = p(() => ie(N, n), [N, n]), G = p(
|
|
101
101
|
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
@@ -106,7 +106,7 @@ const Te = [
|
|
|
106
106
|
), T = p(
|
|
107
107
|
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
109
|
-
),
|
|
109
|
+
), K = _(
|
|
110
110
|
(e, t) => {
|
|
111
111
|
switch (t) {
|
|
112
112
|
case "documentIdentifier":
|
|
@@ -123,7 +123,7 @@ const Te = [
|
|
|
123
123
|
return e.uploadedBy ?? n("DOCUMENTS_NOT_AVAILABLE");
|
|
124
124
|
case "attachments":
|
|
125
125
|
return e.attachments.length > 0 || e.documentUrl ? /* @__PURE__ */ r(
|
|
126
|
-
|
|
126
|
+
X,
|
|
127
127
|
{
|
|
128
128
|
onClick: () => M(e),
|
|
129
129
|
className: d.viewAttachmentsLink,
|
|
@@ -137,24 +137,24 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ h(
|
|
140
|
+
return /* @__PURE__ */ h(Q, { children: [
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
144
|
-
headers:
|
|
144
|
+
headers: z,
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
|
-
rows:
|
|
147
|
-
loading:
|
|
146
|
+
rows: P,
|
|
147
|
+
loading: q,
|
|
148
148
|
errorStateMessage: b ? y?.message : null,
|
|
149
|
-
sortable:
|
|
149
|
+
sortable: G,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
|
-
renderCell:
|
|
151
|
+
renderCell: K,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
|
-
totalItems:
|
|
155
|
+
totalItems: V,
|
|
156
156
|
page: f,
|
|
157
|
-
onPageChange:
|
|
157
|
+
onPageChange: j
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
160
160
|
s && o && /* @__PURE__ */ r(
|
|
@@ -163,7 +163,7 @@ const Te = [
|
|
|
163
163
|
id: "modalIdForActionAreaLayout",
|
|
164
164
|
portalId: "main-display-area",
|
|
165
165
|
open: s,
|
|
166
|
-
onRequestClose:
|
|
166
|
+
onRequestClose: F,
|
|
167
167
|
modalHeading: o.documentIdentifier,
|
|
168
168
|
passiveModal: !0,
|
|
169
169
|
size: "lg",
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { u as ge, m as pe,
|
|
3
|
-
import { useQueryClient as
|
|
1
|
+
import { jsx as i, jsxs as x, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { u as ge, m as pe, w as Ne, x as Oe, h as be, V as Ie, X as Te, y as Ae, k as Ee, J as _e, A as ve, N as Fe, o as z, g as Se, b as K, c as P, r as Me, e as Q, f as Ce, i as Re, d as Be, W as Le, I as Ue } from "./index-DRz5WzPs.js";
|
|
3
|
+
import { useQueryClient as ke, useQuery as b } from "@tanstack/react-query";
|
|
4
4
|
import { useState as X, useMemo as d, useCallback as l } from "react";
|
|
5
|
-
const De = "FormsTable-module_formsTableBody__SvGha",
|
|
5
|
+
const De = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", qe = "FormsTable-module_customAccordianItem__isszs", I = {
|
|
6
6
|
formsTableBody: De,
|
|
7
|
-
modalHeading:
|
|
8
|
-
customAccordianItem:
|
|
9
|
-
},
|
|
10
|
-
episodeOfCareUuids:
|
|
11
|
-
encounterUuids:
|
|
12
|
-
config:
|
|
13
|
-
disableActions:
|
|
7
|
+
modalHeading: we,
|
|
8
|
+
customAccordianItem: qe
|
|
9
|
+
}, He = "startConsultation", xe = ({
|
|
10
|
+
episodeOfCareUuids: M,
|
|
11
|
+
encounterUuids: c,
|
|
12
|
+
config: J,
|
|
13
|
+
disableActions: W = !1,
|
|
14
14
|
activeEncounterUuid: h = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: n } = ge(),
|
|
17
|
-
numberOfVisits:
|
|
18
|
-
hideThumbnail:
|
|
16
|
+
const { t: n } = ge(), u = pe(), [g, C] = X(!1), [s, R] = X(null), {
|
|
17
|
+
numberOfVisits: Y,
|
|
18
|
+
hideThumbnail: Z = !1,
|
|
19
19
|
forms: p
|
|
20
|
-
} =
|
|
20
|
+
} = J ?? {}, ee = Ne(
|
|
21
21
|
Ue.EDIT_OBSERVATIONS
|
|
22
|
-
), { userPrivileges:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
), re =
|
|
22
|
+
), { userPrivileges: N } = Oe(), T = ee && !W && !!h, B = be(
|
|
23
|
+
M,
|
|
24
|
+
c
|
|
25
|
+
), re = ke(), {
|
|
26
26
|
data: L = [],
|
|
27
27
|
isLoading: U,
|
|
28
|
-
isError:
|
|
29
|
-
error:
|
|
30
|
-
refetch:
|
|
28
|
+
isError: k,
|
|
29
|
+
error: oe,
|
|
30
|
+
refetch: ae
|
|
31
31
|
} = b({
|
|
32
|
-
queryKey: ["forms",
|
|
33
|
-
queryFn: () =>
|
|
34
|
-
enabled: !!
|
|
32
|
+
queryKey: ["forms", u, M],
|
|
33
|
+
queryFn: () => Ie(u, void 0, Y),
|
|
34
|
+
enabled: !!u && !B
|
|
35
35
|
}), D = d(() => {
|
|
36
36
|
let e = L;
|
|
37
|
-
return
|
|
38
|
-
(r) =>
|
|
37
|
+
return c && c.length > 0 && (e = e.filter(
|
|
38
|
+
(r) => c.includes(r.encounterUuid)
|
|
39
39
|
)), Array.isArray(p) && p.length > 0 && (e = e.filter(
|
|
40
|
-
(r) => p.some((
|
|
40
|
+
(r) => p.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [L,
|
|
42
|
+
}, [L, c, p]), { data: O = [] } = b({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
|
-
queryFn: () =>
|
|
45
|
-
}),
|
|
44
|
+
queryFn: () => Te()
|
|
45
|
+
}), w = l(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = O.find((a) => a.name === e);
|
|
48
48
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
49
|
-
if (!
|
|
50
|
-
const
|
|
49
|
+
if (!N || N.length === 0) return !1;
|
|
50
|
+
const o = new Set(N.map((a) => a.name));
|
|
51
51
|
return r.privileges.some(
|
|
52
|
-
(
|
|
52
|
+
(a) => o.has(a.privilegeName) && a.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
55
|
+
[O, N]
|
|
56
56
|
), f = l(
|
|
57
|
-
(e) => !h || e.encounterUuid !== h ? !1 :
|
|
58
|
-
[h,
|
|
59
|
-
),
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
62
|
-
),
|
|
57
|
+
(e) => !h || e.encounterUuid !== h ? !1 : w(e.formName),
|
|
58
|
+
[h, w]
|
|
59
|
+
), q = l(
|
|
60
|
+
(e) => O.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[O]
|
|
62
|
+
), A = d(() => {
|
|
63
63
|
if (s)
|
|
64
|
-
return
|
|
65
|
-
}, [s,
|
|
64
|
+
return q(s.formName);
|
|
65
|
+
}, [s, q]), {
|
|
66
66
|
data: m,
|
|
67
67
|
isLoading: te,
|
|
68
68
|
isError: se,
|
|
69
|
-
error:
|
|
69
|
+
error: E
|
|
70
70
|
} = b({
|
|
71
|
-
queryKey: ["formMetadata",
|
|
72
|
-
queryFn: () =>
|
|
73
|
-
enabled: !!
|
|
71
|
+
queryKey: ["formMetadata", A],
|
|
72
|
+
queryFn: () => Ae(A),
|
|
73
|
+
enabled: !!A && g
|
|
74
74
|
}), {
|
|
75
75
|
data: _,
|
|
76
76
|
isLoading: ne,
|
|
@@ -78,20 +78,20 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
78
78
|
error: v
|
|
79
79
|
} = b({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
|
-
queryFn: () =>
|
|
81
|
+
queryFn: () => Ee(s.encounterUuid),
|
|
82
82
|
enabled: !!s?.encounterUuid && g
|
|
83
83
|
});
|
|
84
84
|
_e(
|
|
85
85
|
(e) => {
|
|
86
|
-
e.patientUUID ===
|
|
86
|
+
e.patientUUID === u && e.updatedConcepts.size > 0 && (ae(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
87
87
|
},
|
|
88
|
-
[
|
|
88
|
+
[u]
|
|
89
89
|
);
|
|
90
90
|
const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => ve(e) ? Fe(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [_, s?.formName]), le = d(() => {
|
|
91
91
|
if (!m?.schema) return;
|
|
92
|
-
const e = [], r = (
|
|
93
|
-
(
|
|
94
|
-
const t =
|
|
92
|
+
const e = [], r = (o) => {
|
|
93
|
+
(o ?? []).forEach((a) => {
|
|
94
|
+
const t = a;
|
|
95
95
|
t.id != null && e.push(String(t.id)), t.controls && r(t.controls);
|
|
96
96
|
});
|
|
97
97
|
};
|
|
@@ -100,35 +100,35 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
100
100
|
), e.length > 0 ? e : void 0;
|
|
101
101
|
}, [m]), me = d(() => {
|
|
102
102
|
if (!m?.schema) return;
|
|
103
|
-
const e = {}, r = (
|
|
104
|
-
for (const t of
|
|
103
|
+
const e = {}, r = (o, a) => {
|
|
104
|
+
for (const t of o)
|
|
105
105
|
if (t.type === "section") {
|
|
106
|
-
const
|
|
107
|
-
r(t.controls ?? [],
|
|
106
|
+
const S = t.label?.value ?? "Section";
|
|
107
|
+
r(t.controls ?? [], S);
|
|
108
108
|
} else
|
|
109
|
-
t.id != null &&
|
|
109
|
+
t.id != null && a && (e[String(t.id)] = a), t.controls && r(t.controls, a);
|
|
110
110
|
};
|
|
111
111
|
return r(
|
|
112
112
|
m.schema.controls ?? [],
|
|
113
113
|
null
|
|
114
114
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
115
|
-
}, [m]),
|
|
116
|
-
if (
|
|
117
|
-
return
|
|
115
|
+
}, [m]), ce = d(() => {
|
|
116
|
+
if (E)
|
|
117
|
+
return z(E).message;
|
|
118
118
|
if (v)
|
|
119
|
-
return
|
|
120
|
-
}, [
|
|
119
|
+
return z(v).message;
|
|
120
|
+
}, [E, v]), y = d(
|
|
121
121
|
() => [
|
|
122
122
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
123
123
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
124
124
|
],
|
|
125
125
|
[n]
|
|
126
|
-
),
|
|
126
|
+
), H = d(
|
|
127
127
|
() => [...y, { key: "actions", header: n("ACTIONS") }],
|
|
128
128
|
[y, n]
|
|
129
|
-
),
|
|
130
|
-
(e) =>
|
|
131
|
-
[
|
|
129
|
+
), ue = l(
|
|
130
|
+
(e) => T && e.some((r) => f(r)) ? H : y,
|
|
131
|
+
[T, f, H, y]
|
|
132
132
|
), fe = y, ye = d(
|
|
133
133
|
() => [
|
|
134
134
|
{ key: "recordedOn", sortable: !0 },
|
|
@@ -137,36 +137,36 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
137
137
|
[]
|
|
138
138
|
), V = d(() => {
|
|
139
139
|
const e = D.reduce(
|
|
140
|
-
(r,
|
|
141
|
-
const
|
|
142
|
-
r[
|
|
143
|
-
const t =
|
|
144
|
-
return r[
|
|
145
|
-
id:
|
|
146
|
-
formName:
|
|
147
|
-
recordedOn:
|
|
140
|
+
(r, o) => {
|
|
141
|
+
const a = o.formName;
|
|
142
|
+
r[a] ??= [];
|
|
143
|
+
const t = o.providers.map((S) => S.providerName).filter(Boolean).join(", ");
|
|
144
|
+
return r[a].push({
|
|
145
|
+
id: o.encounterUuid,
|
|
146
|
+
formName: o.formName,
|
|
147
|
+
recordedOn: Se(o.encounterDateTime, n, !0).formattedResult,
|
|
148
148
|
recordedBy: t ?? "--",
|
|
149
|
-
encounterDateTime:
|
|
150
|
-
encounterUuid:
|
|
149
|
+
encounterDateTime: o.encounterDateTime,
|
|
150
|
+
encounterUuid: o.encounterUuid
|
|
151
151
|
}), r;
|
|
152
152
|
},
|
|
153
153
|
{}
|
|
154
154
|
);
|
|
155
155
|
return Object.entries(e).map(
|
|
156
|
-
([r,
|
|
156
|
+
([r, o]) => ({
|
|
157
157
|
formName: r,
|
|
158
|
-
records:
|
|
159
|
-
(
|
|
158
|
+
records: o.sort(
|
|
159
|
+
(a, t) => t.encounterDateTime - a.encounterDateTime
|
|
160
160
|
)
|
|
161
161
|
})
|
|
162
|
-
).sort((r,
|
|
163
|
-
}, [D, n]),
|
|
164
|
-
|
|
162
|
+
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
163
|
+
}, [D, n]), G = l((e) => {
|
|
164
|
+
R(e), C(!0);
|
|
165
165
|
}, []), $ = l(() => {
|
|
166
|
-
|
|
166
|
+
C(!1), R(null);
|
|
167
167
|
}, []), F = l((e) => {
|
|
168
168
|
globalThis.dispatchEvent(
|
|
169
|
-
new CustomEvent(
|
|
169
|
+
new CustomEvent(He, {
|
|
170
170
|
detail: {
|
|
171
171
|
editOnly: "observationForms",
|
|
172
172
|
editTitle: "EDIT_OBSERVATION_FORM_TITLE",
|
|
@@ -180,67 +180,67 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
180
180
|
(e, r) => {
|
|
181
181
|
switch (r) {
|
|
182
182
|
case "recordedOn":
|
|
183
|
-
return /* @__PURE__ */ i(
|
|
183
|
+
return /* @__PURE__ */ i(Me, { onClick: () => G(e), children: e.recordedOn });
|
|
184
184
|
case "recordedBy":
|
|
185
185
|
return e.recordedBy;
|
|
186
186
|
case "actions":
|
|
187
187
|
return f(e) ? /* @__PURE__ */ i(
|
|
188
|
-
|
|
188
|
+
K,
|
|
189
189
|
{
|
|
190
190
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
191
191
|
kind: "ghost",
|
|
192
192
|
size: "sm",
|
|
193
193
|
testId: `edit-form-${e.encounterUuid}`,
|
|
194
194
|
onClick: () => F(e),
|
|
195
|
-
children: /* @__PURE__ */ i(
|
|
195
|
+
children: /* @__PURE__ */ i(P, {})
|
|
196
196
|
}
|
|
197
197
|
) : null;
|
|
198
198
|
default:
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
[
|
|
202
|
+
[G, F, f, n]
|
|
203
203
|
);
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U ||
|
|
206
|
-
|
|
204
|
+
return /* @__PURE__ */ x(he, { children: [
|
|
205
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U || k || V.length === 0 || B ? /* @__PURE__ */ i(
|
|
206
|
+
Q,
|
|
207
207
|
{
|
|
208
208
|
headers: fe,
|
|
209
209
|
ariaLabel: n("FORMS_HEADING"),
|
|
210
210
|
rows: [],
|
|
211
211
|
loading: U,
|
|
212
|
-
errorStateMessage:
|
|
212
|
+
errorStateMessage: k ? oe?.message : void 0,
|
|
213
213
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
214
214
|
renderCell: j,
|
|
215
|
-
className:
|
|
215
|
+
className: I.formsTableBody,
|
|
216
216
|
dataTestId: "forms-table"
|
|
217
217
|
}
|
|
218
|
-
) : /* @__PURE__ */ i(
|
|
219
|
-
const { formName:
|
|
218
|
+
) : /* @__PURE__ */ i(Ce, { align: "start", children: V.map((e, r) => {
|
|
219
|
+
const { formName: o, records: a } = e, t = ue(a);
|
|
220
220
|
return /* @__PURE__ */ i(
|
|
221
|
-
|
|
221
|
+
Re,
|
|
222
222
|
{
|
|
223
|
-
title:
|
|
224
|
-
className:
|
|
225
|
-
testId: `accordian-title-${
|
|
223
|
+
title: o,
|
|
224
|
+
className: I.customAccordianItem,
|
|
225
|
+
testId: `accordian-title-${o}`,
|
|
226
226
|
open: r === 0,
|
|
227
227
|
children: /* @__PURE__ */ i(
|
|
228
|
-
|
|
228
|
+
Q,
|
|
229
229
|
{
|
|
230
230
|
headers: t,
|
|
231
231
|
ariaLabel: n("FORMS_HEADING"),
|
|
232
|
-
rows:
|
|
232
|
+
rows: a,
|
|
233
233
|
loading: !1,
|
|
234
234
|
errorStateMessage: "",
|
|
235
235
|
sortable: ye,
|
|
236
236
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
237
237
|
renderCell: j,
|
|
238
|
-
className:
|
|
239
|
-
dataTestId: `forms-table-${
|
|
238
|
+
className: I.formsTableBody,
|
|
239
|
+
dataTestId: `forms-table-${o}`
|
|
240
240
|
}
|
|
241
241
|
)
|
|
242
242
|
},
|
|
243
|
-
|
|
243
|
+
o
|
|
244
244
|
);
|
|
245
245
|
}) }) }),
|
|
246
246
|
g && s && /* @__PURE__ */ i(
|
|
@@ -250,10 +250,10 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
250
250
|
portalId: "main-display-area",
|
|
251
251
|
open: g,
|
|
252
252
|
onRequestClose: $,
|
|
253
|
-
modalHeading: /* @__PURE__ */
|
|
253
|
+
modalHeading: /* @__PURE__ */ x("div", { className: I.modalHeading, children: [
|
|
254
254
|
/* @__PURE__ */ i("span", { children: s.formName }),
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
T && f(s) && /* @__PURE__ */ i(
|
|
256
|
+
K,
|
|
257
257
|
{
|
|
258
258
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
259
259
|
kind: "ghost",
|
|
@@ -262,7 +262,7 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
262
262
|
onClick: () => {
|
|
263
263
|
$(), F(s);
|
|
264
264
|
},
|
|
265
|
-
children: /* @__PURE__ */ i(
|
|
265
|
+
children: /* @__PURE__ */ i(P, {})
|
|
266
266
|
}
|
|
267
267
|
)
|
|
268
268
|
] }),
|
|
@@ -276,10 +276,10 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
276
276
|
observations: de,
|
|
277
277
|
isLoading: te || ne,
|
|
278
278
|
isError: se || ie,
|
|
279
|
-
errorMessage:
|
|
279
|
+
errorMessage: ce,
|
|
280
280
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
281
281
|
testIdPrefix: s.formName,
|
|
282
|
-
hideThumbnail:
|
|
282
|
+
hideThumbnail: Z,
|
|
283
283
|
controlOrder: le,
|
|
284
284
|
sectionMap: me
|
|
285
285
|
}
|
|
@@ -289,5 +289,5 @@ const De = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_mo
|
|
|
289
289
|
] });
|
|
290
290
|
};
|
|
291
291
|
export {
|
|
292
|
-
|
|
292
|
+
xe as default
|
|
293
293
|
};
|
|
@@ -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 { bO as d, bP as f, bQ as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CCn9iY2V.js";
|
|
2
|
+
import { bO as d, bP as f, bQ as e } from "./index-DRz5WzPs.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 { bO as v, bP as C, bQ 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-CCn9iY2V.js";
|
|
2
|
+
import { bO as v, bP as C, bQ as e } from "./index-DRz5WzPs.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|