@bahmni/home-app 0.0.1-dev.328 → 0.0.1-dev.329
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-Cd0rZQF3-DvOHRnjz.js → DocumentsTable-y7KKSEft-DSCjq6oy.js} +4 -4
- package/dist/{FormsTable-CgyxKp9V-C1E2JTXb.js → FormsTable-DWjxOeF0-D5sgXK6B.js} +29 -29
- package/dist/{LNWAZHJI-CHT20lhT.js → LNWAZHJI-CnCpCGL9.js} +2 -2
- package/dist/{MWZ6AO7Z-m32UP_mX.js → MWZ6AO7Z-BW6wzhs0.js} +2 -2
- package/dist/{Observations-3VgJK5Ks-CiB98pd5.js → Observations-BVrVtdFC-hrSk2z_z.js} +1 -1
- package/dist/{YPM2AS64-B0EpwPi0.js → YPM2AS64-BztvKm-a.js} +1 -1
- package/dist/{index-ex4D3bsa.js → index-D5F0cyoZ.js} +1 -1
- package/dist/{index-CsOy0esA.js → index-Y_J0Po7u.js} +11 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as
|
|
2
|
-
import { n as
|
|
1
|
+
import { jsx as r, jsxs as p, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { n as Q, u as W, o as Y, w as J, f as X, g as Z, O as ee, p as te } from "./index-Y_J0Po7u.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as N, 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 = {
|
|
@@ -38,7 +38,7 @@ const Te = [
|
|
|
38
38
|
null
|
|
39
39
|
), [$, D] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
41
|
+
), E = Q(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [I, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = h((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), H = h(() => {
|
|
44
44
|
w(!1), U(null), D(/* @__PURE__ */ new Set());
|
|
@@ -137,7 +137,7 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ p(
|
|
140
|
+
return /* @__PURE__ */ p(G, { children: [
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-
|
|
2
|
+
import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-Y_J0Po7u.js";
|
|
3
3
|
import { useQueryClient as he, useQuery as b } from "@tanstack/react-query";
|
|
4
4
|
import { useState as j, useMemo as d, useCallback as p } from "react";
|
|
5
|
-
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs",
|
|
5
|
+
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", E = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Oe
|
|
8
8
|
}, Ae = (u) => u ? u.extension?.find(
|
|
9
9
|
(l) => l.url === ge
|
|
10
|
-
)?.valueString : void 0,
|
|
10
|
+
)?.valueString : void 0, Fe = ({
|
|
11
11
|
episodeOfCareUuids: u,
|
|
12
12
|
encounterUuids: l,
|
|
13
13
|
config: k
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: n } = te(), c = oe(), [f,
|
|
15
|
+
const { t: n } = te(), c = oe(), [f, T] = j(!1), [o, v] = j(null), {
|
|
16
16
|
numberOfVisits: w,
|
|
17
17
|
hideThumbnail: H = !1,
|
|
18
18
|
forms: y
|
|
19
|
-
} = k ?? {},
|
|
19
|
+
} = k ?? {}, I = se(
|
|
20
20
|
u,
|
|
21
21
|
l
|
|
22
22
|
), K = he(), {
|
|
23
|
-
data:
|
|
24
|
-
isLoading:
|
|
25
|
-
isError:
|
|
23
|
+
data: F = [],
|
|
24
|
+
isLoading: L,
|
|
25
|
+
isError: B,
|
|
26
26
|
error: V,
|
|
27
27
|
refetch: $
|
|
28
28
|
} = b({
|
|
29
29
|
queryKey: ["forms", c, u],
|
|
30
30
|
queryFn: () => ne(c, void 0, w),
|
|
31
|
-
enabled: !!c && !
|
|
32
|
-
}),
|
|
33
|
-
let e =
|
|
31
|
+
enabled: !!c && !I
|
|
32
|
+
}), D = d(() => {
|
|
33
|
+
let e = F;
|
|
34
34
|
return l && l.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => l.includes(r.encounterUuid)
|
|
36
36
|
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
37
37
|
(r) => y.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
38
38
|
)), e;
|
|
39
|
-
}, [
|
|
39
|
+
}, [F, l, y]), { data: M = [] } = b({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => de()
|
|
42
42
|
}), S = p(
|
|
@@ -57,7 +57,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
57
57
|
}), {
|
|
58
58
|
data: N,
|
|
59
59
|
isLoading: Q,
|
|
60
|
-
isError:
|
|
60
|
+
isError: P,
|
|
61
61
|
error: O
|
|
62
62
|
} = b({
|
|
63
63
|
queryKey: ["formsEncounterFHIR", o?.encounterUuid],
|
|
@@ -70,10 +70,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
70
70
|
},
|
|
71
71
|
[c]
|
|
72
72
|
);
|
|
73
|
-
const
|
|
73
|
+
const Y = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
74
74
|
const r = Ae(e);
|
|
75
75
|
return !r || r.includes(o.formName);
|
|
76
|
-
}), [N, o?.formName]),
|
|
76
|
+
}), [N, o?.formName]), J = d(() => {
|
|
77
77
|
if (!m?.schema) return;
|
|
78
78
|
const e = [], r = (a) => {
|
|
79
79
|
(a ?? []).forEach((s) => {
|
|
@@ -116,7 +116,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
116
116
|
],
|
|
117
117
|
[]
|
|
118
118
|
), C = d(() => {
|
|
119
|
-
const e =
|
|
119
|
+
const e = D.reduce(
|
|
120
120
|
(r, a) => {
|
|
121
121
|
const s = a.formName;
|
|
122
122
|
r[s] ??= [];
|
|
@@ -140,10 +140,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
140
140
|
)
|
|
141
141
|
})
|
|
142
142
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
143
|
-
}, [
|
|
144
|
-
|
|
143
|
+
}, [D, n]), R = p((e) => {
|
|
144
|
+
v(e), T(!0);
|
|
145
145
|
}, []), ee = p(() => {
|
|
146
|
-
|
|
146
|
+
T(!1), v(null);
|
|
147
147
|
}, []), U = p(
|
|
148
148
|
(e, r) => {
|
|
149
149
|
switch (r) {
|
|
@@ -158,17 +158,17 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
158
158
|
[R]
|
|
159
159
|
);
|
|
160
160
|
return /* @__PURE__ */ re(ae, { children: [
|
|
161
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
161
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || C.length === 0 || I ? /* @__PURE__ */ i(
|
|
162
162
|
x,
|
|
163
163
|
{
|
|
164
164
|
headers: _,
|
|
165
165
|
ariaLabel: n("FORMS_HEADING"),
|
|
166
166
|
rows: [],
|
|
167
|
-
loading:
|
|
168
|
-
errorStateMessage:
|
|
167
|
+
loading: L,
|
|
168
|
+
errorStateMessage: B ? V?.message : void 0,
|
|
169
169
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
170
170
|
renderCell: U,
|
|
171
|
-
className:
|
|
171
|
+
className: E.formsTableBody,
|
|
172
172
|
dataTestId: "forms-table"
|
|
173
173
|
}
|
|
174
174
|
) : /* @__PURE__ */ i(fe, { align: "start", children: C.map((e, r) => {
|
|
@@ -177,7 +177,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
177
177
|
ye,
|
|
178
178
|
{
|
|
179
179
|
title: a,
|
|
180
|
-
className:
|
|
180
|
+
className: E.customAccordianItem,
|
|
181
181
|
testId: `accordian-title-${a}`,
|
|
182
182
|
open: r === 0,
|
|
183
183
|
children: /* @__PURE__ */ i(
|
|
@@ -191,7 +191,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
191
191
|
sortable: Z,
|
|
192
192
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
193
193
|
renderCell: U,
|
|
194
|
-
className:
|
|
194
|
+
className: E.formsTableBody,
|
|
195
195
|
dataTestId: `forms-table-${a}`
|
|
196
196
|
}
|
|
197
197
|
)
|
|
@@ -214,14 +214,14 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
214
214
|
children: /* @__PURE__ */ i(
|
|
215
215
|
pe,
|
|
216
216
|
{
|
|
217
|
-
observations:
|
|
217
|
+
observations: Y,
|
|
218
218
|
isLoading: z || Q,
|
|
219
|
-
isError: G ||
|
|
219
|
+
isError: G || P,
|
|
220
220
|
errorMessage: X,
|
|
221
221
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
222
222
|
testIdPrefix: o.formName,
|
|
223
223
|
hideThumbnail: H,
|
|
224
|
-
controlOrder:
|
|
224
|
+
controlOrder: J,
|
|
225
225
|
sectionMap: W
|
|
226
226
|
}
|
|
227
227
|
)
|
|
@@ -230,5 +230,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
230
230
|
] });
|
|
231
231
|
};
|
|
232
232
|
export {
|
|
233
|
-
|
|
233
|
+
Fe as default
|
|
234
234
|
};
|
|
@@ -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-BztvKm-a.js";
|
|
2
|
+
import { U as d, W as f, X as e } from "./index-Y_J0Po7u.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 {
|
|
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-BztvKm-a.js";
|
|
2
|
+
import { U as v, W as C, X as e } from "./index-Y_J0Po7u.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 S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-
|
|
2
|
+
import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-Y_J0Po7u.js";
|
|
3
3
|
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const C = (t, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as we, $ as z, a0 as xt, a1 as B, W as q, X 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-Y_J0Po7u.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 { u as ot, s as Qi, A as Ji, t as ec, y as tc, z as rc, B as nc, F as oc, G as hi, I as ac, T as lc, o as ic, J as cc,
|
|
2
|
+
import { u as ot, s as Qi, A as Ji, t as ec, y as tc, z as rc, B as nc, F as oc, G as hi, I as ac, T as lc, o as ic, J as cc, Z as sc, L as fc, K as pc, Q as hc, S as uc } from "./index-Y_J0Po7u.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";
|
|
@@ -95187,7 +95187,7 @@ const snt = () => {
|
|
|
95187
95187
|
);
|
|
95188
95188
|
return t;
|
|
95189
95189
|
};
|
|
95190
|
-
C0(() => Promise.resolve().then(() => xI2)), C0(() => Promise.resolve().then(() => QI2)), C0(() => Promise.resolve().then(() => TB2)), C0(() => Promise.resolve().then(() => ZB2)), C0(() => import("./DocumentsTable-
|
|
95190
|
+
C0(() => Promise.resolve().then(() => xI2)), C0(() => Promise.resolve().then(() => QI2)), C0(() => Promise.resolve().then(() => TB2)), C0(() => Promise.resolve().then(() => ZB2)), C0(() => import("./DocumentsTable-y7KKSEft-DSCjq6oy.js")), C0(() => Promise.resolve().then(() => kj2)), C0(() => import("./FormsTable-DWjxOeF0-D5sgXK6B.js")), C0(() => Promise.resolve().then(() => Ej2)), C0(() => import("./Observations-BVrVtdFC-hrSk2z_z.js")), C0(
|
|
95191
95191
|
() => Promise.resolve().then(() => gq2)
|
|
95192
95192
|
), C0(
|
|
95193
95193
|
() => Promise.resolve().then(() => BF2)
|
|
@@ -177034,7 +177034,7 @@ var g3t = (t, e = !1) => {
|
|
|
177034
177034
|
const e = dK1(() => {
|
|
177035
177035
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
|
|
177036
177036
|
let d;
|
|
177037
|
-
return this.#l ? d = this.#l : (d = iK1(() => import("./LNWAZHJI-
|
|
177037
|
+
return this.#l ? d = this.#l : (d = iK1(() => import("./LNWAZHJI-CnCpCGL9.js")), this.#l = d), LK1(this.#h, this.#r), cK1(d, lK1({
|
|
177038
177038
|
get queryFlavor() {
|
|
177039
177039
|
return r.#d;
|
|
177040
177040
|
},
|
|
@@ -177132,7 +177132,7 @@ var g3t = (t, e = !1) => {
|
|
|
177132
177132
|
const e = dK1(() => {
|
|
177133
177133
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
|
|
177134
177134
|
let u;
|
|
177135
|
-
return this.#i ? u = this.#i : (u = iK1(() => import("./MWZ6AO7Z-
|
|
177135
|
+
return this.#i ? u = this.#i : (u = iK1(() => import("./MWZ6AO7Z-BW6wzhs0.js")), this.#i = u), LK1(this.#h, this.#r), cK1(u, lK1({
|
|
177136
177136
|
get queryFlavor() {
|
|
177137
177137
|
return r.#d;
|
|
177138
177138
|
},
|
|
@@ -177262,7 +177262,7 @@ const hrt = {
|
|
|
177262
177262
|
}
|
|
177263
177263
|
}
|
|
177264
177264
|
}, prt = "home", V3t = "/bahmni/home/index.html#/login", z3t = "/bahmni/home/index.html#/changePassword", H3t = 6, frt = C0(
|
|
177265
|
-
() => import("./index-
|
|
177265
|
+
() => import("./index-D5F0cyoZ.js").then((t) => ({
|
|
177266
177266
|
default: t.HomePage
|
|
177267
177267
|
}))
|
|
177268
177268
|
), mrt = [
|
|
@@ -177309,16 +177309,16 @@ export {
|
|
|
177309
177309
|
ei as N,
|
|
177310
177310
|
R0 as O,
|
|
177311
177311
|
_N2 as P,
|
|
177312
|
-
|
|
177312
|
+
k0t as Q,
|
|
177313
177313
|
zN2 as R,
|
|
177314
|
-
|
|
177314
|
+
dnt as S,
|
|
177315
177315
|
snt as T,
|
|
177316
|
-
|
|
177316
|
+
y3t as U,
|
|
177317
177317
|
rnt as V,
|
|
177318
|
-
|
|
177319
|
-
|
|
177320
|
-
|
|
177321
|
-
|
|
177318
|
+
g0 as W,
|
|
177319
|
+
cK1 as X,
|
|
177320
|
+
Xnt as Y,
|
|
177321
|
+
Bnt as Z,
|
|
177322
177322
|
EN2 as _,
|
|
177323
177323
|
Qrt as a,
|
|
177324
177324
|
j0t as a0,
|
package/dist/index.js
CHANGED