@bahmni/registration-app 0.0.1-dev.208 → 0.0.1-dev.212
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-D76ekIcO-Cvj957kc.js → DocumentsTable-wbD1XXxL-CAXlZrbA.js} +9 -9
- package/dist/{FormsTable-qUtc8I5l-BplISPid.js → FormsTable-BzT5p1Mv-DfCvVsKx.js} +1 -1
- package/dist/{LNWAZHJI-CJn8kTg4.js → LNWAZHJI-DZUS0FKC.js} +2 -2
- package/dist/{MWZ6AO7Z-6V0LrWMJ.js → MWZ6AO7Z-B8sU9xlo.js} +2 -2
- package/dist/{Observations-CdYZgPQ1-D-eaozih.js → Observations-W-vbg7mz-DGhDCSiR.js} +7 -7
- package/dist/{YPM2AS64-CV-PpqEY.js → YPM2AS64-BfjwaJUO.js} +1 -1
- package/dist/{index-CT5YDE2N.js → index-E6rmQ2zR.js} +12134 -12077
- 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 { c as K, u as Q, e as W, a as X, V as J, C as Z, x as ee, L as te } from "./index-
|
|
2
|
+
import { c as K, u as Q, e as W, a as X, V as J, C as Z, x as ee, L as te } from "./index-E6rmQ2zR.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 = {
|
|
@@ -21,10 +21,10 @@ const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11",
|
|
|
21
21
|
function j(a) {
|
|
22
22
|
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
23
23
|
}
|
|
24
|
-
function ue(a,
|
|
24
|
+
function ue(a, g) {
|
|
25
25
|
return a.map((s) => ({
|
|
26
26
|
key: s,
|
|
27
|
-
header:
|
|
27
|
+
header: g(le[s])
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
const _e = [
|
|
@@ -33,12 +33,12 @@ const _e = [
|
|
|
33
33
|
"uploadedOn",
|
|
34
34
|
"uploadedBy",
|
|
35
35
|
"action"
|
|
36
|
-
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids:
|
|
36
|
+
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: g }) => {
|
|
37
37
|
const [s, L] = m(!1), [o, w] = m(
|
|
38
38
|
null
|
|
39
39
|
), [R, C] = m(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
),
|
|
41
|
+
), E = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [I, A] = m(1), [l, V] = m($), [k, y] = m(void 0), M = h((e) => {
|
|
42
42
|
w(e), L(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
44
|
L(!1), w(null), C(/* @__PURE__ */ new Set());
|
|
@@ -47,15 +47,15 @@ const _e = [
|
|
|
47
47
|
}, []), { data: u, isLoading: H, isError: D, error: v } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
|
-
g,
|
|
51
50
|
E,
|
|
51
|
+
g,
|
|
52
52
|
I,
|
|
53
53
|
l
|
|
54
54
|
],
|
|
55
|
-
enabled: !!
|
|
55
|
+
enabled: !!E,
|
|
56
56
|
queryFn: () => X(
|
|
57
|
-
g,
|
|
58
57
|
E,
|
|
58
|
+
g,
|
|
59
59
|
l,
|
|
60
60
|
I
|
|
61
61
|
)
|
|
@@ -64,7 +64,7 @@ const _e = [
|
|
|
64
64
|
u && y(u.total);
|
|
65
65
|
}, [u]), f(() => {
|
|
66
66
|
A(1), y(void 0);
|
|
67
|
-
}, [
|
|
67
|
+
}, [E]), f(() => {
|
|
68
68
|
D && U({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
70
|
message: v?.message ?? "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { u as O, c as ae, b as te, l as oe, i as ne, s as se, d as de, w as me, C as ie, V as le, x as q, Z as ce, k as ue, L as be, D as pe, f as k, o as fe, G as K, M as A, t as _e, $ as $e, I as he, S as ge, n as ve } from "./index-
|
|
2
|
+
import { u as O, c as ae, b as te, l as oe, i as ne, s as se, d as de, w as me, C as ie, V as le, x as q, Z as ce, k as ue, L as be, D as pe, f as k, o as fe, G as K, M as A, t as _e, $ as $e, I as he, S as ge, n as ve } from "./index-E6rmQ2zR.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as L } from "@tanstack/react-query";
|
|
4
4
|
import { useState as H, useMemo as v, useCallback as C } from "react";
|
|
5
5
|
const Ne = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Ae = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", De = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", Ve = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", xe = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", n = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-BfjwaJUO.js";
|
|
2
|
+
import { v as d, z as f, A as e } from "./index-E6rmQ2zR.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-BfjwaJUO.js";
|
|
2
|
+
import { v, z as C, A as e } from "./index-E6rmQ2zR.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as V, e as k, u as S, r as
|
|
2
|
+
import { c as V, e as k, u as S, r as x, g as w, w as K, o as M, h as Q, m as j, y as G, x as H, j as P, R as N, p as z, t as Y, q as J, $ as W, I as X, S as Z } from "./index-E6rmQ2zR.js";
|
|
3
3
|
import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as ae, useEffect as _, useMemo as R } from "react";
|
|
5
5
|
const D = (t, d, n, u, r) => {
|
|
6
|
-
const a =
|
|
6
|
+
const a = z(t, d, r), s = a.value, o = Y(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ l(W, { imageSrc: s, alt: s, id: `${s}-img` })), o === "Video" && (i = /* @__PURE__ */ l(X, { id: `${s}-video`, videoSrc: s })), o === "PDF" && (i = /* @__PURE__ */ l(Z, { id: `${s}-pdf`, src: s }));
|
|
9
9
|
const b = r("OBSERVATIONS_RECORDED_BY", {
|
|
@@ -37,7 +37,7 @@ const D = (t, d, n, u, r) => {
|
|
|
37
37
|
title: d = ""
|
|
38
38
|
}) => {
|
|
39
39
|
const { t: n } = S(), u = (r, a, s) => {
|
|
40
|
-
const o =
|
|
40
|
+
const o = P(r.encounterDetails, n);
|
|
41
41
|
return /* @__PURE__ */ T(
|
|
42
42
|
N,
|
|
43
43
|
{
|
|
@@ -81,7 +81,7 @@ const D = (t, d, n, u, r) => {
|
|
|
81
81
|
const d = t, { conceptNames: n = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = V(), { addNotification: s } = k(), { t: o } = S(), i = ee({
|
|
82
82
|
queries: n.map((e) => ({
|
|
83
83
|
queryKey: ne(e),
|
|
84
|
-
queryFn: () =>
|
|
84
|
+
queryFn: () => x(e),
|
|
85
85
|
enabled: !!e
|
|
86
86
|
}))
|
|
87
87
|
});
|
|
@@ -104,7 +104,7 @@ const D = (t, d, n, u, r) => {
|
|
|
104
104
|
refetch: f
|
|
105
105
|
} = te({
|
|
106
106
|
queryKey: de(a, p),
|
|
107
|
-
queryFn: () =>
|
|
107
|
+
queryFn: () => w(a, p),
|
|
108
108
|
enabled: !!a && p.length > 0 && y
|
|
109
109
|
});
|
|
110
110
|
K(
|
|
@@ -123,8 +123,8 @@ const D = (t, d, n, u, r) => {
|
|
|
123
123
|
}, [E]);
|
|
124
124
|
const g = R(() => {
|
|
125
125
|
if (!c) return [];
|
|
126
|
-
const e =
|
|
127
|
-
return
|
|
126
|
+
const e = M(c), m = Q(e);
|
|
127
|
+
return j(m);
|
|
128
128
|
}, [c]), q = [
|
|
129
129
|
{ key: "name", header: "name" },
|
|
130
130
|
{ key: "value", header: "value" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as we, E as z, F as xt, H as B,
|
|
1
|
+
import { B as we, E as z, F as xt, H as B, z as q, A as y, P as Ro, J as ye, K as R, N as _, O as k, Q as N, T as A, U as bs, W as ir, X as $e, Y as U, _ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Os } from "./index-E6rmQ2zR.js";
|
|
2
2
|
var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|