@bahmni/registration-app 0.0.1-dev.294 → 0.0.1-dev.295

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.
@@ -69236,15 +69236,13 @@ const e20 = () => {
69236
69236
  r ?? null
69237
69237
  );
69238
69238
  return ue(() => {
69239
- l(r ?? null), o && r && queueMicrotask(() => {
69240
- l(null);
69241
- });
69242
- }, [r, o]), /* @__PURE__ */ ce(
69239
+ l(r ?? null);
69240
+ }, [r]), /* @__PURE__ */ ce(
69243
69241
  av,
69244
69242
  {
69245
69243
  ...c,
69246
69244
  onChange: (s) => {
69247
- a?.(s);
69245
+ l(s.selectedItem ?? null), a?.(s), o && s.selectedItem != null && queueMicrotask(() => l(null));
69248
69246
  },
69249
69247
  selectedItem: i,
69250
69248
  "data-testid": t ?? e
@@ -135232,37 +135230,37 @@ const MY1 = {
135232
135230
  }
135233
135231
  }
135234
135232
  };
135235
- class Pm {
135233
+ let Pm = class {
135236
135234
  /** Formats a number value as a string, according to the locale and options provided to the constructor. */
135237
- format(e) {
135238
- let r = "";
135239
- if (!Bm && this.options.signDisplay != null ? r = yO0(this.numberFormatter, this.options.signDisplay, e) : r = this.numberFormatter.format(e), this.options.style === "unit" && !u9) {
135240
- var o;
135241
- let { unit: a, unitDisplay: c = "short", locale: i } = this.resolvedOptions();
135242
- if (!a) return r;
135243
- let l = (o = MY1[a]) === null || o === void 0 ? void 0 : o[c];
135244
- r += l[i] || l.default;
135235
+ format(t) {
135236
+ let e = "";
135237
+ if (!Bm && this.options.signDisplay != null ? e = yO0(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !u9) {
135238
+ var r;
135239
+ let { unit: o, unitDisplay: a = "short", locale: c } = this.resolvedOptions();
135240
+ if (!o) return e;
135241
+ let i = (r = MY1[o]) === null || r === void 0 ? void 0 : r[a];
135242
+ e += i[c] || i.default;
135245
135243
  }
135246
- return r;
135244
+ return e;
135247
135245
  }
135248
135246
  /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
135249
- formatToParts(e) {
135250
- return this.numberFormatter.formatToParts(e);
135247
+ formatToParts(t) {
135248
+ return this.numberFormatter.formatToParts(t);
135251
135249
  }
135252
135250
  /** Formats a number range as a string. */
135253
- formatRange(e, r) {
135254
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, r);
135255
- if (r < e) throw new RangeError("End date must be >= start date");
135256
- return `${this.format(e)} – ${this.format(r)}`;
135251
+ formatRange(t, e) {
135252
+ if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
135253
+ if (e < t) throw new RangeError("End date must be >= start date");
135254
+ return `${this.format(t)} – ${this.format(e)}`;
135257
135255
  }
135258
135256
  /** Formats a number range as an array of parts. */
135259
- formatRangeToParts(e, r) {
135260
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, r);
135261
- if (r < e) throw new RangeError("End date must be >= start date");
135262
- let o = this.numberFormatter.formatToParts(e), a = this.numberFormatter.formatToParts(r);
135257
+ formatRangeToParts(t, e) {
135258
+ if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
135259
+ if (e < t) throw new RangeError("End date must be >= start date");
135260
+ let r = this.numberFormatter.formatToParts(t), o = this.numberFormatter.formatToParts(e);
135263
135261
  return [
135264
- ...o.map((c) => ({
135265
- ...c,
135262
+ ...r.map((a) => ({
135263
+ ...a,
135266
135264
  source: "startRange"
135267
135265
  })),
135268
135266
  {
@@ -135270,29 +135268,29 @@ class Pm {
135270
135268
  value: " – ",
135271
135269
  source: "shared"
135272
135270
  },
135273
- ...a.map((c) => ({
135274
- ...c,
135271
+ ...o.map((a) => ({
135272
+ ...a,
135275
135273
  source: "endRange"
135276
135274
  }))
135277
135275
  ];
135278
135276
  }
135279
135277
  /** Returns the resolved formatting options based on the values passed to the constructor. */
135280
135278
  resolvedOptions() {
135281
- let e = this.numberFormatter.resolvedOptions();
135282
- return !Bm && this.options.signDisplay != null && (e = {
135283
- ...e,
135279
+ let t = this.numberFormatter.resolvedOptions();
135280
+ return !Bm && this.options.signDisplay != null && (t = {
135281
+ ...t,
135284
135282
  signDisplay: this.options.signDisplay
135285
- }), !u9 && this.options.style === "unit" && (e = {
135286
- ...e,
135283
+ }), !u9 && this.options.style === "unit" && (t = {
135284
+ ...t,
135287
135285
  style: "unit",
135288
135286
  unit: this.options.unit,
135289
135287
  unitDisplay: this.options.unitDisplay
135290
- }), e;
135288
+ }), t;
135291
135289
  }
135292
- constructor(e, r = {}) {
135293
- this.numberFormatter = MO0(e, r), this.options = r;
135290
+ constructor(t, e = {}) {
135291
+ this.numberFormatter = MO0(t, e), this.options = e;
135294
135292
  }
135295
- }
135293
+ };
135296
135294
  function MO0(t, e = {}) {
135297
135295
  let { numberingSystem: r } = e;
135298
135296
  if (r && t.includes("-nu-") && (t.includes("-u-") || (t += "-u-"), t += `-nu-${r}`), e.style === "unit" && !u9) {
@@ -172741,7 +172739,7 @@ function Lnt(t, e, r) {
172741
172739
  return o;
172742
172740
  };
172743
172741
  }
172744
- wt(() => Promise.resolve().then(() => b1t)), wt(() => Promise.resolve().then(() => X1t)), wt(() => Promise.resolve().then(() => C2t)), wt(() => Promise.resolve().then(() => S2t)), wt(() => import("./DocumentsTable-C4oMzxsp-hePnb_sm.js")), wt(() => Promise.resolve().then(() => Brt)), wt(() => import("./FormsTable-kg59GYSD-CH6_eJEr.js")), wt(() => Promise.resolve().then(() => prt)), wt(() => import("./Observations-CcNBEef4-CrrXpJtJ.js")), wt(
172742
+ wt(() => Promise.resolve().then(() => b1t)), wt(() => Promise.resolve().then(() => X1t)), wt(() => Promise.resolve().then(() => C2t)), wt(() => Promise.resolve().then(() => S2t)), wt(() => import("./DocumentsTable-R1K7B1Ur-Bj3JCWzn.js")), wt(() => Promise.resolve().then(() => Brt)), wt(() => import("./FormsTable-BFXGLv2_-CSs34l_8.js")), wt(() => Promise.resolve().then(() => prt)), wt(() => import("./Observations-DSZvTXSj-DdRF33gK.js")), wt(
172745
172743
  () => Promise.resolve().then(() => Jrt)
172746
172744
  ), wt(
172747
172745
  () => Promise.resolve().then(() => Dtt)
@@ -174581,7 +174579,7 @@ var c5t = (t, e = !1) => {
174581
174579
  const e = pX1(() => {
174582
174580
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
174583
174581
  let u;
174584
- return this.#i ? u = this.#i : (u = uX1(() => import("./LNWAZHJI-BQMu5KV7.js")), this.#i = u), TX1(this.#h, this.#r), sX1(u, dX1({
174582
+ return this.#i ? u = this.#i : (u = uX1(() => import("./LNWAZHJI-CCM9ADAI.js")), this.#i = u), TX1(this.#h, this.#r), sX1(u, dX1({
174585
174583
  get queryFlavor() {
174586
174584
  return r.#d;
174587
174585
  },
@@ -174679,7 +174677,7 @@ var c5t = (t, e = !1) => {
174679
174677
  const e = pX1(() => {
174680
174678
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [u] = this.#i;
174681
174679
  let d;
174682
- return this.#l ? d = this.#l : (d = uX1(() => import("./MWZ6AO7Z-C8nCymGc.js")), this.#l = d), TX1(this.#h, this.#r), sX1(d, dX1({
174680
+ return this.#l ? d = this.#l : (d = uX1(() => import("./MWZ6AO7Z-kvU_0_BA.js")), this.#l = d), TX1(this.#h, this.#r), sX1(d, dX1({
174683
174681
  get queryFlavor() {
174684
174682
  return r.#d;
174685
174683
  },
@@ -185489,33 +185487,33 @@ const z6t = new Ce2(n3t), u5t = () => {
185489
185487
  ] }) }) : /* @__PURE__ */ ce(Jj1, {});
185490
185488
  };
185491
185489
  export {
185492
- N8t as $,
185493
- Y8t as A,
185494
- q8t as B,
185495
- G8t as C,
185496
- x8t as D,
185497
- Tw as E,
185498
- H3 as F,
185499
- iot as G,
185490
+ b8t as $,
185491
+ G8t as A,
185492
+ _8t as B,
185493
+ Tw as C,
185494
+ z8t as D,
185495
+ H3 as E,
185496
+ iot as F,
185497
+ R8t as G,
185500
185498
  jS0 as H,
185501
- L8t as I,
185499
+ A8t as I,
185502
185500
  J8t as J,
185503
- R8t as K,
185501
+ D8t as K,
185504
185502
  jl as L,
185505
185503
  oot as M,
185506
185504
  KS0 as N,
185507
185505
  Fl as O,
185508
185506
  Q8t as P,
185509
185507
  P8t as Q,
185510
- b8t as R,
185511
- A8t as S,
185508
+ x8t as R,
185509
+ N8t as S,
185512
185510
  Qi as T,
185513
- O8t as U,
185511
+ T8t as U,
185514
185512
  i5t as V,
185515
- $8t as W,
185513
+ O8t as W,
185516
185514
  l5t as X,
185517
185515
  k8t as Y,
185518
- C8t as Z,
185516
+ L8t as Z,
185519
185517
  Ct as _,
185520
185518
  U1 as a,
185521
185519
  _w as a0,
@@ -185550,29 +185548,29 @@ export {
185550
185548
  u5t as at,
185551
185549
  Eu as au,
185552
185550
  jlt as av,
185553
- z8t as b,
185551
+ $8t as b,
185554
185552
  b0 as c,
185555
- D8t as d,
185553
+ c8t as d,
185556
185554
  Hn as e,
185557
- c8t as f,
185558
- SI0 as g,
185555
+ SI0 as f,
185556
+ pS0 as g,
185559
185557
  B0 as h,
185560
- pS0 as i,
185561
- T8t as j,
185562
- _8t as k,
185563
- rk0 as l,
185558
+ rk0 as i,
185559
+ d5t as j,
185560
+ C8t as k,
185561
+ x0 as l,
185564
185562
  O2 as m,
185565
185563
  Ut as n,
185566
- d5t as o,
185567
- x0 as p,
185564
+ sX1 as o,
185565
+ B8t as p,
185568
185566
  kQ1 as q,
185569
- sX1 as r,
185570
- B8t as s,
185571
- o0 as t,
185567
+ o0 as r,
185568
+ Dnt as s,
185569
+ rX1 as t,
185572
185570
  Vr as u,
185573
185571
  tu as v,
185574
185572
  j8 as w,
185575
- Dnt as x,
185576
- rX1 as y,
185573
+ Y8t as x,
185574
+ q8t as y,
185577
185575
  Sd as z
185578
185576
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-BrtgxmEZ.js";
1
+ import { av as s, at as t, au as E } from "./index-BiNgn9MF.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.294",
3
+ "version": "0.0.1-dev.295",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",