@bahmni/registration-app 0.0.1-dev.201 → 0.0.1-dev.203

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 o, jsxs as l, Fragment as k } from "react/jsx-runtime";
2
- import { l as V, u as x, Q as F, s as H, y as q, C as Q, x as P, T as G } from "./index-C3hZcbfn.js";
2
+ import { l as V, u as x, Q as F, s as H, y as q, C as Q, x as P, T as G } from "./index-C3dYT9FK.js";
3
3
  import { useQuery as Y } from "@tanstack/react-query";
4
4
  import { useState as I, useCallback as T, useEffect as U, useMemo as p } from "react";
5
5
  const z = "_documentsTableBody_1voj8_1", J = "_viewAttachmentsLink_1voj8_11", K = "_documentViewerContainer_1voj8_15", W = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
2
- import { u as M, l as ae, o as te, i as oe, a as ne, b as se, n as de, f as me, C as ie, y as le, x as q, I as ce, Z as ue, T as be, O as pe, $ as H, t as fe, U as K, c as A, d as _e, D as $e, S as ye, R as ge, e as he } from "./index-C3hZcbfn.js";
2
+ import { u as M, l as ae, o as te, i as oe, a as ne, b as se, n as de, f as me, C as ie, y as le, x as q, I as ce, Z as ue, T as be, O as pe, $ as H, t as fe, U as K, c as A, d as _e, D as $e, S as ye, R as ge, e as he } from "./index-C3dYT9FK.js";
3
3
  import { useQueryClient as ve, useQuery as R } from "@tanstack/react-query";
4
4
  import { useState as P, useMemo as h, useCallback as C } from "react";
5
5
  const Ne = "_formsTableBody_1pd36_1", Re = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Ae = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Le = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Oe = "_groupLabel_1pd36_48", Me = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", De = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", xe = "_memberLabel_1pd36_86", Ve = "_memberValue_1pd36_94", we = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ue = "_nestedGroup_1pd36_125", Ge = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", n = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-CJd8VmsU.js";
2
- import { m as d, q as f, v as e } from "./index-C3hZcbfn.js";
1
+ import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-DoJ2P-Sp.js";
2
+ import { m as d, q as f, v as e } from "./index-C3dYT9FK.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-CJd8VmsU.js";
2
- import { m as v, q as C, v as e } from "./index-C3hZcbfn.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-DoJ2P-Sp.js";
2
+ import { m as v, q as C, v as e } from "./index-C3dYT9FK.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 I, jsx as l } from "react/jsx-runtime";
2
- import { l as B, Q, u as S, g as V, r as w, f as x, t as K, h as j, p as G, w as H, x as M, j as P, L as N, k as z, d as Y, E as J, D as W, S as X, R as Z } from "./index-C3hZcbfn.js";
2
+ import { l as B, Q, u as S, g as V, r as w, f as x, t as K, h as j, p as G, w as H, x as M, j as P, L as N, k as z, d as Y, E as J, D as W, S as X, R as Z } from "./index-C3dYT9FK.js";
3
3
  import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as ae, useEffect as $, useMemo as R } from "react";
