@bahmni/widgets 0.0.1-dev.126 → 0.0.1-dev.127
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,
|
|
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, m as se, w as ne, p as ce, X as de, a as k, o as le } from "./index-BEusKCC8.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as v, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { Y as F,
|
|
2
|
+
import { Y as F, b as N, d as K, C as q, e as Q, f as k, u as G, g as H, h as P, I as x, S as Y, K as j } from "./index-BEusKCC8.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";
|
|
@@ -181,7 +181,7 @@ function de(e) {
|
|
|
181
181
|
const w = (e, n, t, s, r) => {
|
|
182
182
|
const o = se(e, n), i = o.value, a = K(i);
|
|
183
183
|
let u = i;
|
|
184
|
-
a === "Image" && (u = /* @__PURE__ */ v(
|
|
184
|
+
a === "Image" && (u = /* @__PURE__ */ v(Q, { imageSrc: i, alt: i, id: `${i}-img` })), a === "Video" && (u = /* @__PURE__ */ v(k, { id: `${i}-video`, videoSrc: i }));
|
|
185
185
|
const c = r("OBSERVATIONS_RECORDED_BY", {
|
|
186
186
|
provider: o.provider
|
|
187
187
|
}), d = e.display, f = e.observationValue?.isAbnormal ? "abnormal-obs" : "obs", m = s ? `${s}-${f}-${d}-${t}-${n}` : `${f}-${d}-${t}-${n}`;
|
|
@@ -254,7 +254,7 @@ const w = (e, n, t, s, r) => {
|
|
|
254
254
|
observations: fe,
|
|
255
255
|
title: ge
|
|
256
256
|
}, me = (e) => ["conceptUuid", e], be = (e, n) => ["observations", e, ...n], $e = ({ config: e }) => {
|
|
257
|
-
const n = e, { conceptNames: t = [], conceptUuid: s = [] } = n, r = W(/* @__PURE__ */ new Set()), o =
|
|
257
|
+
const n = e, { conceptNames: t = [], conceptUuid: s = [] } = n, r = W(/* @__PURE__ */ new Set()), o = G(), { addNotification: i } = H(), { t: a } = A(), u = z({
|
|
258
258
|
queries: t.map((l) => ({
|
|
259
259
|
queryKey: me(l),
|
|
260
260
|
queryFn: () => P(l),
|