@bahmni/appointments-app 0.0.1-dev.220 → 0.0.1-dev.221

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 { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
2
- import { t as K, u as Q, r as W, a as J, M as X, N as Z, o as ee, s as te, b as ae } from "./index-CWBmCK15.js";
2
+ import { t as K, u as Q, r as W, a as J, M as X, N as Z, o as ee, s as te, b as ae } from "./index-B7sr9NqR.js";
3
3
  import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
4
4
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
5
5
  documentsTableBody: ne,
@@ -1,17 +1,17 @@
1
1
  import { jsx as o, jsxs as Y, Fragment as Z } from "react/jsx-runtime";
2
- import { u as W, t as ee, m as re, c as ae, a as c, k as te, V as U, N as se, M as oe, o as C, G as ne, J as de, s as ie, Z as ue, d as me, e as le, X as ce, f as fe, Q as ye } from "./index-CWBmCK15.js";
3
- import { useState as S, useMemo as d, useCallback as f } from "react";
4
- const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
5
- formsTableBody: be,
6
- customAccordianItem: Ne
2
+ import { u as W, t as ee, m as re, c as ae, a as c, k as te, V as U, N as se, M as oe, o as S, G as ne, J as de, s as ie, Z as ue, d as me, e as le, X as ce, f as fe, Q as ye } from "./index-B7sr9NqR.js";
3
+ import { useState as q, useMemo as d, useCallback as f } from "react";
4
+ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
5
+ formsTableBody: Ne,
6
+ customAccordianItem: be
7
7
  }, pe = (u) => u ? u.extension?.find(
8
8
  (n) => n.url === me
9
9
  )?.valueString : void 0, Oe = ({
10
10
  episodeOfCareUuids: u,
11
11
  encounterUuids: n,
12
- config: q
12
+ config: C
13
13
  }) => {
14
- const { t: s } = W(), m = ee(), [l, O] = S(!1), [t, A] = S(null), { numberOfVisits: k, hideThumbnail: V = !1 } = q ?? {}, M = re(
14
+ const { t: s } = W(), m = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: k, hideThumbnail: V = !1 } = C ?? {}, M = re(
15
15
  u,
16
16
  n
17
17
  ), G = ae(), {
@@ -26,23 +26,23 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
26
26
  enabled: !!m && !M
27
27
  }), E = d(() => !n || n.length === 0 ? y : y.filter(
28
28
  (e) => n.includes(e.encounterUuid)
29
- ), [y, n]), { data: _ = [] } = c({
29
+ ), [y, n]), { data: F = [] } = c({
30
30
  queryKey: ["observationForms"],
31
31
  queryFn: () => ce()
32
- }), F = f(
33
- (e) => _.find((r) => r.name === e)?.uuid,
34
- [_]
35
- ), b = d(() => {
32
+ }), _ = f(
33
+ (e) => F.find((r) => r.name === e)?.uuid,
34
+ [F]
35
+ ), N = d(() => {
36
36
  if (t)
37
- return F(t.formName);
38
- }, [t, F]), {
37
+ return _(t.formName);
38
+ }, [t, _]), {
39
39
  isLoading: Q,
40
40
  isError: j,
41
- error: N
41
+ error: b
42
42
  } = c({
43
- queryKey: ["formMetadata", b],
44
- queryFn: () => fe(b),
45
- enabled: !!b && l
43
+ queryKey: ["formMetadata", N],
44
+ queryFn: () => fe(N),
45
+ enabled: !!N && l
46
46
  }), {
47
47
  data: p,
48
48
  isLoading: x,
@@ -63,11 +63,11 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
63
63
  const r = pe(e);
64
64
  return !r || r.includes(t.formName);
65
65
  }), [p, t?.formName]), z = d(() => {
66
- if (N)
67
- return U(N).message;
66
+ if (b)
67
+ return U(b).message;
68
68
  if (g)
69
69
  return U(g).message;
70
- }, [N, g]), L = d(
70
+ }, [b, g]), L = d(
71
71
  () => [
72
72
  { key: "recordedOn", header: s("RECORDED_ON") },
73
73
  { key: "recordedBy", header: s("RECORDED_BY") }
@@ -123,7 +123,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
123
123
  );
124
124
  return /* @__PURE__ */ Y(Z, { children: [
125
125
  /* @__PURE__ */ o("div", { "data-testid": "forms-table", children: T || B || D.length === 0 || M ? /* @__PURE__ */ o(
126
- C,
126
+ S,
127
127
  {
128
128
  headers: L,
129
129
  ariaLabel: s("FORMS_HEADING"),
@@ -145,7 +145,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
145
145
  testId: `accordian-title-${a}`,
146
146
  open: r === 0,
147
147
  children: /* @__PURE__ */ o(
148
- C,
148
+ S,
149
149
  {
150
150
  headers: L,
151
151
  ariaLabel: s("FORMS_HEADING"),
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CD6oYRfl.js";
2
- import { T as d, U as f, _ as e } from "./index-CWBmCK15.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D46MSmNI.js";
2
+ import { T as d, U as f, _ as e } from "./index-B7sr9NqR.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-CD6oYRfl.js";
2
- import { T as v, U as C, _ as e } from "./index-CWBmCK15.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-D46MSmNI.js";
2
+ import { T as v, U as C, _ as e } from "./index-B7sr9NqR.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 N, jsx as u } from "react/jsx-runtime";
2
- import { t as B, r as K, u as S, g as G, Y as w, a as x, k as M, h as Q, l as j, i as H, j as Y, o as P, n as z, O as U, p as J, q as W, I as X, v as Z, w as ee, x as ae, y as te } from "./index-CWBmCK15.js";
2
+ import { t as B, r as K, u as S, g as G, Y as w, a as x, k as M, h as Q, l as j, i as H, j as Y, o as P, n as z, O as U, p as J, q as W, I as X, v as Z, w as ee, x as ae, y as te } from "./index-B7sr9NqR.js";
3
3
  import { useRef as se, useEffect as $, useMemo as R } from "react";
4
4
  const D = (a, n, d, l, b, r) => {
5
5
  const t = J(a, n, b), s = t.value, i = W(s);
@@ -1,4 +1,4 @@
1
- import { $ as we, a0 as z, a1 as xt, a2 as B, U as q, _ as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-CWBmCK15.js";
1
+ import { $ as we, a0 as z, a1 as xt, a2 as B, U as q, _ as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-B7sr9NqR.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -159082,7 +159082,7 @@ function Dx0(t, e, r) {
159082
159082
  return o;
159083
159083
  };
159084
159084
  }
159085
- z0(() => Promise.resolve().then(() => Gg0)), z0(() => Promise.resolve().then(() => VE0)), z0(() => Promise.resolve().then(() => XE0)), z0(() => Promise.resolve().then(() => cM0)), z0(() => import("./DocumentsTable-CJ7fZ08M-CcE8Wuie.js")), z0(() => Promise.resolve().then(() => Sz0)), z0(() => import("./FormsTable-B5bhuwKx-DNNkNDYo.js")), z0(() => Promise.resolve().then(() => Ez0)), z0(() => import("./Observations-DkQGjP2q-D29nvKTz.js")), z0(
159085
+ z0(() => Promise.resolve().then(() => Gg0)), z0(() => Promise.resolve().then(() => VE0)), z0(() => Promise.resolve().then(() => XE0)), z0(() => Promise.resolve().then(() => cM0)), z0(() => import("./DocumentsTable-BZHe_sb0-Dk0nkxR9.js")), z0(() => Promise.resolve().then(() => Sz0)), z0(() => import("./FormsTable-BztxQbBL-BZoaOmVP.js")), z0(() => Promise.resolve().then(() => Ez0)), z0(() => import("./Observations-Cnt-RGWx-DXj-qOLU.js")), z0(
159086
159086
  () => Promise.resolve().then(() => Wz0)
159087
159087
  ), z0(
159088
159088
  () => Promise.resolve().then(() => By0)
@@ -160921,7 +160921,7 @@ var aN0 = (t, e = !1) => {
160921
160921
  const e = uAe(() => {
160922
160922
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t;
160923
160923
  let d;
160924
- return this.#i ? d = this.#i : (d = sAe(() => import("./LNWAZHJI-DRTpsX-W.js")), this.#i = d), AAe(this.#l, this.#c), lAe(d, iAe({
160924
+ return this.#i ? d = this.#i : (d = sAe(() => import("./LNWAZHJI-CJqlFHq9.js")), this.#i = d), AAe(this.#l, this.#c), lAe(d, iAe({
160925
160925
  get queryFlavor() {
160926
160926
  return r.#r;
160927
160927
  },
@@ -161019,7 +161019,7 @@ var aN0 = (t, e = !1) => {
161019
161019
  const e = uAe(() => {
161020
161020
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t, [d] = this.#i;
161021
161021
  let u;
161022
- return this.#s ? u = this.#s : (u = sAe(() => import("./MWZ6AO7Z-D_n75aW4.js")), this.#s = u), AAe(this.#l, this.#c), lAe(u, iAe({
161022
+ return this.#s ? u = this.#s : (u = sAe(() => import("./MWZ6AO7Z-CUMbYzcx.js")), this.#s = u), AAe(this.#l, this.#c), lAe(u, iAe({
161023
161023
  get queryFlavor() {
161024
161024
  return r.#r;
161025
161025
  },
@@ -161179,7 +161179,7 @@ const XH0 = {
161179
161179
  }), hb0 = z0(
161180
161180
  () => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
161181
161181
  ), pb0 = z0(
161182
- () => import("./index-B9QiJKC7.js").then((t) => ({
161182
+ () => import("./index-DPKtCk_t.js").then((t) => ({
161183
161183
  default: t.default
161184
161184
  }))
161185
161185
  ), fb0 = [
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { z as V, A as h, u as I, B as O, C as P, c as B, r as G, W as x, D as L, a as U, E as q, F, H as W, K as $, L as k, P as H, R as K, S as j } from "./index-CWBmCK15.js";
2
+ import { z as V, A as h, u as I, B as O, C as P, c as B, r as G, W as x, D as L, a as U, E as q, F, H as W, K as $, L as k, P as H, R as K, S as j } from "./index-B7sr9NqR.js";
3
3
  import { useState as C, useMemo as _ } from "react";
4
4
  const Q = V(
5
5
  h,
@@ -82,17 +82,17 @@ const re = () => {
82
82
  ), m = _(
83
83
  () => ee(l),
84
84
  [l]
85
- ), { data: A, isLoading: D, isError: N } = U({
85
+ ), { data: A, isLoading: D, isError: R } = U({
86
86
  queryKey: ["allAppointmentServices"],
87
87
  queryFn: j,
88
88
  enabled: u
89
- }), R = _(
89
+ }), b = _(
90
90
  () => te(l, e),
91
91
  [l]
92
- ), b = _(
92
+ ), g = _(
93
93
  () => ae(A ?? [], m),
94
94
  [A, m]
95
- ), g = async () => {
95
+ ), N = async () => {
96
96
  S(!0);
97
97
  try {
98
98
  await K(E.id), t({
@@ -143,11 +143,11 @@ const re = () => {
143
143
  {
144
144
  id: "all-services",
145
145
  title: e("ADMIN_ALL_SERVICES_TITLE"),
146
- headers: R,
147
- rows: b,
146
+ headers: b,
147
+ rows: g,
148
148
  ariaLabel: "all-services-table",
149
149
  loading: D,
150
- errorStateMessage: N ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
150
+ errorStateMessage: R ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
151
151
  emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
152
152
  renderCell: T,
153
153
  className: d.table
@@ -158,7 +158,7 @@ const re = () => {
158
158
  {
159
159
  serviceName: E.name,
160
160
  isDeleting: v,
161
- onConfirm: g,
161
+ onConfirm: N,
162
162
  onCancel: () => c(null)
163
163
  }
164
164
  )
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aK as t } from "./index-CWBmCK15.js";
1
+ import { aK as t } from "./index-B7sr9NqR.js";
2
2
  export {
3
3
  t as AppointmentsApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/appointments-app",
3
- "version": "0.0.1-dev.220",
3
+ "version": "0.0.1-dev.221",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",