@bahmni/widgets 0.0.1-dev.328 → 0.0.1-dev.329

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 r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as Z, $ as X, Z as J, G as x, j as ee, P as te } from "./index-B-ZJCY66.js";
1
+ import { jsx as r, jsxs as T, Fragment as Q } from "react/jsx-runtime";
2
+ import { u as Y, a as Z, P as X, Z as J, W as x, j as ee, b as te } from "./index-CRlR0q5_.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";
@@ -19,7 +19,7 @@ const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTab
19
19
  uploadedBy: "DOCUMENTS_UPLOADED_BY",
20
20
  attachments: "DOCUMENTS_ATTACHMENTS"
21
21
  };
22
- function B(n) {
22
+ function R(n) {
23
23
  return !n || n.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${n}`;
24
24
  }
25
25
  function he(n, E) {
@@ -34,16 +34,16 @@ const Te = [
34
34
  "attachments",
35
35
  "uploadedOn",
36
36
  "uploadedBy"
37
- ], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, P = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: E }) => {
37
+ ], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: E }) => {
38
38
  const [d, L] = l(!1), [s, U] = l(
39
39
  null
40
40
  ), [F, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), f = W(), { t: o } = ae(), { addNotification: w } = Z(), $ = Number(n?.pageSize) || 5, [N, C] = l(1), [u, V] = l($), [k, O] = l(void 0), v = _((e) => {
42
+ ), f = Y(), { t: o } = ae(), { addNotification: w } = Z(), V = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(V), [k, O] = l(void 0), v = _((e) => {
43
43
  U(e), L(!0);
44
44
  }, []), H = _(() => {
45
45
  L(!1), U(null), A(/* @__PURE__ */ new Set());
46
- }, []), R = _((e) => {
46
+ }, []), P = _((e) => {
47
47
  A((t) => new Set(t).add(e));
48
48
  }, []), { data: i, isLoading: z, isError: S, error: y } = ne({
49
49
  queryKey: [
@@ -75,9 +75,9 @@ const Te = [
75
75
  const e = new AbortController();
76
76
  return (async () => {
77
77
  if (!d || !s) return;
78
- const a = /* @__PURE__ */ new Set(), g = P(s);
78
+ const a = /* @__PURE__ */ new Set(), g = B(s);
79
79
  for (let m = 0; m < g.length; m++) {
80
- const b = B(g[m].url);
80
+ const b = R(g[m].url);
81
81
  try {
82
82
  (await fetch(b, {
83
83
  method: "HEAD",
@@ -92,22 +92,22 @@ const Te = [
92
92
  }, [d, s]);
93
93
  const j = _(
94
94
  (e, t) => {
95
- t !== u ? (V(t), C(1), O(void 0)) : C(e);
95
+ t !== u ? ($(t), C(1), O(void 0)) : C(e);
96
96
  },
97
97
  [u]
98
98
  ), D = p(
99
99
  () => n?.fields ?? Te,
100
100
  [n?.fields]
101
- ), q = p(() => [...i?.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), [i]), G = p(() => he(D, o), [D, o]), K = p(
101
+ ), q = p(() => [...i?.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), [i]), K = p(() => he(D, o), [D, o]), W = p(
102
102
  () => D.map((e) => ({
103
103
  key: e,
104
104
  sortable: e !== "attachments"
105
105
  })),
106
106
  [D]
107
107
  ), h = p(
108
- () => s ? P(s) : [],
108
+ () => s ? B(s) : [],
109
109
  [s]
110
- ), Q = _(
110
+ ), G = _(
111
111
  (e, t) => {
112
112
  switch (t) {
113
113
  case "documentIdentifier":
@@ -138,18 +138,18 @@ const Te = [
138
138
  },
139
139
  [v, o]
140
140
  );
141
- return /* @__PURE__ */ T(Y, { children: [
141
+ return /* @__PURE__ */ T(Q, { children: [
142
142
  /* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
143
143
  ee,
144
144
  {
145
- headers: G,
145
+ headers: K,
146
146
  ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
147
147
  rows: q,
148
148
  loading: z,
149
149
  errorStateMessage: S ? y?.message : null,
150
- sortable: K,
150
+ sortable: W,
151
151
  emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
152
- renderCell: Q,
152
+ renderCell: G,
153
153
  className: c.documentsTableBody,
154
154
  dataTestId: "documents-table",
155
155
  pageSize: u,
@@ -170,7 +170,7 @@ const Te = [
170
170
  size: "lg",
171
171
  testId: "document-view-modal",
172
172
  children: /* @__PURE__ */ r("div", { className: c.documentViewerContainer, children: h.map((e, t) => {
173
- const a = B(e.url), g = e.contentType?.toLowerCase().includes("pdf"), m = (e.contentType?.toLowerCase().includes("image") ?? !1) || _e.test(e.url ?? ""), b = F.has(t);
173
+ const a = R(e.url), g = e.contentType?.toLowerCase().includes("pdf"), m = (e.contentType?.toLowerCase().includes("image") ?? !1) || _e.test(e.url ?? ""), b = F.has(t);
174
174
  return a === "#" || b ? /* @__PURE__ */ T(
175
175
  "div",
176
176
  {
@@ -203,7 +203,7 @@ const Te = [
203
203
  src: a,
204
204
  alt: s.documentIdentifier,
205
205
  className: c.documentImage,
206
- onError: () => R(t)
206
+ onError: () => P(t)
207
207
  }
208
208
  ) : /* @__PURE__ */ r(
209
209
  "iframe",
@@ -211,7 +211,7 @@ const Te = [
211
211
  src: g ? `${a}#toolbar=0` : a,
212
212
  className: c.documentIframe,
213
213
  title: s.documentIdentifier,
214
- onError: () => R(t)
214
+ onError: () => P(t)
215
215
  }
216
216
  )
