@bahmni/registration-app 0.0.1-dev.133 → 0.0.1-dev.134

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 t, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { u as W, C as Q, J as Y, I as Z, $ as ee, S as re, R as ae, c as oe, F as te, q as x, D as ne, a as se, b as me, d as de, v as G, h as ie, W as y } from "./index-Gpe9rJ-z.js";
2
+ import { u as W, C as Q, J as Y, I as Z, $ as ee, S as re, R as ae, c as oe, F as te, q as x, D as ne, a as se, b as me, d as de, v as G, h as ie, W as y } from "./index-BtXSN3Tb.js";
3
3
  import { useQuery as h } from "@tanstack/react-query";
4
4
  import { useState as U, useMemo as $, useCallback as v } from "react";
5
5
  const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue = "_formContent_1pd36_18", pe = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", _e = "_groupContainer_1pd36_39", fe = "_rowContainer_1pd36_43", $e = "_groupLabel_1pd36_48", Ne = "_rowLabel_1pd36_58", ge = "_rowValue_1pd36_67", he = "_groupMembers_1pd36_75", ve = "_memberRow_1pd36_81", ye = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Me = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Ce = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Le = "_nestedGroupMembers_1pd36_141", o = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B2zZigpQ.js";
2
- import { k as d, l as f, m as e } from "./index-Gpe9rJ-z.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BDE2OfUh.js";
2
+ import { k as d, l as f, m as e } from "./index-BtXSN3Tb.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-B2zZigpQ.js";
2
- import { k as v, l as C, m as e } from "./index-Gpe9rJ-z.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-BDE2OfUh.js";
2
+ import { k as v, l as C, m as e } from "./index-BtXSN3Tb.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 _, jsx as b } from "react/jsx-runtime";
2
- import { C as F, T as U, u as I, L as X, e as k, o as x, q as K, f as Q, g as D, O as j, j as G, p as H, i as P } from "./index-Gpe9rJ-z.js";
2
+ import { C as F, T as U, u as I, L as X, e as k, o as x, q as K, f as Q, g as D, O as j, j as G, p as H, i as P } from "./index-BtXSN3Tb.js";
3
3
  import { useQueries as Y, useQuery as Z } from "@tanstack/react-query";
4
4
  import { useRef as z, useEffect as T, useMemo as h } from "react";
5
5
  const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? Q(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
@@ -1,4 +1,4 @@
1
- import { n as we, r as z, s as xt, t as B, l as q, m as y, P as Ro, w as ye, x as R, y as _, z as k, A as N, B as A, E as bs, G as ir, H as $e, K as U, M as Hn, N as Vn, Q as dt, U as D, V as xs, X as cn, Y as Be, Z as ws, _ as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, 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-Gpe9rJ-z.js";
1
+ import { n as we, r as z, s as xt, t as B, l as q, m as y, P as Ro, w as ye, x as R, y as _, z as k, A as N, B as A, E as bs, G as ir, H as $e, K as U, M as Hn, N as Vn, Q as dt, U as D, V as xs, X as cn, Y as Be, Z as ws, _ as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, 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-BtXSN3Tb.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -65807,8 +65807,26 @@ const BC2 = () => {
65807
65807
  }, mp = ({
65808
65808
  testId: t,
65809
65809
  "data-testid": e,
65810
- ...r
65811
- }) => /* @__PURE__ */ le(iw, { ...r, "data-testid": t ?? e }), nr = ({
65810
+ selectedItem: r,
65811
+ clearSelectedOnChange: n = !1,
65812
+ ...a
65813
+ }) => {
65814
+ const [c, i] = fe(
65815
+ r || null
65816
+ );
65817
+ return ue(() => {
65818
+ i(r || null), n && r && queueMicrotask(() => {
65819
+ i(null);
65820
+ });
65821
+ }, [r, n]), /* @__PURE__ */ le(
65822
+ iw,
65823
+ {
65824
+ ...a,
65825
+ selectedItem: c,
65826
+ "data-testid": t ?? e
65827
+ }
65828
+ );
65829
+ }, nr = ({
65812
65830
  testId: t,
65813
65831
  "data-testid": e,
65814
65832
  ...r
@@ -153158,7 +153176,7 @@ const cC1 = (t, e) => ["programs", t, e], LM0 = async (t, e) => {
153158
153176
  };
153159
153177
  sC1.displayName = "UserPrivilegeProvider";
153160
153178
  W2(void 0);
153161
- ur(() => Promise.resolve().then(() => yv0)), ur(() => Promise.resolve().then(() => Jv0)), ur(() => Promise.resolve().then(() => oE0)), ur(() => Promise.resolve().then(() => pM0)), ur(() => import("./FormsTable-CJbdqo4y-DahRHHcM.js")), ur(() => Promise.resolve().then(() => Zy0)), ur(() => import("./Observations-DhWTpv8S-z_x8_Ces.js")), ur(
153179
+ ur(() => Promise.resolve().then(() => yv0)), ur(() => Promise.resolve().then(() => Jv0)), ur(() => Promise.resolve().then(() => oE0)), ur(() => Promise.resolve().then(() => pM0)), ur(() => import("./FormsTable-CJbdqo4y-CwAAXZH9.js")), ur(() => Promise.resolve().then(() => Zy0)), ur(() => import("./Observations-DhWTpv8S-DUDr1sHh.js")), ur(
153162
153180
  () => Promise.resolve().then(() => zM0)
153163
153181
  ), ur(
153164
153182
  () => Promise.resolve().then(() => cy0)
@@ -154997,7 +155015,7 @@ var hT0 = (t, e = !1) => {
154997
155015
  const e = xC1(() => {
154998
155016
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
154999
155017
  let d;
155000
- return this.#i ? d = this.#i : (d = HC1(() => import("./LNWAZHJI-Bhd6tcV_.js")), this.#i = d), qC1(this.#h, this.#r), zC1(d, VC1({
155018
+ return this.#i ? d = this.#i : (d = HC1(() => import("./LNWAZHJI-BXc4GWOH.js")), this.#i = d), qC1(this.#h, this.#r), zC1(d, VC1({
155001
155019
  get queryFlavor() {
155002
155020
  return r.#d;
155003
155021
  },
@@ -155095,7 +155113,7 @@ var hT0 = (t, e = !1) => {
155095
155113
  const e = xC1(() => {
155096
155114
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
155097
155115
  let u;
155098
- return this.#l ? u = this.#l : (u = HC1(() => import("./MWZ6AO7Z-B2N1ocE9.js")), this.#l = u), qC1(this.#h, this.#r), zC1(u, VC1({
155116
+ return this.#l ? u = this.#l : (u = HC1(() => import("./MWZ6AO7Z-CKjmVwjX.js")), this.#l = u), qC1(this.#h, this.#r), zC1(u, VC1({
155099
155117
  get queryFlavor() {
155100
155118
  return r.#d;
155101
155119
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ap as s, an as p, ao as E } from "./index-Gpe9rJ-z.js";
1
+ import { ap as s, an as p, ao as E } from "./index-BtXSN3Tb.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  p as RegistrationApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.133",
3
+ "version": "0.0.1-dev.134",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",