@bahmni/widgets 0.0.1-dev.103 → 0.0.1-dev.105
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 p, jsx as e, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { u as Q,
|
|
2
|
+
import { u as Q, _ as Y, b as J, E as W, h as X, i as Z, S as ee, V as I, a as re, f as oe, A as ae, z as te, c as V, s as ne } from "./index-BwOAdUc7.js";
|
|
3
3
|
import { useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as x, useMemo as u, useCallback as g } from "react";
|
|
5
5
|
import { createPortal as se } from "react-dom";
|
|
@@ -120,7 +120,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
120
120
|
}, [n, A]), {
|
|
121
121
|
data: Ae,
|
|
122
122
|
isLoading: k,
|
|
123
|
-
error:
|
|
123
|
+
error: F
|
|
124
124
|
} = f({
|
|
125
125
|
queryKey: ["formMetadata", N],
|
|
126
126
|
queryFn: () => W(N),
|
|
@@ -128,7 +128,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
128
128
|
}), {
|
|
129
129
|
data: y,
|
|
130
130
|
isLoading: H,
|
|
131
|
-
error:
|
|
131
|
+
error: w
|
|
132
132
|
} = f({
|
|
133
133
|
queryKey: ["formsEncounter", n?.encounterUuid],
|
|
134
134
|
queryFn: () => X(n.encounterUuid, !0),
|
|
@@ -242,7 +242,7 @@ const de = "_formsTableBody_ua0cn_1", me = "_customAccordianItem_ua0cn_6", ie =
|
|
|
242
242
|
passiveModal: !0,
|
|
243
243
|
size: "md",
|
|
244
244
|
testId: "form-details-modal",
|
|
245
|
-
children: /* @__PURE__ */ e("div", { className: o.formContent, children: k || H ? /* @__PURE__ */ e(te, { width: "100%", lineCount: 3 }) :
|
|
245
|
+
children: /* @__PURE__ */ e("div", { className: o.formContent, children: k || H ? /* @__PURE__ */ e(te, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ e("div", { children: V(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ e("div", { children: V(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : T.length > 0 ? /* @__PURE__ */ e("div", { className: o.formDetailsContainer, children: T.map((t, d) => /* @__PURE__ */ e(
|
|
246
246
|
Re,
|
|
247
247
|
{
|
|
248
248
|
observation: t,
|
|
@@ -75313,7 +75313,7 @@ const NGe = [
|
|
|
75313
75313
|
},
|
|
75314
75314
|
{
|
|
75315
75315
|
type: "forms",
|
|
75316
|
-
component: w1(() => import("./FormsTable-
|
|
75316
|
+
component: w1(() => import("./FormsTable-BkEYszLa.js"))
|
|
75317
75317
|
}
|
|
75318
75318
|
];
|
|
75319
75319
|
class Xr {
|
|
@@ -75368,7 +75368,7 @@ export {
|
|
|
75368
75368
|
l4 as A,
|
|
75369
75369
|
dKe as C,
|
|
75370
75370
|
vKe as D,
|
|
75371
|
-
|
|
75371
|
+
QGe as E,
|
|
75372
75372
|
uGe as G,
|
|
75373
75373
|
CYe as L,
|
|
75374
75374
|
aYe as M,
|
|
@@ -75378,14 +75378,15 @@ export {
|
|
|
75378
75378
|
Vke as S,
|
|
75379
75379
|
xGe as U,
|
|
75380
75380
|
Qr as V,
|
|
75381
|
+
eJe as _,
|
|
75381
75382
|
Ai as a,
|
|
75382
|
-
|
|
75383
|
-
|
|
75384
|
-
|
|
75385
|
-
|
|
75386
|
-
|
|
75387
|
-
|
|
75388
|
-
|
|
75383
|
+
XGe as b,
|
|
75384
|
+
tr as c,
|
|
75385
|
+
LWe as d,
|
|
75386
|
+
Oce as e,
|
|
75387
|
+
_i as f,
|
|
75388
|
+
nJe as g,
|
|
75389
|
+
JGe as h,
|
|
75389
75390
|
Cr as i,
|
|
75390
75391
|
rGe as j,
|
|
75391
75392
|
bGe as k,
|
|
@@ -75400,8 +75401,7 @@ export {
|
|
|
75400
75401
|
cJe as t,
|
|
75401
75402
|
C1 as u,
|
|
75402
75403
|
dJe as v,
|
|
75403
|
-
|
|
75404
|
-
|
|
75405
|
-
hJe as y,
|
|
75404
|
+
uJe as w,
|
|
75405
|
+
hJe as x,
|
|
75406
75406
|
Eke as z
|
|
75407
75407
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as s, C as t, D as o, G as r, L as g, M as n, N as l, m as d, P as c, k as P, R as v, g as b, U as T, j as u, e as W, w as f, v as m, p, q as y, t as C, r as U, x as A, n as D, l as N, u as R, o as S } from "./index-BwOAdUc7.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
s as AllergiesTable,
|
|
@@ -17,14 +17,14 @@ export {
|
|
|
17
17
|
u as VitalFlowSheet,
|
|
18
18
|
W as conditionsQueryKeys,
|
|
19
19
|
f as getAllWidgetConfigs,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
m as getAllWidgetTypes,
|
|
21
|
+
p as getWidget,
|
|
22
|
+
y as getWidgetConfig,
|
|
23
23
|
C as hasWidget,
|
|
24
24
|
U as registerWidget,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
A as resetWidgetRegistry,
|
|
26
|
+
D as useActivePractitioner,
|
|
27
|
+
N as useNotification,
|
|
28
|
+
R as usePatientUUID,
|
|
29
|
+
S as useUserPrivilege
|
|
30
30
|
};
|