@bahmni/widgets 0.0.1-dev.330 → 0.0.1-dev.331
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.
- package/dist/{DocumentsTable-Cf3p9347.js → DocumentsTable-CVLDm1ld.js} +1 -1
- package/dist/{FormsTable-B4_TlgZN.js → FormsTable-FpRK2ZFq.js} +1 -1
- package/dist/{Observations-Dn1nN_ai.js → Observations-DDuq0ing.js} +1 -1
- package/dist/{index-CjcMwA1O.js → index-Cvg_wxJX.js} +13 -13
- package/dist/index.js +1 -1
- package/dist/tasks/components/TaskActions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, a as Z, z as X, Z as J, i as x, j as ee, P as te } from "./index-
|
|
2
|
+
import { u as W, a as Z, z as X, Z as J, i as x, j as ee, P as te } from "./index-Cvg_wxJX.js";
|
|
3
3
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
|
|
5
5
|
import { useTranslation as ae } from "react-i18next";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as oe, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import { b as se, u as ae, c as ne, T as de, _ as ie, v as ce, o as le, M as me, q as j, i as ue, Z as fe, j as k, d as ye, R as pe, P as be, O as he } from "./index-
|
|
2
|
+
import { b as se, u as ae, c as ne, T as de, _ as ie, v as ce, o as le, M as me, q as j, i as ue, Z as fe, j as k, d as ye, R as pe, P as be, O as he } from "./index-Cvg_wxJX.js";
|
|
3
3
|
import { useQueryClient as ge, useQuery as b } from "@tanstack/react-query";
|
|
4
4
|
import { useState as x, useMemo as d, useCallback as h } from "react";
|
|
5
5
|
import { useTranslation as Fe } from "react-i18next";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { f as H, J as D, t as K, s as V, F as k, X as w, e as j, Q as q, u as G, a as P, g as z, h as J, M as X, k as Y, l as W, m as Z, n as x, j as ee } from "./index-
|
|
2
|
+
import { f as H, J as D, t as K, s as V, F as k, X as w, e as j, Q as q, u as G, a as P, g as z, h as J, M as X, k as Y, l as W, m as Z, n as x, j as ee } from "./index-Cvg_wxJX.js";
|
|
3
3
|
import { useQueries as te, useQuery as se } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as oe, useEffect as S, useMemo as g } from "react";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
@@ -104262,24 +104262,24 @@ ${_.formattedResult}`
|
|
|
104262
104262
|
actionConfig: e,
|
|
104263
104263
|
episodeOfCareUuids: t
|
|
104264
104264
|
}) => {
|
|
104265
|
-
const { userPrivileges: o } = Pa(), a = Uqt(e, r.code), { data:
|
|
104265
|
+
const { userPrivileges: o } = Pa(), { t: a } = Et(), i = Uqt(e, r.code), { data: l = [], isLoading: s } = Pt({
|
|
104266
104266
|
queryKey: ["observationForms", t],
|
|
104267
104267
|
queryFn: () => c_t(t),
|
|
104268
|
-
enabled:
|
|
104269
|
-
}),
|
|
104270
|
-
if (
|
|
104268
|
+
enabled: i
|
|
104269
|
+
}), c = Te(() => e ? e.find((g) => g.taskCode === r.code) : null, [e, r.code]), d = Te(() => !c?.actions || s ? [] : c.actions.filter((g) => Da(o, g.requiredPrivileges) ? Wqt(g, r, l, o) : !1), [c, o, l, s, r]);
|
|
104270
|
+
if (d.length === 0)
|
|
104271
104271
|
return null;
|
|
104272
|
-
const
|
|
104272
|
+
const u = d[0], m = r.status !== Gqt;
|
|
104273
104273
|
return /* @__PURE__ */ Z(
|
|
104274
104274
|
ao,
|
|
104275
104275
|
{
|
|
104276
|
-
label:
|
|
104276
|
+
label: a(u.label),
|
|
104277
104277
|
kind: "ghost",
|
|
104278
104278
|
size: "sm",
|
|
104279
|
-
onClick: () => Kqt(
|
|
104280
|
-
testId: `task-action-${
|
|
104281
|
-
disabled:
|
|
104282
|
-
children: /* @__PURE__ */ Z(Tr, { name:
|
|
104279
|
+
onClick: () => Kqt(u, r),
|
|
104280
|
+
testId: `task-action-${u.type}-${r.id}`,
|
|
104281
|
+
disabled: m,
|
|
104282
|
+
children: /* @__PURE__ */ Z(Tr, { name: u.icon, id: `task-action-icon-${r.id}` })
|
|
104283
104283
|
}
|
|
104284
104284
|
);
|
|
104285
104285
|
}, Jqt = "TaskList-module_completedStatus__ubQOk", Xqt = "TaskList-module_activeStatus__2Pku3", Qqt = "TaskList-module_scheduledStatus__theUP", eKt = "TaskList-module_cancelledStatus__72eup", tKt = "TaskList-module_stoppedStatus__SQvC1", rKt = "TaskList-module_defaultStatus__cdKao", nKt = "TaskList-module_tasksTableBody__xNB7S", oKt = "TaskList-module_emptyState__D-JLC", Z2 = {
|
|
@@ -107817,7 +107817,7 @@ const AXt = [
|
|
|
107817
107817
|
},
|
|
107818
107818
|
{
|
|
107819
107819
|
type: "patientDocuments",
|
|
107820
|
-
component: Z1(() => import("./DocumentsTable-
|
|
107820
|
+
component: Z1(() => import("./DocumentsTable-CVLDm1ld.js"))
|
|
107821
107821
|
},
|
|
107822
107822
|
{
|
|
107823
107823
|
type: "flowSheet",
|
|
@@ -107825,7 +107825,7 @@ const AXt = [
|
|
|
107825
107825
|
},
|
|
107826
107826
|
{
|
|
107827
107827
|
type: "forms",
|
|
107828
|
-
component: Z1(() => import("./FormsTable-
|
|
107828
|
+
component: Z1(() => import("./FormsTable-FpRK2ZFq.js"))
|
|
107829
107829
|
},
|
|
107830
107830
|
{
|
|
107831
107831
|
type: "labOrders",
|
|
@@ -107833,7 +107833,7 @@ const AXt = [
|
|
|
107833
107833
|
},
|
|
107834
107834
|
{
|
|
107835
107835
|
type: "observations",
|
|
107836
|
-
component: Z1(() => import("./Observations-
|
|
107836
|
+
component: Z1(() => import("./Observations-DDuq0ing.js"))
|
|
107837
107837
|
},
|
|
107838
107838
|
{
|
|
107839
107839
|
type: "ordersControl",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ab as t, a9 as i, A as o, a8 as r, x as n, a6 as g, Y as c, ah as l, y as d, C as P, B as m, D as v, p as T, a7 as u, I as C, U as b, L as p, ap as A, ar as I, as as S, E as W, a0 as f, a1 as D, O as L, w as R, N as h, W as y, H as E, G as N, S as U, K as O, a5 as x, V as G, ag as H, ad as _, ac as V, an as k, am as q, af as w, aj as B, ak as M, al as j, ae as z, ai as F, r as K, ao as Y, aa as $, $ as J, a2 as Q, a4 as X, aq as Z, a as aa, u as ea, a3 as sa } from "./index-
|
|
1
|
+
import { ab as t, a9 as i, A as o, a8 as r, x as n, a6 as g, Y as c, ah as l, y as d, C as P, B as m, D as v, p as T, a7 as u, I as C, U as b, L as p, ap as A, ar as I, as as S, E as W, a0 as f, a1 as D, O as L, w as R, N as h, W as y, H as E, G as N, S as U, K as O, a5 as x, V as G, ag as H, ad as _, ac as V, an as k, am as q, af as w, aj as B, ak as M, al as j, ae as z, ai as F, r as K, ao as Y, aa as $, $ as J, a2 as Q, a4 as X, aq as Z, a as aa, u as ea, a3 as sa } from "./index-Cvg_wxJX.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
t as ActivePractitionerContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskActions.d.ts","sourceRoot":"","sources":["../../../src/tasks/components/TaskActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TaskActions.d.ts","sourceRoot":"","sources":["../../../src/tasks/components/TaskActions.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAMjE,UAAU,gBAAgB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|