@bahmni/home-app 0.0.1-dev.410 → 0.0.1-dev.411
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-DYaZZTBA-BGIdX9z8.js → DocumentsTable-d1TJP4VT-C9TkFTYY.js} +1 -1
- package/dist/{FormsTable-m3xk-F34-w7lp3V8x.js → FormsTable-CieUtVH3-dBL4kvLS.js} +25 -25
- package/dist/{LNWAZHJI-COuCx9k4.js → LNWAZHJI-Q6camYAw.js} +2 -2
- package/dist/{MWZ6AO7Z-Dc6UU3Iv.js → MWZ6AO7Z-tuOR5XdU.js} +2 -2
- package/dist/{Observations-BjPcu9m0-DOXG3rEE.js → Observations-ChKkOtyn-Bw_s1Kkf.js} +5 -5
- package/dist/{YPM2AS64-VlHi9vm1.js → YPM2AS64-B_fCLwCP.js} +1 -1
- package/dist/{index-D_JDMbG9.js → index---UFZztp.js} +1 -1
- package/dist/{index-xbJFIh8C.js → index-BBLFn5Hb.js} +29640 -29226
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { v as x, u as G, z as W, a as J, q as X, w as Z, Y as ee, p as te } from "./index-
|
|
2
|
+
import { v as x, u as G, z as W, a as J, q as X, w as Z, Y as ee, p as te } from "./index-BBLFn5Hb.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as I, useMemo as _ } 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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as n, jsxs as P, Fragment as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as n, jsxs as P, Fragment as be } from "react/jsx-runtime";
|
|
2
|
+
import { u as ge, v as he, t as Te, e as Oe, b as Ne, d as Ie, c as Ae, y as Ee, f as _e, m as ve, i as Fe, g as Me, h as Be, S as z, w as Re, A as G, V as K, q as Se, Y as j, P as Ce, F as Le, p as Ue, s as De, _ as qe } from "./index-BBLFn5Hb.js";
|
|
3
3
|
import { useQueryClient as we, useQuery as T } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as i, useCallback as d } from "react";
|
|
5
5
|
const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", O = {
|
|
@@ -11,15 +11,15 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
11
11
|
encounterUuids: l,
|
|
12
12
|
config: Y,
|
|
13
13
|
disableActions: Z = !1,
|
|
14
|
-
activeEncounterUuid:
|
|
14
|
+
activeEncounterUuid: y = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t } =
|
|
16
|
+
const { t } = ge(), m = he(), [p, M] = Q(!1), [o, B] = Q(null), {
|
|
17
17
|
numberOfVisits: X,
|
|
18
18
|
hideThumbnail: J = !1,
|
|
19
|
-
forms:
|
|
19
|
+
forms: b
|
|
20
20
|
} = Y ?? {}, W = Te(
|
|
21
21
|
qe.EDIT_OBSERVATIONS
|
|
22
|
-
), { userPrivileges:
|
|
22
|
+
), { userPrivileges: g } = Oe(), N = W && !Z && !!y, R = Ne(
|
|
23
23
|
F,
|
|
24
24
|
l
|
|
25
25
|
), ee = we(), {
|
|
@@ -36,29 +36,29 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
36
36
|
let e = S;
|
|
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(b) && b.length > 0 && (e = e.filter(
|
|
40
|
+
(r) => b.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [S, l,
|
|
42
|
+
}, [S, l, b]), { data: h = [] } = T({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
44
|
queryFn: () => Ae()
|
|
45
45
|
}), D = d(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = h.find((s) => s.name === e);
|
|
48
48
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
49
|
-
if (!
|
|
50
|
-
const a = new Set(
|
|
49
|
+
if (!g || g.length === 0) return !1;
|
|
50
|
+
const a = new Set(g.map((s) => s.name));
|
|
51
51
|
return r.privileges.some(
|
|
52
52
|
(s) => a.has(s.privilegeName) && s.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
55
|
+
[h, g]
|
|
56
56
|
), u = d(
|
|
57
|
-
(e) => !
|
|
58
|
-
[
|
|
57
|
+
(e) => !y || e.encounterUuid !== y ? !1 : D(e.formName),
|
|
58
|
+
[y, D]
|
|
59
59
|
), q = d(
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
60
|
+
(e) => h.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[h]
|
|
62
62
|
), I = i(() => {
|
|
63
63
|
if (o)
|
|
64
64
|
return q(o.formName);
|
|
@@ -70,7 +70,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
70
70
|
} = T({
|
|
71
71
|
queryKey: ["formMetadata", I],
|
|
72
72
|
queryFn: () => Ee(I),
|
|
73
|
-
enabled: !!I &&
|
|
73
|
+
enabled: !!I && p
|
|
74
74
|
}), {
|
|
75
75
|
data: E,
|
|
76
76
|
isLoading: se,
|
|
@@ -79,7 +79,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
79
79
|
} = T({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", o?.encounterUuid],
|
|
81
81
|
queryFn: () => _e(o.encounterUuid),
|
|
82
|
-
enabled: !!o?.encounterUuid &&
|
|
82
|
+
enabled: !!o?.encounterUuid && p
|
|
83
83
|
});
|
|
84
84
|
ve(
|
|
85
85
|
(e) => {
|
|
@@ -107,7 +107,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
107
107
|
), ce = d(
|
|
108
108
|
(e) => N && e.some((r) => u(r)) ? k : c,
|
|
109
109
|
[N, u, k, c]
|
|
110
|
-
), fe = c,
|
|
110
|
+
), fe = c, ye = i(
|
|
111
111
|
() => [
|
|
112
112
|
{ key: "recordedOn", sortable: !0 },
|
|
113
113
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -118,7 +118,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
118
118
|
(r, a) => {
|
|
119
119
|
const s = a.formName;
|
|
120
120
|
r[s] ??= [];
|
|
121
|
-
const f = a.providers.map((
|
|
121
|
+
const f = a.providers.map((pe) => pe.providerName).filter(Boolean).join(", ");
|
|
122
122
|
return r[s].push({
|
|
123
123
|
id: a.encounterUuid,
|
|
124
124
|
formName: a.formName,
|
|
@@ -179,7 +179,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
179
179
|
},
|
|
180
180
|
[H, v, u, t]
|
|
181
181
|
);
|
|
182
|
-
return /* @__PURE__ */ P(
|
|
182
|
+
return /* @__PURE__ */ P(be, { children: [
|
|
183
183
|
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: C || L || V.length === 0 || R ? /* @__PURE__ */ n(
|
|
184
184
|
j,
|
|
185
185
|
{
|
|
@@ -210,7 +210,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
210
210
|
rows: s,
|
|
211
211
|
loading: !1,
|
|
212
212
|
errorStateMessage: "",
|
|
213
|
-
sortable:
|
|
213
|
+
sortable: ye,
|
|
214
214
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
215
215
|
renderCell: x,
|
|
216
216
|
className: O.formsTableBody,
|
|
@@ -221,12 +221,12 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
221
221
|
a
|
|
222
222
|
);
|
|
223
223
|
}) }) }),
|
|
224
|
-
|
|
224
|
+
p && o && /* @__PURE__ */ n(
|
|
225
225
|
Ue,
|
|
226
226
|
{
|
|
227
227
|
id: "modalIdForActionAreaLayout",
|
|
228
228
|
portalId: "main-display-area",
|
|
229
|
-
open:
|
|
229
|
+
open: p,
|
|
230
230
|
onRequestClose: $,
|
|
231
231
|
modalHeading: /* @__PURE__ */ P("div", { className: O.modalHeading, children: [
|
|
232
232
|
/* @__PURE__ */ n("span", { children: o.formName }),
|
|
@@ -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 { $ as d, a0 as f, a1 as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B_fCLwCP.js";
|
|
2
|
+
import { $ as d, a0 as f, a1 as e } from "./index-BBLFn5Hb.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 { $ as v, a0 as C, a1 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-B_fCLwCP.js";
|
|
2
|
+
import { $ as v, a0 as C, a1 as e } from "./index-BBLFn5Hb.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 I, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { v as G, z as H, u as V, j as Q, b as M, k as j, l as Y, m as J, E as P, H as W, n as X, o as Z, r as ee, Y as ae, x as se, B, C as re, D as te, w as ie, G as oe, I as ne, J as de, N as le } from "./index-
|
|
2
|
+
import { v as G, z as H, u as V, j as Q, b as M, k as j, l as Y, m as J, E as P, H as W, n as X, o as Z, r as ee, Y as ae, x as se, B, C as re, D as te, w as ie, G as oe, I as ne, J as de, N as le } from "./index-BBLFn5Hb.js";
|
|
3
3
|
import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as me, useEffect as L, useMemo as g } from "react";
|
|
5
5
|
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", ve = "Observations-module_wrapper__muk2L", he = "Observations-module_secondary__14nuS", O = {
|
|
@@ -197,7 +197,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
197
197
|
{ key: "name", header: "name" },
|
|
198
198
|
{ key: "value", header: "value" },
|
|
199
199
|
{ key: "form", header: "form" }
|
|
200
|
-
], A = F || !h, D = N && h,
|
|
200
|
+
], A = F || !h, D = N && h, k = (!_ || _.entry?.length === 0 || v.length === 0) && h, K = D ? c("ERROR_FETCHING_OBSERVATIONS") : null, z = k ? c("NO_OBSERVATIONS_FOUND") : void 0, q = $.length > 0 && !A && !D, f = d.titleTranslationKey, E = f ? c(f) : "";
|
|
201
201
|
return /* @__PURE__ */ I(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
@@ -216,7 +216,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
216
216
|
children: /* @__PURE__ */ n("p", { children: E })
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
|
-
|
|
219
|
+
q ? /* @__PURE__ */ n(
|
|
220
220
|
Oe,
|
|
221
221
|
{
|
|
222
222
|
groupedData: $,
|
|
@@ -230,8 +230,8 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
230
230
|
rows: [],
|
|
231
231
|
ariaLabel: c("OBSERVATIONS"),
|
|
232
232
|
loading: A,
|
|
233
|
-
errorStateMessage:
|
|
234
|
-
emptyStateMessage:
|
|
233
|
+
errorStateMessage: K,
|
|
234
|
+
emptyStateMessage: z ?? c("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
235
|
dataTestId: "observations-table"
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-
|
|
1
|
+
import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-BBLFn5Hb.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 c, jsx as e, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { u as m, W as p, K as y, L as N, M as H, e as E, O as P, Q as v, R as G, T as f, U as L, X as O, Z as T } from "./index-
|
|
2
|
+
import { u as m, W as p, K as y, L as N, M as H, e as E, O as P, Q as v, R as G, T as f, U as L, X as O, Z as T } from "./index-BBLFn5Hb.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { useQuery as S } from "@tanstack/react-query";
|
|
5
5
|
const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
|