@bahmni/widgets 0.0.1-dev.113 → 0.0.1-dev.116

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 _, jsx as t, Fragment as Y } from "react/jsx-runtime";
2
- import { c as h, u as W, I as X, U as Z, q as ee, j as re, D as oe, a as te, i as ae, J as $, e as ne, t as se, K as ce, b as de, d as U, o as me } from "./index-CJakYuEL.js";
2
+ import { c as h, u as W, I as X, U as Z, q as ee, j as re, D as oe, a as te, i as ae, J as $, e as ne, t as se, K as ce, b as de, d as U, o as me } from "./index-CjgIbq0M.js";
3
3
  import { useQuery as g } from "@tanstack/react-query";
4
4
  import { useState as q, useMemo as b, useCallback as N } from "react";
5
5
  import { createPortal as le } from "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as T } from "react/jsx-runtime";
2
- import { Z as U, L as $, h as B, s as F, C as x, z as q, u as Q, f as k, W as G, A as K, R as P, J as H } from "./index-CJakYuEL.js";
2
+ import { Z as U, L as $, h as B, s as F, C as x, z as q, u as Q, f as k, W as G, A as K, R as P, J as H } from "./index-CjgIbq0M.js";
3
3
  import { useQueries as Y, useQuery as j } from "@tanstack/react-query";
4
4
  import { useRef as z, useEffect as R, useMemo as m } from "react";
5
5
  import { useTranslation as _ } from "react-i18next";
@@ -71641,32 +71641,30 @@ const Ki = (t, e) => t?.length === 0 ? !1 : e?.length === 0, BWe = async () => {
71641
71641
  const r = await e.json();
71642
71642
  if (!r.resources || r.resources.length === 0)
71643
71643
  throw new Error(`No resources found for form ${t}`);
71644
- const n = JSON.parse(r.resources[0].value), a = yd();
71645
- let i = { labels: {}, concepts: {} };
71646
- if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string")
71647
- try {
71648
- const s = n.name ?? r.name, l = r.uuid ?? n.uuid, d = n.version ?? r.version ?? "1", h = RWe(
71649
- s,
71650
- l,
71651
- d,
71644
+ const n = JSON.parse(r.resources[0].value), a = yd(), i = r.name ?? n.name, s = r.uuid ?? n.uuid, l = r.version ?? n.version ?? "1", d = r.published ?? !1;
71645
+ let h = { labels: {}, concepts: {} };
71646
+ if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string") {
71647
+ const f = RWe(
71648
+ i,
71649
+ s,
71650
+ l,
71651
+ a
71652
+ ), w = await fetch(f);
71653
+ if (w.ok) {
71654
+ const E = await w.json();
71655
+ h = jBe(
71656
+ E,
71652
71657
  a
71653
- ), f = await fetch(h);
71654
- if (f.ok) {
71655
- const w = await f.json();
71656
- i = jBe(
71657
- w,
71658
- a
71659
- );
71660
- }
71661
- } catch {
71658
+ );
71662
71659
  }
71660
+ }
71663
71661
  return {
71664
- uuid: r.uuid,
71665
- name: r.name,
71666
- version: r.version,
71667
- published: r.published,
71662
+ uuid: s,
71663
+ name: i,
71664
+ version: l,
71665
+ published: d,
71668
71666
  schema: n,
71669
- translations: i
71667
+ translations: h
71670
71668
  };
71671
71669
  }, SJe = async (t, e, r) => {
71672
71670
  const n = SWe(t, r), a = await er(n);
@@ -75658,11 +75656,11 @@ const BJe = () => {
75658
75656
  },
75659
75657
  {
75660
75658
  type: "forms",
75661
- component: o1(() => import("./FormsTable-p73D2vYO.js"))
75659
+ component: o1(() => import("./FormsTable-lf3PrvPD.js"))
75662
75660
  },
75663
75661
  {
75664
75662
  type: "observations",
75665
- component: o1(() => import("./Observations-FgHEt53Y.js"))
75663
+ component: o1(() => import("./Observations-PKhfOlRO.js"))
75666
75664
  }
75667
75665
  ];
75668
75666
  class Xr {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as t, x as s, g as r, k as o, l as n, G as g, n as l, M as c, N as P, r as d, P as v, p as T, m as b, S as f, w as W, V as u, T as A, Q as m, F as p, H as C, O as S, E as y, X as N, y as U, f as h, u as x, v as D } from "./index-CJakYuEL.js";
1
+ import { B as t, x as s, g as r, k as o, l as n, G as g, n as l, M as c, N as P, r as d, P as v, p as T, m as b, S as f, w as W, V as u, T as A, Q as m, F as p, H as C, O as S, E as y, X as N, y as U, f as h, u as x, v as D } from "./index-CjgIbq0M.js";
2
2
  import "react";
3
3
  export {
4
4
  t as ActivePractitionerContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.113",
3
+ "version": "0.0.1-dev.116",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",