@bahmni/clinical-app 0.0.1-dev.184 → 0.0.1-dev.185

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 Z, jsx as i, Fragment as Bt } from "react/jsx-runtime";
2
- import { M as Rt, u as It, p as St, a as bt, j as kt, b as Wt, Y as Ut, P as $t, T as o, O as l, G as jt } from "./index-C5-I5K00.js";
2
+ import { M as Rt, u as It, p as St, a as bt, j as kt, b as Wt, Y as Ut, P as $t, T as o, O as l, G as jt } from "./index-C22Nwj39.js";
3
3
  import e, { useState as x, useCallback as V, useEffect as qt, useMemo as u } from "react";
4
4
  var N, A, L, C, y, _, T, O, D, B, R, I, S, b, k, W, U, $, j, q, F, K, P, Y, G, Q, J, X, e2, r2, t2, c2, n2, o2, l2, h2, a2, i2, s2, p2, w2, v2, d2, f2, m2, E2, V2, u2, H2, M2, z2, g2, Z2, x2, N2, A2, L2, C2, y2, _2, T2, O2, D2, B2, R2, I2, S2, b2, k2, W2, U2, $2, j2, q2, F2, K2, P2, Y2, G2, Q2, J2, X2, e1, r1, t1, c1, n1, o1, l1, h1, a1, i1, s1, p1, w1, v1, d1, f1, m1, E1, V1, u1, H1, M1, z1, g1, Z1, x1, N1, A1, L1, C1, y1, _1, T1, O1, D1, B1, R1, I1, S1, b1, k1, W1, U1, $1, j1, q1, F1, K1, P1, Y1, G1, Q1, J1, X1, e0, r0, t0, c0, n0, o0, l0, h0, a0, i0, s0, p0, w0, v0, d0, f0, m0, E0, V0, u0, H0, M0, z0, g0, Z0, x0, N0, A0, L0, C0, y0, _0, T0, O0, D0, B0, R0, I0, S0, b0, k0, W0, U0, $0, j0, q0, F0, K0, P0, Y0, G0, Q0, J0, X0, ee, re, te, ce, ne, oe, le, he, ae, ie, se, pe, we, ve, de, fe, me, Ee, Ve, ue, He, Me, ze, ge, Ze, xe;
