@bahmni/registration-app 0.0.1-dev.321 → 0.0.1-dev.324

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 h, Fragment as x } from "react/jsx-runtime";
2
- import { n as G, u as W, o as Y, U as J, a as X, g as Z, O as ee, h as te } from "./index-Bg7A7wDU.js";
2
+ import { n as G, u as W, o as Y, U as J, a as X, g as Z, O as ee, h as te } from "./index-CTSIYmp7.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as N, useMemo as p } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
2
- import { u as te, n as oe, x as se, j as ne, B as de, F as ie, P as le, p as ue, D as q, g as me, a as ce, O as j, w as fe, v as ye, h as he, Q as pe, $ as be } from "./index-Bg7A7wDU.js";
2
+ import { u as te, n as oe, x as se, j as ne, B as de, F as ie, P as le, p as ue, D as q, g as me, a as ce, O as j, w as fe, v as ye, h as he, Q as pe, $ as be } from "./index-CTSIYmp7.js";
3
3
  import { useQueryClient as ge, useQuery as h } from "@tanstack/react-query";
4
4
  import { useState as w, useMemo as d, useCallback as p } from "react";
5
5
  const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", M = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-C8FSFnJx.js";
2
- import { f, i as d, l as e } from "./index-Bg7A7wDU.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-iImmhxA0.js";
2
+ import { f, i as d, l as e } from "./index-CTSIYmp7.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 i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-C8FSFnJx.js";
2
- import { f as v, i as C, l as e } from "./index-Bg7A7wDU.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-iImmhxA0.js";
2
+ import { f as v, i as C, l as e } from "./index-CTSIYmp7.js";
3
3
  var f = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
- import { n as k, o as K, u as N, k as Q, Z as q, p as G, J as x, X as z, b as w, c as H, O as J, G as Y, E as M, Y as j, d as P, e as X, M as Z, S as W, z as ee } from "./index-Bg7A7wDU.js";
2
+ import { n as k, o as K, u as N, k as Q, Z as q, p as G, J as x, X as z, b as w, c as H, O as J, G as Y, E as M, Y as j, d as P, e as X, M as Z, S as W, z as ee } from "./index-CTSIYmp7.js";
3
3
  import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as O } from "react";
5
5
  const D = (t, n, d, l, b, r) => {
@@ -1,4 +1,4 @@
1
- import { m as we, q as z, r as xt, s as B, i as q, l as y, t as Ro, y as ye, A as R, C as _, H as k, I as N, K as A, L as bs, N as ir, R as $e, T as U, V as Hn, W as Vn, _ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-Bg7A7wDU.js";
1
+ import { m as we, q as z, r as xt, s as B, i as q, l as y, t as Ro, y as ye, A as R, C as _, H as k, I as N, K as A, L as bs, N as ir, R as $e, T as U, V as Hn, W as Vn, _ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-CTSIYmp7.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipRow.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/patientRelationships/RelationshipRow.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU/D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,oBAAoB;IAC5B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,MAAM,EAAE;QACN,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,oBAAoB,EAAE,CACpB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,gBAAgB,EAC7B,KAAK,EAAE,MAAM,KACV,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe;qIAUzB,oBAAoB;;;;;;;;CAiJtB,CAAC"}
1
+ {"version":3,"file":"RelationshipRow.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/patientRelationships/RelationshipRow.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU/D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,oBAAoB;IAC5B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,MAAM,EAAE;QACN,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,oBAAoB,EAAE,CACpB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,gBAAgB,EAC7B,KAAK,EAAE,MAAM,KACV,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe;qIAUzB,oBAAoB;;;;;;;;CAyJtB,CAAC"}
@@ -95351,7 +95351,7 @@ function pt0(t, e, r) {
95351
95351
  return n;
95352
95352
  };
95353
95353
  }
95354
- it(() => Promise.resolve().then(() => $G2)), it(() => Promise.resolve().then(() => iY2)), it(() => Promise.resolve().then(() => ZY2)), it(() => Promise.resolve().then(() => WY2)), it(() => import("./DocumentsTable-DJp5cpq1-Z52p5KIc.js")), it(() => Promise.resolve().then(() => te0)), it(() => import("./FormsTable-eYSyFNI4-jbsz8H0W.js")), it(() => Promise.resolve().then(() => NQ2)), it(() => import("./Observations-DqC-iu2a-CgP3s7nI.js")), it(
95354
+ it(() => Promise.resolve().then(() => $G2)), it(() => Promise.resolve().then(() => iY2)), it(() => Promise.resolve().then(() => ZY2)), it(() => Promise.resolve().then(() => WY2)), it(() => import("./DocumentsTable-DJp5cpq1-DDHFirJQ.js")), it(() => Promise.resolve().then(() => te0)), it(() => import("./FormsTable-eYSyFNI4-Bpsobs3i.js")), it(() => Promise.resolve().then(() => NQ2)), it(() => import("./Observations-DqC-iu2a-CuALhNYE.js")), it(
95355
95355
  () => Promise.resolve().then(() => Ne0)
95356
95356
  ), it(
95357
95357
  () => Promise.resolve().then(() => GX2)
@@ -180181,7 +180181,7 @@ var Owt = (t, e = !1) => {
180181
180181
  const e = L22(() => {
180182
180182
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
180183
180183
  let d;
180184
- return this.#i ? d = this.#i : (d = C22(() => import("./LNWAZHJI-Dbu--cvU.js")), this.#i = d), G22(this.#h, this.#r), x22(d, N22({
180184
+ return this.#i ? d = this.#i : (d = C22(() => import("./LNWAZHJI-B_9VquQm.js")), this.#i = d), G22(this.#h, this.#r), x22(d, N22({
180185
180185
  get queryFlavor() {
180186
180186
  return r.#d;
180187
180187
  },
@@ -180279,7 +180279,7 @@ var Owt = (t, e = !1) => {
180279
180279
  const e = L22(() => {
180280
180280
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
180281
180281
  let u;
180282
- return this.#l ? u = this.#l : (u = C22(() => import("./MWZ6AO7Z-8zSVhUl6.js")), this.#l = u), G22(this.#h, this.#r), x22(u, N22({
180282
+ return this.#l ? u = this.#l : (u = C22(() => import("./MWZ6AO7Z-CeXDEVB3.js")), this.#l = u), G22(this.#h, this.#r), x22(u, N22({
180283
180283
  get queryFlavor() {
180284
180284
  return r.#d;
180285
180285
  },
@@ -190110,7 +190110,12 @@ const nft = "index-module_relationshipSection__ep1O0", oft = "index-module_table
190110
190110
  placeholder: s("REGISTRATION_ENTER_PATIENT_ID"),
190111
190111
  items: r,
190112
190112
  itemToString: (h) => h?.text ?? "",
190113
- selectedItem: r.find((h) => h.identifier === t.patientId) ?? null,
190113
+ selectedItem: t.patientUuid ? {
190114
+ id: t.patientUuid,
190115
+ identifier: t.patientId,
190116
+ name: t.patientName ?? "",
190117
+ text: t.patientName ? `${t.patientName} (${t.patientId})` : t.patientId
190118
+ } : null,
190114
190119
  invalid: !!n.patientId,
190115
190120
  invalidText: n.patientId,
190116
190121
  onInputChange: (h) => c(t.id, h ?? ""),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-Bg7A7wDU.js";
1
+ import { av as s, at as t, au as E } from "./index-CTSIYmp7.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  t as RegistrationApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.321",
3
+ "version": "0.0.1-dev.324",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",