@bahmni/widgets 0.0.1-dev.458 → 0.0.1-dev.459

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,26 +1,26 @@
1
1
  import { jsx as a, jsxs as T, Fragment as _e } from "react/jsx-runtime";
2
- import { u as pe, a as Ae, b as Ee, c as ge, Z as Ne, d as Ce, e as S, p as fe, A as Ie, f as De, M as Le, Q as be, _ as Y, N as Oe, g as Se, x as ve, W as ye, h as we, i as Z, j as ee } from "./index-DepMUZYx.js";
3
- import { useQuery as Me } from "@tanstack/react-query";
4
- import { useState as _, useRef as Ue, useEffect as A, useMemo as E, useCallback as p } from "react";
2
+ import { u as pe, a as Ae, b as Ee, d as ge, r as fe, c as Ce, e as S, p as Ne, $ as Ie, f as De, E as Le, g as be, z as Q, A as Oe, h as Se, L as ve, W as ye, i as we, j as J, k as ee } from "./index-BgKZQd55.js";
3
+ import { useQuery as Ue } from "@tanstack/react-query";
4
+ import { useState as _, useRef as Me, useEffect as A, useMemo as E, useCallback as p } from "react";
5
5
  import { useTranslation as Re } from "react-i18next";
6
- const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTable-module_viewAttachmentsLink__aQ1on", Be = "DocumentsTable-module_documentViewerContainer__F5m8D", He = "DocumentsTable-module_printContainer__rtarJ", $e = "DocumentsTable-module_attachmentItem__17KA7", Fe = "DocumentsTable-module_attachmentCounter__WFiI3", Ve = "DocumentsTable-module_attachmentError__RI4U2", We = "DocumentsTable-module_documentIframe__ptq5I", ze = "DocumentsTable-module_attachmentContent__IaCEe", Ge = "DocumentsTable-module_attachmentLoading__FAR6p", qe = "DocumentsTable-module_hiddenWhileLoading__IxocW", Ke = "DocumentsTable-module_documentImage__KQVgS", Qe = "DocumentsTable-module_header__345GY", je = "DocumentsTable-module_documentTypeCell__uWGM8", Ye = "DocumentsTable-module_printAllButton__IVYUW", Ze = "DocumentsTable-module_attachmentHeader__yI2xn", s = {
7
- documentsTableBody: Pe,
8
- viewAttachmentsLink: ke,
6
+ const ke = "DocumentsTable-module_documentsTableBody__6iR3w", Pe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", Be = "DocumentsTable-module_documentViewerContainer__F5m8D", He = "DocumentsTable-module_printContainer__rtarJ", $e = "DocumentsTable-module_attachmentItem__17KA7", ze = "DocumentsTable-module_attachmentCounter__WFiI3", Fe = "DocumentsTable-module_attachmentError__RI4U2", Ve = "DocumentsTable-module_documentIframe__ptq5I", We = "DocumentsTable-module_attachmentContent__IaCEe", Ge = "DocumentsTable-module_attachmentLoading__FAR6p", qe = "DocumentsTable-module_hiddenWhileLoading__IxocW", Ke = "DocumentsTable-module_documentImage__KQVgS", je = "DocumentsTable-module_header__345GY", Ye = "DocumentsTable-module_documentTypeCell__uWGM8", Qe = "DocumentsTable-module_printAllButton__IVYUW", Je = "DocumentsTable-module_attachmentHeader__yI2xn", s = {
7
+ documentsTableBody: ke,
8
+ viewAttachmentsLink: Pe,
9
9
  documentViewerContainer: Be,
10
10
  printContainer: He,
11
11
  attachmentItem: $e,
12
- attachmentCounter: Fe,
13
- attachmentError: Ve,
14
- documentIframe: We,
15
- attachmentContent: ze,
12
+ attachmentCounter: ze,
13
+ attachmentError: Fe,
14
+ documentIframe: Ve,
15
+ attachmentContent: We,
16
16
  attachmentLoading: Ge,
17
17
  hiddenWhileLoading: qe,
18
18
  documentImage: Ke,