5
5
  const D = (t, d, i, u, r) => {
@@ -1,4 +1,4 @@
1
- import { z as we, A as z, B as xt, F as B, q, v as y, P as Ro, G as ye, H as R, J as _, K as k, M as N, N as A, V as bs, W as ir, X as $e, Y as G, _ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Gr, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-C3hZcbfn.js";
1
+ import { z as we, A as z, B as xt, F as B, q, v as y, P as Ro, G as ye, H as R, J as _, K as k, M as N, N as A, V as bs, W as ir, X as $e, Y as G, _ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Gr, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-C3dYT9FK.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -68629,20 +68629,24 @@ const lZ2 = () => {
68629
68629
  "data-testid": e,
68630
68630
  selectedItem: r,
68631
68631
  clearSelectedOnChange: o = !1,
68632
- ...a
68632
+ onChange: a,
68633
+ ...c
68633
68634
  }) => {
68634
- const [c, i] = fe(
68635
- r || null
68635
+ const [i, l] = fe(
68636
+ r ?? null
68636
68637
  );
68637
68638
  return ue(() => {
68638
- i(r || null), o && r && queueMicrotask(() => {
68639
- i(null);
68639
+ l(r ?? null), o && r && queueMicrotask(() => {
68640
+ l(null);
68640
68641
  });
68641
68642
  }, [r, o]), /* @__PURE__ */ ce(
68642
68643
  dw,
68643
68644
  {
68644
- ...a,
68645
- selectedItem: c,
68645
+ ...c,
68646
+ onChange: (s) => {
68647
+ a?.(s);
68648
+ },
68649
+ selectedItem: i,
68646
68650
  "data-testid": t ?? e
68647
68651
  }
68648
68652
  );
@@ -73086,7 +73090,7 @@ const kP2 = "bahmni.user.location", BL1 = () => {
73086
73090
  const e = JSON.parse(
73087
73091
  decodeURIComponent(t).replace(/^"(.*)"$/, "$1")
73088
73092
  );
73089
- if (!e.name || !e.uuid)
73093
+ if (!e.uuid)
73090
73094
  throw new Error(g0.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
73091
73095
  return e;
73092
73096
  }, ZP2 = (t, e, r) => {
@@ -145043,7 +145047,7 @@ const uz0 = "bahmni.user.location", mD1 = () => {
145043
145047
  const e = JSON.parse(
145044
145048
  decodeURIComponent(t).replace(/^"(.*)"$/, "$1")
145045
145049
  );
145046
- if (!e.name || !e.uuid)
145050
+ if (!e.uuid)
145047
145051
  throw new Error(O0.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
145048
145052
  return e;
145049
145053
  }, eM = {
@@ -157660,7 +157664,7 @@ function LT0(t, e, r) {
157660
157664
  return o;
157661
157665
  };
157662
157666
  }
157663
- Ht(() => Promise.resolve().then(() => pC0)), Ht(() => Promise.resolve().then(() => ZC0)), Ht(() => Promise.resolve().then(() => wL0)), Ht(() => Promise.resolve().then(() => zL0)), Ht(() => import("./DocumentsTable-Di3nGMxS-C7gUM98-.js")), Ht(() => Promise.resolve().then(() => aT0)), Ht(() => import("./FormsTable-CQD6_ATv-Du5LS4NA.js")), Ht(() => Promise.resolve().then(() => T_0)), Ht(() => import("./Observations-BCqYbNXh--2a55jaB.js")), Ht(
157667
+ Ht(() => Promise.resolve().then(() => pC0)), Ht(() => Promise.resolve().then(() => ZC0)), Ht(() => Promise.resolve().then(() => wL0)), Ht(() => Promise.resolve().then(() => zL0)), Ht(() => import("./DocumentsTable-Q5HkvbQZ-BwEhJrxa.js")), Ht(() => Promise.resolve().then(() => aT0)), Ht(() => import("./FormsTable-Cdd71yFV-qN6Mq3VU.js")), Ht(() => Promise.resolve().then(() => T_0)), Ht(() => import("./Observations-BYckgbFk-007k6Zri.js")), Ht(
157664
157668
  () => Promise.resolve().then(() => mT0)
157665
157669
  ), Ht(
157666
157670
  () => Promise.resolve().then(() => e_0)
@@ -159499,7 +159503,7 @@ var wj0 = (t, e = !1) => {
159499
159503
  const e = LR1(() => {
159500
159504
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
159501
159505
  let d;
159502
- return this.#i ? d = this.#i : (d = NR1(() => import("./LNWAZHJI-UvzfrJ9x.js")), this.#i = d), KR1(this.#h, this.#r), xR1(d, bR1({
159506
+ return this.#i ? d = this.#i : (d = NR1(() => import("./LNWAZHJI-DHtVEptj.js")), this.#i = d), KR1(this.#h, this.#r), xR1(d, bR1({
159503
159507
  get queryFlavor() {
159504
159508
  return r.#d;
159505
159509
  },
@@ -159597,7 +159601,7 @@ var wj0 = (t, e = !1) => {
159597
159601
  const e = LR1(() => {
159598
159602
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
159599
159603
  let u;
159600
- return this.#l ? u = this.#l : (u = NR1(() => import("./MWZ6AO7Z-CYcQ23B9.js")), this.#l = u), KR1(this.#h, this.#r), xR1(u, bR1({
159604
+ return this.#l ? u = this.#l : (u = NR1(() => import("./MWZ6AO7Z-BvSi7mNB.js")), this.#l = u), KR1(this.#h, this.#r), xR1(u, bR1({
159601
159605
  get queryFlavor() {
159602
159606
  return r.#d;
159603
159607
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ax as s, av as E, aw as i } from "./index-C3hZcbfn.js";
1
+ import { ax as s, av as E, aw as i } from "./index-C3dYT9FK.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  E as RegistrationApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.201",
3
+ "version": "0.0.1-dev.203",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",