@bahmni/widgets 0.0.1-dev.124 → 0.0.1-dev.126
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { c as L, u as Y, L as W, H as Z, F as ee, V as te, k as re, J as oe, l as ae, K as U, a as se, m as ne, p as ce, X as de, b as k, o as le } from "./index-
|
|
2
|
+
import { c as L, u as Y, L as W, H as Z, F as ee, V as te, k as re, J as oe, l as ae, K as U, a as se, m as ne, p as ce, X as de, b as k, o as le } from "./index-BkVYjd4i.js";
|
|
3
3
|
import { useQuery as h } from "@tanstack/react-query";
|
|
4
4
|
import { useState as q, useMemo as g, useCallback as M } from "react";
|
|
5
5
|
import { createPortal as me } from "react-dom";
|
|
@@ -211,7 +211,7 @@ const ue = "_formsTableBody_1pd36_1", pe = "_customAccordianItem_1pd36_6", be =
|
|
|
211
211
|
(c) => s.includes(c.encounterUuid)
|
|
212
212
|
), [$, s]), { data: C = [] } = h({
|
|
213
213
|
queryKey: ["observationForms"],
|
|
214
|
-
queryFn: ee
|
|
214
|
+
queryFn: () => ee()
|
|
215
215
|
}), v = M(
|
|
216
216
|
(c) => C.find((m) => m.name === c)?.uuid,
|
|
217
217
|
[C]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as v, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { Y as F, d as N, e as K, f as q, g as H, h as Q, u as k, i as G, j as P, I as x, S as Y, K as j } from "./index-
|
|
2
|
+
import { Y as F, d as N, e as K, f as q, g as H, h as Q, u as k, i as G, j as P, I as x, S as Y, K as j } from "./index-BkVYjd4i.js";
|
|
3
3
|
import { useQueries as z, useQuery as J } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as W, useEffect as T, useMemo as y } from "react";
|
|
5
5
|
import { useTranslation as A } from "react-i18next";
|
|
@@ -71591,7 +71591,7 @@ const MUe = /* @__PURE__ */ mWe(bUe), xUe = "/bahmni_config/openmrs/apps/registr
|
|
|
71591
71591
|
const { message: r } = wr(e);
|
|
71592
71592
|
throw new Error(r);
|
|
71593
71593
|
}
|
|
71594
|
-
}, SUe = async (t, e) => new MUe().compile(e)(t), IUe = (t) => Dr + `/form/${t}?v=custom:(resources:(value))`, kUe = Dr + "/bahmniie/form/latestPublishedForms", ZUe = (t, e, r, n) => Dr + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, BUe = (t, e, r) => {
|
|
71594
|
+
}, SUe = async (t, e) => new MUe().compile(e)(t), IUe = (t) => Dr + `/form/${t}?v=custom:(resources:(value))`, kUe = (t) => Dr + "/bahmniie/form/latestPublishedForms", ZUe = (t, e, r, n) => Dr + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, BUe = (t, e, r) => {
|
|
71595
71595
|
let n = Dr + "/bahmnicore/patient/" + t + "/forms";
|
|
71596
71596
|
return e && (n += `?numberOfVisits=${e}`), n;
|
|
71597
71597
|
}, PUe = (t, e) => {
|
|
@@ -71622,14 +71622,14 @@ const Yi = (t, e) => t?.length === 0 ? !1 : e?.length === 0, WUe = async () => {
|
|
|
71622
71622
|
const { message: e } = wr(t);
|
|
71623
71623
|
throw new Error(e);
|
|
71624
71624
|
}
|
|
71625
|
-
}, UUe = async () => {
|
|
71626
|
-
const
|
|
71627
|
-
if (!
|
|
71625
|
+
}, UUe = async (t) => {
|
|
71626
|
+
const e = await fetch(kUe());
|
|
71627
|
+
if (!e.ok)
|
|
71628
71628
|
throw new Error(
|
|
71629
|
-
`HTTP error! status for latestPublishedForms: ${
|
|
71629
|
+
`HTTP error! status for latestPublishedForms: ${e.status}`
|
|
71630
71630
|
);
|
|
71631
|
-
const
|
|
71632
|
-
return Array.isArray(
|
|
71631
|
+
const r = await e.json();
|
|
71632
|
+
return Array.isArray(r) ? r : [];
|
|
71633
71633
|
}, KUe = (t, e) => {
|
|
71634
71634
|
const r = JSON.parse(t.nameTranslation);
|
|
71635
71635
|
if (Array.isArray(r) && r.length > 0) {
|
|
@@ -71651,10 +71651,10 @@ const Yi = (t, e) => t?.length === 0 ? !1 : e?.length === 0, WUe = async () => {
|
|
|
71651
71651
|
editable: n.editable
|
|
71652
71652
|
}))
|
|
71653
71653
|
};
|
|
71654
|
-
}, nXe = async () => {
|
|
71655
|
-
const
|
|
71656
|
-
return
|
|
71657
|
-
(
|
|
71654
|
+
}, nXe = async (t) => {
|
|
71655
|
+
const e = await UUe(), r = yd();
|
|
71656
|
+
return e.map(
|
|
71657
|
+
(n) => YUe(n, r)
|
|
71658
71658
|
);
|
|
71659
71659
|
}, oXe = async (t) => {
|
|
71660
71660
|
const e = await fetch(IUe(t));
|
|
@@ -75939,11 +75939,11 @@ const dXe = () => {
|
|
|
75939
75939
|
},
|
|
75940
75940
|
{
|
|
75941
75941
|
type: "forms",
|
|
75942
|
-
component: a1(() => import("./FormsTable-
|
|
75942
|
+
component: a1(() => import("./FormsTable-BFQro722.js"))
|
|
75943
75943
|
},
|
|
75944
75944
|
{
|
|
75945
75945
|
type: "observations",
|
|
75946
|
-
component: a1(() => import("./Observations-
|
|
75946
|
+
component: a1(() => import("./Observations-BoptCwFd.js"))
|
|
75947
75947
|
}
|
|
75948
75948
|
];
|
|
75949
75949
|
class t1 {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as t, w as s, A as r, C as o, D as n, G as g, n as l, M as c, N as P, t as d, P as v, s as T, R as b, q as W, U as A, r as f, T as u, Q as C, B as U, E as m, O as p, z as y, W as D, x as N, i as R, u as S, v as h } from "./index-
|
|
1
|
+
import { y as t, w as s, A as r, C as o, D as n, G as g, n as l, M as c, N as P, t as d, P as v, s as T, R as b, q as W, U as A, r as f, T as u, Q as C, B as U, E as m, O as p, z as y, W as D, x as N, i as R, u as S, v as h } from "./index-BkVYjd4i.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
t as ActivePractitionerContext,
|