@bahmni/widgets 0.0.1-dev.124 → 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, a as se, m as ne, p as ce, X as de, b as k, o as le } from "./index-BWeanlvf.js";
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";
@@ -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-BWeanlvf.js";
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(H, { imageSrc: i, alt: i, id: `${i}-img` })), a === "Video" && (u = /* @__PURE__ */ v(Q, { id: `${i}-video`, videoSrc: i }));
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 = k(), { addNotification: i } = G(), { t: a } = A(), u = z({
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),