@bahmni/home-app 0.0.1-dev.278 → 0.0.1-dev.280
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-nUPsK-OA-YZpjGW-V.js → DocumentsTable-BKZD_mfe-DtUYlf6K.js} +1 -1
- package/dist/{FormsTable-OSjGpfFN-kMzpRIdP.js → FormsTable-f2R_SktG-C55e1KN6.js} +29 -29
- package/dist/{LNWAZHJI-uEJS4Rea.js → LNWAZHJI-BsDGUeI0.js} +2 -2
- package/dist/{MWZ6AO7Z-DJpw2M5I.js → MWZ6AO7Z-BhY0eDjj.js} +2 -2
- package/dist/{Observations-Cs0mhx7R-Bv7_YO4J.js → Observations-DeYdVNE_-DF0vCHCh.js} +1 -1
- package/dist/{YPM2AS64-BKXHiH2D.js → YPM2AS64-C5GOX24V.js} +1 -1
- package/dist/{index-0eduZGN1.js → index-Bf6sTnGw.js} +1 -1
- package/dist/{index-D3sfUX20.js → index-Ds9w0cdT.js} +1575 -1570
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as T, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { u as G, a as W, h as Y, p as J, b as X, m as Z, c as ee, n as te } from "./index-
|
|
2
|
+
import { u as G, a as W, h as Y, p as J, b as X, m as Z, c as ee, n as te } from "./index-Ds9w0cdT.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as O, useMemo as h } 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", ce = "DocumentsTable-module_attachmentError__RI4U2", me = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as W, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { a as ee, u as re,
|
|
2
|
+
import { a as ee, u as re, v as ae, d as oe, e as te, f as se, g as ne, i as de, R as S, m as ie, b as me, c as U, C as ue, T as le, n as ce, t as fe, s as ye } from "./index-Ds9w0cdT.js";
|
|
3
3
|
import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as q, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
@@ -10,42 +10,42 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
10
10
|
)?.valueString : void 0, Ie = ({
|
|
11
11
|
episodeOfCareUuids: m,
|
|
12
12
|
encounterUuids: n,
|
|
13
|
-
config:
|
|
13
|
+
config: k
|
|
14
14
|
}) => {
|
|
15
15
|
const { t } = ee(), u = re(), [l, T] = q(!1), [o, O] = q(null), {
|
|
16
|
-
numberOfVisits:
|
|
17
|
-
hideThumbnail:
|
|
16
|
+
numberOfVisits: w,
|
|
17
|
+
hideThumbnail: H = !1,
|
|
18
18
|
forms: c
|
|
19
|
-
} =
|
|
19
|
+
} = k ?? {}, I = ae(
|
|
20
20
|
m,
|
|
21
21
|
n
|
|
22
|
-
),
|
|
22
|
+
), K = be(), {
|
|
23
23
|
data: F = [],
|
|
24
24
|
isLoading: L,
|
|
25
|
-
isError:
|
|
26
|
-
error:
|
|
25
|
+
isError: v,
|
|
26
|
+
error: j,
|
|
27
27
|
refetch: x
|
|
28
28
|
} = f({
|
|
29
29
|
queryKey: ["forms", u, m],
|
|
30
|
-
queryFn: () => oe(u, void 0,
|
|
30
|
+
queryFn: () => oe(u, void 0, w),
|
|
31
31
|
enabled: !!u && !I
|
|
32
|
-
}),
|
|
32
|
+
}), B = d(() => {
|
|
33
33
|
let e = F;
|
|
34
34
|
return n && n.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => n.includes(r.encounterUuid)
|
|
36
36
|
)), Array.isArray(c) && c.length > 0 && (e = e.filter(
|
|
37
37
|
(r) => c.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
38
38
|
)), e;
|
|
39
|
-
}, [F, n, c]), { data:
|
|
39
|
+
}, [F, n, c]), { data: C = [] } = f({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => te()
|
|
42
|
-
}),
|
|
43
|
-
(e) =>
|
|
44
|
-
[
|
|
42
|
+
}), E = y(
|
|
43
|
+
(e) => C.find((r) => r.name === e)?.uuid,
|
|
44
|
+
[C]
|
|
45
45
|
), b = d(() => {
|
|
46
46
|
if (o)
|
|
47
|
-
return
|
|
48
|
-
}, [o,
|
|
47
|
+
return E(o.formName);
|
|
48
|
+
}, [o, E]), {
|
|
49
49
|
isLoading: V,
|
|
50
50
|
isError: $,
|
|
51
51
|
error: g
|
|
@@ -65,7 +65,7 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
65
65
|
});
|
|
66
66
|
de(
|
|
67
67
|
(e) => {
|
|
68
|
-
e.patientUUID === u && e.updatedConcepts.size > 0 && (x(),
|
|
68
|
+
e.patientUUID === u && e.updatedConcepts.size > 0 && (x(), K.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
69
69
|
},
|
|
70
70
|
[u]
|
|
71
71
|
);
|
|
@@ -77,7 +77,7 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
77
77
|
return S(g).message;
|
|
78
78
|
if (h)
|
|
79
79
|
return S(h).message;
|
|
80
|
-
}, [g, h]),
|
|
80
|
+
}, [g, h]), M = d(
|
|
81
81
|
() => [
|
|
82
82
|
{ key: "recordedOn", header: t("RECORDED_ON") },
|
|
83
83
|
{ key: "recordedBy", header: t("RECORDED_BY") }
|
|
@@ -89,8 +89,8 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
89
89
|
{ key: "recordedBy", sortable: !0 }
|
|
90
90
|
],
|
|
91
91
|
[]
|
|
92
|
-
),
|
|
93
|
-
const e =
|
|
92
|
+
), R = d(() => {
|
|
93
|
+
const e = B.reduce(
|
|
94
94
|
(r, a) => {
|
|
95
95
|
const i = a.formName;
|
|
96
96
|
r[i] ??= [];
|
|
@@ -114,7 +114,7 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
114
114
|
)
|
|
115
115
|
})
|
|
116
116
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
117
|
-
}, [
|
|
117
|
+
}, [B, t]), _ = y((e) => {
|
|
118
118
|
O(e), T(!0);
|
|
119
119
|
}, []), J = y(() => {
|
|
120
120
|
T(!1), O(null);
|
|
@@ -122,30 +122,30 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
122
122
|
(e, r) => {
|
|
123
123
|
switch (r) {
|
|
124
124
|
case "recordedOn":
|
|
125
|
-
return /* @__PURE__ */ s(me, { onClick: () =>
|
|
125
|
+
return /* @__PURE__ */ s(me, { onClick: () => _(e), children: e.recordedOn });
|
|
126
126
|
case "recordedBy":
|
|
127
127
|
return e.recordedBy;
|
|
128
128
|
default:
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
[
|
|
132
|
+
[_]
|
|
133
133
|
);
|
|
134
134
|
return /* @__PURE__ */ W(Z, { children: [
|
|
135
|
-
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: L ||
|
|
135
|
+
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: L || v || R.length === 0 || I ? /* @__PURE__ */ s(
|
|
136
136
|
U,
|
|
137
137
|
{
|
|
138
|
-
headers:
|
|
138
|
+
headers: M,
|
|
139
139
|
ariaLabel: t("FORMS_HEADING"),
|
|
140
140
|
rows: [],
|
|
141
141
|
loading: L,
|
|
142
|
-
errorStateMessage:
|
|
142
|
+
errorStateMessage: v ? j?.message : void 0,
|
|
143
143
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
144
144
|
renderCell: D,
|
|
145
145
|
className: A.formsTableBody,
|
|
146
146
|
dataTestId: "forms-table"
|
|
147
147
|
}
|
|
148
|
-
) : /* @__PURE__ */ s(ue, { align: "start", children:
|
|
148
|
+
) : /* @__PURE__ */ s(ue, { align: "start", children: R.map((e, r) => {
|
|
149
149
|
const { formName: a, records: i } = e;
|
|
150
150
|
return /* @__PURE__ */ s(
|
|
151
151
|
le,
|
|
@@ -157,7 +157,7 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
157
157
|
children: /* @__PURE__ */ s(
|
|
158
158
|
U,
|
|
159
159
|
{
|
|
160
|
-
headers:
|
|
160
|
+
headers: M,
|
|
161
161
|
ariaLabel: t("FORMS_HEADING"),
|
|
162
162
|
rows: i,
|
|
163
163
|
loading: !1,
|
|
@@ -194,7 +194,7 @@ const ge = "FormsTable-module_formsTableBody__SvGha", pe = "FormsTable-module_cu
|
|
|
194
194
|
errorMessage: P,
|
|
195
195
|
emptyStateMessage: t("NO_FORM_DATA_AVAILABLE"),
|
|
196
196
|
testIdPrefix: o.formName,
|
|
197
|
-
hideThumbnail:
|
|
197
|
+
hideThumbnail: H
|
|
198
198
|
}
|
|
199
199
|
)
|
|
200
200
|
}
|
|
@@ -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 { W as d, X as f, Y as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C5GOX24V.js";
|
|
2
|
+
import { W as d, X as f, Y as e } from "./index-Ds9w0cdT.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 { W as v, X as C, Y 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-C5GOX24V.js";
|
|
2
|
+
import { W as v, X as C, Y as e } from "./index-Ds9w0cdT.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as q, h as w, a as S,
|
|
2
|
+
import { u as q, h as w, a as S, j as K, l as k, i as x, k as z, E as M, y as P, z as j, c as G, w as H, P as L, o as J, x as Y, q as W, _ as X, B as Z, L as ee } from "./index-Ds9w0cdT.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as R } from "react";
|
|
5
5
|
const D = (a, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as we, $ as z, a0 as xt, a1 as B, X as q, Y as y, a2 as Ro, a3 as ye, a4 as R, a5 as _, a6 as k, a7 as N, a8 as A, a9 as bs, aa as ir, ab as $e, ac as G, ad as Hn, ae as Vn, af as dt, ag as D, ah as xs, ai as cn, aj as Be, ak as ws, al as qt, am as zt, an as $s, ao as Cs, ap as $n, aq as Ss, ar as Nr, as as Bt, at as zo, au as ks, av as Es, aw as j, ax as Gr, ay as Ms, az as Ds, aA as sr, aB as As, aC as Ts, aD as zn, aE as Fs, aF as Is, aG as Z, aH as Ps, aI as Ls } from "./index-
|
|
1
|
+
import { Z as we, $ as z, a0 as xt, a1 as B, X as q, Y as y, a2 as Ro, a3 as ye, a4 as R, a5 as _, a6 as k, a7 as N, a8 as A, a9 as bs, aa as ir, ab as $e, ac as G, ad as Hn, ae as Vn, af as dt, ag as D, ah as xs, ai as cn, aj as Be, ak as ws, al as qt, am as zt, an as $s, ao as Cs, ap as $n, aq as Ss, ar as Nr, as as Bt, at as zo, au as ks, av as Es, aw as j, ax as Gr, ay as Ms, az as Ds, aA as sr, aB as As, aC as Ts, aD as zn, aE as Fs, aF as Is, aG as Z, aH as Ps, aI as Ls } from "./index-Ds9w0cdT.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as ne, Fragment as Xi } from "react/jsx-runtime";
|
|
2
|
-
import { a as ot, r as Qi, A as Ji, D as ec, F as tc, G as rc, H as nc, I as oc, J as hi, V as ac, K as lc, h as ic, M as cc, N as sc, O as fc, Q as pc, S as hc, U as uc } from "./index-
|
|
2
|
+
import { a as ot, r as Qi, A as Ji, D as ec, F as tc, G as rc, H as nc, I as oc, J as hi, V as ac, K as lc, h as ic, M as cc, N as sc, O as fc, Q as pc, S as hc, U as uc } from "./index-Ds9w0cdT.js";
|
|
3
3
|
import * as X from "react";
|
|
4
4
|
import r, { createContext as at, useContext as $e, Children as q1, useState as pe, useLayoutEffect as V1, useEffect as ie, useMemo as lt, useCallback as Me, useRef as oe, forwardRef as y1, useReducer as dc, cloneElement as G1, isValidElement as wc } from "react";
|
|
5
5
|
import { useQuery as mc } from "@tanstack/react-query";
|