@bahmni/registration-app 0.0.1-dev.220 → 0.0.1-dev.221
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-CJ7fZ08M-QZoDYnKN.js → DocumentsTable-BZHe_sb0-C2zG0GwF.js} +1 -1
- package/dist/{FormsTable-B5bhuwKx-CGA5g3fZ.js → FormsTable-BztxQbBL-CLxpjuZi.js} +23 -23
- package/dist/{LNWAZHJI-DZ4QAymQ.js → LNWAZHJI-DXQQ0dPM.js} +2 -2
- package/dist/{MWZ6AO7Z-C3VQUAwS.js → MWZ6AO7Z-rDk_b_dN.js} +2 -2
- package/dist/{Observations-DkQGjP2q-DAOdvdu1.js → Observations-Cnt-RGWx-11A1fxdA.js} +1 -1
- package/dist/{YPM2AS64-BNCdxJZ3.js → YPM2AS64-DHZ5z7U1.js} +1 -1
- package/dist/{index-C4fDqy05.js → index-Mm75tbmR.js} +3 -3
- 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 { t as K, u as Q, r as W, a as J, M as X, N as Z, o as ee, s as te } from "./index-
|
|
2
|
+
import { t as K, u as Q, r as W, a as J, M as X, N as Z, o as ee, s as te } from "./index-Mm75tbmR.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as m, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
5
5
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s, jsxs as Y, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, t as ee, m as re, b as ae, X as te, e as oe, Q as se, k as ne, V as U, N as de, M as ie, o as
|
|
2
|
+
import { u as W, t as ee, m as re, b as ae, X as te, e as oe, Q as se, k as ne, V as U, N as de, M as ie, o as S, G as me, J as ue, s as le, Z as ce, c as fe } from "./index-Mm75tbmR.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
5
|
-
const be = "_formsTableBody_81hra_1",
|
|
4
|
+
import { useState as q, useMemo as d, useCallback as f } from "react";
|
|
5
|
+
const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
6
6
|
formsTableBody: be,
|
|
7
|
-
customAccordianItem:
|
|
8
|
-
},
|
|
7
|
+
customAccordianItem: Ne
|
|
8
|
+
}, pe = (m) => m ? m.extension?.find(
|
|
9
9
|
(n) => n.url === fe
|
|
10
10
|
)?.valueString : void 0, Ae = ({
|
|
11
11
|
episodeOfCareUuids: m,
|
|
12
12
|
encounterUuids: n,
|
|
13
|
-
config:
|
|
13
|
+
config: C
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } = W(), u = ee(), [l, O] =
|
|
15
|
+
const { t: o } = W(), u = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: k, hideThumbnail: V = !1 } = C ?? {}, M = re(
|
|
16
16
|
m,
|
|
17
17
|
n
|
|
18
18
|
), G = ye(), {
|
|
@@ -27,25 +27,25 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", I = {
|
|
|
27
27
|
enabled: !!u && !M
|
|
28
28
|
}), E = d(() => !n || n.length === 0 ? y : y.filter(
|
|
29
29
|
(e) => n.includes(e.encounterUuid)
|
|
30
|
-
), [y, n]), { data:
|
|
30
|
+
), [y, n]), { data: F = [] } = c({
|
|
31
31
|
queryKey: ["observationForms"],
|
|
32
32
|
queryFn: () => te()
|
|
33
|
-
}),
|
|
34
|
-
(e) =>
|
|
35
|
-
[
|
|
33
|
+
}), _ = f(
|
|
34
|
+
(e) => F.find((r) => r.name === e)?.uuid,
|
|
35
|
+
[F]
|
|
36
36
|
), b = d(() => {
|
|
37
37
|
if (t)
|
|
38
|
-
return
|
|
39
|
-
}, [t,
|
|
38
|
+
return _(t.formName);
|
|
39
|
+
}, [t, _]), {
|
|
40
40
|
isLoading: Q,
|
|
41
41
|
isError: j,
|
|
42
|
-
error:
|
|
42
|
+
error: N
|
|
43
43
|
} = c({
|
|
44
44
|
queryKey: ["formMetadata", b],
|
|
45
45
|
queryFn: () => oe(b),
|
|
46
46
|
enabled: !!b && l
|
|
47
47
|
}), {
|
|
48
|
-
data:
|
|
48
|
+
data: p,
|
|
49
49
|
isLoading: x,
|
|
50
50
|
isError: $,
|
|
51
51
|
error: g
|
|
@@ -60,15 +60,15 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", I = {
|
|
|
60
60
|
},
|
|
61
61
|
[u]
|
|
62
62
|
);
|
|
63
|
-
const w = d(() => !
|
|
64
|
-
const r =
|
|
63
|
+
const w = d(() => !p?.entry || !t?.formName ? [] : p.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
64
|
+
const r = pe(e);
|
|
65
65
|
return !r || r.includes(t.formName);
|
|
66
|
-
}), [
|
|
67
|
-
if (
|
|
68
|
-
return U(
|
|
66
|
+
}), [p, t?.formName]), z = d(() => {
|
|
67
|
+
if (N)
|
|
68
|
+
return U(N).message;
|
|
69
69
|
if (g)
|
|
70
70
|
return U(g).message;
|
|
71
|
-
}, [
|
|
71
|
+
}, [N, g]), L = d(
|
|
72
72
|
() => [
|
|
73
73
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
74
74
|
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
@@ -124,7 +124,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", I = {
|
|
|
124
124
|
);
|
|
125
125
|
return /* @__PURE__ */ Y(Z, { children: [
|
|
126
126
|
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || B || D.length === 0 || M ? /* @__PURE__ */ s(
|
|
127
|
-
|
|
127
|
+
S,
|
|
128
128
|
{
|
|
129
129
|
headers: L,
|
|
130
130
|
ariaLabel: o("FORMS_HEADING"),
|
|
@@ -146,7 +146,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", I = {
|
|
|
146
146
|
testId: `accordian-title-${a}`,
|
|
147
147
|
open: r === 0,
|
|
148
148
|
children: /* @__PURE__ */ s(
|
|
149
|
-
|
|
149
|
+
S,
|
|
150
150
|
{
|
|
151
151
|
headers: L,
|
|
152
152
|
ariaLabel: o("FORMS_HEADING"),
|
|
@@ -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-DHZ5z7U1.js";
|
|
2
|
+
import { w as d, x as f, y as e } from "./index-Mm75tbmR.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-DHZ5z7U1.js";
|
|
2
|
+
import { w as v, x as C, y as e } from "./index-Mm75tbmR.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 { t as B, r as K, u as S, Y as G, d as M, k as Q, f as j, l as w, g as x, h as H, o as Y, i as P, O as U, j as z, n as J, I as W, p as X, q as Z, v as ee } from "./index-
|
|
2
|
+
import { t as B, r as K, u as S, Y as G, d as M, k as Q, f as j, l as w, g as x, h as H, o as Y, i as P, O as U, j as z, n as J, I as W, p as X, q as Z, v as ee } from "./index-Mm75tbmR.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as f } from "react";
|
|
5
5
|
const D = (a, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as we, A as z, B as xt, C as B, x as q, y, P as Ro, D as ye, S as R, E as _, F as k, H as N, K as A, L as bs, R as ir, T as $e, U, W as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-
|
|
1
|
+
import { z as we, A as z, B as xt, C as B, x as q, y, P as Ro, D as ye, S as R, E as _, F as k, H as N, K as A, L as bs, R as ir, T as $e, U, W as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-Mm75tbmR.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -159721,7 +159721,7 @@ function Z$0(t, e, r) {
|
|
|
159721
159721
|
return o;
|
|
159722
159722
|
};
|
|
159723
159723
|
}
|
|
159724
|
-
ht(() => Promise.resolve().then(() => rL0)), ht(() => Promise.resolve().then(() => LL0)), ht(() => Promise.resolve().then(() => aA0)), ht(() => Promise.resolve().then(() => hA0)), ht(() => import("./DocumentsTable-
|
|
159724
|
+
ht(() => Promise.resolve().then(() => rL0)), ht(() => Promise.resolve().then(() => LL0)), ht(() => Promise.resolve().then(() => aA0)), ht(() => Promise.resolve().then(() => hA0)), ht(() => import("./DocumentsTable-BZHe_sb0-C2zG0GwF.js")), ht(() => Promise.resolve().then(() => XT0)), ht(() => import("./FormsTable-BztxQbBL-CLxpjuZi.js")), ht(() => Promise.resolve().then(() => bT0)), ht(() => import("./Observations-Cnt-RGWx-11A1fxdA.js")), ht(
|
|
159725
159725
|
() => Promise.resolve().then(() => l$0)
|
|
159726
159726
|
), ht(
|
|
159727
159727
|
() => Promise.resolve().then(() => W_0)
|
|
@@ -161560,7 +161560,7 @@ var bj0 = (t, e = !1) => {
|
|
|
161560
161560
|
const e = sS1(() => {
|
|
161561
161561
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
161562
161562
|
let d;
|
|
161563
|
-
return this.#i ? d = this.#i : (d = iS1(() => import("./LNWAZHJI-
|
|
161563
|
+
return this.#i ? d = this.#i : (d = iS1(() => import("./LNWAZHJI-DXQQ0dPM.js")), this.#i = d), CS1(this.#h, this.#r), aS1(d, cS1({
|
|
161564
161564
|
get queryFlavor() {
|
|
161565
161565
|
return r.#d;
|
|
161566
161566
|
},
|
|
@@ -161658,7 +161658,7 @@ var bj0 = (t, e = !1) => {
|
|
|
161658
161658
|
const e = sS1(() => {
|
|
161659
161659
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
161660
161660
|
let u;
|
|
161661
|
-
return this.#l ? u = this.#l : (u = iS1(() => import("./MWZ6AO7Z-
|
|
161661
|
+
return this.#l ? u = this.#l : (u = iS1(() => import("./MWZ6AO7Z-rDk_b_dN.js")), this.#l = u), CS1(this.#h, this.#r), aS1(u, cS1({
|
|
161662
161662
|
get queryFlavor() {
|
|
161663
161663
|
return r.#d;
|
|
161664
161664
|
},
|
package/dist/index.js
CHANGED