@bahmni/registration-app 0.0.1-dev.337 → 0.0.1-dev.338
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/{DocumentsTable-B8kKM-VS-BbH6phx0.js → DocumentsTable-Cq55el4h-CpESRg6o.js} +40 -40
- package/dist/{FormsTable-Bx36hODf-Dzlx12PL.js → FormsTable-DJJY3k8g-BiNyN95b.js} +82 -82
- package/dist/{LNWAZHJI-CpRBRFIV.js → LNWAZHJI-BeK659Vz.js} +2 -2
- package/dist/{MWZ6AO7Z-BLKJWO3m.js → MWZ6AO7Z-BbPeLxCj.js} +5 -5
- package/dist/{Observations-DrShFy9o-DYr785E8.js → Observations-CHGrTi3--CfbZ119P.js} +32 -32
- package/dist/{YPM2AS64-23h6lj_k.js → YPM2AS64-C-raIn0u.js} +138 -138
- package/dist/{index-CiwbiRMe.js → index-CMTtgcpf.js} +8406 -8403
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { l as G, u as W, B as Y, o as J, P as X, E as Z, S as ee, m as te } from "./index-CMTtgcpf.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
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",
|
|
4
|
+
import { useState as c, useCallback as _, useEffect as I, useMemo as p } from "react";
|
|
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", le = "DocumentsTable-module_documentIframe__ptq5I", ce = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
8
8
|
documentViewerContainer: re,
|
|
9
9
|
attachmentItem: de,
|
|
10
10
|
attachmentCounter: se,
|
|
11
11
|
attachmentError: me,
|
|
12
|
-
documentIframe:
|
|
13
|
-
documentImage:
|
|
12
|
+
documentIframe: le,
|
|
13
|
+
documentImage: ce
|
|
14
14
|
}, ue = {
|
|
15
15
|
documentIdentifier: "DOCUMENTS_DOCUMENT_IDENTIFIER",
|
|
16
16
|
documentType: "DOCUMENTS_TYPE",
|
|
@@ -18,7 +18,7 @@ const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTab
|
|
|
18
18
|
uploadedBy: "DOCUMENTS_UPLOADED_BY",
|
|
19
19
|
attachments: "DOCUMENTS_ATTACHMENTS"
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function B(a) {
|
|
22
22
|
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
23
23
|
}
|
|
24
24
|
function ie(a, E) {
|
|
@@ -33,18 +33,18 @@ const Te = [
|
|
|
33
33
|
"attachments",
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
|
-
],
|
|
37
|
-
const [s, w] =
|
|
36
|
+
], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: E }) => {
|
|
37
|
+
const [s, w] = c(!1), [o, U] = c(
|
|
38
38
|
null
|
|
39
|
-
), [$, O] =
|
|
39
|
+
), [$, O] = c(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), g = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [f, C] =
|
|
41
|
+
), g = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [f, C] = c(1), [u, V] = c(k), [F, A] = c(void 0), M = _((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
|
-
}, []),
|
|
43
|
+
}, []), H = _(() => {
|
|
44
44
|
w(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
45
|
-
}, []), v =
|
|
45
|
+
}, []), v = _((e) => {
|
|
46
46
|
O((t) => new Set(t).add(e));
|
|
47
|
-
}, []), { data: i, isLoading:
|
|
47
|
+
}, []), { data: i, isLoading: P, isError: b, error: y } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
g,
|
|
@@ -74,39 +74,39 @@ const Te = [
|
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
77
|
-
const t = /* @__PURE__ */ new Set(), m =
|
|
78
|
-
for (let
|
|
79
|
-
const S =
|
|
77
|
+
const t = /* @__PURE__ */ new Set(), m = R(o);
|
|
78
|
+
for (let l = 0; l < m.length; l++) {
|
|
79
|
+
const S = B(m[l].url);
|
|
80
80
|
try {
|
|
81
81
|
(await fetch(S, {
|
|
82
82
|
method: "HEAD",
|
|
83
83
|
signal: e.signal
|
|
84
|
-
})).ok || t.add(
|
|
84
|
+
})).ok || t.add(l);
|
|
85
85
|
} catch (D) {
|
|
86
|
-
D instanceof Error && D.name !== "AbortError" && t.add(
|
|
86
|
+
D instanceof Error && D.name !== "AbortError" && t.add(l);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
e.signal.aborted || O(t);
|
|
90
90
|
})(), () => e.abort();
|
|
91
91
|
}, [s, o]);
|
|
92
|
-
const
|
|
92
|
+
const q = _(
|
|
93
93
|
(e, t) => {
|
|
94
94
|
t !== u ? (V(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
|
-
), N =
|
|
97
|
+
), N = p(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
),
|
|
100
|
+
), j = 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]), K = p(
|
|
101
101
|
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
104
104
|
})),
|
|
105
105
|
[N]
|
|
106
|
-
), T =
|
|
107
|
-
() => o ?
|
|
106
|
+
), T = p(
|
|
107
|
+
() => o ? R(o) : [],
|
|
108
108
|
[o]
|
|
109
|
-
),
|
|
109
|
+
), Q = _(
|
|
110
110
|
(e, t) => {
|
|
111
111
|
switch (t) {
|
|
112
112
|
case "documentIdentifier":
|
|
@@ -137,24 +137,24 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ h(x, { 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: j,
|
|
147
|
+
loading: P,
|
|
148
148
|
errorStateMessage: b ? y?.message : null,
|
|
149
|
-
sortable:
|
|
149
|
+
sortable: K,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
|
-
renderCell:
|
|
151
|
+
renderCell: Q,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
|
-
totalItems:
|
|
155
|
+
totalItems: F,
|
|
156
156
|
page: f,
|
|
157
|
-
onPageChange:
|
|
157
|
+
onPageChange: q
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
160
160
|
s && o && /* @__PURE__ */ r(
|
|
@@ -163,20 +163,20 @@ const Te = [
|
|
|
163
163
|
id: "modalIdForActionAreaLayout",
|
|
164
164
|
portalId: "main-display-area",
|
|
165
165
|
open: s,
|
|
166
|
-
onRequestClose:
|
|
166
|
+
onRequestClose: H,
|
|
167
167
|
modalHeading: o.documentIdentifier,
|
|
168
168
|
passiveModal: !0,
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m =
|
|
173
|
-
return m === "#" || D ? /* @__PURE__ */
|
|
172
|
+
const m = B(e.url), l = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || he.test(e.url ?? ""), D = $.has(t);
|
|
173
|
+
return m === "#" || D ? /* @__PURE__ */ h(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: d.attachmentError,
|
|
177
177
|
"data-testid": `attachment-error-${t}`,
|
|
178
178
|
children: [
|
|
179
|
-
T.length > 1 && /* @__PURE__ */
|
|
179
|
+
T.length > 1 && /* @__PURE__ */ h("p", { className: d.attachmentCounter, children: [
|
|
180
180
|
t + 1,
|
|
181
181
|
"/",
|
|
182
182
|
T.length
|
|
@@ -185,13 +185,13 @@ const Te = [
|
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
187
|
`${o.id}-${e.url}`
|
|
188
|
-
) : /* @__PURE__ */
|
|
188
|
+
) : /* @__PURE__ */ h(
|
|
189
189
|
"div",
|
|
190
190
|
{
|
|
191
191
|
className: d.attachmentItem,
|
|
192
192
|
"data-testid": `attachment-item-${t}`,
|
|
193
193
|
children: [
|
|
194
|
-
T.length > 1 && /* @__PURE__ */
|
|
194
|
+
T.length > 1 && /* @__PURE__ */ h("p", { className: d.attachmentCounter, children: [
|
|
195
195
|
t + 1,
|
|
196
196
|
"/",
|
|
197
197
|
T.length
|
|
@@ -207,7 +207,7 @@ const Te = [
|
|
|
207
207
|
) : /* @__PURE__ */ r(
|
|
208
208
|
"iframe",
|
|
209
209
|
{
|
|
210
|
-
src:
|
|
210
|
+
src: l ? `${m}#toolbar=0` : m,
|
|
211
211
|
className: d.documentIframe,
|
|
212
212
|
title: o.documentIdentifier,
|
|
213
213
|
onError: () => v(t)
|
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
import { jsx as i, jsxs as re, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { u as ae,
|
|
2
|
+
import { u as ae, l as se, a as te, n as ne, V as de, r as ie, t as me, K as le, v as ce, Z as q, E as ue, P as fe, S as K, O as ye, L as be, m as he, b as pe } from "./index-CMTtgcpf.js";
|
|
3
3
|
import { useQueryClient as ge, useQuery as y } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
5
|
-
const Ne = "FormsTable-module_formsTableBody__SvGha",
|
|
4
|
+
import { useState as V, useMemo as d, useCallback as b } from "react";
|
|
5
|
+
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
|
-
customAccordianItem:
|
|
8
|
-
},
|
|
7
|
+
customAccordianItem: Oe
|
|
8
|
+
}, Le = ({
|
|
9
9
|
episodeOfCareUuids: T,
|
|
10
|
-
encounterUuids:
|
|
11
|
-
config:
|
|
10
|
+
encounterUuids: l,
|
|
11
|
+
config: k
|
|
12
12
|
}) => {
|
|
13
|
-
const { t: n } = ae(), c = se(), [u,
|
|
13
|
+
const { t: n } = ae(), c = se(), [u, E] = V(!1), [s, I] = V(null), {
|
|
14
14
|
numberOfVisits: w,
|
|
15
|
-
hideThumbnail:
|
|
15
|
+
hideThumbnail: j = !1,
|
|
16
16
|
forms: f
|
|
17
|
-
} =
|
|
17
|
+
} = k ?? {}, L = te(
|
|
18
18
|
T,
|
|
19
|
-
|
|
20
|
-
),
|
|
21
|
-
data:
|
|
19
|
+
l
|
|
20
|
+
), x = ge(), {
|
|
21
|
+
data: B = [],
|
|
22
22
|
isLoading: F,
|
|
23
|
-
isError:
|
|
24
|
-
error:
|
|
25
|
-
refetch:
|
|
23
|
+
isError: S,
|
|
24
|
+
error: G,
|
|
25
|
+
refetch: H
|
|
26
26
|
} = y({
|
|
27
27
|
queryKey: ["forms", c, T],
|
|
28
28
|
queryFn: () => ne(c, void 0, w),
|
|
29
|
-
enabled: !!c && !
|
|
30
|
-
}),
|
|
31
|
-
let e =
|
|
32
|
-
return
|
|
33
|
-
(r) =>
|
|
29
|
+
enabled: !!c && !L
|
|
30
|
+
}), M = d(() => {
|
|
31
|
+
let e = B;
|
|
32
|
+
return l && l.length > 0 && (e = e.filter(
|
|
33
|
+
(r) => l.includes(r.encounterUuid)
|
|
34
34
|
)), Array.isArray(f) && f.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => f.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
36
36
|
)), e;
|
|
37
|
-
}, [
|
|
37
|
+
}, [B, l, f]), { data: _ = [] } = y({
|
|
38
38
|
queryKey: ["observationForms"],
|
|
39
39
|
queryFn: () => de()
|
|
40
|
-
}), v =
|
|
41
|
-
(e) =>
|
|
42
|
-
[
|
|
43
|
-
),
|
|
40
|
+
}), v = b(
|
|
41
|
+
(e) => _.find((r) => r.name === e)?.uuid,
|
|
42
|
+
[_]
|
|
43
|
+
), h = d(() => {
|
|
44
44
|
if (s)
|
|
45
45
|
return v(s.formName);
|
|
46
46
|
}, [s, v]), {
|
|
47
|
-
data:
|
|
48
|
-
isLoading:
|
|
49
|
-
isError:
|
|
47
|
+
data: m,
|
|
48
|
+
isLoading: $,
|
|
49
|
+
isError: z,
|
|
50
50
|
error: p
|
|
51
51
|
} = y({
|
|
52
|
-
queryKey: ["formMetadata",
|
|
53
|
-
queryFn: () => ie(
|
|
54
|
-
enabled: !!
|
|
52
|
+
queryKey: ["formMetadata", h],
|
|
53
|
+
queryFn: () => ie(h),
|
|
54
|
+
enabled: !!h && u
|
|
55
55
|
}), {
|
|
56
56
|
data: g,
|
|
57
|
-
isLoading:
|
|
58
|
-
isError:
|
|
57
|
+
isLoading: P,
|
|
58
|
+
isError: Q,
|
|
59
59
|
error: N
|
|
60
60
|
} = y({
|
|
61
61
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
62
|
-
queryFn: () =>
|
|
62
|
+
queryFn: () => me(s.encounterUuid),
|
|
63
63
|
enabled: !!s?.encounterUuid && u
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
le(
|
|
66
66
|
(e) => {
|
|
67
|
-
e.patientUUID === c && e.updatedConcepts.size > 0 && (
|
|
67
|
+
e.patientUUID === c && e.updatedConcepts.size > 0 && (H(), x.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
68
68
|
},
|
|
69
69
|
[c]
|
|
70
70
|
);
|
|
71
|
-
const
|
|
71
|
+
const Z = d(() => !g?.entry || !s?.formName ? [] : g.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
72
72
|
const r = ce(e);
|
|
73
73
|
return !r || r.includes(s.formName);
|
|
74
|
-
}), [g, s?.formName]),
|
|
75
|
-
if (!
|
|
74
|
+
}), [g, s?.formName]), Y = d(() => {
|
|
75
|
+
if (!m?.schema) return;
|
|
76
76
|
const e = [], r = (o) => {
|
|
77
77
|
(o ?? []).forEach((t) => {
|
|
78
78
|
const a = t;
|
|
@@ -80,45 +80,45 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
|
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
82
|
return r(
|
|
83
|
-
|
|
83
|
+
m.schema.controls ?? []
|
|
84
84
|
), e.length > 0 ? e : void 0;
|
|
85
|
-
}, [
|
|
86
|
-
if (!
|
|
85
|
+
}, [m]), J = d(() => {
|
|
86
|
+
if (!m?.schema) return;
|
|
87
87
|
const e = {}, r = (o, t) => {
|
|
88
88
|
for (const a of o)
|
|
89
89
|
if (a.type === "section") {
|
|
90
|
-
const
|
|
91
|
-
r(a.controls ?? [],
|
|
90
|
+
const O = a.label?.value ?? "Section";
|
|
91
|
+
r(a.controls ?? [], O);
|
|
92
92
|
} else
|
|
93
93
|
a.id != null && t && (e[String(a.id)] = t), a.controls && r(a.controls, t);
|
|
94
94
|
};
|
|
95
95
|
return r(
|
|
96
|
-
|
|
96
|
+
m.schema.controls ?? [],
|
|
97
97
|
null
|
|
98
98
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
99
|
-
}, [
|
|
99
|
+
}, [m]), W = d(() => {
|
|
100
100
|
if (p)
|
|
101
101
|
return q(p).message;
|
|
102
102
|
if (N)
|
|
103
103
|
return q(N).message;
|
|
104
|
-
}, [p, N]),
|
|
104
|
+
}, [p, N]), C = d(
|
|
105
105
|
() => [
|
|
106
106
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
107
107
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
108
108
|
],
|
|
109
109
|
[n]
|
|
110
|
-
),
|
|
110
|
+
), X = d(
|
|
111
111
|
() => [
|
|
112
112
|
{ key: "recordedOn", sortable: !0 },
|
|
113
113
|
{ key: "recordedBy", sortable: !0 }
|
|
114
114
|
],
|
|
115
115
|
[]
|
|
116
|
-
),
|
|
117
|
-
const e =
|
|
116
|
+
), D = d(() => {
|
|
117
|
+
const e = M.reduce(
|
|
118
118
|
(r, o) => {
|
|
119
119
|
const t = o.formName;
|
|
120
120
|
r[t] ??= [];
|
|
121
|
-
const a = o.providers.map((
|
|
121
|
+
const a = o.providers.map((O) => O.providerName).filter(Boolean).join(", ");
|
|
122
122
|
return r[t].push({
|
|
123
123
|
id: o.encounterUuid,
|
|
124
124
|
formName: o.formName,
|
|
@@ -138,58 +138,58 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
|
|
|
138
138
|
)
|
|
139
139
|
})
|
|
140
140
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
141
|
-
}, [
|
|
142
|
-
|
|
143
|
-
}, []), ee =
|
|
144
|
-
|
|
145
|
-
}, []),
|
|
141
|
+
}, [M, n]), R = b((e) => {
|
|
142
|
+
I(e), E(!0);
|
|
143
|
+
}, []), ee = b(() => {
|
|
144
|
+
E(!1), I(null);
|
|
145
|
+
}, []), U = b(
|
|
146
146
|
(e, r) => {
|
|
147
147
|
switch (r) {
|
|
148
148
|
case "recordedOn":
|
|
149
|
-
return /* @__PURE__ */ i(fe, { onClick: () =>
|
|
149
|
+
return /* @__PURE__ */ i(fe, { onClick: () => R(e), children: e.recordedOn });
|
|
150
150
|
case "recordedBy":
|
|
151
151
|
return e.recordedBy;
|
|
152
152
|
default:
|
|
153
153
|
return null;
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
[
|
|
156
|
+
[R]
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ re(oe, { children: [
|
|
159
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: F ||
|
|
160
|
-
|
|
159
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: F || S || D.length === 0 || L ? /* @__PURE__ */ i(
|
|
160
|
+
K,
|
|
161
161
|
{
|
|
162
|
-
headers:
|
|
162
|
+
headers: C,
|
|
163
163
|
ariaLabel: n("FORMS_HEADING"),
|
|
164
164
|
rows: [],
|
|
165
165
|
loading: F,
|
|
166
|
-
errorStateMessage:
|
|
166
|
+
errorStateMessage: S ? G?.message : void 0,
|
|
167
167
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
168
|
-
renderCell:
|
|
169
|
-
className:
|
|
168
|
+
renderCell: U,
|
|
169
|
+
className: A.formsTableBody,
|
|
170
170
|
dataTestId: "forms-table"
|
|
171
171
|
}
|
|
172
|
-
) : /* @__PURE__ */ i(ye, { align: "start", children:
|
|
172
|
+
) : /* @__PURE__ */ i(ye, { align: "start", children: D.map((e, r) => {
|
|
173
173
|
const { formName: o, records: t } = e;
|
|
174
174
|
return /* @__PURE__ */ i(
|
|
175
|
-
|
|
175
|
+
be,
|
|
176
176
|
{
|
|
177
177
|
title: o,
|
|
178
|
-
className:
|
|
178
|
+
className: A.customAccordianItem,
|
|
179
179
|
testId: `accordian-title-${o}`,
|
|
180
180
|
open: r === 0,
|
|
181
181
|
children: /* @__PURE__ */ i(
|
|
182
|
-
|
|
182
|
+
K,
|
|
183
183
|
{
|
|
184
|
-
headers:
|
|
184
|
+
headers: C,
|
|
185
185
|
ariaLabel: n("FORMS_HEADING"),
|
|
186
186
|
rows: t,
|
|
187
187
|
loading: !1,
|
|
188
188
|
errorStateMessage: "",
|
|
189
|
-
sortable:
|
|
189
|
+
sortable: X,
|
|
190
190
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
191
|
-
renderCell:
|
|
192
|
-
className:
|
|
191
|
+
renderCell: U,
|
|
192
|
+
className: A.formsTableBody,
|
|
193
193
|
dataTestId: `forms-table-${o}`
|
|
194
194
|
}
|
|
195
195
|
)
|
|
@@ -198,7 +198,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
|
|
|
198
198
|
);
|
|
199
199
|
}) }) }),
|
|
200
200
|
u && s && /* @__PURE__ */ i(
|
|
201
|
-
|
|
201
|
+
he,
|
|
202
202
|
{
|
|
203
203
|
id: "modalIdForActionAreaLayout",
|
|
204
204
|
portalId: "main-display-area",
|
|
@@ -212,15 +212,15 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
|
|
|
212
212
|
children: /* @__PURE__ */ i(
|
|
213
213
|
pe,
|
|
214
214
|
{
|
|
215
|
-
observations:
|
|
216
|
-
isLoading:
|
|
217
|
-
isError:
|
|
218
|
-
errorMessage:
|
|
215
|
+
observations: Z,
|
|
216
|
+
isLoading: $ || P,
|
|
217
|
+
isError: z || Q,
|
|
218
|
+
errorMessage: W,
|
|
219
219
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
220
220
|
testIdPrefix: s.formName,
|
|
221
|
-
hideThumbnail:
|
|
222
|
-
controlOrder:
|
|
223
|
-
sectionMap:
|
|
221
|
+
hideThumbnail: j,
|
|
222
|
+
controlOrder: Y,
|
|
223
|
+
sectionMap: J
|
|
224
224
|
}
|
|
225
225
|
)
|
|
226
226
|
}
|
|
@@ -228,5 +228,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
|
|
|
228
228
|
] });
|
|
229
229
|
};
|
|
230
230
|
export {
|
|
231
|
-
|
|
231
|
+
Le as default
|
|
232
232
|
};
|
|
@@ -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 {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C-raIn0u.js";
|
|
2
|
+
import { s as d, w as f, y as e } from "./index-CMTtgcpf.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
1
|
+
import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-C-raIn0u.js";
|
|
2
|
+
import { s as v, w as C, y as e } from "./index-CMTtgcpf.js";
|
|
3
3
|
var h = (t) => {
|
|
4
|
-
const [r, o] =
|
|
4
|
+
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), a = v(),
|
|
6
|
+
}), a = v(), s = C(() => {
|
|
7
7
|
const n = r.theme_preference || c;
|
|
8
8
|
return n !== "system" ? n : a();
|
|
9
9
|
});
|
|
@@ -16,7 +16,7 @@ var h = (t) => {
|
|
|
16
16
|
setLocalStore: o,
|
|
17
17
|
get children() {
|
|
18
18
|
return e(i.Provider, {
|
|
19
|
-
value:
|
|
19
|
+
value: s,
|
|
20
20
|
get children() {
|
|
21
21
|
return e(m, {
|
|
22
22
|
get children() {
|