5
5
  const Ne = {}, Ft = /* @__PURE__ */ e.forwardRef(function({
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as p, Fragment as P } from "react/jsx-runtime";
2
- import { u as ee, M as re, i as ae, c as te, a as A, S as oe, j as ne, C as se, b as U, f as de, m as me, Y as ie, V as le, d as q, e as ce, P as ue, g as F, h as be, y as pe, x as fe, k as _e, F as $e, l as ve, q as ge, K as he, U as ye } from "./index-C5-I5K00.js";
2
+ import { u as ee, M as re, i as ae, c as te, a as A, S as oe, j as ne, C as se, b as U, f as de, m as me, Y as ie, V as le, d as q, e as ce, P as ue, g as F, h as be, y as pe, k as fe, l as _e, F as $e, n as ve, q as ge, K as he, U as ye } from "./index-C22Nwj39.js";
3
3
  import { useState as z, useMemo as h, useCallback as C } from "react";
4
- const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Ie = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", xe = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", o = {
4
+ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Me = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Ie = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", xe = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", o = {
5
5
  formsTableBody: Ne,
6
6
  customAccordianItem: Ae,
7
7
  formContent: Ce,
@@ -16,8 +16,8 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
16
16
  memberRow: Te,
17
17
  memberLabel: De,
18
18
  memberValue: we,
19
- abnormalValue: xe,
20
- commentSection: Ee,
19
+ abnormalValue: Ee,
20
+ commentSection: xe,
21
21
  commentText: Be,
22
22
  nestedGroup: Ge,
23
23
  nestedGroupLabel: Ue,
@@ -297,7 +297,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
297
297
  const w = h(() => !L || !t?.formName ? [] : ke(
298
298
  L,
299
299
  t.formName
300
- ), [L, t?.formName]), x = h(
300
+ ), [L, t?.formName]), E = h(
301
301
  () => [
302
302
  { key: "recordedOn", header: a("FORM_RECORDED_ON") },
303
303
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
@@ -309,7 +309,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
309
309
  { key: "recordedBy", sortable: !0 }
310
310
  ],
311
311
  []
312
- ), E = h(() => {
312
+ ), x = h(() => {
313
313
  const i = V.reduce(
314
314
  (u, l) => {
315
315
  const g = l.formName;
@@ -352,10 +352,10 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
352
352
  [B]
353
353
  );
354
354
  return /* @__PURE__ */ p(P, { children: [
355
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || E.length === 0 || f ? /* @__PURE__ */ s(
355
+ /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || x.length === 0 || f ? /* @__PURE__ */ s(
356
356
  U,
357
357
  {
358
- headers: x,
358
+ headers: E,
359
359
  ariaLabel: a("FORMS_HEADING"),
360
360
  rows: [],
361
361
  loading: y,
@@ -365,7 +365,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
365
365
  className: o.formsTableBody,
366
366
  dataTestId: "forms-table"
367
367
  }
368
- ) : /* @__PURE__ */ s(de, { align: "start", children: E.map((i, u) => {
368
+ ) : /* @__PURE__ */ s(de, { align: "start", children: x.map((i, u) => {
369
369
  const { formName: l, records: g } = i;
370
370
  return /* @__PURE__ */ s(
371
371
  me,
@@ -377,7 +377,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
377
377
  children: /* @__PURE__ */ s(
378
378
  U,
379
379
  {
380
- headers: x,
380
+ headers: E,
381
381
  ariaLabel: a("FORMS_HEADING"),
382
382
  rows: g,
383
383
  loading: !1,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D0NXgCAg.js";
2
- import { $ as d, a0 as f, a1 as e } from "./index-C5-I5K00.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BKpWfK7h.js";
2
+ import { $ as d, a0 as f, a1 as e } from "./index-C22Nwj39.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-D0NXgCAg.js";
2
- import { $ as v, a0 as C, a1 as e } from "./index-C5-I5K00.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BKpWfK7h.js";
2
+ import { $ as v, a0 as C, a1 as e } from "./index-C22Nwj39.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as D, jsx as v } from "react/jsx-runtime";
2
- import { n as U, o as _, r as P, Q as L, c as V, s as K, t as G, v as j, w as W, z as J, A as X, B as T, D as N, E as Y, H as Z, M as ee, p as se, u as M, I as te, a as re, S as ie, e as ne, J as oe, L as ae, R as ue, b as ce, N as le, W as k, X as he, h as de, Z as pe, y as be, x as fe, k as ye, _ as ve } from "./index-C5-I5K00.js";
2
+ import { o as U, r as _, s as P, Q as L, c as V, t as K, v as G, w as j, x as W, z as J, A as X, B as T, D as N, E as Y, H as Z, M as ee, p as se, u as M, I as te, a as re, S as ie, e as ne, J as oe, L as ae, R as ue, b as ce, N as le, W as k, X as he, h as de, Z as pe, y as be, k as fe, l as ye, _ as ve } from "./index-C22Nwj39.js";
3
3
  import * as E from "react";
4
4
  import { useRef as me, useEffect as I, useMemo as C } from "react";
5
5
  function $(e, s) {
@@ -327,7 +327,7 @@ const z = (e, s, t, i, r) => {
327
327
  { key: "name", header: "name" },
328
328
  { key: "value", header: "value" },
329
329
  { key: "form", header: "form" }
330
- ], O = S || !f, w = R && f, A = (!y || y.entry?.length === 0 || b.length === 0) && f, x = w ? n("ERROR_FETCHING_OBSERVATIONS") : null, B = A ? n("NO_OBSERVATIONS_FOUND") : void 0, F = d.length > 0 && !O && !w, Q = s.titleTranslationKey, g = Q ? n(Q) : "";
330
+ ], O = S || !f, w = R && f, A = (!y || y.entry?.length === 0 || b.length === 0) && f, B = w ? n("ERROR_FETCHING_OBSERVATIONS") : null, x = A ? n("NO_OBSERVATIONS_FOUND") : void 0, F = d.length > 0 && !O && !w, Q = s.titleTranslationKey, g = Q ? n(Q) : "";
331
331
  return /* @__PURE__ */ D(
332
332
  "div",
333
333
  {
@@ -353,8 +353,8 @@ const z = (e, s, t, i, r) => {
353
353
  rows: [],
354
354
  ariaLabel: n("OBSERVATIONS"),
355
355
  loading: O,
356
- errorStateMessage: x,
357
- emptyStateMessage: B,
356
+ errorStateMessage: B,
357
+ emptyStateMessage: x,
358
358
  dataTestId: "observations-table"
359
359
  }
360
360
  )
@@ -1,4 +1,4 @@
1
- import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-C5-I5K00.js";
1
+ import { a2 as we, a3 as z, a4 as xt, a5 as B, a0 as q, a1 as y, a6 as Ro, a7 as ye, a8 as R, a9 as _, aa as k, ab as N, ac as A, ad as bs, ae as ir, af as $e, ag as G, ah as Hn, ai as Vn, aj as dt, ak as D, al as xs, am as cn, an as Be, ao as ws, ap as qt, aq as zt, ar as $s, as as Cs, at as $n, au as Ss, av as Nr, aw as Bt, ax as zo, ay as ks, az as Es, aA as j, aB as Gr, aC as Ms, aD as Ds, aE as sr, aF as As, aG as Ts, aH as zn, aI as Fs, aJ as Is, aK as Z, aL as Ps, aM as Ls } from "./index-C22Nwj39.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {