@bahmni/widgets 0.0.1-dev.149 → 0.0.1-dev.150

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 Y } from "react/jsx-runtime";
2
- import { c as L, u as W, o as X, h as Z, f as ee, p as te, a as re, g as oe, b as ae, J as U, L as se, H as ne, d as de, t as ce, e as q, l as le } from "./index-Bn92GwzX.js";
2
+ import { c as L, u as W, o as X, h as Z, f as ee, p as te, a as re, g as oe, b as ae, J as U, L as se, H as ne, d as de, t as ce, e as q, l as le } from "./index-BjvGB6TE.js";
3
3
  import { useQuery as y } from "@tanstack/react-query";
4
4
  import { useState as H, useMemo as g, useCallback as M } from "react";
5
5
  import { useTranslation as me } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as $ } from "react/jsx-runtime";
2
- import { i as V, V as N, j as q, D as k, _ as w, x as K, k as Q, u as M, m as G, n as j, r as H, q as P, s as J, v as Y, O as x, J as z } from "./index-Bn92GwzX.js";
2
+ import { i as V, V as N, j as q, D as k, _ as w, x as K, k as Q, u as M, m as G, n as j, r as H, q as P, s as J, v as Y, O as x, J as z } from "./index-BjvGB6TE.js";
3
3
  import { useQueries as W, useQuery as X } from "@tanstack/react-query";
4
4
  import { useRef as Z, useEffect as _, useMemo as O } from "react";
5
5
  import { useTranslation as S } from "react-i18next";
@@ -72134,7 +72134,7 @@ const ws = (t, e) => t?.length === 0 ? !1 : e?.length === 0, dYe = async () => {
72134
72134
  });
72135
72135
  const i = mYe + a.toString();
72136
72136
  return $t(i);
72137
- }, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names))),auditInfo,attributes)", wYe = (t) => `${br}/bahmniprogramenrollment?patient=${t}&v=${Cde}`, Tde = (t) => `${br}/bahmniprogramenrollment/${t}`, vYe = (t) => `${Tde(t)}?v=${Cde}`, EYe = async (t) => await $t(wYe(t)), yYe = async (t) => await $t(vYe(t)), VYe = async (t, e) => {
72137
+ }, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", wYe = (t) => `${br}/bahmniprogramenrollment?patient=${t}&v=${Cde}`, Tde = (t) => `${br}/bahmniprogramenrollment/${t}`, vYe = (t) => `${Tde(t)}?v=${Cde}`, EYe = async (t) => await $t(wYe(t)), yYe = async (t) => await $t(vYe(t)), VYe = async (t, e) => {
72138
72138
  const r = {
72139
72139
  uuid: t,
72140
72140
  states: [
@@ -72156,15 +72156,13 @@ function Ode(t) {
72156
72156
  const r = t.states.filter(
72157
72157
  (n) => n.endDate !== null
72158
72158
  ).sort((n, a) => {
72159
- const i = new Date(n.endDate).getTime(), s = new Date(a.endDate).getTime();
72159
+ const i = new Date(n.auditInfo.dateCreated).getTime(), s = new Date(a.auditInfo.dateCreated).getTime();
72160
72160
  return i - s;
72161
72161
  });
72162
72162
  e = r[r.length - 1];
72163
72163
  } else
72164
72164
  e = t.states.find((r) => r.endDate === null);
72165
- return e ? PUe(
72166
- e.state.concept.names
72167
- ) ?? e.state.concept.display : null;
72165
+ return e ? PUe(e.state.concept.names) ?? e.state.concept.display : null;
72168
72166
  }
72169
72167
  function Lde(t, e) {
72170
72168
  if (e.length === 0)
@@ -78594,7 +78592,7 @@ const rrt = () => {
78594
78592
  },
78595
78593
  {
78596
78594
  type: "forms",
78597
- component: nn(() => import("./FormsTable-DGv2VghU.js"))
78595
+ component: nn(() => import("./FormsTable-DD9_nkDn.js"))
78598
78596
  },
78599
78597
  {
78600
78598
  type: "labOrders",
@@ -78602,7 +78600,7 @@ const rrt = () => {
78602
78600
  },
78603
78601
  {
78604
78602
  type: "observations",
78605
- component: nn(() => import("./Observations-C7Z9vG6y.js"))
78603
+ component: nn(() => import("./Observations-Inw_xlv1.js"))
78606
78604
  },
78607
78605
  {
78608
78606
  type: "ordersControl",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { X as t, T as s, A as o, w as r, C as n, y as g, G as l, B as P, M as c, N as d, K as v, P as T, F as b, I as A, z as W, R as m, S as p, U as f, E as u, a2 as C, a1 as R, Z as y, $ as I, a0 as S, Y as U, a3 as D, W as N, m as h, u as w, Q as x } from "./index-Bn92GwzX.js";
1
+ import { X as t, T as s, A as o, w as r, C as n, y as g, G as l, B as P, M as c, N as d, K as v, P as T, F as b, I as A, z as W, R as m, S as p, U as f, E as u, a2 as C, a1 as R, Z as y, $ as I, a0 as S, Y as U, a3 as D, W as N, m as h, u as w, Q as x } from "./index-BjvGB6TE.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.149",
3
+ "version": "0.0.1-dev.150",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",