217
217
  ]
@@ -1,65 +1,65 @@
1
1
  import { jsx as i, jsxs as te, Fragment as oe } from "react/jsx-runtime";
2
- import { A as se, u as ae, b as ne, c as de, d as ie, i as ce, B as le, v as me, q as k, G as ue, Z as fe, j as x, T as ye, R as be, P as pe, O as he } from "./index-B-ZJCY66.js";
2
+ import { N as se, u as ae, c as ne, l as de, d as ie, e as ce, Y as le, R as me, q as k, W as ue, Z as fe, j as x, T as ye, f as be, b as pe, O as he } from "./index-CRlR0q5_.js";
3
3
  import { useQueryClient as ge, useQuery as p } from "@tanstack/react-query";
4
- import { useState as P, useMemo as d, useCallback as h } from "react";
5
- import { useTranslation as Fe } from "react-i18next";
6
- const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", E = {
7
- formsTableBody: Ne,
4
+ import { useState as j, useMemo as d, useCallback as h } from "react";
5
+ import { useTranslation as Ne } from "react-i18next";
6
+ const Fe = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", v = {
7
+ formsTableBody: Fe,
8
8
  customAccordianItem: Oe
9
- }, ve = (m) => m ? m.extension?.find(
9
+ }, Ee = (m) => m ? m.extension?.find(
10
10
  (g) => g.url === se
11
- )?.valueString : void 0, De = ({
11
+ )?.valueString : void 0, Te = ({
12
12
  episodeOfCareUuids: m,
13
13
  encounterUuids: c,
14
14
  config: g
15
15
  }) => {
16
- const { t: n } = Fe(), u = ae(), [y, A] = P(!1), [a, M] = P(null), {
17
- numberOfVisits: j,
16
+ const { t: n } = Ne(), u = ae(), [y, M] = j(!1), [a, I] = j(null), {
17
+ numberOfVisits: P,
18
18
  hideThumbnail: w = !1,
19
19
  forms: b
20
- } = g ?? {}, I = ne(
20
+ } = g ?? {}, A = ne(
21
21
  m,
22
22
  c
23
- ), G = ge(), {
24
- data: B = [],
25
- isLoading: D,
26
- isError: T,
27
- error: H,
28
- refetch: K
23
+ ), H = ge(), {
24
+ data: D = [],
25
+ isLoading: T,
26
+ isError: R,
27
+ error: K,
28
+ refetch: V
29
29
  } = p({
30
30
  queryKey: ["forms", u, m],
31
- queryFn: () => de(u, void 0, j),
32
- enabled: !!u && !I
33
- }), R = d(() => {
34
- let e = B;
31
+ queryFn: () => de(u, void 0, P),
32
+ enabled: !!u && !A
33
+ }), B = d(() => {
34
+ let e = D;
35
35
  return c && c.length > 0 && (e = e.filter(
36
36
  (t) => c.includes(t.encounterUuid)
37
37
  )), Array.isArray(b) && b.length > 0 && (e = e.filter(
38
38
  (t) => b.some((r) => r.toLowerCase() === t.formName.toLowerCase())
39
39
  )), e;
40
- }, [B, c, b]), { data: _ = [] } = p({
40
+ }, [D, c, b]), { data: _ = [] } = p({
41
41
  queryKey: ["observationForms"],
42
42
  queryFn: () => ie()
43
43
  }), L = h(
44
44
  (e) => _.find((r) => r.name === e)?.uuid,
45
45
  [_]
46
- ), F = d(() => {
46
+ ), N = d(() => {
47
47
  if (a)
48
48
  return L(a.formName);
49
49
  }, [a, L]), {
50
50
  data: l,
51
- isLoading: V,
52
- isError: $,
53
- error: N
51
+ isLoading: $,
52
+ isError: z,
53
+ error: F
54
54
  } = p({
55
- queryKey: ["formMetadata", F],
56
- queryFn: () => ce(F),
57
- enabled: !!F && y
55
+ queryKey: ["formMetadata", N],
56
+ queryFn: () => ce(N),
57
+ enabled: !!N && y
58
58
  }), {
59
59
  data: O,
60
- isLoading: z,
60
+ isLoading: G,
61
61
  isError: Q,
62
- error: v
62
+ error: E
63
63
  } = p({
64
64
  queryKey: ["formsEncounterFHIR", a?.encounterUuid],
65
65
  queryFn: () => le(a.encounterUuid),
@@ -67,12 +67,12 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
67
67
  });
68
68
  me(
69
69
  (e) => {
70
- e.patientUUID === u && e.updatedConcepts.size > 0 && (K(), G.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
70
+ e.patientUUID === u && e.updatedConcepts.size > 0 && (V(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
71
71
  },
72
72
  [u]
73
73
  );
74
- const Z = d(() => !O?.entry || !a?.formName ? [] : O.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => {
75
- const r = ve(t);
74
+ const W = d(() => !O?.entry || !a?.formName ? [] : O.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => {
75
+ const r = Ee(t);
76
76
  return !r || r.includes(a.formName);
77
77
  }), [O, a?.formName]), Y = d(() => {
78
78
  if (!l?.schema) return;
@@ -85,7 +85,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
85
85
  return t(
86
86
  l.schema.controls ?? []
87
87
  ), e.length > 0 ? e : void 0;
88
- }, [l]), J = d(() => {
88
+ }, [l]), Z = d(() => {
89
89
  if (!l?.schema) return;
90
90
  const e = {}, t = (r, o) => {
91
91
  for (const s of r)
@@ -99,12 +99,12 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
99
99
  l.schema.controls ?? [],
100
100
  null
101
101
  ), Object.keys(e).length > 0 ? e : void 0;
102
- }, [l]), W = d(() => {
103
- if (N)
104
- return k(N).message;
105
- if (v)
106
- return k(v).message;
107
- }, [N, v]), C = d(
102
+ }, [l]), J = d(() => {
103
+ if (F)
104
+ return k(F).message;
105
+ if (E)
106
+ return k(E).message;
107
+ }, [F, E]), C = d(
108
108
  () => [
109
109
  { key: "recordedOn", header: n("RECORDED_ON") },
110
110
  { key: "recordedBy", header: n("RECORDED_BY") }
@@ -117,7 +117,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
117
117
  ],
118
118
  []
119
119
  ), S = d(() => {
120
- const e = R.reduce(
120
+ const e = B.reduce(
121
121
  (r, o) => {
122
122
  const s = o.formName;
123
123
  r[s] ??= [];
@@ -141,10 +141,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
141
141
  )
142
142
  })
143
143
  ).sort((r, o) => r.formName.localeCompare(o.formName));
144
- }, [R, n]), q = h((e) => {
145
- M(e), A(!0);
144
+ }, [B, n]), q = h((e) => {
145
+ I(e), M(!0);
146
146
  }, []), ee = h(() => {
147
- A(!1), M(null);
147
+ M(!1), I(null);
148
148
  }, []), U = h(
149
149
  (e, t) => {
150
150
  switch (t) {
@@ -159,17 +159,17 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
159
159
  [q]
160
160
  );
161
161
  return /* @__PURE__ */ te(oe, { children: [
162
- /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: D || T || S.length === 0 || I ? /* @__PURE__ */ i(
162
+ /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: T || R || S.length === 0 || A ? /* @__PURE__ */ i(
163
163
  x,
164
164
  {
165
165
  headers: C,
166
166
  ariaLabel: n("FORMS_HEADING"),
167
167
  rows: [],
168
- loading: D,
169
- errorStateMessage: T ? H?.message : void 0,
168
+ loading: T,
169
+ errorStateMessage: R ? K?.message : void 0,
170
170
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
171
171
  renderCell: U,
172
- className: E.formsTableBody,
172
+ className: v.formsTableBody,
173
173
  dataTestId: "forms-table"
174
174
  }
175
175
  ) : /* @__PURE__ */ i(ye, { align: "start", children: S.map((e, t) => {
@@ -178,7 +178,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
178
178
  be,
179
179
  {
180
180
  title: r,
181
- className: E.customAccordianItem,
181
+ className: v.customAccordianItem,
182
182
  testId: `accordian-title-${r}`,
183
183
  open: t === 0,
184
184
  children: /* @__PURE__ */ i(
@@ -192,7 +192,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
192
192
  sortable: X,
193
193
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
194
194
  renderCell: U,
195
- className: E.formsTableBody,
195
+ className: v.formsTableBody,
196
196
  dataTestId: `forms-table-${r}`
197
197
  }
198
198
  )
@@ -215,15 +215,15 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
215
215
  children: /* @__PURE__ */ i(
216
216
  he,
217
217
  {
218
- observations: Z,
219
- isLoading: V || z,
220
- isError: $ || Q,
221
- errorMessage: W,
218
+ observations: W,
219
+ isLoading: $ || G,
220
+ isError: z || Q,
221
+ errorMessage: J,
222
222
  emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
223
223
  testIdPrefix: a.formName,
224
224
  hideThumbnail: w,
225
225
  controlOrder: Y,
226
- sectionMap: J
226
+ sectionMap: Z
227
227
  }
228
228
  )
229
229
  }
@@ -231,5 +231,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
231
231
  ] });
232
232
  };
233
233
  export {
234
- De as default
234
+ Te as default
235
235
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as d, jsxs as N } from "react/jsx-runtime";
2
- import { f as H, J as U, t as K, e as V, F as w, X as k, g as j, Q as q, u as G, a as P, o as J, U as z, v as X, h as Y, k as W, s as Z, l as x, j as ee } from "./index-B-ZJCY66.js";
2
+ import { g as H, J as D, t as K, h as V, F as w, X as k, i as j, Q as q, u as G, a as P, k as J, m as z, R as X, n as Y, o as W, s as Z, p as x, j as ee } from "./index-CRlR0q5_.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
- import { useTranslation as D } from "react-i18next";
6
- const B = (t, i, c, l, u, r) => {
5
+ import { useTranslation as U } from "react-i18next";
6
+ const F = (t, i, c, l, u, r) => {
7
7
  const s = K(t, i, u), o = s.value, a = V(o);
8
8
  let n = o;
9
9
  a === "Image" && (n = /* @__PURE__ */ d(
@@ -38,13 +38,13 @@ const B = (t, i, c, l, u, r) => {
38
38
  `obs-${t.id}`
39
39
  );
40
40
  }, re = (t, i, c, l, u, r, s) => /* @__PURE__ */ d(
41
- U,
41
+ D,
42
42
  {
43
43
  title: t.display,
44
44
  id: `grouped-obs-${t.display}-${l}`,
45
45
  open: c,
46
46
  children: t.members?.map(
47
- (o, a) => B(
47
+ (o, a) => F(
48
48
  o,
49
49
  a,
50
50
  u,
@@ -60,17 +60,17 @@ const B = (t, i, c, l, u, r) => {
60
60
  title: i = "",
61
61
  hideThumbnail: c
62
62
  }) => {
63
- const { t: l } = D(), u = (r, s, o) => {
63
+ const { t: l } = U(), u = (r, s, o) => {
64
64
  const a = H(r.encounterDetails, l);
65
65
  return /* @__PURE__ */ N(
66
- U,
66
+ D,
67
67
  {
68
68
  title: a,
69
69
  id: `encounter-${r.encounterId}`,
70
70
  open: s,
71
71
  children: [
72
72
  r.observations.map(
73
- (n, b) => B(
73
+ (n, b) => F(
74
74
  n,
75
75
  b,
76
76
  o,
@@ -114,7 +114,7 @@ const B = (t, i, c, l, u, r) => {
114
114
  conceptNames: c = [],
115
115
  conceptUuid: l = [],
116
116
  hideThumbnail: u = !1
117
- } = i, r = oe(/* @__PURE__ */ new Set()), s = G(), { addNotification: o } = P(), { t: a } = D(), n = te({
117
+ } = i, r = oe(/* @__PURE__ */ new Set()), s = G(), { addNotification: o } = P(), { t: a } = U(), n = te({
118
118
  queries: c.map((e) => ({
119
119
  queryKey: ce(e),
120
120
  queryFn: () => J(e),
@@ -161,7 +161,7 @@ const B = (t, i, c, l, u, r) => {
161
161
  if (!m) return [];
162
162
  const e = Y(m), v = W(e);
163
163
  return Z(v);
164
- }, [m]), F = [
164
+ }, [m]), B = [
165
165
  { key: "name", header: "name" },
166
166
  { key: "value", header: "value" },
167
167
  { key: "form", header: "form" }
@@ -194,7 +194,7 @@ const B = (t, i, c, l, u, r) => {
194
194
  ) : /* @__PURE__ */ d(
195
195
  ee,
196
196
  {
197
- headers: F,
197
+ headers: B,
198
198
  rows: [],
199
199
  ariaLabel: a("OBSERVATIONS"),
200
200
  loading: I,
@@ -96208,7 +96208,7 @@ const RMt = [
96208
96208
  },
96209
96209
  {
96210
96210
  type: "patientDocuments",
96211
- component: Ir(() => import("./DocumentsTable-C8RwQ0aH.js"))
96211
+ component: Ir(() => import("./DocumentsTable-CensDFhN.js"))
96212
96212
  },
96213
96213
  {
96214
96214
  type: "flowSheet",
@@ -96216,7 +96216,7 @@ const RMt = [
96216
96216
  },
96217
96217
  {
96218
96218
  type: "forms",
96219
- component: Ir(() => import("./FormsTable-OpTexxoW.js"))
96219
+ component: Ir(() => import("./FormsTable-DnuqfSeq.js"))
96220
96220
  },
96221
96221
  {
96222
96222
  type: "labOrders",
@@ -96224,7 +96224,7 @@ const RMt = [
96224
96224
  },
96225
96225
  {
96226
96226
  type: "observations",
96227
- component: Ir(() => import("./Observations-BX6W6aWO.js"))
96227
+ component: Ir(() => import("./Observations-B6hrSDAh.js"))
96228
96228
  },
96229
96229
  {
96230
96230
  type: "ordersControl",
@@ -96400,34 +96400,34 @@ const Sxt = (t) => {
96400
96400
  ) });
96401
96401
  };
96402
96402
  export {
96403
- vxt as $,
96404
- hxt as A,
96405
- mxt as B,
96403
+ Vxt as $,
96404
+ A7t as A,
96405
+ pbe as B,
96406
96406
  Klt as C,
96407
96407
  Ext as D,
96408
- pbe as E,
96408
+ Ryt as E,
96409
96409
  iit as F,
96410
- gt as G,
96411
- Ryt as H,
96410
+ xyt as G,
96411
+ zxt as H,
96412
96412
  Xyt as I,
96413
96413
  WMt as J,
96414
- zxt as K,
96414
+ EMt as K,
96415
96415
  EEt as L,
96416
96416
  Owt as M,
96417
- EMt as N,
96417
+ hxt as N,
96418
96418
  obe as O,
96419
- pn as P,
96419
+ vxt as P,
96420
96420
  Llt as Q,
96421
- Ea as R,
96421
+ jn as R,
96422
96422
  Axt as S,
96423
96423
  va as T,
96424
- fxt as U,
96424
+ hMt as U,
96425
96425
  qEt as V,
96426
- hMt as W,
96426
+ gt as W,
96427
96427
  Clt as X,
96428
- d7t as Y,
96428
+ mxt as Y,
96429
96429
  fs as Z,
96430
- Vxt as _,
96430
+ d7t as _,
96431
96431
  on as a,
96432
96432
  pMt as a0,
96433
96433
  Oa as a1,
@@ -96456,29 +96456,29 @@ export {
96456
96456
  LMt as ao,
96457
96457
  Fxt as ap,
96458
96458
  jxt as aq,
96459
- Na as b,
96460
- wxt as c,
96459
+ pn as b,
96460
+ Na as c,
96461
96461
  t5t as d,
96462
- Che as e,
96463
- bxt as f,
96464
- Blt as g,
96465
- Mxt as h,
96466
- gxt as i,
96462
+ gxt as e,
96463
+ Ea as f,
96464
+ bxt as g,
96465
+ Che as h,
96466
+ Blt as i,
96467
96467
  Or as j,
96468
- xxt as k,
96469
- ic as l,
96470
- yxt as m,
96471
- A7t as n,
96472
- pxt as o,
96473
- egt as p,
96468
+ pxt as k,
96469
+ wxt as l,
96470
+ fxt as m,
96471
+ Mxt as n,
96472
+ xxt as o,
96473
+ ic as p,
96474
96474
  Dr as q,
96475
- Ogt as r,
96475
+ yxt as r,
96476
96476
  Nxt as s,
96477
96477
  Hxt as t,
96478
96478
  nn as u,
96479
- jn as v,
96480
- kgt as w,
96481
- Pvt as x,
96482
- abe as y,
96483
- xyt as z
96479
+ egt as v,
96480
+ Ogt as w,
96481
+ kgt as x,
96482
+ Pvt as y,
96483
+ abe as z
96484
96484
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a9 as s, a7 as t, n as o, a6 as r, p as n, a4 as g, N as c, af as l, r as d, C as P, w as v, D as m, a5 as T, z as C, I as u, L as b, an as I, ap as S, aq as W, M as p, Y as A, _ as f, O as L, m as R, H as h, K as D, y, x as E, S as N, E as O, a3 as _, V as x, ae as H, ab as U, aa as G, al as V, ak as k, ad as M, ah as q, ai as w, aj as z, ac as j, ag as B, am as F, a8 as K, W as Y, a0 as J, a2 as Q, ao as X, a as Z, u as $, a1 as aa } from "./index-B-ZJCY66.js";
1
+ import { a9 as s, a7 as t, A as o, a6 as r, v as n, a4 as g, K as c, af as l, w as d, C as P, x as v, D as m, a5 as T, G as C, I as u, L as b, an as A, ap as I, aq as S, M as W, _ as f, $ as p, O as L, r as R, E as h, H as D, z as y, y as E, S as N, B as O, a3 as U, V as _, ae as x, ab as G, aa as H, al as V, ak as k, ad as M, ah as q, ai as w, aj as z, ac as B, ag as j, am as F, a8 as K, U as $, a0 as J, a2 as Q, ao as X, a as Y, u as Z, a1 as aa } from "./index-CRlR0q5_.js";
2
2
  import "react";
3
3
  export {
4
4
  s as ActivePractitionerContext,
@@ -17,12 +17,12 @@ export {
17
17
  C as GenericServiceRequestTable,
18
18
  u as ImmunizationHistory,
19
19
  b as LabInvestigation,
20
- I as LocationContext,
21
- S as LocationProvider,
22
- W as LocationSelector,
23
- p as MedicationsTable,
24
- A as NotificationProvider,
25
- f as NotificationServiceComponent,
20
+ A as LocationContext,
21
+ I as LocationProvider,
22
+ S as LocationSelector,
23
+ W as MedicationsTable,
24
+ f as NotificationProvider,
25
+ p as NotificationServiceComponent,
26
26
  L as ObservationsRenderer,
27
27
  R as PatientDetails,
28
28
  h as PatientProgramsTable,
@@ -31,26 +31,26 @@ export {
31
31
  E as RadiologyInvestigationTable,
32
32
  N as SearchPatient,
33
33
  O as TaskList,
34
- _ as UserPrivilegeProvider,
35
- x as VitalFlowSheet,
36
- H as clearSearchWidgetRegistry,
37
- U as createConfigHook,
38
- G as createConfigProvider,
34
+ U as UserPrivilegeProvider,
35
+ _ as VitalFlowSheet,
36
+ x as clearSearchWidgetRegistry,
37
+ G as createConfigHook,
38
+ H as createConfigProvider,
39
39
  V as getAllWidgetConfigs,
40
40
  k as getAllWidgetTypes,
41
41
  M as getSearchWidget,
42
42
  q as getWidget,
43
43
  w as getWidgetConfig,
44
44
  z as hasWidget,
45
- j as registerSearchWidget,
46
- B as registerWidget,
45
+ B as registerSearchWidget,
46
+ j as registerWidget,
47
47
  F as resetWidgetRegistry,
48
48
  K as useActivePractitioner,
49
- Y as useCommandPalette,
49
+ $ as useCommandPalette,
50
50
  J as useDebounce,
51
51
  Q as useHasPrivilege,
52
52
  X as useLocation,
53
- Z as useNotification,
54
- $ as usePatientUUID,
53
+ Y as useNotification,
54
+ Z as usePatientUUID,
55
55
  aa as useUserPrivilege
56
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.328",
3
+ "version": "0.0.1-dev.329",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",