19
- header: Qe,
20
- documentTypeCell: je,
21
- printAllButton: Ye,
22
- attachmentHeader: Ze
23
- }, Je = "startConsultation", Xe = "add", xe = "documents", J = "document-print-container", X = () => /* @__PURE__ */ a(ee, {}), et = /* @__PURE__ */ new Set([
19
+ header: je,
20
+ documentTypeCell: Ye,
21
+ printAllButton: Qe,
22
+ attachmentHeader: Je
23
+ }, Xe = "startConsultation", Ze = "add", xe = "documents", X = "document-print-container", Z = () => /* @__PURE__ */ a(ee, {}), et = /* @__PURE__ */ new Set([
24
24
  "ArrowUp",
25
25
  "ArrowDown",
26
26
  "PageUp",
@@ -41,26 +41,26 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
41
41
  /* @__PURE__ */ new Set()
42
42
  ), [L, y] = _(
43
43
  /* @__PURE__ */ new Set()
44
- ), C = Ue(null), [w, F] = _(
44
+ ), C = Me(null), [w, z] = _(
45
45
  null
46
- ), V = w !== null;
46
+ ), F = w !== null;
47
47
  A(() => () => C.current?.abort(), []);
48
48
  const g = pe(), { t: o } = Re(), { addNotification: b } = Ae(), m = E(
49
49
  () => l?.actions?.find(
50
- (e) => e.type === Xe
50
+ (e) => e.type === Ze
51
51
  ),
52
52
  [l?.actions]
53
- ), te = Ee(m?.requiredPrivilege), ne = !!m && te, ae = Number(l?.pageSize) || 5, [M, U] = _(1), [f, oe] = _(ae), [se, R] = _(void 0), W = p((e) => {
53
+ ), te = Ee(m?.requiredPrivilege), ne = !!m && te, ae = Number(l?.pageSize) || 5, [U, M] = _(1), [N, oe] = _(ae), [se, R] = _(void 0), V = p((e) => {
54
54
  $(e), H(!0);
55
55
  }, []), re = p(() => {
56
56
  C.current?.abort(), y(/* @__PURE__ */ new Set()), H(!1), $(null), v(/* @__PURE__ */ new Set());
57
- }, []), z = p((e) => {
57
+ }, []), W = p((e) => {
58
58
  y((t) => new Set(t).add(e));
59
59
  }, []), G = p((e) => {
60
60
  v((t) => new Set(t).add(e));
61
61
  }, []), ce = p(() => {
62
62
  m && globalThis.dispatchEvent(
63
- new CustomEvent(Je, {
63
+ new CustomEvent(Xe, {
64
64
  detail: {
65
65
  encounterType: m.encounterType,
66
66
  editOnly: m.editOnly ?? xe,
@@ -68,23 +68,23 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
68
68
  }
69
69
  })
70
70
  );
71
- }, [m]), { data: I, isLoading: le, isError: P, error: k, refetch: q } = Me({
71
+ }, [m]), { data: I, isLoading: le, isError: k, error: P, refetch: q } = Ue({
72
72
  queryKey: [
73
73
  "documents",
74
74
  g,
75
75
  B,
76
- M,
77
- f
76
+ U,
77
+ N
78
78
  ],
79
79
  enabled: !!g,
80
80
  queryFn: () => ge(
81
81
  g,
82
82
  B,
83
- f,
84
- M
83
+ N,
84
+ U
85
85
  )
86
86
  });
87
- Ne(
87
+ fe(
88
88
  (e) => {
89
89
  e.patientUUID === g && e.updatedResources.documents && q();
90
90
  },
@@ -92,22 +92,22 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
92
92
  ), A(() => {
93
93
  I && R(I.total);
94
94
  }, [I]), A(() => {
95
- U(1), R(void 0);
95
+ M(1), R(void 0);
96
96
  }, [g]), A(() => {
97
- P && b({
97
+ k && b({
98
98
  title: o("ERROR_DEFAULT_TITLE"),
99
- message: k?.message ?? "",
99
+ message: P?.message ?? "",
100
100
  type: "error"
101
101
  });
102
- }, [P, k, b, o]), A(() => {
102
+ }, [k, P, b, o]), A(() => {
103
103
  const e = new AbortController();
104
104
  return (async () => {
105
105
  if (!u || !r) return;
106
106
  const n = /* @__PURE__ */ new Set(), i = x(r);
107
107
  for (let c = 0; c < i.length; c++) {
108
- const N = S(i[c].url);
108
+ const f = S(i[c].url);
109
109
  try {
110
- (await fetch(N, {
110
+ (await fetch(f, {
111
111
  method: "HEAD",
112
112
  signal: e.signal
113
113
  })).ok || n.add(c);
@@ -131,18 +131,18 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
131
131
  }, c = (h) => {
132
132
  const Te = h.target;
133
133
  et.has(h.key) && !Te?.closest("button, input, textarea, select, a") && n();
134
- }, N = () => {
134
+ }, f = () => {
135
135
  !t && e.scrollTop !== 0 && (e.scrollTop = 0);
136
136
  };
137
- return e.addEventListener("wheel", n, { passive: !0 }), e.addEventListener("touchmove", n, { passive: !0 }), e.addEventListener("mousedown", i), e.addEventListener("keydown", c), e.addEventListener("scroll", N), () => {
138
- e.removeEventListener("wheel", n), e.removeEventListener("touchmove", n), e.removeEventListener("mousedown", i), e.removeEventListener("keydown", c), e.removeEventListener("scroll", N);
137
+ return e.addEventListener("wheel", n, { passive: !0 }), e.addEventListener("touchmove", n, { passive: !0 }), e.addEventListener("mousedown", i), e.addEventListener("keydown", c), e.addEventListener("scroll", f), () => {
138
+ e.removeEventListener("wheel", n), e.removeEventListener("touchmove", n), e.removeEventListener("mousedown", i), e.removeEventListener("keydown", c), e.removeEventListener("scroll", f);
139
139
  };
140
140
  }, [u, r]);
141
141
  const de = p(
142
142
  (e, t) => {
143
- t !== f ? (oe(t), U(1), R(void 0)) : U(e);
143
+ t !== N ? (oe(t), M(1), R(void 0)) : M(e);
144
144
  },
145
- [f]
145
+ [N]
146
146
  ), O = E(
147
147
  () => l?.fields ?? nt,
148
148
  [l?.fields]
@@ -166,14 +166,14 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
166
166
  );
167
167
  return () => clearTimeout(e);
168
168
  }, [u, d]);
169
- const Q = p(
169
+ const j = p(
170
170
  async (e, t) => {
171
171
  if (!r || C.current) return;
172
172
  const n = new AbortController(), { signal: i } = n;
173
- C.current = n, F(t);
174
- const c = document.getElementById(J);
173
+ C.current = n, z(t);
174
+ const c = document.getElementById(X);
175
175
  try {
176
- await fe(
176
+ await Ne(
177
177
  e,
178
178
  r.documentIdentifier,
179
179
  { container: c, signal: i }
@@ -185,11 +185,11 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
185
185
  type: "error"
186
186
  });
187
187
  } finally {
188
- C.current = null, F(null);
188
+ C.current = null, z(null);
189
189
  }
190
190
  },
191
191
  [r, b, o]
192
- ), j = E(
192
+ ), Y = E(
193
193
  () => d.filter(
194
194
  (e, t) => S(e.url) !== "#" && !D.has(t)
195
195
  ),
@@ -224,7 +224,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
224
224
  return e.attachments.length > 0 || !!e.documentUrl ? /* @__PURE__ */ a(
225
225
  Ie,
226
226
  {
227
- onClick: () => W(e),
227
+ onClick: () => V(e),
228
228
  className: s.viewAttachmentsLink,
229
229
  "data-testid": `view-attachments-${e.id}`,
230
230
  children: o("DOCUMENTS_VIEW_ATTACHMENTS")
@@ -234,13 +234,13 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
234
234
  return null;
235
235
  }
236
236
  },
237
- [W, o]
237
+ [V, o]
238
238
  );
239
239
  return /* @__PURE__ */ T(_e, { children: [
240
240
  ne && /* @__PURE__ */ T(be, { className: s.header, testId: "documents-header", children: [
241
241
  /* @__PURE__ */ a("p", { children: o("DOCUMENTS_TABLE_HEADING") }),
242
242
  /* @__PURE__ */ a(
243
- Y,
243
+ Q,
244
244
  {
245
245
  autoAlign: !0,
246
246
  size: "lg",
@@ -259,15 +259,15 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
259
259
  ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
260
260
  rows: ie,
261
261
  loading: le,
262
- errorStateMessage: P ? k?.message : null,
262
+ errorStateMessage: k ? P?.message : null,
263
263
  sortable: ue,
264
264
  emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
265
265
  renderCell: he,
266
266
  className: s.documentsTableBody,
267
267
  dataTestId: "documents-table",
268
- pageSize: f,
268
+ pageSize: N,
269
269
  totalItems: se,
270
- page: M,
270
+ page: U,
271
271
  onPageChange: de
272
272
  }
273
273
  ) }),
@@ -283,22 +283,22 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
283
283
  size: "lg",
284
284
  testId: "document-view-modal",
285
285
  children: /* @__PURE__ */ T("div", { className: s.documentViewerContainer, children: [
286
- j.length > 1 && /* @__PURE__ */ a(
286
+ Y.length > 1 && /* @__PURE__ */ a(
287
287
  we,
288
288
  {
289
289
  kind: "tertiary",
290
290
  size: "sm",
291
291
  className: s.printAllButton,
292
- renderIcon: w === "all" ? X : Z,
293
- disabled: V || !K,
292
+ renderIcon: w === "all" ? Z : J,
293
+ disabled: F || !K,
294
294
  testId: "print-all-attachments",
295
- onClick: () => Q(j, "all"),
295
+ onClick: () => j(Y, "all"),
296
296
  children: o("DOCUMENTS_PRINT_ALL")
297
297
  }
298
298
  ),
299
299
  d.map((e, t) => {
300
- const n = S(e.url), i = e.contentType?.toLowerCase().includes("pdf"), c = (e.contentType?.toLowerCase().includes("image") ?? !1) || at.test(e.url ?? ""), N = D.has(t);
301
- return n === "#" || N ? /* @__PURE__ */ T(
300
+ const n = S(e.url), i = e.contentType?.toLowerCase().includes("pdf"), c = (e.contentType?.toLowerCase().includes("image") ?? !1) || at.test(e.url ?? ""), f = D.has(t);
301
+ return n === "#" || f ? /* @__PURE__ */ T(
302
302
  "div",
303
303
  {
304
304
  className: s.attachmentError,
@@ -324,17 +324,17 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
324
324
  total: d.length
325
325
  }) }) : /* @__PURE__ */ a("span", {}),
326
326
  /* @__PURE__ */ a(
327
- Y,
327
+ Q,
328
328
  {
329
329
  kind: "ghost",
330
330
  size: "sm",
331
331
  label: o("DOCUMENTS_PRINT_ATTACHMENT", {
332
332
  index: t + 1
333
333
  }),
334
- disabled: V || !K,
334
+ disabled: F || !K,
335
335
  testId: `print-attachment-${t}`,
336
- onClick: () => Q([e], t),
337
- children: w === t ? /* @__PURE__ */ a(X, {}) : /* @__PURE__ */ a(Z, {})
336
+ onClick: () => j([e], t),
337
+ children: w === t ? /* @__PURE__ */ a(Z, {}) : /* @__PURE__ */ a(J, {})
338
338
  }
339
339
  )
340
340
  ] }),
@@ -358,7 +358,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
358
358
  src: n,
359
359
  alt: r.documentIdentifier,
360
360
  className: `${s.documentImage} ${L.has(t) ? "" : s.hiddenWhileLoading}`,
361
- onLoad: () => z(t),
361
+ onLoad: () => W(t),
362
362
  onError: () => G(t)
363
363
  }
364
364
  ) : /* @__PURE__ */ a(
@@ -367,7 +367,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
367
367
  src: i ? `${n}#toolbar=0` : n,
368
368
  className: `${s.documentIframe} ${L.has(t) ? "" : s.hiddenWhileLoading}`,
369
369
  title: r.documentIdentifier,
370
- onLoad: () => z(t),
370
+ onLoad: () => W(t),
371
371
  onError: () => G(t)
372
372
  }
373
373
  )
@@ -377,7 +377,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
377
377
  `${r.id}-${e.url}`
378
378
  );
379
379
  }),
380
- /* @__PURE__ */ a("div", { id: J, className: s.printContainer })
380
+ /* @__PURE__ */ a("div", { id: X, className: s.printContainer })
381
381
  ] })
382
382
  }
383
383
  )
@@ -1,46 +1,46 @@
1
- import { jsx as n, jsxs as q, Fragment as ie } from "react/jsx-runtime";
2
- import { u as de, b as le, k as me, L as ce, U as ue, l as fe, m as be, Z as he, n as Ne, o as ye, J as Oe, f as ge, _ as x, P as V, A as Te, x as $, q as pe, r as Ee, W as Ie, O as Ae, C as Fe } from "./index-DepMUZYx.js";
3
- import { useQueryClient as _e, useQuery as A } from "@tanstack/react-query";
4
- import { useState as G, useMemo as i, useCallback as d } from "react";
5
- import { useTranslation as ve } from "react-i18next";
6
- const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_modalHeading__wnTmA", De = "FormsTable-module_customAccordianItem__isszs", y = {
1
+ import { jsx as n, jsxs as P, Fragment as ie } from "react/jsx-runtime";
2
+ import { u as de, b as le, l as me, m as ce, q as ue, n as fe, y as be, r as ye, o as he, s as Ne, Q as Oe, f as ge, z as V, F as x, $ as Te, L as $, t as pe, v as Ee, W as Ie, O as Fe, C as Ae } from "./index-BgKZQd55.js";
3
+ import { useQueryClient as ve, useQuery as F } from "@tanstack/react-query";
4
+ import { useState as z, useMemo as i, useCallback as d } from "react";
5
+ import { useTranslation as _e } from "react-i18next";
6
+ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", N = {
7
7
  formsTableBody: Re,
8
- modalHeading: Le,
9
- customAccordianItem: De
10
- }, Ce = "startConsultation", ke = ({
11
- episodeOfCareUuids: F,
8
+ modalHeading: De,
9
+ customAccordianItem: Le
10
+ }, Ce = "startConsultation", Ue = ({
11
+ episodeOfCareUuids: A,
12
12
  encounterUuids: m,
13
- config: j,
14
- disableActions: z = !1,
13
+ config: G,
14
+ disableActions: Q = !1,
15
15
  activeEncounterUuid: b = null
16
16
  }) => {
17
- const { t: o } = ve(), c = de(), [O, _] = G(!1), [a, v] = G(null), {
18
- numberOfVisits: K,
19
- hideThumbnail: Q = !1,
20
- forms: h
21
- } = j ?? {}, W = le(
22
- Fe.EDIT_OBSERVATIONS
23
- ), { userPrivileges: N } = me(), g = W && !z && !!b, R = ce(
24
- F,
17
+ const { t: o } = _e(), c = de(), [O, v] = z(!1), [a, _] = z(null), {
18
+ numberOfVisits: j,
19
+ hideThumbnail: K = !1,
20
+ forms: y
21
+ } = G ?? {}, W = le(
22
+ Ae.EDIT_OBSERVATIONS
23
+ ), { userPrivileges: h } = me(), g = W && !Q && !!b, R = ce(
24
+ A,
25
25
  m
26
- ), J = _e(), {
27
- data: L = [],
28
- isLoading: D,
26
+ ), Y = ve(), {
27
+ data: D = [],
28
+ isLoading: L,
29
29
  isError: C,
30
- error: Z,
31
- refetch: Y
32
- } = A({
33
- queryKey: ["forms", c, F],
34
- queryFn: () => ue(c, void 0, K),
30
+ error: J,
31
+ refetch: X
32
+ } = F({
33
+ queryKey: ["forms", c, A],
34
+ queryFn: () => ue(c, void 0, j),
35
35
  enabled: !!c && !R
36
36
  }), S = i(() => {
37
- let e = L;
37
+ let e = D;
38
38
  return m && m.length > 0 && (e = e.filter(
39
39
  (t) => m.includes(t.encounterUuid)
40
- )), Array.isArray(h) && h.length > 0 && (e = e.filter(
41
- (t) => h.some((s) => s.toLowerCase() === t.formName.toLowerCase())
40
+ )), Array.isArray(y) && y.length > 0 && (e = e.filter(
41
+ (t) => y.some((s) => s.toLowerCase() === t.formName.toLowerCase())
42
42
  )), e;
43
- }, [L, m, h]), { data: B = [] } = A({
43
+ }, [D, m, y]), { data: B = [] } = F({
44
44
  queryKey: ["observationForms"],
45
45
  queryFn: () => fe()
46
46
  }), M = d(
@@ -49,33 +49,33 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
49
49
  (r) => r.name.toLowerCase() === e.toLowerCase()
50
50
  );
51
51
  if (!t?.privileges || t.privileges.length === 0) return !0;
52
- if (!N || N.length === 0) return !1;
53
- const s = new Set(N.map((r) => r.name));
52
+ if (!h || h.length === 0) return !1;
53
+ const s = new Set(h.map((r) => r.name));
54
54
  return t.privileges.some(
55
55
  (r) => s.has(r.privilegeName) && r.editable
56
56
  );
57
57
  },
58
- [B, N]
58
+ [B, h]
59
59
  ), u = d(
60
60
  (e) => !b || e.encounterUuid !== b ? !1 : M(e.formName),
61
61
  [b, M]
62
62
  ), {
63
63
  data: T,
64
- isLoading: X,
64
+ isLoading: Z,
65
65
  isError: ee,
66
66
  error: p
67
- } = A({
67
+ } = F({
68
68
  queryKey: ["formsEncounterFHIR", a?.encounterUuid],
69
69
  queryFn: () => be(a.encounterUuid),
70
70
  enabled: !!a?.encounterUuid && O
71
71
  });
72
- he(
72
+ ye(
73
73
  (e) => {
74
- e.patientUUID === c && (Y(), J.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
74
+ e.patientUUID === c && (X(), Y.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
75
75
  },
76
76
  [c]
77
77
  );
78
- const re = i(() => !T?.entry || !a?.formName ? [] : T.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => Ne(t) ? ye(t)?.toLowerCase() === a.formName.toLowerCase() : !0), [T, a?.formName]), te = i(() => {
78
+ const re = i(() => !T?.entry || !a?.formName ? [] : T.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => he(t) ? Ne(t)?.toLowerCase() === a.formName.toLowerCase() : !0), [T, a?.formName]), te = i(() => {
79
79
  if (p)
80
80
  return Oe(p).message;
81
81
  }, [p]), f = i(
@@ -96,7 +96,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
96
96
  { key: "recordedBy", sortable: !0 }
97
97
  ],
98
98
  []
99
- ), U = i(() => {
99
+ ), k = i(() => {
100
100
  const e = S.reduce(
101
101
  (s, r) => {
102
102
  const l = r.formName;
@@ -121,10 +121,10 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
121
121
  )
122
122
  })
123
123
  ).sort((s, r) => s.formName.localeCompare(r.formName));
124
- }, [S, o]), k = d((e) => {
125
- v(e), _(!0);
124
+ }, [S, o]), U = d((e) => {
125
+ _(e), v(!0);
126
126
  }, []), H = d(() => {
127
- _(!1), v(null);
127
+ v(!1), _(null);
128
128
  }, []), E = d((e) => {
129
129
  globalThis.dispatchEvent(
130
130
  new CustomEvent(Ce, {
@@ -137,52 +137,52 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
137
137
  }
138
138
  })
139
139
  );
140
- }, []), P = d(
140
+ }, []), q = d(
141
141
  (e, t) => {
142
142
  switch (t) {
143
143
  case "recordedOn":
144
- return /* @__PURE__ */ n(Te, { onClick: () => k(e), children: e.recordedOn });
144
+ return /* @__PURE__ */ n(Te, { onClick: () => U(e), children: e.recordedOn });
145
145
  case "recordedBy":
146
146
  return e.recordedBy;
147
147
  case "actions":
148
148
  return u(e) ? /* @__PURE__ */ n(
149
- x,
149
+ V,
150
150
  {
151
151
  label: o("EDIT_OBSERVATION_FORM"),
152
152
  kind: "ghost",
153
153
  size: "sm",
154
154
  testId: `edit-form-${e.encounterUuid}`,
155
155
  onClick: () => E(e),
156
- children: /* @__PURE__ */ n(V, {})
156
+ children: /* @__PURE__ */ n(x, {})
157
157
  }
158
158
  ) : null;
159
159
  default:
160
160
  return null;
161
161
  }
162
162
  },
163
- [k, E, u, o]
163
+ [U, E, u, o]
164
164
  );
165
- return /* @__PURE__ */ q(ie, { children: [
166
- /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: D || C || U.length === 0 || R ? /* @__PURE__ */ n(
165
+ return /* @__PURE__ */ P(ie, { children: [
166
+ /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || C || k.length === 0 || R ? /* @__PURE__ */ n(
167
167
  $,
168
168
  {
169
169
  headers: oe,
170
170
  ariaLabel: o("FORMS_HEADING"),
171
171
  rows: [],
172
- loading: D,
173
- errorStateMessage: C ? Z?.message : void 0,
172
+ loading: L,
173
+ errorStateMessage: C ? J?.message : void 0,
174
174
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
175
- renderCell: P,
176
- className: y.formsTableBody,
175
+ renderCell: q,
176
+ className: N.formsTableBody,
177
177
  dataTestId: "forms-table"
178
178
  }
179
- ) : /* @__PURE__ */ n(pe, { align: "start", children: U.map((e, t) => {
179
+ ) : /* @__PURE__ */ n(pe, { align: "start", children: k.map((e, t) => {
180
180
  const { formName: s, records: r } = e, l = se(r);
181
181
  return /* @__PURE__ */ n(
182
182
  Ee,
183
183
  {
184
184
  title: s,
185
- className: y.customAccordianItem,
185
+ className: N.customAccordianItem,
186
186
  testId: `accordian-title-${s}`,
187
187
  open: t === 0,
188
188
  children: /* @__PURE__ */ n(
@@ -195,8 +195,8 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
195
195
  errorStateMessage: "",
196
196
  sortable: ae,
197
197
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
198
- renderCell: P,
199
- className: y.formsTableBody,
198
+ renderCell: q,
199
+ className: N.formsTableBody,
200
200
  dataTestId: `forms-table-${s}`
201
201
  }
202
202
  )
@@ -211,10 +211,10 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
211
211
  portalId: "main-display-area",
212
212
  open: O,
213
213
  onRequestClose: H,
214
- modalHeading: /* @__PURE__ */ q("div", { className: y.modalHeading, children: [
214
+ modalHeading: /* @__PURE__ */ P("div", { className: N.modalHeading, children: [
215
215
  /* @__PURE__ */ n("span", { children: a.formName }),
216
216
  g && u(a) && /* @__PURE__ */ n(
217
- x,
217
+ V,
218
218
  {
219
219
  label: o("EDIT_OBSERVATION_FORM"),
220
220
  kind: "ghost",
@@ -223,7 +223,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
223
223
  onClick: () => {
224
224
  H(), E(a);
225
225
  },
226
- children: /* @__PURE__ */ n(V, {})
226
+ children: /* @__PURE__ */ n(x, {})
227
227
  }
228
228
  )
229
229
  ] }),
@@ -232,15 +232,15 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
232
232
  size: "md",
233
233
  testId: "form-details-modal",
234
234
  children: /* @__PURE__ */ n(
235
- Ae,
235
+ Fe,
236
236
  {
237
237
  observations: re,
238
- isLoading: X,
238
+ isLoading: Z,
239
239
  isError: ee,
240
240
  errorMessage: te,
241
241
  emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
242
242
  testIdPrefix: a.formName,
243
- hideThumbnail: Q,
243
+ hideThumbnail: K,
244
244
  formName: a.formName
245
245
  }
246
246
  )
@@ -249,5 +249,5 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
249
249
  ] });
250
250
  };
251
251
  export {
252
- ke as default
252
+ Ue as default
253
253
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
- import { s as G, t as F, v as x, w as z, f as H, y as P, F as j, z as W, B as Z, u as J, a as Y, D as X, L as ee, E as se, G as te, Z as re, H as ae, I as oe, K as ne, R as ie, Q as ce, x as le } from "./index-DepMUZYx.js";
2
+ import { w as G, x as U, B as H, X as P, f as j, D as x, G as z, U as J, H as X, u as W, a as Y, I as Z, m as ee, J as se, K as te, r as re, M as ae, N as oe, P as ne, R as ie, g as ce, L as le } from "./index-BgKZQd55.js";
3
3
  import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as C, useMemo as I } from "react";
5
5
  import { useTranslation as w } from "react-i18next";
@@ -8,11 +8,11 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
8
8
  title: me,
9
9
  wrapper: ve,
10
10
  secondary: fe
11
- }, U = (t, l, n, c, u, r) => {
12
- const a = x(t, l, u), e = a.value, p = z(e);
11
+ }, F = (t, l, n, c, u, r) => {
12
+ const a = H(t, l, u), e = a.value, p = P(e);
13
13
  let o = e;
14
14
  p === "Image" && (o = /* @__PURE__ */ i(
15
- j,
15
+ z,
16
16
  {
17
17
  imageSrc: e,
18
18
  alt: e,
@@ -20,28 +20,28 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
20
20
  hideThumbnail: r
21
21
  }
22
22
  )), p === "Video" && (o = /* @__PURE__ */ i(
23
- W,
23
+ J,
24
24
  {
25
25
  id: `${e}-video`,
26
26
  videoSrc: e,
27
27
  hideThumbnail: r
28
28
  }
29
- )), p === "PDF" && (o = /* @__PURE__ */ i(Z, { id: `${e}-pdf`, src: e }));
29
+ )), p === "PDF" && (o = /* @__PURE__ */ i(X, { id: `${e}-pdf`, src: e }));
30
30
  const b = /* @__PURE__ */ N("div", { className: f.wrapper, children: [
31
31
  /* @__PURE__ */ i("span", { children: a.header.display }),
32
32
  a.header.referenceRange && /* @__PURE__ */ i("span", { className: f.secondary, children: a.header.referenceRange })
33
33
  ] }), d = u("OBSERVATIONS_RECORDED_BY", {
34
34
  provider: a.provider
35
- }), m = t.effectiveDateTime ? H(t.effectiveDateTime, u, !0).formattedResult : void 0, _ = /* @__PURE__ */ N("div", { className: f.wrapper, children: [
35
+ }), m = t.effectiveDateTime ? j(t.effectiveDateTime, u, !0).formattedResult : void 0, g = /* @__PURE__ */ N("div", { className: f.wrapper, children: [
36
36
  /* @__PURE__ */ i("span", { children: d }),
37
37
  m && /* @__PURE__ */ i("span", { className: f.secondary, children: m })
38
- ] }), v = t.display, g = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${g}-${v}-${n}-${l}` : `${g}-${v}-${n}-${l}`;
38
+ ] }), v = t.display, _ = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${_}-${v}-${n}-${l}` : `${_}-${v}-${n}-${l}`;
39
39
  return /* @__PURE__ */ i(
40
- P,
40
+ x,
41
41
  {
42
42
  header: b,
43
43
  value: o,
44
- info: _,
44
+ info: g,
45
45
  id: O,
46
46
  testId: O,
47
47
  ariaLabel: O
@@ -49,13 +49,13 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
49
49
  `obs-${t.id}`
50
50
  );
51
51
  }, ye = (t, l, n, c, u, r, a) => /* @__PURE__ */ i(
52
- F,
52
+ U,
53
53
  {
54
54
  title: t.display,
55
55
  id: `grouped-obs-${t.display}-${c}`,
56
56
  open: n,
57
57
  children: t.members?.map(
58
- (e, p) => U(
58
+ (e, p) => F(
59
59
  e,
60
60
  p,
61
61
  u,
@@ -74,14 +74,14 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
74
74
  const { t: c } = w(), u = (r, a, e) => {
75
75
  const p = G(r.encounterDetails, c);
76
76
  return /* @__PURE__ */ N(
77
- F,
77
+ U,
78
78
  {
79
79
  title: p,
80
80
  id: `encounter-${r.encounterId}`,
81
81
  open: a,
82
82
  children: [
83
83
  r.observations.map(
84
- (o, b) => U(
84
+ (o, b) => F(
85
85
  o,
86
86
  b,
87
87
  e,
@@ -117,7 +117,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
117
117
  )
118
118
  }
119
119
  );
120
- }, Ee = (t) => ["conceptUuid", t], he = (t, l, n, c) => [
120
+ }, he = (t) => ["conceptUuid", t], Ee = (t, l, n, c) => [
121
121
  "observations",
122
122
  t,
123
123
  ...l,
@@ -133,10 +133,10 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
133
133
  conceptUuid: r = [],
134
134
  hideThumbnail: a = !1,
135
135
  scope: e = "all"
136
- } = c, p = pe(/* @__PURE__ */ new Set()), o = J(), { addNotification: b } = Y(), { t: d } = w(), m = de({
136
+ } = c, p = pe(/* @__PURE__ */ new Set()), o = W(), { addNotification: b } = Y(), { t: d } = w(), m = de({
137
137
  queries: u.map((s) => ({
138
- queryKey: Ee(s),
139
- queryFn: () => X(s),
138
+ queryKey: he(s),
139
+ queryFn: () => Z(s),
140
140
  enabled: !!s
141
141
  }))
142
142
  });
@@ -148,22 +148,22 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
148
148
  type: "error"
149
149
  }), p.current.add(0)) : !s && R && p.current.clear();
150
150
  }, [m, b, d]);
151
- const _ = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([..._, ...r])], [_, r]), y = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), g = e === "latest" || e === "latest-encounter", O = ee(
151
+ const g = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([...g, ...r])], [g, r]), y = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), _ = e === "latest" || e === "latest-encounter", O = ee(
152
152
  l,
153
153
  n
154
154
  ), {
155
- data: E,
155
+ data: h,
156
156
  isLoading: V,
157
157
  isError: S,
158
158
  refetch: D
159
159
  } = ue({
160
- queryKey: he(
160
+ queryKey: Ee(
161
161
  o,
162
162
  v,
163
163
  n,
164
164
  e
165
165
  ),
166
- queryFn: () => g ? se(
166
+ queryFn: () => _ ? se(
167
167
  o,
168
168
  v,
169
169
  n
@@ -189,21 +189,21 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
189
189
  });
190
190
  }, [S]);
191
191
  const L = I(() => {
192
- if (!E) return [];
193
- let s = ae(E);
192
+ if (!h) return [];
193
+ let s = ae(h);
194
194
  e === "latest-encounter" && (s = oe(s));
195
195
  const R = ne(s);
196
196
  return ie(R);
197
- }, [E, e]), K = [
197
+ }, [h, e]), K = [
198
198
  { key: "name", header: "name" },
199
199
  { key: "value", header: "value" },
200
200
  { key: "form", header: "form" }
201
- ], A = V || !y, B = S && y, Q = (!E || E.entry?.length === 0 || v.length === 0) && y, M = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, k = Q ? d("NO_OBSERVATIONS_FOUND") : void 0, q = L.length > 0 && !A && !B, T = c.titleTranslationKey, h = T ? d(T) : "";
201
+ ], A = V || !y, B = S && y, M = (!h || h.entry?.length === 0 || v.length === 0) && y, k = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, Q = M ? d("NO_OBSERVATIONS_FOUND") : void 0, q = L.length > 0 && !A && !B, T = c.titleTranslationKey, E = T ? d(T) : "";
202
202
  return /* @__PURE__ */ N(
203
203
  "div",
204
204
  {
205
205
  id: "observations",
206
- "data-testid": T ? `observations-${h}` : "observations",
206
+ "data-testid": T ? `observations-${E}` : "observations",
207
207
  "aria-label": "observations-aria-label",
208
208
  className: f.observations,
209
209
  children: [
@@ -211,17 +211,17 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
211
211
  ce,
212
212
  {
213
213
  id: "observations-title",
214
- testId: T ? `observations-title-${h}` : "observations-title",
215
- title: h,
214
+ testId: T ? `observations-title-${E}` : "observations-title",
215
+ title: E,
216
216
  className: f.title,
217
- children: /* @__PURE__ */ i("p", { children: h })
217
+ children: /* @__PURE__ */ i("p", { children: E })
218
218
  }
219
219
  ),
220
220
  q ? /* @__PURE__ */ i(
221
221
  Oe,
222
222
  {
223
223
  groupedData: L,
224
- title: h,
224
+ title: E,
225
225
  hideThumbnail: a
226
226
  }
227
227
  ) : /* @__PURE__ */ i(
@@ -231,8 +231,8 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
231
231
  rows: [],
232
232
  ariaLabel: d("OBSERVATIONS"),
233
233
  loading: A,
234
- errorStateMessage: M,
235
- emptyStateMessage: k ?? d("NO_OBSERVATIONS_AVAILABLE"),
234
+ errorStateMessage: k,
235
+ emptyStateMessage: Q ?? d("NO_OBSERVATIONS_AVAILABLE"),
236
236
  dataTestId: "observations-table"
237
237
  }
238
238
  )
@@ -241,7 +241,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
241
241
  );
242
242
  };
243
243
  export {
244
- Ee as conceptUuidQueryKeys,
244
+ he as conceptUuidQueryKeys,
245
245
  Ne as default,
246
- he as observationsQueryKeys
246
+ Ee as observationsQueryKeys
247
247
  };
@@ -64700,6 +64700,7 @@ pp.propTypes = {
64700
64700
  */
64701
64701
  tabIndex: f.number
64702
64702
  };
64703
+ f.string, f.string, f.bool, f.string.isRequired, f.number, f.oneOf(["small", "big"]), f.oneOf(["active", "finished", "error"]), f.oneOf(["default", "inline", "indented"]), f.number;
64703
64704
  const Nn = ({
64704
64705
  testId: t,
64705
64706
  "data-testid": e,
@@ -107253,7 +107254,7 @@ const q$t = [
107253
107254
  },
107254
107255
  {
107255
107256
  type: "patientDocuments",
107256
- component: Qr(() => import("./DocumentsTable-BgmDp581.js"))
107257
+ component: Qr(() => import("./DocumentsTable-Dr2qndXr.js"))
107257
107258
  },
107258
107259
  {
107259
107260
  type: "flowSheet",
@@ -107261,7 +107262,7 @@ const q$t = [
107261
107262
  },
107262
107263
  {
107263
107264
  type: "forms",
107264
- component: Qr(() => import("./FormsTable-Cekdbhbb.js"))
107265
+ component: Qr(() => import("./FormsTable-D-XpgsDg.js"))
107265
107266
  },
107266
107267
  {
107267
107268
  type: "labOrders",
@@ -107269,7 +107270,7 @@ const q$t = [
107269
107270
  },
107270
107271
  {
107271
107272
  type: "observations",
107272
- component: Qr(() => import("./Observations-DMNiLVdz.js"))
107273
+ component: Qr(() => import("./Observations-C7atIbTd.js"))
107273
107274
  },
107274
107275
  {
107275
107276
  type: "ordersControl",
@@ -107736,34 +107737,34 @@ const j_e = o.createContext(void 0), ckt = () => {
107736
107737
  );
107737
107738
  };
107738
107739
  export {
107739
- nZt as $,
107740
- Kn as A,
107741
- rxe as B,
107740
+ Kn as $,
107741
+ J1 as A,
107742
+ uZt as B,
107742
107743
  yZt as C,
107743
- q7t as D,
107744
- Xkt as E,
107745
- txe as F,
107746
- Jkt as G,
107747
- hZt as H,
107748
- mZt as I,
107749
- Rr as J,
107750
- pZt as K,
107751
- Vi as L,
107752
- O2 as M,
107753
- J1 as N,
107744
+ lht as D,
107745
+ O2 as E,
107746
+ zc as F,
107747
+ txe as G,
107748
+ rxe as H,
107749
+ q7t as I,
107750
+ Xkt as J,
107751
+ Jkt as K,
107752
+ Ir as L,
107753
+ hZt as M,
107754
+ mZt as N,
107754
107755
  N6 as O,
107755
- zc as P,
107756
- hi as Q,
107756
+ pZt as P,
107757
+ Rr as Q,
107757
107758
  fZt as R,
107758
107759
  f6t as S,
107759
107760
  tZt as T,
107760
- Qkt as U,
107761
+ nxe as U,
107761
107762
  oZt as V,
107762
107763
  Kr as W,
107763
- $me as X,
107764
- ayt as Y,
107765
- w1 as Z,
107766
- Uo as _,
107764
+ t9e as X,
107765
+ $me as Y,
107766
+ ayt as Z,
107767
+ nZt as _,
107767
107768
  zr as a,
107768
107769
  aZt as a0,
107769
107770
  $Ne as a1,
@@ -107823,28 +107824,28 @@ export {
107823
107824
  bZt as ay,
107824
107825
  WAe as az,
107825
107826
  s6 as b,
107826
- eZt as c,
107827
- iZt as d,
107827
+ iZt as c,
107828
+ eZt as d,
107828
107829
  Ta as e,
107829
107830
  ht as f,
107830
- L1 as g,
107831
- Nn as h,
107832
- Q3 as i,
107833
- K4 as j,
107834
- Z1 as k,
107835
- bNe as l,
107836
- bvt as m,
107837
- kAe as n,
107838
- _zt as o,
107831
+ hi as g,
107832
+ L1 as h,
107833
+ Nn as i,
107834
+ Q3 as j,
107835
+ K4 as k,
107836
+ Z1 as l,
107837
+ Vi as m,
107838
+ bNe as n,
107839
+ kAe as o,
107839
107840
  sZt as p,
107840
- Wo as q,
107841
- Go as r,
107842
- dZt as s,
107843
- Okt as t,
107841
+ Qkt as q,
107842
+ w1 as r,
107843
+ _zt as s,
107844
+ Wo as t,
107844
107845
  un as u,
107845
- uZt as v,
107846
- t9e as w,
107847
- Ir as x,
107848
- lht as y,
107849
- nxe as z
107846
+ Go as v,
107847
+ dZt as w,
107848
+ Okt as x,
107849
+ bvt as y,
107850
+ Uo as z
107850
107851
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aw as o, au as r, a4 as n, at as c, aR as g, a5 as l, a9 as m, C as d, al as P, aC as u, a6 as v, S as T, a7 as C, a2 as D, T as p, V as A, af as S, ai as b, ac as L, aN as N, aP as y, aQ as E, aT as I, a8 as U, aS as f, an as h, ao as O, O as R, a3 as W, ah as _, aj as x, ab as k, aa as F, ad as G, ag as M, aL as V, aK as w, as as H, ak as K, ae as q, aB as z, ay as B, ax as Y, X as j, aU as J, o as Q, aI as X, aH as $, Y as Z, aA as aa, aE as ea, aF as sa, aG as ta, $ as ia, az as oa, aD as ra, a0 as na, aJ as ca, a1 as ga, av as la, am as ma, ap as da, ar as Pa, b as ua, aO as va, a as Ta, aq as Ca, u as Da, aM as pa, k as Aa } from "./index-DepMUZYx.js";
1
+ import { aw as o, au as r, a4 as n, at as c, aR as g, a5 as l, a9 as m, C as d, al as P, aC as u, a6 as v, S as T, a7 as C, a2 as D, T as p, V as A, af as S, ai as b, ac as L, aN as N, aP as y, aQ as E, aT as I, a8 as U, aS as f, an as h, ao as O, O as R, a3 as W, ah as _, aj as x, ab as F, aa as G, ad as M, ag as V, aL as k, aK as w, as as H, ak as K, ae as q, aB as z, ay as B, ax as Y, Y as j, aU as J, s as Q, aI as Z, aH as X, Z as $, aA as aa, aE as ea, aF as sa, aG as ta, _ as ia, az as oa, aD as ra, a0 as na, aJ as ca, a1 as ga, av as la, am as ma, ap as da, ar as Pa, b as ua, aO as va, a as Ta, aq as Ca, u as Da, aM as pa, l as Aa } from "./index-BgKZQd55.js";
2
2
  import "react/jsx-runtime";
3
3
  import "@tanstack/react-query";
4
4
  import "react";
@@ -34,11 +34,11 @@ export {
34
34
  W as PatientDetails,
35
35
  _ as PatientProgramsTable,
36
36
  x as ProgramDetails,
37
- k as RadiologyInvestigationReport,
38
- F as RadiologyInvestigationTable,
39
- G as SearchPatient,
40
- M as TaskList,
41
- V as UserActionProvider,
37
+ F as RadiologyInvestigationReport,
38
+ G as RadiologyInvestigationTable,
39
+ M as SearchPatient,
40
+ V as TaskList,
41
+ k as UserActionProvider,
42
42
  w as UserGlobalAction,
43
43
  H as UserPrivilegeProvider,
44
44
  K as VisitsTable,
@@ -49,9 +49,9 @@ export {
49
49
  j as createEmptyDocumentEntry,
50
50
  J as deriveFormSchemaData,
51
51
  Q as extractFormName,
52
- X as getAllWidgetConfigs,
53
- $ as getAllWidgetTypes,
54
- Z as getDefaultDocumentType,
52
+ Z as getAllWidgetConfigs,
53
+ X as getAllWidgetTypes,
54
+ $ as getDefaultDocumentType,
55
55
  aa as getSearchWidget,
56
56
  ea as getWidget,
57
57
  sa as getWidgetConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.458",
3
+ "version": "0.0.1-dev.459",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",