@bahmni/widgets 0.0.1-dev.221 → 0.0.1-dev.222

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
- import { jsx as s, jsxs as _, Fragment as Q } from "react/jsx-runtime";
2
- import { u as W, a as X, K as J, r as Z, w as x, b as ee, y as te } from "./index-Bf5IwO7Y.js";
1
+ import { jsx as s, jsxs as _, Fragment as K } from "react/jsx-runtime";
2
+ import { u as Q, a as X, W as J, r as Z, b as x, c as ee, y as te } from "./index-Bjn1f4Rq.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as p, useEffect as N, useMemo as f } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -35,14 +35,14 @@ const _e = [
35
35
  "uploadedBy",
36
36
  "action"
37
37
  ], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ne = ({ config: n, encounterUuids: E }) => {
38
- const [d, L] = l(!1), [r, M] = l(
38
+ const [d, M] = l(!1), [r, U] = l(
39
39
  null
40
40
  ), [P, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), T = W(), { t: o } = ae(), { addNotification: U } = X(), F = Number(n?.pageSize) || 5, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b = p((e) => {
43
- M(e), L(!0);
42
+ ), T = Q(), { t: o } = ae(), { addNotification: w } = X(), F = Number(n?.pageSize) || 5, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b = p((e) => {
43
+ U(e), M(!0);
44
44
  }, []), V = p(() => {
45
- L(!1), M(null), A(/* @__PURE__ */ new Set());
45
+ M(!1), U(null), A(/* @__PURE__ */ new Set());
46
46
  }, []), B = p((e) => {
47
47
  A((t) => new Set(t).add(e));
48
48
  }, []), { data: u, isLoading: z, isError: y, error: S } = ne({
@@ -66,12 +66,12 @@ const _e = [
66
66
  }, [u]), N(() => {
67
67
  O(1), C(void 0);
68
68
  }, [T]), N(() => {
69
- y && U({
69
+ y && w({
70
70
  title: o("ERROR_DEFAULT_TITLE"),
71
71
  message: S?.message ?? "",
72
72
  type: "error"
73
73
  });
74
- }, [y, S, U, o]), N(() => {
74
+ }, [y, S, w, o]), N(() => {
75
75
  const e = new AbortController();
76
76
  return (async () => {
77
77
  if (!d || !r) return;
@@ -83,8 +83,8 @@ const _e = [
83
83
  method: "HEAD",
84
84
  signal: e.signal
85
85
  })).ok || a.add(i);
86
- } catch (w) {
87
- w instanceof Error && w.name !== "AbortError" && a.add(i);
86
+ } catch (L) {
87
+ L instanceof Error && L.name !== "AbortError" && a.add(i);
88
88
  }
89
89
  }
90
90
  e.signal.aborted || A(a);
@@ -98,7 +98,7 @@ const _e = [
98
98
  ), g = f(
99
99
  () => n?.fields ?? _e,
100
100
  [n?.fields]
101
- ), q = f(() => [...u?.documents ?? []].sort((t, a) => !t.uploadedOn && !a.uploadedOn ? 0 : t.uploadedOn ? a.uploadedOn ? new Date(a.uploadedOn).getTime() - new Date(t.uploadedOn).getTime() : -1 : 1), [u]), K = f(() => he(g, o), [g, o]), G = f(
101
+ ), q = f(() => [...u?.documents ?? []].sort((t, a) => !t.uploadedOn && !a.uploadedOn ? 0 : t.uploadedOn ? a.uploadedOn ? new Date(a.uploadedOn).getTime() - new Date(t.uploadedOn).getTime() : -1 : 1), [u]), G = f(() => he(g, o), [g, o]), W = f(
102
102
  () => g.map((e) => ({
103
103
  key: e,
104
104
  sortable: e !== "action"
@@ -138,16 +138,16 @@ const _e = [
138
138
  },
139
139
  [b, o]
140
140
  );
141
- return /* @__PURE__ */ _(Q, { children: [
141
+ return /* @__PURE__ */ _(K, { children: [
142
142
  /* @__PURE__ */ s("div", { "data-testid": "documents-table", children: /* @__PURE__ */ s(
143
143
  ee,
144
144
  {
145
- headers: K,
145
+ headers: G,
146
146
  ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
147
147
  rows: q,
148
148
  loading: z,
149
149
  errorStateMessage: y ? S?.message : null,
150
- sortable: G,
150
+ sortable: W,
151
151
  emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
152
152
  renderCell: Y,
153
153
  className: c.documentsTableBody,
@@ -1,55 +1,55 @@
1
1
  import { jsx as n, jsxs as X, Fragment as Z } from "react/jsx-runtime";
2
- import { F as ee, u as re, S as te, I as oe, N as ae, P as se, _ as ne, z as de, R as C, w as ie, r as me, b as U, Q as ce, e as le, y as ue, O as fe } from "./index-Bf5IwO7Y.js";
2
+ import { V as ee, u as re, $ as te, D as oe, I as ae, C as se, R as ne, K as de, d as q, b as ie, r as me, c as U, Q as ce, e as le, y as ue, O as fe } from "./index-Bjn1f4Rq.js";
3
3
  import { useQueryClient as ye, useQuery as f } from "@tanstack/react-query";
4
4
  import { useState as x, useMemo as d, useCallback as y } from "react";
5
5
  import { useTranslation as pe } from "react-i18next";
6
- const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
6
+ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", v = {
7
7
  formsTableBody: be,
8
- customAccordianItem: Fe
9
- }, Ne = (m) => m ? m.extension?.find(
8
+ customAccordianItem: ge
9
+ }, he = (m) => m ? m.extension?.find(
10
10
  (p) => p.url === ee
11
- )?.valueString : void 0, Ie = ({
11
+ )?.valueString : void 0, De = ({
12
12
  episodeOfCareUuids: m,
13
13
  encounterUuids: i,
14
14
  config: p
15
15
  }) => {
16
- const { t: s } = pe(), c = re(), [l, E] = x(!1), [t, I] = x(null), { numberOfVisits: P, hideThumbnail: k = !1 } = p ?? {}, D = te(
16
+ const { t: s } = pe(), c = re(), [l, E] = x(!1), [t, D] = x(null), { numberOfVisits: k, hideThumbnail: K = !1 } = p ?? {}, I = te(
17
17
  m,
18
18
  i
19
- ), w = ye(), {
19
+ ), P = ye(), {
20
20
  data: b = [],
21
21
  isLoading: M,
22
- isError: A,
23
- error: H,
24
- refetch: K
22
+ isError: R,
23
+ error: V,
24
+ refetch: $
25
25
  } = f({
26
26
  queryKey: ["forms", c, m],
27
- queryFn: () => oe(c, void 0, P),
28
- enabled: !!c && !D
29
- }), B = d(() => !i || i.length === 0 ? b : b.filter(
27
+ queryFn: () => oe(c, void 0, k),
28
+ enabled: !!c && !I
29
+ }), A = d(() => !i || i.length === 0 ? b : b.filter(
30
30
  (e) => i.includes(e.encounterUuid)
31
- ), [b, i]), { data: R = [] } = f({
31
+ ), [b, i]), { data: B = [] } = f({
32
32
  queryKey: ["observationForms"],
33
33
  queryFn: () => ae()
34
34
  }), T = y(
35
- (e) => R.find((r) => r.name === e)?.uuid,
36
- [R]
37
- ), F = d(() => {
35
+ (e) => B.find((r) => r.name === e)?.uuid,
36
+ [B]
37
+ ), g = d(() => {
38
38
  if (t)
39
39
  return T(t.formName);
40
40
  }, [t, T]), {
41
- isLoading: Q,
42
- isError: j,
43
- error: N
41
+ isLoading: H,
42
+ isError: Q,
43
+ error: h
44
44
  } = f({
45
- queryKey: ["formMetadata", F],
46
- queryFn: () => se(F),
47
- enabled: !!F && l
45
+ queryKey: ["formMetadata", g],
46
+ queryFn: () => se(g),
47
+ enabled: !!g && l
48
48
  }), {
49
- data: g,
50
- isLoading: z,
51
- isError: V,
52
- error: h
49
+ data: F,
50
+ isLoading: j,
51
+ isError: w,
52
+ error: N
53
53
  } = f({
54
54
  queryKey: ["formsEncounterFHIR", t?.encounterUuid],
55
55
  queryFn: () => ne(t.encounterUuid),
@@ -57,19 +57,19 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
57
57
  });
58
58
  de(
59
59
  (e) => {
60
- e.patientUUID === c && e.updatedConcepts.size > 0 && (K(), w.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
60
+ e.patientUUID === c && e.updatedConcepts.size > 0 && ($(), P.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
61
61
  },
62
62
  [c]
63
63
  );
64
- const $ = d(() => !g?.entry || !t?.formName ? [] : g.entry.filter((a) => a.resource?.resourceType === "Observation").map((a) => a.resource).filter((a) => {
65
- const r = Ne(a);
64
+ const z = d(() => !F?.entry || !t?.formName ? [] : F.entry.filter((a) => a.resource?.resourceType === "Observation").map((a) => a.resource).filter((a) => {
65
+ const r = he(a);
66
66
  return !r || r.includes(t.formName);
67
- }), [g, t?.formName]), G = d(() => {
68
- if (N)
69
- return C(N).message;
67
+ }), [F, t?.formName]), G = d(() => {
70
68
  if (h)
71
- return C(h).message;
72
- }, [N, h]), _ = d(
69
+ return q(h).message;
70
+ if (N)
71
+ return q(N).message;
72
+ }, [h, N]), L = d(
73
73
  () => [
74
74
  { key: "recordedOn", header: s("RECORDED_ON") },
75
75
  { key: "recordedBy", header: s("RECORDED_BY") }
@@ -81,8 +81,8 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
81
81
  { key: "recordedBy", sortable: !0 }
82
82
  ],
83
83
  []
84
- ), L = d(() => {
85
- const e = B.reduce(
84
+ ), _ = d(() => {
85
+ const e = A.reduce(
86
86
  (r, o) => {
87
87
  const u = o.formName;
88
88
  r[u] ??= [];
@@ -106,38 +106,38 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
106
106
  )
107
107
  })
108
108
  ).sort((r, o) => r.formName.localeCompare(o.formName));
109
- }, [B, s]), S = y((e) => {
110
- I(e), E(!0);
109
+ }, [A, s]), C = y((e) => {
110
+ D(e), E(!0);
111
111
  }, []), J = y(() => {
112
- E(!1), I(null);
113
- }, []), q = y(
112
+ E(!1), D(null);
113
+ }, []), S = y(
114
114
  (e, a) => {
115
115
  switch (a) {
116
116
  case "recordedOn":
117
- return /* @__PURE__ */ n(me, { onClick: () => S(e), children: e.recordedOn });
117
+ return /* @__PURE__ */ n(me, { onClick: () => C(e), children: e.recordedOn });
118
118
  case "recordedBy":
119
119
  return e.recordedBy;
120
120
  default:
121
121
  return null;
122
122
  }
123
123
  },
124
- [S]
124
+ [C]
125
125
  );
126
126
  return /* @__PURE__ */ X(Z, { children: [
127
- /* @__PURE__ */ n("div", { "data-testid": "forms-table", children: M || A || L.length === 0 || D ? /* @__PURE__ */ n(
127
+ /* @__PURE__ */ n("div", { "data-testid": "forms-table", children: M || R || _.length === 0 || I ? /* @__PURE__ */ n(
128
128
  U,
129
129
  {
130
- headers: _,
130
+ headers: L,
131
131
  ariaLabel: s("FORMS_HEADING"),
132
132
  rows: [],
133
133
  loading: M,
134
- errorStateMessage: A ? H?.message : void 0,
134
+ errorStateMessage: R ? V?.message : void 0,
135
135
  emptyStateMessage: s("FORMS_UNAVAILABLE"),
136
- renderCell: q,
136
+ renderCell: S,
137
137
  className: v.formsTableBody,
138
138
  dataTestId: "forms-table"
139
139
  }
140
- ) : /* @__PURE__ */ n(ce, { align: "start", children: L.map((e, a) => {
140
+ ) : /* @__PURE__ */ n(ce, { align: "start", children: _.map((e, a) => {
141
141
  const { formName: r, records: o } = e;
142
142
  return /* @__PURE__ */ n(
143
143
  le,
@@ -149,14 +149,14 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
149
149
  children: /* @__PURE__ */ n(
150
150
  U,
151
151
  {
152
- headers: _,
152
+ headers: L,
153
153
  ariaLabel: s("FORMS_HEADING"),
154
154
  rows: o,
155
155
  loading: !1,
156
156
  errorStateMessage: "",
157
157
  sortable: Y,
158
158
  emptyStateMessage: s("FORMS_UNAVAILABLE"),
159
- renderCell: q,
159
+ renderCell: S,
160
160
  className: v.formsTableBody,
161
161
  dataTestId: `forms-table-${r}`
162
162
  }
@@ -180,13 +180,13 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
180
180
  children: /* @__PURE__ */ n(
181
181
  fe,
182
182
  {
183
- observations: $,
184
- isLoading: Q || z,
185
- isError: j || V,
183
+ observations: z,
184
+ isLoading: H || j,
185
+ isError: Q || w,
186
186
  errorMessage: G,
187
187
  emptyStateMessage: s("NO_FORM_DATA_AVAILABLE"),
188
188
  testIdPrefix: t.formName,
189
- hideThumbnail: k
189
+ hideThumbnail: K
190
190
  }
191
191
  )
192
192
  }
@@ -194,5 +194,5 @@ const be = "_formsTableBody_81hra_1", Fe = "_customAccordianItem_81hra_6", v = {
194
194
  ] });
195
195
  };
196
196
  export {
197
- Ie as default
197
+ De as default
198
198
  };
@@ -1,32 +1,32 @@
1
- import { jsx as l, jsxs as C } from "react/jsx-runtime";
2
- import { f as k, g as D, t as q, c as w, l as K, M as Q, V as P, E as G, u as j, a as z, d as H, h as Y, z as J, i as W, j as X, s as Z, k as x, b as ee } from "./index-Bf5IwO7Y.js";
1
+ import { jsx as d, jsxs as S } from "react/jsx-runtime";
2
+ import { f as V, g as D, t as k, A as q, l as Q, M as w, h as G, E as P, u as j, a as H, i as z, j as Y, K as J, k as W, m as X, s as Z, n as x, c as ee } from "./index-Bjn1f4Rq.js";
3
3
  import { useQueries as te, useQuery as se } from "@tanstack/react-query";
4
- import { useRef as oe, useEffect as N, useMemo as g } from "react";
4
+ import { useRef as oe, useEffect as C, useMemo as g } from "react";
5
5
  import { useTranslation as U } from "react-i18next";
6
- const B = (t, i, c, d, u, r) => {
7
- const s = q(t, i, u), o = s.value, a = w(o);
6
+ const A = (t, i, c, l, u, r) => {
7
+ const s = k(t, i, u), o = s.value, a = q(o);
8
8
  let n = o;
9
- a === "Image" && (n = /* @__PURE__ */ l(
10
- Q,
9
+ a === "Image" && (n = /* @__PURE__ */ d(
10
+ w,
11
11
  {
12
12
  imageSrc: o,
13
13
  alt: o,
14
14
  id: `${o}-img`,
15
15
  hideThumbnail: r
16
16
  }
17
- )), a === "Video" && (n = /* @__PURE__ */ l(
18
- P,
17
+ )), a === "Video" && (n = /* @__PURE__ */ d(
18
+ G,
19
19
  {
20
20
  id: `${o}-video`,
21
21
  videoSrc: o,
22
22
  hideThumbnail: r
23
23
  }
24
- )), a === "PDF" && (n = /* @__PURE__ */ l(G, { id: `${o}-pdf`, src: o }));
24
+ )), a === "PDF" && (n = /* @__PURE__ */ d(P, { id: `${o}-pdf`, src: o }));
25
25
  const b = u("OBSERVATIONS_RECORDED_BY", {
26
26
  provider: s.provider
27
- }), p = t.display, m = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", y = d ? `${d}-${m}-${p}-${c}-${i}` : `${m}-${p}-${c}-${i}`;
28
- return /* @__PURE__ */ l(
29
- K,
27
+ }), p = t.display, m = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", y = l ? `${l}-${m}-${p}-${c}-${i}` : `${m}-${p}-${c}-${i}`;
28
+ return /* @__PURE__ */ d(
29
+ Q,
30
30
  {
31
31
  header: s.header,
32
32
  value: n,
@@ -37,14 +37,14 @@ const B = (t, i, c, d, u, r) => {
37
37
  },
38
38
  `obs-${t.id}`
39
39
  );
40
- }, re = (t, i, c, d, u, r, s) => /* @__PURE__ */ l(
40
+ }, re = (t, i, c, l, u, r, s) => /* @__PURE__ */ d(
41
41
  D,
42
42
  {
43
43
  title: t.display,
44
- id: `grouped-obs-${t.display}-${d}`,
44
+ id: `grouped-obs-${t.display}-${l}`,
45
45
  open: c,
46
46
  children: t.members?.map(
47
- (o, a) => B(
47
+ (o, a) => A(
48
48
  o,
49
49
  a,
50
50
  u,
@@ -60,9 +60,9 @@ const B = (t, i, c, d, u, r) => {
60
60
  title: i = "",
61
61
  hideThumbnail: c
62
62
  }) => {
63
- const { t: d } = U(), u = (r, s, o) => {
64
- const a = k(r.encounterDetails, d);
65
- return /* @__PURE__ */ C(
63
+ const { t: l } = U(), u = (r, s, o) => {
64
+ const a = V(r.encounterDetails, l);
65
+ return /* @__PURE__ */ S(
66
66
  D,
67
67
  {
68
68
  title: a,
@@ -70,19 +70,19 @@ const B = (t, i, c, d, u, r) => {
70
70
  open: s,
71
71
  children: [
72
72
  r.observations.map(
73
- (n, b) => B(
73
+ (n, b) => A(
74
74
  n,
75
75
  b,
76
76
  o,
77
77
  i,
78
- d,
78
+ l,
79
79
  c
80
80
  )
81
81
  ),
82
82
  r.groupedObservations.map(
83
83
  (n, b) => re(
84
84
  n,
85
- d,
85
+ l,
86
86
  s,
87
87
  b,
88
88
  o,
@@ -95,7 +95,7 @@ const B = (t, i, c, d, u, r) => {
95
95
  `encounter-${r.encounterId}`
96
96
  );
97
97
  };
98
- return /* @__PURE__ */ l(
98
+ return /* @__PURE__ */ d(
99
99
  "div",
100
100
  {
101
101
  id: "obs-by-encounter",
@@ -106,22 +106,22 @@ const B = (t, i, c, d, u, r) => {
106
106
  )
107
107
  }
108
108
  );
109
- }, ne = "_observations_kfbhq_1", ie = "_title_kfbhq_12", S = {
109
+ }, ne = "_observations_kfbhq_1", ie = "_title_kfbhq_12", N = {
110
110
  observations: ne,
111
111
  title: ie
112
- }, ce = (t) => ["conceptUuid", t], de = (t, i) => ["observations", t, ...i], ve = ({ config: t }) => {
112
+ }, ce = (t) => ["conceptUuid", t], le = (t, i) => ["observations", t, ...i], ve = ({ config: t }) => {
113
113
  const i = t, {
114
114
  conceptNames: c = [],
115
- conceptUuid: d = [],
115
+ conceptUuid: l = [],
116
116
  hideThumbnail: u = !1
117
- } = i, r = oe(/* @__PURE__ */ new Set()), s = j(), { addNotification: o } = z(), { t: a } = U(), n = te({
117
+ } = i, r = oe(/* @__PURE__ */ new Set()), s = j(), { addNotification: o } = H(), { t: a } = U(), n = te({
118
118
  queries: c.map((e) => ({
119
119
  queryKey: ce(e),
120
- queryFn: () => H(e),
120
+ queryFn: () => z(e),
121
121
  enabled: !!e
122
122
  }))
123
123
  });
124
- N(() => {
124
+ C(() => {
125
125
  n.forEach((e, v) => {
126
126
  if (e.isError && !r.current.has(v)) {
127
127
  const R = c[v];
@@ -133,13 +133,13 @@ const B = (t, i, c, d, u, r) => {
133
133
  } else e.isError || r.current.delete(v);
134
134
  });
135
135
  }, [n, c]);
136
- const b = g(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = g(() => [.../* @__PURE__ */ new Set([...b, ...d])], [b, d]), f = g(() => c.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, c.length]), {
136
+ const b = g(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = g(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), f = g(() => c.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, c.length]), {
137
137
  data: m,
138
138
  isLoading: y,
139
139
  isError: O,
140
140
  refetch: T
141
141
  } = se({
142
- queryKey: de(s, p),
142
+ queryKey: le(s, p),
143
143
  queryFn: () => Y(s, p),
144
144
  enabled: !!s && p.length > 0 && f
145
145
  });
@@ -150,7 +150,7 @@ const B = (t, i, c, d, u, r) => {
150
150
  ) && T();
151
151
  },
152
152
  [s, T]
153
- ), N(() => {
153
+ ), C(() => {
154
154
  O && o({
155
155
  title: a("ERROR_DEFAULT_TITLE"),
156
156
  message: a("ERROR_FETCHING_OBSERVATIONS"),
@@ -161,40 +161,40 @@ const B = (t, i, c, d, u, r) => {
161
161
  if (!m) return [];
162
162
  const e = W(m), v = X(e);
163
163
  return Z(v);
164
- }, [m]), A = [
164
+ }, [m]), B = [
165
165
  { key: "name", header: "name" },
166
166
  { key: "value", header: "value" },
167
167
  { key: "form", header: "form" }
168
- ], _ = y || !f, $ = O && f, F = (!m || m.entry?.length === 0 || p.length === 0) && f, L = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, M = F ? a("NO_OBSERVATIONS_FOUND") : void 0, V = I.length > 0 && !_ && !$, h = i.titleTranslationKey, E = h ? a(h) : "";
169
- return /* @__PURE__ */ C(
168
+ ], _ = y || !f, $ = O && f, F = (!m || m.entry?.length === 0 || p.length === 0) && f, L = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, M = F ? a("NO_OBSERVATIONS_FOUND") : void 0, K = I.length > 0 && !_ && !$, h = i.titleTranslationKey, E = h ? a(h) : "";
169
+ return /* @__PURE__ */ S(
170
170
  "div",
171
171
  {
172
172
  id: "observations",
173
173
  "data-testid": h ? `observations-${E}` : "observations",
174
174
  "aria-label": "observations-aria-label",
175
- className: S.observations,
175
+ className: N.observations,
176
176
  children: [
177
- /* @__PURE__ */ l(
177
+ /* @__PURE__ */ d(
178
178
  x,
179
179
  {
180
180
  id: "observations-title",
181
181
  testId: h ? `observations-title-${E}` : "observations-title",
182
182
  title: E,
183
- className: S.title,
184
- children: /* @__PURE__ */ l("p", { children: E })
183
+ className: N.title,
184
+ children: /* @__PURE__ */ d("p", { children: E })
185
185
  }
186
186
  ),
187
- V ? /* @__PURE__ */ l(
187
+ K ? /* @__PURE__ */ d(
188
188
  ae,
189
189
  {
190
190
  groupedData: I,
191
191
  title: E,
192
192
  hideThumbnail: u
193
193
  }
194
- ) : /* @__PURE__ */ l(
194
+ ) : /* @__PURE__ */ d(
195
195
  ee,
196
196
  {
197
- headers: A,
197
+ headers: B,
198
198
  rows: [],
199
199
  ariaLabel: a("OBSERVATIONS"),
200
200
  loading: _,
@@ -210,5 +210,5 @@ const B = (t, i, c, d, u, r) => {
210
210
  export {
211
211
  ce as conceptUuidQueryKeys,
212
212
  ve as default,
213
- de as observationsQueryKeys
213
+ le as observationsQueryKeys
214
214
  };
@@ -80336,7 +80336,7 @@ const b0t = [
80336
80336
  },
80337
80337
  {
80338
80338
  type: "patientDocuments",
80339
- component: Dr(() => import("./DocumentsTable-CWnsA1VB.js"))
80339
+ component: Dr(() => import("./DocumentsTable-BquHbPl0.js"))
80340
80340
  },
80341
80341
  {
80342
80342
  type: "flowSheet",
@@ -80344,7 +80344,7 @@ const b0t = [
80344
80344
  },
80345
80345
  {
80346
80346
  type: "forms",
80347
- component: Dr(() => import("./FormsTable-DyLWyfxB.js"))
80347
+ component: Dr(() => import("./FormsTable-DXgIRd8W.js"))
80348
80348
  },
80349
80349
  {
80350
80350
  type: "labOrders",
@@ -80352,7 +80352,7 @@ const b0t = [
80352
80352
  },
80353
80353
  {
80354
80354
  type: "observations",
80355
- component: Dr(() => import("./Observations-Diofp2D3.js"))
80355
+ component: Dr(() => import("./Observations-iITyjiEP.js"))
80356
80356
  },
80357
80357
  {
80358
80358
  type: "ordersControl",
@@ -80428,34 +80428,34 @@ const w2t = (t) => {
80428
80428
  c1.getInstance().reset();
80429
80429
  };
80430
80430
  export {
80431
- v0t as $,
80432
- xet as A,
80433
- Znt as B,
80434
- _tt as C,
80435
- $tt as D,
80431
+ ms as $,
80432
+ GKe as A,
80433
+ Vnt as B,
80434
+ e2t as C,
80435
+ t2t as D,
80436
80436
  vUe as E,
80437
- G0t as F,
80437
+ Znt as F,
80438
80438
  Tnt as G,
80439
80439
  o0t as H,
80440
- t2t as I,
80440
+ X0t as I,
80441
80441
  u2t as J,
80442
- r2t as K,
80442
+ k1 as K,
80443
80443
  Y1t as L,
80444
80444
  fUe as M,
80445
- X0t as N,
80445
+ uet as N,
80446
80446
  Zhe as O,
80447
- e2t as P,
80447
+ n2t as P,
80448
80448
  G2 as Q,
80449
- Vr as R,
80450
- ms as S,
80451
- uet as T,
80452
- o2t as U,
80453
- NUe as V,
80454
- Whe as W,
80449
+ Q0t as R,
80450
+ d2t as S,
80451
+ o2t as T,
80452
+ Whe as U,
80453
+ G0t as V,
80454
+ r2t as W,
80455
80455
  Bnt as X,
80456
80456
  g0t as Y,
80457
80457
  h2t as Z,
80458
- Q0t as _,
80458
+ v0t as _,
80459
80459
  r1 as a,
80460
80460
  E0t as a0,
80461
80461
  p2t as a1,
@@ -80469,29 +80469,29 @@ export {
80469
80469
  y2t as a9,
80470
80470
  V2t as aa,
80471
80471
  H2t as ab,
80472
- or as b,
80473
- GKe as c,
80474
- Y0t as d,
80472
+ Nt as b,
80473
+ or as c,
80474
+ Vr as d,
80475
80475
  J2 as e,
80476
80476
  a2t as f,
80477
80477
  O0t as g,
80478
- J0t as h,
80479
- s2t as i,
80480
- l2t as j,
80481
- Gi as k,
80478
+ NUe as h,
80479
+ Y0t as i,
80480
+ J0t as j,
80481
+ s2t as k,
80482
80482
  Iqe as l,
80483
- n2t as m,
80484
- Xet as n,
80485
- brt as o,
80486
- g1t as p,
80487
- t1t as q,
80483
+ l2t as m,
80484
+ Gi as n,
80485
+ xet as o,
80486
+ Xet as p,
80487
+ _tt as q,
80488
80488
  Ma as r,
80489
80489
  c2t as s,
80490
80490
  i2t as t,
80491
80491
  t1 as u,
80492
- d2t as v,
80493
- Nt as w,
80494
- Vnt as x,
80492
+ $tt as v,
80493
+ brt as w,
80494
+ g1t as x,
80495
80495
  s1 as y,
80496
- k1 as z
80496
+ t1t as z
80497
80497
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a2 as s, a0 as t, A as o, $ as r, n, Z as g, C as l, D as P, G as v, H as d, L as c, o as T, T as b, U as A, O as p, m as C, B as m, J as f, q as u, p as I, v as W, Y as R, x as D, a4 as S, a3 as U, aa as y, a9 as N, a6 as x, a7 as H, a8 as L, a5 as O, ab as h, a1 as G, X as q, a as E, u as V, W as _ } from "./index-Bf5IwO7Y.js";
1
+ import { a2 as s, a0 as t, o, _ as r, p as n, Z as g, q as l, v as P, G as v, H as d, L as c, w as T, N as b, T as p, O as A, P as C, F as f, J as m, z as u, x as I, S as R, Y as S, B as W, a4 as N, a3 as U, aa as y, a9 as D, a6 as x, a7 as H, a8 as L, a5 as O, ab as h, a1 as G, X as _, a as q, u as w, U as z } from "./index-Bjn1f4Rq.js";
2
2
  import "react";
3
3
  export {
4
4
  s as ActivePractitionerContext,
@@ -14,28 +14,28 @@ export {
14
14
  c as LabInvestigation,
15
15
  T as MedicationsTable,
16
16
  b as NotificationProvider,
17
- A as NotificationServiceComponent,
18
- p as ObservationsRenderer,
17
+ p as NotificationServiceComponent,
18
+ A as ObservationsRenderer,
19
19
  C as PatientDetails,
20
- m as PatientProgramsTable,
21
- f as ProgramDetails,
20
+ f as PatientProgramsTable,
21
+ m as ProgramDetails,
22
22
  u as RadiologyInvestigationReport,
23
23
  I as RadiologyInvestigationTable,
24
- W as SearchPatient,
25
- R as UserPrivilegeProvider,
26
- D as VitalFlowSheet,
27
- S as createConfigHook,
24
+ R as SearchPatient,
25
+ S as UserPrivilegeProvider,
26
+ W as VitalFlowSheet,
27
+ N as createConfigHook,
28
28
  U as createConfigProvider,
29
29
  y as getAllWidgetConfigs,
30
- N as getAllWidgetTypes,
30
+ D as getAllWidgetTypes,
31
31
  x as getWidget,
32
32
  H as getWidgetConfig,
33
33
  L as hasWidget,
34
34
  O as registerWidget,
35
35
  h as resetWidgetRegistry,
36
36
  G as useActivePractitioner,
37
- q as useHasPrivilege,
38
- E as useNotification,
39
- V as usePatientUUID,
40
- _ as useUserPrivilege
37
+ _ as useHasPrivilege,
38
+ q as useNotification,
39
+ w as usePatientUUID,
40
+ z as useUserPrivilege
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.221",
3
+ "version": "0.0.1-dev.222",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",