@bahmni/home-app 0.0.1-dev.294 → 0.0.1-dev.295
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-C4oMzxsp-B2xJNfmi.js → DocumentsTable-R1K7B1Ur-Cu1hC1vG.js} +9 -9
- package/dist/{FormsTable-kg59GYSD-Q5H3ecc6.js → FormsTable-BFXGLv2_-DR5hc9V6.js} +25 -25
- package/dist/{LNWAZHJI-Bs9WPGM4.js → LNWAZHJI-MrBw3KqC.js} +2 -2
- package/dist/{MWZ6AO7Z-C-6P-a_g.js → MWZ6AO7Z-BPjMyTFg.js} +2 -2
- package/dist/{Observations-CcNBEef4-DSR-gtci.js → Observations-DSZvTXSj-NaVr-fxr.js} +21 -21
- package/dist/{YPM2AS64-BtuwGapO.js → YPM2AS64-2TtuD02r.js} +1 -1
- package/dist/{index-YY6FR4n_.js → index-BGXFEB32.js} +68 -68
- package/dist/{index-LGyQblWz.js → index-DahVVei_.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { u as G, a as W, h as Y,
|
|
2
|
+
import { u as G, a as W, h as Y, B as J, w as X, m as Z, c as ee, n as te } from "./index-BGXFEB32.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, useMemo as p } 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 = {
|
|
@@ -18,7 +18,7 @@ const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTab
|
|
|
18
18
|
uploadedBy: "DOCUMENTS_UPLOADED_BY",
|
|
19
19
|
attachments: "DOCUMENTS_ATTACHMENTS"
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function B(a) {
|
|
22
22
|
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
23
23
|
}
|
|
24
24
|
function ie(a, g) {
|
|
@@ -33,12 +33,12 @@ const Te = [
|
|
|
33
33
|
"attachments",
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
|
-
], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i,
|
|
36
|
+
], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], fe = ({ config: a, encounterUuids: g }) => {
|
|
37
37
|
const [s, w] = l(!1), [o, U] = l(
|
|
38
38
|
null
|
|
39
|
-
), [
|
|
39
|
+
), [$, D] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E = G(), { t: n } = W(), { addNotification: L } = Y(),
|
|
41
|
+
), E = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [O, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = _((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), H = _(() => {
|
|
44
44
|
w(!1), U(null), D(/* @__PURE__ */ new Set());
|
|
@@ -74,9 +74,9 @@ const Te = [
|
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
77
|
-
const t = /* @__PURE__ */ new Set(), m =
|
|
77
|
+
const t = /* @__PURE__ */ new Set(), m = R(o);
|
|
78
78
|
for (let c = 0; c < m.length; c++) {
|
|
79
|
-
const S =
|
|
79
|
+
const S = B(m[c].url);
|
|
80
80
|
try {
|
|
81
81
|
(await fetch(S, {
|
|
82
82
|
method: "HEAD",
|
|
@@ -104,7 +104,7 @@ const Te = [
|
|
|
104
104
|
})),
|
|
105
105
|
[f]
|
|
106
106
|
), T = p(
|
|
107
|
-
() => o ?
|
|
107
|
+
() => o ? R(o) : [],
|
|
108
108
|
[o]
|
|
109
109
|
), Q = _(
|
|
110
110
|
(e, t) => {
|
|
@@ -169,7 +169,7 @@ const Te = [
|
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m =
|
|
172
|
+
const m = B(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || he.test(e.url ?? ""), I = $.has(t);
|
|
173
173
|
return m === "#" || I ? /* @__PURE__ */ h(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as X, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { a as ee, u as re, v as ae,
|
|
2
|
+
import { a as ee, u as re, v as ae, k as oe, I as te, Z as se, S as ne, e as de, _ as D, m as ie, w as me, c as U, O as ue, L as le, n as ce, q as fe, R as ye } from "./index-BGXFEB32.js";
|
|
3
3
|
import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as q, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
@@ -13,21 +13,21 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
13
13
|
config: H
|
|
14
14
|
}) => {
|
|
15
15
|
const { t } = ee(), u = re(), [l, O] = q(!1), [o, I] = q(null), {
|
|
16
|
-
numberOfVisits:
|
|
17
|
-
hideThumbnail:
|
|
16
|
+
numberOfVisits: k,
|
|
17
|
+
hideThumbnail: w = !1,
|
|
18
18
|
forms: c
|
|
19
19
|
} = H ?? {}, L = ae(
|
|
20
20
|
m,
|
|
21
21
|
n
|
|
22
|
-
),
|
|
22
|
+
), K = be(), {
|
|
23
23
|
data: T = [],
|
|
24
24
|
isLoading: F,
|
|
25
25
|
isError: _,
|
|
26
|
-
error:
|
|
27
|
-
refetch:
|
|
26
|
+
error: j,
|
|
27
|
+
refetch: x
|
|
28
28
|
} = f({
|
|
29
29
|
queryKey: ["forms", u, m],
|
|
30
|
-
queryFn: () => oe(u, void 0,
|
|
30
|
+
queryFn: () => oe(u, void 0, k),
|
|
31
31
|
enabled: !!u && !L
|
|
32
32
|
}), v = d(() => {
|
|
33
33
|
let e = T;
|
|
@@ -39,15 +39,15 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
39
39
|
}, [T, n, c]), { data: B = [] } = f({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => te()
|
|
42
|
-
}),
|
|
42
|
+
}), E = y(
|
|
43
43
|
(e) => B.find((r) => r.name === e)?.uuid,
|
|
44
44
|
[B]
|
|
45
45
|
), b = d(() => {
|
|
46
46
|
if (o)
|
|
47
|
-
return
|
|
48
|
-
}, [o,
|
|
49
|
-
isLoading:
|
|
50
|
-
isError:
|
|
47
|
+
return E(o.formName);
|
|
48
|
+
}, [o, E]), {
|
|
49
|
+
isLoading: V,
|
|
50
|
+
isError: $,
|
|
51
51
|
error: p
|
|
52
52
|
} = f({
|
|
53
53
|
queryKey: ["formMetadata", b],
|
|
@@ -65,7 +65,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
65
65
|
});
|
|
66
66
|
de(
|
|
67
67
|
(e) => {
|
|
68
|
-
e.patientUUID === u && e.updatedConcepts.size > 0 && (
|
|
68
|
+
e.patientUUID === u && e.updatedConcepts.size > 0 && (x(), K.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
69
69
|
},
|
|
70
70
|
[u]
|
|
71
71
|
);
|
|
@@ -74,10 +74,10 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
74
74
|
return !r || r.includes(o.formName);
|
|
75
75
|
}), [g, o?.formName]), P = d(() => {
|
|
76
76
|
if (p)
|
|
77
|
-
return
|
|
77
|
+
return D(p).message;
|
|
78
78
|
if (N)
|
|
79
|
-
return
|
|
80
|
-
}, [p, N]),
|
|
79
|
+
return D(N).message;
|
|
80
|
+
}, [p, N]), M = d(
|
|
81
81
|
() => [
|
|
82
82
|
{ key: "recordedOn", header: t("RECORDED_ON") },
|
|
83
83
|
{ key: "recordedBy", header: t("RECORDED_BY") }
|
|
@@ -89,7 +89,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
89
89
|
{ key: "recordedBy", sortable: !0 }
|
|
90
90
|
],
|
|
91
91
|
[]
|
|
92
|
-
),
|
|
92
|
+
), R = d(() => {
|
|
93
93
|
const e = v.reduce(
|
|
94
94
|
(r, a) => {
|
|
95
95
|
const i = a.formName;
|
|
@@ -132,20 +132,20 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
132
132
|
[S]
|
|
133
133
|
);
|
|
134
134
|
return /* @__PURE__ */ X(W, { children: [
|
|
135
|
-
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: F || _ ||
|
|
135
|
+
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: F || _ || R.length === 0 || L ? /* @__PURE__ */ s(
|
|
136
136
|
U,
|
|
137
137
|
{
|
|
138
|
-
headers:
|
|
138
|
+
headers: M,
|
|
139
139
|
ariaLabel: t("FORMS_HEADING"),
|
|
140
140
|
rows: [],
|
|
141
141
|
loading: F,
|
|
142
|
-
errorStateMessage: _ ?
|
|
142
|
+
errorStateMessage: _ ? j?.message : void 0,
|
|
143
143
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
144
144
|
renderCell: C,
|
|
145
145
|
className: A.formsTableBody,
|
|
146
146
|
dataTestId: "forms-table"
|
|
147
147
|
}
|
|
148
|
-
) : /* @__PURE__ */ s(ue, { align: "start", children:
|
|
148
|
+
) : /* @__PURE__ */ s(ue, { align: "start", children: R.map((e, r) => {
|
|
149
149
|
const { formName: a, records: i } = e;
|
|
150
150
|
return /* @__PURE__ */ s(
|
|
151
151
|
le,
|
|
@@ -157,7 +157,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
157
157
|
children: /* @__PURE__ */ s(
|
|
158
158
|
U,
|
|
159
159
|
{
|
|
160
|
-
headers:
|
|
160
|
+
headers: M,
|
|
161
161
|
ariaLabel: t("FORMS_HEADING"),
|
|
162
162
|
rows: i,
|
|
163
163
|
loading: !1,
|
|
@@ -189,12 +189,12 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
189
189
|
fe,
|
|
190
190
|
{
|
|
191
191
|
observations: Q,
|
|
192
|
-
isLoading:
|
|
193
|
-
isError:
|
|
192
|
+
isLoading: V || z,
|
|
193
|
+
isError: $ || G,
|
|
194
194
|
errorMessage: P,
|
|
195
195
|
emptyStateMessage: t("NO_FORM_DATA_AVAILABLE"),
|
|
196
196
|
testIdPrefix: o.formName,
|
|
197
|
-
hideThumbnail:
|
|
197
|
+
hideThumbnail: w
|
|
198
198
|
}
|
|
199
199
|
)
|
|
200
200
|
}
|
|
@@ -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 { P as d,
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-2TtuD02r.js";
|
|
2
|
+
import { P as d, T as f, V as e } from "./index-BGXFEB32.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 { P as v,
|
|
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-2TtuD02r.js";
|
|
2
|
+
import { P as v, T as C, V as e } from "./index-BGXFEB32.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as B, h as V, a as S,
|
|
2
|
+
import { u as B, h as V, a as S, D as w, $ as G, e as k, b as z, K as Q, G as x, z as M, c as j, U as P, d as D, W, f as J, g as Y, H as X, i as Z, N as ee } from "./index-BGXFEB32.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
4
|
+
import { useRef as se, useEffect as _, useMemo as R } from "react";
|
|
5
|
+
const H = (a, n, d, l, b, r) => {
|
|
6
6
|
const t = W(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
@@ -37,13 +37,13 @@ const D = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
D,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, o) =>
|
|
46
|
+
(s, o) => H(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
@@ -62,14 +62,14 @@ const D = (a, n, d, l, b, r) => {
|
|
|
62
62
|
const { t: l } = S(), b = (r, t, s) => {
|
|
63
63
|
const o = P(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ N(
|
|
65
|
-
|
|
65
|
+
D,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(i, m) =>
|
|
72
|
+
(i, m) => H(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -120,7 +120,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
_(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
126
|
const q = d[h];
|
|
@@ -132,14 +132,14 @@ const D = (a, n, d, l, b, r) => {
|
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
133
133
|
});
|
|
134
134
|
}, [i, d]);
|
|
135
|
-
const m =
|
|
135
|
+
const m = R(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = R(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = R(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: F,
|
|
138
138
|
isError: T,
|
|
139
139
|
refetch: g
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => G(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
145
|
k(
|
|
@@ -149,35 +149,35 @@ const D = (a, n, d, l, b, r) => {
|
|
|
149
149
|
) && g();
|
|
150
150
|
},
|
|
151
151
|
[t, g]
|
|
152
|
-
),
|
|
152
|
+
), _(() => {
|
|
153
153
|
T && s({
|
|
154
154
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: o("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [T]);
|
|
159
|
-
const O =
|
|
159
|
+
const O = R(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
161
|
const e = z(c), h = Q(e);
|
|
162
162
|
return x(h);
|
|
163
|
-
}, [c]),
|
|
163
|
+
}, [c]), L = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], $ = F || !y, f = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = f ? o("ERROR_FETCHING_OBSERVATIONS") : null, K = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = O.length > 0 && !$ && !f, E = n.titleTranslationKey, v = E ? o(E) : "";
|
|
168
168
|
return /* @__PURE__ */ N(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": E ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
M,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
180
|
+
testId: E ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
182
|
className: I.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
@@ -191,12 +191,12 @@ const D = (a, n, d, l, b, r) => {
|
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
j,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: L,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: $,
|
|
200
200
|
errorStateMessage: A,
|
|
201
201
|
emptyStateMessage: K,
|
|
202
202
|
dataTestId: "observations-table"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as we, Y as z, a0 as xt, a1 as B, T as q, V 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-BGXFEB32.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -132091,37 +132091,37 @@ const FBe = {
|
|
|
132091
132091
|
}
|
|
132092
132092
|
}
|
|
132093
132093
|
};
|
|
132094
|
-
|
|
132094
|
+
let bp = class {
|
|
132095
132095
|
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
132096
|
-
format(
|
|
132097
|
-
let
|
|
132098
|
-
if (!xp && this.options.signDisplay != null ?
|
|
132099
|
-
var
|
|
132100
|
-
let { unit:
|
|
132101
|
-
if (!
|
|
132102
|
-
let
|
|
132103
|
-
|
|
132096
|
+
format(t) {
|
|
132097
|
+
let e = "";
|
|
132098
|
+
if (!xp && this.options.signDisplay != null ? e = cV0(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !$8) {
|
|
132099
|
+
var r;
|
|
132100
|
+
let { unit: o, unitDisplay: a = "short", locale: c } = this.resolvedOptions();
|
|
132101
|
+
if (!o) return e;
|
|
132102
|
+
let l = (r = FBe[o]) === null || r === void 0 ? void 0 : r[a];
|
|
132103
|
+
e += l[c] || l.default;
|
|
132104
132104
|
}
|
|
132105
|
-
return
|
|
132105
|
+
return e;
|
|
132106
132106
|
}
|
|
132107
132107
|
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
|
|
132108
|
-
formatToParts(
|
|
132109
|
-
return this.numberFormatter.formatToParts(
|
|
132108
|
+
formatToParts(t) {
|
|
132109
|
+
return this.numberFormatter.formatToParts(t);
|
|
132110
132110
|
}
|
|
132111
132111
|
/** Formats a number range as a string. */
|
|
132112
|
-
formatRange(
|
|
132113
|
-
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(
|
|
132114
|
-
if (
|
|
132115
|
-
return `${this.format(
|
|
132112
|
+
formatRange(t, e) {
|
|
132113
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
|
|
132114
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
132115
|
+
return `${this.format(t)} – ${this.format(e)}`;
|
|
132116
132116
|
}
|
|
132117
132117
|
/** Formats a number range as an array of parts. */
|
|
132118
|
-
formatRangeToParts(
|
|
132119
|
-
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(
|
|
132120
|
-
if (
|
|
132121
|
-
let
|
|
132118
|
+
formatRangeToParts(t, e) {
|
|
132119
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
|
|
132120
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
132121
|
+
let r = this.numberFormatter.formatToParts(t), o = this.numberFormatter.formatToParts(e);
|
|
132122
132122
|
return [
|
|
132123
|
-
...
|
|
132124
|
-
...
|
|
132123
|
+
...r.map((a) => ({
|
|
132124
|
+
...a,
|
|
132125
132125
|
source: "startRange"
|
|
132126
132126
|
})),
|
|
132127
132127
|
{
|
|
@@ -132129,29 +132129,29 @@ class bp {
|
|
|
132129
132129
|
value: " – ",
|
|
132130
132130
|
source: "shared"
|
|
132131
132131
|
},
|
|
132132
|
-
...
|
|
132133
|
-
...
|
|
132132
|
+
...o.map((a) => ({
|
|
132133
|
+
...a,
|
|
132134
132134
|
source: "endRange"
|
|
132135
132135
|
}))
|
|
132136
132136
|
];
|
|
132137
132137
|
}
|
|
132138
132138
|
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
132139
132139
|
resolvedOptions() {
|
|
132140
|
-
let
|
|
132141
|
-
return !xp && this.options.signDisplay != null && (
|
|
132142
|
-
...
|
|
132140
|
+
let t = this.numberFormatter.resolvedOptions();
|
|
132141
|
+
return !xp && this.options.signDisplay != null && (t = {
|
|
132142
|
+
...t,
|
|
132143
132143
|
signDisplay: this.options.signDisplay
|
|
132144
|
-
}), !$8 && this.options.style === "unit" && (
|
|
132145
|
-
...
|
|
132144
|
+
}), !$8 && this.options.style === "unit" && (t = {
|
|
132145
|
+
...t,
|
|
132146
132146
|
style: "unit",
|
|
132147
132147
|
unit: this.options.unit,
|
|
132148
132148
|
unitDisplay: this.options.unitDisplay
|
|
132149
|
-
}),
|
|
132149
|
+
}), t;
|
|
132150
132150
|
}
|
|
132151
|
-
constructor(
|
|
132152
|
-
this.numberFormatter = aV0(
|
|
132151
|
+
constructor(t, e = {}) {
|
|
132152
|
+
this.numberFormatter = aV0(t, e), this.options = e;
|
|
132153
132153
|
}
|
|
132154
|
-
}
|
|
132154
|
+
};
|
|
132155
132155
|
function aV0(t, e = {}) {
|
|
132156
132156
|
let { numberingSystem: r } = e;
|
|
132157
132157
|
if (r && t.includes("-nu-") && (t.includes("-u-") || (t += "-u-"), t += `-nu-${r}`), e.style === "unit" && !$8) {
|
|
@@ -169379,7 +169379,7 @@ const lJ0 = () => {
|
|
|
169379
169379
|
);
|
|
169380
169380
|
return t;
|
|
169381
169381
|
};
|
|
169382
|
-
B0(() => Promise.resolve().then(() => fj0)), B0(() => Promise.resolve().then(() => Ij0)), B0(() => Promise.resolve().then(() => gF0)), B0(() => Promise.resolve().then(() => xF0)), B0(() => import("./DocumentsTable-
|
|
169382
|
+
B0(() => Promise.resolve().then(() => fj0)), B0(() => Promise.resolve().then(() => Ij0)), B0(() => Promise.resolve().then(() => gF0)), B0(() => Promise.resolve().then(() => xF0)), B0(() => import("./DocumentsTable-R1K7B1Ur-Cu1hC1vG.js")), B0(() => Promise.resolve().then(() => MW0)), B0(() => import("./FormsTable-BFXGLv2_-DR5hc9V6.js")), B0(() => Promise.resolve().then(() => tW0)), B0(() => import("./Observations-DSZvTXSj-NaVr-fxr.js")), B0(
|
|
169383
169383
|
() => Promise.resolve().then(() => AW0)
|
|
169384
169384
|
), B0(
|
|
169385
169385
|
() => Promise.resolve().then(() => yU0)
|
|
@@ -171315,7 +171315,7 @@ var $J0 = (t, e = !1) => {
|
|
|
171315
171315
|
const e = FFe(() => {
|
|
171316
171316
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
|
|
171317
171317
|
let d;
|
|
171318
|
-
return this.#l ? d = this.#l : (d = PFe(() => import("./LNWAZHJI-
|
|
171318
|
+
return this.#l ? d = this.#l : (d = PFe(() => import("./LNWAZHJI-MrBw3KqC.js")), this.#l = d), sqe(this.#u, this.#r), BFe(d, IFe({
|
|
171319
171319
|
get queryFlavor() {
|
|
171320
171320
|
return r.#d;
|
|
171321
171321
|
},
|
|
@@ -171413,7 +171413,7 @@ var $J0 = (t, e = !1) => {
|
|
|
171413
171413
|
const e = FFe(() => {
|
|
171414
171414
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
|
|
171415
171415
|
let h;
|
|
171416
|
-
return this.#i ? h = this.#i : (h = PFe(() => import("./MWZ6AO7Z-
|
|
171416
|
+
return this.#i ? h = this.#i : (h = PFe(() => import("./MWZ6AO7Z-BPjMyTFg.js")), this.#i = h), sqe(this.#u, this.#r), BFe(h, IFe({
|
|
171417
171417
|
get queryFlavor() {
|
|
171418
171418
|
return r.#d;
|
|
171419
171419
|
},
|
|
@@ -171543,7 +171543,7 @@ const SG0 = {
|
|
|
171543
171543
|
}
|
|
171544
171544
|
}
|
|
171545
171545
|
}, ZG0 = "home", SJ0 = "/bahmni/home/index.html#/login", ZJ0 = "/bahmni/home/index.html#/changePassword", kJ0 = 6, kG0 = B0(
|
|
171546
|
-
() => import("./index-
|
|
171546
|
+
() => import("./index-DahVVei_.js").then((t) => ({
|
|
171547
171547
|
default: t.HomePage
|
|
171548
171548
|
}))
|
|
171549
171549
|
), BG0 = [
|
|
@@ -171573,33 +171573,33 @@ function BJ0() {
|
|
|
171573
171573
|
] }) }) }) }) }) : /* @__PURE__ */ d1(Ep1, {});
|
|
171574
171574
|
}
|
|
171575
171575
|
export {
|
|
171576
|
-
|
|
171576
|
+
YY0 as $,
|
|
171577
171577
|
LY0 as A,
|
|
171578
|
-
|
|
171578
|
+
tJ0 as B,
|
|
171579
171579
|
QG0 as C,
|
|
171580
|
-
|
|
171581
|
-
|
|
171582
|
-
|
|
171583
|
-
|
|
171580
|
+
KY0 as D,
|
|
171581
|
+
SJ0 as E,
|
|
171582
|
+
UU2 as F,
|
|
171583
|
+
cJ0 as G,
|
|
171584
171584
|
Lx0 as H,
|
|
171585
|
-
|
|
171585
|
+
QY0 as I,
|
|
171586
171586
|
iJ0 as J,
|
|
171587
|
-
|
|
171587
|
+
aJ0 as K,
|
|
171588
171588
|
Nl as L,
|
|
171589
171589
|
Xu as M,
|
|
171590
171590
|
$x0 as N,
|
|
171591
171591
|
bl as O,
|
|
171592
171592
|
RJ0 as P,
|
|
171593
|
-
|
|
171594
|
-
|
|
171595
|
-
|
|
171596
|
-
|
|
171597
|
-
|
|
171598
|
-
|
|
171599
|
-
|
|
171600
|
-
|
|
171593
|
+
lJ0 as Q,
|
|
171594
|
+
GY0 as R,
|
|
171595
|
+
JY0 as S,
|
|
171596
|
+
h0 as T,
|
|
171597
|
+
rJ0 as U,
|
|
171598
|
+
BFe as V,
|
|
171599
|
+
nJ0 as W,
|
|
171600
|
+
pJ0 as X,
|
|
171601
171601
|
W2 as Y,
|
|
171602
|
-
|
|
171602
|
+
XY0 as Z,
|
|
171603
171603
|
K0 as _,
|
|
171604
171604
|
J2 as a,
|
|
171605
171605
|
mK0 as a0,
|
|
@@ -171648,29 +171648,29 @@ export {
|
|
|
171648
171648
|
Z3 as ax,
|
|
171649
171649
|
LG0 as ay,
|
|
171650
171650
|
vJ0 as az,
|
|
171651
|
-
|
|
171651
|
+
oJ0 as b,
|
|
171652
171652
|
p0 as c,
|
|
171653
|
-
|
|
171653
|
+
AY0 as d,
|
|
171654
171654
|
Kr as e,
|
|
171655
|
-
|
|
171656
|
-
|
|
171655
|
+
ML0 as f,
|
|
171656
|
+
QH0 as g,
|
|
171657
171657
|
Yr as h,
|
|
171658
|
-
|
|
171659
|
-
|
|
171660
|
-
|
|
171661
|
-
|
|
171658
|
+
Bx0 as i,
|
|
171659
|
+
nE2 as j,
|
|
171660
|
+
eJ0 as k,
|
|
171661
|
+
GG0 as l,
|
|
171662
171662
|
y2 as m,
|
|
171663
171663
|
Ht as n,
|
|
171664
|
-
|
|
171665
|
-
|
|
171664
|
+
uM as o,
|
|
171665
|
+
kJ0 as p,
|
|
171666
171666
|
uFe as q,
|
|
171667
171667
|
zw as r,
|
|
171668
|
-
|
|
171669
|
-
|
|
171668
|
+
XG0 as s,
|
|
171669
|
+
eY0 as t,
|
|
171670
171670
|
Jt as u,
|
|
171671
171671
|
s7 as v,
|
|
171672
171672
|
gs as w,
|
|
171673
|
-
|
|
171674
|
-
|
|
171673
|
+
ZJ0 as x,
|
|
171674
|
+
NY0 as y,
|
|
171675
171675
|
q9 as z
|
|
171676
171676
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as ne, Fragment as Xi } from "react/jsx-runtime";
|
|
2
|
-
import { a as ot, C as Qi,
|
|
2
|
+
import { a as ot, C as Qi, j as Ji, r as ec, l as tc, o as rc, A as nc, p as oc, s as hi, t as ac, Q as lc, h as ic, x as cc, y as sc, E as fc, M as pc, F as hc, J as uc } from "./index-BGXFEB32.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";
|
package/dist/index.js
CHANGED