@bahmni/widgets 0.0.1-dev.231 → 0.0.1-dev.234
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-fNfh26mG.js → DocumentsTable-Dvzl2asn.js} +1 -1
- package/dist/{FormsTable-DSJDZBmB.js → FormsTable-C4lSdS8d.js} +1 -1
- package/dist/{Observations-CtFJuwl9.js → Observations-BTWVV1zU.js} +12 -12
- package/dist/{index-BviQsdT9.js → index-DQ9o3tL5.js} +23 -23
- package/dist/index.css +1 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as _, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, a as X, e as J,
|
|
2
|
+
import { u as W, a as X, e as J, o as Z, T as x, b as ee, y as te } from "./index-DQ9o3tL5.js";
|
|
3
3
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as p, useEffect as N, useMemo as f } from "react";
|
|
5
5
|
import { useTranslation as ae } from "react-i18next";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as X, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { K as ee, u as re, P as te, q as oe, x as ae, U as se, N as ne, Q as de, O as S, T as ie,
|
|
2
|
+
import { K as ee, u as re, P as te, q as oe, x as ae, U as se, N as ne, Q as de, O as S, T as ie, o as me, b as C, c as ce, d as le, y as ue, f as fe } from "./index-DQ9o3tL5.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as x, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
import { useTranslation as pe } from "react-i18next";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as d, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as k, E as D, t as w, C as M, l as q, V as K, L as H, H as G, u as P, a as j, h as z, i as Y, Q as J, j as W, k as X, s as Z, m as x, b as ee } from "./index-DQ9o3tL5.js";
|
|
3
3
|
import { useQueries as te, useQuery as se } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as oe, useEffect as C, useMemo as g } from "react";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
6
6
|
const B = (t, i, c, l, u, r) => {
|
|
7
|
-
const s =
|
|
7
|
+
const s = w(t, i, u), o = s.value, a = M(o);
|
|
8
8
|
let n = o;
|
|
9
9
|
a === "Image" && (n = /* @__PURE__ */ d(
|
|
10
10
|
K,
|
|
@@ -15,13 +15,13 @@ const B = (t, i, c, l, u, r) => {
|
|
|
15
15
|
hideThumbnail: r
|
|
16
16
|
}
|
|
17
17
|
)), a === "Video" && (n = /* @__PURE__ */ d(
|
|
18
|
-
|
|
18
|
+
H,
|
|
19
19
|
{
|
|
20
20
|
id: `${o}-video`,
|
|
21
21
|
videoSrc: o,
|
|
22
22
|
hideThumbnail: r
|
|
23
23
|
}
|
|
24
|
-
)), a === "PDF" && (n = /* @__PURE__ */ d(
|
|
24
|
+
)), a === "PDF" && (n = /* @__PURE__ */ d(G, { id: `${o}-pdf`, src: o }));
|
|
25
25
|
const b = u("OBSERVATIONS_RECORDED_BY", {
|
|
26
26
|
provider: s.provider
|
|
27
27
|
}), p = t.display, m = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", y = l ? `${l}-${m}-${p}-${c}-${i}` : `${m}-${p}-${c}-${i}`;
|
|
@@ -61,7 +61,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
61
61
|
hideThumbnail: c
|
|
62
62
|
}) => {
|
|
63
63
|
const { t: l } = U(), u = (r, s, o) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = k(r.encounterDetails, l);
|
|
65
65
|
return /* @__PURE__ */ S(
|
|
66
66
|
D,
|
|
67
67
|
{
|
|
@@ -114,7 +114,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
114
114
|
conceptNames: c = [],
|
|
115
115
|
conceptUuid: l = [],
|
|
116
116
|
hideThumbnail: u = !1
|
|
117
|
-
} = i, r = oe(/* @__PURE__ */ new Set()), s =
|
|
117
|
+
} = i, r = oe(/* @__PURE__ */ new Set()), s = P(), { addNotification: o } = j(), { t: a } = U(), n = te({
|
|
118
118
|
queries: c.map((e) => ({
|
|
119
119
|
queryKey: ce(e),
|
|
120
120
|
queryFn: () => z(e),
|
|
@@ -161,11 +161,11 @@ const B = (t, i, c, l, u, r) => {
|
|
|
161
161
|
if (!m) return [];
|
|
162
162
|
const e = W(m), v = X(e);
|
|
163
163
|
return Z(v);
|
|
164
|
-
}, [m]),
|
|
164
|
+
}, [m]), L = [
|
|
165
165
|
{ key: "name", header: "name" },
|
|
166
166
|
{ key: "value", header: "value" },
|
|
167
167
|
{ key: "form", header: "form" }
|
|
168
|
-
], _ = y || !f, $ = O && f,
|
|
168
|
+
], _ = y || !f, $ = O && f, A = (!m || m.entry?.length === 0 || p.length === 0) && f, F = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, V = A ? a("NO_OBSERVATIONS_FOUND") : void 0, Q = I.length > 0 && !_ && !$, h = i.titleTranslationKey, E = h ? a(h) : "";
|
|
169
169
|
return /* @__PURE__ */ S(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
@@ -184,7 +184,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
184
184
|
children: /* @__PURE__ */ d("p", { children: E })
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
|
|
187
|
+
Q ? /* @__PURE__ */ d(
|
|
188
188
|
ae,
|
|
189
189
|
{
|
|
190
190
|
groupedData: I,
|
|
@@ -194,12 +194,12 @@ const B = (t, i, c, l, u, r) => {
|
|
|
194
194
|
) : /* @__PURE__ */ d(
|
|
195
195
|
ee,
|
|
196
196
|
{
|
|
197
|
-
headers:
|
|
197
|
+
headers: L,
|
|
198
198
|
rows: [],
|
|
199
199
|
ariaLabel: a("OBSERVATIONS"),
|
|
200
200
|
loading: _,
|
|
201
|
-
errorStateMessage:
|
|
202
|
-
emptyStateMessage:
|
|
201
|
+
errorStateMessage: F,
|
|
202
|
+
emptyStateMessage: V,
|
|
203
203
|
dataTestId: "observations-table"
|
|
204
204
|
}
|
|
205
205
|
)
|
|
@@ -62587,7 +62587,7 @@ const Nqe = "_bahmniIcon_1cg5e_1", zqe = "_paddingNone_1cg5e_1", Aqe = "_padding
|
|
|
62587
62587
|
...n
|
|
62588
62588
|
}) => /* @__PURE__ */ K(B2, { ...n, "data-testid": t ?? e, children: r });
|
|
62589
62589
|
Jr(null);
|
|
62590
|
-
const rUe = "
|
|
62590
|
+
const rUe = "_breadcrumb_7z10y_70", nUe = "_sideNavItems_7z10y_82", Iae = {
|
|
62591
62591
|
breadcrumb: rUe,
|
|
62592
62592
|
sideNavItems: nUe
|
|
62593
62593
|
}, oUe = (t, e = !0) => {
|
|
@@ -62912,7 +62912,7 @@ const O2 = "/openmrs/auth?requested_document=/document_images/", uUe = "_thumbna
|
|
|
62912
62912
|
}
|
|
62913
62913
|
)
|
|
62914
62914
|
] });
|
|
62915
|
-
}, HUe = "
|
|
62915
|
+
}, HUe = "_thumbnailButton_1y563_1", bUe = "_hideThumbnail_1y563_29", MUe = "_videoIcon_1y563_35", xUe = "_thumbnailVideo_1y563_39", NUe = "_playIconOverlay_1y563_46", zUe = "_modalVideoContainer_1y563_68", AUe = "_modalVideo_1y563_68", Vn = {
|
|
62916
62916
|
thumbnailButton: HUe,
|
|
62917
62917
|
hideThumbnail: bUe,
|
|
62918
62918
|
videoIcon: MUe,
|
|
@@ -80572,7 +80572,7 @@ const D0t = [
|
|
|
80572
80572
|
},
|
|
80573
80573
|
{
|
|
80574
80574
|
type: "patientDocuments",
|
|
80575
|
-
component: Lr(() => import("./DocumentsTable-
|
|
80575
|
+
component: Lr(() => import("./DocumentsTable-Dvzl2asn.js"))
|
|
80576
80576
|
},
|
|
80577
80577
|
{
|
|
80578
80578
|
type: "flowSheet",
|
|
@@ -80580,7 +80580,7 @@ const D0t = [
|
|
|
80580
80580
|
},
|
|
80581
80581
|
{
|
|
80582
80582
|
type: "forms",
|
|
80583
|
-
component: Lr(() => import("./FormsTable-
|
|
80583
|
+
component: Lr(() => import("./FormsTable-C4lSdS8d.js"))
|
|
80584
80584
|
},
|
|
80585
80585
|
{
|
|
80586
80586
|
type: "labOrders",
|
|
@@ -80588,7 +80588,7 @@ const D0t = [
|
|
|
80588
80588
|
},
|
|
80589
80589
|
{
|
|
80590
80590
|
type: "observations",
|
|
80591
|
-
component: Lr(() => import("./Observations-
|
|
80591
|
+
component: Lr(() => import("./Observations-BTWVV1zU.js"))
|
|
80592
80592
|
},
|
|
80593
80593
|
{
|
|
80594
80594
|
type: "ordersControl",
|
|
@@ -80666,18 +80666,18 @@ const z2t = (t) => {
|
|
|
80666
80666
|
export {
|
|
80667
80667
|
A0t as $,
|
|
80668
80668
|
Let as A,
|
|
80669
|
-
|
|
80669
|
+
Knt as B,
|
|
80670
80670
|
iYe as C,
|
|
80671
80671
|
qtt as D,
|
|
80672
|
-
|
|
80673
|
-
|
|
80672
|
+
P0t as E,
|
|
80673
|
+
H2t as F,
|
|
80674
80674
|
knt as G,
|
|
80675
|
-
|
|
80675
|
+
VUe as H,
|
|
80676
80676
|
f0t as I,
|
|
80677
80677
|
yet as J,
|
|
80678
80678
|
s2t as K,
|
|
80679
|
-
|
|
80680
|
-
|
|
80679
|
+
_Ue as L,
|
|
80680
|
+
Ort as M,
|
|
80681
80681
|
c2t as N,
|
|
80682
80682
|
Vr as O,
|
|
80683
80683
|
gs as P,
|
|
@@ -80686,7 +80686,7 @@ export {
|
|
|
80686
80686
|
V2t as S,
|
|
80687
80687
|
Vt as T,
|
|
80688
80688
|
u2t as U,
|
|
80689
|
-
|
|
80689
|
+
gUe as V,
|
|
80690
80690
|
m2t as W,
|
|
80691
80691
|
Khe as X,
|
|
80692
80692
|
Gnt as Y,
|
|
@@ -80711,23 +80711,23 @@ export {
|
|
|
80711
80711
|
p2t as e,
|
|
80712
80712
|
khe as f,
|
|
80713
80713
|
w2t as g,
|
|
80714
|
-
|
|
80715
|
-
|
|
80716
|
-
|
|
80717
|
-
|
|
80714
|
+
i2t as h,
|
|
80715
|
+
l2t as i,
|
|
80716
|
+
v2t as j,
|
|
80717
|
+
E2t as k,
|
|
80718
80718
|
Bqe as l,
|
|
80719
|
-
|
|
80720
|
-
|
|
80721
|
-
|
|
80719
|
+
Ji as m,
|
|
80720
|
+
f2t as n,
|
|
80721
|
+
xa as o,
|
|
80722
80722
|
ltt as p,
|
|
80723
80723
|
h2t as q,
|
|
80724
|
-
|
|
80724
|
+
Itt as r,
|
|
80725
80725
|
y2t as s,
|
|
80726
80726
|
g2t as t,
|
|
80727
80727
|
t1 as u,
|
|
80728
|
-
|
|
80729
|
-
|
|
80728
|
+
d1t as v,
|
|
80729
|
+
ont as w,
|
|
80730
80730
|
d2t as x,
|
|
80731
80731
|
s1 as y,
|
|
80732
|
-
|
|
80732
|
+
Cnt as z
|
|
80733
80733
|
};
|